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