Sync readline/ to version 7.0 alpha
[deliverable/binutils-gdb.git] / readline / examples / rlfe / configure
CommitLineData
b585a9fa
EZ
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
4a11f206 3# Generated by GNU Autoconf 2.64.
81ecdfbb
RW
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
4a11f206
PP
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
b585a9fa
EZ
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
4a11f206
PP
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
b585a9fa 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
4a11f206 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b585a9fa
EZ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b585a9fa
EZ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
4a11f206
PP
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
81ecdfbb 30esac
b585a9fa 31fi
b585a9fa 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4a11f206
PP
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
81ecdfbb
RW
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
b585a9fa 50else
81ecdfbb
RW
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
4a11f206 58 case $arg in #(
81ecdfbb
RW
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
b585a9fa
EZ
79fi
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
4a11f206 90case $0 in #((
81ecdfbb
RW
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
4a11f206
PP
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
81ecdfbb
RW
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4a11f206 110 exit 1
81ecdfbb
RW
111fi
112
4a11f206
PP
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
81ecdfbb 120done
b585a9fa
EZ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
4a11f206 132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
81ecdfbb
RW
133
134if test "x$CONFIG_SHELL" = x; then
4a11f206
PP
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
81ecdfbb 142else
4a11f206
PP
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
81ecdfbb 149fi
4a11f206
PP
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
81ecdfbb
RW
156
157exitcode=0
4a11f206
PP
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
cc88a640 175else
4a11f206 176 as_have_required=no
cc88a640 177fi
4a11f206 178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
cc88a640 179
cc88a640 180else
4a11f206
PP
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
81ecdfbb 183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
b585a9fa 184do
81ecdfbb
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
4a11f206
PP
187 as_found=:
188 case $as_dir in #(
81ecdfbb
RW
189 /*)
190 for as_base in sh bash ksh sh5; do
4a11f206
PP
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
81ecdfbb
RW
200 done;;
201 esac
4a11f206 202 as_found=false
81ecdfbb 203done
4a11f206
PP
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
81ecdfbb
RW
208IFS=$as_save_IFS
209
210
4a11f206
PP
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
cc88a640
JK
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
4a11f206
PP
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
233 fi
234 exit 1
cc88a640 235fi
cc88a640 236fi
cc88a640 237fi
4a11f206
PP
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
cc88a640 243
4a11f206
PP
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
cc88a640 255
4a11f206
PP
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
cc88a640 263
4a11f206
PP
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
cc88a640 279
4a11f206
PP
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
b585a9fa 332else
4a11f206
PP
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
b585a9fa 355
cc88a640 356
4a11f206
PP
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
b585a9fa 376else
4a11f206 377 as_expr=false
b585a9fa
EZ
378fi
379
4a11f206
PP
380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382else
383 as_basename=false
cc88a640
JK
384fi
385
4a11f206
PP
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
81ecdfbb 388else
4a11f206 389 as_dirname=false
81ecdfbb 390fi
b585a9fa 391
4a11f206
PP
392as_me=`$as_basename -- "$0" ||
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
b585a9fa 410
4a11f206
PP
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
b585a9fa 417
b585a9fa 418
4a11f206
PP
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
81ecdfbb
RW
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
b585a9fa 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
b585a9fa 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b585a9fa 436 t loop
81ecdfbb 437 s/-\n.*//
b585a9fa 438 ' >$as_me.lineno &&
81ecdfbb 439 chmod +x "$as_me.lineno" ||
4a11f206 440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
b585a9fa
EZ
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
b585a9fa
EZ
446 # Exit status is that of the last command.
447 exit
448}
449
81ecdfbb 450ECHO_C= ECHO_N= ECHO_T=
4a11f206 451case `echo -n x` in #(((((
81ecdfbb 452-n*)
4a11f206 453 case `echo 'xy\c'` in
81ecdfbb 454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4a11f206
PP
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
81ecdfbb
RW
458 esac;;
459*)
460 ECHO_N='-n';;
b585a9fa 461esac
cc88a640
JK
462
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
81ecdfbb 465 rm -f conf$$.dir/conf$$.file
b585a9fa 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
b585a9fa 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
b585a9fa 472 as_ln_s='ln -s'
81ecdfbb
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
b585a9fa 483 fi
b585a9fa
EZ
484else
485 as_ln_s='cp -p'
486fi
81ecdfbb
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
b585a9fa
EZ
489
490if mkdir -p . 2>/dev/null; then
4a11f206 491 as_mkdir_p='mkdir -p "$as_dir"'
b585a9fa
EZ
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
81ecdfbb
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
4a11f206 510 case $1 in #(
81ecdfbb
RW
511 -*)set "./$1";;
512 esac;
4a11f206 513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
81ecdfbb
RW
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
b585a9fa
EZ
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
81ecdfbb 527exec 7<&0 </dev/null 6>&1
b585a9fa
EZ
528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
b585a9fa
EZ
534#
535# Initializations.
536#
537ac_default_prefix=/usr/local
81ecdfbb 538ac_clean_files=
b585a9fa 539ac_config_libobj_dir=.
81ecdfbb 540LIBOBJS=
b585a9fa
EZ
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
b585a9fa
EZ
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
4a11f206 552PACKAGE_URL=
b585a9fa
EZ
553
554ac_unique_file="rlfe.c"
cc88a640
JK
555# Factoring default headers for most tests.
556ac_includes_default="\
557#include <stdio.h>
558#ifdef HAVE_SYS_TYPES_H
559# include <sys/types.h>
560#endif
561#ifdef HAVE_SYS_STAT_H
562# include <sys/stat.h>
563#endif
564#ifdef STDC_HEADERS
565# include <stdlib.h>
566# include <stddef.h>
567#else
568# ifdef HAVE_STDLIB_H
569# include <stdlib.h>
570# endif
571#endif
572#ifdef HAVE_STRING_H
573# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574# include <memory.h>
575# endif
576# include <string.h>
577#endif
578#ifdef HAVE_STRINGS_H
579# include <strings.h>
580#endif
581#ifdef HAVE_INTTYPES_H
582# include <inttypes.h>
583#endif
584#ifdef HAVE_STDINT_H
585# include <stdint.h>
586#endif
587#ifdef HAVE_UNISTD_H
588# include <unistd.h>
589#endif"
590
81ecdfbb
RW
591ac_subst_vars='LTLIBOBJS
592LIBOBJS
593XTERMPATH
594WRITEPATH
595AWK
596EGREP
597GREP
598CPP
599OBJEXT
600EXEEXT
601ac_ct_CC
602CPPFLAGS
603LDFLAGS
604CFLAGS
605CC
606VERSION
607target_alias
608host_alias
609build_alias
610LIBS
611ECHO_T
612ECHO_N
613ECHO_C
614DEFS
615mandir
616localedir
617libdir
618psdir
619pdfdir
620dvidir
621htmldir
622infodir
623docdir
624oldincludedir
625includedir
626localstatedir
627sharedstatedir
628sysconfdir
629datadir
630datarootdir
631libexecdir
632sbindir
633bindir
634program_transform_name
635prefix
636exec_prefix
4a11f206 637PACKAGE_URL
81ecdfbb
RW
638PACKAGE_BUGREPORT
639PACKAGE_STRING
640PACKAGE_VERSION
641PACKAGE_TARNAME
642PACKAGE_NAME
643PATH_SEPARATOR
644SHELL'
b585a9fa 645ac_subst_files=''
81ecdfbb
RW
646ac_user_opts='
647enable_option_checking
648with_pty_mode
649with_pty_group
650'
651 ac_precious_vars='build_alias
652host_alias
653target_alias
654CC
655CFLAGS
656LDFLAGS
657LIBS
658CPPFLAGS
659CPP'
660
b585a9fa
EZ
661
662# Initialize some variables set by options.
663ac_init_help=
664ac_init_version=false
81ecdfbb
RW
665ac_unrecognized_opts=
666ac_unrecognized_sep=
b585a9fa
EZ
667# The variables have the same names as the options, with
668# dashes changed to underlines.
669cache_file=/dev/null
670exec_prefix=NONE
671no_create=
672no_recursion=
673prefix=NONE
674program_prefix=NONE
675program_suffix=NONE
676program_transform_name=s,x,x,
677silent=
678site=
679srcdir=
680verbose=
681x_includes=NONE
682x_libraries=NONE
683
684# Installation directory options.
685# These are left unexpanded so users can "make install exec_prefix=/foo"
686# and all the variables that are supposed to be based on exec_prefix
687# by default will actually change.
688# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 689# (The list follows the same order as the GNU Coding Standards.)
b585a9fa
EZ
690bindir='${exec_prefix}/bin'
691sbindir='${exec_prefix}/sbin'
692libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
693datarootdir='${prefix}/share'
694datadir='${datarootdir}'
b585a9fa
EZ
695sysconfdir='${prefix}/etc'
696sharedstatedir='${prefix}/com'
697localstatedir='${prefix}/var'
b585a9fa
EZ
698includedir='${prefix}/include'
699oldincludedir='/usr/include'
81ecdfbb
RW
700docdir='${datarootdir}/doc/${PACKAGE}'
701infodir='${datarootdir}/info'
702htmldir='${docdir}'
703dvidir='${docdir}'
704pdfdir='${docdir}'
705psdir='${docdir}'
706libdir='${exec_prefix}/lib'
707localedir='${datarootdir}/locale'
708mandir='${datarootdir}/man'
b585a9fa
EZ
709
710ac_prev=
81ecdfbb 711ac_dashdash=
b585a9fa
EZ
712for ac_option
713do
714 # If the previous option needs an argument, assign it.
715 if test -n "$ac_prev"; then
81ecdfbb 716 eval $ac_prev=\$ac_option
b585a9fa
EZ
717 ac_prev=
718 continue
719 fi
720
81ecdfbb
RW
721 case $ac_option in
722 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
723 *) ac_optarg=yes ;;
724 esac
b585a9fa
EZ
725
726 # Accept the important Cygnus configure options, so we can diagnose typos.
727
81ecdfbb
RW
728 case $ac_dashdash$ac_option in
729 --)
730 ac_dashdash=yes ;;
b585a9fa
EZ
731
732 -bindir | --bindir | --bindi | --bind | --bin | --bi)
733 ac_prev=bindir ;;
734 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
735 bindir=$ac_optarg ;;
736
737 -build | --build | --buil | --bui | --bu)
738 ac_prev=build_alias ;;
739 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
740 build_alias=$ac_optarg ;;
741
742 -cache-file | --cache-file | --cache-fil | --cache-fi \
743 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
744 ac_prev=cache_file ;;
745 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
746 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
747 cache_file=$ac_optarg ;;
748
749 --config-cache | -C)
750 cache_file=config.cache ;;
751
81ecdfbb 752 -datadir | --datadir | --datadi | --datad)
b585a9fa 753 ac_prev=datadir ;;
81ecdfbb 754 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b585a9fa
EZ
755 datadir=$ac_optarg ;;
756
81ecdfbb
RW
757 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
758 | --dataroo | --dataro | --datar)
759 ac_prev=datarootdir ;;
760 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
761 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
762 datarootdir=$ac_optarg ;;
763
b585a9fa 764 -disable-* | --disable-*)
81ecdfbb 765 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
b585a9fa 766 # Reject names that are not valid shell variable names.
81ecdfbb 767 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
4a11f206 768 as_fn_error "invalid feature name: $ac_useropt"
81ecdfbb
RW
769 ac_useropt_orig=$ac_useropt
770 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
771 case $ac_user_opts in
772 *"
773"enable_$ac_useropt"
774"*) ;;
775 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
776 ac_unrecognized_sep=', ';;
777 esac
778 eval enable_$ac_useropt=no ;;
779
780 -docdir | --docdir | --docdi | --doc | --do)
781 ac_prev=docdir ;;
782 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
783 docdir=$ac_optarg ;;
784
785 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
786 ac_prev=dvidir ;;
787 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
788 dvidir=$ac_optarg ;;
b585a9fa
EZ
789
790 -enable-* | --enable-*)
81ecdfbb 791 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
b585a9fa 792 # Reject names that are not valid shell variable names.
81ecdfbb 793 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
4a11f206 794 as_fn_error "invalid feature name: $ac_useropt"
81ecdfbb
RW
795 ac_useropt_orig=$ac_useropt
796 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
797 case $ac_user_opts in
798 *"
799"enable_$ac_useropt"
800"*) ;;
801 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
802 ac_unrecognized_sep=', ';;
b585a9fa 803 esac
81ecdfbb 804 eval enable_$ac_useropt=\$ac_optarg ;;
b585a9fa
EZ
805
806 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
807 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
808 | --exec | --exe | --ex)
809 ac_prev=exec_prefix ;;
810 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
811 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
812 | --exec=* | --exe=* | --ex=*)
813 exec_prefix=$ac_optarg ;;
814
815 -gas | --gas | --ga | --g)
816 # Obsolete; use --with-gas.
817 with_gas=yes ;;
818
819 -help | --help | --hel | --he | -h)
820 ac_init_help=long ;;
821 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
822 ac_init_help=recursive ;;
823 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
824 ac_init_help=short ;;
825
826 -host | --host | --hos | --ho)
827 ac_prev=host_alias ;;
828 -host=* | --host=* | --hos=* | --ho=*)
829 host_alias=$ac_optarg ;;
830
81ecdfbb
RW
831 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
832 ac_prev=htmldir ;;
833 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
834 | --ht=*)
835 htmldir=$ac_optarg ;;
836
b585a9fa
EZ
837 -includedir | --includedir | --includedi | --included | --include \
838 | --includ | --inclu | --incl | --inc)
839 ac_prev=includedir ;;
840 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
841 | --includ=* | --inclu=* | --incl=* | --inc=*)
842 includedir=$ac_optarg ;;
843
844 -infodir | --infodir | --infodi | --infod | --info | --inf)
845 ac_prev=infodir ;;
846 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
847 infodir=$ac_optarg ;;
848
849 -libdir | --libdir | --libdi | --libd)
850 ac_prev=libdir ;;
851 -libdir=* | --libdir=* | --libdi=* | --libd=*)
852 libdir=$ac_optarg ;;
853
854 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
855 | --libexe | --libex | --libe)
856 ac_prev=libexecdir ;;
857 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
858 | --libexe=* | --libex=* | --libe=*)
859 libexecdir=$ac_optarg ;;
860
81ecdfbb
RW
861 -localedir | --localedir | --localedi | --localed | --locale)
862 ac_prev=localedir ;;
863 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
864 localedir=$ac_optarg ;;
865
b585a9fa 866 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 867 | --localstate | --localstat | --localsta | --localst | --locals)
b585a9fa
EZ
868 ac_prev=localstatedir ;;
869 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 870 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b585a9fa
EZ
871 localstatedir=$ac_optarg ;;
872
873 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
874 ac_prev=mandir ;;
875 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
876 mandir=$ac_optarg ;;
877
878 -nfp | --nfp | --nf)
879 # Obsolete; use --without-fp.
880 with_fp=no ;;
881
882 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
883 | --no-cr | --no-c | -n)
884 no_create=yes ;;
885
886 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
887 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
888 no_recursion=yes ;;
889
890 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
891 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
892 | --oldin | --oldi | --old | --ol | --o)
893 ac_prev=oldincludedir ;;
894 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
895 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
896 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
897 oldincludedir=$ac_optarg ;;
898
899 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
900 ac_prev=prefix ;;
901 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
902 prefix=$ac_optarg ;;
903
904 -program-prefix | --program-prefix | --program-prefi | --program-pref \
905 | --program-pre | --program-pr | --program-p)
906 ac_prev=program_prefix ;;
907 -program-prefix=* | --program-prefix=* | --program-prefi=* \
908 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
909 program_prefix=$ac_optarg ;;
910
911 -program-suffix | --program-suffix | --program-suffi | --program-suff \
912 | --program-suf | --program-su | --program-s)
913 ac_prev=program_suffix ;;
914 -program-suffix=* | --program-suffix=* | --program-suffi=* \
915 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
916 program_suffix=$ac_optarg ;;
917
918 -program-transform-name | --program-transform-name \
919 | --program-transform-nam | --program-transform-na \
920 | --program-transform-n | --program-transform- \
921 | --program-transform | --program-transfor \
922 | --program-transfo | --program-transf \
923 | --program-trans | --program-tran \
924 | --progr-tra | --program-tr | --program-t)
925 ac_prev=program_transform_name ;;
926 -program-transform-name=* | --program-transform-name=* \
927 | --program-transform-nam=* | --program-transform-na=* \
928 | --program-transform-n=* | --program-transform-=* \
929 | --program-transform=* | --program-transfor=* \
930 | --program-transfo=* | --program-transf=* \
931 | --program-trans=* | --program-tran=* \
932 | --progr-tra=* | --program-tr=* | --program-t=*)
933 program_transform_name=$ac_optarg ;;
934
81ecdfbb
RW
935 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
936 ac_prev=pdfdir ;;
937 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
938 pdfdir=$ac_optarg ;;
939
940 -psdir | --psdir | --psdi | --psd | --ps)
941 ac_prev=psdir ;;
942 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
943 psdir=$ac_optarg ;;
944
b585a9fa
EZ
945 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
946 | -silent | --silent | --silen | --sile | --sil)
947 silent=yes ;;
948
949 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
950 ac_prev=sbindir ;;
951 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
952 | --sbi=* | --sb=*)
953 sbindir=$ac_optarg ;;
954
955 -sharedstatedir | --sharedstatedir | --sharedstatedi \
956 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
957 | --sharedst | --shareds | --shared | --share | --shar \
958 | --sha | --sh)
959 ac_prev=sharedstatedir ;;
960 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
961 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
962 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
963 | --sha=* | --sh=*)
964 sharedstatedir=$ac_optarg ;;
965
966 -site | --site | --sit)
967 ac_prev=site ;;
968 -site=* | --site=* | --sit=*)
969 site=$ac_optarg ;;
970
971 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
972 ac_prev=srcdir ;;
973 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
974 srcdir=$ac_optarg ;;
975
976 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
977 | --syscon | --sysco | --sysc | --sys | --sy)
978 ac_prev=sysconfdir ;;
979 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
980 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
981 sysconfdir=$ac_optarg ;;
982
983 -target | --target | --targe | --targ | --tar | --ta | --t)
984 ac_prev=target_alias ;;
985 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
986 target_alias=$ac_optarg ;;
987
988 -v | -verbose | --verbose | --verbos | --verbo | --verb)
989 verbose=yes ;;
990
991 -version | --version | --versio | --versi | --vers | -V)
992 ac_init_version=: ;;
993
994 -with-* | --with-*)
81ecdfbb 995 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
b585a9fa 996 # Reject names that are not valid shell variable names.
81ecdfbb 997 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
4a11f206 998 as_fn_error "invalid package name: $ac_useropt"
81ecdfbb
RW
999 ac_useropt_orig=$ac_useropt
1000 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001 case $ac_user_opts in
1002 *"
1003"with_$ac_useropt"
1004"*) ;;
1005 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1006 ac_unrecognized_sep=', ';;
b585a9fa 1007 esac
81ecdfbb 1008 eval with_$ac_useropt=\$ac_optarg ;;
b585a9fa
EZ
1009
1010 -without-* | --without-*)
81ecdfbb 1011 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
b585a9fa 1012 # Reject names that are not valid shell variable names.
81ecdfbb 1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
4a11f206 1014 as_fn_error "invalid package name: $ac_useropt"
81ecdfbb
RW
1015 ac_useropt_orig=$ac_useropt
1016 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1018 *"
1019"with_$ac_useropt"
1020"*) ;;
1021 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1022 ac_unrecognized_sep=', ';;
1023 esac
1024 eval with_$ac_useropt=no ;;
b585a9fa
EZ
1025
1026 --x)
1027 # Obsolete; use --with-x.
1028 with_x=yes ;;
1029
1030 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1031 | --x-incl | --x-inc | --x-in | --x-i)
1032 ac_prev=x_includes ;;
1033 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1034 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1035 x_includes=$ac_optarg ;;
1036
1037 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1038 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1039 ac_prev=x_libraries ;;
1040 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1041 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1042 x_libraries=$ac_optarg ;;
1043
4a11f206
PP
1044 -*) as_fn_error "unrecognized option: \`$ac_option'
1045Try \`$0 --help' for more information."
b585a9fa
EZ
1046 ;;
1047
1048 *=*)
1049 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1050 # Reject names that are not valid shell variable names.
4a11f206
PP
1051 case $ac_envvar in #(
1052 '' | [0-9]* | *[!_$as_cr_alnum]* )
1053 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1054 esac
81ecdfbb 1055 eval $ac_envvar=\$ac_optarg
b585a9fa
EZ
1056 export $ac_envvar ;;
1057
1058 *)
1059 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1060 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b585a9fa 1061 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1062 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b585a9fa
EZ
1063 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1064 ;;
1065
1066 esac
1067done
1068
1069if test -n "$ac_prev"; then
1070 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
4a11f206 1071 as_fn_error "missing argument to $ac_option"
b585a9fa
EZ
1072fi
1073
81ecdfbb
RW
1074if test -n "$ac_unrecognized_opts"; then
1075 case $enable_option_checking in
1076 no) ;;
4a11f206 1077 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1078 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
b585a9fa 1079 esac
81ecdfbb 1080fi
b585a9fa 1081
81ecdfbb
RW
1082# Check all directory arguments for consistency.
1083for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1084 datadir sysconfdir sharedstatedir localstatedir includedir \
1085 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1086 libdir localedir mandir
b585a9fa 1087do
81ecdfbb
RW
1088 eval ac_val=\$$ac_var
1089 # Remove trailing slashes.
1090 case $ac_val in
1091 */ )
1092 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1093 eval $ac_var=\$ac_val;;
1094 esac
1095 # Be sure to have absolute directory names.
b585a9fa 1096 case $ac_val in
81ecdfbb
RW
1097 [\\/$]* | ?:[\\/]* ) continue;;
1098 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
b585a9fa 1099 esac
4a11f206 1100 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
b585a9fa
EZ
1101done
1102
1103# There might be people who depend on the old broken behavior: `$host'
1104# used to hold the argument of --host etc.
1105# FIXME: To remove some day.
1106build=$build_alias
1107host=$host_alias
1108target=$target_alias
1109
1110# FIXME: To remove some day.
1111if test "x$host_alias" != x; then
1112 if test "x$build_alias" = x; then
1113 cross_compiling=maybe
81ecdfbb 1114 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
b585a9fa
EZ
1115 If a cross compiler is detected then cross compile mode will be used." >&2
1116 elif test "x$build_alias" != "x$host_alias"; then
1117 cross_compiling=yes
1118 fi
1119fi
1120
1121ac_tool_prefix=
1122test -n "$host_alias" && ac_tool_prefix=$host_alias-
1123
1124test "$silent" = yes && exec 6>/dev/null
1125
1126
81ecdfbb
RW
1127ac_pwd=`pwd` && test -n "$ac_pwd" &&
1128ac_ls_di=`ls -di .` &&
1129ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
4a11f206 1130 as_fn_error "working directory cannot be determined"
81ecdfbb 1131test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
4a11f206 1132 as_fn_error "pwd does not report name of working directory"
81ecdfbb
RW
1133
1134
b585a9fa
EZ
1135# Find the source files, if location was not specified.
1136if test -z "$srcdir"; then
1137 ac_srcdir_defaulted=yes
81ecdfbb
RW
1138 # Try the directory containing this script, then the parent directory.
1139 ac_confdir=`$as_dirname -- "$as_myself" ||
1140$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1141 X"$as_myself" : 'X\(//\)[^/]' \| \
1142 X"$as_myself" : 'X\(//\)$' \| \
1143 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1144$as_echo X"$as_myself" |
1145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1146 s//\1/
1147 q
1148 }
1149 /^X\(\/\/\)[^/].*/{
1150 s//\1/
1151 q
1152 }
1153 /^X\(\/\/\)$/{
1154 s//\1/
1155 q
1156 }
1157 /^X\(\/\).*/{
1158 s//\1/
1159 q
1160 }
1161 s/.*/./; q'`
b585a9fa 1162 srcdir=$ac_confdir
81ecdfbb 1163 if test ! -r "$srcdir/$ac_unique_file"; then
b585a9fa
EZ
1164 srcdir=..
1165 fi
1166else
1167 ac_srcdir_defaulted=no
1168fi
81ecdfbb
RW
1169if test ! -r "$srcdir/$ac_unique_file"; then
1170 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
4a11f206 1171 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1172fi
1173ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1174ac_abs_confdir=`(
4a11f206 1175 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
81ecdfbb
RW
1176 pwd)`
1177# When building in place, set srcdir=.
1178if test "$ac_abs_confdir" = "$ac_pwd"; then
1179 srcdir=.
1180fi
1181# Remove unnecessary trailing slashes from srcdir.
1182# Double slashes in file names in object file debugging info
1183# mess up M-x gdb in Emacs.
1184case $srcdir in
1185*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1186esac
1187for ac_var in $ac_precious_vars; do
1188 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1189 eval ac_env_${ac_var}_value=\$${ac_var}
1190 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1191 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1192done
b585a9fa
EZ
1193
1194#
1195# Report the --help message.
1196#
1197if test "$ac_init_help" = "long"; then
1198 # Omit some internal or obsolete options to make the list less imposing.
1199 # This message is too long to be a string in the A/UX 3.1 sh.
1200 cat <<_ACEOF
1201\`configure' configures this package to adapt to many kinds of systems.
1202
1203Usage: $0 [OPTION]... [VAR=VALUE]...
1204
1205To assign environment variables (e.g., CC, CFLAGS...), specify them as
1206VAR=VALUE. See below for descriptions of some of the useful variables.
1207
1208Defaults for the options are specified in brackets.
1209
1210Configuration:
1211 -h, --help display this help and exit
1212 --help=short display options specific to this package
1213 --help=recursive display the short help of all the included packages
1214 -V, --version display version information and exit
1215 -q, --quiet, --silent do not print \`checking...' messages
1216 --cache-file=FILE cache test results in FILE [disabled]
1217 -C, --config-cache alias for \`--cache-file=config.cache'
1218 -n, --no-create do not create output files
1219 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1220
b585a9fa
EZ
1221Installation directories:
1222 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1223 [$ac_default_prefix]
b585a9fa 1224 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1225 [PREFIX]
b585a9fa
EZ
1226
1227By default, \`make install' will install all the files in
1228\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1229an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1230for instance \`--prefix=\$HOME'.
1231
1232For better control, use the options below.
1233
1234Fine tuning of the installation directories:
81ecdfbb
RW
1235 --bindir=DIR user executables [EPREFIX/bin]
1236 --sbindir=DIR system admin executables [EPREFIX/sbin]
1237 --libexecdir=DIR program executables [EPREFIX/libexec]
1238 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1239 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1240 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1241 --libdir=DIR object code libraries [EPREFIX/lib]
1242 --includedir=DIR C header files [PREFIX/include]
1243 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1244 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1245 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1246 --infodir=DIR info documentation [DATAROOTDIR/info]
1247 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1248 --mandir=DIR man documentation [DATAROOTDIR/man]
1249 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1250 --htmldir=DIR html documentation [DOCDIR]
1251 --dvidir=DIR dvi documentation [DOCDIR]
1252 --pdfdir=DIR pdf documentation [DOCDIR]
1253 --psdir=DIR ps documentation [DOCDIR]
b585a9fa
EZ
1254_ACEOF
1255
1256 cat <<\_ACEOF
1257_ACEOF
1258fi
1259
1260if test -n "$ac_init_help"; then
1261
1262 cat <<\_ACEOF
1263
1264Optional Packages:
1265 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1266 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1267 --with-pty-mode=mode default mode for ptys
1268 --with-pty-group=group default group for ptys
1269
1270Some influential environment variables:
1271 CC C compiler command
1272 CFLAGS C compiler flags
1273 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1274 nonstandard directory <lib dir>
81ecdfbb
RW
1275 LIBS libraries to pass to the linker, e.g. -l<library>
1276 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1277 you have headers in a nonstandard directory <include dir>
b585a9fa
EZ
1278 CPP C preprocessor
1279
1280Use these variables to override the choices made by `configure' or to help
1281it to find libraries and programs with nonstandard names/locations.
1282
4a11f206 1283Report bugs to the package provider.
b585a9fa 1284_ACEOF
81ecdfbb 1285ac_status=$?
b585a9fa
EZ
1286fi
1287
1288if test "$ac_init_help" = "recursive"; then
1289 # If there are subdirs, report their specific --help.
b585a9fa 1290 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1291 test -d "$ac_dir" ||
1292 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1293 continue
b585a9fa
EZ
1294 ac_builddir=.
1295
81ecdfbb
RW
1296case "$ac_dir" in
1297.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1298*)
1299 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1300 # A ".." for each directory in $ac_dir_suffix.
1301 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1302 case $ac_top_builddir_sub in
1303 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1304 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1305 esac ;;
1306esac
1307ac_abs_top_builddir=$ac_pwd
1308ac_abs_builddir=$ac_pwd$ac_dir_suffix
1309# for backward compatibility:
1310ac_top_builddir=$ac_top_build_prefix
b585a9fa
EZ
1311
1312case $srcdir in
81ecdfbb 1313 .) # We are building in place.
b585a9fa 1314 ac_srcdir=.
81ecdfbb
RW
1315 ac_top_srcdir=$ac_top_builddir_sub
1316 ac_abs_top_srcdir=$ac_pwd ;;
1317 [\\/]* | ?:[\\/]* ) # Absolute name.
b585a9fa 1318 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1319 ac_top_srcdir=$srcdir
1320 ac_abs_top_srcdir=$srcdir ;;
1321 *) # Relative name.
1322 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1323 ac_top_srcdir=$ac_top_build_prefix$srcdir
1324 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b585a9fa 1325esac
81ecdfbb
RW
1326ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1327
1328 cd "$ac_dir" || { ac_status=$?; continue; }
1329 # Check for guested configure.
1330 if test -f "$ac_srcdir/configure.gnu"; then
1331 echo &&
1332 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1333 elif test -f "$ac_srcdir/configure"; then
1334 echo &&
1335 $SHELL "$ac_srcdir/configure" --help=recursive
b585a9fa 1336 else
81ecdfbb
RW
1337 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1338 fi || ac_status=$?
1339 cd "$ac_pwd" || { ac_status=$?; break; }
b585a9fa
EZ
1340 done
1341fi
1342
81ecdfbb 1343test -n "$ac_init_help" && exit $ac_status
b585a9fa
EZ
1344if $ac_init_version; then
1345 cat <<\_ACEOF
81ecdfbb 1346configure
4a11f206 1347generated by GNU Autoconf 2.64
b585a9fa 1348
4a11f206 1349Copyright (C) 2009 Free Software Foundation, Inc.
b585a9fa
EZ
1350This configure script is free software; the Free Software Foundation
1351gives unlimited permission to copy, distribute and modify it.
1352_ACEOF
81ecdfbb 1353 exit
b585a9fa 1354fi
4a11f206
PP
1355
1356## ------------------------ ##
1357## Autoconf initialization. ##
1358## ------------------------ ##
1359
1360# ac_fn_c_try_compile LINENO
1361# --------------------------
1362# Try to compile conftest.$ac_ext, and return whether this succeeded.
1363ac_fn_c_try_compile ()
1364{
1365 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1366 rm -f conftest.$ac_objext
1367 if { { ac_try="$ac_compile"
1368case "(($ac_try" in
1369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1370 *) ac_try_echo=$ac_try;;
1371esac
1372eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1373$as_echo "$ac_try_echo"; } >&5
1374 (eval "$ac_compile") 2>conftest.err
1375 ac_status=$?
1376 if test -s conftest.err; then
1377 grep -v '^ *+' conftest.err >conftest.er1
1378 cat conftest.er1 >&5
1379 mv -f conftest.er1 conftest.err
1380 fi
1381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1382 test $ac_status = 0; } && {
1383 test -z "$ac_c_werror_flag" ||
1384 test ! -s conftest.err
1385 } && test -s conftest.$ac_objext; then :
1386 ac_retval=0
1387else
1388 $as_echo "$as_me: failed program was:" >&5
1389sed 's/^/| /' conftest.$ac_ext >&5
1390
1391 ac_retval=1
1392fi
1393 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1394 return $ac_retval
1395
1396} # ac_fn_c_try_compile
1397
1398# ac_fn_c_try_cpp LINENO
1399# ----------------------
1400# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1401ac_fn_c_try_cpp ()
1402{
1403 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1404 if { { ac_try="$ac_cpp conftest.$ac_ext"
1405case "(($ac_try" in
1406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1407 *) ac_try_echo=$ac_try;;
1408esac
1409eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1410$as_echo "$ac_try_echo"; } >&5
1411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1412 ac_status=$?
1413 if test -s conftest.err; then
1414 grep -v '^ *+' conftest.err >conftest.er1
1415 cat conftest.er1 >&5
1416 mv -f conftest.er1 conftest.err
1417 fi
1418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1419 test $ac_status = 0; } >/dev/null && {
1420 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1421 test ! -s conftest.err
1422 }; then :
1423 ac_retval=0
1424else
1425 $as_echo "$as_me: failed program was:" >&5
1426sed 's/^/| /' conftest.$ac_ext >&5
1427
1428 ac_retval=1
1429fi
1430 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1431 return $ac_retval
1432
1433} # ac_fn_c_try_cpp
1434
1435# ac_fn_c_try_link LINENO
1436# -----------------------
1437# Try to link conftest.$ac_ext, and return whether this succeeded.
1438ac_fn_c_try_link ()
1439{
1440 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1441 rm -f conftest.$ac_objext conftest$ac_exeext
1442 if { { ac_try="$ac_link"
1443case "(($ac_try" in
1444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1445 *) ac_try_echo=$ac_try;;
1446esac
1447eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1448$as_echo "$ac_try_echo"; } >&5
1449 (eval "$ac_link") 2>conftest.err
1450 ac_status=$?
1451 if test -s conftest.err; then
1452 grep -v '^ *+' conftest.err >conftest.er1
1453 cat conftest.er1 >&5
1454 mv -f conftest.er1 conftest.err
1455 fi
1456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1457 test $ac_status = 0; } && {
1458 test -z "$ac_c_werror_flag" ||
1459 test ! -s conftest.err
1460 } && test -s conftest$ac_exeext && {
1461 test "$cross_compiling" = yes ||
1462 $as_test_x conftest$ac_exeext
1463 }; then :
1464 ac_retval=0
1465else
1466 $as_echo "$as_me: failed program was:" >&5
1467sed 's/^/| /' conftest.$ac_ext >&5
1468
1469 ac_retval=1
1470fi
1471 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1472 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1473 # interfere with the next link command; also delete a directory that is
1474 # left behind by Apple's compiler. We do this before executing the actions.
1475 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1476 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1477 return $ac_retval
1478
1479} # ac_fn_c_try_link
1480
1481# ac_fn_c_try_run LINENO
1482# ----------------------
1483# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1484# that executables *can* be run.
1485ac_fn_c_try_run ()
1486{
1487 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1488 if { { ac_try="$ac_link"
1489case "(($ac_try" in
1490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1491 *) ac_try_echo=$ac_try;;
1492esac
1493eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1494$as_echo "$ac_try_echo"; } >&5
1495 (eval "$ac_link") 2>&5
1496 ac_status=$?
1497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1498 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1499 { { case "(($ac_try" in
1500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1501 *) ac_try_echo=$ac_try;;
1502esac
1503eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1504$as_echo "$ac_try_echo"; } >&5
1505 (eval "$ac_try") 2>&5
1506 ac_status=$?
1507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1508 test $ac_status = 0; }; }; then :
1509 ac_retval=0
1510else
1511 $as_echo "$as_me: program exited with status $ac_status" >&5
1512 $as_echo "$as_me: failed program was:" >&5
1513sed 's/^/| /' conftest.$ac_ext >&5
1514
1515 ac_retval=$ac_status
1516fi
1517 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1518 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1519 return $ac_retval
1520
1521} # ac_fn_c_try_run
1522
1523# ac_fn_c_check_func LINENO FUNC VAR
1524# ----------------------------------
1525# Tests whether FUNC exists, setting the cache variable VAR accordingly
1526ac_fn_c_check_func ()
1527{
1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1530$as_echo_n "checking for $2... " >&6; }
1531if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1532 $as_echo_n "(cached) " >&6
1533else
1534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1535/* end confdefs.h. */
1536/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1538#define $2 innocuous_$2
1539
1540/* System header to define __stub macros and hopefully few prototypes,
1541 which can conflict with char $2 (); below.
1542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1543 <limits.h> exists even on freestanding compilers. */
1544
1545#ifdef __STDC__
1546# include <limits.h>
1547#else
1548# include <assert.h>
1549#endif
1550
1551#undef $2
1552
1553/* Override any GCC internal prototype to avoid an error.
1554 Use char because int might match the return type of a GCC
1555 builtin and then its argument prototype would still apply. */
1556#ifdef __cplusplus
1557extern "C"
1558#endif
1559char $2 ();
1560/* The GNU C library defines this for functions which it implements
1561 to always fail with ENOSYS. Some functions are actually named
1562 something starting with __ and the normal name is an alias. */
1563#if defined __stub_$2 || defined __stub___$2
1564choke me
1565#endif
1566
1567int
1568main ()
1569{
1570return $2 ();
1571 ;
1572 return 0;
1573}
1574_ACEOF
1575if ac_fn_c_try_link "$LINENO"; then :
1576 eval "$3=yes"
1577else
1578 eval "$3=no"
1579fi
1580rm -f core conftest.err conftest.$ac_objext \
1581 conftest$ac_exeext conftest.$ac_ext
1582fi
1583eval ac_res=\$$3
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1585$as_echo "$ac_res" >&6; }
1586 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1587
1588} # ac_fn_c_check_func
1589
1590# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1591# -------------------------------------------------------
1592# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1593# the include files in INCLUDES and setting the cache variable VAR
1594# accordingly.
1595ac_fn_c_check_header_mongrel ()
1596{
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1600$as_echo_n "checking for $2... " >&6; }
1601if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1602 $as_echo_n "(cached) " >&6
1603fi
1604eval ac_res=\$$3
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1606$as_echo "$ac_res" >&6; }
1607else
1608 # Is the header compilable?
1609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1610$as_echo_n "checking $2 usability... " >&6; }
1611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1612/* end confdefs.h. */
1613$4
1614#include <$2>
1615_ACEOF
1616if ac_fn_c_try_compile "$LINENO"; then :
1617 ac_header_compiler=yes
1618else
1619 ac_header_compiler=no
1620fi
1621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1623$as_echo "$ac_header_compiler" >&6; }
1624
1625# Is the header present?
1626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1627$as_echo_n "checking $2 presence... " >&6; }
1628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1629/* end confdefs.h. */
1630#include <$2>
1631_ACEOF
1632if ac_fn_c_try_cpp "$LINENO"; then :
1633 ac_header_preproc=yes
1634else
1635 ac_header_preproc=no
1636fi
1637rm -f conftest.err conftest.$ac_ext
1638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1639$as_echo "$ac_header_preproc" >&6; }
1640
1641# So? What about this header?
1642case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1643 yes:no: )
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1645$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1647$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1648 ;;
1649 no:yes:* )
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1651$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1653$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1655$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1657$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1659$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1660 ;;
1661esac
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663$as_echo_n "checking for $2... " >&6; }
1664if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1665 $as_echo_n "(cached) " >&6
1666else
1667 eval "$3=\$ac_header_compiler"
1668fi
1669eval ac_res=\$$3
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1671$as_echo "$ac_res" >&6; }
1672fi
1673 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1674
1675} # ac_fn_c_check_header_mongrel
1676
1677# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1678# -------------------------------------------------------
1679# Tests whether HEADER exists and can be compiled using the include files in
1680# INCLUDES, setting the cache variable VAR accordingly.
1681ac_fn_c_check_header_compile ()
1682{
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685$as_echo_n "checking for $2... " >&6; }
1686if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1687 $as_echo_n "(cached) " >&6
1688else
1689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1690/* end confdefs.h. */
1691$4
1692#include <$2>
1693_ACEOF
1694if ac_fn_c_try_compile "$LINENO"; then :
1695 eval "$3=yes"
1696else
1697 eval "$3=no"
1698fi
1699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1700fi
1701eval ac_res=\$$3
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1703$as_echo "$ac_res" >&6; }
1704 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1705
1706} # ac_fn_c_check_header_compile
81ecdfbb
RW
1707cat >config.log <<_ACEOF
1708This file contains any messages produced by compilers while
1709running configure, to aid debugging if configure makes a mistake.
1710
1711It was created by $as_me, which was
4a11f206 1712generated by GNU Autoconf 2.64. Invocation command line was
81ecdfbb
RW
1713
1714 $ $0 $@
1715
1716_ACEOF
1717exec 5>>config.log
1718{
1719cat <<_ASUNAME
1720## --------- ##
1721## Platform. ##
1722## --------- ##
1723
1724hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1725uname -m = `(uname -m) 2>/dev/null || echo unknown`
1726uname -r = `(uname -r) 2>/dev/null || echo unknown`
1727uname -s = `(uname -s) 2>/dev/null || echo unknown`
1728uname -v = `(uname -v) 2>/dev/null || echo unknown`
1729
1730/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1731/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1732
1733/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1734/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1735/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1736/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1737/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1738/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1739/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1740
1741_ASUNAME
1742
1743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744for as_dir in $PATH
1745do
1746 IFS=$as_save_IFS
1747 test -z "$as_dir" && as_dir=.
4a11f206
PP
1748 $as_echo "PATH: $as_dir"
1749 done
81ecdfbb
RW
1750IFS=$as_save_IFS
1751
1752} >&5
1753
1754cat >&5 <<_ACEOF
1755
1756
1757## ----------- ##
1758## Core tests. ##
1759## ----------- ##
1760
1761_ACEOF
b585a9fa
EZ
1762
1763
1764# Keep a trace of the command line.
1765# Strip out --no-create and --no-recursion so they do not pile up.
1766# Strip out --silent because we don't want to record it for future runs.
1767# Also quote any args containing shell meta-characters.
1768# Make two passes to allow for proper duplicate-argument suppression.
1769ac_configure_args=
1770ac_configure_args0=
1771ac_configure_args1=
b585a9fa
EZ
1772ac_must_keep_next=false
1773for ac_pass in 1 2
1774do
1775 for ac_arg
1776 do
1777 case $ac_arg in
1778 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1779 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1780 | -silent | --silent | --silen | --sile | --sil)
1781 continue ;;
81ecdfbb
RW
1782 *\'*)
1783 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b585a9fa
EZ
1784 esac
1785 case $ac_pass in
4a11f206 1786 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b585a9fa 1787 2)
4a11f206 1788 as_fn_append ac_configure_args1 " '$ac_arg'"
b585a9fa
EZ
1789 if test $ac_must_keep_next = true; then
1790 ac_must_keep_next=false # Got value, back to normal.
1791 else
1792 case $ac_arg in
1793 *=* | --config-cache | -C | -disable-* | --disable-* \
1794 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1795 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1796 | -with-* | --with-* | -without-* | --without-* | --x)
1797 case "$ac_configure_args0 " in
1798 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1799 esac
1800 ;;
1801 -* ) ac_must_keep_next=true ;;
1802 esac
1803 fi
4a11f206 1804 as_fn_append ac_configure_args " '$ac_arg'"
b585a9fa
EZ
1805 ;;
1806 esac
1807 done
1808done
4a11f206
PP
1809{ ac_configure_args0=; unset ac_configure_args0;}
1810{ ac_configure_args1=; unset ac_configure_args1;}
b585a9fa
EZ
1811
1812# When interrupted or exit'd, cleanup temporary files, and complete
1813# config.log. We remove comments because anyway the quotes in there
1814# would cause problems or look ugly.
81ecdfbb
RW
1815# WARNING: Use '\'' to represent an apostrophe within the trap.
1816# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b585a9fa
EZ
1817trap 'exit_status=$?
1818 # Save into config.log some information that might help in debugging.
1819 {
1820 echo
1821
1822 cat <<\_ASBOX
1823## ---------------- ##
1824## Cache variables. ##
1825## ---------------- ##
1826_ASBOX
1827 echo
1828 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1829(
1830 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1831 eval ac_val=\$$ac_var
1832 case $ac_val in #(
1833 *${as_nl}*)
1834 case $ac_var in #(
4a11f206 1835 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
81ecdfbb
RW
1836$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1837 esac
1838 case $ac_var in #(
1839 _ | IFS | as_nl) ;; #(
1840 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4a11f206 1841 *) { eval $ac_var=; unset $ac_var;} ;;
81ecdfbb
RW
1842 esac ;;
1843 esac
1844 done
b585a9fa 1845 (set) 2>&1 |
81ecdfbb
RW
1846 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1847 *${as_nl}ac_space=\ *)
b585a9fa 1848 sed -n \
81ecdfbb
RW
1849 "s/'\''/'\''\\\\'\'''\''/g;
1850 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1851 ;; #(
b585a9fa 1852 *)
81ecdfbb 1853 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b585a9fa 1854 ;;
81ecdfbb
RW
1855 esac |
1856 sort
1857)
b585a9fa
EZ
1858 echo
1859
1860 cat <<\_ASBOX
1861## ----------------- ##
1862## Output variables. ##
1863## ----------------- ##
1864_ASBOX
1865 echo
1866 for ac_var in $ac_subst_vars
1867 do
81ecdfbb
RW
1868 eval ac_val=\$$ac_var
1869 case $ac_val in
1870 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1871 esac
1872 $as_echo "$ac_var='\''$ac_val'\''"
b585a9fa
EZ
1873 done | sort
1874 echo
1875
1876 if test -n "$ac_subst_files"; then
1877 cat <<\_ASBOX
81ecdfbb
RW
1878## ------------------- ##
1879## File substitutions. ##
1880## ------------------- ##
b585a9fa
EZ
1881_ASBOX
1882 echo
1883 for ac_var in $ac_subst_files
1884 do
81ecdfbb
RW
1885 eval ac_val=\$$ac_var
1886 case $ac_val in
1887 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1888 esac
1889 $as_echo "$ac_var='\''$ac_val'\''"
b585a9fa
EZ
1890 done | sort
1891 echo
1892 fi
1893
1894 if test -s confdefs.h; then
1895 cat <<\_ASBOX
1896## ----------- ##
1897## confdefs.h. ##
1898## ----------- ##
1899_ASBOX
1900 echo
81ecdfbb 1901 cat confdefs.h
b585a9fa
EZ
1902 echo
1903 fi
1904 test "$ac_signal" != 0 &&
81ecdfbb
RW
1905 $as_echo "$as_me: caught signal $ac_signal"
1906 $as_echo "$as_me: exit $exit_status"
b585a9fa 1907 } >&5
81ecdfbb
RW
1908 rm -f core *.core core.conftest.* &&
1909 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b585a9fa 1910 exit $exit_status
81ecdfbb 1911' 0
b585a9fa 1912for ac_signal in 1 2 13 15; do
4a11f206 1913 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b585a9fa
EZ
1914done
1915ac_signal=0
1916
1917# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
1918rm -f -r conftest* confdefs.h
1919
4a11f206
PP
1920$as_echo "/* confdefs.h */" > confdefs.h
1921
b585a9fa
EZ
1922# Predefined preprocessor variables.
1923
1924cat >>confdefs.h <<_ACEOF
1925#define PACKAGE_NAME "$PACKAGE_NAME"
1926_ACEOF
1927
b585a9fa
EZ
1928cat >>confdefs.h <<_ACEOF
1929#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1930_ACEOF
1931
b585a9fa
EZ
1932cat >>confdefs.h <<_ACEOF
1933#define PACKAGE_VERSION "$PACKAGE_VERSION"
1934_ACEOF
1935
b585a9fa
EZ
1936cat >>confdefs.h <<_ACEOF
1937#define PACKAGE_STRING "$PACKAGE_STRING"
1938_ACEOF
1939
81ecdfbb 1940cat >>confdefs.h <<_ACEOF
cc88a640 1941#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
81ecdfbb
RW
1942_ACEOF
1943
4a11f206
PP
1944cat >>confdefs.h <<_ACEOF
1945#define PACKAGE_URL "$PACKAGE_URL"
1946_ACEOF
1947
b585a9fa
EZ
1948
1949# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
1950# Prefer an explicitly selected file to automatically selected ones.
1951ac_site_file1=NONE
1952ac_site_file2=NONE
1953if test -n "$CONFIG_SITE"; then
1954 ac_site_file1=$CONFIG_SITE
1955elif test "x$prefix" != xNONE; then
1956 ac_site_file1=$prefix/share/config.site
1957 ac_site_file2=$prefix/etc/config.site
1958else
1959 ac_site_file1=$ac_default_prefix/share/config.site
1960 ac_site_file2=$ac_default_prefix/etc/config.site
b585a9fa 1961fi
81ecdfbb
RW
1962for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1963do
1964 test "x$ac_site_file" = xNONE && continue
b585a9fa 1965 if test -r "$ac_site_file"; then
4a11f206 1966 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
81ecdfbb 1967$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b585a9fa
EZ
1968 sed 's/^/| /' "$ac_site_file" >&5
1969 . "$ac_site_file"
1970 fi
1971done
1972
1973if test -r "$cache_file"; then
1974 # Some versions of bash will fail to source /dev/null (special
1975 # files actually), so we avoid doing that.
1976 if test -f "$cache_file"; then
4a11f206 1977 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
81ecdfbb 1978$as_echo "$as_me: loading cache $cache_file" >&6;}
b585a9fa 1979 case $cache_file in
81ecdfbb
RW
1980 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1981 *) . "./$cache_file";;
b585a9fa
EZ
1982 esac
1983 fi
1984else
4a11f206 1985 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
81ecdfbb 1986$as_echo "$as_me: creating cache $cache_file" >&6;}
b585a9fa
EZ
1987 >$cache_file
1988fi
1989
1990# Check that the precious variables saved in the cache have kept the same
1991# value.
1992ac_cache_corrupted=false
81ecdfbb 1993for ac_var in $ac_precious_vars; do
b585a9fa
EZ
1994 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1995 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
1996 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1997 eval ac_new_val=\$ac_env_${ac_var}_value
b585a9fa
EZ
1998 case $ac_old_set,$ac_new_set in
1999 set,)
4a11f206 2000 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
81ecdfbb 2001$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b585a9fa
EZ
2002 ac_cache_corrupted=: ;;
2003 ,set)
4a11f206 2004 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
81ecdfbb 2005$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b585a9fa
EZ
2006 ac_cache_corrupted=: ;;
2007 ,);;
2008 *)
2009 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2010 # differences in whitespace do not lead to failure.
2011 ac_old_val_w=`echo x $ac_old_val`
2012 ac_new_val_w=`echo x $ac_new_val`
2013 if test "$ac_old_val_w" != "$ac_new_val_w"; then
4a11f206 2014 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
81ecdfbb
RW
2015$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2016 ac_cache_corrupted=:
2017 else
4a11f206 2018 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
81ecdfbb
RW
2019$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2020 eval $ac_var=\$ac_old_val
2021 fi
4a11f206 2022 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
81ecdfbb 2023$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
4a11f206 2024 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
81ecdfbb 2025$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b585a9fa
EZ
2026 fi;;
2027 esac
2028 # Pass precious variables to config.status.
2029 if test "$ac_new_set" = set; then
2030 case $ac_new_val in
81ecdfbb 2031 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b585a9fa
EZ
2032 *) ac_arg=$ac_var=$ac_new_val ;;
2033 esac
2034 case " $ac_configure_args " in
2035 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
4a11f206 2036 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b585a9fa
EZ
2037 esac
2038 fi
2039done
2040if $ac_cache_corrupted; then
4a11f206 2041 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
81ecdfbb 2042$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4a11f206 2043 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
81ecdfbb 2044$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
4a11f206 2045 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
b585a9fa 2046fi
4a11f206
PP
2047## -------------------- ##
2048## Main body of script. ##
2049## -------------------- ##
b585a9fa
EZ
2050
2051ac_ext=c
2052ac_cpp='$CPP $CPPFLAGS'
2053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2055ac_compiler_gnu=$ac_cv_c_compiler_gnu
2056
2057
81ecdfbb 2058ac_config_headers="$ac_config_headers config.h"
b585a9fa
EZ
2059
2060VERSION=0.4
2061
2062
2063
2064old_CFLAGS="$CFLAGS"
2065ac_ext=c
2066ac_cpp='$CPP $CPPFLAGS'
2067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2069ac_compiler_gnu=$ac_cv_c_compiler_gnu
2070if test -n "$ac_tool_prefix"; then
2071 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2072set dummy ${ac_tool_prefix}gcc; ac_word=$2
4a11f206 2073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
81ecdfbb 2074$as_echo_n "checking for $ac_word... " >&6; }
4a11f206 2075if test "${ac_cv_prog_CC+set}" = set; then :
81ecdfbb 2076 $as_echo_n "(cached) " >&6
b585a9fa
EZ
2077else
2078 if test -n "$CC"; then
2079 ac_cv_prog_CC="$CC" # Let the user override the test.
2080else
2081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082for as_dir in $PATH
2083do
2084 IFS=$as_save_IFS
2085 test -z "$as_dir" && as_dir=.
4a11f206 2086 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b585a9fa 2088 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4a11f206 2089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b585a9fa
EZ
2090 break 2
2091 fi
2092done
4a11f206 2093 done
81ecdfbb 2094IFS=$as_save_IFS
b585a9fa
EZ
2095
2096fi
2097fi
2098CC=$ac_cv_prog_CC
2099if test -n "$CC"; then
4a11f206 2100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
81ecdfbb 2101$as_echo "$CC" >&6; }
b585a9fa 2102else
4a11f206 2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81ecdfbb 2104$as_echo "no" >&6; }
b585a9fa
EZ
2105fi
2106
81ecdfbb 2107
b585a9fa
EZ
2108fi
2109if test -z "$ac_cv_prog_CC"; then
2110 ac_ct_CC=$CC
2111 # Extract the first word of "gcc", so it can be a program name with args.
2112set dummy gcc; ac_word=$2
4a11f206 2113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
81ecdfbb 2114$as_echo_n "checking for $ac_word... " >&6; }
4a11f206 2115if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
81ecdfbb 2116 $as_echo_n "(cached) " >&6
b585a9fa
EZ
2117else
2118 if test -n "$ac_ct_CC"; then
2119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2120else
2121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122for as_dir in $PATH
2123do
2124 IFS=$as_save_IFS
2125 test -z "$as_dir" && as_dir=.
4a11f206 2126 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b585a9fa 2128 ac_cv_prog_ac_ct_CC="gcc"
4a11f206 2129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b585a9fa
EZ
2130 break 2
2131 fi
2132done
4a11f206 2133 done
81ecdfbb 2134IFS=$as_save_IFS
b585a9fa
EZ
2135
2136fi
2137fi
2138ac_ct_CC=$ac_cv_prog_ac_ct_CC
2139if test -n "$ac_ct_CC"; then
4a11f206 2140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
81ecdfbb 2141$as_echo "$ac_ct_CC" >&6; }
b585a9fa 2142else
4a11f206 2143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81ecdfbb 2144$as_echo "no" >&6; }
b585a9fa
EZ
2145fi
2146
81ecdfbb
RW
2147 if test "x$ac_ct_CC" = x; then
2148 CC=""
2149 else
2150 case $cross_compiling:$ac_tool_warned in
2151yes:)
4a11f206 2152{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
81ecdfbb
RW
2153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2154ac_tool_warned=yes ;;
2155esac
2156 CC=$ac_ct_CC
2157 fi
b585a9fa
EZ
2158else
2159 CC="$ac_cv_prog_CC"
2160fi
2161
2162if test -z "$CC"; then
81ecdfbb
RW
2163 if test -n "$ac_tool_prefix"; then
2164 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b585a9fa 2165set dummy ${ac_tool_prefix}cc; ac_word=$2
4a11f206 2166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
81ecdfbb 2167$as_echo_n "checking for $ac_word... " >&6; }
4a11f206 2168if test "${ac_cv_prog_CC+set}" = set; then :
81ecdfbb 2169 $as_echo_n "(cached) " >&6
b585a9fa
EZ
2170else
2171 if test -n "$CC"; then
2172 ac_cv_prog_CC="$CC" # Let the user override the test.
2173else
2174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2175for as_dir in $PATH
2176do
2177 IFS=$as_save_IFS
2178 test -z "$as_dir" && as_dir=.
4a11f206 2179 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b585a9fa 2181 ac_cv_prog_CC="${ac_tool_prefix}cc"
4a11f206 2182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b585a9fa
EZ
2183 break 2
2184 fi
2185done
4a11f206 2186 done
81ecdfbb 2187IFS=$as_save_IFS
b585a9fa
EZ
2188
2189fi
2190fi
2191CC=$ac_cv_prog_CC
2192if test -n "$CC"; then
4a11f206 2193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
81ecdfbb 2194$as_echo "$CC" >&6; }
b585a9fa 2195else
4a11f206 2196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81ecdfbb 2197$as_echo "no" >&6; }
b585a9fa
EZ
2198fi
2199
b585a9fa 2200
81ecdfbb 2201 fi
b585a9fa
EZ
2202fi
2203if test -z "$CC"; then
2204 # Extract the first word of "cc", so it can be a program name with args.
2205set dummy cc; ac_word=$2
4a11f206 2206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
81ecdfbb 2207$as_echo_n "checking for $ac_word... " >&6; }
4a11f206 2208if test "${ac_cv_prog_CC+set}" = set; then :
81ecdfbb 2209 $as_echo_n "(cached) " >&6
b585a9fa
EZ
2210else
2211 if test -n "$CC"; then
2212 ac_cv_prog_CC="$CC" # Let the user override the test.
2213else
2214 ac_prog_rejected=no
2215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216for as_dir in $PATH
2217do
2218 IFS=$as_save_IFS
2219 test -z "$as_dir" && as_dir=.
4a11f206 2220 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b585a9fa
EZ
2222 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2223 ac_prog_rejected=yes
2224 continue
2225 fi
2226 ac_cv_prog_CC="cc"
4a11f206 2227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b585a9fa
EZ
2228 break 2
2229 fi
2230done
4a11f206 2231 done
81ecdfbb 2232IFS=$as_save_IFS
b585a9fa
EZ
2233
2234if test $ac_prog_rejected = yes; then
2235 # We found a bogon in the path, so make sure we never use it.
2236 set dummy $ac_cv_prog_CC
2237 shift
2238 if test $# != 0; then
2239 # We chose a different compiler from the bogus one.
2240 # However, it has the same basename, so the bogon will be chosen
2241 # first if we set CC to just the basename; use the full file name.
2242 shift
2243 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2244 fi
2245fi
2246fi
2247fi
2248CC=$ac_cv_prog_CC
2249if test -n "$CC"; then
4a11f206 2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
81ecdfbb 2251$as_echo "$CC" >&6; }
b585a9fa 2252else
4a11f206 2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81ecdfbb 2254$as_echo "no" >&6; }
b585a9fa
EZ
2255fi
2256
81ecdfbb 2257
b585a9fa
EZ
2258fi
2259if test -z "$CC"; then
2260 if test -n "$ac_tool_prefix"; then
81ecdfbb 2261 for ac_prog in cl.exe
b585a9fa
EZ
2262 do
2263 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2264set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4a11f206 2265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
81ecdfbb 2266$as_echo_n "checking for $ac_word... " >&6; }
4a11f206 2267if test "${ac_cv_prog_CC+set}" = set; then :
81ecdfbb 2268 $as_echo_n "(cached) " >&6
b585a9fa
EZ
2269else
2270 if test -n "$CC"; then
2271 ac_cv_prog_CC="$CC" # Let the user override the test.
2272else
2273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274for as_dir in $PATH
2275do
2276 IFS=$as_save_IFS
2277 test -z "$as_dir" && as_dir=.
4a11f206 2278 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b585a9fa 2280 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4a11f206 2281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b585a9fa
EZ
2282 break 2
2283 fi
2284done
4a11f206 2285 done
81ecdfbb 2286IFS=$as_save_IFS
b585a9fa
EZ
2287
2288fi
2289fi
2290CC=$ac_cv_prog_CC
2291if test -n "$CC"; then
4a11f206 2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
81ecdfbb 2293$as_echo "$CC" >&6; }
b585a9fa 2294else
4a11f206 2295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81ecdfbb 2296$as_echo "no" >&6; }
b585a9fa
EZ
2297fi
2298
81ecdfbb 2299
b585a9fa
EZ
2300 test -n "$CC" && break
2301 done
2302fi
2303if test -z "$CC"; then
2304 ac_ct_CC=$CC
81ecdfbb 2305 for ac_prog in cl.exe
b585a9fa
EZ
2306do
2307 # Extract the first word of "$ac_prog", so it can be a program name with args.
2308set dummy $ac_prog; ac_word=$2
4a11f206 2309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
81ecdfbb 2310$as_echo_n "checking for $ac_word... " >&6; }
4a11f206 2311if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
81ecdfbb 2312 $as_echo_n "(cached) " >&6
b585a9fa
EZ
2313else
2314 if test -n "$ac_ct_CC"; then
2315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2316else
2317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318for as_dir in $PATH
2319do
2320 IFS=$as_save_IFS
2321 test -z "$as_dir" && as_dir=.
4a11f206 2322 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b585a9fa 2324 ac_cv_prog_ac_ct_CC="$ac_prog"
4a11f206 2325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b585a9fa
EZ
2326 break 2
2327 fi
2328done
4a11f206 2329 done
81ecdfbb 2330IFS=$as_save_IFS
b585a9fa
EZ
2331
2332fi
2333fi
2334ac_ct_CC=$ac_cv_prog_ac_ct_CC
2335if test -n "$ac_ct_CC"; then
4a11f206 2336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
81ecdfbb 2337$as_echo "$ac_ct_CC" >&6; }
b585a9fa 2338else
4a11f206 2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81ecdfbb 2340$as_echo "no" >&6; }
b585a9fa
EZ
2341fi
2342
81ecdfbb 2343
b585a9fa
EZ
2344 test -n "$ac_ct_CC" && break
2345done
2346
81ecdfbb
RW
2347 if test "x$ac_ct_CC" = x; then
2348 CC=""
2349 else
2350 case $cross_compiling:$ac_tool_warned in
2351yes:)
4a11f206 2352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
81ecdfbb
RW
2353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2354ac_tool_warned=yes ;;
2355esac
2356 CC=$ac_ct_CC
2357 fi
b585a9fa
EZ
2358fi
2359
2360fi
2361
2362
4a11f206 2363test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
81ecdfbb 2364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4a11f206
PP
2365as_fn_error "no acceptable C compiler found in \$PATH
2366See \`config.log' for more details." "$LINENO" 5; }
b585a9fa
EZ
2367
2368# Provide some information about the compiler.
4a11f206 2369$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
81ecdfbb
RW
2370set X $ac_compile
2371ac_compiler=$2
4a11f206
PP
2372for ac_option in --version -v -V -qversion; do
2373 { { ac_try="$ac_compiler $ac_option >&5"
81ecdfbb
RW
2374case "(($ac_try" in
2375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2376 *) ac_try_echo=$ac_try;;
2377esac
4a11f206
PP
2378eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2379$as_echo "$ac_try_echo"; } >&5
2380 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b585a9fa 2381 ac_status=$?
4a11f206
PP
2382 if test -s conftest.err; then
2383 sed '10a\
2384... rest of stderr output deleted ...
2385 10q' conftest.err >conftest.er1
2386 cat conftest.er1 >&5
2387 rm -f conftest.er1 conftest.err
2388 fi
2389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2390 test $ac_status = 0; }
2391done
b585a9fa 2392
4a11f206 2393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b585a9fa 2394/* end confdefs.h. */
4a11f206 2395#include <stdio.h>
b585a9fa
EZ
2396int
2397main ()
2398{
4a11f206
PP
2399FILE *f = fopen ("conftest.out", "w");
2400 return ferror (f) || fclose (f) != 0;
b585a9fa
EZ
2401
2402 ;
2403 return 0;
2404}
2405_ACEOF
2406ac_clean_files_save=$ac_clean_files
4a11f206 2407ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
b585a9fa
EZ
2408# Try to create an executable without -o first, disregard a.out.
2409# It will help us diagnose broken compilers, and finding out an intuition
2410# of exeext.
4a11f206 2411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
81ecdfbb
RW
2412$as_echo_n "checking for C compiler default output file name... " >&6; }
2413ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2414
2415# The possible output files:
2416ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2417
2418ac_rmfiles=
2419for ac_file in $ac_files
2420do
2421 case $ac_file in
2422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2423 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2424 esac
2425done
2426rm -f $ac_rmfiles
2427
4a11f206 2428if { { ac_try="$ac_link_default"
81ecdfbb
RW
2429case "(($ac_try" in
2430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2431 *) ac_try_echo=$ac_try;;
2432esac
4a11f206
PP
2433eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2434$as_echo "$ac_try_echo"; } >&5
81ecdfbb 2435 (eval "$ac_link_default") 2>&5
b585a9fa 2436 ac_status=$?
4a11f206
PP
2437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2438 test $ac_status = 0; }; then :
81ecdfbb
RW
2439 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2440# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2441# in a Makefile. We should not override ac_cv_exeext if it was cached,
2442# so that the user can short-circuit this test for compilers unknown to
2443# Autoconf.
2444for ac_file in $ac_files ''
b585a9fa
EZ
2445do
2446 test -f "$ac_file" || continue
2447 case $ac_file in
81ecdfbb 2448 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b585a9fa
EZ
2449 ;;
2450 [ab].out )
2451 # We found the default executable, but exeext='' is most
2452 # certainly right.
2453 break;;
2454 *.* )
4a11f206 2455 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
81ecdfbb
RW
2456 then :; else
2457 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2458 fi
2459 # We set ac_cv_exeext here because the later test for it is not
2460 # safe: cross compilers may not add the suffix if given an `-o'
2461 # argument, so we may need to know it at that point already.
2462 # Even if this section looks crufty: it has the advantage of
2463 # actually working.
b585a9fa
EZ
2464 break;;
2465 * )
2466 break;;
2467 esac
2468done
81ecdfbb
RW
2469test "$ac_cv_exeext" = no && ac_cv_exeext=
2470
b585a9fa 2471else
81ecdfbb
RW
2472 ac_file=''
2473fi
4a11f206 2474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
81ecdfbb 2475$as_echo "$ac_file" >&6; }
4a11f206 2476if test -z "$ac_file"; then :
81ecdfbb 2477 $as_echo "$as_me: failed program was:" >&5
b585a9fa
EZ
2478sed 's/^/| /' conftest.$ac_ext >&5
2479
4a11f206 2480{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
81ecdfbb 2481$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4a11f206
PP
2482{ as_fn_set_status 77
2483as_fn_error "C compiler cannot create executables
2484See \`config.log' for more details." "$LINENO" 5; }; }
b585a9fa 2485fi
b585a9fa 2486ac_exeext=$ac_cv_exeext
b585a9fa 2487
81ecdfbb 2488# Check that the compiler produces executables we can run. If not, either
b585a9fa 2489# the compiler is broken, or we cross compile.
4a11f206 2490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
81ecdfbb 2491$as_echo_n "checking whether the C compiler works... " >&6; }
b585a9fa
EZ
2492# If not cross compiling, check that we can run a simple program.
2493if test "$cross_compiling" != yes; then
2494 if { ac_try='./$ac_file'
4a11f206 2495 { { case "(($ac_try" in
81ecdfbb
RW
2496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497 *) ac_try_echo=$ac_try;;
2498esac
4a11f206
PP
2499eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2500$as_echo "$ac_try_echo"; } >&5
81ecdfbb 2501 (eval "$ac_try") 2>&5
b585a9fa 2502 ac_status=$?
4a11f206
PP
2503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2504 test $ac_status = 0; }; }; then
b585a9fa
EZ
2505 cross_compiling=no
2506 else
2507 if test "$cross_compiling" = maybe; then
2508 cross_compiling=yes
2509 else
4a11f206 2510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
81ecdfbb 2511$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4a11f206 2512as_fn_error "cannot run C compiled programs.
b585a9fa 2513If you meant to cross compile, use \`--host'.
4a11f206 2514See \`config.log' for more details." "$LINENO" 5; }
b585a9fa
EZ
2515 fi
2516 fi
2517fi
4a11f206 2518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
81ecdfbb 2519$as_echo "yes" >&6; }
b585a9fa 2520
4a11f206 2521rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
b585a9fa 2522ac_clean_files=$ac_clean_files_save
81ecdfbb 2523# Check that the compiler produces executables we can run. If not, either
b585a9fa 2524# the compiler is broken, or we cross compile.
4a11f206 2525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
81ecdfbb 2526$as_echo_n "checking whether we are cross compiling... " >&6; }
4a11f206 2527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
81ecdfbb
RW
2528$as_echo "$cross_compiling" >&6; }
2529
4a11f206 2530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
81ecdfbb 2531$as_echo_n "checking for suffix of executables... " >&6; }
4a11f206 2532if { { ac_try="$ac_link"
81ecdfbb
RW
2533case "(($ac_try" in
2534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535 *) ac_try_echo=$ac_try;;
2536esac
4a11f206
PP
2537eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2538$as_echo "$ac_try_echo"; } >&5
81ecdfbb 2539 (eval "$ac_link") 2>&5
b585a9fa 2540 ac_status=$?
4a11f206
PP
2541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2542 test $ac_status = 0; }; then :
b585a9fa
EZ
2543 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2544# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2545# work properly (i.e., refer to `conftest.exe'), while it won't with
2546# `rm'.
2547for ac_file in conftest.exe conftest conftest.*; do
2548 test -f "$ac_file" || continue
2549 case $ac_file in
81ecdfbb 2550 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b585a9fa 2551 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b585a9fa
EZ
2552 break;;
2553 * ) break;;
2554 esac
2555done
2556else
4a11f206 2557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
81ecdfbb 2558$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4a11f206
PP
2559as_fn_error "cannot compute suffix of executables: cannot compile and link
2560See \`config.log' for more details." "$LINENO" 5; }
b585a9fa 2561fi
b585a9fa 2562rm -f conftest$ac_cv_exeext
4a11f206 2563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
81ecdfbb 2564$as_echo "$ac_cv_exeext" >&6; }
b585a9fa
EZ
2565
2566rm -f conftest.$ac_ext
2567EXEEXT=$ac_cv_exeext
2568ac_exeext=$EXEEXT
4a11f206 2569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
81ecdfbb 2570$as_echo_n "checking for suffix of object files... " >&6; }
4a11f206 2571if test "${ac_cv_objext+set}" = set; then :
81ecdfbb 2572 $as_echo_n "(cached) " >&6
b585a9fa 2573else
4a11f206 2574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b585a9fa
EZ
2575/* end confdefs.h. */
2576
2577int
2578main ()
2579{
2580
2581 ;
2582 return 0;
2583}
2584_ACEOF
2585rm -f conftest.o conftest.obj
4a11f206 2586if { { ac_try="$ac_compile"
81ecdfbb
RW
2587case "(($ac_try" in
2588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589 *) ac_try_echo=$ac_try;;
2590esac
4a11f206
PP
2591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2592$as_echo "$ac_try_echo"; } >&5
81ecdfbb 2593 (eval "$ac_compile") 2>&5
b585a9fa 2594 ac_status=$?
4a11f206
PP
2595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2596 test $ac_status = 0; }; then :
81ecdfbb
RW
2597 for ac_file in conftest.o conftest.obj conftest.*; do
2598 test -f "$ac_file" || continue;
b585a9fa 2599 case $ac_file in
81ecdfbb 2600 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b585a9fa
EZ
2601 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2602 break;;
2603 esac
2604done
2605else
81ecdfbb 2606 $as_echo "$as_me: failed program was:" >&5
b585a9fa
EZ
2607sed 's/^/| /' conftest.$ac_ext >&5
2608
4a11f206 2609{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
81ecdfbb 2610$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4a11f206
PP
2611as_fn_error "cannot compute suffix of object files: cannot compile
2612See \`config.log' for more details." "$LINENO" 5; }
b585a9fa 2613fi
b585a9fa
EZ
2614rm -f conftest.$ac_cv_objext conftest.$ac_ext
2615fi
4a11f206 2616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
81ecdfbb 2617$as_echo "$ac_cv_objext" >&6; }
b585a9fa
EZ
2618OBJEXT=$ac_cv_objext
2619ac_objext=$OBJEXT
4a11f206 2620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
81ecdfbb 2621$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4a11f206 2622if test "${ac_cv_c_compiler_gnu+set}" = set; then :
81ecdfbb 2623 $as_echo_n "(cached) " >&6
b585a9fa 2624else
4a11f206 2625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b585a9fa
EZ
2626/* end confdefs.h. */
2627
2628int
2629main ()
2630{
2631#ifndef __GNUC__
2632 choke me
2633#endif
2634
2635 ;
2636 return 0;
2637}
2638_ACEOF
4a11f206 2639if ac_fn_c_try_compile "$LINENO"; then :
b585a9fa
EZ
2640 ac_compiler_gnu=yes
2641else
4a11f206 2642 ac_compiler_gnu=no
b585a9fa 2643fi
81ecdfbb 2644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b585a9fa
EZ
2645ac_cv_c_compiler_gnu=$ac_compiler_gnu
2646
2647fi
4a11f206 2648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
81ecdfbb
RW
2649$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2650if test $ac_compiler_gnu = yes; then
2651 GCC=yes
2652else
2653 GCC=
2654fi
b585a9fa
EZ
2655ac_test_CFLAGS=${CFLAGS+set}
2656ac_save_CFLAGS=$CFLAGS
4a11f206 2657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
81ecdfbb 2658$as_echo_n "checking whether $CC accepts -g... " >&6; }
4a11f206 2659if test "${ac_cv_prog_cc_g+set}" = set; then :
81ecdfbb 2660 $as_echo_n "(cached) " >&6
b585a9fa 2661else
81ecdfbb
RW
2662 ac_save_c_werror_flag=$ac_c_werror_flag
2663 ac_c_werror_flag=yes
2664 ac_cv_prog_cc_g=no
2665 CFLAGS="-g"
4a11f206 2666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b585a9fa
EZ
2667/* end confdefs.h. */
2668
2669int
2670main ()
2671{
2672
2673 ;
2674 return 0;
2675}
2676_ACEOF
4a11f206 2677if ac_fn_c_try_compile "$LINENO"; then :
b585a9fa
EZ
2678 ac_cv_prog_cc_g=yes
2679else
4a11f206
PP
2680 CFLAGS=""
2681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81ecdfbb
RW
2682/* end confdefs.h. */
2683
2684int
2685main ()
2686{
2687
2688 ;
2689 return 0;
2690}
2691_ACEOF
4a11f206 2692if ac_fn_c_try_compile "$LINENO"; then :
cc88a640 2693
4a11f206
PP
2694else
2695 ac_c_werror_flag=$ac_save_c_werror_flag
81ecdfbb 2696 CFLAGS="-g"
4a11f206 2697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81ecdfbb
RW
2698/* end confdefs.h. */
2699
2700int
2701main ()
2702{
b585a9fa 2703
81ecdfbb
RW
2704 ;
2705 return 0;
2706}
2707_ACEOF
4a11f206 2708if ac_fn_c_try_compile "$LINENO"; then :
81ecdfbb
RW
2709 ac_cv_prog_cc_g=yes
2710fi
2711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b585a9fa 2712fi
81ecdfbb 2713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b585a9fa 2714fi
81ecdfbb
RW
2715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2716 ac_c_werror_flag=$ac_save_c_werror_flag
2717fi
4a11f206 2718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
81ecdfbb 2719$as_echo "$ac_cv_prog_cc_g" >&6; }
b585a9fa
EZ
2720if test "$ac_test_CFLAGS" = set; then
2721 CFLAGS=$ac_save_CFLAGS
2722elif test $ac_cv_prog_cc_g = yes; then
2723 if test "$GCC" = yes; then
2724 CFLAGS="-g -O2"
2725 else
2726 CFLAGS="-g"
2727 fi
2728else
2729 if test "$GCC" = yes; then
2730 CFLAGS="-O2"
2731 else
2732 CFLAGS=
2733 fi
2734fi
4a11f206 2735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
81ecdfbb 2736$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4a11f206 2737if test "${ac_cv_prog_cc_c89+set}" = set; then :
81ecdfbb 2738 $as_echo_n "(cached) " >&6
b585a9fa 2739else
81ecdfbb 2740 ac_cv_prog_cc_c89=no
b585a9fa 2741ac_save_CC=$CC
4a11f206 2742cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b585a9fa
EZ
2743/* end confdefs.h. */
2744#include <stdarg.h>
2745#include <stdio.h>
2746#include <sys/types.h>
2747#include <sys/stat.h>
2748/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2749struct buf { int x; };
2750FILE * (*rcsopen) (struct buf *, struct stat *, int);
2751static char *e (p, i)
2752 char **p;
2753 int i;
2754{
2755 return p[i];
2756}
2757static char *f (char * (*g) (char **, int), char **p, ...)
2758{
2759 char *s;
2760 va_list v;
2761 va_start (v,p);
2762 s = g (p, va_arg (v,int));
2763 va_end (v);
2764 return s;
2765}
2766
2767/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2768 function prototypes and stuff, but not '\xHH' hex character constants.
2769 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 2770 as 'x'. The following induces an error, until -std is added to get
b585a9fa
EZ
2771 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2772 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 2773 that's true only with -std. */
b585a9fa
EZ
2774int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2775
81ecdfbb
RW
2776/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2777 inside strings and character constants. */
2778#define FOO(x) 'x'
2779int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2780
b585a9fa
EZ
2781int test (int i, double x);
2782struct s1 {int (*f) (int a);};
2783struct s2 {int (*f) (double a);};
2784int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2785int argc;
2786char **argv;
2787int
2788main ()
2789{
2790return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2791 ;
2792 return 0;
2793}
2794_ACEOF
81ecdfbb
RW
2795for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2796 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b585a9fa
EZ
2797do
2798 CC="$ac_save_CC $ac_arg"
4a11f206 2799 if ac_fn_c_try_compile "$LINENO"; then :
cc88a640 2800 ac_cv_prog_cc_c89=$ac_arg
b585a9fa 2801fi
81ecdfbb
RW
2802rm -f core conftest.err conftest.$ac_objext
2803 test "x$ac_cv_prog_cc_c89" != "xno" && break
b585a9fa 2804done
81ecdfbb 2805rm -f conftest.$ac_ext
b585a9fa
EZ
2806CC=$ac_save_CC
2807
2808fi
81ecdfbb
RW
2809# AC_CACHE_VAL
2810case "x$ac_cv_prog_cc_c89" in
2811 x)
4a11f206 2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
81ecdfbb
RW
2813$as_echo "none needed" >&6; } ;;
2814 xno)
4a11f206 2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
81ecdfbb 2816$as_echo "unsupported" >&6; } ;;
b585a9fa 2817 *)
81ecdfbb 2818 CC="$CC $ac_cv_prog_cc_c89"
4a11f206 2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
81ecdfbb 2820$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b585a9fa 2821esac
4a11f206 2822if test "x$ac_cv_prog_cc_c89" != xno; then :
b585a9fa 2823
4a11f206 2824fi
b585a9fa 2825
b585a9fa
EZ
2826ac_ext=c
2827ac_cpp='$CPP $CPPFLAGS'
2828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2830ac_compiler_gnu=$ac_cv_c_compiler_gnu
2831
2832ac_ext=c
2833ac_cpp='$CPP $CPPFLAGS'
2834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2836ac_compiler_gnu=$ac_cv_c_compiler_gnu
4a11f206 2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
81ecdfbb 2838$as_echo_n "checking how to run the C preprocessor... " >&6; }
b585a9fa
EZ
2839# On Suns, sometimes $CPP names a directory.
2840if test -n "$CPP" && test -d "$CPP"; then
2841 CPP=
2842fi
2843if test -z "$CPP"; then
4a11f206 2844 if test "${ac_cv_prog_CPP+set}" = set; then :
81ecdfbb 2845 $as_echo_n "(cached) " >&6
b585a9fa
EZ
2846else
2847 # Double quotes because CPP needs to be expanded
2848 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2849 do
2850 ac_preproc_ok=false
2851for ac_c_preproc_warn_flag in '' yes
2852do
2853 # Use a header file that comes with gcc, so configuring glibc
2854 # with a fresh cross-compiler works.
2855 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2856 # <limits.h> exists even on freestanding compilers.
2857 # On the NeXT, cc -E runs the code through the compiler's parser,
2858 # not just through cpp. "Syntax error" is here to catch this case.
4a11f206 2859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b585a9fa
EZ
2860/* end confdefs.h. */
2861#ifdef __STDC__
2862# include <limits.h>
2863#else
2864# include <assert.h>
2865#endif
2866 Syntax error
2867_ACEOF
4a11f206 2868if ac_fn_c_try_cpp "$LINENO"; then :
cc88a640 2869
4a11f206 2870else
b585a9fa
EZ
2871 # Broken: fails on valid input.
2872continue
2873fi
2874rm -f conftest.err conftest.$ac_ext
2875
81ecdfbb 2876 # OK, works on sane cases. Now check whether nonexistent headers
b585a9fa 2877 # can be detected and how.
4a11f206 2878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b585a9fa
EZ
2879/* end confdefs.h. */
2880#include <ac_nonexistent.h>
2881_ACEOF
4a11f206 2882if ac_fn_c_try_cpp "$LINENO"; then :
b585a9fa
EZ
2883 # Broken: success on invalid input.
2884continue
2885else
b585a9fa
EZ
2886 # Passes both tests.
2887ac_preproc_ok=:
2888break
2889fi
2890rm -f conftest.err conftest.$ac_ext
2891
2892done
2893# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2894rm -f conftest.err conftest.$ac_ext
4a11f206 2895if $ac_preproc_ok; then :
b585a9fa
EZ
2896 break
2897fi
2898
2899 done
2900 ac_cv_prog_CPP=$CPP
2901
2902fi
2903 CPP=$ac_cv_prog_CPP
2904else
2905 ac_cv_prog_CPP=$CPP
2906fi
4a11f206 2907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
81ecdfbb 2908$as_echo "$CPP" >&6; }
b585a9fa
EZ
2909ac_preproc_ok=false
2910for ac_c_preproc_warn_flag in '' yes
2911do
2912 # Use a header file that comes with gcc, so configuring glibc
2913 # with a fresh cross-compiler works.
2914 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2915 # <limits.h> exists even on freestanding compilers.
2916 # On the NeXT, cc -E runs the code through the compiler's parser,
2917 # not just through cpp. "Syntax error" is here to catch this case.
4a11f206 2918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b585a9fa
EZ
2919/* end confdefs.h. */
2920#ifdef __STDC__
2921# include <limits.h>
2922#else
2923# include <assert.h>
2924#endif
2925 Syntax error
2926_ACEOF
4a11f206 2927if ac_fn_c_try_cpp "$LINENO"; then :
cc88a640 2928
4a11f206 2929else
b585a9fa
EZ
2930 # Broken: fails on valid input.
2931continue
2932fi
2933rm -f conftest.err conftest.$ac_ext
2934
81ecdfbb 2935 # OK, works on sane cases. Now check whether nonexistent headers
b585a9fa 2936 # can be detected and how.
4a11f206 2937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b585a9fa
EZ
2938/* end confdefs.h. */
2939#include <ac_nonexistent.h>
2940_ACEOF
4a11f206 2941if ac_fn_c_try_cpp "$LINENO"; then :
b585a9fa
EZ
2942 # Broken: success on invalid input.
2943continue
2944else
b585a9fa
EZ
2945 # Passes both tests.
2946ac_preproc_ok=:
2947break
2948fi
2949rm -f conftest.err conftest.$ac_ext
2950
2951done
2952# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2953rm -f conftest.err conftest.$ac_ext
4a11f206
PP
2954if $ac_preproc_ok; then :
2955
b585a9fa 2956else
4a11f206 2957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
81ecdfbb 2958$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4a11f206
PP
2959as_fn_error "C preprocessor \"$CPP\" fails sanity check
2960See \`config.log' for more details." "$LINENO" 5; }
b585a9fa
EZ
2961fi
2962
2963ac_ext=c
2964ac_cpp='$CPP $CPPFLAGS'
2965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2967ac_compiler_gnu=$ac_cv_c_compiler_gnu
2968
2969
2970
4a11f206 2971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
81ecdfbb 2972$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4a11f206 2973if test "${ac_cv_path_GREP+set}" = set; then :
81ecdfbb 2974 $as_echo_n "(cached) " >&6
b585a9fa 2975else
81ecdfbb
RW
2976 if test -z "$GREP"; then
2977 ac_path_GREP_found=false
2978 # Loop through the user's path and test for each of PROGNAME-LIST
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2981do
2982 IFS=$as_save_IFS
2983 test -z "$as_dir" && as_dir=.
4a11f206 2984 for ac_prog in grep ggrep; do
81ecdfbb
RW
2985 for ac_exec_ext in '' $ac_executable_extensions; do
2986 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2987 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
2988# Check for GNU ac_path_GREP and select it if it is found.
2989 # Check for GNU $ac_path_GREP
2990case `"$ac_path_GREP" --version 2>&1` in
2991*GNU*)
2992 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2993*)
2994 ac_count=0
2995 $as_echo_n 0123456789 >"conftest.in"
2996 while :
2997 do
2998 cat "conftest.in" "conftest.in" >"conftest.tmp"
2999 mv "conftest.tmp" "conftest.in"
3000 cp "conftest.in" "conftest.nl"
3001 $as_echo 'GREP' >> "conftest.nl"
3002 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3003 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4a11f206 3004 as_fn_arith $ac_count + 1 && ac_count=$as_val
81ecdfbb
RW
3005 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3006 # Best one so far, save it but keep looking for a better one
3007 ac_cv_path_GREP="$ac_path_GREP"
3008 ac_path_GREP_max=$ac_count
3009 fi
3010 # 10*(2^10) chars as input seems more than enough
3011 test $ac_count -gt 10 && break
3012 done
3013 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3014esac
3015
3016 $ac_path_GREP_found && break 3
3017 done
3018 done
4a11f206 3019 done
81ecdfbb
RW
3020IFS=$as_save_IFS
3021 if test -z "$ac_cv_path_GREP"; then
4a11f206 3022 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
3023 fi
3024else
3025 ac_cv_path_GREP=$GREP
3026fi
3027
3028fi
4a11f206 3029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
81ecdfbb
RW
3030$as_echo "$ac_cv_path_GREP" >&6; }
3031 GREP="$ac_cv_path_GREP"
3032
3033
4a11f206 3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
81ecdfbb 3035$as_echo_n "checking for egrep... " >&6; }
4a11f206 3036if test "${ac_cv_path_EGREP+set}" = set; then :
81ecdfbb
RW
3037 $as_echo_n "(cached) " >&6
3038else
3039 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3040 then ac_cv_path_EGREP="$GREP -E"
3041 else
3042 if test -z "$EGREP"; then
3043 ac_path_EGREP_found=false
3044 # Loop through the user's path and test for each of PROGNAME-LIST
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3047do
3048 IFS=$as_save_IFS
3049 test -z "$as_dir" && as_dir=.
4a11f206 3050 for ac_prog in egrep; do
81ecdfbb
RW
3051 for ac_exec_ext in '' $ac_executable_extensions; do
3052 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3053 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3054# Check for GNU ac_path_EGREP and select it if it is found.
3055 # Check for GNU $ac_path_EGREP
3056case `"$ac_path_EGREP" --version 2>&1` in
3057*GNU*)
3058 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3059*)
3060 ac_count=0
3061 $as_echo_n 0123456789 >"conftest.in"
3062 while :
3063 do
3064 cat "conftest.in" "conftest.in" >"conftest.tmp"
3065 mv "conftest.tmp" "conftest.in"
3066 cp "conftest.in" "conftest.nl"
3067 $as_echo 'EGREP' >> "conftest.nl"
3068 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3069 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4a11f206 3070 as_fn_arith $ac_count + 1 && ac_count=$as_val
81ecdfbb
RW
3071 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3072 # Best one so far, save it but keep looking for a better one
3073 ac_cv_path_EGREP="$ac_path_EGREP"
3074 ac_path_EGREP_max=$ac_count
b585a9fa 3075 fi
81ecdfbb
RW
3076 # 10*(2^10) chars as input seems more than enough
3077 test $ac_count -gt 10 && break
3078 done
3079 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3080esac
3081
3082 $ac_path_EGREP_found && break 3
3083 done
3084 done
4a11f206 3085 done
81ecdfbb
RW
3086IFS=$as_save_IFS
3087 if test -z "$ac_cv_path_EGREP"; then
4a11f206 3088 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
3089 fi
3090else
3091 ac_cv_path_EGREP=$EGREP
3092fi
3093
3094 fi
b585a9fa 3095fi
4a11f206 3096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
81ecdfbb
RW
3097$as_echo "$ac_cv_path_EGREP" >&6; }
3098 EGREP="$ac_cv_path_EGREP"
b585a9fa
EZ
3099
3100
3101if test $ac_cv_c_compiler_gnu = yes; then
4a11f206 3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
81ecdfbb 3103$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4a11f206 3104if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
81ecdfbb 3105 $as_echo_n "(cached) " >&6
b585a9fa
EZ
3106else
3107 ac_pattern="Autoconf.*'x'"
4a11f206 3108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b585a9fa
EZ
3109/* end confdefs.h. */
3110#include <sgtty.h>
3111Autoconf TIOCGETP
3112_ACEOF
3113if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4a11f206 3114 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
b585a9fa
EZ
3115 ac_cv_prog_gcc_traditional=yes
3116else
3117 ac_cv_prog_gcc_traditional=no
3118fi
3119rm -f conftest*
3120
3121
3122 if test $ac_cv_prog_gcc_traditional = no; then
4a11f206 3123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b585a9fa
EZ
3124/* end confdefs.h. */
3125#include <termio.h>
3126Autoconf TCGETA
3127_ACEOF
3128if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4a11f206 3129 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
b585a9fa
EZ
3130 ac_cv_prog_gcc_traditional=yes
3131fi
3132rm -f conftest*
3133
3134 fi
3135fi
4a11f206 3136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
81ecdfbb 3137$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
b585a9fa
EZ
3138 if test $ac_cv_prog_gcc_traditional = yes; then
3139 CC="$CC -traditional"
3140 fi
3141fi
3142
4a11f206 3143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
81ecdfbb 3144$as_echo_n "checking for library containing strerror... " >&6; }
4a11f206 3145if test "${ac_cv_search_strerror+set}" = set; then :
81ecdfbb 3146 $as_echo_n "(cached) " >&6
b585a9fa
EZ
3147else
3148 ac_func_search_save_LIBS=$LIBS
4a11f206 3149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b585a9fa
EZ
3150/* end confdefs.h. */
3151
81ecdfbb
RW
3152/* Override any GCC internal prototype to avoid an error.
3153 Use char because int might match the return type of a GCC
3154 builtin and then its argument prototype would still apply. */
b585a9fa
EZ
3155#ifdef __cplusplus
3156extern "C"
3157#endif
b585a9fa
EZ
3158char strerror ();
3159int
3160main ()
3161{
81ecdfbb 3162return strerror ();
b585a9fa
EZ
3163 ;
3164 return 0;
3165}
3166_ACEOF
81ecdfbb
RW
3167for ac_lib in '' cposix; do
3168 if test -z "$ac_lib"; then
3169 ac_res="none required"
3170 else
3171 ac_res=-l$ac_lib
b585a9fa 3172 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb 3173 fi
4a11f206 3174 if ac_fn_c_try_link "$LINENO"; then :
81ecdfbb
RW
3175 ac_cv_search_strerror=$ac_res
3176fi
4a11f206
PP
3177rm -f core conftest.err conftest.$ac_objext \
3178 conftest$ac_exeext
3179 if test "${ac_cv_search_strerror+set}" = set; then :
81ecdfbb
RW
3180 break
3181fi
3182done
4a11f206
PP
3183if test "${ac_cv_search_strerror+set}" = set; then :
3184
b585a9fa 3185else
81ecdfbb 3186 ac_cv_search_strerror=no
b585a9fa 3187fi
81ecdfbb 3188rm conftest.$ac_ext
b585a9fa
EZ
3189LIBS=$ac_func_search_save_LIBS
3190fi
4a11f206 3191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
81ecdfbb
RW
3192$as_echo "$ac_cv_search_strerror" >&6; }
3193ac_res=$ac_cv_search_strerror
4a11f206 3194if test "$ac_res" != no; then :
81ecdfbb 3195 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
b585a9fa
EZ
3196
3197fi
3198
3199
4a11f206
PP
3200if test "$cross_compiling" = yes; then :
3201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
81ecdfbb 3202$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4a11f206
PP
3203as_fn_error "cannot run test program while cross compiling
3204See \`config.log' for more details." "$LINENO" 5; }
3205else
3206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b585a9fa
EZ
3207/* end confdefs.h. */
3208main(){exit(0);}
3209_ACEOF
4a11f206 3210if ac_fn_c_try_run "$LINENO"; then :
cc88a640 3211
4a11f206 3212else
b585a9fa
EZ
3213
3214if test $CC != cc ; then
3215echo "Your $CC failed - restarting with CC=cc" 1>&6
3216
3217echo "" 1>&6
3218
3219CC=cc
3220export CC
3221exec $0 $configure_args
3222fi
3223
3224fi
4a11f206
PP
3225rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3226 conftest.$ac_objext conftest.beam conftest.$ac_ext
b585a9fa
EZ
3227fi
3228
81ecdfbb 3229
4a11f206
PP
3230if test "$cross_compiling" = yes; then :
3231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
81ecdfbb 3232$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4a11f206
PP
3233as_fn_error "cannot run test program while cross compiling
3234See \`config.log' for more details." "$LINENO" 5; }
3235else
3236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b585a9fa
EZ
3237/* end confdefs.h. */
3238main(){exit(0);}
3239_ACEOF
4a11f206 3240if ac_fn_c_try_run "$LINENO"; then :
cc88a640 3241
4a11f206
PP
3242else
3243 exec 5>&2
b585a9fa
EZ
3244eval $ac_link
3245echo "CC=$CC; CFLAGS=$CFLAGS; LIBS=$LIBS;" 1>&6
3246
3247echo "$ac_compile" 1>&6
3248
4a11f206 3249as_fn_error "Can't run the compiler - sorry" "$LINENO" 5
b585a9fa 3250fi
4a11f206
PP
3251rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3252 conftest.$ac_objext conftest.beam conftest.$ac_ext
b585a9fa
EZ
3253fi
3254
81ecdfbb 3255
4a11f206
PP
3256if test "$cross_compiling" = yes; then :
3257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
81ecdfbb 3258$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4a11f206
PP
3259as_fn_error "cannot run test program while cross compiling
3260See \`config.log' for more details." "$LINENO" 5; }
3261else
3262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b585a9fa
EZ
3263/* end confdefs.h. */
3264
3265main()
3266{
3267 int __something_strange_();
3268 __something_strange_(0);
3269}
3270
3271_ACEOF
4a11f206
PP
3272if ac_fn_c_try_run "$LINENO"; then :
3273 as_fn_error "Your compiler does not set the exit status - sorry" "$LINENO" 5
b585a9fa 3274fi
4a11f206
PP
3275rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3276 conftest.$ac_objext conftest.beam conftest.$ac_ext
b585a9fa
EZ
3277fi
3278
81ecdfbb 3279
b585a9fa
EZ
3280for ac_prog in gawk mawk nawk awk
3281do
3282 # Extract the first word of "$ac_prog", so it can be a program name with args.
3283set dummy $ac_prog; ac_word=$2
4a11f206 3284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
81ecdfbb 3285$as_echo_n "checking for $ac_word... " >&6; }
4a11f206 3286if test "${ac_cv_prog_AWK+set}" = set; then :
81ecdfbb 3287 $as_echo_n "(cached) " >&6
b585a9fa
EZ
3288else
3289 if test -n "$AWK"; then
3290 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3291else
3292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293for as_dir in $PATH
3294do
3295 IFS=$as_save_IFS
3296 test -z "$as_dir" && as_dir=.
4a11f206 3297 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b585a9fa 3299 ac_cv_prog_AWK="$ac_prog"
4a11f206 3300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b585a9fa
EZ
3301 break 2
3302 fi
3303done
4a11f206 3304 done
81ecdfbb 3305IFS=$as_save_IFS
b585a9fa
EZ
3306
3307fi
3308fi
3309AWK=$ac_cv_prog_AWK
3310if test -n "$AWK"; then
4a11f206 3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
81ecdfbb 3312$as_echo "$AWK" >&6; }
b585a9fa 3313else
4a11f206 3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81ecdfbb 3315$as_echo "no" >&6; }
b585a9fa
EZ
3316fi
3317
81ecdfbb 3318
b585a9fa
EZ
3319 test -n "$AWK" && break
3320done
3321
3322
3323if test -f etc/toolcheck; then
4a11f206 3324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5
81ecdfbb 3325$as_echo "$as_me: checking for buggy tools..." >&6;}
b585a9fa
EZ
3326sh etc/toolcheck 1>&6
3327fi
3328
3329
4a11f206 3330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for System V..." >&5
81ecdfbb 3331$as_echo "$as_me: checking for System V..." >&6;}
4a11f206 3332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b585a9fa
EZ
3333/* end confdefs.h. */
3334#include <sys/types.h>
3335#include <signal.h>
3336#include <fcntl.h>
3337int
3338main ()
3339{
3340int x = SIGCHLD | FNDELAY;
3341 ;
3342 return 0;
3343}
3344_ACEOF
4a11f206 3345if ac_fn_c_try_compile "$LINENO"; then :
cc88a640 3346
4a11f206
PP
3347else
3348 $as_echo "#define SYSV 1" >>confdefs.h
b585a9fa
EZ
3349
3350fi
81ecdfbb 3351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b585a9fa 3352
4a11f206 3353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris 2.x..." >&5
81ecdfbb 3354$as_echo "$as_me: checking for Solaris 2.x..." >&6;}
4a11f206 3355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b585a9fa
EZ
3356/* end confdefs.h. */
3357#if defined(SVR4) && defined(sun)
3358 yes
3359#endif
3360
3361_ACEOF
3362if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4a11f206 3363 $EGREP "yes" >/dev/null 2>&1; then :
b585a9fa
EZ
3364 LIBS="$LIBS -lsocket -lnsl -lkstat"
3365fi
3366rm -f conftest*
3367
3368
4a11f206
PP
3369
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking select..." >&5
3371$as_echo "$as_me: checking select..." >&6;}
3372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b585a9fa
EZ
3373/* end confdefs.h. */
3374
3375int
3376main ()
3377{
3378select(0, 0, 0, 0, 0);
3379 ;
3380 return 0;
3381}
3382_ACEOF
4a11f206 3383if ac_fn_c_try_link "$LINENO"; then :
cc88a640 3384
4a11f206
PP
3385else
3386 LIBS="$LIBS -lnet -lnsl"
3387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking select with $LIBS..." >&5
3388$as_echo "$as_me: checking select with $LIBS..." >&6;}
3389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3390/* end confdefs.h. */
cc88a640 3391
4a11f206
PP
3392int
3393main ()
3394{
3395select(0, 0, 0, 0, 0);
3396 ;
3397 return 0;
3398}
3399_ACEOF
3400if ac_fn_c_try_link "$LINENO"; then :
b585a9fa 3401
4a11f206
PP
3402else
3403 as_fn_error "!!! no select - no screen" "$LINENO" 5
b585a9fa 3404fi
4a11f206
PP
3405rm -f core conftest.err conftest.$ac_objext \
3406 conftest$ac_exeext conftest.$ac_ext
b585a9fa 3407
4a11f206
PP
3408fi
3409rm -f core conftest.err conftest.$ac_objext \
3410 conftest$ac_exeext conftest.$ac_ext
cc88a640 3411
4a11f206 3412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking select return value..." >&5
81ecdfbb 3413$as_echo "$as_me: checking select return value..." >&6;}
4a11f206
PP
3414if test "$cross_compiling" = yes; then :
3415 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
81ecdfbb 3416$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4a11f206
PP
3417as_fn_error "cannot run test program while cross compiling
3418See \`config.log' for more details." "$LINENO" 5; }
3419else
3420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b585a9fa
EZ
3421/* end confdefs.h. */
3422
3423#include <sys/types.h>
3424#include <sys/stat.h>
3425#include <fcntl.h>
3426
3427char *nam = "/tmp/conftest$$";
3428
3429#ifdef NAMEDPIPE
3430
3431#ifndef O_NONBLOCK
3432#define O_NONBLOCK O_NDELAY
3433#endif
3434#ifndef S_IFIFO
3435#define S_IFIFO 0010000
3436#endif
3437
3438
3439main()
3440{
3441#ifdef FD_SET
3442 fd_set f;
3443#else
3444 int f;
3445#endif
3446
3447#ifdef __FreeBSD__
3448/* From Andrew A. Chernov (ache@astral.msk.su):
3449 * opening RDWR fifo fails in BSD 4.4, but select return values are
3450 * right.
3451 */
3452 exit(0);
3453#endif
3454 (void)alarm(5);
3455#ifdef POSIX
3456 if (mkfifo(nam, 0777))
3457#else
3458 if (mknod(nam, S_IFIFO|0777, 0))
3459#endif
3460 exit(1);
3461 close(0);
3462 if (open(nam, O_RDWR | O_NONBLOCK))
3463 exit(1);
3464 if (write(0, "TEST", 4) == -1)
3465 exit(1);
3466
3467#else
3468
3469#include <sys/types.h>
3470#include <sys/socket.h>
3471#include <sys/un.h>
3472
3473main()
3474{
3475 int s1, s2, l;
3476 struct sockaddr_un a;
3477#ifdef FD_SET
3478 fd_set f;
3479#else
3480 int f;
3481#endif
3482
3483 (void)alarm(5);
3484 if ((s1 = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
3485 exit(1);
3486 a.sun_family = AF_UNIX;
3487 strcpy(a.sun_path, nam);
3488 (void) unlink(nam);
3489 if (bind(s1, (struct sockaddr *) &a, strlen(nam)+2) == -1)
3490 exit(1);
3491 if (listen(s1, 2))
3492 exit(1);
3493 if (fork() == 0)
3494 {
3495 if ((s2 = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
3496 kill(getppid(), 3);
3497 (void)connect(s2, (struct sockaddr *)&a, strlen(nam) + 2);
3498 if (write(s2, "HELLO", 5) == -1)
3499 kill(getppid(), 3);
3500 exit(0);
3501 }
3502 l = sizeof(a);
3503 close(0);
3504 if (accept(s1, (struct sockaddr *)&a, &l))
3505 exit(1);
3506#endif
3507
3508
3509#ifdef FD_SET
3510 FD_SET(0, &f);
3511#else
3512 f = 1;
3513#endif
3514 if (select(1, &f, 0, 0, 0) == -1)
3515 exit(1);
3516 if (select(1, &f, &f, 0, 0) != 2)
3517 exit(1);
3518 exit(0);
3519}
3520
3521_ACEOF
4a11f206 3522if ac_fn_c_try_run "$LINENO"; then :
b585a9fa
EZ
3523 echo "- select is ok" 1>&6
3524
3525else
4a11f206
PP
3526 echo "- select can't count" 1>&6
3527 $as_echo "#define SELECT_BROKEN 1" >>confdefs.h
b585a9fa
EZ
3528
3529fi
4a11f206
PP
3530rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3531 conftest.$ac_objext conftest.beam conftest.$ac_ext
b585a9fa
EZ
3532fi
3533
81ecdfbb 3534
4a11f206 3535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent..." >&5
81ecdfbb 3536$as_echo "$as_me: checking for tgetent..." >&6;}
4a11f206 3537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b585a9fa
EZ
3538/* end confdefs.h. */
3539
3540int
3541main ()
3542{
3543tgetent((char *)0, (char *)0);
3544 ;
3545 return 0;
3546}
3547_ACEOF
4a11f206 3548if ac_fn_c_try_link "$LINENO"; then :
cc88a640 3549
4a11f206
PP
3550else
3551 olibs="$LIBS"
b585a9fa 3552LIBS="-lcurses $olibs"
4a11f206 3553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libcurses..." >&5
81ecdfbb 3554$as_echo "$as_me: checking libcurses..." >&6;}
4a11f206 3555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b585a9fa
EZ
3556/* end confdefs.h. */
3557
3558int
3559main ()
3560{
3561
3562#ifdef __hpux
3563__sorry_hpux_libcurses_is_totally_broken_in_10_10();
3564#else
3565tgetent((char *)0, (char *)0);
3566#endif
3567
3568 ;
3569 return 0;
3570}
3571_ACEOF
4a11f206 3572if ac_fn_c_try_link "$LINENO"; then :
cc88a640 3573
4a11f206
PP
3574else
3575 LIBS="-ltermcap $olibs"
3576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libtermcap..." >&5
81ecdfbb 3577$as_echo "$as_me: checking libtermcap..." >&6;}
4a11f206 3578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b585a9fa
EZ
3579/* end confdefs.h. */
3580
3581int
3582main ()
3583{
3584tgetent((char *)0, (char *)0);
3585 ;
3586 return 0;
3587}
3588_ACEOF
4a11f206 3589if ac_fn_c_try_link "$LINENO"; then :
cc88a640 3590
4a11f206
PP
3591else
3592 LIBS="-ltermlib $olibs"
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libtermlib..." >&5
81ecdfbb 3594$as_echo "$as_me: checking libtermlib..." >&6;}
4a11f206 3595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b585a9fa
EZ
3596/* end confdefs.h. */
3597
3598int
3599main ()
3600{
3601tgetent((char *)0, (char *)0);
3602 ;
3603 return 0;
3604}
3605_ACEOF
4a11f206 3606if ac_fn_c_try_link "$LINENO"; then :
cc88a640 3607
4a11f206
PP
3608else
3609 LIBS="-lncurses $olibs"
3610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libncurses..." >&5
81ecdfbb 3611$as_echo "$as_me: checking libncurses..." >&6;}
4a11f206 3612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b585a9fa
EZ
3613/* end confdefs.h. */
3614
3615int
3616main ()
3617{
3618tgetent((char *)0, (char *)0);
3619 ;
3620 return 0;
3621}
3622_ACEOF
4a11f206 3623if ac_fn_c_try_link "$LINENO"; then :
cc88a640 3624
4a11f206
PP
3625else
3626 as_fn_error "!!! no tgetent - no screen" "$LINENO" 5
b585a9fa 3627fi
4a11f206
PP
3628rm -f core conftest.err conftest.$ac_objext \
3629 conftest$ac_exeext conftest.$ac_ext
b585a9fa 3630fi
4a11f206
PP
3631rm -f core conftest.err conftest.$ac_objext \
3632 conftest$ac_exeext conftest.$ac_ext
b585a9fa 3633fi
4a11f206
PP
3634rm -f core conftest.err conftest.$ac_objext \
3635 conftest$ac_exeext conftest.$ac_ext
b585a9fa 3636fi
4a11f206
PP
3637rm -f core conftest.err conftest.$ac_objext \
3638 conftest$ac_exeext conftest.$ac_ext
b585a9fa 3639fi
4a11f206
PP
3640rm -f core conftest.err conftest.$ac_objext \
3641 conftest$ac_exeext conftest.$ac_ext
b585a9fa 3642
4a11f206
PP
3643if test "$cross_compiling" = yes; then :
3644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
81ecdfbb 3645$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4a11f206
PP
3646as_fn_error "cannot run test program while cross compiling
3647See \`config.log' for more details." "$LINENO" 5; }
3648else
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b585a9fa
EZ
3650/* end confdefs.h. */
3651
4a11f206 3652extern char *tgoto();
b585a9fa
EZ
3653main()
3654{
3655 exit(strcmp(tgoto("%p1%d", 0, 1), "1") ? 0 : 1);
3656}
3657_ACEOF
4a11f206 3658if ac_fn_c_try_run "$LINENO"; then :
b585a9fa
EZ
3659 echo "- you use the termcap database" 1>&6
3660
3661else
4a11f206
PP
3662 echo "- you use the terminfo database" 1>&6
3663 $as_echo "#define TERMINFO 1" >>confdefs.h
b585a9fa
EZ
3664
3665fi
4a11f206
PP
3666rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3667 conftest.$ac_objext conftest.beam conftest.$ac_ext
b585a9fa 3668fi
81ecdfbb 3669
4a11f206 3670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ospeed..." >&5
81ecdfbb 3671$as_echo "$as_me: checking ospeed..." >&6;}
4a11f206 3672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b585a9fa
EZ
3673/* end confdefs.h. */
3674extern short ospeed;
3675int
3676main ()
3677{
4a11f206 3678ospeed=5;
cc88a640
JK
3679 ;
3680 return 0;
3681}
3682_ACEOF
4a11f206
PP
3683if ac_fn_c_try_link "$LINENO"; then :
3684
cc88a640 3685else
4a11f206 3686 $as_echo "#define NEED_OSPEED 1" >>confdefs.h
cc88a640 3687
cc88a640 3688fi
4a11f206
PP
3689rm -f core conftest.err conftest.$ac_objext \
3690 conftest$ac_exeext conftest.$ac_ext
cc88a640 3691
4a11f206
PP
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc..." >&5
3693$as_echo "$as_me: checking for /dev/ptc..." >&6;}
3694if test -r /dev/ptc; then
3695$as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
b585a9fa
EZ
3696
3697fi
cc88a640 3698
4a11f206
PP
3699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys..." >&5
3700$as_echo "$as_me: checking for SVR4 ptys..." >&6;}
3701sysvr4ptys=
3702if test -c /dev/ptmx ; then
3703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc88a640 3704/* end confdefs.h. */
cc88a640
JK
3705
3706int
3707main ()
3708{
4a11f206 3709ptsname(0);grantpt(0);unlockpt(0);
cc88a640
JK
3710 ;
3711 return 0;
3712}
3713_ACEOF
4a11f206
PP
3714if ac_fn_c_try_link "$LINENO"; then :
3715 $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h
cc88a640 3716
4a11f206
PP
3717sysvr4ptys=1
3718fi
3719rm -f core conftest.err conftest.$ac_objext \
3720 conftest$ac_exeext conftest.$ac_ext
cc88a640
JK
3721fi
3722
4a11f206
PP
3723for ac_func in getpt
3724do :
3725 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
3726if test "x$ac_cv_func_getpt" = x""yes; then :
3727 cat >>confdefs.h <<_ACEOF
3728#define HAVE_GETPT 1
3729_ACEOF
3730
cc88a640 3731fi
4a11f206
PP
3732done
3733
3734
3735if test -z "$sysvr4ptys"; then
3736for ac_func in openpty
3737do :
3738 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
3739if test "x$ac_cv_func_openpty" = x""yes; then :
b585a9fa 3740 cat >>confdefs.h <<_ACEOF
4a11f206 3741#define HAVE_OPENPTY 1
b585a9fa
EZ
3742_ACEOF
3743
3744else
4a11f206 3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
81ecdfbb 3746$as_echo_n "checking for openpty in -lutil... " >&6; }
4a11f206 3747if test "${ac_cv_lib_util_openpty+set}" = set; then :
81ecdfbb 3748 $as_echo_n "(cached) " >&6
b585a9fa
EZ
3749else
3750 ac_check_lib_save_LIBS=$LIBS
3751LIBS="-lutil $LIBS"
4a11f206 3752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b585a9fa
EZ
3753/* end confdefs.h. */
3754
81ecdfbb
RW
3755/* Override any GCC internal prototype to avoid an error.
3756 Use char because int might match the return type of a GCC
3757 builtin and then its argument prototype would still apply. */
b585a9fa
EZ
3758#ifdef __cplusplus
3759extern "C"
3760#endif
b585a9fa
EZ
3761char openpty ();
3762int
3763main ()
3764{
81ecdfbb 3765return openpty ();
b585a9fa
EZ
3766 ;
3767 return 0;
3768}
3769_ACEOF
4a11f206 3770if ac_fn_c_try_link "$LINENO"; then :
b585a9fa
EZ
3771 ac_cv_lib_util_openpty=yes
3772else
4a11f206 3773 ac_cv_lib_util_openpty=no
b585a9fa 3774fi
4a11f206
PP
3775rm -f core conftest.err conftest.$ac_objext \
3776 conftest$ac_exeext conftest.$ac_ext
b585a9fa
EZ
3777LIBS=$ac_check_lib_save_LIBS
3778fi
4a11f206 3779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
81ecdfbb 3780$as_echo "$ac_cv_lib_util_openpty" >&6; }
4a11f206
PP
3781if test "x$ac_cv_lib_util_openpty" = x""yes; then :
3782 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
b585a9fa
EZ
3783 LIBS="$LIBS -lutil"
3784fi
3785
3786fi
3787done
3788
3789fi
3790
4a11f206 3791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges..." >&5
81ecdfbb 3792$as_echo "$as_me: checking for ptyranges..." >&6;}
b585a9fa
EZ
3793if test -d /dev/ptym ; then
3794pdir='/dev/ptym'
3795else
3796pdir='/dev'
3797fi
4a11f206 3798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b585a9fa
EZ
3799/* end confdefs.h. */
3800#ifdef M_UNIX
3801 yes;
3802#endif
3803
3804_ACEOF
3805if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4a11f206 3806 $EGREP "yes" >/dev/null 2>&1; then :
b585a9fa
EZ
3807 ptys=`echo /dev/ptyp??`
3808else
3809 ptys=`echo $pdir/pty??`
3810fi
3811rm -f conftest*
3812
3813if test "$ptys" != "$pdir/pty??" ; then
3814p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
3815p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
3816cat >>confdefs.h <<_ACEOF
3817#define PTYRANGE0 "$p0"
3818_ACEOF
3819
3820cat >>confdefs.h <<_ACEOF
3821#define PTYRANGE1 "$p1"
3822_ACEOF
3823
3824fi
3825
3826
81ecdfbb 3827# Check whether --with-pty-mode was given.
4a11f206 3828if test "${with_pty_mode+set}" = set; then :
81ecdfbb
RW
3829 withval=$with_pty_mode; ptymode="${withval}"
3830fi
3831
3832
3833# Check whether --with-pty-group was given.
4a11f206 3834if test "${with_pty_group+set}" = set; then :
81ecdfbb
RW
3835 withval=$with_pty_group; ptygrp="${withval}"
3836fi
b585a9fa 3837
b585a9fa
EZ
3838test -n "$ptymode" || ptymode=0620
3839if test -n "$ptygrp" ; then
3840cat >>confdefs.h <<_ACEOF
3841#define PTYMODE $ptymode
3842_ACEOF
3843
3844cat >>confdefs.h <<_ACEOF
3845#define PTYGROUP $ptygrp
3846_ACEOF
3847
3848else
3849
4a11f206 3850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default tty permissions/group..." >&5
81ecdfbb 3851$as_echo "$as_me: checking default tty permissions/group..." >&6;}
b585a9fa 3852rm -f conftest_grp
4a11f206
PP
3853if test "$cross_compiling" = yes; then :
3854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
81ecdfbb 3855$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4a11f206
PP
3856as_fn_error "cannot run test program while cross compiling
3857See \`config.log' for more details." "$LINENO" 5; }
3858else
3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b585a9fa
EZ
3860/* end confdefs.h. */
3861
3862#include <sys/types.h>
3863#include <sys/stat.h>
3864#include <stdio.h>
3865main()
3866{
3867 struct stat sb;
3868 char *x,*ttyname();
3869 int om, m;
3870 FILE *fp;
3871
3872 if (!(x = ttyname(0))) exit(1);
3873 if (stat(x, &sb)) exit(1);
3874 om = sb.st_mode;
3875 if (om & 002) exit(0);
3876 m = system("mesg y");
3877 if (m == -1 || m == 127) exit(1);
3878 if (stat(x, &sb)) exit(1);
3879 m = sb.st_mode;
3880 if (chmod(x, om)) exit(1);
3881 if (m & 002) exit(0);
3882 if (sb.st_gid == getgid()) exit(1);
3883 if (!(fp=fopen("conftest_grp", "w")))
3884 exit(1);
3885 fprintf(fp, "%d\n", sb.st_gid);
3886 fclose(fp);
3887 exit(0);
3888}
3889
3890_ACEOF
4a11f206 3891if ac_fn_c_try_run "$LINENO"; then :
b585a9fa
EZ
3892
3893 if test -f conftest_grp; then
3894 ptygrp=`cat conftest_grp`
3895 echo "- pty mode: $ptymode, group: $ptygrp" 1>&6
3896
3897 cat >>confdefs.h <<_ACEOF
3898#define PTYMODE $ptymode
3899_ACEOF
3900
3901 cat >>confdefs.h <<_ACEOF
3902#define PTYGROUP $ptygrp
3903_ACEOF
3904
3905 else
3906 echo "- ptys are world accessable" 1>&6
3907
3908 fi
3909
3910else
b585a9fa
EZ
3911
3912 WRITEPATH=''
3913 XTERMPATH=''
3914 # Extract the first word of "write", so it can be a program name with args.
3915set dummy write; ac_word=$2
4a11f206 3916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
81ecdfbb 3917$as_echo_n "checking for $ac_word... " >&6; }
4a11f206 3918if test "${ac_cv_path_WRITEPATH+set}" = set; then :
81ecdfbb 3919 $as_echo_n "(cached) " >&6
b585a9fa
EZ
3920else
3921 case $WRITEPATH in
3922 [\\/]* | ?:[\\/]*)
3923 ac_cv_path_WRITEPATH="$WRITEPATH" # Let the user override the test with a path.
3924 ;;
3925 *)
3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927for as_dir in $PATH
3928do
3929 IFS=$as_save_IFS
3930 test -z "$as_dir" && as_dir=.
4a11f206 3931 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b585a9fa 3933 ac_cv_path_WRITEPATH="$as_dir/$ac_word$ac_exec_ext"
4a11f206 3934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b585a9fa
EZ
3935 break 2
3936 fi
3937done
4a11f206 3938 done
81ecdfbb 3939IFS=$as_save_IFS
b585a9fa
EZ
3940
3941 ;;
3942esac
3943fi
3944WRITEPATH=$ac_cv_path_WRITEPATH
b585a9fa 3945if test -n "$WRITEPATH"; then
4a11f206 3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WRITEPATH" >&5
81ecdfbb 3947$as_echo "$WRITEPATH" >&6; }
b585a9fa 3948else
4a11f206 3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81ecdfbb 3950$as_echo "no" >&6; }
b585a9fa
EZ
3951fi
3952
81ecdfbb 3953
b585a9fa
EZ
3954 # Extract the first word of "xterm", so it can be a program name with args.
3955set dummy xterm; ac_word=$2
4a11f206 3956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
81ecdfbb 3957$as_echo_n "checking for $ac_word... " >&6; }
4a11f206 3958if test "${ac_cv_path_XTERMPATH+set}" = set; then :
81ecdfbb 3959 $as_echo_n "(cached) " >&6
b585a9fa
EZ
3960else
3961 case $XTERMPATH in
3962 [\\/]* | ?:[\\/]*)
3963 ac_cv_path_XTERMPATH="$XTERMPATH" # Let the user override the test with a path.
3964 ;;
3965 *)
3966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967for as_dir in $PATH
3968do
3969 IFS=$as_save_IFS
3970 test -z "$as_dir" && as_dir=.
4a11f206 3971 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b585a9fa 3973 ac_cv_path_XTERMPATH="$as_dir/$ac_word$ac_exec_ext"
4a11f206 3974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b585a9fa
EZ
3975 break 2
3976 fi
3977done
4a11f206 3978 done
81ecdfbb 3979IFS=$as_save_IFS
b585a9fa
EZ
3980
3981 ;;
3982esac
3983fi
3984XTERMPATH=$ac_cv_path_XTERMPATH
b585a9fa 3985if test -n "$XTERMPATH"; then
4a11f206 3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XTERMPATH" >&5
81ecdfbb 3987$as_echo "$XTERMPATH" >&6; }
b585a9fa 3988else
4a11f206 3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81ecdfbb 3990$as_echo "no" >&6; }
b585a9fa
EZ
3991fi
3992
81ecdfbb 3993
b585a9fa
EZ
3994 found=
3995 if test -n "$WRITEPATH$XTERMPATH"; then
3996 findfollow=
3997 lsfollow=
3998 found=`find $WRITEPATH $XTERMPATH -follow -print 2>/dev/null`
3999 if test -n "$found"; then
4000 findfollow=-follow
4001 lsfollow=L
4002 fi
4003 if test -n "$XTERMPATH"; then
4004 ptygrpn=`ls -l$lsfollow $XTERMPATH | sed -n -e 1p | $AWK '{print $4}'`
4005 if test tty != "$ptygrpn"; then
4006 XTERMPATH=
4007 fi
4008 fi
4009 fi
4010 if test -n "$WRITEPATH$XTERMPATH"; then
4011 found=`find $WRITEPATH $XTERMPATH $findfollow -perm -2000 -print`
4012 if test -n "$found"; then
4013 ptygrp=`ls -ln$lsfollow $found | sed -n -e 1p | $AWK '{print $4}'`
4014 echo "- pty mode: $ptymode, group: $ptygrp" 1>&6
4015
4016 cat >>confdefs.h <<_ACEOF
4017#define PTYMODE $ptymode
4018_ACEOF
4019
4020 cat >>confdefs.h <<_ACEOF
4021#define PTYGROUP $ptygrp
4022_ACEOF
4023
4024 else
4025 echo "- ptys are world accessable" 1>&6
4026
4027 fi
4028 else
4029 echo "- can't determine - assume ptys are world accessable" 1>&6
4030
4031 fi
4032
4033
4034fi
4a11f206
PP
4035rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4036 conftest.$ac_objext conftest.beam conftest.$ac_ext
b585a9fa 4037fi
81ecdfbb 4038
b585a9fa
EZ
4039rm -f conftest_grp
4040fi
4041
4042if test -n "$posix" ; then
4043
4044echo "assuming posix signal definition" 1>&6
4045
4a11f206 4046$as_echo "#define SIGVOID 1" >>confdefs.h
b585a9fa
EZ
4047
4048
4049else
4050
4a11f206 4051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers..." >&5
81ecdfbb 4052$as_echo "$as_me: checking return type of signal handlers..." >&6;}
4a11f206 4053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b585a9fa
EZ
4054/* end confdefs.h. */
4055#include <sys/types.h>
4056#include <signal.h>
4057#ifdef signal
4058#undef signal
4059#endif
4060extern void (*signal ()) ();
4061int
4062main ()
4063{
4064int i;
4065 ;
4066 return 0;
4067}
4068_ACEOF
4a11f206
PP
4069if ac_fn_c_try_compile "$LINENO"; then :
4070 $as_echo "#define SIGVOID 1" >>confdefs.h
b585a9fa
EZ
4071
4072fi
81ecdfbb 4073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4a11f206 4074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sigset..." >&5
81ecdfbb 4075$as_echo "$as_me: checking sigset..." >&6;}
4a11f206 4076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b585a9fa
EZ
4077/* end confdefs.h. */
4078
4079#include <sys/types.h>
4080#include <signal.h>
4081
4082int
4083main ()
4084{
4085
4086#ifdef SIGVOID
4087sigset(0, (void (*)())0);
4088#else
4089sigset(0, (int (*)())0);
4090#endif
4091
4092 ;
4093 return 0;
4094}
4095_ACEOF
4a11f206
PP
4096if ac_fn_c_try_link "$LINENO"; then :
4097 $as_echo "#define USESIGSET 1" >>confdefs.h
b585a9fa
EZ
4098
4099fi
4a11f206
PP
4100rm -f core conftest.err conftest.$ac_objext \
4101 conftest$ac_exeext conftest.$ac_ext
4102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking signal implementation..." >&5
81ecdfbb 4103$as_echo "$as_me: checking signal implementation..." >&6;}
4a11f206
PP
4104if test "$cross_compiling" = yes; then :
4105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
81ecdfbb 4106$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4a11f206
PP
4107as_fn_error "cannot run test program while cross compiling
4108See \`config.log' for more details." "$LINENO" 5; }
4109else
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b585a9fa
EZ
4111/* end confdefs.h. */
4112
4113#include <sys/types.h>
4114#include <signal.h>
4115
cc88a640
JK
4116#ifndef SIGCLD
4117#define SIGCLD SIGCHLD
4118#endif
4119#ifdef USESIGSET
4120#define signal sigset
4121#endif
4122
4123int got;
4124
4125#ifdef SIGVOID
4126void
4127#endif
4128hand()
4129{
4130 got++;
4131}
4132
4133main()
4134{
4135 /* on hpux we use sigvec to get bsd signals */
4136#ifdef __hpux
4137 (void)signal(SIGCLD, hand);
4138 kill(getpid(), SIGCLD);
4139 kill(getpid(), SIGCLD);
4140 if (got < 2)
4141 exit(1);
4142#endif
4143 exit(0);
4144}
4145
4146_ACEOF
4a11f206 4147if ac_fn_c_try_run "$LINENO"; then :
cc88a640 4148
4a11f206
PP
4149else
4150 $as_echo "#define SYSVSIGS 1" >>confdefs.h
cc88a640
JK
4151
4152fi
4a11f206
PP
4153rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4154 conftest.$ac_objext conftest.beam conftest.$ac_ext
cc88a640
JK
4155fi
4156
4157
cc88a640
JK
4158fi
4159
4a11f206 4160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cc88a640 4161$as_echo_n "checking for ANSI C header files... " >&6; }
4a11f206 4162if test "${ac_cv_header_stdc+set}" = set; then :
cc88a640
JK
4163 $as_echo_n "(cached) " >&6
4164else
4a11f206 4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc88a640
JK
4166/* end confdefs.h. */
4167#include <stdlib.h>
4168#include <stdarg.h>
4169#include <string.h>
4170#include <float.h>
4171
4172int
4173main ()
4174{
4175
4176 ;
4177 return 0;
4178}
4179_ACEOF
4a11f206 4180if ac_fn_c_try_compile "$LINENO"; then :
cc88a640
JK
4181 ac_cv_header_stdc=yes
4182else
4a11f206 4183 ac_cv_header_stdc=no
cc88a640 4184fi
cc88a640
JK
4185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4186
4187if test $ac_cv_header_stdc = yes; then
4188 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4a11f206 4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc88a640
JK
4190/* end confdefs.h. */
4191#include <string.h>
4192
4193_ACEOF
4194if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4a11f206
PP
4195 $EGREP "memchr" >/dev/null 2>&1; then :
4196
cc88a640
JK
4197else
4198 ac_cv_header_stdc=no
4199fi
4200rm -f conftest*
4201
4202fi
4203
4204if test $ac_cv_header_stdc = yes; then
4205 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4a11f206 4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc88a640
JK
4207/* end confdefs.h. */
4208#include <stdlib.h>
4209
4210_ACEOF
4211if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4a11f206
PP
4212 $EGREP "free" >/dev/null 2>&1; then :
4213
cc88a640
JK
4214else
4215 ac_cv_header_stdc=no
4216fi
4217rm -f conftest*
4218
4219fi
4220
4221if test $ac_cv_header_stdc = yes; then
4222 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4a11f206 4223 if test "$cross_compiling" = yes; then :
cc88a640
JK
4224 :
4225else
4a11f206 4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc88a640
JK
4227/* end confdefs.h. */
4228#include <ctype.h>
4229#include <stdlib.h>
4230#if ((' ' & 0x0FF) == 0x020)
4231# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4232# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4233#else
4234# define ISLOWER(c) \
4235 (('a' <= (c) && (c) <= 'i') \
4236 || ('j' <= (c) && (c) <= 'r') \
4237 || ('s' <= (c) && (c) <= 'z'))
4238# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4239#endif
4240
4241#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4242int
4243main ()
4244{
4245 int i;
4246 for (i = 0; i < 256; i++)
4247 if (XOR (islower (i), ISLOWER (i))
4248 || toupper (i) != TOUPPER (i))
4249 return 2;
4250 return 0;
4251}
4252_ACEOF
4a11f206 4253if ac_fn_c_try_run "$LINENO"; then :
cc88a640 4254
cc88a640 4255else
4a11f206
PP
4256 ac_cv_header_stdc=no
4257fi
4258rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4259 conftest.$ac_objext conftest.beam conftest.$ac_ext
4260fi
cc88a640 4261
cc88a640 4262fi
4a11f206
PP
4263fi
4264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4265$as_echo "$ac_cv_header_stdc" >&6; }
4266if test $ac_cv_header_stdc = yes; then
4267
4268$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cc88a640 4269
cc88a640 4270fi
4a11f206
PP
4271
4272# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4273for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4274 inttypes.h stdint.h unistd.h
4275do :
4276 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4277ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4278"
4279eval as_val=\$$as_ac_Header
4280 if test "x$as_val" = x""yes; then :
cc88a640
JK
4281 cat >>confdefs.h <<_ACEOF
4282#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4283_ACEOF
4284
4285fi
4286
4287done
b585a9fa 4288
b585a9fa 4289
4a11f206
PP
4290for ac_header in sys/stropts.h sys/wait.h sgtty.h sys/select.h
4291do :
4292 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4293ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4294eval as_val=\$$as_ac_Header
4295 if test "x$as_val" = x""yes; then :
4296 cat >>confdefs.h <<_ACEOF
4297#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
cc88a640 4298_ACEOF
b585a9fa
EZ
4299
4300fi
cc88a640 4301
4a11f206 4302done
b585a9fa 4303
4a11f206
PP
4304for ac_header in term.h
4305do :
4306 ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
4307if test "x$ac_cv_header_term_h" = x""yes; then :
cc88a640 4308 cat >>confdefs.h <<_ACEOF
4a11f206 4309#define HAVE_TERM_H 1
cc88a640 4310_ACEOF
81ecdfbb 4311
b585a9fa
EZ
4312fi
4313
cc88a640
JK
4314done
4315
4316
81ecdfbb
RW
4317ac_config_files="$ac_config_files Makefile"
4318
b585a9fa
EZ
4319cat >confcache <<\_ACEOF
4320# This file is a shell script that caches the results of configure
4321# tests run on this system so they can be shared between configure
4322# scripts and configure runs, see configure's option --config-cache.
4323# It is not useful on other systems. If it contains results you don't
4324# want to keep, you may remove or edit it.
4325#
4326# config.status only pays attention to the cache file if you give it
4327# the --recheck option to rerun configure.
4328#
4329# `ac_cv_env_foo' variables (set or unset) will be overridden when
4330# loading this file, other *unset* `ac_cv_foo' will be assigned the
4331# following values.
4332
4333_ACEOF
4334
4335# The following way of writing the cache mishandles newlines in values,
4336# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 4337# So, we kill variables containing newlines.
b585a9fa
EZ
4338# Ultrix sh set writes to stderr and can't be redirected directly,
4339# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
4340(
4341 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4342 eval ac_val=\$$ac_var
4343 case $ac_val in #(
4344 *${as_nl}*)
4345 case $ac_var in #(
4a11f206 4346 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
81ecdfbb
RW
4347$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4348 esac
4349 case $ac_var in #(
4350 _ | IFS | as_nl) ;; #(
4351 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4a11f206 4352 *) { eval $ac_var=; unset $ac_var;} ;;
81ecdfbb
RW
4353 esac ;;
4354 esac
4355 done
4356
b585a9fa 4357 (set) 2>&1 |
81ecdfbb
RW
4358 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4359 *${as_nl}ac_space=\ *)
4a11f206
PP
4360 # `set' does not quote correctly, so add quotes: double-quote
4361 # substitution turns \\\\ into \\, and sed turns \\ into \.
b585a9fa
EZ
4362 sed -n \
4363 "s/'/'\\\\''/g;
4364 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 4365 ;; #(
b585a9fa
EZ
4366 *)
4367 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 4368 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b585a9fa 4369 ;;
81ecdfbb
RW
4370 esac |
4371 sort
4372) |
b585a9fa 4373 sed '
81ecdfbb 4374 /^ac_cv_env_/b end
b585a9fa 4375 t clear
81ecdfbb 4376 :clear
b585a9fa
EZ
4377 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4378 t end
81ecdfbb
RW
4379 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4380 :end' >>confcache
4381if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4382 if test -w "$cache_file"; then
4383 test "x$cache_file" != "x/dev/null" &&
4a11f206 4384 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
81ecdfbb 4385$as_echo "$as_me: updating cache $cache_file" >&6;}
b585a9fa
EZ
4386 cat confcache >$cache_file
4387 else
4a11f206 4388 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
81ecdfbb 4389$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
b585a9fa
EZ
4390 fi
4391fi
4392rm -f confcache
4393
4394test "x$prefix" = xNONE && prefix=$ac_default_prefix
4395# Let make expand exec_prefix.
4396test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4397
b585a9fa
EZ
4398DEFS=-DHAVE_CONFIG_H
4399
4400ac_libobjs=
4401ac_ltlibobjs=
4402for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4403 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
4404 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4405 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4406 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4407 # will be set to the directory where LIBOBJS objects are built.
4a11f206
PP
4408 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4409 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b585a9fa
EZ
4410done
4411LIBOBJS=$ac_libobjs
4412
4413LTLIBOBJS=$ac_ltlibobjs
4414
4415
4416
4417: ${CONFIG_STATUS=./config.status}
81ecdfbb 4418ac_write_fail=0
b585a9fa
EZ
4419ac_clean_files_save=$ac_clean_files
4420ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4a11f206 4421{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
81ecdfbb 4422$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4a11f206
PP
4423as_write_fail=0
4424cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b585a9fa
EZ
4425#! $SHELL
4426# Generated by $as_me.
4427# Run this file to recreate the current configuration.
4428# Compiler output produced by configure, useful for debugging
4429# configure, is in config.log if it exists.
4430
4431debug=false
4432ac_cs_recheck=false
4433ac_cs_silent=false
cc88a640 4434
4a11f206
PP
4435SHELL=\${CONFIG_SHELL-$SHELL}
4436export SHELL
4437_ASEOF
4438cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4439## -------------------- ##
4440## M4sh Initialization. ##
4441## -------------------- ##
81ecdfbb
RW
4442
4443# Be more Bourne compatible
4444DUALCASE=1; export DUALCASE # for MKS sh
4a11f206 4445if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b585a9fa
EZ
4446 emulate sh
4447 NULLCMD=:
81ecdfbb 4448 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b585a9fa
EZ
4449 # is contrary to our usage. Disable this feature.
4450 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
4451 setopt NO_GLOB_SUBST
4452else
4a11f206
PP
4453 case `(set -o) 2>/dev/null` in #(
4454 *posix*) :
4455 set -o posix ;; #(
4456 *) :
4457 ;;
81ecdfbb 4458esac
b585a9fa 4459fi
b585a9fa 4460
81ecdfbb
RW
4461
4462as_nl='
4463'
4464export as_nl
4465# Printing a long string crashes Solaris 7 /usr/bin/printf.
4466as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4467as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4468as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4a11f206
PP
4469# Prefer a ksh shell builtin over an external printf program on Solaris,
4470# but without wasting forks for bash or zsh.
4471if test -z "$BASH_VERSION$ZSH_VERSION" \
4472 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4473 as_echo='print -r --'
4474 as_echo_n='print -rn --'
4475elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
81ecdfbb
RW
4476 as_echo='printf %s\n'
4477 as_echo_n='printf %s'
b585a9fa 4478else
81ecdfbb
RW
4479 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4480 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4481 as_echo_n='/usr/ucb/echo -n'
4482 else
4483 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4484 as_echo_n_body='eval
4485 arg=$1;
4a11f206 4486 case $arg in #(
81ecdfbb
RW
4487 *"$as_nl"*)
4488 expr "X$arg" : "X\\(.*\\)$as_nl";
4489 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4490 esac;
4491 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4492 '
4493 export as_echo_n_body
4494 as_echo_n='sh -c $as_echo_n_body as_echo'
4495 fi
4496 export as_echo_body
4497 as_echo='sh -c $as_echo_body as_echo'
4498fi
4499
4500# The user is always right.
4501if test "${PATH_SEPARATOR+set}" != set; then
4502 PATH_SEPARATOR=:
4503 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4504 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4505 PATH_SEPARATOR=';'
4506 }
b585a9fa
EZ
4507fi
4508
4509
81ecdfbb
RW
4510# IFS
4511# We need space, tab and new line, in precisely that order. Quoting is
4512# there to prevent editors from complaining about space-tab.
4513# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4514# splitting by setting IFS to empty value.)
4515IFS=" "" $as_nl"
4516
4517# Find who we are. Look in the path if we contain no directory separator.
4a11f206 4518case $0 in #((
81ecdfbb
RW
4519 *[\\/]* ) as_myself=$0 ;;
4520 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521for as_dir in $PATH
4522do
4523 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
4a11f206
PP
4525 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4526 done
81ecdfbb
RW
4527IFS=$as_save_IFS
4528
4529 ;;
4530esac
4531# We did not find ourselves, most probably we were run as `sh COMMAND'
4532# in which case we are not to be found in the path.
4533if test "x$as_myself" = x; then
4534 as_myself=$0
4535fi
4536if test ! -f "$as_myself"; then
4537 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4a11f206 4538 exit 1
81ecdfbb
RW
4539fi
4540
4a11f206
PP
4541# Unset variables that we do not need and which cause bugs (e.g. in
4542# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4543# suppresses any "Segmentation fault" message there. '((' could
4544# trigger a bug in pdksh 5.2.14.
4545for as_var in BASH_ENV ENV MAIL MAILPATH
4546do eval test x\${$as_var+set} = xset \
4547 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
81ecdfbb 4548done
b585a9fa
EZ
4549PS1='$ '
4550PS2='> '
4551PS4='+ '
4552
4553# NLS nuisances.
81ecdfbb
RW
4554LC_ALL=C
4555export LC_ALL
4556LANGUAGE=C
4557export LANGUAGE
4558
4a11f206
PP
4559# CDPATH.
4560(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4561
4562
4563# as_fn_error ERROR [LINENO LOG_FD]
4564# ---------------------------------
4565# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4566# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4567# script with status $?, using 1 if that was 0.
4568as_fn_error ()
4569{
4570 as_status=$?; test $as_status -eq 0 && as_status=1
4571 if test "$3"; then
4572 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4573 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
4574 fi
4575 $as_echo "$as_me: error: $1" >&2
4576 as_fn_exit $as_status
4577} # as_fn_error
4578
4579
4580# as_fn_set_status STATUS
4581# -----------------------
4582# Set $? to STATUS, without forking.
4583as_fn_set_status ()
4584{
4585 return $1
4586} # as_fn_set_status
4587
4588# as_fn_exit STATUS
4589# -----------------
4590# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4591as_fn_exit ()
4592{
4593 set +e
4594 as_fn_set_status $1
4595 exit $1
4596} # as_fn_exit
4597
4598# as_fn_unset VAR
4599# ---------------
4600# Portably unset VAR.
4601as_fn_unset ()
4602{
4603 { eval $1=; unset $1;}
4604}
4605as_unset=as_fn_unset
4606# as_fn_append VAR VALUE
4607# ----------------------
4608# Append the text in VALUE to the end of the definition contained in VAR. Take
4609# advantage of any shell optimizations that allow amortized linear growth over
4610# repeated appends, instead of the typical quadratic growth present in naive
4611# implementations.
4612if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4613 eval 'as_fn_append ()
4614 {
4615 eval $1+=\$2
4616 }'
4617else
4618 as_fn_append ()
4619 {
4620 eval $1=\$$1\$2
4621 }
4622fi # as_fn_append
4623
4624# as_fn_arith ARG...
4625# ------------------
4626# Perform arithmetic evaluation on the ARGs, and store the result in the
4627# global $as_val. Take advantage of shells that can avoid forks. The arguments
4628# must be portable across $(()) and expr.
4629if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4630 eval 'as_fn_arith ()
4631 {
4632 as_val=$(( $* ))
4633 }'
4634else
4635 as_fn_arith ()
4636 {
4637 as_val=`expr "$@" || test $? -eq 1`
4638 }
4639fi # as_fn_arith
4640
4641
81ecdfbb
RW
4642if expr a : '\(a\)' >/dev/null 2>&1 &&
4643 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b585a9fa
EZ
4644 as_expr=expr
4645else
4646 as_expr=false
4647fi
4648
81ecdfbb 4649if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b585a9fa
EZ
4650 as_basename=basename
4651else
4652 as_basename=false
4653fi
4654
4a11f206
PP
4655if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4656 as_dirname=dirname
4657else
4658 as_dirname=false
4659fi
b585a9fa 4660
81ecdfbb 4661as_me=`$as_basename -- "$0" ||
b585a9fa
EZ
4662$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4663 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
4664 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4665$as_echo X/"$0" |
4666 sed '/^.*\/\([^/][^/]*\)\/*$/{
4667 s//\1/
4668 q
4669 }
4670 /^X\/\(\/\/\)$/{
4671 s//\1/
4672 q
4673 }
4674 /^X\/\(\/\).*/{
4675 s//\1/
4676 q
4677 }
4678 s/.*/./; q'`
b585a9fa 4679
4a11f206
PP
4680# Avoid depending upon Character Ranges.
4681as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4682as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4683as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4684as_cr_digits='0123456789'
4685as_cr_alnum=$as_cr_Letters$as_cr_digits
b585a9fa 4686
81ecdfbb 4687ECHO_C= ECHO_N= ECHO_T=
4a11f206 4688case `echo -n x` in #(((((
81ecdfbb 4689-n*)
4a11f206 4690 case `echo 'xy\c'` in
81ecdfbb 4691 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4a11f206
PP
4692 xy) ECHO_C='\c';;
4693 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4694 ECHO_T=' ';;
81ecdfbb
RW
4695 esac;;
4696*)
4697 ECHO_N='-n';;
b585a9fa
EZ
4698esac
4699
81ecdfbb
RW
4700rm -f conf$$ conf$$.exe conf$$.file
4701if test -d conf$$.dir; then
4702 rm -f conf$$.dir/conf$$.file
b585a9fa 4703else
81ecdfbb
RW
4704 rm -f conf$$.dir
4705 mkdir conf$$.dir 2>/dev/null
b585a9fa 4706fi
81ecdfbb
RW
4707if (echo >conf$$.file) 2>/dev/null; then
4708 if ln -s conf$$.file conf$$ 2>/dev/null; then
b585a9fa 4709 as_ln_s='ln -s'
81ecdfbb
RW
4710 # ... but there are two gotchas:
4711 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4712 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4713 # In both cases, we have to default to `cp -p'.
4714 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4715 as_ln_s='cp -p'
4716 elif ln conf$$.file conf$$ 2>/dev/null; then
4717 as_ln_s=ln
4718 else
4719 as_ln_s='cp -p'
b585a9fa 4720 fi
b585a9fa
EZ
4721else
4722 as_ln_s='cp -p'
4723fi
81ecdfbb
RW
4724rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4725rmdir conf$$.dir 2>/dev/null
4726
4a11f206
PP
4727
4728# as_fn_mkdir_p
4729# -------------
4730# Create "$as_dir" as a directory, including parents if necessary.
4731as_fn_mkdir_p ()
4732{
4733
4734 case $as_dir in #(
4735 -*) as_dir=./$as_dir;;
4736 esac
4737 test -d "$as_dir" || eval $as_mkdir_p || {
4738 as_dirs=
4739 while :; do
4740 case $as_dir in #(
4741 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4742 *) as_qdir=$as_dir;;
4743 esac
4744 as_dirs="'$as_qdir' $as_dirs"
4745 as_dir=`$as_dirname -- "$as_dir" ||
4746$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4747 X"$as_dir" : 'X\(//\)[^/]' \| \
4748 X"$as_dir" : 'X\(//\)$' \| \
4749 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4750$as_echo X"$as_dir" |
4751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4752 s//\1/
4753 q
4754 }
4755 /^X\(\/\/\)[^/].*/{
4756 s//\1/
4757 q
4758 }
4759 /^X\(\/\/\)$/{
4760 s//\1/
4761 q
4762 }
4763 /^X\(\/\).*/{
4764 s//\1/
4765 q
4766 }
4767 s/.*/./; q'`
4768 test -d "$as_dir" && break
4769 done
4770 test -z "$as_dirs" || eval "mkdir $as_dirs"
4771 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
4772
4773
4774} # as_fn_mkdir_p
b585a9fa 4775if mkdir -p . 2>/dev/null; then
4a11f206 4776 as_mkdir_p='mkdir -p "$as_dir"'
b585a9fa
EZ
4777else
4778 test -d ./-p && rmdir ./-p
4779 as_mkdir_p=false
4780fi
4781
81ecdfbb
RW
4782if test -x / >/dev/null 2>&1; then
4783 as_test_x='test -x'
4784else
4785 if ls -dL / >/dev/null 2>&1; then
4786 as_ls_L_option=L
4787 else
4788 as_ls_L_option=
4789 fi
4790 as_test_x='
4791 eval sh -c '\''
4792 if test -d "$1"; then
4793 test -d "$1/.";
4794 else
4a11f206 4795 case $1 in #(
81ecdfbb
RW
4796 -*)set "./$1";;
4797 esac;
4a11f206 4798 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
81ecdfbb
RW
4799 ???[sx]*):;;*)false;;esac;fi
4800 '\'' sh
4801 '
4802fi
4803as_executable_p=$as_test_x
b585a9fa
EZ
4804
4805# Sed expression to map a string onto a valid CPP name.
4806as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4807
4808# Sed expression to map a string onto a valid variable name.
4809as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4810
4811
b585a9fa 4812exec 6>&1
4a11f206
PP
4813## ----------------------------------- ##
4814## Main body of $CONFIG_STATUS script. ##
4815## ----------------------------------- ##
4816_ASEOF
4817test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
81ecdfbb 4818
4a11f206
PP
4819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4820# Save the log message, to keep $0 and so on meaningful, and to
b585a9fa 4821# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
4822# values after options handling.
4823ac_log="
b585a9fa 4824This file was extended by $as_me, which was
4a11f206 4825generated by GNU Autoconf 2.64. Invocation command line was
b585a9fa
EZ
4826
4827 CONFIG_FILES = $CONFIG_FILES
4828 CONFIG_HEADERS = $CONFIG_HEADERS
4829 CONFIG_LINKS = $CONFIG_LINKS
4830 CONFIG_COMMANDS = $CONFIG_COMMANDS
4831 $ $0 $@
4832
81ecdfbb
RW
4833on `(hostname || uname -n) 2>/dev/null | sed 1q`
4834"
4835
b585a9fa
EZ
4836_ACEOF
4837
81ecdfbb
RW
4838case $ac_config_files in *"
4839"*) set x $ac_config_files; shift; ac_config_files=$*;;
4840esac
b585a9fa 4841
81ecdfbb
RW
4842case $ac_config_headers in *"
4843"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4844esac
b585a9fa 4845
b585a9fa 4846
81ecdfbb
RW
4847cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4848# Files that config.status was made for.
4849config_files="$ac_config_files"
4850config_headers="$ac_config_headers"
b585a9fa 4851
81ecdfbb 4852_ACEOF
b585a9fa 4853
81ecdfbb 4854cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b585a9fa 4855ac_cs_usage="\
4a11f206
PP
4856\`$as_me' instantiates files and other configuration actions
4857from templates according to the current configuration. Unless the files
4858and actions are specified as TAGs, all are instantiated by default.
b585a9fa 4859
4a11f206 4860Usage: $0 [OPTION]... [TAG]...
b585a9fa
EZ
4861
4862 -h, --help print this help, then exit
81ecdfbb
RW
4863 -V, --version print version number and configuration settings, then exit
4864 -q, --quiet, --silent
4865 do not print progress messages
b585a9fa
EZ
4866 -d, --debug don't remove temporary files
4867 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
4868 --file=FILE[:TEMPLATE]
4869 instantiate the configuration file FILE
4870 --header=FILE[:TEMPLATE]
4871 instantiate the configuration header FILE
b585a9fa
EZ
4872
4873Configuration files:
4874$config_files
4875
4876Configuration headers:
4877$config_headers
4878
4a11f206 4879Report bugs to the package provider."
b585a9fa 4880
81ecdfbb
RW
4881_ACEOF
4882cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b585a9fa
EZ
4883ac_cs_version="\\
4884config.status
4a11f206 4885configured by $0, generated by GNU Autoconf 2.64,
81ecdfbb 4886 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
b585a9fa 4887
4a11f206 4888Copyright (C) 2009 Free Software Foundation, Inc.
b585a9fa
EZ
4889This config.status script is free software; the Free Software Foundation
4890gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
4891
4892ac_pwd='$ac_pwd'
4893srcdir='$srcdir'
4894AWK='$AWK'
4895test -n "\$AWK" || AWK=awk
b585a9fa
EZ
4896_ACEOF
4897
81ecdfbb
RW
4898cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4899# The default lists apply if the user does not specify any file.
b585a9fa
EZ
4900ac_need_defaults=:
4901while test $# != 0
4902do
4903 case $1 in
4904 --*=*)
81ecdfbb
RW
4905 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4906 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b585a9fa
EZ
4907 ac_shift=:
4908 ;;
81ecdfbb 4909 *)
b585a9fa
EZ
4910 ac_option=$1
4911 ac_optarg=$2
4912 ac_shift=shift
4913 ;;
b585a9fa
EZ
4914 esac
4915
4916 case $ac_option in
4917 # Handling of the options.
b585a9fa
EZ
4918 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4919 ac_cs_recheck=: ;;
81ecdfbb
RW
4920 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4921 $as_echo "$ac_cs_version"; exit ;;
4922 --debug | --debu | --deb | --de | --d | -d )
b585a9fa
EZ
4923 debug=: ;;
4924 --file | --fil | --fi | --f )
4925 $ac_shift
81ecdfbb
RW
4926 case $ac_optarg in
4927 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4928 esac
4a11f206 4929 as_fn_append CONFIG_FILES " '$ac_optarg'"
b585a9fa
EZ
4930 ac_need_defaults=false;;
4931 --header | --heade | --head | --hea )
4932 $ac_shift
81ecdfbb
RW
4933 case $ac_optarg in
4934 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4935 esac
4a11f206 4936 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
b585a9fa 4937 ac_need_defaults=false;;
81ecdfbb
RW
4938 --he | --h)
4939 # Conflict between --help and --header
4a11f206
PP
4940 as_fn_error "ambiguous option: \`$1'
4941Try \`$0 --help' for more information.";;
81ecdfbb
RW
4942 --help | --hel | -h )
4943 $as_echo "$ac_cs_usage"; exit ;;
b585a9fa
EZ
4944 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4945 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4946 ac_cs_silent=: ;;
4947
4948 # This is an error.
4a11f206
PP
4949 -*) as_fn_error "unrecognized option: \`$1'
4950Try \`$0 --help' for more information." ;;
b585a9fa 4951
4a11f206 4952 *) as_fn_append ac_config_targets " $1"
81ecdfbb 4953 ac_need_defaults=false ;;
b585a9fa
EZ
4954
4955 esac
4956 shift
4957done
4958
4959ac_configure_extra_args=
4960
4961if $ac_cs_silent; then
4962 exec 6>/dev/null
4963 ac_configure_extra_args="$ac_configure_extra_args --silent"
4964fi
4965
4966_ACEOF
81ecdfbb 4967cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b585a9fa 4968if \$ac_cs_recheck; then
81ecdfbb
RW
4969 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4970 shift
4971 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4972 CONFIG_SHELL='$SHELL'
4973 export CONFIG_SHELL
4974 exec "\$@"
b585a9fa
EZ
4975fi
4976
4977_ACEOF
81ecdfbb
RW
4978cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4979exec 5>>config.log
4980{
4981 echo
4982 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4983## Running $as_me. ##
4984_ASBOX
4985 $as_echo "$ac_log"
4986} >&5
b585a9fa 4987
81ecdfbb
RW
4988_ACEOF
4989cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4990_ACEOF
b585a9fa 4991
81ecdfbb 4992cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b585a9fa 4993
81ecdfbb 4994# Handling of arguments.
b585a9fa
EZ
4995for ac_config_target in $ac_config_targets
4996do
81ecdfbb
RW
4997 case $ac_config_target in
4998 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4999 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5000
4a11f206 5001 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
b585a9fa
EZ
5002 esac
5003done
5004
81ecdfbb 5005
b585a9fa
EZ
5006# If the user did not use the arguments to specify the items to instantiate,
5007# then the envvar interface is used. Set only those that are not.
5008# We use the long form for the default assignment because of an extremely
5009# bizarre bug on SunOS 4.1.3.
5010if $ac_need_defaults; then
5011 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5012 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5013fi
5014
5015# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 5016# simply because there is no reason against having it here, and in addition,
b585a9fa 5017# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
5018# Hook for its removal unless debugging.
5019# Note that there is a small window in which the directory will not be cleaned:
5020# after its creation but before its name has been assigned to `$tmp'.
b585a9fa
EZ
5021$debug ||
5022{
81ecdfbb
RW
5023 tmp=
5024 trap 'exit_status=$?
5025 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5026' 0
4a11f206 5027 trap 'as_fn_exit 1' 1 2 13 15
b585a9fa 5028}
b585a9fa
EZ
5029# Create a (secure) tmp directory for tmp files.
5030
5031{
81ecdfbb 5032 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b585a9fa
EZ
5033 test -n "$tmp" && test -d "$tmp"
5034} ||
5035{
81ecdfbb
RW
5036 tmp=./conf$$-$RANDOM
5037 (umask 077 && mkdir "$tmp")
4a11f206 5038} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
81ecdfbb
RW
5039
5040# Set up the scripts for CONFIG_FILES section.
5041# No need to generate them if there are no CONFIG_FILES.
5042# This happens for instance with `./config.status config.h'.
5043if test -n "$CONFIG_FILES"; then
5044
5045
4a11f206
PP
5046ac_cr=`echo X | tr X '\015'`
5047# On cygwin, bash can eat \r inside `` if the user requested igncr.
5048# But we know of no other shell where ac_cr would be empty at this
5049# point, so we can use a bashism as a fallback.
5050if test "x$ac_cr" = x; then
5051 eval ac_cr=\$\'\\r\'
5052fi
81ecdfbb
RW
5053ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5054if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4a11f206 5055 ac_cs_awk_cr='\r'
81ecdfbb
RW
5056else
5057 ac_cs_awk_cr=$ac_cr
5058fi
5059
5060echo 'BEGIN {' >"$tmp/subs1.awk" &&
5061_ACEOF
5062
5063
5064{
5065 echo "cat >conf$$subs.awk <<_ACEOF" &&
5066 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5067 echo "_ACEOF"
5068} >conf$$subs.sh ||
4a11f206 5069 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
5070ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5071ac_delim='%!_!# '
5072for ac_last_try in false false false false false :; do
5073 . ./conf$$subs.sh ||
4a11f206 5074 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
5075
5076 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5077 if test $ac_delim_n = $ac_delim_num; then
5078 break
5079 elif $ac_last_try; then
4a11f206 5080 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
5081 else
5082 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5083 fi
5084done
5085rm -f conf$$subs.sh
5086
5087cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5088cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5089_ACEOF
5090sed -n '
5091h
5092s/^/S["/; s/!.*/"]=/
5093p
5094g
5095s/^[^!]*!//
5096:repl
5097t repl
5098s/'"$ac_delim"'$//
5099t delim
5100:nl
5101h
5102s/\(.\{148\}\).*/\1/
5103t more1
5104s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5105p
5106n
5107b repl
5108:more1
5109s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5110p
5111g
5112s/.\{148\}//
5113t nl
5114:delim
5115h
5116s/\(.\{148\}\).*/\1/
5117t more2
5118s/["\\]/\\&/g; s/^/"/; s/$/"/
5119p
5120b
5121:more2
5122s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5123p
5124g
5125s/.\{148\}//
5126t delim
5127' <conf$$subs.awk | sed '
5128/^[^""]/{
5129 N
5130 s/\n//
5131}
5132' >>$CONFIG_STATUS || ac_write_fail=1
5133rm -f conf$$subs.awk
5134cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5135_ACAWK
5136cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5137 for (key in S) S_is_set[key] = 1
5138 FS = "\a"
5139
5140}
b585a9fa 5141{
81ecdfbb
RW
5142 line = $ 0
5143 nfields = split(line, field, "@")
5144 substed = 0
5145 len = length(field[1])
5146 for (i = 2; i < nfields; i++) {
5147 key = field[i]
5148 keylen = length(key)
5149 if (S_is_set[key]) {
5150 value = S[key]
5151 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5152 len += length(value) + length(field[++i])
5153 substed = 1
5154 } else
5155 len += 1 + keylen
5156 }
5157
5158 print line
b585a9fa
EZ
5159}
5160
81ecdfbb
RW
5161_ACAWK
5162_ACEOF
5163cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5164if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5165 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5166else
5167 cat
5168fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
4a11f206 5169 || as_fn_error "could not setup config files machinery" "$LINENO" 5
b585a9fa
EZ
5170_ACEOF
5171
81ecdfbb
RW
5172# VPATH may cause trouble with some makes, so we remove $(srcdir),
5173# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5174# trailing colons and then remove the whole line if VPATH becomes empty
5175# (actually we leave an empty line to preserve line numbers).
5176if test "x$srcdir" = x.; then
5177 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5178s/:*\$(srcdir):*/:/
5179s/:*\${srcdir}:*/:/
5180s/:*@srcdir@:*/:/
5181s/^\([^=]*=[ ]*\):*/\1/
5182s/:*$//
5183s/^[^=]*=[ ]*$//
5184}'
5185fi
b585a9fa 5186
81ecdfbb
RW
5187cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5188fi # test -n "$CONFIG_FILES"
b585a9fa 5189
81ecdfbb
RW
5190# Set up the scripts for CONFIG_HEADERS section.
5191# No need to generate them if there are no CONFIG_HEADERS.
5192# This happens for instance with `./config.status Makefile'.
5193if test -n "$CONFIG_HEADERS"; then
5194cat >"$tmp/defines.awk" <<\_ACAWK ||
5195BEGIN {
5196_ACEOF
5197
5198# Transform confdefs.h into an awk script `defines.awk', embedded as
5199# here-document in config.status, that substitutes the proper values into
5200# config.h.in to produce config.h.
5201
5202# Create a delimiter string that does not exist in confdefs.h, to ease
5203# handling of long lines.
5204ac_delim='%!_!# '
5205for ac_last_try in false false :; do
5206 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
5207 if test -z "$ac_t"; then
5208 break
5209 elif $ac_last_try; then
4a11f206 5210 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
81ecdfbb
RW
5211 else
5212 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5213 fi
5214done
b585a9fa 5215
81ecdfbb
RW
5216# For the awk script, D is an array of macro values keyed by name,
5217# likewise P contains macro parameters if any. Preserve backslash
5218# newline sequences.
5219
5220ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5221sed -n '
5222s/.\{148\}/&'"$ac_delim"'/g
5223t rset
5224:rset
5225s/^[ ]*#[ ]*define[ ][ ]*/ /
5226t def
5227d
5228:def
5229s/\\$//
5230t bsnl
5231s/["\\]/\\&/g
5232s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5233D["\1"]=" \3"/p
5234s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5235d
5236:bsnl
5237s/["\\]/\\&/g
5238s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5239D["\1"]=" \3\\\\\\n"\\/p
5240t cont
5241s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5242t cont
5243d
5244:cont
5245n
5246s/.\{148\}/&'"$ac_delim"'/g
5247t clear
5248:clear
5249s/\\$//
5250t bsnlc
5251s/["\\]/\\&/g; s/^/"/; s/$/"/p
5252d
5253:bsnlc
5254s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5255b cont
5256' <confdefs.h | sed '
5257s/'"$ac_delim"'/"\\\
5258"/g' >>$CONFIG_STATUS || ac_write_fail=1
5259
5260cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5261 for (key in D) D_is_set[key] = 1
5262 FS = "\a"
5263}
5264/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5265 line = \$ 0
5266 split(line, arg, " ")
5267 if (arg[1] == "#") {
5268 defundef = arg[2]
5269 mac1 = arg[3]
5270 } else {
5271 defundef = substr(arg[1], 2)
5272 mac1 = arg[2]
5273 }
5274 split(mac1, mac2, "(") #)
5275 macro = mac2[1]
5276 prefix = substr(line, 1, index(line, defundef) - 1)
5277 if (D_is_set[macro]) {
5278 # Preserve the white space surrounding the "#".
5279 print prefix "define", macro P[macro] D[macro]
5280 next
5281 } else {
5282 # Replace #undef with comments. This is necessary, for example,
5283 # in the case of _POSIX_SOURCE, which is predefined and required
5284 # on some systems where configure will not decide to define it.
5285 if (defundef == "undef") {
5286 print "/*", prefix defundef, macro, "*/"
5287 next
5288 }
5289 }
5290}
5291{ print }
5292_ACAWK
b585a9fa 5293_ACEOF
81ecdfbb 5294cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4a11f206 5295 as_fn_error "could not setup config headers machinery" "$LINENO" 5
81ecdfbb 5296fi # test -n "$CONFIG_HEADERS"
b585a9fa 5297
81ecdfbb
RW
5298
5299eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
5300shift
5301for ac_tag
5302do
5303 case $ac_tag in
5304 :[FHLC]) ac_mode=$ac_tag; continue;;
5305 esac
5306 case $ac_mode$ac_tag in
5307 :[FHL]*:*);;
4a11f206 5308 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
5309 :[FH]-) ac_tag=-:-;;
5310 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5311 esac
5312 ac_save_IFS=$IFS
5313 IFS=:
5314 set x $ac_tag
5315 IFS=$ac_save_IFS
5316 shift
5317 ac_file=$1
5318 shift
5319
5320 case $ac_mode in
5321 :L) ac_source=$1;;
5322 :[FH])
5323 ac_file_inputs=
5324 for ac_f
5325 do
5326 case $ac_f in
5327 -) ac_f="$tmp/stdin";;
5328 *) # Look for the file first in the build tree, then in the source tree
5329 # (if the path is not absolute). The absolute path cannot be DOS-style,
5330 # because $ac_f cannot contain `:'.
5331 test -f "$ac_f" ||
5332 case $ac_f in
5333 [\\/$]*) false;;
5334 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5335 esac ||
4a11f206 5336 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
5337 esac
5338 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4a11f206 5339 as_fn_append ac_file_inputs " '$ac_f'"
81ecdfbb
RW
5340 done
5341
5342 # Let's still pretend it is `configure' which instantiates (i.e., don't
5343 # use $as_me), people would be surprised to read:
5344 # /* config.h. Generated by config.status. */
5345 configure_input='Generated from '`
5346 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5347 `' by configure.'
5348 if test x"$ac_file" != x-; then
5349 configure_input="$ac_file. $configure_input"
4a11f206 5350 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
81ecdfbb 5351$as_echo "$as_me: creating $ac_file" >&6;}
b585a9fa 5352 fi
81ecdfbb
RW
5353 # Neutralize special characters interpreted by sed in replacement strings.
5354 case $configure_input in #(
5355 *\&* | *\|* | *\\* )
5356 ac_sed_conf_input=`$as_echo "$configure_input" |
5357 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5358 *) ac_sed_conf_input=$configure_input;;
5359 esac
b585a9fa 5360
81ecdfbb
RW
5361 case $ac_tag in
5362 *:-:* | *:-) cat >"$tmp/stdin" \
4a11f206 5363 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
5364 esac
5365 ;;
b585a9fa
EZ
5366 esac
5367
81ecdfbb 5368 ac_dir=`$as_dirname -- "$ac_file" ||
b585a9fa
EZ
5369$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5370 X"$ac_file" : 'X\(//\)[^/]' \| \
5371 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
5372 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5373$as_echo X"$ac_file" |
5374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5375 s//\1/
5376 q
5377 }
5378 /^X\(\/\/\)[^/].*/{
5379 s//\1/
5380 q
5381 }
5382 /^X\(\/\/\)$/{
5383 s//\1/
5384 q
5385 }
5386 /^X\(\/\).*/{
5387 s//\1/
5388 q
5389 }
5390 s/.*/./; q'`
4a11f206 5391 as_dir="$ac_dir"; as_fn_mkdir_p
b585a9fa
EZ
5392 ac_builddir=.
5393
81ecdfbb
RW
5394case "$ac_dir" in
5395.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5396*)
5397 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5398 # A ".." for each directory in $ac_dir_suffix.
5399 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5400 case $ac_top_builddir_sub in
5401 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5402 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5403 esac ;;
5404esac
5405ac_abs_top_builddir=$ac_pwd
5406ac_abs_builddir=$ac_pwd$ac_dir_suffix
5407# for backward compatibility:
5408ac_top_builddir=$ac_top_build_prefix
b585a9fa
EZ
5409
5410case $srcdir in
81ecdfbb 5411 .) # We are building in place.
b585a9fa 5412 ac_srcdir=.
81ecdfbb
RW
5413 ac_top_srcdir=$ac_top_builddir_sub
5414 ac_abs_top_srcdir=$ac_pwd ;;
5415 [\\/]* | ?:[\\/]* ) # Absolute name.
b585a9fa 5416 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
5417 ac_top_srcdir=$srcdir
5418 ac_abs_top_srcdir=$srcdir ;;
5419 *) # Relative name.
5420 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5421 ac_top_srcdir=$ac_top_build_prefix$srcdir
5422 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b585a9fa 5423esac
81ecdfbb 5424ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b585a9fa 5425
b585a9fa 5426
81ecdfbb
RW
5427 case $ac_mode in
5428 :F)
5429 #
5430 # CONFIG_FILE
5431 #
b585a9fa 5432
81ecdfbb 5433_ACEOF
b585a9fa 5434
81ecdfbb
RW
5435cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5436# If the template does not know about datarootdir, expand it.
5437# FIXME: This hack should be removed a few years after 2.60.
5438ac_datarootdir_hack=; ac_datarootdir_seen=
5439ac_sed_dataroot='
5440/datarootdir/ {
5441 p
5442 q
5443}
5444/@datadir@/p
5445/@docdir@/p
5446/@infodir@/p
5447/@localedir@/p
4a11f206 5448/@mandir@/p'
81ecdfbb
RW
5449case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5450*datarootdir*) ac_datarootdir_seen=yes;;
5451*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4a11f206 5452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
81ecdfbb
RW
5453$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5454_ACEOF
5455cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5456 ac_datarootdir_hack='
5457 s&@datadir@&$datadir&g
5458 s&@docdir@&$docdir&g
5459 s&@infodir@&$infodir&g
5460 s&@localedir@&$localedir&g
5461 s&@mandir@&$mandir&g
4a11f206 5462 s&\\\${datarootdir}&$datarootdir&g' ;;
81ecdfbb 5463esac
b585a9fa 5464_ACEOF
81ecdfbb
RW
5465
5466# Neutralize VPATH when `$srcdir' = `.'.
5467# Shell code in configure.ac might set extrasub.
5468# FIXME: do we really want to maintain this feature?
5469cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5470ac_sed_extra="$ac_vpsub
b585a9fa
EZ
5471$extrasub
5472_ACEOF
81ecdfbb 5473cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b585a9fa
EZ
5474:t
5475/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
5476s|@configure_input@|$ac_sed_conf_input|;t t
5477s&@top_builddir@&$ac_top_builddir_sub&;t t
5478s&@top_build_prefix@&$ac_top_build_prefix&;t t
5479s&@srcdir@&$ac_srcdir&;t t
5480s&@abs_srcdir@&$ac_abs_srcdir&;t t
5481s&@top_srcdir@&$ac_top_srcdir&;t t
5482s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5483s&@builddir@&$ac_builddir&;t t
5484s&@abs_builddir@&$ac_abs_builddir&;t t
5485s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5486$ac_datarootdir_hack
5487"
5488eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
4a11f206 5489 || as_fn_error "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
5490
5491test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5492 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5493 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
4a11f206 5494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
81ecdfbb
RW
5495which seems to be undefined. Please make sure it is defined." >&5
5496$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5497which seems to be undefined. Please make sure it is defined." >&2;}
5498
5499 rm -f "$tmp/stdin"
5500 case $ac_file in
5501 -) cat "$tmp/out" && rm -f "$tmp/out";;
5502 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
5503 esac \
4a11f206 5504 || as_fn_error "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
5505 ;;
5506 :H)
5507 #
5508 # CONFIG_HEADER
5509 #
b585a9fa 5510 if test x"$ac_file" != x-; then
81ecdfbb
RW
5511 {
5512 $as_echo "/* $configure_input */" \
5513 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
5514 } >"$tmp/config.h" \
4a11f206 5515 || as_fn_error "could not create $ac_file" "$LINENO" 5
81ecdfbb 5516 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
4a11f206 5517 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
81ecdfbb
RW
5518$as_echo "$as_me: $ac_file is unchanged" >&6;}
5519 else
5520 rm -f "$ac_file"
5521 mv "$tmp/config.h" "$ac_file" \
4a11f206 5522 || as_fn_error "could not create $ac_file" "$LINENO" 5
81ecdfbb 5523 fi
b585a9fa 5524 else
81ecdfbb
RW
5525 $as_echo "/* $configure_input */" \
5526 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
4a11f206 5527 || as_fn_error "could not create -" "$LINENO" 5
b585a9fa 5528 fi
81ecdfbb 5529 ;;
b585a9fa 5530
b585a9fa 5531
b585a9fa
EZ
5532 esac
5533
81ecdfbb 5534done # for ac_tag
b585a9fa 5535
b585a9fa 5536
4a11f206 5537as_fn_exit 0
b585a9fa 5538_ACEOF
b585a9fa
EZ
5539ac_clean_files=$ac_clean_files_save
5540
81ecdfbb 5541test $ac_write_fail = 0 ||
4a11f206 5542 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 5543
b585a9fa
EZ
5544
5545# configure is writing to config.log, and then calls config.status.
5546# config.status does its own redirection, appending to config.log.
5547# Unfortunately, on DOS this fails, as config.log is still kept open
5548# by configure, so config.status won't be able to write to it; its
5549# output is simply discarded. So we exec the FD to /dev/null,
5550# effectively closing config.log, so it can be properly (re)opened and
5551# appended to by config.status. When coming back to configure, we
5552# need to make the FD available again.
5553if test "$no_create" != yes; then
5554 ac_cs_success=:
5555 ac_config_status_args=
5556 test "$silent" = yes &&
5557 ac_config_status_args="$ac_config_status_args --quiet"
5558 exec 5>/dev/null
5559 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5560 exec 5>>config.log
5561 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5562 # would make configure fail if this is the last instruction.
4a11f206 5563 $ac_cs_success || as_fn_exit $?
81ecdfbb
RW
5564fi
5565if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4a11f206 5566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
81ecdfbb 5567$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b585a9fa
EZ
5568fi
5569
This page took 0.7471 seconds and 4 git commands to generate.