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