xref: /minix/external/bsd/dhcp/dist/configure (revision fb9c64b2)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for DHCP 4.3.0.
4#
5# Report bugs to <dhcp-users@isc.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
18DUALCASE=1; export DUALCASE # for MKS sh
19if 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
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_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.
45if 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 --'
49elif (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'
52else
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'
72fi
73
74# The user is always right.
75if 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  }
81fi
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.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
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
102IFS=$as_save_IFS
103
104     ;;
105esac
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.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
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.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export 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.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $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
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if 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
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -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
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
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
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
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
236fi; }
237IFS=$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.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $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
259exit 255
260fi
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 dhcp-users@isc.org
270$0: about your system, including any error possibly output
271$0: before this message. Then install a modern shell, or
272$0: manually run the script under such a shell if you do
273$0: have one."
274  fi
275  exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293  { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_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.
308as_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.
318as_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.
366as_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.
376if (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  }'
381else
382  as_fn_append ()
383  {
384    eval $1=\$$1\$2
385  }
386fi # 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.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394  eval 'as_fn_arith ()
395  {
396    as_val=$(( $* ))
397  }'
398else
399  as_fn_arith ()
400  {
401    as_val=`expr "$@" || test $? -eq 1`
402  }
403fi # 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.
411as_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
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423   test "X`expr 00001 : '.*\(...\)'`" = X001; then
424  as_expr=expr
425else
426  as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430  as_basename=basename
431else
432  as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436  as_dirname=dirname
437else
438  as_dirname=false
439fi
440
441as_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.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_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
503ECHO_C= ECHO_N= ECHO_T=
504case `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';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518  rm -f conf$$.dir/conf$$.file
519else
520  rm -f conf$$.dir
521  mkdir conf$$.dir 2>/dev/null
522fi
523if (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
537else
538  as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544  as_mkdir_p='mkdir -p "$as_dir"'
545else
546  test -d ./-p && rmdir ./-p
547  as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_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.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 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.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='DHCP'
582PACKAGE_TARNAME='dhcp'
583PACKAGE_VERSION='4.3.0'
584PACKAGE_STRING='DHCP 4.3.0'
585PACKAGE_BUGREPORT='dhcp-users@isc.org'
586PACKAGE_URL=''
587
588# Factoring default headers for most tests.
589ac_includes_default="\
590#include <stdio.h>
591#ifdef HAVE_SYS_TYPES_H
592# include <sys/types.h>
593#endif
594#ifdef HAVE_SYS_STAT_H
595# include <sys/stat.h>
596#endif
597#ifdef STDC_HEADERS
598# include <stdlib.h>
599# include <stddef.h>
600#else
601# ifdef HAVE_STDLIB_H
602#  include <stdlib.h>
603# endif
604#endif
605#ifdef HAVE_STRING_H
606# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607#  include <memory.h>
608# endif
609# include <string.h>
610#endif
611#ifdef HAVE_STRINGS_H
612# include <strings.h>
613#endif
614#ifdef HAVE_INTTYPES_H
615# include <inttypes.h>
616#endif
617#ifdef HAVE_STDINT_H
618# include <stdint.h>
619#endif
620#ifdef HAVE_UNISTD_H
621# include <unistd.h>
622#endif"
623
624ac_subst_vars='am__EXEEXT_FALSE
625am__EXEEXT_TRUE
626LTLIBOBJS
627LIBOBJS
628LDAP_CFLAGS
629ac_prefix_program
630HAVE_ATF_FALSE
631HAVE_ATF_TRUE
632ATF_LDFLAGS
633ATF_CFLAGS
634byte_order
635RANLIB
636EGREP
637GREP
638CPP
639am__fastdepCC_FALSE
640am__fastdepCC_TRUE
641CCDEPMODE
642am__nodep
643AMDEPBACKSLASH
644AMDEP_FALSE
645AMDEP_TRUE
646am__quote
647am__include
648DEPDIR
649OBJEXT
650EXEEXT
651ac_ct_CC
652CPPFLAGS
653LDFLAGS
654CFLAGS
655CC
656host_os
657host_vendor
658host_cpu
659host
660build_os
661build_vendor
662build_cpu
663build
664MAINT
665MAINTAINER_MODE_FALSE
666MAINTAINER_MODE_TRUE
667AM_BACKSLASH
668AM_DEFAULT_VERBOSITY
669AM_DEFAULT_V
670AM_V
671am__untar
672am__tar
673AMTAR
674am__leading_dot
675SET_MAKE
676AWK
677mkdir_p
678MKDIR_P
679INSTALL_STRIP_PROGRAM
680STRIP
681install_sh
682MAKEINFO
683AUTOHEADER
684AUTOMAKE
685AUTOCONF
686ACLOCAL
687VERSION
688PACKAGE
689CYGPATH_W
690am__isrc
691INSTALL_DATA
692INSTALL_SCRIPT
693INSTALL_PROGRAM
694target_alias
695host_alias
696build_alias
697LIBS
698ECHO_T
699ECHO_N
700ECHO_C
701DEFS
702mandir
703localedir
704libdir
705psdir
706pdfdir
707dvidir
708htmldir
709infodir
710docdir
711oldincludedir
712includedir
713localstatedir
714sharedstatedir
715sysconfdir
716datadir
717datarootdir
718libexecdir
719sbindir
720bindir
721program_transform_name
722prefix
723exec_prefix
724PACKAGE_URL
725PACKAGE_BUGREPORT
726PACKAGE_STRING
727PACKAGE_VERSION
728PACKAGE_TARNAME
729PACKAGE_NAME
730PATH_SEPARATOR
731SHELL'
732ac_subst_files=''
733ac_user_opts='
734enable_option_checking
735enable_silent_rules
736enable_maintainer_mode
737enable_dependency_tracking
738enable_debug
739enable_failover
740enable_execute
741enable_tracing
742enable_delayed_ack
743enable_dhcpv6
744enable_paranoia
745enable_early_chroot
746enable_ipv4_pktinfo
747enable_use_sockets
748enable_secs_byteorder
749with_atf
750with_srv_lease_file
751with_srv6_lease_file
752with_cli_lease_file
753with_cli6_lease_file
754with_srv_pid_file
755with_srv6_pid_file
756with_cli_pid_file
757with_cli6_pid_file
758with_relay_pid_file
759with_relay6_pid_file
760with_libbind
761with_ldap
762with_ldapcrypto
763'
764      ac_precious_vars='build_alias
765host_alias
766target_alias
767CC
768CFLAGS
769LDFLAGS
770LIBS
771CPPFLAGS
772CPP'
773
774
775# Initialize some variables set by options.
776ac_init_help=
777ac_init_version=false
778ac_unrecognized_opts=
779ac_unrecognized_sep=
780# The variables have the same names as the options, with
781# dashes changed to underlines.
782cache_file=/dev/null
783exec_prefix=NONE
784no_create=
785no_recursion=
786prefix=NONE
787program_prefix=NONE
788program_suffix=NONE
789program_transform_name=s,x,x,
790silent=
791site=
792srcdir=
793verbose=
794x_includes=NONE
795x_libraries=NONE
796
797# Installation directory options.
798# These are left unexpanded so users can "make install exec_prefix=/foo"
799# and all the variables that are supposed to be based on exec_prefix
800# by default will actually change.
801# Use braces instead of parens because sh, perl, etc. also accept them.
802# (The list follows the same order as the GNU Coding Standards.)
803bindir='${exec_prefix}/bin'
804sbindir='${exec_prefix}/sbin'
805libexecdir='${exec_prefix}/libexec'
806datarootdir='${prefix}/share'
807datadir='${datarootdir}'
808sysconfdir='${prefix}/etc'
809sharedstatedir='${prefix}/com'
810localstatedir='${prefix}/var'
811includedir='${prefix}/include'
812oldincludedir='/usr/include'
813docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
814infodir='${datarootdir}/info'
815htmldir='${docdir}'
816dvidir='${docdir}'
817pdfdir='${docdir}'
818psdir='${docdir}'
819libdir='${exec_prefix}/lib'
820localedir='${datarootdir}/locale'
821mandir='${datarootdir}/man'
822
823ac_prev=
824ac_dashdash=
825for ac_option
826do
827  # If the previous option needs an argument, assign it.
828  if test -n "$ac_prev"; then
829    eval $ac_prev=\$ac_option
830    ac_prev=
831    continue
832  fi
833
834  case $ac_option in
835  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
836  *=)   ac_optarg= ;;
837  *)    ac_optarg=yes ;;
838  esac
839
840  # Accept the important Cygnus configure options, so we can diagnose typos.
841
842  case $ac_dashdash$ac_option in
843  --)
844    ac_dashdash=yes ;;
845
846  -bindir | --bindir | --bindi | --bind | --bin | --bi)
847    ac_prev=bindir ;;
848  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
849    bindir=$ac_optarg ;;
850
851  -build | --build | --buil | --bui | --bu)
852    ac_prev=build_alias ;;
853  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
854    build_alias=$ac_optarg ;;
855
856  -cache-file | --cache-file | --cache-fil | --cache-fi \
857  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
858    ac_prev=cache_file ;;
859  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
860  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
861    cache_file=$ac_optarg ;;
862
863  --config-cache | -C)
864    cache_file=config.cache ;;
865
866  -datadir | --datadir | --datadi | --datad)
867    ac_prev=datadir ;;
868  -datadir=* | --datadir=* | --datadi=* | --datad=*)
869    datadir=$ac_optarg ;;
870
871  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
872  | --dataroo | --dataro | --datar)
873    ac_prev=datarootdir ;;
874  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
875  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
876    datarootdir=$ac_optarg ;;
877
878  -disable-* | --disable-*)
879    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
880    # Reject names that are not valid shell variable names.
881    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
882      as_fn_error $? "invalid feature name: $ac_useropt"
883    ac_useropt_orig=$ac_useropt
884    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
885    case $ac_user_opts in
886      *"
887"enable_$ac_useropt"
888"*) ;;
889      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
890	 ac_unrecognized_sep=', ';;
891    esac
892    eval enable_$ac_useropt=no ;;
893
894  -docdir | --docdir | --docdi | --doc | --do)
895    ac_prev=docdir ;;
896  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
897    docdir=$ac_optarg ;;
898
899  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
900    ac_prev=dvidir ;;
901  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
902    dvidir=$ac_optarg ;;
903
904  -enable-* | --enable-*)
905    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
906    # Reject names that are not valid shell variable names.
907    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
908      as_fn_error $? "invalid feature name: $ac_useropt"
909    ac_useropt_orig=$ac_useropt
910    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
911    case $ac_user_opts in
912      *"
913"enable_$ac_useropt"
914"*) ;;
915      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
916	 ac_unrecognized_sep=', ';;
917    esac
918    eval enable_$ac_useropt=\$ac_optarg ;;
919
920  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
921  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
922  | --exec | --exe | --ex)
923    ac_prev=exec_prefix ;;
924  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
925  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
926  | --exec=* | --exe=* | --ex=*)
927    exec_prefix=$ac_optarg ;;
928
929  -gas | --gas | --ga | --g)
930    # Obsolete; use --with-gas.
931    with_gas=yes ;;
932
933  -help | --help | --hel | --he | -h)
934    ac_init_help=long ;;
935  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
936    ac_init_help=recursive ;;
937  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
938    ac_init_help=short ;;
939
940  -host | --host | --hos | --ho)
941    ac_prev=host_alias ;;
942  -host=* | --host=* | --hos=* | --ho=*)
943    host_alias=$ac_optarg ;;
944
945  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
946    ac_prev=htmldir ;;
947  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
948  | --ht=*)
949    htmldir=$ac_optarg ;;
950
951  -includedir | --includedir | --includedi | --included | --include \
952  | --includ | --inclu | --incl | --inc)
953    ac_prev=includedir ;;
954  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
955  | --includ=* | --inclu=* | --incl=* | --inc=*)
956    includedir=$ac_optarg ;;
957
958  -infodir | --infodir | --infodi | --infod | --info | --inf)
959    ac_prev=infodir ;;
960  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
961    infodir=$ac_optarg ;;
962
963  -libdir | --libdir | --libdi | --libd)
964    ac_prev=libdir ;;
965  -libdir=* | --libdir=* | --libdi=* | --libd=*)
966    libdir=$ac_optarg ;;
967
968  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
969  | --libexe | --libex | --libe)
970    ac_prev=libexecdir ;;
971  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
972  | --libexe=* | --libex=* | --libe=*)
973    libexecdir=$ac_optarg ;;
974
975  -localedir | --localedir | --localedi | --localed | --locale)
976    ac_prev=localedir ;;
977  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
978    localedir=$ac_optarg ;;
979
980  -localstatedir | --localstatedir | --localstatedi | --localstated \
981  | --localstate | --localstat | --localsta | --localst | --locals)
982    ac_prev=localstatedir ;;
983  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
984  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
985    localstatedir=$ac_optarg ;;
986
987  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
988    ac_prev=mandir ;;
989  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
990    mandir=$ac_optarg ;;
991
992  -nfp | --nfp | --nf)
993    # Obsolete; use --without-fp.
994    with_fp=no ;;
995
996  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
997  | --no-cr | --no-c | -n)
998    no_create=yes ;;
999
1000  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1001  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1002    no_recursion=yes ;;
1003
1004  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1005  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1006  | --oldin | --oldi | --old | --ol | --o)
1007    ac_prev=oldincludedir ;;
1008  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1009  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1010  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1011    oldincludedir=$ac_optarg ;;
1012
1013  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1014    ac_prev=prefix ;;
1015  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1016    prefix=$ac_optarg ;;
1017
1018  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1019  | --program-pre | --program-pr | --program-p)
1020    ac_prev=program_prefix ;;
1021  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1022  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1023    program_prefix=$ac_optarg ;;
1024
1025  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1026  | --program-suf | --program-su | --program-s)
1027    ac_prev=program_suffix ;;
1028  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1029  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1030    program_suffix=$ac_optarg ;;
1031
1032  -program-transform-name | --program-transform-name \
1033  | --program-transform-nam | --program-transform-na \
1034  | --program-transform-n | --program-transform- \
1035  | --program-transform | --program-transfor \
1036  | --program-transfo | --program-transf \
1037  | --program-trans | --program-tran \
1038  | --progr-tra | --program-tr | --program-t)
1039    ac_prev=program_transform_name ;;
1040  -program-transform-name=* | --program-transform-name=* \
1041  | --program-transform-nam=* | --program-transform-na=* \
1042  | --program-transform-n=* | --program-transform-=* \
1043  | --program-transform=* | --program-transfor=* \
1044  | --program-transfo=* | --program-transf=* \
1045  | --program-trans=* | --program-tran=* \
1046  | --progr-tra=* | --program-tr=* | --program-t=*)
1047    program_transform_name=$ac_optarg ;;
1048
1049  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1050    ac_prev=pdfdir ;;
1051  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1052    pdfdir=$ac_optarg ;;
1053
1054  -psdir | --psdir | --psdi | --psd | --ps)
1055    ac_prev=psdir ;;
1056  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1057    psdir=$ac_optarg ;;
1058
1059  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060  | -silent | --silent | --silen | --sile | --sil)
1061    silent=yes ;;
1062
1063  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1064    ac_prev=sbindir ;;
1065  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1066  | --sbi=* | --sb=*)
1067    sbindir=$ac_optarg ;;
1068
1069  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1070  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1071  | --sharedst | --shareds | --shared | --share | --shar \
1072  | --sha | --sh)
1073    ac_prev=sharedstatedir ;;
1074  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1075  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1076  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1077  | --sha=* | --sh=*)
1078    sharedstatedir=$ac_optarg ;;
1079
1080  -site | --site | --sit)
1081    ac_prev=site ;;
1082  -site=* | --site=* | --sit=*)
1083    site=$ac_optarg ;;
1084
1085  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1086    ac_prev=srcdir ;;
1087  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1088    srcdir=$ac_optarg ;;
1089
1090  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1091  | --syscon | --sysco | --sysc | --sys | --sy)
1092    ac_prev=sysconfdir ;;
1093  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1094  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1095    sysconfdir=$ac_optarg ;;
1096
1097  -target | --target | --targe | --targ | --tar | --ta | --t)
1098    ac_prev=target_alias ;;
1099  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1100    target_alias=$ac_optarg ;;
1101
1102  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1103    verbose=yes ;;
1104
1105  -version | --version | --versio | --versi | --vers | -V)
1106    ac_init_version=: ;;
1107
1108  -with-* | --with-*)
1109    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1110    # Reject names that are not valid shell variable names.
1111    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112      as_fn_error $? "invalid package name: $ac_useropt"
1113    ac_useropt_orig=$ac_useropt
1114    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115    case $ac_user_opts in
1116      *"
1117"with_$ac_useropt"
1118"*) ;;
1119      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1120	 ac_unrecognized_sep=', ';;
1121    esac
1122    eval with_$ac_useropt=\$ac_optarg ;;
1123
1124  -without-* | --without-*)
1125    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1126    # Reject names that are not valid shell variable names.
1127    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128      as_fn_error $? "invalid package name: $ac_useropt"
1129    ac_useropt_orig=$ac_useropt
1130    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131    case $ac_user_opts in
1132      *"
1133"with_$ac_useropt"
1134"*) ;;
1135      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1136	 ac_unrecognized_sep=', ';;
1137    esac
1138    eval with_$ac_useropt=no ;;
1139
1140  --x)
1141    # Obsolete; use --with-x.
1142    with_x=yes ;;
1143
1144  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1145  | --x-incl | --x-inc | --x-in | --x-i)
1146    ac_prev=x_includes ;;
1147  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1148  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1149    x_includes=$ac_optarg ;;
1150
1151  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1152  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1153    ac_prev=x_libraries ;;
1154  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1155  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1156    x_libraries=$ac_optarg ;;
1157
1158  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1159Try \`$0 --help' for more information"
1160    ;;
1161
1162  *=*)
1163    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1164    # Reject names that are not valid shell variable names.
1165    case $ac_envvar in #(
1166      '' | [0-9]* | *[!_$as_cr_alnum]* )
1167      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1168    esac
1169    eval $ac_envvar=\$ac_optarg
1170    export $ac_envvar ;;
1171
1172  *)
1173    # FIXME: should be removed in autoconf 3.0.
1174    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1175    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1176      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1177    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1178    ;;
1179
1180  esac
1181done
1182
1183if test -n "$ac_prev"; then
1184  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1185  as_fn_error $? "missing argument to $ac_option"
1186fi
1187
1188if test -n "$ac_unrecognized_opts"; then
1189  case $enable_option_checking in
1190    no) ;;
1191    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1192    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1193  esac
1194fi
1195
1196# Check all directory arguments for consistency.
1197for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1198		datadir sysconfdir sharedstatedir localstatedir includedir \
1199		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1200		libdir localedir mandir
1201do
1202  eval ac_val=\$$ac_var
1203  # Remove trailing slashes.
1204  case $ac_val in
1205    */ )
1206      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1207      eval $ac_var=\$ac_val;;
1208  esac
1209  # Be sure to have absolute directory names.
1210  case $ac_val in
1211    [\\/$]* | ?:[\\/]* )  continue;;
1212    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1213  esac
1214  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1215done
1216
1217# There might be people who depend on the old broken behavior: `$host'
1218# used to hold the argument of --host etc.
1219# FIXME: To remove some day.
1220build=$build_alias
1221host=$host_alias
1222target=$target_alias
1223
1224# FIXME: To remove some day.
1225if test "x$host_alias" != x; then
1226  if test "x$build_alias" = x; then
1227    cross_compiling=maybe
1228  elif test "x$build_alias" != "x$host_alias"; then
1229    cross_compiling=yes
1230  fi
1231fi
1232
1233ac_tool_prefix=
1234test -n "$host_alias" && ac_tool_prefix=$host_alias-
1235
1236test "$silent" = yes && exec 6>/dev/null
1237
1238
1239ac_pwd=`pwd` && test -n "$ac_pwd" &&
1240ac_ls_di=`ls -di .` &&
1241ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1242  as_fn_error $? "working directory cannot be determined"
1243test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1244  as_fn_error $? "pwd does not report name of working directory"
1245
1246
1247# Find the source files, if location was not specified.
1248if test -z "$srcdir"; then
1249  ac_srcdir_defaulted=yes
1250  # Try the directory containing this script, then the parent directory.
1251  ac_confdir=`$as_dirname -- "$as_myself" ||
1252$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1253	 X"$as_myself" : 'X\(//\)[^/]' \| \
1254	 X"$as_myself" : 'X\(//\)$' \| \
1255	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1256$as_echo X"$as_myself" |
1257    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1258	    s//\1/
1259	    q
1260	  }
1261	  /^X\(\/\/\)[^/].*/{
1262	    s//\1/
1263	    q
1264	  }
1265	  /^X\(\/\/\)$/{
1266	    s//\1/
1267	    q
1268	  }
1269	  /^X\(\/\).*/{
1270	    s//\1/
1271	    q
1272	  }
1273	  s/.*/./; q'`
1274  srcdir=$ac_confdir
1275  if test ! -r "$srcdir/$ac_unique_file"; then
1276    srcdir=..
1277  fi
1278else
1279  ac_srcdir_defaulted=no
1280fi
1281if test ! -r "$srcdir/$ac_unique_file"; then
1282  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1283  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1284fi
1285ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1286ac_abs_confdir=`(
1287	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1288	pwd)`
1289# When building in place, set srcdir=.
1290if test "$ac_abs_confdir" = "$ac_pwd"; then
1291  srcdir=.
1292fi
1293# Remove unnecessary trailing slashes from srcdir.
1294# Double slashes in file names in object file debugging info
1295# mess up M-x gdb in Emacs.
1296case $srcdir in
1297*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1298esac
1299for ac_var in $ac_precious_vars; do
1300  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1301  eval ac_env_${ac_var}_value=\$${ac_var}
1302  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1303  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1304done
1305
1306#
1307# Report the --help message.
1308#
1309if test "$ac_init_help" = "long"; then
1310  # Omit some internal or obsolete options to make the list less imposing.
1311  # This message is too long to be a string in the A/UX 3.1 sh.
1312  cat <<_ACEOF
1313\`configure' configures DHCP 4.3.0 to adapt to many kinds of systems.
1314
1315Usage: $0 [OPTION]... [VAR=VALUE]...
1316
1317To assign environment variables (e.g., CC, CFLAGS...), specify them as
1318VAR=VALUE.  See below for descriptions of some of the useful variables.
1319
1320Defaults for the options are specified in brackets.
1321
1322Configuration:
1323  -h, --help              display this help and exit
1324      --help=short        display options specific to this package
1325      --help=recursive    display the short help of all the included packages
1326  -V, --version           display version information and exit
1327  -q, --quiet, --silent   do not print \`checking ...' messages
1328      --cache-file=FILE   cache test results in FILE [disabled]
1329  -C, --config-cache      alias for \`--cache-file=config.cache'
1330  -n, --no-create         do not create output files
1331      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1332
1333Installation directories:
1334  --prefix=PREFIX         install architecture-independent files in PREFIX
1335                          [$ac_default_prefix]
1336  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1337                          [PREFIX]
1338
1339By default, \`make install' will install all the files in
1340\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1341an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1342for instance \`--prefix=\$HOME'.
1343
1344For better control, use the options below.
1345
1346Fine tuning of the installation directories:
1347  --bindir=DIR            user executables [EPREFIX/bin]
1348  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1349  --libexecdir=DIR        program executables [EPREFIX/libexec]
1350  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1351  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1352  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1353  --libdir=DIR            object code libraries [EPREFIX/lib]
1354  --includedir=DIR        C header files [PREFIX/include]
1355  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1356  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1357  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1358  --infodir=DIR           info documentation [DATAROOTDIR/info]
1359  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1360  --mandir=DIR            man documentation [DATAROOTDIR/man]
1361  --docdir=DIR            documentation root [DATAROOTDIR/doc/dhcp]
1362  --htmldir=DIR           html documentation [DOCDIR]
1363  --dvidir=DIR            dvi documentation [DOCDIR]
1364  --pdfdir=DIR            pdf documentation [DOCDIR]
1365  --psdir=DIR             ps documentation [DOCDIR]
1366_ACEOF
1367
1368  cat <<\_ACEOF
1369
1370Program names:
1371  --program-prefix=PREFIX            prepend PREFIX to installed program names
1372  --program-suffix=SUFFIX            append SUFFIX to installed program names
1373  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1374
1375System types:
1376  --build=BUILD     configure for building on BUILD [guessed]
1377  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1378_ACEOF
1379fi
1380
1381if test -n "$ac_init_help"; then
1382  case $ac_init_help in
1383     short | recursive ) echo "Configuration of DHCP 4.3.0:";;
1384   esac
1385  cat <<\_ACEOF
1386
1387Optional Features:
1388  --disable-option-checking  ignore unrecognized --enable/--with options
1389  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1390  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1391  --enable-silent-rules   less verbose build output (undo: "make V=1")
1392  --disable-silent-rules  verbose build output (undo: "make V=0")
1393  --enable-maintainer-mode
1394                          enable make rules and dependencies not useful (and
1395                          sometimes confusing) to the casual installer
1396  --enable-dependency-tracking
1397                          do not reject slow dependency extractors
1398  --disable-dependency-tracking
1399                          speeds up one-time build
1400  --enable-debug          create a debug-only version of the software (default
1401                          is no).
1402  --enable-failover       enable support for failover (default is yes)
1403  --enable-execute        enable support for execute() in config (default is
1404                          yes)
1405  --enable-tracing        enable support for server activity tracing (default
1406                          is yes)
1407  --enable-delayed-ack    queues multiple DHCPACK replies (default is no)
1408  --enable-dhcpv6         enable support for DHCPv6 (default is yes)
1409  --enable-paranoia       enable support for chroot/setuid (default is no)
1410  --enable-early-chroot   enable chrooting prior to configuration (default is
1411                          no)
1412  --enable-ipv4-pktinfo   enable use of pktinfo on IPv4 sockets (default is
1413                          no)
1414  --enable-use-sockets    use the standard BSD socket API (default is no)
1415  --enable-secs-byteorder Correct bad byteorders in the secs field (default is
1416                          no).
1417
1418Optional Packages:
1419  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1420  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1421  --with-atf=PATH         specify location where atf was installed
1422  --with-srv-lease-file=PATH
1423                          File for dhcpd leases (default is
1424                          LOCALSTATEDIR/db/dhcpd.leases)
1425  --with-srv6-lease-file=PATH
1426                          File for dhcpd6 leases (default is
1427                          LOCALSTATEDIR/db/dhcpd6.leases)
1428  --with-cli-lease-file=PATH
1429                          File for dhclient leases (default is
1430                          LOCALSTATEDIR/db/dhclient.leases)
1431  --with-cli6-lease-file=PATH
1432                          File for dhclient6 leases (default is
1433                          LOCALSTATEDIR/db/dhclient6.leases)
1434  --with-srv-pid-file=PATH
1435                          File for dhcpd process information (default is
1436                          LOCALSTATEDIR/run/dhcpd.pid)
1437  --with-srv6-pid-file=PATH
1438                          File for dhcpd6 process information (default is
1439                          LOCALSTATEDIR/run/dhcpd6.pid)
1440  --with-cli-pid-file=PATH
1441                          File for dhclient process information (default is
1442                          LOCALSTATEDIR/run/dhclient.pid)
1443  --with-cli6-pid-file=PATH
1444                          File for dhclient6 process information (default is
1445                          LOCALSTATEDIR/run/dhclient6.pid)
1446  --with-relay-pid-file=PATH
1447                          File for dhcrelay process information (default is
1448                          LOCALSTATEDIR/run/dhcrelay.pid)
1449  --with-relay6-pid-file=PATH
1450                          File for dhcrelay6 process information (default is
1451                          LOCALSTATEDIR/run/dhcrelay6.pid)
1452  --with-libbind=PATH     bind includes and libraries are in PATH (default is
1453                          ./bind)
1454  --with-ldap             enable OpenLDAP support in dhcpd (default is no)
1455  --with-ldapcrypto       enable OpenLDAP crypto support in dhcpd (default is
1456                          no)
1457
1458Some influential environment variables:
1459  CC          C compiler command
1460  CFLAGS      C compiler flags
1461  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1462              nonstandard directory <lib dir>
1463  LIBS        libraries to pass to the linker, e.g. -l<library>
1464  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1465              you have headers in a nonstandard directory <include dir>
1466  CPP         C preprocessor
1467
1468Use these variables to override the choices made by `configure' or to help
1469it to find libraries and programs with nonstandard names/locations.
1470
1471Report bugs to <dhcp-users@isc.org>.
1472_ACEOF
1473ac_status=$?
1474fi
1475
1476if test "$ac_init_help" = "recursive"; then
1477  # If there are subdirs, report their specific --help.
1478  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479    test -d "$ac_dir" ||
1480      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1481      continue
1482    ac_builddir=.
1483
1484case "$ac_dir" in
1485.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486*)
1487  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1488  # A ".." for each directory in $ac_dir_suffix.
1489  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1490  case $ac_top_builddir_sub in
1491  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493  esac ;;
1494esac
1495ac_abs_top_builddir=$ac_pwd
1496ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497# for backward compatibility:
1498ac_top_builddir=$ac_top_build_prefix
1499
1500case $srcdir in
1501  .)  # We are building in place.
1502    ac_srcdir=.
1503    ac_top_srcdir=$ac_top_builddir_sub
1504    ac_abs_top_srcdir=$ac_pwd ;;
1505  [\\/]* | ?:[\\/]* )  # Absolute name.
1506    ac_srcdir=$srcdir$ac_dir_suffix;
1507    ac_top_srcdir=$srcdir
1508    ac_abs_top_srcdir=$srcdir ;;
1509  *) # Relative name.
1510    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511    ac_top_srcdir=$ac_top_build_prefix$srcdir
1512    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513esac
1514ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515
1516    cd "$ac_dir" || { ac_status=$?; continue; }
1517    # Check for guested configure.
1518    if test -f "$ac_srcdir/configure.gnu"; then
1519      echo &&
1520      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521    elif test -f "$ac_srcdir/configure"; then
1522      echo &&
1523      $SHELL "$ac_srcdir/configure" --help=recursive
1524    else
1525      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1526    fi || ac_status=$?
1527    cd "$ac_pwd" || { ac_status=$?; break; }
1528  done
1529fi
1530
1531test -n "$ac_init_help" && exit $ac_status
1532if $ac_init_version; then
1533  cat <<\_ACEOF
1534DHCP configure 4.3.0
1535generated by GNU Autoconf 2.69
1536
1537Copyright (C) 2012 Free Software Foundation, Inc.
1538This configure script is free software; the Free Software Foundation
1539gives unlimited permission to copy, distribute and modify it.
1540_ACEOF
1541  exit
1542fi
1543
1544## ------------------------ ##
1545## Autoconf initialization. ##
1546## ------------------------ ##
1547
1548# ac_fn_c_try_compile LINENO
1549# --------------------------
1550# Try to compile conftest.$ac_ext, and return whether this succeeded.
1551ac_fn_c_try_compile ()
1552{
1553  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554  rm -f conftest.$ac_objext
1555  if { { ac_try="$ac_compile"
1556case "(($ac_try" in
1557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558  *) ac_try_echo=$ac_try;;
1559esac
1560eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561$as_echo "$ac_try_echo"; } >&5
1562  (eval "$ac_compile") 2>conftest.err
1563  ac_status=$?
1564  if test -s conftest.err; then
1565    grep -v '^ *+' conftest.err >conftest.er1
1566    cat conftest.er1 >&5
1567    mv -f conftest.er1 conftest.err
1568  fi
1569  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570  test $ac_status = 0; } && {
1571	 test -z "$ac_c_werror_flag" ||
1572	 test ! -s conftest.err
1573       } && test -s conftest.$ac_objext; then :
1574  ac_retval=0
1575else
1576  $as_echo "$as_me: failed program was:" >&5
1577sed 's/^/| /' conftest.$ac_ext >&5
1578
1579	ac_retval=1
1580fi
1581  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1582  as_fn_set_status $ac_retval
1583
1584} # ac_fn_c_try_compile
1585
1586# ac_fn_c_try_cpp LINENO
1587# ----------------------
1588# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1589ac_fn_c_try_cpp ()
1590{
1591  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592  if { { ac_try="$ac_cpp conftest.$ac_ext"
1593case "(($ac_try" in
1594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595  *) ac_try_echo=$ac_try;;
1596esac
1597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598$as_echo "$ac_try_echo"; } >&5
1599  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1600  ac_status=$?
1601  if test -s conftest.err; then
1602    grep -v '^ *+' conftest.err >conftest.er1
1603    cat conftest.er1 >&5
1604    mv -f conftest.er1 conftest.err
1605  fi
1606  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607  test $ac_status = 0; } > conftest.i && {
1608	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1609	 test ! -s conftest.err
1610       }; then :
1611  ac_retval=0
1612else
1613  $as_echo "$as_me: failed program was:" >&5
1614sed 's/^/| /' conftest.$ac_ext >&5
1615
1616    ac_retval=1
1617fi
1618  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619  as_fn_set_status $ac_retval
1620
1621} # ac_fn_c_try_cpp
1622
1623# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1624# -------------------------------------------------------
1625# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1626# the include files in INCLUDES and setting the cache variable VAR
1627# accordingly.
1628ac_fn_c_check_header_mongrel ()
1629{
1630  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631  if eval \${$3+:} false; then :
1632  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1633$as_echo_n "checking for $2... " >&6; }
1634if eval \${$3+:} false; then :
1635  $as_echo_n "(cached) " >&6
1636fi
1637eval ac_res=\$$3
1638	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1639$as_echo "$ac_res" >&6; }
1640else
1641  # Is the header compilable?
1642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1643$as_echo_n "checking $2 usability... " >&6; }
1644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1645/* end confdefs.h.  */
1646$4
1647#include <$2>
1648_ACEOF
1649if ac_fn_c_try_compile "$LINENO"; then :
1650  ac_header_compiler=yes
1651else
1652  ac_header_compiler=no
1653fi
1654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1656$as_echo "$ac_header_compiler" >&6; }
1657
1658# Is the header present?
1659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1660$as_echo_n "checking $2 presence... " >&6; }
1661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1662/* end confdefs.h.  */
1663#include <$2>
1664_ACEOF
1665if ac_fn_c_try_cpp "$LINENO"; then :
1666  ac_header_preproc=yes
1667else
1668  ac_header_preproc=no
1669fi
1670rm -f conftest.err conftest.i conftest.$ac_ext
1671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1672$as_echo "$ac_header_preproc" >&6; }
1673
1674# So?  What about this header?
1675case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1676  yes:no: )
1677    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1678$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1679    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1680$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1681    ;;
1682  no:yes:* )
1683    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1684$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1685    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1686$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1687    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1688$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1689    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1690$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1691    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1692$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1693( $as_echo "## --------------------------------- ##
1694## Report this to dhcp-users@isc.org ##
1695## --------------------------------- ##"
1696     ) | sed "s/^/$as_me: WARNING:     /" >&2
1697    ;;
1698esac
1699  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1700$as_echo_n "checking for $2... " >&6; }
1701if eval \${$3+:} false; then :
1702  $as_echo_n "(cached) " >&6
1703else
1704  eval "$3=\$ac_header_compiler"
1705fi
1706eval ac_res=\$$3
1707	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1708$as_echo "$ac_res" >&6; }
1709fi
1710  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711
1712} # ac_fn_c_check_header_mongrel
1713
1714# ac_fn_c_try_run LINENO
1715# ----------------------
1716# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1717# that executables *can* be run.
1718ac_fn_c_try_run ()
1719{
1720  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721  if { { ac_try="$ac_link"
1722case "(($ac_try" in
1723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724  *) ac_try_echo=$ac_try;;
1725esac
1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727$as_echo "$ac_try_echo"; } >&5
1728  (eval "$ac_link") 2>&5
1729  ac_status=$?
1730  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1732  { { case "(($ac_try" in
1733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734  *) ac_try_echo=$ac_try;;
1735esac
1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737$as_echo "$ac_try_echo"; } >&5
1738  (eval "$ac_try") 2>&5
1739  ac_status=$?
1740  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741  test $ac_status = 0; }; }; then :
1742  ac_retval=0
1743else
1744  $as_echo "$as_me: program exited with status $ac_status" >&5
1745       $as_echo "$as_me: failed program was:" >&5
1746sed 's/^/| /' conftest.$ac_ext >&5
1747
1748       ac_retval=$ac_status
1749fi
1750  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1751  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752  as_fn_set_status $ac_retval
1753
1754} # ac_fn_c_try_run
1755
1756# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1757# -------------------------------------------------------
1758# Tests whether HEADER exists and can be compiled using the include files in
1759# INCLUDES, setting the cache variable VAR accordingly.
1760ac_fn_c_check_header_compile ()
1761{
1762  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764$as_echo_n "checking for $2... " >&6; }
1765if eval \${$3+:} false; then :
1766  $as_echo_n "(cached) " >&6
1767else
1768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769/* end confdefs.h.  */
1770$4
1771#include <$2>
1772_ACEOF
1773if ac_fn_c_try_compile "$LINENO"; then :
1774  eval "$3=yes"
1775else
1776  eval "$3=no"
1777fi
1778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1779fi
1780eval ac_res=\$$3
1781	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782$as_echo "$ac_res" >&6; }
1783  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784
1785} # ac_fn_c_check_header_compile
1786
1787# ac_fn_c_find_intX_t LINENO BITS VAR
1788# -----------------------------------
1789# Finds a signed integer type with width BITS, setting cache variable VAR
1790# accordingly.
1791ac_fn_c_find_intX_t ()
1792{
1793  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1795$as_echo_n "checking for int$2_t... " >&6; }
1796if eval \${$3+:} false; then :
1797  $as_echo_n "(cached) " >&6
1798else
1799  eval "$3=no"
1800     # Order is important - never check a type that is potentially smaller
1801     # than half of the expected target width.
1802     for ac_type in int$2_t 'int' 'long int' \
1803	 'long long int' 'short int' 'signed char'; do
1804       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805/* end confdefs.h.  */
1806$ac_includes_default
1807	     enum { N = $2 / 2 - 1 };
1808int
1809main ()
1810{
1811static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1812test_array [0] = 0;
1813return test_array [0];
1814
1815  ;
1816  return 0;
1817}
1818_ACEOF
1819if ac_fn_c_try_compile "$LINENO"; then :
1820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821/* end confdefs.h.  */
1822$ac_includes_default
1823	        enum { N = $2 / 2 - 1 };
1824int
1825main ()
1826{
1827static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1828		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1829test_array [0] = 0;
1830return test_array [0];
1831
1832  ;
1833  return 0;
1834}
1835_ACEOF
1836if ac_fn_c_try_compile "$LINENO"; then :
1837
1838else
1839  case $ac_type in #(
1840  int$2_t) :
1841    eval "$3=yes" ;; #(
1842  *) :
1843    eval "$3=\$ac_type" ;;
1844esac
1845fi
1846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1847fi
1848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1849       if eval test \"x\$"$3"\" = x"no"; then :
1850
1851else
1852  break
1853fi
1854     done
1855fi
1856eval ac_res=\$$3
1857	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858$as_echo "$ac_res" >&6; }
1859  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860
1861} # ac_fn_c_find_intX_t
1862
1863# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1864# -------------------------------------------
1865# Tests whether TYPE exists after having included INCLUDES, setting cache
1866# variable VAR accordingly.
1867ac_fn_c_check_type ()
1868{
1869  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871$as_echo_n "checking for $2... " >&6; }
1872if eval \${$3+:} false; then :
1873  $as_echo_n "(cached) " >&6
1874else
1875  eval "$3=no"
1876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877/* end confdefs.h.  */
1878$4
1879int
1880main ()
1881{
1882if (sizeof ($2))
1883	 return 0;
1884  ;
1885  return 0;
1886}
1887_ACEOF
1888if ac_fn_c_try_compile "$LINENO"; then :
1889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890/* end confdefs.h.  */
1891$4
1892int
1893main ()
1894{
1895if (sizeof (($2)))
1896	    return 0;
1897  ;
1898  return 0;
1899}
1900_ACEOF
1901if ac_fn_c_try_compile "$LINENO"; then :
1902
1903else
1904  eval "$3=yes"
1905fi
1906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907fi
1908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1909fi
1910eval ac_res=\$$3
1911	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912$as_echo "$ac_res" >&6; }
1913  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914
1915} # ac_fn_c_check_type
1916
1917# ac_fn_c_find_uintX_t LINENO BITS VAR
1918# ------------------------------------
1919# Finds an unsigned integer type with width BITS, setting cache variable VAR
1920# accordingly.
1921ac_fn_c_find_uintX_t ()
1922{
1923  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1925$as_echo_n "checking for uint$2_t... " >&6; }
1926if eval \${$3+:} false; then :
1927  $as_echo_n "(cached) " >&6
1928else
1929  eval "$3=no"
1930     # Order is important - never check a type that is potentially smaller
1931     # than half of the expected target width.
1932     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1933	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1934       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935/* end confdefs.h.  */
1936$ac_includes_default
1937int
1938main ()
1939{
1940static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1941test_array [0] = 0;
1942return test_array [0];
1943
1944  ;
1945  return 0;
1946}
1947_ACEOF
1948if ac_fn_c_try_compile "$LINENO"; then :
1949  case $ac_type in #(
1950  uint$2_t) :
1951    eval "$3=yes" ;; #(
1952  *) :
1953    eval "$3=\$ac_type" ;;
1954esac
1955fi
1956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957       if eval test \"x\$"$3"\" = x"no"; then :
1958
1959else
1960  break
1961fi
1962     done
1963fi
1964eval ac_res=\$$3
1965	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966$as_echo "$ac_res" >&6; }
1967  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968
1969} # ac_fn_c_find_uintX_t
1970
1971# ac_fn_c_try_link LINENO
1972# -----------------------
1973# Try to link conftest.$ac_ext, and return whether this succeeded.
1974ac_fn_c_try_link ()
1975{
1976  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1977  rm -f conftest.$ac_objext conftest$ac_exeext
1978  if { { ac_try="$ac_link"
1979case "(($ac_try" in
1980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1981  *) ac_try_echo=$ac_try;;
1982esac
1983eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1984$as_echo "$ac_try_echo"; } >&5
1985  (eval "$ac_link") 2>conftest.err
1986  ac_status=$?
1987  if test -s conftest.err; then
1988    grep -v '^ *+' conftest.err >conftest.er1
1989    cat conftest.er1 >&5
1990    mv -f conftest.er1 conftest.err
1991  fi
1992  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993  test $ac_status = 0; } && {
1994	 test -z "$ac_c_werror_flag" ||
1995	 test ! -s conftest.err
1996       } && test -s conftest$ac_exeext && {
1997	 test "$cross_compiling" = yes ||
1998	 test -x conftest$ac_exeext
1999       }; then :
2000  ac_retval=0
2001else
2002  $as_echo "$as_me: failed program was:" >&5
2003sed 's/^/| /' conftest.$ac_ext >&5
2004
2005	ac_retval=1
2006fi
2007  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2008  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2009  # interfere with the next link command; also delete a directory that is
2010  # left behind by Apple's compiler.  We do this before executing the actions.
2011  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2012  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013  as_fn_set_status $ac_retval
2014
2015} # ac_fn_c_try_link
2016
2017# ac_fn_c_check_func LINENO FUNC VAR
2018# ----------------------------------
2019# Tests whether FUNC exists, setting the cache variable VAR accordingly
2020ac_fn_c_check_func ()
2021{
2022  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2024$as_echo_n "checking for $2... " >&6; }
2025if eval \${$3+:} false; then :
2026  $as_echo_n "(cached) " >&6
2027else
2028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029/* end confdefs.h.  */
2030/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2031   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2032#define $2 innocuous_$2
2033
2034/* System header to define __stub macros and hopefully few prototypes,
2035    which can conflict with char $2 (); below.
2036    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2037    <limits.h> exists even on freestanding compilers.  */
2038
2039#ifdef __STDC__
2040# include <limits.h>
2041#else
2042# include <assert.h>
2043#endif
2044
2045#undef $2
2046
2047/* Override any GCC internal prototype to avoid an error.
2048   Use char because int might match the return type of a GCC
2049   builtin and then its argument prototype would still apply.  */
2050#ifdef __cplusplus
2051extern "C"
2052#endif
2053char $2 ();
2054/* The GNU C library defines this for functions which it implements
2055    to always fail with ENOSYS.  Some functions are actually named
2056    something starting with __ and the normal name is an alias.  */
2057#if defined __stub_$2 || defined __stub___$2
2058choke me
2059#endif
2060
2061int
2062main ()
2063{
2064return $2 ();
2065  ;
2066  return 0;
2067}
2068_ACEOF
2069if ac_fn_c_try_link "$LINENO"; then :
2070  eval "$3=yes"
2071else
2072  eval "$3=no"
2073fi
2074rm -f core conftest.err conftest.$ac_objext \
2075    conftest$ac_exeext conftest.$ac_ext
2076fi
2077eval ac_res=\$$3
2078	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079$as_echo "$ac_res" >&6; }
2080  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2081
2082} # ac_fn_c_check_func
2083
2084# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2085# ----------------------------------------------------
2086# Tries to find if the field MEMBER exists in type AGGR, after including
2087# INCLUDES, setting cache variable VAR accordingly.
2088ac_fn_c_check_member ()
2089{
2090  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2092$as_echo_n "checking for $2.$3... " >&6; }
2093if eval \${$4+:} false; then :
2094  $as_echo_n "(cached) " >&6
2095else
2096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097/* end confdefs.h.  */
2098$5
2099int
2100main ()
2101{
2102static $2 ac_aggr;
2103if (ac_aggr.$3)
2104return 0;
2105  ;
2106  return 0;
2107}
2108_ACEOF
2109if ac_fn_c_try_compile "$LINENO"; then :
2110  eval "$4=yes"
2111else
2112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113/* end confdefs.h.  */
2114$5
2115int
2116main ()
2117{
2118static $2 ac_aggr;
2119if (sizeof ac_aggr.$3)
2120return 0;
2121  ;
2122  return 0;
2123}
2124_ACEOF
2125if ac_fn_c_try_compile "$LINENO"; then :
2126  eval "$4=yes"
2127else
2128  eval "$4=no"
2129fi
2130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131fi
2132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2133fi
2134eval ac_res=\$$4
2135	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2136$as_echo "$ac_res" >&6; }
2137  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2138
2139} # ac_fn_c_check_member
2140
2141# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2142# --------------------------------------------
2143# Tries to find the compile-time value of EXPR in a program that includes
2144# INCLUDES, setting VAR accordingly. Returns whether the value could be
2145# computed
2146ac_fn_c_compute_int ()
2147{
2148  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2149  if test "$cross_compiling" = yes; then
2150    # Depending upon the size, compute the lo and hi bounds.
2151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152/* end confdefs.h.  */
2153$4
2154int
2155main ()
2156{
2157static int test_array [1 - 2 * !(($2) >= 0)];
2158test_array [0] = 0;
2159return test_array [0];
2160
2161  ;
2162  return 0;
2163}
2164_ACEOF
2165if ac_fn_c_try_compile "$LINENO"; then :
2166  ac_lo=0 ac_mid=0
2167  while :; do
2168    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169/* end confdefs.h.  */
2170$4
2171int
2172main ()
2173{
2174static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2175test_array [0] = 0;
2176return test_array [0];
2177
2178  ;
2179  return 0;
2180}
2181_ACEOF
2182if ac_fn_c_try_compile "$LINENO"; then :
2183  ac_hi=$ac_mid; break
2184else
2185  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2186			if test $ac_lo -le $ac_mid; then
2187			  ac_lo= ac_hi=
2188			  break
2189			fi
2190			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2191fi
2192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193  done
2194else
2195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196/* end confdefs.h.  */
2197$4
2198int
2199main ()
2200{
2201static int test_array [1 - 2 * !(($2) < 0)];
2202test_array [0] = 0;
2203return test_array [0];
2204
2205  ;
2206  return 0;
2207}
2208_ACEOF
2209if ac_fn_c_try_compile "$LINENO"; then :
2210  ac_hi=-1 ac_mid=-1
2211  while :; do
2212    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213/* end confdefs.h.  */
2214$4
2215int
2216main ()
2217{
2218static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2219test_array [0] = 0;
2220return test_array [0];
2221
2222  ;
2223  return 0;
2224}
2225_ACEOF
2226if ac_fn_c_try_compile "$LINENO"; then :
2227  ac_lo=$ac_mid; break
2228else
2229  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2230			if test $ac_mid -le $ac_hi; then
2231			  ac_lo= ac_hi=
2232			  break
2233			fi
2234			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2235fi
2236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237  done
2238else
2239  ac_lo= ac_hi=
2240fi
2241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2242fi
2243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244# Binary search between lo and hi bounds.
2245while test "x$ac_lo" != "x$ac_hi"; do
2246  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248/* end confdefs.h.  */
2249$4
2250int
2251main ()
2252{
2253static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2254test_array [0] = 0;
2255return test_array [0];
2256
2257  ;
2258  return 0;
2259}
2260_ACEOF
2261if ac_fn_c_try_compile "$LINENO"; then :
2262  ac_hi=$ac_mid
2263else
2264  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2265fi
2266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267done
2268case $ac_lo in #((
2269?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2270'') ac_retval=1 ;;
2271esac
2272  else
2273    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274/* end confdefs.h.  */
2275$4
2276static long int longval () { return $2; }
2277static unsigned long int ulongval () { return $2; }
2278#include <stdio.h>
2279#include <stdlib.h>
2280int
2281main ()
2282{
2283
2284  FILE *f = fopen ("conftest.val", "w");
2285  if (! f)
2286    return 1;
2287  if (($2) < 0)
2288    {
2289      long int i = longval ();
2290      if (i != ($2))
2291	return 1;
2292      fprintf (f, "%ld", i);
2293    }
2294  else
2295    {
2296      unsigned long int i = ulongval ();
2297      if (i != ($2))
2298	return 1;
2299      fprintf (f, "%lu", i);
2300    }
2301  /* Do not output a trailing newline, as this causes \r\n confusion
2302     on some platforms.  */
2303  return ferror (f) || fclose (f) != 0;
2304
2305  ;
2306  return 0;
2307}
2308_ACEOF
2309if ac_fn_c_try_run "$LINENO"; then :
2310  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2311else
2312  ac_retval=1
2313fi
2314rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2315  conftest.$ac_objext conftest.beam conftest.$ac_ext
2316rm -f conftest.val
2317
2318  fi
2319  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2320  as_fn_set_status $ac_retval
2321
2322} # ac_fn_c_compute_int
2323cat >config.log <<_ACEOF
2324This file contains any messages produced by compilers while
2325running configure, to aid debugging if configure makes a mistake.
2326
2327It was created by DHCP $as_me 4.3.0, which was
2328generated by GNU Autoconf 2.69.  Invocation command line was
2329
2330  $ $0 $@
2331
2332_ACEOF
2333exec 5>>config.log
2334{
2335cat <<_ASUNAME
2336## --------- ##
2337## Platform. ##
2338## --------- ##
2339
2340hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2341uname -m = `(uname -m) 2>/dev/null || echo unknown`
2342uname -r = `(uname -r) 2>/dev/null || echo unknown`
2343uname -s = `(uname -s) 2>/dev/null || echo unknown`
2344uname -v = `(uname -v) 2>/dev/null || echo unknown`
2345
2346/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2347/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2348
2349/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2350/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2351/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2352/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2353/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2354/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2355/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2356
2357_ASUNAME
2358
2359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360for as_dir in $PATH
2361do
2362  IFS=$as_save_IFS
2363  test -z "$as_dir" && as_dir=.
2364    $as_echo "PATH: $as_dir"
2365  done
2366IFS=$as_save_IFS
2367
2368} >&5
2369
2370cat >&5 <<_ACEOF
2371
2372
2373## ----------- ##
2374## Core tests. ##
2375## ----------- ##
2376
2377_ACEOF
2378
2379
2380# Keep a trace of the command line.
2381# Strip out --no-create and --no-recursion so they do not pile up.
2382# Strip out --silent because we don't want to record it for future runs.
2383# Also quote any args containing shell meta-characters.
2384# Make two passes to allow for proper duplicate-argument suppression.
2385ac_configure_args=
2386ac_configure_args0=
2387ac_configure_args1=
2388ac_must_keep_next=false
2389for ac_pass in 1 2
2390do
2391  for ac_arg
2392  do
2393    case $ac_arg in
2394    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2395    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2396    | -silent | --silent | --silen | --sile | --sil)
2397      continue ;;
2398    *\'*)
2399      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2400    esac
2401    case $ac_pass in
2402    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2403    2)
2404      as_fn_append ac_configure_args1 " '$ac_arg'"
2405      if test $ac_must_keep_next = true; then
2406	ac_must_keep_next=false # Got value, back to normal.
2407      else
2408	case $ac_arg in
2409	  *=* | --config-cache | -C | -disable-* | --disable-* \
2410	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2411	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2412	  | -with-* | --with-* | -without-* | --without-* | --x)
2413	    case "$ac_configure_args0 " in
2414	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2415	    esac
2416	    ;;
2417	  -* ) ac_must_keep_next=true ;;
2418	esac
2419      fi
2420      as_fn_append ac_configure_args " '$ac_arg'"
2421      ;;
2422    esac
2423  done
2424done
2425{ ac_configure_args0=; unset ac_configure_args0;}
2426{ ac_configure_args1=; unset ac_configure_args1;}
2427
2428# When interrupted or exit'd, cleanup temporary files, and complete
2429# config.log.  We remove comments because anyway the quotes in there
2430# would cause problems or look ugly.
2431# WARNING: Use '\'' to represent an apostrophe within the trap.
2432# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2433trap 'exit_status=$?
2434  # Save into config.log some information that might help in debugging.
2435  {
2436    echo
2437
2438    $as_echo "## ---------------- ##
2439## Cache variables. ##
2440## ---------------- ##"
2441    echo
2442    # The following way of writing the cache mishandles newlines in values,
2443(
2444  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2445    eval ac_val=\$$ac_var
2446    case $ac_val in #(
2447    *${as_nl}*)
2448      case $ac_var in #(
2449      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2450$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2451      esac
2452      case $ac_var in #(
2453      _ | IFS | as_nl) ;; #(
2454      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2455      *) { eval $ac_var=; unset $ac_var;} ;;
2456      esac ;;
2457    esac
2458  done
2459  (set) 2>&1 |
2460    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2461    *${as_nl}ac_space=\ *)
2462      sed -n \
2463	"s/'\''/'\''\\\\'\'''\''/g;
2464	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2465      ;; #(
2466    *)
2467      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2468      ;;
2469    esac |
2470    sort
2471)
2472    echo
2473
2474    $as_echo "## ----------------- ##
2475## Output variables. ##
2476## ----------------- ##"
2477    echo
2478    for ac_var in $ac_subst_vars
2479    do
2480      eval ac_val=\$$ac_var
2481      case $ac_val in
2482      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2483      esac
2484      $as_echo "$ac_var='\''$ac_val'\''"
2485    done | sort
2486    echo
2487
2488    if test -n "$ac_subst_files"; then
2489      $as_echo "## ------------------- ##
2490## File substitutions. ##
2491## ------------------- ##"
2492      echo
2493      for ac_var in $ac_subst_files
2494      do
2495	eval ac_val=\$$ac_var
2496	case $ac_val in
2497	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2498	esac
2499	$as_echo "$ac_var='\''$ac_val'\''"
2500      done | sort
2501      echo
2502    fi
2503
2504    if test -s confdefs.h; then
2505      $as_echo "## ----------- ##
2506## confdefs.h. ##
2507## ----------- ##"
2508      echo
2509      cat confdefs.h
2510      echo
2511    fi
2512    test "$ac_signal" != 0 &&
2513      $as_echo "$as_me: caught signal $ac_signal"
2514    $as_echo "$as_me: exit $exit_status"
2515  } >&5
2516  rm -f core *.core core.conftest.* &&
2517    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2518    exit $exit_status
2519' 0
2520for ac_signal in 1 2 13 15; do
2521  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2522done
2523ac_signal=0
2524
2525# confdefs.h avoids OS command line length limits that DEFS can exceed.
2526rm -f -r conftest* confdefs.h
2527
2528$as_echo "/* confdefs.h */" > confdefs.h
2529
2530# Predefined preprocessor variables.
2531
2532cat >>confdefs.h <<_ACEOF
2533#define PACKAGE_NAME "$PACKAGE_NAME"
2534_ACEOF
2535
2536cat >>confdefs.h <<_ACEOF
2537#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2538_ACEOF
2539
2540cat >>confdefs.h <<_ACEOF
2541#define PACKAGE_VERSION "$PACKAGE_VERSION"
2542_ACEOF
2543
2544cat >>confdefs.h <<_ACEOF
2545#define PACKAGE_STRING "$PACKAGE_STRING"
2546_ACEOF
2547
2548cat >>confdefs.h <<_ACEOF
2549#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2550_ACEOF
2551
2552cat >>confdefs.h <<_ACEOF
2553#define PACKAGE_URL "$PACKAGE_URL"
2554_ACEOF
2555
2556
2557# Let the site file select an alternate cache file if it wants to.
2558# Prefer an explicitly selected file to automatically selected ones.
2559ac_site_file1=NONE
2560ac_site_file2=NONE
2561if test -n "$CONFIG_SITE"; then
2562  # We do not want a PATH search for config.site.
2563  case $CONFIG_SITE in #((
2564    -*)  ac_site_file1=./$CONFIG_SITE;;
2565    */*) ac_site_file1=$CONFIG_SITE;;
2566    *)   ac_site_file1=./$CONFIG_SITE;;
2567  esac
2568elif test "x$prefix" != xNONE; then
2569  ac_site_file1=$prefix/share/config.site
2570  ac_site_file2=$prefix/etc/config.site
2571else
2572  ac_site_file1=$ac_default_prefix/share/config.site
2573  ac_site_file2=$ac_default_prefix/etc/config.site
2574fi
2575for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2576do
2577  test "x$ac_site_file" = xNONE && continue
2578  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2579    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2580$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2581    sed 's/^/| /' "$ac_site_file" >&5
2582    . "$ac_site_file" \
2583      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2585as_fn_error $? "failed to load site script $ac_site_file
2586See \`config.log' for more details" "$LINENO" 5; }
2587  fi
2588done
2589
2590if test -r "$cache_file"; then
2591  # Some versions of bash will fail to source /dev/null (special files
2592  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2593  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2594    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2595$as_echo "$as_me: loading cache $cache_file" >&6;}
2596    case $cache_file in
2597      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2598      *)                      . "./$cache_file";;
2599    esac
2600  fi
2601else
2602  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2603$as_echo "$as_me: creating cache $cache_file" >&6;}
2604  >$cache_file
2605fi
2606
2607# Check that the precious variables saved in the cache have kept the same
2608# value.
2609ac_cache_corrupted=false
2610for ac_var in $ac_precious_vars; do
2611  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2612  eval ac_new_set=\$ac_env_${ac_var}_set
2613  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2614  eval ac_new_val=\$ac_env_${ac_var}_value
2615  case $ac_old_set,$ac_new_set in
2616    set,)
2617      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2618$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2619      ac_cache_corrupted=: ;;
2620    ,set)
2621      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2622$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2623      ac_cache_corrupted=: ;;
2624    ,);;
2625    *)
2626      if test "x$ac_old_val" != "x$ac_new_val"; then
2627	# differences in whitespace do not lead to failure.
2628	ac_old_val_w=`echo x $ac_old_val`
2629	ac_new_val_w=`echo x $ac_new_val`
2630	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2631	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2632$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2633	  ac_cache_corrupted=:
2634	else
2635	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2636$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2637	  eval $ac_var=\$ac_old_val
2638	fi
2639	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2640$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2641	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2642$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2643      fi;;
2644  esac
2645  # Pass precious variables to config.status.
2646  if test "$ac_new_set" = set; then
2647    case $ac_new_val in
2648    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2649    *) ac_arg=$ac_var=$ac_new_val ;;
2650    esac
2651    case " $ac_configure_args " in
2652      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2653      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2654    esac
2655  fi
2656done
2657if $ac_cache_corrupted; then
2658  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2659$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2660  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2661$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2662  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2663fi
2664## -------------------- ##
2665## Main body of script. ##
2666## -------------------- ##
2667
2668ac_ext=c
2669ac_cpp='$CPP $CPPFLAGS'
2670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2672ac_compiler_gnu=$ac_cv_c_compiler_gnu
2673
2674
2675
2676# we specify "foreign" to avoid having to have the GNU mandated files,
2677# like AUTHORS, COPYING, and such
2678am__api_version='1.14'
2679
2680ac_aux_dir=
2681for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2682  if test -f "$ac_dir/install-sh"; then
2683    ac_aux_dir=$ac_dir
2684    ac_install_sh="$ac_aux_dir/install-sh -c"
2685    break
2686  elif test -f "$ac_dir/install.sh"; then
2687    ac_aux_dir=$ac_dir
2688    ac_install_sh="$ac_aux_dir/install.sh -c"
2689    break
2690  elif test -f "$ac_dir/shtool"; then
2691    ac_aux_dir=$ac_dir
2692    ac_install_sh="$ac_aux_dir/shtool install -c"
2693    break
2694  fi
2695done
2696if test -z "$ac_aux_dir"; then
2697  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2698fi
2699
2700# These three variables are undocumented and unsupported,
2701# and are intended to be withdrawn in a future Autoconf release.
2702# They can cause serious problems if a builder's source tree is in a directory
2703# whose full name contains unusual characters.
2704ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2705ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2706ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2707
2708
2709# Find a good install program.  We prefer a C program (faster),
2710# so one script is as good as another.  But avoid the broken or
2711# incompatible versions:
2712# SysV /etc/install, /usr/sbin/install
2713# SunOS /usr/etc/install
2714# IRIX /sbin/install
2715# AIX /bin/install
2716# AmigaOS /C/install, which installs bootblocks on floppy discs
2717# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2718# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2719# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2720# OS/2's system install, which has a completely different semantic
2721# ./install, which can be erroneously created by make from ./install.sh.
2722# Reject install programs that cannot install multiple files.
2723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2724$as_echo_n "checking for a BSD-compatible install... " >&6; }
2725if test -z "$INSTALL"; then
2726if ${ac_cv_path_install+:} false; then :
2727  $as_echo_n "(cached) " >&6
2728else
2729  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730for as_dir in $PATH
2731do
2732  IFS=$as_save_IFS
2733  test -z "$as_dir" && as_dir=.
2734    # Account for people who put trailing slashes in PATH elements.
2735case $as_dir/ in #((
2736  ./ | .// | /[cC]/* | \
2737  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2738  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2739  /usr/ucb/* ) ;;
2740  *)
2741    # OSF1 and SCO ODT 3.0 have their own names for install.
2742    # Don't use installbsd from OSF since it installs stuff as root
2743    # by default.
2744    for ac_prog in ginstall scoinst install; do
2745      for ac_exec_ext in '' $ac_executable_extensions; do
2746	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2747	  if test $ac_prog = install &&
2748	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2749	    # AIX install.  It has an incompatible calling convention.
2750	    :
2751	  elif test $ac_prog = install &&
2752	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2753	    # program-specific install script used by HP pwplus--don't use.
2754	    :
2755	  else
2756	    rm -rf conftest.one conftest.two conftest.dir
2757	    echo one > conftest.one
2758	    echo two > conftest.two
2759	    mkdir conftest.dir
2760	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2761	      test -s conftest.one && test -s conftest.two &&
2762	      test -s conftest.dir/conftest.one &&
2763	      test -s conftest.dir/conftest.two
2764	    then
2765	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2766	      break 3
2767	    fi
2768	  fi
2769	fi
2770      done
2771    done
2772    ;;
2773esac
2774
2775  done
2776IFS=$as_save_IFS
2777
2778rm -rf conftest.one conftest.two conftest.dir
2779
2780fi
2781  if test "${ac_cv_path_install+set}" = set; then
2782    INSTALL=$ac_cv_path_install
2783  else
2784    # As a last resort, use the slow shell script.  Don't cache a
2785    # value for INSTALL within a source directory, because that will
2786    # break other packages using the cache if that directory is
2787    # removed, or if the value is a relative name.
2788    INSTALL=$ac_install_sh
2789  fi
2790fi
2791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2792$as_echo "$INSTALL" >&6; }
2793
2794# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2795# It thinks the first close brace ends the variable substitution.
2796test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2797
2798test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2799
2800test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2801
2802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2803$as_echo_n "checking whether build environment is sane... " >&6; }
2804# Reject unsafe characters in $srcdir or the absolute working directory
2805# name.  Accept space and tab only in the latter.
2806am_lf='
2807'
2808case `pwd` in
2809  *[\\\"\#\$\&\'\`$am_lf]*)
2810    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2811esac
2812case $srcdir in
2813  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2814    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2815esac
2816
2817# Do 'set' in a subshell so we don't clobber the current shell's
2818# arguments.  Must try -L first in case configure is actually a
2819# symlink; some systems play weird games with the mod time of symlinks
2820# (eg FreeBSD returns the mod time of the symlink's containing
2821# directory).
2822if (
2823   am_has_slept=no
2824   for am_try in 1 2; do
2825     echo "timestamp, slept: $am_has_slept" > conftest.file
2826     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2827     if test "$*" = "X"; then
2828	# -L didn't work.
2829	set X `ls -t "$srcdir/configure" conftest.file`
2830     fi
2831     if test "$*" != "X $srcdir/configure conftest.file" \
2832	&& test "$*" != "X conftest.file $srcdir/configure"; then
2833
2834	# If neither matched, then we have a broken ls.  This can happen
2835	# if, for instance, CONFIG_SHELL is bash and it inherits a
2836	# broken ls alias from the environment.  This has actually
2837	# happened.  Such a system could not be considered "sane".
2838	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2839  alias in your environment" "$LINENO" 5
2840     fi
2841     if test "$2" = conftest.file || test $am_try -eq 2; then
2842       break
2843     fi
2844     # Just in case.
2845     sleep 1
2846     am_has_slept=yes
2847   done
2848   test "$2" = conftest.file
2849   )
2850then
2851   # Ok.
2852   :
2853else
2854   as_fn_error $? "newly created file is older than distributed files!
2855Check your system clock" "$LINENO" 5
2856fi
2857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2858$as_echo "yes" >&6; }
2859# If we didn't sleep, we still need to ensure time stamps of config.status and
2860# generated files are strictly newer.
2861am_sleep_pid=
2862if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2863  ( sleep 1 ) &
2864  am_sleep_pid=$!
2865fi
2866
2867rm -f conftest.file
2868
2869test "$program_prefix" != NONE &&
2870  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2871# Use a double $ so make ignores it.
2872test "$program_suffix" != NONE &&
2873  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2874# Double any \ or $.
2875# By default was `s,x,x', remove it if useless.
2876ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2877program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2878
2879# expand $ac_aux_dir to an absolute path
2880am_aux_dir=`cd $ac_aux_dir && pwd`
2881
2882if test x"${MISSING+set}" != xset; then
2883  case $am_aux_dir in
2884  *\ * | *\	*)
2885    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2886  *)
2887    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2888  esac
2889fi
2890# Use eval to expand $SHELL
2891if eval "$MISSING --is-lightweight"; then
2892  am_missing_run="$MISSING "
2893else
2894  am_missing_run=
2895  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2896$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2897fi
2898
2899if test x"${install_sh}" != xset; then
2900  case $am_aux_dir in
2901  *\ * | *\	*)
2902    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2903  *)
2904    install_sh="\${SHELL} $am_aux_dir/install-sh"
2905  esac
2906fi
2907
2908# Installed binaries are usually stripped using 'strip' when the user
2909# run "make install-strip".  However 'strip' might not be the right
2910# tool to use in cross-compilation environments, therefore Automake
2911# will honor the 'STRIP' environment variable to overrule this program.
2912if test "$cross_compiling" != no; then
2913  if test -n "$ac_tool_prefix"; then
2914  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2915set dummy ${ac_tool_prefix}strip; ac_word=$2
2916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917$as_echo_n "checking for $ac_word... " >&6; }
2918if ${ac_cv_prog_STRIP+:} false; then :
2919  $as_echo_n "(cached) " >&6
2920else
2921  if test -n "$STRIP"; then
2922  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2923else
2924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925for as_dir in $PATH
2926do
2927  IFS=$as_save_IFS
2928  test -z "$as_dir" && as_dir=.
2929    for ac_exec_ext in '' $ac_executable_extensions; do
2930  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2931    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2932    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2933    break 2
2934  fi
2935done
2936  done
2937IFS=$as_save_IFS
2938
2939fi
2940fi
2941STRIP=$ac_cv_prog_STRIP
2942if test -n "$STRIP"; then
2943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2944$as_echo "$STRIP" >&6; }
2945else
2946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947$as_echo "no" >&6; }
2948fi
2949
2950
2951fi
2952if test -z "$ac_cv_prog_STRIP"; then
2953  ac_ct_STRIP=$STRIP
2954  # Extract the first word of "strip", so it can be a program name with args.
2955set dummy strip; ac_word=$2
2956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957$as_echo_n "checking for $ac_word... " >&6; }
2958if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2959  $as_echo_n "(cached) " >&6
2960else
2961  if test -n "$ac_ct_STRIP"; then
2962  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2963else
2964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965for as_dir in $PATH
2966do
2967  IFS=$as_save_IFS
2968  test -z "$as_dir" && as_dir=.
2969    for ac_exec_ext in '' $ac_executable_extensions; do
2970  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2971    ac_cv_prog_ac_ct_STRIP="strip"
2972    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2973    break 2
2974  fi
2975done
2976  done
2977IFS=$as_save_IFS
2978
2979fi
2980fi
2981ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2982if test -n "$ac_ct_STRIP"; then
2983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2984$as_echo "$ac_ct_STRIP" >&6; }
2985else
2986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987$as_echo "no" >&6; }
2988fi
2989
2990  if test "x$ac_ct_STRIP" = x; then
2991    STRIP=":"
2992  else
2993    case $cross_compiling:$ac_tool_warned in
2994yes:)
2995{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2996$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2997ac_tool_warned=yes ;;
2998esac
2999    STRIP=$ac_ct_STRIP
3000  fi
3001else
3002  STRIP="$ac_cv_prog_STRIP"
3003fi
3004
3005fi
3006INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3007
3008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3009$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3010if test -z "$MKDIR_P"; then
3011  if ${ac_cv_path_mkdir+:} false; then :
3012  $as_echo_n "(cached) " >&6
3013else
3014  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3016do
3017  IFS=$as_save_IFS
3018  test -z "$as_dir" && as_dir=.
3019    for ac_prog in mkdir gmkdir; do
3020	 for ac_exec_ext in '' $ac_executable_extensions; do
3021	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3022	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3023	     'mkdir (GNU coreutils) '* | \
3024	     'mkdir (coreutils) '* | \
3025	     'mkdir (fileutils) '4.1*)
3026	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3027	       break 3;;
3028	   esac
3029	 done
3030       done
3031  done
3032IFS=$as_save_IFS
3033
3034fi
3035
3036  test -d ./--version && rmdir ./--version
3037  if test "${ac_cv_path_mkdir+set}" = set; then
3038    MKDIR_P="$ac_cv_path_mkdir -p"
3039  else
3040    # As a last resort, use the slow shell script.  Don't cache a
3041    # value for MKDIR_P within a source directory, because that will
3042    # break other packages using the cache if that directory is
3043    # removed, or if the value is a relative name.
3044    MKDIR_P="$ac_install_sh -d"
3045  fi
3046fi
3047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3048$as_echo "$MKDIR_P" >&6; }
3049
3050for ac_prog in gawk mawk nawk awk
3051do
3052  # Extract the first word of "$ac_prog", so it can be a program name with args.
3053set dummy $ac_prog; ac_word=$2
3054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3055$as_echo_n "checking for $ac_word... " >&6; }
3056if ${ac_cv_prog_AWK+:} false; then :
3057  $as_echo_n "(cached) " >&6
3058else
3059  if test -n "$AWK"; then
3060  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3061else
3062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063for as_dir in $PATH
3064do
3065  IFS=$as_save_IFS
3066  test -z "$as_dir" && as_dir=.
3067    for ac_exec_ext in '' $ac_executable_extensions; do
3068  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3069    ac_cv_prog_AWK="$ac_prog"
3070    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3071    break 2
3072  fi
3073done
3074  done
3075IFS=$as_save_IFS
3076
3077fi
3078fi
3079AWK=$ac_cv_prog_AWK
3080if test -n "$AWK"; then
3081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3082$as_echo "$AWK" >&6; }
3083else
3084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085$as_echo "no" >&6; }
3086fi
3087
3088
3089  test -n "$AWK" && break
3090done
3091
3092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3093$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3094set x ${MAKE-make}
3095ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3096if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3097  $as_echo_n "(cached) " >&6
3098else
3099  cat >conftest.make <<\_ACEOF
3100SHELL = /bin/sh
3101all:
3102	@echo '@@@%%%=$(MAKE)=@@@%%%'
3103_ACEOF
3104# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3105case `${MAKE-make} -f conftest.make 2>/dev/null` in
3106  *@@@%%%=?*=@@@%%%*)
3107    eval ac_cv_prog_make_${ac_make}_set=yes;;
3108  *)
3109    eval ac_cv_prog_make_${ac_make}_set=no;;
3110esac
3111rm -f conftest.make
3112fi
3113if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3115$as_echo "yes" >&6; }
3116  SET_MAKE=
3117else
3118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119$as_echo "no" >&6; }
3120  SET_MAKE="MAKE=${MAKE-make}"
3121fi
3122
3123rm -rf .tst 2>/dev/null
3124mkdir .tst 2>/dev/null
3125if test -d .tst; then
3126  am__leading_dot=.
3127else
3128  am__leading_dot=_
3129fi
3130rmdir .tst 2>/dev/null
3131
3132# Check whether --enable-silent-rules was given.
3133if test "${enable_silent_rules+set}" = set; then :
3134  enableval=$enable_silent_rules;
3135fi
3136
3137case $enable_silent_rules in # (((
3138  yes) AM_DEFAULT_VERBOSITY=0;;
3139   no) AM_DEFAULT_VERBOSITY=1;;
3140    *) AM_DEFAULT_VERBOSITY=1;;
3141esac
3142am_make=${MAKE-make}
3143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3144$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3145if ${am_cv_make_support_nested_variables+:} false; then :
3146  $as_echo_n "(cached) " >&6
3147else
3148  if $as_echo 'TRUE=$(BAR$(V))
3149BAR0=false
3150BAR1=true
3151V=1
3152am__doit:
3153	@$(TRUE)
3154.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3155  am_cv_make_support_nested_variables=yes
3156else
3157  am_cv_make_support_nested_variables=no
3158fi
3159fi
3160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3161$as_echo "$am_cv_make_support_nested_variables" >&6; }
3162if test $am_cv_make_support_nested_variables = yes; then
3163    AM_V='$(V)'
3164  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3165else
3166  AM_V=$AM_DEFAULT_VERBOSITY
3167  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3168fi
3169AM_BACKSLASH='\'
3170
3171if test "`cd $srcdir && pwd`" != "`pwd`"; then
3172  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3173  # is not polluted with repeated "-I."
3174  am__isrc=' -I$(srcdir)'
3175  # test to see if srcdir already configured
3176  if test -f $srcdir/config.status; then
3177    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3178  fi
3179fi
3180
3181# test whether we have cygpath
3182if test -z "$CYGPATH_W"; then
3183  if (cygpath --version) >/dev/null 2>/dev/null; then
3184    CYGPATH_W='cygpath -w'
3185  else
3186    CYGPATH_W=echo
3187  fi
3188fi
3189
3190
3191# Define the identity of the package.
3192 PACKAGE='dhcp'
3193 VERSION='4.3.0'
3194
3195
3196cat >>confdefs.h <<_ACEOF
3197#define PACKAGE "$PACKAGE"
3198_ACEOF
3199
3200
3201cat >>confdefs.h <<_ACEOF
3202#define VERSION "$VERSION"
3203_ACEOF
3204
3205# Some tools Automake needs.
3206
3207ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3208
3209
3210AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3211
3212
3213AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3214
3215
3216AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3217
3218
3219MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3220
3221# For better backward compatibility.  To be removed once Automake 1.9.x
3222# dies out for good.  For more background, see:
3223# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3224# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3225mkdir_p='$(MKDIR_P)'
3226
3227# We need awk for the "check" target.  The system "awk" is bad on
3228# some platforms.
3229# Always define AMTAR for backward compatibility.  Yes, it's still used
3230# in the wild :-(  We should find a proper way to deprecate it ...
3231AMTAR='$${TAR-tar}'
3232
3233
3234# We'll loop over all known methods to create a tar archive until one works.
3235_am_tools='gnutar  pax cpio none'
3236
3237am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3238
3239
3240
3241
3242
3243
3244# POSIX will say in a future version that running "rm -f" with no argument
3245# is OK; and we want to be able to make that assumption in our Makefile
3246# recipes.  So use an aggressive probe to check that the usage we want is
3247# actually supported "in the wild" to an acceptable degree.
3248# See automake bug#10828.
3249# To make any issue more visible, cause the running configure to be aborted
3250# by default if the 'rm' program in use doesn't match our expectations; the
3251# user can still override this though.
3252if rm -f && rm -fr && rm -rf; then : OK; else
3253  cat >&2 <<'END'
3254Oops!
3255
3256Your 'rm' program seems unable to run without file operands specified
3257on the command line, even when the '-f' option is present.  This is contrary
3258to the behaviour of most rm programs out there, and not conforming with
3259the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3260
3261Please tell bug-automake@gnu.org about your system, including the value
3262of your $PATH and any error possibly output before this message.  This
3263can help us improve future automake versions.
3264
3265END
3266  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3267    echo 'Configuration will proceed anyway, since you have set the' >&2
3268    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3269    echo >&2
3270  else
3271    cat >&2 <<'END'
3272Aborting the configuration process, to ensure you take notice of the issue.
3273
3274You can download and install GNU coreutils to get an 'rm' implementation
3275that behaves properly: <http://www.gnu.org/software/coreutils/>.
3276
3277If you want to complete the configuration process using your problematic
3278'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3279to "yes", and re-run configure.
3280
3281END
3282    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3283  fi
3284fi
3285
3286# we specify AM_MAINTAINER_MODE to avoid problems with rebuilding
3287# the configure and makefiles.  Without it users doing things that
3288# change the timestamps on the code, like checking it into a cvs
3289# tree, could trigger a rebuild of the infrastructure files which
3290# might fail if they don't have the correct tools.
3291
3292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3293$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3294    # Check whether --enable-maintainer-mode was given.
3295if test "${enable_maintainer_mode+set}" = set; then :
3296  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3297else
3298  USE_MAINTAINER_MODE=no
3299fi
3300
3301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3302$as_echo "$USE_MAINTAINER_MODE" >&6; }
3303   if test $USE_MAINTAINER_MODE = yes; then
3304  MAINTAINER_MODE_TRUE=
3305  MAINTAINER_MODE_FALSE='#'
3306else
3307  MAINTAINER_MODE_TRUE='#'
3308  MAINTAINER_MODE_FALSE=
3309fi
3310
3311  MAINT=$MAINTAINER_MODE_TRUE
3312
3313
3314
3315# Make sure we can run config.sub.
3316$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3317  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3318
3319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3320$as_echo_n "checking build system type... " >&6; }
3321if ${ac_cv_build+:} false; then :
3322  $as_echo_n "(cached) " >&6
3323else
3324  ac_build_alias=$build_alias
3325test "x$ac_build_alias" = x &&
3326  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3327test "x$ac_build_alias" = x &&
3328  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3329ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3330  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3331
3332fi
3333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3334$as_echo "$ac_cv_build" >&6; }
3335case $ac_cv_build in
3336*-*-*) ;;
3337*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3338esac
3339build=$ac_cv_build
3340ac_save_IFS=$IFS; IFS='-'
3341set x $ac_cv_build
3342shift
3343build_cpu=$1
3344build_vendor=$2
3345shift; shift
3346# Remember, the first character of IFS is used to create $*,
3347# except with old shells:
3348build_os=$*
3349IFS=$ac_save_IFS
3350case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3351
3352
3353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3354$as_echo_n "checking host system type... " >&6; }
3355if ${ac_cv_host+:} false; then :
3356  $as_echo_n "(cached) " >&6
3357else
3358  if test "x$host_alias" = x; then
3359  ac_cv_host=$ac_cv_build
3360else
3361  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3362    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3363fi
3364
3365fi
3366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3367$as_echo "$ac_cv_host" >&6; }
3368case $ac_cv_host in
3369*-*-*) ;;
3370*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3371esac
3372host=$ac_cv_host
3373ac_save_IFS=$IFS; IFS='-'
3374set x $ac_cv_host
3375shift
3376host_cpu=$1
3377host_vendor=$2
3378shift; shift
3379# Remember, the first character of IFS is used to create $*,
3380# except with old shells:
3381host_os=$*
3382IFS=$ac_save_IFS
3383case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3384
3385
3386
3387# We want to turn on warnings if we are using gcc and the user did
3388# not specify CFLAGS. The autoconf check for the C compiler sets the
3389# CFLAGS if gcc is used, so we will save it before we run that check.
3390SAVE_CFLAGS="$CFLAGS"
3391
3392# Now find our C compiler.
3393ac_ext=c
3394ac_cpp='$CPP $CPPFLAGS'
3395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397ac_compiler_gnu=$ac_cv_c_compiler_gnu
3398if test -n "$ac_tool_prefix"; then
3399  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3400set dummy ${ac_tool_prefix}gcc; ac_word=$2
3401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3402$as_echo_n "checking for $ac_word... " >&6; }
3403if ${ac_cv_prog_CC+:} false; then :
3404  $as_echo_n "(cached) " >&6
3405else
3406  if test -n "$CC"; then
3407  ac_cv_prog_CC="$CC" # Let the user override the test.
3408else
3409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410for as_dir in $PATH
3411do
3412  IFS=$as_save_IFS
3413  test -z "$as_dir" && as_dir=.
3414    for ac_exec_ext in '' $ac_executable_extensions; do
3415  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3416    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3417    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3418    break 2
3419  fi
3420done
3421  done
3422IFS=$as_save_IFS
3423
3424fi
3425fi
3426CC=$ac_cv_prog_CC
3427if test -n "$CC"; then
3428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3429$as_echo "$CC" >&6; }
3430else
3431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3432$as_echo "no" >&6; }
3433fi
3434
3435
3436fi
3437if test -z "$ac_cv_prog_CC"; then
3438  ac_ct_CC=$CC
3439  # Extract the first word of "gcc", so it can be a program name with args.
3440set dummy gcc; ac_word=$2
3441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3442$as_echo_n "checking for $ac_word... " >&6; }
3443if ${ac_cv_prog_ac_ct_CC+:} false; then :
3444  $as_echo_n "(cached) " >&6
3445else
3446  if test -n "$ac_ct_CC"; then
3447  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3448else
3449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450for as_dir in $PATH
3451do
3452  IFS=$as_save_IFS
3453  test -z "$as_dir" && as_dir=.
3454    for ac_exec_ext in '' $ac_executable_extensions; do
3455  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3456    ac_cv_prog_ac_ct_CC="gcc"
3457    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3458    break 2
3459  fi
3460done
3461  done
3462IFS=$as_save_IFS
3463
3464fi
3465fi
3466ac_ct_CC=$ac_cv_prog_ac_ct_CC
3467if test -n "$ac_ct_CC"; then
3468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3469$as_echo "$ac_ct_CC" >&6; }
3470else
3471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472$as_echo "no" >&6; }
3473fi
3474
3475  if test "x$ac_ct_CC" = x; then
3476    CC=""
3477  else
3478    case $cross_compiling:$ac_tool_warned in
3479yes:)
3480{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3481$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3482ac_tool_warned=yes ;;
3483esac
3484    CC=$ac_ct_CC
3485  fi
3486else
3487  CC="$ac_cv_prog_CC"
3488fi
3489
3490if test -z "$CC"; then
3491          if test -n "$ac_tool_prefix"; then
3492    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3493set dummy ${ac_tool_prefix}cc; ac_word=$2
3494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3495$as_echo_n "checking for $ac_word... " >&6; }
3496if ${ac_cv_prog_CC+:} false; then :
3497  $as_echo_n "(cached) " >&6
3498else
3499  if test -n "$CC"; then
3500  ac_cv_prog_CC="$CC" # Let the user override the test.
3501else
3502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503for as_dir in $PATH
3504do
3505  IFS=$as_save_IFS
3506  test -z "$as_dir" && as_dir=.
3507    for ac_exec_ext in '' $ac_executable_extensions; do
3508  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3509    ac_cv_prog_CC="${ac_tool_prefix}cc"
3510    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3511    break 2
3512  fi
3513done
3514  done
3515IFS=$as_save_IFS
3516
3517fi
3518fi
3519CC=$ac_cv_prog_CC
3520if test -n "$CC"; then
3521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3522$as_echo "$CC" >&6; }
3523else
3524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525$as_echo "no" >&6; }
3526fi
3527
3528
3529  fi
3530fi
3531if test -z "$CC"; then
3532  # Extract the first word of "cc", so it can be a program name with args.
3533set dummy cc; ac_word=$2
3534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3535$as_echo_n "checking for $ac_word... " >&6; }
3536if ${ac_cv_prog_CC+:} false; then :
3537  $as_echo_n "(cached) " >&6
3538else
3539  if test -n "$CC"; then
3540  ac_cv_prog_CC="$CC" # Let the user override the test.
3541else
3542  ac_prog_rejected=no
3543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544for as_dir in $PATH
3545do
3546  IFS=$as_save_IFS
3547  test -z "$as_dir" && as_dir=.
3548    for ac_exec_ext in '' $ac_executable_extensions; do
3549  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3550    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3551       ac_prog_rejected=yes
3552       continue
3553     fi
3554    ac_cv_prog_CC="cc"
3555    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3556    break 2
3557  fi
3558done
3559  done
3560IFS=$as_save_IFS
3561
3562if test $ac_prog_rejected = yes; then
3563  # We found a bogon in the path, so make sure we never use it.
3564  set dummy $ac_cv_prog_CC
3565  shift
3566  if test $# != 0; then
3567    # We chose a different compiler from the bogus one.
3568    # However, it has the same basename, so the bogon will be chosen
3569    # first if we set CC to just the basename; use the full file name.
3570    shift
3571    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3572  fi
3573fi
3574fi
3575fi
3576CC=$ac_cv_prog_CC
3577if test -n "$CC"; then
3578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3579$as_echo "$CC" >&6; }
3580else
3581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582$as_echo "no" >&6; }
3583fi
3584
3585
3586fi
3587if test -z "$CC"; then
3588  if test -n "$ac_tool_prefix"; then
3589  for ac_prog in cl.exe
3590  do
3591    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3592set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594$as_echo_n "checking for $ac_word... " >&6; }
3595if ${ac_cv_prog_CC+:} false; then :
3596  $as_echo_n "(cached) " >&6
3597else
3598  if test -n "$CC"; then
3599  ac_cv_prog_CC="$CC" # Let the user override the test.
3600else
3601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602for as_dir in $PATH
3603do
3604  IFS=$as_save_IFS
3605  test -z "$as_dir" && as_dir=.
3606    for ac_exec_ext in '' $ac_executable_extensions; do
3607  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3608    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3609    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3610    break 2
3611  fi
3612done
3613  done
3614IFS=$as_save_IFS
3615
3616fi
3617fi
3618CC=$ac_cv_prog_CC
3619if test -n "$CC"; then
3620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3621$as_echo "$CC" >&6; }
3622else
3623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624$as_echo "no" >&6; }
3625fi
3626
3627
3628    test -n "$CC" && break
3629  done
3630fi
3631if test -z "$CC"; then
3632  ac_ct_CC=$CC
3633  for ac_prog in cl.exe
3634do
3635  # Extract the first word of "$ac_prog", so it can be a program name with args.
3636set dummy $ac_prog; ac_word=$2
3637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3638$as_echo_n "checking for $ac_word... " >&6; }
3639if ${ac_cv_prog_ac_ct_CC+:} false; then :
3640  $as_echo_n "(cached) " >&6
3641else
3642  if test -n "$ac_ct_CC"; then
3643  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3644else
3645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646for as_dir in $PATH
3647do
3648  IFS=$as_save_IFS
3649  test -z "$as_dir" && as_dir=.
3650    for ac_exec_ext in '' $ac_executable_extensions; do
3651  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3652    ac_cv_prog_ac_ct_CC="$ac_prog"
3653    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3654    break 2
3655  fi
3656done
3657  done
3658IFS=$as_save_IFS
3659
3660fi
3661fi
3662ac_ct_CC=$ac_cv_prog_ac_ct_CC
3663if test -n "$ac_ct_CC"; then
3664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3665$as_echo "$ac_ct_CC" >&6; }
3666else
3667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3668$as_echo "no" >&6; }
3669fi
3670
3671
3672  test -n "$ac_ct_CC" && break
3673done
3674
3675  if test "x$ac_ct_CC" = x; then
3676    CC=""
3677  else
3678    case $cross_compiling:$ac_tool_warned in
3679yes:)
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3681$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3682ac_tool_warned=yes ;;
3683esac
3684    CC=$ac_ct_CC
3685  fi
3686fi
3687
3688fi
3689
3690
3691test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3692$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3693as_fn_error $? "no acceptable C compiler found in \$PATH
3694See \`config.log' for more details" "$LINENO" 5; }
3695
3696# Provide some information about the compiler.
3697$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3698set X $ac_compile
3699ac_compiler=$2
3700for ac_option in --version -v -V -qversion; do
3701  { { ac_try="$ac_compiler $ac_option >&5"
3702case "(($ac_try" in
3703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704  *) ac_try_echo=$ac_try;;
3705esac
3706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3707$as_echo "$ac_try_echo"; } >&5
3708  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3709  ac_status=$?
3710  if test -s conftest.err; then
3711    sed '10a\
3712... rest of stderr output deleted ...
3713         10q' conftest.err >conftest.er1
3714    cat conftest.er1 >&5
3715  fi
3716  rm -f conftest.er1 conftest.err
3717  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3718  test $ac_status = 0; }
3719done
3720
3721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722/* end confdefs.h.  */
3723
3724int
3725main ()
3726{
3727
3728  ;
3729  return 0;
3730}
3731_ACEOF
3732ac_clean_files_save=$ac_clean_files
3733ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3734# Try to create an executable without -o first, disregard a.out.
3735# It will help us diagnose broken compilers, and finding out an intuition
3736# of exeext.
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3738$as_echo_n "checking whether the C compiler works... " >&6; }
3739ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3740
3741# The possible output files:
3742ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3743
3744ac_rmfiles=
3745for ac_file in $ac_files
3746do
3747  case $ac_file in
3748    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3749    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3750  esac
3751done
3752rm -f $ac_rmfiles
3753
3754if { { ac_try="$ac_link_default"
3755case "(($ac_try" in
3756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757  *) ac_try_echo=$ac_try;;
3758esac
3759eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3760$as_echo "$ac_try_echo"; } >&5
3761  (eval "$ac_link_default") 2>&5
3762  ac_status=$?
3763  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3764  test $ac_status = 0; }; then :
3765  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3766# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3767# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3768# so that the user can short-circuit this test for compilers unknown to
3769# Autoconf.
3770for ac_file in $ac_files ''
3771do
3772  test -f "$ac_file" || continue
3773  case $ac_file in
3774    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3775	;;
3776    [ab].out )
3777	# We found the default executable, but exeext='' is most
3778	# certainly right.
3779	break;;
3780    *.* )
3781	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3782	then :; else
3783	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3784	fi
3785	# We set ac_cv_exeext here because the later test for it is not
3786	# safe: cross compilers may not add the suffix if given an `-o'
3787	# argument, so we may need to know it at that point already.
3788	# Even if this section looks crufty: it has the advantage of
3789	# actually working.
3790	break;;
3791    * )
3792	break;;
3793  esac
3794done
3795test "$ac_cv_exeext" = no && ac_cv_exeext=
3796
3797else
3798  ac_file=''
3799fi
3800if test -z "$ac_file"; then :
3801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3802$as_echo "no" >&6; }
3803$as_echo "$as_me: failed program was:" >&5
3804sed 's/^/| /' conftest.$ac_ext >&5
3805
3806{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3807$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3808as_fn_error 77 "C compiler cannot create executables
3809See \`config.log' for more details" "$LINENO" 5; }
3810else
3811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3812$as_echo "yes" >&6; }
3813fi
3814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3815$as_echo_n "checking for C compiler default output file name... " >&6; }
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3817$as_echo "$ac_file" >&6; }
3818ac_exeext=$ac_cv_exeext
3819
3820rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3821ac_clean_files=$ac_clean_files_save
3822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3823$as_echo_n "checking for suffix of executables... " >&6; }
3824if { { ac_try="$ac_link"
3825case "(($ac_try" in
3826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827  *) ac_try_echo=$ac_try;;
3828esac
3829eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3830$as_echo "$ac_try_echo"; } >&5
3831  (eval "$ac_link") 2>&5
3832  ac_status=$?
3833  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3834  test $ac_status = 0; }; then :
3835  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3836# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3837# work properly (i.e., refer to `conftest.exe'), while it won't with
3838# `rm'.
3839for ac_file in conftest.exe conftest conftest.*; do
3840  test -f "$ac_file" || continue
3841  case $ac_file in
3842    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3843    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3844	  break;;
3845    * ) break;;
3846  esac
3847done
3848else
3849  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3850$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3851as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3852See \`config.log' for more details" "$LINENO" 5; }
3853fi
3854rm -f conftest conftest$ac_cv_exeext
3855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3856$as_echo "$ac_cv_exeext" >&6; }
3857
3858rm -f conftest.$ac_ext
3859EXEEXT=$ac_cv_exeext
3860ac_exeext=$EXEEXT
3861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862/* end confdefs.h.  */
3863#include <stdio.h>
3864int
3865main ()
3866{
3867FILE *f = fopen ("conftest.out", "w");
3868 return ferror (f) || fclose (f) != 0;
3869
3870  ;
3871  return 0;
3872}
3873_ACEOF
3874ac_clean_files="$ac_clean_files conftest.out"
3875# Check that the compiler produces executables we can run.  If not, either
3876# the compiler is broken, or we cross compile.
3877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3878$as_echo_n "checking whether we are cross compiling... " >&6; }
3879if test "$cross_compiling" != yes; then
3880  { { ac_try="$ac_link"
3881case "(($ac_try" in
3882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883  *) ac_try_echo=$ac_try;;
3884esac
3885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3886$as_echo "$ac_try_echo"; } >&5
3887  (eval "$ac_link") 2>&5
3888  ac_status=$?
3889  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3890  test $ac_status = 0; }
3891  if { ac_try='./conftest$ac_cv_exeext'
3892  { { case "(($ac_try" in
3893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894  *) ac_try_echo=$ac_try;;
3895esac
3896eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3897$as_echo "$ac_try_echo"; } >&5
3898  (eval "$ac_try") 2>&5
3899  ac_status=$?
3900  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3901  test $ac_status = 0; }; }; then
3902    cross_compiling=no
3903  else
3904    if test "$cross_compiling" = maybe; then
3905	cross_compiling=yes
3906    else
3907	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3908$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3909as_fn_error $? "cannot run C compiled programs.
3910If you meant to cross compile, use \`--host'.
3911See \`config.log' for more details" "$LINENO" 5; }
3912    fi
3913  fi
3914fi
3915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3916$as_echo "$cross_compiling" >&6; }
3917
3918rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3919ac_clean_files=$ac_clean_files_save
3920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3921$as_echo_n "checking for suffix of object files... " >&6; }
3922if ${ac_cv_objext+:} false; then :
3923  $as_echo_n "(cached) " >&6
3924else
3925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926/* end confdefs.h.  */
3927
3928int
3929main ()
3930{
3931
3932  ;
3933  return 0;
3934}
3935_ACEOF
3936rm -f conftest.o conftest.obj
3937if { { ac_try="$ac_compile"
3938case "(($ac_try" in
3939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940  *) ac_try_echo=$ac_try;;
3941esac
3942eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3943$as_echo "$ac_try_echo"; } >&5
3944  (eval "$ac_compile") 2>&5
3945  ac_status=$?
3946  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3947  test $ac_status = 0; }; then :
3948  for ac_file in conftest.o conftest.obj conftest.*; do
3949  test -f "$ac_file" || continue;
3950  case $ac_file in
3951    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3952    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3953       break;;
3954  esac
3955done
3956else
3957  $as_echo "$as_me: failed program was:" >&5
3958sed 's/^/| /' conftest.$ac_ext >&5
3959
3960{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3961$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3962as_fn_error $? "cannot compute suffix of object files: cannot compile
3963See \`config.log' for more details" "$LINENO" 5; }
3964fi
3965rm -f conftest.$ac_cv_objext conftest.$ac_ext
3966fi
3967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3968$as_echo "$ac_cv_objext" >&6; }
3969OBJEXT=$ac_cv_objext
3970ac_objext=$OBJEXT
3971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3972$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3973if ${ac_cv_c_compiler_gnu+:} false; then :
3974  $as_echo_n "(cached) " >&6
3975else
3976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977/* end confdefs.h.  */
3978
3979int
3980main ()
3981{
3982#ifndef __GNUC__
3983       choke me
3984#endif
3985
3986  ;
3987  return 0;
3988}
3989_ACEOF
3990if ac_fn_c_try_compile "$LINENO"; then :
3991  ac_compiler_gnu=yes
3992else
3993  ac_compiler_gnu=no
3994fi
3995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3996ac_cv_c_compiler_gnu=$ac_compiler_gnu
3997
3998fi
3999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4000$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4001if test $ac_compiler_gnu = yes; then
4002  GCC=yes
4003else
4004  GCC=
4005fi
4006ac_test_CFLAGS=${CFLAGS+set}
4007ac_save_CFLAGS=$CFLAGS
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4009$as_echo_n "checking whether $CC accepts -g... " >&6; }
4010if ${ac_cv_prog_cc_g+:} false; then :
4011  $as_echo_n "(cached) " >&6
4012else
4013  ac_save_c_werror_flag=$ac_c_werror_flag
4014   ac_c_werror_flag=yes
4015   ac_cv_prog_cc_g=no
4016   CFLAGS="-g"
4017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018/* end confdefs.h.  */
4019
4020int
4021main ()
4022{
4023
4024  ;
4025  return 0;
4026}
4027_ACEOF
4028if ac_fn_c_try_compile "$LINENO"; then :
4029  ac_cv_prog_cc_g=yes
4030else
4031  CFLAGS=""
4032      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033/* end confdefs.h.  */
4034
4035int
4036main ()
4037{
4038
4039  ;
4040  return 0;
4041}
4042_ACEOF
4043if ac_fn_c_try_compile "$LINENO"; then :
4044
4045else
4046  ac_c_werror_flag=$ac_save_c_werror_flag
4047	 CFLAGS="-g"
4048	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049/* end confdefs.h.  */
4050
4051int
4052main ()
4053{
4054
4055  ;
4056  return 0;
4057}
4058_ACEOF
4059if ac_fn_c_try_compile "$LINENO"; then :
4060  ac_cv_prog_cc_g=yes
4061fi
4062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4063fi
4064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065fi
4066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067   ac_c_werror_flag=$ac_save_c_werror_flag
4068fi
4069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4070$as_echo "$ac_cv_prog_cc_g" >&6; }
4071if test "$ac_test_CFLAGS" = set; then
4072  CFLAGS=$ac_save_CFLAGS
4073elif test $ac_cv_prog_cc_g = yes; then
4074  if test "$GCC" = yes; then
4075    CFLAGS="-g -O2"
4076  else
4077    CFLAGS="-g"
4078  fi
4079else
4080  if test "$GCC" = yes; then
4081    CFLAGS="-O2"
4082  else
4083    CFLAGS=
4084  fi
4085fi
4086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4087$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4088if ${ac_cv_prog_cc_c89+:} false; then :
4089  $as_echo_n "(cached) " >&6
4090else
4091  ac_cv_prog_cc_c89=no
4092ac_save_CC=$CC
4093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094/* end confdefs.h.  */
4095#include <stdarg.h>
4096#include <stdio.h>
4097struct stat;
4098/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4099struct buf { int x; };
4100FILE * (*rcsopen) (struct buf *, struct stat *, int);
4101static char *e (p, i)
4102     char **p;
4103     int i;
4104{
4105  return p[i];
4106}
4107static char *f (char * (*g) (char **, int), char **p, ...)
4108{
4109  char *s;
4110  va_list v;
4111  va_start (v,p);
4112  s = g (p, va_arg (v,int));
4113  va_end (v);
4114  return s;
4115}
4116
4117/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4118   function prototypes and stuff, but not '\xHH' hex character constants.
4119   These don't provoke an error unfortunately, instead are silently treated
4120   as 'x'.  The following induces an error, until -std is added to get
4121   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4122   array size at least.  It's necessary to write '\x00'==0 to get something
4123   that's true only with -std.  */
4124int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4125
4126/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4127   inside strings and character constants.  */
4128#define FOO(x) 'x'
4129int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4130
4131int test (int i, double x);
4132struct s1 {int (*f) (int a);};
4133struct s2 {int (*f) (double a);};
4134int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4135int argc;
4136char **argv;
4137int
4138main ()
4139{
4140return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4141  ;
4142  return 0;
4143}
4144_ACEOF
4145for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4146	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4147do
4148  CC="$ac_save_CC $ac_arg"
4149  if ac_fn_c_try_compile "$LINENO"; then :
4150  ac_cv_prog_cc_c89=$ac_arg
4151fi
4152rm -f core conftest.err conftest.$ac_objext
4153  test "x$ac_cv_prog_cc_c89" != "xno" && break
4154done
4155rm -f conftest.$ac_ext
4156CC=$ac_save_CC
4157
4158fi
4159# AC_CACHE_VAL
4160case "x$ac_cv_prog_cc_c89" in
4161  x)
4162    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4163$as_echo "none needed" >&6; } ;;
4164  xno)
4165    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4166$as_echo "unsupported" >&6; } ;;
4167  *)
4168    CC="$CC $ac_cv_prog_cc_c89"
4169    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4170$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4171esac
4172if test "x$ac_cv_prog_cc_c89" != xno; then :
4173
4174fi
4175
4176ac_ext=c
4177ac_cpp='$CPP $CPPFLAGS'
4178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4180ac_compiler_gnu=$ac_cv_c_compiler_gnu
4181
4182ac_ext=c
4183ac_cpp='$CPP $CPPFLAGS'
4184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4186ac_compiler_gnu=$ac_cv_c_compiler_gnu
4187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4188$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4189if ${am_cv_prog_cc_c_o+:} false; then :
4190  $as_echo_n "(cached) " >&6
4191else
4192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193/* end confdefs.h.  */
4194
4195int
4196main ()
4197{
4198
4199  ;
4200  return 0;
4201}
4202_ACEOF
4203  # Make sure it works both with $CC and with simple cc.
4204  # Following AC_PROG_CC_C_O, we do the test twice because some
4205  # compilers refuse to overwrite an existing .o file with -o,
4206  # though they will create one.
4207  am_cv_prog_cc_c_o=yes
4208  for am_i in 1 2; do
4209    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4210   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4211   ac_status=$?
4212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213   (exit $ac_status); } \
4214         && test -f conftest2.$ac_objext; then
4215      : OK
4216    else
4217      am_cv_prog_cc_c_o=no
4218      break
4219    fi
4220  done
4221  rm -f core conftest*
4222  unset am_i
4223fi
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4225$as_echo "$am_cv_prog_cc_c_o" >&6; }
4226if test "$am_cv_prog_cc_c_o" != yes; then
4227   # Losing compiler, so override with the script.
4228   # FIXME: It is wrong to rewrite CC.
4229   # But if we don't then we get into trouble of one sort or another.
4230   # A longer-term fix would be to have automake use am__CC in this case,
4231   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4232   CC="$am_aux_dir/compile $CC"
4233fi
4234ac_ext=c
4235ac_cpp='$CPP $CPPFLAGS'
4236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239
4240DEPDIR="${am__leading_dot}deps"
4241
4242ac_config_commands="$ac_config_commands depfiles"
4243
4244
4245am_make=${MAKE-make}
4246cat > confinc << 'END'
4247am__doit:
4248	@echo this is the am__doit target
4249.PHONY: am__doit
4250END
4251# If we don't find an include directive, just comment out the code.
4252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4253$as_echo_n "checking for style of include used by $am_make... " >&6; }
4254am__include="#"
4255am__quote=
4256_am_result=none
4257# First try GNU make style include.
4258echo "include confinc" > confmf
4259# Ignore all kinds of additional output from 'make'.
4260case `$am_make -s -f confmf 2> /dev/null` in #(
4261*the\ am__doit\ target*)
4262  am__include=include
4263  am__quote=
4264  _am_result=GNU
4265  ;;
4266esac
4267# Now try BSD make style include.
4268if test "$am__include" = "#"; then
4269   echo '.include "confinc"' > confmf
4270   case `$am_make -s -f confmf 2> /dev/null` in #(
4271   *the\ am__doit\ target*)
4272     am__include=.include
4273     am__quote="\""
4274     _am_result=BSD
4275     ;;
4276   esac
4277fi
4278
4279
4280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4281$as_echo "$_am_result" >&6; }
4282rm -f confinc confmf
4283
4284# Check whether --enable-dependency-tracking was given.
4285if test "${enable_dependency_tracking+set}" = set; then :
4286  enableval=$enable_dependency_tracking;
4287fi
4288
4289if test "x$enable_dependency_tracking" != xno; then
4290  am_depcomp="$ac_aux_dir/depcomp"
4291  AMDEPBACKSLASH='\'
4292  am__nodep='_no'
4293fi
4294 if test "x$enable_dependency_tracking" != xno; then
4295  AMDEP_TRUE=
4296  AMDEP_FALSE='#'
4297else
4298  AMDEP_TRUE='#'
4299  AMDEP_FALSE=
4300fi
4301
4302
4303
4304depcc="$CC"   am_compiler_list=
4305
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4307$as_echo_n "checking dependency style of $depcc... " >&6; }
4308if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4309  $as_echo_n "(cached) " >&6
4310else
4311  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4312  # We make a subdir and do the tests there.  Otherwise we can end up
4313  # making bogus files that we don't know about and never remove.  For
4314  # instance it was reported that on HP-UX the gcc test will end up
4315  # making a dummy file named 'D' -- because '-MD' means "put the output
4316  # in D".
4317  rm -rf conftest.dir
4318  mkdir conftest.dir
4319  # Copy depcomp to subdir because otherwise we won't find it if we're
4320  # using a relative directory.
4321  cp "$am_depcomp" conftest.dir
4322  cd conftest.dir
4323  # We will build objects and dependencies in a subdirectory because
4324  # it helps to detect inapplicable dependency modes.  For instance
4325  # both Tru64's cc and ICC support -MD to output dependencies as a
4326  # side effect of compilation, but ICC will put the dependencies in
4327  # the current directory while Tru64 will put them in the object
4328  # directory.
4329  mkdir sub
4330
4331  am_cv_CC_dependencies_compiler_type=none
4332  if test "$am_compiler_list" = ""; then
4333     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4334  fi
4335  am__universal=false
4336  case " $depcc " in #(
4337     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4338     esac
4339
4340  for depmode in $am_compiler_list; do
4341    # Setup a source with many dependencies, because some compilers
4342    # like to wrap large dependency lists on column 80 (with \), and
4343    # we should not choose a depcomp mode which is confused by this.
4344    #
4345    # We need to recreate these files for each test, as the compiler may
4346    # overwrite some of them when testing with obscure command lines.
4347    # This happens at least with the AIX C compiler.
4348    : > sub/conftest.c
4349    for i in 1 2 3 4 5 6; do
4350      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4351      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4352      # Solaris 10 /bin/sh.
4353      echo '/* dummy */' > sub/conftst$i.h
4354    done
4355    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4356
4357    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4358    # mode.  It turns out that the SunPro C++ compiler does not properly
4359    # handle '-M -o', and we need to detect this.  Also, some Intel
4360    # versions had trouble with output in subdirs.
4361    am__obj=sub/conftest.${OBJEXT-o}
4362    am__minus_obj="-o $am__obj"
4363    case $depmode in
4364    gcc)
4365      # This depmode causes a compiler race in universal mode.
4366      test "$am__universal" = false || continue
4367      ;;
4368    nosideeffect)
4369      # After this tag, mechanisms are not by side-effect, so they'll
4370      # only be used when explicitly requested.
4371      if test "x$enable_dependency_tracking" = xyes; then
4372	continue
4373      else
4374	break
4375      fi
4376      ;;
4377    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4378      # This compiler won't grok '-c -o', but also, the minuso test has
4379      # not run yet.  These depmodes are late enough in the game, and
4380      # so weak that their functioning should not be impacted.
4381      am__obj=conftest.${OBJEXT-o}
4382      am__minus_obj=
4383      ;;
4384    none) break ;;
4385    esac
4386    if depmode=$depmode \
4387       source=sub/conftest.c object=$am__obj \
4388       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4389       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4390         >/dev/null 2>conftest.err &&
4391       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4392       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4393       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4394       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4395      # icc doesn't choke on unknown options, it will just issue warnings
4396      # or remarks (even with -Werror).  So we grep stderr for any message
4397      # that says an option was ignored or not supported.
4398      # When given -MP, icc 7.0 and 7.1 complain thusly:
4399      #   icc: Command line warning: ignoring option '-M'; no argument required
4400      # The diagnosis changed in icc 8.0:
4401      #   icc: Command line remark: option '-MP' not supported
4402      if (grep 'ignoring option' conftest.err ||
4403          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4404        am_cv_CC_dependencies_compiler_type=$depmode
4405        break
4406      fi
4407    fi
4408  done
4409
4410  cd ..
4411  rm -rf conftest.dir
4412else
4413  am_cv_CC_dependencies_compiler_type=none
4414fi
4415
4416fi
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4418$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4419CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4420
4421 if
4422  test "x$enable_dependency_tracking" != xno \
4423  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4424  am__fastdepCC_TRUE=
4425  am__fastdepCC_FALSE='#'
4426else
4427  am__fastdepCC_TRUE='#'
4428  am__fastdepCC_FALSE=
4429fi
4430
4431
4432
4433# Suppress warnings about --datarootdir
4434
4435
4436# If we have gcc, and AC_PROG_CC changed the flags, then we know the
4437# user did not specify any flags. Add warnings in this case.
4438if test "$GCC" = "yes"; then
4439	if test "$CFLAGS" != "$SAVE_CFLAGS"; then
4440		STD_CWARNINGS="$STD_CWARNINGS -Wall -Werror -fno-strict-aliasing"
4441	fi
4442fi
4443
4444# POSIX doesn't include the IPv6 Advanced Socket API and glibc hides
4445# parts of the IPv6 Advanced Socket API as a result.  This is stupid
4446# as it breaks how the two halves (Basic and Advanced) of the IPv6
4447# Socket API were designed to be used but we have to live with it.
4448# Use this to define _GNU_SOURCE to pull in the IPv6 Advanced Socket API.
4449
4450ac_ext=c
4451ac_cpp='$CPP $CPPFLAGS'
4452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4454ac_compiler_gnu=$ac_cv_c_compiler_gnu
4455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4456$as_echo_n "checking how to run the C preprocessor... " >&6; }
4457# On Suns, sometimes $CPP names a directory.
4458if test -n "$CPP" && test -d "$CPP"; then
4459  CPP=
4460fi
4461if test -z "$CPP"; then
4462  if ${ac_cv_prog_CPP+:} false; then :
4463  $as_echo_n "(cached) " >&6
4464else
4465      # Double quotes because CPP needs to be expanded
4466    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4467    do
4468      ac_preproc_ok=false
4469for ac_c_preproc_warn_flag in '' yes
4470do
4471  # Use a header file that comes with gcc, so configuring glibc
4472  # with a fresh cross-compiler works.
4473  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4474  # <limits.h> exists even on freestanding compilers.
4475  # On the NeXT, cc -E runs the code through the compiler's parser,
4476  # not just through cpp. "Syntax error" is here to catch this case.
4477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478/* end confdefs.h.  */
4479#ifdef __STDC__
4480# include <limits.h>
4481#else
4482# include <assert.h>
4483#endif
4484		     Syntax error
4485_ACEOF
4486if ac_fn_c_try_cpp "$LINENO"; then :
4487
4488else
4489  # Broken: fails on valid input.
4490continue
4491fi
4492rm -f conftest.err conftest.i conftest.$ac_ext
4493
4494  # OK, works on sane cases.  Now check whether nonexistent headers
4495  # can be detected and how.
4496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497/* end confdefs.h.  */
4498#include <ac_nonexistent.h>
4499_ACEOF
4500if ac_fn_c_try_cpp "$LINENO"; then :
4501  # Broken: success on invalid input.
4502continue
4503else
4504  # Passes both tests.
4505ac_preproc_ok=:
4506break
4507fi
4508rm -f conftest.err conftest.i conftest.$ac_ext
4509
4510done
4511# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4512rm -f conftest.i conftest.err conftest.$ac_ext
4513if $ac_preproc_ok; then :
4514  break
4515fi
4516
4517    done
4518    ac_cv_prog_CPP=$CPP
4519
4520fi
4521  CPP=$ac_cv_prog_CPP
4522else
4523  ac_cv_prog_CPP=$CPP
4524fi
4525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4526$as_echo "$CPP" >&6; }
4527ac_preproc_ok=false
4528for ac_c_preproc_warn_flag in '' yes
4529do
4530  # Use a header file that comes with gcc, so configuring glibc
4531  # with a fresh cross-compiler works.
4532  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4533  # <limits.h> exists even on freestanding compilers.
4534  # On the NeXT, cc -E runs the code through the compiler's parser,
4535  # not just through cpp. "Syntax error" is here to catch this case.
4536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537/* end confdefs.h.  */
4538#ifdef __STDC__
4539# include <limits.h>
4540#else
4541# include <assert.h>
4542#endif
4543		     Syntax error
4544_ACEOF
4545if ac_fn_c_try_cpp "$LINENO"; then :
4546
4547else
4548  # Broken: fails on valid input.
4549continue
4550fi
4551rm -f conftest.err conftest.i conftest.$ac_ext
4552
4553  # OK, works on sane cases.  Now check whether nonexistent headers
4554  # can be detected and how.
4555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556/* end confdefs.h.  */
4557#include <ac_nonexistent.h>
4558_ACEOF
4559if ac_fn_c_try_cpp "$LINENO"; then :
4560  # Broken: success on invalid input.
4561continue
4562else
4563  # Passes both tests.
4564ac_preproc_ok=:
4565break
4566fi
4567rm -f conftest.err conftest.i conftest.$ac_ext
4568
4569done
4570# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4571rm -f conftest.i conftest.err conftest.$ac_ext
4572if $ac_preproc_ok; then :
4573
4574else
4575  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4576$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4577as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4578See \`config.log' for more details" "$LINENO" 5; }
4579fi
4580
4581ac_ext=c
4582ac_cpp='$CPP $CPPFLAGS'
4583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4585ac_compiler_gnu=$ac_cv_c_compiler_gnu
4586
4587
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4589$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4590if ${ac_cv_path_GREP+:} false; then :
4591  $as_echo_n "(cached) " >&6
4592else
4593  if test -z "$GREP"; then
4594  ac_path_GREP_found=false
4595  # Loop through the user's path and test for each of PROGNAME-LIST
4596  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4598do
4599  IFS=$as_save_IFS
4600  test -z "$as_dir" && as_dir=.
4601    for ac_prog in grep ggrep; do
4602    for ac_exec_ext in '' $ac_executable_extensions; do
4603      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4604      as_fn_executable_p "$ac_path_GREP" || continue
4605# Check for GNU ac_path_GREP and select it if it is found.
4606  # Check for GNU $ac_path_GREP
4607case `"$ac_path_GREP" --version 2>&1` in
4608*GNU*)
4609  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4610*)
4611  ac_count=0
4612  $as_echo_n 0123456789 >"conftest.in"
4613  while :
4614  do
4615    cat "conftest.in" "conftest.in" >"conftest.tmp"
4616    mv "conftest.tmp" "conftest.in"
4617    cp "conftest.in" "conftest.nl"
4618    $as_echo 'GREP' >> "conftest.nl"
4619    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4620    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4621    as_fn_arith $ac_count + 1 && ac_count=$as_val
4622    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4623      # Best one so far, save it but keep looking for a better one
4624      ac_cv_path_GREP="$ac_path_GREP"
4625      ac_path_GREP_max=$ac_count
4626    fi
4627    # 10*(2^10) chars as input seems more than enough
4628    test $ac_count -gt 10 && break
4629  done
4630  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4631esac
4632
4633      $ac_path_GREP_found && break 3
4634    done
4635  done
4636  done
4637IFS=$as_save_IFS
4638  if test -z "$ac_cv_path_GREP"; then
4639    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4640  fi
4641else
4642  ac_cv_path_GREP=$GREP
4643fi
4644
4645fi
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4647$as_echo "$ac_cv_path_GREP" >&6; }
4648 GREP="$ac_cv_path_GREP"
4649
4650
4651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4652$as_echo_n "checking for egrep... " >&6; }
4653if ${ac_cv_path_EGREP+:} false; then :
4654  $as_echo_n "(cached) " >&6
4655else
4656  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4657   then ac_cv_path_EGREP="$GREP -E"
4658   else
4659     if test -z "$EGREP"; then
4660  ac_path_EGREP_found=false
4661  # Loop through the user's path and test for each of PROGNAME-LIST
4662  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4664do
4665  IFS=$as_save_IFS
4666  test -z "$as_dir" && as_dir=.
4667    for ac_prog in egrep; do
4668    for ac_exec_ext in '' $ac_executable_extensions; do
4669      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4670      as_fn_executable_p "$ac_path_EGREP" || continue
4671# Check for GNU ac_path_EGREP and select it if it is found.
4672  # Check for GNU $ac_path_EGREP
4673case `"$ac_path_EGREP" --version 2>&1` in
4674*GNU*)
4675  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4676*)
4677  ac_count=0
4678  $as_echo_n 0123456789 >"conftest.in"
4679  while :
4680  do
4681    cat "conftest.in" "conftest.in" >"conftest.tmp"
4682    mv "conftest.tmp" "conftest.in"
4683    cp "conftest.in" "conftest.nl"
4684    $as_echo 'EGREP' >> "conftest.nl"
4685    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4686    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4687    as_fn_arith $ac_count + 1 && ac_count=$as_val
4688    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4689      # Best one so far, save it but keep looking for a better one
4690      ac_cv_path_EGREP="$ac_path_EGREP"
4691      ac_path_EGREP_max=$ac_count
4692    fi
4693    # 10*(2^10) chars as input seems more than enough
4694    test $ac_count -gt 10 && break
4695  done
4696  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4697esac
4698
4699      $ac_path_EGREP_found && break 3
4700    done
4701  done
4702  done
4703IFS=$as_save_IFS
4704  if test -z "$ac_cv_path_EGREP"; then
4705    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4706  fi
4707else
4708  ac_cv_path_EGREP=$EGREP
4709fi
4710
4711   fi
4712fi
4713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4714$as_echo "$ac_cv_path_EGREP" >&6; }
4715 EGREP="$ac_cv_path_EGREP"
4716
4717
4718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4719$as_echo_n "checking for ANSI C header files... " >&6; }
4720if ${ac_cv_header_stdc+:} false; then :
4721  $as_echo_n "(cached) " >&6
4722else
4723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724/* end confdefs.h.  */
4725#include <stdlib.h>
4726#include <stdarg.h>
4727#include <string.h>
4728#include <float.h>
4729
4730int
4731main ()
4732{
4733
4734  ;
4735  return 0;
4736}
4737_ACEOF
4738if ac_fn_c_try_compile "$LINENO"; then :
4739  ac_cv_header_stdc=yes
4740else
4741  ac_cv_header_stdc=no
4742fi
4743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4744
4745if test $ac_cv_header_stdc = yes; then
4746  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748/* end confdefs.h.  */
4749#include <string.h>
4750
4751_ACEOF
4752if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4753  $EGREP "memchr" >/dev/null 2>&1; then :
4754
4755else
4756  ac_cv_header_stdc=no
4757fi
4758rm -f conftest*
4759
4760fi
4761
4762if test $ac_cv_header_stdc = yes; then
4763  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765/* end confdefs.h.  */
4766#include <stdlib.h>
4767
4768_ACEOF
4769if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4770  $EGREP "free" >/dev/null 2>&1; then :
4771
4772else
4773  ac_cv_header_stdc=no
4774fi
4775rm -f conftest*
4776
4777fi
4778
4779if test $ac_cv_header_stdc = yes; then
4780  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4781  if test "$cross_compiling" = yes; then :
4782  :
4783else
4784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785/* end confdefs.h.  */
4786#include <ctype.h>
4787#include <stdlib.h>
4788#if ((' ' & 0x0FF) == 0x020)
4789# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4790# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4791#else
4792# define ISLOWER(c) \
4793		   (('a' <= (c) && (c) <= 'i') \
4794		     || ('j' <= (c) && (c) <= 'r') \
4795		     || ('s' <= (c) && (c) <= 'z'))
4796# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4797#endif
4798
4799#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4800int
4801main ()
4802{
4803  int i;
4804  for (i = 0; i < 256; i++)
4805    if (XOR (islower (i), ISLOWER (i))
4806	|| toupper (i) != TOUPPER (i))
4807      return 2;
4808  return 0;
4809}
4810_ACEOF
4811if ac_fn_c_try_run "$LINENO"; then :
4812
4813else
4814  ac_cv_header_stdc=no
4815fi
4816rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4817  conftest.$ac_objext conftest.beam conftest.$ac_ext
4818fi
4819
4820fi
4821fi
4822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4823$as_echo "$ac_cv_header_stdc" >&6; }
4824if test $ac_cv_header_stdc = yes; then
4825
4826$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4827
4828fi
4829
4830# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4831for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4832		  inttypes.h stdint.h unistd.h
4833do :
4834  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4835ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4836"
4837if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4838  cat >>confdefs.h <<_ACEOF
4839#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4840_ACEOF
4841
4842fi
4843
4844done
4845
4846
4847
4848  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4849if test "x$ac_cv_header_minix_config_h" = xyes; then :
4850  MINIX=yes
4851else
4852  MINIX=
4853fi
4854
4855
4856  if test "$MINIX" = yes; then
4857
4858$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4859
4860
4861$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4862
4863
4864$as_echo "#define _MINIX 1" >>confdefs.h
4865
4866  fi
4867
4868
4869  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4870$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4871if ${ac_cv_safe_to_define___extensions__+:} false; then :
4872  $as_echo_n "(cached) " >&6
4873else
4874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875/* end confdefs.h.  */
4876
4877#         define __EXTENSIONS__ 1
4878          $ac_includes_default
4879int
4880main ()
4881{
4882
4883  ;
4884  return 0;
4885}
4886_ACEOF
4887if ac_fn_c_try_compile "$LINENO"; then :
4888  ac_cv_safe_to_define___extensions__=yes
4889else
4890  ac_cv_safe_to_define___extensions__=no
4891fi
4892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893fi
4894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4895$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4896  test $ac_cv_safe_to_define___extensions__ = yes &&
4897    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4898
4899  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4900
4901  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4902
4903  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4904
4905  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4906
4907
4908
4909if test -n "$ac_tool_prefix"; then
4910  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4911set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4913$as_echo_n "checking for $ac_word... " >&6; }
4914if ${ac_cv_prog_RANLIB+:} false; then :
4915  $as_echo_n "(cached) " >&6
4916else
4917  if test -n "$RANLIB"; then
4918  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4919else
4920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921for as_dir in $PATH
4922do
4923  IFS=$as_save_IFS
4924  test -z "$as_dir" && as_dir=.
4925    for ac_exec_ext in '' $ac_executable_extensions; do
4926  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4927    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4928    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4929    break 2
4930  fi
4931done
4932  done
4933IFS=$as_save_IFS
4934
4935fi
4936fi
4937RANLIB=$ac_cv_prog_RANLIB
4938if test -n "$RANLIB"; then
4939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4940$as_echo "$RANLIB" >&6; }
4941else
4942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943$as_echo "no" >&6; }
4944fi
4945
4946
4947fi
4948if test -z "$ac_cv_prog_RANLIB"; then
4949  ac_ct_RANLIB=$RANLIB
4950  # Extract the first word of "ranlib", so it can be a program name with args.
4951set dummy ranlib; ac_word=$2
4952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953$as_echo_n "checking for $ac_word... " >&6; }
4954if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4955  $as_echo_n "(cached) " >&6
4956else
4957  if test -n "$ac_ct_RANLIB"; then
4958  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4959else
4960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961for as_dir in $PATH
4962do
4963  IFS=$as_save_IFS
4964  test -z "$as_dir" && as_dir=.
4965    for ac_exec_ext in '' $ac_executable_extensions; do
4966  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4967    ac_cv_prog_ac_ct_RANLIB="ranlib"
4968    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4969    break 2
4970  fi
4971done
4972  done
4973IFS=$as_save_IFS
4974
4975fi
4976fi
4977ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4978if test -n "$ac_ct_RANLIB"; then
4979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4980$as_echo "$ac_ct_RANLIB" >&6; }
4981else
4982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983$as_echo "no" >&6; }
4984fi
4985
4986  if test "x$ac_ct_RANLIB" = x; then
4987    RANLIB=":"
4988  else
4989    case $cross_compiling:$ac_tool_warned in
4990yes:)
4991{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4992$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4993ac_tool_warned=yes ;;
4994esac
4995    RANLIB=$ac_ct_RANLIB
4996  fi
4997else
4998  RANLIB="$ac_cv_prog_RANLIB"
4999fi
5000
5001ac_config_headers="$ac_config_headers includes/config.h"
5002
5003
5004# we sometimes need to know byte order for building packets
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5006$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5007if ${ac_cv_c_bigendian+:} false; then :
5008  $as_echo_n "(cached) " >&6
5009else
5010  ac_cv_c_bigendian=unknown
5011    # See if we're dealing with a universal compiler.
5012    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5013/* end confdefs.h.  */
5014#ifndef __APPLE_CC__
5015	       not a universal capable compiler
5016	     #endif
5017	     typedef int dummy;
5018
5019_ACEOF
5020if ac_fn_c_try_compile "$LINENO"; then :
5021
5022	# Check for potential -arch flags.  It is not universal unless
5023	# there are at least two -arch flags with different values.
5024	ac_arch=
5025	ac_prev=
5026	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5027	 if test -n "$ac_prev"; then
5028	   case $ac_word in
5029	     i?86 | x86_64 | ppc | ppc64)
5030	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5031		 ac_arch=$ac_word
5032	       else
5033		 ac_cv_c_bigendian=universal
5034		 break
5035	       fi
5036	       ;;
5037	   esac
5038	   ac_prev=
5039	 elif test "x$ac_word" = "x-arch"; then
5040	   ac_prev=arch
5041	 fi
5042       done
5043fi
5044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5045    if test $ac_cv_c_bigendian = unknown; then
5046      # See if sys/param.h defines the BYTE_ORDER macro.
5047      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048/* end confdefs.h.  */
5049#include <sys/types.h>
5050	     #include <sys/param.h>
5051
5052int
5053main ()
5054{
5055#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5056		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5057		     && LITTLE_ENDIAN)
5058	      bogus endian macros
5059	     #endif
5060
5061  ;
5062  return 0;
5063}
5064_ACEOF
5065if ac_fn_c_try_compile "$LINENO"; then :
5066  # It does; now see whether it defined to BIG_ENDIAN or not.
5067	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068/* end confdefs.h.  */
5069#include <sys/types.h>
5070		#include <sys/param.h>
5071
5072int
5073main ()
5074{
5075#if BYTE_ORDER != BIG_ENDIAN
5076		 not big endian
5077		#endif
5078
5079  ;
5080  return 0;
5081}
5082_ACEOF
5083if ac_fn_c_try_compile "$LINENO"; then :
5084  ac_cv_c_bigendian=yes
5085else
5086  ac_cv_c_bigendian=no
5087fi
5088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5089fi
5090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5091    fi
5092    if test $ac_cv_c_bigendian = unknown; then
5093      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5094      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095/* end confdefs.h.  */
5096#include <limits.h>
5097
5098int
5099main ()
5100{
5101#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5102	      bogus endian macros
5103	     #endif
5104
5105  ;
5106  return 0;
5107}
5108_ACEOF
5109if ac_fn_c_try_compile "$LINENO"; then :
5110  # It does; now see whether it defined to _BIG_ENDIAN or not.
5111	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112/* end confdefs.h.  */
5113#include <limits.h>
5114
5115int
5116main ()
5117{
5118#ifndef _BIG_ENDIAN
5119		 not big endian
5120		#endif
5121
5122  ;
5123  return 0;
5124}
5125_ACEOF
5126if ac_fn_c_try_compile "$LINENO"; then :
5127  ac_cv_c_bigendian=yes
5128else
5129  ac_cv_c_bigendian=no
5130fi
5131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5132fi
5133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5134    fi
5135    if test $ac_cv_c_bigendian = unknown; then
5136      # Compile a test program.
5137      if test "$cross_compiling" = yes; then :
5138  # Try to guess by grepping values from an object file.
5139	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5140/* end confdefs.h.  */
5141short int ascii_mm[] =
5142		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5143		short int ascii_ii[] =
5144		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5145		int use_ascii (int i) {
5146		  return ascii_mm[i] + ascii_ii[i];
5147		}
5148		short int ebcdic_ii[] =
5149		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5150		short int ebcdic_mm[] =
5151		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5152		int use_ebcdic (int i) {
5153		  return ebcdic_mm[i] + ebcdic_ii[i];
5154		}
5155		extern int foo;
5156
5157int
5158main ()
5159{
5160return use_ascii (foo) == use_ebcdic (foo);
5161  ;
5162  return 0;
5163}
5164_ACEOF
5165if ac_fn_c_try_compile "$LINENO"; then :
5166  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5167	      ac_cv_c_bigendian=yes
5168	    fi
5169	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5170	      if test "$ac_cv_c_bigendian" = unknown; then
5171		ac_cv_c_bigendian=no
5172	      else
5173		# finding both strings is unlikely to happen, but who knows?
5174		ac_cv_c_bigendian=unknown
5175	      fi
5176	    fi
5177fi
5178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5179else
5180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181/* end confdefs.h.  */
5182$ac_includes_default
5183int
5184main ()
5185{
5186
5187	     /* Are we little or big endian?  From Harbison&Steele.  */
5188	     union
5189	     {
5190	       long int l;
5191	       char c[sizeof (long int)];
5192	     } u;
5193	     u.l = 1;
5194	     return u.c[sizeof (long int) - 1] == 1;
5195
5196  ;
5197  return 0;
5198}
5199_ACEOF
5200if ac_fn_c_try_run "$LINENO"; then :
5201  ac_cv_c_bigendian=no
5202else
5203  ac_cv_c_bigendian=yes
5204fi
5205rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5206  conftest.$ac_objext conftest.beam conftest.$ac_ext
5207fi
5208
5209    fi
5210fi
5211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5212$as_echo "$ac_cv_c_bigendian" >&6; }
5213 case $ac_cv_c_bigendian in #(
5214   yes)
5215     byte_order=BIG_ENDIAN
5216;; #(
5217   no)
5218     byte_order=LITTLE_ENDIAN
5219 ;; #(
5220   universal)
5221
5222$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5223
5224     ;; #(
5225   *)
5226     as_fn_error $? "unknown endianness
5227 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5228 esac
5229
5230
5231cat >>confdefs.h <<_ACEOF
5232#define DHCP_BYTE_ORDER $byte_order
5233_ACEOF
5234
5235
5236# Optional compile-time DEBUGging.
5237# Check whether --enable-debug was given.
5238if test "${enable_debug+set}" = set; then :
5239  enableval=$enable_debug; enable_debug=yes
5240else
5241  enable_debug=no
5242fi
5243
5244# This is very much off by default.
5245if test "$enable_debug" = "yes" ; then
5246
5247$as_echo "#define DEBUG 1" >>confdefs.h
5248
5249	# Just override CFLAGS to totally to remove optimization.
5250	CFLAGS="-g"
5251fi
5252# XXX: there are actually quite a lot more DEBUG_ features we could enable,
5253# but I don't want to pollute the --help space.
5254#
5255#/* #define DEBUG_TOKENS */
5256#/* #define DEBUG_PACKET */
5257#/* #define DEBUG_EXPRESSIONS */
5258#/* #define DEBUG_FIND_LEASE */
5259#/* #define DEBUG_EXPRESSION_PARSE */
5260#/* #define DEBUG_CLASS_MATCHING */
5261#/* #define DEBUG_MEMORY_LEAKAGE */
5262#/* #define DEBUG_MALLOC_POOL */
5263#/* #define DEBUG_LEASE_STATE_TRANSITIONS */
5264#/* #define DEBUG_RC_HISTORY */
5265#/* #define DEBUG_RC_HISTORY_EXHAUSTIVELY */
5266#/* #define RC_HISTORY_MAX 10240 */
5267#/* #define POINTER_DEBUG */
5268#/* #define DEBUG_FAILOVER_MESSAGES */
5269#/* #define DEBUG_FAILOVER_TIMING */
5270#/* #define DEBUG_DUMP_ALL_LEASES */
5271
5272# Failover optional compile-time feature.
5273# Check whether --enable-failover was given.
5274if test "${enable_failover+set}" = set; then :
5275  enableval=$enable_failover;
5276fi
5277
5278# Failover is on by default, so define if it is not explicitly disabled.
5279if test "$enable_failover" != "no"; then
5280
5281$as_echo "#define FAILOVER_PROTOCOL 1" >>confdefs.h
5282
5283fi
5284
5285# execute() support.
5286# Check whether --enable-execute was given.
5287if test "${enable_execute+set}" = set; then :
5288  enableval=$enable_execute;
5289fi
5290
5291# execute() is on by default, so define if it is not explicitly disabled.
5292if test "$enable_execute" != "no" ; then
5293
5294$as_echo "#define ENABLE_EXECUTE 1" >>confdefs.h
5295
5296fi
5297
5298# Server tracing support.
5299# Check whether --enable-tracing was given.
5300if test "${enable_tracing+set}" = set; then :
5301  enableval=$enable_tracing;
5302fi
5303
5304# tracing is on by default, so define if it is not explicitly disabled.
5305if test "$enable_tracing" != "no" ; then
5306
5307$as_echo "#define TRACING 1" >>confdefs.h
5308
5309fi
5310
5311# Delayed-ack feature support (experimental).
5312# Check whether --enable-delayed_ack was given.
5313if test "${enable_delayed_ack+set}" = set; then :
5314  enableval=$enable_delayed_ack;
5315fi
5316
5317if test "$enable_delayed_ack" = "yes"; then
5318
5319$as_echo "#define DELAYED_ACK 1" >>confdefs.h
5320
5321fi
5322
5323# DHCPv6 optional compile-time feature.
5324# Check whether --enable-dhcpv6 was given.
5325if test "${enable_dhcpv6+set}" = set; then :
5326  enableval=$enable_dhcpv6;
5327fi
5328
5329# DHCPv6 is on by default, so define if it is not explicitly disabled.
5330if test "$enable_dhcpv6" != "no"; then
5331
5332$as_echo "#define DHCPv6 1" >>confdefs.h
5333
5334fi
5335
5336# PARANOIA is off by default (until we can test it with all features)
5337# Check whether --enable-paranoia was given.
5338if test "${enable_paranoia+set}" = set; then :
5339  enableval=$enable_paranoia;
5340fi
5341
5342# Check whether --enable-early_chroot was given.
5343if test "${enable_early_chroot+set}" = set; then :
5344  enableval=$enable_early_chroot;
5345fi
5346
5347# If someone enables early chroot, but does not enable paranoia, do so for
5348# them.
5349if test "$enable_paranoia" != "yes" && \
5350   test "$enable_early_chroot" = "yes" ; then
5351	enable_paranoia="yes"
5352fi
5353
5354if test "$enable_paranoia" = "yes" ; then
5355
5356$as_echo "#define PARANOIA 1" >>confdefs.h
5357
5358fi
5359if test "$enable_early_chroot" = "yes" ; then
5360
5361$as_echo "#define EARLY_CHROOT 1" >>confdefs.h
5362
5363fi
5364
5365# Check whether --enable-ipv4_pktinfo was given.
5366if test "${enable_ipv4_pktinfo+set}" = set; then :
5367  enableval=$enable_ipv4_pktinfo;
5368fi
5369
5370
5371if test "$enable_ipv4_pktinfo" = "yes"; then
5372
5373$as_echo "#define USE_V4_PKTINFO 1" >>confdefs.h
5374
5375fi
5376
5377# Check whether --enable-use_sockets was given.
5378if test "${enable_use_sockets+set}" = set; then :
5379  enableval=$enable_use_sockets;
5380fi
5381
5382
5383if test "$enable_use_sockets" = "yes"; then
5384
5385$as_echo "#define USE_SOCKETS 1" >>confdefs.h
5386
5387fi
5388
5389# Try to hnadle incorrect byte order for secs field
5390# This is off by default
5391# Check whether --enable-secs_byteorder was given.
5392if test "${enable_secs_byteorder+set}" = set; then :
5393  enableval=$enable_secs_byteorder;
5394fi
5395
5396
5397if test "$enable_secs_byteorder" = "yes" ; then
5398
5399$as_echo "#define SECS_BYTEORDER 1" >>confdefs.h
5400
5401fi
5402
5403# Testing section
5404
5405atf_path="no"
5406
5407# Check whether --with-atf was given.
5408if test "${with_atf+set}" = set; then :
5409  withval=$with_atf; atf_path="$withval"
5410fi
5411
5412if test "$atf_path" != "no" ; then
5413    # Config path for pkg-config
5414    atf_pcp=""
5415    if test "$atf_path" != "yes" ; then
5416        if test -f $atf_path/lib/pkgconfig/atf-c.pc ; then
5417            atf_pcp=$atf_path/lib/pkgconfig
5418        elif test -f $atf_path/lib64/pkgconfig/atf-c.pc ; then
5419            atf_pcp=$atf_path/lib64/pkgconfig
5420        fi
5421    else
5422        # Not specified, try some common paths
5423        atf_dirs="/usr /usr/local /usr/pkg /opt /opt/local"
5424        for d in $atf_dirs
5425        do
5426            if test -f $d/lib/pkgconfig/atf-c.pc ; then
5427                atf_pcp=$d/lib/pkgconfig
5428            elif test -f $d/lib64/pkgconfig/atf-c.pc ; then
5429                atf_pcp=$d/lib64/pkgconfig
5430            fi
5431        done
5432    fi
5433    if test "$atf_pcp" = "" ; then
5434        as_fn_error $? "Unable to find atf files in location specified" "$LINENO" 5
5435    else
5436        ATF_CFLAGS="`PKG_CONFIG_PATH=$atf_pcp pkg-config --cflags atf-c` -DUNIT_TEST"
5437        ATF_LDFLAGS="`PKG_CONFIG_PATH=$atf_pcp pkg-config --libs atf-c`"
5438
5439
5440    fi
5441fi
5442
5443 if test "$atf_pcp" != ""; then
5444  HAVE_ATF_TRUE=
5445  HAVE_ATF_FALSE='#'
5446else
5447  HAVE_ATF_TRUE='#'
5448  HAVE_ATF_FALSE=
5449fi
5450
5451### Uncomment this once docs.lab.isc.org upgrades to automake 1.11
5452### AM_COND_IF([HAVE_ATF], [AC_DEFINE([HAVE_ATF], [1], [ATF framework specified?])])
5453
5454###
5455### Path fun.  Older versions of DHCP were installed in /usr/sbin, so we
5456### need to look there and potentially overwrite by default (but not if
5457### the user configures an alternate value).  LOCALSTATEDIR is totally
5458### braindead.  No one uses /usr/local/var/db/ nor /usr/local/var/run, and
5459### they would be insane for suggesting it.  We need to look in /var/for
5460### 'db' and 'state/dhcp' for db files, and /var/run for pid files by
5461### default.
5462###
5463if test "x$prefix" = xNONE; then
5464  $as_echo_n "checking for prefix by " >&6
5465  # Extract the first word of "dhcpd", so it can be a program name with args.
5466set dummy dhcpd; ac_word=$2
5467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5468$as_echo_n "checking for $ac_word... " >&6; }
5469if ${ac_cv_path_ac_prefix_program+:} false; then :
5470  $as_echo_n "(cached) " >&6
5471else
5472  case $ac_prefix_program in
5473  [\\/]* | ?:[\\/]*)
5474  ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
5475  ;;
5476  *)
5477  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478for as_dir in $PATH
5479do
5480  IFS=$as_save_IFS
5481  test -z "$as_dir" && as_dir=.
5482    for ac_exec_ext in '' $ac_executable_extensions; do
5483  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5484    ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
5485    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5486    break 2
5487  fi
5488done
5489  done
5490IFS=$as_save_IFS
5491
5492  ;;
5493esac
5494fi
5495ac_prefix_program=$ac_cv_path_ac_prefix_program
5496if test -n "$ac_prefix_program"; then
5497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prefix_program" >&5
5498$as_echo "$ac_prefix_program" >&6; }
5499else
5500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5501$as_echo "no" >&6; }
5502fi
5503
5504
5505  if test -n "$ac_prefix_program"; then
5506    prefix=`$as_dirname -- "$ac_prefix_program" ||
5507$as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5508	 X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
5509	 X"$ac_prefix_program" : 'X\(//\)$' \| \
5510	 X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null ||
5511$as_echo X"$ac_prefix_program" |
5512    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5513	    s//\1/
5514	    q
5515	  }
5516	  /^X\(\/\/\)[^/].*/{
5517	    s//\1/
5518	    q
5519	  }
5520	  /^X\(\/\/\)$/{
5521	    s//\1/
5522	    q
5523	  }
5524	  /^X\(\/\).*/{
5525	    s//\1/
5526	    q
5527	  }
5528	  s/.*/./; q'`
5529    prefix=`$as_dirname -- "$prefix" ||
5530$as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5531	 X"$prefix" : 'X\(//\)[^/]' \| \
5532	 X"$prefix" : 'X\(//\)$' \| \
5533	 X"$prefix" : 'X\(/\)' \| . 2>/dev/null ||
5534$as_echo X"$prefix" |
5535    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5536	    s//\1/
5537	    q
5538	  }
5539	  /^X\(\/\/\)[^/].*/{
5540	    s//\1/
5541	    q
5542	  }
5543	  /^X\(\/\/\)$/{
5544	    s//\1/
5545	    q
5546	  }
5547	  /^X\(\/\).*/{
5548	    s//\1/
5549	    q
5550	  }
5551	  s/.*/./; q'`
5552  fi
5553fi
5554
5555
5556# XXX - isn't there SOME WAY to default autoconf to /var instead of
5557# /usr/local/var/no/one/has/this/please/stop/trying?
5558case "$localstatedir" in
5559	'${prefix}/var')
5560		localstatedir=/var
5561		;;
5562esac
5563
5564# Allow specification of alternate state files
5565
5566# Check whether --with-srv-lease-file was given.
5567if test "${with_srv_lease_file+set}" = set; then :
5568  withval=$with_srv_lease_file;
5569cat >>confdefs.h <<_ACEOF
5570#define _PATH_DHCPD_DB "$withval"
5571_ACEOF
5572
5573fi
5574
5575
5576echo -n "checking for dhcpd.leases location..."
5577if [ "x$with_srv_lease_file" = "x" ] ; then
5578	if [ -d "${localstatedir}/db" ] ; then
5579		with_srv_lease_file="${localstatedir}/db/dhcpd.leases"
5580	elif [ -d "${localstatedir}/state" ] ; then
5581		if [ -d "${localstatedir}/state/dhcp" ] ; then
5582			with_srv_lease_file="${localstatedir}/state/dhcp/dhcpd.leases"
5583		else
5584			with_srv_lease_file="${localstatedir}/state/dhcpd.leases"
5585		fi
5586	elif [ -d "${localstatedir}/lib" ] ; then
5587		if [ -d "${localstatedir}/lib/dhcp" ] ; then
5588			with_srv_lease_file="${localstatedir}/lib/dhcp/dhcpd.leases"
5589		else
5590			with_srv_lease_file="${localstatedir}/lib/dhcpd.leases"
5591		fi
5592	elif [ -d "${localstatedir}/etc" ] ; then
5593		with_srv_lease_file="${localstatedir}/etc/dhcpd.leases"
5594	else
5595		with_srv_lease_file="/etc/dhcpd.leases"
5596	fi
5597fi
5598echo "$with_srv_lease_file"
5599
5600
5601# Check whether --with-srv6-lease-file was given.
5602if test "${with_srv6_lease_file+set}" = set; then :
5603  withval=$with_srv6_lease_file;
5604cat >>confdefs.h <<_ACEOF
5605#define _PATH_DHCPD6_DB "$withval"
5606_ACEOF
5607
5608fi
5609
5610
5611echo -n "checking for dhcpd6.leases location..."
5612if [ "x$with_srv6_lease_file" = "x" ] ; then
5613	if [ -d "${localstatedir}/db" ] ; then
5614		with_srv6_lease_file="${localstatedir}/db/dhcpd6.leases"
5615	elif [ -d "${localstatedir}/state" ] ; then
5616		if [ -d "${localstatedir}/state/dhcp" ] ; then
5617			with_srv6_lease_file="${localstatedir}/state/dhcp/dhcpd6.leases"
5618		else
5619			with_srv6_lease_file="${localstatedir}/state/dhcpd6.leases"
5620		fi
5621	elif [ -d "${localstatedir}/lib" ] ; then
5622		if [ -d "${localstatedir}/lib/dhcp" ] ; then
5623			with_srv6_lease_file="${localstatedir}/lib/dhcp/dhcpd6.leases"
5624		else
5625			with_srv6_lease_file="${localstatedir}/lib/dhcpd6.leases"
5626		fi
5627	elif [ -d "${localstatedir}/etc" ] ; then
5628		with_srv6_lease_file="${localstatedir}/etc/dhcpd6.leases"
5629	else
5630		with_srv6_lease_file="/etc/dhcpd6.leases"
5631	fi
5632fi
5633echo "$with_srv6_lease_file"
5634
5635
5636# Check whether --with-cli-lease-file was given.
5637if test "${with_cli_lease_file+set}" = set; then :
5638  withval=$with_cli_lease_file;
5639cat >>confdefs.h <<_ACEOF
5640#define _PATH_DHCLIENT_DB "$withval"
5641_ACEOF
5642
5643fi
5644
5645
5646echo -n "checking for dhclient.leases location..."
5647if [ "x$with_cli_lease_file" = "x" ] ; then
5648	if [ -d "${localstatedir}/db" ] ; then
5649		with_cli_lease_file="${localstatedir}/db/dhclient.leases"
5650	elif [ -d "${localstatedir}/state" ] ; then
5651		if [ -d "${localstatedir}/state/dhcp" ] ; then
5652			with_cli_lease_file="${localstatedir}/state/dhcp/dhclient.leases"
5653		else
5654			with_cli_lease_file="${localstatedir}/state/dhclient.leases"
5655		fi
5656	elif [ -d "${localstatedir}/lib" ] ; then
5657		if [ -d "${localstatedir}/lib/dhcp" ] ; then
5658			with_cli_lease_file="${localstatedir}/lib/dhcp/dhclient.leases"
5659		else
5660			with_cli_lease_file="${localstatedir}/lib/dhclient.leases"
5661		fi
5662	elif [ -d "${localstatedir}/etc" ] ; then
5663		with_cli_lease_file="${localstatedir}/etc/dhclient.leases"
5664	else
5665		with_cli_lease_file="/etc/dhclient.leases"
5666	fi
5667fi
5668echo "$with_cli_lease_file"
5669
5670
5671# Check whether --with-cli6-lease-file was given.
5672if test "${with_cli6_lease_file+set}" = set; then :
5673  withval=$with_cli6_lease_file;
5674cat >>confdefs.h <<_ACEOF
5675#define _PATH_DHCLIENT6_DB "$withval"
5676_ACEOF
5677
5678fi
5679
5680
5681echo -n "checking for dhclient6.leases location..."
5682if [ "x$with_cli6_lease_file" = "x" ] ; then
5683	if [ -d "${localstatedir}/db" ] ; then
5684		with_cli6_lease_file="${localstatedir}/db/dhclient6.leases"
5685	elif [ -d "${localstatedir}/state" ] ; then
5686		if [ -d "${localstatedir}/state/dhcp" ] ; then
5687			with_cli6_lease_file="${localstatedir}/state/dhcp/dhclient6.leases"
5688		else
5689			with_cli6_lease_file="${localstatedir}/state/dhclient6.leases"
5690		fi
5691	elif [ -d "${localstatedir}/lib" ] ; then
5692		if [ -d "${localstatedir}/lib/dhcp" ] ; then
5693			with_cli6_lease_file="${localstatedir}/lib/dhcp/dhclient6.leases"
5694		else
5695			with_cli6_lease_file="${localstatedir}/lib/dhclient6.leases"
5696		fi
5697	elif [ -d "${localstatedir}/etc" ] ; then
5698		with_cli6_lease_file="${localstatedir}/etc/dhclient6.leases"
5699	else
5700		with_cli6_lease_file="/etc/dhclient6.leases"
5701	fi
5702fi
5703echo "$with_cli6_lease_file"
5704
5705
5706# Check whether --with-srv-pid-file was given.
5707if test "${with_srv_pid_file+set}" = set; then :
5708  withval=$with_srv_pid_file;
5709cat >>confdefs.h <<_ACEOF
5710#define _PATH_DHCPD_PID "$withval"
5711_ACEOF
5712
5713fi
5714
5715
5716# Check whether --with-srv6-pid-file was given.
5717if test "${with_srv6_pid_file+set}" = set; then :
5718  withval=$with_srv6_pid_file;
5719cat >>confdefs.h <<_ACEOF
5720#define _PATH_DHCPD6_PID "$withval"
5721_ACEOF
5722
5723fi
5724
5725
5726# Check whether --with-cli-pid-file was given.
5727if test "${with_cli_pid_file+set}" = set; then :
5728  withval=$with_cli_pid_file;
5729cat >>confdefs.h <<_ACEOF
5730#define _PATH_DHCLIENT_PID "$withval"
5731_ACEOF
5732
5733fi
5734
5735
5736# Check whether --with-cli6-pid-file was given.
5737if test "${with_cli6_pid_file+set}" = set; then :
5738  withval=$with_cli6_pid_file;
5739cat >>confdefs.h <<_ACEOF
5740#define _PATH_DHCLIENT6_PID "$withval"
5741_ACEOF
5742
5743fi
5744
5745
5746# Check whether --with-relay-pid-file was given.
5747if test "${with_relay_pid_file+set}" = set; then :
5748  withval=$with_relay_pid_file;
5749cat >>confdefs.h <<_ACEOF
5750#define _PATH_DHCRELAY_PID "$withval"
5751_ACEOF
5752
5753fi
5754
5755
5756# Check whether --with-relay6-pid-file was given.
5757if test "${with_relay6_pid_file+set}" = set; then :
5758  withval=$with_relay6_pid_file;
5759cat >>confdefs.h <<_ACEOF
5760#define _PATH_DHCRELAY6_PID "$withval"
5761_ACEOF
5762
5763fi
5764
5765
5766# Check basic types.
5767ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5768case $ac_cv_c_int8_t in #(
5769  no|yes) ;; #(
5770  *)
5771
5772cat >>confdefs.h <<_ACEOF
5773#define int8_t $ac_cv_c_int8_t
5774_ACEOF
5775;;
5776esac
5777
5778ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5779case $ac_cv_c_int16_t in #(
5780  no|yes) ;; #(
5781  *)
5782
5783cat >>confdefs.h <<_ACEOF
5784#define int16_t $ac_cv_c_int16_t
5785_ACEOF
5786;;
5787esac
5788
5789ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5790case $ac_cv_c_int32_t in #(
5791  no|yes) ;; #(
5792  *)
5793
5794cat >>confdefs.h <<_ACEOF
5795#define int32_t $ac_cv_c_int32_t
5796_ACEOF
5797;;
5798esac
5799
5800ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5801case $ac_cv_c_int64_t in #(
5802  no|yes) ;; #(
5803  *)
5804
5805cat >>confdefs.h <<_ACEOF
5806#define int64_t $ac_cv_c_int64_t
5807_ACEOF
5808;;
5809esac
5810
5811
5812# Some systems need the u_intX_t types defined across.
5813ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
5814if test "x$ac_cv_type_u_int8_t" = xyes; then :
5815
5816else
5817
5818  ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5819case $ac_cv_c_uint8_t in #(
5820  no|yes) ;; #(
5821  *)
5822
5823$as_echo "#define _UINT8_T 1" >>confdefs.h
5824
5825
5826cat >>confdefs.h <<_ACEOF
5827#define uint8_t $ac_cv_c_uint8_t
5828_ACEOF
5829;;
5830  esac
5831
5832
5833$as_echo "#define u_int8_t uint8_t" >>confdefs.h
5834
5835
5836fi
5837
5838ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
5839if test "x$ac_cv_type_u_int16_t" = xyes; then :
5840
5841else
5842
5843  ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5844case $ac_cv_c_uint16_t in #(
5845  no|yes) ;; #(
5846  *)
5847
5848
5849cat >>confdefs.h <<_ACEOF
5850#define uint16_t $ac_cv_c_uint16_t
5851_ACEOF
5852;;
5853  esac
5854
5855
5856$as_echo "#define u_int16_t uint16_t" >>confdefs.h
5857
5858
5859fi
5860
5861ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
5862if test "x$ac_cv_type_u_int32_t" = xyes; then :
5863
5864else
5865
5866  ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5867case $ac_cv_c_uint32_t in #(
5868  no|yes) ;; #(
5869  *)
5870
5871$as_echo "#define _UINT32_T 1" >>confdefs.h
5872
5873
5874cat >>confdefs.h <<_ACEOF
5875#define uint32_t $ac_cv_c_uint32_t
5876_ACEOF
5877;;
5878  esac
5879
5880
5881$as_echo "#define u_int32_t uint32_t" >>confdefs.h
5882
5883
5884fi
5885
5886ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
5887if test "x$ac_cv_type_u_int64_t" = xyes; then :
5888
5889else
5890
5891  ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5892case $ac_cv_c_uint64_t in #(
5893  no|yes) ;; #(
5894  *)
5895
5896$as_echo "#define _UINT64_T 1" >>confdefs.h
5897
5898
5899cat >>confdefs.h <<_ACEOF
5900#define uint64_t $ac_cv_c_uint64_t
5901_ACEOF
5902;;
5903  esac
5904
5905
5906$as_echo "#define u_int64_t uint64_t" >>confdefs.h
5907
5908
5909fi
5910
5911
5912# see if ifaddrs.h is available
5913for ac_header in ifaddrs.h
5914do :
5915  ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
5916if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
5917  cat >>confdefs.h <<_ACEOF
5918#define HAVE_IFADDRS_H 1
5919_ACEOF
5920
5921fi
5922
5923done
5924
5925
5926# figure out what IPv4 interface code to use
5927for ac_header in linux/types.h
5928do :
5929  ac_fn_c_check_header_mongrel "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
5930if test "x$ac_cv_header_linux_types_h" = xyes; then :
5931  cat >>confdefs.h <<_ACEOF
5932#define HAVE_LINUX_TYPES_H 1
5933_ACEOF
5934
5935fi
5936
5937done
5938  # needed for linux/filter.h on old systems
5939
5940ac_fn_c_check_header_compile "$LINENO" "linux/filter.h" "ac_cv_header_linux_filter_h" "
5941#ifdef HAVE_LINUX_TYPES_H
5942#include <linux/types.h>
5943#endif
5944
5945"
5946if test "x$ac_cv_header_linux_filter_h" = xyes; then :
5947  DO_LPF=1
5948fi
5949
5950
5951if test -n "$DO_LPF"
5952then
5953
5954$as_echo "#define HAVE_LPF 1" >>confdefs.h
5955
5956else
5957	ac_fn_c_check_header_mongrel "$LINENO" "sys/dlpi.h" "ac_cv_header_sys_dlpi_h" "$ac_includes_default"
5958if test "x$ac_cv_header_sys_dlpi_h" = xyes; then :
5959  DO_DLPI=1
5960fi
5961
5962
5963	if test -n "$DO_DLPI"
5964	then
5965
5966$as_echo "#define HAVE_DLPI 1" >>confdefs.h
5967
5968	else
5969		ac_fn_c_check_header_mongrel "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
5970if test "x$ac_cv_header_net_bpf_h" = xyes; then :
5971  DO_BPF=1
5972fi
5973
5974
5975		if test -n "$DO_BPF"
5976		then
5977
5978$as_echo "#define HAVE_BPF 1" >>confdefs.h
5979
5980		fi
5981	fi
5982fi
5983
5984# SIOCGLIFCONF uses some transport structures.  Trick is not all platforms
5985# use the same structures.  We like to use 'struct lifconf' and 'struct
5986# lifreq', but we'll use these other structures if they're present.  HPUX
5987# does not define 'struct lifnum', but does use SIOCGLIFNUM - they use an
5988# int value.
5989#
5990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lifnum" >&5
5991$as_echo_n "checking for struct lifnum... " >&6; }
5992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993/* end confdefs.h.  */
5994 #include <sys/types.h>
5995  #include <sys/socket.h>
5996  #include <net/if.h>
5997
5998int
5999main ()
6000{
6001 struct lifnum a;
6002
6003  ;
6004  return 0;
6005}
6006_ACEOF
6007if ac_fn_c_try_compile "$LINENO"; then :
6008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6009$as_echo "yes" >&6; }
6010
6011$as_echo "#define ISC_PLATFORM_HAVELIFNUM 1" >>confdefs.h
6012
6013else
6014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6015$as_echo "no" >&6; }
6016fi
6017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018
6019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
6020$as_echo_n "checking for struct if_laddrconf... " >&6; }
6021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022/* end confdefs.h.  */
6023 #include <sys/types.h>
6024  #include <net/if6.h>
6025
6026int
6027main ()
6028{
6029 struct if_laddrconf a;
6030
6031  ;
6032  return 0;
6033}
6034_ACEOF
6035if ac_fn_c_try_compile "$LINENO"; then :
6036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6037$as_echo "yes" >&6; }
6038
6039$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
6040
6041else
6042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043$as_echo "no" >&6; }
6044fi
6045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6046
6047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
6048$as_echo_n "checking for struct if_laddrreq... " >&6; }
6049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050/* end confdefs.h.  */
6051#include <sys/types.h>
6052 #include <net/if6.h>
6053
6054int
6055main ()
6056{
6057 struct if_laddrreq a;
6058
6059  ;
6060  return 0;
6061}
6062_ACEOF
6063if ac_fn_c_try_link "$LINENO"; then :
6064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6065$as_echo "yes" >&6; }
6066
6067$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
6068
6069else
6070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071$as_echo "no" >&6; }
6072fi
6073rm -f core conftest.err conftest.$ac_objext \
6074    conftest$ac_exeext conftest.$ac_ext
6075
6076#
6077# check for GCC noreturn attribute
6078#
6079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC noreturn attribute" >&5
6080$as_echo_n "checking for GCC noreturn attribute... " >&6; }
6081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082/* end confdefs.h.  */
6083
6084int
6085main ()
6086{
6087void foo() __attribute__((noreturn));
6088  ;
6089  return 0;
6090}
6091_ACEOF
6092if ac_fn_c_try_compile "$LINENO"; then :
6093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6094$as_echo "yes" >&6; }
6095
6096$as_echo "#define ISC_DHCP_NORETURN __attribute__((noreturn))" >>confdefs.h
6097
6098else
6099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100$as_echo "no" >&6; }
6101
6102$as_echo "#define ISC_DHCP_NORETURN /**/" >>confdefs.h
6103
6104fi
6105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6106
6107# Look for optional headers.
6108for ac_header in sys/socket.h net/if_dl.h net/if6.h regex.h
6109do :
6110  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6111ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6112if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6113  cat >>confdefs.h <<_ACEOF
6114#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6115_ACEOF
6116
6117fi
6118
6119done
6120
6121
6122# Solaris needs some libraries for functions
6123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
6124$as_echo_n "checking for library containing socket... " >&6; }
6125if ${ac_cv_search_socket+:} false; then :
6126  $as_echo_n "(cached) " >&6
6127else
6128  ac_func_search_save_LIBS=$LIBS
6129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130/* end confdefs.h.  */
6131
6132/* Override any GCC internal prototype to avoid an error.
6133   Use char because int might match the return type of a GCC
6134   builtin and then its argument prototype would still apply.  */
6135#ifdef __cplusplus
6136extern "C"
6137#endif
6138char socket ();
6139int
6140main ()
6141{
6142return socket ();
6143  ;
6144  return 0;
6145}
6146_ACEOF
6147for ac_lib in '' socket; do
6148  if test -z "$ac_lib"; then
6149    ac_res="none required"
6150  else
6151    ac_res=-l$ac_lib
6152    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6153  fi
6154  if ac_fn_c_try_link "$LINENO"; then :
6155  ac_cv_search_socket=$ac_res
6156fi
6157rm -f core conftest.err conftest.$ac_objext \
6158    conftest$ac_exeext
6159  if ${ac_cv_search_socket+:} false; then :
6160  break
6161fi
6162done
6163if ${ac_cv_search_socket+:} false; then :
6164
6165else
6166  ac_cv_search_socket=no
6167fi
6168rm conftest.$ac_ext
6169LIBS=$ac_func_search_save_LIBS
6170fi
6171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
6172$as_echo "$ac_cv_search_socket" >&6; }
6173ac_res=$ac_cv_search_socket
6174if test "$ac_res" != no; then :
6175  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6176
6177fi
6178
6179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
6180$as_echo_n "checking for library containing inet_ntoa... " >&6; }
6181if ${ac_cv_search_inet_ntoa+:} false; then :
6182  $as_echo_n "(cached) " >&6
6183else
6184  ac_func_search_save_LIBS=$LIBS
6185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6186/* end confdefs.h.  */
6187
6188/* Override any GCC internal prototype to avoid an error.
6189   Use char because int might match the return type of a GCC
6190   builtin and then its argument prototype would still apply.  */
6191#ifdef __cplusplus
6192extern "C"
6193#endif
6194char inet_ntoa ();
6195int
6196main ()
6197{
6198return inet_ntoa ();
6199  ;
6200  return 0;
6201}
6202_ACEOF
6203for ac_lib in '' nsl; do
6204  if test -z "$ac_lib"; then
6205    ac_res="none required"
6206  else
6207    ac_res=-l$ac_lib
6208    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6209  fi
6210  if ac_fn_c_try_link "$LINENO"; then :
6211  ac_cv_search_inet_ntoa=$ac_res
6212fi
6213rm -f core conftest.err conftest.$ac_objext \
6214    conftest$ac_exeext
6215  if ${ac_cv_search_inet_ntoa+:} false; then :
6216  break
6217fi
6218done
6219if ${ac_cv_search_inet_ntoa+:} false; then :
6220
6221else
6222  ac_cv_search_inet_ntoa=no
6223fi
6224rm conftest.$ac_ext
6225LIBS=$ac_func_search_save_LIBS
6226fi
6227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
6228$as_echo "$ac_cv_search_inet_ntoa" >&6; }
6229ac_res=$ac_cv_search_inet_ntoa
6230if test "$ac_res" != no; then :
6231  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6232
6233fi
6234
6235
6236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
6237$as_echo_n "checking for library containing inet_aton... " >&6; }
6238if ${ac_cv_search_inet_aton+:} false; then :
6239  $as_echo_n "(cached) " >&6
6240else
6241  ac_func_search_save_LIBS=$LIBS
6242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243/* end confdefs.h.  */
6244
6245/* Override any GCC internal prototype to avoid an error.
6246   Use char because int might match the return type of a GCC
6247   builtin and then its argument prototype would still apply.  */
6248#ifdef __cplusplus
6249extern "C"
6250#endif
6251char inet_aton ();
6252int
6253main ()
6254{
6255return inet_aton ();
6256  ;
6257  return 0;
6258}
6259_ACEOF
6260for ac_lib in '' socket nsl; do
6261  if test -z "$ac_lib"; then
6262    ac_res="none required"
6263  else
6264    ac_res=-l$ac_lib
6265    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6266  fi
6267  if ac_fn_c_try_link "$LINENO"; then :
6268  ac_cv_search_inet_aton=$ac_res
6269fi
6270rm -f core conftest.err conftest.$ac_objext \
6271    conftest$ac_exeext
6272  if ${ac_cv_search_inet_aton+:} false; then :
6273  break
6274fi
6275done
6276if ${ac_cv_search_inet_aton+:} false; then :
6277
6278else
6279  ac_cv_search_inet_aton=no
6280fi
6281rm conftest.$ac_ext
6282LIBS=$ac_func_search_save_LIBS
6283fi
6284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
6285$as_echo "$ac_cv_search_inet_aton" >&6; }
6286ac_res=$ac_cv_search_inet_aton
6287if test "$ac_res" != no; then :
6288  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6289
6290else
6291
6292$as_echo "#define NEED_INET_ATON 1" >>confdefs.h
6293
6294fi
6295
6296
6297# Check for a standalone regex library.
6298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
6299$as_echo_n "checking for library containing regcomp... " >&6; }
6300if ${ac_cv_search_regcomp+:} false; then :
6301  $as_echo_n "(cached) " >&6
6302else
6303  ac_func_search_save_LIBS=$LIBS
6304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6305/* end confdefs.h.  */
6306
6307/* Override any GCC internal prototype to avoid an error.
6308   Use char because int might match the return type of a GCC
6309   builtin and then its argument prototype would still apply.  */
6310#ifdef __cplusplus
6311extern "C"
6312#endif
6313char regcomp ();
6314int
6315main ()
6316{
6317return regcomp ();
6318  ;
6319  return 0;
6320}
6321_ACEOF
6322for ac_lib in '' regex; do
6323  if test -z "$ac_lib"; then
6324    ac_res="none required"
6325  else
6326    ac_res=-l$ac_lib
6327    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6328  fi
6329  if ac_fn_c_try_link "$LINENO"; then :
6330  ac_cv_search_regcomp=$ac_res
6331fi
6332rm -f core conftest.err conftest.$ac_objext \
6333    conftest$ac_exeext
6334  if ${ac_cv_search_regcomp+:} false; then :
6335  break
6336fi
6337done
6338if ${ac_cv_search_regcomp+:} false; then :
6339
6340else
6341  ac_cv_search_regcomp=no
6342fi
6343rm conftest.$ac_ext
6344LIBS=$ac_func_search_save_LIBS
6345fi
6346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
6347$as_echo "$ac_cv_search_regcomp" >&6; }
6348ac_res=$ac_cv_search_regcomp
6349if test "$ac_res" != no; then :
6350  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6351
6352fi
6353
6354
6355for ac_func in strlcat
6356do :
6357  ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
6358if test "x$ac_cv_func_strlcat" = xyes; then :
6359  cat >>confdefs.h <<_ACEOF
6360#define HAVE_STRLCAT 1
6361_ACEOF
6362
6363fi
6364done
6365
6366
6367# For HP/UX we need -lipv6 for if_nametoindex, perhaps others.
6368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
6369$as_echo_n "checking for library containing if_nametoindex... " >&6; }
6370if ${ac_cv_search_if_nametoindex+:} false; then :
6371  $as_echo_n "(cached) " >&6
6372else
6373  ac_func_search_save_LIBS=$LIBS
6374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6375/* end confdefs.h.  */
6376
6377/* Override any GCC internal prototype to avoid an error.
6378   Use char because int might match the return type of a GCC
6379   builtin and then its argument prototype would still apply.  */
6380#ifdef __cplusplus
6381extern "C"
6382#endif
6383char if_nametoindex ();
6384int
6385main ()
6386{
6387return if_nametoindex ();
6388  ;
6389  return 0;
6390}
6391_ACEOF
6392for ac_lib in '' ipv6; do
6393  if test -z "$ac_lib"; then
6394    ac_res="none required"
6395  else
6396    ac_res=-l$ac_lib
6397    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6398  fi
6399  if ac_fn_c_try_link "$LINENO"; then :
6400  ac_cv_search_if_nametoindex=$ac_res
6401fi
6402rm -f core conftest.err conftest.$ac_objext \
6403    conftest$ac_exeext
6404  if ${ac_cv_search_if_nametoindex+:} false; then :
6405  break
6406fi
6407done
6408if ${ac_cv_search_if_nametoindex+:} false; then :
6409
6410else
6411  ac_cv_search_if_nametoindex=no
6412fi
6413rm conftest.$ac_ext
6414LIBS=$ac_func_search_save_LIBS
6415fi
6416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
6417$as_echo "$ac_cv_search_if_nametoindex" >&6; }
6418ac_res=$ac_cv_search_if_nametoindex
6419if test "$ac_res" != no; then :
6420  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6421
6422fi
6423
6424
6425# check for /dev/random (declares HAVE_DEV_RANDOM)
6426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/random" >&5
6427$as_echo_n "checking for /dev/random... " >&6; }
6428if ${ac_cv_file__dev_random+:} false; then :
6429  $as_echo_n "(cached) " >&6
6430else
6431  test "$cross_compiling" = yes &&
6432  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
6433if test -r "/dev/random"; then
6434  ac_cv_file__dev_random=yes
6435else
6436  ac_cv_file__dev_random=no
6437fi
6438fi
6439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_random" >&5
6440$as_echo "$ac_cv_file__dev_random" >&6; }
6441if test "x$ac_cv_file__dev_random" = xyes; then :
6442
6443$as_echo "#define HAVE_DEV_RANDOM 1" >>confdefs.h
6444
6445fi
6446
6447
6448# see if there is a "sa_len" field in our interface information structure
6449ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
6450"
6451if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
6452
6453$as_echo "#define HAVE_SA_LEN /**/" >>confdefs.h
6454
6455fi
6456
6457
6458# figure out pointer size
6459# The cast to long int works around a bug in the HP C Compiler
6460# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6461# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6462# This bug is HP SR number 8606223364.
6463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct iaddr *" >&5
6464$as_echo_n "checking size of struct iaddr *... " >&6; }
6465if ${ac_cv_sizeof_struct_iaddr_p+:} false; then :
6466  $as_echo_n "(cached) " >&6
6467else
6468  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (struct iaddr *))" "ac_cv_sizeof_struct_iaddr_p"        "
6469#include \"includes/inet.h\"
6470#include <stdio.h>
6471
6472"; then :
6473
6474else
6475  if test "$ac_cv_type_struct_iaddr_p" = yes; then
6476     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6477$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6478as_fn_error 77 "cannot compute sizeof (struct iaddr *)
6479See \`config.log' for more details" "$LINENO" 5; }
6480   else
6481     ac_cv_sizeof_struct_iaddr_p=0
6482   fi
6483fi
6484
6485fi
6486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_iaddr_p" >&5
6487$as_echo "$ac_cv_sizeof_struct_iaddr_p" >&6; }
6488
6489
6490
6491cat >>confdefs.h <<_ACEOF
6492#define SIZEOF_STRUCT_IADDR_P $ac_cv_sizeof_struct_iaddr_p
6493_ACEOF
6494
6495
6496
6497# Solaris does not have the msg_control or msg_controlen members
6498# in the msghdr structure unless you define:
6499#
6500#   _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, and __EXTENSIONS__
6501#
6502# See the "standards" man page for details.
6503#
6504# We check for the msg_control member, and if it is not found, we check
6505# again with the appropriate defines added to the CFLAGS. (In order to
6506# do this we have to remove the check from the cache, which is what the
6507# "unset" is for.)
6508ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
6509#include <sys/types.h>
6510#include <sys/socket.h>
6511
6512"
6513if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
6514
6515else
6516  CFLAGS="$CFLAGS -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
6517	 CFLAGS="$CFLAGS -D__EXTENSIONS__"
6518	 unset ac_cv_member_struct_msghdr_msg_control
6519	 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
6520#include <sys/types.h>
6521#include <sys/socket.h>
6522
6523"
6524if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
6525
6526else
6527  as_fn_error $? "Missing msg_control member in
6528			       msg_control structure." "$LINENO" 5
6529fi
6530
6531
6532fi
6533
6534
6535libbind=
6536
6537# Check whether --with-libbind was given.
6538if test "${with_libbind+set}" = set; then :
6539  withval=$with_libbind; use_libbind="$withval"
6540else
6541  use_libbind="no"
6542fi
6543
6544case "$use_libbind" in
6545yes)
6546	libbind="\${top_srcdir}/bind"
6547	;;
6548no)
6549	libbind="\${top_srcdir}/bind"
6550	;;
6551*)
6552	libbind="$use_libbind"
6553	;;
6554esac
6555
6556# OpenLDAP support.
6557
6558# Check whether --with-ldap was given.
6559if test "${with_ldap+set}" = set; then :
6560  withval=$with_ldap; ldap=$withval
6561else
6562  ldap=no
6563fi
6564
6565
6566# OpenLDAP with SSL support.
6567
6568# Check whether --with-ldapcrypto was given.
6569if test "${with_ldapcrypto+set}" = set; then :
6570  withval=$with_ldapcrypto; ldapcrypto=$withval
6571else
6572  ldapcrypto=no
6573fi
6574
6575
6576# OpenLDAP support is disabled by default, if enabled then SSL support is an
6577# extra optional that is also disabled by default.  Enabling LDAP SSL support
6578# implies enabling LDAP support.
6579if test x$ldap = xyes || test x$ldapcrypto = xyes ; then
6580    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_initialize" >&5
6581$as_echo_n "checking for library containing ldap_initialize... " >&6; }
6582if ${ac_cv_search_ldap_initialize+:} false; then :
6583  $as_echo_n "(cached) " >&6
6584else
6585  ac_func_search_save_LIBS=$LIBS
6586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6587/* end confdefs.h.  */
6588
6589/* Override any GCC internal prototype to avoid an error.
6590   Use char because int might match the return type of a GCC
6591   builtin and then its argument prototype would still apply.  */
6592#ifdef __cplusplus
6593extern "C"
6594#endif
6595char ldap_initialize ();
6596int
6597main ()
6598{
6599return ldap_initialize ();
6600  ;
6601  return 0;
6602}
6603_ACEOF
6604for ac_lib in '' ldap; do
6605  if test -z "$ac_lib"; then
6606    ac_res="none required"
6607  else
6608    ac_res=-l$ac_lib
6609    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6610  fi
6611  if ac_fn_c_try_link "$LINENO"; then :
6612  ac_cv_search_ldap_initialize=$ac_res
6613fi
6614rm -f core conftest.err conftest.$ac_objext \
6615    conftest$ac_exeext
6616  if ${ac_cv_search_ldap_initialize+:} false; then :
6617  break
6618fi
6619done
6620if ${ac_cv_search_ldap_initialize+:} false; then :
6621
6622else
6623  ac_cv_search_ldap_initialize=no
6624fi
6625rm conftest.$ac_ext
6626LIBS=$ac_func_search_save_LIBS
6627fi
6628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_initialize" >&5
6629$as_echo "$ac_cv_search_ldap_initialize" >&6; }
6630ac_res=$ac_cv_search_ldap_initialize
6631if test "$ac_res" != no; then :
6632  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6633
6634else
6635  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6636$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6637as_fn_error $? "*** Cannot find ldap_initialize with -lldap - do you need to install an OpenLDAP2 Devel package?
6638See \`config.log' for more details" "$LINENO" 5; }
6639fi
6640
6641    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_pvt_opt_on" >&5
6642$as_echo_n "checking for library containing ber_pvt_opt_on... " >&6; }
6643if ${ac_cv_search_ber_pvt_opt_on+:} false; then :
6644  $as_echo_n "(cached) " >&6
6645else
6646  ac_func_search_save_LIBS=$LIBS
6647cat 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
6654extern "C"
6655#endif
6656char ber_pvt_opt_on ();
6657int
6658main ()
6659{
6660return ber_pvt_opt_on ();
6661  ;
6662  return 0;
6663}
6664_ACEOF
6665for ac_lib in '' lber; 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_ber_pvt_opt_on=$ac_res
6674fi
6675rm -f core conftest.err conftest.$ac_objext \
6676    conftest$ac_exeext
6677  if ${ac_cv_search_ber_pvt_opt_on+:} false; then :
6678  break
6679fi
6680done
6681if ${ac_cv_search_ber_pvt_opt_on+:} false; then :
6682
6683else
6684  ac_cv_search_ber_pvt_opt_on=no
6685fi
6686rm conftest.$ac_ext
6687LIBS=$ac_func_search_save_LIBS
6688fi
6689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_pvt_opt_on" >&5
6690$as_echo "$ac_cv_search_ber_pvt_opt_on" >&6; }
6691ac_res=$ac_cv_search_ber_pvt_opt_on
6692if test "$ac_res" != no; then :
6693  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6694
6695else
6696  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6697$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6698as_fn_error $? "*** Cannot find ber_pvt_opt_on with -llber - do you need to install an OpenLDAP2 Devel package?
6699See \`config.log' for more details" "$LINENO" 5; }
6700fi
6701
6702
6703    if test x$ldapcrypto = xyes ; then
6704	LDAP_CFLAGS="-DLDAP_CONFIGURATION -DLDAP_USE_SSL"
6705
6706    else
6707	LDAP_CFLAGS="-DLDAP_CONFIGURATION"
6708
6709    fi
6710fi
6711
6712# Append selected warning levels to CFLAGS before substitution (but after
6713# AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[],[]) & etc).
6714CFLAGS="$CFLAGS $STD_CWARNINGS"
6715
6716# Try to add the bind include directory
6717CFLAGS="$CFLAGS -I$libbind/include"
6718
6719case "$host" in
6720*-darwin*)
6721    CFLAGS="$CFLAGS -D__APPLE_USE_RFC_3542" ;;
6722esac
6723
6724
6725  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
6726$as_echo_n "checking for flexible array members... " >&6; }
6727if ${ac_cv_c_flexmember+:} false; then :
6728  $as_echo_n "(cached) " >&6
6729else
6730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6731/* end confdefs.h.  */
6732#include <stdlib.h>
6733	    #include <stdio.h>
6734	    #include <stddef.h>
6735	    struct s { int n; double d[]; };
6736int
6737main ()
6738{
6739int m = getchar ();
6740	    struct s *p = malloc (offsetof (struct s, d)
6741				  + m * sizeof (double));
6742	    p->d[0] = 0.0;
6743	    return p->d != (double *) NULL;
6744  ;
6745  return 0;
6746}
6747_ACEOF
6748if ac_fn_c_try_compile "$LINENO"; then :
6749  ac_cv_c_flexmember=yes
6750else
6751  ac_cv_c_flexmember=no
6752fi
6753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6754fi
6755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
6756$as_echo "$ac_cv_c_flexmember" >&6; }
6757  if test $ac_cv_c_flexmember = yes; then
6758
6759$as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
6760
6761  else
6762    $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
6763
6764  fi
6765
6766
6767ac_config_files="$ac_config_files Makefile client/Makefile common/Makefile common/tests/Makefile dhcpctl/Makefile dst/Makefile includes/Makefile omapip/Makefile relay/Makefile server/Makefile tests/Makefile server/tests/Makefile doc/devel/doxyfile"
6768
6769cat >confcache <<\_ACEOF
6770# This file is a shell script that caches the results of configure
6771# tests run on this system so they can be shared between configure
6772# scripts and configure runs, see configure's option --config-cache.
6773# It is not useful on other systems.  If it contains results you don't
6774# want to keep, you may remove or edit it.
6775#
6776# config.status only pays attention to the cache file if you give it
6777# the --recheck option to rerun configure.
6778#
6779# `ac_cv_env_foo' variables (set or unset) will be overridden when
6780# loading this file, other *unset* `ac_cv_foo' will be assigned the
6781# following values.
6782
6783_ACEOF
6784
6785# The following way of writing the cache mishandles newlines in values,
6786# but we know of no workaround that is simple, portable, and efficient.
6787# So, we kill variables containing newlines.
6788# Ultrix sh set writes to stderr and can't be redirected directly,
6789# and sets the high bit in the cache file unless we assign to the vars.
6790(
6791  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6792    eval ac_val=\$$ac_var
6793    case $ac_val in #(
6794    *${as_nl}*)
6795      case $ac_var in #(
6796      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6797$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6798      esac
6799      case $ac_var in #(
6800      _ | IFS | as_nl) ;; #(
6801      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6802      *) { eval $ac_var=; unset $ac_var;} ;;
6803      esac ;;
6804    esac
6805  done
6806
6807  (set) 2>&1 |
6808    case $as_nl`(ac_space=' '; set) 2>&1` in #(
6809    *${as_nl}ac_space=\ *)
6810      # `set' does not quote correctly, so add quotes: double-quote
6811      # substitution turns \\\\ into \\, and sed turns \\ into \.
6812      sed -n \
6813	"s/'/'\\\\''/g;
6814	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6815      ;; #(
6816    *)
6817      # `set' quotes correctly as required by POSIX, so do not add quotes.
6818      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6819      ;;
6820    esac |
6821    sort
6822) |
6823  sed '
6824     /^ac_cv_env_/b end
6825     t clear
6826     :clear
6827     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6828     t end
6829     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6830     :end' >>confcache
6831if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6832  if test -w "$cache_file"; then
6833    if test "x$cache_file" != "x/dev/null"; then
6834      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6835$as_echo "$as_me: updating cache $cache_file" >&6;}
6836      if test ! -f "$cache_file" || test -h "$cache_file"; then
6837	cat confcache >"$cache_file"
6838      else
6839        case $cache_file in #(
6840        */* | ?:*)
6841	  mv -f confcache "$cache_file"$$ &&
6842	  mv -f "$cache_file"$$ "$cache_file" ;; #(
6843        *)
6844	  mv -f confcache "$cache_file" ;;
6845	esac
6846      fi
6847    fi
6848  else
6849    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6850$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6851  fi
6852fi
6853rm -f confcache
6854
6855test "x$prefix" = xNONE && prefix=$ac_default_prefix
6856# Let make expand exec_prefix.
6857test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6858
6859DEFS=-DHAVE_CONFIG_H
6860
6861ac_libobjs=
6862ac_ltlibobjs=
6863U=
6864for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6865  # 1. Remove the extension, and $U if already installed.
6866  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6867  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6868  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6869  #    will be set to the directory where LIBOBJS objects are built.
6870  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6871  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6872done
6873LIBOBJS=$ac_libobjs
6874
6875LTLIBOBJS=$ac_ltlibobjs
6876
6877
6878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
6879$as_echo_n "checking that generated files are newer than configure... " >&6; }
6880   if test -n "$am_sleep_pid"; then
6881     # Hide warnings about reused PIDs.
6882     wait $am_sleep_pid 2>/dev/null
6883   fi
6884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
6885$as_echo "done" >&6; }
6886 if test -n "$EXEEXT"; then
6887  am__EXEEXT_TRUE=
6888  am__EXEEXT_FALSE='#'
6889else
6890  am__EXEEXT_TRUE='#'
6891  am__EXEEXT_FALSE=
6892fi
6893
6894if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6895  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
6896Usually this means the macro was only invoked conditionally." "$LINENO" 5
6897fi
6898if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6899  as_fn_error $? "conditional \"AMDEP\" was never defined.
6900Usually this means the macro was only invoked conditionally." "$LINENO" 5
6901fi
6902if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6903  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6904Usually this means the macro was only invoked conditionally." "$LINENO" 5
6905fi
6906
6907if test -z "${HAVE_ATF_TRUE}" && test -z "${HAVE_ATF_FALSE}"; then
6908  as_fn_error $? "conditional \"HAVE_ATF\" was never defined.
6909Usually this means the macro was only invoked conditionally." "$LINENO" 5
6910fi
6911
6912: "${CONFIG_STATUS=./config.status}"
6913ac_write_fail=0
6914ac_clean_files_save=$ac_clean_files
6915ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6916{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6917$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6918as_write_fail=0
6919cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6920#! $SHELL
6921# Generated by $as_me.
6922# Run this file to recreate the current configuration.
6923# Compiler output produced by configure, useful for debugging
6924# configure, is in config.log if it exists.
6925
6926debug=false
6927ac_cs_recheck=false
6928ac_cs_silent=false
6929
6930SHELL=\${CONFIG_SHELL-$SHELL}
6931export SHELL
6932_ASEOF
6933cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6934## -------------------- ##
6935## M4sh Initialization. ##
6936## -------------------- ##
6937
6938# Be more Bourne compatible
6939DUALCASE=1; export DUALCASE # for MKS sh
6940if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6941  emulate sh
6942  NULLCMD=:
6943  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6944  # is contrary to our usage.  Disable this feature.
6945  alias -g '${1+"$@"}'='"$@"'
6946  setopt NO_GLOB_SUBST
6947else
6948  case `(set -o) 2>/dev/null` in #(
6949  *posix*) :
6950    set -o posix ;; #(
6951  *) :
6952     ;;
6953esac
6954fi
6955
6956
6957as_nl='
6958'
6959export as_nl
6960# Printing a long string crashes Solaris 7 /usr/bin/printf.
6961as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6962as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6963as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6964# Prefer a ksh shell builtin over an external printf program on Solaris,
6965# but without wasting forks for bash or zsh.
6966if test -z "$BASH_VERSION$ZSH_VERSION" \
6967    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6968  as_echo='print -r --'
6969  as_echo_n='print -rn --'
6970elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6971  as_echo='printf %s\n'
6972  as_echo_n='printf %s'
6973else
6974  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6975    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6976    as_echo_n='/usr/ucb/echo -n'
6977  else
6978    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6979    as_echo_n_body='eval
6980      arg=$1;
6981      case $arg in #(
6982      *"$as_nl"*)
6983	expr "X$arg" : "X\\(.*\\)$as_nl";
6984	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6985      esac;
6986      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6987    '
6988    export as_echo_n_body
6989    as_echo_n='sh -c $as_echo_n_body as_echo'
6990  fi
6991  export as_echo_body
6992  as_echo='sh -c $as_echo_body as_echo'
6993fi
6994
6995# The user is always right.
6996if test "${PATH_SEPARATOR+set}" != set; then
6997  PATH_SEPARATOR=:
6998  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6999    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7000      PATH_SEPARATOR=';'
7001  }
7002fi
7003
7004
7005# IFS
7006# We need space, tab and new line, in precisely that order.  Quoting is
7007# there to prevent editors from complaining about space-tab.
7008# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7009# splitting by setting IFS to empty value.)
7010IFS=" ""	$as_nl"
7011
7012# Find who we are.  Look in the path if we contain no directory separator.
7013as_myself=
7014case $0 in #((
7015  *[\\/]* ) as_myself=$0 ;;
7016  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017for as_dir in $PATH
7018do
7019  IFS=$as_save_IFS
7020  test -z "$as_dir" && as_dir=.
7021    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7022  done
7023IFS=$as_save_IFS
7024
7025     ;;
7026esac
7027# We did not find ourselves, most probably we were run as `sh COMMAND'
7028# in which case we are not to be found in the path.
7029if test "x$as_myself" = x; then
7030  as_myself=$0
7031fi
7032if test ! -f "$as_myself"; then
7033  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7034  exit 1
7035fi
7036
7037# Unset variables that we do not need and which cause bugs (e.g. in
7038# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
7039# suppresses any "Segmentation fault" message there.  '((' could
7040# trigger a bug in pdksh 5.2.14.
7041for as_var in BASH_ENV ENV MAIL MAILPATH
7042do eval test x\${$as_var+set} = xset \
7043  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7044done
7045PS1='$ '
7046PS2='> '
7047PS4='+ '
7048
7049# NLS nuisances.
7050LC_ALL=C
7051export LC_ALL
7052LANGUAGE=C
7053export LANGUAGE
7054
7055# CDPATH.
7056(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7057
7058
7059# as_fn_error STATUS ERROR [LINENO LOG_FD]
7060# ----------------------------------------
7061# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7062# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7063# script with STATUS, using 1 if that was 0.
7064as_fn_error ()
7065{
7066  as_status=$1; test $as_status -eq 0 && as_status=1
7067  if test "$4"; then
7068    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7069    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7070  fi
7071  $as_echo "$as_me: error: $2" >&2
7072  as_fn_exit $as_status
7073} # as_fn_error
7074
7075
7076# as_fn_set_status STATUS
7077# -----------------------
7078# Set $? to STATUS, without forking.
7079as_fn_set_status ()
7080{
7081  return $1
7082} # as_fn_set_status
7083
7084# as_fn_exit STATUS
7085# -----------------
7086# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7087as_fn_exit ()
7088{
7089  set +e
7090  as_fn_set_status $1
7091  exit $1
7092} # as_fn_exit
7093
7094# as_fn_unset VAR
7095# ---------------
7096# Portably unset VAR.
7097as_fn_unset ()
7098{
7099  { eval $1=; unset $1;}
7100}
7101as_unset=as_fn_unset
7102# as_fn_append VAR VALUE
7103# ----------------------
7104# Append the text in VALUE to the end of the definition contained in VAR. Take
7105# advantage of any shell optimizations that allow amortized linear growth over
7106# repeated appends, instead of the typical quadratic growth present in naive
7107# implementations.
7108if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7109  eval 'as_fn_append ()
7110  {
7111    eval $1+=\$2
7112  }'
7113else
7114  as_fn_append ()
7115  {
7116    eval $1=\$$1\$2
7117  }
7118fi # as_fn_append
7119
7120# as_fn_arith ARG...
7121# ------------------
7122# Perform arithmetic evaluation on the ARGs, and store the result in the
7123# global $as_val. Take advantage of shells that can avoid forks. The arguments
7124# must be portable across $(()) and expr.
7125if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7126  eval 'as_fn_arith ()
7127  {
7128    as_val=$(( $* ))
7129  }'
7130else
7131  as_fn_arith ()
7132  {
7133    as_val=`expr "$@" || test $? -eq 1`
7134  }
7135fi # as_fn_arith
7136
7137
7138if expr a : '\(a\)' >/dev/null 2>&1 &&
7139   test "X`expr 00001 : '.*\(...\)'`" = X001; then
7140  as_expr=expr
7141else
7142  as_expr=false
7143fi
7144
7145if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7146  as_basename=basename
7147else
7148  as_basename=false
7149fi
7150
7151if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7152  as_dirname=dirname
7153else
7154  as_dirname=false
7155fi
7156
7157as_me=`$as_basename -- "$0" ||
7158$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7159	 X"$0" : 'X\(//\)$' \| \
7160	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7161$as_echo X/"$0" |
7162    sed '/^.*\/\([^/][^/]*\)\/*$/{
7163	    s//\1/
7164	    q
7165	  }
7166	  /^X\/\(\/\/\)$/{
7167	    s//\1/
7168	    q
7169	  }
7170	  /^X\/\(\/\).*/{
7171	    s//\1/
7172	    q
7173	  }
7174	  s/.*/./; q'`
7175
7176# Avoid depending upon Character Ranges.
7177as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7178as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7179as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7180as_cr_digits='0123456789'
7181as_cr_alnum=$as_cr_Letters$as_cr_digits
7182
7183ECHO_C= ECHO_N= ECHO_T=
7184case `echo -n x` in #(((((
7185-n*)
7186  case `echo 'xy\c'` in
7187  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
7188  xy)  ECHO_C='\c';;
7189  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
7190       ECHO_T='	';;
7191  esac;;
7192*)
7193  ECHO_N='-n';;
7194esac
7195
7196rm -f conf$$ conf$$.exe conf$$.file
7197if test -d conf$$.dir; then
7198  rm -f conf$$.dir/conf$$.file
7199else
7200  rm -f conf$$.dir
7201  mkdir conf$$.dir 2>/dev/null
7202fi
7203if (echo >conf$$.file) 2>/dev/null; then
7204  if ln -s conf$$.file conf$$ 2>/dev/null; then
7205    as_ln_s='ln -s'
7206    # ... but there are two gotchas:
7207    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7208    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7209    # In both cases, we have to default to `cp -pR'.
7210    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7211      as_ln_s='cp -pR'
7212  elif ln conf$$.file conf$$ 2>/dev/null; then
7213    as_ln_s=ln
7214  else
7215    as_ln_s='cp -pR'
7216  fi
7217else
7218  as_ln_s='cp -pR'
7219fi
7220rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7221rmdir conf$$.dir 2>/dev/null
7222
7223
7224# as_fn_mkdir_p
7225# -------------
7226# Create "$as_dir" as a directory, including parents if necessary.
7227as_fn_mkdir_p ()
7228{
7229
7230  case $as_dir in #(
7231  -*) as_dir=./$as_dir;;
7232  esac
7233  test -d "$as_dir" || eval $as_mkdir_p || {
7234    as_dirs=
7235    while :; do
7236      case $as_dir in #(
7237      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7238      *) as_qdir=$as_dir;;
7239      esac
7240      as_dirs="'$as_qdir' $as_dirs"
7241      as_dir=`$as_dirname -- "$as_dir" ||
7242$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7243	 X"$as_dir" : 'X\(//\)[^/]' \| \
7244	 X"$as_dir" : 'X\(//\)$' \| \
7245	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7246$as_echo X"$as_dir" |
7247    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7248	    s//\1/
7249	    q
7250	  }
7251	  /^X\(\/\/\)[^/].*/{
7252	    s//\1/
7253	    q
7254	  }
7255	  /^X\(\/\/\)$/{
7256	    s//\1/
7257	    q
7258	  }
7259	  /^X\(\/\).*/{
7260	    s//\1/
7261	    q
7262	  }
7263	  s/.*/./; q'`
7264      test -d "$as_dir" && break
7265    done
7266    test -z "$as_dirs" || eval "mkdir $as_dirs"
7267  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7268
7269
7270} # as_fn_mkdir_p
7271if mkdir -p . 2>/dev/null; then
7272  as_mkdir_p='mkdir -p "$as_dir"'
7273else
7274  test -d ./-p && rmdir ./-p
7275  as_mkdir_p=false
7276fi
7277
7278
7279# as_fn_executable_p FILE
7280# -----------------------
7281# Test if FILE is an executable regular file.
7282as_fn_executable_p ()
7283{
7284  test -f "$1" && test -x "$1"
7285} # as_fn_executable_p
7286as_test_x='test -x'
7287as_executable_p=as_fn_executable_p
7288
7289# Sed expression to map a string onto a valid CPP name.
7290as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7291
7292# Sed expression to map a string onto a valid variable name.
7293as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7294
7295
7296exec 6>&1
7297## ----------------------------------- ##
7298## Main body of $CONFIG_STATUS script. ##
7299## ----------------------------------- ##
7300_ASEOF
7301test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7302
7303cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7304# Save the log message, to keep $0 and so on meaningful, and to
7305# report actual input values of CONFIG_FILES etc. instead of their
7306# values after options handling.
7307ac_log="
7308This file was extended by DHCP $as_me 4.3.0, which was
7309generated by GNU Autoconf 2.69.  Invocation command line was
7310
7311  CONFIG_FILES    = $CONFIG_FILES
7312  CONFIG_HEADERS  = $CONFIG_HEADERS
7313  CONFIG_LINKS    = $CONFIG_LINKS
7314  CONFIG_COMMANDS = $CONFIG_COMMANDS
7315  $ $0 $@
7316
7317on `(hostname || uname -n) 2>/dev/null | sed 1q`
7318"
7319
7320_ACEOF
7321
7322case $ac_config_files in *"
7323"*) set x $ac_config_files; shift; ac_config_files=$*;;
7324esac
7325
7326case $ac_config_headers in *"
7327"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7328esac
7329
7330
7331cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7332# Files that config.status was made for.
7333config_files="$ac_config_files"
7334config_headers="$ac_config_headers"
7335config_commands="$ac_config_commands"
7336
7337_ACEOF
7338
7339cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7340ac_cs_usage="\
7341\`$as_me' instantiates files and other configuration actions
7342from templates according to the current configuration.  Unless the files
7343and actions are specified as TAGs, all are instantiated by default.
7344
7345Usage: $0 [OPTION]... [TAG]...
7346
7347  -h, --help       print this help, then exit
7348  -V, --version    print version number and configuration settings, then exit
7349      --config     print configuration, then exit
7350  -q, --quiet, --silent
7351                   do not print progress messages
7352  -d, --debug      don't remove temporary files
7353      --recheck    update $as_me by reconfiguring in the same conditions
7354      --file=FILE[:TEMPLATE]
7355                   instantiate the configuration file FILE
7356      --header=FILE[:TEMPLATE]
7357                   instantiate the configuration header FILE
7358
7359Configuration files:
7360$config_files
7361
7362Configuration headers:
7363$config_headers
7364
7365Configuration commands:
7366$config_commands
7367
7368Report bugs to <dhcp-users@isc.org>."
7369
7370_ACEOF
7371cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7372ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7373ac_cs_version="\\
7374DHCP config.status 4.3.0
7375configured by $0, generated by GNU Autoconf 2.69,
7376  with options \\"\$ac_cs_config\\"
7377
7378Copyright (C) 2012 Free Software Foundation, Inc.
7379This config.status script is free software; the Free Software Foundation
7380gives unlimited permission to copy, distribute and modify it."
7381
7382ac_pwd='$ac_pwd'
7383srcdir='$srcdir'
7384INSTALL='$INSTALL'
7385MKDIR_P='$MKDIR_P'
7386AWK='$AWK'
7387test -n "\$AWK" || AWK=awk
7388_ACEOF
7389
7390cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7391# The default lists apply if the user does not specify any file.
7392ac_need_defaults=:
7393while test $# != 0
7394do
7395  case $1 in
7396  --*=?*)
7397    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7398    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7399    ac_shift=:
7400    ;;
7401  --*=)
7402    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7403    ac_optarg=
7404    ac_shift=:
7405    ;;
7406  *)
7407    ac_option=$1
7408    ac_optarg=$2
7409    ac_shift=shift
7410    ;;
7411  esac
7412
7413  case $ac_option in
7414  # Handling of the options.
7415  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7416    ac_cs_recheck=: ;;
7417  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7418    $as_echo "$ac_cs_version"; exit ;;
7419  --config | --confi | --conf | --con | --co | --c )
7420    $as_echo "$ac_cs_config"; exit ;;
7421  --debug | --debu | --deb | --de | --d | -d )
7422    debug=: ;;
7423  --file | --fil | --fi | --f )
7424    $ac_shift
7425    case $ac_optarg in
7426    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7427    '') as_fn_error $? "missing file argument" ;;
7428    esac
7429    as_fn_append CONFIG_FILES " '$ac_optarg'"
7430    ac_need_defaults=false;;
7431  --header | --heade | --head | --hea )
7432    $ac_shift
7433    case $ac_optarg in
7434    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7435    esac
7436    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7437    ac_need_defaults=false;;
7438  --he | --h)
7439    # Conflict between --help and --header
7440    as_fn_error $? "ambiguous option: \`$1'
7441Try \`$0 --help' for more information.";;
7442  --help | --hel | -h )
7443    $as_echo "$ac_cs_usage"; exit ;;
7444  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7445  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7446    ac_cs_silent=: ;;
7447
7448  # This is an error.
7449  -*) as_fn_error $? "unrecognized option: \`$1'
7450Try \`$0 --help' for more information." ;;
7451
7452  *) as_fn_append ac_config_targets " $1"
7453     ac_need_defaults=false ;;
7454
7455  esac
7456  shift
7457done
7458
7459ac_configure_extra_args=
7460
7461if $ac_cs_silent; then
7462  exec 6>/dev/null
7463  ac_configure_extra_args="$ac_configure_extra_args --silent"
7464fi
7465
7466_ACEOF
7467cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7468if \$ac_cs_recheck; then
7469  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7470  shift
7471  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7472  CONFIG_SHELL='$SHELL'
7473  export CONFIG_SHELL
7474  exec "\$@"
7475fi
7476
7477_ACEOF
7478cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7479exec 5>>config.log
7480{
7481  echo
7482  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7483## Running $as_me. ##
7484_ASBOX
7485  $as_echo "$ac_log"
7486} >&5
7487
7488_ACEOF
7489cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7490#
7491# INIT-COMMANDS
7492#
7493AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7494
7495_ACEOF
7496
7497cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7498
7499# Handling of arguments.
7500for ac_config_target in $ac_config_targets
7501do
7502  case $ac_config_target in
7503    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7504    "includes/config.h") CONFIG_HEADERS="$CONFIG_HEADERS includes/config.h" ;;
7505    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7506    "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;;
7507    "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
7508    "common/tests/Makefile") CONFIG_FILES="$CONFIG_FILES common/tests/Makefile" ;;
7509    "dhcpctl/Makefile") CONFIG_FILES="$CONFIG_FILES dhcpctl/Makefile" ;;
7510    "dst/Makefile") CONFIG_FILES="$CONFIG_FILES dst/Makefile" ;;
7511    "includes/Makefile") CONFIG_FILES="$CONFIG_FILES includes/Makefile" ;;
7512    "omapip/Makefile") CONFIG_FILES="$CONFIG_FILES omapip/Makefile" ;;
7513    "relay/Makefile") CONFIG_FILES="$CONFIG_FILES relay/Makefile" ;;
7514    "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
7515    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
7516    "server/tests/Makefile") CONFIG_FILES="$CONFIG_FILES server/tests/Makefile" ;;
7517    "doc/devel/doxyfile") CONFIG_FILES="$CONFIG_FILES doc/devel/doxyfile" ;;
7518
7519  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7520  esac
7521done
7522
7523
7524# If the user did not use the arguments to specify the items to instantiate,
7525# then the envvar interface is used.  Set only those that are not.
7526# We use the long form for the default assignment because of an extremely
7527# bizarre bug on SunOS 4.1.3.
7528if $ac_need_defaults; then
7529  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7530  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7531  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7532fi
7533
7534# Have a temporary directory for convenience.  Make it in the build tree
7535# simply because there is no reason against having it here, and in addition,
7536# creating and moving files from /tmp can sometimes cause problems.
7537# Hook for its removal unless debugging.
7538# Note that there is a small window in which the directory will not be cleaned:
7539# after its creation but before its name has been assigned to `$tmp'.
7540$debug ||
7541{
7542  tmp= ac_tmp=
7543  trap 'exit_status=$?
7544  : "${ac_tmp:=$tmp}"
7545  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7546' 0
7547  trap 'as_fn_exit 1' 1 2 13 15
7548}
7549# Create a (secure) tmp directory for tmp files.
7550
7551{
7552  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7553  test -d "$tmp"
7554}  ||
7555{
7556  tmp=./conf$$-$RANDOM
7557  (umask 077 && mkdir "$tmp")
7558} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7559ac_tmp=$tmp
7560
7561# Set up the scripts for CONFIG_FILES section.
7562# No need to generate them if there are no CONFIG_FILES.
7563# This happens for instance with `./config.status config.h'.
7564if test -n "$CONFIG_FILES"; then
7565
7566
7567ac_cr=`echo X | tr X '\015'`
7568# On cygwin, bash can eat \r inside `` if the user requested igncr.
7569# But we know of no other shell where ac_cr would be empty at this
7570# point, so we can use a bashism as a fallback.
7571if test "x$ac_cr" = x; then
7572  eval ac_cr=\$\'\\r\'
7573fi
7574ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7575if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7576  ac_cs_awk_cr='\\r'
7577else
7578  ac_cs_awk_cr=$ac_cr
7579fi
7580
7581echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7582_ACEOF
7583
7584
7585{
7586  echo "cat >conf$$subs.awk <<_ACEOF" &&
7587  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7588  echo "_ACEOF"
7589} >conf$$subs.sh ||
7590  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7591ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7592ac_delim='%!_!# '
7593for ac_last_try in false false false false false :; do
7594  . ./conf$$subs.sh ||
7595    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7596
7597  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7598  if test $ac_delim_n = $ac_delim_num; then
7599    break
7600  elif $ac_last_try; then
7601    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7602  else
7603    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7604  fi
7605done
7606rm -f conf$$subs.sh
7607
7608cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7609cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7610_ACEOF
7611sed -n '
7612h
7613s/^/S["/; s/!.*/"]=/
7614p
7615g
7616s/^[^!]*!//
7617:repl
7618t repl
7619s/'"$ac_delim"'$//
7620t delim
7621:nl
7622h
7623s/\(.\{148\}\)..*/\1/
7624t more1
7625s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7626p
7627n
7628b repl
7629:more1
7630s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7631p
7632g
7633s/.\{148\}//
7634t nl
7635:delim
7636h
7637s/\(.\{148\}\)..*/\1/
7638t more2
7639s/["\\]/\\&/g; s/^/"/; s/$/"/
7640p
7641b
7642:more2
7643s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7644p
7645g
7646s/.\{148\}//
7647t delim
7648' <conf$$subs.awk | sed '
7649/^[^""]/{
7650  N
7651  s/\n//
7652}
7653' >>$CONFIG_STATUS || ac_write_fail=1
7654rm -f conf$$subs.awk
7655cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7656_ACAWK
7657cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7658  for (key in S) S_is_set[key] = 1
7659  FS = ""
7660
7661}
7662{
7663  line = $ 0
7664  nfields = split(line, field, "@")
7665  substed = 0
7666  len = length(field[1])
7667  for (i = 2; i < nfields; i++) {
7668    key = field[i]
7669    keylen = length(key)
7670    if (S_is_set[key]) {
7671      value = S[key]
7672      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7673      len += length(value) + length(field[++i])
7674      substed = 1
7675    } else
7676      len += 1 + keylen
7677  }
7678
7679  print line
7680}
7681
7682_ACAWK
7683_ACEOF
7684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7685if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7686  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7687else
7688  cat
7689fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7690  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7691_ACEOF
7692
7693# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7694# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7695# trailing colons and then remove the whole line if VPATH becomes empty
7696# (actually we leave an empty line to preserve line numbers).
7697if test "x$srcdir" = x.; then
7698  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
7699h
7700s///
7701s/^/:/
7702s/[	 ]*$/:/
7703s/:\$(srcdir):/:/g
7704s/:\${srcdir}:/:/g
7705s/:@srcdir@:/:/g
7706s/^:*//
7707s/:*$//
7708x
7709s/\(=[	 ]*\).*/\1/
7710G
7711s/\n//
7712s/^[^=]*=[	 ]*$//
7713}'
7714fi
7715
7716cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7717fi # test -n "$CONFIG_FILES"
7718
7719# Set up the scripts for CONFIG_HEADERS section.
7720# No need to generate them if there are no CONFIG_HEADERS.
7721# This happens for instance with `./config.status Makefile'.
7722if test -n "$CONFIG_HEADERS"; then
7723cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7724BEGIN {
7725_ACEOF
7726
7727# Transform confdefs.h into an awk script `defines.awk', embedded as
7728# here-document in config.status, that substitutes the proper values into
7729# config.h.in to produce config.h.
7730
7731# Create a delimiter string that does not exist in confdefs.h, to ease
7732# handling of long lines.
7733ac_delim='%!_!# '
7734for ac_last_try in false false :; do
7735  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7736  if test -z "$ac_tt"; then
7737    break
7738  elif $ac_last_try; then
7739    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7740  else
7741    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7742  fi
7743done
7744
7745# For the awk script, D is an array of macro values keyed by name,
7746# likewise P contains macro parameters if any.  Preserve backslash
7747# newline sequences.
7748
7749ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7750sed -n '
7751s/.\{148\}/&'"$ac_delim"'/g
7752t rset
7753:rset
7754s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
7755t def
7756d
7757:def
7758s/\\$//
7759t bsnl
7760s/["\\]/\\&/g
7761s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
7762D["\1"]=" \3"/p
7763s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
7764d
7765:bsnl
7766s/["\\]/\\&/g
7767s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
7768D["\1"]=" \3\\\\\\n"\\/p
7769t cont
7770s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7771t cont
7772d
7773:cont
7774n
7775s/.\{148\}/&'"$ac_delim"'/g
7776t clear
7777:clear
7778s/\\$//
7779t bsnlc
7780s/["\\]/\\&/g; s/^/"/; s/$/"/p
7781d
7782:bsnlc
7783s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7784b cont
7785' <confdefs.h | sed '
7786s/'"$ac_delim"'/"\\\
7787"/g' >>$CONFIG_STATUS || ac_write_fail=1
7788
7789cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7790  for (key in D) D_is_set[key] = 1
7791  FS = ""
7792}
7793/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7794  line = \$ 0
7795  split(line, arg, " ")
7796  if (arg[1] == "#") {
7797    defundef = arg[2]
7798    mac1 = arg[3]
7799  } else {
7800    defundef = substr(arg[1], 2)
7801    mac1 = arg[2]
7802  }
7803  split(mac1, mac2, "(") #)
7804  macro = mac2[1]
7805  prefix = substr(line, 1, index(line, defundef) - 1)
7806  if (D_is_set[macro]) {
7807    # Preserve the white space surrounding the "#".
7808    print prefix "define", macro P[macro] D[macro]
7809    next
7810  } else {
7811    # Replace #undef with comments.  This is necessary, for example,
7812    # in the case of _POSIX_SOURCE, which is predefined and required
7813    # on some systems where configure will not decide to define it.
7814    if (defundef == "undef") {
7815      print "/*", prefix defundef, macro, "*/"
7816      next
7817    }
7818  }
7819}
7820{ print }
7821_ACAWK
7822_ACEOF
7823cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7824  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7825fi # test -n "$CONFIG_HEADERS"
7826
7827
7828eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
7829shift
7830for ac_tag
7831do
7832  case $ac_tag in
7833  :[FHLC]) ac_mode=$ac_tag; continue;;
7834  esac
7835  case $ac_mode$ac_tag in
7836  :[FHL]*:*);;
7837  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7838  :[FH]-) ac_tag=-:-;;
7839  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7840  esac
7841  ac_save_IFS=$IFS
7842  IFS=:
7843  set x $ac_tag
7844  IFS=$ac_save_IFS
7845  shift
7846  ac_file=$1
7847  shift
7848
7849  case $ac_mode in
7850  :L) ac_source=$1;;
7851  :[FH])
7852    ac_file_inputs=
7853    for ac_f
7854    do
7855      case $ac_f in
7856      -) ac_f="$ac_tmp/stdin";;
7857      *) # Look for the file first in the build tree, then in the source tree
7858	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
7859	 # because $ac_f cannot contain `:'.
7860	 test -f "$ac_f" ||
7861	   case $ac_f in
7862	   [\\/$]*) false;;
7863	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7864	   esac ||
7865	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7866      esac
7867      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7868      as_fn_append ac_file_inputs " '$ac_f'"
7869    done
7870
7871    # Let's still pretend it is `configure' which instantiates (i.e., don't
7872    # use $as_me), people would be surprised to read:
7873    #    /* config.h.  Generated by config.status.  */
7874    configure_input='Generated from '`
7875	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7876	`' by configure.'
7877    if test x"$ac_file" != x-; then
7878      configure_input="$ac_file.  $configure_input"
7879      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7880$as_echo "$as_me: creating $ac_file" >&6;}
7881    fi
7882    # Neutralize special characters interpreted by sed in replacement strings.
7883    case $configure_input in #(
7884    *\&* | *\|* | *\\* )
7885       ac_sed_conf_input=`$as_echo "$configure_input" |
7886       sed 's/[\\\\&|]/\\\\&/g'`;; #(
7887    *) ac_sed_conf_input=$configure_input;;
7888    esac
7889
7890    case $ac_tag in
7891    *:-:* | *:-) cat >"$ac_tmp/stdin" \
7892      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7893    esac
7894    ;;
7895  esac
7896
7897  ac_dir=`$as_dirname -- "$ac_file" ||
7898$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7899	 X"$ac_file" : 'X\(//\)[^/]' \| \
7900	 X"$ac_file" : 'X\(//\)$' \| \
7901	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7902$as_echo X"$ac_file" |
7903    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7904	    s//\1/
7905	    q
7906	  }
7907	  /^X\(\/\/\)[^/].*/{
7908	    s//\1/
7909	    q
7910	  }
7911	  /^X\(\/\/\)$/{
7912	    s//\1/
7913	    q
7914	  }
7915	  /^X\(\/\).*/{
7916	    s//\1/
7917	    q
7918	  }
7919	  s/.*/./; q'`
7920  as_dir="$ac_dir"; as_fn_mkdir_p
7921  ac_builddir=.
7922
7923case "$ac_dir" in
7924.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7925*)
7926  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7927  # A ".." for each directory in $ac_dir_suffix.
7928  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7929  case $ac_top_builddir_sub in
7930  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7931  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7932  esac ;;
7933esac
7934ac_abs_top_builddir=$ac_pwd
7935ac_abs_builddir=$ac_pwd$ac_dir_suffix
7936# for backward compatibility:
7937ac_top_builddir=$ac_top_build_prefix
7938
7939case $srcdir in
7940  .)  # We are building in place.
7941    ac_srcdir=.
7942    ac_top_srcdir=$ac_top_builddir_sub
7943    ac_abs_top_srcdir=$ac_pwd ;;
7944  [\\/]* | ?:[\\/]* )  # Absolute name.
7945    ac_srcdir=$srcdir$ac_dir_suffix;
7946    ac_top_srcdir=$srcdir
7947    ac_abs_top_srcdir=$srcdir ;;
7948  *) # Relative name.
7949    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7950    ac_top_srcdir=$ac_top_build_prefix$srcdir
7951    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7952esac
7953ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7954
7955
7956  case $ac_mode in
7957  :F)
7958  #
7959  # CONFIG_FILE
7960  #
7961
7962  case $INSTALL in
7963  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7964  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7965  esac
7966  ac_MKDIR_P=$MKDIR_P
7967  case $MKDIR_P in
7968  [\\/$]* | ?:[\\/]* ) ;;
7969  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7970  esac
7971_ACEOF
7972
7973
7974# Neutralize VPATH when `$srcdir' = `.'.
7975# Shell code in configure.ac might set extrasub.
7976# FIXME: do we really want to maintain this feature?
7977cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7978ac_sed_extra="$ac_vpsub
7979$extrasub
7980_ACEOF
7981cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7982:t
7983/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7984s|@configure_input@|$ac_sed_conf_input|;t t
7985s&@top_builddir@&$ac_top_builddir_sub&;t t
7986s&@top_build_prefix@&$ac_top_build_prefix&;t t
7987s&@srcdir@&$ac_srcdir&;t t
7988s&@abs_srcdir@&$ac_abs_srcdir&;t t
7989s&@top_srcdir@&$ac_top_srcdir&;t t
7990s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7991s&@builddir@&$ac_builddir&;t t
7992s&@abs_builddir@&$ac_abs_builddir&;t t
7993s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7994s&@INSTALL@&$ac_INSTALL&;t t
7995s&@MKDIR_P@&$ac_MKDIR_P&;t t
7996"
7997eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7998  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7999
8000
8001  rm -f "$ac_tmp/stdin"
8002  case $ac_file in
8003  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8004  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8005  esac \
8006  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8007 ;;
8008  :H)
8009  #
8010  # CONFIG_HEADER
8011  #
8012  if test x"$ac_file" != x-; then
8013    {
8014      $as_echo "/* $configure_input  */" \
8015      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8016    } >"$ac_tmp/config.h" \
8017      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8018    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8019      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8020$as_echo "$as_me: $ac_file is unchanged" >&6;}
8021    else
8022      rm -f "$ac_file"
8023      mv "$ac_tmp/config.h" "$ac_file" \
8024	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
8025    fi
8026  else
8027    $as_echo "/* $configure_input  */" \
8028      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8029      || as_fn_error $? "could not create -" "$LINENO" 5
8030  fi
8031# Compute "$ac_file"'s index in $config_headers.
8032_am_arg="$ac_file"
8033_am_stamp_count=1
8034for _am_header in $config_headers :; do
8035  case $_am_header in
8036    $_am_arg | $_am_arg:* )
8037      break ;;
8038    * )
8039      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8040  esac
8041done
8042echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8043$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8044	 X"$_am_arg" : 'X\(//\)[^/]' \| \
8045	 X"$_am_arg" : 'X\(//\)$' \| \
8046	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8047$as_echo X"$_am_arg" |
8048    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8049	    s//\1/
8050	    q
8051	  }
8052	  /^X\(\/\/\)[^/].*/{
8053	    s//\1/
8054	    q
8055	  }
8056	  /^X\(\/\/\)$/{
8057	    s//\1/
8058	    q
8059	  }
8060	  /^X\(\/\).*/{
8061	    s//\1/
8062	    q
8063	  }
8064	  s/.*/./; q'`/stamp-h$_am_stamp_count
8065 ;;
8066
8067  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8068$as_echo "$as_me: executing $ac_file commands" >&6;}
8069 ;;
8070  esac
8071
8072
8073  case $ac_file$ac_mode in
8074    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8075  # Older Autoconf quotes --file arguments for eval, but not when files
8076  # are listed without --file.  Let's play safe and only enable the eval
8077  # if we detect the quoting.
8078  case $CONFIG_FILES in
8079  *\'*) eval set x "$CONFIG_FILES" ;;
8080  *)   set x $CONFIG_FILES ;;
8081  esac
8082  shift
8083  for mf
8084  do
8085    # Strip MF so we end up with the name of the file.
8086    mf=`echo "$mf" | sed -e 's/:.*$//'`
8087    # Check whether this is an Automake generated Makefile or not.
8088    # We used to match only the files named 'Makefile.in', but
8089    # some people rename them; so instead we look at the file content.
8090    # Grep'ing the first line is not enough: some people post-process
8091    # each Makefile.in and add a new line on top of each file to say so.
8092    # Grep'ing the whole file is not good either: AIX grep has a line
8093    # limit of 2048, but all sed's we know have understand at least 4000.
8094    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8095      dirpart=`$as_dirname -- "$mf" ||
8096$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8097	 X"$mf" : 'X\(//\)[^/]' \| \
8098	 X"$mf" : 'X\(//\)$' \| \
8099	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8100$as_echo X"$mf" |
8101    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8102	    s//\1/
8103	    q
8104	  }
8105	  /^X\(\/\/\)[^/].*/{
8106	    s//\1/
8107	    q
8108	  }
8109	  /^X\(\/\/\)$/{
8110	    s//\1/
8111	    q
8112	  }
8113	  /^X\(\/\).*/{
8114	    s//\1/
8115	    q
8116	  }
8117	  s/.*/./; q'`
8118    else
8119      continue
8120    fi
8121    # Extract the definition of DEPDIR, am__include, and am__quote
8122    # from the Makefile without running 'make'.
8123    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8124    test -z "$DEPDIR" && continue
8125    am__include=`sed -n 's/^am__include = //p' < "$mf"`
8126    test -z "$am__include" && continue
8127    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8128    # Find all dependency output files, they are included files with
8129    # $(DEPDIR) in their names.  We invoke sed twice because it is the
8130    # simplest approach to changing $(DEPDIR) to its actual value in the
8131    # expansion.
8132    for file in `sed -n "
8133      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8134	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8135      # Make sure the directory exists.
8136      test -f "$dirpart/$file" && continue
8137      fdir=`$as_dirname -- "$file" ||
8138$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8139	 X"$file" : 'X\(//\)[^/]' \| \
8140	 X"$file" : 'X\(//\)$' \| \
8141	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8142$as_echo X"$file" |
8143    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8144	    s//\1/
8145	    q
8146	  }
8147	  /^X\(\/\/\)[^/].*/{
8148	    s//\1/
8149	    q
8150	  }
8151	  /^X\(\/\/\)$/{
8152	    s//\1/
8153	    q
8154	  }
8155	  /^X\(\/\).*/{
8156	    s//\1/
8157	    q
8158	  }
8159	  s/.*/./; q'`
8160      as_dir=$dirpart/$fdir; as_fn_mkdir_p
8161      # echo "creating $dirpart/$file"
8162      echo '# dummy' > "$dirpart/$file"
8163    done
8164  done
8165}
8166 ;;
8167
8168  esac
8169done # for ac_tag
8170
8171
8172as_fn_exit 0
8173_ACEOF
8174ac_clean_files=$ac_clean_files_save
8175
8176test $ac_write_fail = 0 ||
8177  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8178
8179
8180# configure is writing to config.log, and then calls config.status.
8181# config.status does its own redirection, appending to config.log.
8182# Unfortunately, on DOS this fails, as config.log is still kept open
8183# by configure, so config.status won't be able to write to it; its
8184# output is simply discarded.  So we exec the FD to /dev/null,
8185# effectively closing config.log, so it can be properly (re)opened and
8186# appended to by config.status.  When coming back to configure, we
8187# need to make the FD available again.
8188if test "$no_create" != yes; then
8189  ac_cs_success=:
8190  ac_config_status_args=
8191  test "$silent" = yes &&
8192    ac_config_status_args="$ac_config_status_args --quiet"
8193  exec 5>/dev/null
8194  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8195  exec 5>>config.log
8196  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8197  # would make configure fail if this is the last instruction.
8198  $ac_cs_success || as_fn_exit 1
8199fi
8200if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8201  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8202$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8203fi
8204
8205
8206sh util/bindvar.sh
8207
8208cat > config.report << END
8209
8210     ISC DHCP source configure results:
8211    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
8212
8213Package:
8214  Name:          $PACKAGE_NAME
8215  Version:       $PACKAGE_VERSION
8216
8217C Compiler:      $CC
8218
8219Flags:
8220  DEFS:          $DEFS
8221  CFLAGS:        $CFLAGS
8222
8223Features:
8224  debug:         $enable_debug
8225  failover:      $enable_failover
8226  execute:       $enable_execute
8227
8228Developer:
8229  ATF unittests : $atf_path
8230
8231END
8232# TODO: Add Perl system tests
8233
8234if test "$atf_path" != "no"
8235then
8236echo "ATF_CFLAGS  : $ATF_CFLAGS" >> config.report
8237echo "ATF_LDFLAGS : $ATF_LDFLAGS" >> config.report
8238echo
8239fi
8240
8241cat config.report
8242
8243echo
8244echo Now you can type "make" to build ISC DHCP
8245echo
8246