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