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