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