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