Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Argus-5.0 Client Programs 5.0.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell [email protected] and
270 $0: [email protected] about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302 return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381 else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398 else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512 *)
513 ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537 else
538 as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='Argus-5.0 Client Programs'
582 PACKAGE_TARNAME='argus-clients'
583 PACKAGE_VERSION='5.0'
584 PACKAGE_STRING='Argus-5.0 Client Programs 5.0'
585 PACKAGE_BUGREPORT='[email protected]'
586 PACKAGE_URL='http://qosient.com/argus'
587
588 ac_unique_file="clients/ra.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 ac_header_list=
626 ac_func_list=
627 ac_subst_vars='LTLIBOBJS
628 PCRE_CFLAGS
629 INSTALL_BIN
630 INSTALL_LIB
631 XDR_INCLS
632 LIB_XDR
633 CURSES_INCLS
634 CURSESLIB
635 DNSLIB
636 ZLIB
637 COMPATLIB
638 WRAPLIBS
639 V_GEOIPDEP
640 V_READLINE_INCLS
641 V_READLINE
642 V_PCRE
643 V_FTDEP
644 V_THREADS
645 V_PERL
646 V_PYTHON_INCLS
647 V_INCLS_EXAMPLES
648 V_INCLS
649 V_CCOPT
650 INCLS
651 DIRS
652 PACKAGE_RELEASE
653 HAVE_SWIG
654 pkgpyexecdir
655 pyexecdir
656 pkgpythondir
657 pythondir
658 PYTHON_PLATFORM
659 PYTHON_EXEC_PREFIX
660 PYTHON_PREFIX
661 PYTHON_VERSION
662 PYTHON
663 PERL_EXT_DLEXT
664 PERL_EXT_LDFLAGS
665 PERL_EXT_CPPFLAGS
666 PERL_EXT_LIB
667 PERL_EXT_INC
668 PERL_EXT_PREFIX
669 PERL
670 LIBCARES_LIBS
671 LIBCARES_CFLAGS
672 UUID_LIBS
673 ARGUS_CURLEXE
674 LIBCURL
675 LIBCURL_CPPFLAGS
676 _libcurl_config
677 AWK
678 systemdsystemunitdir
679 LIBMAXMINDDB_LIBS
680 LIBMAXMINDDB_CFLAGS
681 PKG_CONFIG_LIBDIR
682 PKG_CONFIG_PATH
683 PKG_CONFIG
684 POW_LIB
685 LIBOBJS
686 ALLOCA
687 PCRE_CONFIG
688 FT_CONFIG
689 ARGUS_MYSQL
690 MYSQL_INCLS
691 MYSQL_LDFLAGS
692 SASLFLAGS
693 LIB_SASL
694 EGREP
695 GREP
696 CPP
697 V_YACC
698 V_LEX
699 V_RANLIB
700 YFLAGS
701 YACC
702 RANLIB
703 INSTALL_DATA
704 INSTALL_SCRIPT
705 INSTALL_PROGRAM
706 LEXLIB
707 LEX_OUTPUT_ROOT
708 LEX
709 LN_S
710 OBJEXT
711 EXEEXT
712 ac_ct_CC
713 CPPFLAGS
714 LDFLAGS
715 CFLAGS
716 CC
717 SHLICC2
718 CLANG
719 target_os
720 target_vendor
721 target_cpu
722 target
723 host_os
724 host_vendor
725 host_cpu
726 host
727 build_os
728 build_vendor
729 build_cpu
730 build
731 target_alias
732 host_alias
733 build_alias
734 LIBS
735 ECHO_T
736 ECHO_N
737 ECHO_C
738 DEFS
739 mandir
740 localedir
741 libdir
742 psdir
743 pdfdir
744 dvidir
745 htmldir
746 infodir
747 docdir
748 oldincludedir
749 includedir
750 runstatedir
751 localstatedir
752 sharedstatedir
753 sysconfdir
754 datadir
755 datarootdir
756 libexecdir
757 sbindir
758 bindir
759 program_transform_name
760 prefix
761 exec_prefix
762 PACKAGE_URL
763 PACKAGE_BUGREPORT
764 PACKAGE_STRING
765 PACKAGE_VERSION
766 PACKAGE_TARNAME
767 PACKAGE_NAME
768 PATH_SEPARATOR
769 SHELL'
770 ac_subst_files=''
771 ac_user_opts='
772 enable_option_checking
773 with_gcc
774 with_examples
775 with_perllib
776 with_pythonlib
777 with_pluribus
778 with_readline
779 with_sasl
780 with_staticsasl
781 with_mysql
782 with_libft
783 with_libpcre
784 with_pcre_config
785 enable_largefile
786 with_threads
787 with_libmaxminddb
788 with_GeoIP
789 with_systemdsystemunitdir
790 with_libcurl
791 with_curlexe
792 with_c_ares
793 enable_python
794 '
795 ac_precious_vars='build_alias
796 host_alias
797 target_alias
798 CC
799 CFLAGS
800 LDFLAGS
801 LIBS
802 CPPFLAGS
803 YACC
804 YFLAGS
805 CPP
806 PKG_CONFIG
807 PKG_CONFIG_PATH
808 PKG_CONFIG_LIBDIR
809 LIBMAXMINDDB_CFLAGS
810 LIBMAXMINDDB_LIBS
811 LIBCARES_CFLAGS
812 LIBCARES_LIBS
813 PERL_EXT_PREFIX
814 PERL_EXT_INC
815 PERL_EXT_LIB
816 PERL_EXT_CPPFLAGS
817 PERL_EXT_LDFLAGS
818 PERL_EXT_DLEXT
819 PYTHON'
820
821
822 # Initialize some variables set by options.
823 ac_init_help=
824 ac_init_version=false
825 ac_unrecognized_opts=
826 ac_unrecognized_sep=
827 # The variables have the same names as the options, with
828 # dashes changed to underlines.
829 cache_file=/dev/null
830 exec_prefix=NONE
831 no_create=
832 no_recursion=
833 prefix=NONE
834 program_prefix=NONE
835 program_suffix=NONE
836 program_transform_name=s,x,x,
837 silent=
838 site=
839 srcdir=
840 verbose=
841 x_includes=NONE
842 x_libraries=NONE
843
844 # Installation directory options.
845 # These are left unexpanded so users can "make install exec_prefix=/foo"
846 # and all the variables that are supposed to be based on exec_prefix
847 # by default will actually change.
848 # Use braces instead of parens because sh, perl, etc. also accept them.
849 # (The list follows the same order as the GNU Coding Standards.)
850 bindir='${exec_prefix}/bin'
851 sbindir='${exec_prefix}/sbin'
852 libexecdir='${exec_prefix}/libexec'
853 datarootdir='${prefix}/share'
854 datadir='${datarootdir}'
855 sysconfdir='${prefix}/etc'
856 sharedstatedir='${prefix}/com'
857 localstatedir='${prefix}/var'
858 runstatedir='${localstatedir}/run'
859 includedir='${prefix}/include'
860 oldincludedir='/usr/include'
861 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
862 infodir='${datarootdir}/info'
863 htmldir='${docdir}'
864 dvidir='${docdir}'
865 pdfdir='${docdir}'
866 psdir='${docdir}'
867 libdir='${exec_prefix}/lib'
868 localedir='${datarootdir}/locale'
869 mandir='${datarootdir}/man'
870
871 ac_prev=
872 ac_dashdash=
873 for ac_option
874 do
875 # If the previous option needs an argument, assign it.
876 if test -n "$ac_prev"; then
877 eval $ac_prev=\$ac_option
878 ac_prev=
879 continue
880 fi
881
882 case $ac_option in
883 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884 *=) ac_optarg= ;;
885 *) ac_optarg=yes ;;
886 esac
887
888 # Accept the important Cygnus configure options, so we can diagnose typos.
889
890 case $ac_dashdash$ac_option in
891 --)
892 ac_dashdash=yes ;;
893
894 -bindir | --bindir | --bindi | --bind | --bin | --bi)
895 ac_prev=bindir ;;
896 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
897 bindir=$ac_optarg ;;
898
899 -build | --build | --buil | --bui | --bu)
900 ac_prev=build_alias ;;
901 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
902 build_alias=$ac_optarg ;;
903
904 -cache-file | --cache-file | --cache-fil | --cache-fi \
905 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
906 ac_prev=cache_file ;;
907 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
908 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
909 cache_file=$ac_optarg ;;
910
911 --config-cache | -C)
912 cache_file=config.cache ;;
913
914 -datadir | --datadir | --datadi | --datad)
915 ac_prev=datadir ;;
916 -datadir=* | --datadir=* | --datadi=* | --datad=*)
917 datadir=$ac_optarg ;;
918
919 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
920 | --dataroo | --dataro | --datar)
921 ac_prev=datarootdir ;;
922 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
923 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
924 datarootdir=$ac_optarg ;;
925
926 -disable-* | --disable-*)
927 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930 as_fn_error $? "invalid feature name: $ac_useropt"
931 ac_useropt_orig=$ac_useropt
932 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933 case $ac_user_opts in
934 *"
935 "enable_$ac_useropt"
936 "*) ;;
937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
938 ac_unrecognized_sep=', ';;
939 esac
940 eval enable_$ac_useropt=no ;;
941
942 -docdir | --docdir | --docdi | --doc | --do)
943 ac_prev=docdir ;;
944 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
945 docdir=$ac_optarg ;;
946
947 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948 ac_prev=dvidir ;;
949 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
950 dvidir=$ac_optarg ;;
951
952 -enable-* | --enable-*)
953 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956 as_fn_error $? "invalid feature name: $ac_useropt"
957 ac_useropt_orig=$ac_useropt
958 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959 case $ac_user_opts in
960 *"
961 "enable_$ac_useropt"
962 "*) ;;
963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
964 ac_unrecognized_sep=', ';;
965 esac
966 eval enable_$ac_useropt=\$ac_optarg ;;
967
968 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
969 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
970 | --exec | --exe | --ex)
971 ac_prev=exec_prefix ;;
972 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
973 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
974 | --exec=* | --exe=* | --ex=*)
975 exec_prefix=$ac_optarg ;;
976
977 -gas | --gas | --ga | --g)
978 # Obsolete; use --with-gas.
979 with_gas=yes ;;
980
981 -help | --help | --hel | --he | -h)
982 ac_init_help=long ;;
983 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
984 ac_init_help=recursive ;;
985 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
986 ac_init_help=short ;;
987
988 -host | --host | --hos | --ho)
989 ac_prev=host_alias ;;
990 -host=* | --host=* | --hos=* | --ho=*)
991 host_alias=$ac_optarg ;;
992
993 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
994 ac_prev=htmldir ;;
995 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
996 | --ht=*)
997 htmldir=$ac_optarg ;;
998
999 -includedir | --includedir | --includedi | --included | --include \
1000 | --includ | --inclu | --incl | --inc)
1001 ac_prev=includedir ;;
1002 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1003 | --includ=* | --inclu=* | --incl=* | --inc=*)
1004 includedir=$ac_optarg ;;
1005
1006 -infodir | --infodir | --infodi | --infod | --info | --inf)
1007 ac_prev=infodir ;;
1008 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1009 infodir=$ac_optarg ;;
1010
1011 -libdir | --libdir | --libdi | --libd)
1012 ac_prev=libdir ;;
1013 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1014 libdir=$ac_optarg ;;
1015
1016 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1017 | --libexe | --libex | --libe)
1018 ac_prev=libexecdir ;;
1019 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1020 | --libexe=* | --libex=* | --libe=*)
1021 libexecdir=$ac_optarg ;;
1022
1023 -localedir | --localedir | --localedi | --localed | --locale)
1024 ac_prev=localedir ;;
1025 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1026 localedir=$ac_optarg ;;
1027
1028 -localstatedir | --localstatedir | --localstatedi | --localstated \
1029 | --localstate | --localstat | --localsta | --localst | --locals)
1030 ac_prev=localstatedir ;;
1031 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1032 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1033 localstatedir=$ac_optarg ;;
1034
1035 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1036 ac_prev=mandir ;;
1037 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1038 mandir=$ac_optarg ;;
1039
1040 -nfp | --nfp | --nf)
1041 # Obsolete; use --without-fp.
1042 with_fp=no ;;
1043
1044 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1045 | --no-cr | --no-c | -n)
1046 no_create=yes ;;
1047
1048 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1049 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1050 no_recursion=yes ;;
1051
1052 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1053 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1054 | --oldin | --oldi | --old | --ol | --o)
1055 ac_prev=oldincludedir ;;
1056 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1057 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1058 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1059 oldincludedir=$ac_optarg ;;
1060
1061 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1062 ac_prev=prefix ;;
1063 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1064 prefix=$ac_optarg ;;
1065
1066 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1067 | --program-pre | --program-pr | --program-p)
1068 ac_prev=program_prefix ;;
1069 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1070 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1071 program_prefix=$ac_optarg ;;
1072
1073 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1074 | --program-suf | --program-su | --program-s)
1075 ac_prev=program_suffix ;;
1076 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1077 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1078 program_suffix=$ac_optarg ;;
1079
1080 -program-transform-name | --program-transform-name \
1081 | --program-transform-nam | --program-transform-na \
1082 | --program-transform-n | --program-transform- \
1083 | --program-transform | --program-transfor \
1084 | --program-transfo | --program-transf \
1085 | --program-trans | --program-tran \
1086 | --progr-tra | --program-tr | --program-t)
1087 ac_prev=program_transform_name ;;
1088 -program-transform-name=* | --program-transform-name=* \
1089 | --program-transform-nam=* | --program-transform-na=* \
1090 | --program-transform-n=* | --program-transform-=* \
1091 | --program-transform=* | --program-transfor=* \
1092 | --program-transfo=* | --program-transf=* \
1093 | --program-trans=* | --program-tran=* \
1094 | --progr-tra=* | --program-tr=* | --program-t=*)
1095 program_transform_name=$ac_optarg ;;
1096
1097 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1098 ac_prev=pdfdir ;;
1099 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1100 pdfdir=$ac_optarg ;;
1101
1102 -psdir | --psdir | --psdi | --psd | --ps)
1103 ac_prev=psdir ;;
1104 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1105 psdir=$ac_optarg ;;
1106
1107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1108 | -silent | --silent | --silen | --sile | --sil)
1109 silent=yes ;;
1110
1111 -runstatedir | --runstatedir | --runstatedi | --runstated \
1112 | --runstate | --runstat | --runsta | --runst | --runs \
1113 | --run | --ru | --r)
1114 ac_prev=runstatedir ;;
1115 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1116 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1117 | --run=* | --ru=* | --r=*)
1118 runstatedir=$ac_optarg ;;
1119
1120 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121 ac_prev=sbindir ;;
1122 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123 | --sbi=* | --sb=*)
1124 sbindir=$ac_optarg ;;
1125
1126 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128 | --sharedst | --shareds | --shared | --share | --shar \
1129 | --sha | --sh)
1130 ac_prev=sharedstatedir ;;
1131 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134 | --sha=* | --sh=*)
1135 sharedstatedir=$ac_optarg ;;
1136
1137 -site | --site | --sit)
1138 ac_prev=site ;;
1139 -site=* | --site=* | --sit=*)
1140 site=$ac_optarg ;;
1141
1142 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143 ac_prev=srcdir ;;
1144 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1145 srcdir=$ac_optarg ;;
1146
1147 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148 | --syscon | --sysco | --sysc | --sys | --sy)
1149 ac_prev=sysconfdir ;;
1150 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1152 sysconfdir=$ac_optarg ;;
1153
1154 -target | --target | --targe | --targ | --tar | --ta | --t)
1155 ac_prev=target_alias ;;
1156 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1157 target_alias=$ac_optarg ;;
1158
1159 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160 verbose=yes ;;
1161
1162 -version | --version | --versio | --versi | --vers | -V)
1163 ac_init_version=: ;;
1164
1165 -with-* | --with-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error $? "invalid package name: $ac_useropt"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174 "with_$ac_useropt"
1175 "*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1178 esac
1179 eval with_$ac_useropt=\$ac_optarg ;;
1180
1181 -without-* | --without-*)
1182 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error $? "invalid package name: $ac_useropt"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190 "with_$ac_useropt"
1191 "*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=no ;;
1196
1197 --x)
1198 # Obsolete; use --with-x.
1199 with_x=yes ;;
1200
1201 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202 | --x-incl | --x-inc | --x-in | --x-i)
1203 ac_prev=x_includes ;;
1204 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1206 x_includes=$ac_optarg ;;
1207
1208 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210 ac_prev=x_libraries ;;
1211 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1213 x_libraries=$ac_optarg ;;
1214
1215 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1216 Try \`$0 --help' for more information"
1217 ;;
1218
1219 *=*)
1220 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221 # Reject names that are not valid shell variable names.
1222 case $ac_envvar in #(
1223 '' | [0-9]* | *[!_$as_cr_alnum]* )
1224 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1225 esac
1226 eval $ac_envvar=\$ac_optarg
1227 export $ac_envvar ;;
1228
1229 *)
1230 # FIXME: should be removed in autoconf 3.0.
1231 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1232 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1234 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1235 ;;
1236
1237 esac
1238 done
1239
1240 if test -n "$ac_prev"; then
1241 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1242 as_fn_error $? "missing argument to $ac_option"
1243 fi
1244
1245 if test -n "$ac_unrecognized_opts"; then
1246 case $enable_option_checking in
1247 no) ;;
1248 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1249 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1250 esac
1251 fi
1252
1253 # Check all directory arguments for consistency.
1254 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255 datadir sysconfdir sharedstatedir localstatedir includedir \
1256 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1257 libdir localedir mandir runstatedir
1258 do
1259 eval ac_val=\$$ac_var
1260 # Remove trailing slashes.
1261 case $ac_val in
1262 */ )
1263 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264 eval $ac_var=\$ac_val;;
1265 esac
1266 # Be sure to have absolute directory names.
1267 case $ac_val in
1268 [\\/$]* | ?:[\\/]* ) continue;;
1269 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1270 esac
1271 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1272 done
1273
1274 # There might be people who depend on the old broken behavior: `$host'
1275 # used to hold the argument of --host etc.
1276 # FIXME: To remove some day.
1277 build=$build_alias
1278 host=$host_alias
1279 target=$target_alias
1280
1281 # FIXME: To remove some day.
1282 if test "x$host_alias" != x; then
1283 if test "x$build_alias" = x; then
1284 cross_compiling=maybe
1285 elif test "x$build_alias" != "x$host_alias"; then
1286 cross_compiling=yes
1287 fi
1288 fi
1289
1290 ac_tool_prefix=
1291 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292
1293 test "$silent" = yes && exec 6>/dev/null
1294
1295
1296 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297 ac_ls_di=`ls -di .` &&
1298 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299 as_fn_error $? "working directory cannot be determined"
1300 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1301 as_fn_error $? "pwd does not report name of working directory"
1302
1303
1304 # Find the source files, if location was not specified.
1305 if test -z "$srcdir"; then
1306 ac_srcdir_defaulted=yes
1307 # Try the directory containing this script, then the parent directory.
1308 ac_confdir=`$as_dirname -- "$as_myself" ||
1309 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310 X"$as_myself" : 'X\(//\)[^/]' \| \
1311 X"$as_myself" : 'X\(//\)$' \| \
1312 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313 $as_echo X"$as_myself" |
1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315 s//\1/
1316 q
1317 }
1318 /^X\(\/\/\)[^/].*/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\/\)$/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\).*/{
1327 s//\1/
1328 q
1329 }
1330 s/.*/./; q'`
1331 srcdir=$ac_confdir
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1333 srcdir=..
1334 fi
1335 else
1336 ac_srcdir_defaulted=no
1337 fi
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1341 fi
1342 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343 ac_abs_confdir=`(
1344 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1345 pwd)`
1346 # When building in place, set srcdir=.
1347 if test "$ac_abs_confdir" = "$ac_pwd"; then
1348 srcdir=.
1349 fi
1350 # Remove unnecessary trailing slashes from srcdir.
1351 # Double slashes in file names in object file debugging info
1352 # mess up M-x gdb in Emacs.
1353 case $srcdir in
1354 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355 esac
1356 for ac_var in $ac_precious_vars; do
1357 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1358 eval ac_env_${ac_var}_value=\$${ac_var}
1359 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1361 done
1362
1363 #
1364 # Report the --help message.
1365 #
1366 if test "$ac_init_help" = "long"; then
1367 # Omit some internal or obsolete options to make the list less imposing.
1368 # This message is too long to be a string in the A/UX 3.1 sh.
1369 cat <<_ACEOF
1370 \`configure' configures Argus-5.0 Client Programs 5.0 to adapt to many kinds of systems.
1371
1372 Usage: $0 [OPTION]... [VAR=VALUE]...
1373
1374 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1375 VAR=VALUE. See below for descriptions of some of the useful variables.
1376
1377 Defaults for the options are specified in brackets.
1378
1379 Configuration:
1380 -h, --help display this help and exit
1381 --help=short display options specific to this package
1382 --help=recursive display the short help of all the included packages
1383 -V, --version display version information and exit
1384 -q, --quiet, --silent do not print \`checking ...' messages
1385 --cache-file=FILE cache test results in FILE [disabled]
1386 -C, --config-cache alias for \`--cache-file=config.cache'
1387 -n, --no-create do not create output files
1388 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1389
1390 Installation directories:
1391 --prefix=PREFIX install architecture-independent files in PREFIX
1392 [$ac_default_prefix]
1393 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1394 [PREFIX]
1395
1396 By default, \`make install' will install all the files in
1397 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1398 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1399 for instance \`--prefix=\$HOME'.
1400
1401 For better control, use the options below.
1402
1403 Fine tuning of the installation directories:
1404 --bindir=DIR user executables [EPREFIX/bin]
1405 --sbindir=DIR system admin executables [EPREFIX/sbin]
1406 --libexecdir=DIR program executables [EPREFIX/libexec]
1407 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1408 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1409 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1410 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1411 --libdir=DIR object code libraries [EPREFIX/lib]
1412 --includedir=DIR C header files [PREFIX/include]
1413 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1416 --infodir=DIR info documentation [DATAROOTDIR/info]
1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1418 --mandir=DIR man documentation [DATAROOTDIR/man]
1419 --docdir=DIR documentation root [DATAROOTDIR/doc/argus-clients]
1420 --htmldir=DIR html documentation [DOCDIR]
1421 --dvidir=DIR dvi documentation [DOCDIR]
1422 --pdfdir=DIR pdf documentation [DOCDIR]
1423 --psdir=DIR ps documentation [DOCDIR]
1424 _ACEOF
1425
1426 cat <<\_ACEOF
1427
1428 System types:
1429 --build=BUILD configure for building on BUILD [guessed]
1430 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1431 --target=TARGET configure for building compilers for TARGET [HOST]
1432 _ACEOF
1433 fi
1434
1435 if test -n "$ac_init_help"; then
1436 case $ac_init_help in
1437 short | recursive ) echo "Configuration of Argus-5.0 Client Programs 5.0:";;
1438 esac
1439 cat <<\_ACEOF
1440
1441 Optional Features:
1442 --disable-option-checking ignore unrecognized --enable/--with options
1443 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1444 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1445 --disable-largefile omit support for large files
1446 --disable-python Disable scripts that depends on python
1447
1448 Optional Packages:
1449 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1450 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1451 --without-gcc don't use gcc
1452 --without-examples don't compile examples
1453 --with-perllib Compile perl libraries
1454 --with-pythonlib Compile python libraries
1455 --with-pluribus Compile for pluribus
1456 --with-readline=DIR Compile with readline in <DIR>
1457 --with-sasl=DIR Compile with libsasl2 in <DIR>
1458 --with-staticsasl=DIR Compile with staticly linked libsasl in <DIR>
1459 --with-mysql=DIR use mysql in <DIR> yes
1460 --with-libft=DIR Compile with libft in <DIR>
1461 --with-libpcre=DIR Compile with libpcre in <DIR>
1462 --with-pcre-config=PATH Location of PCRE pcre-config (auto)
1463 --without-threads don't use native threads package
1464 --with-libmaxminddb Build with libmaxminddb for GeoIP2 labeling
1465 --with-GeoIP=DIR Compile with GeoIP in <DIR>
1466 --with-systemdsystemunitdir=DIR
1467 Directory for systemd service files
1468 --with-libcurl=PREFIX look for the curl library in PREFIX/lib and headers
1469 in PREFIX/include
1470 --with-curlexe=PATH location of the curl binary to be run from ramanage
1471 --with-c-ares Build with c-ares for name resolution
1472
1473 Some influential environment variables:
1474 CC C compiler command
1475 CFLAGS C compiler flags
1476 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1477 nonstandard directory <lib dir>
1478 LIBS libraries to pass to the linker, e.g. -l<library>
1479 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1480 you have headers in a nonstandard directory <include dir>
1481 YACC The `Yet Another Compiler Compiler' implementation to use.
1482 Defaults to the first program found out of: `bison -y', `byacc',
1483 `yacc'.
1484 YFLAGS The list of arguments that will be passed by default to $YACC.
1485 This script will default YFLAGS to the empty string to avoid a
1486 default value of `-d' given by some make applications.
1487 CPP C preprocessor
1488 PKG_CONFIG path to pkg-config utility
1489 PKG_CONFIG_PATH
1490 directories to add to pkg-config's search path
1491 PKG_CONFIG_LIBDIR
1492 path overriding pkg-config's built-in search path
1493 LIBMAXMINDDB_CFLAGS
1494 C compiler flags for LIBMAXMINDDB, overriding pkg-config
1495 LIBMAXMINDDB_LIBS
1496 linker flags for LIBMAXMINDDB, overriding pkg-config
1497 LIBCARES_CFLAGS
1498 C compiler flags for LIBCARES, overriding pkg-config
1499 LIBCARES_LIBS
1500 linker flags for LIBCARES, overriding pkg-config
1501 PERL_EXT_PREFIX
1502 Perl PREFIX
1503 PERL_EXT_INC
1504 Directory to include XS headers from
1505 PERL_EXT_LIB
1506 Directory to install perl files into
1507 PERL_EXT_CPPFLAGS
1508 CPPFLAGS to compile perl extensions
1509 PERL_EXT_LDFLAGS
1510 LDFLAGS to build perl extensions
1511 PERL_EXT_DLEXT
1512 Perl dynamic library extension
1513 PYTHON the Python interpreter
1514
1515 Use these variables to override the choices made by `configure' or to help
1516 it to find libraries and programs with nonstandard names/locations.
1517
1518 Report bugs to <[email protected]>.
1519 Argus-5.0 Client Programs home page: <http://qosient.com/argus>.
1520 _ACEOF
1521 ac_status=$?
1522 fi
1523
1524 if test "$ac_init_help" = "recursive"; then
1525 # If there are subdirs, report their specific --help.
1526 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1527 test -d "$ac_dir" ||
1528 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1529 continue
1530 ac_builddir=.
1531
1532 case "$ac_dir" in
1533 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *)
1535 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1536 # A ".." for each directory in $ac_dir_suffix.
1537 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1538 case $ac_top_builddir_sub in
1539 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1541 esac ;;
1542 esac
1543 ac_abs_top_builddir=$ac_pwd
1544 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1545 # for backward compatibility:
1546 ac_top_builddir=$ac_top_build_prefix
1547
1548 case $srcdir in
1549 .) # We are building in place.
1550 ac_srcdir=.
1551 ac_top_srcdir=$ac_top_builddir_sub
1552 ac_abs_top_srcdir=$ac_pwd ;;
1553 [\\/]* | ?:[\\/]* ) # Absolute name.
1554 ac_srcdir=$srcdir$ac_dir_suffix;
1555 ac_top_srcdir=$srcdir
1556 ac_abs_top_srcdir=$srcdir ;;
1557 *) # Relative name.
1558 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1559 ac_top_srcdir=$ac_top_build_prefix$srcdir
1560 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1561 esac
1562 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1563
1564 cd "$ac_dir" || { ac_status=$?; continue; }
1565 # Check for guested configure.
1566 if test -f "$ac_srcdir/configure.gnu"; then
1567 echo &&
1568 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1569 elif test -f "$ac_srcdir/configure"; then
1570 echo &&
1571 $SHELL "$ac_srcdir/configure" --help=recursive
1572 else
1573 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1574 fi || ac_status=$?
1575 cd "$ac_pwd" || { ac_status=$?; break; }
1576 done
1577 fi
1578
1579 test -n "$ac_init_help" && exit $ac_status
1580 if $ac_init_version; then
1581 cat <<\_ACEOF
1582 Argus-5.0 Client Programs configure 5.0
1583 generated by GNU Autoconf 2.69
1584
1585 Copyright (C) 2012 Free Software Foundation, Inc.
1586 This configure script is free software; the Free Software Foundation
1587 gives unlimited permission to copy, distribute and modify it.
1588 _ACEOF
1589 exit
1590 fi
1591
1592 ## ------------------------ ##
1593 ## Autoconf initialization. ##
1594 ## ------------------------ ##
1595
1596 # ac_fn_c_try_compile LINENO
1597 # --------------------------
1598 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1599 ac_fn_c_try_compile ()
1600 {
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 rm -f conftest.$ac_objext
1603 if { { ac_try="$ac_compile"
1604 case "(($ac_try" in
1605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606 *) ac_try_echo=$ac_try;;
1607 esac
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 $as_echo "$ac_try_echo"; } >&5
1610 (eval "$ac_compile") 2>conftest.err
1611 ac_status=$?
1612 if test -s conftest.err; then
1613 grep -v '^ *+' conftest.err >conftest.er1
1614 cat conftest.er1 >&5
1615 mv -f conftest.er1 conftest.err
1616 fi
1617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618 test $ac_status = 0; } && {
1619 test -z "$ac_c_werror_flag" ||
1620 test ! -s conftest.err
1621 } && test -s conftest.$ac_objext; then :
1622 ac_retval=0
1623 else
1624 $as_echo "$as_me: failed program was:" >&5
1625 sed 's/^/| /' conftest.$ac_ext >&5
1626
1627 ac_retval=1
1628 fi
1629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630 as_fn_set_status $ac_retval
1631
1632 } # ac_fn_c_try_compile
1633
1634 # ac_fn_c_try_link LINENO
1635 # -----------------------
1636 # Try to link conftest.$ac_ext, and return whether this succeeded.
1637 ac_fn_c_try_link ()
1638 {
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 rm -f conftest.$ac_objext conftest$ac_exeext
1641 if { { ac_try="$ac_link"
1642 case "(($ac_try" in
1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644 *) ac_try_echo=$ac_try;;
1645 esac
1646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647 $as_echo "$ac_try_echo"; } >&5
1648 (eval "$ac_link") 2>conftest.err
1649 ac_status=$?
1650 if test -s conftest.err; then
1651 grep -v '^ *+' conftest.err >conftest.er1
1652 cat conftest.er1 >&5
1653 mv -f conftest.er1 conftest.err
1654 fi
1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656 test $ac_status = 0; } && {
1657 test -z "$ac_c_werror_flag" ||
1658 test ! -s conftest.err
1659 } && test -s conftest$ac_exeext && {
1660 test "$cross_compiling" = yes ||
1661 test -x conftest$ac_exeext
1662 }; then :
1663 ac_retval=0
1664 else
1665 $as_echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1667
1668 ac_retval=1
1669 fi
1670 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1671 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1672 # interfere with the next link command; also delete a directory that is
1673 # left behind by Apple's compiler. We do this before executing the actions.
1674 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676 as_fn_set_status $ac_retval
1677
1678 } # ac_fn_c_try_link
1679
1680 # ac_fn_c_try_cpp LINENO
1681 # ----------------------
1682 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1683 ac_fn_c_try_cpp ()
1684 {
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 if { { ac_try="$ac_cpp conftest.$ac_ext"
1687 case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1694 ac_status=$?
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1699 fi
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } > conftest.i && {
1702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1704 }; then :
1705 ac_retval=0
1706 else
1707 $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1709
1710 ac_retval=1
1711 fi
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1714
1715 } # ac_fn_c_try_cpp
1716
1717 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1718 # -------------------------------------------------------
1719 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1720 # the include files in INCLUDES and setting the cache variable VAR
1721 # accordingly.
1722 ac_fn_c_check_header_mongrel ()
1723 {
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 if eval \${$3+:} false; then :
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727 $as_echo_n "checking for $2... " >&6; }
1728 if eval \${$3+:} false; then :
1729 $as_echo_n "(cached) " >&6
1730 fi
1731 eval ac_res=\$$3
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733 $as_echo "$ac_res" >&6; }
1734 else
1735 # Is the header compilable?
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1737 $as_echo_n "checking $2 usability... " >&6; }
1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h. */
1740 $4
1741 #include <$2>
1742 _ACEOF
1743 if ac_fn_c_try_compile "$LINENO"; then :
1744 ac_header_compiler=yes
1745 else
1746 ac_header_compiler=no
1747 fi
1748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1750 $as_echo "$ac_header_compiler" >&6; }
1751
1752 # Is the header present?
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1754 $as_echo_n "checking $2 presence... " >&6; }
1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756 /* end confdefs.h. */
1757 #include <$2>
1758 _ACEOF
1759 if ac_fn_c_try_cpp "$LINENO"; then :
1760 ac_header_preproc=yes
1761 else
1762 ac_header_preproc=no
1763 fi
1764 rm -f conftest.err conftest.i conftest.$ac_ext
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1766 $as_echo "$ac_header_preproc" >&6; }
1767
1768 # So? What about this header?
1769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1770 yes:no: )
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1772 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1774 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1775 ;;
1776 no:yes:* )
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1778 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1780 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1782 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1784 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1786 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1787 ( $as_echo "## ------------------------------------- ##
1788 ## Report this to [email protected] ##
1789 ## ------------------------------------- ##"
1790 ) | sed "s/^/$as_me: WARNING: /" >&2
1791 ;;
1792 esac
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 $as_echo_n "checking for $2... " >&6; }
1795 if eval \${$3+:} false; then :
1796 $as_echo_n "(cached) " >&6
1797 else
1798 eval "$3=\$ac_header_compiler"
1799 fi
1800 eval ac_res=\$$3
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802 $as_echo "$ac_res" >&6; }
1803 fi
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805
1806 } # ac_fn_c_check_header_mongrel
1807
1808 # ac_fn_c_try_run LINENO
1809 # ----------------------
1810 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1811 # that executables *can* be run.
1812 ac_fn_c_try_run ()
1813 {
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 if { { ac_try="$ac_link"
1816 case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_link") 2>&5
1823 ac_status=$?
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1826 { { case "(($ac_try" in
1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828 *) ac_try_echo=$ac_try;;
1829 esac
1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831 $as_echo "$ac_try_echo"; } >&5
1832 (eval "$ac_try") 2>&5
1833 ac_status=$?
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; }; }; then :
1836 ac_retval=0
1837 else
1838 $as_echo "$as_me: program exited with status $ac_status" >&5
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1841
1842 ac_retval=$ac_status
1843 fi
1844 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846 as_fn_set_status $ac_retval
1847
1848 } # ac_fn_c_try_run
1849
1850 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1851 # -------------------------------------------------------
1852 # Tests whether HEADER exists and can be compiled using the include files in
1853 # INCLUDES, setting the cache variable VAR accordingly.
1854 ac_fn_c_check_header_compile ()
1855 {
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858 $as_echo_n "checking for $2... " >&6; }
1859 if eval \${$3+:} false; then :
1860 $as_echo_n "(cached) " >&6
1861 else
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h. */
1864 $4
1865 #include <$2>
1866 _ACEOF
1867 if ac_fn_c_try_compile "$LINENO"; then :
1868 eval "$3=yes"
1869 else
1870 eval "$3=no"
1871 fi
1872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1873 fi
1874 eval ac_res=\$$3
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878
1879 } # ac_fn_c_check_header_compile
1880
1881 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1882 # ---------------------------------------------
1883 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1884 # accordingly.
1885 ac_fn_c_check_decl ()
1886 {
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 as_decl_name=`echo $2|sed 's/ *(.*//'`
1889 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1891 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1892 if eval \${$3+:} false; then :
1893 $as_echo_n "(cached) " >&6
1894 else
1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h. */
1897 $4
1898 int
1899 main ()
1900 {
1901 #ifndef $as_decl_name
1902 #ifdef __cplusplus
1903 (void) $as_decl_use;
1904 #else
1905 (void) $as_decl_name;
1906 #endif
1907 #endif
1908
1909 ;
1910 return 0;
1911 }
1912 _ACEOF
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914 eval "$3=yes"
1915 else
1916 eval "$3=no"
1917 fi
1918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919 fi
1920 eval ac_res=\$$3
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922 $as_echo "$ac_res" >&6; }
1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924
1925 } # ac_fn_c_check_decl
1926
1927 # ac_fn_c_find_intX_t LINENO BITS VAR
1928 # -----------------------------------
1929 # Finds a signed integer type with width BITS, setting cache variable VAR
1930 # accordingly.
1931 ac_fn_c_find_intX_t ()
1932 {
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1935 $as_echo_n "checking for int$2_t... " >&6; }
1936 if eval \${$3+:} false; then :
1937 $as_echo_n "(cached) " >&6
1938 else
1939 eval "$3=no"
1940 # Order is important - never check a type that is potentially smaller
1941 # than half of the expected target width.
1942 for ac_type in int$2_t 'int' 'long int' \
1943 'long long int' 'short int' 'signed char'; do
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1946 $ac_includes_default
1947 enum { N = $2 / 2 - 1 };
1948 int
1949 main ()
1950 {
1951 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1952 test_array [0] = 0;
1953 return test_array [0];
1954
1955 ;
1956 return 0;
1957 }
1958 _ACEOF
1959 if ac_fn_c_try_compile "$LINENO"; then :
1960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961 /* end confdefs.h. */
1962 $ac_includes_default
1963 enum { N = $2 / 2 - 1 };
1964 int
1965 main ()
1966 {
1967 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1968 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1969 test_array [0] = 0;
1970 return test_array [0];
1971
1972 ;
1973 return 0;
1974 }
1975 _ACEOF
1976 if ac_fn_c_try_compile "$LINENO"; then :
1977
1978 else
1979 case $ac_type in #(
1980 int$2_t) :
1981 eval "$3=yes" ;; #(
1982 *) :
1983 eval "$3=\$ac_type" ;;
1984 esac
1985 fi
1986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987 fi
1988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1989 if eval test \"x\$"$3"\" = x"no"; then :
1990
1991 else
1992 break
1993 fi
1994 done
1995 fi
1996 eval ac_res=\$$3
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 $as_echo "$ac_res" >&6; }
1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000
2001 } # ac_fn_c_find_intX_t
2002
2003 # ac_fn_c_find_uintX_t LINENO BITS VAR
2004 # ------------------------------------
2005 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2006 # accordingly.
2007 ac_fn_c_find_uintX_t ()
2008 {
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2011 $as_echo_n "checking for uint$2_t... " >&6; }
2012 if eval \${$3+:} false; then :
2013 $as_echo_n "(cached) " >&6
2014 else
2015 eval "$3=no"
2016 # Order is important - never check a type that is potentially smaller
2017 # than half of the expected target width.
2018 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2019 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2022 $ac_includes_default
2023 int
2024 main ()
2025 {
2026 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2027 test_array [0] = 0;
2028 return test_array [0];
2029
2030 ;
2031 return 0;
2032 }
2033 _ACEOF
2034 if ac_fn_c_try_compile "$LINENO"; then :
2035 case $ac_type in #(
2036 uint$2_t) :
2037 eval "$3=yes" ;; #(
2038 *) :
2039 eval "$3=\$ac_type" ;;
2040 esac
2041 fi
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043 if eval test \"x\$"$3"\" = x"no"; then :
2044
2045 else
2046 break
2047 fi
2048 done
2049 fi
2050 eval ac_res=\$$3
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052 $as_echo "$ac_res" >&6; }
2053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054
2055 } # ac_fn_c_find_uintX_t
2056
2057 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2058 # -------------------------------------------
2059 # Tests whether TYPE exists after having included INCLUDES, setting cache
2060 # variable VAR accordingly.
2061 ac_fn_c_check_type ()
2062 {
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065 $as_echo_n "checking for $2... " >&6; }
2066 if eval \${$3+:} false; then :
2067 $as_echo_n "(cached) " >&6
2068 else
2069 eval "$3=no"
2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071 /* end confdefs.h. */
2072 $4
2073 int
2074 main ()
2075 {
2076 if (sizeof ($2))
2077 return 0;
2078 ;
2079 return 0;
2080 }
2081 _ACEOF
2082 if ac_fn_c_try_compile "$LINENO"; then :
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2085 $4
2086 int
2087 main ()
2088 {
2089 if (sizeof (($2)))
2090 return 0;
2091 ;
2092 return 0;
2093 }
2094 _ACEOF
2095 if ac_fn_c_try_compile "$LINENO"; then :
2096
2097 else
2098 eval "$3=yes"
2099 fi
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101 fi
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 fi
2104 eval ac_res=\$$3
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2106 $as_echo "$ac_res" >&6; }
2107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2108
2109 } # ac_fn_c_check_type
2110
2111 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2112 # ----------------------------------------------------
2113 # Tries to find if the field MEMBER exists in type AGGR, after including
2114 # INCLUDES, setting cache variable VAR accordingly.
2115 ac_fn_c_check_member ()
2116 {
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2119 $as_echo_n "checking for $2.$3... " >&6; }
2120 if eval \${$4+:} false; then :
2121 $as_echo_n "(cached) " >&6
2122 else
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2125 $5
2126 int
2127 main ()
2128 {
2129 static $2 ac_aggr;
2130 if (ac_aggr.$3)
2131 return 0;
2132 ;
2133 return 0;
2134 }
2135 _ACEOF
2136 if ac_fn_c_try_compile "$LINENO"; then :
2137 eval "$4=yes"
2138 else
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2141 $5
2142 int
2143 main ()
2144 {
2145 static $2 ac_aggr;
2146 if (sizeof ac_aggr.$3)
2147 return 0;
2148 ;
2149 return 0;
2150 }
2151 _ACEOF
2152 if ac_fn_c_try_compile "$LINENO"; then :
2153 eval "$4=yes"
2154 else
2155 eval "$4=no"
2156 fi
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 fi
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 fi
2161 eval ac_res=\$$4
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2163 $as_echo "$ac_res" >&6; }
2164 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2165
2166 } # ac_fn_c_check_member
2167
2168 # ac_fn_c_check_func LINENO FUNC VAR
2169 # ----------------------------------
2170 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2171 ac_fn_c_check_func ()
2172 {
2173 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2175 $as_echo_n "checking for $2... " >&6; }
2176 if eval \${$3+:} false; then :
2177 $as_echo_n "(cached) " >&6
2178 else
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2181 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2183 #define $2 innocuous_$2
2184
2185 /* System header to define __stub macros and hopefully few prototypes,
2186 which can conflict with char $2 (); below.
2187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2188 <limits.h> exists even on freestanding compilers. */
2189
2190 #ifdef __STDC__
2191 # include <limits.h>
2192 #else
2193 # include <assert.h>
2194 #endif
2195
2196 #undef $2
2197
2198 /* Override any GCC internal prototype to avoid an error.
2199 Use char because int might match the return type of a GCC
2200 builtin and then its argument prototype would still apply. */
2201 #ifdef __cplusplus
2202 extern "C"
2203 #endif
2204 char $2 ();
2205 /* The GNU C library defines this for functions which it implements
2206 to always fail with ENOSYS. Some functions are actually named
2207 something starting with __ and the normal name is an alias. */
2208 #if defined __stub_$2 || defined __stub___$2
2209 choke me
2210 #endif
2211
2212 int
2213 main ()
2214 {
2215 return $2 ();
2216 ;
2217 return 0;
2218 }
2219 _ACEOF
2220 if ac_fn_c_try_link "$LINENO"; then :
2221 eval "$3=yes"
2222 else
2223 eval "$3=no"
2224 fi
2225 rm -f core conftest.err conftest.$ac_objext \
2226 conftest$ac_exeext conftest.$ac_ext
2227 fi
2228 eval ac_res=\$$3
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2230 $as_echo "$ac_res" >&6; }
2231 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2232
2233 } # ac_fn_c_check_func
2234 cat >config.log <<_ACEOF
2235 This file contains any messages produced by compilers while
2236 running configure, to aid debugging if configure makes a mistake.
2237
2238 It was created by Argus-5.0 Client Programs $as_me 5.0, which was
2239 generated by GNU Autoconf 2.69. Invocation command line was
2240
2241 $ $0 $@
2242
2243 _ACEOF
2244 exec 5>>config.log
2245 {
2246 cat <<_ASUNAME
2247 ## --------- ##
2248 ## Platform. ##
2249 ## --------- ##
2250
2251 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2252 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2253 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2254 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2255 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2256
2257 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2258 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2259
2260 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2261 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2262 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2263 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2264 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2265 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2266 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2267
2268 _ASUNAME
2269
2270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2271 for as_dir in $PATH
2272 do
2273 IFS=$as_save_IFS
2274 test -z "$as_dir" && as_dir=.
2275 $as_echo "PATH: $as_dir"
2276 done
2277 IFS=$as_save_IFS
2278
2279 } >&5
2280
2281 cat >&5 <<_ACEOF
2282
2283
2284 ## ----------- ##
2285 ## Core tests. ##
2286 ## ----------- ##
2287
2288 _ACEOF
2289
2290
2291 # Keep a trace of the command line.
2292 # Strip out --no-create and --no-recursion so they do not pile up.
2293 # Strip out --silent because we don't want to record it for future runs.
2294 # Also quote any args containing shell meta-characters.
2295 # Make two passes to allow for proper duplicate-argument suppression.
2296 ac_configure_args=
2297 ac_configure_args0=
2298 ac_configure_args1=
2299 ac_must_keep_next=false
2300 for ac_pass in 1 2
2301 do
2302 for ac_arg
2303 do
2304 case $ac_arg in
2305 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2307 | -silent | --silent | --silen | --sile | --sil)
2308 continue ;;
2309 *\'*)
2310 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2311 esac
2312 case $ac_pass in
2313 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2314 2)
2315 as_fn_append ac_configure_args1 " '$ac_arg'"
2316 if test $ac_must_keep_next = true; then
2317 ac_must_keep_next=false # Got value, back to normal.
2318 else
2319 case $ac_arg in
2320 *=* | --config-cache | -C | -disable-* | --disable-* \
2321 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2322 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2323 | -with-* | --with-* | -without-* | --without-* | --x)
2324 case "$ac_configure_args0 " in
2325 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2326 esac
2327 ;;
2328 -* ) ac_must_keep_next=true ;;
2329 esac
2330 fi
2331 as_fn_append ac_configure_args " '$ac_arg'"
2332 ;;
2333 esac
2334 done
2335 done
2336 { ac_configure_args0=; unset ac_configure_args0;}
2337 { ac_configure_args1=; unset ac_configure_args1;}
2338
2339 # When interrupted or exit'd, cleanup temporary files, and complete
2340 # config.log. We remove comments because anyway the quotes in there
2341 # would cause problems or look ugly.
2342 # WARNING: Use '\'' to represent an apostrophe within the trap.
2343 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2344 trap 'exit_status=$?
2345 # Save into config.log some information that might help in debugging.
2346 {
2347 echo
2348
2349 $as_echo "## ---------------- ##
2350 ## Cache variables. ##
2351 ## ---------------- ##"
2352 echo
2353 # The following way of writing the cache mishandles newlines in values,
2354 (
2355 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2356 eval ac_val=\$$ac_var
2357 case $ac_val in #(
2358 *${as_nl}*)
2359 case $ac_var in #(
2360 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2361 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2362 esac
2363 case $ac_var in #(
2364 _ | IFS | as_nl) ;; #(
2365 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2366 *) { eval $ac_var=; unset $ac_var;} ;;
2367 esac ;;
2368 esac
2369 done
2370 (set) 2>&1 |
2371 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2372 *${as_nl}ac_space=\ *)
2373 sed -n \
2374 "s/'\''/'\''\\\\'\'''\''/g;
2375 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2376 ;; #(
2377 *)
2378 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2379 ;;
2380 esac |
2381 sort
2382 )
2383 echo
2384
2385 $as_echo "## ----------------- ##
2386 ## Output variables. ##
2387 ## ----------------- ##"
2388 echo
2389 for ac_var in $ac_subst_vars
2390 do
2391 eval ac_val=\$$ac_var
2392 case $ac_val in
2393 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2394 esac
2395 $as_echo "$ac_var='\''$ac_val'\''"
2396 done | sort
2397 echo
2398
2399 if test -n "$ac_subst_files"; then
2400 $as_echo "## ------------------- ##
2401 ## File substitutions. ##
2402 ## ------------------- ##"
2403 echo
2404 for ac_var in $ac_subst_files
2405 do
2406 eval ac_val=\$$ac_var
2407 case $ac_val in
2408 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2409 esac
2410 $as_echo "$ac_var='\''$ac_val'\''"
2411 done | sort
2412 echo
2413 fi
2414
2415 if test -s confdefs.h; then
2416 $as_echo "## ----------- ##
2417 ## confdefs.h. ##
2418 ## ----------- ##"
2419 echo
2420 cat confdefs.h
2421 echo
2422 fi
2423 test "$ac_signal" != 0 &&
2424 $as_echo "$as_me: caught signal $ac_signal"
2425 $as_echo "$as_me: exit $exit_status"
2426 } >&5
2427 rm -f core *.core core.conftest.* &&
2428 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2429 exit $exit_status
2430 ' 0
2431 for ac_signal in 1 2 13 15; do
2432 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2433 done
2434 ac_signal=0
2435
2436 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2437 rm -f -r conftest* confdefs.h
2438
2439 $as_echo "/* confdefs.h */" > confdefs.h
2440
2441 # Predefined preprocessor variables.
2442
2443 cat >>confdefs.h <<_ACEOF
2444 #define PACKAGE_NAME "$PACKAGE_NAME"
2445 _ACEOF
2446
2447 cat >>confdefs.h <<_ACEOF
2448 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2449 _ACEOF
2450
2451 cat >>confdefs.h <<_ACEOF
2452 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2453 _ACEOF
2454
2455 cat >>confdefs.h <<_ACEOF
2456 #define PACKAGE_STRING "$PACKAGE_STRING"
2457 _ACEOF
2458
2459 cat >>confdefs.h <<_ACEOF
2460 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2461 _ACEOF
2462
2463 cat >>confdefs.h <<_ACEOF
2464 #define PACKAGE_URL "$PACKAGE_URL"
2465 _ACEOF
2466
2467
2468 # Let the site file select an alternate cache file if it wants to.
2469 # Prefer an explicitly selected file to automatically selected ones.
2470 ac_site_file1=NONE
2471 ac_site_file2=NONE
2472 if test -n "$CONFIG_SITE"; then
2473 # We do not want a PATH search for config.site.
2474 case $CONFIG_SITE in #((
2475 -*) ac_site_file1=./$CONFIG_SITE;;
2476 */*) ac_site_file1=$CONFIG_SITE;;
2477 *) ac_site_file1=./$CONFIG_SITE;;
2478 esac
2479 elif test "x$prefix" != xNONE; then
2480 ac_site_file1=$prefix/share/config.site
2481 ac_site_file2=$prefix/etc/config.site
2482 else
2483 ac_site_file1=$ac_default_prefix/share/config.site
2484 ac_site_file2=$ac_default_prefix/etc/config.site
2485 fi
2486 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2487 do
2488 test "x$ac_site_file" = xNONE && continue
2489 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2491 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2492 sed 's/^/| /' "$ac_site_file" >&5
2493 . "$ac_site_file" \
2494 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2496 as_fn_error $? "failed to load site script $ac_site_file
2497 See \`config.log' for more details" "$LINENO" 5; }
2498 fi
2499 done
2500
2501 if test -r "$cache_file"; then
2502 # Some versions of bash will fail to source /dev/null (special files
2503 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2504 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2506 $as_echo "$as_me: loading cache $cache_file" >&6;}
2507 case $cache_file in
2508 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2509 *) . "./$cache_file";;
2510 esac
2511 fi
2512 else
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2514 $as_echo "$as_me: creating cache $cache_file" >&6;}
2515 >$cache_file
2516 fi
2517
2518 as_fn_append ac_header_list " sys/time.h"
2519 as_fn_append ac_header_list " unistd.h"
2520 as_fn_append ac_func_list " alarm"
2521 # Check that the precious variables saved in the cache have kept the same
2522 # value.
2523 ac_cache_corrupted=false
2524 for ac_var in $ac_precious_vars; do
2525 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2526 eval ac_new_set=\$ac_env_${ac_var}_set
2527 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2528 eval ac_new_val=\$ac_env_${ac_var}_value
2529 case $ac_old_set,$ac_new_set in
2530 set,)
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2532 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2533 ac_cache_corrupted=: ;;
2534 ,set)
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2536 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2537 ac_cache_corrupted=: ;;
2538 ,);;
2539 *)
2540 if test "x$ac_old_val" != "x$ac_new_val"; then
2541 # differences in whitespace do not lead to failure.
2542 ac_old_val_w=`echo x $ac_old_val`
2543 ac_new_val_w=`echo x $ac_new_val`
2544 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2546 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2547 ac_cache_corrupted=:
2548 else
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2550 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2551 eval $ac_var=\$ac_old_val
2552 fi
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2554 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2556 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2557 fi;;
2558 esac
2559 # Pass precious variables to config.status.
2560 if test "$ac_new_set" = set; then
2561 case $ac_new_val in
2562 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2563 *) ac_arg=$ac_var=$ac_new_val ;;
2564 esac
2565 case " $ac_configure_args " in
2566 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2567 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2568 esac
2569 fi
2570 done
2571 if $ac_cache_corrupted; then
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2575 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2576 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2577 fi
2578 ## -------------------- ##
2579 ## Main body of script. ##
2580 ## -------------------- ##
2581
2582 ac_ext=c
2583 ac_cpp='$CPP $CPPFLAGS'
2584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2587
2588
2589 PACKAGE_RELEASE='3.6'
2590
2591
2592 ac_aux_dir=
2593 for ac_dir in config "$srcdir"/config; do
2594 if test -f "$ac_dir/install-sh"; then
2595 ac_aux_dir=$ac_dir
2596 ac_install_sh="$ac_aux_dir/install-sh -c"
2597 break
2598 elif test -f "$ac_dir/install.sh"; then
2599 ac_aux_dir=$ac_dir
2600 ac_install_sh="$ac_aux_dir/install.sh -c"
2601 break
2602 elif test -f "$ac_dir/shtool"; then
2603 ac_aux_dir=$ac_dir
2604 ac_install_sh="$ac_aux_dir/shtool install -c"
2605 break
2606 fi
2607 done
2608 if test -z "$ac_aux_dir"; then
2609 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2610 fi
2611
2612 # These three variables are undocumented and unsupported,
2613 # and are intended to be withdrawn in a future Autoconf release.
2614 # They can cause serious problems if a builder's source tree is in a directory
2615 # whose full name contains unusual characters.
2616 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2617 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2618 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2619
2620
2621 ac_config_headers="$ac_config_headers include/argus_config.h"
2622
2623 # Make sure we can run config.sub.
2624 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2625 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2626
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2628 $as_echo_n "checking build system type... " >&6; }
2629 if ${ac_cv_build+:} false; then :
2630 $as_echo_n "(cached) " >&6
2631 else
2632 ac_build_alias=$build_alias
2633 test "x$ac_build_alias" = x &&
2634 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2635 test "x$ac_build_alias" = x &&
2636 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2637 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2638 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2639
2640 fi
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2642 $as_echo "$ac_cv_build" >&6; }
2643 case $ac_cv_build in
2644 *-*-*) ;;
2645 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2646 esac
2647 build=$ac_cv_build
2648 ac_save_IFS=$IFS; IFS='-'
2649 set x $ac_cv_build
2650 shift
2651 build_cpu=$1
2652 build_vendor=$2
2653 shift; shift
2654 # Remember, the first character of IFS is used to create $*,
2655 # except with old shells:
2656 build_os=$*
2657 IFS=$ac_save_IFS
2658 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2659
2660
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2662 $as_echo_n "checking host system type... " >&6; }
2663 if ${ac_cv_host+:} false; then :
2664 $as_echo_n "(cached) " >&6
2665 else
2666 if test "x$host_alias" = x; then
2667 ac_cv_host=$ac_cv_build
2668 else
2669 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2670 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2671 fi
2672
2673 fi
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2675 $as_echo "$ac_cv_host" >&6; }
2676 case $ac_cv_host in
2677 *-*-*) ;;
2678 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2679 esac
2680 host=$ac_cv_host
2681 ac_save_IFS=$IFS; IFS='-'
2682 set x $ac_cv_host
2683 shift
2684 host_cpu=$1
2685 host_vendor=$2
2686 shift; shift
2687 # Remember, the first character of IFS is used to create $*,
2688 # except with old shells:
2689 host_os=$*
2690 IFS=$ac_save_IFS
2691 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2692
2693
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2695 $as_echo_n "checking target system type... " >&6; }
2696 if ${ac_cv_target+:} false; then :
2697 $as_echo_n "(cached) " >&6
2698 else
2699 if test "x$target_alias" = x; then
2700 ac_cv_target=$ac_cv_host
2701 else
2702 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2703 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2704 fi
2705
2706 fi
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2708 $as_echo "$ac_cv_target" >&6; }
2709 case $ac_cv_target in
2710 *-*-*) ;;
2711 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2712 esac
2713 target=$ac_cv_target
2714 ac_save_IFS=$IFS; IFS='-'
2715 set x $ac_cv_target
2716 shift
2717 target_cpu=$1
2718 target_vendor=$2
2719 shift; shift
2720 # Remember, the first character of IFS is used to create $*,
2721 # except with old shells:
2722 target_os=$*
2723 IFS=$ac_save_IFS
2724 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2725
2726
2727 # The aliases save the names the user supplied, while $host etc.
2728 # will get canonicalized.
2729 test -n "$target_alias" &&
2730 test "$program_prefix$program_suffix$program_transform_name" = \
2731 NONENONEs,x,x, &&
2732 program_prefix=${target_alias}-
2733
2734
2735
2736
2737
2738
2739
2740 # Check whether --with-gcc was given.
2741 if test "${with_gcc+set}" = set; then :
2742 withval=$with_gcc;
2743 fi
2744
2745
2746 # Check whether --with-examples was given.
2747 if test "${with_examples+set}" = set; then :
2748 withval=$with_examples;
2749 fi
2750
2751
2752 # Check whether --with-perllib was given.
2753 if test "${with_perllib+set}" = set; then :
2754 withval=$with_perllib; with_perllib="yes"
2755 else
2756 with_perllib="no"
2757 fi
2758
2759
2760 # Check whether --with-pythonlib was given.
2761 if test "${with_pythonlib+set}" = set; then :
2762 withval=$with_pythonlib; with_pythonlib="yes"
2763 else
2764 with_pythonlib="no"
2765 fi
2766
2767
2768 # Check whether --with-pluribus was given.
2769 if test "${with_pluribus+set}" = set; then :
2770 withval=$with_pluribus; with_pluribus="yes"
2771 else
2772 with_pluribus="no"
2773 fi
2774
2775 V_CCOPT="-O"
2776 V_INCLS=""
2777 if test "${srcdir}" != "." ; then
2778 V_INCLS="-I\$(srcdir)"
2779 fi
2780 if test "${CFLAGS+set}" = set; then
2781 LBL_CFLAGS="$CFLAGS"
2782 fi
2783 if test -z "$CC" ; then
2784 case "$target_os" in
2785
2786 *darwin*)
2787 # Extract the first word of "clang", so it can be a program name with args.
2788 set dummy clang; ac_word=$2
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2790 $as_echo_n "checking for $ac_word... " >&6; }
2791 if ${ac_cv_prog_CLANG+:} false; then :
2792 $as_echo_n "(cached) " >&6
2793 else
2794 if test -n "$CLANG"; then
2795 ac_cv_prog_CLANG="$CLANG" # Let the user override the test.
2796 else
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 for as_dir in $PATH
2799 do
2800 IFS=$as_save_IFS
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2804 ac_cv_prog_CLANG="yes"
2805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 break 2
2807 fi
2808 done
2809 done
2810 IFS=$as_save_IFS
2811
2812 test -z "$ac_cv_prog_CLANG" && ac_cv_prog_CLANG="no"
2813 fi
2814 fi
2815 CLANG=$ac_cv_prog_CLANG
2816 if test -n "$CLANG"; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
2818 $as_echo "$CLANG" >&6; }
2819 else
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821 $as_echo "no" >&6; }
2822 fi
2823
2824
2825 if test $CLANG = yes ; then
2826 CC=cc
2827 export CC
2828 fi
2829 ;;
2830 bsdi*)
2831 # Extract the first word of "shlicc2", so it can be a program name with args.
2832 set dummy shlicc2; ac_word=$2
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834 $as_echo_n "checking for $ac_word... " >&6; }
2835 if ${ac_cv_prog_SHLICC2+:} false; then :
2836 $as_echo_n "(cached) " >&6
2837 else
2838 if test -n "$SHLICC2"; then
2839 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
2840 else
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 for as_dir in $PATH
2843 do
2844 IFS=$as_save_IFS
2845 test -z "$as_dir" && as_dir=.
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2848 ac_cv_prog_SHLICC2="yes"
2849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 break 2
2851 fi
2852 done
2853 done
2854 IFS=$as_save_IFS
2855
2856 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
2857 fi
2858 fi
2859 SHLICC2=$ac_cv_prog_SHLICC2
2860 if test -n "$SHLICC2"; then
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5
2862 $as_echo "$SHLICC2" >&6; }
2863 else
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2865 $as_echo "no" >&6; }
2866 fi
2867
2868
2869 if test $SHLICC2 = yes ; then
2870 CC=shlicc2
2871 export CC
2872 fi
2873 ;;
2874 esac
2875 fi
2876 if test -z "$CC" -a "$with_gcc" = no ; then
2877 CC=cc
2878 export CC
2879 fi
2880
2881 ac_ext=c
2882 ac_cpp='$CPP $CPPFLAGS'
2883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2886 if test -n "$ac_tool_prefix"; then
2887 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2888 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2890 $as_echo_n "checking for $ac_word... " >&6; }
2891 if ${ac_cv_prog_CC+:} false; then :
2892 $as_echo_n "(cached) " >&6
2893 else
2894 if test -n "$CC"; then
2895 ac_cv_prog_CC="$CC" # Let the user override the test.
2896 else
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 for as_dir in $PATH
2899 do
2900 IFS=$as_save_IFS
2901 test -z "$as_dir" && as_dir=.
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2904 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 break 2
2907 fi
2908 done
2909 done
2910 IFS=$as_save_IFS
2911
2912 fi
2913 fi
2914 CC=$ac_cv_prog_CC
2915 if test -n "$CC"; then
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2917 $as_echo "$CC" >&6; }
2918 else
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920 $as_echo "no" >&6; }
2921 fi
2922
2923
2924 fi
2925 if test -z "$ac_cv_prog_CC"; then
2926 ac_ct_CC=$CC
2927 # Extract the first word of "gcc", so it can be a program name with args.
2928 set dummy gcc; ac_word=$2
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930 $as_echo_n "checking for $ac_word... " >&6; }
2931 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2932 $as_echo_n "(cached) " >&6
2933 else
2934 if test -n "$ac_ct_CC"; then
2935 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2936 else
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 for as_dir in $PATH
2939 do
2940 IFS=$as_save_IFS
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2944 ac_cv_prog_ac_ct_CC="gcc"
2945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 break 2
2947 fi
2948 done
2949 done
2950 IFS=$as_save_IFS
2951
2952 fi
2953 fi
2954 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2955 if test -n "$ac_ct_CC"; then
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2957 $as_echo "$ac_ct_CC" >&6; }
2958 else
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960 $as_echo "no" >&6; }
2961 fi
2962
2963 if test "x$ac_ct_CC" = x; then
2964 CC=""
2965 else
2966 case $cross_compiling:$ac_tool_warned in
2967 yes:)
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2970 ac_tool_warned=yes ;;
2971 esac
2972 CC=$ac_ct_CC
2973 fi
2974 else
2975 CC="$ac_cv_prog_CC"
2976 fi
2977
2978 if test -z "$CC"; then
2979 if test -n "$ac_tool_prefix"; then
2980 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2981 set dummy ${ac_tool_prefix}cc; ac_word=$2
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983 $as_echo_n "checking for $ac_word... " >&6; }
2984 if ${ac_cv_prog_CC+:} false; then :
2985 $as_echo_n "(cached) " >&6
2986 else
2987 if test -n "$CC"; then
2988 ac_cv_prog_CC="$CC" # Let the user override the test.
2989 else
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH
2992 do
2993 IFS=$as_save_IFS
2994 test -z "$as_dir" && as_dir=.
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2997 ac_cv_prog_CC="${ac_tool_prefix}cc"
2998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2999 break 2
3000 fi
3001 done
3002 done
3003 IFS=$as_save_IFS
3004
3005 fi
3006 fi
3007 CC=$ac_cv_prog_CC
3008 if test -n "$CC"; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3010 $as_echo "$CC" >&6; }
3011 else
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013 $as_echo "no" >&6; }
3014 fi
3015
3016
3017 fi
3018 fi
3019 if test -z "$CC"; then
3020 # Extract the first word of "cc", so it can be a program name with args.
3021 set dummy cc; ac_word=$2
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023 $as_echo_n "checking for $ac_word... " >&6; }
3024 if ${ac_cv_prog_CC+:} false; then :
3025 $as_echo_n "(cached) " >&6
3026 else
3027 if test -n "$CC"; then
3028 ac_cv_prog_CC="$CC" # Let the user override the test.
3029 else
3030 ac_prog_rejected=no
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 for as_dir in $PATH
3033 do
3034 IFS=$as_save_IFS
3035 test -z "$as_dir" && as_dir=.
3036 for ac_exec_ext in '' $ac_executable_extensions; do
3037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3038 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3039 ac_prog_rejected=yes
3040 continue
3041 fi
3042 ac_cv_prog_CC="cc"
3043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3045 fi
3046 done
3047 done
3048 IFS=$as_save_IFS
3049
3050 if test $ac_prog_rejected = yes; then
3051 # We found a bogon in the path, so make sure we never use it.
3052 set dummy $ac_cv_prog_CC
3053 shift
3054 if test $# != 0; then
3055 # We chose a different compiler from the bogus one.
3056 # However, it has the same basename, so the bogon will be chosen
3057 # first if we set CC to just the basename; use the full file name.
3058 shift
3059 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3060 fi
3061 fi
3062 fi
3063 fi
3064 CC=$ac_cv_prog_CC
3065 if test -n "$CC"; then
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3067 $as_echo "$CC" >&6; }
3068 else
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070 $as_echo "no" >&6; }
3071 fi
3072
3073
3074 fi
3075 if test -z "$CC"; then
3076 if test -n "$ac_tool_prefix"; then
3077 for ac_prog in cl.exe
3078 do
3079 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3080 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3082 $as_echo_n "checking for $ac_word... " >&6; }
3083 if ${ac_cv_prog_CC+:} false; then :
3084 $as_echo_n "(cached) " >&6
3085 else
3086 if test -n "$CC"; then
3087 ac_cv_prog_CC="$CC" # Let the user override the test.
3088 else
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 for as_dir in $PATH
3091 do
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3096 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 break 2
3099 fi
3100 done
3101 done
3102 IFS=$as_save_IFS
3103
3104 fi
3105 fi
3106 CC=$ac_cv_prog_CC
3107 if test -n "$CC"; then
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3109 $as_echo "$CC" >&6; }
3110 else
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112 $as_echo "no" >&6; }
3113 fi
3114
3115
3116 test -n "$CC" && break
3117 done
3118 fi
3119 if test -z "$CC"; then
3120 ac_ct_CC=$CC
3121 for ac_prog in cl.exe
3122 do
3123 # Extract the first word of "$ac_prog", so it can be a program name with args.
3124 set dummy $ac_prog; ac_word=$2
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3126 $as_echo_n "checking for $ac_word... " >&6; }
3127 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3128 $as_echo_n "(cached) " >&6
3129 else
3130 if test -n "$ac_ct_CC"; then
3131 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3132 else
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 for as_dir in $PATH
3135 do
3136 IFS=$as_save_IFS
3137 test -z "$as_dir" && as_dir=.
3138 for ac_exec_ext in '' $ac_executable_extensions; do
3139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3140 ac_cv_prog_ac_ct_CC="$ac_prog"
3141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 break 2
3143 fi
3144 done
3145 done
3146 IFS=$as_save_IFS
3147
3148 fi
3149 fi
3150 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3151 if test -n "$ac_ct_CC"; then
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3153 $as_echo "$ac_ct_CC" >&6; }
3154 else
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156 $as_echo "no" >&6; }
3157 fi
3158
3159
3160 test -n "$ac_ct_CC" && break
3161 done
3162
3163 if test "x$ac_ct_CC" = x; then
3164 CC=""
3165 else
3166 case $cross_compiling:$ac_tool_warned in
3167 yes:)
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3170 ac_tool_warned=yes ;;
3171 esac
3172 CC=$ac_ct_CC
3173 fi
3174 fi
3175
3176 fi
3177
3178
3179 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3181 as_fn_error $? "no acceptable C compiler found in \$PATH
3182 See \`config.log' for more details" "$LINENO" 5; }
3183
3184 # Provide some information about the compiler.
3185 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3186 set X $ac_compile
3187 ac_compiler=$2
3188 for ac_option in --version -v -V -qversion; do
3189 { { ac_try="$ac_compiler $ac_option >&5"
3190 case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3193 esac
3194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195 $as_echo "$ac_try_echo"; } >&5
3196 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3197 ac_status=$?
3198 if test -s conftest.err; then
3199 sed '10a\
3200 ... rest of stderr output deleted ...
3201 10q' conftest.err >conftest.er1
3202 cat conftest.er1 >&5
3203 fi
3204 rm -f conftest.er1 conftest.err
3205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3206 test $ac_status = 0; }
3207 done
3208
3209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3210 /* end confdefs.h. */
3211
3212 int
3213 main ()
3214 {
3215
3216 ;
3217 return 0;
3218 }
3219 _ACEOF
3220 ac_clean_files_save=$ac_clean_files
3221 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3222 # Try to create an executable without -o first, disregard a.out.
3223 # It will help us diagnose broken compilers, and finding out an intuition
3224 # of exeext.
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3226 $as_echo_n "checking whether the C compiler works... " >&6; }
3227 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3228
3229 # The possible output files:
3230 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3231
3232 ac_rmfiles=
3233 for ac_file in $ac_files
3234 do
3235 case $ac_file in
3236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3237 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3238 esac
3239 done
3240 rm -f $ac_rmfiles
3241
3242 if { { ac_try="$ac_link_default"
3243 case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3246 esac
3247 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3248 $as_echo "$ac_try_echo"; } >&5
3249 (eval "$ac_link_default") 2>&5
3250 ac_status=$?
3251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3252 test $ac_status = 0; }; then :
3253 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3254 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3255 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3256 # so that the user can short-circuit this test for compilers unknown to
3257 # Autoconf.
3258 for ac_file in $ac_files ''
3259 do
3260 test -f "$ac_file" || continue
3261 case $ac_file in
3262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3263 ;;
3264 [ab].out )
3265 # We found the default executable, but exeext='' is most
3266 # certainly right.
3267 break;;
3268 *.* )
3269 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3270 then :; else
3271 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3272 fi
3273 # We set ac_cv_exeext here because the later test for it is not
3274 # safe: cross compilers may not add the suffix if given an `-o'
3275 # argument, so we may need to know it at that point already.
3276 # Even if this section looks crufty: it has the advantage of
3277 # actually working.
3278 break;;
3279 * )
3280 break;;
3281 esac
3282 done
3283 test "$ac_cv_exeext" = no && ac_cv_exeext=
3284
3285 else
3286 ac_file=''
3287 fi
3288 if test -z "$ac_file"; then :
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3291 $as_echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3293
3294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3296 as_fn_error 77 "C compiler cannot create executables
3297 See \`config.log' for more details" "$LINENO" 5; }
3298 else
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3300 $as_echo "yes" >&6; }
3301 fi
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3303 $as_echo_n "checking for C compiler default output file name... " >&6; }
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3305 $as_echo "$ac_file" >&6; }
3306 ac_exeext=$ac_cv_exeext
3307
3308 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3309 ac_clean_files=$ac_clean_files_save
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3311 $as_echo_n "checking for suffix of executables... " >&6; }
3312 if { { ac_try="$ac_link"
3313 case "(($ac_try" in
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3316 esac
3317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3318 $as_echo "$ac_try_echo"; } >&5
3319 (eval "$ac_link") 2>&5
3320 ac_status=$?
3321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3322 test $ac_status = 0; }; then :
3323 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3324 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3325 # work properly (i.e., refer to `conftest.exe'), while it won't with
3326 # `rm'.
3327 for ac_file in conftest.exe conftest conftest.*; do
3328 test -f "$ac_file" || continue
3329 case $ac_file in
3330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3331 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3332 break;;
3333 * ) break;;
3334 esac
3335 done
3336 else
3337 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3339 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3340 See \`config.log' for more details" "$LINENO" 5; }
3341 fi
3342 rm -f conftest conftest$ac_cv_exeext
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3344 $as_echo "$ac_cv_exeext" >&6; }
3345
3346 rm -f conftest.$ac_ext
3347 EXEEXT=$ac_cv_exeext
3348 ac_exeext=$EXEEXT
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h. */
3351 #include <stdio.h>
3352 int
3353 main ()
3354 {
3355 FILE *f = fopen ("conftest.out", "w");
3356 return ferror (f) || fclose (f) != 0;
3357
3358 ;
3359 return 0;
3360 }
3361 _ACEOF
3362 ac_clean_files="$ac_clean_files conftest.out"
3363 # Check that the compiler produces executables we can run. If not, either
3364 # the compiler is broken, or we cross compile.
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3366 $as_echo_n "checking whether we are cross compiling... " >&6; }
3367 if test "$cross_compiling" != yes; then
3368 { { ac_try="$ac_link"
3369 case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372 esac
3373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374 $as_echo "$ac_try_echo"; } >&5
3375 (eval "$ac_link") 2>&5
3376 ac_status=$?
3377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378 test $ac_status = 0; }
3379 if { ac_try='./conftest$ac_cv_exeext'
3380 { { case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3383 esac
3384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3385 $as_echo "$ac_try_echo"; } >&5
3386 (eval "$ac_try") 2>&5
3387 ac_status=$?
3388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3389 test $ac_status = 0; }; }; then
3390 cross_compiling=no
3391 else
3392 if test "$cross_compiling" = maybe; then
3393 cross_compiling=yes
3394 else
3395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397 as_fn_error $? "cannot run C compiled programs.
3398 If you meant to cross compile, use \`--host'.
3399 See \`config.log' for more details" "$LINENO" 5; }
3400 fi
3401 fi
3402 fi
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3404 $as_echo "$cross_compiling" >&6; }
3405
3406 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3407 ac_clean_files=$ac_clean_files_save
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3409 $as_echo_n "checking for suffix of object files... " >&6; }
3410 if ${ac_cv_objext+:} false; then :
3411 $as_echo_n "(cached) " >&6
3412 else
3413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414 /* end confdefs.h. */
3415
3416 int
3417 main ()
3418 {
3419
3420 ;
3421 return 0;
3422 }
3423 _ACEOF
3424 rm -f conftest.o conftest.obj
3425 if { { ac_try="$ac_compile"
3426 case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3429 esac
3430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3431 $as_echo "$ac_try_echo"; } >&5
3432 (eval "$ac_compile") 2>&5
3433 ac_status=$?
3434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3435 test $ac_status = 0; }; then :
3436 for ac_file in conftest.o conftest.obj conftest.*; do
3437 test -f "$ac_file" || continue;
3438 case $ac_file in
3439 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3440 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3441 break;;
3442 esac
3443 done
3444 else
3445 $as_echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3447
3448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3450 as_fn_error $? "cannot compute suffix of object files: cannot compile
3451 See \`config.log' for more details" "$LINENO" 5; }
3452 fi
3453 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3454 fi
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3456 $as_echo "$ac_cv_objext" >&6; }
3457 OBJEXT=$ac_cv_objext
3458 ac_objext=$OBJEXT
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3460 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3461 if ${ac_cv_c_compiler_gnu+:} false; then :
3462 $as_echo_n "(cached) " >&6
3463 else
3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465 /* end confdefs.h. */
3466
3467 int
3468 main ()
3469 {
3470 #ifndef __GNUC__
3471 choke me
3472 #endif
3473
3474 ;
3475 return 0;
3476 }
3477 _ACEOF
3478 if ac_fn_c_try_compile "$LINENO"; then :
3479 ac_compiler_gnu=yes
3480 else
3481 ac_compiler_gnu=no
3482 fi
3483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3484 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3485
3486 fi
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3488 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3489 if test $ac_compiler_gnu = yes; then
3490 GCC=yes
3491 else
3492 GCC=
3493 fi
3494 ac_test_CFLAGS=${CFLAGS+set}
3495 ac_save_CFLAGS=$CFLAGS
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3497 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3498 if ${ac_cv_prog_cc_g+:} false; then :
3499 $as_echo_n "(cached) " >&6
3500 else
3501 ac_save_c_werror_flag=$ac_c_werror_flag
3502 ac_c_werror_flag=yes
3503 ac_cv_prog_cc_g=no
3504 CFLAGS="-g"
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3507
3508 int
3509 main ()
3510 {
3511
3512 ;
3513 return 0;
3514 }
3515 _ACEOF
3516 if ac_fn_c_try_compile "$LINENO"; then :
3517 ac_cv_prog_cc_g=yes
3518 else
3519 CFLAGS=""
3520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521 /* end confdefs.h. */
3522
3523 int
3524 main ()
3525 {
3526
3527 ;
3528 return 0;
3529 }
3530 _ACEOF
3531 if ac_fn_c_try_compile "$LINENO"; then :
3532
3533 else
3534 ac_c_werror_flag=$ac_save_c_werror_flag
3535 CFLAGS="-g"
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3538
3539 int
3540 main ()
3541 {
3542
3543 ;
3544 return 0;
3545 }
3546 _ACEOF
3547 if ac_fn_c_try_compile "$LINENO"; then :
3548 ac_cv_prog_cc_g=yes
3549 fi
3550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3551 fi
3552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553 fi
3554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3555 ac_c_werror_flag=$ac_save_c_werror_flag
3556 fi
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3558 $as_echo "$ac_cv_prog_cc_g" >&6; }
3559 if test "$ac_test_CFLAGS" = set; then
3560 CFLAGS=$ac_save_CFLAGS
3561 elif test $ac_cv_prog_cc_g = yes; then
3562 if test "$GCC" = yes; then
3563 CFLAGS="-g -O2"
3564 else
3565 CFLAGS="-g"
3566 fi
3567 else
3568 if test "$GCC" = yes; then
3569 CFLAGS="-O2"
3570 else
3571 CFLAGS=
3572 fi
3573 fi
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3575 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3576 if ${ac_cv_prog_cc_c89+:} false; then :
3577 $as_echo_n "(cached) " >&6
3578 else
3579 ac_cv_prog_cc_c89=no
3580 ac_save_CC=$CC
3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582 /* end confdefs.h. */
3583 #include <stdarg.h>
3584 #include <stdio.h>
3585 struct stat;
3586 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3587 struct buf { int x; };
3588 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3589 static char *e (p, i)
3590 char **p;
3591 int i;
3592 {
3593 return p[i];
3594 }
3595 static char *f (char * (*g) (char **, int), char **p, ...)
3596 {
3597 char *s;
3598 va_list v;
3599 va_start (v,p);
3600 s = g (p, va_arg (v,int));
3601 va_end (v);
3602 return s;
3603 }
3604
3605 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3606 function prototypes and stuff, but not '\xHH' hex character constants.
3607 These don't provoke an error unfortunately, instead are silently treated
3608 as 'x'. The following induces an error, until -std is added to get
3609 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3610 array size at least. It's necessary to write '\x00'==0 to get something
3611 that's true only with -std. */
3612 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3613
3614 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3615 inside strings and character constants. */
3616 #define FOO(x) 'x'
3617 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3618
3619 int test (int i, double x);
3620 struct s1 {int (*f) (int a);};
3621 struct s2 {int (*f) (double a);};
3622 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3623 int argc;
3624 char **argv;
3625 int
3626 main ()
3627 {
3628 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3629 ;
3630 return 0;
3631 }
3632 _ACEOF
3633 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3634 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3635 do
3636 CC="$ac_save_CC $ac_arg"
3637 if ac_fn_c_try_compile "$LINENO"; then :
3638 ac_cv_prog_cc_c89=$ac_arg
3639 fi
3640 rm -f core conftest.err conftest.$ac_objext
3641 test "x$ac_cv_prog_cc_c89" != "xno" && break
3642 done
3643 rm -f conftest.$ac_ext
3644 CC=$ac_save_CC
3645
3646 fi
3647 # AC_CACHE_VAL
3648 case "x$ac_cv_prog_cc_c89" in
3649 x)
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3651 $as_echo "none needed" >&6; } ;;
3652 xno)
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3654 $as_echo "unsupported" >&6; } ;;
3655 *)
3656 CC="$CC $ac_cv_prog_cc_c89"
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3658 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3659 esac
3660 if test "x$ac_cv_prog_cc_c89" != xno; then :
3661
3662 fi
3663
3664 ac_ext=c
3665 ac_cpp='$CPP $CPPFLAGS'
3666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3669
3670
3671 if test "$GCC" = yes ; then
3672 if test "$SHLICC2" = yes ; then
3673 ac_cv_lbl_gcc_vers=2
3674 V_CCOPT="-O3"
3675 else
3676 ac_cv_lbl_gcc_vers=0
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
3678 $as_echo_n "checking gcc version... " >&6; }
3679 if ${ac_cv_lbl_gcc_vers+:} false; then :
3680 $as_echo_n "(cached) " >&6
3681 else
3682 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
3683 sed -e '/^gcc version /!d' \
3684 -e 's/^gcc version //' \
3685 -e 's/ .*//' -e 's/^[^0-9]*//' \
3686 -e 's/\..*//'`
3687 fi
3688
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_gcc_vers" >&5
3690 $as_echo "$ac_cv_lbl_gcc_vers" >&6; }
3691 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
3692 V_CCOPT="-O3"
3693 fi
3694 fi
3695 else
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that $CC handles ansi prototypes" >&5
3697 $as_echo_n "checking that $CC handles ansi prototypes... " >&6; }
3698 if ${ac_cv_lbl_cc_ansi_prototypes+:} false; then :
3699 $as_echo_n "(cached) " >&6
3700 else
3701
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3704 #include <sys/types.h>
3705 int
3706 main ()
3707 {
3708 int frob(int, char *)
3709 ;
3710 return 0;
3711 }
3712 _ACEOF
3713 if ac_fn_c_try_compile "$LINENO"; then :
3714 ac_cv_lbl_cc_ansi_prototypes=yes
3715 else
3716 ac_cv_lbl_cc_ansi_prototypes=no
3717 fi
3718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3719 fi
3720
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
3722 $as_echo "$ac_cv_lbl_cc_ansi_prototypes" >&6; }
3723 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
3724 case "$target_os" in
3725
3726 hpux*)
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
3728 $as_echo_n "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... " >&6; }
3729 savedcflags="$CFLAGS"
3730 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
3731 if ${ac_cv_lbl_cc_hpux_cc_aa+:} false; then :
3732 $as_echo_n "(cached) " >&6
3733 else
3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735 /* end confdefs.h. */
3736 #include <sys/types.h>
3737 int
3738 main ()
3739 {
3740 int frob(int, char *)
3741 ;
3742 return 0;
3743 }
3744 _ACEOF
3745 if ac_fn_c_try_compile "$LINENO"; then :
3746 ac_cv_lbl_cc_hpux_cc_aa=yes
3747 else
3748 ac_cv_lbl_cc_hpux_cc_aa=no
3749 fi
3750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3751 fi
3752
3753
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
3755 $as_echo "$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
3756 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
3757 as_fn_error $? "see the INSTALL doc for more info" "$LINENO" 5
3758 fi
3759 CFLAGS="$savedcflags"
3760 V_CCOPT="-Aa $V_CCOPT"
3761
3762 $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
3763
3764 ;;
3765
3766 *)
3767 as_fn_error $? "see the INSTALL doc for more info" "$LINENO" 5
3768 ;;
3769 esac
3770 fi
3771 V_INCLS="$V_INCLS -I/usr/local/include"
3772 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3773
3774 case "$target_os" in
3775
3776 irix*)
3777 V_CCOPT="$V_CCOPT -xansi -signed -g3"
3778 ;;
3779
3780 osf*)
3781 V_CCOPT="$V_CCOPT -std1 -g3"
3782 ;;
3783
3784 ultrix*)
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5
3786 $as_echo_n "checking that Ultrix $CC hacks const in prototypes... " >&6; }
3787 if ${ac_cv_lbl_cc_const_proto+:} false; then :
3788 $as_echo_n "(cached) " >&6
3789 else
3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791 /* end confdefs.h. */
3792 #include <sys/types.h>
3793 int
3794 main ()
3795 {
3796 struct a { int b; };
3797 void c(const struct a *)
3798 ;
3799 return 0;
3800 }
3801 _ACEOF
3802 if ac_fn_c_try_compile "$LINENO"; then :
3803 ac_cv_lbl_cc_const_proto=yes
3804 else
3805 ac_cv_lbl_cc_const_proto=no
3806 fi
3807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3808 fi
3809
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5
3811 $as_echo "$ac_cv_lbl_cc_const_proto" >&6; }
3812 if test $ac_cv_lbl_cc_const_proto = no ; then
3813
3814 $as_echo "#define const /**/" >>confdefs.h
3815
3816 fi
3817 ;;
3818 esac
3819 fi
3820
3821
3822 # Checks for programs.
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3824 $as_echo_n "checking whether ln -s works... " >&6; }
3825 LN_S=$as_ln_s
3826 if test "$LN_S" = "ln -s"; then
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3828 $as_echo "yes" >&6; }
3829 else
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3831 $as_echo "no, using $LN_S" >&6; }
3832 fi
3833
3834 for ac_prog in flex lex
3835 do
3836 # Extract the first word of "$ac_prog", so it can be a program name with args.
3837 set dummy $ac_prog; ac_word=$2
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3839 $as_echo_n "checking for $ac_word... " >&6; }
3840 if ${ac_cv_prog_LEX+:} false; then :
3841 $as_echo_n "(cached) " >&6
3842 else
3843 if test -n "$LEX"; then
3844 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3845 else
3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847 for as_dir in $PATH
3848 do
3849 IFS=$as_save_IFS
3850 test -z "$as_dir" && as_dir=.
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3853 ac_cv_prog_LEX="$ac_prog"
3854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3855 break 2
3856 fi
3857 done
3858 done
3859 IFS=$as_save_IFS
3860
3861 fi
3862 fi
3863 LEX=$ac_cv_prog_LEX
3864 if test -n "$LEX"; then
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
3866 $as_echo "$LEX" >&6; }
3867 else
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869 $as_echo "no" >&6; }
3870 fi
3871
3872
3873 test -n "$LEX" && break
3874 done
3875 test -n "$LEX" || LEX=":"
3876
3877 if test "x$LEX" != "x:"; then
3878 cat >conftest.l <<_ACEOF
3879 %%
3880 a { ECHO; }
3881 b { REJECT; }
3882 c { yymore (); }
3883 d { yyless (1); }
3884 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
3885 yyless ((input () != 0)); }
3886 f { unput (yytext[0]); }
3887 . { BEGIN INITIAL; }
3888 %%
3889 #ifdef YYTEXT_POINTER
3890 extern char *yytext;
3891 #endif
3892 int
3893 main (void)
3894 {
3895 return ! yylex () + ! yywrap ();
3896 }
3897 _ACEOF
3898 { { ac_try="$LEX conftest.l"
3899 case "(($ac_try" in
3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901 *) ac_try_echo=$ac_try;;
3902 esac
3903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3904 $as_echo "$ac_try_echo"; } >&5
3905 (eval "$LEX conftest.l") 2>&5
3906 ac_status=$?
3907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3908 test $ac_status = 0; }
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
3910 $as_echo_n "checking lex output file root... " >&6; }
3911 if ${ac_cv_prog_lex_root+:} false; then :
3912 $as_echo_n "(cached) " >&6
3913 else
3914
3915 if test -f lex.yy.c; then
3916 ac_cv_prog_lex_root=lex.yy
3917 elif test -f lexyy.c; then
3918 ac_cv_prog_lex_root=lexyy
3919 else
3920 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
3921 fi
3922 fi
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
3924 $as_echo "$ac_cv_prog_lex_root" >&6; }
3925 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3926
3927 if test -z "${LEXLIB+set}"; then
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
3929 $as_echo_n "checking lex library... " >&6; }
3930 if ${ac_cv_lib_lex+:} false; then :
3931 $as_echo_n "(cached) " >&6
3932 else
3933
3934 ac_save_LIBS=$LIBS
3935 ac_cv_lib_lex='none needed'
3936 for ac_lib in '' -lfl -ll; do
3937 LIBS="$ac_lib $ac_save_LIBS"
3938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939 /* end confdefs.h. */
3940 `cat $LEX_OUTPUT_ROOT.c`
3941 _ACEOF
3942 if ac_fn_c_try_link "$LINENO"; then :
3943 ac_cv_lib_lex=$ac_lib
3944 fi
3945 rm -f core conftest.err conftest.$ac_objext \
3946 conftest$ac_exeext conftest.$ac_ext
3947 test "$ac_cv_lib_lex" != 'none needed' && break
3948 done
3949 LIBS=$ac_save_LIBS
3950
3951 fi
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
3953 $as_echo "$ac_cv_lib_lex" >&6; }
3954 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
3955 fi
3956
3957
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
3959 $as_echo_n "checking whether yytext is a pointer... " >&6; }
3960 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
3961 $as_echo_n "(cached) " >&6
3962 else
3963 # POSIX says lex can declare yytext either as a pointer or an array; the
3964 # default is implementation-dependent. Figure out which it is, since
3965 # not all implementations provide the %pointer and %array declarations.
3966 ac_cv_prog_lex_yytext_pointer=no
3967 ac_save_LIBS=$LIBS
3968 LIBS="$LEXLIB $ac_save_LIBS"
3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970 /* end confdefs.h. */
3971
3972 #define YYTEXT_POINTER 1
3973 `cat $LEX_OUTPUT_ROOT.c`
3974 _ACEOF
3975 if ac_fn_c_try_link "$LINENO"; then :
3976 ac_cv_prog_lex_yytext_pointer=yes
3977 fi
3978 rm -f core conftest.err conftest.$ac_objext \
3979 conftest$ac_exeext conftest.$ac_ext
3980 LIBS=$ac_save_LIBS
3981
3982 fi
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
3984 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
3985 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3986
3987 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
3988
3989 fi
3990 rm -f conftest.l $LEX_OUTPUT_ROOT.c
3991
3992 fi
3993 # Find a good install program. We prefer a C program (faster),
3994 # so one script is as good as another. But avoid the broken or
3995 # incompatible versions:
3996 # SysV /etc/install, /usr/sbin/install
3997 # SunOS /usr/etc/install
3998 # IRIX /sbin/install
3999 # AIX /bin/install
4000 # AmigaOS /C/install, which installs bootblocks on floppy discs
4001 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4002 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4003 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4004 # OS/2's system install, which has a completely different semantic
4005 # ./install, which can be erroneously created by make from ./install.sh.
4006 # Reject install programs that cannot install multiple files.
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4008 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4009 if test -z "$INSTALL"; then
4010 if ${ac_cv_path_install+:} false; then :
4011 $as_echo_n "(cached) " >&6
4012 else
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014 for as_dir in $PATH
4015 do
4016 IFS=$as_save_IFS
4017 test -z "$as_dir" && as_dir=.
4018 # Account for people who put trailing slashes in PATH elements.
4019 case $as_dir/ in #((
4020 ./ | .// | /[cC]/* | \
4021 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4022 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4023 /usr/ucb/* ) ;;
4024 *)
4025 # OSF1 and SCO ODT 3.0 have their own names for install.
4026 # Don't use installbsd from OSF since it installs stuff as root
4027 # by default.
4028 for ac_prog in ginstall scoinst install; do
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4031 if test $ac_prog = install &&
4032 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4033 # AIX install. It has an incompatible calling convention.
4034 :
4035 elif test $ac_prog = install &&
4036 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4037 # program-specific install script used by HP pwplus--don't use.
4038 :
4039 else
4040 rm -rf conftest.one conftest.two conftest.dir
4041 echo one > conftest.one
4042 echo two > conftest.two
4043 mkdir conftest.dir
4044 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4045 test -s conftest.one && test -s conftest.two &&
4046 test -s conftest.dir/conftest.one &&
4047 test -s conftest.dir/conftest.two
4048 then
4049 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4050 break 3
4051 fi
4052 fi
4053 fi
4054 done
4055 done
4056 ;;
4057 esac
4058
4059 done
4060 IFS=$as_save_IFS
4061
4062 rm -rf conftest.one conftest.two conftest.dir
4063
4064 fi
4065 if test "${ac_cv_path_install+set}" = set; then
4066 INSTALL=$ac_cv_path_install
4067 else
4068 # As a last resort, use the slow shell script. Don't cache a
4069 # value for INSTALL within a source directory, because that will
4070 # break other packages using the cache if that directory is
4071 # removed, or if the value is a relative name.
4072 INSTALL=$ac_install_sh
4073 fi
4074 fi
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4076 $as_echo "$INSTALL" >&6; }
4077
4078 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4079 # It thinks the first close brace ends the variable substitution.
4080 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4081
4082 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4083
4084 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4085
4086 if test -n "$ac_tool_prefix"; then
4087 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4088 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4090 $as_echo_n "checking for $ac_word... " >&6; }
4091 if ${ac_cv_prog_RANLIB+:} false; then :
4092 $as_echo_n "(cached) " >&6
4093 else
4094 if test -n "$RANLIB"; then
4095 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4096 else
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 for as_dir in $PATH
4099 do
4100 IFS=$as_save_IFS
4101 test -z "$as_dir" && as_dir=.
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4104 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4106 break 2
4107 fi
4108 done
4109 done
4110 IFS=$as_save_IFS
4111
4112 fi
4113 fi
4114 RANLIB=$ac_cv_prog_RANLIB
4115 if test -n "$RANLIB"; then
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4117 $as_echo "$RANLIB" >&6; }
4118 else
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120 $as_echo "no" >&6; }
4121 fi
4122
4123
4124 fi
4125 if test -z "$ac_cv_prog_RANLIB"; then
4126 ac_ct_RANLIB=$RANLIB
4127 # Extract the first word of "ranlib", so it can be a program name with args.
4128 set dummy ranlib; ac_word=$2
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130 $as_echo_n "checking for $ac_word... " >&6; }
4131 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4132 $as_echo_n "(cached) " >&6
4133 else
4134 if test -n "$ac_ct_RANLIB"; then
4135 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4136 else
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH
4139 do
4140 IFS=$as_save_IFS
4141 test -z "$as_dir" && as_dir=.
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4144 ac_cv_prog_ac_ct_RANLIB="ranlib"
4145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4146 break 2
4147 fi
4148 done
4149 done
4150 IFS=$as_save_IFS
4151
4152 fi
4153 fi
4154 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4155 if test -n "$ac_ct_RANLIB"; then
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4157 $as_echo "$ac_ct_RANLIB" >&6; }
4158 else
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160 $as_echo "no" >&6; }
4161 fi
4162
4163 if test "x$ac_ct_RANLIB" = x; then
4164 RANLIB=":"
4165 else
4166 case $cross_compiling:$ac_tool_warned in
4167 yes:)
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4170 ac_tool_warned=yes ;;
4171 esac
4172 RANLIB=$ac_ct_RANLIB
4173 fi
4174 else
4175 RANLIB="$ac_cv_prog_RANLIB"
4176 fi
4177
4178 for ac_prog in 'bison -y' byacc
4179 do
4180 # Extract the first word of "$ac_prog", so it can be a program name with args.
4181 set dummy $ac_prog; ac_word=$2
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4183 $as_echo_n "checking for $ac_word... " >&6; }
4184 if ${ac_cv_prog_YACC+:} false; then :
4185 $as_echo_n "(cached) " >&6
4186 else
4187 if test -n "$YACC"; then
4188 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4189 else
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 for as_dir in $PATH
4192 do
4193 IFS=$as_save_IFS
4194 test -z "$as_dir" && as_dir=.
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4197 ac_cv_prog_YACC="$ac_prog"
4198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4199 break 2
4200 fi
4201 done
4202 done
4203 IFS=$as_save_IFS
4204
4205 fi
4206 fi
4207 YACC=$ac_cv_prog_YACC
4208 if test -n "$YACC"; then
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4210 $as_echo "$YACC" >&6; }
4211 else
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4213 $as_echo "no" >&6; }
4214 fi
4215
4216
4217 test -n "$YACC" && break
4218 done
4219 test -n "$YACC" || YACC="yacc"
4220
4221
4222 for ac_prog in ranlib
4223 do
4224 # Extract the first word of "$ac_prog", so it can be a program name with args.
4225 set dummy $ac_prog; ac_word=$2
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4227 $as_echo_n "checking for $ac_word... " >&6; }
4228 if ${ac_cv_prog_V_RANLIB+:} false; then :
4229 $as_echo_n "(cached) " >&6
4230 else
4231 if test -n "$V_RANLIB"; then
4232 ac_cv_prog_V_RANLIB="$V_RANLIB" # Let the user override the test.
4233 else
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 for as_dir in $PATH
4236 do
4237 IFS=$as_save_IFS
4238 test -z "$as_dir" && as_dir=.
4239 for ac_exec_ext in '' $ac_executable_extensions; do
4240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4241 ac_cv_prog_V_RANLIB="$ac_prog"
4242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4243 break 2
4244 fi
4245 done
4246 done
4247 IFS=$as_save_IFS
4248
4249 fi
4250 fi
4251 V_RANLIB=$ac_cv_prog_V_RANLIB
4252 if test -n "$V_RANLIB"; then
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_RANLIB" >&5
4254 $as_echo "$V_RANLIB" >&6; }
4255 else
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257 $as_echo "no" >&6; }
4258 fi
4259
4260
4261 test -n "$V_RANLIB" && break
4262 done
4263 test -n "$V_RANLIB" || V_RANLIB="@true"
4264
4265 for ac_prog in flex
4266 do
4267 # Extract the first word of "$ac_prog", so it can be a program name with args.
4268 set dummy $ac_prog; ac_word=$2
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4270 $as_echo_n "checking for $ac_word... " >&6; }
4271 if ${ac_cv_prog_V_LEX+:} false; then :
4272 $as_echo_n "(cached) " >&6
4273 else
4274 if test -n "$V_LEX"; then
4275 ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test.
4276 else
4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 for as_dir in $PATH
4279 do
4280 IFS=$as_save_IFS
4281 test -z "$as_dir" && as_dir=.
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4284 ac_cv_prog_V_LEX="$ac_prog"
4285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4286 break 2
4287 fi
4288 done
4289 done
4290 IFS=$as_save_IFS
4291
4292 fi
4293 fi
4294 V_LEX=$ac_cv_prog_V_LEX
4295 if test -n "$V_LEX"; then
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_LEX" >&5
4297 $as_echo "$V_LEX" >&6; }
4298 else
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4300 $as_echo "no" >&6; }
4301 fi
4302
4303
4304 test -n "$V_LEX" && break
4305 done
4306 test -n "$V_LEX" || V_LEX="lex"
4307
4308 if test "$V_LEX" = flex ; then
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex 2.4 or higher" >&5
4310 $as_echo_n "checking for flex 2.4 or higher... " >&6; }
4311 if ${ac_cv_lbl_flex_v24+:} false; then :
4312 $as_echo_n "(cached) " >&6
4313 else
4314 if flex -V >/dev/null 2>&1; then
4315 ac_cv_lbl_flex_v24=yes
4316 else
4317 ac_cv_lbl_flex_v24=no
4318 fi
4319 fi
4320
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_flex_v24" >&5
4322 $as_echo "$ac_cv_lbl_flex_v24" >&6; }
4323 if test $ac_cv_lbl_flex_v24 = no ; then
4324 s="2.4 or higher required"
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring obsolete flex executable ($s)" >&5
4326 $as_echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;}
4327 V_LEX=lex
4328 fi
4329 else
4330 as_fn_error $? "flex not found. see the INSTALL for more info" "$LINENO" 5
4331 fi
4332
4333 for ac_prog in bison
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
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4338 $as_echo_n "checking for $ac_word... " >&6; }
4339 if ${ac_cv_prog_V_YACC+:} false; then :
4340 $as_echo_n "(cached) " >&6
4341 else
4342 if test -n "$V_YACC"; then
4343 ac_cv_prog_V_YACC="$V_YACC" # 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=.
4350 for ac_exec_ext in '' $ac_executable_extensions; do
4351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4352 ac_cv_prog_V_YACC="$ac_prog"
4353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4354 break 2
4355 fi
4356 done
4357 done
4358 IFS=$as_save_IFS
4359
4360 fi
4361 fi
4362 V_YACC=$ac_cv_prog_V_YACC
4363 if test -n "$V_YACC"; then
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_YACC" >&5
4365 $as_echo "$V_YACC" >&6; }
4366 else
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4368 $as_echo "no" >&6; }
4369 fi
4370
4371
4372 test -n "$V_YACC" && break
4373 done
4374 test -n "$V_YACC" || V_YACC="yacc"
4375
4376
4377 if test "$V_YACC" = bison ; then
4378 V_YACC="$V_YACC -y"
4379 else
4380 as_fn_error $? "bison not found. see the INSTALL for more info" "$LINENO" 5
4381 fi
4382
4383 if test "$V_LEX" = flex -a -n "argus_" ; then
4384 V_LEX="$V_LEX -Pargus_"
4385 V_YACC="$V_YACC -p argus_"
4386 fi
4387
4388 # Checks for libraries.
4389 ac_ext=c
4390 ac_cpp='$CPP $CPPFLAGS'
4391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4395 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4396 # On Suns, sometimes $CPP names a directory.
4397 if test -n "$CPP" && test -d "$CPP"; then
4398 CPP=
4399 fi
4400 if test -z "$CPP"; then
4401 if ${ac_cv_prog_CPP+:} false; then :
4402 $as_echo_n "(cached) " >&6
4403 else
4404 # Double quotes because CPP needs to be expanded
4405 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4406 do
4407 ac_preproc_ok=false
4408 for ac_c_preproc_warn_flag in '' yes
4409 do
4410 # Use a header file that comes with gcc, so configuring glibc
4411 # with a fresh cross-compiler works.
4412 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4413 # <limits.h> exists even on freestanding compilers.
4414 # On the NeXT, cc -E runs the code through the compiler's parser,
4415 # not just through cpp. "Syntax error" is here to catch this case.
4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h. */
4418 #ifdef __STDC__
4419 # include <limits.h>
4420 #else
4421 # include <assert.h>
4422 #endif
4423 Syntax error
4424 _ACEOF
4425 if ac_fn_c_try_cpp "$LINENO"; then :
4426
4427 else
4428 # Broken: fails on valid input.
4429 continue
4430 fi
4431 rm -f conftest.err conftest.i conftest.$ac_ext
4432
4433 # OK, works on sane cases. Now check whether nonexistent headers
4434 # can be detected and how.
4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4437 #include <ac_nonexistent.h>
4438 _ACEOF
4439 if ac_fn_c_try_cpp "$LINENO"; then :
4440 # Broken: success on invalid input.
4441 continue
4442 else
4443 # Passes both tests.
4444 ac_preproc_ok=:
4445 break
4446 fi
4447 rm -f conftest.err conftest.i conftest.$ac_ext
4448
4449 done
4450 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4451 rm -f conftest.i conftest.err conftest.$ac_ext
4452 if $ac_preproc_ok; then :
4453 break
4454 fi
4455
4456 done
4457 ac_cv_prog_CPP=$CPP
4458
4459 fi
4460 CPP=$ac_cv_prog_CPP
4461 else
4462 ac_cv_prog_CPP=$CPP
4463 fi
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4465 $as_echo "$CPP" >&6; }
4466 ac_preproc_ok=false
4467 for ac_c_preproc_warn_flag in '' yes
4468 do
4469 # Use a header file that comes with gcc, so configuring glibc
4470 # with a fresh cross-compiler works.
4471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4472 # <limits.h> exists even on freestanding compilers.
4473 # On the NeXT, cc -E runs the code through the compiler's parser,
4474 # not just through cpp. "Syntax error" is here to catch this case.
4475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476 /* end confdefs.h. */
4477 #ifdef __STDC__
4478 # include <limits.h>
4479 #else
4480 # include <assert.h>
4481 #endif
4482 Syntax error
4483 _ACEOF
4484 if ac_fn_c_try_cpp "$LINENO"; then :
4485
4486 else
4487 # Broken: fails on valid input.
4488 continue
4489 fi
4490 rm -f conftest.err conftest.i conftest.$ac_ext
4491
4492 # OK, works on sane cases. Now check whether nonexistent headers
4493 # can be detected and how.
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h. */
4496 #include <ac_nonexistent.h>
4497 _ACEOF
4498 if ac_fn_c_try_cpp "$LINENO"; then :
4499 # Broken: success on invalid input.
4500 continue
4501 else
4502 # Passes both tests.
4503 ac_preproc_ok=:
4504 break
4505 fi
4506 rm -f conftest.err conftest.i conftest.$ac_ext
4507
4508 done
4509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4510 rm -f conftest.i conftest.err conftest.$ac_ext
4511 if $ac_preproc_ok; then :
4512
4513 else
4514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4516 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4517 See \`config.log' for more details" "$LINENO" 5; }
4518 fi
4519
4520 ac_ext=c
4521 ac_cpp='$CPP $CPPFLAGS'
4522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4525
4526
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4528 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4529 if ${ac_cv_path_GREP+:} false; then :
4530 $as_echo_n "(cached) " >&6
4531 else
4532 if test -z "$GREP"; then
4533 ac_path_GREP_found=false
4534 # Loop through the user's path and test for each of PROGNAME-LIST
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4537 do
4538 IFS=$as_save_IFS
4539 test -z "$as_dir" && as_dir=.
4540 for ac_prog in grep ggrep; do
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4543 as_fn_executable_p "$ac_path_GREP" || continue
4544 # Check for GNU ac_path_GREP and select it if it is found.
4545 # Check for GNU $ac_path_GREP
4546 case `"$ac_path_GREP" --version 2>&1` in
4547 *GNU*)
4548 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4549 *)
4550 ac_count=0
4551 $as_echo_n 0123456789 >"conftest.in"
4552 while :
4553 do
4554 cat "conftest.in" "conftest.in" >"conftest.tmp"
4555 mv "conftest.tmp" "conftest.in"
4556 cp "conftest.in" "conftest.nl"
4557 $as_echo 'GREP' >> "conftest.nl"
4558 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4559 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4560 as_fn_arith $ac_count + 1 && ac_count=$as_val
4561 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4562 # Best one so far, save it but keep looking for a better one
4563 ac_cv_path_GREP="$ac_path_GREP"
4564 ac_path_GREP_max=$ac_count
4565 fi
4566 # 10*(2^10) chars as input seems more than enough
4567 test $ac_count -gt 10 && break
4568 done
4569 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4570 esac
4571
4572 $ac_path_GREP_found && break 3
4573 done
4574 done
4575 done
4576 IFS=$as_save_IFS
4577 if test -z "$ac_cv_path_GREP"; then
4578 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4579 fi
4580 else
4581 ac_cv_path_GREP=$GREP
4582 fi
4583
4584 fi
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4586 $as_echo "$ac_cv_path_GREP" >&6; }
4587 GREP="$ac_cv_path_GREP"
4588
4589
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4591 $as_echo_n "checking for egrep... " >&6; }
4592 if ${ac_cv_path_EGREP+:} false; then :
4593 $as_echo_n "(cached) " >&6
4594 else
4595 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4596 then ac_cv_path_EGREP="$GREP -E"
4597 else
4598 if test -z "$EGREP"; then
4599 ac_path_EGREP_found=false
4600 # Loop through the user's path and test for each of PROGNAME-LIST
4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4603 do
4604 IFS=$as_save_IFS
4605 test -z "$as_dir" && as_dir=.
4606 for ac_prog in egrep; do
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4609 as_fn_executable_p "$ac_path_EGREP" || continue
4610 # Check for GNU ac_path_EGREP and select it if it is found.
4611 # Check for GNU $ac_path_EGREP
4612 case `"$ac_path_EGREP" --version 2>&1` in
4613 *GNU*)
4614 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4615 *)
4616 ac_count=0
4617 $as_echo_n 0123456789 >"conftest.in"
4618 while :
4619 do
4620 cat "conftest.in" "conftest.in" >"conftest.tmp"
4621 mv "conftest.tmp" "conftest.in"
4622 cp "conftest.in" "conftest.nl"
4623 $as_echo 'EGREP' >> "conftest.nl"
4624 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4625 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4626 as_fn_arith $ac_count + 1 && ac_count=$as_val
4627 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4628 # Best one so far, save it but keep looking for a better one
4629 ac_cv_path_EGREP="$ac_path_EGREP"
4630 ac_path_EGREP_max=$ac_count
4631 fi
4632 # 10*(2^10) chars as input seems more than enough
4633 test $ac_count -gt 10 && break
4634 done
4635 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4636 esac
4637
4638 $ac_path_EGREP_found && break 3
4639 done
4640 done
4641 done
4642 IFS=$as_save_IFS
4643 if test -z "$ac_cv_path_EGREP"; then
4644 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4645 fi
4646 else
4647 ac_cv_path_EGREP=$EGREP
4648 fi
4649
4650 fi
4651 fi
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4653 $as_echo "$ac_cv_path_EGREP" >&6; }
4654 EGREP="$ac_cv_path_EGREP"
4655
4656
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4658 $as_echo_n "checking for ANSI C header files... " >&6; }
4659 if ${ac_cv_header_stdc+:} false; then :
4660 $as_echo_n "(cached) " >&6
4661 else
4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h. */
4664 #include <stdlib.h>
4665 #include <stdarg.h>
4666 #include <string.h>
4667 #include <float.h>
4668
4669 int
4670 main ()
4671 {
4672
4673 ;
4674 return 0;
4675 }
4676 _ACEOF
4677 if ac_fn_c_try_compile "$LINENO"; then :
4678 ac_cv_header_stdc=yes
4679 else
4680 ac_cv_header_stdc=no
4681 fi
4682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4683
4684 if test $ac_cv_header_stdc = yes; then
4685 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687 /* end confdefs.h. */
4688 #include <string.h>
4689
4690 _ACEOF
4691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4692 $EGREP "memchr" >/dev/null 2>&1; then :
4693
4694 else
4695 ac_cv_header_stdc=no
4696 fi
4697 rm -f conftest*
4698
4699 fi
4700
4701 if test $ac_cv_header_stdc = yes; then
4702 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h. */
4705 #include <stdlib.h>
4706
4707 _ACEOF
4708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4709 $EGREP "free" >/dev/null 2>&1; then :
4710
4711 else
4712 ac_cv_header_stdc=no
4713 fi
4714 rm -f conftest*
4715
4716 fi
4717
4718 if test $ac_cv_header_stdc = yes; then
4719 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4720 if test "$cross_compiling" = yes; then :
4721 :
4722 else
4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4725 #include <ctype.h>
4726 #include <stdlib.h>
4727 #if ((' ' & 0x0FF) == 0x020)
4728 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4729 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4730 #else
4731 # define ISLOWER(c) \
4732 (('a' <= (c) && (c) <= 'i') \
4733 || ('j' <= (c) && (c) <= 'r') \
4734 || ('s' <= (c) && (c) <= 'z'))
4735 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4736 #endif
4737
4738 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4739 int
4740 main ()
4741 {
4742 int i;
4743 for (i = 0; i < 256; i++)
4744 if (XOR (islower (i), ISLOWER (i))
4745 || toupper (i) != TOUPPER (i))
4746 return 2;
4747 return 0;
4748 }
4749 _ACEOF
4750 if ac_fn_c_try_run "$LINENO"; then :
4751
4752 else
4753 ac_cv_header_stdc=no
4754 fi
4755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4756 conftest.$ac_objext conftest.beam conftest.$ac_ext
4757 fi
4758
4759 fi
4760 fi
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4762 $as_echo "$ac_cv_header_stdc" >&6; }
4763 if test $ac_cv_header_stdc = yes; then
4764
4765 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4766
4767 fi
4768
4769 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4770 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4771 inttypes.h stdint.h unistd.h
4772 do :
4773 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4774 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4775 "
4776 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4777 cat >>confdefs.h <<_ACEOF
4778 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4779 _ACEOF
4780
4781 fi
4782
4783 done
4784
4785
4786
4787
4788 # Check whether --with-readline was given.
4789 if test "${with_readline+set}" = set; then :
4790 withval=$with_readline; with_readline="$withval"
4791 else
4792 with_readline="yes"
4793 fi
4794
4795
4796 if test ${with_readline} != "no"; then
4797 saved_CPPFLAGS=$CPPFLAGS
4798 saved_LDFLAGS=$LDFLAGS
4799 saved_LIBS=$LIBS
4800
4801 if test ${with_readline} != "yes"; then
4802 CPPFLAGS="${saved_CPPFLAGS} -I${with_readline}/include"
4803 LDFLAGS="${save_LDFLAGS} -L${with_readline}/lib"
4804 else
4805 case "$target_os" in
4806 solaris*)
4807 CPPFLAGS="${saved_CPPFLAGS} -I/opt/local/include"
4808 LDFLAGS="${save_LDFLAGS} -L/opt/local/lib"
4809 ;;
4810 darwin*)
4811 CPPFLAGS="${saved_CPPFLAGS} -I/usr/local/include"
4812 LDFLAGS="${save_LDFLAGS} -L/usr/local/lib"
4813 ;;
4814 esac
4815 fi
4816
4817 for ac_header in readline/readline.h
4818 do :
4819 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
4820 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
4821 cat >>confdefs.h <<_ACEOF
4822 #define HAVE_READLINE_READLINE_H 1
4823 _ACEOF
4824 ac_fn_c_check_decl "$LINENO" "rl_event_hook" "ac_cv_have_decl_rl_event_hook" "
4825 #include <stdlib.h>
4826 #include <stdio.h>
4827 #include <readline/readline.h>
4828
4829 "
4830 if test "x$ac_cv_have_decl_rl_event_hook" = xyes; then :
4831 ac_have_decl=1
4832 else
4833 ac_have_decl=0
4834 fi
4835
4836 cat >>confdefs.h <<_ACEOF
4837 #define HAVE_DECL_RL_EVENT_HOOK $ac_have_decl
4838 _ACEOF
4839 if test $ac_have_decl = 1; then :
4840
4841 fi
4842 ac_fn_c_check_decl "$LINENO" "rl_catch_signals" "ac_cv_have_decl_rl_catch_signals" "
4843 #include <stdlib.h>
4844 #include <stdio.h>
4845 #include <readline/readline.h>
4846
4847 "
4848 if test "x$ac_cv_have_decl_rl_catch_signals" = xyes; then :
4849 ac_have_decl=1
4850 else
4851 ac_have_decl=0
4852 fi
4853
4854 cat >>confdefs.h <<_ACEOF
4855 #define HAVE_DECL_RL_CATCH_SIGNALS $ac_have_decl
4856 _ACEOF
4857 if test $ac_have_decl = 1; then :
4858
4859 fi
4860 ac_fn_c_check_decl "$LINENO" "rl_done" "ac_cv_have_decl_rl_done" "
4861 #include <stdlib.h>
4862 #include <stdio.h>
4863 #include <readline/readline.h>
4864
4865 "
4866 if test "x$ac_cv_have_decl_rl_done" = xyes; then :
4867 ac_have_decl=1
4868 else
4869 ac_have_decl=0
4870 fi
4871
4872 cat >>confdefs.h <<_ACEOF
4873 #define HAVE_DECL_RL_DONE $ac_have_decl
4874 _ACEOF
4875 if test $ac_have_decl = 1; then :
4876
4877 fi
4878 ac_fn_c_check_decl "$LINENO" "rl_set_keyboard_input_timeout" "ac_cv_have_decl_rl_set_keyboard_input_timeout" "
4879 #include <stdlib.h>
4880 #include <stdio.h>
4881 #include <readline/readline.h>
4882
4883 "
4884 if test "x$ac_cv_have_decl_rl_set_keyboard_input_timeout" = xyes; then :
4885 ac_have_decl=1
4886 else
4887 ac_have_decl=0
4888 fi
4889
4890 cat >>confdefs.h <<_ACEOF
4891 #define HAVE_DECL_RL_SET_KEYBOARD_INPUT_TIMEOUT $ac_have_decl
4892 _ACEOF
4893 if test $ac_have_decl = 1; then :
4894
4895 fi
4896 ac_fn_c_check_decl "$LINENO" "rl_replace_line" "ac_cv_have_decl_rl_replace_line" "
4897 #include <stdlib.h>
4898 #include <stdio.h>
4899 #include <readline/readline.h>
4900
4901 "
4902 if test "x$ac_cv_have_decl_rl_replace_line" = xyes; then :
4903 ac_have_decl=1
4904 else
4905 ac_have_decl=0
4906 fi
4907
4908 cat >>confdefs.h <<_ACEOF
4909 #define HAVE_DECL_RL_REPLACE_LINE $ac_have_decl
4910 _ACEOF
4911 if test $ac_have_decl = 1; then :
4912
4913 fi
4914 ac_fn_c_check_decl "$LINENO" "rl_delete_text" "ac_cv_have_decl_rl_delete_text" "
4915 #include <stdlib.h>
4916 #include <stdio.h>
4917 #include <readline/readline.h>
4918
4919 "
4920 if test "x$ac_cv_have_decl_rl_delete_text" = xyes; then :
4921 ac_have_decl=1
4922 else
4923 ac_have_decl=0
4924 fi
4925
4926 cat >>confdefs.h <<_ACEOF
4927 #define HAVE_DECL_RL_DELETE_TEXT $ac_have_decl
4928 _ACEOF
4929 if test $ac_have_decl = 1; then :
4930
4931 fi
4932 ac_fn_c_check_decl "$LINENO" "rl_resize_terminal" "ac_cv_have_decl_rl_resize_terminal" "
4933 #include <stdlib.h>
4934 #include <stdio.h>
4935 #include <readline/readline.h>
4936
4937 "
4938 if test "x$ac_cv_have_decl_rl_resize_terminal" = xyes; then :
4939 ac_have_decl=1
4940 else
4941 ac_have_decl=0
4942 fi
4943
4944 cat >>confdefs.h <<_ACEOF
4945 #define HAVE_DECL_RL_RESIZE_TERMINAL $ac_have_decl
4946 _ACEOF
4947 if test $ac_have_decl = 1; then :
4948
4949 fi
4950 ac_fn_c_check_decl "$LINENO" "rl_save_prompt " "ac_cv_have_decl_rl_save_prompt__" "
4951 #include <stdlib.h>
4952 #include <stdio.h>
4953 #include <readline/readline.h>
4954
4955 "
4956 if test "x$ac_cv_have_decl_rl_save_prompt__" = xyes; then :
4957 ac_have_decl=1
4958 else
4959 ac_have_decl=0
4960 fi
4961
4962 cat >>confdefs.h <<_ACEOF
4963 #define HAVE_DECL_RL_SAVE_PROMPT__ $ac_have_decl
4964 _ACEOF
4965 if test $ac_have_decl = 1; then :
4966
4967 fi
4968
4969 else
4970 ac_cv_found_readline=no
4971 fi
4972
4973 done
4974
4975
4976 if test "$ac_cv_found_readline" != no; then
4977 V_READLINE="${LDFLAGS} -lreadline"
4978 V_READLINE_INCLS="${CPPFLAGS} $V_READLINE_INCLS"
4979
4980 $as_echo "#define ARGUS_READLINE /**/" >>confdefs.h
4981
4982 else
4983 LIBS=$saved_LIBS
4984 LDFLAGS=$saved_LDFLAGS
4985 CPPFLAGS=$saved_CPPFLAGS
4986
4987 ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
4988 if test "x$ac_cv_header_editline_readline_h" = xyes; then :
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init in -ledit" >&5
4990 $as_echo_n "checking for el_init in -ledit... " >&6; }
4991 if ${ac_cv_lib_edit_el_init+:} false; then :
4992 $as_echo_n "(cached) " >&6
4993 else
4994 ac_check_lib_save_LIBS=$LIBS
4995 LIBS="-ledit $LIBS"
4996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997 /* end confdefs.h. */
4998
4999 /* Override any GCC internal prototype to avoid an error.
5000 Use char because int might match the return type of a GCC
5001 builtin and then its argument prototype would still apply. */
5002 #ifdef __cplusplus
5003 extern "C"
5004 #endif
5005 char el_init ();
5006 int
5007 main ()
5008 {
5009 return el_init ();
5010 ;
5011 return 0;
5012 }
5013 _ACEOF
5014 if ac_fn_c_try_link "$LINENO"; then :
5015 ac_cv_lib_edit_el_init=yes
5016 else
5017 ac_cv_lib_edit_el_init=no
5018 fi
5019 rm -f core conftest.err conftest.$ac_objext \
5020 conftest$ac_exeext conftest.$ac_ext
5021 LIBS=$ac_check_lib_save_LIBS
5022 fi
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_el_init" >&5
5024 $as_echo "$ac_cv_lib_edit_el_init" >&6; }
5025 if test "x$ac_cv_lib_edit_el_init" = xyes; then :
5026 ac_cv_found_el_init=yes
5027 else
5028 ac_cv_found_el_init=no
5029 fi
5030
5031 fi
5032
5033
5034
5035 if test "$ac_cv_found_el_init" = yes; then
5036
5037 $as_echo "#define ARGUS_EDITLINE /**/" >>confdefs.h
5038
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for history_init in -ledit" >&5
5040 $as_echo_n "checking for history_init in -ledit... " >&6; }
5041 if ${ac_cv_lib_edit_history_init+:} false; then :
5042 $as_echo_n "(cached) " >&6
5043 else
5044 ac_check_lib_save_LIBS=$LIBS
5045 LIBS="-ledit $LIBS"
5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h. */
5048
5049 /* Override any GCC internal prototype to avoid an error.
5050 Use char because int might match the return type of a GCC
5051 builtin and then its argument prototype would still apply. */
5052 #ifdef __cplusplus
5053 extern "C"
5054 #endif
5055 char history_init ();
5056 int
5057 main ()
5058 {
5059 return history_init ();
5060 ;
5061 return 0;
5062 }
5063 _ACEOF
5064 if ac_fn_c_try_link "$LINENO"; then :
5065 ac_cv_lib_edit_history_init=yes
5066 else
5067 ac_cv_lib_edit_history_init=no
5068 fi
5069 rm -f core conftest.err conftest.$ac_objext \
5070 conftest$ac_exeext conftest.$ac_ext
5071 LIBS=$ac_check_lib_save_LIBS
5072 fi
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_history_init" >&5
5074 $as_echo "$ac_cv_lib_edit_history_init" >&6; }
5075 if test "x$ac_cv_lib_edit_history_init" = xyes; then :
5076 ac_cv_found_history_init=yes
5077 else
5078 ac_cv_found_history_init=no
5079 fi
5080
5081 if test "$ac_cv_found_history_init" != no; then
5082
5083 $as_echo "#define ARGUS_HISTORY /**/" >>confdefs.h
5084
5085 fi
5086 V_READLINE="-ledit"
5087 fi
5088 fi
5089 echo "readline test finished cppflags ${CPPFLAGS} ldflags ${LDFLAGS} "
5090 fi
5091
5092
5093
5094
5095 # Check whether --with-sasl was given.
5096 if test "${with_sasl+set}" = set; then :
5097 withval=$with_sasl; with_sasl="$withval"
5098 else
5099 with_sasl="no"
5100 fi
5101
5102
5103
5104 # Check whether --with-staticsasl was given.
5105 if test "${with_staticsasl+set}" = set; then :
5106 withval=$with_staticsasl; with_staticsasl="$withval";
5107 if test $with_staticsasl != "no"; then
5108 using_static_sasl="static"
5109 fi
5110 else
5111 with_staticsasl="no"; using_static_sasl="no"
5112 fi
5113
5114
5115 if test ${with_staticsasl} != "no" ||
5116 test ${with_sasl} != "no"; then
5117
5118 SASLFLAGS=""
5119 LIB_SASL=""
5120
5121 cmu_saved_CPPFLAGS=$CPPFLAGS
5122 cmu_saved_LDFLAGS=$LDFLAGS
5123 cmu_saved_LIBS=$LIBS
5124
5125 if test ${with_staticsasl} != "no"; then
5126 if test -d ${with_staticsasl}; then
5127 if test -d ${with_staticsasl}/lib64 ; then
5128 ac_cv_sasl_where_lib=${with_staticsasl}/lib64
5129 else
5130 ac_cv_sasl_where_lib=${with_staticsasl}/lib
5131 fi
5132 ac_cv_sasl_where_lib=${with_staticsasl}/lib
5133 ac_cv_sasl_where_inc=${with_staticsasl}/include
5134
5135 SASLFLAGS="-I$ac_cv_sasl_where_inc"
5136 LIB_SASL="-L$ac_cv_sasl_where_lib"
5137 CPPFLAGS="${cmu_saved_CPPFLAGS} -I${ac_cv_sasl_where_inc}"
5138 LDFLAGS="${cmu_saved_LDFLAGS} -L${ac_cv_sasl_where_lib}"
5139 else
5140 with_staticsasl="/usr"
5141 fi
5142
5143 ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
5144 if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
5145 ac_fn_c_check_header_mongrel "$LINENO" "sasl/saslutil.h" "ac_cv_header_sasl_saslutil_h" "$ac_includes_default"
5146 if test "x$ac_cv_header_sasl_saslutil_h" = xyes; then :
5147 for i42 in lib64 lib; do
5148 if test -r ${with_staticsasl}/$i42/libsasl2.a; then
5149 ac_cv_found_sasl=yes
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for static libsasl" >&5
5151 $as_echo_n "checking for static libsasl... " >&6; }
5152 LIB_SASL="$LIB_SASL ${with_staticsasl}/$i42/libsasl2.a"
5153 fi
5154 done
5155 if test ! "$ac_cv_found_sasl" = "yes"; then
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for static libsasl" >&5
5157 $as_echo_n "checking for static libsasl... " >&6; }
5158 as_fn_error $? "Could not find ${with_staticsasl}/lib*/libsasl2.a" "$LINENO" 5
5159 fi
5160 fi
5161
5162
5163 fi
5164
5165
5166
5167 if test "$ac_cv_found_sasl" = "yes"; then
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
5169 $as_echo "found" >&6; }
5170 else
5171 as_fn_error $? "Could not find ${with_staticsasl}/lib*/libsasl2.a" "$LINENO" 5
5172 fi
5173 fi
5174
5175 if test -d ${with_sasl}; then
5176 ac_cv_sasl_where_lib=${with_sasl}/lib
5177 ac_cv_sasl_where_inc=${with_sasl}/include
5178
5179 DYNSASLFLAGS="-I$ac_cv_sasl_where_inc"
5180 CPPFLAGS="${cmu_saved_CPPFLAGS} -I${ac_cv_sasl_where_inc}"
5181 LDFLAGS="${cmu_saved_LDFLAGS} -L${ac_cv_sasl_where_lib}"
5182 LIBS="-L$ac_cv_sasl_where_lib"
5183 fi
5184
5185 # be sure to check for a SASLv2 specific function
5186 ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
5187 if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
5188 ac_fn_c_check_header_mongrel "$LINENO" "sasl/saslutil.h" "ac_cv_header_sasl_saslutil_h" "$ac_includes_default"
5189 if test "x$ac_cv_header_sasl_saslutil_h" = xyes; then :
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prop_get in -lsasl2" >&5
5191 $as_echo_n "checking for prop_get in -lsasl2... " >&6; }
5192 if ${ac_cv_lib_sasl2_prop_get+:} false; then :
5193 $as_echo_n "(cached) " >&6
5194 else
5195 ac_check_lib_save_LIBS=$LIBS
5196 LIBS="-lsasl2 $LIBS"
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5199
5200 /* Override any GCC internal prototype to avoid an error.
5201 Use char because int might match the return type of a GCC
5202 builtin and then its argument prototype would still apply. */
5203 #ifdef __cplusplus
5204 extern "C"
5205 #endif
5206 char prop_get ();
5207 int
5208 main ()
5209 {
5210 return prop_get ();
5211 ;
5212 return 0;
5213 }
5214 _ACEOF
5215 if ac_fn_c_try_link "$LINENO"; then :
5216 ac_cv_lib_sasl2_prop_get=yes
5217 else
5218 ac_cv_lib_sasl2_prop_get=no
5219 fi
5220 rm -f core conftest.err conftest.$ac_objext \
5221 conftest$ac_exeext conftest.$ac_ext
5222 LIBS=$ac_check_lib_save_LIBS
5223 fi
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_prop_get" >&5
5225 $as_echo "$ac_cv_lib_sasl2_prop_get" >&6; }
5226 if test "x$ac_cv_lib_sasl2_prop_get" = xyes; then :
5227 ac_cv_found_sasl=yes
5228 else
5229 ac_cv_found_sasl=no
5230 fi
5231
5232 else
5233 ac_cv_found_sasl=no
5234 fi
5235
5236
5237 else
5238 ac_cv_found_sasl=no
5239 fi
5240
5241
5242
5243 if test ${with_sasl} != "no"; then
5244 if test "$ac_cv_found_sasl" = "yes"; then
5245 if test "$ac_cv_sasl_where_lib" != ""; then
5246 DYNLIB_SASL="-L$ac_cv_sasl_where_lib"
5247 fi
5248 DYNLIB_SASL="$DYNLIB_SASL -lsasl2"
5249 if test "$using_static_sasl" != "static"; then
5250 LIB_SASL=$DYNLIB_SASL
5251 SASLFLAGS=$DYNSASLFLAGS
5252 fi
5253
5254
5255
5256 cmu_saved_CPPFLAGS=$CPPFLAGS
5257 CPPFLAGS="$CPPFLAGS $SASLFLAGS"
5258
5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h. */
5261
5262 #include <sasl/sasl.h>
5263
5264 #ifndef SASL_VERSION_MAJOR
5265 #error SASL_VERSION_MAJOR not defined
5266 #endif
5267 #ifndef SASL_VERSION_MINOR
5268 #error SASL_VERSION_MINOR not defined
5269 #endif
5270 #ifndef SASL_VERSION_STEP
5271 #error SASL_VERSION_STEP not defined
5272 #endif
5273
5274 #if SASL_VERSION_MAJOR < 2 || SASL_VERSION_MINOR < 1 || SASL_VERSION_STEP < 7
5275 #error SASL version is less than 2.1.7
5276 #endif
5277
5278 _ACEOF
5279 if ac_fn_c_try_cpp "$LINENO"; then :
5280
5281 else
5282 as_fn_error $? "Incorrect SASL headers found. This package requires SASL 2.1.7 or newer." "$LINENO" 5
5283 fi
5284 rm -f conftest.err conftest.i conftest.$ac_ext
5285
5286
5287 CPPFLAGS=$cmu_saved_CPPFLAGS
5288
5289
5290 if test "$ac_cv_sasl_where_inc" != ""; then
5291 V_INCLS="-I$ac_cv_sasl_where_inc $V_INCLS"
5292 fi
5293
5294 $as_echo "#define ARGUS_SASL /**/" >>confdefs.h
5295
5296
5297
5298 else
5299 as_fn_error $? "Could not find sasl2" "$LINENO" 5
5300 fi
5301 fi
5302
5303 LIBS="$cmu_saved_LIBS"
5304 LDFLAGS="$cmu_saved_LDFLAGS"
5305 CPPFLAGS="$cmu_saved_CPPFLAGS"
5306 fi
5307
5308
5309 # Check whether --with-mysql was given.
5310 if test "${with_mysql+set}" = set; then :
5311 withval=$with_mysql; with_mysql="$withval"
5312 fi
5313
5314
5315 MYSQL_INCLS=""
5316 MYSQL_LDFLAGS=""
5317 ARGUS_MYSQL=""
5318 ARGUS_MYSQL_MAKEFILE=no
5319
5320 if test "$with_mysql" != no; then
5321 saved_CPPFLAGS=$CPPFLAGS
5322 saved_LDFLAGS=$LDFLAGS
5323 saved_LIBS=$LIBS
5324
5325 case "$target_cpu" in
5326 x86_64)
5327 clib="lib64 lib"
5328 ;;
5329 *)
5330 clib="lib"
5331 ;;
5332 esac
5333
5334 if test -n "$with_mysql"; then
5335 for dir in ${with_mysql}; do
5336 for cdir in $clib; do
5337 if test "$ac_cv_found_mysql" != yes; then
5338 unset ac_cv_header_mysql_h
5339 unset ac_cv_lib_mysqlclient_mysql_init
5340 unset ac_cv_lib_mysqlclient_r_mysql_init
5341
5342 if test -d $dir/$cdir/mysql; then
5343 ac_cv_mysql_where_lib=$dir/$cdir/mysql
5344 else
5345 if test -d $dir/$cdir; then
5346 ac_cv_mysql_where_lib=$dir/$cdir
5347 fi
5348 fi
5349
5350 if test -f $dir/include/mysql/mysql.h; then
5351 ac_cv_mysql_where_inc=$dir/include/mysql
5352 else
5353 if test -f $dir/include/mysql.h; then
5354 ac_cv_mysql_where_inc=$dir/include
5355 fi
5356 fi
5357
5358 if test -f $ac_cv_mysql_where_inc/mysql.h; then
5359 MYSQL_INCLS="-I$ac_cv_mysql_where_inc"
5360 MYSQL_LDFLAGS="-L$ac_cv_mysql_where_lib"
5361 CPPFLAGS="${saved_CPPFLAGS} ${MYSQL_INCLS}"
5362 LDFLAGS="${saved_LDFLAGS} ${MYSQL_LDFLAGS}"
5363
5364 ac_fn_c_check_header_mongrel "$LINENO" "mysql.h" "ac_cv_header_mysql_h" "$ac_includes_default"
5365 if test "x$ac_cv_header_mysql_h" = xyes; then :
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient_r" >&5
5367 $as_echo_n "checking for mysql_init in -lmysqlclient_r... " >&6; }
5368 if ${ac_cv_lib_mysqlclient_r_mysql_init+:} false; then :
5369 $as_echo_n "(cached) " >&6
5370 else
5371 ac_check_lib_save_LIBS=$LIBS
5372 LIBS="-lmysqlclient_r $LIBS"
5373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374 /* end confdefs.h. */
5375
5376 /* Override any GCC internal prototype to avoid an error.
5377 Use char because int might match the return type of a GCC
5378 builtin and then its argument prototype would still apply. */
5379 #ifdef __cplusplus
5380 extern "C"
5381 #endif
5382 char mysql_init ();
5383 int
5384 main ()
5385 {
5386 return mysql_init ();
5387 ;
5388 return 0;
5389 }
5390 _ACEOF
5391 if ac_fn_c_try_link "$LINENO"; then :
5392 ac_cv_lib_mysqlclient_r_mysql_init=yes
5393 else
5394 ac_cv_lib_mysqlclient_r_mysql_init=no
5395 fi
5396 rm -f core conftest.err conftest.$ac_objext \
5397 conftest$ac_exeext conftest.$ac_ext
5398 LIBS=$ac_check_lib_save_LIBS
5399 fi
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_init" >&5
5401 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_init" >&6; }
5402 if test "x$ac_cv_lib_mysqlclient_r_mysql_init" = xyes; then :
5403 ac_cv_found_mysql=yes
5404 else
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient" >&5
5406 $as_echo_n "checking for mysql_init in -lmysqlclient... " >&6; }
5407 if ${ac_cv_lib_mysqlclient_mysql_init+:} false; then :
5408 $as_echo_n "(cached) " >&6
5409 else
5410 ac_check_lib_save_LIBS=$LIBS
5411 LIBS="-lmysqlclient $LIBS"
5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413 /* end confdefs.h. */
5414
5415 /* Override any GCC internal prototype to avoid an error.
5416 Use char because int might match the return type of a GCC
5417 builtin and then its argument prototype would still apply. */
5418 #ifdef __cplusplus
5419 extern "C"
5420 #endif
5421 char mysql_init ();
5422 int
5423 main ()
5424 {
5425 return mysql_init ();
5426 ;
5427 return 0;
5428 }
5429 _ACEOF
5430 if ac_fn_c_try_link "$LINENO"; then :
5431 ac_cv_lib_mysqlclient_mysql_init=yes
5432 else
5433 ac_cv_lib_mysqlclient_mysql_init=no
5434 fi
5435 rm -f core conftest.err conftest.$ac_objext \
5436 conftest$ac_exeext conftest.$ac_ext
5437 LIBS=$ac_check_lib_save_LIBS
5438 fi
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_init" >&5
5440 $as_echo "$ac_cv_lib_mysqlclient_mysql_init" >&6; }
5441 if test "x$ac_cv_lib_mysqlclient_mysql_init" = xyes; then :
5442 ac_cv_found_mysql=yes
5443 else
5444 ac_cv_found_mysql=no
5445 fi
5446
5447 fi
5448
5449 else
5450 ac_cv_found_mysql=no
5451 fi
5452
5453
5454
5455 CPPFLAGS="${saved_CPPFLAGS}"
5456 LDFLAGS="${saved_LDFLAGS}"
5457 fi
5458 fi
5459 done
5460 done
5461 else
5462 for dir in /usr /usr/local /usr/local/mysql /usr/mysql; do
5463 for cdir in $clib; do
5464 if test "$ac_cv_found_mysql" != yes; then
5465 unset ac_cv_header_mysql_h
5466 unset ac_cv_lib_mysqlclient_mysql_init
5467 unset ac_cv_lib_mysqlclient_r_mysql_init
5468
5469 if test -d $dir/$cdir/mysql; then
5470 ac_cv_mysql_where_lib=$dir/$cdir/mysql
5471 else
5472 if test -d $dir/$cdir; then
5473 ac_cv_mysql_where_lib=$dir/$cdir
5474 fi
5475 fi
5476
5477 if test -f $dir/include/mysql/mysql.h; then
5478 ac_cv_mysql_where_inc=$dir/include/mysql
5479 else
5480 if test -f $dir/include/mysql.h; then
5481 ac_cv_mysql_where_inc=$dir/include
5482 fi
5483 fi
5484
5485 if test -f $ac_cv_mysql_where_inc/mysql.h; then
5486 MYSQL_INCLS="-I$ac_cv_mysql_where_inc"
5487 MYSQL_LDFLAGS="-L$ac_cv_mysql_where_lib"
5488 CPPFLAGS="${saved_CPPFLAGS} ${MYSQL_INCLS}"
5489 LDFLAGS="${saved_LDFLAGS} ${MYSQL_LDFLAGS}"
5490
5491 ac_fn_c_check_header_mongrel "$LINENO" "mysql.h" "ac_cv_header_mysql_h" "$ac_includes_default"
5492 if test "x$ac_cv_header_mysql_h" = xyes; then :
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient_r" >&5
5494 $as_echo_n "checking for mysql_init in -lmysqlclient_r... " >&6; }
5495 if ${ac_cv_lib_mysqlclient_r_mysql_init+:} false; then :
5496 $as_echo_n "(cached) " >&6
5497 else
5498 ac_check_lib_save_LIBS=$LIBS
5499 LIBS="-lmysqlclient_r $LIBS"
5500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5501 /* end confdefs.h. */
5502
5503 /* Override any GCC internal prototype to avoid an error.
5504 Use char because int might match the return type of a GCC
5505 builtin and then its argument prototype would still apply. */
5506 #ifdef __cplusplus
5507 extern "C"
5508 #endif
5509 char mysql_init ();
5510 int
5511 main ()
5512 {
5513 return mysql_init ();
5514 ;
5515 return 0;
5516 }
5517 _ACEOF
5518 if ac_fn_c_try_link "$LINENO"; then :
5519 ac_cv_lib_mysqlclient_r_mysql_init=yes
5520 else
5521 ac_cv_lib_mysqlclient_r_mysql_init=no
5522 fi
5523 rm -f core conftest.err conftest.$ac_objext \
5524 conftest$ac_exeext conftest.$ac_ext
5525 LIBS=$ac_check_lib_save_LIBS
5526 fi
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_init" >&5
5528 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_init" >&6; }
5529 if test "x$ac_cv_lib_mysqlclient_r_mysql_init" = xyes; then :
5530 ac_cv_found_mysql=yes
5531 else
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient" >&5
5533 $as_echo_n "checking for mysql_init in -lmysqlclient... " >&6; }
5534 if ${ac_cv_lib_mysqlclient_mysql_init+:} false; then :
5535 $as_echo_n "(cached) " >&6
5536 else
5537 ac_check_lib_save_LIBS=$LIBS
5538 LIBS="-lmysqlclient $LIBS"
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h. */
5541
5542 /* Override any GCC internal prototype to avoid an error.
5543 Use char because int might match the return type of a GCC
5544 builtin and then its argument prototype would still apply. */
5545 #ifdef __cplusplus
5546 extern "C"
5547 #endif
5548 char mysql_init ();
5549 int
5550 main ()
5551 {
5552 return mysql_init ();
5553 ;
5554 return 0;
5555 }
5556 _ACEOF
5557 if ac_fn_c_try_link "$LINENO"; then :
5558 ac_cv_lib_mysqlclient_mysql_init=yes
5559 else
5560 ac_cv_lib_mysqlclient_mysql_init=no
5561 fi
5562 rm -f core conftest.err conftest.$ac_objext \
5563 conftest$ac_exeext conftest.$ac_ext
5564 LIBS=$ac_check_lib_save_LIBS
5565 fi
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_init" >&5
5567 $as_echo "$ac_cv_lib_mysqlclient_mysql_init" >&6; }
5568 if test "x$ac_cv_lib_mysqlclient_mysql_init" = xyes; then :
5569 ac_cv_found_mysql=yes
5570 else
5571 ac_cv_found_mysql=no
5572 fi
5573
5574 fi
5575
5576 else
5577 ac_cv_found_mysql=no
5578 fi
5579
5580
5581
5582 CPPFLAGS="${saved_CPPFLAGS}"
5583 LDFLAGS="${saved_LDFLAGS}"
5584 fi
5585 fi
5586 done
5587 done
5588 fi
5589
5590 if test "$ac_cv_found_mysql" = yes; then
5591 LIBS="$saved_LIBS"
5592 LDFLAGS="$saved_LDFLAGS"
5593 CPPFLAGS="$saved_CPPFLAGS"
5594
5595 if test "$ac_cv_lib_mysqlclient_r_mysql_init" = yes; then
5596 MYSQL_LDFLAGS="$MYSQL_LDFLAGS -lmysqlclient_r"
5597 else
5598 if test "$ac_cv_lib_mysqlclient_mysql_init" = yes; then
5599 MYSQL_LDFLAGS="$MYSQL_LDFLAGS -lmysqlclient"
5600 fi
5601 fi
5602
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for my_bool in $ac_cv_mysql_where_inc/mysql.h" >&5
5604 $as_echo_n "checking for my_bool in $ac_cv_mysql_where_inc/mysql.h... " >&6; }
5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606 /* end confdefs.h. */
5607 #include <$ac_cv_mysql_where_inc/mysql.h>
5608
5609 _ACEOF
5610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5611 $EGREP "my_bool" >/dev/null 2>&1; then :
5612 MYSQL_MY_BOOL_AVAILABLE=yes
5613 fi
5614 rm -f conftest*
5615
5616
5617 if test "$MYSQL_BOOL_AVAILABLE" = yes; then
5618
5619 $as_echo "#define HAVE_MYSQL_MY_BOOL /**/" >>confdefs.h
5620
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5622 $as_echo "yes" >&6; }
5623 else
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5625 $as_echo "no" >&6; }
5626 fi
5627
5628 ARGUS_MYSQL_MAKEFILE=yes
5629 ARGUS_MYSQL="ramysql rahosts"
5630
5631
5632
5633
5634 $as_echo "#define ARGUS_MYSQL /**/" >>confdefs.h
5635
5636 else
5637 echo checking for mysql... no
5638 fi
5639 fi
5640
5641
5642 for ac_header in zlib.h
5643 do :
5644 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5645 if test "x$ac_cv_header_zlib_h" = xyes; then :
5646 cat >>confdefs.h <<_ACEOF
5647 #define HAVE_ZLIB_H 1
5648 _ACEOF
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
5650 $as_echo_n "checking for uncompress in -lz... " >&6; }
5651 if ${ac_cv_lib_z_uncompress+:} false; then :
5652 $as_echo_n "(cached) " >&6
5653 else
5654 ac_check_lib_save_LIBS=$LIBS
5655 LIBS="-lz $LIBS"
5656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657 /* end confdefs.h. */
5658
5659 /* Override any GCC internal prototype to avoid an error.
5660 Use char because int might match the return type of a GCC
5661 builtin and then its argument prototype would still apply. */
5662 #ifdef __cplusplus
5663 extern "C"
5664 #endif
5665 char uncompress ();
5666 int
5667 main ()
5668 {
5669 return uncompress ();
5670 ;
5671 return 0;
5672 }
5673 _ACEOF
5674 if ac_fn_c_try_link "$LINENO"; then :
5675 ac_cv_lib_z_uncompress=yes
5676 else
5677 ac_cv_lib_z_uncompress=no
5678 fi
5679 rm -f core conftest.err conftest.$ac_objext \
5680 conftest$ac_exeext conftest.$ac_ext
5681 LIBS=$ac_check_lib_save_LIBS
5682 fi
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
5684 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
5685 if test "x$ac_cv_lib_z_uncompress" = xyes; then :
5686 ZLIB="-lz"
5687 fi
5688
5689 fi
5690
5691 done
5692
5693 for ac_header in dns_sd.h
5694 do :
5695 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
5696 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
5697 cat >>confdefs.h <<_ACEOF
5698 #define HAVE_DNS_SD_H 1
5699 _ACEOF
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DNSServiceRegister in -ldns_sd" >&5
5701 $as_echo_n "checking for DNSServiceRegister in -ldns_sd... " >&6; }
5702 if ${ac_cv_lib_dns_sd_DNSServiceRegister+:} false; then :
5703 $as_echo_n "(cached) " >&6
5704 else
5705 ac_check_lib_save_LIBS=$LIBS
5706 LIBS="-ldns_sd $LIBS"
5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708 /* end confdefs.h. */
5709
5710 /* Override any GCC internal prototype to avoid an error.
5711 Use char because int might match the return type of a GCC
5712 builtin and then its argument prototype would still apply. */
5713 #ifdef __cplusplus
5714 extern "C"
5715 #endif
5716 char DNSServiceRegister ();
5717 int
5718 main ()
5719 {
5720 return DNSServiceRegister ();
5721 ;
5722 return 0;
5723 }
5724 _ACEOF
5725 if ac_fn_c_try_link "$LINENO"; then :
5726 ac_cv_lib_dns_sd_DNSServiceRegister=yes
5727 else
5728 ac_cv_lib_dns_sd_DNSServiceRegister=no
5729 fi
5730 rm -f core conftest.err conftest.$ac_objext \
5731 conftest$ac_exeext conftest.$ac_ext
5732 LIBS=$ac_check_lib_save_LIBS
5733 fi
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dns_sd_DNSServiceRegister" >&5
5735 $as_echo "$ac_cv_lib_dns_sd_DNSServiceRegister" >&6; }
5736 if test "x$ac_cv_lib_dns_sd_DNSServiceRegister" = xyes; then :
5737 DNSLIB="-ldns_sd"
5738 fi
5739
5740 fi
5741
5742 done
5743
5744
5745
5746 # Check whether --with-libft was given.
5747 if test "${with_libft+set}" = set; then :
5748 withval=$with_libft; with_libft="$withval"
5749 else
5750 with_libft="no"
5751 fi
5752
5753
5754 if test ${with_libft} != "no"; then
5755 if test "$ac_cv_header_zlib_h" = "yes"; then
5756 LBL_LIBS="$LIBS"
5757 libft=FAIL
5758 lastdir=FAIL
5759
5760 if test ${with_libft} != "yes"; then
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for specified library" >&5
5762 $as_echo_n "checking for specified library... " >&6; }
5763 for dir in ${with_libft}; do
5764 if test -r $dir/libft.a ; then
5765 if test -x $dir/ft-config ; then
5766 libft="$dir/libft.a `$dir/ft-config --additional-libs --static`"
5767 else
5768 libft=$dir/libft.a
5769 fi
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libft" >&5
5771 $as_echo "$libft" >&6; }
5772 V_FLOWTOOLS=$libft
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for specified ftlib.h" >&5
5774 $as_echo_n "checking for specified ftlib.h... " >&6; }
5775 if test -r $dir/ftlib.h; then
5776 d=$dir
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
5778 $as_echo "found" >&6; }
5779 V_INCLS="-I$d $V_INCLS"
5780 else
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: not found" >&5
5782 $as_echo "$as_me: WARNING: not found" >&2;}
5783 fi
5784 else
5785 if test -r $dir/lib/libft.a ; then
5786 if test -x $dir/lib/ft-config ; then
5787 libft="$dir/lib/libft.a `$dir/lib/ft-config --additional-libs --static`"
5788 else
5789 libft=$dir/lib/libft.a
5790 fi
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libft" >&5
5792 $as_echo "$libft" >&6; }
5793 V_FLOWTOOLS=$libft
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for specified ftlib.h" >&5
5795 $as_echo_n "checking for specified ftlib.h... " >&6; }
5796 if test -r $dir/include/ftlib.h; then
5797 d=$dir/include
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
5799 $as_echo "found" >&6; }
5800 V_INCLS="-I$d $V_INCLS"
5801 else
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: not found" >&5
5803 $as_echo "$as_me: WARNING: not found" >&2;}
5804 fi
5805 fi
5806 fi
5807 done
5808 else
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for local ft library" >&5
5810 $as_echo_n "checking for local ft library... " >&6; }
5811 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
5812 grep -E '/flow-tools-[0-9]*.[0-9]*.[0-9]*'`
5813
5814 for dir in $places/lib ; do
5815 if test -r $dir/libft.a ; then
5816 if test -r $dir/ftlib.h ; then
5817 d=`(cd $dir; pwd)`
5818 libft=$d/libft.a
5819 fi
5820 fi
5821 done
5822 if ! test "$libft" = FAIL; then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libft" >&5
5824 $as_echo "$libft" >&6; }
5825 V_FLOWTOOLS=$libft
5826 V_INCLS="-I$d $V_INCLS"
5827 # Extract the first word of "ft-config", so it can be a program name with args.
5828 set dummy ft-config; ac_word=$2
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5830 $as_echo_n "checking for $ac_word... " >&6; }
5831 if ${ac_cv_path_FT_CONFIG+:} false; then :
5832 $as_echo_n "(cached) " >&6
5833 else
5834 case $FT_CONFIG in
5835 [\\/]* | ?:[\\/]*)
5836 ac_cv_path_FT_CONFIG="$FT_CONFIG" # Let the user override the test with a path.
5837 ;;
5838 *)
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840 for as_dir in $d
5841 do
5842 IFS=$as_save_IFS
5843 test -z "$as_dir" && as_dir=.
5844 for ac_exec_ext in '' $ac_executable_extensions; do
5845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5846 ac_cv_path_FT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5848 break 2
5849 fi
5850 done
5851 done
5852 IFS=$as_save_IFS
5853
5854 ;;
5855 esac
5856 fi
5857 FT_CONFIG=$ac_cv_path_FT_CONFIG
5858 if test -n "$FT_CONFIG"; then
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FT_CONFIG" >&5
5860 $as_echo "$FT_CONFIG" >&6; }
5861 else
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5863 $as_echo "no" >&6; }
5864 fi
5865
5866
5867 if test -n "$FT_CONFIG"; then
5868 #
5869 # The libft directory has a ft-config script.
5870 # Use it to get any additioal libraries needed
5871 # to link with the libft archive library in
5872 # that directory
5873 #
5874 libft="$libft `$FT_CONFIG --additional-libs --static`"
5875 fi
5876 fi
5877 fi
5878
5879 if test "$libft" = FAIL ; then
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5881 $as_echo "not found" >&6; }
5882 #
5883 # Look for ft-config.
5884 #
5885 # Extract the first word of "ft-config", so it can be a program name with args.
5886 set dummy ft-config; ac_word=$2
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5888 $as_echo_n "checking for $ac_word... " >&6; }
5889 if ${ac_cv_path_FT_CONFIG+:} false; then :
5890 $as_echo_n "(cached) " >&6
5891 else
5892 case $FT_CONFIG in
5893 [\\/]* | ?:[\\/]*)
5894 ac_cv_path_FT_CONFIG="$FT_CONFIG" # Let the user override the test with a path.
5895 ;;
5896 *)
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 for as_dir in $PATH
5899 do
5900 IFS=$as_save_IFS
5901 test -z "$as_dir" && as_dir=.
5902 for ac_exec_ext in '' $ac_executable_extensions; do
5903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5904 ac_cv_path_FT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5906 break 2
5907 fi
5908 done
5909 done
5910 IFS=$as_save_IFS
5911
5912 ;;
5913 esac
5914 fi
5915 FT_CONFIG=$ac_cv_path_FT_CONFIG
5916 if test -n "$FT_CONFIG"; then
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FT_CONFIG" >&5
5918 $as_echo "$FT_CONFIG" >&6; }
5919 else
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5921 $as_echo "no" >&6; }
5922 fi
5923
5924
5925 if test -n "$FT_CONFIG" ; then
5926 #
5927 # Found - use it to get the include flags for
5928 # libft and the flags to link with libft.
5929 #
5930 libft="`$FT_CONFIG --libs`"
5931
5932 V_INCLS="`$FT_CONFIG --cflags` $V_INCLS"
5933 V_FLOWTOOLS="$libft"
5934 else
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lft" >&5
5936 $as_echo_n "checking for main in -lft... " >&6; }
5937 if ${ac_cv_lib_ft_main+:} false; then :
5938 $as_echo_n "(cached) " >&6
5939 else
5940 ac_check_lib_save_LIBS=$LIBS
5941 LIBS="-lft $LIBS"
5942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5943 /* end confdefs.h. */
5944
5945
5946 int
5947 main ()
5948 {
5949 return main ();
5950 ;
5951 return 0;
5952 }
5953 _ACEOF
5954 if ac_fn_c_try_link "$LINENO"; then :
5955 ac_cv_lib_ft_main=yes
5956 else
5957 ac_cv_lib_ft_main=no
5958 fi
5959 rm -f core conftest.err conftest.$ac_objext \
5960 conftest$ac_exeext conftest.$ac_ext
5961 LIBS=$ac_check_lib_save_LIBS
5962 fi
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ft_main" >&5
5964 $as_echo "$ac_cv_lib_ft_main" >&6; }
5965 if test "x$ac_cv_lib_ft_main" = xyes; then :
5966 libft="-lft"
5967 fi
5968
5969 if ! test $libft = FAIL ; then
5970 V_FLOWTOOLS="$libft"
5971 fi
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extraneous ft header directories" >&5
5973 $as_echo_n "checking for extraneous ft header directories... " >&6; }
5974 if test -r /usr/include/ftlib.h; then
5975 d="/usr/include"
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
5977 $as_echo "found" >&6; }
5978 else
5979 V_FLOWTOOLS=""
5980 for dir in /usr/include /usr/local/include /usr/netflow/lib /usr/local/netflow/lib ; do
5981 if test -r $dir/ftlib.h; then
5982 d=$dir
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
5984 $as_echo "found" >&6; }
5985 V_INCLS="-I$d $V_INCLS"
5986 V_FLOWTOOLS="$libft"
5987 fi
5988 done
5989 fi
5990 fi
5991 fi
5992 else
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flow-tools support" >&5
5994 $as_echo_n "checking flow-tools support... " >&6; }
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no requires zlib.h" >&5
5996 $as_echo "no requires zlib.h" >&6; }
5997 fi
5998 LIBS="$LBL_LIBS"
5999 fi
6000
6001
6002 if test ! -z "$V_FLOWTOOLS"; then
6003
6004 $as_echo "#define ARGUS_FLOWTOOLS /**/" >>confdefs.h
6005
6006 if test -f "$V_FLOWTOOLS"; then
6007 if test -f lib/libft.a; then
6008 rm -rf lib/libft.a
6009 fi
6010 ftdir=`echo $V_FLOWTOOLS | sed -e 's/\.\./..\/../'`
6011 V_FTDEP=$ftdir
6012 else
6013 if test "$V_FLOWTOOLS" = "-lft" ; then
6014 if test -f lib/libft.a; then
6015 rm -rf lib/libft.a
6016 fi
6017 fi
6018 fi
6019 fi
6020
6021
6022
6023 # Check whether --with-libpcre was given.
6024 if test "${with_libpcre+set}" = set; then :
6025 withval=$with_libpcre; with_libpcre="$withval"
6026 else
6027 with_libpcre="no"
6028 fi
6029
6030
6031 if test ${with_libpcre} != "no"; then
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre library" >&5
6033 $as_echo_n "checking for pcre library... " >&6; }
6034
6035 # Check whether --with-pcre-config was given.
6036 if test "${with_pcre_config+set}" = set; then :
6037 withval=$with_pcre_config; with_pcre_config="$withval"
6038 else
6039 with_pcre_config="yes"
6040 fi
6041
6042
6043 if test ${with_pcre_config} != "no"; then
6044 if test -f $with_pcre_config ; then
6045 PCRE_CONFIG=$with_pcre_config
6046 else
6047 for ac_prog in pcre-config
6048 do
6049 # Extract the first word of "$ac_prog", so it can be a program name with args.
6050 set dummy $ac_prog; ac_word=$2
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6052 $as_echo_n "checking for $ac_word... " >&6; }
6053 if ${ac_cv_prog_PCRE_CONFIG+:} false; then :
6054 $as_echo_n "(cached) " >&6
6055 else
6056 if test -n "$PCRE_CONFIG"; then
6057 ac_cv_prog_PCRE_CONFIG="$PCRE_CONFIG" # Let the user override the test.
6058 else
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 for as_dir in $PATH
6061 do
6062 IFS=$as_save_IFS
6063 test -z "$as_dir" && as_dir=.
6064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6066 ac_cv_prog_PCRE_CONFIG="$ac_prog"
6067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6068 break 2
6069 fi
6070 done
6071 done
6072 IFS=$as_save_IFS
6073
6074 fi
6075 fi
6076 PCRE_CONFIG=$ac_cv_prog_PCRE_CONFIG
6077 if test -n "$PCRE_CONFIG"; then
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRE_CONFIG" >&5
6079 $as_echo "$PCRE_CONFIG" >&6; }
6080 else
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082 $as_echo "no" >&6; }
6083 fi
6084
6085
6086 test -n "$PCRE_CONFIG" && break
6087 done
6088
6089 fi
6090 fi
6091
6092 if test "x$PCRE_CONFIG" != "x"; then
6093 PCRE_CFLAGS=`$PCRE_CONFIG --cflags`
6094 PCRE_LIBS=`$PCRE_CONFIG --libs-posix`
6095 fi
6096
6097 if test "x$PCRE_LIBS" != "x" ; then
6098
6099 $as_echo "#define ARGUS_PCRE /**/" >>confdefs.h
6100
6101 V_PCRE=$PCRE_LIBS;
6102 V_INCLS="$PCRE_CFLAGS $V_INCLS"
6103 else
6104 for ac_header in regex.h
6105 do :
6106 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
6107 if test "x$ac_cv_header_regex_h" = xyes; then :
6108 cat >>confdefs.h <<_ACEOF
6109 #define HAVE_REGEX_H 1
6110 _ACEOF
6111
6112 else
6113 as_fn_error $? "neither pcre nor regex found" "$LINENO" 5
6114 fi
6115
6116 done
6117
6118 fi
6119 else
6120 for ac_header in regex.h
6121 do :
6122 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
6123 if test "x$ac_cv_header_regex_h" = xyes; then :
6124 cat >>confdefs.h <<_ACEOF
6125 #define HAVE_REGEX_H 1
6126 _ACEOF
6127
6128 else
6129 as_fn_error $? "regex not found" "$LINENO" 5
6130 fi
6131
6132 done
6133
6134 fi
6135
6136 if test ! -z "$V_PCRE"; then
6137 if test -f "$V_PCRE"; then
6138 if test -f lib/libpcre.a; then
6139 rm -rf lib/libpcre.a
6140 fi
6141 pcredir=`echo $V_PCRE | sed -e 's/\.\./..\/../'`
6142 fi
6143 LIBS="$LIBS $V_PCRE"
6144 fi
6145
6146 # Checks for header files.
6147 ac_header_dirent=no
6148 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6149 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6151 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6152 if eval \${$as_ac_Header+:} false; then :
6153 $as_echo_n "(cached) " >&6
6154 else
6155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6156 /* end confdefs.h. */
6157 #include <sys/types.h>
6158 #include <$ac_hdr>
6159
6160 int
6161 main ()
6162 {
6163 if ((DIR *) 0)
6164 return 0;
6165 ;
6166 return 0;
6167 }
6168 _ACEOF
6169 if ac_fn_c_try_compile "$LINENO"; then :
6170 eval "$as_ac_Header=yes"
6171 else
6172 eval "$as_ac_Header=no"
6173 fi
6174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6175 fi
6176 eval ac_res=\$$as_ac_Header
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6178 $as_echo "$ac_res" >&6; }
6179 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6180 cat >>confdefs.h <<_ACEOF
6181 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6182 _ACEOF
6183
6184 ac_header_dirent=$ac_hdr; break
6185 fi
6186
6187 done
6188 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6189 if test $ac_header_dirent = dirent.h; then
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6191 $as_echo_n "checking for library containing opendir... " >&6; }
6192 if ${ac_cv_search_opendir+:} false; then :
6193 $as_echo_n "(cached) " >&6
6194 else
6195 ac_func_search_save_LIBS=$LIBS
6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h. */
6198
6199 /* Override any GCC internal prototype to avoid an error.
6200 Use char because int might match the return type of a GCC
6201 builtin and then its argument prototype would still apply. */
6202 #ifdef __cplusplus
6203 extern "C"
6204 #endif
6205 char opendir ();
6206 int
6207 main ()
6208 {
6209 return opendir ();
6210 ;
6211 return 0;
6212 }
6213 _ACEOF
6214 for ac_lib in '' dir; do
6215 if test -z "$ac_lib"; then
6216 ac_res="none required"
6217 else
6218 ac_res=-l$ac_lib
6219 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6220 fi
6221 if ac_fn_c_try_link "$LINENO"; then :
6222 ac_cv_search_opendir=$ac_res
6223 fi
6224 rm -f core conftest.err conftest.$ac_objext \
6225 conftest$ac_exeext
6226 if ${ac_cv_search_opendir+:} false; then :
6227 break
6228 fi
6229 done
6230 if ${ac_cv_search_opendir+:} false; then :
6231
6232 else
6233 ac_cv_search_opendir=no
6234 fi
6235 rm conftest.$ac_ext
6236 LIBS=$ac_func_search_save_LIBS
6237 fi
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6239 $as_echo "$ac_cv_search_opendir" >&6; }
6240 ac_res=$ac_cv_search_opendir
6241 if test "$ac_res" != no; then :
6242 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6243
6244 fi
6245
6246 else
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6248 $as_echo_n "checking for library containing opendir... " >&6; }
6249 if ${ac_cv_search_opendir+:} false; then :
6250 $as_echo_n "(cached) " >&6
6251 else
6252 ac_func_search_save_LIBS=$LIBS
6253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6254 /* end confdefs.h. */
6255
6256 /* Override any GCC internal prototype to avoid an error.
6257 Use char because int might match the return type of a GCC
6258 builtin and then its argument prototype would still apply. */
6259 #ifdef __cplusplus
6260 extern "C"
6261 #endif
6262 char opendir ();
6263 int
6264 main ()
6265 {
6266 return opendir ();
6267 ;
6268 return 0;
6269 }
6270 _ACEOF
6271 for ac_lib in '' x; do
6272 if test -z "$ac_lib"; then
6273 ac_res="none required"
6274 else
6275 ac_res=-l$ac_lib
6276 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6277 fi
6278 if ac_fn_c_try_link "$LINENO"; then :
6279 ac_cv_search_opendir=$ac_res
6280 fi
6281 rm -f core conftest.err conftest.$ac_objext \
6282 conftest$ac_exeext
6283 if ${ac_cv_search_opendir+:} false; then :
6284 break
6285 fi
6286 done
6287 if ${ac_cv_search_opendir+:} false; then :
6288
6289 else
6290 ac_cv_search_opendir=no
6291 fi
6292 rm conftest.$ac_ext
6293 LIBS=$ac_func_search_save_LIBS
6294 fi
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6296 $as_echo "$ac_cv_search_opendir" >&6; }
6297 ac_res=$ac_cv_search_opendir
6298 if test "$ac_res" != no; then :
6299 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6300
6301 fi
6302
6303 fi
6304
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6306 $as_echo_n "checking for egrep... " >&6; }
6307 if ${ac_cv_path_EGREP+:} false; then :
6308 $as_echo_n "(cached) " >&6
6309 else
6310 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6311 then ac_cv_path_EGREP="$GREP -E"
6312 else
6313 if test -z "$EGREP"; then
6314 ac_path_EGREP_found=false
6315 # Loop through the user's path and test for each of PROGNAME-LIST
6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6318 do
6319 IFS=$as_save_IFS
6320 test -z "$as_dir" && as_dir=.
6321 for ac_prog in egrep; do
6322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6324 as_fn_executable_p "$ac_path_EGREP" || continue
6325 # Check for GNU ac_path_EGREP and select it if it is found.
6326 # Check for GNU $ac_path_EGREP
6327 case `"$ac_path_EGREP" --version 2>&1` in
6328 *GNU*)
6329 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6330 *)
6331 ac_count=0
6332 $as_echo_n 0123456789 >"conftest.in"
6333 while :
6334 do
6335 cat "conftest.in" "conftest.in" >"conftest.tmp"
6336 mv "conftest.tmp" "conftest.in"
6337 cp "conftest.in" "conftest.nl"
6338 $as_echo 'EGREP' >> "conftest.nl"
6339 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6340 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6341 as_fn_arith $ac_count + 1 && ac_count=$as_val
6342 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6343 # Best one so far, save it but keep looking for a better one
6344 ac_cv_path_EGREP="$ac_path_EGREP"
6345 ac_path_EGREP_max=$ac_count
6346 fi
6347 # 10*(2^10) chars as input seems more than enough
6348 test $ac_count -gt 10 && break
6349 done
6350 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6351 esac
6352
6353 $ac_path_EGREP_found && break 3
6354 done
6355 done
6356 done
6357 IFS=$as_save_IFS
6358 if test -z "$ac_cv_path_EGREP"; then
6359 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6360 fi
6361 else
6362 ac_cv_path_EGREP=$EGREP
6363 fi
6364
6365 fi
6366 fi
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6368 $as_echo "$ac_cv_path_EGREP" >&6; }
6369 EGREP="$ac_cv_path_EGREP"
6370
6371
6372
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6374 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6375 if ${ac_cv_header_sys_wait_h+:} false; then :
6376 $as_echo_n "(cached) " >&6
6377 else
6378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379 /* end confdefs.h. */
6380 #include <sys/types.h>
6381 #include <sys/wait.h>
6382 #ifndef WEXITSTATUS
6383 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6384 #endif
6385 #ifndef WIFEXITED
6386 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6387 #endif
6388
6389 int
6390 main ()
6391 {
6392 int s;
6393 wait (&s);
6394 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6395 ;
6396 return 0;
6397 }
6398 _ACEOF
6399 if ac_fn_c_try_compile "$LINENO"; then :
6400 ac_cv_header_sys_wait_h=yes
6401 else
6402 ac_cv_header_sys_wait_h=no
6403 fi
6404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6405 fi
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6407 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6408 if test $ac_cv_header_sys_wait_h = yes; then
6409
6410 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6411
6412 fi
6413
6414
6415 for ac_header in sys/types.h sys/sockio.h sys/file.h string.h fcntl.h syslog.h stdbool.h
6416 do :
6417 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6418 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6419 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6420 cat >>confdefs.h <<_ACEOF
6421 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6422 _ACEOF
6423
6424 fi
6425
6426 done
6427
6428 for ac_header in arpa/inet.h fcntl.h inttypes.h limits.h libintl.h malloc.h memory.h netdb.h netinet/in.h net/if_dl.h
6429 do :
6430 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6431 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6432 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6433 cat >>confdefs.h <<_ACEOF
6434 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6435 _ACEOF
6436
6437 fi
6438
6439 done
6440
6441 for ac_header in stdlib.h stddef.h string.h strings.h sys/file.h sys/ioctl.h sys/param.h sys/socket.h
6442 do :
6443 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6444 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6445 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6446 cat >>confdefs.h <<_ACEOF
6447 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6448 _ACEOF
6449
6450 fi
6451
6452 done
6453
6454
6455 for ac_header in sys/mount.h sys/time.h sys/vfs.h syslog.h termios.h unistd.h values.h ifaddrs.h dns_sd.h
6456 do :
6457 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6458 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6459 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6460 cat >>confdefs.h <<_ACEOF
6461 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6462 _ACEOF
6463
6464 fi
6465
6466 done
6467
6468 for ac_header in uuid/uuid.h linux/uuid.h uuid.h
6469 do :
6470 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6471 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6472 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6473 cat >>confdefs.h <<_ACEOF
6474 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6475 _ACEOF
6476
6477 fi
6478
6479 done
6480
6481 for ac_header in sys/systm.h
6482 do :
6483 ac_fn_c_check_header_mongrel "$LINENO" "sys/systm.h" "ac_cv_header_sys_systm_h" "$ac_includes_default"
6484 if test "x$ac_cv_header_sys_systm_h" = xyes; then :
6485 cat >>confdefs.h <<_ACEOF
6486 #define HAVE_SYS_SYSTM_H 1
6487 _ACEOF
6488
6489 fi
6490
6491 done
6492
6493 for ac_header in arpa/nameser.h
6494 do :
6495 ac_fn_c_check_header_mongrel "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "$ac_includes_default"
6496 if test "x$ac_cv_header_arpa_nameser_h" = xyes; then :
6497 cat >>confdefs.h <<_ACEOF
6498 #define HAVE_ARPA_NAMESER_H 1
6499 _ACEOF
6500
6501 fi
6502
6503 done
6504
6505 for ac_header in arpa/nameser_compat.h
6506 do :
6507 ac_fn_c_check_header_mongrel "$LINENO" "arpa/nameser_compat.h" "ac_cv_header_arpa_nameser_compat_h" "$ac_includes_default"
6508 if test "x$ac_cv_header_arpa_nameser_compat_h" = xyes; then :
6509 cat >>confdefs.h <<_ACEOF
6510 #define HAVE_ARPA_NAMESER_COMPAT_H 1
6511 _ACEOF
6512
6513 fi
6514
6515 done
6516
6517 for ac_header in stdbool.h
6518 do :
6519 ac_fn_c_check_header_mongrel "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
6520 if test "x$ac_cv_header_stdbool_h" = xyes; then :
6521 cat >>confdefs.h <<_ACEOF
6522 #define HAVE_STDBOOL_H 1
6523 _ACEOF
6524
6525 fi
6526
6527 done
6528
6529
6530 saved_CPPFLAGS=$CPPFLAGS
6531
6532 # Checks for typedefs, structures, and compiler characteristics.
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6534 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6535 if ${ac_cv_c_const+:} false; then :
6536 $as_echo_n "(cached) " >&6
6537 else
6538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6539 /* end confdefs.h. */
6540
6541 int
6542 main ()
6543 {
6544
6545 #ifndef __cplusplus
6546 /* Ultrix mips cc rejects this sort of thing. */
6547 typedef int charset[2];
6548 const charset cs = { 0, 0 };
6549 /* SunOS 4.1.1 cc rejects this. */
6550 char const *const *pcpcc;
6551 char **ppc;
6552 /* NEC SVR4.0.2 mips cc rejects this. */
6553 struct point {int x, y;};
6554 static struct point const zero = {0,0};
6555 /* AIX XL C 1.02.0.0 rejects this.
6556 It does not let you subtract one const X* pointer from another in
6557 an arm of an if-expression whose if-part is not a constant
6558 expression */
6559 const char *g = "string";
6560 pcpcc = &g + (g ? g-g : 0);
6561 /* HPUX 7.0 cc rejects these. */
6562 ++pcpcc;
6563 ppc = (char**) pcpcc;
6564 pcpcc = (char const *const *) ppc;
6565 { /* SCO 3.2v4 cc rejects this sort of thing. */
6566 char tx;
6567 char *t = &tx;
6568 char const *s = 0 ? (char *) 0 : (char const *) 0;
6569
6570 *t++ = 0;
6571 if (s) return 0;
6572 }
6573 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6574 int x[] = {25, 17};
6575 const int *foo = &x[0];
6576 ++foo;
6577 }
6578 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6579 typedef const int *iptr;
6580 iptr p = 0;
6581 ++p;
6582 }
6583 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6584 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6585 struct s { int j; const int *ap[3]; } bx;
6586 struct s *b = &bx; b->j = 5;
6587 }
6588 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6589 const int foo = 10;
6590 if (!foo) return 0;
6591 }
6592 return !cs[0] && !zero.x;
6593 #endif
6594
6595 ;
6596 return 0;
6597 }
6598 _ACEOF
6599 if ac_fn_c_try_compile "$LINENO"; then :
6600 ac_cv_c_const=yes
6601 else
6602 ac_cv_c_const=no
6603 fi
6604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6605 fi
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6607 $as_echo "$ac_cv_c_const" >&6; }
6608 if test $ac_cv_c_const = no; then
6609
6610 $as_echo "#define const /**/" >>confdefs.h
6611
6612 fi
6613
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6615 $as_echo_n "checking for inline... " >&6; }
6616 if ${ac_cv_c_inline+:} false; then :
6617 $as_echo_n "(cached) " >&6
6618 else
6619 ac_cv_c_inline=no
6620 for ac_kw in inline __inline__ __inline; do
6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622 /* end confdefs.h. */
6623 #ifndef __cplusplus
6624 typedef int foo_t;
6625 static $ac_kw foo_t static_foo () {return 0; }
6626 $ac_kw foo_t foo () {return 0; }
6627 #endif
6628
6629 _ACEOF
6630 if ac_fn_c_try_compile "$LINENO"; then :
6631 ac_cv_c_inline=$ac_kw
6632 fi
6633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6634 test "$ac_cv_c_inline" != no && break
6635 done
6636
6637 fi
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6639 $as_echo "$ac_cv_c_inline" >&6; }
6640
6641 case $ac_cv_c_inline in
6642 inline | yes) ;;
6643 *)
6644 case $ac_cv_c_inline in
6645 no) ac_val=;;
6646 *) ac_val=$ac_cv_c_inline;;
6647 esac
6648 cat >>confdefs.h <<_ACEOF
6649 #ifndef __cplusplus
6650 #define inline $ac_val
6651 #endif
6652 _ACEOF
6653 ;;
6654 esac
6655
6656
6657 # Check whether --enable-largefile was given.
6658 if test "${enable_largefile+set}" = set; then :
6659 enableval=$enable_largefile;
6660 fi
6661
6662 if test "$enable_largefile" != no; then
6663
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6665 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6666 if ${ac_cv_sys_largefile_CC+:} false; then :
6667 $as_echo_n "(cached) " >&6
6668 else
6669 ac_cv_sys_largefile_CC=no
6670 if test "$GCC" != yes; then
6671 ac_save_CC=$CC
6672 while :; do
6673 # IRIX 6.2 and later do not support large files by default,
6674 # so use the C compiler's -n32 option if that helps.
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676 /* end confdefs.h. */
6677 #include <sys/types.h>
6678 /* Check that off_t can represent 2**63 - 1 correctly.
6679 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6680 since some C++ compilers masquerading as C compilers
6681 incorrectly reject 9223372036854775807. */
6682 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6683 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6684 && LARGE_OFF_T % 2147483647 == 1)
6685 ? 1 : -1];
6686 int
6687 main ()
6688 {
6689
6690 ;
6691 return 0;
6692 }
6693 _ACEOF
6694 if ac_fn_c_try_compile "$LINENO"; then :
6695 break
6696 fi
6697 rm -f core conftest.err conftest.$ac_objext
6698 CC="$CC -n32"
6699 if ac_fn_c_try_compile "$LINENO"; then :
6700 ac_cv_sys_largefile_CC=' -n32'; break
6701 fi
6702 rm -f core conftest.err conftest.$ac_objext
6703 break
6704 done
6705 CC=$ac_save_CC
6706 rm -f conftest.$ac_ext
6707 fi
6708 fi
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6710 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6711 if test "$ac_cv_sys_largefile_CC" != no; then
6712 CC=$CC$ac_cv_sys_largefile_CC
6713 fi
6714
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6716 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6717 if ${ac_cv_sys_file_offset_bits+:} false; then :
6718 $as_echo_n "(cached) " >&6
6719 else
6720 while :; do
6721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722 /* end confdefs.h. */
6723 #include <sys/types.h>
6724 /* Check that off_t can represent 2**63 - 1 correctly.
6725 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6726 since some C++ compilers masquerading as C compilers
6727 incorrectly reject 9223372036854775807. */
6728 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6729 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6730 && LARGE_OFF_T % 2147483647 == 1)
6731 ? 1 : -1];
6732 int
6733 main ()
6734 {
6735
6736 ;
6737 return 0;
6738 }
6739 _ACEOF
6740 if ac_fn_c_try_compile "$LINENO"; then :
6741 ac_cv_sys_file_offset_bits=no; break
6742 fi
6743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745 /* end confdefs.h. */
6746 #define _FILE_OFFSET_BITS 64
6747 #include <sys/types.h>
6748 /* Check that off_t can represent 2**63 - 1 correctly.
6749 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6750 since some C++ compilers masquerading as C compilers
6751 incorrectly reject 9223372036854775807. */
6752 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6753 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6754 && LARGE_OFF_T % 2147483647 == 1)
6755 ? 1 : -1];
6756 int
6757 main ()
6758 {
6759
6760 ;
6761 return 0;
6762 }
6763 _ACEOF
6764 if ac_fn_c_try_compile "$LINENO"; then :
6765 ac_cv_sys_file_offset_bits=64; break
6766 fi
6767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768 ac_cv_sys_file_offset_bits=unknown
6769 break
6770 done
6771 fi
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6773 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6774 case $ac_cv_sys_file_offset_bits in #(
6775 no | unknown) ;;
6776 *)
6777 cat >>confdefs.h <<_ACEOF
6778 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6779 _ACEOF
6780 ;;
6781 esac
6782 rm -rf conftest*
6783 if test $ac_cv_sys_file_offset_bits = unknown; then
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6785 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6786 if ${ac_cv_sys_large_files+:} false; then :
6787 $as_echo_n "(cached) " >&6
6788 else
6789 while :; do
6790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6791 /* end confdefs.h. */
6792 #include <sys/types.h>
6793 /* Check that off_t can represent 2**63 - 1 correctly.
6794 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6795 since some C++ compilers masquerading as C compilers
6796 incorrectly reject 9223372036854775807. */
6797 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6798 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6799 && LARGE_OFF_T % 2147483647 == 1)
6800 ? 1 : -1];
6801 int
6802 main ()
6803 {
6804
6805 ;
6806 return 0;
6807 }
6808 _ACEOF
6809 if ac_fn_c_try_compile "$LINENO"; then :
6810 ac_cv_sys_large_files=no; break
6811 fi
6812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6814 /* end confdefs.h. */
6815 #define _LARGE_FILES 1
6816 #include <sys/types.h>
6817 /* Check that off_t can represent 2**63 - 1 correctly.
6818 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6819 since some C++ compilers masquerading as C compilers
6820 incorrectly reject 9223372036854775807. */
6821 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6822 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6823 && LARGE_OFF_T % 2147483647 == 1)
6824 ? 1 : -1];
6825 int
6826 main ()
6827 {
6828
6829 ;
6830 return 0;
6831 }
6832 _ACEOF
6833 if ac_fn_c_try_compile "$LINENO"; then :
6834 ac_cv_sys_large_files=1; break
6835 fi
6836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6837 ac_cv_sys_large_files=unknown
6838 break
6839 done
6840 fi
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6842 $as_echo "$ac_cv_sys_large_files" >&6; }
6843 case $ac_cv_sys_large_files in #(
6844 no | unknown) ;;
6845 *)
6846 cat >>confdefs.h <<_ACEOF
6847 #define _LARGE_FILES $ac_cv_sys_large_files
6848 _ACEOF
6849 ;;
6850 esac
6851 rm -rf conftest*
6852 fi
6853
6854
6855 fi
6856
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if unaligned accesses fail" >&5
6858 $as_echo_n "checking if unaligned accesses fail... " >&6; }
6859 if ${ac_cv_lbl_unaligned_fail+:} false; then :
6860 $as_echo_n "(cached) " >&6
6861 else
6862 case "$target_cpu" in
6863
6864 # XXX: should also check that they don't do weird things (like on arm)
6865 alpha*|arm*|hp*|mips|sparc)
6866 ac_cv_lbl_unaligned_fail=yes
6867 ;;
6868
6869 *)
6870 cat >conftest.c <<EOF
6871 # include <sys/types.h>
6872 # include <sys/wait.h>
6873 # include <stdio.h>
6874 unsigned char a[5] = { 1, 2, 3, 4, 5 };
6875 main() {
6876 unsigned int i;
6877 pid_t pid;
6878 int status;
6879 /* avoid "core dumped" message */
6880 pid = fork();
6881 if (pid < 0)
6882 exit(2);
6883 if (pid > 0) {
6884 /* parent */
6885 pid = waitpid(pid, &status, 0);
6886 if (pid < 0)
6887 exit(3);
6888 exit(!WIFEXITED(status));
6889 }
6890 /* child */
6891 i = *(unsigned int *)&a[1];
6892 printf("%d\n", i);
6893 exit(0);
6894 }
6895 EOF
6896 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
6897 conftest.c $LIBS >/dev/null 2>&1
6898 if test ! -x conftest ; then
6899 ac_cv_lbl_unaligned_fail=yes
6900 else
6901 ./conftest >conftest.out
6902 if test ! -s conftest.out ; then
6903 ac_cv_lbl_unaligned_fail=yes
6904 else
6905 ac_cv_lbl_unaligned_fail=no
6906 fi
6907 fi
6908 rm -rf conftest* core core.conftest
6909 ;;
6910 esac
6911 fi
6912
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_unaligned_fail" >&5
6914 $as_echo "$ac_cv_lbl_unaligned_fail" >&6; }
6915 if test $ac_cv_lbl_unaligned_fail = yes ; then
6916
6917 $as_echo "#define LBL_ALIGN /**/" >>confdefs.h
6918
6919 fi
6920
6921 rm -f os-proto.h
6922 if test "${LBL_CFLAGS+set}" = set; then
6923 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
6924 fi
6925 if test -f .devel ; then
6926 V_CCOPT=`echo $V_CCOPT | sed -e 's/-O3//'`
6927 V_CCOPT=`echo $V_CCOPT | sed -e 's/-O//'`
6928 if test "$GCC" = yes ; then
6929 if test "${LBL_CFLAGS+set}" != set; then
6930 if test "$ac_cv_prog_cc_g" = yes ; then
6931 V_CCOPT="-g $V_CCOPT"
6932 fi
6933
6934 case "$target_os" in
6935 darwin*)
6936 V_CCOPT="$V_CCOPT -Wall -Wmissing-prototypes"
6937 ;;
6938 *)
6939 V_CCOPT="$V_CCOPT -Wall -Wmissing-prototypes -Wno-format-overflow"
6940 ;;
6941 esac
6942 fi
6943 else
6944 V_CCOPT=`echo $V_CCOPT | sed -e 's/-O//'`
6945 case "$target_os" in
6946 solaris*)
6947 V_CCOPT="$V_CCOPT -g"
6948 ;;
6949
6950 irix6*)
6951 V_CCOPT="$V_CCOPT -n32"
6952 ;;
6953
6954 *)
6955 ;;
6956 esac
6957 fi
6958 fi
6959
6960 if test -f .debug ; then
6961
6962 $as_echo "#define ARGUSDEBUG /**/" >>confdefs.h
6963
6964 fi
6965
6966 if test -f .memory ; then
6967
6968 $as_echo "#define ARGUSMEMDEBUG /**/" >>confdefs.h
6969
6970 fi
6971
6972 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6973 case $ac_cv_c_int8_t in #(
6974 no|yes) ;; #(
6975 *)
6976
6977 cat >>confdefs.h <<_ACEOF
6978 #define int8_t $ac_cv_c_int8_t
6979 _ACEOF
6980 ;;
6981 esac
6982
6983 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6984 case $ac_cv_c_uint8_t in #(
6985 no|yes) ;; #(
6986 *)
6987
6988 $as_echo "#define _UINT8_T 1" >>confdefs.h
6989
6990
6991 cat >>confdefs.h <<_ACEOF
6992 #define uint8_t $ac_cv_c_uint8_t
6993 _ACEOF
6994 ;;
6995 esac
6996
6997 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6998 case $ac_cv_c_int16_t in #(
6999 no|yes) ;; #(
7000 *)
7001
7002 cat >>confdefs.h <<_ACEOF
7003 #define int16_t $ac_cv_c_int16_t
7004 _ACEOF
7005 ;;
7006 esac
7007
7008 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
7009 case $ac_cv_c_uint16_t in #(
7010 no|yes) ;; #(
7011 *)
7012
7013
7014 cat >>confdefs.h <<_ACEOF
7015 #define uint16_t $ac_cv_c_uint16_t
7016 _ACEOF
7017 ;;
7018 esac
7019
7020 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
7021 case $ac_cv_c_int32_t in #(
7022 no|yes) ;; #(
7023 *)
7024
7025 cat >>confdefs.h <<_ACEOF
7026 #define int32_t $ac_cv_c_int32_t
7027 _ACEOF
7028 ;;
7029 esac
7030
7031 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
7032 case $ac_cv_c_uint32_t in #(
7033 no|yes) ;; #(
7034 *)
7035
7036 $as_echo "#define _UINT32_T 1" >>confdefs.h
7037
7038
7039 cat >>confdefs.h <<_ACEOF
7040 #define uint32_t $ac_cv_c_uint32_t
7041 _ACEOF
7042 ;;
7043 esac
7044
7045 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
7046 case $ac_cv_c_uint64_t in #(
7047 no|yes) ;; #(
7048 *)
7049
7050 $as_echo "#define _UINT64_T 1" >>confdefs.h
7051
7052
7053 cat >>confdefs.h <<_ACEOF
7054 #define uint64_t $ac_cv_c_uint64_t
7055 _ACEOF
7056 ;;
7057 esac
7058
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7060 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7061 if ${ac_cv_type_uid_t+:} false; then :
7062 $as_echo_n "(cached) " >&6
7063 else
7064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7065 /* end confdefs.h. */
7066 #include <sys/types.h>
7067
7068 _ACEOF
7069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7070 $EGREP "uid_t" >/dev/null 2>&1; then :
7071 ac_cv_type_uid_t=yes
7072 else
7073 ac_cv_type_uid_t=no
7074 fi
7075 rm -f conftest*
7076
7077 fi
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7079 $as_echo "$ac_cv_type_uid_t" >&6; }
7080 if test $ac_cv_type_uid_t = no; then
7081
7082 $as_echo "#define uid_t int" >>confdefs.h
7083
7084
7085 $as_echo "#define gid_t int" >>confdefs.h
7086
7087 fi
7088
7089 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7090 if test "x$ac_cv_type_pid_t" = xyes; then :
7091
7092 else
7093
7094 cat >>confdefs.h <<_ACEOF
7095 #define pid_t int
7096 _ACEOF
7097
7098 fi
7099
7100 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7101 if test "x$ac_cv_type_size_t" = xyes; then :
7102
7103 else
7104
7105 cat >>confdefs.h <<_ACEOF
7106 #define size_t unsigned int
7107 _ACEOF
7108
7109 fi
7110
7111
7112
7113
7114
7115 for ac_header in $ac_header_list
7116 do :
7117 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7118 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7119 "
7120 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7121 cat >>confdefs.h <<_ACEOF
7122 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7123 _ACEOF
7124
7125 fi
7126
7127 done
7128
7129
7130
7131
7132
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7134 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7135 if ${ac_cv_struct_tm+:} false; then :
7136 $as_echo_n "(cached) " >&6
7137 else
7138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7139 /* end confdefs.h. */
7140 #include <sys/types.h>
7141 #include <time.h>
7142
7143 int
7144 main ()
7145 {
7146 struct tm tm;
7147 int *p = &tm.tm_sec;
7148 return !p;
7149 ;
7150 return 0;
7151 }
7152 _ACEOF
7153 if ac_fn_c_try_compile "$LINENO"; then :
7154 ac_cv_struct_tm=time.h
7155 else
7156 ac_cv_struct_tm=sys/time.h
7157 fi
7158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7159 fi
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7161 $as_echo "$ac_cv_struct_tm" >&6; }
7162 if test $ac_cv_struct_tm = sys/time.h; then
7163
7164 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7165
7166 fi
7167
7168 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7169 #include <$ac_cv_struct_tm>
7170
7171 "
7172 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7173
7174 cat >>confdefs.h <<_ACEOF
7175 #define HAVE_STRUCT_TM_TM_ZONE 1
7176 _ACEOF
7177
7178
7179 fi
7180
7181 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7182
7183 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7184
7185 else
7186 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7187 "
7188 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7189 ac_have_decl=1
7190 else
7191 ac_have_decl=0
7192 fi
7193
7194 cat >>confdefs.h <<_ACEOF
7195 #define HAVE_DECL_TZNAME $ac_have_decl
7196 _ACEOF
7197
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7199 $as_echo_n "checking for tzname... " >&6; }
7200 if ${ac_cv_var_tzname+:} false; then :
7201 $as_echo_n "(cached) " >&6
7202 else
7203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7204 /* end confdefs.h. */
7205 #include <time.h>
7206 #if !HAVE_DECL_TZNAME
7207 extern char *tzname[];
7208 #endif
7209
7210 int
7211 main ()
7212 {
7213 return tzname[0][0];
7214 ;
7215 return 0;
7216 }
7217 _ACEOF
7218 if ac_fn_c_try_link "$LINENO"; then :
7219 ac_cv_var_tzname=yes
7220 else
7221 ac_cv_var_tzname=no
7222 fi
7223 rm -f core conftest.err conftest.$ac_objext \
7224 conftest$ac_exeext conftest.$ac_ext
7225 fi
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7227 $as_echo "$ac_cv_var_tzname" >&6; }
7228 if test $ac_cv_var_tzname = yes; then
7229
7230 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7231
7232 fi
7233 fi
7234
7235
7236 # Checks for library functions.
7237 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7238 # for constant arguments. Useless!
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7240 $as_echo_n "checking for working alloca.h... " >&6; }
7241 if ${ac_cv_working_alloca_h+:} false; then :
7242 $as_echo_n "(cached) " >&6
7243 else
7244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7245 /* end confdefs.h. */
7246 #include <alloca.h>
7247 int
7248 main ()
7249 {
7250 char *p = (char *) alloca (2 * sizeof (int));
7251 if (p) return 0;
7252 ;
7253 return 0;
7254 }
7255 _ACEOF
7256 if ac_fn_c_try_link "$LINENO"; then :
7257 ac_cv_working_alloca_h=yes
7258 else
7259 ac_cv_working_alloca_h=no
7260 fi
7261 rm -f core conftest.err conftest.$ac_objext \
7262 conftest$ac_exeext conftest.$ac_ext
7263 fi
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7265 $as_echo "$ac_cv_working_alloca_h" >&6; }
7266 if test $ac_cv_working_alloca_h = yes; then
7267
7268 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7269
7270 fi
7271
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7273 $as_echo_n "checking for alloca... " >&6; }
7274 if ${ac_cv_func_alloca_works+:} false; then :
7275 $as_echo_n "(cached) " >&6
7276 else
7277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278 /* end confdefs.h. */
7279 #ifdef __GNUC__
7280 # define alloca __builtin_alloca
7281 #else
7282 # ifdef _MSC_VER
7283 # include <malloc.h>
7284 # define alloca _alloca
7285 # else
7286 # ifdef HAVE_ALLOCA_H
7287 # include <alloca.h>
7288 # else
7289 # ifdef _AIX
7290 #pragma alloca
7291 # else
7292 # ifndef alloca /* predefined by HP cc +Olibcalls */
7293 void *alloca (size_t);
7294 # endif
7295 # endif
7296 # endif
7297 # endif
7298 #endif
7299
7300 int
7301 main ()
7302 {
7303 char *p = (char *) alloca (1);
7304 if (p) return 0;
7305 ;
7306 return 0;
7307 }
7308 _ACEOF
7309 if ac_fn_c_try_link "$LINENO"; then :
7310 ac_cv_func_alloca_works=yes
7311 else
7312 ac_cv_func_alloca_works=no
7313 fi
7314 rm -f core conftest.err conftest.$ac_objext \
7315 conftest$ac_exeext conftest.$ac_ext
7316 fi
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7318 $as_echo "$ac_cv_func_alloca_works" >&6; }
7319
7320 if test $ac_cv_func_alloca_works = yes; then
7321
7322 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7323
7324 else
7325 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7326 # that cause trouble. Some versions do not even contain alloca or
7327 # contain a buggy version. If you still want to use their alloca,
7328 # use ar to extract alloca.o from them instead of compiling alloca.c.
7329
7330 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7331
7332 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7333
7334
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7336 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7337 if ${ac_cv_os_cray+:} false; then :
7338 $as_echo_n "(cached) " >&6
7339 else
7340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341 /* end confdefs.h. */
7342 #if defined CRAY && ! defined CRAY2
7343 webecray
7344 #else
7345 wenotbecray
7346 #endif
7347
7348 _ACEOF
7349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7350 $EGREP "webecray" >/dev/null 2>&1; then :
7351 ac_cv_os_cray=yes
7352 else
7353 ac_cv_os_cray=no
7354 fi
7355 rm -f conftest*
7356
7357 fi
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7359 $as_echo "$ac_cv_os_cray" >&6; }
7360 if test $ac_cv_os_cray = yes; then
7361 for ac_func in _getb67 GETB67 getb67; do
7362 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7363 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7364 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7365
7366 cat >>confdefs.h <<_ACEOF
7367 #define CRAY_STACKSEG_END $ac_func
7368 _ACEOF
7369
7370 break
7371 fi
7372
7373 done
7374 fi
7375
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7377 $as_echo_n "checking stack direction for C alloca... " >&6; }
7378 if ${ac_cv_c_stack_direction+:} false; then :
7379 $as_echo_n "(cached) " >&6
7380 else
7381 if test "$cross_compiling" = yes; then :
7382 ac_cv_c_stack_direction=0
7383 else
7384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385 /* end confdefs.h. */
7386 $ac_includes_default
7387 int
7388 find_stack_direction (int *addr, int depth)
7389 {
7390 int dir, dummy = 0;
7391 if (! addr)
7392 addr = &dummy;
7393 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7394 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7395 return dir + dummy;
7396 }
7397
7398 int
7399 main (int argc, char **argv)
7400 {
7401 return find_stack_direction (0, argc + !argv + 20) < 0;
7402 }
7403 _ACEOF
7404 if ac_fn_c_try_run "$LINENO"; then :
7405 ac_cv_c_stack_direction=1
7406 else
7407 ac_cv_c_stack_direction=-1
7408 fi
7409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7410 conftest.$ac_objext conftest.beam conftest.$ac_ext
7411 fi
7412
7413 fi
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7415 $as_echo "$ac_cv_c_stack_direction" >&6; }
7416 cat >>confdefs.h <<_ACEOF
7417 #define STACK_DIRECTION $ac_cv_c_stack_direction
7418 _ACEOF
7419
7420
7421 fi
7422
7423 for ac_func in vprintf
7424 do :
7425 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
7426 if test "x$ac_cv_func_vprintf" = xyes; then :
7427 cat >>confdefs.h <<_ACEOF
7428 #define HAVE_VPRINTF 1
7429 _ACEOF
7430
7431 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
7432 if test "x$ac_cv_func__doprnt" = xyes; then :
7433
7434 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
7435
7436 fi
7437
7438 fi
7439 done
7440
7441
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
7443 $as_echo_n "checking whether closedir returns void... " >&6; }
7444 if ${ac_cv_func_closedir_void+:} false; then :
7445 $as_echo_n "(cached) " >&6
7446 else
7447 if test "$cross_compiling" = yes; then :
7448 ac_cv_func_closedir_void=yes
7449 else
7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7452 $ac_includes_default
7453 #include <$ac_header_dirent>
7454 #ifndef __cplusplus
7455 int closedir ();
7456 #endif
7457
7458 int
7459 main ()
7460 {
7461 return closedir (opendir (".")) != 0;
7462 ;
7463 return 0;
7464 }
7465 _ACEOF
7466 if ac_fn_c_try_run "$LINENO"; then :
7467 ac_cv_func_closedir_void=no
7468 else
7469 ac_cv_func_closedir_void=yes
7470 fi
7471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7472 conftest.$ac_objext conftest.beam conftest.$ac_ext
7473 fi
7474
7475 fi
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
7477 $as_echo "$ac_cv_func_closedir_void" >&6; }
7478 if test $ac_cv_func_closedir_void = yes; then
7479
7480 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
7481
7482 fi
7483
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
7485 $as_echo_n "checking for error_at_line... " >&6; }
7486 if ${ac_cv_lib_error_at_line+:} false; then :
7487 $as_echo_n "(cached) " >&6
7488 else
7489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7490 /* end confdefs.h. */
7491 #include <error.h>
7492 int
7493 main ()
7494 {
7495 error_at_line (0, 0, "", 0, "an error occurred");
7496 ;
7497 return 0;
7498 }
7499 _ACEOF
7500 if ac_fn_c_try_link "$LINENO"; then :
7501 ac_cv_lib_error_at_line=yes
7502 else
7503 ac_cv_lib_error_at_line=no
7504 fi
7505 rm -f core conftest.err conftest.$ac_objext \
7506 conftest$ac_exeext conftest.$ac_ext
7507 fi
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
7509 $as_echo "$ac_cv_lib_error_at_line" >&6; }
7510 if test $ac_cv_lib_error_at_line = no; then
7511 case " $LIBOBJS " in
7512 *" error.$ac_objext "* ) ;;
7513 *) LIBOBJS="$LIBOBJS error.$ac_objext"
7514 ;;
7515 esac
7516
7517 fi
7518
7519 for ac_header in vfork.h
7520 do :
7521 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
7522 if test "x$ac_cv_header_vfork_h" = xyes; then :
7523 cat >>confdefs.h <<_ACEOF
7524 #define HAVE_VFORK_H 1
7525 _ACEOF
7526
7527 fi
7528
7529 done
7530
7531 for ac_func in fork vfork
7532 do :
7533 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7534 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7535 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7536 cat >>confdefs.h <<_ACEOF
7537 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7538 _ACEOF
7539
7540 fi
7541 done
7542
7543 if test "x$ac_cv_func_fork" = xyes; then
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
7545 $as_echo_n "checking for working fork... " >&6; }
7546 if ${ac_cv_func_fork_works+:} false; then :
7547 $as_echo_n "(cached) " >&6
7548 else
7549 if test "$cross_compiling" = yes; then :
7550 ac_cv_func_fork_works=cross
7551 else
7552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553 /* end confdefs.h. */
7554 $ac_includes_default
7555 int
7556 main ()
7557 {
7558
7559 /* By Ruediger Kuhlmann. */
7560 return fork () < 0;
7561
7562 ;
7563 return 0;
7564 }
7565 _ACEOF
7566 if ac_fn_c_try_run "$LINENO"; then :
7567 ac_cv_func_fork_works=yes
7568 else
7569 ac_cv_func_fork_works=no
7570 fi
7571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7572 conftest.$ac_objext conftest.beam conftest.$ac_ext
7573 fi
7574
7575 fi
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
7577 $as_echo "$ac_cv_func_fork_works" >&6; }
7578
7579 else
7580 ac_cv_func_fork_works=$ac_cv_func_fork
7581 fi
7582 if test "x$ac_cv_func_fork_works" = xcross; then
7583 case $host in
7584 *-*-amigaos* | *-*-msdosdjgpp*)
7585 # Override, as these systems have only a dummy fork() stub
7586 ac_cv_func_fork_works=no
7587 ;;
7588 *)
7589 ac_cv_func_fork_works=yes
7590 ;;
7591 esac
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7593 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7594 fi
7595 ac_cv_func_vfork_works=$ac_cv_func_vfork
7596 if test "x$ac_cv_func_vfork" = xyes; then
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
7598 $as_echo_n "checking for working vfork... " >&6; }
7599 if ${ac_cv_func_vfork_works+:} false; then :
7600 $as_echo_n "(cached) " >&6
7601 else
7602 if test "$cross_compiling" = yes; then :
7603 ac_cv_func_vfork_works=cross
7604 else
7605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7606 /* end confdefs.h. */
7607 /* Thanks to Paul Eggert for this test. */
7608 $ac_includes_default
7609 #include <sys/wait.h>
7610 #ifdef HAVE_VFORK_H
7611 # include <vfork.h>
7612 #endif
7613 /* On some sparc systems, changes by the child to local and incoming
7614 argument registers are propagated back to the parent. The compiler
7615 is told about this with #include <vfork.h>, but some compilers
7616 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7617 static variable whose address is put into a register that is
7618 clobbered by the vfork. */
7619 static void
7620 #ifdef __cplusplus
7621 sparc_address_test (int arg)
7622 # else
7623 sparc_address_test (arg) int arg;
7624 #endif
7625 {
7626 static pid_t child;
7627 if (!child) {
7628 child = vfork ();
7629 if (child < 0) {
7630 perror ("vfork");
7631 _exit(2);
7632 }
7633 if (!child) {
7634 arg = getpid();
7635 write(-1, "", 0);
7636 _exit (arg);
7637 }
7638 }
7639 }
7640
7641 int
7642 main ()
7643 {
7644 pid_t parent = getpid ();
7645 pid_t child;
7646
7647 sparc_address_test (0);
7648
7649 child = vfork ();
7650
7651 if (child == 0) {
7652 /* Here is another test for sparc vfork register problems. This
7653 test uses lots of local variables, at least as many local
7654 variables as main has allocated so far including compiler
7655 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7656 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7657 reuse the register of parent for one of the local variables,
7658 since it will think that parent can't possibly be used any more
7659 in this routine. Assigning to the local variable will thus
7660 munge parent in the parent process. */
7661 pid_t
7662 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7663 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7664 /* Convince the compiler that p..p7 are live; otherwise, it might
7665 use the same hardware register for all 8 local variables. */
7666 if (p != p1 || p != p2 || p != p3 || p != p4
7667 || p != p5 || p != p6 || p != p7)
7668 _exit(1);
7669
7670 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7671 from child file descriptors. If the child closes a descriptor
7672 before it execs or exits, this munges the parent's descriptor
7673 as well. Test for this by closing stdout in the child. */
7674 _exit(close(fileno(stdout)) != 0);
7675 } else {
7676 int status;
7677 struct stat st;
7678
7679 while (wait(&status) != child)
7680 ;
7681 return (
7682 /* Was there some problem with vforking? */
7683 child < 0
7684
7685 /* Did the child fail? (This shouldn't happen.) */
7686 || status
7687
7688 /* Did the vfork/compiler bug occur? */
7689 || parent != getpid()
7690
7691 /* Did the file descriptor bug occur? */
7692 || fstat(fileno(stdout), &st) != 0
7693 );
7694 }
7695 }
7696 _ACEOF
7697 if ac_fn_c_try_run "$LINENO"; then :
7698 ac_cv_func_vfork_works=yes
7699 else
7700 ac_cv_func_vfork_works=no
7701 fi
7702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7703 conftest.$ac_objext conftest.beam conftest.$ac_ext
7704 fi
7705
7706 fi
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
7708 $as_echo "$ac_cv_func_vfork_works" >&6; }
7709
7710 fi;
7711 if test "x$ac_cv_func_fork_works" = xcross; then
7712 ac_cv_func_vfork_works=$ac_cv_func_vfork
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7714 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7715 fi
7716
7717 if test "x$ac_cv_func_vfork_works" = xyes; then
7718
7719 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
7720
7721 else
7722
7723 $as_echo "#define vfork fork" >>confdefs.h
7724
7725 fi
7726 if test "x$ac_cv_func_fork_works" = xyes; then
7727
7728 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
7729
7730 fi
7731
7732 for ac_header in stdlib.h
7733 do :
7734 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
7735 if test "x$ac_cv_header_stdlib_h" = xyes; then :
7736 cat >>confdefs.h <<_ACEOF
7737 #define HAVE_STDLIB_H 1
7738 _ACEOF
7739
7740 fi
7741
7742 done
7743
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
7745 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
7746 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
7747 $as_echo_n "(cached) " >&6
7748 else
7749 if test "$cross_compiling" = yes; then :
7750 ac_cv_func_malloc_0_nonnull=no
7751 else
7752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753 /* end confdefs.h. */
7754 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
7755 # include <stdlib.h>
7756 #else
7757 char *malloc ();
7758 #endif
7759
7760 int
7761 main ()
7762 {
7763 return ! malloc (0);
7764 ;
7765 return 0;
7766 }
7767 _ACEOF
7768 if ac_fn_c_try_run "$LINENO"; then :
7769 ac_cv_func_malloc_0_nonnull=yes
7770 else
7771 ac_cv_func_malloc_0_nonnull=no
7772 fi
7773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7774 conftest.$ac_objext conftest.beam conftest.$ac_ext
7775 fi
7776
7777 fi
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
7779 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
7780 if test $ac_cv_func_malloc_0_nonnull = yes; then :
7781
7782 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
7783
7784 else
7785 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
7786
7787 case " $LIBOBJS " in
7788 *" malloc.$ac_objext "* ) ;;
7789 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7790 ;;
7791 esac
7792
7793
7794 $as_echo "#define malloc rpl_malloc" >>confdefs.h
7795
7796 fi
7797
7798
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
7800 $as_echo_n "checking for working memcmp... " >&6; }
7801 if ${ac_cv_func_memcmp_working+:} false; then :
7802 $as_echo_n "(cached) " >&6
7803 else
7804 if test "$cross_compiling" = yes; then :
7805 ac_cv_func_memcmp_working=no
7806 else
7807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808 /* end confdefs.h. */
7809 $ac_includes_default
7810 int
7811 main ()
7812 {
7813
7814 /* Some versions of memcmp are not 8-bit clean. */
7815 char c0 = '\100', c1 = '\200', c2 = '\201';
7816 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7817 return 1;
7818
7819 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7820 or more and with at least one buffer not starting on a 4-byte boundary.
7821 William Lewis provided this test program. */
7822 {
7823 char foo[21];
7824 char bar[21];
7825 int i;
7826 for (i = 0; i < 4; i++)
7827 {
7828 char *a = foo + i;
7829 char *b = bar + i;
7830 strcpy (a, "--------01111111");
7831 strcpy (b, "--------10000000");
7832 if (memcmp (a, b, 16) >= 0)
7833 return 1;
7834 }
7835 return 0;
7836 }
7837
7838 ;
7839 return 0;
7840 }
7841 _ACEOF
7842 if ac_fn_c_try_run "$LINENO"; then :
7843 ac_cv_func_memcmp_working=yes
7844 else
7845 ac_cv_func_memcmp_working=no
7846 fi
7847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7848 conftest.$ac_objext conftest.beam conftest.$ac_ext
7849 fi
7850
7851 fi
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
7853 $as_echo "$ac_cv_func_memcmp_working" >&6; }
7854 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
7855 *" memcmp.$ac_objext "* ) ;;
7856 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7857 ;;
7858 esac
7859
7860
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7862 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7863 if ${ac_cv_header_time+:} false; then :
7864 $as_echo_n "(cached) " >&6
7865 else
7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h. */
7868 #include <sys/types.h>
7869 #include <sys/time.h>
7870 #include <time.h>
7871
7872 int
7873 main ()
7874 {
7875 if ((struct tm *) 0)
7876 return 0;
7877 ;
7878 return 0;
7879 }
7880 _ACEOF
7881 if ac_fn_c_try_compile "$LINENO"; then :
7882 ac_cv_header_time=yes
7883 else
7884 ac_cv_header_time=no
7885 fi
7886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7887 fi
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7889 $as_echo "$ac_cv_header_time" >&6; }
7890 if test $ac_cv_header_time = yes; then
7891
7892 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7893
7894 fi
7895
7896
7897
7898
7899
7900
7901 for ac_func in $ac_func_list
7902 do :
7903 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7904 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7905 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7906 cat >>confdefs.h <<_ACEOF
7907 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7908 _ACEOF
7909
7910 fi
7911 done
7912
7913
7914
7915
7916
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
7918 $as_echo_n "checking for working mktime... " >&6; }
7919 if ${ac_cv_func_working_mktime+:} false; then :
7920 $as_echo_n "(cached) " >&6
7921 else
7922 if test "$cross_compiling" = yes; then :
7923 ac_cv_func_working_mktime=no
7924 else
7925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7926 /* end confdefs.h. */
7927 /* Test program from Paul Eggert and Tony Leneis. */
7928 #ifdef TIME_WITH_SYS_TIME
7929 # include <sys/time.h>
7930 # include <time.h>
7931 #else
7932 # ifdef HAVE_SYS_TIME_H
7933 # include <sys/time.h>
7934 # else
7935 # include <time.h>
7936 # endif
7937 #endif
7938
7939 #include <limits.h>
7940 #include <stdlib.h>
7941
7942 #ifdef HAVE_UNISTD_H
7943 # include <unistd.h>
7944 #endif
7945
7946 #ifndef HAVE_ALARM
7947 # define alarm(X) /* empty */
7948 #endif
7949
7950 /* Work around redefinition to rpl_putenv by other config tests. */
7951 #undef putenv
7952
7953 static time_t time_t_max;
7954 static time_t time_t_min;
7955
7956 /* Values we'll use to set the TZ environment variable. */
7957 static const char *tz_strings[] = {
7958 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
7959 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
7960 };
7961 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
7962
7963 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
7964 Based on a problem report from Andreas Jaeger. */
7965 static int
7966 spring_forward_gap ()
7967 {
7968 /* glibc (up to about 1998-10-07) failed this test. */
7969 struct tm tm;
7970
7971 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
7972 instead of "TZ=America/Vancouver" in order to detect the bug even
7973 on systems that don't support the Olson extension, or don't have the
7974 full zoneinfo tables installed. */
7975 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
7976
7977 tm.tm_year = 98;
7978 tm.tm_mon = 3;
7979 tm.tm_mday = 5;
7980 tm.tm_hour = 2;
7981 tm.tm_min = 0;
7982 tm.tm_sec = 0;
7983 tm.tm_isdst = -1;
7984 return mktime (&tm) != (time_t) -1;
7985 }
7986
7987 static int
7988 mktime_test1 (time_t now)
7989 {
7990 struct tm *lt;
7991 return ! (lt = localtime (&now)) || mktime (lt) == now;
7992 }
7993
7994 static int
7995 mktime_test (time_t now)
7996 {
7997 return (mktime_test1 (now)
7998 && mktime_test1 ((time_t) (time_t_max - now))
7999 && mktime_test1 ((time_t) (time_t_min + now)));
8000 }
8001
8002 static int
8003 irix_6_4_bug ()
8004 {
8005 /* Based on code from Ariel Faigon. */
8006 struct tm tm;
8007 tm.tm_year = 96;
8008 tm.tm_mon = 3;
8009 tm.tm_mday = 0;
8010 tm.tm_hour = 0;
8011 tm.tm_min = 0;
8012 tm.tm_sec = 0;
8013 tm.tm_isdst = -1;
8014 mktime (&tm);
8015 return tm.tm_mon == 2 && tm.tm_mday == 31;
8016 }
8017
8018 static int
8019 bigtime_test (int j)
8020 {
8021 struct tm tm;
8022 time_t now;
8023 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
8024 now = mktime (&tm);
8025 if (now != (time_t) -1)
8026 {
8027 struct tm *lt = localtime (&now);
8028 if (! (lt
8029 && lt->tm_year == tm.tm_year
8030 && lt->tm_mon == tm.tm_mon
8031 && lt->tm_mday == tm.tm_mday
8032 && lt->tm_hour == tm.tm_hour
8033 && lt->tm_min == tm.tm_min
8034 && lt->tm_sec == tm.tm_sec
8035 && lt->tm_yday == tm.tm_yday
8036 && lt->tm_wday == tm.tm_wday
8037 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
8038 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
8039 return 0;
8040 }
8041 return 1;
8042 }
8043
8044 static int
8045 year_2050_test ()
8046 {
8047 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
8048 ignoring leap seconds. */
8049 unsigned long int answer = 2527315200UL;
8050
8051 struct tm tm;
8052 time_t t;
8053 tm.tm_year = 2050 - 1900;
8054 tm.tm_mon = 2 - 1;
8055 tm.tm_mday = 1;
8056 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
8057 tm.tm_isdst = -1;
8058
8059 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
8060 instead of "TZ=America/Vancouver" in order to detect the bug even
8061 on systems that don't support the Olson extension, or don't have the
8062 full zoneinfo tables installed. */
8063 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
8064
8065 t = mktime (&tm);
8066
8067 /* Check that the result is either a failure, or close enough
8068 to the correct answer that we can assume the discrepancy is
8069 due to leap seconds. */
8070 return (t == (time_t) -1
8071 || (0 < t && answer - 120 <= t && t <= answer + 120));
8072 }
8073
8074 int
8075 main ()
8076 {
8077 time_t t, delta;
8078 int i, j;
8079
8080 /* This test makes some buggy mktime implementations loop.
8081 Give up after 60 seconds; a mktime slower than that
8082 isn't worth using anyway. */
8083 alarm (60);
8084
8085 for (;;)
8086 {
8087 t = (time_t_max << 1) + 1;
8088 if (t <= time_t_max)
8089 break;
8090 time_t_max = t;
8091 }
8092 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
8093
8094 delta = time_t_max / 997; /* a suitable prime number */
8095 for (i = 0; i < N_STRINGS; i++)
8096 {
8097 if (tz_strings[i])
8098 putenv ((char*) tz_strings[i]);
8099
8100 for (t = 0; t <= time_t_max - delta; t += delta)
8101 if (! mktime_test (t))
8102 return 1;
8103 if (! (mktime_test ((time_t) 1)
8104 && mktime_test ((time_t) (60 * 60))
8105 && mktime_test ((time_t) (60 * 60 * 24))))
8106 return 1;
8107
8108 for (j = 1; ; j <<= 1)
8109 if (! bigtime_test (j))
8110 return 1;
8111 else if (INT_MAX / 2 < j)
8112 break;
8113 if (! bigtime_test (INT_MAX))
8114 return 1;
8115 }
8116 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
8117 }
8118 _ACEOF
8119 if ac_fn_c_try_run "$LINENO"; then :
8120 ac_cv_func_working_mktime=yes
8121 else
8122 ac_cv_func_working_mktime=no
8123 fi
8124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8125 conftest.$ac_objext conftest.beam conftest.$ac_ext
8126 fi
8127
8128 fi
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
8130 $as_echo "$ac_cv_func_working_mktime" >&6; }
8131 if test $ac_cv_func_working_mktime = no; then
8132 case " $LIBOBJS " in
8133 *" mktime.$ac_objext "* ) ;;
8134 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
8135 ;;
8136 esac
8137
8138 fi
8139
8140 for ac_header in stdlib.h
8141 do :
8142 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
8143 if test "x$ac_cv_header_stdlib_h" = xyes; then :
8144 cat >>confdefs.h <<_ACEOF
8145 #define HAVE_STDLIB_H 1
8146 _ACEOF
8147
8148 fi
8149
8150 done
8151
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
8153 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
8154 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
8155 $as_echo_n "(cached) " >&6
8156 else
8157 if test "$cross_compiling" = yes; then :
8158 ac_cv_func_realloc_0_nonnull=no
8159 else
8160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8161 /* end confdefs.h. */
8162 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
8163 # include <stdlib.h>
8164 #else
8165 char *realloc ();
8166 #endif
8167
8168 int
8169 main ()
8170 {
8171 return ! realloc (0, 0);
8172 ;
8173 return 0;
8174 }
8175 _ACEOF
8176 if ac_fn_c_try_run "$LINENO"; then :
8177 ac_cv_func_realloc_0_nonnull=yes
8178 else
8179 ac_cv_func_realloc_0_nonnull=no
8180 fi
8181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8182 conftest.$ac_objext conftest.beam conftest.$ac_ext
8183 fi
8184
8185 fi
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
8187 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
8188 if test $ac_cv_func_realloc_0_nonnull = yes; then :
8189
8190 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
8191
8192 else
8193 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
8194
8195 case " $LIBOBJS " in
8196 *" realloc.$ac_objext "* ) ;;
8197 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
8198 ;;
8199 esac
8200
8201
8202 $as_echo "#define realloc rpl_realloc" >>confdefs.h
8203
8204 fi
8205
8206
8207 for ac_header in sys/select.h sys/socket.h
8208 do :
8209 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8210 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8211 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8212 cat >>confdefs.h <<_ACEOF
8213 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8214 _ACEOF
8215
8216 fi
8217
8218 done
8219
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
8221 $as_echo_n "checking types of arguments for select... " >&6; }
8222 if ${ac_cv_func_select_args+:} false; then :
8223 $as_echo_n "(cached) " >&6
8224 else
8225 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
8226 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
8227 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
8228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229 /* end confdefs.h. */
8230 $ac_includes_default
8231 #ifdef HAVE_SYS_SELECT_H
8232 # include <sys/select.h>
8233 #endif
8234 #ifdef HAVE_SYS_SOCKET_H
8235 # include <sys/socket.h>
8236 #endif
8237
8238 int
8239 main ()
8240 {
8241 extern int select ($ac_arg1,
8242 $ac_arg234, $ac_arg234, $ac_arg234,
8243 $ac_arg5);
8244 ;
8245 return 0;
8246 }
8247 _ACEOF
8248 if ac_fn_c_try_compile "$LINENO"; then :
8249 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
8250 fi
8251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8252 done
8253 done
8254 done
8255 # Provide a safe default value.
8256 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
8257
8258 fi
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
8260 $as_echo "$ac_cv_func_select_args" >&6; }
8261 ac_save_IFS=$IFS; IFS=','
8262 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
8263 IFS=$ac_save_IFS
8264 shift
8265
8266 cat >>confdefs.h <<_ACEOF
8267 #define SELECT_TYPE_ARG1 $1
8268 _ACEOF
8269
8270
8271 cat >>confdefs.h <<_ACEOF
8272 #define SELECT_TYPE_ARG234 ($2)
8273 _ACEOF
8274
8275
8276 cat >>confdefs.h <<_ACEOF
8277 #define SELECT_TYPE_ARG5 ($3)
8278 _ACEOF
8279
8280 rm -f conftest*
8281
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
8283 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
8284 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
8285 $as_echo_n "(cached) " >&6
8286 else
8287 rm -f conftest.sym conftest.file
8288 echo >conftest.file
8289 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
8290 if test "$cross_compiling" = yes; then :
8291 ac_cv_func_lstat_dereferences_slashed_symlink=no
8292 else
8293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8294 /* end confdefs.h. */
8295 $ac_includes_default
8296 int
8297 main ()
8298 {
8299 struct stat sbuf;
8300 /* Linux will dereference the symlink and fail, as required by POSIX.
8301 That is better in the sense that it means we will not
8302 have to compile and use the lstat wrapper. */
8303 return lstat ("conftest.sym/", &sbuf) == 0;
8304 ;
8305 return 0;
8306 }
8307 _ACEOF
8308 if ac_fn_c_try_run "$LINENO"; then :
8309 ac_cv_func_lstat_dereferences_slashed_symlink=yes
8310 else
8311 ac_cv_func_lstat_dereferences_slashed_symlink=no
8312 fi
8313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8314 conftest.$ac_objext conftest.beam conftest.$ac_ext
8315 fi
8316
8317 else
8318 # If the `ln -s' command failed, then we probably don't even
8319 # have an lstat function.
8320 ac_cv_func_lstat_dereferences_slashed_symlink=no
8321 fi
8322 rm -f conftest.sym conftest.file
8323
8324 fi
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
8326 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
8327
8328 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
8329
8330 cat >>confdefs.h <<_ACEOF
8331 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
8332 _ACEOF
8333
8334
8335 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
8336 case " $LIBOBJS " in
8337 *" lstat.$ac_objext "* ) ;;
8338 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8339 ;;
8340 esac
8341
8342 fi
8343
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
8345 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
8346 if ${ac_cv_func_stat_empty_string_bug+:} false; then :
8347 $as_echo_n "(cached) " >&6
8348 else
8349 if test "$cross_compiling" = yes; then :
8350 ac_cv_func_stat_empty_string_bug=yes
8351 else
8352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8353 /* end confdefs.h. */
8354 $ac_includes_default
8355 int
8356 main ()
8357 {
8358 struct stat sbuf;
8359 return stat ("", &sbuf) == 0;
8360 ;
8361 return 0;
8362 }
8363 _ACEOF
8364 if ac_fn_c_try_run "$LINENO"; then :
8365 ac_cv_func_stat_empty_string_bug=no
8366 else
8367 ac_cv_func_stat_empty_string_bug=yes
8368 fi
8369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8370 conftest.$ac_objext conftest.beam conftest.$ac_ext
8371 fi
8372
8373 fi
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
8375 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
8376 if test $ac_cv_func_stat_empty_string_bug = yes; then
8377 case " $LIBOBJS " in
8378 *" stat.$ac_objext "* ) ;;
8379 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8380 ;;
8381 esac
8382
8383
8384 cat >>confdefs.h <<_ACEOF
8385 #define HAVE_STAT_EMPTY_STRING_BUG 1
8386 _ACEOF
8387
8388 fi
8389
8390 for ac_func in strftime
8391 do :
8392 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
8393 if test "x$ac_cv_func_strftime" = xyes; then :
8394 cat >>confdefs.h <<_ACEOF
8395 #define HAVE_STRFTIME 1
8396 _ACEOF
8397
8398 else
8399 # strftime is in -lintl on SCO UNIX.
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
8401 $as_echo_n "checking for strftime in -lintl... " >&6; }
8402 if ${ac_cv_lib_intl_strftime+:} false; then :
8403 $as_echo_n "(cached) " >&6
8404 else
8405 ac_check_lib_save_LIBS=$LIBS
8406 LIBS="-lintl $LIBS"
8407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8408 /* end confdefs.h. */
8409
8410 /* Override any GCC internal prototype to avoid an error.
8411 Use char because int might match the return type of a GCC
8412 builtin and then its argument prototype would still apply. */
8413 #ifdef __cplusplus
8414 extern "C"
8415 #endif
8416 char strftime ();
8417 int
8418 main ()
8419 {
8420 return strftime ();
8421 ;
8422 return 0;
8423 }
8424 _ACEOF
8425 if ac_fn_c_try_link "$LINENO"; then :
8426 ac_cv_lib_intl_strftime=yes
8427 else
8428 ac_cv_lib_intl_strftime=no
8429 fi
8430 rm -f core conftest.err conftest.$ac_objext \
8431 conftest$ac_exeext conftest.$ac_ext
8432 LIBS=$ac_check_lib_save_LIBS
8433 fi
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
8435 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
8436 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
8437 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
8438
8439 LIBS="-lintl $LIBS"
8440 fi
8441
8442 fi
8443 done
8444
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
8446 $as_echo_n "checking for working strtod... " >&6; }
8447 if ${ac_cv_func_strtod+:} false; then :
8448 $as_echo_n "(cached) " >&6
8449 else
8450 if test "$cross_compiling" = yes; then :
8451 ac_cv_func_strtod=no
8452 else
8453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8454 /* end confdefs.h. */
8455
8456 $ac_includes_default
8457 #ifndef strtod
8458 double strtod ();
8459 #endif
8460 int
8461 main()
8462 {
8463 {
8464 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8465 char *string = " +69";
8466 char *term;
8467 double value;
8468 value = strtod (string, &term);
8469 if (value != 69 || term != (string + 4))
8470 return 1;
8471 }
8472
8473 {
8474 /* Under Solaris 2.4, strtod returns the wrong value for the
8475 terminating character under some conditions. */
8476 char *string = "NaN";
8477 char *term;
8478 strtod (string, &term);
8479 if (term != string && *(term - 1) == 0)
8480 return 1;
8481 }
8482 return 0;
8483 }
8484
8485 _ACEOF
8486 if ac_fn_c_try_run "$LINENO"; then :
8487 ac_cv_func_strtod=yes
8488 else
8489 ac_cv_func_strtod=no
8490 fi
8491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8492 conftest.$ac_objext conftest.beam conftest.$ac_ext
8493 fi
8494
8495 fi
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
8497 $as_echo "$ac_cv_func_strtod" >&6; }
8498 if test $ac_cv_func_strtod = no; then
8499 case " $LIBOBJS " in
8500 *" strtod.$ac_objext "* ) ;;
8501 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8502 ;;
8503 esac
8504
8505 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
8506 if test "x$ac_cv_func_pow" = xyes; then :
8507
8508 fi
8509
8510 if test $ac_cv_func_pow = no; then
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
8512 $as_echo_n "checking for pow in -lm... " >&6; }
8513 if ${ac_cv_lib_m_pow+:} false; then :
8514 $as_echo_n "(cached) " >&6
8515 else
8516 ac_check_lib_save_LIBS=$LIBS
8517 LIBS="-lm $LIBS"
8518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8519 /* end confdefs.h. */
8520
8521 /* Override any GCC internal prototype to avoid an error.
8522 Use char because int might match the return type of a GCC
8523 builtin and then its argument prototype would still apply. */
8524 #ifdef __cplusplus
8525 extern "C"
8526 #endif
8527 char pow ();
8528 int
8529 main ()
8530 {
8531 return pow ();
8532 ;
8533 return 0;
8534 }
8535 _ACEOF
8536 if ac_fn_c_try_link "$LINENO"; then :
8537 ac_cv_lib_m_pow=yes
8538 else
8539 ac_cv_lib_m_pow=no
8540 fi
8541 rm -f core conftest.err conftest.$ac_objext \
8542 conftest$ac_exeext conftest.$ac_ext
8543 LIBS=$ac_check_lib_save_LIBS
8544 fi
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
8546 $as_echo "$ac_cv_lib_m_pow" >&6; }
8547 if test "x$ac_cv_lib_m_pow" = xyes; then :
8548 POW_LIB=-lm
8549 else
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
8551 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
8552 fi
8553
8554 fi
8555
8556 fi
8557
8558
8559
8560 for ac_func in backtrace
8561 do :
8562 ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
8563 if test "x$ac_cv_func_backtrace" = xyes; then :
8564 cat >>confdefs.h <<_ACEOF
8565 #define HAVE_BACKTRACE 1
8566 _ACEOF
8567
8568 fi
8569 done
8570
8571 for ac_func in openlog syslog
8572 do :
8573 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8574 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8575 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8576 cat >>confdefs.h <<_ACEOF
8577 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8578 _ACEOF
8579
8580 fi
8581 done
8582
8583 for ac_func in vfprintf strlcpy
8584 do :
8585 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8586 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8587 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8588 cat >>confdefs.h <<_ACEOF
8589 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8590 _ACEOF
8591
8592 fi
8593 done
8594
8595 for ac_func in strftime
8596 do :
8597 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
8598 if test "x$ac_cv_func_strftime" = xyes; then :
8599 cat >>confdefs.h <<_ACEOF
8600 #define HAVE_STRFTIME 1
8601 _ACEOF
8602
8603 fi
8604 done
8605
8606 for ac_func in inet_aton
8607 do :
8608 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
8609 if test "x$ac_cv_func_inet_aton" = xyes; then :
8610 cat >>confdefs.h <<_ACEOF
8611 #define HAVE_INET_ATON 1
8612 _ACEOF
8613
8614 fi
8615 done
8616
8617 for ac_func in setlinebuf
8618 do :
8619 ac_fn_c_check_func "$LINENO" "setlinebuf" "ac_cv_func_setlinebuf"
8620 if test "x$ac_cv_func_setlinebuf" = xyes; then :
8621 cat >>confdefs.h <<_ACEOF
8622 #define HAVE_SETLINEBUF 1
8623 _ACEOF
8624
8625 fi
8626 done
8627
8628 for ac_func in strerror strtof
8629 do :
8630 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8631 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8632 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8633 cat >>confdefs.h <<_ACEOF
8634 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8635 _ACEOF
8636
8637 fi
8638 done
8639
8640 for ac_func in floorf remainderf
8641 do :
8642 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8643 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8644 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8645 cat >>confdefs.h <<_ACEOF
8646 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8647 _ACEOF
8648
8649 fi
8650 done
8651
8652 for ac_func in timegm
8653 do :
8654 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
8655 if test "x$ac_cv_func_timegm" = xyes; then :
8656 cat >>confdefs.h <<_ACEOF
8657 #define HAVE_TIMEGM 1
8658 _ACEOF
8659
8660 fi
8661 done
8662
8663 for ac_func in isatty
8664 do :
8665 ac_fn_c_check_func "$LINENO" "isatty" "ac_cv_func_isatty"
8666 if test "x$ac_cv_func_isatty" = xyes; then :
8667 cat >>confdefs.h <<_ACEOF
8668 #define HAVE_ISATTY 1
8669 _ACEOF
8670
8671 fi
8672 done
8673
8674
8675 needsnprintf=no
8676 for ac_func in vsnprintf snprintf
8677 do :
8678 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8679 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8680 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8681 cat >>confdefs.h <<_ACEOF
8682 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8683 _ACEOF
8684
8685 else
8686 needsnprintf=yes
8687 fi
8688 done
8689
8690 if test $needsnprintf = yes; then
8691 case " $LIBOBJS " in
8692 *" snprintf.$ac_objext "* ) ;;
8693 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8694 ;;
8695 esac
8696
8697 fi
8698 #
8699 # Do this before checking for ether_hostton(), as it's a
8700 # "gethostbyname() -ish function".
8701 #
8702
8703 # Most operating systems have gethostbyname() in the default searched
8704 # libraries (i.e. libc):
8705 # Some OSes (eg. Solaris) place it in libnsl
8706 # Some strange OSes (SINIX) have it in libsocket:
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
8708 $as_echo_n "checking for library containing gethostbyname... " >&6; }
8709 if ${ac_cv_search_gethostbyname+:} false; then :
8710 $as_echo_n "(cached) " >&6
8711 else
8712 ac_func_search_save_LIBS=$LIBS
8713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8714 /* end confdefs.h. */
8715
8716 /* Override any GCC internal prototype to avoid an error.
8717 Use char because int might match the return type of a GCC
8718 builtin and then its argument prototype would still apply. */
8719 #ifdef __cplusplus
8720 extern "C"
8721 #endif
8722 char gethostbyname ();
8723 int
8724 main ()
8725 {
8726 return gethostbyname ();
8727 ;
8728 return 0;
8729 }
8730 _ACEOF
8731 for ac_lib in '' nsl socket resolv; do
8732 if test -z "$ac_lib"; then
8733 ac_res="none required"
8734 else
8735 ac_res=-l$ac_lib
8736 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8737 fi
8738 if ac_fn_c_try_link "$LINENO"; then :
8739 ac_cv_search_gethostbyname=$ac_res
8740 fi
8741 rm -f core conftest.err conftest.$ac_objext \
8742 conftest$ac_exeext
8743 if ${ac_cv_search_gethostbyname+:} false; then :
8744 break
8745 fi
8746 done
8747 if ${ac_cv_search_gethostbyname+:} false; then :
8748
8749 else
8750 ac_cv_search_gethostbyname=no
8751 fi
8752 rm conftest.$ac_ext
8753 LIBS=$ac_func_search_save_LIBS
8754 fi
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
8756 $as_echo "$ac_cv_search_gethostbyname" >&6; }
8757 ac_res=$ac_cv_search_gethostbyname
8758 if test "$ac_res" != no; then :
8759 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8760
8761 fi
8762
8763 # Unfortunately libsocket sometimes depends on libnsl and
8764 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
8765 if test "$ac_cv_search_gethostbyname" = "no"
8766 then
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
8768 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
8769 if ${ac_cv_lib_socket_gethostbyname+:} false; then :
8770 $as_echo_n "(cached) " >&6
8771 else
8772 ac_check_lib_save_LIBS=$LIBS
8773 LIBS="-lsocket -lnsl $LIBS"
8774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8775 /* end confdefs.h. */
8776
8777 /* Override any GCC internal prototype to avoid an error.
8778 Use char because int might match the return type of a GCC
8779 builtin and then its argument prototype would still apply. */
8780 #ifdef __cplusplus
8781 extern "C"
8782 #endif
8783 char gethostbyname ();
8784 int
8785 main ()
8786 {
8787 return gethostbyname ();
8788 ;
8789 return 0;
8790 }
8791 _ACEOF
8792 if ac_fn_c_try_link "$LINENO"; then :
8793 ac_cv_lib_socket_gethostbyname=yes
8794 else
8795 ac_cv_lib_socket_gethostbyname=no
8796 fi
8797 rm -f core conftest.err conftest.$ac_objext \
8798 conftest$ac_exeext conftest.$ac_ext
8799 LIBS=$ac_check_lib_save_LIBS
8800 fi
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
8802 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
8803 if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
8804 LIBS="-lsocket -lnsl $LIBS"
8805 fi
8806
8807 fi
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
8809 $as_echo_n "checking for library containing socket... " >&6; }
8810 if ${ac_cv_search_socket+:} false; then :
8811 $as_echo_n "(cached) " >&6
8812 else
8813 ac_func_search_save_LIBS=$LIBS
8814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8815 /* end confdefs.h. */
8816
8817 /* Override any GCC internal prototype to avoid an error.
8818 Use char because int might match the return type of a GCC
8819 builtin and then its argument prototype would still apply. */
8820 #ifdef __cplusplus
8821 extern "C"
8822 #endif
8823 char socket ();
8824 int
8825 main ()
8826 {
8827 return socket ();
8828 ;
8829 return 0;
8830 }
8831 _ACEOF
8832 for ac_lib in '' socket; do
8833 if test -z "$ac_lib"; then
8834 ac_res="none required"
8835 else
8836 ac_res=-l$ac_lib
8837 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8838 fi
8839 if ac_fn_c_try_link "$LINENO"; then :
8840 ac_cv_search_socket=$ac_res
8841 fi
8842 rm -f core conftest.err conftest.$ac_objext \
8843 conftest$ac_exeext
8844 if ${ac_cv_search_socket+:} false; then :
8845 break
8846 fi
8847 done
8848 if ${ac_cv_search_socket+:} false; then :
8849
8850 else
8851 ac_cv_search_socket=no
8852 fi
8853 rm conftest.$ac_ext
8854 LIBS=$ac_func_search_save_LIBS
8855 fi
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
8857 $as_echo "$ac_cv_search_socket" >&6; }
8858 ac_res=$ac_cv_search_socket
8859 if test "$ac_res" != no; then :
8860 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8861
8862 else
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
8864 $as_echo_n "checking for socket in -lsocket... " >&6; }
8865 if ${ac_cv_lib_socket_socket+:} false; then :
8866 $as_echo_n "(cached) " >&6
8867 else
8868 ac_check_lib_save_LIBS=$LIBS
8869 LIBS="-lsocket -lnsl $LIBS"
8870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8871 /* end confdefs.h. */
8872
8873 /* Override any GCC internal prototype to avoid an error.
8874 Use char because int might match the return type of a GCC
8875 builtin and then its argument prototype would still apply. */
8876 #ifdef __cplusplus
8877 extern "C"
8878 #endif
8879 char socket ();
8880 int
8881 main ()
8882 {
8883 return socket ();
8884 ;
8885 return 0;
8886 }
8887 _ACEOF
8888 if ac_fn_c_try_link "$LINENO"; then :
8889 ac_cv_lib_socket_socket=yes
8890 else
8891 ac_cv_lib_socket_socket=no
8892 fi
8893 rm -f core conftest.err conftest.$ac_objext \
8894 conftest$ac_exeext conftest.$ac_ext
8895 LIBS=$ac_check_lib_save_LIBS
8896 fi
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
8898 $as_echo "$ac_cv_lib_socket_socket" >&6; }
8899 if test "x$ac_cv_lib_socket_socket" = xyes; then :
8900 LIBS="-lsocket -lnsl $LIBS"
8901 fi
8902
8903 fi
8904
8905 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5
8907 $as_echo_n "checking for library containing putmsg... " >&6; }
8908 if ${ac_cv_search_putmsg+:} false; then :
8909 $as_echo_n "(cached) " >&6
8910 else
8911 ac_func_search_save_LIBS=$LIBS
8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913 /* end confdefs.h. */
8914
8915 /* Override any GCC internal prototype to avoid an error.
8916 Use char because int might match the return type of a GCC
8917 builtin and then its argument prototype would still apply. */
8918 #ifdef __cplusplus
8919 extern "C"
8920 #endif
8921 char putmsg ();
8922 int
8923 main ()
8924 {
8925 return putmsg ();
8926 ;
8927 return 0;
8928 }
8929 _ACEOF
8930 for ac_lib in '' str; do
8931 if test -z "$ac_lib"; then
8932 ac_res="none required"
8933 else
8934 ac_res=-l$ac_lib
8935 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8936 fi
8937 if ac_fn_c_try_link "$LINENO"; then :
8938 ac_cv_search_putmsg=$ac_res
8939 fi
8940 rm -f core conftest.err conftest.$ac_objext \
8941 conftest$ac_exeext
8942 if ${ac_cv_search_putmsg+:} false; then :
8943 break
8944 fi
8945 done
8946 if ${ac_cv_search_putmsg+:} false; then :
8947
8948 else
8949 ac_cv_search_putmsg=no
8950 fi
8951 rm conftest.$ac_ext
8952 LIBS=$ac_func_search_save_LIBS
8953 fi
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5
8955 $as_echo "$ac_cv_search_putmsg" >&6; }
8956 ac_res=$ac_cv_search_putmsg
8957 if test "$ac_res" != no; then :
8958 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8959
8960 fi
8961
8962
8963
8964 for ac_func in ether_hostton getaddrinfo gethostname
8965 do :
8966 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8967 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8968 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8969 cat >>confdefs.h <<_ACEOF
8970 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8971 _ACEOF
8972
8973 fi
8974 done
8975
8976 for ac_func in alarm bzero endgrent endpwent floor gethostbyaddr gethostbyname getpass gettimeofday inet_ntoa isascii localtime_r
8977 do :
8978 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8979 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8980 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8981 cat >>confdefs.h <<_ACEOF
8982 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8983 _ACEOF
8984
8985 fi
8986 done
8987
8988 for ac_func in memchr memmove memset mkdir modf pow putenv realpath regcomp select setenv socket sqrt strcasecmp strchr
8989 do :
8990 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8991 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8992 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8993 cat >>confdefs.h <<_ACEOF
8994 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8995 _ACEOF
8996
8997 fi
8998 done
8999
9000 for ac_func in strdup strerror strlcat strncasecmp strpbrk strerror strrchr strstr strtol strtof srandomdev tzset
9001 do :
9002 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9003 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9004 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9005 cat >>confdefs.h <<_ACEOF
9006 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9007 _ACEOF
9008
9009 fi
9010 done
9011
9012 for ac_func in gethostuuid
9013 do :
9014 ac_fn_c_check_func "$LINENO" "gethostuuid" "ac_cv_func_gethostuuid"
9015 if test "x$ac_cv_func_gethostuuid" = xyes; then :
9016 cat >>confdefs.h <<_ACEOF
9017 #define HAVE_GETHOSTUUID 1
9018 _ACEOF
9019
9020 fi
9021 done
9022
9023 for ac_func in posix_memalign memalign
9024 do :
9025 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9026 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9027 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9028 cat >>confdefs.h <<_ACEOF
9029 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9030 _ACEOF
9031
9032 fi
9033 done
9034
9035
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
9037 $as_echo_n "checking for library containing clock_gettime... " >&6; }
9038 if ${ac_cv_search_clock_gettime+:} false; then :
9039 $as_echo_n "(cached) " >&6
9040 else
9041 ac_func_search_save_LIBS=$LIBS
9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043 /* end confdefs.h. */
9044
9045 /* Override any GCC internal prototype to avoid an error.
9046 Use char because int might match the return type of a GCC
9047 builtin and then its argument prototype would still apply. */
9048 #ifdef __cplusplus
9049 extern "C"
9050 #endif
9051 char clock_gettime ();
9052 int
9053 main ()
9054 {
9055 return clock_gettime ();
9056 ;
9057 return 0;
9058 }
9059 _ACEOF
9060 for ac_lib in '' rt; do
9061 if test -z "$ac_lib"; then
9062 ac_res="none required"
9063 else
9064 ac_res=-l$ac_lib
9065 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9066 fi
9067 if ac_fn_c_try_link "$LINENO"; then :
9068 ac_cv_search_clock_gettime=$ac_res
9069 fi
9070 rm -f core conftest.err conftest.$ac_objext \
9071 conftest$ac_exeext
9072 if ${ac_cv_search_clock_gettime+:} false; then :
9073 break
9074 fi
9075 done
9076 if ${ac_cv_search_clock_gettime+:} false; then :
9077
9078 else
9079 ac_cv_search_clock_gettime=no
9080 fi
9081 rm conftest.$ac_ext
9082 LIBS=$ac_func_search_save_LIBS
9083 fi
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
9085 $as_echo "$ac_cv_search_clock_gettime" >&6; }
9086 ac_res=$ac_cv_search_clock_gettime
9087 if test "$ac_res" != no; then :
9088 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9089
9090
9091 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
9092
9093
9094 fi
9095
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_nanosleep" >&5
9097 $as_echo_n "checking for library containing clock_nanosleep... " >&6; }
9098 if ${ac_cv_search_clock_nanosleep+:} false; then :
9099 $as_echo_n "(cached) " >&6
9100 else
9101 ac_func_search_save_LIBS=$LIBS
9102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9103 /* end confdefs.h. */
9104
9105 /* Override any GCC internal prototype to avoid an error.
9106 Use char because int might match the return type of a GCC
9107 builtin and then its argument prototype would still apply. */
9108 #ifdef __cplusplus
9109 extern "C"
9110 #endif
9111 char clock_nanosleep ();
9112 int
9113 main ()
9114 {
9115 return clock_nanosleep ();
9116 ;
9117 return 0;
9118 }
9119 _ACEOF
9120 for ac_lib in '' rt; do
9121 if test -z "$ac_lib"; then
9122 ac_res="none required"
9123 else
9124 ac_res=-l$ac_lib
9125 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9126 fi
9127 if ac_fn_c_try_link "$LINENO"; then :
9128 ac_cv_search_clock_nanosleep=$ac_res
9129 fi
9130 rm -f core conftest.err conftest.$ac_objext \
9131 conftest$ac_exeext
9132 if ${ac_cv_search_clock_nanosleep+:} false; then :
9133 break
9134 fi
9135 done
9136 if ${ac_cv_search_clock_nanosleep+:} false; then :
9137
9138 else
9139 ac_cv_search_clock_nanosleep=no
9140 fi
9141 rm conftest.$ac_ext
9142 LIBS=$ac_func_search_save_LIBS
9143 fi
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_nanosleep" >&5
9145 $as_echo "$ac_cv_search_clock_nanosleep" >&6; }
9146 ac_res=$ac_cv_search_clock_nanosleep
9147 if test "$ac_res" != no; then :
9148 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9149
9150
9151 $as_echo "#define HAVE_CLOCK_NANOSLEEP 1" >>confdefs.h
9152
9153
9154 fi
9155
9156
9157 case "$target_os" in
9158 *) COMPATLIB="-lm"
9159 esac
9160
9161
9162 # Check whether --with-threads was given.
9163 if test "${with_threads+set}" = set; then :
9164 withval=$with_threads; with_threads="$withval"
9165 else
9166 with_threads="yes"
9167 fi
9168
9169
9170 if test "$with_threads" != no; then
9171 case "$host_os" in
9172 *openbsd*)
9173 ;;
9174
9175 *)
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .threads" >&5
9177 $as_echo_n "checking for .threads... " >&6; }
9178 if test -f .threads ; then
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9180 $as_echo "yes" >&6; }
9181 V_THREADS=""
9182 if test "$GCC" = yes ; then
9183 case "$host_os" in
9184 *darwin*)
9185 ;;
9186 cygwin*)
9187 ;;
9188 *)
9189 V_THREADS="-lpthread $V_THREADS"
9190 ;;
9191 esac
9192 else
9193 case "$host_os" in
9194 solaris*)
9195 V_THREADS="-mt -lpthread $V_THREADS"
9196 ;;
9197 cygwin*)
9198 ;;
9199 *darwin*)
9200 ;;
9201 *)
9202 V_THREADS="-lpthread $V_THREADS"
9203 ;;
9204 esac
9205 fi
9206
9207 $as_echo "#define ARGUS_THREADS /**/" >>confdefs.h
9208
9209 for ac_func in sched_get_priority_min
9210 do :
9211 ac_fn_c_check_func "$LINENO" "sched_get_priority_min" "ac_cv_func_sched_get_priority_min"
9212 if test "x$ac_cv_func_sched_get_priority_min" = xyes; then :
9213 cat >>confdefs.h <<_ACEOF
9214 #define HAVE_SCHED_GET_PRIORITY_MIN 1
9215 _ACEOF
9216
9217 fi
9218 done
9219
9220 else
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9222 $as_echo "no" >&6; }
9223 fi
9224 ;;
9225 esac
9226 fi
9227
9228
9229 #AC_QOSIENT_TCPWRAP(V_WRAPDEP, V_INCLS)
9230 #if test ! -z "$V_WRAPDEP"; then
9231 # if test -f "$V_WRAPDEP"; then
9232 # if test -f lib/libwrap.a; then
9233 # rm -rf lib/libwrap.a
9234 # fi
9235 # wrapdir=`echo $V_WRAPDEP | sed -e 's/^\.\./..\/../'`
9236 # ln -s $wrapdir lib/libwrap.a
9237 # V_WRAPDEP="../lib/libwrap.a"
9238 # else
9239 # if test "$V_WRAPDEP" = "-lwrap" ; then
9240 # if test -f lib/libwrap.a; then
9241 # rm -rf lib/libwrap.a
9242 # fi
9243 # case "$target_os" in
9244 # linux*)
9245 # V_WRAPDEP="$V_WRAPDEP -lnsl";;
9246 # esac
9247 # fi
9248 # fi
9249 # AC_DEFINE([HAVE_TCP_WRAPPER], [], [Using Tcp wrappers])
9250 # WRAPLIBS="$V_WRAPDEP"
9251 #fi
9252
9253 saved_CPPFLAGS=$CPPFLAGS
9254 saved_LIBS=$LIBS
9255 LIB_XDR=""
9256
9257 for ac_header in rpc/xdr.h
9258 do :
9259 ac_fn_c_check_header_compile "$LINENO" "rpc/xdr.h" "ac_cv_header_rpc_xdr_h" "#include <rpc/types.h>
9260 #include <rpc/xdr.h>
9261 "
9262 if test "x$ac_cv_header_rpc_xdr_h" = xyes; then :
9263 cat >>confdefs.h <<_ACEOF
9264 #define HAVE_RPC_XDR_H 1
9265 _ACEOF
9266
9267 else
9268 CPPFLAGS="${saved_CPPFLAGS} -I/usr/include/tirpc"
9269 unset ac_cv_header_rpc_xdr_h
9270 for ac_header in rpc/xdr.h
9271 do :
9272 ac_fn_c_check_header_mongrel "$LINENO" "rpc/xdr.h" "ac_cv_header_rpc_xdr_h" "$ac_includes_default"
9273 if test "x$ac_cv_header_rpc_xdr_h" = xyes; then :
9274 cat >>confdefs.h <<_ACEOF
9275 #define HAVE_RPC_XDR_H 1
9276 _ACEOF
9277 XDR_INCLS="-I/usr/include/tirpc"
9278 LIB_XDR="-ltirpc"
9279 fi
9280
9281 done
9282
9283 fi
9284
9285 done
9286
9287
9288 LIBS="$LIB_XDR $LIBS"
9289
9290 for ac_func in xdrmem_create
9291 do :
9292 ac_fn_c_check_func "$LINENO" "xdrmem_create" "ac_cv_func_xdrmem_create"
9293 if test "x$ac_cv_func_xdrmem_create" = xyes; then :
9294 cat >>confdefs.h <<_ACEOF
9295 #define HAVE_XDRMEM_CREATE 1
9296 _ACEOF
9297
9298 $as_echo "#define HAVE_XDR /**/" >>confdefs.h
9299
9300 else
9301 LIB_XDR=""
9302 XDR_INCLS=""
9303
9304 fi
9305 done
9306
9307
9308 CPPFLAGS=${saved_CPPFLAGS}
9309 LIBS=${saved_LIBS}
9310
9311
9312 CURSESLIB=""
9313 saved_CPPFLAGS=$CPPFLAGS
9314 saved_LDFLAGS=$LDFLAGS
9315 saved_LIBS=$LIBS
9316
9317 case "$target_os" in
9318 cygwin*)
9319 NCURSES_INCLS="-I/usr/include/ncurses"
9320 NCURSES_LDFLAGS="-L/usr/lib"
9321 CPPFLAGS="${saved_CPPFLAGS} ${NCURSES_INCLS}"
9322 LDFLAGS="${saved_LDFLAGS} ${NCURSES_LDFLAGS}"
9323
9324 for ac_header in ncurses.h
9325 do :
9326 ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
9327 if test "x$ac_cv_header_ncurses_h" = xyes; then :
9328 cat >>confdefs.h <<_ACEOF
9329 #define HAVE_NCURSES_H 1
9330 _ACEOF
9331 CURSESLIB="-lncurses"
9332 else
9333 for ac_header in curses.h
9334 do :
9335 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
9336 if test "x$ac_cv_header_curses_h" = xyes; then :
9337 cat >>confdefs.h <<_ACEOF
9338 #define HAVE_CURSES_H 1
9339 _ACEOF
9340 CURSESLIB="-lcurses"
9341 fi
9342
9343 done
9344
9345 fi
9346
9347 done
9348
9349
9350 if test "$CURSESLIB" = "-lncurses"; then
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
9352 $as_echo_n "checking for initscr in -lncurses... " >&6; }
9353 if ${ac_cv_lib_ncurses_initscr+:} false; then :
9354 $as_echo_n "(cached) " >&6
9355 else
9356 ac_check_lib_save_LIBS=$LIBS
9357 LIBS="-lncurses $LIBS"
9358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h. */
9360
9361 /* Override any GCC internal prototype to avoid an error.
9362 Use char because int might match the return type of a GCC
9363 builtin and then its argument prototype would still apply. */
9364 #ifdef __cplusplus
9365 extern "C"
9366 #endif
9367 char initscr ();
9368 int
9369 main ()
9370 {
9371 return initscr ();
9372 ;
9373 return 0;
9374 }
9375 _ACEOF
9376 if ac_fn_c_try_link "$LINENO"; then :
9377 ac_cv_lib_ncurses_initscr=yes
9378 else
9379 ac_cv_lib_ncurses_initscr=no
9380 fi
9381 rm -f core conftest.err conftest.$ac_objext \
9382 conftest$ac_exeext conftest.$ac_ext
9383 LIBS=$ac_check_lib_save_LIBS
9384 fi
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
9386 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
9387 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
9388
9389 $as_echo "#define ARGUS_CURSES /**/" >>confdefs.h
9390
9391 CURSES_INCLS="-I/usr/include/ncurses"
9392 LIBS="$LIBS -L/usr/lib"
9393 fi
9394
9395 else
9396 if test "$CURSESLIB" = "-lcurses"; then
9397
9398 $as_echo "#define ARGUS_CURSES /**/" >>confdefs.h
9399
9400 fi
9401 fi
9402
9403 CPPFLAGS="${saved_CPPFLAGS}"
9404 LDFLAGS="${saved_LDFLAGS}"
9405 ;;
9406
9407 solaris*)
9408 NCURSES_INCLS="-I/usr/include/ncurses"
9409 NCURSES_LDFLAGS="-L/usr/gnu/lib"
9410 CPPFLAGS="${saved_CPPFLAGS} ${NCURSES_INCLS}"
9411 LDFLAGS="${saved_LDFLAGS} ${NCURSES_LDFLAGS}"
9412
9413 for ac_header in ncurses.h
9414 do :
9415 ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
9416 if test "x$ac_cv_header_ncurses_h" = xyes; then :
9417 cat >>confdefs.h <<_ACEOF
9418 #define HAVE_NCURSES_H 1
9419 _ACEOF
9420 CURSESLIB="-lncurses"
9421 else
9422 for ac_header in curses.h
9423 do :
9424 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
9425 if test "x$ac_cv_header_curses_h" = xyes; then :
9426 cat >>confdefs.h <<_ACEOF
9427 #define HAVE_CURSES_H 1
9428 _ACEOF
9429 CURSESLIB="-lcurses"
9430 fi
9431
9432 done
9433
9434 fi
9435
9436 done
9437
9438
9439 if test "$CURSESLIB" = "-lncurses"; then
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
9441 $as_echo_n "checking for initscr in -lncurses... " >&6; }
9442 if ${ac_cv_lib_ncurses_initscr+:} false; then :
9443 $as_echo_n "(cached) " >&6
9444 else
9445 ac_check_lib_save_LIBS=$LIBS
9446 LIBS="-lncurses $LIBS"
9447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9448 /* end confdefs.h. */
9449
9450 /* Override any GCC internal prototype to avoid an error.
9451 Use char because int might match the return type of a GCC
9452 builtin and then its argument prototype would still apply. */
9453 #ifdef __cplusplus
9454 extern "C"
9455 #endif
9456 char initscr ();
9457 int
9458 main ()
9459 {
9460 return initscr ();
9461 ;
9462 return 0;
9463 }
9464 _ACEOF
9465 if ac_fn_c_try_link "$LINENO"; then :
9466 ac_cv_lib_ncurses_initscr=yes
9467 else
9468 ac_cv_lib_ncurses_initscr=no
9469 fi
9470 rm -f core conftest.err conftest.$ac_objext \
9471 conftest$ac_exeext conftest.$ac_ext
9472 LIBS=$ac_check_lib_save_LIBS
9473 fi
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
9475 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
9476 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
9477
9478 $as_echo "#define ARGUS_CURSES /**/" >>confdefs.h
9479
9480 CURSES_INCLS="-I/usr/include/ncurses"
9481 LIBS="$LIBS -L/usr/gnu/lib"
9482 fi
9483
9484 else
9485 if test "$CURSESLIB" = "-lcurses"; then
9486
9487 $as_echo "#define ARGUS_CURSES /**/" >>confdefs.h
9488
9489 fi
9490 fi
9491
9492 CPPFLAGS="${saved_CPPFLAGS}"
9493 LDFLAGS="${saved_LDFLAGS}"
9494 ;;
9495
9496 *)
9497 for ac_header in ncurses.h
9498 do :
9499 ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
9500 if test "x$ac_cv_header_ncurses_h" = xyes; then :
9501 cat >>confdefs.h <<_ACEOF
9502 #define HAVE_NCURSES_H 1
9503 _ACEOF
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
9505 $as_echo_n "checking for initscr in -lncurses... " >&6; }
9506 if ${ac_cv_lib_ncurses_initscr+:} false; then :
9507 $as_echo_n "(cached) " >&6
9508 else
9509 ac_check_lib_save_LIBS=$LIBS
9510 LIBS="-lncurses $LIBS"
9511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9512 /* end confdefs.h. */
9513
9514 /* Override any GCC internal prototype to avoid an error.
9515 Use char because int might match the return type of a GCC
9516 builtin and then its argument prototype would still apply. */
9517 #ifdef __cplusplus
9518 extern "C"
9519 #endif
9520 char initscr ();
9521 int
9522 main ()
9523 {
9524 return initscr ();
9525 ;
9526 return 0;
9527 }
9528 _ACEOF
9529 if ac_fn_c_try_link "$LINENO"; then :
9530 ac_cv_lib_ncurses_initscr=yes
9531 else
9532 ac_cv_lib_ncurses_initscr=no
9533 fi
9534 rm -f core conftest.err conftest.$ac_objext \
9535 conftest$ac_exeext conftest.$ac_ext
9536 LIBS=$ac_check_lib_save_LIBS
9537 fi
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
9539 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
9540 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
9541 CURSESLIB="-lncurses"
9542 fi
9543
9544 else
9545 for ac_header in curses.h
9546 do :
9547 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
9548 if test "x$ac_cv_header_curses_h" = xyes; then :
9549 cat >>confdefs.h <<_ACEOF
9550 #define HAVE_CURSES_H 1
9551 _ACEOF
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5
9553 $as_echo_n "checking for initscr in -lcurses... " >&6; }
9554 if ${ac_cv_lib_curses_initscr+:} false; then :
9555 $as_echo_n "(cached) " >&6
9556 else
9557 ac_check_lib_save_LIBS=$LIBS
9558 LIBS="-lcurses $LIBS"
9559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9560 /* end confdefs.h. */
9561
9562 /* Override any GCC internal prototype to avoid an error.
9563 Use char because int might match the return type of a GCC
9564 builtin and then its argument prototype would still apply. */
9565 #ifdef __cplusplus
9566 extern "C"
9567 #endif
9568 char initscr ();
9569 int
9570 main ()
9571 {
9572 return initscr ();
9573 ;
9574 return 0;
9575 }
9576 _ACEOF
9577 if ac_fn_c_try_link "$LINENO"; then :
9578 ac_cv_lib_curses_initscr=yes
9579 else
9580 ac_cv_lib_curses_initscr=no
9581 fi
9582 rm -f core conftest.err conftest.$ac_objext \
9583 conftest$ac_exeext conftest.$ac_ext
9584 LIBS=$ac_check_lib_save_LIBS
9585 fi
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5
9587 $as_echo "$ac_cv_lib_curses_initscr" >&6; }
9588 if test "x$ac_cv_lib_curses_initscr" = xyes; then :
9589 CURSESLIB="-lcurses"
9590 fi
9591
9592 fi
9593
9594 done
9595
9596
9597 fi
9598
9599 done
9600
9601
9602 if test "$CURSESLIB" = "-lncurses"; then
9603
9604 $as_echo "#define ARGUS_CURSES /**/" >>confdefs.h
9605
9606 else
9607 if test "$CURSESLIB" = "-lcurses"; then
9608
9609 $as_echo "#define ARGUS_CURSES /**/" >>confdefs.h
9610
9611 fi
9612 fi
9613 ;;
9614 esac
9615
9616
9617
9618 case "$target_cpu" in
9619 *86)
9620 have_x86=yes;
9621 ;;
9622
9623 powerpc-apple*)
9624 ;;
9625
9626 powerpc64-*-linux-gnu)
9627 V_CCOPT="$V_CCOPT -m64 -fPIC"
9628 ;;
9629
9630 esac
9631
9632 case "$target_os" in
9633
9634 aix*)
9635 have_sun=yes;
9636 ;;
9637
9638 darwin*)
9639 have_darwin=yes;
9640 saved_LDFLAGS=$LDFLAGS
9641 LDFLAGS="${saved_LDFLAGS} -Wlinker -rpath /usr/local/mysql/lib"
9642 ;;
9643
9644 hpux9*)
9645 have_hpux_nine=yes;
9646 ;;
9647
9648 hpux10.0*)
9649 ;;
9650
9651 hpux10.1*)
9652 ;;
9653
9654 hpux*)
9655 have_hpux_ten=yes;
9656 ;;
9657
9658 sinix*)
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SINIX compiler defines sinix" >&5
9660 $as_echo_n "checking if SINIX compiler defines sinix... " >&6; }
9661 if ${ac_cv_cc_sinix_defined+:} false; then :
9662 $as_echo_n "(cached) " >&6
9663 else
9664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9665 /* end confdefs.h. */
9666
9667 int
9668 main ()
9669 {
9670 int i = sinix;
9671 ;
9672 return 0;
9673 }
9674 _ACEOF
9675 if ac_fn_c_try_compile "$LINENO"; then :
9676 ac_cv_cc_sinix_defined=yes
9677 else
9678 ac_cv_cc_sinix_defined=no
9679 fi
9680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9681 fi
9682
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_sinix_defined" >&5
9684 $as_echo "$ac_cv_cc_sinix_defined" >&6; }
9685 if test "$ac_cv_cc_sinix_defined" = "no" ; then
9686
9687 $as_echo "#define sinix /**/" >>confdefs.h
9688
9689 fi
9690 ;;
9691
9692 solaris*)
9693
9694 $as_echo "#define ARGUS_SOLARIS 1" >>confdefs.h
9695
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LD_LIBRARY_PATH" >&5
9697 $as_echo_n "checking for LD_LIBRARY_PATH... " >&6; }
9698 if test "x$LD_LIBRARY_PATH" != "x" ; then
9699 LIBS="$LIBS -R$LD_LIBRARY_PATH"
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes -- added LD_LIBRARY_PATH to run-time linker path" >&5
9701 $as_echo "yes -- added LD_LIBRARY_PATH to run-time linker path" >&6; }
9702 else
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- this may be a problem in a few seconds" >&5
9704 $as_echo "no -- this may be a problem in a few seconds" >&6; }
9705 fi
9706 COMPATLIB="-lsocket -lnsl -lrt $COMPATLIB"
9707 ;;
9708
9709 linux*)
9710 ;;
9711
9712 cygwin*)
9713 have_cygwin=yes;
9714 V_INCLS="$V_INCLS -I../include/cygwin-include"
9715 ;;
9716 esac
9717
9718 if test "$have_x86" = yes ; then
9719
9720 $as_echo "#define CONFIG_X86_BSWAP /**/" >>confdefs.h
9721
9722 fi
9723 if test "$have_darwin" = yes ; then
9724
9725 $as_echo "#define HAVE_DARWIN /**/" >>confdefs.h
9726
9727 fi
9728 if test "$have_hpux_nine" = yes ; then
9729
9730 $as_echo "#define HAVE_HPUX9 /**/" >>confdefs.h
9731
9732 fi
9733 if test "$have_hpux_ten" = yes ; then
9734
9735 $as_echo "#define HAVE_HPUX10_20 /**/" >>confdefs.h
9736
9737 fi
9738 if test "$have_sun" = yes ; then
9739
9740 $as_echo "#define _SUN /**/" >>confdefs.h
9741
9742 fi
9743 if test "$have_cygwin" = yes ; then
9744
9745 $as_echo "#define CYGWIN /**/" >>confdefs.h
9746
9747 fi
9748
9749
9750
9751
9752
9753
9754
9755
9756 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9757 if test -n "$ac_tool_prefix"; then
9758 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9759 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9761 $as_echo_n "checking for $ac_word... " >&6; }
9762 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9763 $as_echo_n "(cached) " >&6
9764 else
9765 case $PKG_CONFIG in
9766 [\\/]* | ?:[\\/]*)
9767 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9768 ;;
9769 *)
9770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9771 for as_dir in $PATH
9772 do
9773 IFS=$as_save_IFS
9774 test -z "$as_dir" && as_dir=.
9775 for ac_exec_ext in '' $ac_executable_extensions; do
9776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9777 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9779 break 2
9780 fi
9781 done
9782 done
9783 IFS=$as_save_IFS
9784
9785 ;;
9786 esac
9787 fi
9788 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9789 if test -n "$PKG_CONFIG"; then
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9791 $as_echo "$PKG_CONFIG" >&6; }
9792 else
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9794 $as_echo "no" >&6; }
9795 fi
9796
9797
9798 fi
9799 if test -z "$ac_cv_path_PKG_CONFIG"; then
9800 ac_pt_PKG_CONFIG=$PKG_CONFIG
9801 # Extract the first word of "pkg-config", so it can be a program name with args.
9802 set dummy pkg-config; ac_word=$2
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9804 $as_echo_n "checking for $ac_word... " >&6; }
9805 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
9806 $as_echo_n "(cached) " >&6
9807 else
9808 case $ac_pt_PKG_CONFIG in
9809 [\\/]* | ?:[\\/]*)
9810 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9811 ;;
9812 *)
9813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9814 for as_dir in $PATH
9815 do
9816 IFS=$as_save_IFS
9817 test -z "$as_dir" && as_dir=.
9818 for ac_exec_ext in '' $ac_executable_extensions; do
9819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9820 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9822 break 2
9823 fi
9824 done
9825 done
9826 IFS=$as_save_IFS
9827
9828 ;;
9829 esac
9830 fi
9831 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9832 if test -n "$ac_pt_PKG_CONFIG"; then
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9834 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
9835 else
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9837 $as_echo "no" >&6; }
9838 fi
9839
9840 if test "x$ac_pt_PKG_CONFIG" = x; then
9841 PKG_CONFIG=""
9842 else
9843 case $cross_compiling:$ac_tool_warned in
9844 yes:)
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9847 ac_tool_warned=yes ;;
9848 esac
9849 PKG_CONFIG=$ac_pt_PKG_CONFIG
9850 fi
9851 else
9852 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9853 fi
9854
9855 fi
9856 if test -n "$PKG_CONFIG"; then
9857 _pkg_min_version=0.9.0
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9859 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9860 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9862 $as_echo "yes" >&6; }
9863 else
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9865 $as_echo "no" >&6; }
9866 PKG_CONFIG=""
9867 fi
9868 fi
9869
9870
9871 # Check whether --with-libmaxminddb was given.
9872 if test "${with_libmaxminddb+set}" = set; then :
9873 withval=$with_libmaxminddb; with_libmaxminddb="$withval"
9874 else
9875 with_libmaxminddb="no"
9876 fi
9877
9878
9879 if test x$with_geoip = "xyes"; then
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot compile with both libmaxminddb and GeoIP" >&5
9881 $as_echo "cannot compile with both libmaxminddb and GeoIP" >&6; }
9882 else
9883 if test "x$with_libmaxminddb" = "xyes"; then
9884
9885 pkg_failed=no
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBMAXMINDDB" >&5
9887 $as_echo_n "checking for LIBMAXMINDDB... " >&6; }
9888
9889 if test -n "$LIBMAXMINDDB_CFLAGS"; then
9890 pkg_cv_LIBMAXMINDDB_CFLAGS="$LIBMAXMINDDB_CFLAGS"
9891 elif test -n "$PKG_CONFIG"; then
9892 if test -n "$PKG_CONFIG" && \
9893 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
9894 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
9895 ac_status=$?
9896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9897 test $ac_status = 0; }; then
9898 pkg_cv_LIBMAXMINDDB_CFLAGS=`$PKG_CONFIG --cflags "libmaxminddb" 2>/dev/null`
9899 test "x$?" != "x0" && pkg_failed=yes
9900 else
9901 pkg_failed=yes
9902 fi
9903 else
9904 pkg_failed=untried
9905 fi
9906 if test -n "$LIBMAXMINDDB_LIBS"; then
9907 pkg_cv_LIBMAXMINDDB_LIBS="$LIBMAXMINDDB_LIBS"
9908 elif test -n "$PKG_CONFIG"; then
9909 if test -n "$PKG_CONFIG" && \
9910 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
9911 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
9912 ac_status=$?
9913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9914 test $ac_status = 0; }; then
9915 pkg_cv_LIBMAXMINDDB_LIBS=`$PKG_CONFIG --libs "libmaxminddb" 2>/dev/null`
9916 test "x$?" != "x0" && pkg_failed=yes
9917 else
9918 pkg_failed=yes
9919 fi
9920 else
9921 pkg_failed=untried
9922 fi
9923
9924
9925
9926 if test $pkg_failed = yes; then
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9928 $as_echo "no" >&6; }
9929
9930 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9931 _pkg_short_errors_supported=yes
9932 else
9933 _pkg_short_errors_supported=no
9934 fi
9935 if test $_pkg_short_errors_supported = yes; then
9936 LIBMAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmaxminddb" 2>&1`
9937 else
9938 LIBMAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmaxminddb" 2>&1`
9939 fi
9940 # Put the nasty error message in config.log where it belongs
9941 echo "$LIBMAXMINDDB_PKG_ERRORS" >&5
9942
9943 as_fn_error $? "Package requirements (libmaxminddb) were not met:
9944
9945 $LIBMAXMINDDB_PKG_ERRORS
9946
9947 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9948 installed software in a non-standard prefix.
9949
9950 Alternatively, you may set the environment variables LIBMAXMINDDB_CFLAGS
9951 and LIBMAXMINDDB_LIBS to avoid the need to call pkg-config.
9952 See the pkg-config man page for more details." "$LINENO" 5
9953 elif test $pkg_failed = untried; then
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9955 $as_echo "no" >&6; }
9956 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9958 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
9959 is in your PATH or set the PKG_CONFIG environment variable to the full
9960 path to pkg-config.
9961
9962 Alternatively, you may set the environment variables LIBMAXMINDDB_CFLAGS
9963 and LIBMAXMINDDB_LIBS to avoid the need to call pkg-config.
9964 See the pkg-config man page for more details.
9965
9966 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9967 See \`config.log' for more details" "$LINENO" 5; }
9968 else
9969 LIBMAXMINDDB_CFLAGS=$pkg_cv_LIBMAXMINDDB_CFLAGS
9970 LIBMAXMINDDB_LIBS=$pkg_cv_LIBMAXMINDDB_LIBS
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9972 $as_echo "yes" >&6; }
9973
9974 $as_echo "#define ARGUS_GEOIP2 /**/" >>confdefs.h
9975
9976 fi
9977
9978 as_ac_File=`$as_echo "ac_cv_file_"/usr/include/maxminddb.h"" | $as_tr_sh`
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/usr/include/maxminddb.h\"" >&5
9980 $as_echo_n "checking for \"/usr/include/maxminddb.h\"... " >&6; }
9981 if eval \${$as_ac_File+:} false; then :
9982 $as_echo_n "(cached) " >&6
9983 else
9984 test "$cross_compiling" = yes &&
9985 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
9986 if test -r ""/usr/include/maxminddb.h""; then
9987 eval "$as_ac_File=yes"
9988 else
9989 eval "$as_ac_File=no"
9990 fi
9991 fi
9992 eval ac_res=\$$as_ac_File
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9994 $as_echo "$ac_res" >&6; }
9995 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
9996 V_INCLS="$V_INCLS -I/usr/include"
9997 else
9998 as_ac_File=`$as_echo "ac_cv_file_"/opt/homebrew/include/maxminddb.h"" | $as_tr_sh`
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/opt/homebrew/include/maxminddb.h\"" >&5
10000 $as_echo_n "checking for \"/opt/homebrew/include/maxminddb.h\"... " >&6; }
10001 if eval \${$as_ac_File+:} false; then :
10002 $as_echo_n "(cached) " >&6
10003 else
10004 test "$cross_compiling" = yes &&
10005 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10006 if test -r ""/opt/homebrew/include/maxminddb.h""; then
10007 eval "$as_ac_File=yes"
10008 else
10009 eval "$as_ac_File=no"
10010 fi
10011 fi
10012 eval ac_res=\$$as_ac_File
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10014 $as_echo "$ac_res" >&6; }
10015 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
10016 V_INCLS="$V_INCLS -I/opt/homebrew/include"
10017 fi
10018
10019 fi
10020
10021 fi
10022 fi
10023
10024 if test "x$LIBMAXMINDDB_LIBS" = "x"; then
10025
10026
10027 # Check whether --with-GeoIP was given.
10028 if test "${with_GeoIP+set}" = set; then :
10029 withval=$with_GeoIP; with_geoip="$withval"
10030 else
10031 with_geoip="yes"
10032 fi
10033
10034
10035 geoip=FAIL
10036 lastdir=FAIL
10037
10038 if ! test ${with_geoip} = "no"; then
10039 if test ${with_geoip} = "yes"; then
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP_open in -lGeoIP" >&5
10041 $as_echo_n "checking for GeoIP_open in -lGeoIP... " >&6; }
10042 if ${ac_cv_lib_GeoIP_GeoIP_open+:} false; then :
10043 $as_echo_n "(cached) " >&6
10044 else
10045 ac_check_lib_save_LIBS=$LIBS
10046 LIBS="-lGeoIP $LIBS"
10047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048 /* end confdefs.h. */
10049
10050 /* Override any GCC internal prototype to avoid an error.
10051 Use char because int might match the return type of a GCC
10052 builtin and then its argument prototype would still apply. */
10053 #ifdef __cplusplus
10054 extern "C"
10055 #endif
10056 char GeoIP_open ();
10057 int
10058 main ()
10059 {
10060 return GeoIP_open ();
10061 ;
10062 return 0;
10063 }
10064 _ACEOF
10065 if ac_fn_c_try_link "$LINENO"; then :
10066 ac_cv_lib_GeoIP_GeoIP_open=yes
10067 else
10068 ac_cv_lib_GeoIP_GeoIP_open=no
10069 fi
10070 rm -f core conftest.err conftest.$ac_objext \
10071 conftest$ac_exeext conftest.$ac_ext
10072 LIBS=$ac_check_lib_save_LIBS
10073 fi
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
10075 $as_echo "$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
10076 if test "x$ac_cv_lib_GeoIP_GeoIP_open" = xyes; then :
10077 geoip="-GeoIP"
10078 fi
10079
10080 if test $geoip = FAIL ; then
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard GeoIP installation" >&5
10082 $as_echo_n "checking for standard GeoIP installation... " >&6; }
10083 for dir in /usr/lib64 /usr/local/lib ; do
10084 if test -r $dir/libGeoIP.a ; then
10085 geoip=$dir
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $geoip" >&5
10087 $as_echo "$geoip" >&6; }
10088 V_GEOIPDEP="-L$geoip -lGeoIP"
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for specified GeoIP.h" >&5
10090 $as_echo_n "checking for specified GeoIP.h... " >&6; }
10091 if test -r $dir/include/GeoIP.h; then
10092 d=$dir/include
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
10094 $as_echo "found" >&6; }
10095 V_INCLS="-I$d $V_INCLS"
10096 fi
10097 fi
10098 done
10099
10100 if test $geoip = FAIL; then
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10102 $as_echo "no" >&6; }
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for local GeoIP library and includes" >&5
10104 $as_echo_n "checking for local GeoIP library and includes... " >&6; }
10105 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
10106 grep -E '/GeoIP-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
10107
10108 for dir in $places ; do
10109 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'`
10110 if test $lastdir = $basedir ; then
10111 continue;
10112 fi
10113 lastdir=$dir
10114 if test -r $dir/libGeoIP/.libs/libGeoIP.a ; then
10115 if test -r $dir/libGeoIP/GeoIP.h ; then
10116 geoip=$dir/libGeoIP/.libs
10117 d=$dir/libGeoIP
10118 fi
10119 fi
10120 done
10121 if ! test $geoip = FAIL; then
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $geoip" >&5
10123 $as_echo "$geoip" >&6; }
10124 V_GEOIPDEP="-L$geoip -lGeoIP"
10125 V_INCLS="-I$d $V_INCLS"
10126 else
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10128 $as_echo "no" >&6; }
10129 fi
10130 fi
10131 else
10132 V_GEOIPDEP="-lGeoIP"
10133 fi
10134 fi
10135
10136 if test $geoip = FAIL; then
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP library" >&5
10138 $as_echo_n "checking for GeoIP library... " >&6; }
10139 for dir in ${with_geoip}; do
10140 if test -r $dir/lib/libGeoIP.a ; then
10141 geoip=$dir/lib
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $geoip" >&5
10143 $as_echo "$geoip" >&6; }
10144 V_GEOIPDEP="-L$geoip -lGeoIP"
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for specified GeoIP.h" >&5
10146 $as_echo_n "checking for specified GeoIP.h... " >&6; }
10147 if test -r $dir/include/GeoIP.h; then
10148 d=$dir/include
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
10150 $as_echo "found" >&6; }
10151 V_INCLS="-I$d $V_INCLS"
10152 fi
10153 fi
10154 done
10155 if test $geoip = FAIL; then
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10157 $as_echo "no" >&6; }
10158 fi
10159 fi
10160
10161 if ! test $geoip = FAIL; then
10162
10163 $as_echo "#define ARGUS_GEOIP /**/" >>confdefs.h
10164
10165 fi
10166 fi
10167
10168 fi
10169
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking tm_gmtoff in struct tm" >&5
10171 $as_echo_n "checking tm_gmtoff in struct tm... " >&6; }
10172 if ${tcl_cv_member_tm_gmtoff+:} false; then :
10173 $as_echo_n "(cached) " >&6
10174 else
10175
10176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10177 /* end confdefs.h. */
10178 #include <time.h>
10179 int
10180 main ()
10181 {
10182 struct tm tm; tm.tm_gmtoff;
10183 ;
10184 return 0;
10185 }
10186 _ACEOF
10187 if ac_fn_c_try_compile "$LINENO"; then :
10188 tcl_cv_member_tm_gmtoff=yes
10189 else
10190 tcl_cv_member_tm_gmtoff=no
10191 fi
10192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10193 fi
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_member_tm_gmtoff" >&5
10195 $as_echo "$tcl_cv_member_tm_gmtoff" >&6; }
10196 if test $tcl_cv_member_tm_gmtoff = yes ; then
10197
10198 $as_echo "#define HAVE_TM_GMTOFF /**/" >>confdefs.h
10199
10200 fi
10201
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys_errlist in stdio.h" >&5
10203 $as_echo_n "checking sys_errlist in stdio.h... " >&6; }
10204 if ${arg_cv_sys_errlist+:} false; then :
10205 $as_echo_n "(cached) " >&6
10206 else
10207
10208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10209 /* end confdefs.h. */
10210 #include <stdio.h>
10211 int
10212 main ()
10213 {
10214 char *ptr = sys_errlist[0];
10215 ;
10216 return 0;
10217 }
10218 _ACEOF
10219 if ac_fn_c_try_compile "$LINENO"; then :
10220 arg_cv_sys_errlist=yes
10221 else
10222 arg_cv_sys_errlist=no
10223 fi
10224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10225 fi
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arg_cv_sys_errlist" >&5
10227 $as_echo "$arg_cv_sys_errlist" >&6; }
10228 if test $arg_cv_sys_errlist = yes ; then
10229
10230 $as_echo "#define ARGUS_SYS_ERRLIST /**/" >>confdefs.h
10231
10232 fi
10233
10234 if test "$V_FLOWTOOLS" = "-lft" ; then
10235 LIBS="$LIBS $V_FLOWTOOLS"
10236 fi
10237
10238 INSTALL_LIB="../lib"
10239 INSTALL_BIN="../bin"
10240
10241 DIRS="./common ./include ./clients"
10242
10243 if test "$with_examples" != no; then
10244 DIRS="$DIRS ./examples"
10245 fi
10246
10247 if test "$with_perllib" != no; then
10248 DIRS="$DIRS ./perllib"
10249 fi
10250
10251 if test "$with_pythonlib" != no; then
10252 DIRS="$DIRS ./pythonlib"
10253 fi
10254
10255 if test "$with_pluribus" != no; then
10256
10257 $as_echo "#define ARGUS_PLURIBUS /**/" >>confdefs.h
10258
10259 fi
10260
10261 V_INCLS_EXAMPLES=`echo $V_INCLS | sed -e 's/\.\./..\/../'`
10262
10263 # from https://www.freedesktop.org/software/systemd/man/daemon.html
10264
10265
10266
10267
10268
10269
10270
10271
10272 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10273 if test -n "$ac_tool_prefix"; then
10274 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10275 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10277 $as_echo_n "checking for $ac_word... " >&6; }
10278 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10279 $as_echo_n "(cached) " >&6
10280 else
10281 case $PKG_CONFIG in
10282 [\\/]* | ?:[\\/]*)
10283 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10284 ;;
10285 *)
10286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10287 for as_dir in $PATH
10288 do
10289 IFS=$as_save_IFS
10290 test -z "$as_dir" && as_dir=.
10291 for ac_exec_ext in '' $ac_executable_extensions; do
10292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10293 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10295 break 2
10296 fi
10297 done
10298 done
10299 IFS=$as_save_IFS
10300
10301 ;;
10302 esac
10303 fi
10304 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10305 if test -n "$PKG_CONFIG"; then
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10307 $as_echo "$PKG_CONFIG" >&6; }
10308 else
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10310 $as_echo "no" >&6; }
10311 fi
10312
10313
10314 fi
10315 if test -z "$ac_cv_path_PKG_CONFIG"; then
10316 ac_pt_PKG_CONFIG=$PKG_CONFIG
10317 # Extract the first word of "pkg-config", so it can be a program name with args.
10318 set dummy pkg-config; ac_word=$2
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10320 $as_echo_n "checking for $ac_word... " >&6; }
10321 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10322 $as_echo_n "(cached) " >&6
10323 else
10324 case $ac_pt_PKG_CONFIG in
10325 [\\/]* | ?:[\\/]*)
10326 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10327 ;;
10328 *)
10329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10330 for as_dir in $PATH
10331 do
10332 IFS=$as_save_IFS
10333 test -z "$as_dir" && as_dir=.
10334 for ac_exec_ext in '' $ac_executable_extensions; do
10335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10336 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10338 break 2
10339 fi
10340 done
10341 done
10342 IFS=$as_save_IFS
10343
10344 ;;
10345 esac
10346 fi
10347 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10348 if test -n "$ac_pt_PKG_CONFIG"; then
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10350 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10351 else
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10353 $as_echo "no" >&6; }
10354 fi
10355
10356 if test "x$ac_pt_PKG_CONFIG" = x; then
10357 PKG_CONFIG=""
10358 else
10359 case $cross_compiling:$ac_tool_warned in
10360 yes:)
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10363 ac_tool_warned=yes ;;
10364 esac
10365 PKG_CONFIG=$ac_pt_PKG_CONFIG
10366 fi
10367 else
10368 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10369 fi
10370
10371 fi
10372 if test -n "$PKG_CONFIG"; then
10373 _pkg_min_version=0.9.0
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10375 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10376 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10378 $as_echo "yes" >&6; }
10379 else
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10381 $as_echo "no" >&6; }
10382 PKG_CONFIG=""
10383 fi
10384 fi
10385
10386 if test -d "/usr/lib/systemd"; then
10387 if test -n "$PKG_CONFIG"; then
10388
10389 # Check whether --with-systemdsystemunitdir was given.
10390 if test "${with_systemdsystemunitdir+set}" = set; then :
10391 withval=$with_systemdsystemunitdir;
10392 else
10393 with_systemdsystemunitdir=auto
10394 fi
10395
10396 if test "x$with_systemdsystemunitdir" = "xyes" -o "x$with_systemdsystemunitdir" = "xauto"; then :
10397
10398 def_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
10399
10400 if test "x$def_systemdsystemunitdir" = "x"; then :
10401 if test "x$with_systemdsystemunitdir" = "xyes"; then :
10402 as_fn_error $? "systemd support requested but pkg-config unable to query systemd package" "$LINENO" 5
10403 fi
10404 with_systemdsystemunitdir=no
10405 else
10406 with_systemdsystemunitdir="$def_systemdsystemunitdir"
10407 fi
10408 fi
10409 if test "x$with_systemdsystemunitdir" != "xno"; then :
10410 systemdsystemunitdir=$with_systemdsystemunitdir
10411
10412 fi
10413 fi
10414 fi
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441 # Check whether --with-libcurl was given.
10442 if test "${with_libcurl+set}" = set; then :
10443 withval=$with_libcurl; _libcurl_with=$withval
10444 else
10445 _libcurl_with=yes
10446 fi
10447
10448
10449 if test "$_libcurl_with" != "no" ; then
10450
10451 for ac_prog in gawk mawk nawk awk
10452 do
10453 # Extract the first word of "$ac_prog", so it can be a program name with args.
10454 set dummy $ac_prog; ac_word=$2
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10456 $as_echo_n "checking for $ac_word... " >&6; }
10457 if ${ac_cv_prog_AWK+:} false; then :
10458 $as_echo_n "(cached) " >&6
10459 else
10460 if test -n "$AWK"; then
10461 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10462 else
10463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10464 for as_dir in $PATH
10465 do
10466 IFS=$as_save_IFS
10467 test -z "$as_dir" && as_dir=.
10468 for ac_exec_ext in '' $ac_executable_extensions; do
10469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10470 ac_cv_prog_AWK="$ac_prog"
10471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10472 break 2
10473 fi
10474 done
10475 done
10476 IFS=$as_save_IFS
10477
10478 fi
10479 fi
10480 AWK=$ac_cv_prog_AWK
10481 if test -n "$AWK"; then
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
10483 $as_echo "$AWK" >&6; }
10484 else
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10486 $as_echo "no" >&6; }
10487 fi
10488
10489
10490 test -n "$AWK" && break
10491 done
10492
10493
10494 _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
10495
10496 _libcurl_try_link=yes
10497
10498 if test -d "$_libcurl_with" ; then
10499 LIBCURL_CPPFLAGS="-I$withval/include"
10500 _libcurl_ldflags="-L$withval/lib"
10501 # Extract the first word of "curl-config", so it can be a program name with args.
10502 set dummy curl-config; ac_word=$2
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10504 $as_echo_n "checking for $ac_word... " >&6; }
10505 if ${ac_cv_path__libcurl_config+:} false; then :
10506 $as_echo_n "(cached) " >&6
10507 else
10508 case $_libcurl_config in
10509 [\\/]* | ?:[\\/]*)
10510 ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
10511 ;;
10512 *)
10513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10514 for as_dir in "$withval/bin"
10515 do
10516 IFS=$as_save_IFS
10517 test -z "$as_dir" && as_dir=.
10518 for ac_exec_ext in '' $ac_executable_extensions; do
10519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10520 ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
10521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10522 break 2
10523 fi
10524 done
10525 done
10526 IFS=$as_save_IFS
10527
10528 ;;
10529 esac
10530 fi
10531 _libcurl_config=$ac_cv_path__libcurl_config
10532 if test -n "$_libcurl_config"; then
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
10534 $as_echo "$_libcurl_config" >&6; }
10535 else
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10537 $as_echo "no" >&6; }
10538 fi
10539
10540
10541 else
10542 # Extract the first word of "curl-config", so it can be a program name with args.
10543 set dummy curl-config; ac_word=$2
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10545 $as_echo_n "checking for $ac_word... " >&6; }
10546 if ${ac_cv_path__libcurl_config+:} false; then :
10547 $as_echo_n "(cached) " >&6
10548 else
10549 case $_libcurl_config in
10550 [\\/]* | ?:[\\/]*)
10551 ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
10552 ;;
10553 *)
10554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10555 for as_dir in $PATH
10556 do
10557 IFS=$as_save_IFS
10558 test -z "$as_dir" && as_dir=.
10559 for ac_exec_ext in '' $ac_executable_extensions; do
10560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10561 ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
10562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10563 break 2
10564 fi
10565 done
10566 done
10567 IFS=$as_save_IFS
10568
10569 ;;
10570 esac
10571 fi
10572 _libcurl_config=$ac_cv_path__libcurl_config
10573 if test -n "$_libcurl_config"; then
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
10575 $as_echo "$_libcurl_config" >&6; }
10576 else
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10578 $as_echo "no" >&6; }
10579 fi
10580
10581
10582 fi
10583
10584 if test x$_libcurl_config != "x" ; then
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5
10586 $as_echo_n "checking for the version of libcurl... " >&6; }
10587 if ${libcurl_cv_lib_curl_version+:} false; then :
10588 $as_echo_n "(cached) " >&6
10589 else
10590 libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
10591 fi
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5
10593 $as_echo "$libcurl_cv_lib_curl_version" >&6; }
10594
10595 _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
10596 _libcurl_wanted=`echo 0 | $_libcurl_version_parse`
10597
10598 if test $_libcurl_wanted -gt 0 ; then
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version " >&5
10600 $as_echo_n "checking for libcurl >= version ... " >&6; }
10601 if ${libcurl_cv_lib_version_ok+:} false; then :
10602 $as_echo_n "(cached) " >&6
10603 else
10604
10605 if test $_libcurl_version -ge $_libcurl_wanted ; then
10606 libcurl_cv_lib_version_ok=yes
10607 else
10608 libcurl_cv_lib_version_ok=no
10609 fi
10610
10611 fi
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5
10613 $as_echo "$libcurl_cv_lib_version_ok" >&6; }
10614 fi
10615
10616 if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
10617 if test x"$LIBCURL_CPPFLAGS" = "x" ; then
10618 LIBCURL_CPPFLAGS=`$_libcurl_config --cflags`
10619 fi
10620 if test x"$LIBCURL" = "x" ; then
10621 LIBCURL=`$_libcurl_config --libs`
10622
10623 # This is so silly, but Apple actually has a bug in their
10624 # curl-config script. Fixed in Tiger, but there are still
10625 # lots of Panther installs around.
10626 case "${host}" in
10627 powerpc-apple-darwin7*)
10628 LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`
10629 ;;
10630 esac
10631 fi
10632
10633 # All curl-config scripts support --feature
10634 _libcurl_features=`$_libcurl_config --feature`
10635
10636 # Is it modern enough to have --protocols? (7.12.4)
10637 if test $_libcurl_version -ge 461828 ; then
10638 _libcurl_protocols=`$_libcurl_config --protocols`
10639 fi
10640 else
10641 _libcurl_try_link=no
10642 fi
10643
10644 unset _libcurl_wanted
10645 fi
10646
10647 if test $_libcurl_try_link = yes ; then
10648
10649 # we did not find curl-config, so let's see if the user-supplied
10650 # link line (or failing that, "-lcurl") is enough.
10651 LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"}
10652
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5
10654 $as_echo_n "checking whether libcurl is usable... " >&6; }
10655 if ${libcurl_cv_lib_curl_usable+:} false; then :
10656 $as_echo_n "(cached) " >&6
10657 else
10658
10659 _libcurl_save_cppflags=$CPPFLAGS
10660 CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS"
10661 _libcurl_save_libs=$LIBS
10662 LIBS="$LIBCURL $LIBS"
10663
10664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10665 /* end confdefs.h. */
10666 #include <curl/curl.h>
10667 int
10668 main ()
10669 {
10670
10671 /* Try and use a few common options to force a failure if we are
10672 missing symbols or cannot link. */
10673 int x;
10674 curl_easy_setopt(NULL,CURLOPT_URL,NULL);
10675 x=CURL_ERROR_SIZE;
10676 x=CURLOPT_WRITEFUNCTION;
10677 x=CURLOPT_WRITEDATA;
10678 x=CURLOPT_ERRORBUFFER;
10679 x=CURLOPT_STDERR;
10680 x=CURLOPT_VERBOSE;
10681 if (x) {;}
10682
10683 ;
10684 return 0;
10685 }
10686 _ACEOF
10687 if ac_fn_c_try_link "$LINENO"; then :
10688 libcurl_cv_lib_curl_usable=yes
10689 else
10690 libcurl_cv_lib_curl_usable=no
10691 fi
10692 rm -f core conftest.err conftest.$ac_objext \
10693 conftest$ac_exeext conftest.$ac_ext
10694
10695 CPPFLAGS=$_libcurl_save_cppflags
10696 LIBS=$_libcurl_save_libs
10697 unset _libcurl_save_cppflags
10698 unset _libcurl_save_libs
10699
10700 fi
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5
10702 $as_echo "$libcurl_cv_lib_curl_usable" >&6; }
10703
10704 if test $libcurl_cv_lib_curl_usable = yes ; then
10705
10706 # Does curl_free() exist in this version of libcurl?
10707 # If not, fake it with free()
10708
10709 _libcurl_save_cppflags=$CPPFLAGS
10710 CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
10711 _libcurl_save_libs=$LIBS
10712 LIBS="$LIBS $LIBCURL"
10713
10714 ac_fn_c_check_decl "$LINENO" "curl_free" "ac_cv_have_decl_curl_free" "#include <curl/curl.h>
10715 "
10716 if test "x$ac_cv_have_decl_curl_free" = xyes; then :
10717
10718 else
10719
10720 $as_echo "#define curl_free free" >>confdefs.h
10721
10722 fi
10723
10724
10725 CPPFLAGS=$_libcurl_save_cppflags
10726 LIBS=$_libcurl_save_libs
10727 unset _libcurl_save_cppflags
10728 unset _libcurl_save_libs
10729
10730
10731 $as_echo "#define HAVE_LIBCURL 1" >>confdefs.h
10732
10733
10734
10735
10736 for _libcurl_feature in $_libcurl_features ; do
10737 cat >>confdefs.h <<_ACEOF
10738 #define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
10739 _ACEOF
10740
10741 eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
10742 done
10743
10744 if test "x$_libcurl_protocols" = "x" ; then
10745
10746 # We do not have --protocols, so just assume that all
10747 # protocols are available
10748 _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT TFTP"
10749
10750 if test x$libcurl_feature_SSL = xyes ; then
10751 _libcurl_protocols="$_libcurl_protocols HTTPS"
10752
10753 # FTPS was not standards-compliant until version
10754 # 7.11.0 (0x070b00 == 461568)
10755 if test $_libcurl_version -ge 461568; then
10756 _libcurl_protocols="$_libcurl_protocols FTPS"
10757 fi
10758 fi
10759
10760 # RTSP, IMAP, POP3 and SMTP were added in
10761 # 7.20.0 (0x071400 == 463872)
10762 if test $_libcurl_version -ge 463872; then
10763 _libcurl_protocols="$_libcurl_protocols RTSP IMAP POP3 SMTP"
10764 fi
10765 fi
10766
10767 for _libcurl_protocol in $_libcurl_protocols ; do
10768 cat >>confdefs.h <<_ACEOF
10769 #define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
10770 _ACEOF
10771
10772 eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
10773 done
10774 else
10775 unset LIBCURL
10776 unset LIBCURL_CPPFLAGS
10777 fi
10778 fi
10779
10780 unset _libcurl_try_link
10781 unset _libcurl_version_parse
10782 unset _libcurl_config
10783 unset _libcurl_feature
10784 unset _libcurl_features
10785 unset _libcurl_protocol
10786 unset _libcurl_protocols
10787 unset _libcurl_version
10788 unset _libcurl_ldflags
10789 fi
10790
10791 if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
10792 # This is the IF-NO path
10793 :
10794 else
10795 # This is the IF-YES path
10796 :
10797 fi
10798
10799 unset _libcurl_with
10800
10801
10802 # Check whether --with-curlexe was given.
10803 if test "${with_curlexe+set}" = set; then :
10804 withval=$with_curlexe;
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl binary" >&5
10806 $as_echo_n "checking for curl binary... " >&6; }
10807 if ! test -f "$withval" ; then
10808 as_fn_error $? "cannot find file $withval" "$LINENO" 5
10809 fi
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
10811 $as_echo "found" >&6; }
10812
10813 cat >>confdefs.h <<_ACEOF
10814 #define ARGUS_CURLEXE "$withval"
10815 _ACEOF
10816
10817 ARGUS_CURLEXE=$withval
10818
10819
10820
10821 fi
10822
10823
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libuuid is found" >&5
10825 $as_echo_n "checking whether libuuid is found... " >&6; };
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_parse in -luuid" >&5
10827 $as_echo_n "checking for uuid_parse in -luuid... " >&6; }
10828 if ${ac_cv_lib_uuid_uuid_parse+:} false; then :
10829 $as_echo_n "(cached) " >&6
10830 else
10831 ac_check_lib_save_LIBS=$LIBS
10832 LIBS="-luuid $LIBS"
10833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10834 /* end confdefs.h. */
10835
10836 /* Override any GCC internal prototype to avoid an error.
10837 Use char because int might match the return type of a GCC
10838 builtin and then its argument prototype would still apply. */
10839 #ifdef __cplusplus
10840 extern "C"
10841 #endif
10842 char uuid_parse ();
10843 int
10844 main ()
10845 {
10846 return uuid_parse ();
10847 ;
10848 return 0;
10849 }
10850 _ACEOF
10851 if ac_fn_c_try_link "$LINENO"; then :
10852 ac_cv_lib_uuid_uuid_parse=yes
10853 else
10854 ac_cv_lib_uuid_uuid_parse=no
10855 fi
10856 rm -f core conftest.err conftest.$ac_objext \
10857 conftest$ac_exeext conftest.$ac_ext
10858 LIBS=$ac_check_lib_save_LIBS
10859 fi
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_parse" >&5
10861 $as_echo "$ac_cv_lib_uuid_uuid_parse" >&6; }
10862 if test "x$ac_cv_lib_uuid_uuid_parse" = xyes; then :
10863
10864 UUID_LIBS=-luuid
10865
10866
10867 fi
10868
10869
10870
10871 case "$target_os" in
10872 linux*)
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether machine_id is found" >&5
10874 $as_echo_n "checking whether machine_id is found... " >&6; };
10875 as_ac_File=`$as_echo "ac_cv_file_"/var/lib/dbus/machine-id"" | $as_tr_sh`
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/var/lib/dbus/machine-id\"" >&5
10877 $as_echo_n "checking for \"/var/lib/dbus/machine-id\"... " >&6; }
10878 if eval \${$as_ac_File+:} false; then :
10879 $as_echo_n "(cached) " >&6
10880 else
10881 test "$cross_compiling" = yes &&
10882 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10883 if test -r ""/var/lib/dbus/machine-id""; then
10884 eval "$as_ac_File=yes"
10885 else
10886 eval "$as_ac_File=no"
10887 fi
10888 fi
10889 eval ac_res=\$$as_ac_File
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10891 $as_echo "$ac_res" >&6; }
10892 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
10893
10894 $as_echo "#define HAVE_MACHINE_ID /**/" >>confdefs.h
10895
10896 fi
10897
10898 as_ac_File=`$as_echo "ac_cv_file_"/etc/machine-id"" | $as_tr_sh`
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/etc/machine-id\"" >&5
10900 $as_echo_n "checking for \"/etc/machine-id\"... " >&6; }
10901 if eval \${$as_ac_File+:} false; then :
10902 $as_echo_n "(cached) " >&6
10903 else
10904 test "$cross_compiling" = yes &&
10905 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10906 if test -r ""/etc/machine-id""; then
10907 eval "$as_ac_File=yes"
10908 else
10909 eval "$as_ac_File=no"
10910 fi
10911 fi
10912 eval ac_res=\$$as_ac_File
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10914 $as_echo "$ac_res" >&6; }
10915 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
10916
10917 $as_echo "#define HAVE_MACHINE_ID /**/" >>confdefs.h
10918
10919 fi
10920
10921 ;;
10922
10923 cygwin*)
10924 ;;
10925
10926 *bsd*)
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether machine_id is found" >&5
10928 $as_echo_n "checking whether machine_id is found... " >&6; };
10929 as_ac_File=`$as_echo "ac_cv_file_"/etc/machine-id"" | $as_tr_sh`
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/etc/machine-id\"" >&5
10931 $as_echo_n "checking for \"/etc/machine-id\"... " >&6; }
10932 if eval \${$as_ac_File+:} false; then :
10933 $as_echo_n "(cached) " >&6
10934 else
10935 test "$cross_compiling" = yes &&
10936 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10937 if test -r ""/etc/machine-id""; then
10938 eval "$as_ac_File=yes"
10939 else
10940 eval "$as_ac_File=no"
10941 fi
10942 fi
10943 eval ac_res=\$$as_ac_File
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10945 $as_echo "$ac_res" >&6; }
10946 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
10947
10948 $as_echo "#define HAVE_MACHINE_ID /**/" >>confdefs.h
10949
10950 fi
10951
10952 ;;
10953 esac
10954
10955
10956
10957
10958 # Check whether --with-c-ares was given.
10959 if test "${with_c_ares+set}" = set; then :
10960 withval=$with_c_ares; with_c_ares="$withval"
10961 else
10962 with_c_ares="no"
10963 fi
10964
10965
10966 if test "x$with_c_ares" = "xyes"; then
10967
10968 pkg_failed=no
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCARES" >&5
10970 $as_echo_n "checking for LIBCARES... " >&6; }
10971
10972 if test -n "$LIBCARES_CFLAGS"; then
10973 pkg_cv_LIBCARES_CFLAGS="$LIBCARES_CFLAGS"
10974 elif test -n "$PKG_CONFIG"; then
10975 if test -n "$PKG_CONFIG" && \
10976 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcares >= 1.10.0\""; } >&5
10977 ($PKG_CONFIG --exists --print-errors "libcares >= 1.10.0") 2>&5
10978 ac_status=$?
10979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10980 test $ac_status = 0; }; then
10981 pkg_cv_LIBCARES_CFLAGS=`$PKG_CONFIG --cflags "libcares >= 1.10.0" 2>/dev/null`
10982 test "x$?" != "x0" && pkg_failed=yes
10983 else
10984 pkg_failed=yes
10985 fi
10986 else
10987 pkg_failed=untried
10988 fi
10989 if test -n "$LIBCARES_LIBS"; then
10990 pkg_cv_LIBCARES_LIBS="$LIBCARES_LIBS"
10991 elif test -n "$PKG_CONFIG"; then
10992 if test -n "$PKG_CONFIG" && \
10993 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcares >= 1.10.0\""; } >&5
10994 ($PKG_CONFIG --exists --print-errors "libcares >= 1.10.0") 2>&5
10995 ac_status=$?
10996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10997 test $ac_status = 0; }; then
10998 pkg_cv_LIBCARES_LIBS=`$PKG_CONFIG --libs "libcares >= 1.10.0" 2>/dev/null`
10999 test "x$?" != "x0" && pkg_failed=yes
11000 else
11001 pkg_failed=yes
11002 fi
11003 else
11004 pkg_failed=untried
11005 fi
11006
11007
11008
11009 if test $pkg_failed = yes; then
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11011 $as_echo "no" >&6; }
11012
11013 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11014 _pkg_short_errors_supported=yes
11015 else
11016 _pkg_short_errors_supported=no
11017 fi
11018 if test $_pkg_short_errors_supported = yes; then
11019 LIBCARES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcares >= 1.10.0" 2>&1`
11020 else
11021 LIBCARES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcares >= 1.10.0" 2>&1`
11022 fi
11023 # Put the nasty error message in config.log where it belongs
11024 echo "$LIBCARES_PKG_ERRORS" >&5
11025
11026 as_fn_error $? "Package requirements (libcares >= 1.10.0) were not met:
11027
11028 $LIBCARES_PKG_ERRORS
11029
11030 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11031 installed software in a non-standard prefix.
11032
11033 Alternatively, you may set the environment variables LIBCARES_CFLAGS
11034 and LIBCARES_LIBS to avoid the need to call pkg-config.
11035 See the pkg-config man page for more details." "$LINENO" 5
11036 elif test $pkg_failed = untried; then
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11038 $as_echo "no" >&6; }
11039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11041 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11042 is in your PATH or set the PKG_CONFIG environment variable to the full
11043 path to pkg-config.
11044
11045 Alternatively, you may set the environment variables LIBCARES_CFLAGS
11046 and LIBCARES_LIBS to avoid the need to call pkg-config.
11047 See the pkg-config man page for more details.
11048
11049 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11050 See \`config.log' for more details" "$LINENO" 5; }
11051 else
11052 LIBCARES_CFLAGS=$pkg_cv_LIBCARES_CFLAGS
11053 LIBCARES_LIBS=$pkg_cv_LIBCARES_LIBS
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11055 $as_echo "yes" >&6; }
11056
11057 $as_echo "#define HAVE_LIBCARES /**/" >>confdefs.h
11058
11059 fi
11060 fi
11061
11062
11063 #
11064 # Perl stuff
11065 #
11066
11067
11068
11069 #
11070 # Check if perl executable exists.
11071 #
11072 for ac_prog in "${PERL-perl}"
11073 do
11074 # Extract the first word of "$ac_prog", so it can be a program name with args.
11075 set dummy $ac_prog; ac_word=$2
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11077 $as_echo_n "checking for $ac_word... " >&6; }
11078 if ${ac_cv_path_PERL+:} false; then :
11079 $as_echo_n "(cached) " >&6
11080 else
11081 case $PERL in
11082 [\\/]* | ?:[\\/]*)
11083 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11084 ;;
11085 *)
11086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11087 for as_dir in $PATH
11088 do
11089 IFS=$as_save_IFS
11090 test -z "$as_dir" && as_dir=.
11091 for ac_exec_ext in '' $ac_executable_extensions; do
11092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11093 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11095 break 2
11096 fi
11097 done
11098 done
11099 IFS=$as_save_IFS
11100
11101 ;;
11102 esac
11103 fi
11104 PERL=$ac_cv_path_PERL
11105 if test -n "$PERL"; then
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11107 $as_echo "$PERL" >&6; }
11108 else
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11110 $as_echo "no" >&6; }
11111 fi
11112
11113
11114 test -n "$PERL" && break
11115 done
11116
11117
11118 if test -n "$PERL" ; then
11119
11120 #
11121 # Check for Perl prefix.
11122 #
11123
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl prefix" >&5
11125 $as_echo_n "checking for Perl prefix... " >&6; }
11126 if test -z "$PERL_EXT_PREFIX" ; then
11127 PERL_EXT_PREFIX=`$PERL -MConfig -e 'print $Config{prefix};'`;
11128 fi
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_EXT_PREFIX" >&5
11130 $as_echo "$PERL_EXT_PREFIX" >&6; }
11131
11132
11133 #
11134 # Check for Perl extensions include path.
11135 #
11136
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl extension include path" >&5
11138 $as_echo_n "checking for Perl extension include path... " >&6; }
11139 if test -z "$PERL_EXT_INC" ; then
11140 PERL_EXT_INC=`$PERL -MConfig -e 'print $Config{archlibexp}, "/CORE";'`;
11141 fi
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_EXT_INC" >&5
11143 $as_echo "$PERL_EXT_INC" >&6; }
11144
11145
11146 #
11147 # Check for the extensions target directory.
11148 #
11149
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl extension target directory" >&5
11151 $as_echo_n "checking for Perl extension target directory... " >&6; }
11152 if test -z "$PERL_EXT_LIB" ; then
11153 PERL_EXT_LIB=`$PERL -MConfig -e 'print $Config{sitearch};'`;
11154 fi
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_EXT_LIB" >&5
11156 $as_echo "$PERL_EXT_LIB" >&6; }
11157
11158
11159 #
11160 # Check for Perl CPP flags.
11161 #
11162
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl extensions C preprocessor flags" >&5
11164 $as_echo_n "checking for Perl extensions C preprocessor flags... " >&6; }
11165 if test -z "$PERL_EXT_CPPFLAGS" ; then
11166 PERL_EXT_CPPFLAGS=`$PERL -MConfig -e 'print $Config{cppflags};'`;
11167 fi
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_EXT_CPPFLAGS" >&5
11169 $as_echo "$PERL_EXT_CPPFLAGS" >&6; }
11170
11171
11172 #
11173 # Check for Perl extension link flags.
11174 #
11175
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl extensions linker flags" >&5
11177 $as_echo_n "checking for Perl extensions linker flags... " >&6; }
11178 if test -z "$PERL_EXT_LDFLAGS" ; then
11179 PERL_EXT_LDFLAGS=`$PERL -MConfig -e 'print $Config{lddlflags};'`;
11180 fi
11181 # Fix LDFLAGS for OS X. We don't want any -arch flags here, otherwise
11182 # linking will fail. Also, OS X Perl LDFLAGS contains "-arch ppc" which
11183 # is not supported by XCode anymore.
11184 case "${host}" in
11185 *darwin*)
11186 PERL_EXT_LDFLAGS=`echo ${PERL_EXT_LDFLAGS} | sed -e "s,-arch [^ ]*,,g"`
11187 ;;
11188 esac
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_EXT_LDFLAGS" >&5
11190 $as_echo "$PERL_EXT_LDFLAGS" >&6; }
11191
11192
11193 #
11194 # Check for Perl dynamic library extension.
11195 #
11196
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl dynamic library extension" >&5
11198 $as_echo_n "checking for Perl dynamic library extension... " >&6; }
11199 if test -z "$PERL_EXT_DLEXT" ; then
11200 PERL_EXT_DLEXT=`$PERL -MConfig -e 'print ".", $Config{'dlext'};'`;
11201 fi
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_EXT_DLEXT" >&5
11203 $as_echo "$PERL_EXT_DLEXT" >&6; }
11204
11205 fi
11206
11207 if test x"$PERL" = x; then
11208 as_fn_error $? "\"cannot find Perl\"" "$LINENO" 5
11209 fi
11210 V_PERL=$PERL
11211
11212 PERL_CFLAGS=`perl -MExtUtils::Embed -e ccopts`
11213 PERL_LDFLAGS=`perl -MExtUtils::Embed -e ldopts`
11214
11215 saved_CPPFLAGS=$CPPFLAGS
11216 CPPFLAGS="${saved_CPPFLAGS} ${PERL_CFLAGS}"
11217 for ac_header in EXTERN.h
11218 do :
11219 ac_fn_c_check_header_mongrel "$LINENO" "EXTERN.h" "ac_cv_header_EXTERN_h" "$ac_includes_default"
11220 if test "x$ac_cv_header_EXTERN_h" = xyes; then :
11221 cat >>confdefs.h <<_ACEOF
11222 #define HAVE_EXTERN_H 1
11223 _ACEOF
11224
11225 fi
11226
11227 done
11228
11229 CPPFLAGS="${saved_CPPFLAGS}"
11230
11231 #
11232 # Python stuff
11233 #
11234
11235 case "$target_os" in
11236 darwin*)
11237 am_cv_python_inc="/Library/Frameworks/Python.framework/Versions/"$PYTHON_VERSION"/include/python"$PYTHON_VERSION
11238 ;;
11239 *)
11240 am_cv_python_inc="/usr/include/python"$PYTHON_VERSION
11241 ;;
11242 esac
11243
11244 V_PYTHON_INCLS="-I"$am_cv_python_inc
11245 CPPFLAGS="${saved_CPPFLAGS} ${V_PYTHON_INCLS}"
11246 for ac_header in Python.h
11247 do :
11248 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
11249 if test "x$ac_cv_header_Python_h" = xyes; then :
11250 cat >>confdefs.h <<_ACEOF
11251 #define HAVE_PYTHON_H 1
11252 _ACEOF
11253
11254 fi
11255
11256 done
11257
11258 CPPFLAGS="${saved_CPPFLAGS}"
11259
11260 # Check whether --enable-python was given.
11261 if test "${enable_python+set}" = set; then :
11262 enableval=$enable_python; case "${enableval}" in
11263 yes) HAVE_PYTHON=yes ;;
11264 no) HAVE_PYTHON=no ;;
11265 *) as_fn_error $? "bad value ${enableval} for --enable-python" "$LINENO" 5 ;;
11266 esac
11267 else
11268 HAVE_PYTHON=yes
11269 fi
11270
11271
11272 if test "x$HAVE_PYTHON" = "xyes" ; then
11273
11274
11275
11276
11277
11278
11279 if test -n "$PYTHON"; then
11280 # If the user set $PYTHON, use it and don't search something else.
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3" >&5
11282 $as_echo_n "checking whether $PYTHON version is >= 3... " >&6; }
11283 prog="import sys
11284 # split strings by '.' and convert to numeric. Append some zeros
11285 # because we need at least 4 digits for the hex conversion.
11286 # map returns an iterator in Python 3.0 and a list in 2.x
11287 minver = list(map(int, '3'.split('.'))) + [0, 0, 0]
11288 minverhex = 0
11289 # xrange is not present in Python 3.0 and range returns an iterator
11290 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
11291 sys.exit(sys.hexversion < minverhex)"
11292 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
11293 ($PYTHON -c "$prog") >&5 2>&5
11294 ac_status=$?
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); }; then :
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11298 $as_echo "yes" >&6; }
11299 else
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11301 $as_echo "no" >&6; }
11302 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
11303 fi
11304 am_display_PYTHON=$PYTHON
11305 else
11306 # Otherwise, try each interpreter until we find one that satisfies
11307 # VERSION.
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3" >&5
11309 $as_echo_n "checking for a Python interpreter with version >= 3... " >&6; }
11310 if ${am_cv_pathless_PYTHON+:} false; then :
11311 $as_echo_n "(cached) " >&6
11312 else
11313
11314 for am_cv_pathless_PYTHON in python python2 python3 python3.15 python3.14 python3.13 python3.12 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
11315 test "$am_cv_pathless_PYTHON" = none && break
11316 prog="import sys
11317 # split strings by '.' and convert to numeric. Append some zeros
11318 # because we need at least 4 digits for the hex conversion.
11319 # map returns an iterator in Python 3.0 and a list in 2.x
11320 minver = list(map(int, '3'.split('.'))) + [0, 0, 0]
11321 minverhex = 0
11322 # xrange is not present in Python 3.0 and range returns an iterator
11323 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
11324 sys.exit(sys.hexversion < minverhex)"
11325 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
11326 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
11327 ac_status=$?
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); }; then :
11330 break
11331 fi
11332 done
11333 fi
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
11335 $as_echo "$am_cv_pathless_PYTHON" >&6; }
11336 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
11337 if test "$am_cv_pathless_PYTHON" = none; then
11338 PYTHON=:
11339 else
11340 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
11341 set dummy $am_cv_pathless_PYTHON; ac_word=$2
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11343 $as_echo_n "checking for $ac_word... " >&6; }
11344 if ${ac_cv_path_PYTHON+:} false; then :
11345 $as_echo_n "(cached) " >&6
11346 else
11347 case $PYTHON in
11348 [\\/]* | ?:[\\/]*)
11349 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11350 ;;
11351 *)
11352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11353 for as_dir in $PATH
11354 do
11355 IFS=$as_save_IFS
11356 test -z "$as_dir" && as_dir=.
11357 for ac_exec_ext in '' $ac_executable_extensions; do
11358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11359 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11361 break 2
11362 fi
11363 done
11364 done
11365 IFS=$as_save_IFS
11366
11367 ;;
11368 esac
11369 fi
11370 PYTHON=$ac_cv_path_PYTHON
11371 if test -n "$PYTHON"; then
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
11373 $as_echo "$PYTHON" >&6; }
11374 else
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11376 $as_echo "no" >&6; }
11377 fi
11378
11379
11380 fi
11381 am_display_PYTHON=$am_cv_pathless_PYTHON
11382 fi
11383
11384
11385 if test "$PYTHON" = :; then
11386 :
11387 else
11388
11389
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
11391 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
11392 if ${am_cv_python_version+:} false; then :
11393 $as_echo_n "(cached) " >&6
11394 else
11395 am_cv_python_version=`$PYTHON -c "import sys; print('%u.%u' % sys.version_info[:2])"`
11396 fi
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
11398 $as_echo "$am_cv_python_version" >&6; }
11399 PYTHON_VERSION=$am_cv_python_version
11400
11401
11402
11403 PYTHON_PREFIX='${prefix}'
11404
11405 PYTHON_EXEC_PREFIX='${exec_prefix}'
11406
11407
11408
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
11410 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
11411 if ${am_cv_python_platform+:} false; then :
11412 $as_echo_n "(cached) " >&6
11413 else
11414 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
11415 fi
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
11417 $as_echo "$am_cv_python_platform" >&6; }
11418 PYTHON_PLATFORM=$am_cv_python_platform
11419
11420
11421 # Just factor out some code duplication.
11422 am_python_setup_sysconfig="\
11423 import sys
11424 # Prefer sysconfig over distutils.sysconfig, for better compatibility
11425 # with python 3.x. See automake bug#10227.
11426 try:
11427 import sysconfig
11428 except ImportError:
11429 can_use_sysconfig = 0
11430 else:
11431 can_use_sysconfig = 1
11432 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
11433 # <https://github.com/pypa/virtualenv/issues/118>
11434 try:
11435 from platform import python_implementation
11436 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
11437 can_use_sysconfig = 0
11438 except ImportError:
11439 pass"
11440
11441
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
11443 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
11444 if ${am_cv_python_pythondir+:} false; then :
11445 $as_echo_n "(cached) " >&6
11446 else
11447 if test "x$prefix" = xNONE
11448 then
11449 am_py_prefix=$ac_default_prefix
11450 else
11451 am_py_prefix=$prefix
11452 fi
11453 am_cv_python_pythondir=`$PYTHON -c "
11454 $am_python_setup_sysconfig
11455 if can_use_sysconfig:
11456 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
11457 else:
11458 from distutils import sysconfig
11459 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
11460 sys.stdout.write(sitedir)"`
11461 case $am_cv_python_pythondir in
11462 $am_py_prefix*)
11463 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
11464 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
11465 ;;
11466 *)
11467 case $am_py_prefix in
11468 /usr|/System*) ;;
11469 *)
11470 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
11471 ;;
11472 esac
11473 ;;
11474 esac
11475
11476 fi
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
11478 $as_echo "$am_cv_python_pythondir" >&6; }
11479 pythondir=$am_cv_python_pythondir
11480
11481
11482
11483 pkgpythondir=\${pythondir}/$PACKAGE
11484
11485
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
11487 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
11488 if ${am_cv_python_pyexecdir+:} false; then :
11489 $as_echo_n "(cached) " >&6
11490 else
11491 if test "x$exec_prefix" = xNONE
11492 then
11493 am_py_exec_prefix=$am_py_prefix
11494 else
11495 am_py_exec_prefix=$exec_prefix
11496 fi
11497 am_cv_python_pyexecdir=`$PYTHON -c "
11498 $am_python_setup_sysconfig
11499 if can_use_sysconfig:
11500 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
11501 else:
11502 from distutils import sysconfig
11503 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
11504 sys.stdout.write(sitedir)"`
11505 case $am_cv_python_pyexecdir in
11506 $am_py_exec_prefix*)
11507 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
11508 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
11509 ;;
11510 *)
11511 case $am_py_exec_prefix in
11512 /usr|/System*) ;;
11513 *)
11514 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
11515 ;;
11516 esac
11517 ;;
11518 esac
11519
11520 fi
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
11522 $as_echo "$am_cv_python_pyexecdir" >&6; }
11523 pyexecdir=$am_cv_python_pyexecdir
11524
11525
11526
11527 pkgpyexecdir=\${pyexecdir}/$PACKAGE
11528
11529
11530
11531 fi
11532
11533
11534
11535 py_mod_var=`echo numpy'_' | sed 'y%./+-%__p_%'`
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module numpy" >&5
11537 $as_echo_n "checking for python module numpy... " >&6; }
11538 if eval \${py_cv_mod_$py_mod_var+:} false; then :
11539 $as_echo_n "(cached) " >&6
11540 else
11541
11542 prog="
11543 import sys
11544 try:
11545 import numpy
11546 except ImportError:
11547 sys.exit(1)
11548 except:
11549 sys.exit(0)
11550 sys.exit(0)"
11551 if $PYTHON -c "$prog" 1>&5 2>&5
11552 then
11553 eval "py_cv_mod_$py_mod_var=yes"
11554 else
11555 eval "py_cv_mod_$py_mod_var=no"
11556 fi
11557
11558 fi
11559
11560 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
11561 if test "x$py_val" != xno; then
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11563 $as_echo "yes" >&6; }
11564 HAVE_PYTHON_NUMPY=yes
11565 else
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11567 $as_echo "no" >&6; }
11568 HAVE_PYTHON_NUMPY=no
11569 fi
11570
11571 fi
11572
11573 # Extract the first word of "swig", so it can be a program name with args.
11574 set dummy swig; ac_word=$2
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11576 $as_echo_n "checking for $ac_word... " >&6; }
11577 if ${ac_cv_prog_HAVE_SWIG+:} false; then :
11578 $as_echo_n "(cached) " >&6
11579 else
11580 if test -n "$HAVE_SWIG"; then
11581 ac_cv_prog_HAVE_SWIG="$HAVE_SWIG" # Let the user override the test.
11582 else
11583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11584 for as_dir in $PATH
11585 do
11586 IFS=$as_save_IFS
11587 test -z "$as_dir" && as_dir=.
11588 for ac_exec_ext in '' $ac_executable_extensions; do
11589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11590 ac_cv_prog_HAVE_SWIG=""yes""
11591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11592 break 2
11593 fi
11594 done
11595 done
11596 IFS=$as_save_IFS
11597
11598 test -z "$ac_cv_prog_HAVE_SWIG" && ac_cv_prog_HAVE_SWIG=""no""
11599 fi
11600 fi
11601 HAVE_SWIG=$ac_cv_prog_HAVE_SWIG
11602 if test -n "$HAVE_SWIG"; then
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_SWIG" >&5
11604 $as_echo "$HAVE_SWIG" >&6; }
11605 else
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11607 $as_echo "no" >&6; }
11608 fi
11609
11610
11611 if test "x$HAVE_SWIG" = "xyes" ; then
11612 case "$target_os" in
11613 darwin*)
11614 ;;
11615 *)
11616 if test "x$HAVE_PYTHON_NUMPY" = "xyes"; then
11617 if test "x$with_pythonllib" = "xyes"; then
11618 DIRS="$DIRS ./pythonlib"
11619 fi
11620 fi
11621 if test "x$ac_cv_header_EXTERN_h" = "xyes"; then
11622 if test "x$with_perllib" = "xyes"; then
11623 DIRS="$DIRS ./perllib"
11624 fi
11625 fi
11626 ;;
11627 esac
11628 fi
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661 ac_config_files="$ac_config_files Makefile ./common/Makefile ./include/Makefile ./clients/Makefile ./lib/argus-clients.pc ./pkg/rhel/systemd/rasqlinsert-setup ./pkg/Makefile ./lib/argus-clients.spec"
11662
11663
11664 if test "$with_perllib" != no; then :
11665 ac_config_files="$ac_config_files ./perllib/Makefile"
11666
11667
11668 fi
11669
11670 if test "$with_pythonlib" != no; then :
11671 ac_config_files="$ac_config_files ./pythonlib/Makefile"
11672
11673
11674 fi
11675
11676 if test "$with_examples" != no; then :
11677 ac_config_files="$ac_config_files ./examples/Makefile ./examples/raconvert/Makefile ./examples/radbase/Makefile ./examples/radecode/Makefile ./examples/radns/Makefile ./examples/radump/Makefile ./examples/raevent/Makefile ./examples/rafilter/Makefile ./examples/ragraph/Makefile ./examples/ragrep/Makefile ./examples/rahisto/Makefile ./examples/ralabel/Makefile"
11678
11679
11680 if test "$ARGUS_MYSQL_MAKEFILE" != no; then :
11681 ac_config_files="$ac_config_files ./examples/ramysql/Makefile ./examples/rahosts/Makefile"
11682
11683
11684 fi
11685
11686 ac_config_files="$ac_config_files ./examples/ramatrix/Makefile ./examples/rapath/Makefile ./examples/rapolicy/Makefile ./examples/raports/Makefile ./examples/raqsort/Makefile ./examples/rarpwatch/Makefile ./examples/raservices/Makefile ./examples/rastrip/Makefile ./examples/ratop/Makefile ./examples/ratrace/Makefile ./examples/ratimerange/Makefile ./examples/ratemplate/Makefile"
11687
11688
11689 if test x"$PERL" != x; then :
11690 if test "$ARGUS_MYSQL_MAKEFILE" != no; then :
11691 ac_config_files="$ac_config_files ./examples/rahosts/raclique.pl ./examples/rahosts/rahostsdaily.pl ./examples/rahosts/rahostsv6.pl"
11692
11693
11694 fi
11695
11696 ac_config_files="$ac_config_files ./examples/radark/radark.pl ./examples/radbase/raipdbase.pl ./examples/radecode/radecode.pl ./examples/radns/radnsdb.pl ./examples/ragraph/ragraph.pl ./examples/ragraph/raplot.pl ./examples/ramysql/radbaserollup.pl ./examples/ramysql/rastatus-cpustats.pl ./examples/ramysql/rastatus-dailylogs.pl ./examples/ramysql/rastatus-diskstats.pl ./examples/ramysql/rastatus-loadavg.pl ./examples/ramysql/rastatus-memstats.pl ./examples/raports/raportsdaily.pl ./examples/raports/raports.pl"
11697
11698
11699 fi
11700
11701 fi
11702
11703 cat >confcache <<\_ACEOF
11704 # This file is a shell script that caches the results of configure
11705 # tests run on this system so they can be shared between configure
11706 # scripts and configure runs, see configure's option --config-cache.
11707 # It is not useful on other systems. If it contains results you don't
11708 # want to keep, you may remove or edit it.
11709 #
11710 # config.status only pays attention to the cache file if you give it
11711 # the --recheck option to rerun configure.
11712 #
11713 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11714 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11715 # following values.
11716
11717 _ACEOF
11718
11719 # The following way of writing the cache mishandles newlines in values,
11720 # but we know of no workaround that is simple, portable, and efficient.
11721 # So, we kill variables containing newlines.
11722 # Ultrix sh set writes to stderr and can't be redirected directly,
11723 # and sets the high bit in the cache file unless we assign to the vars.
11724 (
11725 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11726 eval ac_val=\$$ac_var
11727 case $ac_val in #(
11728 *${as_nl}*)
11729 case $ac_var in #(
11730 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11731 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11732 esac
11733 case $ac_var in #(
11734 _ | IFS | as_nl) ;; #(
11735 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11736 *) { eval $ac_var=; unset $ac_var;} ;;
11737 esac ;;
11738 esac
11739 done
11740
11741 (set) 2>&1 |
11742 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11743 *${as_nl}ac_space=\ *)
11744 # `set' does not quote correctly, so add quotes: double-quote
11745 # substitution turns \\\\ into \\, and sed turns \\ into \.
11746 sed -n \
11747 "s/'/'\\\\''/g;
11748 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11749 ;; #(
11750 *)
11751 # `set' quotes correctly as required by POSIX, so do not add quotes.
11752 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11753 ;;
11754 esac |
11755 sort
11756 ) |
11757 sed '
11758 /^ac_cv_env_/b end
11759 t clear
11760 :clear
11761 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11762 t end
11763 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11764 :end' >>confcache
11765 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11766 if test -w "$cache_file"; then
11767 if test "x$cache_file" != "x/dev/null"; then
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11769 $as_echo "$as_me: updating cache $cache_file" >&6;}
11770 if test ! -f "$cache_file" || test -h "$cache_file"; then
11771 cat confcache >"$cache_file"
11772 else
11773 case $cache_file in #(
11774 */* | ?:*)
11775 mv -f confcache "$cache_file"$$ &&
11776 mv -f "$cache_file"$$ "$cache_file" ;; #(
11777 *)
11778 mv -f confcache "$cache_file" ;;
11779 esac
11780 fi
11781 fi
11782 else
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11784 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11785 fi
11786 fi
11787 rm -f confcache
11788
11789 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11790 # Let make expand exec_prefix.
11791 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11792
11793 DEFS=-DHAVE_CONFIG_H
11794
11795 ac_libobjs=
11796 ac_ltlibobjs=
11797 U=
11798 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11799 # 1. Remove the extension, and $U if already installed.
11800 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11801 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11802 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11803 # will be set to the directory where LIBOBJS objects are built.
11804 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11805 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11806 done
11807 LIBOBJS=$ac_libobjs
11808
11809 LTLIBOBJS=$ac_ltlibobjs
11810
11811
11812
11813 : "${CONFIG_STATUS=./config.status}"
11814 ac_write_fail=0
11815 ac_clean_files_save=$ac_clean_files
11816 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11818 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11819 as_write_fail=0
11820 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11821 #! $SHELL
11822 # Generated by $as_me.
11823 # Run this file to recreate the current configuration.
11824 # Compiler output produced by configure, useful for debugging
11825 # configure, is in config.log if it exists.
11826
11827 debug=false
11828 ac_cs_recheck=false
11829 ac_cs_silent=false
11830
11831 SHELL=\${CONFIG_SHELL-$SHELL}
11832 export SHELL
11833 _ASEOF
11834 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11835 ## -------------------- ##
11836 ## M4sh Initialization. ##
11837 ## -------------------- ##
11838
11839 # Be more Bourne compatible
11840 DUALCASE=1; export DUALCASE # for MKS sh
11841 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11842 emulate sh
11843 NULLCMD=:
11844 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11845 # is contrary to our usage. Disable this feature.
11846 alias -g '${1+"$@"}'='"$@"'
11847 setopt NO_GLOB_SUBST
11848 else
11849 case `(set -o) 2>/dev/null` in #(
11850 *posix*) :
11851 set -o posix ;; #(
11852 *) :
11853 ;;
11854 esac
11855 fi
11856
11857
11858 as_nl='
11859 '
11860 export as_nl
11861 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11862 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11863 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11864 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11865 # Prefer a ksh shell builtin over an external printf program on Solaris,
11866 # but without wasting forks for bash or zsh.
11867 if test -z "$BASH_VERSION$ZSH_VERSION" \
11868 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11869 as_echo='print -r --'
11870 as_echo_n='print -rn --'
11871 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11872 as_echo='printf %s\n'
11873 as_echo_n='printf %s'
11874 else
11875 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11876 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11877 as_echo_n='/usr/ucb/echo -n'
11878 else
11879 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11880 as_echo_n_body='eval
11881 arg=$1;
11882 case $arg in #(
11883 *"$as_nl"*)
11884 expr "X$arg" : "X\\(.*\\)$as_nl";
11885 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11886 esac;
11887 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11888 '
11889 export as_echo_n_body
11890 as_echo_n='sh -c $as_echo_n_body as_echo'
11891 fi
11892 export as_echo_body
11893 as_echo='sh -c $as_echo_body as_echo'
11894 fi
11895
11896 # The user is always right.
11897 if test "${PATH_SEPARATOR+set}" != set; then
11898 PATH_SEPARATOR=:
11899 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11900 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11901 PATH_SEPARATOR=';'
11902 }
11903 fi
11904
11905
11906 # IFS
11907 # We need space, tab and new line, in precisely that order. Quoting is
11908 # there to prevent editors from complaining about space-tab.
11909 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11910 # splitting by setting IFS to empty value.)
11911 IFS=" "" $as_nl"
11912
11913 # Find who we are. Look in the path if we contain no directory separator.
11914 as_myself=
11915 case $0 in #((
11916 *[\\/]* ) as_myself=$0 ;;
11917 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11918 for as_dir in $PATH
11919 do
11920 IFS=$as_save_IFS
11921 test -z "$as_dir" && as_dir=.
11922 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11923 done
11924 IFS=$as_save_IFS
11925
11926 ;;
11927 esac
11928 # We did not find ourselves, most probably we were run as `sh COMMAND'
11929 # in which case we are not to be found in the path.
11930 if test "x$as_myself" = x; then
11931 as_myself=$0
11932 fi
11933 if test ! -f "$as_myself"; then
11934 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11935 exit 1
11936 fi
11937
11938 # Unset variables that we do not need and which cause bugs (e.g. in
11939 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11940 # suppresses any "Segmentation fault" message there. '((' could
11941 # trigger a bug in pdksh 5.2.14.
11942 for as_var in BASH_ENV ENV MAIL MAILPATH
11943 do eval test x\${$as_var+set} = xset \
11944 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11945 done
11946 PS1='$ '
11947 PS2='> '
11948 PS4='+ '
11949
11950 # NLS nuisances.
11951 LC_ALL=C
11952 export LC_ALL
11953 LANGUAGE=C
11954 export LANGUAGE
11955
11956 # CDPATH.
11957 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11958
11959
11960 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11961 # ----------------------------------------
11962 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11963 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11964 # script with STATUS, using 1 if that was 0.
11965 as_fn_error ()
11966 {
11967 as_status=$1; test $as_status -eq 0 && as_status=1
11968 if test "$4"; then
11969 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11970 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11971 fi
11972 $as_echo "$as_me: error: $2" >&2
11973 as_fn_exit $as_status
11974 } # as_fn_error
11975
11976
11977 # as_fn_set_status STATUS
11978 # -----------------------
11979 # Set $? to STATUS, without forking.
11980 as_fn_set_status ()
11981 {
11982 return $1
11983 } # as_fn_set_status
11984
11985 # as_fn_exit STATUS
11986 # -----------------
11987 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11988 as_fn_exit ()
11989 {
11990 set +e
11991 as_fn_set_status $1
11992 exit $1
11993 } # as_fn_exit
11994
11995 # as_fn_unset VAR
11996 # ---------------
11997 # Portably unset VAR.
11998 as_fn_unset ()
11999 {
12000 { eval $1=; unset $1;}
12001 }
12002 as_unset=as_fn_unset
12003 # as_fn_append VAR VALUE
12004 # ----------------------
12005 # Append the text in VALUE to the end of the definition contained in VAR. Take
12006 # advantage of any shell optimizations that allow amortized linear growth over
12007 # repeated appends, instead of the typical quadratic growth present in naive
12008 # implementations.
12009 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12010 eval 'as_fn_append ()
12011 {
12012 eval $1+=\$2
12013 }'
12014 else
12015 as_fn_append ()
12016 {
12017 eval $1=\$$1\$2
12018 }
12019 fi # as_fn_append
12020
12021 # as_fn_arith ARG...
12022 # ------------------
12023 # Perform arithmetic evaluation on the ARGs, and store the result in the
12024 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12025 # must be portable across $(()) and expr.
12026 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12027 eval 'as_fn_arith ()
12028 {
12029 as_val=$(( $* ))
12030 }'
12031 else
12032 as_fn_arith ()
12033 {
12034 as_val=`expr "$@" || test $? -eq 1`
12035 }
12036 fi # as_fn_arith
12037
12038
12039 if expr a : '\(a\)' >/dev/null 2>&1 &&
12040 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12041 as_expr=expr
12042 else
12043 as_expr=false
12044 fi
12045
12046 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12047 as_basename=basename
12048 else
12049 as_basename=false
12050 fi
12051
12052 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12053 as_dirname=dirname
12054 else
12055 as_dirname=false
12056 fi
12057
12058 as_me=`$as_basename -- "$0" ||
12059 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12060 X"$0" : 'X\(//\)$' \| \
12061 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12062 $as_echo X/"$0" |
12063 sed '/^.*\/\([^/][^/]*\)\/*$/{
12064 s//\1/
12065 q
12066 }
12067 /^X\/\(\/\/\)$/{
12068 s//\1/
12069 q
12070 }
12071 /^X\/\(\/\).*/{
12072 s//\1/
12073 q
12074 }
12075 s/.*/./; q'`
12076
12077 # Avoid depending upon Character Ranges.
12078 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12079 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12080 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12081 as_cr_digits='0123456789'
12082 as_cr_alnum=$as_cr_Letters$as_cr_digits
12083
12084 ECHO_C= ECHO_N= ECHO_T=
12085 case `echo -n x` in #(((((
12086 -n*)
12087 case `echo 'xy\c'` in
12088 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12089 xy) ECHO_C='\c';;
12090 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12091 ECHO_T=' ';;
12092 esac;;
12093 *)
12094 ECHO_N='-n';;
12095 esac
12096
12097 rm -f conf$$ conf$$.exe conf$$.file
12098 if test -d conf$$.dir; then
12099 rm -f conf$$.dir/conf$$.file
12100 else
12101 rm -f conf$$.dir
12102 mkdir conf$$.dir 2>/dev/null
12103 fi
12104 if (echo >conf$$.file) 2>/dev/null; then
12105 if ln -s conf$$.file conf$$ 2>/dev/null; then
12106 as_ln_s='ln -s'
12107 # ... but there are two gotchas:
12108 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12109 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12110 # In both cases, we have to default to `cp -pR'.
12111 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12112 as_ln_s='cp -pR'
12113 elif ln conf$$.file conf$$ 2>/dev/null; then
12114 as_ln_s=ln
12115 else
12116 as_ln_s='cp -pR'
12117 fi
12118 else
12119 as_ln_s='cp -pR'
12120 fi
12121 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12122 rmdir conf$$.dir 2>/dev/null
12123
12124
12125 # as_fn_mkdir_p
12126 # -------------
12127 # Create "$as_dir" as a directory, including parents if necessary.
12128 as_fn_mkdir_p ()
12129 {
12130
12131 case $as_dir in #(
12132 -*) as_dir=./$as_dir;;
12133 esac
12134 test -d "$as_dir" || eval $as_mkdir_p || {
12135 as_dirs=
12136 while :; do
12137 case $as_dir in #(
12138 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12139 *) as_qdir=$as_dir;;
12140 esac
12141 as_dirs="'$as_qdir' $as_dirs"
12142 as_dir=`$as_dirname -- "$as_dir" ||
12143 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12144 X"$as_dir" : 'X\(//\)[^/]' \| \
12145 X"$as_dir" : 'X\(//\)$' \| \
12146 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12147 $as_echo X"$as_dir" |
12148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12149 s//\1/
12150 q
12151 }
12152 /^X\(\/\/\)[^/].*/{
12153 s//\1/
12154 q
12155 }
12156 /^X\(\/\/\)$/{
12157 s//\1/
12158 q
12159 }
12160 /^X\(\/\).*/{
12161 s//\1/
12162 q
12163 }
12164 s/.*/./; q'`
12165 test -d "$as_dir" && break
12166 done
12167 test -z "$as_dirs" || eval "mkdir $as_dirs"
12168 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12169
12170
12171 } # as_fn_mkdir_p
12172 if mkdir -p . 2>/dev/null; then
12173 as_mkdir_p='mkdir -p "$as_dir"'
12174 else
12175 test -d ./-p && rmdir ./-p
12176 as_mkdir_p=false
12177 fi
12178
12179
12180 # as_fn_executable_p FILE
12181 # -----------------------
12182 # Test if FILE is an executable regular file.
12183 as_fn_executable_p ()
12184 {
12185 test -f "$1" && test -x "$1"
12186 } # as_fn_executable_p
12187 as_test_x='test -x'
12188 as_executable_p=as_fn_executable_p
12189
12190 # Sed expression to map a string onto a valid CPP name.
12191 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12192
12193 # Sed expression to map a string onto a valid variable name.
12194 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12195
12196
12197 exec 6>&1
12198 ## ----------------------------------- ##
12199 ## Main body of $CONFIG_STATUS script. ##
12200 ## ----------------------------------- ##
12201 _ASEOF
12202 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12203
12204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12205 # Save the log message, to keep $0 and so on meaningful, and to
12206 # report actual input values of CONFIG_FILES etc. instead of their
12207 # values after options handling.
12208 ac_log="
12209 This file was extended by Argus-5.0 Client Programs $as_me 5.0, which was
12210 generated by GNU Autoconf 2.69. Invocation command line was
12211
12212 CONFIG_FILES = $CONFIG_FILES
12213 CONFIG_HEADERS = $CONFIG_HEADERS
12214 CONFIG_LINKS = $CONFIG_LINKS
12215 CONFIG_COMMANDS = $CONFIG_COMMANDS
12216 $ $0 $@
12217
12218 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12219 "
12220
12221 _ACEOF
12222
12223 case $ac_config_files in *"
12224 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12225 esac
12226
12227 case $ac_config_headers in *"
12228 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12229 esac
12230
12231
12232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12233 # Files that config.status was made for.
12234 config_files="$ac_config_files"
12235 config_headers="$ac_config_headers"
12236
12237 _ACEOF
12238
12239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12240 ac_cs_usage="\
12241 \`$as_me' instantiates files and other configuration actions
12242 from templates according to the current configuration. Unless the files
12243 and actions are specified as TAGs, all are instantiated by default.
12244
12245 Usage: $0 [OPTION]... [TAG]...
12246
12247 -h, --help print this help, then exit
12248 -V, --version print version number and configuration settings, then exit
12249 --config print configuration, then exit
12250 -q, --quiet, --silent
12251 do not print progress messages
12252 -d, --debug don't remove temporary files
12253 --recheck update $as_me by reconfiguring in the same conditions
12254 --file=FILE[:TEMPLATE]
12255 instantiate the configuration file FILE
12256 --header=FILE[:TEMPLATE]
12257 instantiate the configuration header FILE
12258
12259 Configuration files:
12260 $config_files
12261
12262 Configuration headers:
12263 $config_headers
12264
12265 Report bugs to <[email protected]>.
12266 Argus-5.0 Client Programs home page: <http://qosient.com/argus>."
12267
12268 _ACEOF
12269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12270 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12271 ac_cs_version="\\
12272 Argus-5.0 Client Programs config.status 5.0
12273 configured by $0, generated by GNU Autoconf 2.69,
12274 with options \\"\$ac_cs_config\\"
12275
12276 Copyright (C) 2012 Free Software Foundation, Inc.
12277 This config.status script is free software; the Free Software Foundation
12278 gives unlimited permission to copy, distribute and modify it."
12279
12280 ac_pwd='$ac_pwd'
12281 srcdir='$srcdir'
12282 INSTALL='$INSTALL'
12283 AWK='$AWK'
12284 test -n "\$AWK" || AWK=awk
12285 _ACEOF
12286
12287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12288 # The default lists apply if the user does not specify any file.
12289 ac_need_defaults=:
12290 while test $# != 0
12291 do
12292 case $1 in
12293 --*=?*)
12294 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12295 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12296 ac_shift=:
12297 ;;
12298 --*=)
12299 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12300 ac_optarg=
12301 ac_shift=:
12302 ;;
12303 *)
12304 ac_option=$1
12305 ac_optarg=$2
12306 ac_shift=shift
12307 ;;
12308 esac
12309
12310 case $ac_option in
12311 # Handling of the options.
12312 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12313 ac_cs_recheck=: ;;
12314 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12315 $as_echo "$ac_cs_version"; exit ;;
12316 --config | --confi | --conf | --con | --co | --c )
12317 $as_echo "$ac_cs_config"; exit ;;
12318 --debug | --debu | --deb | --de | --d | -d )
12319 debug=: ;;
12320 --file | --fil | --fi | --f )
12321 $ac_shift
12322 case $ac_optarg in
12323 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12324 '') as_fn_error $? "missing file argument" ;;
12325 esac
12326 as_fn_append CONFIG_FILES " '$ac_optarg'"
12327 ac_need_defaults=false;;
12328 --header | --heade | --head | --hea )
12329 $ac_shift
12330 case $ac_optarg in
12331 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12332 esac
12333 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12334 ac_need_defaults=false;;
12335 --he | --h)
12336 # Conflict between --help and --header
12337 as_fn_error $? "ambiguous option: \`$1'
12338 Try \`$0 --help' for more information.";;
12339 --help | --hel | -h )
12340 $as_echo "$ac_cs_usage"; exit ;;
12341 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12342 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12343 ac_cs_silent=: ;;
12344
12345 # This is an error.
12346 -*) as_fn_error $? "unrecognized option: \`$1'
12347 Try \`$0 --help' for more information." ;;
12348
12349 *) as_fn_append ac_config_targets " $1"
12350 ac_need_defaults=false ;;
12351
12352 esac
12353 shift
12354 done
12355
12356 ac_configure_extra_args=
12357
12358 if $ac_cs_silent; then
12359 exec 6>/dev/null
12360 ac_configure_extra_args="$ac_configure_extra_args --silent"
12361 fi
12362
12363 _ACEOF
12364 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12365 if \$ac_cs_recheck; then
12366 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12367 shift
12368 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12369 CONFIG_SHELL='$SHELL'
12370 export CONFIG_SHELL
12371 exec "\$@"
12372 fi
12373
12374 _ACEOF
12375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12376 exec 5>>config.log
12377 {
12378 echo
12379 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12380 ## Running $as_me. ##
12381 _ASBOX
12382 $as_echo "$ac_log"
12383 } >&5
12384
12385 _ACEOF
12386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12387 _ACEOF
12388
12389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12390
12391 # Handling of arguments.
12392 for ac_config_target in $ac_config_targets
12393 do
12394 case $ac_config_target in
12395 "include/argus_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/argus_config.h" ;;
12396 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12397 "./common/Makefile") CONFIG_FILES="$CONFIG_FILES ./common/Makefile" ;;
12398 "./include/Makefile") CONFIG_FILES="$CONFIG_FILES ./include/Makefile" ;;
12399 "./clients/Makefile") CONFIG_FILES="$CONFIG_FILES ./clients/Makefile" ;;
12400 "./lib/argus-clients.pc") CONFIG_FILES="$CONFIG_FILES ./lib/argus-clients.pc" ;;
12401 "./pkg/rhel/systemd/rasqlinsert-setup") CONFIG_FILES="$CONFIG_FILES ./pkg/rhel/systemd/rasqlinsert-setup" ;;
12402 "./pkg/Makefile") CONFIG_FILES="$CONFIG_FILES ./pkg/Makefile" ;;
12403 "./lib/argus-clients.spec") CONFIG_FILES="$CONFIG_FILES ./lib/argus-clients.spec" ;;
12404 "./perllib/Makefile") CONFIG_FILES="$CONFIG_FILES ./perllib/Makefile" ;;
12405 "./pythonlib/Makefile") CONFIG_FILES="$CONFIG_FILES ./pythonlib/Makefile" ;;
12406 "./examples/Makefile") CONFIG_FILES="$CONFIG_FILES ./examples/Makefile" ;;
12407 "./examples/raconvert/Makefile") CONFIG_FILES="$CONFIG_FILES ./examples/raconvert/Makefile" ;;
12408 "./examples/radbase/Makefile") CONFIG_FILES="$CONFIG_FILES ./examples/radbase/Makefile" ;;
12409 "./examples/radecode/Makefile") CONFIG_FILES="$CONFIG_FILES ./examples/radecode/Makefile" ;;
12410 "./examples/radns/Makefile") CONFIG_FILES="$CONFIG_FILES ./examples/radns/Makefile" ;;
12411 "./examples/radump/Makefile") CONFIG_FILES="$CONFIG_FILES ./examples/radump/Makefile" ;;
12412 "./examples/raevent/Makefile") CONFIG_FILES="$CONFIG_FILES ./examples/raevent/Makefile" ;;
12413 "./examples/rafilter/Makefile") CONFIG_FILES="$CONFIG_FILES ./examples/rafilter/Makefile" ;;
12414 "./examples/ragraph/Makefile") CONFIG_FILES="$CONFIG_FILES ./examples/ragraph/Makefile" ;;
12415 "./examples/ragrep/Makefile") CONFIG_FILES="$CONFIG_FILES ./examples/ragrep/Makefile" ;;
12416 "./examples/rahisto/Makefile") CONFIG_FILES="$CONFIG_FILES ./examples/rahisto/Makefile" ;;
12417 "./examples/ralabel/Makefile") CONFIG_FILES="$CONFIG_FILES ./examples/ralabel/Makefile" ;;
12418 "./examples/ramysql/Makefile") CONFIG_FILES="$CONFIG_FILES ./examples/ramysql/Makefile" ;;
12419 "./examples/rahosts/Makefile") CONFIG_FILES="$CONFIG_FILES ./examples/rahosts/Makefile" ;;
12420 "./examples/ramatrix/Makefile") CONFIG_FILES="$CONFIG_FILES ./examples/ramatrix/Makefile" ;;
12421 "./examples/rapath/Makefile") CONFIG_FILES="$CONFIG_FILES ./examples/rapath/Makefile" ;;
12422 "./examples/rapolicy/Makefile") CONFIG_FILES="$CONFIG_FILES ./examples/rapolicy/Makefile" ;;
12423 "./examples/raports/Makefile") CONFIG_FILES="$CONFIG_FILES ./examples/raports/Makefile" ;;
12424 "./examples/raqsort/Makefile") CONFIG_FILES="$CONFIG_FILES ./examples/raqsort/Makefile" ;;
12425 "./examples/rarpwatch/Makefile") CONFIG_FILES="$CONFIG_FILES ./examples/rarpwatch/Makefile" ;;
12426 "./examples/raservices/Makefile") CONFIG_FILES="$CONFIG_FILES ./examples/raservices/Makefile" ;;
12427 "./examples/rastrip/Makefile") CONFIG_FILES="$CONFIG_FILES ./examples/rastrip/Makefile" ;;
12428 "./examples/ratop/Makefile") CONFIG_FILES="$CONFIG_FILES ./examples/ratop/Makefile" ;;
12429 "./examples/ratrace/Makefile") CONFIG_FILES="$CONFIG_FILES ./examples/ratrace/Makefile" ;;
12430 "./examples/ratimerange/Makefile") CONFIG_FILES="$CONFIG_FILES ./examples/ratimerange/Makefile" ;;
12431 "./examples/ratemplate/Makefile") CONFIG_FILES="$CONFIG_FILES ./examples/ratemplate/Makefile" ;;
12432 "./examples/rahosts/raclique.pl") CONFIG_FILES="$CONFIG_FILES ./examples/rahosts/raclique.pl" ;;
12433 "./examples/rahosts/rahostsdaily.pl") CONFIG_FILES="$CONFIG_FILES ./examples/rahosts/rahostsdaily.pl" ;;
12434 "./examples/rahosts/rahostsv6.pl") CONFIG_FILES="$CONFIG_FILES ./examples/rahosts/rahostsv6.pl" ;;
12435 "./examples/radark/radark.pl") CONFIG_FILES="$CONFIG_FILES ./examples/radark/radark.pl" ;;
12436 "./examples/radbase/raipdbase.pl") CONFIG_FILES="$CONFIG_FILES ./examples/radbase/raipdbase.pl" ;;
12437 "./examples/radecode/radecode.pl") CONFIG_FILES="$CONFIG_FILES ./examples/radecode/radecode.pl" ;;
12438 "./examples/radns/radnsdb.pl") CONFIG_FILES="$CONFIG_FILES ./examples/radns/radnsdb.pl" ;;
12439 "./examples/ragraph/ragraph.pl") CONFIG_FILES="$CONFIG_FILES ./examples/ragraph/ragraph.pl" ;;
12440 "./examples/ragraph/raplot.pl") CONFIG_FILES="$CONFIG_FILES ./examples/ragraph/raplot.pl" ;;
12441 "./examples/ramysql/radbaserollup.pl") CONFIG_FILES="$CONFIG_FILES ./examples/ramysql/radbaserollup.pl" ;;
12442 "./examples/ramysql/rastatus-cpustats.pl") CONFIG_FILES="$CONFIG_FILES ./examples/ramysql/rastatus-cpustats.pl" ;;
12443 "./examples/ramysql/rastatus-dailylogs.pl") CONFIG_FILES="$CONFIG_FILES ./examples/ramysql/rastatus-dailylogs.pl" ;;
12444 "./examples/ramysql/rastatus-diskstats.pl") CONFIG_FILES="$CONFIG_FILES ./examples/ramysql/rastatus-diskstats.pl" ;;
12445 "./examples/ramysql/rastatus-loadavg.pl") CONFIG_FILES="$CONFIG_FILES ./examples/ramysql/rastatus-loadavg.pl" ;;
12446 "./examples/ramysql/rastatus-memstats.pl") CONFIG_FILES="$CONFIG_FILES ./examples/ramysql/rastatus-memstats.pl" ;;
12447 "./examples/raports/raportsdaily.pl") CONFIG_FILES="$CONFIG_FILES ./examples/raports/raportsdaily.pl" ;;
12448 "./examples/raports/raports.pl") CONFIG_FILES="$CONFIG_FILES ./examples/raports/raports.pl" ;;
12449
12450 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12451 esac
12452 done
12453
12454
12455 # If the user did not use the arguments to specify the items to instantiate,
12456 # then the envvar interface is used. Set only those that are not.
12457 # We use the long form for the default assignment because of an extremely
12458 # bizarre bug on SunOS 4.1.3.
12459 if $ac_need_defaults; then
12460 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12461 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12462 fi
12463
12464 # Have a temporary directory for convenience. Make it in the build tree
12465 # simply because there is no reason against having it here, and in addition,
12466 # creating and moving files from /tmp can sometimes cause problems.
12467 # Hook for its removal unless debugging.
12468 # Note that there is a small window in which the directory will not be cleaned:
12469 # after its creation but before its name has been assigned to `$tmp'.
12470 $debug ||
12471 {
12472 tmp= ac_tmp=
12473 trap 'exit_status=$?
12474 : "${ac_tmp:=$tmp}"
12475 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12476 ' 0
12477 trap 'as_fn_exit 1' 1 2 13 15
12478 }
12479 # Create a (secure) tmp directory for tmp files.
12480
12481 {
12482 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12483 test -d "$tmp"
12484 } ||
12485 {
12486 tmp=./conf$$-$RANDOM
12487 (umask 077 && mkdir "$tmp")
12488 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12489 ac_tmp=$tmp
12490
12491 # Set up the scripts for CONFIG_FILES section.
12492 # No need to generate them if there are no CONFIG_FILES.
12493 # This happens for instance with `./config.status config.h'.
12494 if test -n "$CONFIG_FILES"; then
12495
12496
12497 ac_cr=`echo X | tr X '\015'`
12498 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12499 # But we know of no other shell where ac_cr would be empty at this
12500 # point, so we can use a bashism as a fallback.
12501 if test "x$ac_cr" = x; then
12502 eval ac_cr=\$\'\\r\'
12503 fi
12504 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12505 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12506 ac_cs_awk_cr='\\r'
12507 else
12508 ac_cs_awk_cr=$ac_cr
12509 fi
12510
12511 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12512 _ACEOF
12513
12514
12515 {
12516 echo "cat >conf$$subs.awk <<_ACEOF" &&
12517 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12518 echo "_ACEOF"
12519 } >conf$$subs.sh ||
12520 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12521 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12522 ac_delim='%!_!# '
12523 for ac_last_try in false false false false false :; do
12524 . ./conf$$subs.sh ||
12525 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12526
12527 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12528 if test $ac_delim_n = $ac_delim_num; then
12529 break
12530 elif $ac_last_try; then
12531 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12532 else
12533 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12534 fi
12535 done
12536 rm -f conf$$subs.sh
12537
12538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12539 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12540 _ACEOF
12541 sed -n '
12542 h
12543 s/^/S["/; s/!.*/"]=/
12544 p
12545 g
12546 s/^[^!]*!//
12547 :repl
12548 t repl
12549 s/'"$ac_delim"'$//
12550 t delim
12551 :nl
12552 h
12553 s/\(.\{148\}\)..*/\1/
12554 t more1
12555 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12556 p
12557 n
12558 b repl
12559 :more1
12560 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12561 p
12562 g
12563 s/.\{148\}//
12564 t nl
12565 :delim
12566 h
12567 s/\(.\{148\}\)..*/\1/
12568 t more2
12569 s/["\\]/\\&/g; s/^/"/; s/$/"/
12570 p
12571 b
12572 :more2
12573 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12574 p
12575 g
12576 s/.\{148\}//
12577 t delim
12578 ' <conf$$subs.awk | sed '
12579 /^[^""]/{
12580 N
12581 s/\n//
12582 }
12583 ' >>$CONFIG_STATUS || ac_write_fail=1
12584 rm -f conf$$subs.awk
12585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12586 _ACAWK
12587 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12588 for (key in S) S_is_set[key] = 1
12589 FS = ""
12590
12591 }
12592 {
12593 line = $ 0
12594 nfields = split(line, field, "@")
12595 substed = 0
12596 len = length(field[1])
12597 for (i = 2; i < nfields; i++) {
12598 key = field[i]
12599 keylen = length(key)
12600 if (S_is_set[key]) {
12601 value = S[key]
12602 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12603 len += length(value) + length(field[++i])
12604 substed = 1
12605 } else
12606 len += 1 + keylen
12607 }
12608
12609 print line
12610 }
12611
12612 _ACAWK
12613 _ACEOF
12614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12615 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12616 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12617 else
12618 cat
12619 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12620 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12621 _ACEOF
12622
12623 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12624 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12625 # trailing colons and then remove the whole line if VPATH becomes empty
12626 # (actually we leave an empty line to preserve line numbers).
12627 if test "x$srcdir" = x.; then
12628 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12629 h
12630 s///
12631 s/^/:/
12632 s/[ ]*$/:/
12633 s/:\$(srcdir):/:/g
12634 s/:\${srcdir}:/:/g
12635 s/:@srcdir@:/:/g
12636 s/^:*//
12637 s/:*$//
12638 x
12639 s/\(=[ ]*\).*/\1/
12640 G
12641 s/\n//
12642 s/^[^=]*=[ ]*$//
12643 }'
12644 fi
12645
12646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12647 fi # test -n "$CONFIG_FILES"
12648
12649 # Set up the scripts for CONFIG_HEADERS section.
12650 # No need to generate them if there are no CONFIG_HEADERS.
12651 # This happens for instance with `./config.status Makefile'.
12652 if test -n "$CONFIG_HEADERS"; then
12653 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12654 BEGIN {
12655 _ACEOF
12656
12657 # Transform confdefs.h into an awk script `defines.awk', embedded as
12658 # here-document in config.status, that substitutes the proper values into
12659 # config.h.in to produce config.h.
12660
12661 # Create a delimiter string that does not exist in confdefs.h, to ease
12662 # handling of long lines.
12663 ac_delim='%!_!# '
12664 for ac_last_try in false false :; do
12665 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12666 if test -z "$ac_tt"; then
12667 break
12668 elif $ac_last_try; then
12669 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12670 else
12671 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12672 fi
12673 done
12674
12675 # For the awk script, D is an array of macro values keyed by name,
12676 # likewise P contains macro parameters if any. Preserve backslash
12677 # newline sequences.
12678
12679 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12680 sed -n '
12681 s/.\{148\}/&'"$ac_delim"'/g
12682 t rset
12683 :rset
12684 s/^[ ]*#[ ]*define[ ][ ]*/ /
12685 t def
12686 d
12687 :def
12688 s/\\$//
12689 t bsnl
12690 s/["\\]/\\&/g
12691 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12692 D["\1"]=" \3"/p
12693 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12694 d
12695 :bsnl
12696 s/["\\]/\\&/g
12697 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12698 D["\1"]=" \3\\\\\\n"\\/p
12699 t cont
12700 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12701 t cont
12702 d
12703 :cont
12704 n
12705 s/.\{148\}/&'"$ac_delim"'/g
12706 t clear
12707 :clear
12708 s/\\$//
12709 t bsnlc
12710 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12711 d
12712 :bsnlc
12713 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12714 b cont
12715 ' <confdefs.h | sed '
12716 s/'"$ac_delim"'/"\\\
12717 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12718
12719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12720 for (key in D) D_is_set[key] = 1
12721 FS = ""
12722 }
12723 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12724 line = \$ 0
12725 split(line, arg, " ")
12726 if (arg[1] == "#") {
12727 defundef = arg[2]
12728 mac1 = arg[3]
12729 } else {
12730 defundef = substr(arg[1], 2)
12731 mac1 = arg[2]
12732 }
12733 split(mac1, mac2, "(") #)
12734 macro = mac2[1]
12735 prefix = substr(line, 1, index(line, defundef) - 1)
12736 if (D_is_set[macro]) {
12737 # Preserve the white space surrounding the "#".
12738 print prefix "define", macro P[macro] D[macro]
12739 next
12740 } else {
12741 # Replace #undef with comments. This is necessary, for example,
12742 # in the case of _POSIX_SOURCE, which is predefined and required
12743 # on some systems where configure will not decide to define it.
12744 if (defundef == "undef") {
12745 print "/*", prefix defundef, macro, "*/"
12746 next
12747 }
12748 }
12749 }
12750 { print }
12751 _ACAWK
12752 _ACEOF
12753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12754 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12755 fi # test -n "$CONFIG_HEADERS"
12756
12757
12758 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
12759 shift
12760 for ac_tag
12761 do
12762 case $ac_tag in
12763 :[FHLC]) ac_mode=$ac_tag; continue;;
12764 esac
12765 case $ac_mode$ac_tag in
12766 :[FHL]*:*);;
12767 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12768 :[FH]-) ac_tag=-:-;;
12769 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12770 esac
12771 ac_save_IFS=$IFS
12772 IFS=:
12773 set x $ac_tag
12774 IFS=$ac_save_IFS
12775 shift
12776 ac_file=$1
12777 shift
12778
12779 case $ac_mode in
12780 :L) ac_source=$1;;
12781 :[FH])
12782 ac_file_inputs=
12783 for ac_f
12784 do
12785 case $ac_f in
12786 -) ac_f="$ac_tmp/stdin";;
12787 *) # Look for the file first in the build tree, then in the source tree
12788 # (if the path is not absolute). The absolute path cannot be DOS-style,
12789 # because $ac_f cannot contain `:'.
12790 test -f "$ac_f" ||
12791 case $ac_f in
12792 [\\/$]*) false;;
12793 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12794 esac ||
12795 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12796 esac
12797 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12798 as_fn_append ac_file_inputs " '$ac_f'"
12799 done
12800
12801 # Let's still pretend it is `configure' which instantiates (i.e., don't
12802 # use $as_me), people would be surprised to read:
12803 # /* config.h. Generated by config.status. */
12804 configure_input='Generated from '`
12805 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12806 `' by configure.'
12807 if test x"$ac_file" != x-; then
12808 configure_input="$ac_file. $configure_input"
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12810 $as_echo "$as_me: creating $ac_file" >&6;}
12811 fi
12812 # Neutralize special characters interpreted by sed in replacement strings.
12813 case $configure_input in #(
12814 *\&* | *\|* | *\\* )
12815 ac_sed_conf_input=`$as_echo "$configure_input" |
12816 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12817 *) ac_sed_conf_input=$configure_input;;
12818 esac
12819
12820 case $ac_tag in
12821 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12822 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12823 esac
12824 ;;
12825 esac
12826
12827 ac_dir=`$as_dirname -- "$ac_file" ||
12828 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12829 X"$ac_file" : 'X\(//\)[^/]' \| \
12830 X"$ac_file" : 'X\(//\)$' \| \
12831 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12832 $as_echo X"$ac_file" |
12833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12834 s//\1/
12835 q
12836 }
12837 /^X\(\/\/\)[^/].*/{
12838 s//\1/
12839 q
12840 }
12841 /^X\(\/\/\)$/{
12842 s//\1/
12843 q
12844 }
12845 /^X\(\/\).*/{
12846 s//\1/
12847 q
12848 }
12849 s/.*/./; q'`
12850 as_dir="$ac_dir"; as_fn_mkdir_p
12851 ac_builddir=.
12852
12853 case "$ac_dir" in
12854 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12855 *)
12856 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12857 # A ".." for each directory in $ac_dir_suffix.
12858 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12859 case $ac_top_builddir_sub in
12860 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12861 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12862 esac ;;
12863 esac
12864 ac_abs_top_builddir=$ac_pwd
12865 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12866 # for backward compatibility:
12867 ac_top_builddir=$ac_top_build_prefix
12868
12869 case $srcdir in
12870 .) # We are building in place.
12871 ac_srcdir=.
12872 ac_top_srcdir=$ac_top_builddir_sub
12873 ac_abs_top_srcdir=$ac_pwd ;;
12874 [\\/]* | ?:[\\/]* ) # Absolute name.
12875 ac_srcdir=$srcdir$ac_dir_suffix;
12876 ac_top_srcdir=$srcdir
12877 ac_abs_top_srcdir=$srcdir ;;
12878 *) # Relative name.
12879 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12880 ac_top_srcdir=$ac_top_build_prefix$srcdir
12881 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12882 esac
12883 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12884
12885
12886 case $ac_mode in
12887 :F)
12888 #
12889 # CONFIG_FILE
12890 #
12891
12892 case $INSTALL in
12893 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12894 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12895 esac
12896 _ACEOF
12897
12898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12899 # If the template does not know about datarootdir, expand it.
12900 # FIXME: This hack should be removed a few years after 2.60.
12901 ac_datarootdir_hack=; ac_datarootdir_seen=
12902 ac_sed_dataroot='
12903 /datarootdir/ {
12904 p
12905 q
12906 }
12907 /@datadir@/p
12908 /@docdir@/p
12909 /@infodir@/p
12910 /@localedir@/p
12911 /@mandir@/p'
12912 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12913 *datarootdir*) ac_datarootdir_seen=yes;;
12914 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12916 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12917 _ACEOF
12918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12919 ac_datarootdir_hack='
12920 s&@datadir@&$datadir&g
12921 s&@docdir@&$docdir&g
12922 s&@infodir@&$infodir&g
12923 s&@localedir@&$localedir&g
12924 s&@mandir@&$mandir&g
12925 s&\\\${datarootdir}&$datarootdir&g' ;;
12926 esac
12927 _ACEOF
12928
12929 # Neutralize VPATH when `$srcdir' = `.'.
12930 # Shell code in configure.ac might set extrasub.
12931 # FIXME: do we really want to maintain this feature?
12932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12933 ac_sed_extra="$ac_vpsub
12934 $extrasub
12935 _ACEOF
12936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12937 :t
12938 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12939 s|@configure_input@|$ac_sed_conf_input|;t t
12940 s&@top_builddir@&$ac_top_builddir_sub&;t t
12941 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12942 s&@srcdir@&$ac_srcdir&;t t
12943 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12944 s&@top_srcdir@&$ac_top_srcdir&;t t
12945 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12946 s&@builddir@&$ac_builddir&;t t
12947 s&@abs_builddir@&$ac_abs_builddir&;t t
12948 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12949 s&@INSTALL@&$ac_INSTALL&;t t
12950 $ac_datarootdir_hack
12951 "
12952 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12953 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12954
12955 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12956 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12957 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12958 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12960 which seems to be undefined. Please make sure it is defined" >&5
12961 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12962 which seems to be undefined. Please make sure it is defined" >&2;}
12963
12964 rm -f "$ac_tmp/stdin"
12965 case $ac_file in
12966 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12967 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12968 esac \
12969 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12970 ;;
12971 :H)
12972 #
12973 # CONFIG_HEADER
12974 #
12975 if test x"$ac_file" != x-; then
12976 {
12977 $as_echo "/* $configure_input */" \
12978 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12979 } >"$ac_tmp/config.h" \
12980 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12981 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12983 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12984 else
12985 rm -f "$ac_file"
12986 mv "$ac_tmp/config.h" "$ac_file" \
12987 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12988 fi
12989 else
12990 $as_echo "/* $configure_input */" \
12991 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12992 || as_fn_error $? "could not create -" "$LINENO" 5
12993 fi
12994 ;;
12995
12996
12997 esac
12998
12999 done # for ac_tag
13000
13001
13002 as_fn_exit 0
13003 _ACEOF
13004 ac_clean_files=$ac_clean_files_save
13005
13006 test $ac_write_fail = 0 ||
13007 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13008
13009
13010 # configure is writing to config.log, and then calls config.status.
13011 # config.status does its own redirection, appending to config.log.
13012 # Unfortunately, on DOS this fails, as config.log is still kept open
13013 # by configure, so config.status won't be able to write to it; its
13014 # output is simply discarded. So we exec the FD to /dev/null,
13015 # effectively closing config.log, so it can be properly (re)opened and
13016 # appended to by config.status. When coming back to configure, we
13017 # need to make the FD available again.
13018 if test "$no_create" != yes; then
13019 ac_cs_success=:
13020 ac_config_status_args=
13021 test "$silent" = yes &&
13022 ac_config_status_args="$ac_config_status_args --quiet"
13023 exec 5>/dev/null
13024 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13025 exec 5>>config.log
13026 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13027 # would make configure fail if this is the last instruction.
13028 $ac_cs_success || as_fn_exit 1
13029 fi
13030 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13032 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13033 fi
13034
13035
13036 if test -f .devel ; then
13037 make depend
13038 fi