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