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