Parent Directory
|
Revision Log
|
Revision Graph
Initial revision
1 | #! /bin/sh |
2 | # From configure.ac Revision: 1.40 . |
3 | # Guess values for system-dependent variables and create Makefiles. |
4 | # Generated by GNU Autoconf 2.65 for Eggdrop 1.6.20. |
5 | # |
6 | # Report bugs to <bugs@eggheads.org>. |
7 | # |
8 | # |
9 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
10 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, |
11 | # 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 | # Copyright (C) 1999 - 2010 Eggheads Development Team |
18 | ## -------------------- ## |
19 | ## M4sh Initialization. ## |
20 | ## -------------------- ## |
21 | |
22 | # Be more Bourne compatible |
23 | DUALCASE=1; export DUALCASE # for MKS sh |
24 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
25 | emulate sh |
26 | NULLCMD=: |
27 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
28 | # is contrary to our usage. Disable this feature. |
29 | alias -g '${1+"$@"}'='"$@"' |
30 | setopt NO_GLOB_SUBST |
31 | else |
32 | case `(set -o) 2>/dev/null` in #( |
33 | *posix*) : |
34 | set -o posix ;; #( |
35 | *) : |
36 | ;; |
37 | esac |
38 | fi |
39 | |
40 | |
41 | as_nl=' |
42 | ' |
43 | export as_nl |
44 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
45 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
46 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
47 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
48 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
49 | # but without wasting forks for bash or zsh. |
50 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
51 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
52 | as_echo='print -r --' |
53 | as_echo_n='print -rn --' |
54 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
55 | as_echo='printf %s\n' |
56 | as_echo_n='printf %s' |
57 | else |
58 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
59 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
60 | as_echo_n='/usr/ucb/echo -n' |
61 | else |
62 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
63 | as_echo_n_body='eval |
64 | arg=$1; |
65 | case $arg in #( |
66 | *"$as_nl"*) |
67 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
68 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
69 | esac; |
70 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
71 | ' |
72 | export as_echo_n_body |
73 | as_echo_n='sh -c $as_echo_n_body as_echo' |
74 | fi |
75 | export as_echo_body |
76 | as_echo='sh -c $as_echo_body as_echo' |
77 | fi |
78 | |
79 | # The user is always right. |
80 | if test "${PATH_SEPARATOR+set}" != set; then |
81 | PATH_SEPARATOR=: |
82 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
83 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
84 | PATH_SEPARATOR=';' |
85 | } |
86 | fi |
87 | |
88 | |
89 | # IFS |
90 | # We need space, tab and new line, in precisely that order. Quoting is |
91 | # there to prevent editors from complaining about space-tab. |
92 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
93 | # splitting by setting IFS to empty value.) |
94 | IFS=" "" $as_nl" |
95 | |
96 | # Find who we are. Look in the path if we contain no directory separator. |
97 | case $0 in #(( |
98 | *[\\/]* ) as_myself=$0 ;; |
99 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
100 | for as_dir in $PATH |
101 | do |
102 | IFS=$as_save_IFS |
103 | test -z "$as_dir" && as_dir=. |
104 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
105 | done |
106 | IFS=$as_save_IFS |
107 | |
108 | ;; |
109 | esac |
110 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
111 | # in which case we are not to be found in the path. |
112 | if test "x$as_myself" = x; then |
113 | as_myself=$0 |
114 | fi |
115 | if test ! -f "$as_myself"; then |
116 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
117 | exit 1 |
118 | fi |
119 | |
120 | # Unset variables that we do not need and which cause bugs (e.g. in |
121 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
122 | # suppresses any "Segmentation fault" message there. '((' could |
123 | # trigger a bug in pdksh 5.2.14. |
124 | for as_var in BASH_ENV ENV MAIL MAILPATH |
125 | do eval test x\${$as_var+set} = xset \ |
126 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
127 | done |
128 | PS1='$ ' |
129 | PS2='> ' |
130 | PS4='+ ' |
131 | |
132 | # NLS nuisances. |
133 | LC_ALL=C |
134 | export LC_ALL |
135 | LANGUAGE=C |
136 | export LANGUAGE |
137 | |
138 | # CDPATH. |
139 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
140 | |
141 | if test "x$CONFIG_SHELL" = x; then |
142 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
143 | emulate sh |
144 | NULLCMD=: |
145 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
146 | # is contrary to our usage. Disable this feature. |
147 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
148 | setopt NO_GLOB_SUBST |
149 | else |
150 | case \`(set -o) 2>/dev/null\` in #( |
151 | *posix*) : |
152 | set -o posix ;; #( |
153 | *) : |
154 | ;; |
155 | esac |
156 | fi |
157 | " |
158 | as_required="as_fn_return () { (exit \$1); } |
159 | as_fn_success () { as_fn_return 0; } |
160 | as_fn_failure () { as_fn_return 1; } |
161 | as_fn_ret_success () { return 0; } |
162 | as_fn_ret_failure () { return 1; } |
163 | |
164 | exitcode=0 |
165 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
166 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
167 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
168 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
169 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
170 | |
171 | else |
172 | exitcode=1; echo positional parameters were not saved. |
173 | fi |
174 | test x\$exitcode = x0 || exit 1" |
175 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
176 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
177 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
178 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
179 | test \$(( 1 + 1 )) = 2 || exit 1" |
180 | if (eval "$as_required") 2>/dev/null; then : |
181 | as_have_required=yes |
182 | else |
183 | as_have_required=no |
184 | fi |
185 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
186 | |
187 | else |
188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
189 | as_found=false |
190 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
191 | do |
192 | IFS=$as_save_IFS |
193 | test -z "$as_dir" && as_dir=. |
194 | as_found=: |
195 | case $as_dir in #( |
196 | /*) |
197 | for as_base in sh bash ksh sh5; do |
198 | # Try only shells that exist, to save several forks. |
199 | as_shell=$as_dir/$as_base |
200 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
201 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
202 | CONFIG_SHELL=$as_shell as_have_required=yes |
203 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
204 | break 2 |
205 | fi |
206 | fi |
207 | done;; |
208 | esac |
209 | as_found=false |
210 | done |
211 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
212 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
213 | CONFIG_SHELL=$SHELL as_have_required=yes |
214 | fi; } |
215 | IFS=$as_save_IFS |
216 | |
217 | |
218 | if test "x$CONFIG_SHELL" != x; then : |
219 | # We cannot yet assume a decent shell, so we have to provide a |
220 | # neutralization value for shells without unset; and this also |
221 | # works around shells that cannot unset nonexistent variables. |
222 | BASH_ENV=/dev/null |
223 | ENV=/dev/null |
224 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
225 | export CONFIG_SHELL |
226 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
227 | fi |
228 | |
229 | if test x$as_have_required = xno; then : |
230 | $as_echo "$0: This script requires a shell more modern than all" |
231 | $as_echo "$0: the shells that I found on your system." |
232 | if test x${ZSH_VERSION+set} = xset ; then |
233 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
234 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
235 | else |
236 | $as_echo "$0: Please tell bug-autoconf@gnu.org and bugs@eggheads.org |
237 | $0: about your system, including any error possibly output |
238 | $0: before this message. Then install a modern shell, or |
239 | $0: manually run the script under such a shell if you do |
240 | $0: have one." |
241 | fi |
242 | exit 1 |
243 | fi |
244 | fi |
245 | fi |
246 | SHELL=${CONFIG_SHELL-/bin/sh} |
247 | export SHELL |
248 | # Unset more variables known to interfere with behavior of common tools. |
249 | CLICOLOR_FORCE= GREP_OPTIONS= |
250 | unset CLICOLOR_FORCE GREP_OPTIONS |
251 | |
252 | ## --------------------- ## |
253 | ## M4sh Shell Functions. ## |
254 | ## --------------------- ## |
255 | # as_fn_unset VAR |
256 | # --------------- |
257 | # Portably unset VAR. |
258 | as_fn_unset () |
259 | { |
260 | { eval $1=; unset $1;} |
261 | } |
262 | as_unset=as_fn_unset |
263 | |
264 | # as_fn_set_status STATUS |
265 | # ----------------------- |
266 | # Set $? to STATUS, without forking. |
267 | as_fn_set_status () |
268 | { |
269 | return $1 |
270 | } # as_fn_set_status |
271 | |
272 | # as_fn_exit STATUS |
273 | # ----------------- |
274 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
275 | as_fn_exit () |
276 | { |
277 | set +e |
278 | as_fn_set_status $1 |
279 | exit $1 |
280 | } # as_fn_exit |
281 | |
282 | # as_fn_mkdir_p |
283 | # ------------- |
284 | # Create "$as_dir" as a directory, including parents if necessary. |
285 | as_fn_mkdir_p () |
286 | { |
287 | |
288 | case $as_dir in #( |
289 | -*) as_dir=./$as_dir;; |
290 | esac |
291 | test -d "$as_dir" || eval $as_mkdir_p || { |
292 | as_dirs= |
293 | while :; do |
294 | case $as_dir in #( |
295 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
296 | *) as_qdir=$as_dir;; |
297 | esac |
298 | as_dirs="'$as_qdir' $as_dirs" |
299 | as_dir=`$as_dirname -- "$as_dir" || |
300 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
301 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
302 | X"$as_dir" : 'X\(//\)$' \| \ |
303 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
304 | $as_echo X"$as_dir" | |
305 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
306 | s//\1/ |
307 | q |
308 | } |
309 | /^X\(\/\/\)[^/].*/{ |
310 | s//\1/ |
311 | q |
312 | } |
313 | /^X\(\/\/\)$/{ |
314 | s//\1/ |
315 | q |
316 | } |
317 | /^X\(\/\).*/{ |
318 | s//\1/ |
319 | q |
320 | } |
321 | s/.*/./; q'` |
322 | test -d "$as_dir" && break |
323 | done |
324 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
325 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
326 | |
327 | |
328 | } # as_fn_mkdir_p |
329 | # as_fn_append VAR VALUE |
330 | # ---------------------- |
331 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
332 | # advantage of any shell optimizations that allow amortized linear growth over |
333 | # repeated appends, instead of the typical quadratic growth present in naive |
334 | # implementations. |
335 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
336 | eval 'as_fn_append () |
337 | { |
338 | eval $1+=\$2 |
339 | }' |
340 | else |
341 | as_fn_append () |
342 | { |
343 | eval $1=\$$1\$2 |
344 | } |
345 | fi # as_fn_append |
346 | |
347 | # as_fn_arith ARG... |
348 | # ------------------ |
349 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
350 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
351 | # must be portable across $(()) and expr. |
352 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
353 | eval 'as_fn_arith () |
354 | { |
355 | as_val=$(( $* )) |
356 | }' |
357 | else |
358 | as_fn_arith () |
359 | { |
360 | as_val=`expr "$@" || test $? -eq 1` |
361 | } |
362 | fi # as_fn_arith |
363 | |
364 | |
365 | # as_fn_error ERROR [LINENO LOG_FD] |
366 | # --------------------------------- |
367 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
368 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
369 | # script with status $?, using 1 if that was 0. |
370 | as_fn_error () |
371 | { |
372 | as_status=$?; test $as_status -eq 0 && as_status=1 |
373 | if test "$3"; then |
374 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
375 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
376 | fi |
377 | $as_echo "$as_me: error: $1" >&2 |
378 | as_fn_exit $as_status |
379 | } # as_fn_error |
380 | |
381 | if expr a : '\(a\)' >/dev/null 2>&1 && |
382 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
383 | as_expr=expr |
384 | else |
385 | as_expr=false |
386 | fi |
387 | |
388 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
389 | as_basename=basename |
390 | else |
391 | as_basename=false |
392 | fi |
393 | |
394 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
395 | as_dirname=dirname |
396 | else |
397 | as_dirname=false |
398 | fi |
399 | |
400 | as_me=`$as_basename -- "$0" || |
401 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
402 | X"$0" : 'X\(//\)$' \| \ |
403 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
404 | $as_echo X/"$0" | |
405 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
406 | s//\1/ |
407 | q |
408 | } |
409 | /^X\/\(\/\/\)$/{ |
410 | s//\1/ |
411 | q |
412 | } |
413 | /^X\/\(\/\).*/{ |
414 | s//\1/ |
415 | q |
416 | } |
417 | s/.*/./; q'` |
418 | |
419 | # Avoid depending upon Character Ranges. |
420 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
421 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
422 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
423 | as_cr_digits='0123456789' |
424 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
425 | |
426 | |
427 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
428 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
429 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
430 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
431 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
432 | sed -n ' |
433 | p |
434 | /[$]LINENO/= |
435 | ' <$as_myself | |
436 | sed ' |
437 | s/[$]LINENO.*/&-/ |
438 | t lineno |
439 | b |
440 | :lineno |
441 | N |
442 | :loop |
443 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
444 | t loop |
445 | s/-\n.*// |
446 | ' >$as_me.lineno && |
447 | chmod +x "$as_me.lineno" || |
448 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
449 | |
450 | # Don't try to exec as it changes $[0], causing all sort of problems |
451 | # (the dirname of $[0] is not the place where we might find the |
452 | # original and so on. Autoconf is especially sensitive to this). |
453 | . "./$as_me.lineno" |
454 | # Exit status is that of the last command. |
455 | exit |
456 | } |
457 | |
458 | ECHO_C= ECHO_N= ECHO_T= |
459 | case `echo -n x` in #((((( |
460 | -n*) |
461 | case `echo 'xy\c'` in |
462 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
463 | xy) ECHO_C='\c';; |
464 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
465 | ECHO_T=' ';; |
466 | esac;; |
467 | *) |
468 | ECHO_N='-n';; |
469 | esac |
470 | |
471 | rm -f conf$$ conf$$.exe conf$$.file |
472 | if test -d conf$$.dir; then |
473 | rm -f conf$$.dir/conf$$.file |
474 | else |
475 | rm -f conf$$.dir |
476 | mkdir conf$$.dir 2>/dev/null |
477 | fi |
478 | if (echo >conf$$.file) 2>/dev/null; then |
479 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
480 | as_ln_s='ln -s' |
481 | # ... but there are two gotchas: |
482 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
483 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
484 | # In both cases, we have to default to `cp -p'. |
485 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
486 | as_ln_s='cp -p' |
487 | elif ln conf$$.file conf$$ 2>/dev/null; then |
488 | as_ln_s=ln |
489 | else |
490 | as_ln_s='cp -p' |
491 | fi |
492 | else |
493 | as_ln_s='cp -p' |
494 | fi |
495 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
496 | rmdir conf$$.dir 2>/dev/null |
497 | |
498 | if mkdir -p . 2>/dev/null; then |
499 | as_mkdir_p='mkdir -p "$as_dir"' |
500 | else |
501 | test -d ./-p && rmdir ./-p |
502 | as_mkdir_p=false |
503 | fi |
504 | |
505 | if test -x / >/dev/null 2>&1; then |
506 | as_test_x='test -x' |
507 | else |
508 | if ls -dL / >/dev/null 2>&1; then |
509 | as_ls_L_option=L |
510 | else |
511 | as_ls_L_option= |
512 | fi |
513 | as_test_x=' |
514 | eval sh -c '\'' |
515 | if test -d "$1"; then |
516 | test -d "$1/."; |
517 | else |
518 | case $1 in #( |
519 | -*)set "./$1";; |
520 | esac; |
521 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
522 | ???[sx]*):;;*)false;;esac;fi |
523 | '\'' sh |
524 | ' |
525 | fi |
526 | as_executable_p=$as_test_x |
527 | |
528 | # Sed expression to map a string onto a valid CPP name. |
529 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
530 | |
531 | # Sed expression to map a string onto a valid variable name. |
532 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
533 | |
534 | |
535 | test -n "$DJDIR" || exec 7<&0 </dev/null |
536 | exec 6>&1 |
537 | |
538 | # Name of the host. |
539 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
540 | # so uname gets run too. |
541 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
542 | |
543 | # |
544 | # Initializations. |
545 | # |
546 | ac_default_prefix=/usr/local |
547 | ac_clean_files= |
548 | ac_config_libobj_dir=. |
549 | LIBOBJS= |
550 | cross_compiling=no |
551 | subdirs= |
552 | MFLAGS= |
553 | MAKEFLAGS= |
554 | |
555 | # Identity of this package. |
556 | PACKAGE_NAME='Eggdrop' |
557 | PACKAGE_TARNAME='eggdrop' |
558 | PACKAGE_VERSION='1.6.20' |
559 | PACKAGE_STRING='Eggdrop 1.6.20' |
560 | PACKAGE_BUGREPORT='bugs@eggheads.org' |
561 | PACKAGE_URL='' |
562 | |
563 | ac_unique_file="src/eggdrop.h" |
564 | ac_default_prefix=\${HOME}/eggdrop |
565 | # Factoring default headers for most tests. |
566 | ac_includes_default="\ |
567 | #include <stdio.h> |
568 | #ifdef HAVE_SYS_TYPES_H |
569 | # include <sys/types.h> |
570 | #endif |
571 | #ifdef HAVE_SYS_STAT_H |
572 | # include <sys/stat.h> |
573 | #endif |
574 | #ifdef STDC_HEADERS |
575 | # include <stdlib.h> |
576 | # include <stddef.h> |
577 | #else |
578 | # ifdef HAVE_STDLIB_H |
579 | # include <stdlib.h> |
580 | # endif |
581 | #endif |
582 | #ifdef HAVE_STRING_H |
583 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
584 | # include <memory.h> |
585 | # endif |
586 | # include <string.h> |
587 | #endif |
588 | #ifdef HAVE_STRINGS_H |
589 | # include <strings.h> |
590 | #endif |
591 | #ifdef HAVE_INTTYPES_H |
592 | # include <inttypes.h> |
593 | #endif |
594 | #ifdef HAVE_STDINT_H |
595 | # include <stdint.h> |
596 | #endif |
597 | #ifdef HAVE_UNISTD_H |
598 | # include <unistd.h> |
599 | #endif" |
600 | |
601 | ac_header_list= |
602 | ac_subst_vars='LTLIBOBJS |
603 | LIBOBJS |
604 | MOD_UPDIR |
605 | DEST |
606 | EGGVERSION |
607 | DEBCFLGS |
608 | CFLGS |
609 | TCL_LIBS |
610 | TCL_REQS |
611 | TCLINCFN |
612 | TCLINC |
613 | TCLLIBFN |
614 | TCLLIB |
615 | SHLIB_STRIP |
616 | SHLIB_CC |
617 | SHLIB_LD |
618 | MOD_STRIP |
619 | MOD_CC |
620 | MOD_LD |
621 | MODULE_XLIBS |
622 | MOD_EXT |
623 | DEFAULT_MAKE |
624 | target_os |
625 | target_vendor |
626 | target_cpu |
627 | target |
628 | host_os |
629 | host_vendor |
630 | host_cpu |
631 | host |
632 | build_os |
633 | build_vendor |
634 | build_cpu |
635 | build |
636 | UNAME |
637 | BASENAME |
638 | AWK |
639 | STRIP |
640 | HEAD_1 |
641 | LN_S |
642 | RANLIB |
643 | SET_MAKE |
644 | INSTALL_DATA |
645 | INSTALL_SCRIPT |
646 | INSTALL_PROGRAM |
647 | EGGEXEC |
648 | EGREP |
649 | GREP |
650 | CPP |
651 | OBJEXT |
652 | EXEEXT |
653 | ac_ct_CC |
654 | CPPFLAGS |
655 | LDFLAGS |
656 | CFLAGS |
657 | CC |
658 | egg_ac_parameters |
659 | target_alias |
660 | host_alias |
661 | build_alias |
662 | LIBS |
663 | ECHO_T |
664 | ECHO_N |
665 | ECHO_C |
666 | DEFS |
667 | mandir |
668 | localedir |
669 | libdir |
670 | psdir |
671 | pdfdir |
672 | dvidir |
673 | htmldir |
674 | infodir |
675 | docdir |
676 | oldincludedir |
677 | includedir |
678 | localstatedir |
679 | sharedstatedir |
680 | sysconfdir |
681 | datadir |
682 | datarootdir |
683 | libexecdir |
684 | sbindir |
685 | bindir |
686 | program_transform_name |
687 | prefix |
688 | exec_prefix |
689 | PACKAGE_URL |
690 | PACKAGE_BUGREPORT |
691 | PACKAGE_STRING |
692 | PACKAGE_VERSION |
693 | PACKAGE_TARNAME |
694 | PACKAGE_NAME |
695 | PATH_SEPARATOR |
696 | SHELL' |
697 | ac_subst_files='' |
698 | ac_user_opts=' |
699 | enable_option_checking |
700 | enable_strip |
701 | with_tcllib |
702 | with_tclinc |
703 | enable_debug |
704 | enable_debug_assert |
705 | enable_debug_mem |
706 | enable_debug_dns |
707 | enable_debug_context |
708 | with_handlen |
709 | ' |
710 | ac_precious_vars='build_alias |
711 | host_alias |
712 | target_alias |
713 | CC |
714 | CFLAGS |
715 | LDFLAGS |
716 | LIBS |
717 | CPPFLAGS |
718 | CPP' |
719 | |
720 | |
721 | # Initialize some variables set by options. |
722 | ac_init_help= |
723 | ac_init_version=false |
724 | ac_unrecognized_opts= |
725 | ac_unrecognized_sep= |
726 | # The variables have the same names as the options, with |
727 | # dashes changed to underlines. |
728 | cache_file=/dev/null |
729 | exec_prefix=NONE |
730 | no_create= |
731 | no_recursion= |
732 | prefix=NONE |
733 | program_prefix=NONE |
734 | program_suffix=NONE |
735 | program_transform_name=s,x,x, |
736 | silent= |
737 | site= |
738 | srcdir= |
739 | verbose= |
740 | x_includes=NONE |
741 | x_libraries=NONE |
742 | |
743 | # Installation directory options. |
744 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
745 | # and all the variables that are supposed to be based on exec_prefix |
746 | # by default will actually change. |
747 | # Use braces instead of parens because sh, perl, etc. also accept them. |
748 | # (The list follows the same order as the GNU Coding Standards.) |
749 | bindir='${exec_prefix}/bin' |
750 | sbindir='${exec_prefix}/sbin' |
751 | libexecdir='${exec_prefix}/libexec' |
752 | datarootdir='${prefix}/share' |
753 | datadir='${datarootdir}' |
754 | sysconfdir='${prefix}/etc' |
755 | sharedstatedir='${prefix}/com' |
756 | localstatedir='${prefix}/var' |
757 | includedir='${prefix}/include' |
758 | oldincludedir='/usr/include' |
759 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
760 | infodir='${datarootdir}/info' |
761 | htmldir='${docdir}' |
762 | dvidir='${docdir}' |
763 | pdfdir='${docdir}' |
764 | psdir='${docdir}' |
765 | libdir='${exec_prefix}/lib' |
766 | localedir='${datarootdir}/locale' |
767 | mandir='${datarootdir}/man' |
768 | |
769 | ac_prev= |
770 | ac_dashdash= |
771 | for ac_option |
772 | do |
773 | # If the previous option needs an argument, assign it. |
774 | if test -n "$ac_prev"; then |
775 | eval $ac_prev=\$ac_option |
776 | ac_prev= |
777 | continue |
778 | fi |
779 | |
780 | case $ac_option in |
781 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
782 | *) ac_optarg=yes ;; |
783 | esac |
784 | |
785 | # Accept the important Cygnus configure options, so we can diagnose typos. |
786 | |
787 | case $ac_dashdash$ac_option in |
788 | --) |
789 | ac_dashdash=yes ;; |
790 | |
791 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
792 | ac_prev=bindir ;; |
793 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
794 | bindir=$ac_optarg ;; |
795 | |
796 | -build | --build | --buil | --bui | --bu) |
797 | ac_prev=build_alias ;; |
798 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
799 | build_alias=$ac_optarg ;; |
800 | |
801 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
802 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
803 | ac_prev=cache_file ;; |
804 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
805 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
806 | cache_file=$ac_optarg ;; |
807 | |
808 | --config-cache | -C) |
809 | cache_file=config.cache ;; |
810 | |
811 | -datadir | --datadir | --datadi | --datad) |
812 | ac_prev=datadir ;; |
813 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
814 | datadir=$ac_optarg ;; |
815 | |
816 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
817 | | --dataroo | --dataro | --datar) |
818 | ac_prev=datarootdir ;; |
819 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
820 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
821 | datarootdir=$ac_optarg ;; |
822 | |
823 | -disable-* | --disable-*) |
824 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
825 | # Reject names that are not valid shell variable names. |
826 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
827 | as_fn_error "invalid feature name: $ac_useropt" |
828 | ac_useropt_orig=$ac_useropt |
829 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
830 | case $ac_user_opts in |
831 | *" |
832 | "enable_$ac_useropt" |
833 | "*) ;; |
834 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
835 | ac_unrecognized_sep=', ';; |
836 | esac |
837 | eval enable_$ac_useropt=no ;; |
838 | |
839 | -docdir | --docdir | --docdi | --doc | --do) |
840 | ac_prev=docdir ;; |
841 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
842 | docdir=$ac_optarg ;; |
843 | |
844 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
845 | ac_prev=dvidir ;; |
846 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
847 | dvidir=$ac_optarg ;; |
848 | |
849 | -enable-* | --enable-*) |
850 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
851 | # Reject names that are not valid shell variable names. |
852 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
853 | as_fn_error "invalid feature name: $ac_useropt" |
854 | ac_useropt_orig=$ac_useropt |
855 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
856 | case $ac_user_opts in |
857 | *" |
858 | "enable_$ac_useropt" |
859 | "*) ;; |
860 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
861 | ac_unrecognized_sep=', ';; |
862 | esac |
863 | eval enable_$ac_useropt=\$ac_optarg ;; |
864 | |
865 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
866 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
867 | | --exec | --exe | --ex) |
868 | ac_prev=exec_prefix ;; |
869 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
870 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
871 | | --exec=* | --exe=* | --ex=*) |
872 | exec_prefix=$ac_optarg ;; |
873 | |
874 | -gas | --gas | --ga | --g) |
875 | # Obsolete; use --with-gas. |
876 | with_gas=yes ;; |
877 | |
878 | -help | --help | --hel | --he | -h) |
879 | ac_init_help=long ;; |
880 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
881 | ac_init_help=recursive ;; |
882 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
883 | ac_init_help=short ;; |
884 | |
885 | -host | --host | --hos | --ho) |
886 | ac_prev=host_alias ;; |
887 | -host=* | --host=* | --hos=* | --ho=*) |
888 | host_alias=$ac_optarg ;; |
889 | |
890 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
891 | ac_prev=htmldir ;; |
892 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
893 | | --ht=*) |
894 | htmldir=$ac_optarg ;; |
895 | |
896 | -includedir | --includedir | --includedi | --included | --include \ |
897 | | --includ | --inclu | --incl | --inc) |
898 | ac_prev=includedir ;; |
899 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
900 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
901 | includedir=$ac_optarg ;; |
902 | |
903 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
904 | ac_prev=infodir ;; |
905 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
906 | infodir=$ac_optarg ;; |
907 | |
908 | -libdir | --libdir | --libdi | --libd) |
909 | ac_prev=libdir ;; |
910 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
911 | libdir=$ac_optarg ;; |
912 | |
913 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
914 | | --libexe | --libex | --libe) |
915 | ac_prev=libexecdir ;; |
916 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
917 | | --libexe=* | --libex=* | --libe=*) |
918 | libexecdir=$ac_optarg ;; |
919 | |
920 | -localedir | --localedir | --localedi | --localed | --locale) |
921 | ac_prev=localedir ;; |
922 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
923 | localedir=$ac_optarg ;; |
924 | |
925 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
926 | | --localstate | --localstat | --localsta | --localst | --locals) |
927 | ac_prev=localstatedir ;; |
928 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
929 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
930 | localstatedir=$ac_optarg ;; |
931 | |
932 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
933 | ac_prev=mandir ;; |
934 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
935 | mandir=$ac_optarg ;; |
936 | |
937 | -nfp | --nfp | --nf) |
938 | # Obsolete; use --without-fp. |
939 | with_fp=no ;; |
940 | |
941 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
942 | | --no-cr | --no-c | -n) |
943 | no_create=yes ;; |
944 | |
945 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
946 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
947 | no_recursion=yes ;; |
948 | |
949 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
950 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
951 | | --oldin | --oldi | --old | --ol | --o) |
952 | ac_prev=oldincludedir ;; |
953 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
954 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
955 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
956 | oldincludedir=$ac_optarg ;; |
957 | |
958 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
959 | ac_prev=prefix ;; |
960 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
961 | prefix=$ac_optarg ;; |
962 | |
963 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
964 | | --program-pre | --program-pr | --program-p) |
965 | ac_prev=program_prefix ;; |
966 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
967 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
968 | program_prefix=$ac_optarg ;; |
969 | |
970 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
971 | | --program-suf | --program-su | --program-s) |
972 | ac_prev=program_suffix ;; |
973 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
974 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
975 | program_suffix=$ac_optarg ;; |
976 | |
977 | -program-transform-name | --program-transform-name \ |
978 | | --program-transform-nam | --program-transform-na \ |
979 | | --program-transform-n | --program-transform- \ |
980 | | --program-transform | --program-transfor \ |
981 | | --program-transfo | --program-transf \ |
982 | | --program-trans | --program-tran \ |
983 | | --progr-tra | --program-tr | --program-t) |
984 | ac_prev=program_transform_name ;; |
985 | -program-transform-name=* | --program-transform-name=* \ |
986 | | --program-transform-nam=* | --program-transform-na=* \ |
987 | | --program-transform-n=* | --program-transform-=* \ |
988 | | --program-transform=* | --program-transfor=* \ |
989 | | --program-transfo=* | --program-transf=* \ |
990 | | --program-trans=* | --program-tran=* \ |
991 | | --progr-tra=* | --program-tr=* | --program-t=*) |
992 | program_transform_name=$ac_optarg ;; |
993 | |
994 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
995 | ac_prev=pdfdir ;; |
996 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
997 | pdfdir=$ac_optarg ;; |
998 | |
999 | -psdir | --psdir | --psdi | --psd | --ps) |
1000 | ac_prev=psdir ;; |
1001 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
1002 | psdir=$ac_optarg ;; |
1003 | |
1004 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1005 | | -silent | --silent | --silen | --sile | --sil) |
1006 | silent=yes ;; |
1007 | |
1008 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1009 | ac_prev=sbindir ;; |
1010 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1011 | | --sbi=* | --sb=*) |
1012 | sbindir=$ac_optarg ;; |
1013 | |
1014 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
1015 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
1016 | | --sharedst | --shareds | --shared | --share | --shar \ |
1017 | | --sha | --sh) |
1018 | ac_prev=sharedstatedir ;; |
1019 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
1020 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
1021 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
1022 | | --sha=* | --sh=*) |
1023 | sharedstatedir=$ac_optarg ;; |
1024 | |
1025 | -site | --site | --sit) |
1026 | ac_prev=site ;; |
1027 | -site=* | --site=* | --sit=*) |
1028 | site=$ac_optarg ;; |
1029 | |
1030 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1031 | ac_prev=srcdir ;; |
1032 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
1033 | srcdir=$ac_optarg ;; |
1034 | |
1035 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1036 | | --syscon | --sysco | --sysc | --sys | --sy) |
1037 | ac_prev=sysconfdir ;; |
1038 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
1039 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
1040 | sysconfdir=$ac_optarg ;; |
1041 | |
1042 | -target | --target | --targe | --targ | --tar | --ta | --t) |
1043 | ac_prev=target_alias ;; |
1044 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1045 | target_alias=$ac_optarg ;; |
1046 | |
1047 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
1048 | verbose=yes ;; |
1049 | |
1050 | -version | --version | --versio | --versi | --vers | -V) |
1051 | ac_init_version=: ;; |
1052 | |
1053 | -with-* | --with-*) |
1054 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1055 | # Reject names that are not valid shell variable names. |
1056 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1057 | as_fn_error "invalid package name: $ac_useropt" |
1058 | ac_useropt_orig=$ac_useropt |
1059 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1060 | case $ac_user_opts in |
1061 | *" |
1062 | "with_$ac_useropt" |
1063 | "*) ;; |
1064 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
1065 | ac_unrecognized_sep=', ';; |
1066 | esac |
1067 | eval with_$ac_useropt=\$ac_optarg ;; |
1068 | |
1069 | -without-* | --without-*) |
1070 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1071 | # Reject names that are not valid shell variable names. |
1072 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1073 | as_fn_error "invalid package name: $ac_useropt" |
1074 | ac_useropt_orig=$ac_useropt |
1075 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1076 | case $ac_user_opts in |
1077 | *" |
1078 | "with_$ac_useropt" |
1079 | "*) ;; |
1080 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
1081 | ac_unrecognized_sep=', ';; |
1082 | esac |
1083 | eval with_$ac_useropt=no ;; |
1084 | |
1085 | --x) |
1086 | # Obsolete; use --with-x. |
1087 | with_x=yes ;; |
1088 | |
1089 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
1090 | | --x-incl | --x-inc | --x-in | --x-i) |
1091 | ac_prev=x_includes ;; |
1092 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
1093 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
1094 | x_includes=$ac_optarg ;; |
1095 | |
1096 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
1097 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
1098 | ac_prev=x_libraries ;; |
1099 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1100 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1101 | x_libraries=$ac_optarg ;; |
1102 | |
1103 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1104 | Try \`$0 --help' for more information." |
1105 | ;; |
1106 | |
1107 | *=*) |
1108 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1109 | # Reject names that are not valid shell variable names. |
1110 | case $ac_envvar in #( |
1111 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
1112 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
1113 | esac |
1114 | eval $ac_envvar=\$ac_optarg |
1115 | export $ac_envvar ;; |
1116 | |
1117 | *) |
1118 | # FIXME: should be removed in autoconf 3.0. |
1119 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1120 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1121 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1122 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1123 | ;; |
1124 | |
1125 | esac |
1126 | done |
1127 | |
1128 | if test -n "$ac_prev"; then |
1129 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1130 | as_fn_error "missing argument to $ac_option" |
1131 | fi |
1132 | |
1133 | if test -n "$ac_unrecognized_opts"; then |
1134 | case $enable_option_checking in |
1135 | no) ;; |
1136 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
1137 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1138 | esac |
1139 | fi |
1140 | |
1141 | # Check all directory arguments for consistency. |
1142 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1143 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
1144 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1145 | libdir localedir mandir |
1146 | do |
1147 | eval ac_val=\$$ac_var |
1148 | # Remove trailing slashes. |
1149 | case $ac_val in |
1150 | */ ) |
1151 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
1152 | eval $ac_var=\$ac_val;; |
1153 | esac |
1154 | # Be sure to have absolute directory names. |
1155 | case $ac_val in |
1156 | [\\/$]* | ?:[\\/]* ) continue;; |
1157 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1158 | esac |
1159 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
1160 | done |
1161 | |
1162 | # There might be people who depend on the old broken behavior: `$host' |
1163 | # used to hold the argument of --host etc. |
1164 | # FIXME: To remove some day. |
1165 | build=$build_alias |
1166 | host=$host_alias |
1167 | target=$target_alias |
1168 | |
1169 | # FIXME: To remove some day. |
1170 | if test "x$host_alias" != x; then |
1171 | if test "x$build_alias" = x; then |
1172 | cross_compiling=maybe |
1173 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
1174 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1175 | elif test "x$build_alias" != "x$host_alias"; then |
1176 | cross_compiling=yes |
1177 | fi |
1178 | fi |
1179 | |
1180 | ac_tool_prefix= |
1181 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
1182 | |
1183 | test "$silent" = yes && exec 6>/dev/null |
1184 | |
1185 | |
1186 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1187 | ac_ls_di=`ls -di .` && |
1188 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1189 | as_fn_error "working directory cannot be determined" |
1190 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1191 | as_fn_error "pwd does not report name of working directory" |
1192 | |
1193 | |
1194 | # Find the source files, if location was not specified. |
1195 | if test -z "$srcdir"; then |
1196 | ac_srcdir_defaulted=yes |
1197 | # Try the directory containing this script, then the parent directory. |
1198 | ac_confdir=`$as_dirname -- "$as_myself" || |
1199 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1200 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
1201 | X"$as_myself" : 'X\(//\)$' \| \ |
1202 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
1203 | $as_echo X"$as_myself" | |
1204 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1205 | s//\1/ |
1206 | q |
1207 | } |
1208 | /^X\(\/\/\)[^/].*/{ |
1209 | s//\1/ |
1210 | q |
1211 | } |
1212 | /^X\(\/\/\)$/{ |
1213 | s//\1/ |
1214 | q |
1215 | } |
1216 | /^X\(\/\).*/{ |
1217 | s//\1/ |
1218 | q |
1219 | } |
1220 | s/.*/./; q'` |
1221 | srcdir=$ac_confdir |
1222 | if test ! -r "$srcdir/$ac_unique_file"; then |
1223 | srcdir=.. |
1224 | fi |
1225 | else |
1226 | ac_srcdir_defaulted=no |
1227 | fi |
1228 | if test ! -r "$srcdir/$ac_unique_file"; then |
1229 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1230 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
1231 | fi |
1232 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1233 | ac_abs_confdir=`( |
1234 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
1235 | pwd)` |
1236 | # When building in place, set srcdir=. |
1237 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
1238 | srcdir=. |
1239 | fi |
1240 | # Remove unnecessary trailing slashes from srcdir. |
1241 | # Double slashes in file names in object file debugging info |
1242 | # mess up M-x gdb in Emacs. |
1243 | case $srcdir in |
1244 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1245 | esac |
1246 | for ac_var in $ac_precious_vars; do |
1247 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1248 | eval ac_env_${ac_var}_value=\$${ac_var} |
1249 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
1250 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
1251 | done |
1252 | |
1253 | # |
1254 | # Report the --help message. |
1255 | # |
1256 | if test "$ac_init_help" = "long"; then |
1257 | # Omit some internal or obsolete options to make the list less imposing. |
1258 | # This message is too long to be a string in the A/UX 3.1 sh. |
1259 | cat <<_ACEOF |
1260 | \`configure' configures Eggdrop 1.6.20 to adapt to many kinds of systems. |
1261 | |
1262 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1263 | |
1264 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1265 | VAR=VALUE. See below for descriptions of some of the useful variables. |
1266 | |
1267 | Defaults for the options are specified in brackets. |
1268 | |
1269 | Configuration: |
1270 | -h, --help display this help and exit |
1271 | --help=short display options specific to this package |
1272 | --help=recursive display the short help of all the included packages |
1273 | -V, --version display version information and exit |
1274 | -q, --quiet, --silent do not print \`checking...' messages |
1275 | --cache-file=FILE cache test results in FILE [disabled] |
1276 | -C, --config-cache alias for \`--cache-file=config.cache' |
1277 | -n, --no-create do not create output files |
1278 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1279 | |
1280 | Installation directories: |
1281 | --prefix=PREFIX install architecture-independent files in PREFIX |
1282 | [$ac_default_prefix] |
1283 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1284 | [PREFIX] |
1285 | |
1286 | By default, \`make install' will install all the files in |
1287 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1288 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1289 | for instance \`--prefix=\$HOME'. |
1290 | |
1291 | For better control, use the options below. |
1292 | |
1293 | Fine tuning of the installation directories: |
1294 | --bindir=DIR user executables [EPREFIX/bin] |
1295 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
1296 | --libexecdir=DIR program executables [EPREFIX/libexec] |
1297 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1298 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1299 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1300 | --libdir=DIR object code libraries [EPREFIX/lib] |
1301 | --includedir=DIR C header files [PREFIX/include] |
1302 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
1303 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1304 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1305 | --infodir=DIR info documentation [DATAROOTDIR/info] |
1306 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1307 | --mandir=DIR man documentation [DATAROOTDIR/man] |
1308 | --docdir=DIR documentation root [DATAROOTDIR/doc/eggdrop] |
1309 | --htmldir=DIR html documentation [DOCDIR] |
1310 | --dvidir=DIR dvi documentation [DOCDIR] |
1311 | --pdfdir=DIR pdf documentation [DOCDIR] |
1312 | --psdir=DIR ps documentation [DOCDIR] |
1313 | _ACEOF |
1314 | |
1315 | cat <<\_ACEOF |
1316 | |
1317 | System types: |
1318 | --build=BUILD configure for building on BUILD [guessed] |
1319 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
1320 | --target=TARGET configure for building compilers for TARGET [HOST] |
1321 | _ACEOF |
1322 | fi |
1323 | |
1324 | if test -n "$ac_init_help"; then |
1325 | case $ac_init_help in |
1326 | short | recursive ) echo "Configuration of Eggdrop 1.6.20:";; |
1327 | esac |
1328 | cat <<\_ACEOF |
1329 | |
1330 | Optional Features and Packages: |
1331 | --disable-option-checking ignore unrecognized --enable/--with options |
1332 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1333 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1334 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1335 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1336 | --enable-strip enable stripping of binaries |
1337 | --with-tcllib=PATH full path to Tcl library |
1338 | --with-tclinc=PATH full path to Tcl header |
1339 | --enable-debug enable generic debug code (default for 'make debug') |
1340 | --disable-debug disable generic debug code |
1341 | --enable-debug-assert enable assert debug code (default for 'make debug') |
1342 | --disable-debug-assert disable assert debug code |
1343 | --enable-debug-mem enable memory debug code (default for 'make debug') |
1344 | --disable-debug-mem disable memory debug code |
1345 | --enable-debug-dns enable dns.mod debug messages (default for 'make debug') |
1346 | --disable-debug-dns disable dns.mod debug messages |
1347 | --enable-debug-context enable context debug code (default) |
1348 | --disable-debug-context disable context debug code |
1349 | --with-handlen=VALUE set the maximum length a handle on the bot can be |
1350 | |
1351 | Some influential environment variables: |
1352 | CC C compiler command |
1353 | CFLAGS C compiler flags |
1354 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1355 | nonstandard directory <lib dir> |
1356 | LIBS libraries to pass to the linker, e.g. -l<library> |
1357 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
1358 | you have headers in a nonstandard directory <include dir> |
1359 | CPP C preprocessor |
1360 | |
1361 | Use these variables to override the choices made by `configure' or to help |
1362 | it to find libraries and programs with nonstandard names/locations. |
1363 | |
1364 | Report bugs to <bugs@eggheads.org>. |
1365 | _ACEOF |
1366 | ac_status=$? |
1367 | fi |
1368 | |
1369 | if test "$ac_init_help" = "recursive"; then |
1370 | # If there are subdirs, report their specific --help. |
1371 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1372 | test -d "$ac_dir" || |
1373 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
1374 | continue |
1375 | ac_builddir=. |
1376 | |
1377 | case "$ac_dir" in |
1378 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1379 | *) |
1380 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
1381 | # A ".." for each directory in $ac_dir_suffix. |
1382 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
1383 | case $ac_top_builddir_sub in |
1384 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1385 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1386 | esac ;; |
1387 | esac |
1388 | ac_abs_top_builddir=$ac_pwd |
1389 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
1390 | # for backward compatibility: |
1391 | ac_top_builddir=$ac_top_build_prefix |
1392 | |
1393 | case $srcdir in |
1394 | .) # We are building in place. |
1395 | ac_srcdir=. |
1396 | ac_top_srcdir=$ac_top_builddir_sub |
1397 | ac_abs_top_srcdir=$ac_pwd ;; |
1398 | [\\/]* | ?:[\\/]* ) # Absolute name. |
1399 | ac_srcdir=$srcdir$ac_dir_suffix; |
1400 | ac_top_srcdir=$srcdir |
1401 | ac_abs_top_srcdir=$srcdir ;; |
1402 | *) # Relative name. |
1403 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1404 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
1405 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1406 | esac |
1407 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1408 | |
1409 | cd "$ac_dir" || { ac_status=$?; continue; } |
1410 | # Check for guested configure. |
1411 | if test -f "$ac_srcdir/configure.gnu"; then |
1412 | echo && |
1413 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1414 | elif test -f "$ac_srcdir/configure"; then |
1415 | echo && |
1416 | $SHELL "$ac_srcdir/configure" --help=recursive |
1417 | else |
1418 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1419 | fi || ac_status=$? |
1420 | cd "$ac_pwd" || { ac_status=$?; break; } |
1421 | done |
1422 | fi |
1423 | |
1424 | test -n "$ac_init_help" && exit $ac_status |
1425 | if $ac_init_version; then |
1426 | cat <<\_ACEOF |
1427 | Eggdrop configure 1.6.20 |
1428 | generated by GNU Autoconf 2.65 |
1429 | |
1430 | Copyright (C) 2009 Free Software Foundation, Inc. |
1431 | This configure script is free software; the Free Software Foundation |
1432 | gives unlimited permission to copy, distribute and modify it. |
1433 | |
1434 | Copyright (C) 1999 - 2010 Eggheads Development Team |
1435 | _ACEOF |
1436 | exit |
1437 | fi |
1438 | |
1439 | ## ------------------------ ## |
1440 | ## Autoconf initialization. ## |
1441 | ## ------------------------ ## |
1442 | |
1443 | # ac_fn_c_try_compile LINENO |
1444 | # -------------------------- |
1445 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
1446 | ac_fn_c_try_compile () |
1447 | { |
1448 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1449 | rm -f conftest.$ac_objext |
1450 | if { { ac_try="$ac_compile" |
1451 | case "(($ac_try" in |
1452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1453 | *) ac_try_echo=$ac_try;; |
1454 | esac |
1455 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1456 | $as_echo "$ac_try_echo"; } >&5 |
1457 | (eval "$ac_compile") 2>conftest.err |
1458 | ac_status=$? |
1459 | if test -s conftest.err; then |
1460 | grep -v '^ *+' conftest.err >conftest.er1 |
1461 | cat conftest.er1 >&5 |
1462 | mv -f conftest.er1 conftest.err |
1463 | fi |
1464 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1465 | test $ac_status = 0; } && { |
1466 | test -z "$ac_c_werror_flag" || |
1467 | test ! -s conftest.err |
1468 | } && test -s conftest.$ac_objext; then : |
1469 | ac_retval=0 |
1470 | else |
1471 | $as_echo "$as_me: failed program was:" >&5 |
1472 | sed 's/^/| /' conftest.$ac_ext >&5 |
1473 | |
1474 | ac_retval=1 |
1475 | fi |
1476 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1477 | as_fn_set_status $ac_retval |
1478 | |
1479 | } # ac_fn_c_try_compile |
1480 | |
1481 | # ac_fn_c_try_cpp LINENO |
1482 | # ---------------------- |
1483 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
1484 | ac_fn_c_try_cpp () |
1485 | { |
1486 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1487 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
1488 | case "(($ac_try" in |
1489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1490 | *) ac_try_echo=$ac_try;; |
1491 | esac |
1492 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1493 | $as_echo "$ac_try_echo"; } >&5 |
1494 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
1495 | ac_status=$? |
1496 | if test -s conftest.err; then |
1497 | grep -v '^ *+' conftest.err >conftest.er1 |
1498 | cat conftest.er1 >&5 |
1499 | mv -f conftest.er1 conftest.err |
1500 | fi |
1501 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1502 | test $ac_status = 0; } >/dev/null && { |
1503 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1504 | test ! -s conftest.err |
1505 | }; then : |
1506 | ac_retval=0 |
1507 | else |
1508 | $as_echo "$as_me: failed program was:" >&5 |
1509 | sed 's/^/| /' conftest.$ac_ext >&5 |
1510 | |
1511 | ac_retval=1 |
1512 | fi |
1513 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1514 | as_fn_set_status $ac_retval |
1515 | |
1516 | } # ac_fn_c_try_cpp |
1517 | |
1518 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1519 | # ------------------------------------------------------- |
1520 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
1521 | # the include files in INCLUDES and setting the cache variable VAR |
1522 | # accordingly. |
1523 | ac_fn_c_check_header_mongrel () |
1524 | { |
1525 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1526 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
1527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1528 | $as_echo_n "checking for $2... " >&6; } |
1529 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
1530 | $as_echo_n "(cached) " >&6 |
1531 | fi |
1532 | eval ac_res=\$$3 |
1533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1534 | $as_echo "$ac_res" >&6; } |
1535 | else |
1536 | # Is the header compilable? |
1537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
1538 | $as_echo_n "checking $2 usability... " >&6; } |
1539 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1540 | /* end confdefs.h. */ |
1541 | $4 |
1542 | #include <$2> |
1543 | _ACEOF |
1544 | if ac_fn_c_try_compile "$LINENO"; then : |
1545 | ac_header_compiler=yes |
1546 | else |
1547 | ac_header_compiler=no |
1548 | fi |
1549 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
1551 | $as_echo "$ac_header_compiler" >&6; } |
1552 | |
1553 | # Is the header present? |
1554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
1555 | $as_echo_n "checking $2 presence... " >&6; } |
1556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1557 | /* end confdefs.h. */ |
1558 | #include <$2> |
1559 | _ACEOF |
1560 | if ac_fn_c_try_cpp "$LINENO"; then : |
1561 | ac_header_preproc=yes |
1562 | else |
1563 | ac_header_preproc=no |
1564 | fi |
1565 | rm -f conftest.err conftest.$ac_ext |
1566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1567 | $as_echo "$ac_header_preproc" >&6; } |
1568 | |
1569 | # So? What about this header? |
1570 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
1571 | yes:no: ) |
1572 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
1573 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
1574 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
1575 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
1576 | ;; |
1577 | no:yes:* ) |
1578 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
1579 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
1580 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
1581 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
1582 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
1583 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
1584 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
1585 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
1586 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
1587 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
1588 | ( cat <<\_ASBOX |
1589 | ## -------------------------------- ## |
1590 | ## Report this to bugs@eggheads.org ## |
1591 | ## -------------------------------- ## |
1592 | _ASBOX |
1593 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
1594 | ;; |
1595 | esac |
1596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1597 | $as_echo_n "checking for $2... " >&6; } |
1598 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
1599 | $as_echo_n "(cached) " >&6 |
1600 | else |
1601 | eval "$3=\$ac_header_compiler" |
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 | fi |
1607 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1608 | |
1609 | } # ac_fn_c_check_header_mongrel |
1610 | |
1611 | # ac_fn_c_try_run LINENO |
1612 | # ---------------------- |
1613 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
1614 | # that executables *can* be run. |
1615 | ac_fn_c_try_run () |
1616 | { |
1617 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1618 | if { { ac_try="$ac_link" |
1619 | case "(($ac_try" in |
1620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1621 | *) ac_try_echo=$ac_try;; |
1622 | esac |
1623 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1624 | $as_echo "$ac_try_echo"; } >&5 |
1625 | (eval "$ac_link") 2>&5 |
1626 | ac_status=$? |
1627 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1628 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
1629 | { { case "(($ac_try" in |
1630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1631 | *) ac_try_echo=$ac_try;; |
1632 | esac |
1633 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1634 | $as_echo "$ac_try_echo"; } >&5 |
1635 | (eval "$ac_try") 2>&5 |
1636 | ac_status=$? |
1637 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1638 | test $ac_status = 0; }; }; then : |
1639 | ac_retval=0 |
1640 | else |
1641 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
1642 | $as_echo "$as_me: failed program was:" >&5 |
1643 | sed 's/^/| /' conftest.$ac_ext >&5 |
1644 | |
1645 | ac_retval=$ac_status |
1646 | fi |
1647 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1648 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1649 | as_fn_set_status $ac_retval |
1650 | |
1651 | } # ac_fn_c_try_run |
1652 | |
1653 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1654 | # ------------------------------------------------------- |
1655 | # Tests whether HEADER exists and can be compiled using the include files in |
1656 | # INCLUDES, setting the cache variable VAR accordingly. |
1657 | ac_fn_c_check_header_compile () |
1658 | { |
1659 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1661 | $as_echo_n "checking for $2... " >&6; } |
1662 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
1663 | $as_echo_n "(cached) " >&6 |
1664 | else |
1665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1666 | /* end confdefs.h. */ |
1667 | $4 |
1668 | #include <$2> |
1669 | _ACEOF |
1670 | if ac_fn_c_try_compile "$LINENO"; then : |
1671 | eval "$3=yes" |
1672 | else |
1673 | eval "$3=no" |
1674 | fi |
1675 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1676 | fi |
1677 | eval ac_res=\$$3 |
1678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1679 | $as_echo "$ac_res" >&6; } |
1680 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1681 | |
1682 | } # ac_fn_c_check_header_compile |
1683 | |
1684 | # ac_fn_c_try_link LINENO |
1685 | # ----------------------- |
1686 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
1687 | ac_fn_c_try_link () |
1688 | { |
1689 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1690 | rm -f conftest.$ac_objext conftest$ac_exeext |
1691 | if { { ac_try="$ac_link" |
1692 | case "(($ac_try" in |
1693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1694 | *) ac_try_echo=$ac_try;; |
1695 | esac |
1696 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1697 | $as_echo "$ac_try_echo"; } >&5 |
1698 | (eval "$ac_link") 2>conftest.err |
1699 | ac_status=$? |
1700 | if test -s conftest.err; then |
1701 | grep -v '^ *+' conftest.err >conftest.er1 |
1702 | cat conftest.er1 >&5 |
1703 | mv -f conftest.er1 conftest.err |
1704 | fi |
1705 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1706 | test $ac_status = 0; } && { |
1707 | test -z "$ac_c_werror_flag" || |
1708 | test ! -s conftest.err |
1709 | } && test -s conftest$ac_exeext && { |
1710 | test "$cross_compiling" = yes || |
1711 | $as_test_x conftest$ac_exeext |
1712 | }; then : |
1713 | ac_retval=0 |
1714 | else |
1715 | $as_echo "$as_me: failed program was:" >&5 |
1716 | sed 's/^/| /' conftest.$ac_ext >&5 |
1717 | |
1718 | ac_retval=1 |
1719 | fi |
1720 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1721 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
1722 | # interfere with the next link command; also delete a directory that is |
1723 | # left behind by Apple's compiler. We do this before executing the actions. |
1724 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1725 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1726 | as_fn_set_status $ac_retval |
1727 | |
1728 | } # ac_fn_c_try_link |
1729 | |
1730 | # ac_fn_c_check_func LINENO FUNC VAR |
1731 | # ---------------------------------- |
1732 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
1733 | ac_fn_c_check_func () |
1734 | { |
1735 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1737 | $as_echo_n "checking for $2... " >&6; } |
1738 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
1739 | $as_echo_n "(cached) " >&6 |
1740 | else |
1741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1742 | /* end confdefs.h. */ |
1743 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
1744 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
1745 | #define $2 innocuous_$2 |
1746 | |
1747 | /* System header to define __stub macros and hopefully few prototypes, |
1748 | which can conflict with char $2 (); below. |
1749 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
1750 | <limits.h> exists even on freestanding compilers. */ |
1751 | |
1752 | #ifdef __STDC__ |
1753 | # include <limits.h> |
1754 | #else |
1755 | # include <assert.h> |
1756 | #endif |
1757 | |
1758 | #undef $2 |
1759 | |
1760 | /* Override any GCC internal prototype to avoid an error. |
1761 | Use char because int might match the return type of a GCC |
1762 | builtin and then its argument prototype would still apply. */ |
1763 | #ifdef __cplusplus |
1764 | extern "C" |
1765 | #endif |
1766 | char $2 (); |
1767 | /* The GNU C library defines this for functions which it implements |
1768 | to always fail with ENOSYS. Some functions are actually named |
1769 | something starting with __ and the normal name is an alias. */ |
1770 | #if defined __stub_$2 || defined __stub___$2 |
1771 | choke me |
1772 | #endif |
1773 | |
1774 | int |
1775 | main () |
1776 | { |
1777 | return $2 (); |
1778 | ; |
1779 | return 0; |
1780 | } |
1781 | _ACEOF |
1782 | if ac_fn_c_try_link "$LINENO"; then : |
1783 | eval "$3=yes" |
1784 | else |
1785 | eval "$3=no" |
1786 | fi |
1787 | rm -f core conftest.err conftest.$ac_objext \ |
1788 | conftest$ac_exeext conftest.$ac_ext |
1789 | fi |
1790 | eval ac_res=\$$3 |
1791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1792 | $as_echo "$ac_res" >&6; } |
1793 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1794 | |
1795 | } # ac_fn_c_check_func |
1796 | |
1797 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
1798 | # ------------------------------------------- |
1799 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
1800 | # variable VAR accordingly. |
1801 | ac_fn_c_check_type () |
1802 | { |
1803 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1805 | $as_echo_n "checking for $2... " >&6; } |
1806 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
1807 | $as_echo_n "(cached) " >&6 |
1808 | else |
1809 | eval "$3=no" |
1810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1811 | /* end confdefs.h. */ |
1812 | $4 |
1813 | int |
1814 | main () |
1815 | { |
1816 | if (sizeof ($2)) |
1817 | return 0; |
1818 | ; |
1819 | return 0; |
1820 | } |
1821 | _ACEOF |
1822 | if ac_fn_c_try_compile "$LINENO"; then : |
1823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1824 | /* end confdefs.h. */ |
1825 | $4 |
1826 | int |
1827 | main () |
1828 | { |
1829 | if (sizeof (($2))) |
1830 | return 0; |
1831 | ; |
1832 | return 0; |
1833 | } |
1834 | _ACEOF |
1835 | if ac_fn_c_try_compile "$LINENO"; then : |
1836 | |
1837 | else |
1838 | eval "$3=yes" |
1839 | fi |
1840 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1841 | fi |
1842 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1843 | fi |
1844 | eval ac_res=\$$3 |
1845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1846 | $as_echo "$ac_res" >&6; } |
1847 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1848 | |
1849 | } # ac_fn_c_check_type |
1850 | |
1851 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
1852 | # ---------------------------------------------------- |
1853 | # Tries to find if the field MEMBER exists in type AGGR, after including |
1854 | # INCLUDES, setting cache variable VAR accordingly. |
1855 | ac_fn_c_check_member () |
1856 | { |
1857 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
1859 | $as_echo_n "checking for $2.$3... " >&6; } |
1860 | if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : |
1861 | $as_echo_n "(cached) " >&6 |
1862 | else |
1863 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1864 | /* end confdefs.h. */ |
1865 | $5 |
1866 | int |
1867 | main () |
1868 | { |
1869 | static $2 ac_aggr; |
1870 | if (ac_aggr.$3) |
1871 | return 0; |
1872 | ; |
1873 | return 0; |
1874 | } |
1875 | _ACEOF |
1876 | if ac_fn_c_try_compile "$LINENO"; then : |
1877 | eval "$4=yes" |
1878 | else |
1879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1880 | /* end confdefs.h. */ |
1881 | $5 |
1882 | int |
1883 | main () |
1884 | { |
1885 | static $2 ac_aggr; |
1886 | if (sizeof ac_aggr.$3) |
1887 | return 0; |
1888 | ; |
1889 | return 0; |
1890 | } |
1891 | _ACEOF |
1892 | if ac_fn_c_try_compile "$LINENO"; then : |
1893 | eval "$4=yes" |
1894 | else |
1895 | eval "$4=no" |
1896 | fi |
1897 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1898 | fi |
1899 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1900 | fi |
1901 | eval ac_res=\$$4 |
1902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1903 | $as_echo "$ac_res" >&6; } |
1904 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1905 | |
1906 | } # ac_fn_c_check_member |
1907 | |
1908 | # ac_fn_c_check_decl LINENO SYMBOL VAR |
1909 | # ------------------------------------ |
1910 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. |
1911 | ac_fn_c_check_decl () |
1912 | { |
1913 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 |
1915 | $as_echo_n "checking whether $2 is declared... " >&6; } |
1916 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
1917 | $as_echo_n "(cached) " >&6 |
1918 | else |
1919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1920 | /* end confdefs.h. */ |
1921 | $4 |
1922 | int |
1923 | main () |
1924 | { |
1925 | #ifndef $2 |
1926 | (void) $2; |
1927 | #endif |
1928 | |
1929 | ; |
1930 | return 0; |
1931 | } |
1932 | _ACEOF |
1933 | if ac_fn_c_try_compile "$LINENO"; then : |
1934 | eval "$3=yes" |
1935 | else |
1936 | eval "$3=no" |
1937 | fi |
1938 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1939 | fi |
1940 | eval ac_res=\$$3 |
1941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1942 | $as_echo "$ac_res" >&6; } |
1943 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1944 | |
1945 | } # ac_fn_c_check_decl |
1946 | |
1947 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
1948 | # -------------------------------------------- |
1949 | # Tries to find the compile-time value of EXPR in a program that includes |
1950 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
1951 | # computed |
1952 | ac_fn_c_compute_int () |
1953 | { |
1954 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1955 | if test "$cross_compiling" = yes; then |
1956 | # Depending upon the size, compute the lo and hi bounds. |
1957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1958 | /* end confdefs.h. */ |
1959 | $4 |
1960 | int |
1961 | main () |
1962 | { |
1963 | static int test_array [1 - 2 * !(($2) >= 0)]; |
1964 | test_array [0] = 0 |
1965 | |
1966 | ; |
1967 | return 0; |
1968 | } |
1969 | _ACEOF |
1970 | if ac_fn_c_try_compile "$LINENO"; then : |
1971 | ac_lo=0 ac_mid=0 |
1972 | while :; do |
1973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1974 | /* end confdefs.h. */ |
1975 | $4 |
1976 | int |
1977 | main () |
1978 | { |
1979 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
1980 | test_array [0] = 0 |
1981 | |
1982 | ; |
1983 | return 0; |
1984 | } |
1985 | _ACEOF |
1986 | if ac_fn_c_try_compile "$LINENO"; then : |
1987 | ac_hi=$ac_mid; break |
1988 | else |
1989 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
1990 | if test $ac_lo -le $ac_mid; then |
1991 | ac_lo= ac_hi= |
1992 | break |
1993 | fi |
1994 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
1995 | fi |
1996 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1997 | done |
1998 | else |
1999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2000 | /* end confdefs.h. */ |
2001 | $4 |
2002 | int |
2003 | main () |
2004 | { |
2005 | static int test_array [1 - 2 * !(($2) < 0)]; |
2006 | test_array [0] = 0 |
2007 | |
2008 | ; |
2009 | return 0; |
2010 | } |
2011 | _ACEOF |
2012 | if ac_fn_c_try_compile "$LINENO"; then : |
2013 | ac_hi=-1 ac_mid=-1 |
2014 | while :; do |
2015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2016 | /* end confdefs.h. */ |
2017 | $4 |
2018 | int |
2019 | main () |
2020 | { |
2021 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
2022 | test_array [0] = 0 |
2023 | |
2024 | ; |
2025 | return 0; |
2026 | } |
2027 | _ACEOF |
2028 | if ac_fn_c_try_compile "$LINENO"; then : |
2029 | ac_lo=$ac_mid; break |
2030 | else |
2031 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
2032 | if test $ac_mid -le $ac_hi; then |
2033 | ac_lo= ac_hi= |
2034 | break |
2035 | fi |
2036 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
2037 | fi |
2038 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2039 | done |
2040 | else |
2041 | ac_lo= ac_hi= |
2042 | fi |
2043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2044 | fi |
2045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2046 | # Binary search between lo and hi bounds. |
2047 | while test "x$ac_lo" != "x$ac_hi"; do |
2048 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
2049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2050 | /* end confdefs.h. */ |
2051 | $4 |
2052 | int |
2053 | main () |
2054 | { |
2055 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
2056 | test_array [0] = 0 |
2057 | |
2058 | ; |
2059 | return 0; |
2060 | } |
2061 | _ACEOF |
2062 | if ac_fn_c_try_compile "$LINENO"; then : |
2063 | ac_hi=$ac_mid |
2064 | else |
2065 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
2066 | fi |
2067 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2068 | done |
2069 | case $ac_lo in #(( |
2070 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
2071 | '') ac_retval=1 ;; |
2072 | esac |
2073 | else |
2074 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2075 | /* end confdefs.h. */ |
2076 | $4 |
2077 | static long int longval () { return $2; } |
2078 | static unsigned long int ulongval () { return $2; } |
2079 | #include <stdio.h> |
2080 | #include <stdlib.h> |
2081 | int |
2082 | main () |
2083 | { |
2084 | |
2085 | FILE *f = fopen ("conftest.val", "w"); |
2086 | if (! f) |
2087 | return 1; |
2088 | if (($2) < 0) |
2089 | { |
2090 | long int i = longval (); |
2091 | if (i != ($2)) |
2092 | return 1; |
2093 | fprintf (f, "%ld", i); |
2094 | } |
2095 | else |
2096 | { |
2097 | unsigned long int i = ulongval (); |
2098 | if (i != ($2)) |
2099 | return 1; |
2100 | fprintf (f, "%lu", i); |
2101 | } |
2102 | /* Do not output a trailing newline, as this causes \r\n confusion |
2103 | on some platforms. */ |
2104 | return ferror (f) || fclose (f) != 0; |
2105 | |
2106 | ; |
2107 | return 0; |
2108 | } |
2109 | _ACEOF |
2110 | if ac_fn_c_try_run "$LINENO"; then : |
2111 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
2112 | else |
2113 | ac_retval=1 |
2114 | fi |
2115 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
2116 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
2117 | rm -f conftest.val |
2118 | |
2119 | fi |
2120 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
2121 | as_fn_set_status $ac_retval |
2122 | |
2123 | } # ac_fn_c_compute_int |
2124 | cat >config.log <<_ACEOF |
2125 | This file contains any messages produced by compilers while |
2126 | running configure, to aid debugging if configure makes a mistake. |
2127 | |
2128 | It was created by Eggdrop $as_me 1.6.20, which was |
2129 | generated by GNU Autoconf 2.65. Invocation command line was |
2130 | |
2131 | $ $0 $@ |
2132 | |
2133 | _ACEOF |
2134 | exec 5>>config.log |
2135 | { |
2136 | cat <<_ASUNAME |
2137 | ## --------- ## |
2138 | ## Platform. ## |
2139 | ## --------- ## |
2140 | |
2141 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2142 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
2143 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
2144 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
2145 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
2146 | |
2147 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2148 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
2149 | |
2150 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2151 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
2152 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
2153 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
2154 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2155 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
2156 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
2157 | |
2158 | _ASUNAME |
2159 | |
2160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2161 | for as_dir in $PATH |
2162 | do |
2163 | IFS=$as_save_IFS |
2164 | test -z "$as_dir" && as_dir=. |
2165 | $as_echo "PATH: $as_dir" |
2166 | done |
2167 | IFS=$as_save_IFS |
2168 | |
2169 | } >&5 |
2170 | |
2171 | cat >&5 <<_ACEOF |
2172 | |
2173 | |
2174 | ## ----------- ## |
2175 | ## Core tests. ## |
2176 | ## ----------- ## |
2177 | |
2178 | _ACEOF |
2179 | |
2180 | |
2181 | # Keep a trace of the command line. |
2182 | # Strip out --no-create and --no-recursion so they do not pile up. |
2183 | # Strip out --silent because we don't want to record it for future runs. |
2184 | # Also quote any args containing shell meta-characters. |
2185 | # Make two passes to allow for proper duplicate-argument suppression. |
2186 | ac_configure_args= |
2187 | ac_configure_args0= |
2188 | ac_configure_args1= |
2189 | ac_must_keep_next=false |
2190 | for ac_pass in 1 2 |
2191 | do |
2192 | for ac_arg |
2193 | do |
2194 | case $ac_arg in |
2195 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
2196 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
2197 | | -silent | --silent | --silen | --sile | --sil) |
2198 | continue ;; |
2199 | *\'*) |
2200 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
2201 | esac |
2202 | case $ac_pass in |
2203 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
2204 | 2) |
2205 | as_fn_append ac_configure_args1 " '$ac_arg'" |
2206 | if test $ac_must_keep_next = true; then |
2207 | ac_must_keep_next=false # Got value, back to normal. |
2208 | else |
2209 | case $ac_arg in |
2210 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
2211 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
2212 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
2213 | | -with-* | --with-* | -without-* | --without-* | --x) |
2214 | case "$ac_configure_args0 " in |
2215 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
2216 | esac |
2217 | ;; |
2218 | -* ) ac_must_keep_next=true ;; |
2219 | esac |
2220 | fi |
2221 | as_fn_append ac_configure_args " '$ac_arg'" |
2222 | ;; |
2223 | esac |
2224 | done |
2225 | done |
2226 | { ac_configure_args0=; unset ac_configure_args0;} |
2227 | { ac_configure_args1=; unset ac_configure_args1;} |
2228 | |
2229 | # When interrupted or exit'd, cleanup temporary files, and complete |
2230 | # config.log. We remove comments because anyway the quotes in there |
2231 | # would cause problems or look ugly. |
2232 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2233 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
2234 | trap 'exit_status=$? |
2235 | # Save into config.log some information that might help in debugging. |
2236 | { |
2237 | echo |
2238 | |
2239 | cat <<\_ASBOX |
2240 | ## ---------------- ## |
2241 | ## Cache variables. ## |
2242 | ## ---------------- ## |
2243 | _ASBOX |
2244 | echo |
2245 | # The following way of writing the cache mishandles newlines in values, |
2246 | ( |
2247 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
2248 | eval ac_val=\$$ac_var |
2249 | case $ac_val in #( |
2250 | *${as_nl}*) |
2251 | case $ac_var in #( |
2252 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
2253 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
2254 | esac |
2255 | case $ac_var in #( |
2256 | _ | IFS | as_nl) ;; #( |
2257 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
2258 | *) { eval $ac_var=; unset $ac_var;} ;; |
2259 | esac ;; |
2260 | esac |
2261 | done |
2262 | (set) 2>&1 | |
2263 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2264 | *${as_nl}ac_space=\ *) |
2265 | sed -n \ |
2266 | "s/'\''/'\''\\\\'\'''\''/g; |
2267 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
2268 | ;; #( |
2269 | *) |
2270 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
2271 | ;; |
2272 | esac | |
2273 | sort |
2274 | ) |
2275 | echo |
2276 | |
2277 | cat <<\_ASBOX |
2278 | ## ----------------- ## |
2279 | ## Output variables. ## |
2280 | ## ----------------- ## |
2281 | _ASBOX |
2282 | echo |
2283 | for ac_var in $ac_subst_vars |
2284 | do |
2285 | eval ac_val=\$$ac_var |
2286 | case $ac_val in |
2287 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
2288 | esac |
2289 | $as_echo "$ac_var='\''$ac_val'\''" |
2290 | done | sort |
2291 | echo |
2292 | |
2293 | if test -n "$ac_subst_files"; then |
2294 | cat <<\_ASBOX |
2295 | ## ------------------- ## |
2296 | ## File substitutions. ## |
2297 | ## ------------------- ## |
2298 | _ASBOX |
2299 | echo |
2300 | for ac_var in $ac_subst_files |
2301 | do |
2302 | eval ac_val=\$$ac_var |
2303 | case $ac_val in |
2304 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
2305 | esac |
2306 | $as_echo "$ac_var='\''$ac_val'\''" |
2307 | done | sort |
2308 | echo |
2309 | fi |
2310 | |
2311 | if test -s confdefs.h; then |
2312 | cat <<\_ASBOX |
2313 | ## ----------- ## |
2314 | ## confdefs.h. ## |
2315 | ## ----------- ## |
2316 | _ASBOX |
2317 | echo |
2318 | cat confdefs.h |
2319 | echo |
2320 | fi |
2321 | test "$ac_signal" != 0 && |
2322 | $as_echo "$as_me: caught signal $ac_signal" |
2323 | $as_echo "$as_me: exit $exit_status" |
2324 | } >&5 |
2325 | rm -f core *.core core.conftest.* && |
2326 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
2327 | exit $exit_status |
2328 | ' 0 |
2329 | for ac_signal in 1 2 13 15; do |
2330 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
2331 | done |
2332 | ac_signal=0 |
2333 | |
2334 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2335 | rm -f -r conftest* confdefs.h |
2336 | |
2337 | $as_echo "/* confdefs.h */" > confdefs.h |
2338 | |
2339 | # Predefined preprocessor variables. |
2340 | |
2341 | cat >>confdefs.h <<_ACEOF |
2342 | #define PACKAGE_NAME "$PACKAGE_NAME" |
2343 | _ACEOF |
2344 | |
2345 | cat >>confdefs.h <<_ACEOF |
2346 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
2347 | _ACEOF |
2348 | |
2349 | cat >>confdefs.h <<_ACEOF |
2350 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
2351 | _ACEOF |
2352 | |
2353 | cat >>confdefs.h <<_ACEOF |
2354 | #define PACKAGE_STRING "$PACKAGE_STRING" |
2355 | _ACEOF |
2356 | |
2357 | cat >>confdefs.h <<_ACEOF |
2358 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
2359 | _ACEOF |
2360 | |
2361 | cat >>confdefs.h <<_ACEOF |
2362 | #define PACKAGE_URL "$PACKAGE_URL" |
2363 | _ACEOF |
2364 | |
2365 | |
2366 | # Let the site file select an alternate cache file if it wants to. |
2367 | # Prefer an explicitly selected file to automatically selected ones. |
2368 | ac_site_file1=NONE |
2369 | ac_site_file2=NONE |
2370 | if test -n "$CONFIG_SITE"; then |
2371 | ac_site_file1=$CONFIG_SITE |
2372 | elif test "x$prefix" != xNONE; then |
2373 | ac_site_file1=$prefix/share/config.site |
2374 | ac_site_file2=$prefix/etc/config.site |
2375 | else |
2376 | ac_site_file1=$ac_default_prefix/share/config.site |
2377 | ac_site_file2=$ac_default_prefix/etc/config.site |
2378 | fi |
2379 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2380 | do |
2381 | test "x$ac_site_file" = xNONE && continue |
2382 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
2383 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2384 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
2385 | sed 's/^/| /' "$ac_site_file" >&5 |
2386 | . "$ac_site_file" |
2387 | fi |
2388 | done |
2389 | |
2390 | if test -r "$cache_file"; then |
2391 | # Some versions of bash will fail to source /dev/null (special files |
2392 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
2393 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
2394 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2395 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
2396 | case $cache_file in |
2397 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2398 | *) . "./$cache_file";; |
2399 | esac |
2400 | fi |
2401 | else |
2402 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2403 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
2404 | >$cache_file |
2405 | fi |
2406 | |
2407 | as_fn_append ac_header_list " stdlib.h" |
2408 | as_fn_append ac_header_list " unistd.h" |
2409 | as_fn_append ac_header_list " sys/param.h" |
2410 | # Check that the precious variables saved in the cache have kept the same |
2411 | # value. |
2412 | ac_cache_corrupted=false |
2413 | for ac_var in $ac_precious_vars; do |
2414 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2415 | eval ac_new_set=\$ac_env_${ac_var}_set |
2416 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2417 | eval ac_new_val=\$ac_env_${ac_var}_value |
2418 | case $ac_old_set,$ac_new_set in |
2419 | set,) |
2420 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2421 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
2422 | ac_cache_corrupted=: ;; |
2423 | ,set) |
2424 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2425 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
2426 | ac_cache_corrupted=: ;; |
2427 | ,);; |
2428 | *) |
2429 | if test "x$ac_old_val" != "x$ac_new_val"; then |
2430 | # differences in whitespace do not lead to failure. |
2431 | ac_old_val_w=`echo x $ac_old_val` |
2432 | ac_new_val_w=`echo x $ac_new_val` |
2433 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
2434 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
2435 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2436 | ac_cache_corrupted=: |
2437 | else |
2438 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
2439 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2440 | eval $ac_var=\$ac_old_val |
2441 | fi |
2442 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
2443 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
2444 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
2445 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
2446 | fi;; |
2447 | esac |
2448 | # Pass precious variables to config.status. |
2449 | if test "$ac_new_set" = set; then |
2450 | case $ac_new_val in |
2451 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
2452 | *) ac_arg=$ac_var=$ac_new_val ;; |
2453 | esac |
2454 | case " $ac_configure_args " in |
2455 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
2456 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
2457 | esac |
2458 | fi |
2459 | done |
2460 | if $ac_cache_corrupted; then |
2461 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2462 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2463 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
2464 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
2465 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
2466 | fi |
2467 | ## -------------------- ## |
2468 | ## Main body of script. ## |
2469 | ## -------------------- ## |
2470 | |
2471 | ac_ext=c |
2472 | ac_cpp='$CPP $CPPFLAGS' |
2473 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2474 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2475 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2476 | |
2477 | |
2478 | |
2479 | |
2480 | |
2481 | ac_aux_dir= |
2482 | for ac_dir in misc "$srcdir"/misc; do |
2483 | for ac_t in install-sh install.sh shtool; do |
2484 | if test -f "$ac_dir/$ac_t"; then |
2485 | ac_aux_dir=$ac_dir |
2486 | ac_install_sh="$ac_aux_dir/$ac_t -c" |
2487 | break 2 |
2488 | fi |
2489 | done |
2490 | done |
2491 | if test -z "$ac_aux_dir"; then |
2492 | as_fn_error "cannot find install-sh, install.sh, or shtool in misc \"$srcdir\"/misc" "$LINENO" 5 |
2493 | fi |
2494 | |
2495 | # These three variables are undocumented and unsupported, |
2496 | # and are intended to be withdrawn in a future Autoconf release. |
2497 | # They can cause serious problems if a builder's source tree is in a directory |
2498 | # whose full name contains unusual characters. |
2499 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
2500 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
2501 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
2502 | |
2503 | |
2504 | ac_config_headers="$ac_config_headers config.h" |
2505 | |
2506 | |
2507 | |
2508 | |
2509 | |
2510 | |
2511 | |
2512 | |
2513 | |
2514 | # Print start message |
2515 | |
2516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
2517 | $as_echo "" >&6; } |
2518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: This is Eggdrop's GNU configure script." >&5 |
2519 | $as_echo "This is Eggdrop's GNU configure script." >&6; } |
2520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: It's going to run a bunch of tests to hopefully make your compile" >&5 |
2521 | $as_echo "It's going to run a bunch of tests to hopefully make your compile" >&6; } |
2522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: work without much twiddling." >&5 |
2523 | $as_echo "work without much twiddling." >&6; } |
2524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
2525 | $as_echo "" >&6; } |
2526 | |
2527 | |
2528 | egg_ac_parameters= |
2529 | ac_prev= |
2530 | for ac_arg in $ac_configure_args; do |
2531 | if test -n "$ac_prev"; then |
2532 | ac_prev= |
2533 | continue |
2534 | fi |
2535 | case $ac_arg in |
2536 | -cache-file | --cache-file | --cache-fil | --cache-fi | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
2537 | ac_prev=cache_file ;; |
2538 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2539 | ;; |
2540 | --config-cache | -C) |
2541 | ;; |
2542 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
2543 | ac_prev=srcdir ;; |
2544 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
2545 | ;; |
2546 | *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;; |
2547 | esac |
2548 | done |
2549 | |
2550 | |
2551 | |
2552 | |
2553 | |
2554 | # Check for a working C compiler |
2555 | ac_ext=c |
2556 | ac_cpp='$CPP $CPPFLAGS' |
2557 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2558 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2559 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2560 | if test -n "$ac_tool_prefix"; then |
2561 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
2562 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
2563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2564 | $as_echo_n "checking for $ac_word... " >&6; } |
2565 | if test "${ac_cv_prog_CC+set}" = set; then : |
2566 | $as_echo_n "(cached) " >&6 |
2567 | else |
2568 | if test -n "$CC"; then |
2569 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2570 | else |
2571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2572 | for as_dir in $PATH |
2573 | do |
2574 | IFS=$as_save_IFS |
2575 | test -z "$as_dir" && as_dir=. |
2576 | for ac_exec_ext in '' $ac_executable_extensions; do |
2577 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2578 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2579 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2580 | break 2 |
2581 | fi |
2582 | done |
2583 | done |
2584 | IFS=$as_save_IFS |
2585 | |
2586 | fi |
2587 | fi |
2588 | CC=$ac_cv_prog_CC |
2589 | if test -n "$CC"; then |
2590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2591 | $as_echo "$CC" >&6; } |
2592 | else |
2593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2594 | $as_echo "no" >&6; } |
2595 | fi |
2596 | |
2597 | |
2598 | fi |
2599 | if test -z "$ac_cv_prog_CC"; then |
2600 | ac_ct_CC=$CC |
2601 | # Extract the first word of "gcc", so it can be a program name with args. |
2602 | set dummy gcc; ac_word=$2 |
2603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2604 | $as_echo_n "checking for $ac_word... " >&6; } |
2605 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
2606 | $as_echo_n "(cached) " >&6 |
2607 | else |
2608 | if test -n "$ac_ct_CC"; then |
2609 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2610 | else |
2611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2612 | for as_dir in $PATH |
2613 | do |
2614 | IFS=$as_save_IFS |
2615 | test -z "$as_dir" && as_dir=. |
2616 | for ac_exec_ext in '' $ac_executable_extensions; do |
2617 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2618 | ac_cv_prog_ac_ct_CC="gcc" |
2619 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2620 | break 2 |
2621 | fi |
2622 | done |
2623 | done |
2624 | IFS=$as_save_IFS |
2625 | |
2626 | fi |
2627 | fi |
2628 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2629 | if test -n "$ac_ct_CC"; then |
2630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2631 | $as_echo "$ac_ct_CC" >&6; } |
2632 | else |
2633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2634 | $as_echo "no" >&6; } |
2635 | fi |
2636 | |
2637 | if test "x$ac_ct_CC" = x; then |
2638 | CC="" |
2639 | else |
2640 | case $cross_compiling:$ac_tool_warned in |
2641 | yes:) |
2642 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
2643 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2644 | ac_tool_warned=yes ;; |
2645 | esac |
2646 | CC=$ac_ct_CC |
2647 | fi |
2648 | else |
2649 | CC="$ac_cv_prog_CC" |
2650 | fi |
2651 | |
2652 | if test -z "$CC"; then |
2653 | if test -n "$ac_tool_prefix"; then |
2654 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
2655 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
2656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2657 | $as_echo_n "checking for $ac_word... " >&6; } |
2658 | if test "${ac_cv_prog_CC+set}" = set; then : |
2659 | $as_echo_n "(cached) " >&6 |
2660 | else |
2661 | if test -n "$CC"; then |
2662 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2663 | else |
2664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2665 | for as_dir in $PATH |
2666 | do |
2667 | IFS=$as_save_IFS |
2668 | test -z "$as_dir" && as_dir=. |
2669 | for ac_exec_ext in '' $ac_executable_extensions; do |
2670 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2671 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2672 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2673 | break 2 |
2674 | fi |
2675 | done |
2676 | done |
2677 | IFS=$as_save_IFS |
2678 | |
2679 | fi |
2680 | fi |
2681 | CC=$ac_cv_prog_CC |
2682 | if test -n "$CC"; then |
2683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2684 | $as_echo "$CC" >&6; } |
2685 | else |
2686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2687 | $as_echo "no" >&6; } |
2688 | fi |
2689 | |
2690 | |
2691 | fi |
2692 | fi |
2693 | if test -z "$CC"; then |
2694 | # Extract the first word of "cc", so it can be a program name with args. |
2695 |