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