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