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