]>
Commit | Line | Data |
---|---|---|
b3076f16 | 1 | #! /bin/sh |
db946ede | 2 | # From configure.in Id. |
b3076f16 | 3 | # Guess values for system-dependent variables and create Makefiles. |
c6254516 | 4 | # Generated by GNU Autoconf 2.68 for X3 1.8.1. |
b3076f16 | 5 | # |
63c95a47 | 6 | # Report bugs to <evilnet-devel@lists.sourceforge.net>. |
b3076f16 | 7 | # |
c6254516 | 8 | # |
a8b2ad8d | 9 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
c6254516 | 10 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
db946ede | 11 | # Foundation, Inc. |
12 | # | |
c6254516 | 13 | # |
b3076f16 | 14 | # This configure script is free software; the Free Software Foundation |
15 | # gives unlimited permission to copy, distribute and modify it. | |
db946ede | 16 | ## -------------------- ## |
17 | ## M4sh Initialization. ## | |
18 | ## -------------------- ## | |
b3076f16 | 19 | |
0bd0bef6 | 20 | # Be more Bourne compatible |
21 | DUALCASE=1; export DUALCASE # for MKS sh | |
db946ede | 22 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
b3076f16 | 23 | emulate sh |
24 | NULLCMD=: | |
db946ede | 25 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b3076f16 | 26 | # is contrary to our usage. Disable this feature. |
27 | alias -g '${1+"$@"}'='"$@"' | |
a8b2ad8d | 28 | setopt NO_GLOB_SUBST |
29 | else | |
db946ede | 30 | case `(set -o) 2>/dev/null` in #( |
31 | *posix*) : | |
32 | set -o posix ;; #( | |
33 | *) : | |
34 | ;; | |
0bd0bef6 | 35 | esac |
b3076f16 | 36 | fi |
0bd0bef6 | 37 | |
38 | ||
db946ede | 39 | as_nl=' |
40 | ' | |
41 | export as_nl | |
42 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
43 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
46 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
47 | # but without wasting forks for bash or zsh. | |
48 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
49 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
50 | as_echo='print -r --' | |
51 | as_echo_n='print -rn --' | |
52 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
53 | as_echo='printf %s\n' | |
54 | as_echo_n='printf %s' | |
55 | else | |
56 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
57 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
58 | as_echo_n='/usr/ucb/echo -n' | |
a8b2ad8d | 59 | else |
db946ede | 60 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
61 | as_echo_n_body='eval | |
62 | arg=$1; | |
63 | case $arg in #( | |
64 | *"$as_nl"*) | |
65 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
66 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
67 | esac; | |
68 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
69 | ' | |
70 | export as_echo_n_body | |
71 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
a8b2ad8d | 72 | fi |
db946ede | 73 | export as_echo_body |
74 | as_echo='sh -c $as_echo_body as_echo' | |
a8b2ad8d | 75 | fi |
76 | ||
db946ede | 77 | # The user is always right. |
78 | if test "${PATH_SEPARATOR+set}" != set; then | |
79 | PATH_SEPARATOR=: | |
80 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
81 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
82 | PATH_SEPARATOR=';' | |
83 | } | |
b3076f16 | 84 | fi |
85 | ||
86 | ||
a8b2ad8d | 87 | # IFS |
88 | # We need space, tab and new line, in precisely that order. Quoting is | |
89 | # there to prevent editors from complaining about space-tab. | |
90 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
91 | # splitting by setting IFS to empty value.) | |
a8b2ad8d | 92 | IFS=" "" $as_nl" |
93 | ||
94 | # Find who we are. Look in the path if we contain no directory separator. | |
c6254516 | 95 | as_myself= |
db946ede | 96 | case $0 in #(( |
a8b2ad8d | 97 | *[\\/]* ) as_myself=$0 ;; |
98 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
99 | for as_dir in $PATH | |
100 | do | |
101 | IFS=$as_save_IFS | |
102 | test -z "$as_dir" && as_dir=. | |
db946ede | 103 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
104 | done | |
a8b2ad8d | 105 | IFS=$as_save_IFS |
106 | ||
107 | ;; | |
108 | esac | |
109 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
110 | # in which case we are not to be found in the path. | |
111 | if test "x$as_myself" = x; then | |
112 | as_myself=$0 | |
113 | fi | |
114 | if test ! -f "$as_myself"; then | |
db946ede | 115 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
116 | exit 1 | |
a8b2ad8d | 117 | fi |
118 | ||
db946ede | 119 | # Unset variables that we do not need and which cause bugs (e.g. in |
120 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
121 | # suppresses any "Segmentation fault" message there. '((' could | |
122 | # trigger a bug in pdksh 5.2.14. | |
123 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
124 | do eval test x\${$as_var+set} = xset \ | |
125 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
a8b2ad8d | 126 | done |
b3076f16 | 127 | PS1='$ ' |
128 | PS2='> ' | |
129 | PS4='+ ' | |
130 | ||
131 | # NLS nuisances. | |
db946ede | 132 | LC_ALL=C |
133 | export LC_ALL | |
134 | LANGUAGE=C | |
135 | export LANGUAGE | |
136 | ||
137 | # CDPATH. | |
138 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
139 | ||
140 | if test "x$CONFIG_SHELL" = x; then | |
141 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
142 | emulate sh | |
143 | NULLCMD=: | |
144 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
145 | # is contrary to our usage. Disable this feature. | |
146 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
147 | setopt NO_GLOB_SUBST | |
148 | else | |
149 | case \`(set -o) 2>/dev/null\` in #( | |
150 | *posix*) : | |
151 | set -o posix ;; #( | |
152 | *) : | |
153 | ;; | |
154 | esac | |
155 | fi | |
156 | " | |
157 | as_required="as_fn_return () { (exit \$1); } | |
158 | as_fn_success () { as_fn_return 0; } | |
159 | as_fn_failure () { as_fn_return 1; } | |
160 | as_fn_ret_success () { return 0; } | |
161 | as_fn_ret_failure () { return 1; } | |
162 | ||
163 | exitcode=0 | |
164 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
165 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
166 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
167 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
168 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
169 | ||
170 | else | |
171 | exitcode=1; echo positional parameters were not saved. | |
172 | fi | |
173 | test x\$exitcode = x0 || exit 1" | |
174 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
175 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
176 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
177 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
178 | test \$(( 1 + 1 )) = 2 || exit 1" | |
179 | if (eval "$as_required") 2>/dev/null; then : | |
180 | as_have_required=yes | |
181 | else | |
182 | as_have_required=no | |
183 | fi | |
184 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
185 | ||
186 | else | |
187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
188 | as_found=false | |
189 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
b3076f16 | 190 | do |
db946ede | 191 | IFS=$as_save_IFS |
192 | test -z "$as_dir" && as_dir=. | |
193 | as_found=: | |
194 | case $as_dir in #( | |
195 | /*) | |
196 | for as_base in sh bash ksh sh5; do | |
197 | # Try only shells that exist, to save several forks. | |
198 | as_shell=$as_dir/$as_base | |
199 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
200 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
201 | CONFIG_SHELL=$as_shell as_have_required=yes | |
202 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
203 | break 2 | |
204 | fi | |
205 | fi | |
206 | done;; | |
207 | esac | |
208 | as_found=false | |
209 | done | |
210 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
211 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
212 | CONFIG_SHELL=$SHELL as_have_required=yes | |
213 | fi; } | |
214 | IFS=$as_save_IFS | |
215 | ||
216 | ||
217 | if test "x$CONFIG_SHELL" != x; then : | |
218 | # We cannot yet assume a decent shell, so we have to provide a | |
219 | # neutralization value for shells without unset; and this also | |
220 | # works around shells that cannot unset nonexistent variables. | |
c6254516 | 221 | # Preserve -v and -x to the replacement shell. |
db946ede | 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 | |
c6254516 R |
226 | case $- in # (((( |
227 | *v*x* | *x*v* ) as_opts=-vx ;; | |
228 | *v* ) as_opts=-v ;; | |
229 | *x* ) as_opts=-x ;; | |
230 | * ) as_opts= ;; | |
231 | esac | |
232 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} | |
db946ede | 233 | fi |
234 | ||
235 | if test x$as_have_required = xno; then : | |
236 | $as_echo "$0: This script requires a shell more modern than all" | |
237 | $as_echo "$0: the shells that I found on your system." | |
238 | if test x${ZSH_VERSION+set} = xset ; then | |
239 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
240 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
b3076f16 | 241 | else |
db946ede | 242 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
243 | $0: evilnet-devel@lists.sourceforge.net about your system, | |
244 | $0: including any error possibly output before this | |
245 | $0: message. Then install a modern shell, or manually run | |
246 | $0: the script under such a shell if you do have one." | |
b3076f16 | 247 | fi |
db946ede | 248 | exit 1 |
249 | fi | |
250 | fi | |
251 | fi | |
252 | SHELL=${CONFIG_SHELL-/bin/sh} | |
253 | export SHELL | |
254 | # Unset more variables known to interfere with behavior of common tools. | |
255 | CLICOLOR_FORCE= GREP_OPTIONS= | |
256 | unset CLICOLOR_FORCE GREP_OPTIONS | |
257 | ||
258 | ## --------------------- ## | |
259 | ## M4sh Shell Functions. ## | |
260 | ## --------------------- ## | |
261 | # as_fn_unset VAR | |
262 | # --------------- | |
263 | # Portably unset VAR. | |
264 | as_fn_unset () | |
265 | { | |
266 | { eval $1=; unset $1;} | |
267 | } | |
268 | as_unset=as_fn_unset | |
269 | ||
270 | # as_fn_set_status STATUS | |
271 | # ----------------------- | |
272 | # Set $? to STATUS, without forking. | |
273 | as_fn_set_status () | |
274 | { | |
275 | return $1 | |
276 | } # as_fn_set_status | |
277 | ||
278 | # as_fn_exit STATUS | |
279 | # ----------------- | |
280 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
281 | as_fn_exit () | |
282 | { | |
283 | set +e | |
284 | as_fn_set_status $1 | |
285 | exit $1 | |
286 | } # as_fn_exit | |
287 | ||
288 | # as_fn_mkdir_p | |
289 | # ------------- | |
290 | # Create "$as_dir" as a directory, including parents if necessary. | |
291 | as_fn_mkdir_p () | |
292 | { | |
293 | ||
294 | case $as_dir in #( | |
295 | -*) as_dir=./$as_dir;; | |
296 | esac | |
297 | test -d "$as_dir" || eval $as_mkdir_p || { | |
298 | as_dirs= | |
299 | while :; do | |
300 | case $as_dir in #( | |
301 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
302 | *) as_qdir=$as_dir;; | |
303 | esac | |
304 | as_dirs="'$as_qdir' $as_dirs" | |
305 | as_dir=`$as_dirname -- "$as_dir" || | |
306 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
307 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
308 | X"$as_dir" : 'X\(//\)$' \| \ | |
309 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
310 | $as_echo X"$as_dir" | | |
311 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
312 | s//\1/ | |
313 | q | |
314 | } | |
315 | /^X\(\/\/\)[^/].*/{ | |
316 | s//\1/ | |
317 | q | |
318 | } | |
319 | /^X\(\/\/\)$/{ | |
320 | s//\1/ | |
321 | q | |
322 | } | |
323 | /^X\(\/\).*/{ | |
324 | s//\1/ | |
325 | q | |
326 | } | |
327 | s/.*/./; q'` | |
328 | test -d "$as_dir" && break | |
329 | done | |
330 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
c6254516 | 331 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
db946ede | 332 | |
333 | ||
334 | } # as_fn_mkdir_p | |
335 | # as_fn_append VAR VALUE | |
336 | # ---------------------- | |
337 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
338 | # advantage of any shell optimizations that allow amortized linear growth over | |
339 | # repeated appends, instead of the typical quadratic growth present in naive | |
340 | # implementations. | |
341 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
342 | eval 'as_fn_append () | |
343 | { | |
344 | eval $1+=\$2 | |
345 | }' | |
346 | else | |
347 | as_fn_append () | |
348 | { | |
349 | eval $1=\$$1\$2 | |
350 | } | |
351 | fi # as_fn_append | |
352 | ||
353 | # as_fn_arith ARG... | |
354 | # ------------------ | |
355 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
356 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
357 | # must be portable across $(()) and expr. | |
358 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
359 | eval 'as_fn_arith () | |
360 | { | |
361 | as_val=$(( $* )) | |
362 | }' | |
363 | else | |
364 | as_fn_arith () | |
365 | { | |
366 | as_val=`expr "$@" || test $? -eq 1` | |
367 | } | |
368 | fi # as_fn_arith | |
369 | ||
370 | ||
c6254516 R |
371 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
372 | # ---------------------------------------- | |
db946ede | 373 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
374 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
c6254516 | 375 | # script with STATUS, using 1 if that was 0. |
db946ede | 376 | as_fn_error () |
377 | { | |
c6254516 R |
378 | as_status=$1; test $as_status -eq 0 && as_status=1 |
379 | if test "$4"; then | |
380 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
381 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
db946ede | 382 | fi |
c6254516 | 383 | $as_echo "$as_me: error: $2" >&2 |
db946ede | 384 | as_fn_exit $as_status |
385 | } # as_fn_error | |
b3076f16 | 386 | |
a8b2ad8d | 387 | if expr a : '\(a\)' >/dev/null 2>&1 && |
388 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b3076f16 | 389 | as_expr=expr |
390 | else | |
391 | as_expr=false | |
392 | fi | |
393 | ||
a8b2ad8d | 394 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b3076f16 | 395 | as_basename=basename |
396 | else | |
397 | as_basename=false | |
398 | fi | |
399 | ||
db946ede | 400 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
401 | as_dirname=dirname | |
402 | else | |
403 | as_dirname=false | |
404 | fi | |
b3076f16 | 405 | |
a8b2ad8d | 406 | as_me=`$as_basename -- "$0" || |
b3076f16 | 407 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
408 | X"$0" : 'X\(//\)$' \| \ | |
a8b2ad8d | 409 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
db946ede | 410 | $as_echo X/"$0" | |
a8b2ad8d | 411 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
412 | s//\1/ | |
413 | q | |
414 | } | |
415 | /^X\/\(\/\/\)$/{ | |
416 | s//\1/ | |
417 | q | |
418 | } | |
419 | /^X\/\(\/\).*/{ | |
420 | s//\1/ | |
421 | q | |
422 | } | |
423 | s/.*/./; q'` | |
b3076f16 | 424 | |
db946ede | 425 | # Avoid depending upon Character Ranges. |
426 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
427 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
428 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
429 | as_cr_digits='0123456789' | |
430 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
b3076f16 | 431 | |
b3076f16 | 432 | |
db946ede | 433 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
434 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
435 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
436 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
437 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
438 | sed -n ' | |
439 | p | |
440 | /[$]LINENO/= | |
441 | ' <$as_myself | | |
442 | sed ' | |
443 | s/[$]LINENO.*/&-/ | |
444 | t lineno | |
445 | b | |
446 | :lineno | |
447 | N | |
448 | :loop | |
449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
450 | t loop | |
451 | s/-\n.*// | |
452 | ' >$as_me.lineno && | |
453 | chmod +x "$as_me.lineno" || | |
454 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
b3076f16 | 455 | |
db946ede | 456 | # Don't try to exec as it changes $[0], causing all sort of problems |
457 | # (the dirname of $[0] is not the place where we might find the | |
458 | # original and so on. Autoconf is especially sensitive to this). | |
459 | . "./$as_me.lineno" | |
460 | # Exit status is that of the last command. | |
461 | exit | |
a8b2ad8d | 462 | } |
b3076f16 | 463 | |
db946ede | 464 | ECHO_C= ECHO_N= ECHO_T= |
465 | case `echo -n x` in #((((( | |
466 | -n*) | |
467 | case `echo 'xy\c'` in | |
468 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
469 | xy) ECHO_C='\c';; | |
470 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
471 | ECHO_T=' ';; | |
472 | esac;; | |
473 | *) | |
474 | ECHO_N='-n';; | |
475 | esac | |
a8b2ad8d | 476 | |
db946ede | 477 | rm -f conf$$ conf$$.exe conf$$.file |
478 | if test -d conf$$.dir; then | |
479 | rm -f conf$$.dir/conf$$.file | |
480 | else | |
481 | rm -f conf$$.dir | |
482 | mkdir conf$$.dir 2>/dev/null | |
483 | fi | |
484 | if (echo >conf$$.file) 2>/dev/null; then | |
485 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
486 | as_ln_s='ln -s' | |
487 | # ... but there are two gotchas: | |
488 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
489 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
490 | # In both cases, we have to default to `cp -p'. | |
491 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
492 | as_ln_s='cp -p' | |
493 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
494 | as_ln_s=ln | |
495 | else | |
496 | as_ln_s='cp -p' | |
497 | fi | |
a8b2ad8d | 498 | else |
db946ede | 499 | as_ln_s='cp -p' |
a8b2ad8d | 500 | fi |
db946ede | 501 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
502 | rmdir conf$$.dir 2>/dev/null | |
a8b2ad8d | 503 | |
db946ede | 504 | if mkdir -p . 2>/dev/null; then |
505 | as_mkdir_p='mkdir -p "$as_dir"' | |
506 | else | |
507 | test -d ./-p && rmdir ./-p | |
508 | as_mkdir_p=false | |
a8b2ad8d | 509 | fi |
510 | ||
db946ede | 511 | if test -x / >/dev/null 2>&1; then |
512 | as_test_x='test -x' | |
a8b2ad8d | 513 | else |
db946ede | 514 | if ls -dL / >/dev/null 2>&1; then |
515 | as_ls_L_option=L | |
516 | else | |
517 | as_ls_L_option= | |
518 | fi | |
519 | as_test_x=' | |
520 | eval sh -c '\'' | |
521 | if test -d "$1"; then | |
522 | test -d "$1/."; | |
523 | else | |
524 | case $1 in #( | |
525 | -*)set "./$1";; | |
526 | esac; | |
527 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
528 | ???[sx]*):;;*)false;;esac;fi | |
529 | '\'' sh | |
530 | ' | |
a8b2ad8d | 531 | fi |
db946ede | 532 | as_executable_p=$as_test_x |
a8b2ad8d | 533 | |
db946ede | 534 | # Sed expression to map a string onto a valid CPP name. |
535 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
a8b2ad8d | 536 | |
db946ede | 537 | # Sed expression to map a string onto a valid variable name. |
538 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
a8b2ad8d | 539 | |
540 | ||
c6254516 R |
541 | test -n "$DJDIR" || exec 7<&0 </dev/null |
542 | exec 6>&1 | |
0bd0bef6 | 543 | |
db946ede | 544 | # Name of the host. |
c6254516 | 545 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
db946ede | 546 | # so uname gets run too. |
547 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
0bd0bef6 | 548 | |
db946ede | 549 | # |
550 | # Initializations. | |
551 | # | |
552 | ac_default_prefix=/usr/local | |
553 | ac_clean_files= | |
554 | ac_config_libobj_dir=. | |
555 | LIBOBJS= | |
556 | cross_compiling=no | |
557 | subdirs= | |
558 | MFLAGS= | |
559 | MAKEFLAGS= | |
b3076f16 | 560 | |
b3076f16 | 561 | # Identity of this package. |
ceafd592 | 562 | PACKAGE_NAME='X3' |
563 | PACKAGE_TARNAME='x3' | |
c6254516 R |
564 | PACKAGE_VERSION='1.8.1' |
565 | PACKAGE_STRING='X3 1.8.1' | |
63c95a47 | 566 | PACKAGE_BUGREPORT='evilnet-devel@lists.sourceforge.net' |
db946ede | 567 | PACKAGE_URL='' |
b3076f16 | 568 | |
569 | ac_unique_file="src/opserv.c" | |
570 | # Factoring default headers for most tests. | |
571 | ac_includes_default="\ | |
572 | #include <stdio.h> | |
0bd0bef6 | 573 | #ifdef HAVE_SYS_TYPES_H |
b3076f16 | 574 | # include <sys/types.h> |
575 | #endif | |
0bd0bef6 | 576 | #ifdef HAVE_SYS_STAT_H |
b3076f16 | 577 | # include <sys/stat.h> |
578 | #endif | |
0bd0bef6 | 579 | #ifdef STDC_HEADERS |
b3076f16 | 580 | # include <stdlib.h> |
581 | # include <stddef.h> | |
582 | #else | |
0bd0bef6 | 583 | # ifdef HAVE_STDLIB_H |
b3076f16 | 584 | # include <stdlib.h> |
585 | # endif | |
586 | #endif | |
0bd0bef6 | 587 | #ifdef HAVE_STRING_H |
588 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
b3076f16 | 589 | # include <memory.h> |
590 | # endif | |
591 | # include <string.h> | |
592 | #endif | |
0bd0bef6 | 593 | #ifdef HAVE_STRINGS_H |
b3076f16 | 594 | # include <strings.h> |
595 | #endif | |
0bd0bef6 | 596 | #ifdef HAVE_INTTYPES_H |
b3076f16 | 597 | # include <inttypes.h> |
a8b2ad8d | 598 | #endif |
0bd0bef6 | 599 | #ifdef HAVE_STDINT_H |
a8b2ad8d | 600 | # include <stdint.h> |
b3076f16 | 601 | #endif |
0bd0bef6 | 602 | #ifdef HAVE_UNISTD_H |
b3076f16 | 603 | # include <unistd.h> |
604 | #endif" | |
605 | ||
c6254516 | 606 | ac_header_list= |
db946ede | 607 | ac_subst_vars='am__EXEEXT_FALSE |
608 | am__EXEEXT_TRUE | |
609 | LTLIBOBJS | |
a8b2ad8d | 610 | LIBOBJS |
db946ede | 611 | PY_LIBS |
612 | PY_CFLAGS | |
613 | TRACK | |
614 | RX_LIBS | |
615 | RX_INCLUDES | |
616 | MY_SUBDIRS | |
617 | MODULE_OBJS | |
618 | DO_PYTHON_FALSE | |
619 | DO_PYTHON_TRUE | |
620 | pythonpath | |
621 | ALLOCA | |
622 | MAKER | |
623 | EGREP | |
624 | GREP | |
625 | CPP | |
626 | LN_S | |
627 | RANLIB | |
628 | CP | |
629 | am__fastdepCC_FALSE | |
630 | am__fastdepCC_TRUE | |
631 | CCDEPMODE | |
c6254516 | 632 | am__nodep |
db946ede | 633 | AMDEPBACKSLASH |
634 | AMDEP_FALSE | |
635 | AMDEP_TRUE | |
636 | am__quote | |
637 | am__include | |
638 | DEPDIR | |
639 | OBJEXT | |
640 | EXEEXT | |
641 | ac_ct_CC | |
642 | CPPFLAGS | |
643 | LDFLAGS | |
644 | CFLAGS | |
645 | CC | |
646 | MAINT | |
647 | MAINTAINER_MODE_FALSE | |
648 | MAINTAINER_MODE_TRUE | |
649 | am__untar | |
650 | am__tar | |
651 | AMTAR | |
652 | am__leading_dot | |
653 | SET_MAKE | |
654 | AWK | |
655 | mkdir_p | |
656 | MKDIR_P | |
657 | INSTALL_STRIP_PROGRAM | |
658 | STRIP | |
659 | install_sh | |
660 | MAKEINFO | |
661 | AUTOHEADER | |
662 | AUTOMAKE | |
663 | AUTOCONF | |
664 | ACLOCAL | |
665 | VERSION | |
666 | PACKAGE | |
667 | CYGPATH_W | |
668 | am__isrc | |
669 | INSTALL_DATA | |
670 | INSTALL_SCRIPT | |
671 | INSTALL_PROGRAM | |
672 | target_os | |
673 | target_vendor | |
674 | target_cpu | |
675 | target | |
676 | host_os | |
677 | host_vendor | |
678 | host_cpu | |
679 | host | |
680 | build_os | |
681 | build_vendor | |
682 | build_cpu | |
683 | build | |
684 | target_alias | |
685 | host_alias | |
686 | build_alias | |
687 | LIBS | |
688 | ECHO_T | |
689 | ECHO_N | |
690 | ECHO_C | |
691 | DEFS | |
692 | mandir | |
693 | localedir | |
694 | libdir | |
695 | psdir | |
696 | pdfdir | |
697 | dvidir | |
698 | htmldir | |
699 | infodir | |
700 | docdir | |
701 | oldincludedir | |
702 | includedir | |
703 | localstatedir | |
704 | sharedstatedir | |
705 | sysconfdir | |
706 | datadir | |
707 | datarootdir | |
708 | libexecdir | |
709 | sbindir | |
710 | bindir | |
711 | program_transform_name | |
712 | prefix | |
713 | exec_prefix | |
714 | PACKAGE_URL | |
715 | PACKAGE_BUGREPORT | |
716 | PACKAGE_STRING | |
717 | PACKAGE_VERSION | |
718 | PACKAGE_TARNAME | |
719 | PACKAGE_NAME | |
720 | PATH_SEPARATOR | |
721 | SHELL' | |
b3076f16 | 722 | ac_subst_files='' |
db946ede | 723 | ac_user_opts=' |
724 | enable_option_checking | |
725 | enable_maintainer_mode | |
726 | enable_dependency_tracking | |
727 | with_malloc | |
728 | with_protocol | |
729 | with_mail | |
730 | with_epoll | |
731 | with_kevent | |
732 | with_getopt | |
733 | enable_tokens | |
734 | enable_debug | |
735 | enable_modules | |
736 | enable_python | |
737 | with_tre | |
738 | with_coredumper | |
739 | with_ssl | |
740 | with_ldap | |
741 | ' | |
a8b2ad8d | 742 | ac_precious_vars='build_alias |
743 | host_alias | |
744 | target_alias | |
745 | CC | |
746 | CFLAGS | |
747 | LDFLAGS | |
0bd0bef6 | 748 | LIBS |
a8b2ad8d | 749 | CPPFLAGS |
0f6fe38c | 750 | CPP' |
a8b2ad8d | 751 | |
b3076f16 | 752 | |
753 | # Initialize some variables set by options. | |
754 | ac_init_help= | |
755 | ac_init_version=false | |
db946ede | 756 | ac_unrecognized_opts= |
757 | ac_unrecognized_sep= | |
b3076f16 | 758 | # The variables have the same names as the options, with |
759 | # dashes changed to underlines. | |
760 | cache_file=/dev/null | |
761 | exec_prefix=NONE | |
762 | no_create= | |
763 | no_recursion= | |
764 | prefix=NONE | |
765 | program_prefix=NONE | |
766 | program_suffix=NONE | |
767 | program_transform_name=s,x,x, | |
768 | silent= | |
769 | site= | |
770 | srcdir= | |
771 | verbose= | |
772 | x_includes=NONE | |
773 | x_libraries=NONE | |
774 | ||
775 | # Installation directory options. | |
776 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
777 | # and all the variables that are supposed to be based on exec_prefix | |
778 | # by default will actually change. | |
779 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
a8b2ad8d | 780 | # (The list follows the same order as the GNU Coding Standards.) |
b3076f16 | 781 | bindir='${exec_prefix}/bin' |
782 | sbindir='${exec_prefix}/sbin' | |
783 | libexecdir='${exec_prefix}/libexec' | |
a8b2ad8d | 784 | datarootdir='${prefix}/share' |
785 | datadir='${datarootdir}' | |
b3076f16 | 786 | sysconfdir='${prefix}/etc' |
787 | sharedstatedir='${prefix}/com' | |
788 | localstatedir='${prefix}/var' | |
b3076f16 | 789 | includedir='${prefix}/include' |
790 | oldincludedir='/usr/include' | |
a8b2ad8d | 791 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
792 | infodir='${datarootdir}/info' | |
793 | htmldir='${docdir}' | |
794 | dvidir='${docdir}' | |
795 | pdfdir='${docdir}' | |
796 | psdir='${docdir}' | |
797 | libdir='${exec_prefix}/lib' | |
798 | localedir='${datarootdir}/locale' | |
799 | mandir='${datarootdir}/man' | |
b3076f16 | 800 | |
801 | ac_prev= | |
a8b2ad8d | 802 | ac_dashdash= |
b3076f16 | 803 | for ac_option |
804 | do | |
805 | # If the previous option needs an argument, assign it. | |
806 | if test -n "$ac_prev"; then | |
a8b2ad8d | 807 | eval $ac_prev=\$ac_option |
b3076f16 | 808 | ac_prev= |
809 | continue | |
810 | fi | |
811 | ||
a8b2ad8d | 812 | case $ac_option in |
c6254516 R |
813 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
814 | *=) ac_optarg= ;; | |
815 | *) ac_optarg=yes ;; | |
a8b2ad8d | 816 | esac |
b3076f16 | 817 | |
818 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
819 | ||
a8b2ad8d | 820 | case $ac_dashdash$ac_option in |
821 | --) | |
822 | ac_dashdash=yes ;; | |
b3076f16 | 823 | |
824 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
825 | ac_prev=bindir ;; | |
826 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
827 | bindir=$ac_optarg ;; | |
828 | ||
829 | -build | --build | --buil | --bui | --bu) | |
830 | ac_prev=build_alias ;; | |
831 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
832 | build_alias=$ac_optarg ;; | |
833 | ||
834 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
835 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
836 | ac_prev=cache_file ;; | |
837 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
838 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
839 | cache_file=$ac_optarg ;; | |
840 | ||
841 | --config-cache | -C) | |
842 | cache_file=config.cache ;; | |
843 | ||
a8b2ad8d | 844 | -datadir | --datadir | --datadi | --datad) |
b3076f16 | 845 | ac_prev=datadir ;; |
a8b2ad8d | 846 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
b3076f16 | 847 | datadir=$ac_optarg ;; |
848 | ||
a8b2ad8d | 849 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
850 | | --dataroo | --dataro | --datar) | |
851 | ac_prev=datarootdir ;; | |
852 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
853 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
854 | datarootdir=$ac_optarg ;; | |
855 | ||
b3076f16 | 856 | -disable-* | --disable-*) |
db946ede | 857 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
b3076f16 | 858 | # Reject names that are not valid shell variable names. |
db946ede | 859 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
c6254516 | 860 | as_fn_error $? "invalid feature name: $ac_useropt" |
db946ede | 861 | ac_useropt_orig=$ac_useropt |
862 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
863 | case $ac_user_opts in | |
864 | *" | |
865 | "enable_$ac_useropt" | |
866 | "*) ;; | |
867 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
868 | ac_unrecognized_sep=', ';; | |
869 | esac | |
870 | eval enable_$ac_useropt=no ;; | |
a8b2ad8d | 871 | |
872 | -docdir | --docdir | --docdi | --doc | --do) | |
873 | ac_prev=docdir ;; | |
874 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
875 | docdir=$ac_optarg ;; | |
876 | ||
877 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
878 | ac_prev=dvidir ;; | |
879 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
880 | dvidir=$ac_optarg ;; | |
b3076f16 | 881 | |
882 | -enable-* | --enable-*) | |
db946ede | 883 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
b3076f16 | 884 | # Reject names that are not valid shell variable names. |
db946ede | 885 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
c6254516 | 886 | as_fn_error $? "invalid feature name: $ac_useropt" |
db946ede | 887 | ac_useropt_orig=$ac_useropt |
888 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
889 | case $ac_user_opts in | |
890 | *" | |
891 | "enable_$ac_useropt" | |
892 | "*) ;; | |
893 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
894 | ac_unrecognized_sep=', ';; | |
895 | esac | |
896 | eval enable_$ac_useropt=\$ac_optarg ;; | |
b3076f16 | 897 | |
898 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
899 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
900 | | --exec | --exe | --ex) | |
901 | ac_prev=exec_prefix ;; | |
902 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
903 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
904 | | --exec=* | --exe=* | --ex=*) | |
905 | exec_prefix=$ac_optarg ;; | |
906 | ||
907 | -gas | --gas | --ga | --g) | |
908 | # Obsolete; use --with-gas. | |
909 | with_gas=yes ;; | |
910 | ||
911 | -help | --help | --hel | --he | -h) | |
912 | ac_init_help=long ;; | |
913 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
914 | ac_init_help=recursive ;; | |
915 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
916 | ac_init_help=short ;; | |
917 | ||
918 | -host | --host | --hos | --ho) | |
919 | ac_prev=host_alias ;; | |
920 | -host=* | --host=* | --hos=* | --ho=*) | |
921 | host_alias=$ac_optarg ;; | |
922 | ||
a8b2ad8d | 923 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
924 | ac_prev=htmldir ;; | |
925 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
926 | | --ht=*) | |
927 | htmldir=$ac_optarg ;; | |
928 | ||
b3076f16 | 929 | -includedir | --includedir | --includedi | --included | --include \ |
930 | | --includ | --inclu | --incl | --inc) | |
931 | ac_prev=includedir ;; | |
932 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
933 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
934 | includedir=$ac_optarg ;; | |
935 | ||
936 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
937 | ac_prev=infodir ;; | |
938 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
939 | infodir=$ac_optarg ;; | |
940 | ||
941 | -libdir | --libdir | --libdi | --libd) | |
942 | ac_prev=libdir ;; | |
943 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
944 | libdir=$ac_optarg ;; | |
945 | ||
946 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
947 | | --libexe | --libex | --libe) | |
948 | ac_prev=libexecdir ;; | |
949 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
950 | | --libexe=* | --libex=* | --libe=*) | |
951 | libexecdir=$ac_optarg ;; | |
952 | ||
a8b2ad8d | 953 | -localedir | --localedir | --localedi | --localed | --locale) |
954 | ac_prev=localedir ;; | |
955 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
956 | localedir=$ac_optarg ;; | |
957 | ||
b3076f16 | 958 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
a8b2ad8d | 959 | | --localstate | --localstat | --localsta | --localst | --locals) |
b3076f16 | 960 | ac_prev=localstatedir ;; |
961 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
a8b2ad8d | 962 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
b3076f16 | 963 | localstatedir=$ac_optarg ;; |
964 | ||
965 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
966 | ac_prev=mandir ;; | |
967 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
968 | mandir=$ac_optarg ;; | |
969 | ||
970 | -nfp | --nfp | --nf) | |
971 | # Obsolete; use --without-fp. | |
972 | with_fp=no ;; | |
973 | ||
974 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
975 | | --no-cr | --no-c | -n) | |
976 | no_create=yes ;; | |
977 | ||
978 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
979 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
980 | no_recursion=yes ;; | |
981 | ||
982 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
983 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
984 | | --oldin | --oldi | --old | --ol | --o) | |
985 | ac_prev=oldincludedir ;; | |
986 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
987 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
988 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
989 | oldincludedir=$ac_optarg ;; | |
990 | ||
991 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
992 | ac_prev=prefix ;; | |
993 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
994 | prefix=$ac_optarg ;; | |
995 | ||
996 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
997 | | --program-pre | --program-pr | --program-p) | |
998 | ac_prev=program_prefix ;; | |
999 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1000 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1001 | program_prefix=$ac_optarg ;; | |
1002 | ||
1003 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1004 | | --program-suf | --program-su | --program-s) | |
1005 | ac_prev=program_suffix ;; | |
1006 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1007 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1008 | program_suffix=$ac_optarg ;; | |
1009 | ||
1010 | -program-transform-name | --program-transform-name \ | |
1011 | | --program-transform-nam | --program-transform-na \ | |
1012 | | --program-transform-n | --program-transform- \ | |
1013 | | --program-transform | --program-transfor \ | |
1014 | | --program-transfo | --program-transf \ | |
1015 | | --program-trans | --program-tran \ | |
1016 | | --progr-tra | --program-tr | --program-t) | |
1017 | ac_prev=program_transform_name ;; | |
1018 | -program-transform-name=* | --program-transform-name=* \ | |
1019 | | --program-transform-nam=* | --program-transform-na=* \ | |
1020 | | --program-transform-n=* | --program-transform-=* \ | |
1021 | | --program-transform=* | --program-transfor=* \ | |
1022 | | --program-transfo=* | --program-transf=* \ | |
1023 | | --program-trans=* | --program-tran=* \ | |
1024 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1025 | program_transform_name=$ac_optarg ;; | |
1026 | ||
a8b2ad8d | 1027 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1028 | ac_prev=pdfdir ;; | |
1029 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1030 | pdfdir=$ac_optarg ;; | |
1031 | ||
1032 | -psdir | --psdir | --psdi | --psd | --ps) | |
1033 | ac_prev=psdir ;; | |
1034 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1035 | psdir=$ac_optarg ;; | |
1036 | ||
b3076f16 | 1037 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1038 | | -silent | --silent | --silen | --sile | --sil) | |
1039 | silent=yes ;; | |
1040 | ||
1041 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1042 | ac_prev=sbindir ;; | |
1043 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1044 | | --sbi=* | --sb=*) | |
1045 | sbindir=$ac_optarg ;; | |
1046 | ||
1047 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1048 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1049 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1050 | | --sha | --sh) | |
1051 | ac_prev=sharedstatedir ;; | |
1052 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1053 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1054 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1055 | | --sha=* | --sh=*) | |
1056 | sharedstatedir=$ac_optarg ;; | |
1057 | ||
1058 | -site | --site | --sit) | |
1059 | ac_prev=site ;; | |
1060 | -site=* | --site=* | --sit=*) | |
1061 | site=$ac_optarg ;; | |
1062 | ||
1063 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1064 | ac_prev=srcdir ;; | |
1065 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1066 | srcdir=$ac_optarg ;; | |
1067 | ||
1068 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1069 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1070 | ac_prev=sysconfdir ;; | |
1071 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1072 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1073 | sysconfdir=$ac_optarg ;; | |
1074 | ||
1075 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1076 | ac_prev=target_alias ;; | |
1077 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1078 | target_alias=$ac_optarg ;; | |
1079 | ||
1080 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1081 | verbose=yes ;; | |
1082 | ||
1083 | -version | --version | --versio | --versi | --vers | -V) | |
1084 | ac_init_version=: ;; | |
1085 | ||
1086 | -with-* | --with-*) | |
db946ede | 1087 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
b3076f16 | 1088 | # Reject names that are not valid shell variable names. |
db946ede | 1089 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
c6254516 | 1090 | as_fn_error $? "invalid package name: $ac_useropt" |
db946ede | 1091 | ac_useropt_orig=$ac_useropt |
1092 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1093 | case $ac_user_opts in | |
1094 | *" | |
1095 | "with_$ac_useropt" | |
1096 | "*) ;; | |
1097 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1098 | ac_unrecognized_sep=', ';; | |
1099 | esac | |
1100 | eval with_$ac_useropt=\$ac_optarg ;; | |
b3076f16 | 1101 | |
1102 | -without-* | --without-*) | |
db946ede | 1103 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
b3076f16 | 1104 | # Reject names that are not valid shell variable names. |
db946ede | 1105 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
c6254516 | 1106 | as_fn_error $? "invalid package name: $ac_useropt" |
db946ede | 1107 | ac_useropt_orig=$ac_useropt |
1108 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1109 | case $ac_user_opts in | |
1110 | *" | |
1111 | "with_$ac_useropt" | |
1112 | "*) ;; | |
1113 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1114 | ac_unrecognized_sep=', ';; | |
1115 | esac | |
1116 | eval with_$ac_useropt=no ;; | |
b3076f16 | 1117 | |
1118 | --x) | |
1119 | # Obsolete; use --with-x. | |
1120 | with_x=yes ;; | |
1121 | ||
1122 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1123 | | --x-incl | --x-inc | --x-in | --x-i) | |
1124 | ac_prev=x_includes ;; | |
1125 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1126 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1127 | x_includes=$ac_optarg ;; | |
1128 | ||
1129 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1130 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1131 | ac_prev=x_libraries ;; | |
1132 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1133 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1134 | x_libraries=$ac_optarg ;; | |
1135 | ||
c6254516 R |
1136 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1137 | Try \`$0 --help' for more information" | |
b3076f16 | 1138 | ;; |
1139 | ||
1140 | *=*) | |
1141 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1142 | # Reject names that are not valid shell variable names. | |
db946ede | 1143 | case $ac_envvar in #( |
1144 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
c6254516 | 1145 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
db946ede | 1146 | esac |
a8b2ad8d | 1147 | eval $ac_envvar=\$ac_optarg |
b3076f16 | 1148 | export $ac_envvar ;; |
1149 | ||
1150 | *) | |
1151 | # FIXME: should be removed in autoconf 3.0. | |
db946ede | 1152 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
b3076f16 | 1153 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
db946ede | 1154 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
c6254516 | 1155 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
b3076f16 | 1156 | ;; |
1157 | ||
1158 | esac | |
1159 | done | |
1160 | ||
1161 | if test -n "$ac_prev"; then | |
1162 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
c6254516 | 1163 | as_fn_error $? "missing argument to $ac_option" |
db946ede | 1164 | fi |
1165 | ||
1166 | if test -n "$ac_unrecognized_opts"; then | |
1167 | case $enable_option_checking in | |
1168 | no) ;; | |
c6254516 | 1169 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
db946ede | 1170 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1171 | esac | |
b3076f16 | 1172 | fi |
1173 | ||
db946ede | 1174 | # Check all directory arguments for consistency. |
a8b2ad8d | 1175 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1176 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1177 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1178 | libdir localedir mandir | |
b3076f16 | 1179 | do |
a8b2ad8d | 1180 | eval ac_val=\$$ac_var |
db946ede | 1181 | # Remove trailing slashes. |
1182 | case $ac_val in | |
1183 | */ ) | |
1184 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1185 | eval $ac_var=\$ac_val;; | |
1186 | esac | |
1187 | # Be sure to have absolute directory names. | |
b3076f16 | 1188 | case $ac_val in |
a8b2ad8d | 1189 | [\\/$]* | ?:[\\/]* ) continue;; |
1190 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
b3076f16 | 1191 | esac |
c6254516 | 1192 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
b3076f16 | 1193 | done |
1194 | ||
1195 | # There might be people who depend on the old broken behavior: `$host' | |
1196 | # used to hold the argument of --host etc. | |
1197 | # FIXME: To remove some day. | |
1198 | build=$build_alias | |
1199 | host=$host_alias | |
1200 | target=$target_alias | |
1201 | ||
1202 | # FIXME: To remove some day. | |
1203 | if test "x$host_alias" != x; then | |
1204 | if test "x$build_alias" = x; then | |
1205 | cross_compiling=maybe | |
c6254516 R |
1206 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
1207 | If a cross compiler is detected then cross compile mode will be used" >&2 | |
b3076f16 | 1208 | elif test "x$build_alias" != "x$host_alias"; then |
1209 | cross_compiling=yes | |
1210 | fi | |
1211 | fi | |
1212 | ||
1213 | ac_tool_prefix= | |
1214 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1215 | ||
1216 | test "$silent" = yes && exec 6>/dev/null | |
1217 | ||
1218 | ||
a8b2ad8d | 1219 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1220 | ac_ls_di=`ls -di .` && | |
1221 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
c6254516 | 1222 | as_fn_error $? "working directory cannot be determined" |
a8b2ad8d | 1223 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
c6254516 | 1224 | as_fn_error $? "pwd does not report name of working directory" |
a8b2ad8d | 1225 | |
1226 | ||
b3076f16 | 1227 | # Find the source files, if location was not specified. |
1228 | if test -z "$srcdir"; then | |
1229 | ac_srcdir_defaulted=yes | |
a8b2ad8d | 1230 | # Try the directory containing this script, then the parent directory. |
db946ede | 1231 | ac_confdir=`$as_dirname -- "$as_myself" || |
1232 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1233 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1234 | X"$as_myself" : 'X\(//\)$' \| \ | |
1235 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1236 | $as_echo X"$as_myself" | | |
a8b2ad8d | 1237 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1238 | s//\1/ | |
1239 | q | |
1240 | } | |
1241 | /^X\(\/\/\)[^/].*/{ | |
1242 | s//\1/ | |
1243 | q | |
1244 | } | |
1245 | /^X\(\/\/\)$/{ | |
1246 | s//\1/ | |
1247 | q | |
1248 | } | |
1249 | /^X\(\/\).*/{ | |
1250 | s//\1/ | |
1251 | q | |
1252 | } | |
1253 | s/.*/./; q'` | |
b3076f16 | 1254 | srcdir=$ac_confdir |
a8b2ad8d | 1255 | if test ! -r "$srcdir/$ac_unique_file"; then |
b3076f16 | 1256 | srcdir=.. |
1257 | fi | |
1258 | else | |
1259 | ac_srcdir_defaulted=no | |
1260 | fi | |
a8b2ad8d | 1261 | if test ! -r "$srcdir/$ac_unique_file"; then |
1262 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
c6254516 | 1263 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
b3076f16 | 1264 | fi |
a8b2ad8d | 1265 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1266 | ac_abs_confdir=`( | |
c6254516 | 1267 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
a8b2ad8d | 1268 | pwd)` |
1269 | # When building in place, set srcdir=. | |
1270 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1271 | srcdir=. | |
1272 | fi | |
1273 | # Remove unnecessary trailing slashes from srcdir. | |
1274 | # Double slashes in file names in object file debugging info | |
1275 | # mess up M-x gdb in Emacs. | |
1276 | case $srcdir in | |
1277 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1278 | esac | |
1279 | for ac_var in $ac_precious_vars; do | |
1280 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1281 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1282 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1283 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1284 | done | |
b3076f16 | 1285 | |
1286 | # | |
1287 | # Report the --help message. | |
1288 | # | |
1289 | if test "$ac_init_help" = "long"; then | |
1290 | # Omit some internal or obsolete options to make the list less imposing. | |
1291 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1292 | cat <<_ACEOF | |
c6254516 | 1293 | \`configure' configures X3 1.8.1 to adapt to many kinds of systems. |
b3076f16 | 1294 | |
1295 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1296 | ||
1297 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1298 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1299 | ||
1300 | Defaults for the options are specified in brackets. | |
1301 | ||
1302 | Configuration: | |
1303 | -h, --help display this help and exit | |
1304 | --help=short display options specific to this package | |
1305 | --help=recursive display the short help of all the included packages | |
1306 | -V, --version display version information and exit | |
c6254516 | 1307 | -q, --quiet, --silent do not print \`checking ...' messages |
b3076f16 | 1308 | --cache-file=FILE cache test results in FILE [disabled] |
1309 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1310 | -n, --no-create do not create output files | |
1311 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1312 | ||
b3076f16 | 1313 | Installation directories: |
1314 | --prefix=PREFIX install architecture-independent files in PREFIX | |
db946ede | 1315 | [$ac_default_prefix] |
b3076f16 | 1316 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
db946ede | 1317 | [PREFIX] |
b3076f16 | 1318 | |
1319 | By default, \`make install' will install all the files in | |
1320 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1321 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1322 | for instance \`--prefix=\$HOME'. | |
1323 | ||
1324 | For better control, use the options below. | |
1325 | ||
1326 | Fine tuning of the installation directories: | |
db946ede | 1327 | --bindir=DIR user executables [EPREFIX/bin] |
1328 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1329 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1330 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1331 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1332 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1333 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1334 | --includedir=DIR C header files [PREFIX/include] | |
1335 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1336 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1337 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1338 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1339 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1340 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1341 | --docdir=DIR documentation root [DATAROOTDIR/doc/x3] | |
1342 | --htmldir=DIR html documentation [DOCDIR] | |
1343 | --dvidir=DIR dvi documentation [DOCDIR] | |
1344 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1345 | --psdir=DIR ps documentation [DOCDIR] | |
b3076f16 | 1346 | _ACEOF |
1347 | ||
1348 | cat <<\_ACEOF | |
1349 | ||
1350 | Program names: | |
1351 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1352 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1353 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1354 | ||
1355 | System types: | |
1356 | --build=BUILD configure for building on BUILD [guessed] | |
1357 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1358 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1359 | _ACEOF | |
1360 | fi | |
1361 | ||
1362 | if test -n "$ac_init_help"; then | |
1363 | case $ac_init_help in | |
c6254516 | 1364 | short | recursive ) echo "Configuration of X3 1.8.1:";; |
b3076f16 | 1365 | esac |
1366 | cat <<\_ACEOF | |
1367 | ||
1368 | Optional Features: | |
db946ede | 1369 | --disable-option-checking ignore unrecognized --enable/--with options |
b3076f16 | 1370 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1371 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
ec1a68c8 | 1372 | --enable-maintainer-mode enable make rules and dependencies not useful |
1373 | (and sometimes confusing) to the casual installer | |
1374 | --disable-dependency-tracking speeds up one-time build | |
1375 | --enable-dependency-tracking do not reject slow dependency extractors | |
b3076f16 | 1376 | --disable-tokens Disables tokenization of P10 protocol output |
1377 | (tokens required if linking to ircu 2.10.11) | |
1378 | --enable-debug Enables debugging behaviors | |
1379 | --enable-modules=list,of,modules Enable extra modules | |
2f65da8f | 1380 | --disable-python don't build the python plugin |
b3076f16 | 1381 | |
1382 | Optional Packages: | |
1383 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1384 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1385 | --with-malloc=type Enables use of a special malloc library; one of: | |
b8cb2a14 | 1386 | system (the default), boehm-gc, dmalloc, mpatrol, x3, slab |
b3076f16 | 1387 | --with-protocol=name Choose IRC dialect to support; one of: |
7827220c | 1388 | p10 (the default) |
1136f709 | 1389 | --with-mail=name How to send mail; one of: |
1390 | sendmail (the default), smtp | |
1391 | --without-epoll Disables the epoll_*() I/O backend | |
1392 | --without-kevent Disables the kevent() I/O backend | |
b3076f16 | 1393 | --without-getopt Disables building of the GNU getopt library |
a8b2ad8d | 1394 | --with-tre=PATH Base path to where libtre is installed, such that |
1395 | PATH/lib/libtre.so and PATH/include/tre/regex.h exist. | |
1396 | --with-coredumper=PATH Base path to where core dumper is installed, such | |
1397 | that PATH/lib/libcoredumper.so and | |
1398 | PATH/include/google/coredumper.h exist. | |
73d4cc91 | 1399 | --with-ssl=PATH Base path to where openssl is installed |
8da89711 | 1400 | --with-ldap=PATH Base path to where the ldap library and headers are installed, |
1401 | such that PATH/include/ldap.h and PATH/lib/libldap.so exist. | |
b3076f16 | 1402 | |
1403 | Some influential environment variables: | |
1404 | CC C compiler command | |
1405 | CFLAGS C compiler flags | |
1406 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1407 | nonstandard directory <lib dir> | |
0bd0bef6 | 1408 | LIBS libraries to pass to the linker, e.g. -l<library> |
c6254516 | 1409 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
a8b2ad8d | 1410 | you have headers in a nonstandard directory <include dir> |
b3076f16 | 1411 | CPP C preprocessor |
1412 | ||
1413 | Use these variables to override the choices made by `configure' or to help | |
1414 | it to find libraries and programs with nonstandard names/locations. | |
1415 | ||
63c95a47 | 1416 | Report bugs to <evilnet-devel@lists.sourceforge.net>. |
b3076f16 | 1417 | _ACEOF |
a8b2ad8d | 1418 | ac_status=$? |
b3076f16 | 1419 | fi |
1420 | ||
1421 | if test "$ac_init_help" = "recursive"; then | |
1422 | # If there are subdirs, report their specific --help. | |
b3076f16 | 1423 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
db946ede | 1424 | test -d "$ac_dir" || |
1425 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1426 | continue | |
b3076f16 | 1427 | ac_builddir=. |
1428 | ||
a8b2ad8d | 1429 | case "$ac_dir" in |
1430 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1431 | *) | |
db946ede | 1432 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
a8b2ad8d | 1433 | # A ".." for each directory in $ac_dir_suffix. |
db946ede | 1434 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
a8b2ad8d | 1435 | case $ac_top_builddir_sub in |
1436 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1437 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1438 | esac ;; | |
1439 | esac | |
1440 | ac_abs_top_builddir=$ac_pwd | |
1441 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1442 | # for backward compatibility: | |
1443 | ac_top_builddir=$ac_top_build_prefix | |
b3076f16 | 1444 | |
1445 | case $srcdir in | |
a8b2ad8d | 1446 | .) # We are building in place. |
b3076f16 | 1447 | ac_srcdir=. |
a8b2ad8d | 1448 | ac_top_srcdir=$ac_top_builddir_sub |
1449 | ac_abs_top_srcdir=$ac_pwd ;; | |
1450 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b3076f16 | 1451 | ac_srcdir=$srcdir$ac_dir_suffix; |
a8b2ad8d | 1452 | ac_top_srcdir=$srcdir |
1453 | ac_abs_top_srcdir=$srcdir ;; | |
1454 | *) # Relative name. | |
1455 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1456 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1457 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b3076f16 | 1458 | esac |
a8b2ad8d | 1459 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1460 | ||
1461 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1462 | # Check for guested configure. | |
1463 | if test -f "$ac_srcdir/configure.gnu"; then | |
1464 | echo && | |
1465 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1466 | elif test -f "$ac_srcdir/configure"; then | |
1467 | echo && | |
1468 | $SHELL "$ac_srcdir/configure" --help=recursive | |
b3076f16 | 1469 | else |
db946ede | 1470 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
a8b2ad8d | 1471 | fi || ac_status=$? |
1472 | cd "$ac_pwd" || { ac_status=$?; break; } | |
b3076f16 | 1473 | done |
1474 | fi | |
1475 | ||
a8b2ad8d | 1476 | test -n "$ac_init_help" && exit $ac_status |
b3076f16 | 1477 | if $ac_init_version; then |
1478 | cat <<\_ACEOF | |
c6254516 R |
1479 | X3 configure 1.8.1 |
1480 | generated by GNU Autoconf 2.68 | |
b3076f16 | 1481 | |
c6254516 | 1482 | Copyright (C) 2010 Free Software Foundation, Inc. |
b3076f16 | 1483 | This configure script is free software; the Free Software Foundation |
1484 | gives unlimited permission to copy, distribute and modify it. | |
1485 | _ACEOF | |
a8b2ad8d | 1486 | exit |
b3076f16 | 1487 | fi |
b3076f16 | 1488 | |
db946ede | 1489 | ## ------------------------ ## |
1490 | ## Autoconf initialization. ## | |
1491 | ## ------------------------ ## | |
b3076f16 | 1492 | |
db946ede | 1493 | # ac_fn_c_try_compile LINENO |
1494 | # -------------------------- | |
1495 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1496 | ac_fn_c_try_compile () | |
1497 | { | |
1498 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1499 | rm -f conftest.$ac_objext | |
1500 | if { { ac_try="$ac_compile" | |
1501 | case "(($ac_try" in | |
1502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1503 | *) ac_try_echo=$ac_try;; | |
1504 | esac | |
1505 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1506 | $as_echo "$ac_try_echo"; } >&5 | |
1507 | (eval "$ac_compile") 2>conftest.err | |
1508 | ac_status=$? | |
1509 | if test -s conftest.err; then | |
1510 | grep -v '^ *+' conftest.err >conftest.er1 | |
1511 | cat conftest.er1 >&5 | |
1512 | mv -f conftest.er1 conftest.err | |
1513 | fi | |
1514 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1515 | test $ac_status = 0; } && { | |
1516 | test -z "$ac_c_werror_flag" || | |
1517 | test ! -s conftest.err | |
1518 | } && test -s conftest.$ac_objext; then : | |
1519 | ac_retval=0 | |
1520 | else | |
1521 | $as_echo "$as_me: failed program was:" >&5 | |
1522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b3076f16 | 1523 | |
db946ede | 1524 | ac_retval=1 |
1525 | fi | |
c6254516 R |
1526 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1527 | as_fn_set_status $ac_retval | |
db946ede | 1528 | |
1529 | } # ac_fn_c_try_compile | |
1530 | ||
1531 | # ac_fn_c_try_cpp LINENO | |
1532 | # ---------------------- | |
1533 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1534 | ac_fn_c_try_cpp () | |
b3076f16 | 1535 | { |
db946ede | 1536 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1537 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1538 | case "(($ac_try" in | |
1539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1540 | *) ac_try_echo=$ac_try;; | |
1541 | esac | |
1542 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1543 | $as_echo "$ac_try_echo"; } >&5 | |
1544 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1545 | ac_status=$? | |
1546 | if test -s conftest.err; then | |
1547 | grep -v '^ *+' conftest.err >conftest.er1 | |
1548 | cat conftest.er1 >&5 | |
1549 | mv -f conftest.er1 conftest.err | |
1550 | fi | |
1551 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
c6254516 | 1552 | test $ac_status = 0; } > conftest.i && { |
db946ede | 1553 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1554 | test ! -s conftest.err | |
1555 | }; then : | |
1556 | ac_retval=0 | |
1557 | else | |
1558 | $as_echo "$as_me: failed program was:" >&5 | |
1559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b3076f16 | 1560 | |
db946ede | 1561 | ac_retval=1 |
1562 | fi | |
c6254516 R |
1563 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1564 | as_fn_set_status $ac_retval | |
b3076f16 | 1565 | |
db946ede | 1566 | } # ac_fn_c_try_cpp |
b3076f16 | 1567 | |
db946ede | 1568 | # ac_fn_c_try_link LINENO |
1569 | # ----------------------- | |
1570 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1571 | ac_fn_c_try_link () | |
1572 | { | |
1573 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1574 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1575 | if { { ac_try="$ac_link" | |
1576 | case "(($ac_try" in | |
1577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1578 | *) ac_try_echo=$ac_try;; | |
1579 | esac | |
1580 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1581 | $as_echo "$ac_try_echo"; } >&5 | |
1582 | (eval "$ac_link") 2>conftest.err | |
1583 | ac_status=$? | |
1584 | if test -s conftest.err; then | |
1585 | grep -v '^ *+' conftest.err >conftest.er1 | |
1586 | cat conftest.er1 >&5 | |
1587 | mv -f conftest.er1 conftest.err | |
1588 | fi | |
1589 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1590 | test $ac_status = 0; } && { | |
1591 | test -z "$ac_c_werror_flag" || | |
1592 | test ! -s conftest.err | |
1593 | } && test -s conftest$ac_exeext && { | |
1594 | test "$cross_compiling" = yes || | |
1595 | $as_test_x conftest$ac_exeext | |
1596 | }; then : | |
1597 | ac_retval=0 | |
1598 | else | |
1599 | $as_echo "$as_me: failed program was:" >&5 | |
1600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b3076f16 | 1601 | |
db946ede | 1602 | ac_retval=1 |
1603 | fi | |
1604 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1605 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1606 | # interfere with the next link command; also delete a directory that is | |
1607 | # left behind by Apple's compiler. We do this before executing the actions. | |
1608 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
c6254516 R |
1609 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1610 | as_fn_set_status $ac_retval | |
b3076f16 | 1611 | |
db946ede | 1612 | } # ac_fn_c_try_link |
b3076f16 | 1613 | |
db946ede | 1614 | # ac_fn_c_try_run LINENO |
1615 | # ---------------------- | |
1616 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1617 | # that executables *can* be run. | |
1618 | ac_fn_c_try_run () | |
1619 | { | |
1620 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1621 | if { { ac_try="$ac_link" | |
1622 | case "(($ac_try" in | |
1623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1624 | *) ac_try_echo=$ac_try;; | |
1625 | esac | |
1626 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1627 | $as_echo "$ac_try_echo"; } >&5 | |
1628 | (eval "$ac_link") 2>&5 | |
1629 | ac_status=$? | |
1630 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1631 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1632 | { { case "(($ac_try" in | |
1633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1634 | *) ac_try_echo=$ac_try;; | |
1635 | esac | |
1636 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1637 | $as_echo "$ac_try_echo"; } >&5 | |
1638 | (eval "$ac_try") 2>&5 | |
1639 | ac_status=$? | |
1640 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1641 | test $ac_status = 0; }; }; then : | |
1642 | ac_retval=0 | |
1643 | else | |
1644 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1645 | $as_echo "$as_me: failed program was:" >&5 | |
1646 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b3076f16 | 1647 | |
db946ede | 1648 | ac_retval=$ac_status |
1649 | fi | |
1650 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
c6254516 R |
1651 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1652 | as_fn_set_status $ac_retval | |
db946ede | 1653 | |
1654 | } # ac_fn_c_try_run | |
1655 | ||
1656 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1657 | # ------------------------------------------------------- | |
1658 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1659 | # the include files in INCLUDES and setting the cache variable VAR | |
1660 | # accordingly. | |
1661 | ac_fn_c_check_header_mongrel () | |
1662 | { | |
1663 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
c6254516 | 1664 | if eval \${$3+:} false; then : |
db946ede | 1665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1666 | $as_echo_n "checking for $2... " >&6; } | |
c6254516 | 1667 | if eval \${$3+:} false; then : |
db946ede | 1668 | $as_echo_n "(cached) " >&6 |
1669 | fi | |
1670 | eval ac_res=\$$3 | |
1671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1672 | $as_echo "$ac_res" >&6; } | |
1673 | else | |
1674 | # Is the header compilable? | |
1675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1676 | $as_echo_n "checking $2 usability... " >&6; } | |
1677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1678 | /* end confdefs.h. */ | |
1679 | $4 | |
1680 | #include <$2> | |
1681 | _ACEOF | |
1682 | if ac_fn_c_try_compile "$LINENO"; then : | |
1683 | ac_header_compiler=yes | |
1684 | else | |
1685 | ac_header_compiler=no | |
1686 | fi | |
1687 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1689 | $as_echo "$ac_header_compiler" >&6; } | |
1690 | ||
1691 | # Is the header present? | |
1692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1693 | $as_echo_n "checking $2 presence... " >&6; } | |
1694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1695 | /* end confdefs.h. */ | |
1696 | #include <$2> | |
1697 | _ACEOF | |
1698 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1699 | ac_header_preproc=yes | |
1700 | else | |
1701 | ac_header_preproc=no | |
1702 | fi | |
c6254516 | 1703 | rm -f conftest.err conftest.i conftest.$ac_ext |
db946ede | 1704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1705 | $as_echo "$ac_header_preproc" >&6; } | |
1706 | ||
1707 | # So? What about this header? | |
1708 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1709 | yes:no: ) | |
1710 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1711 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1712 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1713 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1714 | ;; | |
1715 | no:yes:* ) | |
1716 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1717 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1718 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1719 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1720 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1721 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1722 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1723 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1724 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1725 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
c6254516 | 1726 | ( $as_echo "## -------------------------------------------------- ## |
db946ede | 1727 | ## Report this to evilnet-devel@lists.sourceforge.net ## |
c6254516 | 1728 | ## -------------------------------------------------- ##" |
db946ede | 1729 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
1730 | ;; | |
1731 | esac | |
1732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1733 | $as_echo_n "checking for $2... " >&6; } | |
c6254516 | 1734 | if eval \${$3+:} false; then : |
db946ede | 1735 | $as_echo_n "(cached) " >&6 |
1736 | else | |
1737 | eval "$3=\$ac_header_compiler" | |
1738 | fi | |
1739 | eval ac_res=\$$3 | |
1740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1741 | $as_echo "$ac_res" >&6; } | |
1742 | fi | |
c6254516 | 1743 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
db946ede | 1744 | |
1745 | } # ac_fn_c_check_header_mongrel | |
1746 | ||
1747 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1748 | # ------------------------------------------------------- | |
1749 | # Tests whether HEADER exists and can be compiled using the include files in | |
1750 | # INCLUDES, setting the cache variable VAR accordingly. | |
1751 | ac_fn_c_check_header_compile () | |
1752 | { | |
1753 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1755 | $as_echo_n "checking for $2... " >&6; } | |
c6254516 | 1756 | if eval \${$3+:} false; then : |
db946ede | 1757 | $as_echo_n "(cached) " >&6 |
1758 | else | |
1759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1760 | /* end confdefs.h. */ | |
1761 | $4 | |
1762 | #include <$2> | |
1763 | _ACEOF | |
1764 | if ac_fn_c_try_compile "$LINENO"; then : | |
1765 | eval "$3=yes" | |
1766 | else | |
1767 | eval "$3=no" | |
1768 | fi | |
1769 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1770 | fi | |
1771 | eval ac_res=\$$3 | |
1772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1773 | $as_echo "$ac_res" >&6; } | |
c6254516 | 1774 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
db946ede | 1775 | |
1776 | } # ac_fn_c_check_header_compile | |
1777 | ||
1778 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | |
1779 | # ---------------------------------------------------- | |
1780 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
1781 | # INCLUDES, setting cache variable VAR accordingly. | |
1782 | ac_fn_c_check_member () | |
1783 | { | |
1784 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
1786 | $as_echo_n "checking for $2.$3... " >&6; } | |
c6254516 | 1787 | if eval \${$4+:} false; then : |
db946ede | 1788 | $as_echo_n "(cached) " >&6 |
1789 | else | |
1790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1791 | /* end confdefs.h. */ | |
1792 | $5 | |
1793 | int | |
1794 | main () | |
1795 | { | |
1796 | static $2 ac_aggr; | |
1797 | if (ac_aggr.$3) | |
1798 | return 0; | |
1799 | ; | |
1800 | return 0; | |
1801 | } | |
1802 | _ACEOF | |
1803 | if ac_fn_c_try_compile "$LINENO"; then : | |
1804 | eval "$4=yes" | |
1805 | else | |
1806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1807 | /* end confdefs.h. */ | |
1808 | $5 | |
1809 | int | |
1810 | main () | |
1811 | { | |
1812 | static $2 ac_aggr; | |
1813 | if (sizeof ac_aggr.$3) | |
1814 | return 0; | |
1815 | ; | |
1816 | return 0; | |
1817 | } | |
1818 | _ACEOF | |
1819 | if ac_fn_c_try_compile "$LINENO"; then : | |
1820 | eval "$4=yes" | |
1821 | else | |
1822 | eval "$4=no" | |
1823 | fi | |
1824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1825 | fi | |
1826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1827 | fi | |
1828 | eval ac_res=\$$4 | |
1829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1830 | $as_echo "$ac_res" >&6; } | |
c6254516 | 1831 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
db946ede | 1832 | |
1833 | } # ac_fn_c_check_member | |
1834 | ||
1835 | # ac_fn_c_check_func LINENO FUNC VAR | |
1836 | # ---------------------------------- | |
1837 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1838 | ac_fn_c_check_func () | |
1839 | { | |
1840 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1842 | $as_echo_n "checking for $2... " >&6; } | |
c6254516 | 1843 | if eval \${$3+:} false; then : |
db946ede | 1844 | $as_echo_n "(cached) " >&6 |
1845 | else | |
1846 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1847 | /* end confdefs.h. */ | |
1848 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1849 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1850 | #define $2 innocuous_$2 | |
1851 | ||
1852 | /* System header to define __stub macros and hopefully few prototypes, | |
1853 | which can conflict with char $2 (); below. | |
1854 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1855 | <limits.h> exists even on freestanding compilers. */ | |
1856 | ||
1857 | #ifdef __STDC__ | |
1858 | # include <limits.h> | |
1859 | #else | |
1860 | # include <assert.h> | |
1861 | #endif | |
1862 | ||
1863 | #undef $2 | |
1864 | ||
1865 | /* Override any GCC internal prototype to avoid an error. | |
1866 | Use char because int might match the return type of a GCC | |
1867 | builtin and then its argument prototype would still apply. */ | |
1868 | #ifdef __cplusplus | |
1869 | extern "C" | |
1870 | #endif | |
1871 | char $2 (); | |
1872 | /* The GNU C library defines this for functions which it implements | |
1873 | to always fail with ENOSYS. Some functions are actually named | |
1874 | something starting with __ and the normal name is an alias. */ | |
1875 | #if defined __stub_$2 || defined __stub___$2 | |
1876 | choke me | |
1877 | #endif | |
1878 | ||
1879 | int | |
1880 | main () | |
1881 | { | |
1882 | return $2 (); | |
1883 | ; | |
1884 | return 0; | |
1885 | } | |
1886 | _ACEOF | |
1887 | if ac_fn_c_try_link "$LINENO"; then : | |
1888 | eval "$3=yes" | |
1889 | else | |
1890 | eval "$3=no" | |
1891 | fi | |
1892 | rm -f core conftest.err conftest.$ac_objext \ | |
1893 | conftest$ac_exeext conftest.$ac_ext | |
1894 | fi | |
1895 | eval ac_res=\$$3 | |
1896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1897 | $as_echo "$ac_res" >&6; } | |
c6254516 | 1898 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
db946ede | 1899 | |
1900 | } # ac_fn_c_check_func | |
1901 | ||
1902 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
1903 | # ------------------------------------------- | |
1904 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1905 | # variable VAR accordingly. | |
1906 | ac_fn_c_check_type () | |
1907 | { | |
1908 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1910 | $as_echo_n "checking for $2... " >&6; } | |
c6254516 | 1911 | if eval \${$3+:} false; then : |
db946ede | 1912 | $as_echo_n "(cached) " >&6 |
1913 | else | |
1914 | eval "$3=no" | |
1915 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1916 | /* end confdefs.h. */ | |
1917 | $4 | |
1918 | int | |
1919 | main () | |
1920 | { | |
1921 | if (sizeof ($2)) | |
1922 | return 0; | |
1923 | ; | |
1924 | return 0; | |
1925 | } | |
1926 | _ACEOF | |
1927 | if ac_fn_c_try_compile "$LINENO"; then : | |
1928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1929 | /* end confdefs.h. */ | |
1930 | $4 | |
1931 | int | |
1932 | main () | |
1933 | { | |
1934 | if (sizeof (($2))) | |
1935 | return 0; | |
1936 | ; | |
1937 | return 0; | |
1938 | } | |
1939 | _ACEOF | |
1940 | if ac_fn_c_try_compile "$LINENO"; then : | |
1941 | ||
1942 | else | |
1943 | eval "$3=yes" | |
1944 | fi | |
1945 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1946 | fi | |
1947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1948 | fi | |
1949 | eval ac_res=\$$3 | |
1950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1951 | $as_echo "$ac_res" >&6; } | |
c6254516 | 1952 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
db946ede | 1953 | |
1954 | } # ac_fn_c_check_type | |
1955 | cat >config.log <<_ACEOF | |
1956 | This file contains any messages produced by compilers while | |
1957 | running configure, to aid debugging if configure makes a mistake. | |
1958 | ||
c6254516 R |
1959 | It was created by X3 $as_me 1.8.1, which was |
1960 | generated by GNU Autoconf 2.68. Invocation command line was | |
db946ede | 1961 | |
1962 | $ $0 $@ | |
1963 | ||
1964 | _ACEOF | |
1965 | exec 5>>config.log | |
1966 | { | |
1967 | cat <<_ASUNAME | |
1968 | ## --------- ## | |
1969 | ## Platform. ## | |
1970 | ## --------- ## | |
1971 | ||
1972 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1973 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1974 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1975 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1976 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1977 | ||
1978 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1979 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1980 | ||
1981 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1982 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1983 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1984 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1985 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1986 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1987 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1988 | ||
1989 | _ASUNAME | |
1990 | ||
1991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1992 | for as_dir in $PATH | |
1993 | do | |
1994 | IFS=$as_save_IFS | |
1995 | test -z "$as_dir" && as_dir=. | |
1996 | $as_echo "PATH: $as_dir" | |
1997 | done | |
1998 | IFS=$as_save_IFS | |
1999 | ||
2000 | } >&5 | |
2001 | ||
2002 | cat >&5 <<_ACEOF | |
b3076f16 | 2003 | |
2004 | ||
2005 | ## ----------- ## | |
2006 | ## Core tests. ## | |
2007 | ## ----------- ## | |
2008 | ||
2009 | _ACEOF | |
2010 | ||
2011 | ||
2012 | # Keep a trace of the command line. | |
2013 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2014 | # Strip out --silent because we don't want to record it for future runs. | |
2015 | # Also quote any args containing shell meta-characters. | |
2016 | # Make two passes to allow for proper duplicate-argument suppression. | |
2017 | ac_configure_args= | |
2018 | ac_configure_args0= | |
2019 | ac_configure_args1= | |
b3076f16 | 2020 | ac_must_keep_next=false |
2021 | for ac_pass in 1 2 | |
2022 | do | |
2023 | for ac_arg | |
2024 | do | |
2025 | case $ac_arg in | |
2026 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2027 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2028 | | -silent | --silent | --silen | --sile | --sil) | |
2029 | continue ;; | |
a8b2ad8d | 2030 | *\'*) |
db946ede | 2031 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
b3076f16 | 2032 | esac |
2033 | case $ac_pass in | |
db946ede | 2034 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
b3076f16 | 2035 | 2) |
db946ede | 2036 | as_fn_append ac_configure_args1 " '$ac_arg'" |
b3076f16 | 2037 | if test $ac_must_keep_next = true; then |
2038 | ac_must_keep_next=false # Got value, back to normal. | |
2039 | else | |
2040 | case $ac_arg in | |
2041 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2042 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2043 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2044 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2045 | case "$ac_configure_args0 " in | |
2046 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2047 | esac | |
2048 | ;; | |
2049 | -* ) ac_must_keep_next=true ;; | |
2050 | esac | |
2051 | fi | |
db946ede | 2052 | as_fn_append ac_configure_args " '$ac_arg'" |
b3076f16 | 2053 | ;; |
2054 | esac | |
2055 | done | |
2056 | done | |
db946ede | 2057 | { ac_configure_args0=; unset ac_configure_args0;} |
2058 | { ac_configure_args1=; unset ac_configure_args1;} | |
b3076f16 | 2059 | |
2060 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2061 | # config.log. We remove comments because anyway the quotes in there | |
2062 | # would cause problems or look ugly. | |
a8b2ad8d | 2063 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2064 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
b3076f16 | 2065 | trap 'exit_status=$? |
2066 | # Save into config.log some information that might help in debugging. | |
2067 | { | |
2068 | echo | |
2069 | ||
c6254516 | 2070 | $as_echo "## ---------------- ## |
b3076f16 | 2071 | ## Cache variables. ## |
c6254516 | 2072 | ## ---------------- ##" |
b3076f16 | 2073 | echo |
2074 | # The following way of writing the cache mishandles newlines in values, | |
a8b2ad8d | 2075 | ( |
2076 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2077 | eval ac_val=\$$ac_var | |
2078 | case $ac_val in #( | |
2079 | *${as_nl}*) | |
2080 | case $ac_var in #( | |
db946ede | 2081 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
2082 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
a8b2ad8d | 2083 | esac |
2084 | case $ac_var in #( | |
2085 | _ | IFS | as_nl) ;; #( | |
db946ede | 2086 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
2087 | *) { eval $ac_var=; unset $ac_var;} ;; | |
a8b2ad8d | 2088 | esac ;; |
2089 | esac | |
2090 | done | |
b3076f16 | 2091 | (set) 2>&1 | |
a8b2ad8d | 2092 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2093 | *${as_nl}ac_space=\ *) | |
b3076f16 | 2094 | sed -n \ |
a8b2ad8d | 2095 | "s/'\''/'\''\\\\'\'''\''/g; |
2096 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2097 | ;; #( | |
b3076f16 | 2098 | *) |
a8b2ad8d | 2099 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b3076f16 | 2100 | ;; |
a8b2ad8d | 2101 | esac | |
2102 | sort | |
2103 | ) | |
b3076f16 | 2104 | echo |
2105 | ||
c6254516 | 2106 | $as_echo "## ----------------- ## |
b3076f16 | 2107 | ## Output variables. ## |
c6254516 | 2108 | ## ----------------- ##" |
b3076f16 | 2109 | echo |
2110 | for ac_var in $ac_subst_vars | |
2111 | do | |
a8b2ad8d | 2112 | eval ac_val=\$$ac_var |
2113 | case $ac_val in | |
db946ede | 2114 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
a8b2ad8d | 2115 | esac |
db946ede | 2116 | $as_echo "$ac_var='\''$ac_val'\''" |
b3076f16 | 2117 | done | sort |
2118 | echo | |
2119 | ||
2120 | if test -n "$ac_subst_files"; then | |
c6254516 | 2121 | $as_echo "## ------------------- ## |
a8b2ad8d | 2122 | ## File substitutions. ## |
c6254516 | 2123 | ## ------------------- ##" |
b3076f16 | 2124 | echo |
2125 | for ac_var in $ac_subst_files | |
2126 | do | |
a8b2ad8d | 2127 | eval ac_val=\$$ac_var |
2128 | case $ac_val in | |
db946ede | 2129 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
a8b2ad8d | 2130 | esac |
db946ede | 2131 | $as_echo "$ac_var='\''$ac_val'\''" |
b3076f16 | 2132 | done | sort |
2133 | echo | |
2134 | fi | |
2135 | ||
2136 | if test -s confdefs.h; then | |
c6254516 | 2137 | $as_echo "## ----------- ## |
b3076f16 | 2138 | ## confdefs.h. ## |
c6254516 | 2139 | ## ----------- ##" |
b3076f16 | 2140 | echo |
a8b2ad8d | 2141 | cat confdefs.h |
b3076f16 | 2142 | echo |
2143 | fi | |
2144 | test "$ac_signal" != 0 && | |
db946ede | 2145 | $as_echo "$as_me: caught signal $ac_signal" |
2146 | $as_echo "$as_me: exit $exit_status" | |
b3076f16 | 2147 | } >&5 |
a8b2ad8d | 2148 | rm -f core *.core core.conftest.* && |
2149 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
b3076f16 | 2150 | exit $exit_status |
a8b2ad8d | 2151 | ' 0 |
b3076f16 | 2152 | for ac_signal in 1 2 13 15; do |
db946ede | 2153 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
b3076f16 | 2154 | done |
2155 | ac_signal=0 | |
2156 | ||
2157 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
a8b2ad8d | 2158 | rm -f -r conftest* confdefs.h |
b3076f16 | 2159 | |
db946ede | 2160 | $as_echo "/* confdefs.h */" > confdefs.h |
2161 | ||
b3076f16 | 2162 | # Predefined preprocessor variables. |
2163 | ||
2164 | cat >>confdefs.h <<_ACEOF | |
2165 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2166 | _ACEOF | |
2167 | ||
b3076f16 | 2168 | cat >>confdefs.h <<_ACEOF |
2169 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2170 | _ACEOF | |
2171 | ||
b3076f16 | 2172 | cat >>confdefs.h <<_ACEOF |
2173 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2174 | _ACEOF | |
2175 | ||
b3076f16 | 2176 | cat >>confdefs.h <<_ACEOF |
2177 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2178 | _ACEOF | |
2179 | ||
b3076f16 | 2180 | cat >>confdefs.h <<_ACEOF |
2181 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2182 | _ACEOF | |
2183 | ||
db946ede | 2184 | cat >>confdefs.h <<_ACEOF |
2185 | #define PACKAGE_URL "$PACKAGE_URL" | |
2186 | _ACEOF | |
2187 | ||
b3076f16 | 2188 | |
2189 | # Let the site file select an alternate cache file if it wants to. | |
db946ede | 2190 | # Prefer an explicitly selected file to automatically selected ones. |
2191 | ac_site_file1=NONE | |
2192 | ac_site_file2=NONE | |
a8b2ad8d | 2193 | if test -n "$CONFIG_SITE"; then |
c6254516 R |
2194 | # We do not want a PATH search for config.site. |
2195 | case $CONFIG_SITE in #(( | |
2196 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2197 | */*) ac_site_file1=$CONFIG_SITE;; | |
2198 | *) ac_site_file1=./$CONFIG_SITE;; | |
2199 | esac | |
a8b2ad8d | 2200 | elif test "x$prefix" != xNONE; then |
db946ede | 2201 | ac_site_file1=$prefix/share/config.site |
2202 | ac_site_file2=$prefix/etc/config.site | |
a8b2ad8d | 2203 | else |
db946ede | 2204 | ac_site_file1=$ac_default_prefix/share/config.site |
2205 | ac_site_file2=$ac_default_prefix/etc/config.site | |
b3076f16 | 2206 | fi |
db946ede | 2207 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
a8b2ad8d | 2208 | do |
db946ede | 2209 | test "x$ac_site_file" = xNONE && continue |
c6254516 | 2210 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
db946ede | 2211 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2212 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
b3076f16 | 2213 | sed 's/^/| /' "$ac_site_file" >&5 |
c6254516 R |
2214 | . "$ac_site_file" \ |
2215 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2216 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2217 | as_fn_error $? "failed to load site script $ac_site_file | |
2218 | See \`config.log' for more details" "$LINENO" 5; } | |
b3076f16 | 2219 | fi |
2220 | done | |
2221 | ||
2222 | if test -r "$cache_file"; then | |
c6254516 R |
2223 | # Some versions of bash will fail to source /dev/null (special files |
2224 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2225 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
db946ede | 2226 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2227 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
b3076f16 | 2228 | case $cache_file in |
a8b2ad8d | 2229 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2230 | *) . "./$cache_file";; | |
b3076f16 | 2231 | esac |
2232 | fi | |
2233 | else | |
db946ede | 2234 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2235 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
b3076f16 | 2236 | >$cache_file |
2237 | fi | |
2238 | ||
c6254516 R |
2239 | as_fn_append ac_header_list " stdlib.h" |
2240 | as_fn_append ac_header_list " unistd.h" | |
2241 | as_fn_append ac_header_list " sys/param.h" | |
b3076f16 | 2242 | # Check that the precious variables saved in the cache have kept the same |
2243 | # value. | |
2244 | ac_cache_corrupted=false | |
a8b2ad8d | 2245 | for ac_var in $ac_precious_vars; do |
b3076f16 | 2246 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2247 | eval ac_new_set=\$ac_env_${ac_var}_set | |
a8b2ad8d | 2248 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2249 | eval ac_new_val=\$ac_env_${ac_var}_value | |
b3076f16 | 2250 | case $ac_old_set,$ac_new_set in |
2251 | set,) | |
db946ede | 2252 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2253 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
b3076f16 | 2254 | ac_cache_corrupted=: ;; |
2255 | ,set) | |
db946ede | 2256 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2257 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
b3076f16 | 2258 | ac_cache_corrupted=: ;; |
2259 | ,);; | |
2260 | *) | |
2261 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
db946ede | 2262 | # differences in whitespace do not lead to failure. |
2263 | ac_old_val_w=`echo x $ac_old_val` | |
2264 | ac_new_val_w=`echo x $ac_new_val` | |
2265 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2266 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2267 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2268 | ac_cache_corrupted=: | |
2269 | else | |
2270 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2271 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2272 | eval $ac_var=\$ac_old_val | |
2273 | fi | |
2274 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2275 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2276 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2277 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
b3076f16 | 2278 | fi;; |
2279 | esac | |
2280 | # Pass precious variables to config.status. | |
2281 | if test "$ac_new_set" = set; then | |
2282 | case $ac_new_val in | |
db946ede | 2283 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
b3076f16 | 2284 | *) ac_arg=$ac_var=$ac_new_val ;; |
2285 | esac | |
2286 | case " $ac_configure_args " in | |
2287 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
db946ede | 2288 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
b3076f16 | 2289 | esac |
2290 | fi | |
2291 | done | |
2292 | if $ac_cache_corrupted; then | |
db946ede | 2293 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2294 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2295 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2296 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
c6254516 | 2297 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
b3076f16 | 2298 | fi |
db946ede | 2299 | ## -------------------- ## |
2300 | ## Main body of script. ## | |
2301 | ## -------------------- ## | |
b3076f16 | 2302 | |
a8b2ad8d | 2303 | ac_ext=c |
2304 | ac_cpp='$CPP $CPPFLAGS' | |
2305 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2306 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2307 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b3076f16 | 2308 | |
2309 | ||
ceafd592 | 2310 | CODENAME=X3 |
a8b2ad8d | 2311 | ac_config_headers="$ac_config_headers src/config.h" |
b3076f16 | 2312 | |
2313 | ||
2314 | ac_aux_dir= | |
a8b2ad8d | 2315 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
c6254516 R |
2316 | if test -f "$ac_dir/install-sh"; then |
2317 | ac_aux_dir=$ac_dir | |
2318 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2319 | break | |
2320 | elif test -f "$ac_dir/install.sh"; then | |
2321 | ac_aux_dir=$ac_dir | |
2322 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2323 | break | |
2324 | elif test -f "$ac_dir/shtool"; then | |
2325 | ac_aux_dir=$ac_dir | |
2326 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2327 | break | |
2328 | fi | |
b3076f16 | 2329 | done |
2330 | if test -z "$ac_aux_dir"; then | |
c6254516 | 2331 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
b3076f16 | 2332 | fi |
a8b2ad8d | 2333 | |
2334 | # These three variables are undocumented and unsupported, | |
2335 | # and are intended to be withdrawn in a future Autoconf release. | |
2336 | # They can cause serious problems if a builder's source tree is in a directory | |
2337 | # whose full name contains unusual characters. | |
2338 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2339 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2340 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2341 | ||
b3076f16 | 2342 | |
2343 | # Make sure we can run config.sub. | |
a8b2ad8d | 2344 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
c6254516 | 2345 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
b3076f16 | 2346 | |
db946ede | 2347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
2348 | $as_echo_n "checking build system type... " >&6; } | |
c6254516 | 2349 | if ${ac_cv_build+:} false; then : |
db946ede | 2350 | $as_echo_n "(cached) " >&6 |
b3076f16 | 2351 | else |
a8b2ad8d | 2352 | ac_build_alias=$build_alias |
2353 | test "x$ac_build_alias" = x && | |
2354 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2355 | test "x$ac_build_alias" = x && | |
c6254516 | 2356 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
a8b2ad8d | 2357 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
c6254516 | 2358 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
b3076f16 | 2359 | |
2360 | fi | |
db946ede | 2361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
2362 | $as_echo "$ac_cv_build" >&6; } | |
a8b2ad8d | 2363 | case $ac_cv_build in |
2364 | *-*-*) ;; | |
c6254516 | 2365 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
a8b2ad8d | 2366 | esac |
b3076f16 | 2367 | build=$ac_cv_build |
a8b2ad8d | 2368 | ac_save_IFS=$IFS; IFS='-' |
2369 | set x $ac_cv_build | |
2370 | shift | |
2371 | build_cpu=$1 | |
2372 | build_vendor=$2 | |
2373 | shift; shift | |
2374 | # Remember, the first character of IFS is used to create $*, | |
2375 | # except with old shells: | |
2376 | build_os=$* | |
2377 | IFS=$ac_save_IFS | |
2378 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2379 | ||
2380 | ||
db946ede | 2381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2382 | $as_echo_n "checking host system type... " >&6; } | |
c6254516 | 2383 | if ${ac_cv_host+:} false; then : |
db946ede | 2384 | $as_echo_n "(cached) " >&6 |
b3076f16 | 2385 | else |
a8b2ad8d | 2386 | if test "x$host_alias" = x; then |
2387 | ac_cv_host=$ac_cv_build | |
2388 | else | |
2389 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
c6254516 | 2390 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
a8b2ad8d | 2391 | fi |
b3076f16 | 2392 | |
2393 | fi | |
db946ede | 2394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2395 | $as_echo "$ac_cv_host" >&6; } | |
a8b2ad8d | 2396 | case $ac_cv_host in |
2397 | *-*-*) ;; | |
c6254516 | 2398 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
a8b2ad8d | 2399 | esac |
b3076f16 | 2400 | host=$ac_cv_host |
a8b2ad8d | 2401 | ac_save_IFS=$IFS; IFS='-' |
2402 | set x $ac_cv_host | |
2403 | shift | |
2404 | host_cpu=$1 | |
2405 | host_vendor=$2 | |
2406 | shift; shift | |
2407 | # Remember, the first character of IFS is used to create $*, | |
2408 | # except with old shells: | |
2409 | host_os=$* | |
2410 | IFS=$ac_save_IFS | |
2411 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2412 | ||
2413 | ||
db946ede | 2414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2415 | $as_echo_n "checking target system type... " >&6; } | |
c6254516 | 2416 | if ${ac_cv_target+:} false; then : |
db946ede | 2417 | $as_echo_n "(cached) " >&6 |
b3076f16 | 2418 | else |
a8b2ad8d | 2419 | if test "x$target_alias" = x; then |
2420 | ac_cv_target=$ac_cv_host | |
2421 | else | |
2422 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
c6254516 | 2423 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
a8b2ad8d | 2424 | fi |
b3076f16 | 2425 | |
2426 | fi | |
db946ede | 2427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2428 | $as_echo "$ac_cv_target" >&6; } | |
a8b2ad8d | 2429 | case $ac_cv_target in |
2430 | *-*-*) ;; | |
c6254516 | 2431 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
a8b2ad8d | 2432 | esac |
b3076f16 | 2433 | target=$ac_cv_target |
a8b2ad8d | 2434 | ac_save_IFS=$IFS; IFS='-' |
2435 | set x $ac_cv_target | |
2436 | shift | |
2437 | target_cpu=$1 | |
2438 | target_vendor=$2 | |
2439 | shift; shift | |
2440 | # Remember, the first character of IFS is used to create $*, | |
2441 | # except with old shells: | |
2442 | target_os=$* | |
2443 | IFS=$ac_save_IFS | |
2444 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
b3076f16 | 2445 | |
2446 | ||
2447 | # The aliases save the names the user supplied, while $host etc. | |
2448 | # will get canonicalized. | |
2449 | test -n "$target_alias" && | |
2450 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2451 | NONENONEs,x,x, && | |
2452 | program_prefix=${target_alias}- | |
db946ede | 2453 | am__api_version='1.11' |
2f65da8f | 2454 | |
b3076f16 | 2455 | # Find a good install program. We prefer a C program (faster), |
2456 | # so one script is as good as another. But avoid the broken or | |
2457 | # incompatible versions: | |
2458 | # SysV /etc/install, /usr/sbin/install | |
2459 | # SunOS /usr/etc/install | |
2460 | # IRIX /sbin/install | |
2461 | # AIX /bin/install | |
2462 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2463 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2464 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2465 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2466 | # OS/2's system install, which has a completely different semantic | |
2467 | # ./install, which can be erroneously created by make from ./install.sh. | |
db946ede | 2468 | # Reject install programs that cannot install multiple files. |
2469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2470 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
b3076f16 | 2471 | if test -z "$INSTALL"; then |
c6254516 | 2472 | if ${ac_cv_path_install+:} false; then : |
db946ede | 2473 | $as_echo_n "(cached) " >&6 |
b3076f16 | 2474 | else |
2475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2476 | for as_dir in $PATH | |
2477 | do | |
2478 | IFS=$as_save_IFS | |
2479 | test -z "$as_dir" && as_dir=. | |
db946ede | 2480 | # Account for people who put trailing slashes in PATH elements. |
2481 | case $as_dir/ in #(( | |
2482 | ./ | .// | /[cC]/* | \ | |
b3076f16 | 2483 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
db946ede | 2484 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
b3076f16 | 2485 | /usr/ucb/* ) ;; |
2486 | *) | |
2487 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2488 | # Don't use installbsd from OSF since it installs stuff as root | |
2489 | # by default. | |
2490 | for ac_prog in ginstall scoinst install; do | |
2491 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 2492 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
b3076f16 | 2493 | if test $ac_prog = install && |
2494 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2495 | # AIX install. It has an incompatible calling convention. | |
2496 | : | |
2497 | elif test $ac_prog = install && | |
2498 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2499 | # program-specific install script used by HP pwplus--don't use. | |
2500 | : | |
2501 | else | |
db946ede | 2502 | rm -rf conftest.one conftest.two conftest.dir |
2503 | echo one > conftest.one | |
2504 | echo two > conftest.two | |
2505 | mkdir conftest.dir | |
2506 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2507 | test -s conftest.one && test -s conftest.two && | |
2508 | test -s conftest.dir/conftest.one && | |
2509 | test -s conftest.dir/conftest.two | |
2510 | then | |
2511 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2512 | break 3 | |
2513 | fi | |
b3076f16 | 2514 | fi |
2515 | fi | |
2516 | done | |
2517 | done | |
2518 | ;; | |
2519 | esac | |
db946ede | 2520 | |
2521 | done | |
a8b2ad8d | 2522 | IFS=$as_save_IFS |
b3076f16 | 2523 | |
db946ede | 2524 | rm -rf conftest.one conftest.two conftest.dir |
b3076f16 | 2525 | |
2526 | fi | |
2527 | if test "${ac_cv_path_install+set}" = set; then | |
2528 | INSTALL=$ac_cv_path_install | |
2529 | else | |
a8b2ad8d | 2530 | # As a last resort, use the slow shell script. Don't cache a |
2531 | # value for INSTALL within a source directory, because that will | |
b3076f16 | 2532 | # break other packages using the cache if that directory is |
a8b2ad8d | 2533 | # removed, or if the value is a relative name. |
b3076f16 | 2534 | INSTALL=$ac_install_sh |
2535 | fi | |
2536 | fi | |
db946ede | 2537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2538 | $as_echo "$INSTALL" >&6; } | |
b3076f16 | 2539 | |
2540 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2541 | # It thinks the first close brace ends the variable substitution. | |
2542 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2543 | ||
2544 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2545 | ||
2546 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2547 | ||
db946ede | 2548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2549 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
b3076f16 | 2550 | # Just in case |
2551 | sleep 1 | |
ec1a68c8 | 2552 | echo timestamp > conftest.file |
db946ede | 2553 | # Reject unsafe characters in $srcdir or the absolute working directory |
2554 | # name. Accept space and tab only in the latter. | |
2555 | am_lf=' | |
2556 | ' | |
2557 | case `pwd` in | |
2558 | *[\\\"\#\$\&\'\`$am_lf]*) | |
c6254516 | 2559 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
db946ede | 2560 | esac |
2561 | case $srcdir in | |
2562 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
c6254516 | 2563 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
db946ede | 2564 | esac |
2565 | ||
b3076f16 | 2566 | # Do `set' in a subshell so we don't clobber the current shell's |
2567 | # arguments. Must try -L first in case configure is actually a | |
2568 | # symlink; some systems play weird games with the mod time of symlinks | |
2569 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2570 | # directory). | |
2571 | if ( | |
db946ede | 2572 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
b3076f16 | 2573 | if test "$*" = "X"; then |
2574 | # -L didn't work. | |
db946ede | 2575 | set X `ls -t "$srcdir/configure" conftest.file` |
b3076f16 | 2576 | fi |
ec1a68c8 | 2577 | rm -f conftest.file |
2578 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2579 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
b3076f16 | 2580 | |
2581 | # If neither matched, then we have a broken ls. This can happen | |
2582 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2583 | # broken ls alias from the environment. This has actually | |
2584 | # happened. Such a system could not be considered "sane". | |
c6254516 | 2585 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
db946ede | 2586 | alias in your environment" "$LINENO" 5 |
b3076f16 | 2587 | fi |
2588 | ||
ec1a68c8 | 2589 | test "$2" = conftest.file |
b3076f16 | 2590 | ) |
2591 | then | |
2592 | # Ok. | |
2593 | : | |
2594 | else | |
c6254516 | 2595 | as_fn_error $? "newly created file is older than distributed files! |
db946ede | 2596 | Check your system clock" "$LINENO" 5 |
b3076f16 | 2597 | fi |
db946ede | 2598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2599 | $as_echo "yes" >&6; } | |
b3076f16 | 2600 | test "$program_prefix" != NONE && |
a8b2ad8d | 2601 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
b3076f16 | 2602 | # Use a double $ so make ignores it. |
2603 | test "$program_suffix" != NONE && | |
a8b2ad8d | 2604 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
db946ede | 2605 | # Double any \ or $. |
b3076f16 | 2606 | # By default was `s,x,x', remove it if useless. |
db946ede | 2607 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2608 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
b3076f16 | 2609 | |
ec1a68c8 | 2610 | # expand $ac_aux_dir to an absolute path |
2611 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2612 | ||
db946ede | 2613 | if test x"${MISSING+set}" != xset; then |
2614 | case $am_aux_dir in | |
2615 | *\ * | *\ *) | |
2616 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2617 | *) | |
2618 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2619 | esac | |
2620 | fi | |
ec1a68c8 | 2621 | # Use eval to expand $SHELL |
2622 | if eval "$MISSING --run true"; then | |
2623 | am_missing_run="$MISSING --run " | |
2624 | else | |
2625 | am_missing_run= | |
db946ede | 2626 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
2627 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
ec1a68c8 | 2628 | fi |
2629 | ||
db946ede | 2630 | if test x"${install_sh}" != xset; then |
2631 | case $am_aux_dir in | |
2632 | *\ * | *\ *) | |
2633 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2634 | *) | |
2635 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2636 | esac | |
2637 | fi | |
2638 | ||
2639 | # Installed binaries are usually stripped using `strip' when the user | |
2640 | # run `make install-strip'. However `strip' might not be the right | |
2641 | # tool to use in cross-compilation environments, therefore Automake | |
2642 | # will honor the `STRIP' environment variable to overrule this program. | |
2643 | if test "$cross_compiling" != no; then | |
2644 | if test -n "$ac_tool_prefix"; then | |
2645 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2646 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2648 | $as_echo_n "checking for $ac_word... " >&6; } | |
c6254516 | 2649 | if ${ac_cv_prog_STRIP+:} false; then : |
db946ede | 2650 | $as_echo_n "(cached) " >&6 |
2f65da8f | 2651 | else |
db946ede | 2652 | if test -n "$STRIP"; then |
2653 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2654 | else | |
2655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2656 | for as_dir in $PATH | |
2657 | do | |
2658 | IFS=$as_save_IFS | |
2659 | test -z "$as_dir" && as_dir=. | |
2660 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2661 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2662 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2663 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2664 | break 2 | |
2665 | fi | |
2666 | done | |
2667 | done | |
2668 | IFS=$as_save_IFS | |
2669 | ||
2670 | fi | |
2671 | fi | |
2672 | STRIP=$ac_cv_prog_STRIP | |
2673 | if test -n "$STRIP"; then | |
2674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2675 | $as_echo "$STRIP" >&6; } | |
2676 | else | |
2677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2678 | $as_echo "no" >&6; } | |
2679 | fi | |
2680 | ||
2681 | ||
2682 | fi | |
2683 | if test -z "$ac_cv_prog_STRIP"; then | |
2684 | ac_ct_STRIP=$STRIP | |
2685 | # Extract the first word of "strip", so it can be a program name with args. | |
2686 | set dummy strip; ac_word=$2 | |
2687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2688 | $as_echo_n "checking for $ac_word... " >&6; } | |
c6254516 | 2689 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
db946ede | 2690 | $as_echo_n "(cached) " >&6 |
2691 | else | |
2692 | if test -n "$ac_ct_STRIP"; then | |
2693 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2694 | else | |
2695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2696 | for as_dir in $PATH | |
2697 | do | |
2698 | IFS=$as_save_IFS | |
2699 | test -z "$as_dir" && as_dir=. | |
2700 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2701 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2702 | ac_cv_prog_ac_ct_STRIP="strip" | |
2703 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2704 | break 2 | |
2705 | fi | |
2706 | done | |
2707 | done | |
2708 | IFS=$as_save_IFS | |
2709 | ||
2710 | fi | |
2711 | fi | |
2712 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2713 | if test -n "$ac_ct_STRIP"; then | |
2714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2715 | $as_echo "$ac_ct_STRIP" >&6; } | |
2716 | else | |
2717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2718 | $as_echo "no" >&6; } | |
2719 | fi | |
2720 | ||
2721 | if test "x$ac_ct_STRIP" = x; then | |
2722 | STRIP=":" | |
2723 | else | |
2724 | case $cross_compiling:$ac_tool_warned in | |
2725 | yes:) | |
2726 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2727 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2728 | ac_tool_warned=yes ;; | |
2729 | esac | |
2730 | STRIP=$ac_ct_STRIP | |
2731 | fi | |
2732 | else | |
2733 | STRIP="$ac_cv_prog_STRIP" | |
2734 | fi | |
2735 | ||
2736 | fi | |
2737 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2738 | ||
2739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
2740 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2741 | if test -z "$MKDIR_P"; then | |
c6254516 | 2742 | if ${ac_cv_path_mkdir+:} false; then : |
db946ede | 2743 | $as_echo_n "(cached) " >&6 |
2744 | else | |
2745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2746 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2747 | do | |
2f65da8f | 2748 | IFS=$as_save_IFS |
2749 | test -z "$as_dir" && as_dir=. | |
db946ede | 2750 | for ac_prog in mkdir gmkdir; do |
2f65da8f | 2751 | for ac_exec_ext in '' $ac_executable_extensions; do |
2752 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
2753 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2754 | 'mkdir (GNU coreutils) '* | \ | |
2755 | 'mkdir (coreutils) '* | \ | |
2756 | 'mkdir (fileutils) '4.1*) | |
2757 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2758 | break 3;; | |
2759 | esac | |
2760 | done | |
2761 | done | |
db946ede | 2762 | done |
2f65da8f | 2763 | IFS=$as_save_IFS |
2764 | ||
2765 | fi | |
2766 | ||
c6254516 | 2767 | test -d ./--version && rmdir ./--version |
2f65da8f | 2768 | if test "${ac_cv_path_mkdir+set}" = set; then |
2769 | MKDIR_P="$ac_cv_path_mkdir -p" | |
ec1a68c8 | 2770 | else |
2f65da8f | 2771 | # As a last resort, use the slow shell script. Don't cache a |
2772 | # value for MKDIR_P within a source directory, because that will | |
2773 | # break other packages using the cache if that directory is | |
2774 | # removed, or if the value is a relative name. | |
2f65da8f | 2775 | MKDIR_P="$ac_install_sh -d" |
ec1a68c8 | 2776 | fi |
2777 | fi | |
db946ede | 2778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
2779 | $as_echo "$MKDIR_P" >&6; } | |
2f65da8f | 2780 | |
2781 | mkdir_p="$MKDIR_P" | |
2782 | case $mkdir_p in | |
2783 | [\\/$]* | ?:[\\/]*) ;; | |
2784 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2785 | esac | |
ec1a68c8 | 2786 | |
2787 | for ac_prog in gawk mawk nawk awk | |
2788 | do | |
2789 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2790 | set dummy $ac_prog; ac_word=$2 | |
db946ede | 2791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2792 | $as_echo_n "checking for $ac_word... " >&6; } | |
c6254516 | 2793 | if ${ac_cv_prog_AWK+:} false; then : |
db946ede | 2794 | $as_echo_n "(cached) " >&6 |
ec1a68c8 | 2795 | else |
2796 | if test -n "$AWK"; then | |
2797 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2798 | else | |
2799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2800 | for as_dir in $PATH | |
2801 | do | |
2802 | IFS=$as_save_IFS | |
2803 | test -z "$as_dir" && as_dir=. | |
db946ede | 2804 | for ac_exec_ext in '' $ac_executable_extensions; do |
0bd0bef6 | 2805 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ec1a68c8 | 2806 | ac_cv_prog_AWK="$ac_prog" |
db946ede | 2807 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ec1a68c8 | 2808 | break 2 |
2809 | fi | |
2810 | done | |
db946ede | 2811 | done |
a8b2ad8d | 2812 | IFS=$as_save_IFS |
ec1a68c8 | 2813 | |
2814 | fi | |
2815 | fi | |
2816 | AWK=$ac_cv_prog_AWK | |
2817 | if test -n "$AWK"; then | |
db946ede | 2818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
2819 | $as_echo "$AWK" >&6; } | |
ec1a68c8 | 2820 | else |
db946ede | 2821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2822 | $as_echo "no" >&6; } | |
ec1a68c8 | 2823 | fi |
2824 | ||
a8b2ad8d | 2825 | |
ec1a68c8 | 2826 | test -n "$AWK" && break |
2827 | done | |
2828 | ||
db946ede | 2829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2830 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2831 | set x ${MAKE-make} | |
2832 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
c6254516 | 2833 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
db946ede | 2834 | $as_echo_n "(cached) " >&6 |
b3076f16 | 2835 | else |
2836 | cat >conftest.make <<\_ACEOF | |
a8b2ad8d | 2837 | SHELL = /bin/sh |
b3076f16 | 2838 | all: |
a8b2ad8d | 2839 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
b3076f16 | 2840 | _ACEOF |
c6254516 | 2841 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
a8b2ad8d | 2842 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2843 | *@@@%%%=?*=@@@%%%*) | |
2844 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2845 | *) | |
2846 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2847 | esac | |
b3076f16 | 2848 | rm -f conftest.make |
2849 | fi | |
a8b2ad8d | 2850 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
db946ede | 2851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2852 | $as_echo "yes" >&6; } | |
b3076f16 | 2853 | SET_MAKE= |
2854 | else | |
db946ede | 2855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2856 | $as_echo "no" >&6; } | |
b3076f16 | 2857 | SET_MAKE="MAKE=${MAKE-make}" |
2858 | fi | |
2859 | ||
ec1a68c8 | 2860 | rm -rf .tst 2>/dev/null |
2861 | mkdir .tst 2>/dev/null | |
2862 | if test -d .tst; then | |
2863 | am__leading_dot=. | |
2864 | else | |
2865 | am__leading_dot=_ | |
2866 | fi | |
2867 | rmdir .tst 2>/dev/null | |
b3076f16 | 2868 | |
2f65da8f | 2869 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2870 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2871 | # is not polluted with repeated "-I." | |
2872 | am__isrc=' -I$(srcdir)' | |
2873 | # test to see if srcdir already configured | |
2874 | if test -f $srcdir/config.status; then | |
c6254516 | 2875 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
2f65da8f | 2876 | fi |
b3076f16 | 2877 | fi |
2878 | ||
ec1a68c8 | 2879 | # test whether we have cygpath |
2880 | if test -z "$CYGPATH_W"; then | |
2881 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2882 | CYGPATH_W='cygpath -w' | |
2883 | else | |
2884 | CYGPATH_W=echo | |
2885 | fi | |
2886 | fi | |
2887 | ||
2888 | ||
2889 | # Define the identity of the package. | |
ceafd592 | 2890 | PACKAGE='x3' |
c6254516 | 2891 | VERSION='1.8.1' |
ec1a68c8 | 2892 | |
2893 | ||
b3076f16 | 2894 | cat >>confdefs.h <<_ACEOF |
2895 | #define PACKAGE "$PACKAGE" | |
2896 | _ACEOF | |
2897 | ||
2898 | ||
2899 | cat >>confdefs.h <<_ACEOF | |
2900 | #define VERSION "$VERSION" | |
2901 | _ACEOF | |
2902 | ||
ec1a68c8 | 2903 | # Some tools Automake needs. |
b3076f16 | 2904 | |
ec1a68c8 | 2905 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
b3076f16 | 2906 | |
ec1a68c8 | 2907 | |
2908 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2909 | ||
2910 | ||
2911 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2912 | ||
2913 | ||
2914 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2915 | ||
2916 | ||
2917 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2918 | ||
ec1a68c8 | 2919 | # We need awk for the "check" target. The system "awk" is bad on |
2920 | # some platforms. | |
c6254516 R |
2921 | # Always define AMTAR for backward compatibility. Yes, it's still used |
2922 | # in the wild :-( We should find a proper way to deprecate it ... | |
2923 | AMTAR='$${TAR-tar}' | |
ec1a68c8 | 2924 | |
c6254516 | 2925 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
ec1a68c8 | 2926 | |
2927 | ||
2928 | ||
2929 | ||
b3076f16 | 2930 | |
db946ede | 2931 | |
2932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
2933 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
a8b2ad8d | 2934 | # Check whether --enable-maintainer-mode was given. |
db946ede | 2935 | if test "${enable_maintainer_mode+set}" = set; then : |
a8b2ad8d | 2936 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
b3076f16 | 2937 | else |
2938 | USE_MAINTAINER_MODE=no | |
a8b2ad8d | 2939 | fi |
2940 | ||
db946ede | 2941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
2942 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
2f65da8f | 2943 | if test $USE_MAINTAINER_MODE = yes; then |
b3076f16 | 2944 | MAINTAINER_MODE_TRUE= |
2945 | MAINTAINER_MODE_FALSE='#' | |
2946 | else | |
2947 | MAINTAINER_MODE_TRUE='#' | |
2948 | MAINTAINER_MODE_FALSE= | |
2949 | fi | |
ec1a68c8 | 2950 | |
b3076f16 | 2951 | MAINT=$MAINTAINER_MODE_TRUE |
2952 | ||
2953 | ||
2954 | ||
ec1a68c8 | 2955 | DEPDIR="${am__leading_dot}deps" |
2956 | ||
a8b2ad8d | 2957 | ac_config_commands="$ac_config_commands depfiles" |
ec1a68c8 | 2958 | |
2959 | ||
2960 | am_make=${MAKE-make} | |
2961 | cat > confinc << 'END' | |
2962 | am__doit: | |
db946ede | 2963 | @echo this is the am__doit target |
ec1a68c8 | 2964 | .PHONY: am__doit |
2965 | END | |
2966 | # If we don't find an include directive, just comment out the code. | |
db946ede | 2967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
2968 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
ec1a68c8 | 2969 | am__include="#" |
2970 | am__quote= | |
2971 | _am_result=none | |
2972 | # First try GNU make style include. | |
2973 | echo "include confinc" > confmf | |
db946ede | 2974 | # Ignore all kinds of additional output from `make'. |
2975 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
2976 | *the\ am__doit\ target*) | |
2977 | am__include=include | |
2978 | am__quote= | |
2979 | _am_result=GNU | |
2980 | ;; | |
2981 | esac | |
ec1a68c8 | 2982 | # Now try BSD make style include. |
2983 | if test "$am__include" = "#"; then | |
2984 | echo '.include "confinc"' > confmf | |
db946ede | 2985 | case `$am_make -s -f confmf 2> /dev/null` in #( |
2986 | *the\ am__doit\ target*) | |
2987 | am__include=.include | |
2988 | am__quote="\"" | |
2989 | _am_result=BSD | |
2990 | ;; | |
2991 | esac | |
ec1a68c8 | 2992 | fi |
2993 | ||
2994 | ||
db946ede | 2995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
2996 | $as_echo "$_am_result" >&6; } | |
ec1a68c8 | 2997 | rm -f confinc confmf |
2998 | ||
a8b2ad8d | 2999 | # Check whether --enable-dependency-tracking was given. |
db946ede | 3000 | if test "${enable_dependency_tracking+set}" = set; then : |
a8b2ad8d | 3001 | enableval=$enable_dependency_tracking; |
3002 | fi | |
ec1a68c8 | 3003 | |
ec1a68c8 | 3004 | if test "x$enable_dependency_tracking" != xno; then |
3005 | am_depcomp="$ac_aux_dir/depcomp" | |
3006 | AMDEPBACKSLASH='\' | |
c6254516 | 3007 | am__nodep='_no' |
ec1a68c8 | 3008 | fi |
2f65da8f | 3009 | if test "x$enable_dependency_tracking" != xno; then |
ec1a68c8 | 3010 | AMDEP_TRUE= |
3011 | AMDEP_FALSE='#' | |
3012 | else | |
3013 | AMDEP_TRUE='#' | |
3014 | AMDEP_FALSE= | |
3015 | fi | |
3016 | ||
3017 | ||
b3076f16 | 3018 | ac_ext=c |
3019 | ac_cpp='$CPP $CPPFLAGS' | |
3020 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3021 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3022 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3023 | if test -n "$ac_tool_prefix"; then | |
3024 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3025 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
db946ede | 3026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3027 | $as_echo_n "checking for $ac_word... " >&6; } | |
c6254516 | 3028 | if ${ac_cv_prog_CC+:} false; then : |
db946ede | 3029 | $as_echo_n "(cached) " >&6 |
b3076f16 | 3030 | else |
3031 | if test -n "$CC"; then | |
3032 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3033 | else | |
3034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3035 | for as_dir in $PATH | |
3036 | do | |
3037 | IFS=$as_save_IFS | |
3038 | test -z "$as_dir" && as_dir=. | |
db946ede | 3039 | for ac_exec_ext in '' $ac_executable_extensions; do |
0bd0bef6 | 3040 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 3041 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
db946ede | 3042 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b3076f16 | 3043 | break 2 |
3044 | fi | |
3045 | done | |
db946ede | 3046 | done |
a8b2ad8d | 3047 | IFS=$as_save_IFS |
b3076f16 | 3048 | |
3049 | fi | |
3050 | fi | |
3051 | CC=$ac_cv_prog_CC | |
3052 | if test -n "$CC"; then | |
db946ede | 3053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3054 | $as_echo "$CC" >&6; } | |
b3076f16 | 3055 | else |
db946ede | 3056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3057 | $as_echo "no" >&6; } | |
b3076f16 | 3058 | fi |
3059 | ||
a8b2ad8d | 3060 | |
b3076f16 | 3061 | fi |
3062 | if test -z "$ac_cv_prog_CC"; then | |
3063 | ac_ct_CC=$CC | |
3064 | # Extract the first word of "gcc", so it can be a program name with args. | |
3065 | set dummy gcc; ac_word=$2 | |
db946ede | 3066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3067 | $as_echo_n "checking for $ac_word... " >&6; } | |
c6254516 | 3068 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
db946ede | 3069 | $as_echo_n "(cached) " >&6 |
b3076f16 | 3070 | else |
3071 | if test -n "$ac_ct_CC"; then | |
3072 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3073 | else | |
3074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3075 | for as_dir in $PATH | |
3076 | do | |
3077 | IFS=$as_save_IFS | |
3078 | test -z "$as_dir" && as_dir=. | |
db946ede | 3079 | for ac_exec_ext in '' $ac_executable_extensions; do |
0bd0bef6 | 3080 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 3081 | ac_cv_prog_ac_ct_CC="gcc" |
db946ede | 3082 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b3076f16 | 3083 | break 2 |
3084 | fi | |
3085 | done | |
db946ede | 3086 | done |
a8b2ad8d | 3087 | IFS=$as_save_IFS |
b3076f16 | 3088 | |
3089 | fi | |
3090 | fi | |
3091 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3092 | if test -n "$ac_ct_CC"; then | |
db946ede | 3093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3094 | $as_echo "$ac_ct_CC" >&6; } | |
b3076f16 | 3095 | else |
db946ede | 3096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3097 | $as_echo "no" >&6; } | |
b3076f16 | 3098 | fi |
3099 | ||
a8b2ad8d | 3100 | if test "x$ac_ct_CC" = x; then |
3101 | CC="" | |
3102 | else | |
3103 | case $cross_compiling:$ac_tool_warned in | |
3104 | yes:) | |
db946ede | 3105 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3106 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
a8b2ad8d | 3107 | ac_tool_warned=yes ;; |
3108 | esac | |
3109 | CC=$ac_ct_CC | |
3110 | fi | |
b3076f16 | 3111 | else |
3112 | CC="$ac_cv_prog_CC" | |
3113 | fi | |
3114 | ||
3115 | if test -z "$CC"; then | |
a8b2ad8d | 3116 | if test -n "$ac_tool_prefix"; then |
3117 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
b3076f16 | 3118 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
db946ede | 3119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3120 | $as_echo_n "checking for $ac_word... " >&6; } | |
c6254516 | 3121 | if ${ac_cv_prog_CC+:} false; then : |
db946ede | 3122 | $as_echo_n "(cached) " >&6 |
b3076f16 | 3123 | else |
3124 | if test -n "$CC"; then | |
3125 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3126 | else | |
3127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3128 | for as_dir in $PATH | |
3129 | do | |
3130 | IFS=$as_save_IFS | |
3131 | test -z "$as_dir" && as_dir=. | |
db946ede | 3132 | for ac_exec_ext in '' $ac_executable_extensions; do |
0bd0bef6 | 3133 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 3134 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
db946ede | 3135 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b3076f16 | 3136 | break 2 |
3137 | fi | |
3138 | done | |
db946ede | 3139 | done |
a8b2ad8d | 3140 | IFS=$as_save_IFS |
b3076f16 | 3141 | |
3142 | fi | |
3143 | fi | |
3144 | CC=$ac_cv_prog_CC | |
3145 | if test -n "$CC"; then | |
db946ede | 3146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3147 | $as_echo "$CC" >&6; } | |
b3076f16 | 3148 | else |
db946ede | 3149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3150 | $as_echo "no" >&6; } | |
b3076f16 | 3151 | fi |
3152 | ||
b3076f16 | 3153 | |
a8b2ad8d | 3154 | fi |
b3076f16 | 3155 | fi |
3156 | if test -z "$CC"; then | |
3157 | # Extract the first word of "cc", so it can be a program name with args. | |
3158 | set dummy cc; ac_word=$2 | |
db946ede | 3159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3160 | $as_echo_n "checking for $ac_word... " >&6; } | |
c6254516 | 3161 | if ${ac_cv_prog_CC+:} false; then : |
db946ede | 3162 | $as_echo_n "(cached) " >&6 |
b3076f16 | 3163 | else |
3164 | if test -n "$CC"; then | |
3165 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3166 | else | |
3167 | ac_prog_rejected=no | |
3168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3169 | for as_dir in $PATH | |
3170 | do | |
3171 | IFS=$as_save_IFS | |
3172 | test -z "$as_dir" && as_dir=. | |
db946ede | 3173 | for ac_exec_ext in '' $ac_executable_extensions; do |
0bd0bef6 | 3174 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 3175 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3176 | ac_prog_rejected=yes | |
3177 | continue | |
3178 | fi | |
3179 | ac_cv_prog_CC="cc" | |
db946ede | 3180 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b3076f16 | 3181 | break 2 |
3182 | fi | |
3183 | done | |
db946ede | 3184 | done |
a8b2ad8d | 3185 | IFS=$as_save_IFS |
b3076f16 | 3186 | |
3187 | if test $ac_prog_rejected = yes; then | |
3188 | # We found a bogon in the path, so make sure we never use it. | |
3189 | set dummy $ac_cv_prog_CC | |
3190 | shift | |
3191 | if test $# != 0; then | |
3192 | # We chose a different compiler from the bogus one. | |
3193 | # However, it has the same basename, so the bogon will be chosen | |
3194 | # first if we set CC to just the basename; use the full file name. | |
3195 | shift | |
3196 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3197 | fi | |
3198 | fi | |
3199 | fi | |
3200 | fi | |
3201 | CC=$ac_cv_prog_CC | |
3202 | if test -n "$CC"; then | |
db946ede | 3203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3204 | $as_echo "$CC" >&6; } | |
b3076f16 | 3205 | else |
db946ede | 3206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3207 | $as_echo "no" >&6; } | |
b3076f16 | 3208 | fi |
3209 | ||
a8b2ad8d | 3210 | |
b3076f16 | 3211 | fi |
3212 | if test -z "$CC"; then | |
3213 | if test -n "$ac_tool_prefix"; then | |
a8b2ad8d | 3214 | for ac_prog in cl.exe |
b3076f16 | 3215 | do |
3216 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3217 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
db946ede | 3218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3219 | $as_echo_n "checking for $ac_word... " >&6; } | |
c6254516 | 3220 | if ${ac_cv_prog_CC+:} false; then : |
db946ede | 3221 | $as_echo_n "(cached) " >&6 |
b3076f16 | 3222 | else |
3223 | if test -n "$CC"; then | |
3224 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3225 | else | |
3226 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3227 | for as_dir in $PATH | |
3228 | do | |
3229 | IFS=$as_save_IFS | |
3230 | test -z "$as_dir" && as_dir=. | |
db946ede | 3231 | for ac_exec_ext in '' $ac_executable_extensions; do |
0bd0bef6 | 3232 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 3233 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
db946ede | 3234 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b3076f16 | 3235 | break 2 |
3236 | fi | |
3237 | done | |
db946ede | 3238 | done |
a8b2ad8d | 3239 | IFS=$as_save_IFS |
b3076f16 | 3240 | |
3241 | fi | |
3242 | fi | |
3243 | CC=$ac_cv_prog_CC | |
3244 | if test -n "$CC"; then | |
db946ede | 3245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3246 | $as_echo "$CC" >&6; } | |
b3076f16 | 3247 | else |
db946ede | 3248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3249 | $as_echo "no" >&6; } | |
b3076f16 | 3250 | fi |
3251 | ||
a8b2ad8d | 3252 | |
b3076f16 | 3253 | test -n "$CC" && break |
3254 | done | |
3255 | fi | |
3256 | if test -z "$CC"; then | |
3257 | ac_ct_CC=$CC | |
a8b2ad8d | 3258 | for ac_prog in cl.exe |
b3076f16 | 3259 | do |
3260 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3261 | set dummy $ac_prog; ac_word=$2 | |
db946ede | 3262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3263 | $as_echo_n "checking for $ac_word... " >&6; } | |
c6254516 | 3264 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
db946ede | 3265 | $as_echo_n "(cached) " >&6 |
b3076f16 | 3266 | else |
3267 | if test -n "$ac_ct_CC"; then | |
3268 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3269 | else | |
3270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3271 | for as_dir in $PATH | |
3272 | do | |
3273 | IFS=$as_save_IFS | |
3274 | test -z "$as_dir" && as_dir=. | |
db946ede | 3275 | for ac_exec_ext in '' $ac_executable_extensions; do |
0bd0bef6 | 3276 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 3277 | ac_cv_prog_ac_ct_CC="$ac_prog" |
db946ede | 3278 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b3076f16 | 3279 | break 2 |
3280 | fi | |
3281 | done | |
db946ede | 3282 | done |
a8b2ad8d | 3283 | IFS=$as_save_IFS |
b3076f16 | 3284 | |
3285 | fi | |
3286 | fi | |
3287 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3288 | if test -n "$ac_ct_CC"; then | |
db946ede | 3289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3290 | $as_echo "$ac_ct_CC" >&6; } | |
b3076f16 | 3291 | else |
db946ede | 3292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3293 | $as_echo "no" >&6; } | |
b3076f16 | 3294 | fi |
3295 | ||
a8b2ad8d | 3296 | |
b3076f16 | 3297 | test -n "$ac_ct_CC" && break |
3298 | done | |
3299 | ||
a8b2ad8d | 3300 | if test "x$ac_ct_CC" = x; then |
3301 | CC="" | |
3302 | else | |
3303 | case $cross_compiling:$ac_tool_warned in | |
3304 | yes:) | |
db946ede | 3305 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3306 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
a8b2ad8d | 3307 | ac_tool_warned=yes ;; |
3308 | esac | |
3309 | CC=$ac_ct_CC | |
3310 | fi | |
b3076f16 | 3311 | fi |
3312 | ||
3313 | fi | |
3314 | ||
3315 | ||
db946ede | 3316 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3317 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
c6254516 R |
3318 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3319 | See \`config.log' for more details" "$LINENO" 5; } | |
b3076f16 | 3320 | |
3321 | # Provide some information about the compiler. | |
db946ede | 3322 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3323 | set X $ac_compile | |
3324 | ac_compiler=$2 | |
3325 | for ac_option in --version -v -V -qversion; do | |
3326 | { { ac_try="$ac_compiler $ac_option >&5" | |
a8b2ad8d | 3327 | case "(($ac_try" in |
3328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3329 | *) ac_try_echo=$ac_try;; | |
3330 | esac | |
db946ede | 3331 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3332 | $as_echo "$ac_try_echo"; } >&5 | |
3333 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
b3076f16 | 3334 | ac_status=$? |
db946ede | 3335 | if test -s conftest.err; then |
3336 | sed '10a\ | |
3337 | ... rest of stderr output deleted ... | |
3338 | 10q' conftest.err >conftest.er1 | |
3339 | cat conftest.er1 >&5 | |
db946ede | 3340 | fi |
c6254516 | 3341 | rm -f conftest.er1 conftest.err |
db946ede | 3342 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3343 | test $ac_status = 0; } | |
3344 | done | |
b3076f16 | 3345 | |
db946ede | 3346 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3076f16 | 3347 | /* end confdefs.h. */ |
c6254516 | 3348 | |
b3076f16 | 3349 | int |
3350 | main () | |
3351 | { | |
3352 | ||
3353 | ; | |
3354 | return 0; | |
3355 | } | |
3356 | _ACEOF | |
3357 | ac_clean_files_save=$ac_clean_files | |
c6254516 | 3358 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
b3076f16 | 3359 | # Try to create an executable without -o first, disregard a.out. |
3360 | # It will help us diagnose broken compilers, and finding out an intuition | |
3361 | # of exeext. | |
c6254516 R |
3362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3363 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
db946ede | 3364 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3365 | ||
3366 | # The possible output files: | |
3367 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3368 | ||
a8b2ad8d | 3369 | ac_rmfiles= |
3370 | for ac_file in $ac_files | |
3371 | do | |
3372 | case $ac_file in | |
db946ede | 3373 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
a8b2ad8d | 3374 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3375 | esac | |
3376 | done | |
3377 | rm -f $ac_rmfiles | |
3378 | ||
db946ede | 3379 | if { { ac_try="$ac_link_default" |
a8b2ad8d | 3380 | case "(($ac_try" in |
3381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3382 | *) ac_try_echo=$ac_try;; | |
3383 | esac | |
db946ede | 3384 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3385 | $as_echo "$ac_try_echo"; } >&5 | |
a8b2ad8d | 3386 | (eval "$ac_link_default") 2>&5 |
b3076f16 | 3387 | ac_status=$? |
db946ede | 3388 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3389 | test $ac_status = 0; }; then : | |
a8b2ad8d | 3390 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3391 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3392 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3393 | # so that the user can short-circuit this test for compilers unknown to | |
3394 | # Autoconf. | |
0bd0bef6 | 3395 | for ac_file in $ac_files '' |
b3076f16 | 3396 | do |
3397 | test -f "$ac_file" || continue | |
3398 | case $ac_file in | |
db946ede | 3399 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
b3076f16 | 3400 | ;; |
3401 | [ab].out ) | |
3402 | # We found the default executable, but exeext='' is most | |
3403 | # certainly right. | |
3404 | break;; | |
3405 | *.* ) | |
db946ede | 3406 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
a8b2ad8d | 3407 | then :; else |
3408 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3409 | fi | |
3410 | # We set ac_cv_exeext here because the later test for it is not | |
3411 | # safe: cross compilers may not add the suffix if given an `-o' | |
3412 | # argument, so we may need to know it at that point already. | |
3413 | # Even if this section looks crufty: it has the advantage of | |
3414 | # actually working. | |
b3076f16 | 3415 | break;; |
3416 | * ) | |
3417 | break;; | |
3418 | esac | |
3419 | done | |
a8b2ad8d | 3420 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3421 | ||
b3076f16 | 3422 | else |
0bd0bef6 | 3423 | ac_file='' |
3424 | fi | |
db946ede | 3425 | if test -z "$ac_file"; then : |
c6254516 R |
3426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3427 | $as_echo "no" >&6; } | |
3428 | $as_echo "$as_me: failed program was:" >&5 | |
b3076f16 | 3429 | sed 's/^/| /' conftest.$ac_ext >&5 |
3430 | ||
db946ede | 3431 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3432 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
c6254516 R |
3433 | as_fn_error 77 "C compiler cannot create executables |
3434 | See \`config.log' for more details" "$LINENO" 5; } | |
3435 | else | |
3436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3437 | $as_echo "yes" >&6; } | |
b3076f16 | 3438 | fi |
c6254516 R |
3439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3440 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3442 | $as_echo "$ac_file" >&6; } | |
b3076f16 | 3443 | ac_exeext=$ac_cv_exeext |
b3076f16 | 3444 | |
c6254516 | 3445 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
b3076f16 | 3446 | ac_clean_files=$ac_clean_files_save |
db946ede | 3447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3448 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3449 | if { { ac_try="$ac_link" | |
a8b2ad8d | 3450 | case "(($ac_try" in |
3451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3452 | *) ac_try_echo=$ac_try;; | |
3453 | esac | |
db946ede | 3454 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3455 | $as_echo "$ac_try_echo"; } >&5 | |
a8b2ad8d | 3456 | (eval "$ac_link") 2>&5 |
b3076f16 | 3457 | ac_status=$? |
db946ede | 3458 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3459 | test $ac_status = 0; }; then : | |
b3076f16 | 3460 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3461 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3462 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3463 | # `rm'. | |
3464 | for ac_file in conftest.exe conftest conftest.*; do | |
3465 | test -f "$ac_file" || continue | |
3466 | case $ac_file in | |
db946ede | 3467 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
b3076f16 | 3468 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
b3076f16 | 3469 | break;; |
3470 | * ) break;; | |
3471 | esac | |
3472 | done | |
3473 | else | |
db946ede | 3474 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3475 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
c6254516 R |
3476 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3477 | See \`config.log' for more details" "$LINENO" 5; } | |
b3076f16 | 3478 | fi |
c6254516 | 3479 | rm -f conftest conftest$ac_cv_exeext |
db946ede | 3480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3481 | $as_echo "$ac_cv_exeext" >&6; } | |
b3076f16 | 3482 | |
3483 | rm -f conftest.$ac_ext | |
3484 | EXEEXT=$ac_cv_exeext | |
3485 | ac_exeext=$EXEEXT | |
c6254516 R |
3486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3487 | /* end confdefs.h. */ | |
3488 | #include <stdio.h> | |
3489 | int | |
3490 | main () | |
3491 | { | |
3492 | FILE *f = fopen ("conftest.out", "w"); | |
3493 | return ferror (f) || fclose (f) != 0; | |
3494 | ||
3495 | ; | |
3496 | return 0; | |
3497 | } | |
3498 | _ACEOF | |
3499 | ac_clean_files="$ac_clean_files conftest.out" | |
3500 | # Check that the compiler produces executables we can run. If not, either | |
3501 | # the compiler is broken, or we cross compile. | |
3502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3503 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3504 | if test "$cross_compiling" != yes; then | |
3505 | { { ac_try="$ac_link" | |
3506 | case "(($ac_try" in | |
3507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3508 | *) ac_try_echo=$ac_try;; | |
3509 | esac | |
3510 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3511 | $as_echo "$ac_try_echo"; } >&5 | |
3512 | (eval "$ac_link") 2>&5 | |
3513 | ac_status=$? | |
3514 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3515 | test $ac_status = 0; } | |
3516 | if { ac_try='./conftest$ac_cv_exeext' | |
3517 | { { case "(($ac_try" in | |
3518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3519 | *) ac_try_echo=$ac_try;; | |
3520 | esac | |
3521 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3522 | $as_echo "$ac_try_echo"; } >&5 | |
3523 | (eval "$ac_try") 2>&5 | |
3524 | ac_status=$? | |
3525 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3526 | test $ac_status = 0; }; }; then | |
3527 | cross_compiling=no | |
3528 | else | |
3529 | if test "$cross_compiling" = maybe; then | |
3530 | cross_compiling=yes | |
3531 | else | |
3532 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3533 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3534 | as_fn_error $? "cannot run C compiled programs. | |
3535 | If you meant to cross compile, use \`--host'. | |
3536 | See \`config.log' for more details" "$LINENO" 5; } | |
3537 | fi | |
3538 | fi | |
3539 | fi | |
3540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3541 | $as_echo "$cross_compiling" >&6; } | |
3542 | ||
3543 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3544 | ac_clean_files=$ac_clean_files_save | |
db946ede | 3545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3546 | $as_echo_n "checking for suffix of object files... " >&6; } | |
c6254516 | 3547 | if ${ac_cv_objext+:} false; then : |
db946ede | 3548 | $as_echo_n "(cached) " >&6 |
b3076f16 | 3549 | else |
db946ede | 3550 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3076f16 | 3551 | /* end confdefs.h. */ |
3552 | ||
3553 | int | |
3554 | main () | |
3555 | { | |
3556 | ||
3557 | ; | |
3558 | return 0; | |
3559 | } | |
3560 | _ACEOF | |
3561 | rm -f conftest.o conftest.obj | |
db946ede | 3562 | if { { ac_try="$ac_compile" |
a8b2ad8d | 3563 | case "(($ac_try" in |
3564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3565 | *) ac_try_echo=$ac_try;; | |
3566 | esac | |
db946ede | 3567 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3568 | $as_echo "$ac_try_echo"; } >&5 | |
a8b2ad8d | 3569 | (eval "$ac_compile") 2>&5 |
b3076f16 | 3570 | ac_status=$? |
db946ede | 3571 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3572 | test $ac_status = 0; }; then : | |
a8b2ad8d | 3573 | for ac_file in conftest.o conftest.obj conftest.*; do |
3574 | test -f "$ac_file" || continue; | |
b3076f16 | 3575 | case $ac_file in |
db946ede | 3576 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
b3076f16 | 3577 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3578 | break;; | |
3579 | esac | |
3580 | done | |
3581 | else | |
db946ede | 3582 | $as_echo "$as_me: failed program was:" >&5 |
b3076f16 | 3583 | sed 's/^/| /' conftest.$ac_ext >&5 |
3584 | ||
db946ede | 3585 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3586 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
c6254516 R |
3587 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3588 | See \`config.log' for more details" "$LINENO" 5; } | |
b3076f16 | 3589 | fi |
b3076f16 | 3590 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3591 | fi | |
db946ede | 3592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3593 | $as_echo "$ac_cv_objext" >&6; } | |
b3076f16 | 3594 | OBJEXT=$ac_cv_objext |
3595 | ac_objext=$OBJEXT | |
db946ede | 3596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3597 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
c6254516 | 3598 | if ${ac_cv_c_compiler_gnu+:} false; then : |
db946ede | 3599 | $as_echo_n "(cached) " >&6 |
b3076f16 | 3600 | else |
db946ede | 3601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3076f16 | 3602 | /* end confdefs.h. */ |
3603 | ||
3604 | int | |
3605 | main () | |
3606 | { | |
3607 | #ifndef __GNUC__ | |
3608 | choke me | |
3609 | #endif | |
3610 | ||
3611 | ; | |
3612 | return 0; | |
3613 | } | |
3614 | _ACEOF | |
db946ede | 3615 | if ac_fn_c_try_compile "$LINENO"; then : |
b3076f16 | 3616 | ac_compiler_gnu=yes |
3617 | else | |
db946ede | 3618 | ac_compiler_gnu=no |
b3076f16 | 3619 | fi |
a8b2ad8d | 3620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b3076f16 | 3621 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3622 | ||
3623 | fi | |
db946ede | 3624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3625 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3626 | if test $ac_compiler_gnu = yes; then | |
3627 | GCC=yes | |
3628 | else | |
3629 | GCC= | |
3630 | fi | |
b3076f16 | 3631 | ac_test_CFLAGS=${CFLAGS+set} |
3632 | ac_save_CFLAGS=$CFLAGS | |
db946ede | 3633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3634 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
c6254516 | 3635 | if ${ac_cv_prog_cc_g+:} false; then : |
db946ede | 3636 | $as_echo_n "(cached) " >&6 |
b3076f16 | 3637 | else |
a8b2ad8d | 3638 | ac_save_c_werror_flag=$ac_c_werror_flag |
3639 | ac_c_werror_flag=yes | |
3640 | ac_cv_prog_cc_g=no | |
3641 | CFLAGS="-g" | |
db946ede | 3642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a8b2ad8d | 3643 | /* end confdefs.h. */ |
3644 | ||
3645 | int | |
3646 | main () | |
3647 | { | |
3648 | ||
3649 | ; | |
3650 | return 0; | |
3651 | } | |
3652 | _ACEOF | |
db946ede | 3653 | if ac_fn_c_try_compile "$LINENO"; then : |
a8b2ad8d | 3654 | ac_cv_prog_cc_g=yes |
3655 | else | |
db946ede | 3656 | CFLAGS="" |
3657 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a8b2ad8d | 3658 | /* end confdefs.h. */ |
3659 | ||
3660 | int | |
3661 | main () | |
3662 | { | |
3663 | ||
3664 | ; | |
3665 | return 0; | |
3666 | } | |
3667 | _ACEOF | |
db946ede | 3668 | if ac_fn_c_try_compile "$LINENO"; then : |
a8b2ad8d | 3669 | |
db946ede | 3670 | else |
3671 | ac_c_werror_flag=$ac_save_c_werror_flag | |
a8b2ad8d | 3672 | CFLAGS="-g" |
db946ede | 3673 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3076f16 | 3674 | /* end confdefs.h. */ |
3675 | ||
3676 | int | |
3677 | main () | |
3678 | { | |
3679 | ||
3680 | ; | |
3681 | return 0; | |
3682 | } | |
3683 | _ACEOF | |
db946ede | 3684 | if ac_fn_c_try_compile "$LINENO"; then : |
b3076f16 | 3685 | ac_cv_prog_cc_g=yes |
a8b2ad8d | 3686 | fi |
a8b2ad8d | 3687 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3688 | fi | |
a8b2ad8d | 3689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b3076f16 | 3690 | fi |
a8b2ad8d | 3691 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3692 | ac_c_werror_flag=$ac_save_c_werror_flag | |
b3076f16 | 3693 | fi |
db946ede | 3694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3695 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
b3076f16 | 3696 | if test "$ac_test_CFLAGS" = set; then |
3697 | CFLAGS=$ac_save_CFLAGS | |
3698 | elif test $ac_cv_prog_cc_g = yes; then | |
3699 | if test "$GCC" = yes; then | |
3700 | CFLAGS="-g -O2" | |
3701 | else | |
3702 | CFLAGS="-g" | |
3703 | fi | |
3704 | else | |
3705 | if test "$GCC" = yes; then | |
3706 | CFLAGS="-O2" | |
3707 | else | |
3708 | CFLAGS= | |
3709 | fi | |
3710 | fi | |
db946ede | 3711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3712 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
c6254516 | 3713 | if ${ac_cv_prog_cc_c89+:} false; then : |
db946ede | 3714 | $as_echo_n "(cached) " >&6 |
b3076f16 | 3715 | else |
a8b2ad8d | 3716 | ac_cv_prog_cc_c89=no |
b3076f16 | 3717 | ac_save_CC=$CC |
db946ede | 3718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3076f16 | 3719 | /* end confdefs.h. */ |
3720 | #include <stdarg.h> | |
3721 | #include <stdio.h> | |
3722 | #include <sys/types.h> | |
3723 | #include <sys/stat.h> | |
3724 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3725 | struct buf { int x; }; | |
3726 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3727 | static char *e (p, i) | |
3728 | char **p; | |
3729 | int i; | |
3730 | { | |
3731 | return p[i]; | |
3732 | } | |
3733 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3734 | { | |
3735 | char *s; | |
3736 | va_list v; | |
3737 | va_start (v,p); | |
3738 | s = g (p, va_arg (v,int)); | |
3739 | va_end (v); | |
3740 | return s; | |
3741 | } | |
3742 | ||
3743 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3744 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3745 | These don't provoke an error unfortunately, instead are silently treated | |
a8b2ad8d | 3746 | as 'x'. The following induces an error, until -std is added to get |
b3076f16 | 3747 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3748 | array size at least. It's necessary to write '\x00'==0 to get something | |
a8b2ad8d | 3749 | that's true only with -std. */ |
b3076f16 | 3750 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3751 | ||
a8b2ad8d | 3752 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3753 | inside strings and character constants. */ | |
3754 | #define FOO(x) 'x' | |
3755 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3756 | ||
b3076f16 | 3757 | int test (int i, double x); |
3758 | struct s1 {int (*f) (int a);}; | |
3759 | struct s2 {int (*f) (double a);}; | |
3760 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3761 | int argc; | |
3762 | char **argv; | |
3763 | int | |
3764 | main () | |
3765 | { | |
3766 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3767 | ; | |
3768 | return 0; | |
3769 | } | |
3770 | _ACEOF | |
a8b2ad8d | 3771 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3772 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
b3076f16 | 3773 | do |
3774 | CC="$ac_save_CC $ac_arg" | |
db946ede | 3775 | if ac_fn_c_try_compile "$LINENO"; then : |
a8b2ad8d | 3776 | ac_cv_prog_cc_c89=$ac_arg |
b3076f16 | 3777 | fi |
a8b2ad8d | 3778 | rm -f core conftest.err conftest.$ac_objext |
3779 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
b3076f16 | 3780 | done |
a8b2ad8d | 3781 | rm -f conftest.$ac_ext |
b3076f16 | 3782 | CC=$ac_save_CC |
3783 | ||
3784 | fi | |
a8b2ad8d | 3785 | # AC_CACHE_VAL |
3786 | case "x$ac_cv_prog_cc_c89" in | |
3787 | x) | |
db946ede | 3788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
3789 | $as_echo "none needed" >&6; } ;; | |
a8b2ad8d | 3790 | xno) |
db946ede | 3791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
3792 | $as_echo "unsupported" >&6; } ;; | |
b3076f16 | 3793 | *) |
a8b2ad8d | 3794 | CC="$CC $ac_cv_prog_cc_c89" |
db946ede | 3795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
3796 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
b3076f16 | 3797 | esac |
db946ede | 3798 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
b3076f16 | 3799 | |
db946ede | 3800 | fi |
b3076f16 | 3801 | |
b3076f16 | 3802 | ac_ext=c |
3803 | ac_cpp='$CPP $CPPFLAGS' | |
3804 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3805 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3806 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3807 | ||
ec1a68c8 | 3808 | depcc="$CC" am_compiler_list= |
3809 | ||
db946ede | 3810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
3811 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
c6254516 | 3812 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
db946ede | 3813 | $as_echo_n "(cached) " >&6 |
ec1a68c8 | 3814 | else |
3815 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3816 | # We make a subdir and do the tests there. Otherwise we can end up | |
3817 | # making bogus files that we don't know about and never remove. For | |
3818 | # instance it was reported that on HP-UX the gcc test will end up | |
3819 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3820 | # in D'. | |
c6254516 | 3821 | rm -rf conftest.dir |
ec1a68c8 | 3822 | mkdir conftest.dir |
3823 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3824 | # using a relative directory. | |
3825 | cp "$am_depcomp" conftest.dir | |
3826 | cd conftest.dir | |
3827 | # We will build objects and dependencies in a subdirectory because | |
3828 | # it helps to detect inapplicable dependency modes. For instance | |
3829 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3830 | # side effect of compilation, but ICC will put the dependencies in | |
3831 | # the current directory while Tru64 will put them in the object | |
3832 | # directory. | |
3833 | mkdir sub | |
3834 | ||
3835 | am_cv_CC_dependencies_compiler_type=none | |
3836 | if test "$am_compiler_list" = ""; then | |
3837 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3838 | fi | |
db946ede | 3839 | am__universal=false |
3840 | case " $depcc " in #( | |
3841 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3842 | esac | |
3843 | ||
ec1a68c8 | 3844 | for depmode in $am_compiler_list; do |
3845 | # Setup a source with many dependencies, because some compilers | |
3846 | # like to wrap large dependency lists on column 80 (with \), and | |
3847 | # we should not choose a depcomp mode which is confused by this. | |
3848 | # | |
3849 | # We need to recreate these files for each test, as the compiler may | |
3850 | # overwrite some of them when testing with obscure command lines. | |
3851 | # This happens at least with the AIX C compiler. | |
3852 | : > sub/conftest.c | |
3853 | for i in 1 2 3 4 5 6; do | |
3854 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3855 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3856 | # Solaris 8's {/usr,}/bin/sh. | |
3857 | touch sub/conftst$i.h | |
3858 | done | |
3859 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3860 | ||
db946ede | 3861 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3862 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3863 | # handle `-M -o', and we need to detect this. Also, some Intel | |
3864 | # versions had trouble with output in subdirs | |
3865 | am__obj=sub/conftest.${OBJEXT-o} | |
3866 | am__minus_obj="-o $am__obj" | |
ec1a68c8 | 3867 | case $depmode in |
db946ede | 3868 | gcc) |
3869 | # This depmode causes a compiler race in universal mode. | |
3870 | test "$am__universal" = false || continue | |
3871 | ;; | |
ec1a68c8 | 3872 | nosideeffect) |
3873 | # after this tag, mechanisms are not by side-effect, so they'll | |
3874 | # only be used when explicitly requested | |
3875 | if test "x$enable_dependency_tracking" = xyes; then | |
3876 | continue | |
3877 | else | |
3878 | break | |
3879 | fi | |
3880 | ;; | |
c6254516 | 3881 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
db946ede | 3882 | # This compiler won't grok `-c -o', but also, the minuso test has |
3883 | # not run yet. These depmodes are late enough in the game, and | |
3884 | # so weak that their functioning should not be impacted. | |
3885 | am__obj=conftest.${OBJEXT-o} | |
3886 | am__minus_obj= | |
3887 | ;; | |
ec1a68c8 | 3888 | none) break ;; |
3889 | esac | |
ec1a68c8 | 3890 | if depmode=$depmode \ |
db946ede | 3891 | source=sub/conftest.c object=$am__obj \ |
ec1a68c8 | 3892 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
db946ede | 3893 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
ec1a68c8 | 3894 | >/dev/null 2>conftest.err && |
2f65da8f | 3895 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
ec1a68c8 | 3896 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
db946ede | 3897 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
ec1a68c8 | 3898 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3899 | # icc doesn't choke on unknown options, it will just issue warnings | |
3900 | # or remarks (even with -Werror). So we grep stderr for any message | |
3901 | # that says an option was ignored or not supported. | |
3902 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3903 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3904 | # The diagnosis changed in icc 8.0: | |
3905 | # icc: Command line remark: option '-MP' not supported | |
3906 | if (grep 'ignoring option' conftest.err || | |
3907 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3908 | am_cv_CC_dependencies_compiler_type=$depmode | |
3909 | break | |
3910 | fi | |
3911 | fi | |
3912 | done | |
3913 | ||
3914 | cd .. | |
3915 | rm -rf conftest.dir | |
3916 | else | |
3917 | am_cv_CC_dependencies_compiler_type=none | |
3918 | fi | |
3919 | ||
3920 | fi | |
db946ede | 3921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3922 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
ec1a68c8 | 3923 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3924 | ||
2f65da8f | 3925 | if |
ec1a68c8 | 3926 | test "x$enable_dependency_tracking" != xno \ |
3927 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3928 | am__fastdepCC_TRUE= | |
3929 | am__fastdepCC_FALSE='#' | |
3930 | else | |
3931 | am__fastdepCC_TRUE='#' | |
3932 | am__fastdepCC_FALSE= | |
3933 | fi | |
3934 | ||
3935 | ||
b3076f16 | 3936 | |
db946ede | 3937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 |
3938 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
c6254516 | 3939 | if ${ac_cv_type_signal+:} false; then : |
db946ede | 3940 | $as_echo_n "(cached) " >&6 |
b3076f16 | 3941 | else |
db946ede | 3942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3076f16 | 3943 | /* end confdefs.h. */ |
3944 | #include <sys/types.h> | |
3945 | #include <signal.h> | |
b3076f16 | 3946 | |
3947 | int | |
3948 | main () | |
3949 | { | |
a8b2ad8d | 3950 | return *(signal (0, 0)) (0) == 1; |
b3076f16 | 3951 | ; |
3952 | return 0; | |
3953 | } | |
3954 | _ACEOF | |
db946ede | 3955 | if ac_fn_c_try_compile "$LINENO"; then : |
a8b2ad8d | 3956 | ac_cv_type_signal=int |
b3076f16 | 3957 | else |
db946ede | 3958 | ac_cv_type_signal=void |
b3076f16 | 3959 | fi |
a8b2ad8d | 3960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b3076f16 | 3961 | fi |
db946ede | 3962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
3963 | $as_echo "$ac_cv_type_signal" >&6; } | |
b3076f16 | 3964 | |
3965 | cat >>confdefs.h <<_ACEOF | |
3966 | #define RETSIGTYPE $ac_cv_type_signal | |
3967 | _ACEOF | |
3968 | ||
3969 | ||
db946ede | 3970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
3971 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
c6254516 | 3972 | if ${ac_cv_c_const+:} false; then : |
db946ede | 3973 | $as_echo_n "(cached) " >&6 |
b3076f16 | 3974 | else |
db946ede | 3975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3076f16 | 3976 | /* end confdefs.h. */ |
3977 | ||
3978 | int | |
3979 | main () | |
3980 | { | |
3981 | /* FIXME: Include the comments suggested by Paul. */ | |
3982 | #ifndef __cplusplus | |
3983 | /* Ultrix mips cc rejects this. */ | |
3984 | typedef int charset[2]; | |
0bd0bef6 | 3985 | const charset cs; |
b3076f16 | 3986 | /* SunOS 4.1.1 cc rejects this. */ |
0bd0bef6 | 3987 | char const *const *pcpcc; |
3988 | char **ppc; | |
b3076f16 | 3989 | /* NEC SVR4.0.2 mips cc rejects this. */ |
3990 | struct point {int x, y;}; | |
3991 | static struct point const zero = {0,0}; | |
3992 | /* AIX XL C 1.02.0.0 rejects this. | |
3993 | It does not let you subtract one const X* pointer from another in | |
3994 | an arm of an if-expression whose if-part is not a constant | |
3995 | expression */ | |
3996 | const char *g = "string"; | |
0bd0bef6 | 3997 | pcpcc = &g + (g ? g-g : 0); |
b3076f16 | 3998 | /* HPUX 7.0 cc rejects these. */ |
0bd0bef6 | 3999 | ++pcpcc; |
4000 | ppc = (char**) pcpcc; | |
4001 | pcpcc = (char const *const *) ppc; | |
b3076f16 | 4002 | { /* SCO 3.2v4 cc rejects this. */ |
4003 | char *t; | |
4004 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
4005 | ||
4006 | *t++ = 0; | |
a8b2ad8d | 4007 | if (s) return 0; |
b3076f16 | 4008 | } |
4009 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
4010 | int x[] = {25, 17}; | |
4011 | const int *foo = &x[0]; | |
4012 | ++foo; | |
4013 | } | |
4014 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
4015 | typedef const int *iptr; | |
4016 | iptr p = 0; | |
4017 | ++p; | |
4018 | } | |
4019 | { /* AIX XL C 1.02.0.0 rejects this saying | |
4020 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
4021 | struct s { int j; const int *ap[3]; }; | |
4022 | struct s *b; b->j = 5; | |
4023 | } | |
4024 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
4025 | const int foo = 10; | |
a8b2ad8d | 4026 | if (!foo) return 0; |
b3076f16 | 4027 | } |
0bd0bef6 | 4028 | return !cs[0] && !zero.x; |
b3076f16 | 4029 | #endif |
4030 | ||
4031 | ; | |
4032 | return 0; | |
4033 | } | |
4034 | _ACEOF | |
db946ede | 4035 | if ac_fn_c_try_compile "$LINENO"; then : |
b3076f16 | 4036 | ac_cv_c_const=yes |
4037 | else | |
db946ede | 4038 | ac_cv_c_const=no |
b3076f16 | 4039 | fi |
a8b2ad8d | 4040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b3076f16 | 4041 | fi |
db946ede | 4042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
4043 | $as_echo "$ac_cv_c_const" >&6; } | |
b3076f16 | 4044 | if test $ac_cv_c_const = no; then |
4045 | ||
db946ede | 4046 | $as_echo "#define const /**/" >>confdefs.h |
b3076f16 | 4047 | |
4048 | fi | |
4049 | ||
0f6fe38c | 4050 | |
4051 | for ac_prog in gawk mawk nawk awk | |
4052 | do | |
4053 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4054 | set dummy $ac_prog; ac_word=$2 | |
db946ede | 4055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4056 | $as_echo_n "checking for $ac_word... " >&6; } | |
c6254516 | 4057 | if ${ac_cv_prog_AWK+:} false; then : |
db946ede | 4058 | $as_echo_n "(cached) " >&6 |
0f6fe38c | 4059 | else |
4060 | if test -n "$AWK"; then | |
4061 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
4062 | else | |
4063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4064 | for as_dir in $PATH | |
4065 | do | |
4066 | IFS=$as_save_IFS | |
4067 | test -z "$as_dir" && as_dir=. | |
db946ede | 4068 | for ac_exec_ext in '' $ac_executable_extensions; do |
0bd0bef6 | 4069 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
0f6fe38c | 4070 | ac_cv_prog_AWK="$ac_prog" |
db946ede | 4071 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0f6fe38c | 4072 | break 2 |
4073 | fi | |
4074 | done | |
db946ede | 4075 | done |
0f6fe38c | 4076 | IFS=$as_save_IFS |
4077 | ||
4078 | fi | |
4079 | fi | |
4080 | AWK=$ac_cv_prog_AWK | |
4081 | if test -n "$AWK"; then | |
db946ede | 4082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
4083 | $as_echo "$AWK" >&6; } | |
0f6fe38c | 4084 | else |
db946ede | 4085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4086 | $as_echo "no" >&6; } | |
0f6fe38c | 4087 | fi |
b3076f16 | 4088 | |
a8b2ad8d | 4089 | |
b3076f16 | 4090 | test -n "$AWK" && break |
4091 | done | |
4092 | ||
4093 | ac_ext=c | |
4094 | ac_cpp='$CPP $CPPFLAGS' | |
4095 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4096 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4097 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4098 | if test -n "$ac_tool_prefix"; then | |
4099 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4100 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
db946ede | 4101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4102 | $as_echo_n "checking for $ac_word... " >&6; } | |
c6254516 | 4103 | if ${ac_cv_prog_CC+:} false; then : |
db946ede | 4104 | $as_echo_n "(cached) " >&6 |
b3076f16 | 4105 | else |
4106 | if test -n "$CC"; then | |
4107 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4108 | else | |
4109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4110 | for as_dir in $PATH | |
4111 | do | |
4112 | IFS=$as_save_IFS | |
4113 | test -z "$as_dir" && as_dir=. | |
db946ede | 4114 | for ac_exec_ext in '' $ac_executable_extensions; do |
0bd0bef6 | 4115 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 4116 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
db946ede | 4117 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b3076f16 | 4118 | break 2 |
4119 | fi | |
4120 | done | |
db946ede | 4121 | done |
a8b2ad8d | 4122 | IFS=$as_save_IFS |
b3076f16 | 4123 | |
4124 | fi | |
4125 | fi | |
4126 | CC=$ac_cv_prog_CC | |
4127 | if test -n "$CC"; then | |
db946ede | 4128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4129 | $as_echo "$CC" >&6; } | |
b3076f16 | 4130 | else |
db946ede | 4131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4132 | $as_echo "no" >&6; } | |
b3076f16 | 4133 | fi |
4134 | ||
a8b2ad8d | 4135 | |
b3076f16 | 4136 | fi |
4137 | if test -z "$ac_cv_prog_CC"; then | |
4138 | ac_ct_CC=$CC | |
4139 | # Extract the first word of "gcc", so it can be a program name with args. | |
4140 | set dummy gcc; ac_word=$2 | |
db946ede | 4141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4142 | $as_echo_n "checking for $ac_word... " >&6; } | |
c6254516 | 4143 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
db946ede | 4144 | $as_echo_n "(cached) " >&6 |
b3076f16 | 4145 | else |
4146 | if test -n "$ac_ct_CC"; then | |
4147 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4148 | else | |
4149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4150 | for as_dir in $PATH | |
4151 | do | |
4152 | IFS=$as_save_IFS | |
4153 | test -z "$as_dir" && as_dir=. | |
db946ede | 4154 | for ac_exec_ext in '' $ac_executable_extensions; do |
0bd0bef6 | 4155 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 4156 | ac_cv_prog_ac_ct_CC="gcc" |
db946ede | 4157 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b3076f16 | 4158 | break 2 |
4159 | fi | |
4160 | done | |
db946ede | 4161 | done |
a8b2ad8d | 4162 | IFS=$as_save_IFS |
b3076f16 | 4163 | |
4164 | fi | |
4165 | fi | |
4166 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4167 | if test -n "$ac_ct_CC"; then | |
db946ede | 4168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4169 | $as_echo "$ac_ct_CC" >&6; } | |
b3076f16 | 4170 | else |
db946ede | 4171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4172 | $as_echo "no" >&6; } | |
b3076f16 | 4173 | fi |
4174 | ||
a8b2ad8d | 4175 | if test "x$ac_ct_CC" = x; then |
4176 | CC="" | |
4177 | else | |
4178 | case $cross_compiling:$ac_tool_warned in | |
4179 | yes:) | |
db946ede | 4180 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
4181 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
a8b2ad8d | 4182 | ac_tool_warned=yes ;; |
4183 | esac | |
4184 | CC=$ac_ct_CC | |
4185 | fi | |
b3076f16 | 4186 | else |
4187 | CC="$ac_cv_prog_CC" | |
4188 | fi | |
4189 | ||
4190 | if test -z "$CC"; then | |
a8b2ad8d | 4191 | if test -n "$ac_tool_prefix"; then |
4192 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
b3076f16 | 4193 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
db946ede | 4194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4195 | $as_echo_n "checking for $ac_word... " >&6; } | |
c6254516 | 4196 | if ${ac_cv_prog_CC+:} false; then : |
db946ede | 4197 | $as_echo_n "(cached) " >&6 |
b3076f16 | 4198 | else |
4199 | if test -n "$CC"; then | |
4200 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4201 | else | |
4202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4203 | for as_dir in $PATH | |
4204 | do | |
4205 | IFS=$as_save_IFS | |
4206 | test -z "$as_dir" && as_dir=. | |
db946ede | 4207 | for ac_exec_ext in '' $ac_executable_extensions; do |
0bd0bef6 | 4208 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 4209 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
db946ede | 4210 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b3076f16 | 4211 | break 2 |
4212 | fi | |
4213 | done | |
db946ede | 4214 | done |
a8b2ad8d | 4215 | IFS=$as_save_IFS |
b3076f16 | 4216 | |
4217 | fi | |
4218 | fi | |
4219 | CC=$ac_cv_prog_CC | |
4220 | if test -n "$CC"; then | |
db946ede | 4221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4222 | $as_echo "$CC" >&6; } | |
b3076f16 | 4223 | else |
db946ede | 4224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4225 | $as_echo "no" >&6; } | |
b3076f16 | 4226 | fi |
4227 | ||
b3076f16 | 4228 | |
a8b2ad8d | 4229 | fi |
b3076f16 | 4230 | fi |
4231 | if test -z "$CC"; then | |
4232 | # Extract the first word of "cc", so it can be a program name with args. | |
4233 | set dummy cc; ac_word=$2 | |
db946ede | 4234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4235 | $as_echo_n "checking for $ac_word... " >&6; } | |
c6254516 | 4236 | if ${ac_cv_prog_CC+:} false; then : |
db946ede | 4237 | $as_echo_n "(cached) " >&6 |
b3076f16 | 4238 | else |
4239 | if test -n "$CC"; then | |
4240 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4241 | else | |
4242 | ac_prog_rejected=no | |
4243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4244 | for as_dir in $PATH | |
4245 | do | |
4246 | IFS=$as_save_IFS | |
4247 | test -z "$as_dir" && as_dir=. | |
db946ede | 4248 | for ac_exec_ext in '' $ac_executable_extensions; do |
0bd0bef6 | 4249 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 4250 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4251 | ac_prog_rejected=yes | |
4252 | continue | |
4253 | fi | |
4254 | ac_cv_prog_CC="cc" | |
db946ede | 4255 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b3076f16 | 4256 | break 2 |
4257 | fi | |
4258 | done | |
db946ede | 4259 | done |
a8b2ad8d | 4260 | IFS=$as_save_IFS |
b3076f16 | 4261 | |
4262 | if test $ac_prog_rejected = yes; then | |
4263 | # We found a bogon in the path, so make sure we never use it. | |
4264 | set dummy $ac_cv_prog_CC | |
4265 | shift | |
4266 | if test $# != 0; then | |
4267 | # We chose a different compiler from the bogus one. | |
4268 | # However, it has the same basename, so the bogon will be chosen | |
4269 | # first if we set CC to just the basename; use the full file name. | |
4270 | shift | |
4271 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4272 | fi | |
4273 | fi | |
4274 | fi | |
4275 | fi | |
4276 | CC=$ac_cv_prog_CC | |
4277 | if test -n "$CC"; then | |
db946ede | 4278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4279 | $as_echo "$CC" >&6; } | |
b3076f16 | 4280 | else |
db946ede | 4281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4282 | $as_echo "no" >&6; } | |
b3076f16 | 4283 | fi |
4284 | ||
a8b2ad8d | 4285 | |
b3076f16 | 4286 | fi |
4287 | if test -z "$CC"; then | |
4288 | if test -n "$ac_tool_prefix"; then | |
a8b2ad8d | 4289 | for ac_prog in cl.exe |
b3076f16 | 4290 | do |
4291 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4292 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
db946ede | 4293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4294 | $as_echo_n "checking for $ac_word... " >&6; } | |
c6254516 | 4295 | if ${ac_cv_prog_CC+:} false; then : |
db946ede | 4296 | $as_echo_n "(cached) " >&6 |
b3076f16 | 4297 | else |
4298 | if test -n "$CC"; then | |
4299 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4300 | else | |
4301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4302 | for as_dir in $PATH | |
4303 | do | |
4304 | IFS=$as_save_IFS | |
4305 | test -z "$as_dir" && as_dir=. | |
db946ede | 4306 | for ac_exec_ext in '' $ac_executable_extensions; do |
0bd0bef6 | 4307 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 4308 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
db946ede | 4309 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b3076f16 | 4310 | break 2 |
4311 | fi | |
4312 | done | |
db946ede | 4313 | done |
a8b2ad8d | 4314 | IFS=$as_save_IFS |
b3076f16 | 4315 | |
4316 | fi | |
4317 | fi | |
4318 | CC=$ac_cv_prog_CC | |
4319 | if test -n "$CC"; then | |
db946ede | 4320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4321 | $as_echo "$CC" >&6; } | |
b3076f16 | 4322 | else |
db946ede | 4323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4324 | $as_echo "no" >&6; } | |
b3076f16 | 4325 | fi |
4326 | ||
a8b2ad8d | 4327 | |
b3076f16 | 4328 | test -n "$CC" && break |
4329 | done | |
4330 | fi | |
4331 | if test -z "$CC"; then | |
4332 | ac_ct_CC=$CC | |
a8b2ad8d | 4333 | for ac_prog in cl.exe |
b3076f16 | 4334 | do |
4335 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4336 | set dummy $ac_prog; ac_word=$2 | |
db946ede | 4337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4338 | $as_echo_n "checking for $ac_word... " >&6; } | |
c6254516 | 4339 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
db946ede | 4340 | $as_echo_n "(cached) " >&6 |
b3076f16 | 4341 | else |
4342 | if test -n "$ac_ct_CC"; then | |
4343 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4344 | else | |
4345 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4346 | for as_dir in $PATH | |
4347 | do | |
4348 | IFS=$as_save_IFS | |
4349 | test -z "$as_dir" && as_dir=. | |
db946ede | 4350 | for ac_exec_ext in '' $ac_executable_extensions; do |
0bd0bef6 | 4351 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 4352 | ac_cv_prog_ac_ct_CC="$ac_prog" |
db946ede | 4353 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b3076f16 | 4354 | break 2 |
4355 | fi | |
4356 | done | |
db946ede | 4357 | done |
a8b2ad8d | 4358 | IFS=$as_save_IFS |
b3076f16 | 4359 | |
4360 | fi | |
4361 | fi | |
4362 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4363 | if test -n "$ac_ct_CC"; then | |
db946ede | 4364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4365 | $as_echo "$ac_ct_CC" >&6; } | |
b3076f16 | 4366 | else |
db946ede | 4367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4368 | $as_echo "no" >&6; } | |
b3076f16 | 4369 | fi |
4370 | ||
a8b2ad8d | 4371 | |
b3076f16 | 4372 | test -n "$ac_ct_CC" && break |
4373 | done | |
4374 | ||
a8b2ad8d | 4375 | if test "x$ac_ct_CC" = x; then |
4376 | CC="" | |
4377 | else | |
4378 | case $cross_compiling:$ac_tool_warned in | |
4379 | yes:) | |
db946ede | 4380 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
4381 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
a8b2ad8d | 4382 | ac_tool_warned=yes ;; |
4383 | esac | |
4384 | CC=$ac_ct_CC | |
4385 | fi | |
b3076f16 | 4386 | fi |
4387 | ||
4388 | fi | |
4389 | ||
4390 | ||
db946ede | 4391 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4392 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
c6254516 R |
4393 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4394 | See \`config.log' for more details" "$LINENO" 5; } | |
b3076f16 | 4395 | |
4396 | # Provide some information about the compiler. | |
db946ede | 4397 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4398 | set X $ac_compile | |
4399 | ac_compiler=$2 | |
4400 | for ac_option in --version -v -V -qversion; do | |
4401 | { { ac_try="$ac_compiler $ac_option >&5" | |
a8b2ad8d | 4402 | case "(($ac_try" in |
4403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4404 | *) ac_try_echo=$ac_try;; | |
4405 | esac | |
db946ede | 4406 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4407 | $as_echo "$ac_try_echo"; } >&5 | |
4408 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
b3076f16 | 4409 | ac_status=$? |
db946ede | 4410 | if test -s conftest.err; then |
4411 | sed '10a\ | |
4412 | ... rest of stderr output deleted ... | |
4413 | 10q' conftest.err >conftest.er1 | |
4414 | cat conftest.er1 >&5 | |
db946ede | 4415 | fi |
c6254516 | 4416 | rm -f conftest.er1 conftest.err |
db946ede | 4417 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4418 | test $ac_status = 0; } | |
4419 | done | |
b3076f16 | 4420 | |
db946ede | 4421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4422 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
c6254516 | 4423 | if ${ac_cv_c_compiler_gnu+:} false; then : |
db946ede | 4424 | $as_echo_n "(cached) " >&6 |
b3076f16 | 4425 | else |
db946ede | 4426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3076f16 | 4427 | /* end confdefs.h. */ |
4428 | ||
4429 | int | |
4430 | main () | |
4431 | { | |
4432 | #ifndef __GNUC__ | |
4433 | choke me | |
4434 | #endif | |
4435 | ||
4436 | ; | |
4437 | return 0; | |
4438 | } | |
4439 | _ACEOF | |
db946ede | 4440 | if ac_fn_c_try_compile "$LINENO"; then : |
b3076f16 | 4441 | ac_compiler_gnu=yes |
4442 | else | |
db946ede | 4443 | ac_compiler_gnu=no |
b3076f16 | 4444 | fi |
a8b2ad8d | 4445 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b3076f16 | 4446 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4447 | ||
4448 | fi | |
db946ede | 4449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4450 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4451 | if test $ac_compiler_gnu = yes; then | |
4452 | GCC=yes | |
4453 | else | |
4454 | GCC= | |
4455 | fi | |
b3076f16 | 4456 | ac_test_CFLAGS=${CFLAGS+set} |
4457 | ac_save_CFLAGS=$CFLAGS | |
db946ede | 4458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4459 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
c6254516 | 4460 | if ${ac_cv_prog_cc_g+:} false; then : |
db946ede | 4461 | $as_echo_n "(cached) " >&6 |
b3076f16 | 4462 | else |
a8b2ad8d | 4463 | ac_save_c_werror_flag=$ac_c_werror_flag |
4464 | ac_c_werror_flag=yes | |
4465 | ac_cv_prog_cc_g=no | |
4466 | CFLAGS="-g" | |
db946ede | 4467 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a8b2ad8d | 4468 | /* end confdefs.h. */ |
4469 | ||
4470 | int | |
4471 | main () | |
4472 | { | |
4473 | ||
4474 | ; | |
4475 | return 0; | |
4476 | } | |
4477 | _ACEOF | |
db946ede | 4478 | if ac_fn_c_try_compile "$LINENO"; then : |
a8b2ad8d | 4479 | ac_cv_prog_cc_g=yes |
4480 | else | |
db946ede | 4481 | CFLAGS="" |
4482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a8b2ad8d | 4483 | /* end confdefs.h. */ |
4484 | ||
4485 | int | |
4486 | main () | |
4487 | { | |
4488 | ||
4489 | ; | |
4490 | return 0; | |
4491 | } | |
4492 | _ACEOF | |
db946ede | 4493 | if ac_fn_c_try_compile "$LINENO"; then : |
a8b2ad8d | 4494 | |
db946ede | 4495 | else |
4496 | ac_c_werror_flag=$ac_save_c_werror_flag | |
a8b2ad8d | 4497 | CFLAGS="-g" |
db946ede | 4498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3076f16 | 4499 | /* end confdefs.h. */ |
4500 | ||
4501 | int | |
4502 | main () | |
4503 | { | |
4504 | ||
4505 | ; | |
4506 | return 0; | |
4507 | } | |
4508 | _ACEOF | |
db946ede | 4509 | if ac_fn_c_try_compile "$LINENO"; then : |
b3076f16 | 4510 | ac_cv_prog_cc_g=yes |
a8b2ad8d | 4511 | fi |
a8b2ad8d | 4512 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4513 | fi | |
a8b2ad8d | 4514 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b3076f16 | 4515 | fi |
a8b2ad8d | 4516 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4517 | ac_c_werror_flag=$ac_save_c_werror_flag | |
b3076f16 | 4518 | fi |
db946ede | 4519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
4520 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
b3076f16 | 4521 | if test "$ac_test_CFLAGS" = set; then |
4522 | CFLAGS=$ac_save_CFLAGS | |
4523 | elif test $ac_cv_prog_cc_g = yes; then | |
4524 | if test "$GCC" = yes; then | |
4525 | CFLAGS="-g -O2" | |
4526 | else | |
4527 | CFLAGS="-g" | |
4528 | fi | |
4529 | else | |
4530 | if test "$GCC" = yes; then | |
4531 | CFLAGS="-O2" | |
4532 | else | |
4533 | CFLAGS= | |
4534 | fi | |
4535 | fi | |
db946ede | 4536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4537 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
c6254516 | 4538 | if ${ac_cv_prog_cc_c89+:} false; then : |
db946ede | 4539 | $as_echo_n "(cached) " >&6 |
b3076f16 | 4540 | else |
a8b2ad8d | 4541 | ac_cv_prog_cc_c89=no |
b3076f16 | 4542 | ac_save_CC=$CC |
db946ede | 4543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3076f16 | 4544 | /* end confdefs.h. */ |
4545 | #include <stdarg.h> | |
4546 | #include <stdio.h> | |
4547 | #include <sys/types.h> | |
4548 | #include <sys/stat.h> | |
4549 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4550 | struct buf { int x; }; | |
4551 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4552 | static char *e (p, i) | |
4553 | char **p; | |
4554 | int i; | |
4555 | { | |
4556 | return p[i]; | |
4557 | } | |
4558 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4559 | { | |
4560 | char *s; | |
4561 | va_list v; | |
4562 | va_start (v,p); | |
4563 | s = g (p, va_arg (v,int)); | |
4564 | va_end (v); | |
4565 | return s; | |
4566 | } | |
4567 | ||
4568 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4569 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4570 | These don't provoke an error unfortunately, instead are silently treated | |
a8b2ad8d | 4571 | as 'x'. The following induces an error, until -std is added to get |
b3076f16 | 4572 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4573 | array size at least. It's necessary to write '\x00'==0 to get something | |
a8b2ad8d | 4574 | that's true only with -std. */ |
b3076f16 | 4575 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4576 | ||
a8b2ad8d | 4577 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4578 | inside strings and character constants. */ | |
4579 | #define FOO(x) 'x' | |
4580 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4581 | ||
b3076f16 | 4582 | int test (int i, double x); |
4583 | struct s1 {int (*f) (int a);}; | |
4584 | struct s2 {int (*f) (double a);}; | |
4585 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4586 | int argc; | |
4587 | char **argv; | |
4588 | int | |
4589 | main () | |
4590 | { | |
4591 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4592 | ; | |
4593 | return 0; | |
4594 | } | |
4595 | _ACEOF | |
a8b2ad8d | 4596 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4597 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
b3076f16 | 4598 | do |
4599 | CC="$ac_save_CC $ac_arg" | |
db946ede | 4600 | if ac_fn_c_try_compile "$LINENO"; then : |
a8b2ad8d | 4601 | ac_cv_prog_cc_c89=$ac_arg |
b3076f16 | 4602 | fi |
a8b2ad8d | 4603 | rm -f core conftest.err conftest.$ac_objext |
4604 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
b3076f16 | 4605 | done |
a8b2ad8d | 4606 | rm -f conftest.$ac_ext |
b3076f16 | 4607 | CC=$ac_save_CC |
4608 | ||
4609 | fi | |
a8b2ad8d | 4610 | # AC_CACHE_VAL |
4611 | case "x$ac_cv_prog_cc_c89" in | |
4612 | x) | |
db946ede | 4613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
4614 | $as_echo "none needed" >&6; } ;; | |
a8b2ad8d | 4615 | xno) |
db946ede | 4616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
4617 | $as_echo "unsupported" >&6; } ;; | |
b3076f16 | 4618 | *) |
a8b2ad8d | 4619 | CC="$CC $ac_cv_prog_cc_c89" |
db946ede | 4620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
4621 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
b3076f16 | 4622 | esac |
db946ede | 4623 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
b3076f16 | 4624 | |
db946ede | 4625 | fi |
b3076f16 | 4626 | |
b3076f16 | 4627 | ac_ext=c |
4628 | ac_cpp='$CPP $CPPFLAGS' | |
4629 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4630 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4631 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4632 | ||
ec1a68c8 | 4633 | depcc="$CC" am_compiler_list= |
4634 | ||
db946ede | 4635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4636 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
c6254516 | 4637 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
db946ede | 4638 | $as_echo_n "(cached) " >&6 |
ec1a68c8 | 4639 | else |
4640 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4641 | # We make a subdir and do the tests there. Otherwise we can end up | |
4642 | # making bogus files that we don't know about and never remove. For | |
4643 | # instance it was reported that on HP-UX the gcc test will end up | |
4644 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4645 | # in D'. | |
c6254516 | 4646 | rm -rf conftest.dir |
ec1a68c8 | 4647 | mkdir conftest.dir |
4648 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4649 | # using a relative directory. | |
4650 | cp "$am_depcomp" conftest.dir | |
4651 | cd conftest.dir | |
4652 | # We will build objects and dependencies in a subdirectory because | |
4653 | # it helps to detect inapplicable dependency modes. For instance | |
4654 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4655 | # side effect of compilation, but ICC will put the dependencies in | |
4656 | # the current directory while Tru64 will put them in the object | |
4657 | # directory. | |
4658 | mkdir sub | |
4659 | ||
4660 | am_cv_CC_dependencies_compiler_type=none | |
4661 | if test "$am_compiler_list" = ""; then | |
4662 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4663 | fi | |
db946ede | 4664 | am__universal=false |
4665 | case " $depcc " in #( | |
4666 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4667 | esac | |
4668 | ||
ec1a68c8 | 4669 | for depmode in $am_compiler_list; do |
4670 | # Setup a source with many dependencies, because some compilers | |
4671 | # like to wrap large dependency lists on column 80 (with \), and | |
4672 | # we should not choose a depcomp mode which is confused by this. | |
4673 | # | |
4674 | # We need to recreate these files for each test, as the compiler may | |
4675 | # overwrite some of them when testing with obscure command lines. | |
4676 | # This happens at least with the AIX C compiler. | |
4677 | : > sub/conftest.c | |
4678 | for i in 1 2 3 4 5 6; do | |
4679 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4680 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4681 | # Solaris 8's {/usr,}/bin/sh. | |
4682 | touch sub/conftst$i.h | |
4683 | done | |
4684 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4685 | ||
db946ede | 4686 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
4687 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4688 | # handle `-M -o', and we need to detect this. Also, some Intel | |
4689 | # versions had trouble with output in subdirs | |
4690 | am__obj=sub/conftest.${OBJEXT-o} | |
4691 | am__minus_obj="-o $am__obj" | |
ec1a68c8 | 4692 | case $depmode in |
db946ede | 4693 | gcc) |
4694 | # This depmode causes a compiler race in universal mode. | |
4695 | test "$am__universal" = false || continue | |
4696 | ;; | |
ec1a68c8 | 4697 | nosideeffect) |
4698 | # after this tag, mechanisms are not by side-effect, so they'll | |
4699 | # only be used when explicitly requested | |
4700 | if test "x$enable_dependency_tracking" = xyes; then | |
4701 | continue | |
4702 | else | |
4703 | break | |
4704 | fi | |
4705 | ;; | |
c6254516 | 4706 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
db946ede | 4707 | # This compiler won't grok `-c -o', but also, the minuso test has |
4708 | # not run yet. These depmodes are late enough in the game, and | |
4709 | # so weak that their functioning should not be impacted. | |
4710 | am__obj=conftest.${OBJEXT-o} | |
4711 | am__minus_obj= | |
4712 | ;; | |
ec1a68c8 | 4713 | none) break ;; |
4714 | esac | |
ec1a68c8 | 4715 | if depmode=$depmode \ |
db946ede | 4716 | source=sub/conftest.c object=$am__obj \ |
ec1a68c8 | 4717 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
db946ede | 4718 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
ec1a68c8 | 4719 | >/dev/null 2>conftest.err && |
2f65da8f | 4720 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
ec1a68c8 | 4721 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
db946ede | 4722 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
ec1a68c8 | 4723 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4724 | # icc doesn't choke on unknown options, it will just issue warnings | |
4725 | # or remarks (even with -Werror). So we grep stderr for any message | |
4726 | # that says an option was ignored or not supported. | |
4727 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4728 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4729 | # The diagnosis changed in icc 8.0: | |
4730 | # icc: Command line remark: option '-MP' not supported | |
4731 | if (grep 'ignoring option' conftest.err || | |
4732 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4733 | am_cv_CC_dependencies_compiler_type=$depmode | |
4734 | break | |
4735 | fi | |
4736 | fi | |
4737 | done | |
4738 | ||
4739 | cd .. | |
4740 | rm -rf conftest.dir | |
4741 | else | |
4742 | am_cv_CC_dependencies_compiler_type=none | |
4743 | fi | |
4744 | ||
4745 | fi | |
db946ede | 4746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4747 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
ec1a68c8 | 4748 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4749 | ||
2f65da8f | 4750 | if |
ec1a68c8 | 4751 | test "x$enable_dependency_tracking" != xno \ |
4752 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4753 | am__fastdepCC_TRUE= | |
4754 | am__fastdepCC_FALSE='#' | |
4755 | else | |
4756 | am__fastdepCC_TRUE='#' | |
4757 | am__fastdepCC_FALSE= | |
4758 | fi | |
4759 | ||
4760 | ||
b3076f16 | 4761 | |
0f6fe38c | 4762 | |
07559983 | 4763 | # Extract the first word of "cp", so it can be a program name with args. |
4764 | set dummy cp; ac_word=$2 | |
db946ede | 4765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4766 | $as_echo_n "checking for $ac_word... " >&6; } | |
c6254516 | 4767 | if ${ac_cv_path_CP+:} false; then : |
db946ede | 4768 | $as_echo_n "(cached) " >&6 |
07559983 | 4769 | else |
4770 | case $CP in | |
4771 | [\\/]* | ?:[\\/]*) | |
4772 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
4773 | ;; | |
4774 | *) | |
4775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4776 | for as_dir in $PATH | |
4777 | do | |
4778 | IFS=$as_save_IFS | |
4779 | test -z "$as_dir" && as_dir=. | |
db946ede | 4780 | for ac_exec_ext in '' $ac_executable_extensions; do |
07559983 | 4781 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4782 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" | |
db946ede | 4783 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
07559983 | 4784 | break 2 |
4785 | fi | |
4786 | done | |
db946ede | 4787 | done |
07559983 | 4788 | IFS=$as_save_IFS |
4789 | ||
4790 | ;; | |
4791 | esac | |
4792 | fi | |
4793 | CP=$ac_cv_path_CP | |
4794 | if test -n "$CP"; then | |
db946ede | 4795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 |
4796 | $as_echo "$CP" >&6; } | |
07559983 | 4797 | else |
db946ede | 4798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4799 | $as_echo "no" >&6; } | |
07559983 | 4800 | fi |
4801 | ||
4802 | ||
4803 | ||
35305a49 | 4804 | if test -n "$ac_tool_prefix"; then |
4805 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4806 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
db946ede | 4807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4808 | $as_echo_n "checking for $ac_word... " >&6; } | |
c6254516 | 4809 | if ${ac_cv_prog_RANLIB+:} false; then : |
db946ede | 4810 | $as_echo_n "(cached) " >&6 |
2f61d1d7 | 4811 | else |
35305a49 | 4812 | if test -n "$RANLIB"; then |
4813 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4814 | else | |
2f61d1d7 | 4815 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4816 | for as_dir in $PATH | |
4817 | do | |
4818 | IFS=$as_save_IFS | |
4819 | test -z "$as_dir" && as_dir=. | |
db946ede | 4820 | for ac_exec_ext in '' $ac_executable_extensions; do |
0bd0bef6 | 4821 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
35305a49 | 4822 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
db946ede | 4823 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
35305a49 | 4824 | break 2 |
2f61d1d7 | 4825 | fi |
35305a49 | 4826 | done |
db946ede | 4827 | done |
a8b2ad8d | 4828 | IFS=$as_save_IFS |
2f61d1d7 | 4829 | |
b3076f16 | 4830 | fi |
35305a49 | 4831 | fi |
4832 | RANLIB=$ac_cv_prog_RANLIB | |
4833 | if test -n "$RANLIB"; then | |
db946ede | 4834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
4835 | $as_echo "$RANLIB" >&6; } | |
b3076f16 | 4836 | else |
db946ede | 4837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4838 | $as_echo "no" >&6; } | |
2f61d1d7 | 4839 | fi |
2f61d1d7 | 4840 | |
a8b2ad8d | 4841 | |
b3076f16 | 4842 | fi |
35305a49 | 4843 | if test -z "$ac_cv_prog_RANLIB"; then |
4844 | ac_ct_RANLIB=$RANLIB | |
4845 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4846 | set dummy ranlib; ac_word=$2 | |
db946ede | 4847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4848 | $as_echo_n "checking for $ac_word... " >&6; } | |
c6254516 | 4849 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
db946ede | 4850 | $as_echo_n "(cached) " >&6 |
2f61d1d7 | 4851 | else |
35305a49 | 4852 | if test -n "$ac_ct_RANLIB"; then |
4853 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2f61d1d7 | 4854 | else |
35305a49 | 4855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4856 | for as_dir in $PATH | |
4857 | do | |
4858 | IFS=$as_save_IFS | |
4859 | test -z "$as_dir" && as_dir=. | |
db946ede | 4860 | for ac_exec_ext in '' $ac_executable_extensions; do |
0bd0bef6 | 4861 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
35305a49 | 4862 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
db946ede | 4863 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
35305a49 | 4864 | break 2 |
4865 | fi | |
4866 | done | |
db946ede | 4867 | done |
a8b2ad8d | 4868 | IFS=$as_save_IFS |
35305a49 | 4869 | |
b3076f16 | 4870 | fi |
2f61d1d7 | 4871 | fi |
db946ede | 4872 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
4873 | if test -n "$ac_ct_RANLIB"; then | |
4874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
4875 | $as_echo "$ac_ct_RANLIB" >&6; } | |
4876 | else | |
4877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4878 | $as_echo "no" >&6; } | |
b3076f16 | 4879 | fi |
b3076f16 | 4880 | |
db946ede | 4881 | if test "x$ac_ct_RANLIB" = x; then |
4882 | RANLIB=":" | |
4883 | else | |
4884 | case $cross_compiling:$ac_tool_warned in | |
4885 | yes:) | |
4886 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4887 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4888 | ac_tool_warned=yes ;; | |
4889 | esac | |
4890 | RANLIB=$ac_ct_RANLIB | |
4891 | fi | |
4892 | else | |
4893 | RANLIB="$ac_cv_prog_RANLIB" | |
b3076f16 | 4894 | fi |
4895 | ||
4896 | ||
db946ede | 4897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
4898 | $as_echo_n "checking whether ln -s works... " >&6; } | |
4899 | LN_S=$as_ln_s | |
4900 | if test "$LN_S" = "ln -s"; then | |
4901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4902 | $as_echo "yes" >&6; } | |
b3076f16 | 4903 | else |
db946ede | 4904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
4905 | $as_echo "no, using $LN_S" >&6; } | |
4906 | fi | |
b3076f16 | 4907 | |
db946ede | 4908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
4909 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4910 | set x ${MAKE-make} | |
4911 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
c6254516 | 4912 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
db946ede | 4913 | $as_echo_n "(cached) " >&6 |
4914 | else | |
4915 | cat >conftest.make <<\_ACEOF | |
4916 | SHELL = /bin/sh | |
4917 | all: | |
4918 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
b3076f16 | 4919 | _ACEOF |
c6254516 | 4920 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
db946ede | 4921 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
4922 | *@@@%%%=?*=@@@%%%*) | |
4923 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4924 | *) | |
4925 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
a8b2ad8d | 4926 | esac |
db946ede | 4927 | rm -f conftest.make |
4928 | fi | |
4929 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
4930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4931 | $as_echo "yes" >&6; } | |
4932 | SET_MAKE= | |
b3076f16 | 4933 | else |
db946ede | 4934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4935 | $as_echo "no" >&6; } | |
4936 | SET_MAKE="MAKE=${MAKE-make}" | |
b3076f16 | 4937 | fi |
a8b2ad8d | 4938 | |
db946ede | 4939 | ac_ext=c |
4940 | ac_cpp='$CPP $CPPFLAGS' | |
4941 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4942 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4943 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
4945 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
4946 | # On Suns, sometimes $CPP names a directory. | |
4947 | if test -n "$CPP" && test -d "$CPP"; then | |
4948 | CPP= | |
b3076f16 | 4949 | fi |
db946ede | 4950 | if test -z "$CPP"; then |
c6254516 | 4951 | if ${ac_cv_prog_CPP+:} false; then : |
db946ede | 4952 | $as_echo_n "(cached) " >&6 |
4953 | else | |
4954 | # Double quotes because CPP needs to be expanded | |
4955 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4956 | do | |
4957 | ac_preproc_ok=false | |
4958 | for ac_c_preproc_warn_flag in '' yes | |
4959 | do | |
4960 | # Use a header file that comes with gcc, so configuring glibc | |
4961 | # with a fresh cross-compiler works. | |
4962 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4963 | # <limits.h> exists even on freestanding compilers. | |
4964 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4965 | # not just through cpp. "Syntax error" is here to catch this case. | |
4966 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4967 | /* end confdefs.h. */ | |
4968 | #ifdef __STDC__ | |
4969 | # include <limits.h> | |
4970 | #else | |
4971 | # include <assert.h> | |
4972 | #endif | |
4973 | Syntax error | |
b3076f16 | 4974 | _ACEOF |
db946ede | 4975 | if ac_fn_c_try_cpp "$LINENO"; then : |
b3076f16 | 4976 | |
db946ede | 4977 | else |
4978 | # Broken: fails on valid input. | |
4979 | continue | |
b3076f16 | 4980 | fi |
c6254516 | 4981 | rm -f conftest.err conftest.i conftest.$ac_ext |
b3076f16 | 4982 | |
db946ede | 4983 | # OK, works on sane cases. Now check whether nonexistent headers |
4984 | # can be detected and how. | |
4985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b3076f16 | 4986 | /* end confdefs.h. */ |
db946ede | 4987 | #include <ac_nonexistent.h> |
ff3b058a | 4988 | _ACEOF |
db946ede | 4989 | if ac_fn_c_try_cpp "$LINENO"; then : |
4990 | # Broken: success on invalid input. | |
4991 | continue | |
0f6fe38c | 4992 | else |
db946ede | 4993 | # Passes both tests. |
4994 | ac_preproc_ok=: | |
4995 | break | |
0f6fe38c | 4996 | fi |
c6254516 | 4997 | rm -f conftest.err conftest.i conftest.$ac_ext |
0f6fe38c | 4998 | |
db946ede | 4999 | done |
5000 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
c6254516 | 5001 | rm -f conftest.i conftest.err conftest.$ac_ext |
db946ede | 5002 | if $ac_preproc_ok; then : |
5003 | break | |
0f6fe38c | 5004 | fi |
0f6fe38c | 5005 | |
db946ede | 5006 | done |
5007 | ac_cv_prog_CPP=$CPP | |
0f6fe38c | 5008 | |
5009 | fi | |
db946ede | 5010 | CPP=$ac_cv_prog_CPP |
5011 | else | |
5012 | ac_cv_prog_CPP=$CPP | |
5013 | fi | |
5014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
5015 | $as_echo "$CPP" >&6; } | |
5016 | ac_preproc_ok=false | |
5017 | for ac_c_preproc_warn_flag in '' yes | |
0f6fe38c | 5018 | do |
db946ede | 5019 | # Use a header file that comes with gcc, so configuring glibc |
5020 | # with a fresh cross-compiler works. | |
5021 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5022 | # <limits.h> exists even on freestanding compilers. | |
5023 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5024 | # not just through cpp. "Syntax error" is here to catch this case. | |
5025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
0f6fe38c | 5026 | /* end confdefs.h. */ |
db946ede | 5027 | #ifdef __STDC__ |
5028 | # include <limits.h> | |
5029 | #else | |
5030 | # include <assert.h> | |
5031 | #endif | |
5032 | Syntax error | |
0f6fe38c | 5033 | _ACEOF |
db946ede | 5034 | if ac_fn_c_try_cpp "$LINENO"; then : |
35305a49 | 5035 | |
db946ede | 5036 | else |
5037 | # Broken: fails on valid input. | |
5038 | continue | |
35305a49 | 5039 | fi |
c6254516 | 5040 | rm -f conftest.err conftest.i conftest.$ac_ext |
a8b2ad8d | 5041 | |
db946ede | 5042 | # OK, works on sane cases. Now check whether nonexistent headers |
5043 | # can be detected and how. | |
5044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5045 | /* end confdefs.h. */ | |
5046 | #include <ac_nonexistent.h> | |
35305a49 | 5047 | _ACEOF |
db946ede | 5048 | if ac_fn_c_try_cpp "$LINENO"; then : |
5049 | # Broken: success on invalid input. | |
5050 | continue | |
5051 | else | |
5052 | # Passes both tests. | |
5053 | ac_preproc_ok=: | |
5054 | break | |
35305a49 | 5055 | fi |
c6254516 | 5056 | rm -f conftest.err conftest.i conftest.$ac_ext |
35305a49 | 5057 | |
0f6fe38c | 5058 | done |
db946ede | 5059 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
c6254516 | 5060 | rm -f conftest.i conftest.err conftest.$ac_ext |
db946ede | 5061 | if $ac_preproc_ok; then : |
35305a49 | 5062 | |
db946ede | 5063 | else |
5064 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5065 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
c6254516 R |
5066 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
5067 | See \`config.log' for more details" "$LINENO" 5; } | |
db946ede | 5068 | fi |
35305a49 | 5069 | |
db946ede | 5070 | ac_ext=c |
5071 | ac_cpp='$CPP $CPPFLAGS' | |
5072 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5073 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5074 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b3076f16 | 5075 | |
5076 | ||
db946ede | 5077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
5078 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
c6254516 | 5079 | if ${ac_cv_path_GREP+:} false; then : |
db946ede | 5080 | $as_echo_n "(cached) " >&6 |
5081 | else | |
5082 | if test -z "$GREP"; then | |
5083 | ac_path_GREP_found=false | |
5084 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5085 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5086 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5087 | do | |
5088 | IFS=$as_save_IFS | |
5089 | test -z "$as_dir" && as_dir=. | |
5090 | for ac_prog in grep ggrep; do | |
5091 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5092 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
5093 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
5094 | # Check for GNU ac_path_GREP and select it if it is found. | |
5095 | # Check for GNU $ac_path_GREP | |
5096 | case `"$ac_path_GREP" --version 2>&1` in | |
5097 | *GNU*) | |
5098 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5099 | *) | |
5100 | ac_count=0 | |
5101 | $as_echo_n 0123456789 >"conftest.in" | |
5102 | while : | |
5103 | do | |
5104 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5105 | mv "conftest.tmp" "conftest.in" | |
5106 | cp "conftest.in" "conftest.nl" | |
5107 | $as_echo 'GREP' >> "conftest.nl" | |
5108 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5109 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5110 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5111 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5112 | # Best one so far, save it but keep looking for a better one | |
5113 | ac_cv_path_GREP="$ac_path_GREP" | |
5114 | ac_path_GREP_max=$ac_count | |
5115 | fi | |
5116 | # 10*(2^10) chars as input seems more than enough | |
5117 | test $ac_count -gt 10 && break | |
5118 | done | |
5119 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5120 | esac | |
b3076f16 | 5121 | |
db946ede | 5122 | $ac_path_GREP_found && break 3 |
5123 | done | |
5124 | done | |
5125 | done | |
5126 | IFS=$as_save_IFS | |
5127 | if test -z "$ac_cv_path_GREP"; then | |
c6254516 | 5128 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
db946ede | 5129 | fi |
5130 | else | |
5131 | ac_cv_path_GREP=$GREP | |
5132 | fi | |
b3076f16 | 5133 | |
db946ede | 5134 | fi |
5135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5136 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5137 | GREP="$ac_cv_path_GREP" | |
b3076f16 | 5138 | |
5139 | ||
db946ede | 5140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
5141 | $as_echo_n "checking for egrep... " >&6; } | |
c6254516 | 5142 | if ${ac_cv_path_EGREP+:} false; then : |
db946ede | 5143 | $as_echo_n "(cached) " >&6 |
5144 | else | |
5145 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
5146 | then ac_cv_path_EGREP="$GREP -E" | |
5147 | else | |
5148 | if test -z "$EGREP"; then | |
5149 | ac_path_EGREP_found=false | |
5150 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5152 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5153 | do | |
5154 | IFS=$as_save_IFS | |
5155 | test -z "$as_dir" && as_dir=. | |
5156 | for ac_prog in egrep; do | |
5157 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5158 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5159 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
5160 | # Check for GNU ac_path_EGREP and select it if it is found. | |
5161 | # Check for GNU $ac_path_EGREP | |
5162 | case `"$ac_path_EGREP" --version 2>&1` in | |
5163 | *GNU*) | |
5164 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5165 | *) | |
5166 | ac_count=0 | |
5167 | $as_echo_n 0123456789 >"conftest.in" | |
5168 | while : | |
5169 | do | |
5170 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5171 | mv "conftest.tmp" "conftest.in" | |
5172 | cp "conftest.in" "conftest.nl" | |
5173 | $as_echo 'EGREP' >> "conftest.nl" | |
5174 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5175 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5176 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5177 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5178 | # Best one so far, save it but keep looking for a better one | |
5179 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5180 | ac_path_EGREP_max=$ac_count | |
5181 | fi | |
5182 | # 10*(2^10) chars as input seems more than enough | |
5183 | test $ac_count -gt 10 && break | |
5184 | done | |
5185 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5186 | esac | |
b3076f16 | 5187 | |
db946ede | 5188 | $ac_path_EGREP_found && break 3 |
5189 | done | |
5190 | done | |
5191 | done | |
5192 | IFS=$as_save_IFS | |
5193 | if test -z "$ac_cv_path_EGREP"; then | |
c6254516 | 5194 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
db946ede | 5195 | fi |
5196 | else | |
5197 | ac_cv_path_EGREP=$EGREP | |
5198 | fi | |
b3076f16 | 5199 | |
db946ede | 5200 | fi |
5201 | fi | |
5202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
5203 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5204 | EGREP="$ac_cv_path_EGREP" | |
b3076f16 | 5205 | |
5206 | ||
db946ede | 5207 | if test $ac_cv_c_compiler_gnu = yes; then |
5208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 | |
5209 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
c6254516 | 5210 | if ${ac_cv_prog_gcc_traditional+:} false; then : |
db946ede | 5211 | $as_echo_n "(cached) " >&6 |
b3076f16 | 5212 | else |
db946ede | 5213 | ac_pattern="Autoconf.*'x'" |
5214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b3076f16 | 5215 | /* end confdefs.h. */ |
db946ede | 5216 | #include <sgtty.h> |
5217 | Autoconf TIOCGETP | |
b3076f16 | 5218 | _ACEOF |
db946ede | 5219 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5220 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
5221 | ac_cv_prog_gcc_traditional=yes | |
b3076f16 | 5222 | else |
db946ede | 5223 | ac_cv_prog_gcc_traditional=no |
b3076f16 | 5224 | fi |
db946ede | 5225 | rm -f conftest* |
a8b2ad8d | 5226 | |
b3076f16 | 5227 | |
db946ede | 5228 | if test $ac_cv_prog_gcc_traditional = no; then |
5229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b3076f16 | 5230 | /* end confdefs.h. */ |
db946ede | 5231 | #include <termio.h> |
5232 | Autoconf TCGETA | |
b3076f16 | 5233 | _ACEOF |
db946ede | 5234 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5235 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
5236 | ac_cv_prog_gcc_traditional=yes | |
5237 | fi | |
5238 | rm -f conftest* | |
5239 | ||
5240 | fi | |
5241 | fi | |
5242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 | |
5243 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
5244 | if test $ac_cv_prog_gcc_traditional = yes; then | |
5245 | CC="$CC -traditional" | |
5246 | fi | |
5247 | fi | |
5248 | ||
5249 | # Extract the first word of "gmake", so it can be a program name with args. | |
5250 | set dummy gmake; ac_word=$2 | |
5251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5252 | $as_echo_n "checking for $ac_word... " >&6; } | |
c6254516 | 5253 | if ${ac_cv_prog_MAKER+:} false; then : |
db946ede | 5254 | $as_echo_n "(cached) " >&6 |
b3076f16 | 5255 | else |
db946ede | 5256 | if test -n "$MAKER"; then |
5257 | ac_cv_prog_MAKER="$MAKER" # Let the user override the test. | |
5258 | else | |
5259 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5260 | for as_dir in $PATH | |
5261 | do | |
5262 | IFS=$as_save_IFS | |
5263 | test -z "$as_dir" && as_dir=. | |
5264 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5265 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5266 | ac_cv_prog_MAKER="gmake" | |
5267 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5268 | break 2 | |
5269 | fi | |
5270 | done | |
5271 | done | |
5272 | IFS=$as_save_IFS | |
b3076f16 | 5273 | |
db946ede | 5274 | test -z "$ac_cv_prog_MAKER" && ac_cv_prog_MAKER="make" |
5275 | fi | |
5276 | fi | |
5277 | MAKER=$ac_cv_prog_MAKER | |
5278 | if test -n "$MAKER"; then | |
5279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKER" >&5 | |
5280 | $as_echo "$MAKER" >&6; } | |
5281 | else | |
5282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5283 | $as_echo "no" >&6; } | |
b3076f16 | 5284 | fi |
a8b2ad8d | 5285 | |
b3076f16 | 5286 | |
db946ede | 5287 | |
5288 | case $target in | |
5289 | *-freebsd2* | *-freebsdelf2* | *-freebsd*out3*) | |
5290 | ANSI_SRC="" | |
b3076f16 | 5291 | ;; |
db946ede | 5292 | *-freebsd3* | *-freebsdelf3* | *-freebsd*out3*) |
5293 | ANSI_SRC="" | |
5294 | ;; | |
5295 | *-solaris*) | |
5296 | EXTRA_DEFINE="-D__SOLARIS__" | |
5297 | ANSI_SRC="-fno-builtin" | |
5298 | ;; | |
5299 | *-cygwin) | |
5300 | ANSI_SRC="-fno-builtin" | |
5301 | ;; | |
5302 | *-linux*) | |
5303 | EXTRA_DEFINE="-D_GNU_SOURCE" | |
5304 | ANSI_SRC="" | |
5305 | ;; | |
5306 | *) | |
5307 | ANSI_SRC="" | |
b3076f16 | 5308 | ;; |
5309 | esac | |
db946ede | 5310 | CFLAGS="$CFLAGS $EXTRA_DEFINE" |
5311 | ||
5312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 | |
5313 | $as_echo_n "checking for socket in -lsocket... " >&6; } | |
c6254516 | 5314 | if ${ac_cv_lib_socket_socket+:} false; then : |
db946ede | 5315 | $as_echo_n "(cached) " >&6 |
b3076f16 | 5316 | else |
db946ede | 5317 | ac_check_lib_save_LIBS=$LIBS |
5318 | LIBS="-lsocket $LIBS" | |
5319 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5320 | /* end confdefs.h. */ | |
b3076f16 | 5321 | |
db946ede | 5322 | /* Override any GCC internal prototype to avoid an error. |
5323 | Use char because int might match the return type of a GCC | |
5324 | builtin and then its argument prototype would still apply. */ | |
5325 | #ifdef __cplusplus | |
5326 | extern "C" | |
5327 | #endif | |
5328 | char socket (); | |
5329 | int | |
5330 | main () | |
5331 | { | |
5332 | return socket (); | |
5333 | ; | |
5334 | return 0; | |
5335 | } | |
5336 | _ACEOF | |
5337 | if ac_fn_c_try_link "$LINENO"; then : | |
5338 | ac_cv_lib_socket_socket=yes | |
5339 | else | |
5340 | ac_cv_lib_socket_socket=no | |
5341 | fi | |
5342 | rm -f core conftest.err conftest.$ac_objext \ | |
5343 | conftest$ac_exeext conftest.$ac_ext | |
5344 | LIBS=$ac_check_lib_save_LIBS | |
b3076f16 | 5345 | fi |
db946ede | 5346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
5347 | $as_echo "$ac_cv_lib_socket_socket" >&6; } | |
c6254516 | 5348 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
b3076f16 | 5349 | cat >>confdefs.h <<_ACEOF |
db946ede | 5350 | #define HAVE_LIBSOCKET 1 |
b3076f16 | 5351 | _ACEOF |
5352 | ||
db946ede | 5353 | LIBS="-lsocket $LIBS" |
b3076f16 | 5354 | |
db946ede | 5355 | fi |
b3076f16 | 5356 | |
db946ede | 5357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 |
5358 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } | |
c6254516 | 5359 | if ${ac_cv_lib_nsl_gethostbyname+:} false; then : |
db946ede | 5360 | $as_echo_n "(cached) " >&6 |
b3076f16 | 5361 | else |
db946ede | 5362 | ac_check_lib_save_LIBS=$LIBS |
5363 | LIBS="-lnsl $LIBS" | |
5364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b3076f16 | 5365 | /* end confdefs.h. */ |
b3076f16 | 5366 | |
db946ede | 5367 | /* Override any GCC internal prototype to avoid an error. |
5368 | Use char because int might match the return type of a GCC | |
5369 | builtin and then its argument prototype would still apply. */ | |
5370 | #ifdef __cplusplus | |
5371 | extern "C" | |
5372 | #endif | |
5373 | char gethostbyname (); | |
b3076f16 | 5374 | int |
5375 | main () | |
5376 | { | |
db946ede | 5377 | return gethostbyname (); |
b3076f16 | 5378 | ; |
5379 | return 0; | |
5380 | } | |
5381 | _ACEOF | |
db946ede | 5382 | if ac_fn_c_try_link "$LINENO"; then : |
5383 | ac_cv_lib_nsl_gethostbyname=yes | |
b3076f16 | 5384 | else |
db946ede | 5385 | ac_cv_lib_nsl_gethostbyname=no |
5386 | fi | |
5387 | rm -f core conftest.err conftest.$ac_objext \ | |
5388 | conftest$ac_exeext conftest.$ac_ext | |
5389 | LIBS=$ac_check_lib_save_LIBS | |
5390 | fi | |
5391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
5392 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } | |
c6254516 | 5393 | if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : |
db946ede | 5394 | cat >>confdefs.h <<_ACEOF |
5395 | #define HAVE_LIBNSL 1 | |
b3076f16 | 5396 | _ACEOF |
db946ede | 5397 | |
5398 | LIBS="-lnsl $LIBS" | |
5399 | ||
5400 | fi | |
5401 | ||
5402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5 | |
5403 | $as_echo_n "checking for main in -lm... " >&6; } | |
c6254516 | 5404 | if ${ac_cv_lib_m_main+:} false; then : |
db946ede | 5405 | $as_echo_n "(cached) " >&6 |
5406 | else | |
5407 | ac_check_lib_save_LIBS=$LIBS | |
5408 | LIBS="-lm $LIBS" | |
5409 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b3076f16 | 5410 | /* end confdefs.h. */ |
db946ede | 5411 | |
b3076f16 | 5412 | |
5413 | int | |
5414 | main () | |
5415 | { | |
db946ede | 5416 | return main (); |
b3076f16 | 5417 | ; |
5418 | return 0; | |
5419 | } | |
5420 | _ACEOF | |
db946ede | 5421 | if ac_fn_c_try_link "$LINENO"; then : |
5422 | ac_cv_lib_m_main=yes | |
b3076f16 | 5423 | else |
db946ede | 5424 | ac_cv_lib_m_main=no |
b3076f16 | 5425 | fi |
db946ede | 5426 | rm -f core conftest.err conftest.$ac_objext \ |
5427 | conftest$ac_exeext conftest.$ac_ext | |
5428 | LIBS=$ac_check_lib_save_LIBS | |
b3076f16 | 5429 | fi |
db946ede | 5430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5 |
5431 | $as_echo "$ac_cv_lib_m_main" >&6; } | |
c6254516 | 5432 | if test "x$ac_cv_lib_m_main" = xyes; then : |
db946ede | 5433 | cat >>confdefs.h <<_ACEOF |
5434 | #define HAVE_LIBM 1 | |
2f61d1d7 | 5435 | _ACEOF |
5436 | ||
db946ede | 5437 | LIBS="-lm $LIBS" |
5438 | ||
2f61d1d7 | 5439 | fi |
5440 | ||
db946ede | 5441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP_open in -lGeoIP" >&5 |
5442 | $as_echo_n "checking for GeoIP_open in -lGeoIP... " >&6; } | |
c6254516 | 5443 | if ${ac_cv_lib_GeoIP_GeoIP_open+:} false; then : |
db946ede | 5444 | $as_echo_n "(cached) " >&6 |
2f61d1d7 | 5445 | else |
db946ede | 5446 | ac_check_lib_save_LIBS=$LIBS |
5447 | LIBS="-lGeoIP $LIBS" | |
5448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5449 | /* end confdefs.h. */ | |
2f61d1d7 | 5450 | |
db946ede | 5451 | /* Override any GCC internal prototype to avoid an error. |
5452 | Use char because int might match the return type of a GCC | |
5453 | builtin and then its argument prototype would still apply. */ | |
5454 | #ifdef __cplusplus | |
5455 | extern "C" | |
5456 | #endif | |
5457 | char GeoIP_open (); | |
2f61d1d7 | 5458 | int |
5459 | main () | |
5460 | { | |
db946ede | 5461 | return GeoIP_open (); |
2f61d1d7 | 5462 | ; |
5463 | return 0; | |
5464 | } | |
5465 | _ACEOF | |
db946ede | 5466 | if ac_fn_c_try_link "$LINENO"; then : |
5467 | ac_cv_lib_GeoIP_GeoIP_open=yes | |
2f61d1d7 | 5468 | else |
db946ede | 5469 | ac_cv_lib_GeoIP_GeoIP_open=no |
5470 | fi | |
5471 | rm -f core conftest.err conftest.$ac_objext \ | |
5472 | conftest$ac_exeext conftest.$ac_ext | |
5473 | LIBS=$ac_check_lib_save_LIBS | |
5474 | fi | |
5475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5 | |
5476 | $as_echo "$ac_cv_lib_GeoIP_GeoIP_open" >&6; } | |
c6254516 | 5477 | if test "x$ac_cv_lib_GeoIP_GeoIP_open" = xyes; then : |
db946ede | 5478 | cat >>confdefs.h <<_ACEOF |
5479 | #define HAVE_LIBGEOIP 1 | |
2f61d1d7 | 5480 | _ACEOF |
db946ede | 5481 | |
5482 | LIBS="-lGeoIP $LIBS" | |
5483 | ||
5484 | fi | |
5485 | ||
5486 | ||
5487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
5488 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
c6254516 | 5489 | if ${ac_cv_header_stdc+:} false; then : |
db946ede | 5490 | $as_echo_n "(cached) " >&6 |
5491 | else | |
5492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2f61d1d7 | 5493 | /* end confdefs.h. */ |
db946ede | 5494 | #include <stdlib.h> |
5495 | #include <stdarg.h> | |
5496 | #include <string.h> | |
5497 | #include <float.h> | |
2f61d1d7 | 5498 | |
5499 | int | |
5500 | main () | |
5501 | { | |
db946ede | 5502 | |
2f61d1d7 | 5503 | ; |
5504 | return 0; | |
5505 | } | |
b3076f16 | 5506 | _ACEOF |
db946ede | 5507 | if ac_fn_c_try_compile "$LINENO"; then : |
5508 | ac_cv_header_stdc=yes | |
2f61d1d7 | 5509 | else |
db946ede | 5510 | ac_cv_header_stdc=no |
2f61d1d7 | 5511 | fi |
a8b2ad8d | 5512 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a8b2ad8d | 5513 | |
db946ede | 5514 | if test $ac_cv_header_stdc = yes; then |
5515 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5517 | /* end confdefs.h. */ | |
5518 | #include <string.h> | |
2f61d1d7 | 5519 | |
2f61d1d7 | 5520 | _ACEOF |
db946ede | 5521 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5522 | $EGREP "memchr" >/dev/null 2>&1; then : | |
b3076f16 | 5523 | |
db946ede | 5524 | else |
5525 | ac_cv_header_stdc=no | |
2f61d1d7 | 5526 | fi |
db946ede | 5527 | rm -f conftest* |
b3076f16 | 5528 | |
db946ede | 5529 | fi |
b3076f16 | 5530 | |
db946ede | 5531 | if test $ac_cv_header_stdc = yes; then |
5532 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5533 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5534 | /* end confdefs.h. */ | |
5535 | #include <stdlib.h> | |
21f6caee | 5536 | |
db946ede | 5537 | _ACEOF |
5538 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5539 | $EGREP "free" >/dev/null 2>&1; then : | |
b3076f16 | 5540 | |
db946ede | 5541 | else |
5542 | ac_cv_header_stdc=no | |
5543 | fi | |
5544 | rm -f conftest* | |
b3076f16 | 5545 | |
db946ede | 5546 | fi |
b3076f16 | 5547 | |
db946ede | 5548 | if test $ac_cv_header_stdc = yes; then |
5549 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5550 | if test "$cross_compiling" = yes; then : | |
5551 | : | |
5552 | else | |
5553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b3076f16 | 5554 | /* end confdefs.h. */ |
db946ede | 5555 | #include <ctype.h> |
5556 | #include <stdlib.h> | |
5557 | #if ((' ' & 0x0FF) == 0x020) | |
5558 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5559 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
b3076f16 | 5560 | #else |
db946ede | 5561 | # define ISLOWER(c) \ |
5562 | (('a' <= (c) && (c) <= 'i') \ | |
5563 | || ('j' <= (c) && (c) <= 'r') \ | |
5564 | || ('s' <= (c) && (c) <= 'z')) | |
5565 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
b3076f16 | 5566 | #endif |
5567 | ||
db946ede | 5568 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
b3076f16 | 5569 | int |
5570 | main () | |
5571 | { | |
db946ede | 5572 | int i; |
5573 | for (i = 0; i < 256; i++) | |
5574 | if (XOR (islower (i), ISLOWER (i)) | |
5575 | || toupper (i) != TOUPPER (i)) | |
5576 | return 2; | |
b3076f16 | 5577 | return 0; |
ff3b058a | 5578 | } |
5579 | _ACEOF | |
db946ede | 5580 | if ac_fn_c_try_run "$LINENO"; then : |
b3076f16 | 5581 | |
db946ede | 5582 | else |
5583 | ac_cv_header_stdc=no | |
b3076f16 | 5584 | fi |
db946ede | 5585 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5586 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
b3076f16 | 5587 | fi |
b3076f16 | 5588 | |
b3076f16 | 5589 | fi |
db946ede | 5590 | fi |
5591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
5592 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5593 | if test $ac_cv_header_stdc = yes; then | |
b3076f16 | 5594 | |
db946ede | 5595 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
0f6fe38c | 5596 | |
db946ede | 5597 | fi |
0f6fe38c | 5598 | |
5599 | ||
db946ede | 5600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
5601 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
c6254516 | 5602 | if ${ac_cv_header_time+:} false; then : |
db946ede | 5603 | $as_echo_n "(cached) " >&6 |
5604 | else | |
5605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b3076f16 | 5606 | /* end confdefs.h. */ |
db946ede | 5607 | #include <sys/types.h> |
5608 | #include <sys/time.h> | |
5609 | #include <time.h> | |
b3076f16 | 5610 | |
db946ede | 5611 | int |
5612 | main () | |
5613 | { | |
5614 | if ((struct tm *) 0) | |
5615 | return 0; | |
5616 | ; | |
5617 | return 0; | |
5618 | } | |
5619 | _ACEOF | |
5620 | if ac_fn_c_try_compile "$LINENO"; then : | |
5621 | ac_cv_header_time=yes | |
5622 | else | |
5623 | ac_cv_header_time=no | |
5624 | fi | |
5625 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5626 | fi | |
5627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | |
5628 | $as_echo "$ac_cv_header_time" >&6; } | |
5629 | if test $ac_cv_header_time = yes; then | |
b3076f16 | 5630 | |
db946ede | 5631 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
b3076f16 | 5632 | |
db946ede | 5633 | fi |
b3076f16 | 5634 | |
db946ede | 5635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
5636 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
c6254516 | 5637 | if ${ac_cv_struct_tm+:} false; then : |
db946ede | 5638 | $as_echo_n "(cached) " >&6 |
5639 | else | |
5640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5641 | /* end confdefs.h. */ | |
5642 | #include <sys/types.h> | |
5643 | #include <time.h> | |
b3076f16 | 5644 | |
5645 | int | |
5646 | main () | |
5647 | { | |
db946ede | 5648 | struct tm tm; |
5649 | int *p = &tm.tm_sec; | |
5650 | return !p; | |
b3076f16 | 5651 | ; |
5652 | return 0; | |
5653 | } | |
5654 | _ACEOF | |
db946ede | 5655 | if ac_fn_c_try_compile "$LINENO"; then : |
5656 | ac_cv_struct_tm=time.h | |
b3076f16 | 5657 | else |
db946ede | 5658 | ac_cv_struct_tm=sys/time.h |
5659 | fi | |
5660 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 5661 | fi |
db946ede | 5662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
5663 | $as_echo "$ac_cv_struct_tm" >&6; } | |
5664 | if test $ac_cv_struct_tm = sys/time.h; then | |
5665 | ||
5666 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | |
a8b2ad8d | 5667 | |
b3076f16 | 5668 | fi |
db946ede | 5669 | |
5670 | ||
5671 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5672 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5673 | inttypes.h stdint.h unistd.h | |
5674 | do : | |
5675 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5676 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5677 | " | |
c6254516 | 5678 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
b3076f16 | 5679 | cat >>confdefs.h <<_ACEOF |
db946ede | 5680 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b3076f16 | 5681 | _ACEOF |
5682 | ||
5683 | fi | |
db946ede | 5684 | |
b3076f16 | 5685 | done |
5686 | ||
db946ede | 5687 | |
5688 | for ac_header in GeoIP.h GeoIPCity.h arpa/inet.h fcntl.h math.h tgmath.h malloc.h netdb.h netinet/in.h sys/resource.h sys/timeb.h sys/times.h sys/param.h sys/socket.h sys/time.h sys/types.h sys/wait.h unistd.h getopt.h memory.h arpa/inet.h sys/mman.h sys/stat.h dirent.h sys/epoll.h sys/event.h | |
5689 | do : | |
5690 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5691 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
c6254516 | 5692 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
db946ede | 5693 | cat >>confdefs.h <<_ACEOF |
5694 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5695 | _ACEOF | |
5696 | ||
1136f709 | 5697 | fi |
b3076f16 | 5698 | |
db946ede | 5699 | done |
5700 | ||
b3076f16 | 5701 | |
db946ede | 5702 | ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h> |
5703 | #include <sys/socket.h> | |
5704 | " | |
c6254516 | 5705 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : |
b3076f16 | 5706 | |
db946ede | 5707 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h |
b3076f16 | 5708 | |
db946ede | 5709 | fi |
b3076f16 | 5710 | |
db946ede | 5711 | ac_fn_c_check_member "$LINENO" "struct addrinfo" "ai_flags" "ac_cv_member_struct_addrinfo_ai_flags" "#include <sys/types.h> |
5712 | #include <sys/socket.h> | |
5713 | #include <netdb.h> | |
5714 | " | |
c6254516 | 5715 | if test "x$ac_cv_member_struct_addrinfo_ai_flags" = xyes; then : |
b3076f16 | 5716 | |
db946ede | 5717 | $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h |
b3076f16 | 5718 | |
db946ede | 5719 | fi |
b3076f16 | 5720 | |
b3076f16 | 5721 | |
db946ede | 5722 | for ac_func in freeaddrinfo getaddrinfo gai_strerror getnameinfo getpagesize memcpy memset strdup strerror strsignal localtime_r setrlimit getopt getopt_long regcomp regexec regfree sysconf inet_aton epoll_create kqueue kevent select gettimeofday times GetProcessTimes mprotect |
5723 | do : | |
5724 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5725 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
c6254516 | 5726 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
db946ede | 5727 | cat >>confdefs.h <<_ACEOF |
5728 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5729 | _ACEOF | |
b3076f16 | 5730 | |
db946ede | 5731 | fi |
5732 | done | |
b3076f16 | 5733 | |
db946ede | 5734 | |
5735 | ||
5736 | if test $ac_cv_func_gettimeofday = no; then | |
5737 | for ac_func in ftime | |
5738 | do : | |
5739 | ac_fn_c_check_func "$LINENO" "ftime" "ac_cv_func_ftime" | |
c6254516 | 5740 | if test "x$ac_cv_func_ftime" = xyes; then : |
db946ede | 5741 | cat >>confdefs.h <<_ACEOF |
5742 | #define HAVE_FTIME 1 | |
b3076f16 | 5743 | _ACEOF |
b3076f16 | 5744 | |
db946ede | 5745 | else |
c6254516 | 5746 | as_fn_error $? "ftime or gettimeofday required. X3 build will fail." "$LINENO" 5 |
b3076f16 | 5747 | fi |
db946ede | 5748 | done |
a8b2ad8d | 5749 | |
b3076f16 | 5750 | fi |
db946ede | 5751 | |
5752 | for ac_func in socket strcspn strspn strtod strtoul | |
5753 | do : | |
5754 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5755 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
c6254516 | 5756 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
b3076f16 | 5757 | cat >>confdefs.h <<_ACEOF |
db946ede | 5758 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b3076f16 | 5759 | _ACEOF |
5760 | ||
5761 | else | |
c6254516 | 5762 | as_fn_error $? "a required function was not found. X3 build will fail." "$LINENO" 5 |
b3076f16 | 5763 | fi |
5764 | done | |
5765 | ||
5766 | ||
c6254516 R |
5767 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
5768 | if test "x$ac_cv_type_size_t" = xyes; then : | |
5769 | ||
5770 | else | |
5771 | ||
5772 | cat >>confdefs.h <<_ACEOF | |
5773 | #define size_t unsigned int | |
5774 | _ACEOF | |
5775 | ||
5776 | fi | |
5777 | ||
b3076f16 | 5778 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
5779 | # for constant arguments. Useless! | |
db946ede | 5780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
5781 | $as_echo_n "checking for working alloca.h... " >&6; } | |
c6254516 | 5782 | if ${ac_cv_working_alloca_h+:} false; then : |
db946ede | 5783 | $as_echo_n "(cached) " >&6 |
b3076f16 | 5784 | else |
db946ede | 5785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3076f16 | 5786 | /* end confdefs.h. */ |
5787 | #include <alloca.h> | |
5788 | int | |
5789 | main () | |
5790 | { | |
5791 | char *p = (char *) alloca (2 * sizeof (int)); | |
a8b2ad8d | 5792 | if (p) return 0; |
b3076f16 | 5793 | ; |
5794 | return 0; | |
5795 | } | |
5796 | _ACEOF | |
db946ede | 5797 | if ac_fn_c_try_link "$LINENO"; then : |
b3076f16 | 5798 | ac_cv_working_alloca_h=yes |
5799 | else | |
db946ede | 5800 | ac_cv_working_alloca_h=no |
b3076f16 | 5801 | fi |
db946ede | 5802 | rm -f core conftest.err conftest.$ac_objext \ |
5803 | conftest$ac_exeext conftest.$ac_ext | |
b3076f16 | 5804 | fi |
db946ede | 5805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
5806 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
b3076f16 | 5807 | if test $ac_cv_working_alloca_h = yes; then |
5808 | ||
db946ede | 5809 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
b3076f16 | 5810 | |
5811 | fi | |
5812 | ||
db946ede | 5813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
5814 | $as_echo_n "checking for alloca... " >&6; } | |
c6254516 | 5815 | if ${ac_cv_func_alloca_works+:} false; then : |
db946ede | 5816 | $as_echo_n "(cached) " >&6 |
b3076f16 | 5817 | else |
db946ede | 5818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3076f16 | 5819 | /* end confdefs.h. */ |
5820 | #ifdef __GNUC__ | |
5821 | # define alloca __builtin_alloca | |
5822 | #else | |
5823 | # ifdef _MSC_VER | |
5824 | # include <malloc.h> | |
5825 | # define alloca _alloca | |
5826 | # else | |
0bd0bef6 | 5827 | # ifdef HAVE_ALLOCA_H |
b3076f16 | 5828 | # include <alloca.h> |
5829 | # else | |
5830 | # ifdef _AIX | |
5831 | #pragma alloca | |
5832 | # else | |
5833 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
c6254516 | 5834 | void *alloca (size_t); |
b3076f16 | 5835 | # endif |
5836 | # endif | |
5837 | # endif | |
5838 | # endif | |
5839 | #endif | |
5840 | ||
5841 | int | |
5842 | main () | |
5843 | { | |
5844 | char *p = (char *) alloca (1); | |
a8b2ad8d | 5845 | if (p) return 0; |
b3076f16 | 5846 | ; |
5847 | return 0; | |
5848 | } | |
5849 | _ACEOF | |
db946ede | 5850 | if ac_fn_c_try_link "$LINENO"; then : |
b3076f16 | 5851 | ac_cv_func_alloca_works=yes |
5852 | else | |
db946ede | 5853 | ac_cv_func_alloca_works=no |
b3076f16 | 5854 | fi |
db946ede | 5855 | rm -f core conftest.err conftest.$ac_objext \ |
5856 | conftest$ac_exeext conftest.$ac_ext | |
b3076f16 | 5857 | fi |
db946ede | 5858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
5859 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
b3076f16 | 5860 | |
5861 | if test $ac_cv_func_alloca_works = yes; then | |
5862 | ||
db946ede | 5863 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
b3076f16 | 5864 | |
5865 | else | |
5866 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
5867 | # that cause trouble. Some versions do not even contain alloca or | |
5868 | # contain a buggy version. If you still want to use their alloca, | |
5869 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
5870 | ||
a8b2ad8d | 5871 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
b3076f16 | 5872 | |
db946ede | 5873 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
b3076f16 | 5874 | |
5875 | ||
db946ede | 5876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
5877 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
c6254516 | 5878 | if ${ac_cv_os_cray+:} false; then : |
db946ede | 5879 | $as_echo_n "(cached) " >&6 |
b3076f16 | 5880 | else |
db946ede | 5881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3076f16 | 5882 | /* end confdefs.h. */ |
a8b2ad8d | 5883 | #if defined CRAY && ! defined CRAY2 |
b3076f16 | 5884 | webecray |
5885 | #else | |
5886 | wenotbecray | |
5887 | #endif | |
5888 | ||
5889 | _ACEOF | |
5890 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
db946ede | 5891 | $EGREP "webecray" >/dev/null 2>&1; then : |
b3076f16 | 5892 | ac_cv_os_cray=yes |
5893 | else | |
5894 | ac_cv_os_cray=no | |
5895 | fi | |
5896 | rm -f conftest* | |
5897 | ||
5898 | fi | |
db946ede | 5899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
5900 | $as_echo "$ac_cv_os_cray" >&6; } | |
b3076f16 | 5901 | if test $ac_cv_os_cray = yes; then |
5902 | for ac_func in _getb67 GETB67 getb67; do | |
db946ede | 5903 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5904 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
c6254516 | 5905 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
b3076f16 | 5906 | |
5907 | cat >>confdefs.h <<_ACEOF | |
5908 | #define CRAY_STACKSEG_END $ac_func | |
5909 | _ACEOF | |
5910 | ||
5911 | break | |
5912 | fi | |
5913 | ||
5914 | done | |
5915 | fi | |
5916 | ||
db946ede | 5917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
5918 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
c6254516 | 5919 | if ${ac_cv_c_stack_direction+:} false; then : |
db946ede | 5920 | $as_echo_n "(cached) " >&6 |
b3076f16 | 5921 | else |
db946ede | 5922 | if test "$cross_compiling" = yes; then : |
b3076f16 | 5923 | ac_cv_c_stack_direction=0 |
5924 | else | |
db946ede | 5925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3076f16 | 5926 | /* end confdefs.h. */ |
a8b2ad8d | 5927 | $ac_includes_default |
b3076f16 | 5928 | int |
5929 | find_stack_direction () | |
5930 | { | |
5931 | static char *addr = 0; | |
5932 | auto char dummy; | |
5933 | if (addr == 0) | |
5934 | { | |
5935 | addr = &dummy; | |
5936 | return find_stack_direction (); | |
5937 | } | |
5938 | else | |
5939 | return (&dummy > addr) ? 1 : -1; | |
5940 | } | |
5941 | ||
5942 | int | |
5943 | main () | |
5944 | { | |
a8b2ad8d | 5945 | return find_stack_direction () < 0; |
b3076f16 | 5946 | } |
5947 | _ACEOF | |
db946ede | 5948 | if ac_fn_c_try_run "$LINENO"; then : |
b3076f16 | 5949 | ac_cv_c_stack_direction=1 |
5950 | else | |
db946ede | 5951 | ac_cv_c_stack_direction=-1 |
b3076f16 | 5952 | fi |
db946ede | 5953 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5954 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
b3076f16 | 5955 | fi |
a8b2ad8d | 5956 | |
b3076f16 | 5957 | fi |
db946ede | 5958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
5959 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
b3076f16 | 5960 | cat >>confdefs.h <<_ACEOF |
5961 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
5962 | _ACEOF | |
5963 | ||
5964 | ||
5965 | fi | |
5966 | ||
c6254516 R |
5967 | |
5968 | ||
5969 | ||
5970 | for ac_header in $ac_header_list | |
db946ede | 5971 | do : |
5972 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c6254516 R |
5973 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
5974 | " | |
5975 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
b3076f16 | 5976 | cat >>confdefs.h <<_ACEOF |
db946ede | 5977 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b3076f16 | 5978 | _ACEOF |
5979 | ||
5980 | fi | |
5981 | ||
5982 | done | |
5983 | ||
c6254516 R |
5984 | |
5985 | ||
5986 | ||
5987 | ||
5988 | ||
5989 | ||
5990 | ||
b3076f16 | 5991 | for ac_func in getpagesize |
db946ede | 5992 | do : |
5993 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | |
c6254516 | 5994 | if test "x$ac_cv_func_getpagesize" = xyes; then : |
b3076f16 | 5995 | cat >>confdefs.h <<_ACEOF |
db946ede | 5996 | #define HAVE_GETPAGESIZE 1 |
b3076f16 | 5997 | _ACEOF |
5998 | ||
5999 | fi | |
6000 | done | |
6001 | ||
db946ede | 6002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 |
6003 | $as_echo_n "checking for working mmap... " >&6; } | |
c6254516 | 6004 | if ${ac_cv_func_mmap_fixed_mapped+:} false; then : |
db946ede | 6005 | $as_echo_n "(cached) " >&6 |
b3076f16 | 6006 | else |
db946ede | 6007 | if test "$cross_compiling" = yes; then : |
b3076f16 | 6008 | ac_cv_func_mmap_fixed_mapped=no |
6009 | else | |
db946ede | 6010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3076f16 | 6011 | /* end confdefs.h. */ |
6012 | $ac_includes_default | |
6013 | /* malloc might have been renamed as rpl_malloc. */ | |
6014 | #undef malloc | |
6015 | ||
6016 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
6017 | Here is a matrix of mmap possibilities: | |
6018 | mmap private not fixed | |
6019 | mmap private fixed at somewhere currently unmapped | |
6020 | mmap private fixed at somewhere already mapped | |
6021 | mmap shared not fixed | |
6022 | mmap shared fixed at somewhere currently unmapped | |
6023 | mmap shared fixed at somewhere already mapped | |
6024 | For private mappings, we should verify that changes cannot be read() | |
6025 | back from the file, nor mmap's back from the file at a different | |
6026 | address. (There have been systems where private was not correctly | |
6027 | implemented like the infamous i386 svr4.0, and systems where the | |
6028 | VM page cache was not coherent with the file system buffer cache | |
6029 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
6030 | For shared mappings, we should conversely verify that changes get | |
6031 | propagated back to all the places they're supposed to be. | |
6032 | ||
6033 | Grep wants private fixed already mapped. | |
6034 | The main things grep needs to know about mmap are: | |
6035 | * does it exist and is it safe to write into the mmap'd area | |
6036 | * how to use it (BSD variants) */ | |
6037 | ||
6038 | #include <fcntl.h> | |
6039 | #include <sys/mman.h> | |
6040 | ||
0bd0bef6 | 6041 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
b3076f16 | 6042 | char *malloc (); |
6043 | #endif | |
6044 | ||
6045 | /* This mess was copied from the GNU getpagesize.h. */ | |
0bd0bef6 | 6046 | #ifndef HAVE_GETPAGESIZE |
b3076f16 | 6047 | # ifdef _SC_PAGESIZE |
6048 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
6049 | # else /* no _SC_PAGESIZE */ | |
0bd0bef6 | 6050 | # ifdef HAVE_SYS_PARAM_H |
b3076f16 | 6051 | # include <sys/param.h> |
6052 | # ifdef EXEC_PAGESIZE | |
6053 | # define getpagesize() EXEC_PAGESIZE | |
6054 | # else /* no EXEC_PAGESIZE */ | |
6055 | # ifdef NBPG | |
6056 | # define getpagesize() NBPG * CLSIZE | |
6057 | # ifndef CLSIZE | |
6058 | # define CLSIZE 1 | |
6059 | # endif /* no CLSIZE */ | |
6060 | # else /* no NBPG */ | |
6061 | # ifdef NBPC | |
6062 | # define getpagesize() NBPC | |
6063 | # else /* no NBPC */ | |
6064 | # ifdef PAGESIZE | |
6065 | # define getpagesize() PAGESIZE | |
6066 | # endif /* PAGESIZE */ | |
6067 | # endif /* no NBPC */ | |
6068 | # endif /* no NBPG */ | |
6069 | # endif /* no EXEC_PAGESIZE */ | |
6070 | # else /* no HAVE_SYS_PARAM_H */ | |
6071 | # define getpagesize() 8192 /* punt totally */ | |
6072 | # endif /* no HAVE_SYS_PARAM_H */ | |
6073 | # endif /* no _SC_PAGESIZE */ | |
6074 | ||
6075 | #endif /* no HAVE_GETPAGESIZE */ | |
6076 | ||
6077 | int | |
6078 | main () | |
6079 | { | |
6080 | char *data, *data2, *data3; | |
c6254516 | 6081 | const char *cdata2; |
b3076f16 | 6082 | int i, pagesize; |
c6254516 | 6083 | int fd, fd2; |
b3076f16 | 6084 | |
6085 | pagesize = getpagesize (); | |
6086 | ||
6087 | /* First, make a file with some known garbage in it. */ | |
6088 | data = (char *) malloc (pagesize); | |
6089 | if (!data) | |
a8b2ad8d | 6090 | return 1; |
b3076f16 | 6091 | for (i = 0; i < pagesize; ++i) |
6092 | *(data + i) = rand (); | |
6093 | umask (0); | |
6094 | fd = creat ("conftest.mmap", 0600); | |
6095 | if (fd < 0) | |
c6254516 | 6096 | return 2; |
b3076f16 | 6097 | if (write (fd, data, pagesize) != pagesize) |
c6254516 | 6098 | return 3; |
b3076f16 | 6099 | close (fd); |
6100 | ||
c6254516 R |
6101 | /* Next, check that the tail of a page is zero-filled. File must have |
6102 | non-zero length, otherwise we risk SIGBUS for entire page. */ | |
6103 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | |
6104 | if (fd2 < 0) | |
6105 | return 4; | |
6106 | cdata2 = ""; | |
6107 | if (write (fd2, cdata2, 1) != 1) | |
6108 | return 5; | |
6109 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); | |
6110 | if (data2 == MAP_FAILED) | |
6111 | return 6; | |
6112 | for (i = 0; i < pagesize; ++i) | |
6113 | if (*(data2 + i)) | |
6114 | return 7; | |
6115 | close (fd2); | |
6116 | if (munmap (data2, pagesize)) | |
6117 | return 8; | |
6118 | ||
b3076f16 | 6119 | /* Next, try to mmap the file at a fixed address which already has |
6120 | something else allocated at it. If we can, also make sure that | |
6121 | we see the same garbage. */ | |
6122 | fd = open ("conftest.mmap", O_RDWR); | |
6123 | if (fd < 0) | |
c6254516 | 6124 | return 9; |
b3076f16 | 6125 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
6126 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
c6254516 | 6127 | return 10; |
b3076f16 | 6128 | for (i = 0; i < pagesize; ++i) |
6129 | if (*(data + i) != *(data2 + i)) | |
c6254516 | 6130 | return 11; |
b3076f16 | 6131 | |
6132 | /* Finally, make sure that changes to the mapped area do not | |
6133 | percolate back to the file as seen by read(). (This is a bug on | |
6134 | some variants of i386 svr4.0.) */ | |
6135 | for (i = 0; i < pagesize; ++i) | |
6136 | *(data2 + i) = *(data2 + i) + 1; | |
6137 | data3 = (char *) malloc (pagesize); | |
6138 | if (!data3) | |
c6254516 | 6139 | return 12; |
b3076f16 | 6140 | if (read (fd, data3, pagesize) != pagesize) |
c6254516 | 6141 | return 13; |
b3076f16 | 6142 | for (i = 0; i < pagesize; ++i) |
6143 | if (*(data + i) != *(data3 + i)) | |
c6254516 | 6144 | return 14; |
b3076f16 | 6145 | close (fd); |
a8b2ad8d | 6146 | return 0; |
db946ede | 6147 | } |
6148 | _ACEOF | |
6149 | if ac_fn_c_try_run "$LINENO"; then : | |
b3076f16 | 6150 | ac_cv_func_mmap_fixed_mapped=yes |
6151 | else | |
db946ede | 6152 | ac_cv_func_mmap_fixed_mapped=no |
b3076f16 | 6153 | fi |
db946ede | 6154 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6155 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
b3076f16 | 6156 | fi |
a8b2ad8d | 6157 | |
b3076f16 | 6158 | fi |
db946ede | 6159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
6160 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
b3076f16 | 6161 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
6162 | ||
db946ede | 6163 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
b3076f16 | 6164 | |
6165 | fi | |
c6254516 | 6166 | rm -f conftest.mmap conftest.txt |
b3076f16 | 6167 | |
6168 | ||
db946ede | 6169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin_len" >&5 |
6170 | $as_echo_n "checking for sin_len... " >&6; } | |
c6254516 | 6171 | if ${ac_cv_sin_len+:} false; then : |
db946ede | 6172 | $as_echo_n "(cached) " >&6 |
b3076f16 | 6173 | else |
db946ede | 6174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3076f16 | 6175 | /* end confdefs.h. */ |
6176 | #include <sys/types.h> | |
6177 | #include <netinet/in.h> | |
6178 | int | |
6179 | main () | |
6180 | { | |
6181 | struct sockaddr_in *sin; sin->sin_len = 0; | |
6182 | ; | |
6183 | return 0; | |
6184 | } | |
6185 | _ACEOF | |
db946ede | 6186 | if ac_fn_c_try_compile "$LINENO"; then : |
b3076f16 | 6187 | ac_cv_sin_len="yes" |
6188 | else | |
db946ede | 6189 | ac_cv_sin_len="no" |
b3076f16 | 6190 | fi |
a8b2ad8d | 6191 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b3076f16 | 6192 | fi |
db946ede | 6193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sin_len" >&5 |
6194 | $as_echo "$ac_cv_sin_len" >&6; } | |
b3076f16 | 6195 | if test $ac_cv_sin_len = yes ; then |
6196 | ||
db946ede | 6197 | $as_echo "#define HAVE_SIN_LEN 1" >>confdefs.h |
b3076f16 | 6198 | |
6199 | fi | |
6200 | ||
db946ede | 6201 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> |
79886419 | 6202 | #include<sys/socket.h> |
db946ede | 6203 | " |
c6254516 | 6204 | if test "x$ac_cv_type_socklen_t" = xyes; then : |
79886419 | 6205 | |
0f6fe38c | 6206 | else |
ff3b058a | 6207 | |
db946ede | 6208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5 |
6209 | $as_echo_n "checking for socklen_t equivalent... " >&6; } | |
c6254516 | 6210 | if ${curl_cv_socklen_t_equiv+:} false; then : |
db946ede | 6211 | $as_echo_n "(cached) " >&6 |
ff3b058a | 6212 | else |
0f6fe38c | 6213 | |
6214 | curl_cv_socklen_t_equiv= | |
6215 | for arg2 in "struct sockaddr" void ; do | |
6216 | for t in int size_t unsigned long "unsigned long" ; do | |
db946ede | 6217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ff3b058a | 6218 | /* end confdefs.h. */ |
0f6fe38c | 6219 | #include <sys/types.h> |
6220 | #include <sys/socket.h> | |
6221 | int getpeername (int $arg2 *, $t *); | |
6222 | int | |
6223 | main () | |
6224 | { | |
6225 | $t len; | |
6226 | getpeername(0, 0, &len); | |
6227 | ; | |
6228 | return 0; | |
6229 | } | |
79886419 | 6230 | _ACEOF |
db946ede | 6231 | if ac_fn_c_try_compile "$LINENO"; then : |
0f6fe38c | 6232 | curl_cv_socklen_t_equiv="$t" |
6233 | break | |
79886419 | 6234 | fi |
a8b2ad8d | 6235 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0f6fe38c | 6236 | done |
6237 | done | |
79886419 | 6238 | |
6239 | fi | |
6240 | ||
db946ede | 6241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5 |
6242 | $as_echo "$curl_cv_socklen_t_equiv" >&6; } | |
79886419 | 6243 | |
0f6fe38c | 6244 | cat >>confdefs.h <<_ACEOF |
6245 | #define socklen_t $curl_cv_socklen_t_equiv | |
79886419 | 6246 | _ACEOF |
6247 | ||
0f6fe38c | 6248 | fi |
6249 | ||
6250 | ||
6251 | OLD_CFLAGS=$CFLAGS | |
6252 | CFLAGS="$CFLAGS -W -Wall -Werror" | |
b3076f16 | 6253 | |
1136f709 | 6254 | if test "z$USE_MAINTAINER_MODE" = zyes ; then |
6255 | CFLAGS="$CFLAGS -ansi" | |
6256 | fi | |
6257 | ||
db946ede | 6258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
6259 | $as_echo_n "checking for inline... " >&6; } | |
c6254516 | 6260 | if ${ac_cv_c_inline+:} false; then : |
db946ede | 6261 | $as_echo_n "(cached) " >&6 |
1136f709 | 6262 | else |
6263 | ac_cv_c_inline=no | |
6264 | for ac_kw in inline __inline__ __inline; do | |
db946ede | 6265 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1136f709 | 6266 | /* end confdefs.h. */ |
6267 | #ifndef __cplusplus | |
6268 | typedef int foo_t; | |
6269 | static $ac_kw foo_t static_foo () {return 0; } | |
6270 | $ac_kw foo_t foo () {return 0; } | |
6271 | #endif | |
6272 | ||
6273 | _ACEOF | |
db946ede | 6274 | if ac_fn_c_try_compile "$LINENO"; then : |
1136f709 | 6275 | ac_cv_c_inline=$ac_kw |
1136f709 | 6276 | fi |
1136f709 | 6277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6278 | test "$ac_cv_c_inline" != no && break | |
6279 | done | |
6280 | ||
6281 | fi | |
db946ede | 6282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
6283 | $as_echo "$ac_cv_c_inline" >&6; } | |
1136f709 | 6284 | |
6285 | case $ac_cv_c_inline in | |
6286 | inline | yes) ;; | |
6287 | *) | |
6288 | case $ac_cv_c_inline in | |
6289 | no) ac_val=;; | |
6290 | *) ac_val=$ac_cv_c_inline;; | |
6291 | esac | |
6292 | cat >>confdefs.h <<_ACEOF | |
6293 | #ifndef __cplusplus | |
6294 | #define inline $ac_val | |
6295 | #endif | |
6296 | _ACEOF | |
6297 | ;; | |
6298 | esac | |
6299 | ||
6300 | ||
db946ede | 6301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t format" >&5 |
6302 | $as_echo_n "checking for time_t format... " >&6; } | |
c6254516 | 6303 | if ${ac_cv_fmt_time_t+:} false; then : |
db946ede | 6304 | $as_echo_n "(cached) " >&6 |
b3076f16 | 6305 | else |
6306 | ||
6307 | ac_cv_fmt_time_t=no | |
db946ede | 6308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6309 | /* end confdefs.h. */ | |
b3076f16 | 6310 | #include <sys/types.h> |
6311 | #include <stdio.h> | |
6312 | void myfunc(void) { | |
6313 | time_t test=0; | |
6314 | printf("%li", test); | |
6315 | } | |
6316 | _ACEOF | |
db946ede | 6317 | if ac_fn_c_try_compile "$LINENO"; then : |
b3076f16 | 6318 | ac_cv_fmt_time_t="\"%li\"" |
b3076f16 | 6319 | fi |
a8b2ad8d | 6320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b3076f16 | 6321 | if test $ac_cv_fmt_time_t = no; then |
db946ede | 6322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6323 | /* end confdefs.h. */ | |
b3076f16 | 6324 | #include <sys/types.h> |
6325 | #include <stdio.h> | |
6326 | void myfunc(void) { | |
6327 | time_t test=0; | |
6328 | printf("%i", test); | |
6329 | } | |
6330 | _ACEOF | |
db946ede | 6331 | if ac_fn_c_try_compile "$LINENO"; then : |
b3076f16 | 6332 | ac_cv_fmt_time_t="\"%i\"" |
b3076f16 | 6333 | fi |
a8b2ad8d | 6334 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b3076f16 | 6335 | fi |
6336 | if test $ac_cv_fmt_time_t = no; then | |
c6254516 | 6337 | as_fn_error $? "Cannot detect format string for time_t |
db946ede | 6338 | Please check sys/types.h for the typedef of time_t and submit to a developer" "$LINENO" 5 |
b3076f16 | 6339 | fi |
6340 | ||
6341 | fi | |
6342 | ||
6343 | ||
6344 | cat >>confdefs.h <<_ACEOF | |
6345 | #define FMT_TIME_T $ac_cv_fmt_time_t | |
6346 | _ACEOF | |
6347 | ||
db946ede | 6348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fmt_time_t" >&5 |
6349 | $as_echo "$ac_cv_fmt_time_t" >&6; } | |
b3076f16 | 6350 | |
db946ede | 6351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5 |
6352 | $as_echo_n "checking for va_copy... " >&6; } | |
c6254516 | 6353 | if ${ac_cv_c_va_copy+:} false; then : |
db946ede | 6354 | $as_echo_n "(cached) " >&6 |
b3076f16 | 6355 | else |
db946ede | 6356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3076f16 | 6357 | /* end confdefs.h. */ |
6358 | #include <stdarg.h> | |
6359 | int | |
6360 | main () | |
6361 | { | |
6362 | va_list ap1, ap2; va_copy(ap1, ap2); | |
6363 | ; | |
6364 | return 0; | |
6365 | } | |
6366 | _ACEOF | |
db946ede | 6367 | if ac_fn_c_try_link "$LINENO"; then : |
b3076f16 | 6368 | ac_cv_c_va_copy="yes" |
6369 | else | |
db946ede | 6370 | ac_cv_c_va_copy="no" |
b3076f16 | 6371 | |
6372 | fi | |
db946ede | 6373 | rm -f core conftest.err conftest.$ac_objext \ |
6374 | conftest$ac_exeext conftest.$ac_ext | |
b3076f16 | 6375 | fi |
db946ede | 6376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_va_copy" >&5 |
6377 | $as_echo "$ac_cv_c_va_copy" >&6; } | |
b3076f16 | 6378 | if test "$ac_cv_c_va_copy" = "yes" ; then |
6379 | ||
db946ede | 6380 | $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h |
b3076f16 | 6381 | |
6382 | fi | |
6383 | ||
db946ede | 6384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5 |
6385 | $as_echo_n "checking for __va_copy... " >&6; } | |
c6254516 | 6386 | if ${ac_cv_c___va_copy+:} false; then : |
db946ede | 6387 | $as_echo_n "(cached) " >&6 |
b3076f16 | 6388 | else |
db946ede | 6389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3076f16 | 6390 | /* end confdefs.h. */ |
6391 | #include <stdarg.h> | |
6392 | int | |
6393 | main () | |
6394 | { | |
6395 | va_list ap1, ap2; __va_copy(ap1, ap2); | |
6396 | ; | |
6397 | return 0; | |
6398 | } | |
6399 | _ACEOF | |
db946ede | 6400 | if ac_fn_c_try_link "$LINENO"; then : |
b3076f16 | 6401 | ac_cv_c___va_copy="yes" |
6402 | else | |
db946ede | 6403 | ac_cv_c___va_copy="no" |
b3076f16 | 6404 | |
6405 | fi | |
db946ede | 6406 | rm -f core conftest.err conftest.$ac_objext \ |
6407 | conftest$ac_exeext conftest.$ac_ext | |
b3076f16 | 6408 | fi |
db946ede | 6409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c___va_copy" >&5 |
6410 | $as_echo "$ac_cv_c___va_copy" >&6; } | |
b3076f16 | 6411 | if test "$ac_cv_c___va_copy" = "yes" ; then |
6412 | ||
db946ede | 6413 | $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h |
b3076f16 | 6414 | |
6415 | fi | |
6416 | ||
6417 | CFLAGS=$OLD_CFLAGS | |
6418 | ||
db946ede | 6419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which malloc to use" >&5 |
6420 | $as_echo_n "checking which malloc to use... " >&6; } | |
b3076f16 | 6421 | |
a8b2ad8d | 6422 | # Check whether --with-malloc was given. |
db946ede | 6423 | if test "${with_malloc+set}" = set; then : |
a8b2ad8d | 6424 | withval=$with_malloc; |
b3076f16 | 6425 | else |
6426 | withval="system" | |
a8b2ad8d | 6427 | fi |
6428 | ||
b3076f16 | 6429 | if test "x$withval" = "xsystem" ; then |
db946ede | 6430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 |
6431 | $as_echo "system" >&6; } | |
b3076f16 | 6432 | |
db946ede | 6433 | $as_echo "#define WITH_MALLOC_SYSTEM 1" >>confdefs.h |
b3076f16 | 6434 | |
5b1166fd | 6435 | x3_malloc="System" |
b3076f16 | 6436 | elif test "x$withval" = "xdmalloc" ; then |
db946ede | 6437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: dmalloc" >&5 |
6438 | $as_echo "dmalloc" >&6; } | |
6439 | for ac_header in dmalloc.h | |
6440 | do : | |
6441 | ac_fn_c_check_header_mongrel "$LINENO" "dmalloc.h" "ac_cv_header_dmalloc_h" "$ac_includes_default" | |
c6254516 | 6442 | if test "x$ac_cv_header_dmalloc_h" = xyes; then : |
b3076f16 | 6443 | cat >>confdefs.h <<_ACEOF |
db946ede | 6444 | #define HAVE_DMALLOC_H 1 |
b3076f16 | 6445 | _ACEOF |
6446 | ||
6447 | else | |
c6254516 | 6448 | as_fn_error $? "dmalloc header file missing. dmalloc build will fail." "$LINENO" 5 |
b3076f16 | 6449 | fi |
6450 | ||
6451 | done | |
6452 | ||
db946ede | 6453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -ldmalloc" >&5 |
6454 | $as_echo_n "checking for malloc in -ldmalloc... " >&6; } | |
c6254516 | 6455 | if ${ac_cv_lib_dmalloc_malloc+:} false; then : |
db946ede | 6456 | $as_echo_n "(cached) " >&6 |
b3076f16 | 6457 | else |
6458 | ac_check_lib_save_LIBS=$LIBS | |
6459 | LIBS="-ldmalloc $LIBS" | |
db946ede | 6460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3076f16 | 6461 | /* end confdefs.h. */ |
6462 | ||
a8b2ad8d | 6463 | /* Override any GCC internal prototype to avoid an error. |
6464 | Use char because int might match the return type of a GCC | |
6465 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 6466 | #ifdef __cplusplus |
6467 | extern "C" | |
6468 | #endif | |
b3076f16 | 6469 | char malloc (); |
6470 | int | |
6471 | main () | |
6472 | { | |
a8b2ad8d | 6473 | return malloc (); |
db946ede | 6474 | ; |
6475 | return 0; | |
6476 | } | |
6477 | _ACEOF | |
6478 | if ac_fn_c_try_link "$LINENO"; then : | |
6479 | ac_cv_lib_dmalloc_malloc=yes | |
b3076f16 | 6480 | else |
db946ede | 6481 | ac_cv_lib_dmalloc_malloc=no |
b3076f16 | 6482 | fi |
db946ede | 6483 | rm -f core conftest.err conftest.$ac_objext \ |
6484 | conftest$ac_exeext conftest.$ac_ext | |
6485 | LIBS=$ac_check_lib_save_LIBS | |
6486 | fi | |
6487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_malloc" >&5 | |
6488 | $as_echo "$ac_cv_lib_dmalloc_malloc" >&6; } | |
c6254516 | 6489 | if test "x$ac_cv_lib_dmalloc_malloc" = xyes; then : |
db946ede | 6490 | cat >>confdefs.h <<_ACEOF |
6491 | #define HAVE_LIBDMALLOC 1 | |
6492 | _ACEOF | |
a8b2ad8d | 6493 | |
db946ede | 6494 | LIBS="-ldmalloc $LIBS" |
b3076f16 | 6495 | |
b3076f16 | 6496 | else |
c6254516 | 6497 | as_fn_error $? "dmalloc library is missing. dmalloc build will fail." "$LINENO" 5 |
b3076f16 | 6498 | fi |
b3076f16 | 6499 | |
db946ede | 6500 | |
6501 | $as_echo "#define WITH_MALLOC_DMALLOC 1" >>confdefs.h | |
6502 | ||
6503 | x3_malloc="DMalloc" | |
6504 | elif test "x$withval" = "xmpatrol" ; then | |
6505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: mpatrol" >&5 | |
6506 | $as_echo "mpatrol" >&6; } | |
6507 | for ac_header in mpatrol.h | |
6508 | do : | |
6509 | ac_fn_c_check_header_mongrel "$LINENO" "mpatrol.h" "ac_cv_header_mpatrol_h" "$ac_includes_default" | |
c6254516 | 6510 | if test "x$ac_cv_header_mpatrol_h" = xyes; then : |
b3076f16 | 6511 | cat >>confdefs.h <<_ACEOF |
db946ede | 6512 | #define HAVE_MPATROL_H 1 |
b3076f16 | 6513 | _ACEOF |
6514 | ||
6515 | else | |
c6254516 | 6516 | as_fn_error $? "mpatrol header file missing. mpatrol build will fail." "$LINENO" 5 |
b3076f16 | 6517 | fi |
6518 | ||
6519 | done | |
6520 | ||
db946ede | 6521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5 |
6522 | $as_echo_n "checking for elf_begin in -lelf... " >&6; } | |
c6254516 | 6523 | if ${ac_cv_lib_elf_elf_begin+:} false; then : |
db946ede | 6524 | $as_echo_n "(cached) " >&6 |
b3076f16 | 6525 | else |
6526 | ac_check_lib_save_LIBS=$LIBS | |
6527 | LIBS="-lelf $LIBS" | |
db946ede | 6528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3076f16 | 6529 | /* end confdefs.h. */ |
6530 | ||
a8b2ad8d | 6531 | /* Override any GCC internal prototype to avoid an error. |
6532 | Use char because int might match the return type of a GCC | |
6533 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 6534 | #ifdef __cplusplus |
6535 | extern "C" | |
6536 | #endif | |
b3076f16 | 6537 | char elf_begin (); |
6538 | int | |
6539 | main () | |
6540 | { | |
a8b2ad8d | 6541 | return elf_begin (); |
b3076f16 | 6542 | ; |
6543 | return 0; | |
6544 | } | |
6545 | _ACEOF | |
db946ede | 6546 | if ac_fn_c_try_link "$LINENO"; then : |
b3076f16 | 6547 | ac_cv_lib_elf_elf_begin=yes |
6548 | else | |
db946ede | 6549 | ac_cv_lib_elf_elf_begin=no |
b3076f16 | 6550 | fi |
db946ede | 6551 | rm -f core conftest.err conftest.$ac_objext \ |
6552 | conftest$ac_exeext conftest.$ac_ext | |
b3076f16 | 6553 | LIBS=$ac_check_lib_save_LIBS |
6554 | fi | |
db946ede | 6555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5 |
6556 | $as_echo "$ac_cv_lib_elf_elf_begin" >&6; } | |
c6254516 | 6557 | if test "x$ac_cv_lib_elf_elf_begin" = xyes; then : |
b3076f16 | 6558 | cat >>confdefs.h <<_ACEOF |
6559 | #define HAVE_LIBELF 1 | |
6560 | _ACEOF | |
6561 | ||
6562 | LIBS="-lelf $LIBS" | |
6563 | ||
6564 | fi | |
6565 | ||
db946ede | 6566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __mp_atexit in -lmpatrol" >&5 |
6567 | $as_echo_n "checking for __mp_atexit in -lmpatrol... " >&6; } | |
c6254516 | 6568 | if ${ac_cv_lib_mpatrol___mp_atexit+:} false; then : |
db946ede | 6569 | $as_echo_n "(cached) " >&6 |
b3076f16 | 6570 | else |
6571 | ac_check_lib_save_LIBS=$LIBS | |
6572 | LIBS="-lmpatrol $LIBS" | |
db946ede | 6573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3076f16 | 6574 | /* end confdefs.h. */ |
6575 | ||
a8b2ad8d | 6576 | /* Override any GCC internal prototype to avoid an error. |
6577 | Use char because int might match the return type of a GCC | |
6578 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 6579 | #ifdef __cplusplus |
6580 | extern "C" | |
6581 | #endif | |
b3076f16 | 6582 | char __mp_atexit (); |
6583 | int | |
6584 | main () | |
6585 | { | |
a8b2ad8d | 6586 | return __mp_atexit (); |
b3076f16 | 6587 | ; |
6588 | return 0; | |
6589 | } | |
6590 | _ACEOF | |
db946ede | 6591 | if ac_fn_c_try_link "$LINENO"; then : |
b3076f16 | 6592 | ac_cv_lib_mpatrol___mp_atexit=yes |
6593 | else | |
db946ede | 6594 | ac_cv_lib_mpatrol___mp_atexit=no |
b3076f16 | 6595 | fi |
db946ede | 6596 | rm -f core conftest.err conftest.$ac_objext \ |
6597 | conftest$ac_exeext conftest.$ac_ext | |
b3076f16 | 6598 | LIBS=$ac_check_lib_save_LIBS |
6599 | fi | |
db946ede | 6600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpatrol___mp_atexit" >&5 |
6601 | $as_echo "$ac_cv_lib_mpatrol___mp_atexit" >&6; } | |
c6254516 | 6602 | if test "x$ac_cv_lib_mpatrol___mp_atexit" = xyes; then : |
b3076f16 | 6603 | cat >>confdefs.h <<_ACEOF |
6604 | #define HAVE_LIBMPATROL 1 | |
6605 | _ACEOF | |
6606 | ||
6607 | LIBS="-lmpatrol $LIBS" | |
6608 | ||
6609 | else | |
c6254516 | 6610 | as_fn_error $? "mpatrol library is missing completely. mpatrol build will fail." "$LINENO" 5 |
b3076f16 | 6611 | fi |
6612 | ||
6613 | ||
db946ede | 6614 | $as_echo "#define WITH_MALLOC_MPATROL 1" >>confdefs.h |
b3076f16 | 6615 | |
5b1166fd | 6616 | x3_malloc="MPatrol" |
b3076f16 | 6617 | elif test "x$withval" = "xboehm-gc" ; then |
db946ede | 6618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: boehm-gc" >&5 |
6619 | $as_echo "boehm-gc" >&6; } | |
6620 | for ac_header in gc/gc.h | |
6621 | do : | |
6622 | ac_fn_c_check_header_mongrel "$LINENO" "gc/gc.h" "ac_cv_header_gc_gc_h" "$ac_includes_default" | |
c6254516 | 6623 | if test "x$ac_cv_header_gc_gc_h" = xyes; then : |
b3076f16 | 6624 | cat >>confdefs.h <<_ACEOF |
db946ede | 6625 | #define HAVE_GC_GC_H 1 |
b3076f16 | 6626 | _ACEOF |
6627 | ||
6628 | else | |
c6254516 | 6629 | as_fn_error $? "Boehm GC header file missing. boehm-gc build will fail." "$LINENO" 5 |
b3076f16 | 6630 | fi |
6631 | ||
6632 | done | |
6633 | ||
db946ede | 6634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
6635 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
c6254516 | 6636 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
db946ede | 6637 | $as_echo_n "(cached) " >&6 |
b3076f16 | 6638 | else |
6639 | ac_check_lib_save_LIBS=$LIBS | |
6640 | LIBS="-ldl $LIBS" | |
db946ede | 6641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3076f16 | 6642 | /* end confdefs.h. */ |
6643 | ||
a8b2ad8d | 6644 | /* Override any GCC internal prototype to avoid an error. |
6645 | Use char because int might match the return type of a GCC | |
6646 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 6647 | #ifdef __cplusplus |
6648 | extern "C" | |
6649 | #endif | |
b3076f16 | 6650 | char dlopen (); |
6651 | int | |
6652 | main () | |
6653 | { | |
a8b2ad8d | 6654 | return dlopen (); |
b3076f16 | 6655 | ; |
6656 | return 0; | |
6657 | } | |
6658 | _ACEOF | |
db946ede | 6659 | if ac_fn_c_try_link "$LINENO"; then : |
b3076f16 | 6660 | ac_cv_lib_dl_dlopen=yes |
6661 | else | |
db946ede | 6662 | ac_cv_lib_dl_dlopen=no |
b3076f16 | 6663 | fi |
db946ede | 6664 | rm -f core conftest.err conftest.$ac_objext \ |
6665 | conftest$ac_exeext conftest.$ac_ext | |
b3076f16 | 6666 | LIBS=$ac_check_lib_save_LIBS |
6667 | fi | |
db946ede | 6668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
6669 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
c6254516 | 6670 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
b3076f16 | 6671 | cat >>confdefs.h <<_ACEOF |
6672 | #define HAVE_LIBDL 1 | |
6673 | _ACEOF | |
6674 | ||
6675 | LIBS="-ldl $LIBS" | |
6676 | ||
6677 | else | |
c6254516 | 6678 | as_fn_error $? "libdl library is missing. boehm-gc build will fail." "$LINENO" 5 |
b3076f16 | 6679 | fi |
6680 | ||
db946ede | 6681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GC_gcollect in -lgc" >&5 |
6682 | $as_echo_n "checking for GC_gcollect in -lgc... " >&6; } | |
c6254516 | 6683 | if ${ac_cv_lib_gc_GC_gcollect+:} false; then : |
db946ede | 6684 | $as_echo_n "(cached) " >&6 |
b3076f16 | 6685 | else |
6686 | ac_check_lib_save_LIBS=$LIBS | |
6687 | LIBS="-lgc $LIBS" | |
db946ede | 6688 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3076f16 | 6689 | /* end confdefs.h. */ |
6690 | ||
a8b2ad8d | 6691 | /* Override any GCC internal prototype to avoid an error. |
6692 | Use char because int might match the return type of a GCC | |
6693 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 6694 | #ifdef __cplusplus |
6695 | extern "C" | |
6696 | #endif | |
b3076f16 | 6697 | char GC_gcollect (); |
6698 | int | |
6699 | main () | |
6700 | { | |
a8b2ad8d | 6701 | return GC_gcollect (); |
b3076f16 | 6702 | ; |
6703 | return 0; | |
6704 | } | |
6705 | _ACEOF | |
db946ede | 6706 | if ac_fn_c_try_link "$LINENO"; then : |
b3076f16 | 6707 | ac_cv_lib_gc_GC_gcollect=yes |
6708 | else | |
db946ede | 6709 | ac_cv_lib_gc_GC_gcollect=no |
b3076f16 | 6710 | fi |
db946ede | 6711 | rm -f core conftest.err conftest.$ac_objext \ |
6712 | conftest$ac_exeext conftest.$ac_ext | |
b3076f16 | 6713 | LIBS=$ac_check_lib_save_LIBS |
6714 | fi | |
db946ede | 6715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gc_GC_gcollect" >&5 |
6716 | $as_echo "$ac_cv_lib_gc_GC_gcollect" >&6; } | |
c6254516 | 6717 | if test "x$ac_cv_lib_gc_GC_gcollect" = xyes; then : |
b3076f16 | 6718 | cat >>confdefs.h <<_ACEOF |
6719 | #define HAVE_LIBGC 1 | |
6720 | _ACEOF | |
6721 | ||
6722 | LIBS="-lgc $LIBS" | |
6723 | ||
6724 | else | |
c6254516 | 6725 | as_fn_error $? "Boehm GC library is missing. boehm-gc build will fail." "$LINENO" 5 |
b3076f16 | 6726 | fi |
6727 | ||
6728 | ||
db946ede | 6729 | $as_echo "#define WITH_MALLOC_BOEHM_GC 1" >>confdefs.h |
b3076f16 | 6730 | |
5b1166fd | 6731 | x3_malloc="Boehm" |
b8cb2a14 | 6732 | elif test "x$withval" = "xx3" ; then |
db946ede | 6733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: x3" >&5 |
6734 | $as_echo "x3" >&6; } | |
ec1a68c8 | 6735 | |
db946ede | 6736 | $as_echo "#define WITH_MALLOC_X3 1" >>confdefs.h |
ec1a68c8 | 6737 | |
b8cb2a14 | 6738 | MODULE_OBJS="$MODULE_OBJS alloc-x3.\$(OBJEXT)" |
5b1166fd | 6739 | x3_malloc="X3" |
ceafd592 | 6740 | elif test "x$withval" = "xslab" ; then |
db946ede | 6741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: slab" >&5 |
6742 | $as_echo "slab" >&6; } | |
ceafd592 | 6743 | |
db946ede | 6744 | $as_echo "#define WITH_MALLOC_SLAB 1" >>confdefs.h |
ceafd592 | 6745 | |
6746 | MODULE_OBJS="$MODULE_OBJS alloc-slab.\$(OBJEXT)" | |
5b1166fd | 6747 | x3_malloc="Slab" |
b3076f16 | 6748 | else |
c6254516 | 6749 | as_fn_error $? "Unknown malloc type $withval" "$LINENO" 5 |
b3076f16 | 6750 | fi |
6751 | ||
db946ede | 6752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which protocol to use" >&5 |
6753 | $as_echo_n "checking which protocol to use... " >&6; } | |
b3076f16 | 6754 | |
a8b2ad8d | 6755 | # Check whether --with-protocol was given. |
db946ede | 6756 | if test "${with_protocol+set}" = set; then : |
a8b2ad8d | 6757 | withval=$with_protocol; |
b3076f16 | 6758 | else |
6759 | withval="p10" | |
a8b2ad8d | 6760 | fi |
6761 | ||
b3076f16 | 6762 | if test "x$withval" = "xp10" ; then |
db946ede | 6763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: P10" >&5 |
6764 | $as_echo "P10" >&6; } | |
b3076f16 | 6765 | |
db946ede | 6766 | $as_echo "#define WITH_PROTOCOL_P10 1" >>confdefs.h |
b3076f16 | 6767 | |
2f61d1d7 | 6768 | MODULE_OBJS="$MODULE_OBJS proto-p10.\$(OBJEXT)" |
0f6fe38c | 6769 | PROTO_FILES=proto-p10.c |
5b1166fd | 6770 | x3_ircd="P10" |
b3076f16 | 6771 | else |
c6254516 | 6772 | as_fn_error $? "Unknown IRC dialect $withval" "$LINENO" 5 |
b3076f16 | 6773 | fi |
6774 | ||
db946ede | 6775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to send mail" >&5 |
6776 | $as_echo_n "checking how to send mail... " >&6; } | |
1136f709 | 6777 | |
6778 | # Check whether --with-mail was given. | |
db946ede | 6779 | if test "${with_mail+set}" = set; then : |
1136f709 | 6780 | withval=$with_mail; |
6781 | else | |
6782 | withval="sendmail" | |
6783 | fi | |
6784 | ||
6785 | if test -r "${srcdir}/src/mail-${withval}.c" ; then | |
db946ede | 6786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
6787 | $as_echo "$withval" >&6; } | |
1136f709 | 6788 | MODULE_OBJS="$MODULE_OBJS mail-${withval}.\$(OBJEXT)" |
6789 | else | |
c6254516 | 6790 | as_fn_error $? "Unknown mail method $withval" "$LINENO" 5 |
1136f709 | 6791 | fi |
6792 | ||
db946ede | 6793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking I/O multiplexing backends" >&5 |
6794 | $as_echo_n "checking I/O multiplexing backends... " >&6; } | |
1136f709 | 6795 | IOMUXES="" |
6796 | ||
6797 | if test "x$ac_cv_func_select" = xyes ; then | |
6798 | ||
db946ede | 6799 | $as_echo "#define WITH_IOSET_SELECT 1" >>confdefs.h |
1136f709 | 6800 | |
6801 | MODULE_OBJS="$MODULE_OBJS ioset-select.\$(OBJEXT)" | |
6802 | IOMUXES="$IOMUXES select" | |
6803 | fi | |
6804 | ||
6805 | ||
6806 | # Check whether --with-epoll was given. | |
db946ede | 6807 | if test "${with_epoll+set}" = set; then : |
1136f709 | 6808 | withval=$with_epoll; |
6809 | else | |
6810 | withval="$ac_cv_func_epoll_create" | |
6811 | fi | |
6812 | ||
6813 | if test "x$withval" = xyes ; then | |
6814 | ||
db946ede | 6815 | $as_echo "#define WITH_IOSET_EPOLL 1" >>confdefs.h |
1136f709 | 6816 | |
6817 | MODULE_OBJS="$MODULE_OBJS ioset-epoll.\$(OBJEXT)" | |
6818 | IOMUXES="$IOMUXES epoll" | |
6819 | fi | |
6820 | ||
6821 | ||
6822 | # Check whether --with-kevent was given. | |
db946ede | 6823 | if test "${with_kevent+set}" = set; then : |
1136f709 | 6824 | withval=$with_kevent; |
6825 | else | |
6826 | withval="$ac_cv_func_kevent" | |
6827 | fi | |
6828 | ||
6829 | if test "x$withval" = xyes ; then | |
6830 | ||
db946ede | 6831 | $as_echo "#define WITH_IOSET_KEVENT 1" >>confdefs.h |
1136f709 | 6832 | |
6833 | MODULE_OBJS="$MODULE_OBJS ioset-kevent.\$(OBJEXT)" | |
6834 | IOMUXES="$IOMUXES kevent" | |
6835 | fi | |
6836 | ||
6837 | IOMUXES=`echo $IOMUXES | sed 's/^ +//'` | |
db946ede | 6838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IOMUXES" >&5 |
6839 | $as_echo "$IOMUXES" >&6; } | |
1136f709 | 6840 | if test "x$IOMUXES" = "x" ; then |
c6254516 | 6841 | as_fn_error $? "No supported I/O multiplexing backend found" "$LINENO" 5 |
1136f709 | 6842 | else |
db946ede | 6843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IOMUXES" >&5 |
6844 | $as_echo "$IOMUXES" >&6; } | |
1136f709 | 6845 | fi |
6846 | ||
8da89711 | 6847 | |
6848 | # Check whether --with-getopt was given. | |
db946ede | 6849 | if test "${with_getopt+set}" = set; then : |
8da89711 | 6850 | withval=$with_getopt; if test "$withval" = no; then |
6851 | ||
db946ede | 6852 | $as_echo "#define IGNORE_GETOPT 1" >>confdefs.h |
8da89711 | 6853 | |
6854 | fi | |
6855 | fi | |
6856 | ||
6857 | ||
db946ede | 6858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable tokenization" >&5 |
6859 | $as_echo_n "checking whether to enable tokenization... " >&6; } | |
8da89711 | 6860 | # Check whether --enable-tokens was given. |
db946ede | 6861 | if test "${enable_tokens+set}" = set; then : |
8da89711 | 6862 | enableval=$enable_tokens; |
6863 | else | |
6864 | enableval=yes | |
6865 | fi | |
6866 | ||
6867 | if test "z$enableval" = zno ; then | |
db946ede | 6868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6869 | $as_echo "no" >&6; } | |
8da89711 | 6870 | else |
6871 | ||
db946ede | 6872 | $as_echo "#define ENABLE_TOKENS 1" >>confdefs.h |
8da89711 | 6873 | |
db946ede | 6874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6875 | $as_echo "yes" >&6; } | |
8da89711 | 6876 | fi |
6877 | ||
db946ede | 6878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug behaviors" >&5 |
6879 | $as_echo_n "checking whether to enable debug behaviors... " >&6; } | |
8da89711 | 6880 | # Check whether --enable-debug was given. |
db946ede | 6881 | if test "${enable_debug+set}" = set; then : |
8da89711 | 6882 | enableval=$enable_debug; |
6883 | CPPFLAGS="$CPPFLAGS" | |
db946ede | 6884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6885 | $as_echo "yes" >&6; } | |
8da89711 | 6886 | x3_debug="Enabled" |
e166c31b | 6887 | |
6888 | else | |
6889 | ||
8da89711 | 6890 | CPPFLAGS="$CPPFLAGS -DNDEBUG" |
db946ede | 6891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6892 | $as_echo "no" >&6; } | |
8da89711 | 6893 | x3_debug="Disabled" |
e166c31b | 6894 | |
6895 | fi | |
6896 | ||
6897 | ||
8da89711 | 6898 | if test -e src ; then |
6899 | if test ! -d src ; then | |
c6254516 | 6900 | as_fn_error $? "src exists but is not a directory; please move it out of the way." "$LINENO" 5 |
8da89711 | 6901 | fi |
6902 | else | |
6903 | mkdir src | |
6904 | fi | |
db946ede | 6905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra module files" >&5 |
6906 | $as_echo_n "checking for extra module files... " >&6; } | |
8da89711 | 6907 | MODULE_DEFINES="src/modules-list.h" |
6908 | echo > $MODULE_DEFINES | |
6909 | touch $MODULE_DEFINES | |
6910 | # Check whether --enable-modules was given. | |
db946ede | 6911 | if test "${enable_modules+set}" = set; then : |
8da89711 | 6912 | enableval=$enable_modules; |
6913 | OIFS="$IFS" | |
6914 | IFS=',' | |
6915 | EXTRA_MODULE_OBJS="" | |
6916 | module_list="" | |
6917 | for module in $enableval ; do | |
6918 | module=`echo $module | sed -e s/^mod-// -e s/\.c\$//` | |
6919 | EXTRA_MODULE_OBJS="$EXTRA_MODULE_OBJS mod-$module.\$(OBJEXT)" | |
6920 | module_list="$module_list $module" | |
6921 | echo "WITH_MODULE($module)" >> $MODULE_DEFINES | |
6922 | if test "x$module" = "xtrack" ; then | |
6923 | TRACK="-D HAVE_TRACK" | |
e166c31b | 6924 | |
db946ede | 6925 | $as_echo "#define HAVE_TRACK 1" >>confdefs.h |
e166c31b | 6926 | |
8da89711 | 6927 | fi |
6928 | if test "x$module" = "xhelpserv" ; then | |
6929 | TRACK="-D HAVE_HELPSERV" | |
e166c31b | 6930 | |
db946ede | 6931 | $as_echo "#define HAVE_HELPSERV 1" >>confdefs.h |
e166c31b | 6932 | |
8da89711 | 6933 | fi |
6934 | done | |
6935 | IFS="$OIFS" | |
6936 | MODULE_OBJS="$MODULE_OBJS $EXTRA_MODULE_OBJS" | |
db946ede | 6937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $module_list" >&5 |
6938 | $as_echo "$module_list" >&6; } | |
8da89711 | 6939 | |
e166c31b | 6940 | else |
e166c31b | 6941 | |
db946ede | 6942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
6943 | $as_echo "none" >&6; } | |
e166c31b | 6944 | |
e166c31b | 6945 | fi |
e166c31b | 6946 | |
e166c31b | 6947 | |
2f65da8f | 6948 | # Check whether --enable-python was given. |
db946ede | 6949 | if test "${enable_python+set}" = set; then : |
2f65da8f | 6950 | enableval=$enable_python; python=$enableval |
6951 | else | |
6952 | python=yes | |
6953 | fi | |
6954 | ||
6955 | ||
6956 | ||
8da89711 | 6957 | MY_SUBDIRS="" |
6958 | RX_INCLUDES="" | |
6959 | RX_LIBS="" | |
6960 | if test "${BROKEN_REGEX}" = yes -o "${ac_cv_func_regcomp}" = no; then | |
6961 | MY_SUBDIRS="rx $MY_SUBDIRS" | |
6962 | RX_INCLUDES="-I../rx" | |
6963 | RX_LIBS="../rx/librx.a" | |
6964 | fi | |
6965 | MY_SUBDIRS="$MY_SUBDIRS src" | |
6966 | CFLAGS="$CFLAGS $ANSI_SRC -W -Wall" | |
6967 | if test "z$USE_MAINTAINER_MODE" = zyes ; then | |
0f6fe38c | 6968 | CFLAGS="$CFLAGS -Werror" |
e166c31b | 6969 | fi |
6970 | ||
6971 | ||
8da89711 | 6972 | tre_version="0.7.5" |
6973 | withval='' | |
6974 | ||
6975 | # Check whether --with-tre was given. | |
db946ede | 6976 | if test "${with_tre+set}" = set; then : |
8da89711 | 6977 | withval=$with_tre; |
6978 | fi | |
6979 | ||
6980 | if test "x$withval" != "x"; then | |
db946ede | 6981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using include dir $withval to find libtre" >&5 |
6982 | $as_echo "Using include dir $withval to find libtre" >&6; } | |
39edf54a | 6983 | CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib" |
8da89711 | 6984 | LIBS="$LIBS -L$withval/lib" |
6985 | else | |
db946ede | 6986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Looking for tre in system and home dirs (${HOME})..." >&5 |
6987 | $as_echo "Looking for tre in system and home dirs (${HOME})..." >&6; } | |
39edf54a | 6988 | CPPFLAGS="$CPPFLAGS -I${HOME}/include -L${HOME}/lib" |
8da89711 | 6989 | LIBS="$LIBS -L${HOME}/lib" |
6990 | fi | |
db946ede | 6991 | ac_fn_c_check_header_mongrel "$LINENO" "tre/regex.h" "ac_cv_header_tre_regex_h" "$ac_includes_default" |
c6254516 | 6992 | if test "x$ac_cv_header_tre_regex_h" = xyes; then : |
e166c31b | 6993 | |
e166c31b | 6994 | else |
c6254516 | 6995 | as_fn_error $? "tre/regex.h, the TRE regex headers, were not found. Install tre or use --with-tre=PATH to tell me how to find it, where PATH/include/tre/regex.h exists. For convenience, just type 'tools/tre_install.sh' now, to install tre in your home directory." "$LINENO" 5 |
e166c31b | 6996 | fi |
6997 | ||
e166c31b | 6998 | |
db946ede | 6999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -ltre" >&5 |
7000 | $as_echo_n "checking for regexec in -ltre... " >&6; } | |
c6254516 | 7001 | if ${ac_cv_lib_tre_regexec+:} false; then : |
db946ede | 7002 | $as_echo_n "(cached) " >&6 |
b3076f16 | 7003 | else |
8da89711 | 7004 | ac_check_lib_save_LIBS=$LIBS |
7005 | LIBS="-ltre $LIBS" | |
db946ede | 7006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8da89711 | 7007 | /* end confdefs.h. */ |
b3076f16 | 7008 | |
8da89711 | 7009 | /* Override any GCC internal prototype to avoid an error. |
7010 | Use char because int might match the return type of a GCC | |
7011 | builtin and then its argument prototype would still apply. */ | |
7012 | #ifdef __cplusplus | |
7013 | extern "C" | |
7014 | #endif | |
7015 | char regexec (); | |
7016 | int | |
7017 | main () | |
7018 | { | |
7019 | return regexec (); | |
7020 | ; | |
7021 | return 0; | |
7022 | } | |
7023 | _ACEOF | |
db946ede | 7024 | if ac_fn_c_try_link "$LINENO"; then : |
8da89711 | 7025 | ac_cv_lib_tre_regexec=yes |
b3076f16 | 7026 | else |
db946ede | 7027 | ac_cv_lib_tre_regexec=no |
a8b2ad8d | 7028 | fi |
db946ede | 7029 | rm -f core conftest.err conftest.$ac_objext \ |
7030 | conftest$ac_exeext conftest.$ac_ext | |
8da89711 | 7031 | LIBS=$ac_check_lib_save_LIBS |
b3076f16 | 7032 | fi |
db946ede | 7033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tre_regexec" >&5 |
7034 | $as_echo "$ac_cv_lib_tre_regexec" >&6; } | |
c6254516 | 7035 | if test "x$ac_cv_lib_tre_regexec" = xyes; then : |
8da89711 | 7036 | cat >>confdefs.h <<_ACEOF |
7037 | #define HAVE_LIBTRE 1 | |
8de34abd | 7038 | _ACEOF |
7039 | ||
db946ede | 7040 | LIBS="-ltre $LIBS" |
35305a49 | 7041 | |
db946ede | 7042 | else |
c6254516 | 7043 | as_fn_error $? "TRE regex library not found. Install tre, or use --with-tre=PATH to tell me how to find it, where PATH/lib/libtre.so exists. For convenience, just type 'tools/tre_install.sh' now, to install tre in your home directory." "$LINENO" 5 |
35305a49 | 7044 | fi |
a8b2ad8d | 7045 | |
35305a49 | 7046 | |
db946ede | 7047 | core_version="1.1" |
7048 | withval='' | |
35305a49 | 7049 | |
db946ede | 7050 | # Check whether --with-coredumper was given. |
7051 | if test "${with_coredumper+set}" = set; then : | |
7052 | withval=$with_coredumper; | |
35305a49 | 7053 | fi |
a8b2ad8d | 7054 | |
db946ede | 7055 | if test "x$withval" != "x"; then |
7056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using include dir $withval to find coredumper" >&5 | |
7057 | $as_echo "Using include dir $withval to find coredumper" >&6; } | |
7058 | CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib" | |
7059 | LIBS="$LIBS -L$withval/lib" | |
35305a49 | 7060 | else |
db946ede | 7061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Looking for coredumper in system and home dirs (${HOME})..." >&5 |
7062 | $as_echo "Looking for coredumper in system and home dirs (${HOME})..." >&6; } | |
7063 | CPPFLAGS="$CPPFLAGS -I${HOME}/include -L${HOME}/lib" | |
7064 | LIBS="$LIBS -Wl,--rpath -Wl,${HOME}/lib" | |
8da89711 | 7065 | fi |
db946ede | 7066 | ac_fn_c_check_header_mongrel "$LINENO" "google/coredumper.h" "ac_cv_header_google_coredumper_h" "$ac_includes_default" |
c6254516 | 7067 | if test "x$ac_cv_header_google_coredumper_h" = xyes; then : |
8da89711 | 7068 | |
8da89711 | 7069 | else |
db946ede | 7070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: google/coredumper.h, the coredumper headers, were not found. Install coredumper or use --with-coredumper=PATH to tell me how to find it, where PATH/include/google/coredumper.h exists. For convenience, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&5 |
7071 | $as_echo "google/coredumper.h, the coredumper headers, were not found. Install coredumper or use --with-coredumper=PATH to tell me how to find it, where PATH/include/google/coredumper.h exists. For convenience, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&6; } | |
8da89711 | 7072 | fi |
7073 | ||
7074 | ||
db946ede | 7075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WriteCoreDump in -lcoredumper" >&5 |
7076 | $as_echo_n "checking for WriteCoreDump in -lcoredumper... " >&6; } | |
c6254516 | 7077 | if ${ac_cv_lib_coredumper_WriteCoreDump+:} false; then : |
db946ede | 7078 | $as_echo_n "(cached) " >&6 |
8da89711 | 7079 | else |
7080 | ac_check_lib_save_LIBS=$LIBS | |
7081 | LIBS="-lcoredumper $LIBS" | |
db946ede | 7082 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8da89711 | 7083 | /* end confdefs.h. */ |
7084 | ||
7085 | /* Override any GCC internal prototype to avoid an error. | |
7086 | Use char because int might match the return type of a GCC | |
7087 | builtin and then its argument prototype would still apply. */ | |
7088 | #ifdef __cplusplus | |
7089 | extern "C" | |
7090 | #endif | |
7091 | char WriteCoreDump (); | |
7092 | int | |
7093 | main () | |
7094 | { | |
7095 | return WriteCoreDump (); | |
7096 | ; | |
7097 | return 0; | |
7098 | } | |
7099 | _ACEOF | |
db946ede | 7100 | if ac_fn_c_try_link "$LINENO"; then : |
8da89711 | 7101 | ac_cv_lib_coredumper_WriteCoreDump=yes |
7102 | else | |
db946ede | 7103 | ac_cv_lib_coredumper_WriteCoreDump=no |
35305a49 | 7104 | fi |
db946ede | 7105 | rm -f core conftest.err conftest.$ac_objext \ |
7106 | conftest$ac_exeext conftest.$ac_ext | |
8da89711 | 7107 | LIBS=$ac_check_lib_save_LIBS |
35305a49 | 7108 | fi |
db946ede | 7109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_coredumper_WriteCoreDump" >&5 |
7110 | $as_echo "$ac_cv_lib_coredumper_WriteCoreDump" >&6; } | |
c6254516 | 7111 | if test "x$ac_cv_lib_coredumper_WriteCoreDump" = xyes; then : |
8da89711 | 7112 | cat >>confdefs.h <<_ACEOF |
7113 | #define HAVE_LIBCOREDUMPER 1 | |
7114 | _ACEOF | |
7115 | ||
7116 | LIBS="-lcoredumper $LIBS" | |
7117 | ||
35305a49 | 7118 | else |
db946ede | 7119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Coredumper library not found. Install coredumper, or use --with-coredumper=PATH to tell me how to find it, where PATH/lib/libcoredumper.so exists. For convenience, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&5 |
7120 | $as_echo "Coredumper library not found. Install coredumper, or use --with-coredumper=PATH to tell me how to find it, where PATH/lib/libcoredumper.so exists. For convenience, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&6; } | |
35305a49 | 7121 | fi |
7122 | ||
7123 | ||
73d4cc91 | 7124 | withval='' |
7125 | ||
7126 | # Check whether --with-ssl was given. | |
db946ede | 7127 | if test "${with_ssl+set}" = set; then : |
73d4cc91 | 7128 | withval=$with_ssl; |
7129 | fi | |
7130 | ||
7131 | if test "x$withval" != "x"; then | |
db946ede | 7132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using include dir $withval to find openssl" >&5 |
7133 | $as_echo "Using include dir $withval to find openssl" >&6; } | |
73d4cc91 | 7134 | CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib" |
7135 | LIBS="$LIBS -L$withval/lib" | |
7136 | else | |
db946ede | 7137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Looking for openssl in system " >&5 |
7138 | $as_echo "Looking for openssl in system " >&6; } | |
73d4cc91 | 7139 | fi |
7140 | ||
db946ede | 7141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIO_new in -lssl" >&5 |
7142 | $as_echo_n "checking for BIO_new in -lssl... " >&6; } | |
c6254516 | 7143 | if ${ac_cv_lib_ssl_BIO_new+:} false; then : |
db946ede | 7144 | $as_echo_n "(cached) " >&6 |
73d4cc91 | 7145 | else |
7146 | ac_check_lib_save_LIBS=$LIBS | |
7147 | LIBS="-lssl $LIBS" | |
db946ede | 7148 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
73d4cc91 | 7149 | /* end confdefs.h. */ |
7150 | ||
7151 | /* Override any GCC internal prototype to avoid an error. | |
7152 | Use char because int might match the return type of a GCC | |
7153 | builtin and then its argument prototype would still apply. */ | |
7154 | #ifdef __cplusplus | |
7155 | extern "C" | |
7156 | #endif | |
7157 | char BIO_new (); | |
7158 | int | |
7159 | main () | |
7160 | { | |
7161 | return BIO_new (); | |
7162 | ; | |
7163 | return 0; | |
7164 | } | |
7165 | _ACEOF | |
db946ede | 7166 | if ac_fn_c_try_link "$LINENO"; then : |
73d4cc91 | 7167 | ac_cv_lib_ssl_BIO_new=yes |
7168 | else | |
db946ede | 7169 | ac_cv_lib_ssl_BIO_new=no |
73d4cc91 | 7170 | fi |
db946ede | 7171 | rm -f core conftest.err conftest.$ac_objext \ |
7172 | conftest$ac_exeext conftest.$ac_ext | |
73d4cc91 | 7173 | LIBS=$ac_check_lib_save_LIBS |
7174 | fi | |
db946ede | 7175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_BIO_new" >&5 |
7176 | $as_echo "$ac_cv_lib_ssl_BIO_new" >&6; } | |
c6254516 | 7177 | if test "x$ac_cv_lib_ssl_BIO_new" = xyes; then : |
73d4cc91 | 7178 | |
7179 | LIBS="-lssl $LIBS" | |
73d4cc91 | 7180 | for ac_header in openssl/bio.h |
db946ede | 7181 | do : |
7182 | ac_fn_c_check_header_mongrel "$LINENO" "openssl/bio.h" "ac_cv_header_openssl_bio_h" "$ac_includes_default" | |
c6254516 | 7183 | if test "x$ac_cv_header_openssl_bio_h" = xyes; then : |
73d4cc91 | 7184 | cat >>confdefs.h <<_ACEOF |
db946ede | 7185 | #define HAVE_OPENSSL_BIO_H 1 |
73d4cc91 | 7186 | _ACEOF |
7187 | ||
7188 | ||
db946ede | 7189 | $as_echo "#define WITH_SSL 1" >>confdefs.h |
73d4cc91 | 7190 | |
7191 | ssl_message="LDAP library: enabled" | |
7192 | ||
7193 | else | |
7194 | ||
7195 | if test "x$withval" != "x"; then | |
c6254516 | 7196 | as_fn_error $? "ssl headers not found" "$LINENO" 5 |
73d4cc91 | 7197 | fi |
7198 | ||
7199 | fi | |
7200 | ||
7201 | done | |
7202 | ||
7203 | ||
7204 | else | |
7205 | ||
7206 | if test "x$withval" != "x"; then | |
c6254516 | 7207 | as_fn_error $? "libldap not found or not valid" "$LINENO" 5 |
73d4cc91 | 7208 | fi |
7209 | ||
7210 | ||
7211 | fi | |
7212 | ||
db946ede | 7213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5 |
7214 | $as_echo "$LIBS" >&6; } | |
73d4cc91 | 7215 | |
7216 | ||
8da89711 | 7217 | withval='' |
35305a49 | 7218 | |
8da89711 | 7219 | # Check whether --with-ldap was given. |
db946ede | 7220 | if test "${with_ldap+set}" = set; then : |
8da89711 | 7221 | withval=$with_ldap; |
7222 | fi | |
7223 | ||
7224 | if test "x$withval" != "x"; then | |
db946ede | 7225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using include dir $withval to find libldap" >&5 |
7226 | $as_echo "Using include dir $withval to find libldap" >&6; } | |
8da89711 | 7227 | CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib" |
7228 | LIBS="$LIBS -L$withval/lib" | |
7229 | else | |
db946ede | 7230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Looking for ldap in system " >&5 |
7231 | $as_echo "Looking for ldap in system " >&6; } | |
8da89711 | 7232 | fi |
7233 | ||
db946ede | 7234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_simple_bind_s in -lldap" >&5 |
7235 | $as_echo_n "checking for ldap_simple_bind_s in -lldap... " >&6; } | |
c6254516 | 7236 | if ${ac_cv_lib_ldap_ldap_simple_bind_s+:} false; then : |
db946ede | 7237 | $as_echo_n "(cached) " >&6 |
35305a49 | 7238 | else |
7239 | ac_check_lib_save_LIBS=$LIBS | |
8da89711 | 7240 | LIBS="-lldap $LIBS" |
db946ede | 7241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
35305a49 | 7242 | /* end confdefs.h. */ |
7243 | ||
a8b2ad8d | 7244 | /* Override any GCC internal prototype to avoid an error. |
7245 | Use char because int might match the return type of a GCC | |
7246 | builtin and then its argument prototype would still apply. */ | |
35305a49 | 7247 | #ifdef __cplusplus |
7248 | extern "C" | |
7249 | #endif | |
39edf54a | 7250 | char ldap_simple_bind_s (); |
35305a49 | 7251 | int |
7252 | main () | |
7253 | { | |
39edf54a | 7254 | return ldap_simple_bind_s (); |
35305a49 | 7255 | ; |
7256 | return 0; | |
7257 | } | |
7258 | _ACEOF | |
db946ede | 7259 | if ac_fn_c_try_link "$LINENO"; then : |
39edf54a | 7260 | ac_cv_lib_ldap_ldap_simple_bind_s=yes |
5b1166fd | 7261 | else |
db946ede | 7262 | ac_cv_lib_ldap_ldap_simple_bind_s=no |
35305a49 | 7263 | fi |
db946ede | 7264 | rm -f core conftest.err conftest.$ac_objext \ |
7265 | conftest$ac_exeext conftest.$ac_ext | |
35305a49 | 7266 | LIBS=$ac_check_lib_save_LIBS |
5b1166fd | 7267 | fi |
db946ede | 7268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_simple_bind_s" >&5 |
7269 | $as_echo "$ac_cv_lib_ldap_ldap_simple_bind_s" >&6; } | |
c6254516 | 7270 | if test "x$ac_cv_lib_ldap_ldap_simple_bind_s" = xyes; then : |
b3076f16 | 7271 | |
39edf54a | 7272 | LIBS="-lldap $LIBS" |
8da89711 | 7273 | for ac_header in ldap.h |
db946ede | 7274 | do : |
7275 | ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default" | |
c6254516 | 7276 | if test "x$ac_cv_header_ldap_h" = xyes; then : |
8da89711 | 7277 | cat >>confdefs.h <<_ACEOF |
db946ede | 7278 | #define HAVE_LDAP_H 1 |
8da89711 | 7279 | _ACEOF |
a8b2ad8d | 7280 | |
7281 | ||
db946ede | 7282 | $as_echo "#define WITH_LDAP 1" >>confdefs.h |
a8b2ad8d | 7283 | |
8da89711 | 7284 | ldap_message="LDAP library: enabled" |
7285 | ||
a8b2ad8d | 7286 | else |
a8b2ad8d | 7287 | |
db9a9a8a | 7288 | if test "x$withval" != "x"; then |
c6254516 | 7289 | as_fn_error $? "ldap.h not found" "$LINENO" 5 |
a8b2ad8d | 7290 | fi |
7291 | ||
a8b2ad8d | 7292 | fi |
a8b2ad8d | 7293 | |
8da89711 | 7294 | done |
7295 | ||
a8b2ad8d | 7296 | |
7297 | else | |
8da89711 | 7298 | |
db9a9a8a | 7299 | if test "x$withval" != "x"; then |
c6254516 | 7300 | as_fn_error $? "libldap not found or not valid" "$LINENO" 5 |
8da89711 | 7301 | fi |
7302 | ||
7303 | ||
a8b2ad8d | 7304 | fi |
7305 | ||
2f65da8f | 7306 | |
7307 | ||
7308 | if test "$python" = yes; then | |
7309 | # Extract the first word of "python2", so it can be a program name with args. | |
7310 | set dummy python2; ac_word=$2 | |
db946ede | 7311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7312 | $as_echo_n "checking for $ac_word... " >&6; } | |
c6254516 | 7313 | if ${ac_cv_path_pythonpath+:} false; then : |
db946ede | 7314 | $as_echo_n "(cached) " >&6 |
2f65da8f | 7315 | else |
7316 | case $pythonpath in | |
7317 | [\\/]* | ?:[\\/]*) | |
7318 | ac_cv_path_pythonpath="$pythonpath" # Let the user override the test with a path. | |
7319 | ;; | |
7320 | *) | |
7321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7322 | for as_dir in $PATH | |
7323 | do | |
7324 | IFS=$as_save_IFS | |
7325 | test -z "$as_dir" && as_dir=. | |
db946ede | 7326 | for ac_exec_ext in '' $ac_executable_extensions; do |
2f65da8f | 7327 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7328 | ac_cv_path_pythonpath="$as_dir/$ac_word$ac_exec_ext" | |
db946ede | 7329 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f65da8f | 7330 | break 2 |
7331 | fi | |
7332 | done | |
db946ede | 7333 | done |
2f65da8f | 7334 | IFS=$as_save_IFS |
7335 | ||
7336 | ;; | |
7337 | esac | |
7338 | fi | |
7339 | pythonpath=$ac_cv_path_pythonpath | |
7340 | if test -n "$pythonpath"; then | |
db946ede | 7341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonpath" >&5 |
7342 | $as_echo "$pythonpath" >&6; } | |
2f65da8f | 7343 | else |
db946ede | 7344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7345 | $as_echo "no" >&6; } | |
2f65da8f | 7346 | fi |
7347 | ||
7348 | ||
7349 | if test "_$pythonpath" = _ ; then | |
7350 | # Extract the first word of "python", so it can be a program name with args. | |
7351 | set dummy python; ac_word=$2 | |
db946ede | 7352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7353 | $as_echo_n "checking for $ac_word... " >&6; } | |
c6254516 | 7354 | if ${ac_cv_path_pythonpath+:} false; then : |
db946ede | 7355 | $as_echo_n "(cached) " >&6 |
2f65da8f | 7356 | else |
7357 | case $pythonpath in | |
7358 | [\\/]* | ?:[\\/]*) | |
7359 | ac_cv_path_pythonpath="$pythonpath" # Let the user override the test with a path. | |
7360 | ;; | |
7361 | *) | |
7362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7363 | for as_dir in $PATH | |
7364 | do | |
7365 | IFS=$as_save_IFS | |
7366 | test -z "$as_dir" && as_dir=. | |
db946ede | 7367 | for ac_exec_ext in '' $ac_executable_extensions; do |
2f65da8f | 7368 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7369 | ac_cv_path_pythonpath="$as_dir/$ac_word$ac_exec_ext" | |
db946ede | 7370 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f65da8f | 7371 | break 2 |
7372 | fi | |
7373 | done | |
db946ede | 7374 | done |
2f65da8f | 7375 | IFS=$as_save_IFS |
7376 | ||
7377 | ;; | |
7378 | esac | |
7379 | fi | |
7380 | pythonpath=$ac_cv_path_pythonpath | |
7381 | if test -n "$pythonpath"; then | |
db946ede | 7382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonpath" >&5 |
7383 | $as_echo "$pythonpath" >&6; } | |
2f65da8f | 7384 | else |
db946ede | 7385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7386 | $as_echo "no" >&6; } | |
2f65da8f | 7387 | fi |
7388 | ||
7389 | ||
7390 | fi | |
7391 | if test "_$pythonpath" = _ ; then | |
7392 | python=no | |
7393 | else | |
db946ede | 7394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5 |
7395 | $as_echo_n "checking Python version... " >&6; } | |
2f65da8f | 7396 | PY_VER=`$pythonpath -c 'import distutils.sysconfig; print distutils.sysconfig.get_config_vars("VERSION")[0];'` |
7397 | PY_LIB=`$pythonpath -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib(standard_lib=1);'` | |
7398 | PY_INC=`$pythonpath -c 'import distutils.sysconfig; print distutils.sysconfig.get_config_vars("INCLUDEPY")[0];'` | |
7399 | $pythonpath -c "import sys; map(int,sys.version[:3].split('.')) >= [2,2] or sys.exit(1)" | |
db946ede | 7400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_VER" >&5 |
7401 | $as_echo "$PY_VER" >&6; } | |
2f65da8f | 7402 | if test "$?" != "1"; then |
db946ede | 7403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python compile flags" >&5 |
7404 | $as_echo_n "checking Python compile flags... " >&6; } | |
2f65da8f | 7405 | PY_PREFIX=`$pythonpath -c 'import sys; print sys.prefix'` |
7406 | PY_EXEC_PREFIX=`$pythonpath -c 'import sys; print sys.exec_prefix'` | |
7407 | if test -f $PY_INC/Python.h; then | |
7408 | ||
db946ede | 7409 | $as_echo "#define WITH_PYTHON 1" >>confdefs.h |
2f65da8f | 7410 | |
7411 | PY_LIBS="-L$PY_LIB/config -lpython$PY_VER -lpthread -lutil" | |
7412 | PY_CFLAGS="-I$PY_INC" | |
db946ede | 7413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7414 | $as_echo "ok" >&6; } | |
cbfd323c | 7415 | CFLAGS="$CFLAGS $PY_CFLAGS" |
7416 | LIBS="$LIBS $PY_LIBS" | |
2f65da8f | 7417 | else |
7418 | python=no | |
db946ede | 7419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Can't find Python.h" >&5 |
7420 | $as_echo "Can't find Python.h" >&6; } | |
2f65da8f | 7421 | fi |
7422 | else | |
7423 | echo "Python too old. Only 2.2 or above is supported." | |
7424 | python=no | |
7425 | fi | |
7426 | fi | |
7427 | fi | |
7428 | ||
7429 | if test "x$python" = "xyes"; then | |
7430 | DO_PYTHON_TRUE= | |
7431 | DO_PYTHON_FALSE='#' | |
7432 | else | |
7433 | DO_PYTHON_TRUE='#' | |
7434 | DO_PYTHON_FALSE= | |
7435 | fi | |
7436 | ||
7437 | ||
db946ede | 7438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5 |
7439 | $as_echo "$LIBS" >&6; } | |
a8b2ad8d | 7440 | |
7441 | ||
7442 | cat >>confdefs.h <<_ACEOF | |
7443 | #define CODENAME "${CODENAME}" | |
7444 | _ACEOF | |
7445 | ||
7446 | ||
7447 | ||
7448 | ||
7449 | ||
7450 | ||
2f65da8f | 7451 | |
7452 | ||
7453 | ||
a8b2ad8d | 7454 | ac_config_files="$ac_config_files Makefile rx/Makefile src/Makefile" |
7455 | ||
7456 | cat >confcache <<\_ACEOF | |
7457 | # This file is a shell script that caches the results of configure | |
7458 | # tests run on this system so they can be shared between configure | |
7459 | # scripts and configure runs, see configure's option --config-cache. | |
7460 | # It is not useful on other systems. If it contains results you don't | |
7461 | # want to keep, you may remove or edit it. | |
7462 | # | |
b3076f16 | 7463 | # config.status only pays attention to the cache file if you give it |
7464 | # the --recheck option to rerun configure. | |
7465 | # | |
7466 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
7467 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
7468 | # following values. | |
7469 | ||
7470 | _ACEOF | |
7471 | ||
7472 | # The following way of writing the cache mishandles newlines in values, | |
7473 | # but we know of no workaround that is simple, portable, and efficient. | |
a8b2ad8d | 7474 | # So, we kill variables containing newlines. |
b3076f16 | 7475 | # Ultrix sh set writes to stderr and can't be redirected directly, |
7476 | # and sets the high bit in the cache file unless we assign to the vars. | |
a8b2ad8d | 7477 | ( |
7478 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
7479 | eval ac_val=\$$ac_var | |
7480 | case $ac_val in #( | |
7481 | *${as_nl}*) | |
7482 | case $ac_var in #( | |
db946ede | 7483 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
7484 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
a8b2ad8d | 7485 | esac |
7486 | case $ac_var in #( | |
7487 | _ | IFS | as_nl) ;; #( | |
db946ede | 7488 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7489 | *) { eval $ac_var=; unset $ac_var;} ;; | |
a8b2ad8d | 7490 | esac ;; |
7491 | esac | |
7492 | done | |
7493 | ||
b3076f16 | 7494 | (set) 2>&1 | |
a8b2ad8d | 7495 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
7496 | *${as_nl}ac_space=\ *) | |
db946ede | 7497 | # `set' does not quote correctly, so add quotes: double-quote |
7498 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
b3076f16 | 7499 | sed -n \ |
7500 | "s/'/'\\\\''/g; | |
7501 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a8b2ad8d | 7502 | ;; #( |
b3076f16 | 7503 | *) |
7504 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
a8b2ad8d | 7505 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b3076f16 | 7506 | ;; |
a8b2ad8d | 7507 | esac | |
7508 | sort | |
7509 | ) | | |
b3076f16 | 7510 | sed ' |
a8b2ad8d | 7511 | /^ac_cv_env_/b end |
b3076f16 | 7512 | t clear |
a8b2ad8d | 7513 | :clear |
b3076f16 | 7514 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
7515 | t end | |
a8b2ad8d | 7516 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
7517 | :end' >>confcache | |
7518 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
7519 | if test -w "$cache_file"; then | |
c6254516 | 7520 | if test "x$cache_file" != "x/dev/null"; then |
db946ede | 7521 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
7522 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
c6254516 R |
7523 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
7524 | cat confcache >"$cache_file" | |
7525 | else | |
7526 | case $cache_file in #( | |
7527 | */* | ?:*) | |
7528 | mv -f confcache "$cache_file"$$ && | |
7529 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
7530 | *) | |
7531 | mv -f confcache "$cache_file" ;; | |
7532 | esac | |
7533 | fi | |
7534 | fi | |
b3076f16 | 7535 | else |
db946ede | 7536 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
7537 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
b3076f16 | 7538 | fi |
7539 | fi | |
7540 | rm -f confcache | |
7541 | ||
7542 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
7543 | # Let make expand exec_prefix. | |
7544 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7545 | ||
b3076f16 | 7546 | DEFS=-DHAVE_CONFIG_H |
7547 | ||
7548 | ac_libobjs= | |
7549 | ac_ltlibobjs= | |
c6254516 | 7550 | U= |
b3076f16 | 7551 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
7552 | # 1. Remove the extension, and $U if already installed. | |
a8b2ad8d | 7553 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
db946ede | 7554 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
a8b2ad8d | 7555 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
7556 | # will be set to the directory where LIBOBJS objects are built. | |
db946ede | 7557 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
7558 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
b3076f16 | 7559 | done |
7560 | LIBOBJS=$ac_libobjs | |
7561 | ||
7562 | LTLIBOBJS=$ac_ltlibobjs | |
7563 | ||
7564 | ||
db946ede | 7565 | if test -n "$EXEEXT"; then |
7566 | am__EXEEXT_TRUE= | |
7567 | am__EXEEXT_FALSE='#' | |
7568 | else | |
7569 | am__EXEEXT_TRUE='#' | |
7570 | am__EXEEXT_FALSE= | |
7571 | fi | |
7572 | ||
ec1a68c8 | 7573 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
c6254516 | 7574 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
db946ede | 7575 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
ec1a68c8 | 7576 | fi |
7577 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
c6254516 | 7578 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
db946ede | 7579 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
ec1a68c8 | 7580 | fi |
7581 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
c6254516 | 7582 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
db946ede | 7583 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
ec1a68c8 | 7584 | fi |
7585 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
c6254516 | 7586 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
db946ede | 7587 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
ec1a68c8 | 7588 | fi |
2f65da8f | 7589 | if test -z "${DO_PYTHON_TRUE}" && test -z "${DO_PYTHON_FALSE}"; then |
c6254516 | 7590 | as_fn_error $? "conditional \"DO_PYTHON\" was never defined. |
db946ede | 7591 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
2f65da8f | 7592 | fi |
b3076f16 | 7593 | |
c6254516 | 7594 | : "${CONFIG_STATUS=./config.status}" |
db946ede | 7595 | ac_write_fail=0 |
b3076f16 | 7596 | ac_clean_files_save=$ac_clean_files |
7597 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
db946ede | 7598 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
7599 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
7600 | as_write_fail=0 | |
7601 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
b3076f16 | 7602 | #! $SHELL |
7603 | # Generated by $as_me. | |
7604 | # Run this file to recreate the current configuration. | |
7605 | # Compiler output produced by configure, useful for debugging | |
7606 | # configure, is in config.log if it exists. | |
7607 | ||
7608 | debug=false | |
7609 | ac_cs_recheck=false | |
7610 | ac_cs_silent=false | |
b3076f16 | 7611 | |
db946ede | 7612 | SHELL=\${CONFIG_SHELL-$SHELL} |
7613 | export SHELL | |
7614 | _ASEOF | |
7615 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
7616 | ## -------------------- ## | |
7617 | ## M4sh Initialization. ## | |
7618 | ## -------------------- ## | |
b3076f16 | 7619 | |
0bd0bef6 | 7620 | # Be more Bourne compatible |
7621 | DUALCASE=1; export DUALCASE # for MKS sh | |
db946ede | 7622 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
b3076f16 | 7623 | emulate sh |
7624 | NULLCMD=: | |
db946ede | 7625 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b3076f16 | 7626 | # is contrary to our usage. Disable this feature. |
7627 | alias -g '${1+"$@"}'='"$@"' | |
a8b2ad8d | 7628 | setopt NO_GLOB_SUBST |
7629 | else | |
db946ede | 7630 | case `(set -o) 2>/dev/null` in #( |
7631 | *posix*) : | |
7632 | set -o posix ;; #( | |
7633 | *) : | |
7634 | ;; | |
0bd0bef6 | 7635 | esac |
b3076f16 | 7636 | fi |
0bd0bef6 | 7637 | |
7638 | ||
db946ede | 7639 | as_nl=' |
7640 | ' | |
7641 | export as_nl | |
7642 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
7643 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
7644 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
7645 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
7646 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
7647 | # but without wasting forks for bash or zsh. | |
7648 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
7649 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7650 | as_echo='print -r --' | |
7651 | as_echo_n='print -rn --' | |
7652 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7653 | as_echo='printf %s\n' | |
7654 | as_echo_n='printf %s' | |
7655 | else | |
7656 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
7657 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
7658 | as_echo_n='/usr/ucb/echo -n' | |
a8b2ad8d | 7659 | else |
db946ede | 7660 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
7661 | as_echo_n_body='eval | |
7662 | arg=$1; | |
7663 | case $arg in #( | |
7664 | *"$as_nl"*) | |
7665 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
7666 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
7667 | esac; | |
7668 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
7669 | ' | |
7670 | export as_echo_n_body | |
7671 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
a8b2ad8d | 7672 | fi |
db946ede | 7673 | export as_echo_body |
7674 | as_echo='sh -c $as_echo_body as_echo' | |
a8b2ad8d | 7675 | fi |
7676 | ||
db946ede | 7677 | # The user is always right. |
7678 | if test "${PATH_SEPARATOR+set}" != set; then | |
7679 | PATH_SEPARATOR=: | |
7680 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
7681 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
7682 | PATH_SEPARATOR=';' | |
7683 | } | |
b3076f16 | 7684 | fi |
7685 | ||
7686 | ||
a8b2ad8d | 7687 | # IFS |
7688 | # We need space, tab and new line, in precisely that order. Quoting is | |
7689 | # there to prevent editors from complaining about space-tab. | |
7690 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
7691 | # splitting by setting IFS to empty value.) | |
a8b2ad8d | 7692 | IFS=" "" $as_nl" |
7693 | ||
7694 | # Find who we are. Look in the path if we contain no directory separator. | |
c6254516 | 7695 | as_myself= |
db946ede | 7696 | case $0 in #(( |
a8b2ad8d | 7697 | *[\\/]* ) as_myself=$0 ;; |
7698 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7699 | for as_dir in $PATH | |
7700 | do | |
7701 | IFS=$as_save_IFS | |
7702 | test -z "$as_dir" && as_dir=. | |
db946ede | 7703 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
7704 | done | |
a8b2ad8d | 7705 | IFS=$as_save_IFS |
7706 | ||
7707 | ;; | |
7708 | esac | |
7709 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
7710 | # in which case we are not to be found in the path. | |
7711 | if test "x$as_myself" = x; then | |
7712 | as_myself=$0 | |
7713 | fi | |
7714 | if test ! -f "$as_myself"; then | |
db946ede | 7715 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7716 | exit 1 | |
a8b2ad8d | 7717 | fi |
7718 | ||
db946ede | 7719 | # Unset variables that we do not need and which cause bugs (e.g. in |
7720 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
7721 | # suppresses any "Segmentation fault" message there. '((' could | |
7722 | # trigger a bug in pdksh 5.2.14. | |
7723 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
7724 | do eval test x\${$as_var+set} = xset \ | |
7725 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
a8b2ad8d | 7726 | done |
b3076f16 | 7727 | PS1='$ ' |
7728 | PS2='> ' | |
7729 | PS4='+ ' | |
7730 | ||
7731 | # NLS nuisances. | |
db946ede | 7732 | LC_ALL=C |
7733 | export LC_ALL | |
7734 | LANGUAGE=C | |
7735 | export LANGUAGE | |
7736 | ||
7737 | # CDPATH. | |
7738 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
7739 | ||
7740 | ||
c6254516 R |
7741 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
7742 | # ---------------------------------------- | |
db946ede | 7743 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
7744 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
c6254516 | 7745 | # script with STATUS, using 1 if that was 0. |
db946ede | 7746 | as_fn_error () |
7747 | { | |
c6254516 R |
7748 | as_status=$1; test $as_status -eq 0 && as_status=1 |
7749 | if test "$4"; then | |
7750 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
7751 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
b3076f16 | 7752 | fi |
c6254516 | 7753 | $as_echo "$as_me: error: $2" >&2 |
db946ede | 7754 | as_fn_exit $as_status |
7755 | } # as_fn_error | |
7756 | ||
7757 | ||
7758 | # as_fn_set_status STATUS | |
7759 | # ----------------------- | |
7760 | # Set $? to STATUS, without forking. | |
7761 | as_fn_set_status () | |
7762 | { | |
7763 | return $1 | |
7764 | } # as_fn_set_status | |
7765 | ||
7766 | # as_fn_exit STATUS | |
7767 | # ----------------- | |
7768 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
7769 | as_fn_exit () | |
7770 | { | |
7771 | set +e | |
7772 | as_fn_set_status $1 | |
7773 | exit $1 | |
7774 | } # as_fn_exit | |
7775 | ||
7776 | # as_fn_unset VAR | |
7777 | # --------------- | |
7778 | # Portably unset VAR. | |
7779 | as_fn_unset () | |
7780 | { | |
7781 | { eval $1=; unset $1;} | |
7782 | } | |
7783 | as_unset=as_fn_unset | |
7784 | # as_fn_append VAR VALUE | |
7785 | # ---------------------- | |
7786 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
7787 | # advantage of any shell optimizations that allow amortized linear growth over | |
7788 | # repeated appends, instead of the typical quadratic growth present in naive | |
7789 | # implementations. | |
7790 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
7791 | eval 'as_fn_append () | |
7792 | { | |
7793 | eval $1+=\$2 | |
7794 | }' | |
7795 | else | |
7796 | as_fn_append () | |
7797 | { | |
7798 | eval $1=\$$1\$2 | |
7799 | } | |
7800 | fi # as_fn_append | |
7801 | ||
7802 | # as_fn_arith ARG... | |
7803 | # ------------------ | |
7804 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
7805 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
7806 | # must be portable across $(()) and expr. | |
7807 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
7808 | eval 'as_fn_arith () | |
7809 | { | |
7810 | as_val=$(( $* )) | |
7811 | }' | |
7812 | else | |
7813 | as_fn_arith () | |
7814 | { | |
7815 | as_val=`expr "$@" || test $? -eq 1` | |
7816 | } | |
7817 | fi # as_fn_arith | |
7818 | ||
b3076f16 | 7819 | |
a8b2ad8d | 7820 | if expr a : '\(a\)' >/dev/null 2>&1 && |
7821 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b3076f16 | 7822 | as_expr=expr |
7823 | else | |
7824 | as_expr=false | |
7825 | fi | |
7826 | ||
a8b2ad8d | 7827 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b3076f16 | 7828 | as_basename=basename |
7829 | else | |
7830 | as_basename=false | |
7831 | fi | |
7832 | ||
db946ede | 7833 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
7834 | as_dirname=dirname | |
7835 | else | |
7836 | as_dirname=false | |
7837 | fi | |
b3076f16 | 7838 | |
a8b2ad8d | 7839 | as_me=`$as_basename -- "$0" || |
b3076f16 | 7840 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
7841 | X"$0" : 'X\(//\)$' \| \ | |
a8b2ad8d | 7842 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
db946ede | 7843 | $as_echo X/"$0" | |
a8b2ad8d | 7844 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
7845 | s//\1/ | |
7846 | q | |
7847 | } | |
7848 | /^X\/\(\/\/\)$/{ | |
7849 | s//\1/ | |
7850 | q | |
7851 | } | |
7852 | /^X\/\(\/\).*/{ | |
7853 | s//\1/ | |
7854 | q | |
7855 | } | |
7856 | s/.*/./; q'` | |
b3076f16 | 7857 | |
db946ede | 7858 | # Avoid depending upon Character Ranges. |
7859 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
7860 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
7861 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
7862 | as_cr_digits='0123456789' | |
7863 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
a8b2ad8d | 7864 | |
7865 | ECHO_C= ECHO_N= ECHO_T= | |
db946ede | 7866 | case `echo -n x` in #((((( |
a8b2ad8d | 7867 | -n*) |
db946ede | 7868 | case `echo 'xy\c'` in |
a8b2ad8d | 7869 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
db946ede | 7870 | xy) ECHO_C='\c';; |
7871 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
7872 | ECHO_T=' ';; | |
a8b2ad8d | 7873 | esac;; |
7874 | *) | |
7875 | ECHO_N='-n';; | |
b3076f16 | 7876 | esac |
7877 | ||
b3076f16 | 7878 | rm -f conf$$ conf$$.exe conf$$.file |
a8b2ad8d | 7879 | if test -d conf$$.dir; then |
7880 | rm -f conf$$.dir/conf$$.file | |
7881 | else | |
7882 | rm -f conf$$.dir | |
db946ede | 7883 | mkdir conf$$.dir 2>/dev/null |
7884 | fi | |
7885 | if (echo >conf$$.file) 2>/dev/null; then | |
7886 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
7887 | as_ln_s='ln -s' | |
7888 | # ... but there are two gotchas: | |
7889 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
7890 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
7891 | # In both cases, we have to default to `cp -p'. | |
7892 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
7893 | as_ln_s='cp -p' | |
7894 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
7895 | as_ln_s=ln | |
7896 | else | |
b3076f16 | 7897 | as_ln_s='cp -p' |
db946ede | 7898 | fi |
b3076f16 | 7899 | else |
7900 | as_ln_s='cp -p' | |
7901 | fi | |
a8b2ad8d | 7902 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
7903 | rmdir conf$$.dir 2>/dev/null | |
b3076f16 | 7904 | |
db946ede | 7905 | |
7906 | # as_fn_mkdir_p | |
7907 | # ------------- | |
7908 | # Create "$as_dir" as a directory, including parents if necessary. | |
7909 | as_fn_mkdir_p () | |
7910 | { | |
7911 | ||
7912 | case $as_dir in #( | |
7913 | -*) as_dir=./$as_dir;; | |
7914 | esac | |
7915 | test -d "$as_dir" || eval $as_mkdir_p || { | |
7916 | as_dirs= | |
7917 | while :; do | |
7918 | case $as_dir in #( | |
7919 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
7920 | *) as_qdir=$as_dir;; | |
7921 | esac | |
7922 | as_dirs="'$as_qdir' $as_dirs" | |
7923 | as_dir=`$as_dirname -- "$as_dir" || | |
7924 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7925 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7926 | X"$as_dir" : 'X\(//\)$' \| \ | |
7927 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
7928 | $as_echo X"$as_dir" | | |
7929 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7930 | s//\1/ | |
7931 | q | |
7932 | } | |
7933 | /^X\(\/\/\)[^/].*/{ | |
7934 | s//\1/ | |
7935 | q | |
7936 | } | |
7937 | /^X\(\/\/\)$/{ | |
7938 | s//\1/ | |
7939 | q | |
7940 | } | |
7941 | /^X\(\/\).*/{ | |
7942 | s//\1/ | |
7943 | q | |
7944 | } | |
7945 | s/.*/./; q'` | |
7946 | test -d "$as_dir" && break | |
7947 | done | |
7948 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
c6254516 | 7949 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
db946ede | 7950 | |
7951 | ||
7952 | } # as_fn_mkdir_p | |
b3076f16 | 7953 | if mkdir -p . 2>/dev/null; then |
db946ede | 7954 | as_mkdir_p='mkdir -p "$as_dir"' |
b3076f16 | 7955 | else |
7956 | test -d ./-p && rmdir ./-p | |
7957 | as_mkdir_p=false | |
7958 | fi | |
7959 | ||
0bd0bef6 | 7960 | if test -x / >/dev/null 2>&1; then |
7961 | as_test_x='test -x' | |
a8b2ad8d | 7962 | else |
0bd0bef6 | 7963 | if ls -dL / >/dev/null 2>&1; then |
7964 | as_ls_L_option=L | |
7965 | else | |
7966 | as_ls_L_option= | |
7967 | fi | |
7968 | as_test_x=' | |
7969 | eval sh -c '\'' | |
7970 | if test -d "$1"; then | |
db946ede | 7971 | test -d "$1/."; |
0bd0bef6 | 7972 | else |
db946ede | 7973 | case $1 in #( |
7974 | -*)set "./$1";; | |
0bd0bef6 | 7975 | esac; |
db946ede | 7976 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
0bd0bef6 | 7977 | ???[sx]*):;;*)false;;esac;fi |
7978 | '\'' sh | |
7979 | ' | |
a8b2ad8d | 7980 | fi |
0bd0bef6 | 7981 | as_executable_p=$as_test_x |
b3076f16 | 7982 | |
7983 | # Sed expression to map a string onto a valid CPP name. | |
7984 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
7985 | ||
7986 | # Sed expression to map a string onto a valid variable name. | |
7987 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
7988 | ||
7989 | ||
b3076f16 | 7990 | exec 6>&1 |
db946ede | 7991 | ## ----------------------------------- ## |
7992 | ## Main body of $CONFIG_STATUS script. ## | |
7993 | ## ----------------------------------- ## | |
7994 | _ASEOF | |
7995 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
b3076f16 | 7996 | |
db946ede | 7997 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7998 | # Save the log message, to keep $0 and so on meaningful, and to | |
b3076f16 | 7999 | # report actual input values of CONFIG_FILES etc. instead of their |
a8b2ad8d | 8000 | # values after options handling. |
8001 | ac_log=" | |
c6254516 R |
8002 | This file was extended by X3 $as_me 1.8.1, which was |
8003 | generated by GNU Autoconf 2.68. Invocation command line was | |
b3076f16 | 8004 | |
8005 | CONFIG_FILES = $CONFIG_FILES | |
8006 | CONFIG_HEADERS = $CONFIG_HEADERS | |
8007 | CONFIG_LINKS = $CONFIG_LINKS | |
8008 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
8009 | $ $0 $@ | |
8010 | ||
a8b2ad8d | 8011 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
8012 | " | |
8013 | ||
b3076f16 | 8014 | _ACEOF |
8015 | ||
db946ede | 8016 | case $ac_config_files in *" |
8017 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
8018 | esac | |
8019 | ||
8020 | case $ac_config_headers in *" | |
8021 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
8022 | esac | |
8023 | ||
8024 | ||
8025 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b3076f16 | 8026 | # Files that config.status was made for. |
a8b2ad8d | 8027 | config_files="$ac_config_files" |
8028 | config_headers="$ac_config_headers" | |
8029 | config_commands="$ac_config_commands" | |
b3076f16 | 8030 | |
a8b2ad8d | 8031 | _ACEOF |
b3076f16 | 8032 | |
db946ede | 8033 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b3076f16 | 8034 | ac_cs_usage="\ |
db946ede | 8035 | \`$as_me' instantiates files and other configuration actions |
8036 | from templates according to the current configuration. Unless the files | |
8037 | and actions are specified as TAGs, all are instantiated by default. | |
b3076f16 | 8038 | |
db946ede | 8039 | Usage: $0 [OPTION]... [TAG]... |
b3076f16 | 8040 | |
8041 | -h, --help print this help, then exit | |
0bd0bef6 | 8042 | -V, --version print version number and configuration settings, then exit |
c6254516 | 8043 | --config print configuration, then exit |
db946ede | 8044 | -q, --quiet, --silent |
8045 | do not print progress messages | |
b3076f16 | 8046 | -d, --debug don't remove temporary files |
8047 | --recheck update $as_me by reconfiguring in the same conditions | |
db946ede | 8048 | --file=FILE[:TEMPLATE] |
8049 | instantiate the configuration file FILE | |
8050 | --header=FILE[:TEMPLATE] | |
8051 | instantiate the configuration header FILE | |
b3076f16 | 8052 | |
8053 | Configuration files: | |
8054 | $config_files | |
8055 | ||
8056 | Configuration headers: | |
8057 | $config_headers | |
8058 | ||
ec1a68c8 | 8059 | Configuration commands: |
8060 | $config_commands | |
8061 | ||
db946ede | 8062 | Report bugs to <evilnet-devel@lists.sourceforge.net>." |
b3076f16 | 8063 | |
a8b2ad8d | 8064 | _ACEOF |
db946ede | 8065 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
c6254516 | 8066 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
b3076f16 | 8067 | ac_cs_version="\\ |
c6254516 R |
8068 | X3 config.status 1.8.1 |
8069 | configured by $0, generated by GNU Autoconf 2.68, | |
8070 | with options \\"\$ac_cs_config\\" | |
b3076f16 | 8071 | |
c6254516 | 8072 | Copyright (C) 2010 Free Software Foundation, Inc. |
b3076f16 | 8073 | This config.status script is free software; the Free Software Foundation |
8074 | gives unlimited permission to copy, distribute and modify it." | |
a8b2ad8d | 8075 | |
8076 | ac_pwd='$ac_pwd' | |
8077 | srcdir='$srcdir' | |
8078 | INSTALL='$INSTALL' | |
2f65da8f | 8079 | MKDIR_P='$MKDIR_P' |
db946ede | 8080 | AWK='$AWK' |
8081 | test -n "\$AWK" || AWK=awk | |
b3076f16 | 8082 | _ACEOF |
8083 | ||
db946ede | 8084 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8085 | # The default lists apply if the user does not specify any file. | |
b3076f16 | 8086 | ac_need_defaults=: |
8087 | while test $# != 0 | |
8088 | do | |
8089 | case $1 in | |
c6254516 | 8090 | --*=?*) |
a8b2ad8d | 8091 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
8092 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
b3076f16 | 8093 | ac_shift=: |
8094 | ;; | |
c6254516 R |
8095 | --*=) |
8096 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
8097 | ac_optarg= | |
8098 | ac_shift=: | |
8099 | ;; | |
a8b2ad8d | 8100 | *) |
b3076f16 | 8101 | ac_option=$1 |
8102 | ac_optarg=$2 | |
8103 | ac_shift=shift | |
8104 | ;; | |
b3076f16 | 8105 | esac |
8106 | ||
8107 | case $ac_option in | |
8108 | # Handling of the options. | |
b3076f16 | 8109 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
8110 | ac_cs_recheck=: ;; | |
a8b2ad8d | 8111 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
db946ede | 8112 | $as_echo "$ac_cs_version"; exit ;; |
c6254516 R |
8113 | --config | --confi | --conf | --con | --co | --c ) |
8114 | $as_echo "$ac_cs_config"; exit ;; | |
a8b2ad8d | 8115 | --debug | --debu | --deb | --de | --d | -d ) |
b3076f16 | 8116 | debug=: ;; |
8117 | --file | --fil | --fi | --f ) | |
8118 | $ac_shift | |
db946ede | 8119 | case $ac_optarg in |
8120 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
c6254516 | 8121 | '') as_fn_error $? "missing file argument" ;; |
db946ede | 8122 | esac |
8123 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
b3076f16 | 8124 | ac_need_defaults=false;; |
8125 | --header | --heade | --head | --hea ) | |
8126 | $ac_shift | |
db946ede | 8127 | case $ac_optarg in |
8128 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
8129 | esac | |
8130 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
b3076f16 | 8131 | ac_need_defaults=false;; |
a8b2ad8d | 8132 | --he | --h) |
8133 | # Conflict between --help and --header | |
c6254516 | 8134 | as_fn_error $? "ambiguous option: \`$1' |
db946ede | 8135 | Try \`$0 --help' for more information.";; |
a8b2ad8d | 8136 | --help | --hel | -h ) |
db946ede | 8137 | $as_echo "$ac_cs_usage"; exit ;; |
b3076f16 | 8138 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
8139 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
8140 | ac_cs_silent=: ;; | |
8141 | ||
8142 | # This is an error. | |
c6254516 | 8143 | -*) as_fn_error $? "unrecognized option: \`$1' |
db946ede | 8144 | Try \`$0 --help' for more information." ;; |
b3076f16 | 8145 | |
db946ede | 8146 | *) as_fn_append ac_config_targets " $1" |
a8b2ad8d | 8147 | ac_need_defaults=false ;; |
b3076f16 | 8148 | |
8149 | esac | |
8150 | shift | |
8151 | done | |
8152 | ||
8153 | ac_configure_extra_args= | |
8154 | ||
8155 | if $ac_cs_silent; then | |
8156 | exec 6>/dev/null | |
8157 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
8158 | fi | |
8159 | ||
8160 | _ACEOF | |
db946ede | 8161 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b3076f16 | 8162 | if \$ac_cs_recheck; then |
db946ede | 8163 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
8164 | shift | |
8165 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
8166 | CONFIG_SHELL='$SHELL' | |
a8b2ad8d | 8167 | export CONFIG_SHELL |
db946ede | 8168 | exec "\$@" |
b3076f16 | 8169 | fi |
8170 | ||
8171 | _ACEOF | |
db946ede | 8172 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
a8b2ad8d | 8173 | exec 5>>config.log |
8174 | { | |
8175 | echo | |
8176 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
8177 | ## Running $as_me. ## | |
8178 | _ASBOX | |
db946ede | 8179 | $as_echo "$ac_log" |
a8b2ad8d | 8180 | } >&5 |
b3076f16 | 8181 | |
a8b2ad8d | 8182 | _ACEOF |
db946ede | 8183 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ec1a68c8 | 8184 | # |
a8b2ad8d | 8185 | # INIT-COMMANDS |
ec1a68c8 | 8186 | # |
ec1a68c8 | 8187 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
8188 | ||
8189 | _ACEOF | |
b3076f16 | 8190 | |
db946ede | 8191 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
a8b2ad8d | 8192 | |
8193 | # Handling of arguments. | |
b3076f16 | 8194 | for ac_config_target in $ac_config_targets |
8195 | do | |
a8b2ad8d | 8196 | case $ac_config_target in |
8197 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; | |
8198 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
8199 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
8200 | "rx/Makefile") CONFIG_FILES="$CONFIG_FILES rx/Makefile" ;; | |
8201 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
8202 | ||
c6254516 | 8203 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
b3076f16 | 8204 | esac |
8205 | done | |
8206 | ||
a8b2ad8d | 8207 | |
b3076f16 | 8208 | # If the user did not use the arguments to specify the items to instantiate, |
8209 | # then the envvar interface is used. Set only those that are not. | |
8210 | # We use the long form for the default assignment because of an extremely | |
8211 | # bizarre bug on SunOS 4.1.3. | |
8212 | if $ac_need_defaults; then | |
8213 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
8214 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
ec1a68c8 | 8215 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
b3076f16 | 8216 | fi |
8217 | ||
8218 | # Have a temporary directory for convenience. Make it in the build tree | |
a8b2ad8d | 8219 | # simply because there is no reason against having it here, and in addition, |
b3076f16 | 8220 | # creating and moving files from /tmp can sometimes cause problems. |
a8b2ad8d | 8221 | # Hook for its removal unless debugging. |
8222 | # Note that there is a small window in which the directory will not be cleaned: | |
8223 | # after its creation but before its name has been assigned to `$tmp'. | |
b3076f16 | 8224 | $debug || |
8225 | { | |
c6254516 | 8226 | tmp= ac_tmp= |
a8b2ad8d | 8227 | trap 'exit_status=$? |
c6254516 R |
8228 | : "${ac_tmp:=$tmp}" |
8229 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
a8b2ad8d | 8230 | ' 0 |
db946ede | 8231 | trap 'as_fn_exit 1' 1 2 13 15 |
b3076f16 | 8232 | } |
b3076f16 | 8233 | # Create a (secure) tmp directory for tmp files. |
8234 | ||
8235 | { | |
a8b2ad8d | 8236 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
c6254516 | 8237 | test -d "$tmp" |
b3076f16 | 8238 | } || |
8239 | { | |
a8b2ad8d | 8240 | tmp=./conf$$-$RANDOM |
8241 | (umask 077 && mkdir "$tmp") | |
c6254516 R |
8242 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
8243 | ac_tmp=$tmp | |
b3076f16 | 8244 | |
db946ede | 8245 | # Set up the scripts for CONFIG_FILES section. |
8246 | # No need to generate them if there are no CONFIG_FILES. | |
8247 | # This happens for instance with `./config.status config.h'. | |
a8b2ad8d | 8248 | if test -n "$CONFIG_FILES"; then |
8249 | ||
a8b2ad8d | 8250 | |
db946ede | 8251 | ac_cr=`echo X | tr X '\015'` |
8252 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
8253 | # But we know of no other shell where ac_cr would be empty at this | |
8254 | # point, so we can use a bashism as a fallback. | |
8255 | if test "x$ac_cr" = x; then | |
8256 | eval ac_cr=\$\'\\r\' | |
8257 | fi | |
8258 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
8259 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
c6254516 | 8260 | ac_cs_awk_cr='\\r' |
db946ede | 8261 | else |
8262 | ac_cs_awk_cr=$ac_cr | |
a8b2ad8d | 8263 | fi |
8264 | ||
c6254516 | 8265 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
a8b2ad8d | 8266 | _ACEOF |
8267 | ||
8268 | ||
db946ede | 8269 | { |
8270 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
8271 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
8272 | echo "_ACEOF" | |
8273 | } >conf$$subs.sh || | |
c6254516 R |
8274 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
8275 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
a8b2ad8d | 8276 | ac_delim='%!_!# ' |
8277 | for ac_last_try in false false false false false :; do | |
db946ede | 8278 | . ./conf$$subs.sh || |
c6254516 | 8279 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
a8b2ad8d | 8280 | |
db946ede | 8281 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
8282 | if test $ac_delim_n = $ac_delim_num; then | |
a8b2ad8d | 8283 | break |
8284 | elif $ac_last_try; then | |
c6254516 | 8285 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
a8b2ad8d | 8286 | else |
8287 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
8288 | fi | |
8289 | done | |
db946ede | 8290 | rm -f conf$$subs.sh |
8291 | ||
8292 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
c6254516 | 8293 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
db946ede | 8294 | _ACEOF |
8295 | sed -n ' | |
8296 | h | |
8297 | s/^/S["/; s/!.*/"]=/ | |
8298 | p | |
8299 | g | |
8300 | s/^[^!]*!// | |
8301 | :repl | |
8302 | t repl | |
8303 | s/'"$ac_delim"'$// | |
8304 | t delim | |
8305 | :nl | |
8306 | h | |
c6254516 | 8307 | s/\(.\{148\}\)..*/\1/ |
db946ede | 8308 | t more1 |
8309 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
8310 | p | |
8311 | n | |
8312 | b repl | |
8313 | :more1 | |
8314 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8315 | p | |
8316 | g | |
8317 | s/.\{148\}// | |
8318 | t nl | |
8319 | :delim | |
8320 | h | |
c6254516 | 8321 | s/\(.\{148\}\)..*/\1/ |
db946ede | 8322 | t more2 |
8323 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
8324 | p | |
8325 | b | |
8326 | :more2 | |
8327 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8328 | p | |
8329 | g | |
8330 | s/.\{148\}// | |
8331 | t delim | |
8332 | ' <conf$$subs.awk | sed ' | |
8333 | /^[^""]/{ | |
8334 | N | |
8335 | s/\n// | |
8336 | } | |
8337 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
8338 | rm -f conf$$subs.awk | |
8339 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8340 | _ACAWK | |
c6254516 | 8341 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
db946ede | 8342 | for (key in S) S_is_set[key] = 1 |
8343 | FS = "\a" | |
a8b2ad8d | 8344 | |
db946ede | 8345 | } |
8346 | { | |
8347 | line = $ 0 | |
8348 | nfields = split(line, field, "@") | |
8349 | substed = 0 | |
8350 | len = length(field[1]) | |
8351 | for (i = 2; i < nfields; i++) { | |
8352 | key = field[i] | |
8353 | keylen = length(key) | |
8354 | if (S_is_set[key]) { | |
8355 | value = S[key] | |
8356 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
8357 | len += length(value) + length(field[++i]) | |
8358 | substed = 1 | |
8359 | } else | |
8360 | len += 1 + keylen | |
8361 | } | |
a8b2ad8d | 8362 | |
db946ede | 8363 | print line |
8364 | } | |
8365 | ||
8366 | _ACAWK | |
a8b2ad8d | 8367 | _ACEOF |
db946ede | 8368 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8369 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
8370 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
8371 | else | |
8372 | cat | |
c6254516 R |
8373 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
8374 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
a8b2ad8d | 8375 | _ACEOF |
8376 | ||
c6254516 R |
8377 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
8378 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
a8b2ad8d | 8379 | # trailing colons and then remove the whole line if VPATH becomes empty |
8380 | # (actually we leave an empty line to preserve line numbers). | |
8381 | if test "x$srcdir" = x.; then | |
c6254516 R |
8382 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
8383 | h | |
8384 | s/// | |
8385 | s/^/:/ | |
8386 | s/[ ]*$/:/ | |
8387 | s/:\$(srcdir):/:/g | |
8388 | s/:\${srcdir}:/:/g | |
8389 | s/:@srcdir@:/:/g | |
8390 | s/^:*// | |
a8b2ad8d | 8391 | s/:*$// |
c6254516 R |
8392 | x |
8393 | s/\(=[ ]*\).*/\1/ | |
8394 | G | |
8395 | s/\n// | |
a8b2ad8d | 8396 | s/^[^=]*=[ ]*$// |
8397 | }' | |
8398 | fi | |
8399 | ||
db946ede | 8400 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
a8b2ad8d | 8401 | fi # test -n "$CONFIG_FILES" |
8402 | ||
db946ede | 8403 | # Set up the scripts for CONFIG_HEADERS section. |
8404 | # No need to generate them if there are no CONFIG_HEADERS. | |
8405 | # This happens for instance with `./config.status Makefile'. | |
8406 | if test -n "$CONFIG_HEADERS"; then | |
c6254516 | 8407 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
db946ede | 8408 | BEGIN { |
8409 | _ACEOF | |
8410 | ||
8411 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
8412 | # here-document in config.status, that substitutes the proper values into | |
8413 | # config.h.in to produce config.h. | |
8414 | ||
8415 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
8416 | # handling of long lines. | |
8417 | ac_delim='%!_!# ' | |
8418 | for ac_last_try in false false :; do | |
c6254516 R |
8419 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
8420 | if test -z "$ac_tt"; then | |
db946ede | 8421 | break |
8422 | elif $ac_last_try; then | |
c6254516 | 8423 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
db946ede | 8424 | else |
8425 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
8426 | fi | |
8427 | done | |
8428 | ||
8429 | # For the awk script, D is an array of macro values keyed by name, | |
8430 | # likewise P contains macro parameters if any. Preserve backslash | |
8431 | # newline sequences. | |
8432 | ||
8433 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
8434 | sed -n ' | |
8435 | s/.\{148\}/&'"$ac_delim"'/g | |
8436 | t rset | |
8437 | :rset | |
8438 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
8439 | t def | |
8440 | d | |
8441 | :def | |
8442 | s/\\$// | |
8443 | t bsnl | |
8444 | s/["\\]/\\&/g | |
8445 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8446 | D["\1"]=" \3"/p | |
8447 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
8448 | d | |
8449 | :bsnl | |
8450 | s/["\\]/\\&/g | |
8451 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8452 | D["\1"]=" \3\\\\\\n"\\/p | |
8453 | t cont | |
8454 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
8455 | t cont | |
8456 | d | |
8457 | :cont | |
8458 | n | |
8459 | s/.\{148\}/&'"$ac_delim"'/g | |
8460 | t clear | |
8461 | :clear | |
8462 | s/\\$// | |
8463 | t bsnlc | |
8464 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
8465 | d | |
8466 | :bsnlc | |
8467 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
8468 | b cont | |
8469 | ' <confdefs.h | sed ' | |
8470 | s/'"$ac_delim"'/"\\\ | |
8471 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
8472 | ||
8473 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8474 | for (key in D) D_is_set[key] = 1 | |
8475 | FS = "\a" | |
8476 | } | |
8477 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
8478 | line = \$ 0 | |
8479 | split(line, arg, " ") | |
8480 | if (arg[1] == "#") { | |
8481 | defundef = arg[2] | |
8482 | mac1 = arg[3] | |
8483 | } else { | |
8484 | defundef = substr(arg[1], 2) | |
8485 | mac1 = arg[2] | |
8486 | } | |
8487 | split(mac1, mac2, "(") #) | |
8488 | macro = mac2[1] | |
8489 | prefix = substr(line, 1, index(line, defundef) - 1) | |
8490 | if (D_is_set[macro]) { | |
8491 | # Preserve the white space surrounding the "#". | |
8492 | print prefix "define", macro P[macro] D[macro] | |
8493 | next | |
8494 | } else { | |
8495 | # Replace #undef with comments. This is necessary, for example, | |
8496 | # in the case of _POSIX_SOURCE, which is predefined and required | |
8497 | # on some systems where configure will not decide to define it. | |
8498 | if (defundef == "undef") { | |
8499 | print "/*", prefix defundef, macro, "*/" | |
8500 | next | |
8501 | } | |
8502 | } | |
8503 | } | |
8504 | { print } | |
8505 | _ACAWK | |
8506 | _ACEOF | |
8507 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
c6254516 | 8508 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
db946ede | 8509 | fi # test -n "$CONFIG_HEADERS" |
8510 | ||
a8b2ad8d | 8511 | |
db946ede | 8512 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
8513 | shift | |
8514 | for ac_tag | |
a8b2ad8d | 8515 | do |
8516 | case $ac_tag in | |
8517 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
8518 | esac | |
8519 | case $ac_mode$ac_tag in | |
8520 | :[FHL]*:*);; | |
c6254516 | 8521 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
a8b2ad8d | 8522 | :[FH]-) ac_tag=-:-;; |
8523 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
8524 | esac | |
8525 | ac_save_IFS=$IFS | |
8526 | IFS=: | |
8527 | set x $ac_tag | |
8528 | IFS=$ac_save_IFS | |
8529 | shift | |
8530 | ac_file=$1 | |
8531 | shift | |
8532 | ||
8533 | case $ac_mode in | |
8534 | :L) ac_source=$1;; | |
8535 | :[FH]) | |
8536 | ac_file_inputs= | |
8537 | for ac_f | |
8538 | do | |
8539 | case $ac_f in | |
c6254516 | 8540 | -) ac_f="$ac_tmp/stdin";; |
a8b2ad8d | 8541 | *) # Look for the file first in the build tree, then in the source tree |
8542 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
8543 | # because $ac_f cannot contain `:'. | |
8544 | test -f "$ac_f" || | |
8545 | case $ac_f in | |
8546 | [\\/$]*) false;; | |
8547 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
8548 | esac || | |
c6254516 | 8549 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
a8b2ad8d | 8550 | esac |
db946ede | 8551 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
8552 | as_fn_append ac_file_inputs " '$ac_f'" | |
a8b2ad8d | 8553 | done |
8554 | ||
8555 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
8556 | # use $as_me), people would be surprised to read: | |
8557 | # /* config.h. Generated by config.status. */ | |
db946ede | 8558 | configure_input='Generated from '` |
8559 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
8560 | `' by configure.' | |
a8b2ad8d | 8561 | if test x"$ac_file" != x-; then |
8562 | configure_input="$ac_file. $configure_input" | |
db946ede | 8563 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
8564 | $as_echo "$as_me: creating $ac_file" >&6;} | |
a8b2ad8d | 8565 | fi |
db946ede | 8566 | # Neutralize special characters interpreted by sed in replacement strings. |
8567 | case $configure_input in #( | |
8568 | *\&* | *\|* | *\\* ) | |
8569 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
8570 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
8571 | *) ac_sed_conf_input=$configure_input;; | |
8572 | esac | |
a8b2ad8d | 8573 | |
8574 | case $ac_tag in | |
c6254516 R |
8575 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
8576 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
a8b2ad8d | 8577 | esac |
8578 | ;; | |
b3076f16 | 8579 | esac |
8580 | ||
a8b2ad8d | 8581 | ac_dir=`$as_dirname -- "$ac_file" || |
b3076f16 | 8582 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8583 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
8584 | X"$ac_file" : 'X\(//\)$' \| \ | |
a8b2ad8d | 8585 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
db946ede | 8586 | $as_echo X"$ac_file" | |
a8b2ad8d | 8587 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
8588 | s//\1/ | |
8589 | q | |
8590 | } | |
8591 | /^X\(\/\/\)[^/].*/{ | |
8592 | s//\1/ | |
8593 | q | |
8594 | } | |
8595 | /^X\(\/\/\)$/{ | |
8596 | s//\1/ | |
8597 | q | |
8598 | } | |
8599 | /^X\(\/\).*/{ | |
8600 | s//\1/ | |
8601 | q | |
8602 | } | |
8603 | s/.*/./; q'` | |
db946ede | 8604 | as_dir="$ac_dir"; as_fn_mkdir_p |
b3076f16 | 8605 | ac_builddir=. |
8606 | ||
a8b2ad8d | 8607 | case "$ac_dir" in |
8608 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8609 | *) | |
db946ede | 8610 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
a8b2ad8d | 8611 | # A ".." for each directory in $ac_dir_suffix. |
db946ede | 8612 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
a8b2ad8d | 8613 | case $ac_top_builddir_sub in |
8614 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8615 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
8616 | esac ;; | |
8617 | esac | |
8618 | ac_abs_top_builddir=$ac_pwd | |
8619 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
8620 | # for backward compatibility: | |
8621 | ac_top_builddir=$ac_top_build_prefix | |
b3076f16 | 8622 | |
8623 | case $srcdir in | |
a8b2ad8d | 8624 | .) # We are building in place. |
b3076f16 | 8625 | ac_srcdir=. |
a8b2ad8d | 8626 | ac_top_srcdir=$ac_top_builddir_sub |
8627 | ac_abs_top_srcdir=$ac_pwd ;; | |
8628 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b3076f16 | 8629 | ac_srcdir=$srcdir$ac_dir_suffix; |
a8b2ad8d | 8630 | ac_top_srcdir=$srcdir |
8631 | ac_abs_top_srcdir=$srcdir ;; | |
8632 | *) # Relative name. | |
8633 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
8634 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
8635 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b3076f16 | 8636 | esac |
a8b2ad8d | 8637 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
b3076f16 | 8638 | |
b3076f16 | 8639 | |
a8b2ad8d | 8640 | case $ac_mode in |
8641 | :F) | |
8642 | # | |
8643 | # CONFIG_FILE | |
8644 | # | |
b3076f16 | 8645 | |
8646 | case $INSTALL in | |
8647 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
a8b2ad8d | 8648 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
b3076f16 | 8649 | esac |
2f65da8f | 8650 | ac_MKDIR_P=$MKDIR_P |
8651 | case $MKDIR_P in | |
8652 | [\\/$]* | ?:[\\/]* ) ;; | |
8653 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
8654 | esac | |
a8b2ad8d | 8655 | _ACEOF |
b3076f16 | 8656 | |
db946ede | 8657 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
a8b2ad8d | 8658 | # If the template does not know about datarootdir, expand it. |
8659 | # FIXME: This hack should be removed a few years after 2.60. | |
8660 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
db946ede | 8661 | ac_sed_dataroot=' |
8662 | /datarootdir/ { | |
a8b2ad8d | 8663 | p |
8664 | q | |
8665 | } | |
8666 | /@datadir@/p | |
8667 | /@docdir@/p | |
8668 | /@infodir@/p | |
8669 | /@localedir@/p | |
db946ede | 8670 | /@mandir@/p' |
8671 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
a8b2ad8d | 8672 | *datarootdir*) ac_datarootdir_seen=yes;; |
8673 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
db946ede | 8674 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
8675 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
a8b2ad8d | 8676 | _ACEOF |
db946ede | 8677 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
a8b2ad8d | 8678 | ac_datarootdir_hack=' |
8679 | s&@datadir@&$datadir&g | |
8680 | s&@docdir@&$docdir&g | |
8681 | s&@infodir@&$infodir&g | |
8682 | s&@localedir@&$localedir&g | |
8683 | s&@mandir@&$mandir&g | |
db946ede | 8684 | s&\\\${datarootdir}&$datarootdir&g' ;; |
a8b2ad8d | 8685 | esac |
b3076f16 | 8686 | _ACEOF |
a8b2ad8d | 8687 | |
8688 | # Neutralize VPATH when `$srcdir' = `.'. | |
8689 | # Shell code in configure.ac might set extrasub. | |
8690 | # FIXME: do we really want to maintain this feature? | |
db946ede | 8691 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
8692 | ac_sed_extra="$ac_vpsub | |
b3076f16 | 8693 | $extrasub |
8694 | _ACEOF | |
db946ede | 8695 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b3076f16 | 8696 | :t |
8697 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
db946ede | 8698 | s|@configure_input@|$ac_sed_conf_input|;t t |
a8b2ad8d | 8699 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
db946ede | 8700 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
a8b2ad8d | 8701 | s&@srcdir@&$ac_srcdir&;t t |
8702 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
8703 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
8704 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
8705 | s&@builddir@&$ac_builddir&;t t | |
8706 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
8707 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
8708 | s&@INSTALL@&$ac_INSTALL&;t t | |
2f65da8f | 8709 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
a8b2ad8d | 8710 | $ac_datarootdir_hack |
db946ede | 8711 | " |
c6254516 R |
8712 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
8713 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
a8b2ad8d | 8714 | |
8715 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
c6254516 R |
8716 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
8717 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
8718 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
db946ede | 8719 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
c6254516 | 8720 | which seems to be undefined. Please make sure it is defined" >&5 |
db946ede | 8721 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
c6254516 | 8722 | which seems to be undefined. Please make sure it is defined" >&2;} |
a8b2ad8d | 8723 | |
c6254516 | 8724 | rm -f "$ac_tmp/stdin" |
b3076f16 | 8725 | case $ac_file in |
c6254516 R |
8726 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
8727 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
db946ede | 8728 | esac \ |
c6254516 | 8729 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
a8b2ad8d | 8730 | ;; |
8731 | :H) | |
8732 | # | |
8733 | # CONFIG_HEADER | |
8734 | # | |
b3076f16 | 8735 | if test x"$ac_file" != x-; then |
db946ede | 8736 | { |
8737 | $as_echo "/* $configure_input */" \ | |
c6254516 R |
8738 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
8739 | } >"$ac_tmp/config.h" \ | |
8740 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
8741 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
db946ede | 8742 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
8743 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
b3076f16 | 8744 | else |
db946ede | 8745 | rm -f "$ac_file" |
c6254516 R |
8746 | mv "$ac_tmp/config.h" "$ac_file" \ |
8747 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
b3076f16 | 8748 | fi |
8749 | else | |
db946ede | 8750 | $as_echo "/* $configure_input */" \ |
c6254516 R |
8751 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
8752 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
b3076f16 | 8753 | fi |
db946ede | 8754 | # Compute "$ac_file"'s index in $config_headers. |
8755 | _am_arg="$ac_file" | |
ec1a68c8 | 8756 | _am_stamp_count=1 |
8757 | for _am_header in $config_headers :; do | |
8758 | case $_am_header in | |
cbfd323c | 8759 | $_am_arg | $_am_arg:* ) |
ec1a68c8 | 8760 | break ;; |
8761 | * ) | |
8762 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
8763 | esac | |
8764 | done | |
cbfd323c | 8765 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
8766 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8767 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
8768 | X"$_am_arg" : 'X\(//\)$' \| \ | |
8769 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
db946ede | 8770 | $as_echo X"$_am_arg" | |
a8b2ad8d | 8771 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
8772 | s//\1/ | |
8773 | q | |
8774 | } | |
8775 | /^X\(\/\/\)[^/].*/{ | |
8776 | s//\1/ | |
8777 | q | |
8778 | } | |
8779 | /^X\(\/\/\)$/{ | |
8780 | s//\1/ | |
8781 | q | |
8782 | } | |
8783 | /^X\(\/\).*/{ | |
8784 | s//\1/ | |
8785 | q | |
8786 | } | |
8787 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
8788 | ;; | |
ec1a68c8 | 8789 | |
db946ede | 8790 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
8791 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
a8b2ad8d | 8792 | ;; |
8793 | esac | |
ec1a68c8 | 8794 | |
8795 | ||
a8b2ad8d | 8796 | case $ac_file$ac_mode in |
db946ede | 8797 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
8798 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
8799 | # are listed without --file. Let's play safe and only enable the eval | |
8800 | # if we detect the quoting. | |
8801 | case $CONFIG_FILES in | |
8802 | *\'*) eval set x "$CONFIG_FILES" ;; | |
8803 | *) set x $CONFIG_FILES ;; | |
8804 | esac | |
8805 | shift | |
8806 | for mf | |
8807 | do | |
8808 | # Strip MF so we end up with the name of the file. | |
8809 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
8810 | # Check whether this is an Automake generated Makefile or not. | |
8811 | # We used to match only the files named `Makefile.in', but | |
8812 | # some people rename them; so instead we look at the file content. | |
8813 | # Grep'ing the first line is not enough: some people post-process | |
8814 | # each Makefile.in and add a new line on top of each file to say so. | |
8815 | # Grep'ing the whole file is not good either: AIX grep has a line | |
8816 | # limit of 2048, but all sed's we know have understand at least 4000. | |
8817 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
8818 | dirpart=`$as_dirname -- "$mf" || | |
ec1a68c8 | 8819 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8820 | X"$mf" : 'X\(//\)[^/]' \| \ | |
8821 | X"$mf" : 'X\(//\)$' \| \ | |
a8b2ad8d | 8822 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
db946ede | 8823 | $as_echo X"$mf" | |
a8b2ad8d | 8824 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
8825 | s//\1/ | |
8826 | q | |
8827 | } | |
8828 | /^X\(\/\/\)[^/].*/{ | |
8829 | s//\1/ | |
8830 | q | |
8831 | } | |
8832 | /^X\(\/\/\)$/{ | |
8833 | s//\1/ | |
8834 | q | |
8835 | } | |
8836 | /^X\(\/\).*/{ | |
8837 | s//\1/ | |
8838 | q | |
8839 | } | |
8840 | s/.*/./; q'` | |
db946ede | 8841 | else |
8842 | continue | |
8843 | fi | |
8844 | # Extract the definition of DEPDIR, am__include, and am__quote | |
8845 | # from the Makefile without running `make'. | |
8846 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
8847 | test -z "$DEPDIR" && continue | |
8848 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
8849 | test -z "am__include" && continue | |
8850 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
8851 | # When using ansi2knr, U may be empty or an underscore; expand it | |
8852 | U=`sed -n 's/^U = //p' < "$mf"` | |
8853 | # Find all dependency output files, they are included files with | |
8854 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
8855 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
8856 | # expansion. | |
8857 | for file in `sed -n " | |
8858 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
8859 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
8860 | # Make sure the directory exists. | |
8861 | test -f "$dirpart/$file" && continue | |
8862 | fdir=`$as_dirname -- "$file" || | |
ec1a68c8 | 8863 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8864 | X"$file" : 'X\(//\)[^/]' \| \ | |
8865 | X"$file" : 'X\(//\)$' \| \ | |
a8b2ad8d | 8866 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
db946ede | 8867 | $as_echo X"$file" | |
a8b2ad8d | 8868 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
8869 | s//\1/ | |
8870 | q | |
8871 | } | |
8872 | /^X\(\/\/\)[^/].*/{ | |
8873 | s//\1/ | |
8874 | q | |
8875 | } | |
8876 | /^X\(\/\/\)$/{ | |
8877 | s//\1/ | |
8878 | q | |
8879 | } | |
8880 | /^X\(\/\).*/{ | |
8881 | s//\1/ | |
8882 | q | |
8883 | } | |
8884 | s/.*/./; q'` | |
db946ede | 8885 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
8886 | # echo "creating $dirpart/$file" | |
8887 | echo '# dummy' > "$dirpart/$file" | |
ec1a68c8 | 8888 | done |
ec1a68c8 | 8889 | done |
db946ede | 8890 | } |
ec1a68c8 | 8891 | ;; |
a8b2ad8d | 8892 | |
ec1a68c8 | 8893 | esac |
a8b2ad8d | 8894 | done # for ac_tag |
b3076f16 | 8895 | |
b3076f16 | 8896 | |
db946ede | 8897 | as_fn_exit 0 |
b3076f16 | 8898 | _ACEOF |
b3076f16 | 8899 | ac_clean_files=$ac_clean_files_save |
8900 | ||
db946ede | 8901 | test $ac_write_fail = 0 || |
c6254516 | 8902 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
db946ede | 8903 | |
b3076f16 | 8904 | |
8905 | # configure is writing to config.log, and then calls config.status. | |
8906 | # config.status does its own redirection, appending to config.log. | |
8907 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
8908 | # by configure, so config.status won't be able to write to it; its | |
8909 | # output is simply discarded. So we exec the FD to /dev/null, | |
8910 | # effectively closing config.log, so it can be properly (re)opened and | |
8911 | # appended to by config.status. When coming back to configure, we | |
8912 | # need to make the FD available again. | |
8913 | if test "$no_create" != yes; then | |
8914 | ac_cs_success=: | |
8915 | ac_config_status_args= | |
8916 | test "$silent" = yes && | |
8917 | ac_config_status_args="$ac_config_status_args --quiet" | |
8918 | exec 5>/dev/null | |
8919 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
8920 | exec 5>>config.log | |
8921 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
8922 | # would make configure fail if this is the last instruction. | |
c6254516 | 8923 | $ac_cs_success || as_fn_exit 1 |
db946ede | 8924 | fi |
8925 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
8926 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
8927 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
b3076f16 | 8928 | fi |
8929 | ||
5b1166fd | 8930 | |
8931 | ||
8932 | ||
8933 | cat <<EOF | |
8934 | ||
8935 | Configuration summary | |
8936 | ===================== | |
8937 | ||
8938 | X3 is now configured as follows: | |
8939 | ||
8940 | * Compilation environment | |
8941 | ||
8942 | CC = $CC | |
8943 | CFLAGS = $CFLAGS | |
8944 | CPP = $CPP | |
8945 | CPPFLAGS = $CPPFLAGS | |
8946 | LD = $LD | |
8947 | LDFLAGS = $LDFLAGS | |
8948 | LIBS = $LIBS | |
8949 | ||
8950 | * X3 options | |
8951 | ||
a8b2ad8d | 8952 | Debug: $x3_debug |
8953 | Extra Modules: $module_list | |
8954 | Malloc: $x3_malloc | |
8955 | Protocol: $x3_ircd | |
8956 | Regexp Library TRE $tre_version | |
8957 | Coredumper Library Coredumper $core_version | |
8da89711 | 8958 | $ldap_message |
2f65da8f | 8959 | python: $python |
5b1166fd | 8960 | |
a8b2ad8d | 8961 | Install to: $prefix |
35305a49 | 8962 | |
5b1166fd | 8963 | Now you can proceed with compiling X3 |
8964 | ||
8965 | EOF | |
8966 |