more files fixup
[freeradius.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for freeradius $Id$.
4 #
5 # Report bugs to <http://bugs.freeradius.org>.
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 bug-autoconf@gnu.org and
270 $0: http://bugs.freeradius.org about your system, including
271 $0: any error possibly output before this message. Then
272 $0: install a modern shell, or manually run the script
273 $0: under such a 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='freeradius'
582 PACKAGE_TARNAME='freeradius'
583 PACKAGE_VERSION='$Id$'
584 PACKAGE_STRING='freeradius $Id$'
585 PACKAGE_BUGREPORT='http://bugs.freeradius.org'
586 PACKAGE_URL='http://www.freeradius.org'
587
588 ac_unique_file="src/main/radiusd.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 enable_option_checking=no
626 ac_subst_vars='LTLIBOBJS
627 LIBOBJS
628 STATIC_MODULES
629 USE_STATIC_LIBS
630 USE_SHARED_LIBS
631 INSTALLSTRIP
632 MODULES
633 subdirs
634 HOSTINFO
635 REGEX_EXTENDED
636 REGEX_PCRE
637 REGEX
638 CRYPTLIB
639 LIBPREFIX
640 PCAP_LIBS
641 OPENSSL_LIBS
642 OPENSSL_INCLUDE
643 LIBREADLINE
644 DIRNAME
645 LOCATE
646 AUTOHEADER
647 AUTOCONF
648 ACLOCAL
649 RUSERS
650 SNMPWALK
651 SNMPGET
652 PERL
653 modconfdir
654 raddbdir
655 radacctdir
656 logdir
657 GIT
658 FR_MAKEFLAGS
659 MAKE
660 GMAKE
661 clang_path
662 RANLIB
663 EGREP
664 GREP
665 CPP
666 ac_ct_CXX
667 CXXFLAGS
668 CXX
669 OBJEXT
670 EXEEXT
671 ac_ct_CC
672 CPPFLAGS
673 LDFLAGS
674 CFLAGS
675 CC
676 DARWIN_CFLAGS
677 XCODEBUILD
678 SW_VERS
679 target_os
680 target_vendor
681 target_cpu
682 target
683 host_os
684 host_vendor
685 host_cpu
686 host
687 build_os
688 build_vendor
689 build_cpu
690 build
691 RADIUSD_VERSION_STRING
692 target_alias
693 host_alias
694 build_alias
695 LIBS
696 ECHO_T
697 ECHO_N
698 ECHO_C
699 DEFS
700 mandir
701 localedir
702 libdir
703 psdir
704 pdfdir
705 dvidir
706 htmldir
707 infodir
708 docdir
709 oldincludedir
710 includedir
711 localstatedir
712 sharedstatedir
713 sysconfdir
714 datadir
715 datarootdir
716 libexecdir
717 sbindir
718 bindir
719 program_transform_name
720 prefix
721 exec_prefix
722 PACKAGE_URL
723 PACKAGE_BUGREPORT
724 PACKAGE_STRING
725 PACKAGE_VERSION
726 PACKAGE_TARNAME
727 PACKAGE_NAME
728 PATH_SEPARATOR
729 SHELL'
730 ac_subst_files=''
731 ac_user_opts='
732 enable_option_checking
733 enable_developer
734 enable_largefile
735 enable_strict_dependencies
736 enable_werror
737 with_docdir
738 with_logdir
739 with_radacctdir
740 with_raddbdir
741 with_ascend_binary
742 with_threads
743 with_tcp
744 with_vmps
745 with_dhcp
746 with_static_modules
747 with_shared_libs
748 with_modules
749 with_experimental_modules
750 with_udpfromto
751 with_openssl
752 with_openssl_includes
753 with_openssl_libraries
754 with_rlm_FOO_lib_dir
755 with_rlm_FOO_include_dir
756 with_talloc_include_dir
757 with_talloc_lib_dir
758 with_pcap_include_dir
759 with_pcap_lib_dir
760 with_rlm_pcre_lib_dir
761 with_rlm_pcre_include_dir
762 '
763       ac_precious_vars='build_alias
764 host_alias
765 target_alias
766 CC
767 CFLAGS
768 LDFLAGS
769 LIBS
770 CPPFLAGS
771 CXX
772 CXXFLAGS
773 CCC
774 CPP'
775 ac_subdirs_all='$mysubdirs'
776
777 # Initialize some variables set by options.
778 ac_init_help=
779 ac_init_version=false
780 ac_unrecognized_opts=
781 ac_unrecognized_sep=
782 # The variables have the same names as the options, with
783 # dashes changed to underlines.
784 cache_file=/dev/null
785 exec_prefix=NONE
786 no_create=
787 no_recursion=
788 prefix=NONE
789 program_prefix=NONE
790 program_suffix=NONE
791 program_transform_name=s,x,x,
792 silent=
793 site=
794 srcdir=
795 verbose=
796 x_includes=NONE
797 x_libraries=NONE
798
799 # Installation directory options.
800 # These are left unexpanded so users can "make install exec_prefix=/foo"
801 # and all the variables that are supposed to be based on exec_prefix
802 # by default will actually change.
803 # Use braces instead of parens because sh, perl, etc. also accept them.
804 # (The list follows the same order as the GNU Coding Standards.)
805 bindir='${exec_prefix}/bin'
806 sbindir='${exec_prefix}/sbin'
807 libexecdir='${exec_prefix}/libexec'
808 datarootdir='${prefix}/share'
809 datadir='${datarootdir}'
810 sysconfdir='${prefix}/etc'
811 sharedstatedir='${prefix}/com'
812 localstatedir='${prefix}/var'
813 includedir='${prefix}/include'
814 oldincludedir='/usr/include'
815 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
816 infodir='${datarootdir}/info'
817 htmldir='${docdir}'
818 dvidir='${docdir}'
819 pdfdir='${docdir}'
820 psdir='${docdir}'
821 libdir='${exec_prefix}/lib'
822 localedir='${datarootdir}/locale'
823 mandir='${datarootdir}/man'
824
825 ac_prev=
826 ac_dashdash=
827 for ac_option
828 do
829   # If the previous option needs an argument, assign it.
830   if test -n "$ac_prev"; then
831     eval $ac_prev=\$ac_option
832     ac_prev=
833     continue
834   fi
835
836   case $ac_option in
837   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
838   *=)   ac_optarg= ;;
839   *)    ac_optarg=yes ;;
840   esac
841
842   # Accept the important Cygnus configure options, so we can diagnose typos.
843
844   case $ac_dashdash$ac_option in
845   --)
846     ac_dashdash=yes ;;
847
848   -bindir | --bindir | --bindi | --bind | --bin | --bi)
849     ac_prev=bindir ;;
850   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
851     bindir=$ac_optarg ;;
852
853   -build | --build | --buil | --bui | --bu)
854     ac_prev=build_alias ;;
855   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856     build_alias=$ac_optarg ;;
857
858   -cache-file | --cache-file | --cache-fil | --cache-fi \
859   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860     ac_prev=cache_file ;;
861   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863     cache_file=$ac_optarg ;;
864
865   --config-cache | -C)
866     cache_file=config.cache ;;
867
868   -datadir | --datadir | --datadi | --datad)
869     ac_prev=datadir ;;
870   -datadir=* | --datadir=* | --datadi=* | --datad=*)
871     datadir=$ac_optarg ;;
872
873   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874   | --dataroo | --dataro | --datar)
875     ac_prev=datarootdir ;;
876   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878     datarootdir=$ac_optarg ;;
879
880   -disable-* | --disable-*)
881     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882     # Reject names that are not valid shell variable names.
883     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884       as_fn_error $? "invalid feature name: $ac_useropt"
885     ac_useropt_orig=$ac_useropt
886     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887     case $ac_user_opts in
888       *"
889 "enable_$ac_useropt"
890 "*) ;;
891       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
892          ac_unrecognized_sep=', ';;
893     esac
894     eval enable_$ac_useropt=no ;;
895
896   -docdir | --docdir | --docdi | --doc | --do)
897     ac_prev=docdir ;;
898   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
899     docdir=$ac_optarg ;;
900
901   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
902     ac_prev=dvidir ;;
903   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
904     dvidir=$ac_optarg ;;
905
906   -enable-* | --enable-*)
907     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
908     # Reject names that are not valid shell variable names.
909     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910       as_fn_error $? "invalid feature name: $ac_useropt"
911     ac_useropt_orig=$ac_useropt
912     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913     case $ac_user_opts in
914       *"
915 "enable_$ac_useropt"
916 "*) ;;
917       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
918          ac_unrecognized_sep=', ';;
919     esac
920     eval enable_$ac_useropt=\$ac_optarg ;;
921
922   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
924   | --exec | --exe | --ex)
925     ac_prev=exec_prefix ;;
926   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
927   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
928   | --exec=* | --exe=* | --ex=*)
929     exec_prefix=$ac_optarg ;;
930
931   -gas | --gas | --ga | --g)
932     # Obsolete; use --with-gas.
933     with_gas=yes ;;
934
935   -help | --help | --hel | --he | -h)
936     ac_init_help=long ;;
937   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
938     ac_init_help=recursive ;;
939   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
940     ac_init_help=short ;;
941
942   -host | --host | --hos | --ho)
943     ac_prev=host_alias ;;
944   -host=* | --host=* | --hos=* | --ho=*)
945     host_alias=$ac_optarg ;;
946
947   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
948     ac_prev=htmldir ;;
949   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
950   | --ht=*)
951     htmldir=$ac_optarg ;;
952
953   -includedir | --includedir | --includedi | --included | --include \
954   | --includ | --inclu | --incl | --inc)
955     ac_prev=includedir ;;
956   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
957   | --includ=* | --inclu=* | --incl=* | --inc=*)
958     includedir=$ac_optarg ;;
959
960   -infodir | --infodir | --infodi | --infod | --info | --inf)
961     ac_prev=infodir ;;
962   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
963     infodir=$ac_optarg ;;
964
965   -libdir | --libdir | --libdi | --libd)
966     ac_prev=libdir ;;
967   -libdir=* | --libdir=* | --libdi=* | --libd=*)
968     libdir=$ac_optarg ;;
969
970   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
971   | --libexe | --libex | --libe)
972     ac_prev=libexecdir ;;
973   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
974   | --libexe=* | --libex=* | --libe=*)
975     libexecdir=$ac_optarg ;;
976
977   -localedir | --localedir | --localedi | --localed | --locale)
978     ac_prev=localedir ;;
979   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980     localedir=$ac_optarg ;;
981
982   -localstatedir | --localstatedir | --localstatedi | --localstated \
983   | --localstate | --localstat | --localsta | --localst | --locals)
984     ac_prev=localstatedir ;;
985   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
986   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
987     localstatedir=$ac_optarg ;;
988
989   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
990     ac_prev=mandir ;;
991   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
992     mandir=$ac_optarg ;;
993
994   -nfp | --nfp | --nf)
995     # Obsolete; use --without-fp.
996     with_fp=no ;;
997
998   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999   | --no-cr | --no-c | -n)
1000     no_create=yes ;;
1001
1002   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1004     no_recursion=yes ;;
1005
1006   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1007   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1008   | --oldin | --oldi | --old | --ol | --o)
1009     ac_prev=oldincludedir ;;
1010   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1011   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1012   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1013     oldincludedir=$ac_optarg ;;
1014
1015   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1016     ac_prev=prefix ;;
1017   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1018     prefix=$ac_optarg ;;
1019
1020   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1021   | --program-pre | --program-pr | --program-p)
1022     ac_prev=program_prefix ;;
1023   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1024   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1025     program_prefix=$ac_optarg ;;
1026
1027   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1028   | --program-suf | --program-su | --program-s)
1029     ac_prev=program_suffix ;;
1030   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1031   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1032     program_suffix=$ac_optarg ;;
1033
1034   -program-transform-name | --program-transform-name \
1035   | --program-transform-nam | --program-transform-na \
1036   | --program-transform-n | --program-transform- \
1037   | --program-transform | --program-transfor \
1038   | --program-transfo | --program-transf \
1039   | --program-trans | --program-tran \
1040   | --progr-tra | --program-tr | --program-t)
1041     ac_prev=program_transform_name ;;
1042   -program-transform-name=* | --program-transform-name=* \
1043   | --program-transform-nam=* | --program-transform-na=* \
1044   | --program-transform-n=* | --program-transform-=* \
1045   | --program-transform=* | --program-transfor=* \
1046   | --program-transfo=* | --program-transf=* \
1047   | --program-trans=* | --program-tran=* \
1048   | --progr-tra=* | --program-tr=* | --program-t=*)
1049     program_transform_name=$ac_optarg ;;
1050
1051   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1052     ac_prev=pdfdir ;;
1053   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054     pdfdir=$ac_optarg ;;
1055
1056   -psdir | --psdir | --psdi | --psd | --ps)
1057     ac_prev=psdir ;;
1058   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1059     psdir=$ac_optarg ;;
1060
1061   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062   | -silent | --silent | --silen | --sile | --sil)
1063     silent=yes ;;
1064
1065   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1066     ac_prev=sbindir ;;
1067   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1068   | --sbi=* | --sb=*)
1069     sbindir=$ac_optarg ;;
1070
1071   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1072   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1073   | --sharedst | --shareds | --shared | --share | --shar \
1074   | --sha | --sh)
1075     ac_prev=sharedstatedir ;;
1076   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1077   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1078   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1079   | --sha=* | --sh=*)
1080     sharedstatedir=$ac_optarg ;;
1081
1082   -site | --site | --sit)
1083     ac_prev=site ;;
1084   -site=* | --site=* | --sit=*)
1085     site=$ac_optarg ;;
1086
1087   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1088     ac_prev=srcdir ;;
1089   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1090     srcdir=$ac_optarg ;;
1091
1092   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1093   | --syscon | --sysco | --sysc | --sys | --sy)
1094     ac_prev=sysconfdir ;;
1095   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1096   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1097     sysconfdir=$ac_optarg ;;
1098
1099   -target | --target | --targe | --targ | --tar | --ta | --t)
1100     ac_prev=target_alias ;;
1101   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1102     target_alias=$ac_optarg ;;
1103
1104   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1105     verbose=yes ;;
1106
1107   -version | --version | --versio | --versi | --vers | -V)
1108     ac_init_version=: ;;
1109
1110   -with-* | --with-*)
1111     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1112     # Reject names that are not valid shell variable names.
1113     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114       as_fn_error $? "invalid package name: $ac_useropt"
1115     ac_useropt_orig=$ac_useropt
1116     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117     case $ac_user_opts in
1118       *"
1119 "with_$ac_useropt"
1120 "*) ;;
1121       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1122          ac_unrecognized_sep=', ';;
1123     esac
1124     eval with_$ac_useropt=\$ac_optarg ;;
1125
1126   -without-* | --without-*)
1127     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1128     # Reject names that are not valid shell variable names.
1129     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130       as_fn_error $? "invalid package name: $ac_useropt"
1131     ac_useropt_orig=$ac_useropt
1132     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133     case $ac_user_opts in
1134       *"
1135 "with_$ac_useropt"
1136 "*) ;;
1137       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1138          ac_unrecognized_sep=', ';;
1139     esac
1140     eval with_$ac_useropt=no ;;
1141
1142   --x)
1143     # Obsolete; use --with-x.
1144     with_x=yes ;;
1145
1146   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1147   | --x-incl | --x-inc | --x-in | --x-i)
1148     ac_prev=x_includes ;;
1149   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1150   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1151     x_includes=$ac_optarg ;;
1152
1153   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1154   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1155     ac_prev=x_libraries ;;
1156   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1157   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1158     x_libraries=$ac_optarg ;;
1159
1160   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1161 Try \`$0 --help' for more information"
1162     ;;
1163
1164   *=*)
1165     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1166     # Reject names that are not valid shell variable names.
1167     case $ac_envvar in #(
1168       '' | [0-9]* | *[!_$as_cr_alnum]* )
1169       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1170     esac
1171     eval $ac_envvar=\$ac_optarg
1172     export $ac_envvar ;;
1173
1174   *)
1175     # FIXME: should be removed in autoconf 3.0.
1176     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1177     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1178       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1179     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1180     ;;
1181
1182   esac
1183 done
1184
1185 if test -n "$ac_prev"; then
1186   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1187   as_fn_error $? "missing argument to $ac_option"
1188 fi
1189
1190 if test -n "$ac_unrecognized_opts"; then
1191   case $enable_option_checking in
1192     no) ;;
1193     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1194     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1195   esac
1196 fi
1197
1198 # Check all directory arguments for consistency.
1199 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1200                 datadir sysconfdir sharedstatedir localstatedir includedir \
1201                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1202                 libdir localedir mandir
1203 do
1204   eval ac_val=\$$ac_var
1205   # Remove trailing slashes.
1206   case $ac_val in
1207     */ )
1208       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1209       eval $ac_var=\$ac_val;;
1210   esac
1211   # Be sure to have absolute directory names.
1212   case $ac_val in
1213     [\\/$]* | ?:[\\/]* )  continue;;
1214     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215   esac
1216   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1217 done
1218
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1222 build=$build_alias
1223 host=$host_alias
1224 target=$target_alias
1225
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x; then
1228   if test "x$build_alias" = x; then
1229     cross_compiling=maybe
1230   elif test "x$build_alias" != "x$host_alias"; then
1231     cross_compiling=yes
1232   fi
1233 fi
1234
1235 ac_tool_prefix=
1236 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237
1238 test "$silent" = yes && exec 6>/dev/null
1239
1240
1241 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242 ac_ls_di=`ls -di .` &&
1243 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1244   as_fn_error $? "working directory cannot be determined"
1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246   as_fn_error $? "pwd does not report name of working directory"
1247
1248
1249 # Find the source files, if location was not specified.
1250 if test -z "$srcdir"; then
1251   ac_srcdir_defaulted=yes
1252   # Try the directory containing this script, then the parent directory.
1253   ac_confdir=`$as_dirname -- "$as_myself" ||
1254 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255          X"$as_myself" : 'X\(//\)[^/]' \| \
1256          X"$as_myself" : 'X\(//\)$' \| \
1257          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1258 $as_echo X"$as_myself" |
1259     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1260             s//\1/
1261             q
1262           }
1263           /^X\(\/\/\)[^/].*/{
1264             s//\1/
1265             q
1266           }
1267           /^X\(\/\/\)$/{
1268             s//\1/
1269             q
1270           }
1271           /^X\(\/\).*/{
1272             s//\1/
1273             q
1274           }
1275           s/.*/./; q'`
1276   srcdir=$ac_confdir
1277   if test ! -r "$srcdir/$ac_unique_file"; then
1278     srcdir=..
1279   fi
1280 else
1281   ac_srcdir_defaulted=no
1282 fi
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1285   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1286 fi
1287 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1288 ac_abs_confdir=`(
1289         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1290         pwd)`
1291 # When building in place, set srcdir=.
1292 if test "$ac_abs_confdir" = "$ac_pwd"; then
1293   srcdir=.
1294 fi
1295 # Remove unnecessary trailing slashes from srcdir.
1296 # Double slashes in file names in object file debugging info
1297 # mess up M-x gdb in Emacs.
1298 case $srcdir in
1299 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1300 esac
1301 for ac_var in $ac_precious_vars; do
1302   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1303   eval ac_env_${ac_var}_value=\$${ac_var}
1304   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1305   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1306 done
1307
1308 #
1309 # Report the --help message.
1310 #
1311 if test "$ac_init_help" = "long"; then
1312   # Omit some internal or obsolete options to make the list less imposing.
1313   # This message is too long to be a string in the A/UX 3.1 sh.
1314   cat <<_ACEOF
1315 \`configure' configures freeradius $Id$ to adapt to many kinds of systems.
1316
1317 Usage: $0 [OPTION]... [VAR=VALUE]...
1318
1319 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1320 VAR=VALUE.  See below for descriptions of some of the useful variables.
1321
1322 Defaults for the options are specified in brackets.
1323
1324 Configuration:
1325   -h, --help              display this help and exit
1326       --help=short        display options specific to this package
1327       --help=recursive    display the short help of all the included packages
1328   -V, --version           display version information and exit
1329   -q, --quiet, --silent   do not print \`checking ...' messages
1330       --cache-file=FILE   cache test results in FILE [disabled]
1331   -C, --config-cache      alias for \`--cache-file=config.cache'
1332   -n, --no-create         do not create output files
1333       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1334
1335 Installation directories:
1336   --prefix=PREFIX         install architecture-independent files in PREFIX
1337                           [$ac_default_prefix]
1338   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1339                           [PREFIX]
1340
1341 By default, \`make install' will install all the files in
1342 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1343 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1344 for instance \`--prefix=\$HOME'.
1345
1346 For better control, use the options below.
1347
1348 Fine tuning of the installation directories:
1349   --bindir=DIR            user executables [EPREFIX/bin]
1350   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1351   --libexecdir=DIR        program executables [EPREFIX/libexec]
1352   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1353   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1354   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1355   --libdir=DIR            object code libraries [EPREFIX/lib]
1356   --includedir=DIR        C header files [PREFIX/include]
1357   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1358   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1359   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1360   --infodir=DIR           info documentation [DATAROOTDIR/info]
1361   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1362   --mandir=DIR            man documentation [DATAROOTDIR/man]
1363   --docdir=DIR            documentation root [DATAROOTDIR/doc/freeradius]
1364   --htmldir=DIR           html documentation [DOCDIR]
1365   --dvidir=DIR            dvi documentation [DOCDIR]
1366   --pdfdir=DIR            pdf documentation [DOCDIR]
1367   --psdir=DIR             ps documentation [DOCDIR]
1368 _ACEOF
1369
1370   cat <<\_ACEOF
1371
1372 System types:
1373   --build=BUILD     configure for building on BUILD [guessed]
1374   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1375   --target=TARGET   configure for building compilers for TARGET [HOST]
1376 _ACEOF
1377 fi
1378
1379 if test -n "$ac_init_help"; then
1380   case $ac_init_help in
1381      short | recursive ) echo "Configuration of freeradius $Id$:";;
1382    esac
1383   cat <<\_ACEOF
1384
1385 Optional Features:
1386   --disable-option-checking  ignore unrecognized --enable/--with options
1387   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1388   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1389   --enable-developer      enables features of interest to developers.
1390   --disable-largefile     omit support for large files
1391   --enable-strict-dependencies  fail configure on lack of module dependancy.
1392   --enable-werror         causes the build to fail if any warnings are generated.
1393
1394 Optional Packages:
1395   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1396   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1397   --with-docdir=DIR       directory for documentation DATADIR/doc/freeradius
1398   --with-logdir=DIR       directory for logfiles LOCALSTATEDIR/log/radius
1399   --with-radacctdir=DIR   directory for detail files LOGDIR/radacct
1400   --with-raddbdir=DIR     directory for config files SYSCONFDIR/raddb
1401   --with-ascend-binary    include support for Ascend binary filter attributes (default=yes)
1402   --with-threads          use threads, if available.  (default=yes)
1403   --with-tcp              compile in TCP support. (default=yes)
1404   --with-vmps             compile in VMPS support. (default=yes)
1405   --with-dhcp             compile in DHCP support. (default=yes)
1406   --with-static-modules=QUOTED-MODULE-LIST
1407   --with-shared-libs               build dynamic libraries and link against them. (default=yes)
1408   --with-modules=QUOTED-MODULE-LIST
1409   --with-experimental-modules      use experimental and unstable modules. (default=no, unless --enable-developer=yes)
1410   --with-udpfromto                 compile in UDPFROMTO support. (default=yes)
1411   --with-openssl                   use OpenSSL. (default=yes)
1412   --with-openssl-includes=DIR      directory to look for OpenSSL include files in
1413   --with-openssl-libraries=DIR     directory to look for OpenSSL library files in
1414   --with-rlm-FOO-lib-dir=DIR       directory to look for library files used by module FOO in
1415   --with-rlm-FOO-include-dir=DIR   directory to look for include files used by module FOO in
1416   --with-talloc-include-dir=DIR    directory to look for talloc include files in
1417   --with-talloc-lib-dir=DIR        directory to look for talloc library files in
1418   --with-pcap-include-dir=DIR    directory to look for pcap include files in
1419   --with-pcap-lib-dir=DIR        directory to look for pcap library files in
1420   --with-pcre-lib-dir=DIR          directory to look for PCRE library files in
1421   --with-pcre-include-dir=DIR      directory to look for PCRE include files in
1422
1423 Some influential environment variables:
1424   CC          C compiler command
1425   CFLAGS      C compiler flags
1426   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1427               nonstandard directory <lib dir>
1428   LIBS        libraries to pass to the linker, e.g. -l<library>
1429   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1430               you have headers in a nonstandard directory <include dir>
1431   CXX         C++ compiler command
1432   CXXFLAGS    C++ compiler flags
1433   CPP         C preprocessor
1434
1435 Use these variables to override the choices made by `configure' or to help
1436 it to find libraries and programs with nonstandard names/locations.
1437
1438 Report bugs to <http://bugs.freeradius.org>.
1439 freeradius home page: <http://www.freeradius.org>.
1440 _ACEOF
1441 ac_status=$?
1442 fi
1443
1444 if test "$ac_init_help" = "recursive"; then
1445   # If there are subdirs, report their specific --help.
1446   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1447     test -d "$ac_dir" ||
1448       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1449       continue
1450     ac_builddir=.
1451
1452 case "$ac_dir" in
1453 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454 *)
1455   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1456   # A ".." for each directory in $ac_dir_suffix.
1457   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1458   case $ac_top_builddir_sub in
1459   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1461   esac ;;
1462 esac
1463 ac_abs_top_builddir=$ac_pwd
1464 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1465 # for backward compatibility:
1466 ac_top_builddir=$ac_top_build_prefix
1467
1468 case $srcdir in
1469   .)  # We are building in place.
1470     ac_srcdir=.
1471     ac_top_srcdir=$ac_top_builddir_sub
1472     ac_abs_top_srcdir=$ac_pwd ;;
1473   [\\/]* | ?:[\\/]* )  # Absolute name.
1474     ac_srcdir=$srcdir$ac_dir_suffix;
1475     ac_top_srcdir=$srcdir
1476     ac_abs_top_srcdir=$srcdir ;;
1477   *) # Relative name.
1478     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1479     ac_top_srcdir=$ac_top_build_prefix$srcdir
1480     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1481 esac
1482 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1483
1484     cd "$ac_dir" || { ac_status=$?; continue; }
1485     # Check for guested configure.
1486     if test -f "$ac_srcdir/configure.gnu"; then
1487       echo &&
1488       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1489     elif test -f "$ac_srcdir/configure"; then
1490       echo &&
1491       $SHELL "$ac_srcdir/configure" --help=recursive
1492     else
1493       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1494     fi || ac_status=$?
1495     cd "$ac_pwd" || { ac_status=$?; break; }
1496   done
1497 fi
1498
1499 test -n "$ac_init_help" && exit $ac_status
1500 if $ac_init_version; then
1501   cat <<\_ACEOF
1502 freeradius configure $Id$
1503 generated by GNU Autoconf 2.69
1504
1505 Copyright (C) 2012 Free Software Foundation, Inc.
1506 This configure script is free software; the Free Software Foundation
1507 gives unlimited permission to copy, distribute and modify it.
1508 _ACEOF
1509   exit
1510 fi
1511
1512 ## ------------------------ ##
1513 ## Autoconf initialization. ##
1514 ## ------------------------ ##
1515
1516 # ac_fn_c_try_compile LINENO
1517 # --------------------------
1518 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1519 ac_fn_c_try_compile ()
1520 {
1521   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522   rm -f conftest.$ac_objext
1523   if { { ac_try="$ac_compile"
1524 case "(($ac_try" in
1525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1526   *) ac_try_echo=$ac_try;;
1527 esac
1528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1529 $as_echo "$ac_try_echo"; } >&5
1530   (eval "$ac_compile") 2>conftest.err
1531   ac_status=$?
1532   if test -s conftest.err; then
1533     grep -v '^ *+' conftest.err >conftest.er1
1534     cat conftest.er1 >&5
1535     mv -f conftest.er1 conftest.err
1536   fi
1537   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1538   test $ac_status = 0; } && {
1539          test -z "$ac_c_werror_flag" ||
1540          test ! -s conftest.err
1541        } && test -s conftest.$ac_objext; then :
1542   ac_retval=0
1543 else
1544   $as_echo "$as_me: failed program was:" >&5
1545 sed 's/^/| /' conftest.$ac_ext >&5
1546
1547         ac_retval=1
1548 fi
1549   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1550   as_fn_set_status $ac_retval
1551
1552 } # ac_fn_c_try_compile
1553
1554 # ac_fn_cxx_try_compile LINENO
1555 # ----------------------------
1556 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1557 ac_fn_cxx_try_compile ()
1558 {
1559   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560   rm -f conftest.$ac_objext
1561   if { { ac_try="$ac_compile"
1562 case "(($ac_try" in
1563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564   *) ac_try_echo=$ac_try;;
1565 esac
1566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567 $as_echo "$ac_try_echo"; } >&5
1568   (eval "$ac_compile") 2>conftest.err
1569   ac_status=$?
1570   if test -s conftest.err; then
1571     grep -v '^ *+' conftest.err >conftest.er1
1572     cat conftest.er1 >&5
1573     mv -f conftest.er1 conftest.err
1574   fi
1575   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576   test $ac_status = 0; } && {
1577          test -z "$ac_cxx_werror_flag" ||
1578          test ! -s conftest.err
1579        } && test -s conftest.$ac_objext; then :
1580   ac_retval=0
1581 else
1582   $as_echo "$as_me: failed program was:" >&5
1583 sed 's/^/| /' conftest.$ac_ext >&5
1584
1585         ac_retval=1
1586 fi
1587   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588   as_fn_set_status $ac_retval
1589
1590 } # ac_fn_cxx_try_compile
1591
1592 # ac_fn_c_try_cpp LINENO
1593 # ----------------------
1594 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1595 ac_fn_c_try_cpp ()
1596 {
1597   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598   if { { ac_try="$ac_cpp conftest.$ac_ext"
1599 case "(($ac_try" in
1600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601   *) ac_try_echo=$ac_try;;
1602 esac
1603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604 $as_echo "$ac_try_echo"; } >&5
1605   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1606   ac_status=$?
1607   if test -s conftest.err; then
1608     grep -v '^ *+' conftest.err >conftest.er1
1609     cat conftest.er1 >&5
1610     mv -f conftest.er1 conftest.err
1611   fi
1612   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613   test $ac_status = 0; } > conftest.i && {
1614          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1615          test ! -s conftest.err
1616        }; then :
1617   ac_retval=0
1618 else
1619   $as_echo "$as_me: failed program was:" >&5
1620 sed 's/^/| /' conftest.$ac_ext >&5
1621
1622     ac_retval=1
1623 fi
1624   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625   as_fn_set_status $ac_retval
1626
1627 } # ac_fn_c_try_cpp
1628
1629 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1630 # -------------------------------------------------------
1631 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1632 # the include files in INCLUDES and setting the cache variable VAR
1633 # accordingly.
1634 ac_fn_c_check_header_mongrel ()
1635 {
1636   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637   if eval \${$3+:} false; then :
1638   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1639 $as_echo_n "checking for $2... " >&6; }
1640 if eval \${$3+:} false; then :
1641   $as_echo_n "(cached) " >&6
1642 fi
1643 eval ac_res=\$$3
1644                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1645 $as_echo "$ac_res" >&6; }
1646 else
1647   # Is the header compilable?
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1649 $as_echo_n "checking $2 usability... " >&6; }
1650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1651 /* end confdefs.h.  */
1652 $4
1653 #include <$2>
1654 _ACEOF
1655 if ac_fn_c_try_compile "$LINENO"; then :
1656   ac_header_compiler=yes
1657 else
1658   ac_header_compiler=no
1659 fi
1660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1662 $as_echo "$ac_header_compiler" >&6; }
1663
1664 # Is the header present?
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1666 $as_echo_n "checking $2 presence... " >&6; }
1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668 /* end confdefs.h.  */
1669 #include <$2>
1670 _ACEOF
1671 if ac_fn_c_try_cpp "$LINENO"; then :
1672   ac_header_preproc=yes
1673 else
1674   ac_header_preproc=no
1675 fi
1676 rm -f conftest.err conftest.i conftest.$ac_ext
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1678 $as_echo "$ac_header_preproc" >&6; }
1679
1680 # So?  What about this header?
1681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1682   yes:no: )
1683     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1684 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1685     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1686 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1687     ;;
1688   no:yes:* )
1689     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1690 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1691     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1692 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1693     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1694 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1695     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1696 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1697     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1698 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1699 ( $as_echo "## ----------------------------------------- ##
1700 ## Report this to http://bugs.freeradius.org ##
1701 ## ----------------------------------------- ##"
1702      ) | sed "s/^/$as_me: WARNING:     /" >&2
1703     ;;
1704 esac
1705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706 $as_echo_n "checking for $2... " >&6; }
1707 if eval \${$3+:} false; then :
1708   $as_echo_n "(cached) " >&6
1709 else
1710   eval "$3=\$ac_header_compiler"
1711 fi
1712 eval ac_res=\$$3
1713                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1714 $as_echo "$ac_res" >&6; }
1715 fi
1716   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717
1718 } # ac_fn_c_check_header_mongrel
1719
1720 # ac_fn_c_try_run LINENO
1721 # ----------------------
1722 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1723 # that executables *can* be run.
1724 ac_fn_c_try_run ()
1725 {
1726   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727   if { { ac_try="$ac_link"
1728 case "(($ac_try" in
1729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730   *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734   (eval "$ac_link") 2>&5
1735   ac_status=$?
1736   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1738   { { case "(($ac_try" in
1739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740   *) ac_try_echo=$ac_try;;
1741 esac
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744   (eval "$ac_try") 2>&5
1745   ac_status=$?
1746   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747   test $ac_status = 0; }; }; then :
1748   ac_retval=0
1749 else
1750   $as_echo "$as_me: program exited with status $ac_status" >&5
1751        $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1753
1754        ac_retval=$ac_status
1755 fi
1756   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1757   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758   as_fn_set_status $ac_retval
1759
1760 } # ac_fn_c_try_run
1761
1762 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1763 # -------------------------------------------------------
1764 # Tests whether HEADER exists and can be compiled using the include files in
1765 # INCLUDES, setting the cache variable VAR accordingly.
1766 ac_fn_c_check_header_compile ()
1767 {
1768   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if eval \${$3+:} false; then :
1772   $as_echo_n "(cached) " >&6
1773 else
1774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h.  */
1776 $4
1777 #include <$2>
1778 _ACEOF
1779 if ac_fn_c_try_compile "$LINENO"; then :
1780   eval "$3=yes"
1781 else
1782   eval "$3=no"
1783 fi
1784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1785 fi
1786 eval ac_res=\$$3
1787                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788 $as_echo "$ac_res" >&6; }
1789   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790
1791 } # ac_fn_c_check_header_compile
1792
1793 # ac_fn_c_try_link LINENO
1794 # -----------------------
1795 # Try to link conftest.$ac_ext, and return whether this succeeded.
1796 ac_fn_c_try_link ()
1797 {
1798   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799   rm -f conftest.$ac_objext conftest$ac_exeext
1800   if { { ac_try="$ac_link"
1801 case "(($ac_try" in
1802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803   *) ac_try_echo=$ac_try;;
1804 esac
1805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 $as_echo "$ac_try_echo"; } >&5
1807   (eval "$ac_link") 2>conftest.err
1808   ac_status=$?
1809   if test -s conftest.err; then
1810     grep -v '^ *+' conftest.err >conftest.er1
1811     cat conftest.er1 >&5
1812     mv -f conftest.er1 conftest.err
1813   fi
1814   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815   test $ac_status = 0; } && {
1816          test -z "$ac_c_werror_flag" ||
1817          test ! -s conftest.err
1818        } && test -s conftest$ac_exeext && {
1819          test "$cross_compiling" = yes ||
1820          test -x conftest$ac_exeext
1821        }; then :
1822   ac_retval=0
1823 else
1824   $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1826
1827         ac_retval=1
1828 fi
1829   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1830   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1831   # interfere with the next link command; also delete a directory that is
1832   # left behind by Apple's compiler.  We do this before executing the actions.
1833   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1834   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835   as_fn_set_status $ac_retval
1836
1837 } # ac_fn_c_try_link
1838
1839 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1840 # -------------------------------------------
1841 # Tests whether TYPE exists after having included INCLUDES, setting cache
1842 # variable VAR accordingly.
1843 ac_fn_c_check_type ()
1844 {
1845   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847 $as_echo_n "checking for $2... " >&6; }
1848 if eval \${$3+:} false; then :
1849   $as_echo_n "(cached) " >&6
1850 else
1851   eval "$3=no"
1852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h.  */
1854 $4
1855 int
1856 main ()
1857 {
1858 if (sizeof ($2))
1859          return 0;
1860   ;
1861   return 0;
1862 }
1863 _ACEOF
1864 if ac_fn_c_try_compile "$LINENO"; then :
1865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h.  */
1867 $4
1868 int
1869 main ()
1870 {
1871 if (sizeof (($2)))
1872             return 0;
1873   ;
1874   return 0;
1875 }
1876 _ACEOF
1877 if ac_fn_c_try_compile "$LINENO"; then :
1878
1879 else
1880   eval "$3=yes"
1881 fi
1882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1883 fi
1884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1885 fi
1886 eval ac_res=\$$3
1887                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890
1891 } # ac_fn_c_check_type
1892
1893 # ac_fn_c_check_func LINENO FUNC VAR
1894 # ----------------------------------
1895 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1896 ac_fn_c_check_func ()
1897 {
1898   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900 $as_echo_n "checking for $2... " >&6; }
1901 if eval \${$3+:} false; then :
1902   $as_echo_n "(cached) " >&6
1903 else
1904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h.  */
1906 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1907    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1908 #define $2 innocuous_$2
1909
1910 /* System header to define __stub macros and hopefully few prototypes,
1911     which can conflict with char $2 (); below.
1912     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1913     <limits.h> exists even on freestanding compilers.  */
1914
1915 #ifdef __STDC__
1916 # include <limits.h>
1917 #else
1918 # include <assert.h>
1919 #endif
1920
1921 #undef $2
1922
1923 /* Override any GCC internal prototype to avoid an error.
1924    Use char because int might match the return type of a GCC
1925    builtin and then its argument prototype would still apply.  */
1926 #ifdef __cplusplus
1927 extern "C"
1928 #endif
1929 char $2 ();
1930 /* The GNU C library defines this for functions which it implements
1931     to always fail with ENOSYS.  Some functions are actually named
1932     something starting with __ and the normal name is an alias.  */
1933 #if defined __stub_$2 || defined __stub___$2
1934 choke me
1935 #endif
1936
1937 int
1938 main ()
1939 {
1940 return $2 ();
1941   ;
1942   return 0;
1943 }
1944 _ACEOF
1945 if ac_fn_c_try_link "$LINENO"; then :
1946   eval "$3=yes"
1947 else
1948   eval "$3=no"
1949 fi
1950 rm -f core conftest.err conftest.$ac_objext \
1951     conftest$ac_exeext conftest.$ac_ext
1952 fi
1953 eval ac_res=\$$3
1954                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1956   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1957
1958 } # ac_fn_c_check_func
1959
1960 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1961 # ---------------------------------------------
1962 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1963 # accordingly.
1964 ac_fn_c_check_decl ()
1965 {
1966   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967   as_decl_name=`echo $2|sed 's/ *(.*//'`
1968   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1969   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1970 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1971 if eval \${$3+:} false; then :
1972   $as_echo_n "(cached) " >&6
1973 else
1974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h.  */
1976 $4
1977 int
1978 main ()
1979 {
1980 #ifndef $as_decl_name
1981 #ifdef __cplusplus
1982   (void) $as_decl_use;
1983 #else
1984   (void) $as_decl_name;
1985 #endif
1986 #endif
1987
1988   ;
1989   return 0;
1990 }
1991 _ACEOF
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993   eval "$3=yes"
1994 else
1995   eval "$3=no"
1996 fi
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 fi
1999 eval ac_res=\$$3
2000                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2002   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003
2004 } # ac_fn_c_check_decl
2005 cat >config.log <<_ACEOF
2006 This file contains any messages produced by compilers while
2007 running configure, to aid debugging if configure makes a mistake.
2008
2009 It was created by freeradius $as_me $Id$, which was
2010 generated by GNU Autoconf 2.69.  Invocation command line was
2011
2012   $ $0 $@
2013
2014 _ACEOF
2015 exec 5>>config.log
2016 {
2017 cat <<_ASUNAME
2018 ## --------- ##
2019 ## Platform. ##
2020 ## --------- ##
2021
2022 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2023 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2024 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2025 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2026 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2027
2028 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2029 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2030
2031 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2032 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2033 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2034 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2035 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2036 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2037 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2038
2039 _ASUNAME
2040
2041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 for as_dir in $PATH
2043 do
2044   IFS=$as_save_IFS
2045   test -z "$as_dir" && as_dir=.
2046     $as_echo "PATH: $as_dir"
2047   done
2048 IFS=$as_save_IFS
2049
2050 } >&5
2051
2052 cat >&5 <<_ACEOF
2053
2054
2055 ## ----------- ##
2056 ## Core tests. ##
2057 ## ----------- ##
2058
2059 _ACEOF
2060
2061
2062 # Keep a trace of the command line.
2063 # Strip out --no-create and --no-recursion so they do not pile up.
2064 # Strip out --silent because we don't want to record it for future runs.
2065 # Also quote any args containing shell meta-characters.
2066 # Make two passes to allow for proper duplicate-argument suppression.
2067 ac_configure_args=
2068 ac_configure_args0=
2069 ac_configure_args1=
2070 ac_must_keep_next=false
2071 for ac_pass in 1 2
2072 do
2073   for ac_arg
2074   do
2075     case $ac_arg in
2076     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2077     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2078     | -silent | --silent | --silen | --sile | --sil)
2079       continue ;;
2080     *\'*)
2081       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2082     esac
2083     case $ac_pass in
2084     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2085     2)
2086       as_fn_append ac_configure_args1 " '$ac_arg'"
2087       if test $ac_must_keep_next = true; then
2088         ac_must_keep_next=false # Got value, back to normal.
2089       else
2090         case $ac_arg in
2091           *=* | --config-cache | -C | -disable-* | --disable-* \
2092           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2093           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2094           | -with-* | --with-* | -without-* | --without-* | --x)
2095             case "$ac_configure_args0 " in
2096               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2097             esac
2098             ;;
2099           -* ) ac_must_keep_next=true ;;
2100         esac
2101       fi
2102       as_fn_append ac_configure_args " '$ac_arg'"
2103       ;;
2104     esac
2105   done
2106 done
2107 { ac_configure_args0=; unset ac_configure_args0;}
2108 { ac_configure_args1=; unset ac_configure_args1;}
2109
2110 # When interrupted or exit'd, cleanup temporary files, and complete
2111 # config.log.  We remove comments because anyway the quotes in there
2112 # would cause problems or look ugly.
2113 # WARNING: Use '\'' to represent an apostrophe within the trap.
2114 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2115 trap 'exit_status=$?
2116   # Save into config.log some information that might help in debugging.
2117   {
2118     echo
2119
2120     $as_echo "## ---------------- ##
2121 ## Cache variables. ##
2122 ## ---------------- ##"
2123     echo
2124     # The following way of writing the cache mishandles newlines in values,
2125 (
2126   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2127     eval ac_val=\$$ac_var
2128     case $ac_val in #(
2129     *${as_nl}*)
2130       case $ac_var in #(
2131       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2132 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2133       esac
2134       case $ac_var in #(
2135       _ | IFS | as_nl) ;; #(
2136       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2137       *) { eval $ac_var=; unset $ac_var;} ;;
2138       esac ;;
2139     esac
2140   done
2141   (set) 2>&1 |
2142     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2143     *${as_nl}ac_space=\ *)
2144       sed -n \
2145         "s/'\''/'\''\\\\'\'''\''/g;
2146           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2147       ;; #(
2148     *)
2149       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2150       ;;
2151     esac |
2152     sort
2153 )
2154     echo
2155
2156     $as_echo "## ----------------- ##
2157 ## Output variables. ##
2158 ## ----------------- ##"
2159     echo
2160     for ac_var in $ac_subst_vars
2161     do
2162       eval ac_val=\$$ac_var
2163       case $ac_val in
2164       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2165       esac
2166       $as_echo "$ac_var='\''$ac_val'\''"
2167     done | sort
2168     echo
2169
2170     if test -n "$ac_subst_files"; then
2171       $as_echo "## ------------------- ##
2172 ## File substitutions. ##
2173 ## ------------------- ##"
2174       echo
2175       for ac_var in $ac_subst_files
2176       do
2177         eval ac_val=\$$ac_var
2178         case $ac_val in
2179         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2180         esac
2181         $as_echo "$ac_var='\''$ac_val'\''"
2182       done | sort
2183       echo
2184     fi
2185
2186     if test -s confdefs.h; then
2187       $as_echo "## ----------- ##
2188 ## confdefs.h. ##
2189 ## ----------- ##"
2190       echo
2191       cat confdefs.h
2192       echo
2193     fi
2194     test "$ac_signal" != 0 &&
2195       $as_echo "$as_me: caught signal $ac_signal"
2196     $as_echo "$as_me: exit $exit_status"
2197   } >&5
2198   rm -f core *.core core.conftest.* &&
2199     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2200     exit $exit_status
2201 ' 0
2202 for ac_signal in 1 2 13 15; do
2203   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2204 done
2205 ac_signal=0
2206
2207 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2208 rm -f -r conftest* confdefs.h
2209
2210 $as_echo "/* confdefs.h */" > confdefs.h
2211
2212 # Predefined preprocessor variables.
2213
2214 cat >>confdefs.h <<_ACEOF
2215 #define PACKAGE_NAME "$PACKAGE_NAME"
2216 _ACEOF
2217
2218 cat >>confdefs.h <<_ACEOF
2219 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2220 _ACEOF
2221
2222 cat >>confdefs.h <<_ACEOF
2223 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2224 _ACEOF
2225
2226 cat >>confdefs.h <<_ACEOF
2227 #define PACKAGE_STRING "$PACKAGE_STRING"
2228 _ACEOF
2229
2230 cat >>confdefs.h <<_ACEOF
2231 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2232 _ACEOF
2233
2234 cat >>confdefs.h <<_ACEOF
2235 #define PACKAGE_URL "$PACKAGE_URL"
2236 _ACEOF
2237
2238
2239 # Let the site file select an alternate cache file if it wants to.
2240 # Prefer an explicitly selected file to automatically selected ones.
2241 ac_site_file1=NONE
2242 ac_site_file2=NONE
2243 if test -n "$CONFIG_SITE"; then
2244   # We do not want a PATH search for config.site.
2245   case $CONFIG_SITE in #((
2246     -*)  ac_site_file1=./$CONFIG_SITE;;
2247     */*) ac_site_file1=$CONFIG_SITE;;
2248     *)   ac_site_file1=./$CONFIG_SITE;;
2249   esac
2250 elif test "x$prefix" != xNONE; then
2251   ac_site_file1=$prefix/share/config.site
2252   ac_site_file2=$prefix/etc/config.site
2253 else
2254   ac_site_file1=$ac_default_prefix/share/config.site
2255   ac_site_file2=$ac_default_prefix/etc/config.site
2256 fi
2257 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2258 do
2259   test "x$ac_site_file" = xNONE && continue
2260   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2261     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2262 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2263     sed 's/^/| /' "$ac_site_file" >&5
2264     . "$ac_site_file" \
2265       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2267 as_fn_error $? "failed to load site script $ac_site_file
2268 See \`config.log' for more details" "$LINENO" 5; }
2269   fi
2270 done
2271
2272 if test -r "$cache_file"; then
2273   # Some versions of bash will fail to source /dev/null (special files
2274   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2275   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2276     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2277 $as_echo "$as_me: loading cache $cache_file" >&6;}
2278     case $cache_file in
2279       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2280       *)                      . "./$cache_file";;
2281     esac
2282   fi
2283 else
2284   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2285 $as_echo "$as_me: creating cache $cache_file" >&6;}
2286   >$cache_file
2287 fi
2288
2289 # Check that the precious variables saved in the cache have kept the same
2290 # value.
2291 ac_cache_corrupted=false
2292 for ac_var in $ac_precious_vars; do
2293   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2294   eval ac_new_set=\$ac_env_${ac_var}_set
2295   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2296   eval ac_new_val=\$ac_env_${ac_var}_value
2297   case $ac_old_set,$ac_new_set in
2298     set,)
2299       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2300 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2301       ac_cache_corrupted=: ;;
2302     ,set)
2303       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2304 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2305       ac_cache_corrupted=: ;;
2306     ,);;
2307     *)
2308       if test "x$ac_old_val" != "x$ac_new_val"; then
2309         # differences in whitespace do not lead to failure.
2310         ac_old_val_w=`echo x $ac_old_val`
2311         ac_new_val_w=`echo x $ac_new_val`
2312         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2313           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2314 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2315           ac_cache_corrupted=:
2316         else
2317           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2318 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2319           eval $ac_var=\$ac_old_val
2320         fi
2321         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2322 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2323         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2324 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2325       fi;;
2326   esac
2327   # Pass precious variables to config.status.
2328   if test "$ac_new_set" = set; then
2329     case $ac_new_val in
2330     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2331     *) ac_arg=$ac_var=$ac_new_val ;;
2332     esac
2333     case " $ac_configure_args " in
2334       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2335       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2336     esac
2337   fi
2338 done
2339 if $ac_cache_corrupted; then
2340   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2342   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2343 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2344   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2345 fi
2346 ## -------------------- ##
2347 ## Main body of script. ##
2348 ## -------------------- ##
2349
2350 ac_ext=c
2351 ac_cpp='$CPP $CPPFLAGS'
2352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2355
2356
2357
2358 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2372 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2373 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2374
2375 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2376 -v minor="$RADIUSD_MINOR_VERSION" \
2377 -v incrm="$RADIUSD_INCRM_VERSION" \
2378 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2379
2380 RADIUSD_VERSION_STRING=`cat VERSION`
2381
2382
2383
2384
2385 cat >>confdefs.h <<_ACEOF
2386 #define RADIUSD_VERSION ${RADIUSD_VERSION}
2387 _ACEOF
2388
2389
2390 cat >>confdefs.h <<_ACEOF
2391 #define RADIUSD_VERSION_STRING "${RADIUSD_VERSION_STRING}"
2392 _ACEOF
2393
2394
2395
2396 # Check whether --enable-developer was given.
2397 if test "${enable_developer+set}" = set; then :
2398   enableval=$enable_developer;  case "$enableval" in
2399   no)
2400     developer=no
2401     ;;
2402   *)
2403     developer=yes
2404   esac
2405
2406 fi
2407
2408
2409 if test -d $srcdir/.git; then
2410   if test "x$developer" != "xno"; then
2411     { $as_echo "$as_me:${as_lineno-$LINENO}: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&5
2412 $as_echo "$as_me: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&6;}
2413     developer="yes"
2414   fi
2415 fi
2416
2417 if test "x$developer" = "xyes"; then
2418   : ${CFLAGS=-g3}
2419 fi
2420
2421
2422 ac_aux_dir=
2423 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2424   if test -f "$ac_dir/install-sh"; then
2425     ac_aux_dir=$ac_dir
2426     ac_install_sh="$ac_aux_dir/install-sh -c"
2427     break
2428   elif test -f "$ac_dir/install.sh"; then
2429     ac_aux_dir=$ac_dir
2430     ac_install_sh="$ac_aux_dir/install.sh -c"
2431     break
2432   elif test -f "$ac_dir/shtool"; then
2433     ac_aux_dir=$ac_dir
2434     ac_install_sh="$ac_aux_dir/shtool install -c"
2435     break
2436   fi
2437 done
2438 if test -z "$ac_aux_dir"; then
2439   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2440 fi
2441
2442 # These three variables are undocumented and unsupported,
2443 # and are intended to be withdrawn in a future Autoconf release.
2444 # They can cause serious problems if a builder's source tree is in a directory
2445 # whose full name contains unusual characters.
2446 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2447 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2448 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2449
2450
2451 # Make sure we can run config.sub.
2452 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2453   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2454
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2456 $as_echo_n "checking build system type... " >&6; }
2457 if ${ac_cv_build+:} false; then :
2458   $as_echo_n "(cached) " >&6
2459 else
2460   ac_build_alias=$build_alias
2461 test "x$ac_build_alias" = x &&
2462   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2463 test "x$ac_build_alias" = x &&
2464   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2465 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2466   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2467
2468 fi
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2470 $as_echo "$ac_cv_build" >&6; }
2471 case $ac_cv_build in
2472 *-*-*) ;;
2473 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2474 esac
2475 build=$ac_cv_build
2476 ac_save_IFS=$IFS; IFS='-'
2477 set x $ac_cv_build
2478 shift
2479 build_cpu=$1
2480 build_vendor=$2
2481 shift; shift
2482 # Remember, the first character of IFS is used to create $*,
2483 # except with old shells:
2484 build_os=$*
2485 IFS=$ac_save_IFS
2486 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2487
2488
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2490 $as_echo_n "checking host system type... " >&6; }
2491 if ${ac_cv_host+:} false; then :
2492   $as_echo_n "(cached) " >&6
2493 else
2494   if test "x$host_alias" = x; then
2495   ac_cv_host=$ac_cv_build
2496 else
2497   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2498     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2499 fi
2500
2501 fi
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2503 $as_echo "$ac_cv_host" >&6; }
2504 case $ac_cv_host in
2505 *-*-*) ;;
2506 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2507 esac
2508 host=$ac_cv_host
2509 ac_save_IFS=$IFS; IFS='-'
2510 set x $ac_cv_host
2511 shift
2512 host_cpu=$1
2513 host_vendor=$2
2514 shift; shift
2515 # Remember, the first character of IFS is used to create $*,
2516 # except with old shells:
2517 host_os=$*
2518 IFS=$ac_save_IFS
2519 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2520
2521
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2523 $as_echo_n "checking target system type... " >&6; }
2524 if ${ac_cv_target+:} false; then :
2525   $as_echo_n "(cached) " >&6
2526 else
2527   if test "x$target_alias" = x; then
2528   ac_cv_target=$ac_cv_host
2529 else
2530   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2531     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2532 fi
2533
2534 fi
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2536 $as_echo "$ac_cv_target" >&6; }
2537 case $ac_cv_target in
2538 *-*-*) ;;
2539 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2540 esac
2541 target=$ac_cv_target
2542 ac_save_IFS=$IFS; IFS='-'
2543 set x $ac_cv_target
2544 shift
2545 target_cpu=$1
2546 target_vendor=$2
2547 shift; shift
2548 # Remember, the first character of IFS is used to create $*,
2549 # except with old shells:
2550 target_os=$*
2551 IFS=$ac_save_IFS
2552 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2553
2554
2555 # The aliases save the names the user supplied, while $host etc.
2556 # will get canonicalized.
2557 test -n "$target_alias" &&
2558   test "$program_prefix$program_suffix$program_transform_name" = \
2559     NONENONEs,x,x, &&
2560   program_prefix=${target_alias}-
2561
2562
2563 case "$host" in
2564   *-darwin*)
2565                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cc is apple llvm" >&5
2566 $as_echo_n "checking if cc is apple llvm... " >&6; }
2567     if ! $CC --version 2>&1 | grep -I 'Apple LLVM' > /dev/null; then
2568       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2569 $as_echo "no" >&6; }
2570       # Extract the first word of "sw_vers", so it can be a program name with args.
2571 set dummy sw_vers; ac_word=$2
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2573 $as_echo_n "checking for $ac_word... " >&6; }
2574 if ${ac_cv_prog_SW_VERS+:} false; then :
2575   $as_echo_n "(cached) " >&6
2576 else
2577   if test -n "$SW_VERS"; then
2578   ac_cv_prog_SW_VERS="$SW_VERS" # Let the user override the test.
2579 else
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 for as_dir in $PATH
2582 do
2583   IFS=$as_save_IFS
2584   test -z "$as_dir" && as_dir=.
2585     for ac_exec_ext in '' $ac_executable_extensions; do
2586   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2587     ac_cv_prog_SW_VERS="yes"
2588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2589     break 2
2590   fi
2591 done
2592   done
2593 IFS=$as_save_IFS
2594
2595   test -z "$ac_cv_prog_SW_VERS" && ac_cv_prog_SW_VERS="no"
2596 fi
2597 fi
2598 SW_VERS=$ac_cv_prog_SW_VERS
2599 if test -n "$SW_VERS"; then
2600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SW_VERS" >&5
2601 $as_echo "$SW_VERS" >&6; }
2602 else
2603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2604 $as_echo "no" >&6; }
2605 fi
2606
2607
2608       # Extract the first word of "xcodebuild", so it can be a program name with args.
2609 set dummy xcodebuild; ac_word=$2
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2611 $as_echo_n "checking for $ac_word... " >&6; }
2612 if ${ac_cv_prog_XCODEBUILD+:} false; then :
2613   $as_echo_n "(cached) " >&6
2614 else
2615   if test -n "$XCODEBUILD"; then
2616   ac_cv_prog_XCODEBUILD="$XCODEBUILD" # Let the user override the test.
2617 else
2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619 for as_dir in $PATH
2620 do
2621   IFS=$as_save_IFS
2622   test -z "$as_dir" && as_dir=.
2623     for ac_exec_ext in '' $ac_executable_extensions; do
2624   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2625     ac_cv_prog_XCODEBUILD="yes"
2626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2627     break 2
2628   fi
2629 done
2630   done
2631 IFS=$as_save_IFS
2632
2633   test -z "$ac_cv_prog_XCODEBUILD" && ac_cv_prog_XCODEBUILD="no"
2634 fi
2635 fi
2636 XCODEBUILD=$ac_cv_prog_XCODEBUILD
2637 if test -n "$XCODEBUILD"; then
2638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
2639 $as_echo "$XCODEBUILD" >&6; }
2640 else
2641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2642 $as_echo "no" >&6; }
2643 fi
2644
2645
2646
2647       if test "x$SW_VERS" = "xyes" && test "x$XCODEBUILD" = "xyes"; then
2648         { $as_echo "$as_me:${as_lineno-$LINENO}: determining OSX SDK path" >&5
2649 $as_echo "$as_me: determining OSX SDK path" >&6;}
2650         osx_sdk_path=$(xcodebuild -version -sdk macosx$(sw_vers -productVersion | egrep -o '^[0-9]+\.[0-9]+') Path)
2651         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $osx_sdk_path" >&5
2652 $as_echo "$osx_sdk_path" >&6; }
2653
2654                                         export CFLAGS="$CFLAGS --sysroot=$osx_sdk_path"
2655         export CPPFLAGS="$CPPFLAGS --sysroot=$osx_sdk_path"
2656         export LDFLAGS="$LDFLAGS -L$osx_sdk_path/usr/lib/"
2657         DARWIN_CFLAGS="--sysroot=$osx_sdk_path"
2658
2659       fi
2660     else
2661       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2662 $as_echo "yes" >&6; }
2663     fi
2664     ;;
2665 esac
2666
2667 ac_ext=c
2668 ac_cpp='$CPP $CPPFLAGS'
2669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2672 if test -n "$ac_tool_prefix"; then
2673   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2674 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2676 $as_echo_n "checking for $ac_word... " >&6; }
2677 if ${ac_cv_prog_CC+:} false; then :
2678   $as_echo_n "(cached) " >&6
2679 else
2680   if test -n "$CC"; then
2681   ac_cv_prog_CC="$CC" # Let the user override the test.
2682 else
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 for as_dir in $PATH
2685 do
2686   IFS=$as_save_IFS
2687   test -z "$as_dir" && as_dir=.
2688     for ac_exec_ext in '' $ac_executable_extensions; do
2689   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2690     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2692     break 2
2693   fi
2694 done
2695   done
2696 IFS=$as_save_IFS
2697
2698 fi
2699 fi
2700 CC=$ac_cv_prog_CC
2701 if test -n "$CC"; then
2702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2703 $as_echo "$CC" >&6; }
2704 else
2705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2706 $as_echo "no" >&6; }
2707 fi
2708
2709
2710 fi
2711 if test -z "$ac_cv_prog_CC"; then
2712   ac_ct_CC=$CC
2713   # Extract the first word of "gcc", so it can be a program name with args.
2714 set dummy gcc; ac_word=$2
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2716 $as_echo_n "checking for $ac_word... " >&6; }
2717 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2718   $as_echo_n "(cached) " >&6
2719 else
2720   if test -n "$ac_ct_CC"; then
2721   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2722 else
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724 for as_dir in $PATH
2725 do
2726   IFS=$as_save_IFS
2727   test -z "$as_dir" && as_dir=.
2728     for ac_exec_ext in '' $ac_executable_extensions; do
2729   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2730     ac_cv_prog_ac_ct_CC="gcc"
2731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2732     break 2
2733   fi
2734 done
2735   done
2736 IFS=$as_save_IFS
2737
2738 fi
2739 fi
2740 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2741 if test -n "$ac_ct_CC"; then
2742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2743 $as_echo "$ac_ct_CC" >&6; }
2744 else
2745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2746 $as_echo "no" >&6; }
2747 fi
2748
2749   if test "x$ac_ct_CC" = x; then
2750     CC=""
2751   else
2752     case $cross_compiling:$ac_tool_warned in
2753 yes:)
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2756 ac_tool_warned=yes ;;
2757 esac
2758     CC=$ac_ct_CC
2759   fi
2760 else
2761   CC="$ac_cv_prog_CC"
2762 fi
2763
2764 if test -z "$CC"; then
2765           if test -n "$ac_tool_prefix"; then
2766     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2767 set dummy ${ac_tool_prefix}cc; ac_word=$2
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769 $as_echo_n "checking for $ac_word... " >&6; }
2770 if ${ac_cv_prog_CC+:} false; then :
2771   $as_echo_n "(cached) " >&6
2772 else
2773   if test -n "$CC"; then
2774   ac_cv_prog_CC="$CC" # Let the user override the test.
2775 else
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2778 do
2779   IFS=$as_save_IFS
2780   test -z "$as_dir" && as_dir=.
2781     for ac_exec_ext in '' $ac_executable_extensions; do
2782   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2783     ac_cv_prog_CC="${ac_tool_prefix}cc"
2784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785     break 2
2786   fi
2787 done
2788   done
2789 IFS=$as_save_IFS
2790
2791 fi
2792 fi
2793 CC=$ac_cv_prog_CC
2794 if test -n "$CC"; then
2795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2796 $as_echo "$CC" >&6; }
2797 else
2798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799 $as_echo "no" >&6; }
2800 fi
2801
2802
2803   fi
2804 fi
2805 if test -z "$CC"; then
2806   # Extract the first word of "cc", so it can be a program name with args.
2807 set dummy cc; ac_word=$2
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if ${ac_cv_prog_CC+:} false; then :
2811   $as_echo_n "(cached) " >&6
2812 else
2813   if test -n "$CC"; then
2814   ac_cv_prog_CC="$CC" # Let the user override the test.
2815 else
2816   ac_prog_rejected=no
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 for as_dir in $PATH
2819 do
2820   IFS=$as_save_IFS
2821   test -z "$as_dir" && as_dir=.
2822     for ac_exec_ext in '' $ac_executable_extensions; do
2823   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2824     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2825        ac_prog_rejected=yes
2826        continue
2827      fi
2828     ac_cv_prog_CC="cc"
2829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830     break 2
2831   fi
2832 done
2833   done
2834 IFS=$as_save_IFS
2835
2836 if test $ac_prog_rejected = yes; then
2837   # We found a bogon in the path, so make sure we never use it.
2838   set dummy $ac_cv_prog_CC
2839   shift
2840   if test $# != 0; then
2841     # We chose a different compiler from the bogus one.
2842     # However, it has the same basename, so the bogon will be chosen
2843     # first if we set CC to just the basename; use the full file name.
2844     shift
2845     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2846   fi
2847 fi
2848 fi
2849 fi
2850 CC=$ac_cv_prog_CC
2851 if test -n "$CC"; then
2852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2853 $as_echo "$CC" >&6; }
2854 else
2855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856 $as_echo "no" >&6; }
2857 fi
2858
2859
2860 fi
2861 if test -z "$CC"; then
2862   if test -n "$ac_tool_prefix"; then
2863   for ac_prog in cl.exe
2864   do
2865     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2866 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2868 $as_echo_n "checking for $ac_word... " >&6; }
2869 if ${ac_cv_prog_CC+:} false; then :
2870   $as_echo_n "(cached) " >&6
2871 else
2872   if test -n "$CC"; then
2873   ac_cv_prog_CC="$CC" # Let the user override the test.
2874 else
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 for as_dir in $PATH
2877 do
2878   IFS=$as_save_IFS
2879   test -z "$as_dir" && as_dir=.
2880     for ac_exec_ext in '' $ac_executable_extensions; do
2881   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2882     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2884     break 2
2885   fi
2886 done
2887   done
2888 IFS=$as_save_IFS
2889
2890 fi
2891 fi
2892 CC=$ac_cv_prog_CC
2893 if test -n "$CC"; then
2894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2895 $as_echo "$CC" >&6; }
2896 else
2897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2898 $as_echo "no" >&6; }
2899 fi
2900
2901
2902     test -n "$CC" && break
2903   done
2904 fi
2905 if test -z "$CC"; then
2906   ac_ct_CC=$CC
2907   for ac_prog in cl.exe
2908 do
2909   # Extract the first word of "$ac_prog", so it can be a program name with args.
2910 set dummy $ac_prog; ac_word=$2
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2914   $as_echo_n "(cached) " >&6
2915 else
2916   if test -n "$ac_ct_CC"; then
2917   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2921 do
2922   IFS=$as_save_IFS
2923   test -z "$as_dir" && as_dir=.
2924     for ac_exec_ext in '' $ac_executable_extensions; do
2925   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926     ac_cv_prog_ac_ct_CC="$ac_prog"
2927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928     break 2
2929   fi
2930 done
2931   done
2932 IFS=$as_save_IFS
2933
2934 fi
2935 fi
2936 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2937 if test -n "$ac_ct_CC"; then
2938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2939 $as_echo "$ac_ct_CC" >&6; }
2940 else
2941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2943 fi
2944
2945
2946   test -n "$ac_ct_CC" && break
2947 done
2948
2949   if test "x$ac_ct_CC" = x; then
2950     CC=""
2951   else
2952     case $cross_compiling:$ac_tool_warned in
2953 yes:)
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2956 ac_tool_warned=yes ;;
2957 esac
2958     CC=$ac_ct_CC
2959   fi
2960 fi
2961
2962 fi
2963
2964
2965 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2967 as_fn_error $? "no acceptable C compiler found in \$PATH
2968 See \`config.log' for more details" "$LINENO" 5; }
2969
2970 # Provide some information about the compiler.
2971 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2972 set X $ac_compile
2973 ac_compiler=$2
2974 for ac_option in --version -v -V -qversion; do
2975   { { ac_try="$ac_compiler $ac_option >&5"
2976 case "(($ac_try" in
2977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978   *) ac_try_echo=$ac_try;;
2979 esac
2980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2981 $as_echo "$ac_try_echo"; } >&5
2982   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2983   ac_status=$?
2984   if test -s conftest.err; then
2985     sed '10a\
2986 ... rest of stderr output deleted ...
2987          10q' conftest.err >conftest.er1
2988     cat conftest.er1 >&5
2989   fi
2990   rm -f conftest.er1 conftest.err
2991   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2992   test $ac_status = 0; }
2993 done
2994
2995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2996 /* end confdefs.h.  */
2997
2998 int
2999 main ()
3000 {
3001
3002   ;
3003   return 0;
3004 }
3005 _ACEOF
3006 ac_clean_files_save=$ac_clean_files
3007 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3008 # Try to create an executable without -o first, disregard a.out.
3009 # It will help us diagnose broken compilers, and finding out an intuition
3010 # of exeext.
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3012 $as_echo_n "checking whether the C compiler works... " >&6; }
3013 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3014
3015 # The possible output files:
3016 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3017
3018 ac_rmfiles=
3019 for ac_file in $ac_files
3020 do
3021   case $ac_file in
3022     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3023     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3024   esac
3025 done
3026 rm -f $ac_rmfiles
3027
3028 if { { ac_try="$ac_link_default"
3029 case "(($ac_try" in
3030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031   *) ac_try_echo=$ac_try;;
3032 esac
3033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3034 $as_echo "$ac_try_echo"; } >&5
3035   (eval "$ac_link_default") 2>&5
3036   ac_status=$?
3037   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3038   test $ac_status = 0; }; then :
3039   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3040 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3041 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3042 # so that the user can short-circuit this test for compilers unknown to
3043 # Autoconf.
3044 for ac_file in $ac_files ''
3045 do
3046   test -f "$ac_file" || continue
3047   case $ac_file in
3048     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3049         ;;
3050     [ab].out )
3051         # We found the default executable, but exeext='' is most
3052         # certainly right.
3053         break;;
3054     *.* )
3055         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3056         then :; else
3057            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3058         fi
3059         # We set ac_cv_exeext here because the later test for it is not
3060         # safe: cross compilers may not add the suffix if given an `-o'
3061         # argument, so we may need to know it at that point already.
3062         # Even if this section looks crufty: it has the advantage of
3063         # actually working.
3064         break;;
3065     * )
3066         break;;
3067   esac
3068 done
3069 test "$ac_cv_exeext" = no && ac_cv_exeext=
3070
3071 else
3072   ac_file=''
3073 fi
3074 if test -z "$ac_file"; then :
3075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3076 $as_echo "no" >&6; }
3077 $as_echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3079
3080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3082 as_fn_error 77 "C compiler cannot create executables
3083 See \`config.log' for more details" "$LINENO" 5; }
3084 else
3085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3086 $as_echo "yes" >&6; }
3087 fi
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3089 $as_echo_n "checking for C compiler default output file name... " >&6; }
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3091 $as_echo "$ac_file" >&6; }
3092 ac_exeext=$ac_cv_exeext
3093
3094 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3095 ac_clean_files=$ac_clean_files_save
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3097 $as_echo_n "checking for suffix of executables... " >&6; }
3098 if { { ac_try="$ac_link"
3099 case "(($ac_try" in
3100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101   *) ac_try_echo=$ac_try;;
3102 esac
3103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3104 $as_echo "$ac_try_echo"; } >&5
3105   (eval "$ac_link") 2>&5
3106   ac_status=$?
3107   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3108   test $ac_status = 0; }; then :
3109   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3110 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3111 # work properly (i.e., refer to `conftest.exe'), while it won't with
3112 # `rm'.
3113 for ac_file in conftest.exe conftest conftest.*; do
3114   test -f "$ac_file" || continue
3115   case $ac_file in
3116     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3117     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3118           break;;
3119     * ) break;;
3120   esac
3121 done
3122 else
3123   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3125 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3126 See \`config.log' for more details" "$LINENO" 5; }
3127 fi
3128 rm -f conftest conftest$ac_cv_exeext
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3130 $as_echo "$ac_cv_exeext" >&6; }
3131
3132 rm -f conftest.$ac_ext
3133 EXEEXT=$ac_cv_exeext
3134 ac_exeext=$EXEEXT
3135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3136 /* end confdefs.h.  */
3137 #include <stdio.h>
3138 int
3139 main ()
3140 {
3141 FILE *f = fopen ("conftest.out", "w");
3142  return ferror (f) || fclose (f) != 0;
3143
3144   ;
3145   return 0;
3146 }
3147 _ACEOF
3148 ac_clean_files="$ac_clean_files conftest.out"
3149 # Check that the compiler produces executables we can run.  If not, either
3150 # the compiler is broken, or we cross compile.
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3152 $as_echo_n "checking whether we are cross compiling... " >&6; }
3153 if test "$cross_compiling" != yes; then
3154   { { ac_try="$ac_link"
3155 case "(($ac_try" in
3156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157   *) ac_try_echo=$ac_try;;
3158 esac
3159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3160 $as_echo "$ac_try_echo"; } >&5
3161   (eval "$ac_link") 2>&5
3162   ac_status=$?
3163   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3164   test $ac_status = 0; }
3165   if { ac_try='./conftest$ac_cv_exeext'
3166   { { case "(($ac_try" in
3167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168   *) ac_try_echo=$ac_try;;
3169 esac
3170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3171 $as_echo "$ac_try_echo"; } >&5
3172   (eval "$ac_try") 2>&5
3173   ac_status=$?
3174   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3175   test $ac_status = 0; }; }; then
3176     cross_compiling=no
3177   else
3178     if test "$cross_compiling" = maybe; then
3179         cross_compiling=yes
3180     else
3181         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3183 as_fn_error $? "cannot run C compiled programs.
3184 If you meant to cross compile, use \`--host'.
3185 See \`config.log' for more details" "$LINENO" 5; }
3186     fi
3187   fi
3188 fi
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3190 $as_echo "$cross_compiling" >&6; }
3191
3192 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3193 ac_clean_files=$ac_clean_files_save
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3195 $as_echo_n "checking for suffix of object files... " >&6; }
3196 if ${ac_cv_objext+:} false; then :
3197   $as_echo_n "(cached) " >&6
3198 else
3199   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3200 /* end confdefs.h.  */
3201
3202 int
3203 main ()
3204 {
3205
3206   ;
3207   return 0;
3208 }
3209 _ACEOF
3210 rm -f conftest.o conftest.obj
3211 if { { ac_try="$ac_compile"
3212 case "(($ac_try" in
3213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214   *) ac_try_echo=$ac_try;;
3215 esac
3216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3217 $as_echo "$ac_try_echo"; } >&5
3218   (eval "$ac_compile") 2>&5
3219   ac_status=$?
3220   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3221   test $ac_status = 0; }; then :
3222   for ac_file in conftest.o conftest.obj conftest.*; do
3223   test -f "$ac_file" || continue;
3224   case $ac_file in
3225     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3226     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3227        break;;
3228   esac
3229 done
3230 else
3231   $as_echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3233
3234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3236 as_fn_error $? "cannot compute suffix of object files: cannot compile
3237 See \`config.log' for more details" "$LINENO" 5; }
3238 fi
3239 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3240 fi
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3242 $as_echo "$ac_cv_objext" >&6; }
3243 OBJEXT=$ac_cv_objext
3244 ac_objext=$OBJEXT
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3246 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3247 if ${ac_cv_c_compiler_gnu+:} false; then :
3248   $as_echo_n "(cached) " >&6
3249 else
3250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251 /* end confdefs.h.  */
3252
3253 int
3254 main ()
3255 {
3256 #ifndef __GNUC__
3257        choke me
3258 #endif
3259
3260   ;
3261   return 0;
3262 }
3263 _ACEOF
3264 if ac_fn_c_try_compile "$LINENO"; then :
3265   ac_compiler_gnu=yes
3266 else
3267   ac_compiler_gnu=no
3268 fi
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3271
3272 fi
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3274 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3275 if test $ac_compiler_gnu = yes; then
3276   GCC=yes
3277 else
3278   GCC=
3279 fi
3280 ac_test_CFLAGS=${CFLAGS+set}
3281 ac_save_CFLAGS=$CFLAGS
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3283 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3284 if ${ac_cv_prog_cc_g+:} false; then :
3285   $as_echo_n "(cached) " >&6
3286 else
3287   ac_save_c_werror_flag=$ac_c_werror_flag
3288    ac_c_werror_flag=yes
3289    ac_cv_prog_cc_g=no
3290    CFLAGS="-g"
3291    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292 /* end confdefs.h.  */
3293
3294 int
3295 main ()
3296 {
3297
3298   ;
3299   return 0;
3300 }
3301 _ACEOF
3302 if ac_fn_c_try_compile "$LINENO"; then :
3303   ac_cv_prog_cc_g=yes
3304 else
3305   CFLAGS=""
3306       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3307 /* end confdefs.h.  */
3308
3309 int
3310 main ()
3311 {
3312
3313   ;
3314   return 0;
3315 }
3316 _ACEOF
3317 if ac_fn_c_try_compile "$LINENO"; then :
3318
3319 else
3320   ac_c_werror_flag=$ac_save_c_werror_flag
3321          CFLAGS="-g"
3322          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3323 /* end confdefs.h.  */
3324
3325 int
3326 main ()
3327 {
3328
3329   ;
3330   return 0;
3331 }
3332 _ACEOF
3333 if ac_fn_c_try_compile "$LINENO"; then :
3334   ac_cv_prog_cc_g=yes
3335 fi
3336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337 fi
3338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3339 fi
3340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3341    ac_c_werror_flag=$ac_save_c_werror_flag
3342 fi
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3344 $as_echo "$ac_cv_prog_cc_g" >&6; }
3345 if test "$ac_test_CFLAGS" = set; then
3346   CFLAGS=$ac_save_CFLAGS
3347 elif test $ac_cv_prog_cc_g = yes; then
3348   if test "$GCC" = yes; then
3349     CFLAGS="-g -O2"
3350   else
3351     CFLAGS="-g"
3352   fi
3353 else
3354   if test "$GCC" = yes; then
3355     CFLAGS="-O2"
3356   else
3357     CFLAGS=
3358   fi
3359 fi
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3361 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3362 if ${ac_cv_prog_cc_c89+:} false; then :
3363   $as_echo_n "(cached) " >&6
3364 else
3365   ac_cv_prog_cc_c89=no
3366 ac_save_CC=$CC
3367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368 /* end confdefs.h.  */
3369 #include <stdarg.h>
3370 #include <stdio.h>
3371 struct stat;
3372 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3373 struct buf { int x; };
3374 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3375 static char *e (p, i)
3376      char **p;
3377      int i;
3378 {
3379   return p[i];
3380 }
3381 static char *f (char * (*g) (char **, int), char **p, ...)
3382 {
3383   char *s;
3384   va_list v;
3385   va_start (v,p);
3386   s = g (p, va_arg (v,int));
3387   va_end (v);
3388   return s;
3389 }
3390
3391 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3392    function prototypes and stuff, but not '\xHH' hex character constants.
3393    These don't provoke an error unfortunately, instead are silently treated
3394    as 'x'.  The following induces an error, until -std is added to get
3395    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3396    array size at least.  It's necessary to write '\x00'==0 to get something
3397    that's true only with -std.  */
3398 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3399
3400 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3401    inside strings and character constants.  */
3402 #define FOO(x) 'x'
3403 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3404
3405 int test (int i, double x);
3406 struct s1 {int (*f) (int a);};
3407 struct s2 {int (*f) (double a);};
3408 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3409 int argc;
3410 char **argv;
3411 int
3412 main ()
3413 {
3414 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3415   ;
3416   return 0;
3417 }
3418 _ACEOF
3419 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3420         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3421 do
3422   CC="$ac_save_CC $ac_arg"
3423   if ac_fn_c_try_compile "$LINENO"; then :
3424   ac_cv_prog_cc_c89=$ac_arg
3425 fi
3426 rm -f core conftest.err conftest.$ac_objext
3427   test "x$ac_cv_prog_cc_c89" != "xno" && break
3428 done
3429 rm -f conftest.$ac_ext
3430 CC=$ac_save_CC
3431
3432 fi
3433 # AC_CACHE_VAL
3434 case "x$ac_cv_prog_cc_c89" in
3435   x)
3436     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3437 $as_echo "none needed" >&6; } ;;
3438   xno)
3439     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3440 $as_echo "unsupported" >&6; } ;;
3441   *)
3442     CC="$CC $ac_cv_prog_cc_c89"
3443     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3444 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3445 esac
3446 if test "x$ac_cv_prog_cc_c89" != xno; then :
3447
3448 fi
3449
3450 ac_ext=c
3451 ac_cpp='$CPP $CPPFLAGS'
3452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3455
3456 ac_ext=cpp
3457 ac_cpp='$CXXCPP $CPPFLAGS'
3458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3461 if test -z "$CXX"; then
3462   if test -n "$CCC"; then
3463     CXX=$CCC
3464   else
3465     if test -n "$ac_tool_prefix"; then
3466   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3467   do
3468     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3469 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3471 $as_echo_n "checking for $ac_word... " >&6; }
3472 if ${ac_cv_prog_CXX+:} false; then :
3473   $as_echo_n "(cached) " >&6
3474 else
3475   if test -n "$CXX"; then
3476   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3477 else
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 for as_dir in $PATH
3480 do
3481   IFS=$as_save_IFS
3482   test -z "$as_dir" && as_dir=.
3483     for ac_exec_ext in '' $ac_executable_extensions; do
3484   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3485     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3487     break 2
3488   fi
3489 done
3490   done
3491 IFS=$as_save_IFS
3492
3493 fi
3494 fi
3495 CXX=$ac_cv_prog_CXX
3496 if test -n "$CXX"; then
3497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3498 $as_echo "$CXX" >&6; }
3499 else
3500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501 $as_echo "no" >&6; }
3502 fi
3503
3504
3505     test -n "$CXX" && break
3506   done
3507 fi
3508 if test -z "$CXX"; then
3509   ac_ct_CXX=$CXX
3510   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3511 do
3512   # Extract the first word of "$ac_prog", so it can be a program name with args.
3513 set dummy $ac_prog; ac_word=$2
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3515 $as_echo_n "checking for $ac_word... " >&6; }
3516 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3517   $as_echo_n "(cached) " >&6
3518 else
3519   if test -n "$ac_ct_CXX"; then
3520   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3521 else
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 for as_dir in $PATH
3524 do
3525   IFS=$as_save_IFS
3526   test -z "$as_dir" && as_dir=.
3527     for ac_exec_ext in '' $ac_executable_extensions; do
3528   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529     ac_cv_prog_ac_ct_CXX="$ac_prog"
3530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531     break 2
3532   fi
3533 done
3534   done
3535 IFS=$as_save_IFS
3536
3537 fi
3538 fi
3539 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3540 if test -n "$ac_ct_CXX"; then
3541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3542 $as_echo "$ac_ct_CXX" >&6; }
3543 else
3544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 $as_echo "no" >&6; }
3546 fi
3547
3548
3549   test -n "$ac_ct_CXX" && break
3550 done
3551
3552   if test "x$ac_ct_CXX" = x; then
3553     CXX="g++"
3554   else
3555     case $cross_compiling:$ac_tool_warned in
3556 yes:)
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3559 ac_tool_warned=yes ;;
3560 esac
3561     CXX=$ac_ct_CXX
3562   fi
3563 fi
3564
3565   fi
3566 fi
3567 # Provide some information about the compiler.
3568 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3569 set X $ac_compile
3570 ac_compiler=$2
3571 for ac_option in --version -v -V -qversion; do
3572   { { ac_try="$ac_compiler $ac_option >&5"
3573 case "(($ac_try" in
3574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575   *) ac_try_echo=$ac_try;;
3576 esac
3577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3578 $as_echo "$ac_try_echo"; } >&5
3579   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3580   ac_status=$?
3581   if test -s conftest.err; then
3582     sed '10a\
3583 ... rest of stderr output deleted ...
3584          10q' conftest.err >conftest.er1
3585     cat conftest.er1 >&5
3586   fi
3587   rm -f conftest.er1 conftest.err
3588   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3589   test $ac_status = 0; }
3590 done
3591
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3593 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3594 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3595   $as_echo_n "(cached) " >&6
3596 else
3597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598 /* end confdefs.h.  */
3599
3600 int
3601 main ()
3602 {
3603 #ifndef __GNUC__
3604        choke me
3605 #endif
3606
3607   ;
3608   return 0;
3609 }
3610 _ACEOF
3611 if ac_fn_cxx_try_compile "$LINENO"; then :
3612   ac_compiler_gnu=yes
3613 else
3614   ac_compiler_gnu=no
3615 fi
3616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3618
3619 fi
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3621 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3622 if test $ac_compiler_gnu = yes; then
3623   GXX=yes
3624 else
3625   GXX=
3626 fi
3627 ac_test_CXXFLAGS=${CXXFLAGS+set}
3628 ac_save_CXXFLAGS=$CXXFLAGS
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3630 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3631 if ${ac_cv_prog_cxx_g+:} false; then :
3632   $as_echo_n "(cached) " >&6
3633 else
3634   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3635    ac_cxx_werror_flag=yes
3636    ac_cv_prog_cxx_g=no
3637    CXXFLAGS="-g"
3638    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639 /* end confdefs.h.  */
3640
3641 int
3642 main ()
3643 {
3644
3645   ;
3646   return 0;
3647 }
3648 _ACEOF
3649 if ac_fn_cxx_try_compile "$LINENO"; then :
3650   ac_cv_prog_cxx_g=yes
3651 else
3652   CXXFLAGS=""
3653       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h.  */
3655
3656 int
3657 main ()
3658 {
3659
3660   ;
3661   return 0;
3662 }
3663 _ACEOF
3664 if ac_fn_cxx_try_compile "$LINENO"; then :
3665
3666 else
3667   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3668          CXXFLAGS="-g"
3669          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670 /* end confdefs.h.  */
3671
3672 int
3673 main ()
3674 {
3675
3676   ;
3677   return 0;
3678 }
3679 _ACEOF
3680 if ac_fn_cxx_try_compile "$LINENO"; then :
3681   ac_cv_prog_cxx_g=yes
3682 fi
3683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3684 fi
3685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3686 fi
3687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3688    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3689 fi
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3691 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3692 if test "$ac_test_CXXFLAGS" = set; then
3693   CXXFLAGS=$ac_save_CXXFLAGS
3694 elif test $ac_cv_prog_cxx_g = yes; then
3695   if test "$GXX" = yes; then
3696     CXXFLAGS="-g -O2"
3697   else
3698     CXXFLAGS="-g"
3699   fi
3700 else
3701   if test "$GXX" = yes; then
3702     CXXFLAGS="-O2"
3703   else
3704     CXXFLAGS=
3705   fi
3706 fi
3707 ac_ext=c
3708 ac_cpp='$CPP $CPPFLAGS'
3709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3712
3713
3714
3715 ac_ext=c
3716 ac_cpp='$CPP $CPPFLAGS'
3717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3721 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3722 # On Suns, sometimes $CPP names a directory.
3723 if test -n "$CPP" && test -d "$CPP"; then
3724   CPP=
3725 fi
3726 if test -z "$CPP"; then
3727   if ${ac_cv_prog_CPP+:} false; then :
3728   $as_echo_n "(cached) " >&6
3729 else
3730       # Double quotes because CPP needs to be expanded
3731     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3732     do
3733       ac_preproc_ok=false
3734 for ac_c_preproc_warn_flag in '' yes
3735 do
3736   # Use a header file that comes with gcc, so configuring glibc
3737   # with a fresh cross-compiler works.
3738   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3739   # <limits.h> exists even on freestanding compilers.
3740   # On the NeXT, cc -E runs the code through the compiler's parser,
3741   # not just through cpp. "Syntax error" is here to catch this case.
3742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h.  */
3744 #ifdef __STDC__
3745 # include <limits.h>
3746 #else
3747 # include <assert.h>
3748 #endif
3749                      Syntax error
3750 _ACEOF
3751 if ac_fn_c_try_cpp "$LINENO"; then :
3752
3753 else
3754   # Broken: fails on valid input.
3755 continue
3756 fi
3757 rm -f conftest.err conftest.i conftest.$ac_ext
3758
3759   # OK, works on sane cases.  Now check whether nonexistent headers
3760   # can be detected and how.
3761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h.  */
3763 #include <ac_nonexistent.h>
3764 _ACEOF
3765 if ac_fn_c_try_cpp "$LINENO"; then :
3766   # Broken: success on invalid input.
3767 continue
3768 else
3769   # Passes both tests.
3770 ac_preproc_ok=:
3771 break
3772 fi
3773 rm -f conftest.err conftest.i conftest.$ac_ext
3774
3775 done
3776 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3777 rm -f conftest.i conftest.err conftest.$ac_ext
3778 if $ac_preproc_ok; then :
3779   break
3780 fi
3781
3782     done
3783     ac_cv_prog_CPP=$CPP
3784
3785 fi
3786   CPP=$ac_cv_prog_CPP
3787 else
3788   ac_cv_prog_CPP=$CPP
3789 fi
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3791 $as_echo "$CPP" >&6; }
3792 ac_preproc_ok=false
3793 for ac_c_preproc_warn_flag in '' yes
3794 do
3795   # Use a header file that comes with gcc, so configuring glibc
3796   # with a fresh cross-compiler works.
3797   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3798   # <limits.h> exists even on freestanding compilers.
3799   # On the NeXT, cc -E runs the code through the compiler's parser,
3800   # not just through cpp. "Syntax error" is here to catch this case.
3801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802 /* end confdefs.h.  */
3803 #ifdef __STDC__
3804 # include <limits.h>
3805 #else
3806 # include <assert.h>
3807 #endif
3808                      Syntax error
3809 _ACEOF
3810 if ac_fn_c_try_cpp "$LINENO"; then :
3811
3812 else
3813   # Broken: fails on valid input.
3814 continue
3815 fi
3816 rm -f conftest.err conftest.i conftest.$ac_ext
3817
3818   # OK, works on sane cases.  Now check whether nonexistent headers
3819   # can be detected and how.
3820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h.  */
3822 #include <ac_nonexistent.h>
3823 _ACEOF
3824 if ac_fn_c_try_cpp "$LINENO"; then :
3825   # Broken: success on invalid input.
3826 continue
3827 else
3828   # Passes both tests.
3829 ac_preproc_ok=:
3830 break
3831 fi
3832 rm -f conftest.err conftest.i conftest.$ac_ext
3833
3834 done
3835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3836 rm -f conftest.i conftest.err conftest.$ac_ext
3837 if $ac_preproc_ok; then :
3838
3839 else
3840   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3842 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3843 See \`config.log' for more details" "$LINENO" 5; }
3844 fi
3845
3846 ac_ext=c
3847 ac_cpp='$CPP $CPPFLAGS'
3848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3851
3852
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3854 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3855 if ${ac_cv_path_GREP+:} false; then :
3856   $as_echo_n "(cached) " >&6
3857 else
3858   if test -z "$GREP"; then
3859   ac_path_GREP_found=false
3860   # Loop through the user's path and test for each of PROGNAME-LIST
3861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3863 do
3864   IFS=$as_save_IFS
3865   test -z "$as_dir" && as_dir=.
3866     for ac_prog in grep ggrep; do
3867     for ac_exec_ext in '' $ac_executable_extensions; do
3868       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3869       as_fn_executable_p "$ac_path_GREP" || continue
3870 # Check for GNU ac_path_GREP and select it if it is found.
3871   # Check for GNU $ac_path_GREP
3872 case `"$ac_path_GREP" --version 2>&1` in
3873 *GNU*)
3874   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3875 *)
3876   ac_count=0
3877   $as_echo_n 0123456789 >"conftest.in"
3878   while :
3879   do
3880     cat "conftest.in" "conftest.in" >"conftest.tmp"
3881     mv "conftest.tmp" "conftest.in"
3882     cp "conftest.in" "conftest.nl"
3883     $as_echo 'GREP' >> "conftest.nl"
3884     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3885     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3886     as_fn_arith $ac_count + 1 && ac_count=$as_val
3887     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3888       # Best one so far, save it but keep looking for a better one
3889       ac_cv_path_GREP="$ac_path_GREP"
3890       ac_path_GREP_max=$ac_count
3891     fi
3892     # 10*(2^10) chars as input seems more than enough
3893     test $ac_count -gt 10 && break
3894   done
3895   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3896 esac
3897
3898       $ac_path_GREP_found && break 3
3899     done
3900   done
3901   done
3902 IFS=$as_save_IFS
3903   if test -z "$ac_cv_path_GREP"; then
3904     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3905   fi
3906 else
3907   ac_cv_path_GREP=$GREP
3908 fi
3909
3910 fi
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3912 $as_echo "$ac_cv_path_GREP" >&6; }
3913  GREP="$ac_cv_path_GREP"
3914
3915
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3917 $as_echo_n "checking for egrep... " >&6; }
3918 if ${ac_cv_path_EGREP+:} false; then :
3919   $as_echo_n "(cached) " >&6
3920 else
3921   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3922    then ac_cv_path_EGREP="$GREP -E"
3923    else
3924      if test -z "$EGREP"; then
3925   ac_path_EGREP_found=false
3926   # Loop through the user's path and test for each of PROGNAME-LIST
3927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3929 do
3930   IFS=$as_save_IFS
3931   test -z "$as_dir" && as_dir=.
3932     for ac_prog in egrep; do
3933     for ac_exec_ext in '' $ac_executable_extensions; do
3934       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3935       as_fn_executable_p "$ac_path_EGREP" || continue
3936 # Check for GNU ac_path_EGREP and select it if it is found.
3937   # Check for GNU $ac_path_EGREP
3938 case `"$ac_path_EGREP" --version 2>&1` in
3939 *GNU*)
3940   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3941 *)
3942   ac_count=0
3943   $as_echo_n 0123456789 >"conftest.in"
3944   while :
3945   do
3946     cat "conftest.in" "conftest.in" >"conftest.tmp"
3947     mv "conftest.tmp" "conftest.in"
3948     cp "conftest.in" "conftest.nl"
3949     $as_echo 'EGREP' >> "conftest.nl"
3950     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3951     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3952     as_fn_arith $ac_count + 1 && ac_count=$as_val
3953     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3954       # Best one so far, save it but keep looking for a better one
3955       ac_cv_path_EGREP="$ac_path_EGREP"
3956       ac_path_EGREP_max=$ac_count
3957     fi
3958     # 10*(2^10) chars as input seems more than enough
3959     test $ac_count -gt 10 && break
3960   done
3961   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3962 esac
3963
3964       $ac_path_EGREP_found && break 3
3965     done
3966   done
3967   done
3968 IFS=$as_save_IFS
3969   if test -z "$ac_cv_path_EGREP"; then
3970     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3971   fi
3972 else
3973   ac_cv_path_EGREP=$EGREP
3974 fi
3975
3976    fi
3977 fi
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3979 $as_echo "$ac_cv_path_EGREP" >&6; }
3980  EGREP="$ac_cv_path_EGREP"
3981
3982
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3984 $as_echo_n "checking for ANSI C header files... " >&6; }
3985 if ${ac_cv_header_stdc+:} false; then :
3986   $as_echo_n "(cached) " >&6
3987 else
3988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h.  */
3990 #include <stdlib.h>
3991 #include <stdarg.h>
3992 #include <string.h>
3993 #include <float.h>
3994
3995 int
3996 main ()
3997 {
3998
3999   ;
4000   return 0;
4001 }
4002 _ACEOF
4003 if ac_fn_c_try_compile "$LINENO"; then :
4004   ac_cv_header_stdc=yes
4005 else
4006   ac_cv_header_stdc=no
4007 fi
4008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4009
4010 if test $ac_cv_header_stdc = yes; then
4011   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h.  */
4014 #include <string.h>
4015
4016 _ACEOF
4017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4018   $EGREP "memchr" >/dev/null 2>&1; then :
4019
4020 else
4021   ac_cv_header_stdc=no
4022 fi
4023 rm -f conftest*
4024
4025 fi
4026
4027 if test $ac_cv_header_stdc = yes; then
4028   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h.  */
4031 #include <stdlib.h>
4032
4033 _ACEOF
4034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4035   $EGREP "free" >/dev/null 2>&1; then :
4036
4037 else
4038   ac_cv_header_stdc=no
4039 fi
4040 rm -f conftest*
4041
4042 fi
4043
4044 if test $ac_cv_header_stdc = yes; then
4045   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4046   if test "$cross_compiling" = yes; then :
4047   :
4048 else
4049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h.  */
4051 #include <ctype.h>
4052 #include <stdlib.h>
4053 #if ((' ' & 0x0FF) == 0x020)
4054 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4055 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4056 #else
4057 # define ISLOWER(c) \
4058                    (('a' <= (c) && (c) <= 'i') \
4059                      || ('j' <= (c) && (c) <= 'r') \
4060                      || ('s' <= (c) && (c) <= 'z'))
4061 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4062 #endif
4063
4064 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4065 int
4066 main ()
4067 {
4068   int i;
4069   for (i = 0; i < 256; i++)
4070     if (XOR (islower (i), ISLOWER (i))
4071         || toupper (i) != TOUPPER (i))
4072       return 2;
4073   return 0;
4074 }
4075 _ACEOF
4076 if ac_fn_c_try_run "$LINENO"; then :
4077
4078 else
4079   ac_cv_header_stdc=no
4080 fi
4081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4082   conftest.$ac_objext conftest.beam conftest.$ac_ext
4083 fi
4084
4085 fi
4086 fi
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4088 $as_echo "$ac_cv_header_stdc" >&6; }
4089 if test $ac_cv_header_stdc = yes; then
4090
4091 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4092
4093 fi
4094
4095 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4096 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4097                   inttypes.h stdint.h unistd.h
4098 do :
4099   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4100 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4101 "
4102 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4103   cat >>confdefs.h <<_ACEOF
4104 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4105 _ACEOF
4106
4107 fi
4108
4109 done
4110
4111
4112
4113   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4114 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4115   MINIX=yes
4116 else
4117   MINIX=
4118 fi
4119
4120
4121   if test "$MINIX" = yes; then
4122
4123 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4124
4125
4126 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4127
4128
4129 $as_echo "#define _MINIX 1" >>confdefs.h
4130
4131   fi
4132
4133
4134   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4135 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4136 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4137   $as_echo_n "(cached) " >&6
4138 else
4139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h.  */
4141
4142 #         define __EXTENSIONS__ 1
4143           $ac_includes_default
4144 int
4145 main ()
4146 {
4147
4148   ;
4149   return 0;
4150 }
4151 _ACEOF
4152 if ac_fn_c_try_compile "$LINENO"; then :
4153   ac_cv_safe_to_define___extensions__=yes
4154 else
4155   ac_cv_safe_to_define___extensions__=no
4156 fi
4157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 fi
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4160 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4161   test $ac_cv_safe_to_define___extensions__ = yes &&
4162     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4163
4164   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4165
4166   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4167
4168   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4169
4170   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4171
4172
4173
4174
4175 if test $ac_cv_c_compiler_gnu = yes; then
4176     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4177 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4178 if ${ac_cv_prog_gcc_traditional+:} false; then :
4179   $as_echo_n "(cached) " >&6
4180 else
4181     ac_pattern="Autoconf.*'x'"
4182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183 /* end confdefs.h.  */
4184 #include <sgtty.h>
4185 Autoconf TIOCGETP
4186 _ACEOF
4187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4188   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4189   ac_cv_prog_gcc_traditional=yes
4190 else
4191   ac_cv_prog_gcc_traditional=no
4192 fi
4193 rm -f conftest*
4194
4195
4196   if test $ac_cv_prog_gcc_traditional = no; then
4197     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h.  */
4199 #include <termio.h>
4200 Autoconf TCGETA
4201 _ACEOF
4202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4203   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4204   ac_cv_prog_gcc_traditional=yes
4205 fi
4206 rm -f conftest*
4207
4208   fi
4209 fi
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4211 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4212   if test $ac_cv_prog_gcc_traditional = yes; then
4213     CC="$CC -traditional"
4214   fi
4215 fi
4216
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4218 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4219 if ${ac_cv_prog_suncc+:} false; then :
4220   $as_echo_n "(cached) " >&6
4221 else
4222   cat > conftest.c <<EOF
4223 #ifdef __SUNPRO_C
4224   yes;
4225 #endif
4226 EOF
4227 if { ac_try='${CC-cc} -E conftest.c'
4228   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4229   (eval $ac_try) 2>&5
4230   ac_status=$?
4231   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4232   test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4233   ac_cv_prog_suncc=yes
4234 else
4235   ac_cv_prog_suncc=no
4236 fi
4237 fi
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4239 $as_echo "$ac_cv_prog_suncc" >&6; }
4240 if test -n "$ac_tool_prefix"; then
4241   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4242 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4244 $as_echo_n "checking for $ac_word... " >&6; }
4245 if ${ac_cv_prog_RANLIB+:} false; then :
4246   $as_echo_n "(cached) " >&6
4247 else
4248   if test -n "$RANLIB"; then
4249   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4250 else
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 for as_dir in $PATH
4253 do
4254   IFS=$as_save_IFS
4255   test -z "$as_dir" && as_dir=.
4256     for ac_exec_ext in '' $ac_executable_extensions; do
4257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4258     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4260     break 2
4261   fi
4262 done
4263   done
4264 IFS=$as_save_IFS
4265
4266 fi
4267 fi
4268 RANLIB=$ac_cv_prog_RANLIB
4269 if test -n "$RANLIB"; then
4270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4271 $as_echo "$RANLIB" >&6; }
4272 else
4273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4274 $as_echo "no" >&6; }
4275 fi
4276
4277
4278 fi
4279 if test -z "$ac_cv_prog_RANLIB"; then
4280   ac_ct_RANLIB=$RANLIB
4281   # Extract the first word of "ranlib", so it can be a program name with args.
4282 set dummy ranlib; ac_word=$2
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4284 $as_echo_n "checking for $ac_word... " >&6; }
4285 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4286   $as_echo_n "(cached) " >&6
4287 else
4288   if test -n "$ac_ct_RANLIB"; then
4289   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4290 else
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 for as_dir in $PATH
4293 do
4294   IFS=$as_save_IFS
4295   test -z "$as_dir" && as_dir=.
4296     for ac_exec_ext in '' $ac_executable_extensions; do
4297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4298     ac_cv_prog_ac_ct_RANLIB="ranlib"
4299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4300     break 2
4301   fi
4302 done
4303   done
4304 IFS=$as_save_IFS
4305
4306 fi
4307 fi
4308 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4309 if test -n "$ac_ct_RANLIB"; then
4310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4311 $as_echo "$ac_ct_RANLIB" >&6; }
4312 else
4313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314 $as_echo "no" >&6; }
4315 fi
4316
4317   if test "x$ac_ct_RANLIB" = x; then
4318     RANLIB=":"
4319   else
4320     case $cross_compiling:$ac_tool_warned in
4321 yes:)
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4324 ac_tool_warned=yes ;;
4325 esac
4326     RANLIB=$ac_ct_RANLIB
4327   fi
4328 else
4329   RANLIB="$ac_cv_prog_RANLIB"
4330 fi
4331
4332
4333
4334   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
4335 $as_echo_n "checking if compiler is clang... " >&6; }
4336 if ${ax_cv_cc_clang+:} false; then :
4337   $as_echo_n "(cached) " >&6
4338 else
4339
4340
4341   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h.  */
4343
4344 int
4345 main ()
4346 {
4347
4348     #ifndef __clang__
4349          not clang
4350     #endif
4351
4352   ;
4353   return 0;
4354 }
4355 _ACEOF
4356 if ac_fn_c_try_compile "$LINENO"; then :
4357   ax_cv_cc_clang=yes
4358 else
4359   ax_cv_cc_clang=no
4360 fi
4361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4362
4363 fi
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_clang" >&5
4365 $as_echo "$ax_cv_cc_clang" >&6; }
4366
4367 if test "x$ax_cv_cc_clang" = "xyes"; then
4368   clang_path="$CC"
4369
4370 else
4371   clang_path=""
4372
4373 fi
4374
4375
4376 if test "x$GCC" = "xyes"; then
4377   CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4378 fi
4379
4380
4381   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Qunused-arguments\"" >&5
4382 $as_echo_n "checking for the compiler flag \"-Qunused-arguments\"... " >&6; }
4383 if ${ax_cv_cc_qunused_arguments_flag+:} false; then :
4384   $as_echo_n "(cached) " >&6
4385 else
4386
4387
4388     CFLAGS_SAVED=$CFLAGS
4389     CFLAGS="$CFLAGS -Werror -Qunused-arguments -foobar"
4390
4391     ac_ext=c
4392 ac_cpp='$CPP $CPPFLAGS'
4393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4396
4397     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398 /* end confdefs.h.  */
4399
4400 int
4401 main ()
4402 {
4403 return 0;
4404   ;
4405   return 0;
4406 }
4407 _ACEOF
4408 if ac_fn_c_try_compile "$LINENO"; then :
4409   ax_cv_cc_qunused_arguments_flag="yes"
4410 else
4411   ax_cv_cc_qunused_arguments_flag="no"
4412 fi
4413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4414     ac_ext=c
4415 ac_cpp='$CPP $CPPFLAGS'
4416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4419
4420
4421     CFLAGS="$CFLAGS_SAVED"
4422
4423 fi
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_qunused_arguments_flag" >&5
4425 $as_echo "$ax_cv_cc_qunused_arguments_flag" >&6; }
4426
4427 if test "x$ax_cv_cc_qunused_arguments_flag" = "xyes"; then
4428   CFLAGS="$CFLAGS -Qunused-arguments"
4429   LDFLAGS="$LDFLAGS -Qunused-arguments"
4430 fi
4431
4432 # Check whether --enable-largefile was given.
4433 if test "${enable_largefile+set}" = set; then :
4434   enableval=$enable_largefile;
4435 fi
4436
4437 if test "$enable_largefile" != no; then
4438
4439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4440 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4441 if ${ac_cv_sys_largefile_CC+:} false; then :
4442   $as_echo_n "(cached) " >&6
4443 else
4444   ac_cv_sys_largefile_CC=no
4445      if test "$GCC" != yes; then
4446        ac_save_CC=$CC
4447        while :; do
4448          # IRIX 6.2 and later do not support large files by default,
4449          # so use the C compiler's -n32 option if that helps.
4450          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h.  */
4452 #include <sys/types.h>
4453  /* Check that off_t can represent 2**63 - 1 correctly.
4454     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4455     since some C++ compilers masquerading as C compilers
4456     incorrectly reject 9223372036854775807.  */
4457 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4458   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4459                        && LARGE_OFF_T % 2147483647 == 1)
4460                       ? 1 : -1];
4461 int
4462 main ()
4463 {
4464
4465   ;
4466   return 0;
4467 }
4468 _ACEOF
4469          if ac_fn_c_try_compile "$LINENO"; then :
4470   break
4471 fi
4472 rm -f core conftest.err conftest.$ac_objext
4473          CC="$CC -n32"
4474          if ac_fn_c_try_compile "$LINENO"; then :
4475   ac_cv_sys_largefile_CC=' -n32'; break
4476 fi
4477 rm -f core conftest.err conftest.$ac_objext
4478          break
4479        done
4480        CC=$ac_save_CC
4481        rm -f conftest.$ac_ext
4482     fi
4483 fi
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4485 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4486   if test "$ac_cv_sys_largefile_CC" != no; then
4487     CC=$CC$ac_cv_sys_largefile_CC
4488   fi
4489
4490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4491 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4492 if ${ac_cv_sys_file_offset_bits+:} false; then :
4493   $as_echo_n "(cached) " >&6
4494 else
4495   while :; do
4496   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497 /* end confdefs.h.  */
4498 #include <sys/types.h>
4499  /* Check that off_t can represent 2**63 - 1 correctly.
4500     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4501     since some C++ compilers masquerading as C compilers
4502     incorrectly reject 9223372036854775807.  */
4503 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4504   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4505                        && LARGE_OFF_T % 2147483647 == 1)
4506                       ? 1 : -1];
4507 int
4508 main ()
4509 {
4510
4511   ;
4512   return 0;
4513 }
4514 _ACEOF
4515 if ac_fn_c_try_compile "$LINENO"; then :
4516   ac_cv_sys_file_offset_bits=no; break
4517 fi
4518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520 /* end confdefs.h.  */
4521 #define _FILE_OFFSET_BITS 64
4522 #include <sys/types.h>
4523  /* Check that off_t can represent 2**63 - 1 correctly.
4524     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4525     since some C++ compilers masquerading as C compilers
4526     incorrectly reject 9223372036854775807.  */
4527 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4528   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4529                        && LARGE_OFF_T % 2147483647 == 1)
4530                       ? 1 : -1];
4531 int
4532 main ()
4533 {
4534
4535   ;
4536   return 0;
4537 }
4538 _ACEOF
4539 if ac_fn_c_try_compile "$LINENO"; then :
4540   ac_cv_sys_file_offset_bits=64; break
4541 fi
4542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4543   ac_cv_sys_file_offset_bits=unknown
4544   break
4545 done
4546 fi
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4548 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4549 case $ac_cv_sys_file_offset_bits in #(
4550   no | unknown) ;;
4551   *)
4552 cat >>confdefs.h <<_ACEOF
4553 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4554 _ACEOF
4555 ;;
4556 esac
4557 rm -rf conftest*
4558   if test $ac_cv_sys_file_offset_bits = unknown; then
4559     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4560 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4561 if ${ac_cv_sys_large_files+:} false; then :
4562   $as_echo_n "(cached) " >&6
4563 else
4564   while :; do
4565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h.  */
4567 #include <sys/types.h>
4568  /* Check that off_t can represent 2**63 - 1 correctly.
4569     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4570     since some C++ compilers masquerading as C compilers
4571     incorrectly reject 9223372036854775807.  */
4572 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4573   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4574                        && LARGE_OFF_T % 2147483647 == 1)
4575                       ? 1 : -1];
4576 int
4577 main ()
4578 {
4579
4580   ;
4581   return 0;
4582 }
4583 _ACEOF
4584 if ac_fn_c_try_compile "$LINENO"; then :
4585   ac_cv_sys_large_files=no; break
4586 fi
4587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h.  */
4590 #define _LARGE_FILES 1
4591 #include <sys/types.h>
4592  /* Check that off_t can represent 2**63 - 1 correctly.
4593     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4594     since some C++ compilers masquerading as C compilers
4595     incorrectly reject 9223372036854775807.  */
4596 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4597   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4598                        && LARGE_OFF_T % 2147483647 == 1)
4599                       ? 1 : -1];
4600 int
4601 main ()
4602 {
4603
4604   ;
4605   return 0;
4606 }
4607 _ACEOF
4608 if ac_fn_c_try_compile "$LINENO"; then :
4609   ac_cv_sys_large_files=1; break
4610 fi
4611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4612   ac_cv_sys_large_files=unknown
4613   break
4614 done
4615 fi
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4617 $as_echo "$ac_cv_sys_large_files" >&6; }
4618 case $ac_cv_sys_large_files in #(
4619   no | unknown) ;;
4620   *)
4621 cat >>confdefs.h <<_ACEOF
4622 #define _LARGE_FILES $ac_cv_sys_large_files
4623 _ACEOF
4624 ;;
4625 esac
4626 rm -rf conftest*
4627   fi
4628
4629
4630 fi
4631
4632
4633  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4634 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4635 if ${ac_cv_c_bigendian+:} false; then :
4636   $as_echo_n "(cached) " >&6
4637 else
4638   ac_cv_c_bigendian=unknown
4639     # See if we're dealing with a universal compiler.
4640     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h.  */
4642 #ifndef __APPLE_CC__
4643                not a universal capable compiler
4644              #endif
4645              typedef int dummy;
4646
4647 _ACEOF
4648 if ac_fn_c_try_compile "$LINENO"; then :
4649
4650         # Check for potential -arch flags.  It is not universal unless
4651         # there are at least two -arch flags with different values.
4652         ac_arch=
4653         ac_prev=
4654         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4655          if test -n "$ac_prev"; then
4656            case $ac_word in
4657              i?86 | x86_64 | ppc | ppc64)
4658                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4659                  ac_arch=$ac_word
4660                else
4661                  ac_cv_c_bigendian=universal
4662                  break
4663                fi
4664                ;;
4665            esac
4666            ac_prev=
4667          elif test "x$ac_word" = "x-arch"; then
4668            ac_prev=arch
4669          fi
4670        done
4671 fi
4672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4673     if test $ac_cv_c_bigendian = unknown; then
4674       # See if sys/param.h defines the BYTE_ORDER macro.
4675       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676 /* end confdefs.h.  */
4677 #include <sys/types.h>
4678              #include <sys/param.h>
4679
4680 int
4681 main ()
4682 {
4683 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4684                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4685                      && LITTLE_ENDIAN)
4686               bogus endian macros
4687              #endif
4688
4689   ;
4690   return 0;
4691 }
4692 _ACEOF
4693 if ac_fn_c_try_compile "$LINENO"; then :
4694   # It does; now see whether it defined to BIG_ENDIAN or not.
4695          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h.  */
4697 #include <sys/types.h>
4698                 #include <sys/param.h>
4699
4700 int
4701 main ()
4702 {
4703 #if BYTE_ORDER != BIG_ENDIAN
4704                  not big endian
4705                 #endif
4706
4707   ;
4708   return 0;
4709 }
4710 _ACEOF
4711 if ac_fn_c_try_compile "$LINENO"; then :
4712   ac_cv_c_bigendian=yes
4713 else
4714   ac_cv_c_bigendian=no
4715 fi
4716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4717 fi
4718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4719     fi
4720     if test $ac_cv_c_bigendian = unknown; then
4721       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4722       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h.  */
4724 #include <limits.h>
4725
4726 int
4727 main ()
4728 {
4729 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4730               bogus endian macros
4731              #endif
4732
4733   ;
4734   return 0;
4735 }
4736 _ACEOF
4737 if ac_fn_c_try_compile "$LINENO"; then :
4738   # It does; now see whether it defined to _BIG_ENDIAN or not.
4739          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740 /* end confdefs.h.  */
4741 #include <limits.h>
4742
4743 int
4744 main ()
4745 {
4746 #ifndef _BIG_ENDIAN
4747                  not big endian
4748                 #endif
4749
4750   ;
4751   return 0;
4752 }
4753 _ACEOF
4754 if ac_fn_c_try_compile "$LINENO"; then :
4755   ac_cv_c_bigendian=yes
4756 else
4757   ac_cv_c_bigendian=no
4758 fi
4759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4760 fi
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762     fi
4763     if test $ac_cv_c_bigendian = unknown; then
4764       # Compile a test program.
4765       if test "$cross_compiling" = yes; then :
4766   # Try to guess by grepping values from an object file.
4767          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768 /* end confdefs.h.  */
4769 short int ascii_mm[] =
4770                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4771                 short int ascii_ii[] =
4772                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4773                 int use_ascii (int i) {
4774                   return ascii_mm[i] + ascii_ii[i];
4775                 }
4776                 short int ebcdic_ii[] =
4777                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4778                 short int ebcdic_mm[] =
4779                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4780                 int use_ebcdic (int i) {
4781                   return ebcdic_mm[i] + ebcdic_ii[i];
4782                 }
4783                 extern int foo;
4784
4785 int
4786 main ()
4787 {
4788 return use_ascii (foo) == use_ebcdic (foo);
4789   ;
4790   return 0;
4791 }
4792 _ACEOF
4793 if ac_fn_c_try_compile "$LINENO"; then :
4794   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4795               ac_cv_c_bigendian=yes
4796             fi
4797             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4798               if test "$ac_cv_c_bigendian" = unknown; then
4799                 ac_cv_c_bigendian=no
4800               else
4801                 # finding both strings is unlikely to happen, but who knows?
4802                 ac_cv_c_bigendian=unknown
4803               fi
4804             fi
4805 fi
4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 else
4808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4809 /* end confdefs.h.  */
4810 $ac_includes_default
4811 int
4812 main ()
4813 {
4814
4815              /* Are we little or big endian?  From Harbison&Steele.  */
4816              union
4817              {
4818                long int l;
4819                char c[sizeof (long int)];
4820              } u;
4821              u.l = 1;
4822              return u.c[sizeof (long int) - 1] == 1;
4823
4824   ;
4825   return 0;
4826 }
4827 _ACEOF
4828 if ac_fn_c_try_run "$LINENO"; then :
4829   ac_cv_c_bigendian=no
4830 else
4831   ac_cv_c_bigendian=yes
4832 fi
4833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4834   conftest.$ac_objext conftest.beam conftest.$ac_ext
4835 fi
4836
4837     fi
4838 fi
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4840 $as_echo "$ac_cv_c_bigendian" >&6; }
4841  case $ac_cv_c_bigendian in #(
4842    yes)
4843      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4844 ;; #(
4845    no)
4846       ;; #(
4847    universal)
4848
4849 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4850
4851      ;; #(
4852    *)
4853      as_fn_error $? "unknown endianness
4854  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4855  esac
4856
4857
4858 # Extract the first word of "gmake", so it can be a program name with args.
4859 set dummy gmake; ac_word=$2
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861 $as_echo_n "checking for $ac_word... " >&6; }
4862 if ${ac_cv_prog_GMAKE+:} false; then :
4863   $as_echo_n "(cached) " >&6
4864 else
4865   if test -n "$GMAKE"; then
4866   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4867 else
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 for as_dir in $PATH
4870 do
4871   IFS=$as_save_IFS
4872   test -z "$as_dir" && as_dir=.
4873     for ac_exec_ext in '' $ac_executable_extensions; do
4874   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4875     ac_cv_prog_GMAKE="yes"
4876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4877     break 2
4878   fi
4879 done
4880   done
4881 IFS=$as_save_IFS
4882
4883   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4884 fi
4885 fi
4886 GMAKE=$ac_cv_prog_GMAKE
4887 if test -n "$GMAKE"; then
4888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4889 $as_echo "$GMAKE" >&6; }
4890 else
4891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 $as_echo "no" >&6; }
4893 fi
4894
4895
4896 if test $GMAKE = no; then
4897   # Extract the first word of "make", so it can be a program name with args.
4898 set dummy make; ac_word=$2
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4900 $as_echo_n "checking for $ac_word... " >&6; }
4901 if ${ac_cv_path_MAKE+:} false; then :
4902   $as_echo_n "(cached) " >&6
4903 else
4904   case $MAKE in
4905   [\\/]* | ?:[\\/]*)
4906   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4907   ;;
4908   *)
4909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 for as_dir in $PATH
4911 do
4912   IFS=$as_save_IFS
4913   test -z "$as_dir" && as_dir=.
4914     for ac_exec_ext in '' $ac_executable_extensions; do
4915   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4916     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4918     break 2
4919   fi
4920 done
4921   done
4922 IFS=$as_save_IFS
4923
4924   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4925   ;;
4926 esac
4927 fi
4928 MAKE=$ac_cv_path_MAKE
4929 if test -n "$MAKE"; then
4930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4931 $as_echo "$MAKE" >&6; }
4932 else
4933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4934 $as_echo "no" >&6; }
4935 fi
4936
4937
4938 else
4939   # Extract the first word of "gmake", so it can be a program name with args.
4940 set dummy gmake; ac_word=$2
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4942 $as_echo_n "checking for $ac_word... " >&6; }
4943 if ${ac_cv_path_MAKE+:} false; then :
4944   $as_echo_n "(cached) " >&6
4945 else
4946   case $MAKE in
4947   [\\/]* | ?:[\\/]*)
4948   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4949   ;;
4950   *)
4951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH
4953 do
4954   IFS=$as_save_IFS
4955   test -z "$as_dir" && as_dir=.
4956     for ac_exec_ext in '' $ac_executable_extensions; do
4957   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4958     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4960     break 2
4961   fi
4962 done
4963   done
4964 IFS=$as_save_IFS
4965
4966   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4967   ;;
4968 esac
4969 fi
4970 MAKE=$ac_cv_path_MAKE
4971 if test -n "$MAKE"; then
4972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4973 $as_echo "$MAKE" >&6; }
4974 else
4975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976 $as_echo "no" >&6; }
4977 fi
4978
4979
4980 fi
4981 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4982 if test -z "$makever"; then
4983   as_fn_error $? "GNU Make is not installed.  Please download and install it from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." "$LINENO" 5
4984 fi
4985
4986
4987   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of system cores" >&5
4988 $as_echo_n "checking number of system cores... " >&6; }
4989 if ${ax_cv_system_cores+:} false; then :
4990   $as_echo_n "(cached) " >&6
4991 else
4992
4993       ac_ext=c
4994 ac_cpp='$CPP $CPPFLAGS'
4995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4998
4999       if test "$cross_compiling" = yes; then :
5000   ax_cv_system_cores=
5001
5002 else
5003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5004 /* end confdefs.h.  */
5005
5006           #include <stdio.h>
5007           #include <stdint.h>
5008           #ifdef _WIN32
5009           #  include <windows.h>
5010           #elif MACOS
5011           #  include <sys/param.h>
5012           #  include <sys/sysctl.h>
5013           #else
5014           #  include <unistd.h>
5015           #endif
5016
5017           int main (int argc, char *argv[])
5018           {
5019             uint32_t count;
5020
5021             #ifdef WIN32
5022             SYSTEM_INFO sysinfo;
5023             GetSystemInfo(&sysinfo);
5024
5025             count = sysinfo.dwNumberOfProcessors;
5026
5027             #elif MACOS
5028             int nm[2];
5029             size_t len = 4;
5030
5031             nm[0] = CTL_HW;
5032             nm[1] = HW_AVAILCPU;
5033             sysctl(nm, 2, &count, &len, NULL, 0);
5034
5035             if(count < 1) {
5036               nm[1] = HW_NCPU;
5037               sysctl(nm, 2, &count, &len, NULL, 0);
5038               if(count < 1) {
5039                 count = 1;
5040               }
5041             }
5042
5043             #else
5044             count = sysconf(_SC_NPROCESSORS_ONLN);
5045             #endif
5046
5047             return count;
5048           }
5049
5050 _ACEOF
5051 if ac_fn_c_try_run "$LINENO"; then :
5052   ax_cv_system_cores=$?
5053 else
5054   ax_cv_system_cores=$?
5055 fi
5056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5057   conftest.$ac_objext conftest.beam conftest.$ac_ext
5058 fi
5059
5060     ac_ext=c
5061 ac_cpp='$CPP $CPPFLAGS'
5062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5065
5066
5067 fi
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_system_cores" >&5
5069 $as_echo "$ax_cv_system_cores" >&6; }
5070
5071
5072
5073
5074 # Extract the first word of "git", so it can be a program name with args.
5075 set dummy git; ac_word=$2
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077 $as_echo_n "checking for $ac_word... " >&6; }
5078 if ${ac_cv_prog_GIT+:} false; then :
5079   $as_echo_n "(cached) " >&6
5080 else
5081   if test -n "$GIT"; then
5082   ac_cv_prog_GIT="$GIT" # Let the user override the test.
5083 else
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 for as_dir in $PATH
5086 do
5087   IFS=$as_save_IFS
5088   test -z "$as_dir" && as_dir=.
5089     for ac_exec_ext in '' $ac_executable_extensions; do
5090   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5091     ac_cv_prog_GIT="yes"
5092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5093     break 2
5094   fi
5095 done
5096   done
5097 IFS=$as_save_IFS
5098
5099   test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
5100 fi
5101 fi
5102 GIT=$ac_cv_prog_GIT
5103 if test -n "$GIT"; then
5104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
5105 $as_echo "$GIT" >&6; }
5106 else
5107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108 $as_echo "no" >&6; }
5109 fi
5110
5111
5112
5113
5114 # Check whether --enable-strict-dependencies was given.
5115 if test "${enable_strict_dependencies+set}" = set; then :
5116   enableval=$enable_strict_dependencies;
5117 fi
5118
5119
5120 # Check whether --enable-werror was given.
5121 if test "${enable_werror+set}" = set; then :
5122   enableval=$enable_werror;  case "$enableval" in
5123     no)
5124       werror=no
5125     ;;
5126     *)
5127       werror=yes
5128   esac
5129
5130 fi
5131
5132
5133 docdir='${datadir}/doc/freeradius'
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
5135 $as_echo_n "checking docdir... " >&6; }
5136
5137 # Check whether --with-docdir was given.
5138 if test "${with_docdir+set}" = set; then :
5139   withval=$with_docdir;  case "$withval" in
5140   no)
5141     docdir=no
5142     ;;
5143   yes)
5144     ;;
5145   [\\/$]* | ?:[\\/]* )
5146     docdir="$withval"
5147     ;;
5148   *)
5149     as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
5150     ;;
5151   esac
5152
5153 fi
5154
5155
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
5157 $as_echo "$docdir" >&6; }
5158 if test "x$docdir" = xno; then
5159   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
5160 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
5161 fi
5162
5163 logdir='${localstatedir}/log/radius'
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
5165 $as_echo_n "checking logdir... " >&6; }
5166
5167 # Check whether --with-logdir was given.
5168 if test "${with_logdir+set}" = set; then :
5169   withval=$with_logdir;  case "$withval" in
5170   no)
5171     as_fn_error $? "Need logdir" "$LINENO" 5
5172     ;;
5173   yes)
5174     ;;
5175   [\\/$]* | ?:[\\/]* )
5176     logdir="$withval"
5177     ;;
5178   *)
5179     as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
5180     ;;
5181   esac
5182
5183 fi
5184
5185
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
5187 $as_echo "$logdir" >&6; }
5188
5189 radacctdir='${logdir}/radacct'
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
5191 $as_echo_n "checking radacctdir... " >&6; }
5192
5193 # Check whether --with-radacctdir was given.
5194 if test "${with_radacctdir+set}" = set; then :
5195   withval=$with_radacctdir;  case "$withval" in
5196   no)
5197     as_fn_error $? "Need radacctdir" "$LINENO" 5
5198     ;;
5199   yes)
5200     ;;
5201   [\\/$]* | ?:[\\/]* )
5202     radacctdir="$withval"
5203     ;;
5204   *)
5205     as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
5206     ;;
5207   esac
5208
5209 fi
5210
5211
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
5213 $as_echo "$radacctdir" >&6; }
5214
5215 raddbdir='${sysconfdir}/raddb'
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
5217 $as_echo_n "checking raddbdir... " >&6; }
5218
5219 # Check whether --with-raddbdir was given.
5220 if test "${with_raddbdir+set}" = set; then :
5221   withval=$with_raddbdir;  case "$withval" in
5222   no)
5223     as_fn_error $? "Need raddbdir" "$LINENO" 5
5224     ;;
5225   yes)
5226     ;;
5227   [\\/$]* | ?:[\\/]* )
5228     raddbdir="$withval"
5229     ;;
5230   *)
5231     as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
5232     ;;
5233   esac
5234
5235 fi
5236
5237
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
5239 $as_echo "$raddbdir" >&6; }
5240
5241 modconfdir='${raddbdir}/mods-config'
5242
5243
5244 WITH_ASCEND_BINARY=yes
5245
5246 # Check whether --with-ascend-binary was given.
5247 if test "${with_ascend_binary+set}" = set; then :
5248   withval=$with_ascend_binary;  case "$withval" in
5249   yes)
5250     ;;
5251   *)
5252     WITH_ASCEND_BINARY=no
5253   esac
5254
5255 fi
5256
5257 if test "x$WITH_ASCEND_BINARY" = "xyes"; then
5258
5259 $as_echo "#define WITH_ASCEND_BINARY 1" >>confdefs.h
5260
5261 fi
5262
5263 WITH_THREADS=yes
5264
5265 # Check whether --with-threads was given.
5266 if test "${with_threads+set}" = set; then :
5267   withval=$with_threads;  case "$withval" in
5268   yes)
5269     ;;
5270   *)
5271     WITH_THREADS=no
5272   esac
5273
5274 fi
5275
5276
5277 WITH_TCP=yes
5278
5279 # Check whether --with-tcp was given.
5280 if test "${with_tcp+set}" = set; then :
5281   withval=$with_tcp;  case "$withval" in
5282   yes)
5283     ;;
5284   *)
5285     WITH_TCP=no
5286   esac
5287
5288 fi
5289
5290 if test "x$WITH_TCP" = "xyes"; then
5291
5292 $as_echo "#define WITH_TCP 1" >>confdefs.h
5293
5294 fi
5295
5296 WITH_VMPS=yes
5297
5298 # Check whether --with-vmps was given.
5299 if test "${with_vmps+set}" = set; then :
5300   withval=$with_vmps;  case "$withval" in
5301   yes)
5302     ;;
5303   *)
5304     WITH_VMPS=no
5305   esac
5306
5307 fi
5308
5309 if test "x$WITH_VMPS" = "xyes"; then
5310
5311 $as_echo "#define WITH_VMPS 1" >>confdefs.h
5312
5313 fi
5314
5315 WITH_DHCP=yes
5316
5317 # Check whether --with-dhcp was given.
5318 if test "${with_dhcp+set}" = set; then :
5319   withval=$with_dhcp;  case "$withval" in
5320   yes)
5321     ;;
5322   *)
5323     WITH_DHCP=no
5324   esac
5325
5326 fi
5327
5328 if test "x$WITH_DHCP" = "xyes"; then
5329
5330 $as_echo "#define WITH_DHCP 1" >>confdefs.h
5331
5332 fi
5333
5334 STATIC_MODULES=
5335
5336 # Check whether --with-static_modules was given.
5337 if test "${with_static_modules+set}" = set; then :
5338   withval=$with_static_modules;
5339   for i in $withval; do
5340     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
5341   done
5342
5343 fi
5344
5345
5346 USE_SHARED_LIBS=yes
5347
5348 # Check whether --with-shared-libs was given.
5349 if test "${with_shared_libs+set}" = set; then :
5350   withval=$with_shared_libs;  case "$withval" in
5351   no)
5352     USE_SHARED_LIBS=no
5353     ;;
5354   *)
5355   esac
5356
5357 fi
5358
5359
5360 MODULES=
5361
5362 # Check whether --with-modules was given.
5363 if test "${with_modules+set}" = set; then :
5364   withval=$with_modules;
5365  for i in $withval; do
5366    MODULES="$MODULES $i"
5367  done
5368
5369 fi
5370
5371
5372 EXPERIMENTAL=
5373
5374 # Check whether --with-experimental-modules was given.
5375 if test "${with_experimental_modules+set}" = set; then :
5376   withval=$with_experimental_modules;  case "$withval" in
5377   yes)
5378     EXPERIMENTAL=yes
5379     ;;
5380   no)
5381     EXPERIMENTAL=no
5382     ;;
5383   *)
5384   esac
5385
5386 fi
5387
5388
5389 WITH_UDPFROMTO=yes
5390
5391 # Check whether --with-udpfromto was given.
5392 if test "${with_udpfromto+set}" = set; then :
5393   withval=$with_udpfromto;  case "$withval" in
5394   yes)
5395     WITH_UDPFROMTO=yes
5396     ;;
5397   *)
5398     WITH_UDPFROMTO=no
5399   esac
5400
5401 fi
5402
5403
5404 if test "x$WITH_UDPFROMTO" = "xyes"; then
5405
5406 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
5407
5408 fi
5409
5410 WITH_OPENSSL=yes
5411
5412 # Check whether --with-openssl was given.
5413 if test "${with_openssl+set}" = set; then :
5414   withval=$with_openssl;  case "$withval" in
5415   no)
5416     WITH_OPENSSL=no
5417     ;;
5418   *)
5419     WITH_OPENSSL=yes
5420     ;;
5421   esac
5422
5423 fi
5424
5425
5426 OPENSSL_INCLUDE_DIR=
5427
5428 # Check whether --with-openssl-includes was given.
5429 if test "${with_openssl_includes+set}" = set; then :
5430   withval=$with_openssl_includes;  case "$withval" in
5431   *) OPENSSL_INCLUDE_DIR="$withval"
5432     ;;
5433   esac
5434
5435 fi
5436
5437
5438 OPENSSL_LIB_DIR=
5439
5440 # Check whether --with-openssl-libraries was given.
5441 if test "${with_openssl_libraries+set}" = set; then :
5442   withval=$with_openssl_libraries;  case "$withval" in
5443   *) OPENSSL_LIB_DIR="$withval"
5444     ;;
5445   esac
5446
5447 fi
5448
5449
5450
5451
5452 # Check whether --with-rlm-FOO-lib-dir was given.
5453 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
5454   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
5455   *)
5456     ;;
5457   esac
5458
5459 fi
5460
5461
5462
5463 # Check whether --with-rlm-FOO-include-dir was given.
5464 if test "${with_rlm_FOO_include_dir+set}" = set; then :
5465   withval=$with_rlm_FOO_include_dir;  case "$withval" in
5466   *)
5467     ;;
5468   esac
5469
5470 fi
5471
5472
5473
5474 CHECKRAD=checkrad
5475 # Extract the first word of "perl", so it can be a program name with args.
5476 set dummy perl; ac_word=$2
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5478 $as_echo_n "checking for $ac_word... " >&6; }
5479 if ${ac_cv_path_PERL+:} false; then :
5480   $as_echo_n "(cached) " >&6
5481 else
5482   case $PERL in
5483   [\\/]* | ?:[\\/]*)
5484   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5485   ;;
5486   *)
5487   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488 for as_dir in $PATH
5489 do
5490   IFS=$as_save_IFS
5491   test -z "$as_dir" && as_dir=.
5492     for ac_exec_ext in '' $ac_executable_extensions; do
5493   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5494     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5496     break 2
5497   fi
5498 done
5499   done
5500 IFS=$as_save_IFS
5501
5502   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
5503   ;;
5504 esac
5505 fi
5506 PERL=$ac_cv_path_PERL
5507 if test -n "$PERL"; then
5508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5509 $as_echo "$PERL" >&6; }
5510 else
5511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512 $as_echo "no" >&6; }
5513 fi
5514
5515
5516 if test "x$ac_cv_path_PERL" = "x"; then
5517   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&5
5518 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&2;}
5519 fi
5520 # Extract the first word of "snmpget", so it can be a program name with args.
5521 set dummy snmpget; ac_word=$2
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5523 $as_echo_n "checking for $ac_word... " >&6; }
5524 if ${ac_cv_path_SNMPGET+:} false; then :
5525   $as_echo_n "(cached) " >&6
5526 else
5527   case $SNMPGET in
5528   [\\/]* | ?:[\\/]*)
5529   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
5530   ;;
5531   *)
5532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 for as_dir in $PATH
5534 do
5535   IFS=$as_save_IFS
5536   test -z "$as_dir" && as_dir=.
5537     for ac_exec_ext in '' $ac_executable_extensions; do
5538   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5539     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
5540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5541     break 2
5542   fi
5543 done
5544   done
5545 IFS=$as_save_IFS
5546
5547   ;;
5548 esac
5549 fi
5550 SNMPGET=$ac_cv_path_SNMPGET
5551 if test -n "$SNMPGET"; then
5552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
5553 $as_echo "$SNMPGET" >&6; }
5554 else
5555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556 $as_echo "no" >&6; }
5557 fi
5558
5559
5560 if test "x$ac_cv_path_SNMPGET" = "x"; then
5561   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&5
5562 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&2;}
5563 fi
5564
5565 # Extract the first word of "snmpwalk", so it can be a program name with args.
5566 set dummy snmpwalk; ac_word=$2
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5568 $as_echo_n "checking for $ac_word... " >&6; }
5569 if ${ac_cv_path_SNMPWALK+:} false; then :
5570   $as_echo_n "(cached) " >&6
5571 else
5572   case $SNMPWALK in
5573   [\\/]* | ?:[\\/]*)
5574   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
5575   ;;
5576   *)
5577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 for as_dir in $PATH
5579 do
5580   IFS=$as_save_IFS
5581   test -z "$as_dir" && as_dir=.
5582     for ac_exec_ext in '' $ac_executable_extensions; do
5583   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5584     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
5585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5586     break 2
5587   fi
5588 done
5589   done
5590 IFS=$as_save_IFS
5591
5592   ;;
5593 esac
5594 fi
5595 SNMPWALK=$ac_cv_path_SNMPWALK
5596 if test -n "$SNMPWALK"; then
5597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
5598 $as_echo "$SNMPWALK" >&6; }
5599 else
5600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601 $as_echo "no" >&6; }
5602 fi
5603
5604
5605 if test "x$ac_cv_path_SNMPWALK" = "x"; then
5606   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&5
5607 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&2;}
5608 fi
5609
5610 # Extract the first word of "rusers", so it can be a program name with args.
5611 set dummy rusers; ac_word=$2
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5613 $as_echo_n "checking for $ac_word... " >&6; }
5614 if ${ac_cv_path_RUSERS+:} false; then :
5615   $as_echo_n "(cached) " >&6
5616 else
5617   case $RUSERS in
5618   [\\/]* | ?:[\\/]*)
5619   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
5620   ;;
5621   *)
5622   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5623 for as_dir in $PATH
5624 do
5625   IFS=$as_save_IFS
5626   test -z "$as_dir" && as_dir=.
5627     for ac_exec_ext in '' $ac_executable_extensions; do
5628   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5629     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
5630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5631     break 2
5632   fi
5633 done
5634   done
5635 IFS=$as_save_IFS
5636
5637   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
5638   ;;
5639 esac
5640 fi
5641 RUSERS=$ac_cv_path_RUSERS
5642 if test -n "$RUSERS"; then
5643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
5644 $as_echo "$RUSERS" >&6; }
5645 else
5646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647 $as_echo "no" >&6; }
5648 fi
5649
5650
5651
5652 missing_dir=`cd $ac_aux_dir && pwd`
5653 # expand $ac_aux_dir to an absolute path
5654 am_aux_dir=`cd $ac_aux_dir && pwd`
5655
5656 if test x"${MISSING+set}" != xset; then
5657   case $am_aux_dir in
5658   *\ * | *\     *)
5659     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5660   *)
5661     MISSING="\${SHELL} $am_aux_dir/missing" ;;
5662   esac
5663 fi
5664 # Use eval to expand $SHELL
5665 if eval "$MISSING --run true"; then
5666   am_missing_run="$MISSING --run "
5667 else
5668   am_missing_run=
5669   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5670 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5671 fi
5672
5673
5674 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
5675
5676
5677 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5678
5679
5680 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5681
5682
5683 # Extract the first word of "locate", so it can be a program name with args.
5684 set dummy locate; ac_word=$2
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5686 $as_echo_n "checking for $ac_word... " >&6; }
5687 if ${ac_cv_path_LOCATE+:} false; then :
5688   $as_echo_n "(cached) " >&6
5689 else
5690   case $LOCATE in
5691   [\\/]* | ?:[\\/]*)
5692   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
5693   ;;
5694   *)
5695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696 for as_dir in $PATH
5697 do
5698   IFS=$as_save_IFS
5699   test -z "$as_dir" && as_dir=.
5700     for ac_exec_ext in '' $ac_executable_extensions; do
5701   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
5703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704     break 2
5705   fi
5706 done
5707   done
5708 IFS=$as_save_IFS
5709
5710   ;;
5711 esac
5712 fi
5713 LOCATE=$ac_cv_path_LOCATE
5714 if test -n "$LOCATE"; then
5715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
5716 $as_echo "$LOCATE" >&6; }
5717 else
5718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5719 $as_echo "no" >&6; }
5720 fi
5721
5722
5723 # Extract the first word of "dirname", so it can be a program name with args.
5724 set dummy dirname; ac_word=$2
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5726 $as_echo_n "checking for $ac_word... " >&6; }
5727 if ${ac_cv_path_DIRNAME+:} false; then :
5728   $as_echo_n "(cached) " >&6
5729 else
5730   case $DIRNAME in
5731   [\\/]* | ?:[\\/]*)
5732   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
5733   ;;
5734   *)
5735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736 for as_dir in $PATH
5737 do
5738   IFS=$as_save_IFS
5739   test -z "$as_dir" && as_dir=.
5740     for ac_exec_ext in '' $ac_executable_extensions; do
5741   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5742     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
5743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5744     break 2
5745   fi
5746 done
5747   done
5748 IFS=$as_save_IFS
5749
5750   ;;
5751 esac
5752 fi
5753 DIRNAME=$ac_cv_path_DIRNAME
5754 if test -n "$DIRNAME"; then
5755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
5756 $as_echo "$DIRNAME" >&6; }
5757 else
5758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759 $as_echo "no" >&6; }
5760 fi
5761
5762
5763 # Extract the first word of "grep", so it can be a program name with args.
5764 set dummy grep; ac_word=$2
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5766 $as_echo_n "checking for $ac_word... " >&6; }
5767 if ${ac_cv_path_GREP+:} false; then :
5768   $as_echo_n "(cached) " >&6
5769 else
5770   case $GREP in
5771   [\\/]* | ?:[\\/]*)
5772   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5773   ;;
5774   *)
5775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH
5777 do
5778   IFS=$as_save_IFS
5779   test -z "$as_dir" && as_dir=.
5780     for ac_exec_ext in '' $ac_executable_extensions; do
5781   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5784     break 2
5785   fi
5786 done
5787   done
5788 IFS=$as_save_IFS
5789
5790   ;;
5791 esac
5792 fi
5793 GREP=$ac_cv_path_GREP
5794 if test -n "$GREP"; then
5795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
5796 $as_echo "$GREP" >&6; }
5797 else
5798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799 $as_echo "no" >&6; }
5800 fi
5801
5802
5803
5804
5805 old_CFLAGS=$CFLAGS
5806 if test "x$WITH_THREADS" = "xyes"; then
5807   if test $ac_cv_prog_suncc = "yes"; then
5808     CFLAGS="$CFLAGS -mt"
5809   fi
5810
5811   for ac_header in pthread.h
5812 do :
5813   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5814 if test "x$ac_cv_header_pthread_h" = xyes; then :
5815   cat >>confdefs.h <<_ACEOF
5816 #define HAVE_PTHREAD_H 1
5817 _ACEOF
5818
5819 else
5820    WITH_THREADS="no"
5821 fi
5822
5823 done
5824
5825
5826                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
5827 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
5828 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
5829   $as_echo_n "(cached) " >&6
5830 else
5831   ac_check_lib_save_LIBS=$LIBS
5832 LIBS="-lpthread  $LIBS"
5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834 /* end confdefs.h.  */
5835
5836 /* Override any GCC internal prototype to avoid an error.
5837    Use char because int might match the return type of a GCC
5838    builtin and then its argument prototype would still apply.  */
5839 #ifdef __cplusplus
5840 extern "C"
5841 #endif
5842 char pthread_create ();
5843 int
5844 main ()
5845 {
5846 return pthread_create ();
5847   ;
5848   return 0;
5849 }
5850 _ACEOF
5851 if ac_fn_c_try_link "$LINENO"; then :
5852   ac_cv_lib_pthread_pthread_create=yes
5853 else
5854   ac_cv_lib_pthread_pthread_create=no
5855 fi
5856 rm -f core conftest.err conftest.$ac_objext \
5857     conftest$ac_exeext conftest.$ac_ext
5858 LIBS=$ac_check_lib_save_LIBS
5859 fi
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
5861 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
5862 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
5863
5864       CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
5865       LIBS="-lpthread $LIBS"
5866
5867 else
5868
5869       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
5870 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
5871 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
5872   $as_echo_n "(cached) " >&6
5873 else
5874   ac_check_lib_save_LIBS=$LIBS
5875 LIBS="-lc_r  $LIBS"
5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h.  */
5878
5879 /* Override any GCC internal prototype to avoid an error.
5880    Use char because int might match the return type of a GCC
5881    builtin and then its argument prototype would still apply.  */
5882 #ifdef __cplusplus
5883 extern "C"
5884 #endif
5885 char pthread_create ();
5886 int
5887 main ()
5888 {
5889 return pthread_create ();
5890   ;
5891   return 0;
5892 }
5893 _ACEOF
5894 if ac_fn_c_try_link "$LINENO"; then :
5895   ac_cv_lib_c_r_pthread_create=yes
5896 else
5897   ac_cv_lib_c_r_pthread_create=no
5898 fi
5899 rm -f core conftest.err conftest.$ac_objext \
5900     conftest$ac_exeext conftest.$ac_ext
5901 LIBS=$ac_check_lib_save_LIBS
5902 fi
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
5904 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
5905 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
5906    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
5907 else
5908    WITH_THREADS="no"
5909
5910 fi
5911
5912
5913
5914 fi
5915
5916 fi
5917
5918 if test "x$WITH_THREADS" != "xyes"; then
5919   CFLAGS=$old_CFLAGS
5920   ac_cv_header_pthread_h="no"
5921   WITH_THREADS=no
5922 else
5923
5924   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
5925 $as_echo_n "checking for library containing sem_init... " >&6; }
5926 if ${ac_cv_search_sem_init+:} false; then :
5927   $as_echo_n "(cached) " >&6
5928 else
5929   ac_func_search_save_LIBS=$LIBS
5930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931 /* end confdefs.h.  */
5932
5933 /* Override any GCC internal prototype to avoid an error.
5934    Use char because int might match the return type of a GCC
5935    builtin and then its argument prototype would still apply.  */
5936 #ifdef __cplusplus
5937 extern "C"
5938 #endif
5939 char sem_init ();
5940 int
5941 main ()
5942 {
5943 return sem_init ();
5944   ;
5945   return 0;
5946 }
5947 _ACEOF
5948 for ac_lib in '' pthread sem posix4 rt semaphore; do
5949   if test -z "$ac_lib"; then
5950     ac_res="none required"
5951   else
5952     ac_res=-l$ac_lib
5953     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5954   fi
5955   if ac_fn_c_try_link "$LINENO"; then :
5956   ac_cv_search_sem_init=$ac_res
5957 fi
5958 rm -f core conftest.err conftest.$ac_objext \
5959     conftest$ac_exeext
5960   if ${ac_cv_search_sem_init+:} false; then :
5961   break
5962 fi
5963 done
5964 if ${ac_cv_search_sem_init+:} false; then :
5965
5966 else
5967   ac_cv_search_sem_init=no
5968 fi
5969 rm conftest.$ac_ext
5970 LIBS=$ac_func_search_save_LIBS
5971 fi
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
5973 $as_echo "$ac_cv_search_sem_init" >&6; }
5974 ac_res=$ac_cv_search_sem_init
5975 if test "$ac_res" != no; then :
5976   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5977
5978 else
5979   as_fn_error $? "-lsem not found.  You may want to download it from ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 or ftp://ftp.freeradius.org/pub/radius/contrib/libsem.tar.gz" "$LINENO" 5
5980
5981 fi
5982
5983 fi
5984
5985 if test "x$WITH_THREADS" = "xyes"; then
5986
5987 $as_echo "#define WITH_THREADS 1" >>confdefs.h
5988
5989 fi
5990
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5992 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5993 if ${ac_cv_lib_dl_dlopen+:} false; then :
5994   $as_echo_n "(cached) " >&6
5995 else
5996   ac_check_lib_save_LIBS=$LIBS
5997 LIBS="-ldl  $LIBS"
5998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5999 /* end confdefs.h.  */
6000
6001 /* Override any GCC internal prototype to avoid an error.
6002    Use char because int might match the return type of a GCC
6003    builtin and then its argument prototype would still apply.  */
6004 #ifdef __cplusplus
6005 extern "C"
6006 #endif
6007 char dlopen ();
6008 int
6009 main ()
6010 {
6011 return dlopen ();
6012   ;
6013   return 0;
6014 }
6015 _ACEOF
6016 if ac_fn_c_try_link "$LINENO"; then :
6017   ac_cv_lib_dl_dlopen=yes
6018 else
6019   ac_cv_lib_dl_dlopen=no
6020 fi
6021 rm -f core conftest.err conftest.$ac_objext \
6022     conftest$ac_exeext conftest.$ac_ext
6023 LIBS=$ac_check_lib_save_LIBS
6024 fi
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6026 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6027 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6028   cat >>confdefs.h <<_ACEOF
6029 #define HAVE_LIBDL 1
6030 _ACEOF
6031
6032   LIBS="-ldl $LIBS"
6033
6034 fi
6035
6036
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
6038 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
6039 if ${ac_cv_lib_socket_getsockname+:} false; then :
6040   $as_echo_n "(cached) " >&6
6041 else
6042   ac_check_lib_save_LIBS=$LIBS
6043 LIBS="-lsocket  $LIBS"
6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h.  */
6046
6047 /* Override any GCC internal prototype to avoid an error.
6048    Use char because int might match the return type of a GCC
6049    builtin and then its argument prototype would still apply.  */
6050 #ifdef __cplusplus
6051 extern "C"
6052 #endif
6053 char getsockname ();
6054 int
6055 main ()
6056 {
6057 return getsockname ();
6058   ;
6059   return 0;
6060 }
6061 _ACEOF
6062 if ac_fn_c_try_link "$LINENO"; then :
6063   ac_cv_lib_socket_getsockname=yes
6064 else
6065   ac_cv_lib_socket_getsockname=no
6066 fi
6067 rm -f core conftest.err conftest.$ac_objext \
6068     conftest$ac_exeext conftest.$ac_ext
6069 LIBS=$ac_check_lib_save_LIBS
6070 fi
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
6072 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
6073 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
6074   cat >>confdefs.h <<_ACEOF
6075 #define HAVE_LIBSOCKET 1
6076 _ACEOF
6077
6078   LIBS="-lsocket $LIBS"
6079
6080 fi
6081
6082
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
6084 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
6085 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
6086   $as_echo_n "(cached) " >&6
6087 else
6088   ac_check_lib_save_LIBS=$LIBS
6089 LIBS="-lresolv  $LIBS"
6090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6091 /* end confdefs.h.  */
6092
6093 /* Override any GCC internal prototype to avoid an error.
6094    Use char because int might match the return type of a GCC
6095    builtin and then its argument prototype would still apply.  */
6096 #ifdef __cplusplus
6097 extern "C"
6098 #endif
6099 char inet_aton ();
6100 int
6101 main ()
6102 {
6103 return inet_aton ();
6104   ;
6105   return 0;
6106 }
6107 _ACEOF
6108 if ac_fn_c_try_link "$LINENO"; then :
6109   ac_cv_lib_resolv_inet_aton=yes
6110 else
6111   ac_cv_lib_resolv_inet_aton=no
6112 fi
6113 rm -f core conftest.err conftest.$ac_objext \
6114     conftest$ac_exeext conftest.$ac_ext
6115 LIBS=$ac_check_lib_save_LIBS
6116 fi
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
6118 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
6119 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
6120   cat >>confdefs.h <<_ACEOF
6121 #define HAVE_LIBRESOLV 1
6122 _ACEOF
6123
6124   LIBS="-lresolv $LIBS"
6125
6126 fi
6127
6128
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
6130 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
6131 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
6132   $as_echo_n "(cached) " >&6
6133 else
6134   ac_check_lib_save_LIBS=$LIBS
6135 LIBS="-lnsl  $LIBS"
6136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6137 /* end confdefs.h.  */
6138
6139 /* Override any GCC internal prototype to avoid an error.
6140    Use char because int might match the return type of a GCC
6141    builtin and then its argument prototype would still apply.  */
6142 #ifdef __cplusplus
6143 extern "C"
6144 #endif
6145 char inet_ntoa ();
6146 int
6147 main ()
6148 {
6149 return inet_ntoa ();
6150   ;
6151   return 0;
6152 }
6153 _ACEOF
6154 if ac_fn_c_try_link "$LINENO"; then :
6155   ac_cv_lib_nsl_inet_ntoa=yes
6156 else
6157   ac_cv_lib_nsl_inet_ntoa=no
6158 fi
6159 rm -f core conftest.err conftest.$ac_objext \
6160     conftest$ac_exeext conftest.$ac_ext
6161 LIBS=$ac_check_lib_save_LIBS
6162 fi
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
6164 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
6165 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
6166   cat >>confdefs.h <<_ACEOF
6167 #define HAVE_LIBNSL 1
6168 _ACEOF
6169
6170   LIBS="-lnsl $LIBS"
6171
6172 fi
6173
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
6175 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
6176 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
6177   $as_echo_n "(cached) " >&6
6178 else
6179   ac_check_lib_save_LIBS=$LIBS
6180 LIBS="-lws2_32  $LIBS"
6181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6182 /* end confdefs.h.  */
6183
6184 /* Override any GCC internal prototype to avoid an error.
6185    Use char because int might match the return type of a GCC
6186    builtin and then its argument prototype would still apply.  */
6187 #ifdef __cplusplus
6188 extern "C"
6189 #endif
6190 char htonl ();
6191 int
6192 main ()
6193 {
6194 return htonl ();
6195   ;
6196   return 0;
6197 }
6198 _ACEOF
6199 if ac_fn_c_try_link "$LINENO"; then :
6200   ac_cv_lib_ws2_32_htonl=yes
6201 else
6202   ac_cv_lib_ws2_32_htonl=no
6203 fi
6204 rm -f core conftest.err conftest.$ac_objext \
6205     conftest$ac_exeext conftest.$ac_ext
6206 LIBS=$ac_check_lib_save_LIBS
6207 fi
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
6209 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
6210 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
6211   cat >>confdefs.h <<_ACEOF
6212 #define HAVE_LIBWS2_32 1
6213 _ACEOF
6214
6215   LIBS="-lws2_32 $LIBS"
6216
6217 fi
6218
6219
6220 smart_try_dir="$pcap_lib_dir"
6221
6222
6223 sm_lib_safe=`echo "pcap" | sed 'y%./+-%__p_%'`
6224 sm_func_safe=`echo "pcap_open_live" | sed 'y%./+-%__p_%'`
6225
6226 old_LIBS="$LIBS"
6227 smart_lib=
6228 smart_lib_dir=
6229
6230 if test "x$smart_try_dir" != "x"; then
6231   for try in $smart_try_dir; do
6232     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap in $try" >&5
6233 $as_echo_n "checking for pcap_open_live in -lpcap in $try... " >&6; }
6234     LIBS="-L$try -lpcap $old_LIBS -Wl,-rpath,$try"
6235     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6236 /* end confdefs.h.  */
6237 extern char pcap_open_live();
6238 int
6239 main ()
6240 {
6241 pcap_open_live()
6242   ;
6243   return 0;
6244 }
6245 _ACEOF
6246 if ac_fn_c_try_link "$LINENO"; then :
6247
6248                  smart_lib="-L$try -lpcap -Wl,-rpath,$try"
6249                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6250 $as_echo "yes" >&6; }
6251                  break
6252
6253 else
6254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255 $as_echo "no" >&6; }
6256 fi
6257 rm -f core conftest.err conftest.$ac_objext \
6258     conftest$ac_exeext conftest.$ac_ext
6259   done
6260   LIBS="$old_LIBS"
6261 fi
6262
6263 if test "x$smart_lib" = "x"; then
6264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
6265 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
6266   LIBS="-lpcap $old_LIBS"
6267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6268 /* end confdefs.h.  */
6269 extern char pcap_open_live();
6270 int
6271 main ()
6272 {
6273 pcap_open_live()
6274   ;
6275   return 0;
6276 }
6277 _ACEOF
6278 if ac_fn_c_try_link "$LINENO"; then :
6279
6280                 smart_lib="-lpcap"
6281                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6282 $as_echo "yes" >&6; }
6283
6284 else
6285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286 $as_echo "no" >&6; }
6287 fi
6288 rm -f core conftest.err conftest.$ac_objext \
6289     conftest$ac_exeext conftest.$ac_ext
6290   LIBS="$old_LIBS"
6291 fi
6292
6293 if test "x$smart_lib" = "x"; then
6294
6295
6296 if test "x$LOCATE" != "x"; then
6297         DIRS=
6298   file=libpcap${libltdl_cv_shlibext}
6299
6300   for x in `${LOCATE} $file 2>/dev/null`; do
6301                                         base=`echo $x | sed "s%/${file}%%"`
6302     if test "x$x" = "x$base"; then
6303       continue;
6304     fi
6305
6306     dir=`${DIRNAME} $x 2>/dev/null`
6307                 exclude=`echo ${dir} | ${GREP} /home`
6308     if test "x$exclude" != "x"; then
6309       continue
6310     fi
6311
6312                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6313     if test "x$already" = "x"; then
6314       DIRS="$DIRS $dir"
6315     fi
6316   done
6317 fi
6318
6319 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6320
6321
6322
6323 if test "x$LOCATE" != "x"; then
6324         DIRS=
6325   file=libpcap.a
6326
6327   for x in `${LOCATE} $file 2>/dev/null`; do
6328                                         base=`echo $x | sed "s%/${file}%%"`
6329     if test "x$x" = "x$base"; then
6330       continue;
6331     fi
6332
6333     dir=`${DIRNAME} $x 2>/dev/null`
6334                 exclude=`echo ${dir} | ${GREP} /home`
6335     if test "x$exclude" != "x"; then
6336       continue
6337     fi
6338
6339                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6340     if test "x$already" = "x"; then
6341       DIRS="$DIRS $dir"
6342     fi
6343   done
6344 fi
6345
6346 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6347
6348
6349   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
6350     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap in $try" >&5
6351 $as_echo_n "checking for pcap_open_live in -lpcap in $try... " >&6; }
6352     LIBS="-L$try -lpcap $old_LIBS -Wl,-rpath,$try"
6353     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354 /* end confdefs.h.  */
6355 extern char pcap_open_live();
6356 int
6357 main ()
6358 {
6359 pcap_open_live()
6360   ;
6361   return 0;
6362 }
6363 _ACEOF
6364 if ac_fn_c_try_link "$LINENO"; then :
6365
6366                   smart_lib="-L$try -lpcap -Wl,-rpath,$try"
6367                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6368 $as_echo "yes" >&6; }
6369                   break
6370
6371 else
6372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373 $as_echo "no" >&6; }
6374 fi
6375 rm -f core conftest.err conftest.$ac_objext \
6376     conftest$ac_exeext conftest.$ac_ext
6377   done
6378   LIBS="$old_LIBS"
6379 fi
6380
6381 if test "x$smart_lib" != "x"; then
6382   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
6383   LIBS="$smart_lib $old_LIBS"
6384   SMART_LIBS="$smart_lib $SMART_LIBS"
6385 fi
6386
6387 if test "x$ac_cv_lib_pcap_pcap_open_live" != "xyes"; then
6388   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found. Use --with-pcap-lib-dir=<path>." >&5
6389 $as_echo "$as_me: WARNING: pcap library not found. Use --with-pcap-lib-dir=<path>." >&2;}
6390   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer and ARP listener." >&5
6391 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer and ARP listener." >&2;}
6392 else
6393   PCAP_LIBS="${smart_lib}"
6394   LIBS=$old_LIBS
6395
6396 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
6397
6398 fi
6399
6400
6401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
6402 $as_echo_n "checking for a readline compatible library... " >&6; }
6403 if ${vl_cv_lib_readline+:} false; then :
6404   $as_echo_n "(cached) " >&6
6405 else
6406
6407     ORIG_LIBS="$LIBS"
6408     for readline_lib in readline edit editline; do
6409       for termcap_lib in "" termcap curses ncurses; do
6410         if test -z "$termcap_lib"; then
6411           TRY_LIB="-l$readline_lib"
6412         else
6413           TRY_LIB="-l$readline_lib -l$termcap_lib"
6414         fi
6415         LIBS="$ORIG_LIBS $TRY_LIB"
6416         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6417 /* end confdefs.h.  */
6418
6419 /* Override any GCC internal prototype to avoid an error.
6420    Use char because int might match the return type of a GCC
6421    builtin and then its argument prototype would still apply.  */
6422 #ifdef __cplusplus
6423 extern "C"
6424 #endif
6425 char readline ();
6426 int
6427 main ()
6428 {
6429 return readline ();
6430   ;
6431   return 0;
6432 }
6433 _ACEOF
6434 if ac_fn_c_try_link "$LINENO"; then :
6435   vl_cv_lib_readline="$TRY_LIB"
6436 fi
6437 rm -f core conftest.err conftest.$ac_objext \
6438     conftest$ac_exeext conftest.$ac_ext
6439         if test -n "$vl_cv_lib_readline"; then
6440           break
6441         fi
6442       done
6443       if test -n "$vl_cv_lib_readline"; then
6444         break
6445       fi
6446     done
6447     if test -z "$vl_cv_lib_readline"; then
6448       vl_cv_lib_readline="no"
6449       LIBS="$ORIG_LIBS"
6450     fi
6451
6452 fi
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
6454 $as_echo "$vl_cv_lib_readline" >&6; }
6455
6456   if test "$vl_cv_lib_readline" != "no"; then
6457     LIBREADLINE="$vl_cv_lib_readline"
6458
6459 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
6460
6461     for ac_header in readline.h readline/readline.h
6462 do :
6463   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6464 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6465 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6466   cat >>confdefs.h <<_ACEOF
6467 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6468 _ACEOF
6469
6470 fi
6471
6472 done
6473
6474     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
6475 $as_echo_n "checking whether readline supports history... " >&6; }
6476 if ${vl_cv_lib_readline_history+:} false; then :
6477   $as_echo_n "(cached) " >&6
6478 else
6479
6480       vl_cv_lib_readline_history="no"
6481       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482 /* end confdefs.h.  */
6483
6484 /* Override any GCC internal prototype to avoid an error.
6485    Use char because int might match the return type of a GCC
6486    builtin and then its argument prototype would still apply.  */
6487 #ifdef __cplusplus
6488 extern "C"
6489 #endif
6490 char add_history ();
6491 int
6492 main ()
6493 {
6494 return add_history ();
6495   ;
6496   return 0;
6497 }
6498 _ACEOF
6499 if ac_fn_c_try_link "$LINENO"; then :
6500   vl_cv_lib_readline_history="yes"
6501 fi
6502 rm -f core conftest.err conftest.$ac_objext \
6503     conftest$ac_exeext conftest.$ac_ext
6504
6505 fi
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
6507 $as_echo "$vl_cv_lib_readline_history" >&6; }
6508     if test "$vl_cv_lib_readline_history" = "yes"; then
6509
6510 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
6511
6512       for ac_header in history.h readline/history.h
6513 do :
6514   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6515 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6516 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6517   cat >>confdefs.h <<_ACEOF
6518 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6519 _ACEOF
6520
6521 fi
6522
6523 done
6524
6525     fi
6526   fi
6527
6528
6529
6530
6531 case "$host" in
6532   *-interix*)
6533     CFLAGS="$CFLAGS -D_ALL_SOURCE"
6534     ;;
6535   *-darwin*)
6536     CFLAGS="$CFLAGS -DDARWIN"
6537     LIBS="-framework DirectoryService $LIBS"
6538     ;;
6539 esac
6540
6541 ac_header_dirent=no
6542 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6543   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6545 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6546 if eval \${$as_ac_Header+:} false; then :
6547   $as_echo_n "(cached) " >&6
6548 else
6549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h.  */
6551 #include <sys/types.h>
6552 #include <$ac_hdr>
6553
6554 int
6555 main ()
6556 {
6557 if ((DIR *) 0)
6558 return 0;
6559   ;
6560   return 0;
6561 }
6562 _ACEOF
6563 if ac_fn_c_try_compile "$LINENO"; then :
6564   eval "$as_ac_Header=yes"
6565 else
6566   eval "$as_ac_Header=no"
6567 fi
6568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6569 fi
6570 eval ac_res=\$$as_ac_Header
6571                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6572 $as_echo "$ac_res" >&6; }
6573 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6574   cat >>confdefs.h <<_ACEOF
6575 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6576 _ACEOF
6577
6578 ac_header_dirent=$ac_hdr; break
6579 fi
6580
6581 done
6582 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6583 if test $ac_header_dirent = dirent.h; then
6584   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6585 $as_echo_n "checking for library containing opendir... " >&6; }
6586 if ${ac_cv_search_opendir+:} false; then :
6587   $as_echo_n "(cached) " >&6
6588 else
6589   ac_func_search_save_LIBS=$LIBS
6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h.  */
6592
6593 /* Override any GCC internal prototype to avoid an error.
6594    Use char because int might match the return type of a GCC
6595    builtin and then its argument prototype would still apply.  */
6596 #ifdef __cplusplus
6597 extern "C"
6598 #endif
6599 char opendir ();
6600 int
6601 main ()
6602 {
6603 return opendir ();
6604   ;
6605   return 0;
6606 }
6607 _ACEOF
6608 for ac_lib in '' dir; do
6609   if test -z "$ac_lib"; then
6610     ac_res="none required"
6611   else
6612     ac_res=-l$ac_lib
6613     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6614   fi
6615   if ac_fn_c_try_link "$LINENO"; then :
6616   ac_cv_search_opendir=$ac_res
6617 fi
6618 rm -f core conftest.err conftest.$ac_objext \
6619     conftest$ac_exeext
6620   if ${ac_cv_search_opendir+:} false; then :
6621   break
6622 fi
6623 done
6624 if ${ac_cv_search_opendir+:} false; then :
6625
6626 else
6627   ac_cv_search_opendir=no
6628 fi
6629 rm conftest.$ac_ext
6630 LIBS=$ac_func_search_save_LIBS
6631 fi
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6633 $as_echo "$ac_cv_search_opendir" >&6; }
6634 ac_res=$ac_cv_search_opendir
6635 if test "$ac_res" != no; then :
6636   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6637
6638 fi
6639
6640 else
6641   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6642 $as_echo_n "checking for library containing opendir... " >&6; }
6643 if ${ac_cv_search_opendir+:} false; then :
6644   $as_echo_n "(cached) " >&6
6645 else
6646   ac_func_search_save_LIBS=$LIBS
6647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6648 /* end confdefs.h.  */
6649
6650 /* Override any GCC internal prototype to avoid an error.
6651    Use char because int might match the return type of a GCC
6652    builtin and then its argument prototype would still apply.  */
6653 #ifdef __cplusplus
6654 extern "C"
6655 #endif
6656 char opendir ();
6657 int
6658 main ()
6659 {
6660 return opendir ();
6661   ;
6662   return 0;
6663 }
6664 _ACEOF
6665 for ac_lib in '' x; do
6666   if test -z "$ac_lib"; then
6667     ac_res="none required"
6668   else
6669     ac_res=-l$ac_lib
6670     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6671   fi
6672   if ac_fn_c_try_link "$LINENO"; then :
6673   ac_cv_search_opendir=$ac_res
6674 fi
6675 rm -f core conftest.err conftest.$ac_objext \
6676     conftest$ac_exeext
6677   if ${ac_cv_search_opendir+:} false; then :
6678   break
6679 fi
6680 done
6681 if ${ac_cv_search_opendir+:} false; then :
6682
6683 else
6684   ac_cv_search_opendir=no
6685 fi
6686 rm conftest.$ac_ext
6687 LIBS=$ac_func_search_save_LIBS
6688 fi
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6690 $as_echo "$ac_cv_search_opendir" >&6; }
6691 ac_res=$ac_cv_search_opendir
6692 if test "$ac_res" != no; then :
6693   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6694
6695 fi
6696
6697 fi
6698
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6700 $as_echo_n "checking for ANSI C header files... " >&6; }
6701 if ${ac_cv_header_stdc+:} false; then :
6702   $as_echo_n "(cached) " >&6
6703 else
6704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6705 /* end confdefs.h.  */
6706 #include <stdlib.h>
6707 #include <stdarg.h>
6708 #include <string.h>
6709 #include <float.h>
6710
6711 int
6712 main ()
6713 {
6714
6715   ;
6716   return 0;
6717 }
6718 _ACEOF
6719 if ac_fn_c_try_compile "$LINENO"; then :
6720   ac_cv_header_stdc=yes
6721 else
6722   ac_cv_header_stdc=no
6723 fi
6724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6725
6726 if test $ac_cv_header_stdc = yes; then
6727   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729 /* end confdefs.h.  */
6730 #include <string.h>
6731
6732 _ACEOF
6733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6734   $EGREP "memchr" >/dev/null 2>&1; then :
6735
6736 else
6737   ac_cv_header_stdc=no
6738 fi
6739 rm -f conftest*
6740
6741 fi
6742
6743 if test $ac_cv_header_stdc = yes; then
6744   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h.  */
6747 #include <stdlib.h>
6748
6749 _ACEOF
6750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6751   $EGREP "free" >/dev/null 2>&1; then :
6752
6753 else
6754   ac_cv_header_stdc=no
6755 fi
6756 rm -f conftest*
6757
6758 fi
6759
6760 if test $ac_cv_header_stdc = yes; then
6761   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6762   if test "$cross_compiling" = yes; then :
6763   :
6764 else
6765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6766 /* end confdefs.h.  */
6767 #include <ctype.h>
6768 #include <stdlib.h>
6769 #if ((' ' & 0x0FF) == 0x020)
6770 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6771 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6772 #else
6773 # define ISLOWER(c) \
6774                    (('a' <= (c) && (c) <= 'i') \
6775                      || ('j' <= (c) && (c) <= 'r') \
6776                      || ('s' <= (c) && (c) <= 'z'))
6777 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6778 #endif
6779
6780 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6781 int
6782 main ()
6783 {
6784   int i;
6785   for (i = 0; i < 256; i++)
6786     if (XOR (islower (i), ISLOWER (i))
6787         || toupper (i) != TOUPPER (i))
6788       return 2;
6789   return 0;
6790 }
6791 _ACEOF
6792 if ac_fn_c_try_run "$LINENO"; then :
6793
6794 else
6795   ac_cv_header_stdc=no
6796 fi
6797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6798   conftest.$ac_objext conftest.beam conftest.$ac_ext
6799 fi
6800
6801 fi
6802 fi
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6804 $as_echo "$ac_cv_header_stdc" >&6; }
6805 if test $ac_cv_header_stdc = yes; then
6806
6807 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6808
6809 fi
6810
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6812 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6813 if ${ac_cv_header_time+:} false; then :
6814   $as_echo_n "(cached) " >&6
6815 else
6816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817 /* end confdefs.h.  */
6818 #include <sys/types.h>
6819 #include <sys/time.h>
6820 #include <time.h>
6821
6822 int
6823 main ()
6824 {
6825 if ((struct tm *) 0)
6826 return 0;
6827   ;
6828   return 0;
6829 }
6830 _ACEOF
6831 if ac_fn_c_try_compile "$LINENO"; then :
6832   ac_cv_header_time=yes
6833 else
6834   ac_cv_header_time=no
6835 fi
6836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6837 fi
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6839 $as_echo "$ac_cv_header_time" >&6; }
6840 if test $ac_cv_header_time = yes; then
6841
6842 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6843
6844 fi
6845
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6847 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6848 if ${ac_cv_header_sys_wait_h+:} false; then :
6849   $as_echo_n "(cached) " >&6
6850 else
6851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h.  */
6853 #include <sys/types.h>
6854 #include <sys/wait.h>
6855 #ifndef WEXITSTATUS
6856 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6857 #endif
6858 #ifndef WIFEXITED
6859 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6860 #endif
6861
6862 int
6863 main ()
6864 {
6865   int s;
6866   wait (&s);
6867   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6868   ;
6869   return 0;
6870 }
6871 _ACEOF
6872 if ac_fn_c_try_compile "$LINENO"; then :
6873   ac_cv_header_sys_wait_h=yes
6874 else
6875   ac_cv_header_sys_wait_h=no
6876 fi
6877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6878 fi
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6880 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6881 if test $ac_cv_header_sys_wait_h = yes; then
6882
6883 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6884
6885 fi
6886
6887
6888 for ac_header in \
6889   dlfcn.h \
6890   unistd.h \
6891   crypt.h \
6892   errno.h \
6893   resource.h \
6894   sys/resource.h \
6895   getopt.h \
6896   malloc.h \
6897   utmp.h \
6898   utmpx.h \
6899   signal.h \
6900   sys/select.h \
6901   syslog.h \
6902   inttypes.h \
6903   stdint.h \
6904   stdio.h \
6905   netdb.h \
6906   semaphore.h \
6907   arpa/inet.h \
6908   netinet/in.h \
6909   sys/types.h \
6910   sys/socket.h \
6911   winsock.h \
6912   utime.h \
6913   sys/time.h \
6914   sys/wait.h \
6915   sys/security.h \
6916   fcntl.h \
6917   sys/fcntl.h \
6918   sys/prctl.h \
6919   sys/un.h \
6920   glob.h \
6921   prot.h \
6922   pwd.h \
6923   grp.h \
6924   stddef.h \
6925   fnmatch.h \
6926   sia.h \
6927   siad.h
6928
6929 do :
6930   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6931 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6932 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6933   cat >>confdefs.h <<_ACEOF
6934 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6935 _ACEOF
6936
6937 fi
6938
6939 done
6940
6941
6942 for ac_header in net/if.h
6943 do :
6944   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
6945   #ifdef HAVE_SYS_SOCKET_H
6946   #  include <sys/socket.h>
6947   #endif
6948
6949 "
6950 if test "x$ac_cv_header_net_if_h" = xyes; then :
6951   cat >>confdefs.h <<_ACEOF
6952 #define HAVE_NET_IF_H 1
6953 _ACEOF
6954
6955 fi
6956
6957 done
6958
6959
6960 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
6961 then
6962
6963 $as_echo "#define OSFC2 /**/" >>confdefs.h
6964
6965 fi
6966
6967 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
6968 then
6969
6970 $as_echo "#define OSFSIA /**/" >>confdefs.h
6971
6972 fi
6973
6974 if test "x$WITH_OPENSSL" = xyes; then
6975   old_LIBS=$LIBS
6976   old_LDFLAGS="$LDFLAGS"
6977
6978   OPENSSL_INCLUDE="-DNO_OPENSSL"
6979   OPENSSL_LIBS=
6980   if test "x$OPENSSL_LIB_DIR" != "x"; then
6981     LDFLAGS="-L$OPENSSL_LIB_DIR $LDFLAGS"
6982   fi
6983
6984         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
6985 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
6986 if ${ac_cv_lib_crypto_DH_new+:} false; then :
6987   $as_echo_n "(cached) " >&6
6988 else
6989   ac_check_lib_save_LIBS=$LIBS
6990 LIBS="-lcrypto  $LIBS"
6991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992 /* end confdefs.h.  */
6993
6994 /* Override any GCC internal prototype to avoid an error.
6995    Use char because int might match the return type of a GCC
6996    builtin and then its argument prototype would still apply.  */
6997 #ifdef __cplusplus
6998 extern "C"
6999 #endif
7000 char DH_new ();
7001 int
7002 main ()
7003 {
7004 return DH_new ();
7005   ;
7006   return 0;
7007 }
7008 _ACEOF
7009 if ac_fn_c_try_link "$LINENO"; then :
7010   ac_cv_lib_crypto_DH_new=yes
7011 else
7012   ac_cv_lib_crypto_DH_new=no
7013 fi
7014 rm -f core conftest.err conftest.$ac_objext \
7015     conftest$ac_exeext conftest.$ac_ext
7016 LIBS=$ac_check_lib_save_LIBS
7017 fi
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
7019 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
7020 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
7021
7022       LIBS="-lcrypto $LIBS"
7023
7024 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
7025
7026       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
7027 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
7028 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
7029   $as_echo_n "(cached) " >&6
7030 else
7031   ac_check_lib_save_LIBS=$LIBS
7032 LIBS="-lssl  $LIBS"
7033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034 /* end confdefs.h.  */
7035
7036 /* Override any GCC internal prototype to avoid an error.
7037    Use char because int might match the return type of a GCC
7038    builtin and then its argument prototype would still apply.  */
7039 #ifdef __cplusplus
7040 extern "C"
7041 #endif
7042 char SSL_new ();
7043 int
7044 main ()
7045 {
7046 return SSL_new ();
7047   ;
7048   return 0;
7049 }
7050 _ACEOF
7051 if ac_fn_c_try_link "$LINENO"; then :
7052   ac_cv_lib_ssl_SSL_new=yes
7053 else
7054   ac_cv_lib_ssl_SSL_new=no
7055 fi
7056 rm -f core conftest.err conftest.$ac_objext \
7057     conftest$ac_exeext conftest.$ac_ext
7058 LIBS=$ac_check_lib_save_LIBS
7059 fi
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
7061 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
7062 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
7063
7064
7065 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
7066
7067           if test "x$OPENSSL_LIB_DIR" != "x"; then
7068             OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
7069           fi
7070           OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
7071
7072 else
7073
7074           { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7076 as_fn_error $? "failed linking to libssl
7077 See \`config.log' for more details" "$LINENO" 5; }
7078
7079
7080 fi
7081
7082
7083 fi
7084
7085
7086         old_CPPFLAGS=$CPPFLAGS
7087   old_CFLAGS=$CFLAGS
7088   if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
7089     CPPFLAGS="-isystem $OPENSSL_INCLUDE_DIR $CPPFLAGS"
7090     CFLAGS="-isystem $OPENSSL_INCLUDE_DIR $CFLAGS"
7091   fi
7092
7093         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
7094   for ac_header in \
7095     openssl/ssl.h \
7096     openssl/crypto.h \
7097     openssl/err.h \
7098     openssl/evp.h \
7099     openssl/md5.h \
7100     openssl/md4.h \
7101     openssl/sha.h \
7102     openssl/ocsp.h \
7103     openssl/engine.h
7104 do :
7105   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7106 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7107 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7108   cat >>confdefs.h <<_ACEOF
7109 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7110 _ACEOF
7111
7112 else
7113
7114       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7116 as_fn_error $? "failed locating OpenSSL headers
7117 See \`config.log' for more details" "$LINENO" 5; }
7118
7119
7120 fi
7121
7122 done
7123
7124
7125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
7126 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
7127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128 /* end confdefs.h.  */
7129 #include <openssl/crypto.h>
7130      #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
7131      yes
7132      #endif
7133
7134 _ACEOF
7135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7136   $EGREP "yes" >/dev/null 2>&1; then :
7137
7138       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7139 $as_echo "yes" >&6; }
7140
7141 else
7142
7143       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7144 $as_echo "no" >&6; }
7145       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7147 as_fn_error $? "OpenSSL version too old
7148 See \`config.log' for more details" "$LINENO" 5; }
7149
7150
7151 fi
7152 rm -f conftest*
7153
7154
7155   if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
7156     OPENSSL_INCLUDE="-isystem $OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
7157   else
7158     OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
7159   fi
7160
7161         { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library and header version consistency" >&5
7162 $as_echo_n "checking OpenSSL library and header version consistency... " >&6; }
7163   if test "$cross_compiling" = yes; then :
7164   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7166 as_fn_error $? "cannot run test program while cross compiling
7167 See \`config.log' for more details" "$LINENO" 5; }
7168 else
7169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7170 /* end confdefs.h.  */
7171
7172         #include <stdio.h>
7173         #include <openssl/opensslv.h>
7174         #include <openssl/crypto.h>
7175
7176 int
7177 main ()
7178 {
7179
7180         if (SSLeay() == OPENSSL_VERSION_NUMBER) {
7181           return 0;
7182         } else {
7183           printf("library: %lx header: %lx... ", (unsigned long) SSLeay(), (unsigned long) OPENSSL_VERSION_NUMBER);
7184           return 1;
7185         }
7186
7187
7188   ;
7189   return 0;
7190 }
7191 _ACEOF
7192 if ac_fn_c_try_run "$LINENO"; then :
7193
7194       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7195 $as_echo "yes" >&6; }
7196
7197 else
7198
7199       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7200 $as_echo "no" >&6; }
7201       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7203 as_fn_error $? "OpenSSL library version does not match header version
7204 See \`config.log' for more details" "$LINENO" 5; }
7205
7206
7207 fi
7208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7209   conftest.$ac_objext conftest.beam conftest.$ac_ext
7210 fi
7211
7212
7213   if test "x$OPENSSL_LIBS" = x; then
7214     LIBS=$old_LIBS
7215     LDFLAGS="$old_LDFLAGS"
7216   fi
7217   if test "x$OPENSSL_INCLUDE" = x; then
7218     CPPFLAGS=$old_CPPFLAGS
7219     CFLAGS=$old_CFLAGS
7220   fi
7221 fi
7222
7223
7224
7225 export OPENSSL_LIBS
7226
7227 if test "x$PCAP_LIBS" = x; then
7228   { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
7229 $as_echo "$as_me: skipping test for pcap.h." >&6;}
7230 else
7231   smart_try_dir="$pcap_include_dir"
7232
7233
7234 ac_safe=`echo "pcap.h" | sed 'y%./+-%__pm%'`
7235 old_CFLAGS="$CFLAGS"
7236 smart_include=
7237 smart_include_dir=
7238
7239 if test "x$smart_try_dir" != "x"; then
7240   for try in $smart_try_dir; do
7241     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h in $try" >&5
7242 $as_echo_n "checking for pcap.h in $try... " >&6; }
7243     CFLAGS="$old_CFLAGS -isystem $try"
7244     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7245 /* end confdefs.h.  */
7246
7247                     #include <pcap.h>
7248 int
7249 main ()
7250 {
7251 int a = 1;
7252   ;
7253   return 0;
7254 }
7255 _ACEOF
7256 if ac_fn_c_try_compile "$LINENO"; then :
7257
7258                      smart_include="-isystem $try"
7259                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7260 $as_echo "yes" >&6; }
7261                      break
7262
7263 else
7264
7265                      smart_include=
7266                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7267 $as_echo "no" >&6; }
7268
7269 fi
7270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7271   done
7272   CFLAGS="$old_CFLAGS"
7273 fi
7274
7275 if test "x$smart_include" = "x"; then
7276   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h" >&5
7277 $as_echo_n "checking for pcap.h... " >&6; }
7278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7279 /* end confdefs.h.  */
7280
7281                   #include <pcap.h>
7282 int
7283 main ()
7284 {
7285 int a = 1;
7286   ;
7287   return 0;
7288 }
7289 _ACEOF
7290 if ac_fn_c_try_compile "$LINENO"; then :
7291
7292                    smart_include=" "
7293                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7294 $as_echo "yes" >&6; }
7295                    break
7296
7297 else
7298
7299                    smart_include=
7300                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301 $as_echo "no" >&6; }
7302
7303 fi
7304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7305 fi
7306
7307 if test "x$smart_include" = "x"; then
7308
7309
7310 if test "x$LOCATE" != "x"; then
7311         DIRS=
7312   file=pcap.h
7313
7314   for x in `${LOCATE} $file 2>/dev/null`; do
7315                                         base=`echo $x | sed "s%/${file}%%"`
7316     if test "x$x" = "x$base"; then
7317       continue;
7318     fi
7319
7320     dir=`${DIRNAME} $x 2>/dev/null`
7321                 exclude=`echo ${dir} | ${GREP} /home`
7322     if test "x$exclude" != "x"; then
7323       continue
7324     fi
7325
7326                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
7327     if test "x$already" = "x"; then
7328       DIRS="$DIRS $dir"
7329     fi
7330   done
7331 fi
7332
7333 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
7334
7335   for try in $smart_include_dir /usr/local/include /opt/include; do
7336     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h in $try" >&5
7337 $as_echo_n "checking for pcap.h in $try... " >&6; }
7338     CFLAGS="$old_CFLAGS -isystem $try"
7339     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7340 /* end confdefs.h.  */
7341
7342                     #include <pcap.h>
7343 int
7344 main ()
7345 {
7346 int a = 1;
7347   ;
7348   return 0;
7349 }
7350 _ACEOF
7351 if ac_fn_c_try_compile "$LINENO"; then :
7352
7353                      smart_include="-isystem $try"
7354                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7355 $as_echo "yes" >&6; }
7356                      break
7357
7358 else
7359
7360                      smart_include=
7361                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7362 $as_echo "no" >&6; }
7363
7364 fi
7365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7366   done
7367   CFLAGS="$old_CFLAGS"
7368 fi
7369
7370 if test "x$smart_include" != "x"; then
7371   eval "ac_cv_header_$ac_safe=yes"
7372   CFLAGS="$old_CFLAGS $smart_include"
7373   SMART_CFLAGS="$SMART_CFLAGS $smart_include"
7374 fi
7375
7376   if test "x$ac_cv_header_pcap_h" != "xyes"; then
7377     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap headers not found. Use --with-pcap-include-dir=<path>." >&5
7378 $as_echo "$as_me: WARNING: pcap headers not found. Use --with-pcap-include-dir=<path>." >&2;}
7379     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer, and ARP listener." >&5
7380 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer, and ARP listener." >&2;}
7381   else
7382
7383 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
7384
7385
7386     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
7387 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
7388 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
7389   $as_echo_n "(cached) " >&6
7390 else
7391   ac_check_lib_save_LIBS=$LIBS
7392 LIBS="-lpcap  $LIBS"
7393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394 /* end confdefs.h.  */
7395
7396 /* Override any GCC internal prototype to avoid an error.
7397    Use char because int might match the return type of a GCC
7398    builtin and then its argument prototype would still apply.  */
7399 #ifdef __cplusplus
7400 extern "C"
7401 #endif
7402 char pcap_fopen_offline ();
7403 int
7404 main ()
7405 {
7406 return pcap_fopen_offline ();
7407   ;
7408   return 0;
7409 }
7410 _ACEOF
7411 if ac_fn_c_try_link "$LINENO"; then :
7412   ac_cv_lib_pcap_pcap_fopen_offline=yes
7413 else
7414   ac_cv_lib_pcap_pcap_fopen_offline=no
7415 fi
7416 rm -f core conftest.err conftest.$ac_objext \
7417     conftest$ac_exeext conftest.$ac_ext
7418 LIBS=$ac_check_lib_save_LIBS
7419 fi
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
7421 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
7422 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
7423
7424
7425 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
7426
7427
7428
7429 fi
7430
7431
7432     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
7433 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
7434 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
7435   $as_echo_n "(cached) " >&6
7436 else
7437   ac_check_lib_save_LIBS=$LIBS
7438 LIBS="-lpcap  $LIBS"
7439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7440 /* end confdefs.h.  */
7441
7442 /* Override any GCC internal prototype to avoid an error.
7443    Use char because int might match the return type of a GCC
7444    builtin and then its argument prototype would still apply.  */
7445 #ifdef __cplusplus
7446 extern "C"
7447 #endif
7448 char pcap_dump_fopen ();
7449 int
7450 main ()
7451 {
7452 return pcap_dump_fopen ();
7453   ;
7454   return 0;
7455 }
7456 _ACEOF
7457 if ac_fn_c_try_link "$LINENO"; then :
7458   ac_cv_lib_pcap_pcap_dump_fopen=yes
7459 else
7460   ac_cv_lib_pcap_pcap_dump_fopen=no
7461 fi
7462 rm -f core conftest.err conftest.$ac_objext \
7463     conftest$ac_exeext conftest.$ac_ext
7464 LIBS=$ac_check_lib_save_LIBS
7465 fi
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
7467 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
7468 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
7469
7470
7471 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
7472
7473
7474
7475 fi
7476
7477   fi
7478 fi
7479
7480
7481
7482 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7483 if test "x$ac_cv_type_off_t" = xyes; then :
7484
7485 else
7486
7487 cat >>confdefs.h <<_ACEOF
7488 #define off_t long int
7489 _ACEOF
7490
7491 fi
7492
7493 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7494 if test "x$ac_cv_type_pid_t" = xyes; then :
7495
7496 else
7497
7498 cat >>confdefs.h <<_ACEOF
7499 #define pid_t int
7500 _ACEOF
7501
7502 fi
7503
7504 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7505 if test "x$ac_cv_type_size_t" = xyes; then :
7506
7507 else
7508
7509 cat >>confdefs.h <<_ACEOF
7510 #define size_t unsigned int
7511 _ACEOF
7512
7513 fi
7514
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7516 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7517 if ${ac_cv_type_uid_t+:} false; then :
7518   $as_echo_n "(cached) " >&6
7519 else
7520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7521 /* end confdefs.h.  */
7522 #include <sys/types.h>
7523
7524 _ACEOF
7525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7526   $EGREP "uid_t" >/dev/null 2>&1; then :
7527   ac_cv_type_uid_t=yes
7528 else
7529   ac_cv_type_uid_t=no
7530 fi
7531 rm -f conftest*
7532
7533 fi
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7535 $as_echo "$ac_cv_type_uid_t" >&6; }
7536 if test $ac_cv_type_uid_t = no; then
7537
7538 $as_echo "#define uid_t int" >>confdefs.h
7539
7540
7541 $as_echo "#define gid_t int" >>confdefs.h
7542
7543 fi
7544
7545
7546
7547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
7548 $as_echo_n "checking for socklen_t... " >&6; }
7549 if ${ac_cv_type_socklen_t+:} false; then :
7550   $as_echo_n "(cached) " >&6
7551 else
7552    ac_cv_type_socklen_t=no
7553       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h.  */
7555 #ifdef HAVE_SYS_TYPES_H
7556     #  include <sys/types.h>
7557     #endif
7558
7559     #ifdef HAVE_SYS_SOCKET_H
7560     #  include <sys/socket.h>
7561     #endif
7562
7563 int
7564 main ()
7565 {
7566 socklen_t foo
7567   ;
7568   return 0;
7569 }
7570 _ACEOF
7571 if ac_fn_c_try_compile "$LINENO"; then :
7572   ac_cv_type_socklen_t=yes
7573 fi
7574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7575
7576
7577 fi
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
7579 $as_echo "$ac_cv_type_socklen_t" >&6; }
7580
7581   if test "$ac_cv_type_socklen_t" != "yes"; then
7582
7583 $as_echo "#define socklen_t int" >>confdefs.h
7584
7585   fi
7586
7587
7588
7589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
7590 $as_echo_n "checking for uint8_t... " >&6; }
7591 if ${ac_cv_type_uint8_t+:} false; then :
7592   $as_echo_n "(cached) " >&6
7593 else
7594    ac_cv_type_uint8_t=no
7595       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596 /* end confdefs.h.  */
7597 #ifdef HAVE_INTTYPES_H
7598     #  include <inttypes.h>
7599     #endif
7600
7601     #ifdef HAVE_STDINT_H
7602     #  include <stdint.h>
7603     #endif
7604
7605 int
7606 main ()
7607 {
7608 uint8_t foo
7609   ;
7610   return 0;
7611 }
7612 _ACEOF
7613 if ac_fn_c_try_compile "$LINENO"; then :
7614   ac_cv_type_uint8_t=yes
7615 fi
7616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7617
7618
7619 fi
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
7621 $as_echo "$ac_cv_type_uint8_t" >&6; }
7622
7623   if test "$ac_cv_type_uint8_t" != "yes"; then
7624
7625 $as_echo "#define uint8_t unsigned char" >>confdefs.h
7626
7627   fi
7628
7629
7630
7631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
7632 $as_echo_n "checking for uint16_t... " >&6; }
7633 if ${ac_cv_type_uint16_t+:} false; then :
7634   $as_echo_n "(cached) " >&6
7635 else
7636    ac_cv_type_uint16_t=no
7637       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638 /* end confdefs.h.  */
7639 #ifdef HAVE_INTTYPES_H
7640     #  include <inttypes.h>
7641     #endif
7642
7643     #ifdef HAVE_STDINT_H
7644     #  include <stdint.h>
7645     #endif
7646
7647 int
7648 main ()
7649 {
7650 uint16_t foo
7651   ;
7652   return 0;
7653 }
7654 _ACEOF
7655 if ac_fn_c_try_compile "$LINENO"; then :
7656   ac_cv_type_uint16_t=yes
7657 fi
7658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7659
7660
7661 fi
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
7663 $as_echo "$ac_cv_type_uint16_t" >&6; }
7664
7665   if test "$ac_cv_type_uint16_t" != "yes"; then
7666
7667 $as_echo "#define uint16_t unsigned short" >>confdefs.h
7668
7669   fi
7670
7671
7672
7673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
7674 $as_echo_n "checking for uint32_t... " >&6; }
7675 if ${ac_cv_type_uint32_t+:} false; then :
7676   $as_echo_n "(cached) " >&6
7677 else
7678    ac_cv_type_uint32_t=no
7679       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680 /* end confdefs.h.  */
7681 #ifdef HAVE_INTTYPES_H
7682     #  include <inttypes.h>
7683     #endif
7684
7685     #ifdef HAVE_STDINT_H
7686     #  include <stdint.h>
7687     #endif
7688
7689 int
7690 main ()
7691 {
7692 uint32_t foo
7693   ;
7694   return 0;
7695 }
7696 _ACEOF
7697 if ac_fn_c_try_compile "$LINENO"; then :
7698   ac_cv_type_uint32_t=yes
7699 fi
7700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7701
7702
7703 fi
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
7705 $as_echo "$ac_cv_type_uint32_t" >&6; }
7706
7707   if test "$ac_cv_type_uint32_t" != "yes"; then
7708
7709 $as_echo "#define uint32_t unsigned int" >>confdefs.h
7710
7711   fi
7712
7713
7714 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
7715     #ifdef HAVE_NETINET_IN_H
7716     #  include <netinet/in.h>
7717     #endif
7718
7719
7720 "
7721 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
7722
7723 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
7724
7725 fi
7726
7727
7728 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
7729     #ifdef HAVE_NETINET_IN_H
7730     #  include <netinet/in.h>
7731     #endif
7732
7733     #ifdef HAVE_SYS_SOCKET_H
7734     #  include <sys/socket.h>
7735     #endif
7736
7737 "
7738 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
7739
7740 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
7741
7742 fi
7743
7744
7745 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
7746     #ifdef HAVE_NETINET_IN_H
7747     #  include <netinet/in.h>
7748     #endif
7749
7750 "
7751 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
7752
7753 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
7754
7755 fi
7756
7757
7758 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
7759     #ifdef HAVE_SYS_TYPES_H
7760     #  include <sys/types.h>
7761     #endif
7762
7763     #ifdef HAVE_SYS_SOCKET_H
7764     #  include <sys/socket.h>
7765     #endif
7766
7767     #ifdef HAVE_NETDB_H
7768     #  include <netdb.h>
7769     #endif
7770
7771
7772 "
7773 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
7774
7775 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
7776
7777 fi
7778
7779
7780 for ac_func in \
7781   getopt_long \
7782   fcntl \
7783   strsignal \
7784   sigaction \
7785   sigprocmask \
7786   pthread_sigmask \
7787   snprintf \
7788   vsnprintf \
7789   setsid \
7790   strncasecmp \
7791   strcasecmp \
7792   localtime_r \
7793   ctime_r \
7794   gmtime_r \
7795   strsep \
7796   inet_aton \
7797   inet_pton \
7798   inet_ntop \
7799   setlinebuf \
7800   setvbuf \
7801   getusershell \
7802   initgroups \
7803   getaddrinfo \
7804   getnameinfo \
7805   closefrom \
7806   gettimeofday \
7807   getpeereid \
7808   setuid \
7809   setresuid \
7810   getresuid \
7811   strlcat \
7812   strlcpy
7813
7814 do :
7815   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7816 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7817 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7818   cat >>confdefs.h <<_ACEOF
7819 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7820 _ACEOF
7821
7822 fi
7823 done
7824
7825
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7827 $as_echo_n "checking return type of signal handlers... " >&6; }
7828 if ${ac_cv_type_signal+:} false; then :
7829   $as_echo_n "(cached) " >&6
7830 else
7831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832 /* end confdefs.h.  */
7833 #include <sys/types.h>
7834 #include <signal.h>
7835
7836 int
7837 main ()
7838 {
7839 return *(signal (0, 0)) (0) == 1;
7840   ;
7841   return 0;
7842 }
7843 _ACEOF
7844 if ac_fn_c_try_compile "$LINENO"; then :
7845   ac_cv_type_signal=int
7846 else
7847   ac_cv_type_signal=void
7848 fi
7849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7850 fi
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7852 $as_echo "$ac_cv_type_signal" >&6; }
7853
7854 cat >>confdefs.h <<_ACEOF
7855 #define RETSIGTYPE $ac_cv_type_signal
7856 _ACEOF
7857
7858
7859
7860 if test "x$ac_cv_header_utmpx_h" = "xyes"; then
7861
7862   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
7863 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
7864
7865
7866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h.  */
7868
7869 #include <utmpx.h>
7870 #ifdef HAVE_STDDEF_H
7871 #include <stddef.h>
7872 #endif
7873 #ifndef offsetof
7874 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7875 #endif
7876
7877 int
7878 main ()
7879 {
7880  int foo = offsetof(struct utmpx, ut_xtime)
7881   ;
7882   return 0;
7883 }
7884 _ACEOF
7885 if ac_fn_c_try_compile "$LINENO"; then :
7886   has_element=" "
7887 else
7888   has_element=
7889 fi
7890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7891
7892   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
7893   if test "x$has_element" != "x"; then
7894     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7895 $as_echo "yes" >&6; }
7896     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
7897   else
7898     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899 $as_echo "no" >&6; }
7900     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
7901  fi
7902
7903  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"; then
7904
7905 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
7906
7907  fi
7908 fi
7909
7910
7911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
7912 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
7913
7914
7915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916 /* end confdefs.h.  */
7917
7918 #include <netinet/in.h>
7919 #ifdef HAVE_STDDEF_H
7920 #include <stddef.h>
7921 #endif
7922 #ifndef offsetof
7923 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7924 #endif
7925
7926 int
7927 main ()
7928 {
7929  int foo = offsetof(struct in_pktinfo, ipi_addr)
7930   ;
7931   return 0;
7932 }
7933 _ACEOF
7934 if ac_fn_c_try_compile "$LINENO"; then :
7935   has_element=" "
7936 else
7937   has_element=
7938 fi
7939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7940
7941   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
7942   if test "x$has_element" != "x"; then
7943     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7944 $as_echo "yes" >&6; }
7945     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
7946   else
7947     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7948 $as_echo "no" >&6; }
7949     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
7950  fi
7951
7952 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"; then
7953
7954 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
7955
7956 fi
7957
7958
7959   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
7960 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
7961
7962
7963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964 /* end confdefs.h.  */
7965
7966 #include <netinet/in.h>
7967 #ifdef HAVE_STDDEF_H
7968 #include <stddef.h>
7969 #endif
7970 #ifndef offsetof
7971 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7972 #endif
7973
7974 int
7975 main ()
7976 {
7977  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
7978   ;
7979   return 0;
7980 }
7981 _ACEOF
7982 if ac_fn_c_try_compile "$LINENO"; then :
7983   has_element=" "
7984 else
7985   has_element=
7986 fi
7987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7988
7989   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
7990   if test "x$has_element" != "x"; then
7991     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7992 $as_echo "yes" >&6; }
7993     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
7994   else
7995     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996 $as_echo "no" >&6; }
7997     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
7998  fi
7999
8000 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"; then
8001
8002 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
8003
8004 fi
8005
8006
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8008 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8009 if ${ac_cv_c_const+:} false; then :
8010   $as_echo_n "(cached) " >&6
8011 else
8012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8013 /* end confdefs.h.  */
8014
8015 int
8016 main ()
8017 {
8018
8019 #ifndef __cplusplus
8020   /* Ultrix mips cc rejects this sort of thing.  */
8021   typedef int charset[2];
8022   const charset cs = { 0, 0 };
8023   /* SunOS 4.1.1 cc rejects this.  */
8024   char const *const *pcpcc;
8025   char **ppc;
8026   /* NEC SVR4.0.2 mips cc rejects this.  */
8027   struct point {int x, y;};
8028   static struct point const zero = {0,0};
8029   /* AIX XL C 1.02.0.0 rejects this.
8030      It does not let you subtract one const X* pointer from another in
8031      an arm of an if-expression whose if-part is not a constant
8032      expression */
8033   const char *g = "string";
8034   pcpcc = &g + (g ? g-g : 0);
8035   /* HPUX 7.0 cc rejects these. */
8036   ++pcpcc;
8037   ppc = (char**) pcpcc;
8038   pcpcc = (char const *const *) ppc;
8039   { /* SCO 3.2v4 cc rejects this sort of thing.  */
8040     char tx;
8041     char *t = &tx;
8042     char const *s = 0 ? (char *) 0 : (char const *) 0;
8043
8044     *t++ = 0;
8045     if (s) return 0;
8046   }
8047   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8048     int x[] = {25, 17};
8049     const int *foo = &x[0];
8050     ++foo;
8051   }
8052   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8053     typedef const int *iptr;
8054     iptr p = 0;
8055     ++p;
8056   }
8057   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
8058        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8059     struct s { int j; const int *ap[3]; } bx;
8060     struct s *b = &bx; b->j = 5;
8061   }
8062   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8063     const int foo = 10;
8064     if (!foo) return 0;
8065   }
8066   return !cs[0] && !zero.x;
8067 #endif
8068
8069   ;
8070   return 0;
8071 }
8072 _ACEOF
8073 if ac_fn_c_try_compile "$LINENO"; then :
8074   ac_cv_c_const=yes
8075 else
8076   ac_cv_c_const=no
8077 fi
8078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8079 fi
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8081 $as_echo "$ac_cv_c_const" >&6; }
8082 if test $ac_cv_c_const = no; then
8083
8084 $as_echo "#define const /**/" >>confdefs.h
8085
8086 fi
8087
8088
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
8090 $as_echo_n "checking type of OS... " >&6; }
8091 OS=`uname -s`
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
8093 $as_echo "$OS" >&6; }
8094 if test "$OS" = "OS/2"; then
8095   LIBPREFIX=
8096 else
8097   LIBPREFIX=lib
8098 fi
8099
8100
8101 if test "x$developer" = "xyes"; then
8102   { $as_echo "$as_me:${as_lineno-$LINENO}: Setting additional developer CFLAGS" >&5
8103 $as_echo "$as_me: Setting additional developer CFLAGS" >&6;}
8104
8105
8106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Wdocumentation\"" >&5
8107 $as_echo_n "checking for the compiler flag \"-Wdocumentation\"... " >&6; }
8108 if ${ax_cv_cc_wdocumentation_flag+:} false; then :
8109   $as_echo_n "(cached) " >&6
8110 else
8111
8112
8113     CFLAGS_SAVED=$CFLAGS
8114     CFLAGS="$CFLAGS -Werror -Wdocumentation"
8115
8116     ac_ext=c
8117 ac_cpp='$CPP $CPPFLAGS'
8118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8121
8122     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123 /* end confdefs.h.  */
8124
8125 int
8126 main ()
8127 {
8128 return 0;
8129   ;
8130   return 0;
8131 }
8132 _ACEOF
8133 if ac_fn_c_try_compile "$LINENO"; then :
8134   ax_cv_cc_wdocumentation_flag="yes"
8135 else
8136   ax_cv_cc_wdocumentation_flag="no"
8137 fi
8138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8139     ac_ext=c
8140 ac_cpp='$CPP $CPPFLAGS'
8141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8144
8145
8146     CFLAGS="$CFLAGS_SAVED"
8147
8148 fi
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_wdocumentation_flag" >&5
8150 $as_echo "$ax_cv_cc_wdocumentation_flag" >&6; }
8151
8152   if test "x$ax_cv_cc_wdocumentation_flag" = "xyes"; then
8153     devflags="-Wdocumentation"
8154   fi
8155
8156   if test "x$GCC" = "xyes"; then
8157     devflags="$devflags -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -Wformat-y2k -Wno-format-extra-args -Wno-format-zero-length -Wno-cast-align -Wformat-nonliteral -Wformat-security -Wformat=2 -DWITH_VERIFY_PTR=1"
8158     INSTALLSTRIP=""
8159   fi
8160
8161   { $as_echo "$as_me:${as_lineno-$LINENO}: Developer CFLAGS are \"$devflags\"" >&5
8162 $as_echo "$as_me: Developer CFLAGS are \"$devflags\"" >&6;}
8163
8164   CFLAGS="$CFLAGS $devflags"
8165         if test "x$EXPERIMENTAL" != "xno"; then
8166     { $as_echo "$as_me:${as_lineno-$LINENO}: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&5
8167 $as_echo "$as_me: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&6;}
8168     EXPERIMENTAL=yes
8169   fi
8170 else
8171   devflags=""
8172   CFLAGS="$CFLAGS -DNDEBUG"
8173   INSTALLSTRIP=""
8174 fi
8175
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building with -DNDEBUG" >&5
8177 $as_echo_n "checking if building with -DNDEBUG... " >&6; }
8178 if echo "$CFLAGS" | grep '\-DNDEBUG' > /dev/null; then
8179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8180 $as_echo "yes" >&6; }
8181
8182 $as_echo "#define WITH_NDEBUG 1" >>confdefs.h
8183
8184 else
8185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8186 $as_echo "no" >&6; }
8187 fi
8188
8189 export EXPERIMENTAL
8190
8191 if test -d $srcdir/.git -a "x$GIT" = "xyes"; then
8192   RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
8193
8194 cat >>confdefs.h <<_ACEOF
8195 #define RADIUSD_VERSION_COMMIT "${RADIUSD_VERSION_COMMIT}"
8196 _ACEOF
8197
8198 fi
8199
8200
8201   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread support in compiler" >&5
8202 $as_echo_n "checking for __thread support in compiler... " >&6; }
8203   if test "$cross_compiling" = yes; then :
8204   have_tls=no
8205 else
8206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207 /* end confdefs.h.  */
8208
8209         static __thread int val;
8210         int main(int argc, char **argv) {
8211           val = 0;
8212           return val;
8213         }
8214
8215
8216 _ACEOF
8217 if ac_fn_c_try_run "$LINENO"; then :
8218   have_tls=yes
8219 else
8220   have_tls=no
8221 fi
8222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8223   conftest.$ac_objext conftest.beam conftest.$ac_ext
8224 fi
8225
8226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
8227 $as_echo "$have_tls" >&6; }
8228   if test "x$have_tls" = "xyes"; then
8229
8230 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
8231
8232   fi
8233
8234
8235
8236 talloc_include_dir=
8237
8238 # Check whether --with-talloc-include-dir was given.
8239 if test "${with_talloc_include_dir+set}" = set; then :
8240   withval=$with_talloc_include_dir; case "$withval" in
8241     no)
8242       as_fn_error $? "Need talloc-include-dir" "$LINENO" 5
8243       ;;
8244     yes)
8245       ;;
8246     *)
8247       talloc_include_dir="$withval"
8248       ;;
8249   esac
8250 fi
8251
8252
8253 talloc_lib_dir=
8254
8255 # Check whether --with-talloc-lib-dir was given.
8256 if test "${with_talloc_lib_dir+set}" = set; then :
8257   withval=$with_talloc_lib_dir; case "$withval" in
8258     no)
8259       as_fn_error $? "Need talloc-lib-dir" "$LINENO" 5
8260       ;;
8261     yes)
8262       ;;
8263     *)
8264       talloc_lib_dir="$withval"
8265       ;;
8266   esac
8267 fi
8268
8269
8270 pcap_include_dir=
8271
8272 # Check whether --with-pcap-include-dir was given.
8273 if test "${with_pcap_include_dir+set}" = set; then :
8274   withval=$with_pcap_include_dir; case "$withval" in
8275     no)
8276       as_fn_error $? "Need pcap-include-dir" "$LINENO" 5
8277       ;;
8278     yes)
8279       ;;
8280     *)
8281       pcap_include_dir="$withval"
8282       ;;
8283   esac
8284 fi
8285
8286
8287 pcap_lib_dir=
8288
8289 # Check whether --with-pcap-lib-dir was given.
8290 if test "${with_pcap_lib_dir+set}" = set; then :
8291   withval=$with_pcap_lib_dir; case "$withval" in
8292     no)
8293       as_fn_error $? "Need pcap-lib-dir" "$LINENO" 5
8294       ;;
8295     yes)
8296       ;;
8297     *)
8298       pcap_lib_dir="$withval"
8299       ;;
8300   esac
8301 fi
8302
8303
8304 smart_try_dir="$talloc_include_dir"
8305
8306
8307 ac_safe=`echo "talloc.h" | sed 'y%./+-%__pm%'`
8308 old_CFLAGS="$CFLAGS"
8309 smart_include=
8310 smart_include_dir=
8311
8312 if test "x$smart_try_dir" != "x"; then
8313   for try in $smart_try_dir; do
8314     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
8315 $as_echo_n "checking for talloc.h in $try... " >&6; }
8316     CFLAGS="$old_CFLAGS -isystem $try"
8317     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8318 /* end confdefs.h.  */
8319
8320                     #include <talloc.h>
8321 int
8322 main ()
8323 {
8324 int a = 1;
8325   ;
8326   return 0;
8327 }
8328 _ACEOF
8329 if ac_fn_c_try_compile "$LINENO"; then :
8330
8331                      smart_include="-isystem $try"
8332                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8333 $as_echo "yes" >&6; }
8334                      break
8335
8336 else
8337
8338                      smart_include=
8339                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8340 $as_echo "no" >&6; }
8341
8342 fi
8343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8344   done
8345   CFLAGS="$old_CFLAGS"
8346 fi
8347
8348 if test "x$smart_include" = "x"; then
8349   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h" >&5
8350 $as_echo_n "checking for talloc.h... " >&6; }
8351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8352 /* end confdefs.h.  */
8353
8354                   #include <talloc.h>
8355 int
8356 main ()
8357 {
8358 int a = 1;
8359   ;
8360   return 0;
8361 }
8362 _ACEOF
8363 if ac_fn_c_try_compile "$LINENO"; then :
8364
8365                    smart_include=" "
8366                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8367 $as_echo "yes" >&6; }
8368                    break
8369
8370 else
8371
8372                    smart_include=
8373                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8374 $as_echo "no" >&6; }
8375
8376 fi
8377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8378 fi
8379
8380 if test "x$smart_include" = "x"; then
8381
8382
8383 if test "x$LOCATE" != "x"; then
8384         DIRS=
8385   file=talloc.h
8386
8387   for x in `${LOCATE} $file 2>/dev/null`; do
8388                                         base=`echo $x | sed "s%/${file}%%"`
8389     if test "x$x" = "x$base"; then
8390       continue;
8391     fi
8392
8393     dir=`${DIRNAME} $x 2>/dev/null`
8394                 exclude=`echo ${dir} | ${GREP} /home`
8395     if test "x$exclude" != "x"; then
8396       continue
8397     fi
8398
8399                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
8400     if test "x$already" = "x"; then
8401       DIRS="$DIRS $dir"
8402     fi
8403   done
8404 fi
8405
8406 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
8407
8408   for try in $smart_include_dir /usr/local/include /opt/include; do
8409     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
8410 $as_echo_n "checking for talloc.h in $try... " >&6; }
8411     CFLAGS="$old_CFLAGS -isystem $try"
8412     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8413 /* end confdefs.h.  */
8414
8415                     #include <talloc.h>
8416 int
8417 main ()
8418 {
8419 int a = 1;
8420   ;
8421   return 0;
8422 }
8423 _ACEOF
8424 if ac_fn_c_try_compile "$LINENO"; then :
8425
8426                      smart_include="-isystem $try"
8427                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8428 $as_echo "yes" >&6; }
8429                      break
8430
8431 else
8432
8433                      smart_include=
8434                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435 $as_echo "no" >&6; }
8436
8437 fi
8438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8439   done
8440   CFLAGS="$old_CFLAGS"
8441 fi
8442
8443 if test "x$smart_include" != "x"; then
8444   eval "ac_cv_header_$ac_safe=yes"
8445   CFLAGS="$old_CFLAGS $smart_include"
8446   SMART_CFLAGS="$SMART_CFLAGS $smart_include"
8447 fi
8448
8449 if test "x$ac_cv_header_talloc_h" != "xyes"; then
8450   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&5
8451 $as_echo "$as_me: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&2;}
8452   as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
8453 fi
8454
8455 smart_try_dir="$talloc_lib_dir"
8456
8457
8458 sm_lib_safe=`echo "talloc" | sed 'y%./+-%__p_%'`
8459 sm_func_safe=`echo "_talloc" | sed 'y%./+-%__p_%'`
8460
8461 old_LIBS="$LIBS"
8462 smart_lib=
8463 smart_lib_dir=
8464
8465 if test "x$smart_try_dir" != "x"; then
8466   for try in $smart_try_dir; do
8467     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc in $try" >&5
8468 $as_echo_n "checking for _talloc in -ltalloc in $try... " >&6; }
8469     LIBS="-L$try -ltalloc $old_LIBS -Wl,-rpath,$try"
8470     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8471 /* end confdefs.h.  */
8472 extern char _talloc();
8473 int
8474 main ()
8475 {
8476 _talloc()
8477   ;
8478   return 0;
8479 }
8480 _ACEOF
8481 if ac_fn_c_try_link "$LINENO"; then :
8482
8483                  smart_lib="-L$try -ltalloc -Wl,-rpath,$try"
8484                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8485 $as_echo "yes" >&6; }
8486                  break
8487
8488 else
8489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8490 $as_echo "no" >&6; }
8491 fi
8492 rm -f core conftest.err conftest.$ac_objext \
8493     conftest$ac_exeext conftest.$ac_ext
8494   done
8495   LIBS="$old_LIBS"
8496 fi
8497
8498 if test "x$smart_lib" = "x"; then
8499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc" >&5
8500 $as_echo_n "checking for _talloc in -ltalloc... " >&6; }
8501   LIBS="-ltalloc $old_LIBS"
8502   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8503 /* end confdefs.h.  */
8504 extern char _talloc();
8505 int
8506 main ()
8507 {
8508 _talloc()
8509   ;
8510   return 0;
8511 }
8512 _ACEOF
8513 if ac_fn_c_try_link "$LINENO"; then :
8514
8515                 smart_lib="-ltalloc"
8516                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8517 $as_echo "yes" >&6; }
8518
8519 else
8520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8521 $as_echo "no" >&6; }
8522 fi
8523 rm -f core conftest.err conftest.$ac_objext \
8524     conftest$ac_exeext conftest.$ac_ext
8525   LIBS="$old_LIBS"
8526 fi
8527
8528 if test "x$smart_lib" = "x"; then
8529
8530
8531 if test "x$LOCATE" != "x"; then
8532         DIRS=
8533   file=libtalloc${libltdl_cv_shlibext}
8534
8535   for x in `${LOCATE} $file 2>/dev/null`; do
8536                                         base=`echo $x | sed "s%/${file}%%"`
8537     if test "x$x" = "x$base"; then
8538       continue;
8539     fi
8540
8541     dir=`${DIRNAME} $x 2>/dev/null`
8542                 exclude=`echo ${dir} | ${GREP} /home`
8543     if test "x$exclude" != "x"; then
8544       continue
8545     fi
8546
8547                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8548     if test "x$already" = "x"; then
8549       DIRS="$DIRS $dir"
8550     fi
8551   done
8552 fi
8553
8554 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8555
8556
8557
8558 if test "x$LOCATE" != "x"; then
8559         DIRS=
8560   file=libtalloc.a
8561
8562   for x in `${LOCATE} $file 2>/dev/null`; do
8563                                         base=`echo $x | sed "s%/${file}%%"`
8564     if test "x$x" = "x$base"; then
8565       continue;
8566     fi
8567
8568     dir=`${DIRNAME} $x 2>/dev/null`
8569                 exclude=`echo ${dir} | ${GREP} /home`
8570     if test "x$exclude" != "x"; then
8571       continue
8572     fi
8573
8574                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8575     if test "x$already" = "x"; then
8576       DIRS="$DIRS $dir"
8577     fi
8578   done
8579 fi
8580
8581 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8582
8583
8584   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
8585     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc in $try" >&5
8586 $as_echo_n "checking for _talloc in -ltalloc in $try... " >&6; }
8587     LIBS="-L$try -ltalloc $old_LIBS -Wl,-rpath,$try"
8588     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8589 /* end confdefs.h.  */
8590 extern char _talloc();
8591 int
8592 main ()
8593 {
8594 _talloc()
8595   ;
8596   return 0;
8597 }
8598 _ACEOF
8599 if ac_fn_c_try_link "$LINENO"; then :
8600
8601                   smart_lib="-L$try -ltalloc -Wl,-rpath,$try"
8602                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8603 $as_echo "yes" >&6; }
8604                   break
8605
8606 else
8607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608 $as_echo "no" >&6; }
8609 fi
8610 rm -f core conftest.err conftest.$ac_objext \
8611     conftest$ac_exeext conftest.$ac_ext
8612   done
8613   LIBS="$old_LIBS"
8614 fi
8615
8616 if test "x$smart_lib" != "x"; then
8617   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
8618   LIBS="$smart_lib $old_LIBS"
8619   SMART_LIBS="$smart_lib $SMART_LIBS"
8620 fi
8621
8622 if test "x$ac_cv_lib_talloc__talloc" != "xyes"; then
8623   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc library not found. Use --with-talloc-lib-dir=<path>." >&5
8624 $as_echo "$as_me: WARNING: talloc library not found. Use --with-talloc-lib-dir=<path>." >&2;}
8625   as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
8626 fi
8627
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
8629 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
8630 if ${ac_cv_lib_crypt_crypt+:} false; then :
8631   $as_echo_n "(cached) " >&6
8632 else
8633   ac_check_lib_save_LIBS=$LIBS
8634 LIBS="-lcrypt  $LIBS"
8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h.  */
8637
8638 /* Override any GCC internal prototype to avoid an error.
8639    Use char because int might match the return type of a GCC
8640    builtin and then its argument prototype would still apply.  */
8641 #ifdef __cplusplus
8642 extern "C"
8643 #endif
8644 char crypt ();
8645 int
8646 main ()
8647 {
8648 return crypt ();
8649   ;
8650   return 0;
8651 }
8652 _ACEOF
8653 if ac_fn_c_try_link "$LINENO"; then :
8654   ac_cv_lib_crypt_crypt=yes
8655 else
8656   ac_cv_lib_crypt_crypt=no
8657 fi
8658 rm -f core conftest.err conftest.$ac_objext \
8659     conftest$ac_exeext conftest.$ac_ext
8660 LIBS=$ac_check_lib_save_LIBS
8661 fi
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
8663 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
8664 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
8665   CRYPTLIB="-lcrypt"
8666
8667 fi
8668
8669
8670 if test "$CRYPTLIB" != ""; then
8671
8672 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
8673
8674 else
8675   ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
8676 if test "x$ac_cv_func_crypt" = xyes; then :
8677
8678 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
8679
8680 fi
8681
8682 fi
8683
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
8685 $as_echo_n "checking for setkey in -lcipher... " >&6; }
8686 if ${ac_cv_lib_cipher_setkey+:} false; then :
8687   $as_echo_n "(cached) " >&6
8688 else
8689   ac_check_lib_save_LIBS=$LIBS
8690 LIBS="-lcipher  $LIBS"
8691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8692 /* end confdefs.h.  */
8693
8694 /* Override any GCC internal prototype to avoid an error.
8695    Use char because int might match the return type of a GCC
8696    builtin and then its argument prototype would still apply.  */
8697 #ifdef __cplusplus
8698 extern "C"
8699 #endif
8700 char setkey ();
8701 int
8702 main ()
8703 {
8704 return setkey ();
8705   ;
8706   return 0;
8707 }
8708 _ACEOF
8709 if ac_fn_c_try_link "$LINENO"; then :
8710   ac_cv_lib_cipher_setkey=yes
8711 else
8712   ac_cv_lib_cipher_setkey=no
8713 fi
8714 rm -f core conftest.err conftest.$ac_objext \
8715     conftest$ac_exeext conftest.$ac_ext
8716 LIBS=$ac_check_lib_save_LIBS
8717 fi
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
8719 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
8720 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
8721   CRYPTLIB="${CRYPTLIB} -lcipher"
8722
8723 fi
8724
8725
8726
8727
8728 pcre_lib_dir=
8729
8730 # Check whether --with-rlm-pcre-lib-dir was given.
8731 if test "${with_rlm_pcre_lib_dir+set}" = set; then :
8732   withval=$with_rlm_pcre_lib_dir;  case "$withval" in
8733     no)
8734         as_fn_error $? "Need rlm-pcre-lib-dir" "$LINENO" 5
8735         ;;
8736     yes)
8737         ;;
8738     *)
8739         pcre_lib_dir="$withval"
8740         ;;
8741   esac
8742
8743 fi
8744
8745
8746 pcre_include_dir=
8747
8748 # Check whether --with-rlm-pcre-include-dir was given.
8749 if test "${with_rlm_pcre_include_dir+set}" = set; then :
8750   withval=$with_rlm_pcre_include_dir;  case "$withval" in
8751     no)
8752         as_fn_error $? "Need rlm-pcre-include-dir" "$LINENO" 5
8753         ;;
8754     yes)
8755         ;;
8756     *)
8757         pcre_include_dir="$withval"
8758         ;;
8759   esac
8760
8761 fi
8762
8763
8764 REGEX=no
8765 REGEX_EXTENDED=no
8766 REGEX_PCRE=no
8767
8768 smart_try_dir=$pcre_include_dir
8769
8770
8771 ac_safe=`echo "pcreposix.h" | sed 'y%./+-%__pm%'`
8772 old_CFLAGS="$CFLAGS"
8773 smart_include=
8774 smart_include_dir=
8775
8776 if test "x$smart_try_dir" != "x"; then
8777   for try in $smart_try_dir; do
8778     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix.h in $try" >&5
8779 $as_echo_n "checking for pcreposix.h in $try... " >&6; }
8780     CFLAGS="$old_CFLAGS -isystem $try"
8781     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8782 /* end confdefs.h.  */
8783
8784                     #include <pcreposix.h>
8785 int
8786 main ()
8787 {
8788 int a = 1;
8789   ;
8790   return 0;
8791 }
8792 _ACEOF
8793 if ac_fn_c_try_compile "$LINENO"; then :
8794
8795                      smart_include="-isystem $try"
8796                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8797 $as_echo "yes" >&6; }
8798                      break
8799
8800 else
8801
8802                      smart_include=
8803                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8804 $as_echo "no" >&6; }
8805
8806 fi
8807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8808   done
8809   CFLAGS="$old_CFLAGS"
8810 fi
8811
8812 if test "x$smart_include" = "x"; then
8813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix.h" >&5
8814 $as_echo_n "checking for pcreposix.h... " >&6; }
8815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8816 /* end confdefs.h.  */
8817
8818                   #include <pcreposix.h>
8819 int
8820 main ()
8821 {
8822 int a = 1;
8823   ;
8824   return 0;
8825 }
8826 _ACEOF
8827 if ac_fn_c_try_compile "$LINENO"; then :
8828
8829                    smart_include=" "
8830                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8831 $as_echo "yes" >&6; }
8832                    break
8833
8834 else
8835
8836                    smart_include=
8837                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838 $as_echo "no" >&6; }
8839
8840 fi
8841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8842 fi
8843
8844 if test "x$smart_include" = "x"; then
8845
8846
8847 if test "x$LOCATE" != "x"; then
8848         DIRS=
8849   file=pcreposix.h
8850
8851   for x in `${LOCATE} $file 2>/dev/null`; do
8852                                         base=`echo $x | sed "s%/${file}%%"`
8853     if test "x$x" = "x$base"; then
8854       continue;
8855     fi
8856
8857     dir=`${DIRNAME} $x 2>/dev/null`
8858                 exclude=`echo ${dir} | ${GREP} /home`
8859     if test "x$exclude" != "x"; then
8860       continue
8861     fi
8862
8863                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
8864     if test "x$already" = "x"; then
8865       DIRS="$DIRS $dir"
8866     fi
8867   done
8868 fi
8869
8870 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
8871
8872   for try in $smart_include_dir /usr/local/include /opt/include; do
8873     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix.h in $try" >&5
8874 $as_echo_n "checking for pcreposix.h in $try... " >&6; }
8875     CFLAGS="$old_CFLAGS -isystem $try"
8876     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8877 /* end confdefs.h.  */
8878
8879                     #include <pcreposix.h>
8880 int
8881 main ()
8882 {
8883 int a = 1;
8884   ;
8885   return 0;
8886 }
8887 _ACEOF
8888 if ac_fn_c_try_compile "$LINENO"; then :
8889
8890                      smart_include="-isystem $try"
8891                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8892 $as_echo "yes" >&6; }
8893                      break
8894
8895 else
8896
8897                      smart_include=
8898                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8899 $as_echo "no" >&6; }
8900
8901 fi
8902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8903   done
8904   CFLAGS="$old_CFLAGS"
8905 fi
8906
8907 if test "x$smart_include" != "x"; then
8908   eval "ac_cv_header_$ac_safe=yes"
8909   CFLAGS="$old_CFLAGS $smart_include"
8910   SMART_CFLAGS="$SMART_CFLAGS $smart_include"
8911 fi
8912
8913 if test "x$ac_cv_header_pcreposix_h" = "xyes"; then
8914
8915 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
8916
8917
8918 $as_echo "#define HAVE_PCREPOSIX_H 1" >>confdefs.h
8919
8920   REGEX=yes
8921   REGEX_EXTENDED=yes
8922   REGEX_PCRE=yes
8923   LIBS="-lpcre -lpcreposix $LIBS"
8924
8925 else
8926   smart_try_dir=
8927
8928
8929 ac_safe=`echo "regex.h" | sed 'y%./+-%__pm%'`
8930 old_CFLAGS="$CFLAGS"
8931 smart_include=
8932 smart_include_dir=
8933
8934 if test "x$smart_try_dir" != "x"; then
8935   for try in $smart_try_dir; do
8936     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5
8937 $as_echo_n "checking for regex.h in $try... " >&6; }
8938     CFLAGS="$old_CFLAGS -isystem $try"
8939     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8940 /* end confdefs.h.  */
8941
8942                     #include <regex.h>
8943 int
8944 main ()
8945 {
8946 int a = 1;
8947   ;
8948   return 0;
8949 }
8950 _ACEOF
8951 if ac_fn_c_try_compile "$LINENO"; then :
8952
8953                      smart_include="-isystem $try"
8954                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8955 $as_echo "yes" >&6; }
8956                      break
8957
8958 else
8959
8960                      smart_include=
8961                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8962 $as_echo "no" >&6; }
8963
8964 fi
8965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8966   done
8967   CFLAGS="$old_CFLAGS"
8968 fi
8969
8970 if test "x$smart_include" = "x"; then
8971   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h" >&5
8972 $as_echo_n "checking for regex.h... " >&6; }
8973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8974 /* end confdefs.h.  */
8975
8976                   #include <regex.h>
8977 int
8978 main ()
8979 {
8980 int a = 1;
8981   ;
8982   return 0;
8983 }
8984 _ACEOF
8985 if ac_fn_c_try_compile "$LINENO"; then :
8986
8987                    smart_include=" "
8988                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8989 $as_echo "yes" >&6; }
8990                    break
8991
8992 else
8993
8994                    smart_include=
8995                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8996 $as_echo "no" >&6; }
8997
8998 fi
8999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9000 fi
9001
9002 if test "x$smart_include" = "x"; then
9003
9004
9005 if test "x$LOCATE" != "x"; then
9006         DIRS=
9007   file=regex.h
9008
9009   for x in `${LOCATE} $file 2>/dev/null`; do
9010                                         base=`echo $x | sed "s%/${file}%%"`
9011     if test "x$x" = "x$base"; then
9012       continue;
9013     fi
9014
9015     dir=`${DIRNAME} $x 2>/dev/null`
9016                 exclude=`echo ${dir} | ${GREP} /home`
9017     if test "x$exclude" != "x"; then
9018       continue
9019     fi
9020
9021                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
9022     if test "x$already" = "x"; then
9023       DIRS="$DIRS $dir"
9024     fi
9025   done
9026 fi
9027
9028 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
9029
9030   for try in $smart_include_dir /usr/local/include /opt/include; do
9031     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5
9032 $as_echo_n "checking for regex.h in $try... " >&6; }
9033     CFLAGS="$old_CFLAGS -isystem $try"
9034     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9035 /* end confdefs.h.  */
9036
9037                     #include <regex.h>
9038 int
9039 main ()
9040 {
9041 int a = 1;
9042   ;
9043   return 0;
9044 }
9045 _ACEOF
9046 if ac_fn_c_try_compile "$LINENO"; then :
9047
9048                      smart_include="-isystem $try"
9049                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9050 $as_echo "yes" >&6; }
9051                      break
9052
9053 else
9054
9055                      smart_include=
9056                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9057 $as_echo "no" >&6; }
9058
9059 fi
9060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9061   done
9062   CFLAGS="$old_CFLAGS"
9063 fi
9064
9065 if test "x$smart_include" != "x"; then
9066   eval "ac_cv_header_$ac_safe=yes"
9067   CFLAGS="$old_CFLAGS $smart_include"
9068   SMART_CFLAGS="$SMART_CFLAGS $smart_include"
9069 fi
9070
9071   if test "x$ac_cv_header_regex_h" = "xyes"; then
9072
9073 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
9074
9075     REGEX=yes
9076     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9077 /* end confdefs.h.  */
9078
9079         #include <regex.h>
9080         #ifdef REG_EXTENDED
9081         yes
9082         #endif
9083
9084 _ACEOF
9085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9086   $EGREP "yes" >/dev/null 2>&1; then :
9087
9088 $as_echo "#define HAVE_REG_EXTENDED 1" >>confdefs.h
9089  REGEX_EXTENDED=yes
9090
9091 fi
9092 rm -f conftest*
9093
9094   fi
9095 fi
9096
9097
9098
9099
9100
9101
9102 $as_echo "#define GNUSTYLE 1" >>confdefs.h
9103
9104
9105
9106 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
9107
9108
9109
9110 $as_echo "#define BSDSTYLE 3" >>confdefs.h
9111
9112
9113 gethostbyaddrrstyle=""
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
9115 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
9116 case "$host" in
9117   *-freebsd*)
9118                             ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
9119         #ifdef HAVE_NETDB_H
9120         #include <netdb.h>
9121         #endif
9122
9123 "
9124 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
9125   ac_have_decl=1
9126 else
9127   ac_have_decl=0
9128 fi
9129
9130 cat >>confdefs.h <<_ACEOF
9131 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
9132 _ACEOF
9133 if test $ac_have_decl = 1; then :
9134
9135 else
9136
9137
9138 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
9139
9140         gethostbyaddrrstyle=BSD
9141         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
9142 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
9143
9144 fi
9145
9146     ;;
9147 esac
9148
9149 if test "x$gethostbyaddrrstyle" = "x"; then
9150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9151 /* end confdefs.h.  */
9152
9153       #include <stdio.h>
9154       #include <netdb.h>
9155
9156 int
9157 main ()
9158 {
9159  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
9160   ;
9161   return 0;
9162 }
9163 _ACEOF
9164 if ac_fn_c_try_link "$LINENO"; then :
9165
9166
9167 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
9168
9169       gethostbyaddrrstyle=GNU
9170
9171
9172 fi
9173 rm -f core conftest.err conftest.$ac_objext \
9174     conftest$ac_exeext conftest.$ac_ext
9175 fi
9176
9177 if test "x$gethostbyaddrrstyle" = "x"; then
9178   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9179 /* end confdefs.h.  */
9180
9181       #include <stdio.h>
9182       #include <netdb.h>
9183
9184 int
9185 main ()
9186 {
9187  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
9188   ;
9189   return 0;
9190 }
9191 _ACEOF
9192 if ac_fn_c_try_link "$LINENO"; then :
9193
9194
9195 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
9196
9197       gethostbyaddrrstyle=SYSV
9198
9199
9200 fi
9201 rm -f core conftest.err conftest.$ac_objext \
9202     conftest$ac_exeext conftest.$ac_ext
9203 fi
9204
9205
9206 if test "x$gethostbyaddrrstyle" = "x"; then
9207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9208 /* end confdefs.h.  */
9209
9210       #include <stdio.h>
9211       #include <netdb.h>
9212
9213 int
9214 main ()
9215 {
9216  gethostbyaddr(NULL, 0, 0)
9217   ;
9218   return 0;
9219 }
9220 _ACEOF
9221 if ac_fn_c_try_link "$LINENO"; then :
9222
9223
9224 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
9225
9226       gethostbyaddrrstyle=BSD
9227
9228
9229 fi
9230 rm -f core conftest.err conftest.$ac_objext \
9231     conftest$ac_exeext conftest.$ac_ext
9232 fi
9233
9234 if test "x$gethostbyaddrrstyle" = "x"; then
9235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
9236 $as_echo "none!  It must not exist, here." >&6; }
9237 else
9238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
9239 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
9240 fi
9241
9242 if test "x$gethostbyaddrrstyle" = "xBSD"; then
9243   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
9244 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
9245 fi
9246
9247 gethostbynamerstyle=""
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
9249 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
9250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9251 /* end confdefs.h.  */
9252
9253     #include <stdio.h>
9254     #include <netdb.h>
9255
9256 int
9257 main ()
9258 {
9259  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
9260   ;
9261   return 0;
9262 }
9263 _ACEOF
9264 if ac_fn_c_try_link "$LINENO"; then :
9265
9266
9267 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
9268
9269     gethostbynamerstyle=GNU
9270
9271
9272 fi
9273 rm -f core conftest.err conftest.$ac_objext \
9274     conftest$ac_exeext conftest.$ac_ext
9275
9276 if test "x$gethostbynamerstyle" = "x"; then
9277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9278 /* end confdefs.h.  */
9279
9280       #include <stdio.h>
9281       #include <netdb.h>
9282
9283 int
9284 main ()
9285 {
9286  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
9287   ;
9288   return 0;
9289 }
9290 _ACEOF
9291 if ac_fn_c_try_link "$LINENO"; then :
9292
9293
9294 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
9295
9296       gethostbynamerstyle=SYSV
9297
9298
9299 fi
9300 rm -f core conftest.err conftest.$ac_objext \
9301     conftest$ac_exeext conftest.$ac_ext
9302 fi
9303
9304 if test "x$gethostbynamerstyle" = "x"; then
9305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9306 /* end confdefs.h.  */
9307
9308       #include <stdio.h>
9309       #include <netdb.h>
9310
9311 int
9312 main ()
9313 {
9314  gethostbyname(NULL)
9315   ;
9316   return 0;
9317 }
9318 _ACEOF
9319 if ac_fn_c_try_link "$LINENO"; then :
9320
9321
9322 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
9323
9324       gethostbynamerstyle=BSD
9325
9326
9327 fi
9328 rm -f core conftest.err conftest.$ac_objext \
9329     conftest$ac_exeext conftest.$ac_ext
9330 fi
9331
9332 if test "x$gethostbynamerstyle" = "x"; then
9333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
9334 $as_echo "none!  It must not exist, here." >&6; }
9335 else
9336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
9337 $as_echo "${gethostbynamerstyle}-style" >&6; }
9338 fi
9339
9340 if test "x$gethostbynamerstyle" = "xBSD"; then
9341   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
9342 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
9343 fi
9344
9345
9346 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
9347
9348
9349 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
9350
9351 ctimerstyle=""
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
9353 $as_echo_n "checking ctime_r() syntax... " >&6; }
9354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355 /* end confdefs.h.  */
9356
9357     #include <time.h>
9358
9359 int
9360 main ()
9361 {
9362  ctime_r(NULL, NULL, 0)
9363   ;
9364   return 0;
9365 }
9366 _ACEOF
9367 if ac_fn_c_try_link "$LINENO"; then :
9368
9369
9370 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
9371
9372     ctimerstyle="SOLARIS"
9373
9374
9375 fi
9376 rm -f core conftest.err conftest.$ac_objext \
9377     conftest$ac_exeext conftest.$ac_ext
9378
9379 if test "x$ctimerstyle" = "x"; then
9380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9381 /* end confdefs.h.  */
9382
9383       #include <time.h>
9384
9385 int
9386 main ()
9387 {
9388  ctime_r(NULL, NULL)
9389   ;
9390   return 0;
9391 }
9392 _ACEOF
9393 if ac_fn_c_try_link "$LINENO"; then :
9394
9395
9396 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
9397
9398       ctimerstyle="POSIX"
9399
9400
9401 fi
9402 rm -f core conftest.err conftest.$ac_objext \
9403     conftest$ac_exeext conftest.$ac_ext
9404 fi
9405
9406 if test "x$ctimerstyle" = "x"; then
9407     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
9408 $as_echo "none!  It must not exist, here." >&6; }
9409 else
9410     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
9411 $as_echo "${ctimerstyle}-style" >&6; }
9412 fi
9413
9414 HOSTINFO=$host
9415
9416
9417
9418 top_builddir=`pwd`
9419 export top_builddir
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
9421 $as_echo "top_builddir=$top_builddir" >&6; }
9422
9423
9424
9425
9426 if test "x$EXPERIMENTAL" = "xyes"; then
9427   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
9428     MODULES="$MODULES $foo"
9429   done
9430 else
9431             for foo in `cat "${srcdir}"/src/modules/stable`; do
9432       MODULES="$MODULES $foo"
9433    done
9434 fi
9435
9436 mysubdirs=""
9437 for bar in $MODULES; do
9438   if test -f "${srcdir}"/src/modules/$bar/configure; then
9439     mysubdirs="$mysubdirs src/modules/$bar"
9440   fi
9441 done
9442
9443
9444
9445 subdirs="$subdirs $mysubdirs"
9446
9447
9448
9449 if test "x$werror" == "xyes"; then
9450   CFLAGS="-Werror $CFLAGS"
9451 fi
9452
9453 ac_config_commands="$ac_config_commands stamp-h"
9454
9455 ac_config_commands="$ac_config_commands build-radpaths-h"
9456
9457 ac_config_commands="$ac_config_commands main-chmod"
9458
9459 ac_config_commands="$ac_config_commands scripts-chmod"
9460
9461
9462
9463
9464
9465
9466 USE_STATIC_LIBS="yes"
9467
9468
9469
9470
9471   unset ac_cv_env_LIBS_set
9472   unset ac_cv_env_LIBS_value
9473
9474   ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/radsniff.mk ./src/main/checkrad ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/cron/radiusd.cron.daily ./scripts/cron/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radrelay.conf ./raddb/radiusd.conf"
9475
9476 cat >confcache <<\_ACEOF
9477 # This file is a shell script that caches the results of configure
9478 # tests run on this system so they can be shared between configure
9479 # scripts and configure runs, see configure's option --config-cache.
9480 # It is not useful on other systems.  If it contains results you don't
9481 # want to keep, you may remove or edit it.
9482 #
9483 # config.status only pays attention to the cache file if you give it
9484 # the --recheck option to rerun configure.
9485 #
9486 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9487 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9488 # following values.
9489
9490 _ACEOF
9491
9492 # The following way of writing the cache mishandles newlines in values,
9493 # but we know of no workaround that is simple, portable, and efficient.
9494 # So, we kill variables containing newlines.
9495 # Ultrix sh set writes to stderr and can't be redirected directly,
9496 # and sets the high bit in the cache file unless we assign to the vars.
9497 (
9498   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9499     eval ac_val=\$$ac_var
9500     case $ac_val in #(
9501     *${as_nl}*)
9502       case $ac_var in #(
9503       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9504 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9505       esac
9506       case $ac_var in #(
9507       _ | IFS | as_nl) ;; #(
9508       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9509       *) { eval $ac_var=; unset $ac_var;} ;;
9510       esac ;;
9511     esac
9512   done
9513
9514   (set) 2>&1 |
9515     case $as_nl`(ac_space=' '; set) 2>&1` in #(
9516     *${as_nl}ac_space=\ *)
9517       # `set' does not quote correctly, so add quotes: double-quote
9518       # substitution turns \\\\ into \\, and sed turns \\ into \.
9519       sed -n \
9520         "s/'/'\\\\''/g;
9521           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9522       ;; #(
9523     *)
9524       # `set' quotes correctly as required by POSIX, so do not add quotes.
9525       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9526       ;;
9527     esac |
9528     sort
9529 ) |
9530   sed '
9531      /^ac_cv_env_/b end
9532      t clear
9533      :clear
9534      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9535      t end
9536      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9537      :end' >>confcache
9538 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9539   if test -w "$cache_file"; then
9540     if test "x$cache_file" != "x/dev/null"; then
9541       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9542 $as_echo "$as_me: updating cache $cache_file" >&6;}
9543       if test ! -f "$cache_file" || test -h "$cache_file"; then
9544         cat confcache >"$cache_file"
9545       else
9546         case $cache_file in #(
9547         */* | ?:*)
9548           mv -f confcache "$cache_file"$$ &&
9549           mv -f "$cache_file"$$ "$cache_file" ;; #(
9550         *)
9551           mv -f confcache "$cache_file" ;;
9552         esac
9553       fi
9554     fi
9555   else
9556     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9557 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9558   fi
9559 fi
9560 rm -f confcache
9561
9562 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9563 # Let make expand exec_prefix.
9564 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9565
9566 DEFS=-DHAVE_CONFIG_H
9567
9568 ac_libobjs=
9569 ac_ltlibobjs=
9570 U=
9571 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9572   # 1. Remove the extension, and $U if already installed.
9573   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9574   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9575   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9576   #    will be set to the directory where LIBOBJS objects are built.
9577   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9578   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9579 done
9580 LIBOBJS=$ac_libobjs
9581
9582 LTLIBOBJS=$ac_ltlibobjs
9583
9584
9585
9586
9587 : "${CONFIG_STATUS=./config.status}"
9588 ac_write_fail=0
9589 ac_clean_files_save=$ac_clean_files
9590 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9592 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9593 as_write_fail=0
9594 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9595 #! $SHELL
9596 # Generated by $as_me.
9597 # Run this file to recreate the current configuration.
9598 # Compiler output produced by configure, useful for debugging
9599 # configure, is in config.log if it exists.
9600
9601 debug=false
9602 ac_cs_recheck=false
9603 ac_cs_silent=false
9604
9605 SHELL=\${CONFIG_SHELL-$SHELL}
9606 export SHELL
9607 _ASEOF
9608 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9609 ## -------------------- ##
9610 ## M4sh Initialization. ##
9611 ## -------------------- ##
9612
9613 # Be more Bourne compatible
9614 DUALCASE=1; export DUALCASE # for MKS sh
9615 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9616   emulate sh
9617   NULLCMD=:
9618   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9619   # is contrary to our usage.  Disable this feature.
9620   alias -g '${1+"$@"}'='"$@"'
9621   setopt NO_GLOB_SUBST
9622 else
9623   case `(set -o) 2>/dev/null` in #(
9624   *posix*) :
9625     set -o posix ;; #(
9626   *) :
9627      ;;
9628 esac
9629 fi
9630
9631
9632 as_nl='
9633 '
9634 export as_nl
9635 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9636 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9637 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9638 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9639 # Prefer a ksh shell builtin over an external printf program on Solaris,
9640 # but without wasting forks for bash or zsh.
9641 if test -z "$BASH_VERSION$ZSH_VERSION" \
9642     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9643   as_echo='print -r --'
9644   as_echo_n='print -rn --'
9645 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9646   as_echo='printf %s\n'
9647   as_echo_n='printf %s'
9648 else
9649   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9650     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9651     as_echo_n='/usr/ucb/echo -n'
9652   else
9653     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9654     as_echo_n_body='eval
9655       arg=$1;
9656       case $arg in #(
9657       *"$as_nl"*)
9658         expr "X$arg" : "X\\(.*\\)$as_nl";
9659         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9660       esac;
9661       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9662     '
9663     export as_echo_n_body
9664     as_echo_n='sh -c $as_echo_n_body as_echo'
9665   fi
9666   export as_echo_body
9667   as_echo='sh -c $as_echo_body as_echo'
9668 fi
9669
9670 # The user is always right.
9671 if test "${PATH_SEPARATOR+set}" != set; then
9672   PATH_SEPARATOR=:
9673   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9674     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9675       PATH_SEPARATOR=';'
9676   }
9677 fi
9678
9679
9680 # IFS
9681 # We need space, tab and new line, in precisely that order.  Quoting is
9682 # there to prevent editors from complaining about space-tab.
9683 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9684 # splitting by setting IFS to empty value.)
9685 IFS=" ""        $as_nl"
9686
9687 # Find who we are.  Look in the path if we contain no directory separator.
9688 as_myself=
9689 case $0 in #((
9690   *[\\/]* ) as_myself=$0 ;;
9691   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9692 for as_dir in $PATH
9693 do
9694   IFS=$as_save_IFS
9695   test -z "$as_dir" && as_dir=.
9696     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9697   done
9698 IFS=$as_save_IFS
9699
9700      ;;
9701 esac
9702 # We did not find ourselves, most probably we were run as `sh COMMAND'
9703 # in which case we are not to be found in the path.
9704 if test "x$as_myself" = x; then
9705   as_myself=$0
9706 fi
9707 if test ! -f "$as_myself"; then
9708   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9709   exit 1
9710 fi
9711
9712 # Unset variables that we do not need and which cause bugs (e.g. in
9713 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
9714 # suppresses any "Segmentation fault" message there.  '((' could
9715 # trigger a bug in pdksh 5.2.14.
9716 for as_var in BASH_ENV ENV MAIL MAILPATH
9717 do eval test x\${$as_var+set} = xset \
9718   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9719 done
9720 PS1='$ '
9721 PS2='> '
9722 PS4='+ '
9723
9724 # NLS nuisances.
9725 LC_ALL=C
9726 export LC_ALL
9727 LANGUAGE=C
9728 export LANGUAGE
9729
9730 # CDPATH.
9731 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9732
9733
9734 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9735 # ----------------------------------------
9736 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9737 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9738 # script with STATUS, using 1 if that was 0.
9739 as_fn_error ()
9740 {
9741   as_status=$1; test $as_status -eq 0 && as_status=1
9742   if test "$4"; then
9743     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9744     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9745   fi
9746   $as_echo "$as_me: error: $2" >&2
9747   as_fn_exit $as_status
9748 } # as_fn_error
9749
9750
9751 # as_fn_set_status STATUS
9752 # -----------------------
9753 # Set $? to STATUS, without forking.
9754 as_fn_set_status ()
9755 {
9756   return $1
9757 } # as_fn_set_status
9758
9759 # as_fn_exit STATUS
9760 # -----------------
9761 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9762 as_fn_exit ()
9763 {
9764   set +e
9765   as_fn_set_status $1
9766   exit $1
9767 } # as_fn_exit
9768
9769 # as_fn_unset VAR
9770 # ---------------
9771 # Portably unset VAR.
9772 as_fn_unset ()
9773 {
9774   { eval $1=; unset $1;}
9775 }
9776 as_unset=as_fn_unset
9777 # as_fn_append VAR VALUE
9778 # ----------------------
9779 # Append the text in VALUE to the end of the definition contained in VAR. Take
9780 # advantage of any shell optimizations that allow amortized linear growth over
9781 # repeated appends, instead of the typical quadratic growth present in naive
9782 # implementations.
9783 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9784   eval 'as_fn_append ()
9785   {
9786     eval $1+=\$2
9787   }'
9788 else
9789   as_fn_append ()
9790   {
9791     eval $1=\$$1\$2
9792   }
9793 fi # as_fn_append
9794
9795 # as_fn_arith ARG...
9796 # ------------------
9797 # Perform arithmetic evaluation on the ARGs, and store the result in the
9798 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9799 # must be portable across $(()) and expr.
9800 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9801   eval 'as_fn_arith ()
9802   {
9803     as_val=$(( $* ))
9804   }'
9805 else
9806   as_fn_arith ()
9807   {
9808     as_val=`expr "$@" || test $? -eq 1`
9809   }
9810 fi # as_fn_arith
9811
9812
9813 if expr a : '\(a\)' >/dev/null 2>&1 &&
9814    test "X`expr 00001 : '.*\(...\)'`" = X001; then
9815   as_expr=expr
9816 else
9817   as_expr=false
9818 fi
9819
9820 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9821   as_basename=basename
9822 else
9823   as_basename=false
9824 fi
9825
9826 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9827   as_dirname=dirname
9828 else
9829   as_dirname=false
9830 fi
9831
9832 as_me=`$as_basename -- "$0" ||
9833 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9834          X"$0" : 'X\(//\)$' \| \
9835          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9836 $as_echo X/"$0" |
9837     sed '/^.*\/\([^/][^/]*\)\/*$/{
9838             s//\1/
9839             q
9840           }
9841           /^X\/\(\/\/\)$/{
9842             s//\1/
9843             q
9844           }
9845           /^X\/\(\/\).*/{
9846             s//\1/
9847             q
9848           }
9849           s/.*/./; q'`
9850
9851 # Avoid depending upon Character Ranges.
9852 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9853 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9854 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9855 as_cr_digits='0123456789'
9856 as_cr_alnum=$as_cr_Letters$as_cr_digits
9857
9858 ECHO_C= ECHO_N= ECHO_T=
9859 case `echo -n x` in #(((((
9860 -n*)
9861   case `echo 'xy\c'` in
9862   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
9863   xy)  ECHO_C='\c';;
9864   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
9865        ECHO_T=' ';;
9866   esac;;
9867 *)
9868   ECHO_N='-n';;
9869 esac
9870
9871 rm -f conf$$ conf$$.exe conf$$.file
9872 if test -d conf$$.dir; then
9873   rm -f conf$$.dir/conf$$.file
9874 else
9875   rm -f conf$$.dir
9876   mkdir conf$$.dir 2>/dev/null
9877 fi
9878 if (echo >conf$$.file) 2>/dev/null; then
9879   if ln -s conf$$.file conf$$ 2>/dev/null; then
9880     as_ln_s='ln -s'
9881     # ... but there are two gotchas:
9882     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9883     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9884     # In both cases, we have to default to `cp -pR'.
9885     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9886       as_ln_s='cp -pR'
9887   elif ln conf$$.file conf$$ 2>/dev/null; then
9888     as_ln_s=ln
9889   else
9890     as_ln_s='cp -pR'
9891   fi
9892 else
9893   as_ln_s='cp -pR'
9894 fi
9895 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9896 rmdir conf$$.dir 2>/dev/null
9897
9898
9899 # as_fn_mkdir_p
9900 # -------------
9901 # Create "$as_dir" as a directory, including parents if necessary.
9902 as_fn_mkdir_p ()
9903 {
9904
9905   case $as_dir in #(
9906   -*) as_dir=./$as_dir;;
9907   esac
9908   test -d "$as_dir" || eval $as_mkdir_p || {
9909     as_dirs=
9910     while :; do
9911       case $as_dir in #(
9912       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9913       *) as_qdir=$as_dir;;
9914       esac
9915       as_dirs="'$as_qdir' $as_dirs"
9916       as_dir=`$as_dirname -- "$as_dir" ||
9917 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9918          X"$as_dir" : 'X\(//\)[^/]' \| \
9919          X"$as_dir" : 'X\(//\)$' \| \
9920          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9921 $as_echo X"$as_dir" |
9922     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9923             s//\1/
9924             q
9925           }
9926           /^X\(\/\/\)[^/].*/{
9927             s//\1/
9928             q
9929           }
9930           /^X\(\/\/\)$/{
9931             s//\1/
9932             q
9933           }
9934           /^X\(\/\).*/{
9935             s//\1/
9936             q
9937           }
9938           s/.*/./; q'`
9939       test -d "$as_dir" && break
9940     done
9941     test -z "$as_dirs" || eval "mkdir $as_dirs"
9942   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9943
9944
9945 } # as_fn_mkdir_p
9946 if mkdir -p . 2>/dev/null; then
9947   as_mkdir_p='mkdir -p "$as_dir"'
9948 else
9949   test -d ./-p && rmdir ./-p
9950   as_mkdir_p=false
9951 fi
9952
9953
9954 # as_fn_executable_p FILE
9955 # -----------------------
9956 # Test if FILE is an executable regular file.
9957 as_fn_executable_p ()
9958 {
9959   test -f "$1" && test -x "$1"
9960 } # as_fn_executable_p
9961 as_test_x='test -x'
9962 as_executable_p=as_fn_executable_p
9963
9964 # Sed expression to map a string onto a valid CPP name.
9965 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9966
9967 # Sed expression to map a string onto a valid variable name.
9968 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9969
9970
9971 exec 6>&1
9972 ## ----------------------------------- ##
9973 ## Main body of $CONFIG_STATUS script. ##
9974 ## ----------------------------------- ##
9975 _ASEOF
9976 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9977
9978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9979 # Save the log message, to keep $0 and so on meaningful, and to
9980 # report actual input values of CONFIG_FILES etc. instead of their
9981 # values after options handling.
9982 ac_log="
9983 This file was extended by freeradius $as_me $Id$, which was
9984 generated by GNU Autoconf 2.69.  Invocation command line was
9985
9986   CONFIG_FILES    = $CONFIG_FILES
9987   CONFIG_HEADERS  = $CONFIG_HEADERS
9988   CONFIG_LINKS    = $CONFIG_LINKS
9989   CONFIG_COMMANDS = $CONFIG_COMMANDS
9990   $ $0 $@
9991
9992 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9993 "
9994
9995 _ACEOF
9996
9997 case $ac_config_files in *"
9998 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9999 esac
10000
10001 case $ac_config_headers in *"
10002 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10003 esac
10004
10005
10006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10007 # Files that config.status was made for.
10008 config_files="$ac_config_files"
10009 config_headers="$ac_config_headers"
10010 config_commands="$ac_config_commands"
10011
10012 _ACEOF
10013
10014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10015 ac_cs_usage="\
10016 \`$as_me' instantiates files and other configuration actions
10017 from templates according to the current configuration.  Unless the files
10018 and actions are specified as TAGs, all are instantiated by default.
10019
10020 Usage: $0 [OPTION]... [TAG]...
10021
10022   -h, --help       print this help, then exit
10023   -V, --version    print version number and configuration settings, then exit
10024       --config     print configuration, then exit
10025   -q, --quiet, --silent
10026                    do not print progress messages
10027   -d, --debug      don't remove temporary files
10028       --recheck    update $as_me by reconfiguring in the same conditions
10029       --file=FILE[:TEMPLATE]
10030                    instantiate the configuration file FILE
10031       --header=FILE[:TEMPLATE]
10032                    instantiate the configuration header FILE
10033
10034 Configuration files:
10035 $config_files
10036
10037 Configuration headers:
10038 $config_headers
10039
10040 Configuration commands:
10041 $config_commands
10042
10043 Report bugs to <http://bugs.freeradius.org>.
10044 freeradius home page: <http://www.freeradius.org>."
10045
10046 _ACEOF
10047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10048 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10049 ac_cs_version="\\
10050 freeradius config.status $Id$
10051 configured by $0, generated by GNU Autoconf 2.69,
10052   with options \\"\$ac_cs_config\\"
10053
10054 Copyright (C) 2012 Free Software Foundation, Inc.
10055 This config.status script is free software; the Free Software Foundation
10056 gives unlimited permission to copy, distribute and modify it."
10057
10058 ac_pwd='$ac_pwd'
10059 srcdir='$srcdir'
10060 test -n "\$AWK" || AWK=awk
10061 _ACEOF
10062
10063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10064 # The default lists apply if the user does not specify any file.
10065 ac_need_defaults=:
10066 while test $# != 0
10067 do
10068   case $1 in
10069   --*=?*)
10070     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10071     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10072     ac_shift=:
10073     ;;
10074   --*=)
10075     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10076     ac_optarg=
10077     ac_shift=:
10078     ;;
10079   *)
10080     ac_option=$1
10081     ac_optarg=$2
10082     ac_shift=shift
10083     ;;
10084   esac
10085
10086   case $ac_option in
10087   # Handling of the options.
10088   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10089     ac_cs_recheck=: ;;
10090   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10091     $as_echo "$ac_cs_version"; exit ;;
10092   --config | --confi | --conf | --con | --co | --c )
10093     $as_echo "$ac_cs_config"; exit ;;
10094   --debug | --debu | --deb | --de | --d | -d )
10095     debug=: ;;
10096   --file | --fil | --fi | --f )
10097     $ac_shift
10098     case $ac_optarg in
10099     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10100     '') as_fn_error $? "missing file argument" ;;
10101     esac
10102     as_fn_append CONFIG_FILES " '$ac_optarg'"
10103     ac_need_defaults=false;;
10104   --header | --heade | --head | --hea )
10105     $ac_shift
10106     case $ac_optarg in
10107     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10108     esac
10109     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10110     ac_need_defaults=false;;
10111   --he | --h)
10112     # Conflict between --help and --header
10113     as_fn_error $? "ambiguous option: \`$1'
10114 Try \`$0 --help' for more information.";;
10115   --help | --hel | -h )
10116     $as_echo "$ac_cs_usage"; exit ;;
10117   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10118   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10119     ac_cs_silent=: ;;
10120
10121   # This is an error.
10122   -*) as_fn_error $? "unrecognized option: \`$1'
10123 Try \`$0 --help' for more information." ;;
10124
10125   *) as_fn_append ac_config_targets " $1"
10126      ac_need_defaults=false ;;
10127
10128   esac
10129   shift
10130 done
10131
10132 ac_configure_extra_args=
10133
10134 if $ac_cs_silent; then
10135   exec 6>/dev/null
10136   ac_configure_extra_args="$ac_configure_extra_args --silent"
10137 fi
10138
10139 _ACEOF
10140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10141 if \$ac_cs_recheck; then
10142   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10143   shift
10144   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10145   CONFIG_SHELL='$SHELL'
10146   export CONFIG_SHELL
10147   exec "\$@"
10148 fi
10149
10150 _ACEOF
10151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10152 exec 5>>config.log
10153 {
10154   echo
10155   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10156 ## Running $as_me. ##
10157 _ASBOX
10158   $as_echo "$ac_log"
10159 } >&5
10160
10161 _ACEOF
10162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10163 _ACEOF
10164
10165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10166
10167 # Handling of arguments.
10168 for ac_config_target in $ac_config_targets
10169 do
10170   case $ac_config_target in
10171     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
10172     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
10173     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
10174     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
10175     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
10176     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
10177     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
10178     "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
10179     "./src/main/checkrad") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad" ;;
10180     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
10181     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
10182     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
10183     "./scripts/cron/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/cron/radiusd.cron.daily" ;;
10184     "./scripts/cron/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/cron/radiusd.cron.monthly" ;;
10185     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
10186     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
10187     "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
10188     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
10189
10190   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10191   esac
10192 done
10193
10194
10195 # If the user did not use the arguments to specify the items to instantiate,
10196 # then the envvar interface is used.  Set only those that are not.
10197 # We use the long form for the default assignment because of an extremely
10198 # bizarre bug on SunOS 4.1.3.
10199 if $ac_need_defaults; then
10200   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10201   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10202   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10203 fi
10204
10205 # Have a temporary directory for convenience.  Make it in the build tree
10206 # simply because there is no reason against having it here, and in addition,
10207 # creating and moving files from /tmp can sometimes cause problems.
10208 # Hook for its removal unless debugging.
10209 # Note that there is a small window in which the directory will not be cleaned:
10210 # after its creation but before its name has been assigned to `$tmp'.
10211 $debug ||
10212 {
10213   tmp= ac_tmp=
10214   trap 'exit_status=$?
10215   : "${ac_tmp:=$tmp}"
10216   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10217 ' 0
10218   trap 'as_fn_exit 1' 1 2 13 15
10219 }
10220 # Create a (secure) tmp directory for tmp files.
10221
10222 {
10223   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10224   test -d "$tmp"
10225 }  ||
10226 {
10227   tmp=./conf$$-$RANDOM
10228   (umask 077 && mkdir "$tmp")
10229 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10230 ac_tmp=$tmp
10231
10232 # Set up the scripts for CONFIG_FILES section.
10233 # No need to generate them if there are no CONFIG_FILES.
10234 # This happens for instance with `./config.status config.h'.
10235 if test -n "$CONFIG_FILES"; then
10236
10237
10238 ac_cr=`echo X | tr X '\015'`
10239 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10240 # But we know of no other shell where ac_cr would be empty at this
10241 # point, so we can use a bashism as a fallback.
10242 if test "x$ac_cr" = x; then
10243   eval ac_cr=\$\'\\r\'
10244 fi
10245 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10246 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10247   ac_cs_awk_cr='\\r'
10248 else
10249   ac_cs_awk_cr=$ac_cr
10250 fi
10251
10252 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10253 _ACEOF
10254
10255
10256 {
10257   echo "cat >conf$$subs.awk <<_ACEOF" &&
10258   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10259   echo "_ACEOF"
10260 } >conf$$subs.sh ||
10261   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10262 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10263 ac_delim='%!_!# '
10264 for ac_last_try in false false false false false :; do
10265   . ./conf$$subs.sh ||
10266     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10267
10268   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10269   if test $ac_delim_n = $ac_delim_num; then
10270     break
10271   elif $ac_last_try; then
10272     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10273   else
10274     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10275   fi
10276 done
10277 rm -f conf$$subs.sh
10278
10279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10280 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10281 _ACEOF
10282 sed -n '
10283 h
10284 s/^/S["/; s/!.*/"]=/
10285 p
10286 g
10287 s/^[^!]*!//
10288 :repl
10289 t repl
10290 s/'"$ac_delim"'$//
10291 t delim
10292 :nl
10293 h
10294 s/\(.\{148\}\)..*/\1/
10295 t more1
10296 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10297 p
10298 n
10299 b repl
10300 :more1
10301 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10302 p
10303 g
10304 s/.\{148\}//
10305 t nl
10306 :delim
10307 h
10308 s/\(.\{148\}\)..*/\1/
10309 t more2
10310 s/["\\]/\\&/g; s/^/"/; s/$/"/
10311 p
10312 b
10313 :more2
10314 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10315 p
10316 g
10317 s/.\{148\}//
10318 t delim
10319 ' <conf$$subs.awk | sed '
10320 /^[^""]/{
10321   N
10322   s/\n//
10323 }
10324 ' >>$CONFIG_STATUS || ac_write_fail=1
10325 rm -f conf$$subs.awk
10326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10327 _ACAWK
10328 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10329   for (key in S) S_is_set[key] = 1
10330   FS = "\a"
10331
10332 }
10333 {
10334   line = $ 0
10335   nfields = split(line, field, "@")
10336   substed = 0
10337   len = length(field[1])
10338   for (i = 2; i < nfields; i++) {
10339     key = field[i]
10340     keylen = length(key)
10341     if (S_is_set[key]) {
10342       value = S[key]
10343       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10344       len += length(value) + length(field[++i])
10345       substed = 1
10346     } else
10347       len += 1 + keylen
10348   }
10349
10350   print line
10351 }
10352
10353 _ACAWK
10354 _ACEOF
10355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10356 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10357   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10358 else
10359   cat
10360 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10361   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10362 _ACEOF
10363
10364 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10365 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10366 # trailing colons and then remove the whole line if VPATH becomes empty
10367 # (actually we leave an empty line to preserve line numbers).
10368 if test "x$srcdir" = x.; then
10369   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
10370 h
10371 s///
10372 s/^/:/
10373 s/[      ]*$/:/
10374 s/:\$(srcdir):/:/g
10375 s/:\${srcdir}:/:/g
10376 s/:@srcdir@:/:/g
10377 s/^:*//
10378 s/:*$//
10379 x
10380 s/\(=[   ]*\).*/\1/
10381 G
10382 s/\n//
10383 s/^[^=]*=[       ]*$//
10384 }'
10385 fi
10386
10387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10388 fi # test -n "$CONFIG_FILES"
10389
10390 # Set up the scripts for CONFIG_HEADERS section.
10391 # No need to generate them if there are no CONFIG_HEADERS.
10392 # This happens for instance with `./config.status Makefile'.
10393 if test -n "$CONFIG_HEADERS"; then
10394 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10395 BEGIN {
10396 _ACEOF
10397
10398 # Transform confdefs.h into an awk script `defines.awk', embedded as
10399 # here-document in config.status, that substitutes the proper values into
10400 # config.h.in to produce config.h.
10401
10402 # Create a delimiter string that does not exist in confdefs.h, to ease
10403 # handling of long lines.
10404 ac_delim='%!_!# '
10405 for ac_last_try in false false :; do
10406   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10407   if test -z "$ac_tt"; then
10408     break
10409   elif $ac_last_try; then
10410     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10411   else
10412     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10413   fi
10414 done
10415
10416 # For the awk script, D is an array of macro values keyed by name,
10417 # likewise P contains macro parameters if any.  Preserve backslash
10418 # newline sequences.
10419
10420 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10421 sed -n '
10422 s/.\{148\}/&'"$ac_delim"'/g
10423 t rset
10424 :rset
10425 s/^[     ]*#[    ]*define[       ][      ]*/ /
10426 t def
10427 d
10428 :def
10429 s/\\$//
10430 t bsnl
10431 s/["\\]/\\&/g
10432 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10433 D["\1"]=" \3"/p
10434 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
10435 d
10436 :bsnl
10437 s/["\\]/\\&/g
10438 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10439 D["\1"]=" \3\\\\\\n"\\/p
10440 t cont
10441 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10442 t cont
10443 d
10444 :cont
10445 n
10446 s/.\{148\}/&'"$ac_delim"'/g
10447 t clear
10448 :clear
10449 s/\\$//
10450 t bsnlc
10451 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10452 d
10453 :bsnlc
10454 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10455 b cont
10456 ' <confdefs.h | sed '
10457 s/'"$ac_delim"'/"\\\
10458 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10459
10460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10461   for (key in D) D_is_set[key] = 1
10462   FS = "\a"
10463 }
10464 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10465   line = \$ 0
10466   split(line, arg, " ")
10467   if (arg[1] == "#") {
10468     defundef = arg[2]
10469     mac1 = arg[3]
10470   } else {
10471     defundef = substr(arg[1], 2)
10472     mac1 = arg[2]
10473   }
10474   split(mac1, mac2, "(") #)
10475   macro = mac2[1]
10476   prefix = substr(line, 1, index(line, defundef) - 1)
10477   if (D_is_set[macro]) {
10478     # Preserve the white space surrounding the "#".
10479     print prefix "define", macro P[macro] D[macro]
10480     next
10481   } else {
10482     # Replace #undef with comments.  This is necessary, for example,
10483     # in the case of _POSIX_SOURCE, which is predefined and required
10484     # on some systems where configure will not decide to define it.
10485     if (defundef == "undef") {
10486       print "/*", prefix defundef, macro, "*/"
10487       next
10488     }
10489   }
10490 }
10491 { print }
10492 _ACAWK
10493 _ACEOF
10494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10495   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10496 fi # test -n "$CONFIG_HEADERS"
10497
10498
10499 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
10500 shift
10501 for ac_tag
10502 do
10503   case $ac_tag in
10504   :[FHLC]) ac_mode=$ac_tag; continue;;
10505   esac
10506   case $ac_mode$ac_tag in
10507   :[FHL]*:*);;
10508   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10509   :[FH]-) ac_tag=-:-;;
10510   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10511   esac
10512   ac_save_IFS=$IFS
10513   IFS=:
10514   set x $ac_tag
10515   IFS=$ac_save_IFS
10516   shift
10517   ac_file=$1
10518   shift
10519
10520   case $ac_mode in
10521   :L) ac_source=$1;;
10522   :[FH])
10523     ac_file_inputs=
10524     for ac_f
10525     do
10526       case $ac_f in
10527       -) ac_f="$ac_tmp/stdin";;
10528       *) # Look for the file first in the build tree, then in the source tree
10529          # (if the path is not absolute).  The absolute path cannot be DOS-style,
10530          # because $ac_f cannot contain `:'.
10531          test -f "$ac_f" ||
10532            case $ac_f in
10533            [\\/$]*) false;;
10534            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10535            esac ||
10536            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10537       esac
10538       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10539       as_fn_append ac_file_inputs " '$ac_f'"
10540     done
10541
10542     # Let's still pretend it is `configure' which instantiates (i.e., don't
10543     # use $as_me), people would be surprised to read:
10544     #    /* config.h.  Generated by config.status.  */
10545     configure_input='Generated from '`
10546           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10547         `' by configure.'
10548     if test x"$ac_file" != x-; then
10549       configure_input="$ac_file.  $configure_input"
10550       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10551 $as_echo "$as_me: creating $ac_file" >&6;}
10552     fi
10553     # Neutralize special characters interpreted by sed in replacement strings.
10554     case $configure_input in #(
10555     *\&* | *\|* | *\\* )
10556        ac_sed_conf_input=`$as_echo "$configure_input" |
10557        sed 's/[\\\\&|]/\\\\&/g'`;; #(
10558     *) ac_sed_conf_input=$configure_input;;
10559     esac
10560
10561     case $ac_tag in
10562     *:-:* | *:-) cat >"$ac_tmp/stdin" \
10563       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10564     esac
10565     ;;
10566   esac
10567
10568   ac_dir=`$as_dirname -- "$ac_file" ||
10569 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10570          X"$ac_file" : 'X\(//\)[^/]' \| \
10571          X"$ac_file" : 'X\(//\)$' \| \
10572          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10573 $as_echo X"$ac_file" |
10574     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10575             s//\1/
10576             q
10577           }
10578           /^X\(\/\/\)[^/].*/{
10579             s//\1/
10580             q
10581           }
10582           /^X\(\/\/\)$/{
10583             s//\1/
10584             q
10585           }
10586           /^X\(\/\).*/{
10587             s//\1/
10588             q
10589           }
10590           s/.*/./; q'`
10591   as_dir="$ac_dir"; as_fn_mkdir_p
10592   ac_builddir=.
10593
10594 case "$ac_dir" in
10595 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10596 *)
10597   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10598   # A ".." for each directory in $ac_dir_suffix.
10599   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10600   case $ac_top_builddir_sub in
10601   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10602   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10603   esac ;;
10604 esac
10605 ac_abs_top_builddir=$ac_pwd
10606 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10607 # for backward compatibility:
10608 ac_top_builddir=$ac_top_build_prefix
10609
10610 case $srcdir in
10611   .)  # We are building in place.
10612     ac_srcdir=.
10613     ac_top_srcdir=$ac_top_builddir_sub
10614     ac_abs_top_srcdir=$ac_pwd ;;
10615   [\\/]* | ?:[\\/]* )  # Absolute name.
10616     ac_srcdir=$srcdir$ac_dir_suffix;
10617     ac_top_srcdir=$srcdir
10618     ac_abs_top_srcdir=$srcdir ;;
10619   *) # Relative name.
10620     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10621     ac_top_srcdir=$ac_top_build_prefix$srcdir
10622     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10623 esac
10624 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10625
10626
10627   case $ac_mode in
10628   :F)
10629   #
10630   # CONFIG_FILE
10631   #
10632
10633 _ACEOF
10634
10635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10636 # If the template does not know about datarootdir, expand it.
10637 # FIXME: This hack should be removed a few years after 2.60.
10638 ac_datarootdir_hack=; ac_datarootdir_seen=
10639 ac_sed_dataroot='
10640 /datarootdir/ {
10641   p
10642   q
10643 }
10644 /@datadir@/p
10645 /@docdir@/p
10646 /@infodir@/p
10647 /@localedir@/p
10648 /@mandir@/p'
10649 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10650 *datarootdir*) ac_datarootdir_seen=yes;;
10651 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10652   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10653 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10654 _ACEOF
10655 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10656   ac_datarootdir_hack='
10657   s&@datadir@&$datadir&g
10658   s&@docdir@&$docdir&g
10659   s&@infodir@&$infodir&g
10660   s&@localedir@&$localedir&g
10661   s&@mandir@&$mandir&g
10662   s&\\\${datarootdir}&$datarootdir&g' ;;
10663 esac
10664 _ACEOF
10665
10666 # Neutralize VPATH when `$srcdir' = `.'.
10667 # Shell code in configure.ac might set extrasub.
10668 # FIXME: do we really want to maintain this feature?
10669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10670 ac_sed_extra="$ac_vpsub
10671 $extrasub
10672 _ACEOF
10673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10674 :t
10675 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10676 s|@configure_input@|$ac_sed_conf_input|;t t
10677 s&@top_builddir@&$ac_top_builddir_sub&;t t
10678 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10679 s&@srcdir@&$ac_srcdir&;t t
10680 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10681 s&@top_srcdir@&$ac_top_srcdir&;t t
10682 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10683 s&@builddir@&$ac_builddir&;t t
10684 s&@abs_builddir@&$ac_abs_builddir&;t t
10685 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10686 $ac_datarootdir_hack
10687 "
10688 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10689   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10690
10691 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10692   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10693   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
10694       "$ac_tmp/out"`; test -z "$ac_out"; } &&
10695   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10696 which seems to be undefined.  Please make sure it is defined" >&5
10697 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10698 which seems to be undefined.  Please make sure it is defined" >&2;}
10699
10700   rm -f "$ac_tmp/stdin"
10701   case $ac_file in
10702   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10703   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10704   esac \
10705   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10706  ;;
10707   :H)
10708   #
10709   # CONFIG_HEADER
10710   #
10711   if test x"$ac_file" != x-; then
10712     {
10713       $as_echo "/* $configure_input  */" \
10714       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10715     } >"$ac_tmp/config.h" \
10716       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10717     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10718       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10719 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10720     else
10721       rm -f "$ac_file"
10722       mv "$ac_tmp/config.h" "$ac_file" \
10723         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10724     fi
10725   else
10726     $as_echo "/* $configure_input  */" \
10727       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10728       || as_fn_error $? "could not create -" "$LINENO" 5
10729   fi
10730  ;;
10731
10732   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10733 $as_echo "$as_me: executing $ac_file commands" >&6;}
10734  ;;
10735   esac
10736
10737
10738   case $ac_file$ac_mode in
10739     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
10740     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
10741     "main-chmod":C) (cd ./src/main && chmod +x checkrad radlast radtest) ;;
10742     "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd cron/radiusd.cron.daily cron/radiusd.cron.monthly cryptpasswd) ;;
10743
10744   esac
10745 done # for ac_tag
10746
10747
10748 as_fn_exit 0
10749 _ACEOF
10750 ac_clean_files=$ac_clean_files_save
10751
10752 test $ac_write_fail = 0 ||
10753   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10754
10755
10756 # configure is writing to config.log, and then calls config.status.
10757 # config.status does its own redirection, appending to config.log.
10758 # Unfortunately, on DOS this fails, as config.log is still kept open
10759 # by configure, so config.status won't be able to write to it; its
10760 # output is simply discarded.  So we exec the FD to /dev/null,
10761 # effectively closing config.log, so it can be properly (re)opened and
10762 # appended to by config.status.  When coming back to configure, we
10763 # need to make the FD available again.
10764 if test "$no_create" != yes; then
10765   ac_cs_success=:
10766   ac_config_status_args=
10767   test "$silent" = yes &&
10768     ac_config_status_args="$ac_config_status_args --quiet"
10769   exec 5>/dev/null
10770   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10771   exec 5>>config.log
10772   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10773   # would make configure fail if this is the last instruction.
10774   $ac_cs_success || as_fn_exit 1
10775 fi
10776
10777 #
10778 # CONFIG_SUBDIRS section.
10779 #
10780 if test "$no_recursion" != yes; then
10781
10782   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10783   # so they do not pile up.
10784   ac_sub_configure_args=
10785   ac_prev=
10786   eval "set x $ac_configure_args"
10787   shift
10788   for ac_arg
10789   do
10790     if test -n "$ac_prev"; then
10791       ac_prev=
10792       continue
10793     fi
10794     case $ac_arg in
10795     -cache-file | --cache-file | --cache-fil | --cache-fi \
10796     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10797       ac_prev=cache_file ;;
10798     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10799     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10800     | --c=*)
10801       ;;
10802     --config-cache | -C)
10803       ;;
10804     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10805       ac_prev=srcdir ;;
10806     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10807       ;;
10808     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10809       ac_prev=prefix ;;
10810     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10811       ;;
10812     --disable-option-checking)
10813       ;;
10814     *)
10815       case $ac_arg in
10816       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10817       esac
10818       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
10819     esac
10820   done
10821
10822   # Always prepend --prefix to ensure using the same prefix
10823   # in subdir configurations.
10824   ac_arg="--prefix=$prefix"
10825   case $ac_arg in
10826   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10827   esac
10828   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10829
10830   # Pass --silent
10831   if test "$silent" = yes; then
10832     ac_sub_configure_args="--silent $ac_sub_configure_args"
10833   fi
10834
10835   # Always prepend --disable-option-checking to silence warnings, since
10836   # different subdirs can have different --enable and --with options.
10837   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10838
10839   ac_popdir=`pwd`
10840   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10841
10842     # Do not complain, so a configure script can configure whichever
10843     # parts of a large source tree are present.
10844     test -d "$srcdir/$ac_dir" || continue
10845
10846     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
10847     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10848     $as_echo "$ac_msg" >&6
10849     as_dir="$ac_dir"; as_fn_mkdir_p
10850     ac_builddir=.
10851
10852 case "$ac_dir" in
10853 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10854 *)
10855   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10856   # A ".." for each directory in $ac_dir_suffix.
10857   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10858   case $ac_top_builddir_sub in
10859   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10860   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10861   esac ;;
10862 esac
10863 ac_abs_top_builddir=$ac_pwd
10864 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10865 # for backward compatibility:
10866 ac_top_builddir=$ac_top_build_prefix
10867
10868 case $srcdir in
10869   .)  # We are building in place.
10870     ac_srcdir=.
10871     ac_top_srcdir=$ac_top_builddir_sub
10872     ac_abs_top_srcdir=$ac_pwd ;;
10873   [\\/]* | ?:[\\/]* )  # Absolute name.
10874     ac_srcdir=$srcdir$ac_dir_suffix;
10875     ac_top_srcdir=$srcdir
10876     ac_abs_top_srcdir=$srcdir ;;
10877   *) # Relative name.
10878     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10879     ac_top_srcdir=$ac_top_build_prefix$srcdir
10880     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10881 esac
10882 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10883
10884
10885     cd "$ac_dir"
10886
10887     # Check for guested configure; otherwise get Cygnus style configure.
10888     if test -f "$ac_srcdir/configure.gnu"; then
10889       ac_sub_configure=$ac_srcdir/configure.gnu
10890     elif test -f "$ac_srcdir/configure"; then
10891       ac_sub_configure=$ac_srcdir/configure
10892     elif test -f "$ac_srcdir/configure.in"; then
10893       # This should be Cygnus configure.
10894       ac_sub_configure=$ac_aux_dir/configure
10895     else
10896       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
10897 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10898       ac_sub_configure=
10899     fi
10900
10901     # The recursion is here.
10902     if test -n "$ac_sub_configure"; then
10903       # Make the cache file name correct relative to the subdirectory.
10904       case $cache_file in
10905       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10906       *) # Relative name.
10907         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10908       esac
10909
10910       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
10911 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10912       # The eval makes quoting arguments work.
10913       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10914            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
10915         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
10916     fi
10917
10918     cd "$ac_popdir"
10919   done
10920 fi
10921 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10922   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10923 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10924 fi
10925
10926