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