1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for Haskell network package 3.1.1.0.
4#
5# Report bugs to <libraries@haskell.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
270$0: libraries@haskell.org about your system, including any
271$0: error possibly output before this message. Then install
272$0: a modern shell, or manually run the script under such a
273$0: shell if you do have one."
274  fi
275  exit 1
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='Haskell network package'
582PACKAGE_TARNAME='network'
583PACKAGE_VERSION='3.1.1.0'
584PACKAGE_STRING='Haskell network package 3.1.1.0'
585PACKAGE_BUGREPORT='libraries@haskell.org'
586PACKAGE_URL=''
587
588ac_unique_file="include/HsNet.h"
589# Factoring default headers for most tests.
590ac_includes_default="\
591#include <stdio.h>
592#ifdef HAVE_SYS_TYPES_H
593# include <sys/types.h>
594#endif
595#ifdef HAVE_SYS_STAT_H
596# include <sys/stat.h>
597#endif
598#ifdef STDC_HEADERS
599# include <stdlib.h>
600# include <stddef.h>
601#else
602# ifdef HAVE_STDLIB_H
603#  include <stdlib.h>
604# endif
605#endif
606#ifdef HAVE_STRING_H
607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608#  include <memory.h>
609# endif
610# include <string.h>
611#endif
612#ifdef HAVE_STRINGS_H
613# include <strings.h>
614#endif
615#ifdef HAVE_INTTYPES_H
616# include <inttypes.h>
617#endif
618#ifdef HAVE_STDINT_H
619# include <stdint.h>
620#endif
621#ifdef HAVE_UNISTD_H
622# include <unistd.h>
623#endif"
624
625ac_subst_vars='LTLIBOBJS
626LIBOBJS
627EGREP
628GREP
629CPP
630OBJEXT
631EXEEXT
632ac_ct_CC
633CPPFLAGS
634LDFLAGS
635CFLAGS
636CC
637host_os
638host_vendor
639host_cpu
640host
641build_os
642build_vendor
643build_cpu
644build
645target_alias
646host_alias
647build_alias
648LIBS
649ECHO_T
650ECHO_N
651ECHO_C
652DEFS
653mandir
654localedir
655libdir
656psdir
657pdfdir
658dvidir
659htmldir
660infodir
661docdir
662oldincludedir
663includedir
664localstatedir
665sharedstatedir
666sysconfdir
667datadir
668datarootdir
669libexecdir
670sbindir
671bindir
672program_transform_name
673prefix
674exec_prefix
675PACKAGE_URL
676PACKAGE_BUGREPORT
677PACKAGE_STRING
678PACKAGE_VERSION
679PACKAGE_TARNAME
680PACKAGE_NAME
681PATH_SEPARATOR
682SHELL'
683ac_subst_files=''
684ac_user_opts='
685enable_option_checking
686with_cc
687'
688      ac_precious_vars='build_alias
689host_alias
690target_alias
691CC
692CFLAGS
693LDFLAGS
694LIBS
695CPPFLAGS
696CPP'
697
698
699# Initialize some variables set by options.
700ac_init_help=
701ac_init_version=false
702ac_unrecognized_opts=
703ac_unrecognized_sep=
704# The variables have the same names as the options, with
705# dashes changed to underlines.
706cache_file=/dev/null
707exec_prefix=NONE
708no_create=
709no_recursion=
710prefix=NONE
711program_prefix=NONE
712program_suffix=NONE
713program_transform_name=s,x,x,
714silent=
715site=
716srcdir=
717verbose=
718x_includes=NONE
719x_libraries=NONE
720
721# Installation directory options.
722# These are left unexpanded so users can "make install exec_prefix=/foo"
723# and all the variables that are supposed to be based on exec_prefix
724# by default will actually change.
725# Use braces instead of parens because sh, perl, etc. also accept them.
726# (The list follows the same order as the GNU Coding Standards.)
727bindir='${exec_prefix}/bin'
728sbindir='${exec_prefix}/sbin'
729libexecdir='${exec_prefix}/libexec'
730datarootdir='${prefix}/share'
731datadir='${datarootdir}'
732sysconfdir='${prefix}/etc'
733sharedstatedir='${prefix}/com'
734localstatedir='${prefix}/var'
735includedir='${prefix}/include'
736oldincludedir='/usr/include'
737docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
738infodir='${datarootdir}/info'
739htmldir='${docdir}'
740dvidir='${docdir}'
741pdfdir='${docdir}'
742psdir='${docdir}'
743libdir='${exec_prefix}/lib'
744localedir='${datarootdir}/locale'
745mandir='${datarootdir}/man'
746
747ac_prev=
748ac_dashdash=
749for ac_option
750do
751  # If the previous option needs an argument, assign it.
752  if test -n "$ac_prev"; then
753    eval $ac_prev=\$ac_option
754    ac_prev=
755    continue
756  fi
757
758  case $ac_option in
759  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
760  *=)   ac_optarg= ;;
761  *)    ac_optarg=yes ;;
762  esac
763
764  # Accept the important Cygnus configure options, so we can diagnose typos.
765
766  case $ac_dashdash$ac_option in
767  --)
768    ac_dashdash=yes ;;
769
770  -bindir | --bindir | --bindi | --bind | --bin | --bi)
771    ac_prev=bindir ;;
772  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
773    bindir=$ac_optarg ;;
774
775  -build | --build | --buil | --bui | --bu)
776    ac_prev=build_alias ;;
777  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
778    build_alias=$ac_optarg ;;
779
780  -cache-file | --cache-file | --cache-fil | --cache-fi \
781  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
782    ac_prev=cache_file ;;
783  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
784  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
785    cache_file=$ac_optarg ;;
786
787  --config-cache | -C)
788    cache_file=config.cache ;;
789
790  -datadir | --datadir | --datadi | --datad)
791    ac_prev=datadir ;;
792  -datadir=* | --datadir=* | --datadi=* | --datad=*)
793    datadir=$ac_optarg ;;
794
795  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
796  | --dataroo | --dataro | --datar)
797    ac_prev=datarootdir ;;
798  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
799  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
800    datarootdir=$ac_optarg ;;
801
802  -disable-* | --disable-*)
803    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
804    # Reject names that are not valid shell variable names.
805    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
806      as_fn_error $? "invalid feature name: $ac_useropt"
807    ac_useropt_orig=$ac_useropt
808    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
809    case $ac_user_opts in
810      *"
811"enable_$ac_useropt"
812"*) ;;
813      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
814	 ac_unrecognized_sep=', ';;
815    esac
816    eval enable_$ac_useropt=no ;;
817
818  -docdir | --docdir | --docdi | --doc | --do)
819    ac_prev=docdir ;;
820  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
821    docdir=$ac_optarg ;;
822
823  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
824    ac_prev=dvidir ;;
825  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
826    dvidir=$ac_optarg ;;
827
828  -enable-* | --enable-*)
829    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
830    # Reject names that are not valid shell variable names.
831    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
832      as_fn_error $? "invalid feature name: $ac_useropt"
833    ac_useropt_orig=$ac_useropt
834    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
835    case $ac_user_opts in
836      *"
837"enable_$ac_useropt"
838"*) ;;
839      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
840	 ac_unrecognized_sep=', ';;
841    esac
842    eval enable_$ac_useropt=\$ac_optarg ;;
843
844  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
845  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
846  | --exec | --exe | --ex)
847    ac_prev=exec_prefix ;;
848  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
849  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
850  | --exec=* | --exe=* | --ex=*)
851    exec_prefix=$ac_optarg ;;
852
853  -gas | --gas | --ga | --g)
854    # Obsolete; use --with-gas.
855    with_gas=yes ;;
856
857  -help | --help | --hel | --he | -h)
858    ac_init_help=long ;;
859  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
860    ac_init_help=recursive ;;
861  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
862    ac_init_help=short ;;
863
864  -host | --host | --hos | --ho)
865    ac_prev=host_alias ;;
866  -host=* | --host=* | --hos=* | --ho=*)
867    host_alias=$ac_optarg ;;
868
869  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
870    ac_prev=htmldir ;;
871  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
872  | --ht=*)
873    htmldir=$ac_optarg ;;
874
875  -includedir | --includedir | --includedi | --included | --include \
876  | --includ | --inclu | --incl | --inc)
877    ac_prev=includedir ;;
878  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
879  | --includ=* | --inclu=* | --incl=* | --inc=*)
880    includedir=$ac_optarg ;;
881
882  -infodir | --infodir | --infodi | --infod | --info | --inf)
883    ac_prev=infodir ;;
884  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
885    infodir=$ac_optarg ;;
886
887  -libdir | --libdir | --libdi | --libd)
888    ac_prev=libdir ;;
889  -libdir=* | --libdir=* | --libdi=* | --libd=*)
890    libdir=$ac_optarg ;;
891
892  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
893  | --libexe | --libex | --libe)
894    ac_prev=libexecdir ;;
895  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
896  | --libexe=* | --libex=* | --libe=*)
897    libexecdir=$ac_optarg ;;
898
899  -localedir | --localedir | --localedi | --localed | --locale)
900    ac_prev=localedir ;;
901  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
902    localedir=$ac_optarg ;;
903
904  -localstatedir | --localstatedir | --localstatedi | --localstated \
905  | --localstate | --localstat | --localsta | --localst | --locals)
906    ac_prev=localstatedir ;;
907  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
908  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
909    localstatedir=$ac_optarg ;;
910
911  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
912    ac_prev=mandir ;;
913  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
914    mandir=$ac_optarg ;;
915
916  -nfp | --nfp | --nf)
917    # Obsolete; use --without-fp.
918    with_fp=no ;;
919
920  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
921  | --no-cr | --no-c | -n)
922    no_create=yes ;;
923
924  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
925  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
926    no_recursion=yes ;;
927
928  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
929  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
930  | --oldin | --oldi | --old | --ol | --o)
931    ac_prev=oldincludedir ;;
932  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
933  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
934  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
935    oldincludedir=$ac_optarg ;;
936
937  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
938    ac_prev=prefix ;;
939  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
940    prefix=$ac_optarg ;;
941
942  -program-prefix | --program-prefix | --program-prefi | --program-pref \
943  | --program-pre | --program-pr | --program-p)
944    ac_prev=program_prefix ;;
945  -program-prefix=* | --program-prefix=* | --program-prefi=* \
946  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
947    program_prefix=$ac_optarg ;;
948
949  -program-suffix | --program-suffix | --program-suffi | --program-suff \
950  | --program-suf | --program-su | --program-s)
951    ac_prev=program_suffix ;;
952  -program-suffix=* | --program-suffix=* | --program-suffi=* \
953  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
954    program_suffix=$ac_optarg ;;
955
956  -program-transform-name | --program-transform-name \
957  | --program-transform-nam | --program-transform-na \
958  | --program-transform-n | --program-transform- \
959  | --program-transform | --program-transfor \
960  | --program-transfo | --program-transf \
961  | --program-trans | --program-tran \
962  | --progr-tra | --program-tr | --program-t)
963    ac_prev=program_transform_name ;;
964  -program-transform-name=* | --program-transform-name=* \
965  | --program-transform-nam=* | --program-transform-na=* \
966  | --program-transform-n=* | --program-transform-=* \
967  | --program-transform=* | --program-transfor=* \
968  | --program-transfo=* | --program-transf=* \
969  | --program-trans=* | --program-tran=* \
970  | --progr-tra=* | --program-tr=* | --program-t=*)
971    program_transform_name=$ac_optarg ;;
972
973  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
974    ac_prev=pdfdir ;;
975  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
976    pdfdir=$ac_optarg ;;
977
978  -psdir | --psdir | --psdi | --psd | --ps)
979    ac_prev=psdir ;;
980  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
981    psdir=$ac_optarg ;;
982
983  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
984  | -silent | --silent | --silen | --sile | --sil)
985    silent=yes ;;
986
987  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
988    ac_prev=sbindir ;;
989  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
990  | --sbi=* | --sb=*)
991    sbindir=$ac_optarg ;;
992
993  -sharedstatedir | --sharedstatedir | --sharedstatedi \
994  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
995  | --sharedst | --shareds | --shared | --share | --shar \
996  | --sha | --sh)
997    ac_prev=sharedstatedir ;;
998  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
999  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1000  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1001  | --sha=* | --sh=*)
1002    sharedstatedir=$ac_optarg ;;
1003
1004  -site | --site | --sit)
1005    ac_prev=site ;;
1006  -site=* | --site=* | --sit=*)
1007    site=$ac_optarg ;;
1008
1009  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1010    ac_prev=srcdir ;;
1011  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1012    srcdir=$ac_optarg ;;
1013
1014  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1015  | --syscon | --sysco | --sysc | --sys | --sy)
1016    ac_prev=sysconfdir ;;
1017  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1018  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1019    sysconfdir=$ac_optarg ;;
1020
1021  -target | --target | --targe | --targ | --tar | --ta | --t)
1022    ac_prev=target_alias ;;
1023  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1024    target_alias=$ac_optarg ;;
1025
1026  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1027    verbose=yes ;;
1028
1029  -version | --version | --versio | --versi | --vers | -V)
1030    ac_init_version=: ;;
1031
1032  -with-* | --with-*)
1033    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1034    # Reject names that are not valid shell variable names.
1035    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1036      as_fn_error $? "invalid package name: $ac_useropt"
1037    ac_useropt_orig=$ac_useropt
1038    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1039    case $ac_user_opts in
1040      *"
1041"with_$ac_useropt"
1042"*) ;;
1043      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1044	 ac_unrecognized_sep=', ';;
1045    esac
1046    eval with_$ac_useropt=\$ac_optarg ;;
1047
1048  -without-* | --without-*)
1049    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1050    # Reject names that are not valid shell variable names.
1051    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052      as_fn_error $? "invalid package name: $ac_useropt"
1053    ac_useropt_orig=$ac_useropt
1054    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055    case $ac_user_opts in
1056      *"
1057"with_$ac_useropt"
1058"*) ;;
1059      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1060	 ac_unrecognized_sep=', ';;
1061    esac
1062    eval with_$ac_useropt=no ;;
1063
1064  --x)
1065    # Obsolete; use --with-x.
1066    with_x=yes ;;
1067
1068  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1069  | --x-incl | --x-inc | --x-in | --x-i)
1070    ac_prev=x_includes ;;
1071  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1072  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1073    x_includes=$ac_optarg ;;
1074
1075  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1076  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1077    ac_prev=x_libraries ;;
1078  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1079  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1080    x_libraries=$ac_optarg ;;
1081
1082  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1083Try \`$0 --help' for more information"
1084    ;;
1085
1086  *=*)
1087    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1088    # Reject names that are not valid shell variable names.
1089    case $ac_envvar in #(
1090      '' | [0-9]* | *[!_$as_cr_alnum]* )
1091      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1092    esac
1093    eval $ac_envvar=\$ac_optarg
1094    export $ac_envvar ;;
1095
1096  *)
1097    # FIXME: should be removed in autoconf 3.0.
1098    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1099    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1100      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1101    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1102    ;;
1103
1104  esac
1105done
1106
1107if test -n "$ac_prev"; then
1108  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1109  as_fn_error $? "missing argument to $ac_option"
1110fi
1111
1112if test -n "$ac_unrecognized_opts"; then
1113  case $enable_option_checking in
1114    no) ;;
1115    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1116    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1117  esac
1118fi
1119
1120# Check all directory arguments for consistency.
1121for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1122		datadir sysconfdir sharedstatedir localstatedir includedir \
1123		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1124		libdir localedir mandir
1125do
1126  eval ac_val=\$$ac_var
1127  # Remove trailing slashes.
1128  case $ac_val in
1129    */ )
1130      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1131      eval $ac_var=\$ac_val;;
1132  esac
1133  # Be sure to have absolute directory names.
1134  case $ac_val in
1135    [\\/$]* | ?:[\\/]* )  continue;;
1136    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1137  esac
1138  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1139done
1140
1141# There might be people who depend on the old broken behavior: `$host'
1142# used to hold the argument of --host etc.
1143# FIXME: To remove some day.
1144build=$build_alias
1145host=$host_alias
1146target=$target_alias
1147
1148# FIXME: To remove some day.
1149if test "x$host_alias" != x; then
1150  if test "x$build_alias" = x; then
1151    cross_compiling=maybe
1152  elif test "x$build_alias" != "x$host_alias"; then
1153    cross_compiling=yes
1154  fi
1155fi
1156
1157ac_tool_prefix=
1158test -n "$host_alias" && ac_tool_prefix=$host_alias-
1159
1160test "$silent" = yes && exec 6>/dev/null
1161
1162
1163ac_pwd=`pwd` && test -n "$ac_pwd" &&
1164ac_ls_di=`ls -di .` &&
1165ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1166  as_fn_error $? "working directory cannot be determined"
1167test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1168  as_fn_error $? "pwd does not report name of working directory"
1169
1170
1171# Find the source files, if location was not specified.
1172if test -z "$srcdir"; then
1173  ac_srcdir_defaulted=yes
1174  # Try the directory containing this script, then the parent directory.
1175  ac_confdir=`$as_dirname -- "$as_myself" ||
1176$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1177	 X"$as_myself" : 'X\(//\)[^/]' \| \
1178	 X"$as_myself" : 'X\(//\)$' \| \
1179	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1180$as_echo X"$as_myself" |
1181    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1182	    s//\1/
1183	    q
1184	  }
1185	  /^X\(\/\/\)[^/].*/{
1186	    s//\1/
1187	    q
1188	  }
1189	  /^X\(\/\/\)$/{
1190	    s//\1/
1191	    q
1192	  }
1193	  /^X\(\/\).*/{
1194	    s//\1/
1195	    q
1196	  }
1197	  s/.*/./; q'`
1198  srcdir=$ac_confdir
1199  if test ! -r "$srcdir/$ac_unique_file"; then
1200    srcdir=..
1201  fi
1202else
1203  ac_srcdir_defaulted=no
1204fi
1205if test ! -r "$srcdir/$ac_unique_file"; then
1206  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1207  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1208fi
1209ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1210ac_abs_confdir=`(
1211	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1212	pwd)`
1213# When building in place, set srcdir=.
1214if test "$ac_abs_confdir" = "$ac_pwd"; then
1215  srcdir=.
1216fi
1217# Remove unnecessary trailing slashes from srcdir.
1218# Double slashes in file names in object file debugging info
1219# mess up M-x gdb in Emacs.
1220case $srcdir in
1221*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1222esac
1223for ac_var in $ac_precious_vars; do
1224  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1225  eval ac_env_${ac_var}_value=\$${ac_var}
1226  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1227  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1228done
1229
1230#
1231# Report the --help message.
1232#
1233if test "$ac_init_help" = "long"; then
1234  # Omit some internal or obsolete options to make the list less imposing.
1235  # This message is too long to be a string in the A/UX 3.1 sh.
1236  cat <<_ACEOF
1237\`configure' configures Haskell network package 3.1.1.0 to adapt to many kinds of systems.
1238
1239Usage: $0 [OPTION]... [VAR=VALUE]...
1240
1241To assign environment variables (e.g., CC, CFLAGS...), specify them as
1242VAR=VALUE.  See below for descriptions of some of the useful variables.
1243
1244Defaults for the options are specified in brackets.
1245
1246Configuration:
1247  -h, --help              display this help and exit
1248      --help=short        display options specific to this package
1249      --help=recursive    display the short help of all the included packages
1250  -V, --version           display version information and exit
1251  -q, --quiet, --silent   do not print \`checking ...' messages
1252      --cache-file=FILE   cache test results in FILE [disabled]
1253  -C, --config-cache      alias for \`--cache-file=config.cache'
1254  -n, --no-create         do not create output files
1255      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1256
1257Installation directories:
1258  --prefix=PREFIX         install architecture-independent files in PREFIX
1259                          [$ac_default_prefix]
1260  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1261                          [PREFIX]
1262
1263By default, \`make install' will install all the files in
1264\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1265an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1266for instance \`--prefix=\$HOME'.
1267
1268For better control, use the options below.
1269
1270Fine tuning of the installation directories:
1271  --bindir=DIR            user executables [EPREFIX/bin]
1272  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1273  --libexecdir=DIR        program executables [EPREFIX/libexec]
1274  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1275  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1276  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1277  --libdir=DIR            object code libraries [EPREFIX/lib]
1278  --includedir=DIR        C header files [PREFIX/include]
1279  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1280  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1281  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1282  --infodir=DIR           info documentation [DATAROOTDIR/info]
1283  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1284  --mandir=DIR            man documentation [DATAROOTDIR/man]
1285  --docdir=DIR            documentation root [DATAROOTDIR/doc/network]
1286  --htmldir=DIR           html documentation [DOCDIR]
1287  --dvidir=DIR            dvi documentation [DOCDIR]
1288  --pdfdir=DIR            pdf documentation [DOCDIR]
1289  --psdir=DIR             ps documentation [DOCDIR]
1290_ACEOF
1291
1292  cat <<\_ACEOF
1293
1294System types:
1295  --build=BUILD     configure for building on BUILD [guessed]
1296  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1297_ACEOF
1298fi
1299
1300if test -n "$ac_init_help"; then
1301  case $ac_init_help in
1302     short | recursive ) echo "Configuration of Haskell network package 3.1.1.0:";;
1303   esac
1304  cat <<\_ACEOF
1305
1306Optional Packages:
1307  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1308  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1309C compiler
1310
1311Some influential environment variables:
1312  CC          C compiler command
1313  CFLAGS      C compiler flags
1314  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1315              nonstandard directory <lib dir>
1316  LIBS        libraries to pass to the linker, e.g. -l<library>
1317  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1318              you have headers in a nonstandard directory <include dir>
1319  CPP         C preprocessor
1320
1321Use these variables to override the choices made by `configure' or to help
1322it to find libraries and programs with nonstandard names/locations.
1323
1324Report bugs to <libraries@haskell.org>.
1325_ACEOF
1326ac_status=$?
1327fi
1328
1329if test "$ac_init_help" = "recursive"; then
1330  # If there are subdirs, report their specific --help.
1331  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1332    test -d "$ac_dir" ||
1333      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1334      continue
1335    ac_builddir=.
1336
1337case "$ac_dir" in
1338.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1339*)
1340  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1341  # A ".." for each directory in $ac_dir_suffix.
1342  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1343  case $ac_top_builddir_sub in
1344  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1345  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1346  esac ;;
1347esac
1348ac_abs_top_builddir=$ac_pwd
1349ac_abs_builddir=$ac_pwd$ac_dir_suffix
1350# for backward compatibility:
1351ac_top_builddir=$ac_top_build_prefix
1352
1353case $srcdir in
1354  .)  # We are building in place.
1355    ac_srcdir=.
1356    ac_top_srcdir=$ac_top_builddir_sub
1357    ac_abs_top_srcdir=$ac_pwd ;;
1358  [\\/]* | ?:[\\/]* )  # Absolute name.
1359    ac_srcdir=$srcdir$ac_dir_suffix;
1360    ac_top_srcdir=$srcdir
1361    ac_abs_top_srcdir=$srcdir ;;
1362  *) # Relative name.
1363    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1364    ac_top_srcdir=$ac_top_build_prefix$srcdir
1365    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1366esac
1367ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1368
1369    cd "$ac_dir" || { ac_status=$?; continue; }
1370    # Check for guested configure.
1371    if test -f "$ac_srcdir/configure.gnu"; then
1372      echo &&
1373      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1374    elif test -f "$ac_srcdir/configure"; then
1375      echo &&
1376      $SHELL "$ac_srcdir/configure" --help=recursive
1377    else
1378      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1379    fi || ac_status=$?
1380    cd "$ac_pwd" || { ac_status=$?; break; }
1381  done
1382fi
1383
1384test -n "$ac_init_help" && exit $ac_status
1385if $ac_init_version; then
1386  cat <<\_ACEOF
1387Haskell network package configure 3.1.1.0
1388generated by GNU Autoconf 2.69
1389
1390Copyright (C) 2012 Free Software Foundation, Inc.
1391This configure script is free software; the Free Software Foundation
1392gives unlimited permission to copy, distribute and modify it.
1393_ACEOF
1394  exit
1395fi
1396
1397## ------------------------ ##
1398## Autoconf initialization. ##
1399## ------------------------ ##
1400
1401# ac_fn_c_try_compile LINENO
1402# --------------------------
1403# Try to compile conftest.$ac_ext, and return whether this succeeded.
1404ac_fn_c_try_compile ()
1405{
1406  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1407  rm -f conftest.$ac_objext
1408  if { { ac_try="$ac_compile"
1409case "(($ac_try" in
1410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1411  *) ac_try_echo=$ac_try;;
1412esac
1413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1414$as_echo "$ac_try_echo"; } >&5
1415  (eval "$ac_compile") 2>conftest.err
1416  ac_status=$?
1417  if test -s conftest.err; then
1418    grep -v '^ *+' conftest.err >conftest.er1
1419    cat conftest.er1 >&5
1420    mv -f conftest.er1 conftest.err
1421  fi
1422  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1423  test $ac_status = 0; } && {
1424	 test -z "$ac_c_werror_flag" ||
1425	 test ! -s conftest.err
1426       } && test -s conftest.$ac_objext; then :
1427  ac_retval=0
1428else
1429  $as_echo "$as_me: failed program was:" >&5
1430sed 's/^/| /' conftest.$ac_ext >&5
1431
1432	ac_retval=1
1433fi
1434  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1435  as_fn_set_status $ac_retval
1436
1437} # ac_fn_c_try_compile
1438
1439# ac_fn_c_try_cpp LINENO
1440# ----------------------
1441# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1442ac_fn_c_try_cpp ()
1443{
1444  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1445  if { { ac_try="$ac_cpp conftest.$ac_ext"
1446case "(($ac_try" in
1447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1448  *) ac_try_echo=$ac_try;;
1449esac
1450eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1451$as_echo "$ac_try_echo"; } >&5
1452  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1453  ac_status=$?
1454  if test -s conftest.err; then
1455    grep -v '^ *+' conftest.err >conftest.er1
1456    cat conftest.er1 >&5
1457    mv -f conftest.er1 conftest.err
1458  fi
1459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1460  test $ac_status = 0; } > conftest.i && {
1461	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1462	 test ! -s conftest.err
1463       }; then :
1464  ac_retval=0
1465else
1466  $as_echo "$as_me: failed program was:" >&5
1467sed 's/^/| /' conftest.$ac_ext >&5
1468
1469    ac_retval=1
1470fi
1471  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1472  as_fn_set_status $ac_retval
1473
1474} # ac_fn_c_try_cpp
1475
1476# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1477# -------------------------------------------------------
1478# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1479# the include files in INCLUDES and setting the cache variable VAR
1480# accordingly.
1481ac_fn_c_check_header_mongrel ()
1482{
1483  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1484  if eval \${$3+:} false; then :
1485  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1486$as_echo_n "checking for $2... " >&6; }
1487if eval \${$3+:} false; then :
1488  $as_echo_n "(cached) " >&6
1489fi
1490eval ac_res=\$$3
1491	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1492$as_echo "$ac_res" >&6; }
1493else
1494  # Is the header compilable?
1495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1496$as_echo_n "checking $2 usability... " >&6; }
1497cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1498/* end confdefs.h.  */
1499$4
1500#include <$2>
1501_ACEOF
1502if ac_fn_c_try_compile "$LINENO"; then :
1503  ac_header_compiler=yes
1504else
1505  ac_header_compiler=no
1506fi
1507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1509$as_echo "$ac_header_compiler" >&6; }
1510
1511# Is the header present?
1512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1513$as_echo_n "checking $2 presence... " >&6; }
1514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1515/* end confdefs.h.  */
1516#include <$2>
1517_ACEOF
1518if ac_fn_c_try_cpp "$LINENO"; then :
1519  ac_header_preproc=yes
1520else
1521  ac_header_preproc=no
1522fi
1523rm -f conftest.err conftest.i conftest.$ac_ext
1524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1525$as_echo "$ac_header_preproc" >&6; }
1526
1527# So?  What about this header?
1528case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1529  yes:no: )
1530    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1531$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1532    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1533$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1534    ;;
1535  no:yes:* )
1536    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1537$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1538    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1539$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1540    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1541$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1542    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1543$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1544    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1545$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1546( $as_echo "## ------------------------------------ ##
1547## Report this to libraries@haskell.org ##
1548## ------------------------------------ ##"
1549     ) | sed "s/^/$as_me: WARNING:     /" >&2
1550    ;;
1551esac
1552  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1553$as_echo_n "checking for $2... " >&6; }
1554if eval \${$3+:} false; then :
1555  $as_echo_n "(cached) " >&6
1556else
1557  eval "$3=\$ac_header_compiler"
1558fi
1559eval ac_res=\$$3
1560	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1561$as_echo "$ac_res" >&6; }
1562fi
1563  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1564
1565} # ac_fn_c_check_header_mongrel
1566
1567# ac_fn_c_try_run LINENO
1568# ----------------------
1569# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1570# that executables *can* be run.
1571ac_fn_c_try_run ()
1572{
1573  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574  if { { ac_try="$ac_link"
1575case "(($ac_try" in
1576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1577  *) ac_try_echo=$ac_try;;
1578esac
1579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580$as_echo "$ac_try_echo"; } >&5
1581  (eval "$ac_link") 2>&5
1582  ac_status=$?
1583  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1585  { { case "(($ac_try" in
1586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587  *) ac_try_echo=$ac_try;;
1588esac
1589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590$as_echo "$ac_try_echo"; } >&5
1591  (eval "$ac_try") 2>&5
1592  ac_status=$?
1593  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594  test $ac_status = 0; }; }; then :
1595  ac_retval=0
1596else
1597  $as_echo "$as_me: program exited with status $ac_status" >&5
1598       $as_echo "$as_me: failed program was:" >&5
1599sed 's/^/| /' conftest.$ac_ext >&5
1600
1601       ac_retval=$ac_status
1602fi
1603  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1604  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605  as_fn_set_status $ac_retval
1606
1607} # ac_fn_c_try_run
1608
1609# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1610# -------------------------------------------------------
1611# Tests whether HEADER exists and can be compiled using the include files in
1612# INCLUDES, setting the cache variable VAR accordingly.
1613ac_fn_c_check_header_compile ()
1614{
1615  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1617$as_echo_n "checking for $2... " >&6; }
1618if eval \${$3+:} false; then :
1619  $as_echo_n "(cached) " >&6
1620else
1621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622/* end confdefs.h.  */
1623$4
1624#include <$2>
1625_ACEOF
1626if ac_fn_c_try_compile "$LINENO"; then :
1627  eval "$3=yes"
1628else
1629  eval "$3=no"
1630fi
1631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1632fi
1633eval ac_res=\$$3
1634	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1635$as_echo "$ac_res" >&6; }
1636  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637
1638} # ac_fn_c_check_header_compile
1639
1640# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1641# -------------------------------------------
1642# Tests whether TYPE exists after having included INCLUDES, setting cache
1643# variable VAR accordingly.
1644ac_fn_c_check_type ()
1645{
1646  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1648$as_echo_n "checking for $2... " >&6; }
1649if eval \${$3+:} false; then :
1650  $as_echo_n "(cached) " >&6
1651else
1652  eval "$3=no"
1653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654/* end confdefs.h.  */
1655$4
1656int
1657main ()
1658{
1659if (sizeof ($2))
1660	 return 0;
1661  ;
1662  return 0;
1663}
1664_ACEOF
1665if ac_fn_c_try_compile "$LINENO"; then :
1666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667/* end confdefs.h.  */
1668$4
1669int
1670main ()
1671{
1672if (sizeof (($2)))
1673	    return 0;
1674  ;
1675  return 0;
1676}
1677_ACEOF
1678if ac_fn_c_try_compile "$LINENO"; then :
1679
1680else
1681  eval "$3=yes"
1682fi
1683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1684fi
1685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1686fi
1687eval ac_res=\$$3
1688	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1689$as_echo "$ac_res" >&6; }
1690  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691
1692} # ac_fn_c_check_type
1693
1694# ac_fn_c_try_link LINENO
1695# -----------------------
1696# Try to link conftest.$ac_ext, and return whether this succeeded.
1697ac_fn_c_try_link ()
1698{
1699  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700  rm -f conftest.$ac_objext conftest$ac_exeext
1701  if { { ac_try="$ac_link"
1702case "(($ac_try" in
1703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704  *) ac_try_echo=$ac_try;;
1705esac
1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707$as_echo "$ac_try_echo"; } >&5
1708  (eval "$ac_link") 2>conftest.err
1709  ac_status=$?
1710  if test -s conftest.err; then
1711    grep -v '^ *+' conftest.err >conftest.er1
1712    cat conftest.er1 >&5
1713    mv -f conftest.er1 conftest.err
1714  fi
1715  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716  test $ac_status = 0; } && {
1717	 test -z "$ac_c_werror_flag" ||
1718	 test ! -s conftest.err
1719       } && test -s conftest$ac_exeext && {
1720	 test "$cross_compiling" = yes ||
1721	 test -x conftest$ac_exeext
1722       }; then :
1723  ac_retval=0
1724else
1725  $as_echo "$as_me: failed program was:" >&5
1726sed 's/^/| /' conftest.$ac_ext >&5
1727
1728	ac_retval=1
1729fi
1730  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1731  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1732  # interfere with the next link command; also delete a directory that is
1733  # left behind by Apple's compiler.  We do this before executing the actions.
1734  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1735  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736  as_fn_set_status $ac_retval
1737
1738} # ac_fn_c_try_link
1739
1740# ac_fn_c_check_func LINENO FUNC VAR
1741# ----------------------------------
1742# Tests whether FUNC exists, setting the cache variable VAR accordingly
1743ac_fn_c_check_func ()
1744{
1745  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1747$as_echo_n "checking for $2... " >&6; }
1748if eval \${$3+:} false; then :
1749  $as_echo_n "(cached) " >&6
1750else
1751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1752/* end confdefs.h.  */
1753/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1754   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1755#define $2 innocuous_$2
1756
1757/* System header to define __stub macros and hopefully few prototypes,
1758    which can conflict with char $2 (); below.
1759    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1760    <limits.h> exists even on freestanding compilers.  */
1761
1762#ifdef __STDC__
1763# include <limits.h>
1764#else
1765# include <assert.h>
1766#endif
1767
1768#undef $2
1769
1770/* Override any GCC internal prototype to avoid an error.
1771   Use char because int might match the return type of a GCC
1772   builtin and then its argument prototype would still apply.  */
1773#ifdef __cplusplus
1774extern "C"
1775#endif
1776char $2 ();
1777/* The GNU C library defines this for functions which it implements
1778    to always fail with ENOSYS.  Some functions are actually named
1779    something starting with __ and the normal name is an alias.  */
1780#if defined __stub_$2 || defined __stub___$2
1781choke me
1782#endif
1783
1784int
1785main ()
1786{
1787return $2 ();
1788  ;
1789  return 0;
1790}
1791_ACEOF
1792if ac_fn_c_try_link "$LINENO"; then :
1793  eval "$3=yes"
1794else
1795  eval "$3=no"
1796fi
1797rm -f core conftest.err conftest.$ac_objext \
1798    conftest$ac_exeext conftest.$ac_ext
1799fi
1800eval ac_res=\$$3
1801	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802$as_echo "$ac_res" >&6; }
1803  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804
1805} # ac_fn_c_check_func
1806
1807# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1808# ---------------------------------------------
1809# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1810# accordingly.
1811ac_fn_c_check_decl ()
1812{
1813  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814  as_decl_name=`echo $2|sed 's/ *(.*//'`
1815  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1816  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1817$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1818if eval \${$3+:} false; then :
1819  $as_echo_n "(cached) " >&6
1820else
1821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822/* end confdefs.h.  */
1823$4
1824int
1825main ()
1826{
1827#ifndef $as_decl_name
1828#ifdef __cplusplus
1829  (void) $as_decl_use;
1830#else
1831  (void) $as_decl_name;
1832#endif
1833#endif
1834
1835  ;
1836  return 0;
1837}
1838_ACEOF
1839if ac_fn_c_try_compile "$LINENO"; then :
1840  eval "$3=yes"
1841else
1842  eval "$3=no"
1843fi
1844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1845fi
1846eval ac_res=\$$3
1847	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848$as_echo "$ac_res" >&6; }
1849  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850
1851} # ac_fn_c_check_decl
1852
1853# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1854# ----------------------------------------------------
1855# Tries to find if the field MEMBER exists in type AGGR, after including
1856# INCLUDES, setting cache variable VAR accordingly.
1857ac_fn_c_check_member ()
1858{
1859  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1861$as_echo_n "checking for $2.$3... " >&6; }
1862if eval \${$4+:} false; then :
1863  $as_echo_n "(cached) " >&6
1864else
1865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866/* end confdefs.h.  */
1867$5
1868int
1869main ()
1870{
1871static $2 ac_aggr;
1872if (ac_aggr.$3)
1873return 0;
1874  ;
1875  return 0;
1876}
1877_ACEOF
1878if ac_fn_c_try_compile "$LINENO"; then :
1879  eval "$4=yes"
1880else
1881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882/* end confdefs.h.  */
1883$5
1884int
1885main ()
1886{
1887static $2 ac_aggr;
1888if (sizeof ac_aggr.$3)
1889return 0;
1890  ;
1891  return 0;
1892}
1893_ACEOF
1894if ac_fn_c_try_compile "$LINENO"; then :
1895  eval "$4=yes"
1896else
1897  eval "$4=no"
1898fi
1899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1900fi
1901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902fi
1903eval ac_res=\$$4
1904	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905$as_echo "$ac_res" >&6; }
1906  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907
1908} # ac_fn_c_check_member
1909cat >config.log <<_ACEOF
1910This file contains any messages produced by compilers while
1911running configure, to aid debugging if configure makes a mistake.
1912
1913It was created by Haskell network package $as_me 3.1.1.0, which was
1914generated by GNU Autoconf 2.69.  Invocation command line was
1915
1916  $ $0 $@
1917
1918_ACEOF
1919exec 5>>config.log
1920{
1921cat <<_ASUNAME
1922## --------- ##
1923## Platform. ##
1924## --------- ##
1925
1926hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1927uname -m = `(uname -m) 2>/dev/null || echo unknown`
1928uname -r = `(uname -r) 2>/dev/null || echo unknown`
1929uname -s = `(uname -s) 2>/dev/null || echo unknown`
1930uname -v = `(uname -v) 2>/dev/null || echo unknown`
1931
1932/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1933/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1934
1935/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1936/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1937/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1938/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1939/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1940/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1941/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1942
1943_ASUNAME
1944
1945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946for as_dir in $PATH
1947do
1948  IFS=$as_save_IFS
1949  test -z "$as_dir" && as_dir=.
1950    $as_echo "PATH: $as_dir"
1951  done
1952IFS=$as_save_IFS
1953
1954} >&5
1955
1956cat >&5 <<_ACEOF
1957
1958
1959## ----------- ##
1960## Core tests. ##
1961## ----------- ##
1962
1963_ACEOF
1964
1965
1966# Keep a trace of the command line.
1967# Strip out --no-create and --no-recursion so they do not pile up.
1968# Strip out --silent because we don't want to record it for future runs.
1969# Also quote any args containing shell meta-characters.
1970# Make two passes to allow for proper duplicate-argument suppression.
1971ac_configure_args=
1972ac_configure_args0=
1973ac_configure_args1=
1974ac_must_keep_next=false
1975for ac_pass in 1 2
1976do
1977  for ac_arg
1978  do
1979    case $ac_arg in
1980    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1981    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1982    | -silent | --silent | --silen | --sile | --sil)
1983      continue ;;
1984    *\'*)
1985      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1986    esac
1987    case $ac_pass in
1988    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1989    2)
1990      as_fn_append ac_configure_args1 " '$ac_arg'"
1991      if test $ac_must_keep_next = true; then
1992	ac_must_keep_next=false # Got value, back to normal.
1993      else
1994	case $ac_arg in
1995	  *=* | --config-cache | -C | -disable-* | --disable-* \
1996	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1997	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1998	  | -with-* | --with-* | -without-* | --without-* | --x)
1999	    case "$ac_configure_args0 " in
2000	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2001	    esac
2002	    ;;
2003	  -* ) ac_must_keep_next=true ;;
2004	esac
2005      fi
2006      as_fn_append ac_configure_args " '$ac_arg'"
2007      ;;
2008    esac
2009  done
2010done
2011{ ac_configure_args0=; unset ac_configure_args0;}
2012{ ac_configure_args1=; unset ac_configure_args1;}
2013
2014# When interrupted or exit'd, cleanup temporary files, and complete
2015# config.log.  We remove comments because anyway the quotes in there
2016# would cause problems or look ugly.
2017# WARNING: Use '\'' to represent an apostrophe within the trap.
2018# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2019trap 'exit_status=$?
2020  # Save into config.log some information that might help in debugging.
2021  {
2022    echo
2023
2024    $as_echo "## ---------------- ##
2025## Cache variables. ##
2026## ---------------- ##"
2027    echo
2028    # The following way of writing the cache mishandles newlines in values,
2029(
2030  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2031    eval ac_val=\$$ac_var
2032    case $ac_val in #(
2033    *${as_nl}*)
2034      case $ac_var in #(
2035      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2036$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2037      esac
2038      case $ac_var in #(
2039      _ | IFS | as_nl) ;; #(
2040      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2041      *) { eval $ac_var=; unset $ac_var;} ;;
2042      esac ;;
2043    esac
2044  done
2045  (set) 2>&1 |
2046    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2047    *${as_nl}ac_space=\ *)
2048      sed -n \
2049	"s/'\''/'\''\\\\'\'''\''/g;
2050	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2051      ;; #(
2052    *)
2053      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2054      ;;
2055    esac |
2056    sort
2057)
2058    echo
2059
2060    $as_echo "## ----------------- ##
2061## Output variables. ##
2062## ----------------- ##"
2063    echo
2064    for ac_var in $ac_subst_vars
2065    do
2066      eval ac_val=\$$ac_var
2067      case $ac_val in
2068      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2069      esac
2070      $as_echo "$ac_var='\''$ac_val'\''"
2071    done | sort
2072    echo
2073
2074    if test -n "$ac_subst_files"; then
2075      $as_echo "## ------------------- ##
2076## File substitutions. ##
2077## ------------------- ##"
2078      echo
2079      for ac_var in $ac_subst_files
2080      do
2081	eval ac_val=\$$ac_var
2082	case $ac_val in
2083	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2084	esac
2085	$as_echo "$ac_var='\''$ac_val'\''"
2086      done | sort
2087      echo
2088    fi
2089
2090    if test -s confdefs.h; then
2091      $as_echo "## ----------- ##
2092## confdefs.h. ##
2093## ----------- ##"
2094      echo
2095      cat confdefs.h
2096      echo
2097    fi
2098    test "$ac_signal" != 0 &&
2099      $as_echo "$as_me: caught signal $ac_signal"
2100    $as_echo "$as_me: exit $exit_status"
2101  } >&5
2102  rm -f core *.core core.conftest.* &&
2103    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2104    exit $exit_status
2105' 0
2106for ac_signal in 1 2 13 15; do
2107  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2108done
2109ac_signal=0
2110
2111# confdefs.h avoids OS command line length limits that DEFS can exceed.
2112rm -f -r conftest* confdefs.h
2113
2114$as_echo "/* confdefs.h */" > confdefs.h
2115
2116# Predefined preprocessor variables.
2117
2118cat >>confdefs.h <<_ACEOF
2119#define PACKAGE_NAME "$PACKAGE_NAME"
2120_ACEOF
2121
2122cat >>confdefs.h <<_ACEOF
2123#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2124_ACEOF
2125
2126cat >>confdefs.h <<_ACEOF
2127#define PACKAGE_VERSION "$PACKAGE_VERSION"
2128_ACEOF
2129
2130cat >>confdefs.h <<_ACEOF
2131#define PACKAGE_STRING "$PACKAGE_STRING"
2132_ACEOF
2133
2134cat >>confdefs.h <<_ACEOF
2135#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2136_ACEOF
2137
2138cat >>confdefs.h <<_ACEOF
2139#define PACKAGE_URL "$PACKAGE_URL"
2140_ACEOF
2141
2142
2143# Let the site file select an alternate cache file if it wants to.
2144# Prefer an explicitly selected file to automatically selected ones.
2145ac_site_file1=NONE
2146ac_site_file2=NONE
2147if test -n "$CONFIG_SITE"; then
2148  # We do not want a PATH search for config.site.
2149  case $CONFIG_SITE in #((
2150    -*)  ac_site_file1=./$CONFIG_SITE;;
2151    */*) ac_site_file1=$CONFIG_SITE;;
2152    *)   ac_site_file1=./$CONFIG_SITE;;
2153  esac
2154elif test "x$prefix" != xNONE; then
2155  ac_site_file1=$prefix/share/config.site
2156  ac_site_file2=$prefix/etc/config.site
2157else
2158  ac_site_file1=$ac_default_prefix/share/config.site
2159  ac_site_file2=$ac_default_prefix/etc/config.site
2160fi
2161for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2162do
2163  test "x$ac_site_file" = xNONE && continue
2164  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2165    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2166$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2167    sed 's/^/| /' "$ac_site_file" >&5
2168    . "$ac_site_file" \
2169      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2170$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2171as_fn_error $? "failed to load site script $ac_site_file
2172See \`config.log' for more details" "$LINENO" 5; }
2173  fi
2174done
2175
2176if test -r "$cache_file"; then
2177  # Some versions of bash will fail to source /dev/null (special files
2178  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2179  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2180    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2181$as_echo "$as_me: loading cache $cache_file" >&6;}
2182    case $cache_file in
2183      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2184      *)                      . "./$cache_file";;
2185    esac
2186  fi
2187else
2188  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2189$as_echo "$as_me: creating cache $cache_file" >&6;}
2190  >$cache_file
2191fi
2192
2193# Check that the precious variables saved in the cache have kept the same
2194# value.
2195ac_cache_corrupted=false
2196for ac_var in $ac_precious_vars; do
2197  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2198  eval ac_new_set=\$ac_env_${ac_var}_set
2199  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2200  eval ac_new_val=\$ac_env_${ac_var}_value
2201  case $ac_old_set,$ac_new_set in
2202    set,)
2203      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2204$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2205      ac_cache_corrupted=: ;;
2206    ,set)
2207      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2208$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2209      ac_cache_corrupted=: ;;
2210    ,);;
2211    *)
2212      if test "x$ac_old_val" != "x$ac_new_val"; then
2213	# differences in whitespace do not lead to failure.
2214	ac_old_val_w=`echo x $ac_old_val`
2215	ac_new_val_w=`echo x $ac_new_val`
2216	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2217	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2218$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2219	  ac_cache_corrupted=:
2220	else
2221	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2222$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2223	  eval $ac_var=\$ac_old_val
2224	fi
2225	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2226$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2227	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2228$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2229      fi;;
2230  esac
2231  # Pass precious variables to config.status.
2232  if test "$ac_new_set" = set; then
2233    case $ac_new_val in
2234    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2235    *) ac_arg=$ac_var=$ac_new_val ;;
2236    esac
2237    case " $ac_configure_args " in
2238      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2239      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2240    esac
2241  fi
2242done
2243if $ac_cache_corrupted; then
2244  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2246  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2247$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2248  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2249fi
2250## -------------------- ##
2251## Main body of script. ##
2252## -------------------- ##
2253
2254ac_ext=c
2255ac_cpp='$CPP $CPPFLAGS'
2256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2258ac_compiler_gnu=$ac_cv_c_compiler_gnu
2259
2260
2261
2262ac_includes_default="#define _GNU_SOURCE 1  /* for struct ucred on Linux */
2263$ac_includes_default
2264
2265#ifdef _WIN32
2266# include <winsock2.h>
2267# include <ws2tcpip.h>
2268# define IPV6_V6ONLY 27
2269#endif
2270
2271#ifdef HAVE_LIMITS_H
2272# include <limits.h>
2273#endif
2274#ifdef HAVE_STDLIB_H
2275# include <stdlib.h>
2276#endif
2277#ifdef HAVE_UNISTD_H
2278#include <unistd.h>
2279#endif
2280#ifdef HAVE_SYS_TYPES_H
2281# include <sys/types.h>
2282#endif
2283#ifdef HAVE_FCNTL_H
2284# include <fcntl.h>
2285#endif
2286#ifdef HAVE_SYS_UIO_H
2287# include <sys/uio.h>
2288#endif
2289#ifdef HAVE_SYS_SOCKET_H
2290# include <sys/socket.h>
2291#endif
2292#ifdef HAVE_NETINET_IN_H
2293# include <netinet/in.h>
2294#endif
2295#ifdef HAVE_NETINET_TCP_H
2296# include <netinet/tcp.h>
2297#endif
2298#ifdef HAVE_SYS_UN_H
2299# include <sys/un.h>
2300#endif
2301#ifdef HAVE_ARPA_INET_H
2302# include <arpa/inet.h>
2303#endif
2304#ifdef HAVE_NETDB_H
2305#include <netdb.h>
2306#endif
2307#ifdef HAVE_NET_IF_H
2308# include <net/if.h>
2309#endif
2310#ifdef HAVE_NETIOAPI_H
2311# include <netioapi.h>
2312#endif
2313"
2314
2315
2316
2317ac_config_headers="$ac_config_headers include/HsNetworkConfig.h"
2318
2319
2320ac_aux_dir=
2321for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2322  if test -f "$ac_dir/install-sh"; then
2323    ac_aux_dir=$ac_dir
2324    ac_install_sh="$ac_aux_dir/install-sh -c"
2325    break
2326  elif test -f "$ac_dir/install.sh"; then
2327    ac_aux_dir=$ac_dir
2328    ac_install_sh="$ac_aux_dir/install.sh -c"
2329    break
2330  elif test -f "$ac_dir/shtool"; then
2331    ac_aux_dir=$ac_dir
2332    ac_install_sh="$ac_aux_dir/shtool install -c"
2333    break
2334  fi
2335done
2336if test -z "$ac_aux_dir"; then
2337  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2338fi
2339
2340# These three variables are undocumented and unsupported,
2341# and are intended to be withdrawn in a future Autoconf release.
2342# They can cause serious problems if a builder's source tree is in a directory
2343# whose full name contains unusual characters.
2344ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2345ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2346ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2347
2348
2349# Make sure we can run config.sub.
2350$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2351  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2352
2353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2354$as_echo_n "checking build system type... " >&6; }
2355if ${ac_cv_build+:} false; then :
2356  $as_echo_n "(cached) " >&6
2357else
2358  ac_build_alias=$build_alias
2359test "x$ac_build_alias" = x &&
2360  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2361test "x$ac_build_alias" = x &&
2362  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2363ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2364  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2365
2366fi
2367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2368$as_echo "$ac_cv_build" >&6; }
2369case $ac_cv_build in
2370*-*-*) ;;
2371*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2372esac
2373build=$ac_cv_build
2374ac_save_IFS=$IFS; IFS='-'
2375set x $ac_cv_build
2376shift
2377build_cpu=$1
2378build_vendor=$2
2379shift; shift
2380# Remember, the first character of IFS is used to create $*,
2381# except with old shells:
2382build_os=$*
2383IFS=$ac_save_IFS
2384case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2385
2386
2387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2388$as_echo_n "checking host system type... " >&6; }
2389if ${ac_cv_host+:} false; then :
2390  $as_echo_n "(cached) " >&6
2391else
2392  if test "x$host_alias" = x; then
2393  ac_cv_host=$ac_cv_build
2394else
2395  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2396    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2397fi
2398
2399fi
2400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2401$as_echo "$ac_cv_host" >&6; }
2402case $ac_cv_host in
2403*-*-*) ;;
2404*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2405esac
2406host=$ac_cv_host
2407ac_save_IFS=$IFS; IFS='-'
2408set x $ac_cv_host
2409shift
2410host_cpu=$1
2411host_vendor=$2
2412shift; shift
2413# Remember, the first character of IFS is used to create $*,
2414# except with old shells:
2415host_os=$*
2416IFS=$ac_save_IFS
2417case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2418
2419
2420
2421
2422# Check whether --with-cc was given.
2423if test "${with_cc+set}" = set; then :
2424  withval=$with_cc; CC=$withval
2425fi
2426
2427ac_ext=c
2428ac_cpp='$CPP $CPPFLAGS'
2429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2431ac_compiler_gnu=$ac_cv_c_compiler_gnu
2432if test -n "$ac_tool_prefix"; then
2433  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2434set dummy ${ac_tool_prefix}gcc; ac_word=$2
2435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2436$as_echo_n "checking for $ac_word... " >&6; }
2437if ${ac_cv_prog_CC+:} false; then :
2438  $as_echo_n "(cached) " >&6
2439else
2440  if test -n "$CC"; then
2441  ac_cv_prog_CC="$CC" # Let the user override the test.
2442else
2443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444for as_dir in $PATH
2445do
2446  IFS=$as_save_IFS
2447  test -z "$as_dir" && as_dir=.
2448    for ac_exec_ext in '' $ac_executable_extensions; do
2449  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2450    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2451    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2452    break 2
2453  fi
2454done
2455  done
2456IFS=$as_save_IFS
2457
2458fi
2459fi
2460CC=$ac_cv_prog_CC
2461if test -n "$CC"; then
2462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2463$as_echo "$CC" >&6; }
2464else
2465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2466$as_echo "no" >&6; }
2467fi
2468
2469
2470fi
2471if test -z "$ac_cv_prog_CC"; then
2472  ac_ct_CC=$CC
2473  # Extract the first word of "gcc", so it can be a program name with args.
2474set dummy gcc; ac_word=$2
2475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2476$as_echo_n "checking for $ac_word... " >&6; }
2477if ${ac_cv_prog_ac_ct_CC+:} false; then :
2478  $as_echo_n "(cached) " >&6
2479else
2480  if test -n "$ac_ct_CC"; then
2481  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2482else
2483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484for as_dir in $PATH
2485do
2486  IFS=$as_save_IFS
2487  test -z "$as_dir" && as_dir=.
2488    for ac_exec_ext in '' $ac_executable_extensions; do
2489  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2490    ac_cv_prog_ac_ct_CC="gcc"
2491    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2492    break 2
2493  fi
2494done
2495  done
2496IFS=$as_save_IFS
2497
2498fi
2499fi
2500ac_ct_CC=$ac_cv_prog_ac_ct_CC
2501if test -n "$ac_ct_CC"; then
2502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2503$as_echo "$ac_ct_CC" >&6; }
2504else
2505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2506$as_echo "no" >&6; }
2507fi
2508
2509  if test "x$ac_ct_CC" = x; then
2510    CC=""
2511  else
2512    case $cross_compiling:$ac_tool_warned in
2513yes:)
2514{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2515$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2516ac_tool_warned=yes ;;
2517esac
2518    CC=$ac_ct_CC
2519  fi
2520else
2521  CC="$ac_cv_prog_CC"
2522fi
2523
2524if test -z "$CC"; then
2525          if test -n "$ac_tool_prefix"; then
2526    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2527set dummy ${ac_tool_prefix}cc; ac_word=$2
2528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2529$as_echo_n "checking for $ac_word... " >&6; }
2530if ${ac_cv_prog_CC+:} false; then :
2531  $as_echo_n "(cached) " >&6
2532else
2533  if test -n "$CC"; then
2534  ac_cv_prog_CC="$CC" # Let the user override the test.
2535else
2536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537for as_dir in $PATH
2538do
2539  IFS=$as_save_IFS
2540  test -z "$as_dir" && as_dir=.
2541    for ac_exec_ext in '' $ac_executable_extensions; do
2542  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2543    ac_cv_prog_CC="${ac_tool_prefix}cc"
2544    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2545    break 2
2546  fi
2547done
2548  done
2549IFS=$as_save_IFS
2550
2551fi
2552fi
2553CC=$ac_cv_prog_CC
2554if test -n "$CC"; then
2555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2556$as_echo "$CC" >&6; }
2557else
2558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2559$as_echo "no" >&6; }
2560fi
2561
2562
2563  fi
2564fi
2565if test -z "$CC"; then
2566  # Extract the first word of "cc", so it can be a program name with args.
2567set dummy cc; ac_word=$2
2568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2569$as_echo_n "checking for $ac_word... " >&6; }
2570if ${ac_cv_prog_CC+:} false; then :
2571  $as_echo_n "(cached) " >&6
2572else
2573  if test -n "$CC"; then
2574  ac_cv_prog_CC="$CC" # Let the user override the test.
2575else
2576  ac_prog_rejected=no
2577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578for as_dir in $PATH
2579do
2580  IFS=$as_save_IFS
2581  test -z "$as_dir" && as_dir=.
2582    for ac_exec_ext in '' $ac_executable_extensions; do
2583  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2584    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2585       ac_prog_rejected=yes
2586       continue
2587     fi
2588    ac_cv_prog_CC="cc"
2589    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2590    break 2
2591  fi
2592done
2593  done
2594IFS=$as_save_IFS
2595
2596if test $ac_prog_rejected = yes; then
2597  # We found a bogon in the path, so make sure we never use it.
2598  set dummy $ac_cv_prog_CC
2599  shift
2600  if test $# != 0; then
2601    # We chose a different compiler from the bogus one.
2602    # However, it has the same basename, so the bogon will be chosen
2603    # first if we set CC to just the basename; use the full file name.
2604    shift
2605    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2606  fi
2607fi
2608fi
2609fi
2610CC=$ac_cv_prog_CC
2611if test -n "$CC"; then
2612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2613$as_echo "$CC" >&6; }
2614else
2615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2616$as_echo "no" >&6; }
2617fi
2618
2619
2620fi
2621if test -z "$CC"; then
2622  if test -n "$ac_tool_prefix"; then
2623  for ac_prog in cl.exe
2624  do
2625    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2626set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2628$as_echo_n "checking for $ac_word... " >&6; }
2629if ${ac_cv_prog_CC+:} false; then :
2630  $as_echo_n "(cached) " >&6
2631else
2632  if test -n "$CC"; then
2633  ac_cv_prog_CC="$CC" # Let the user override the test.
2634else
2635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636for as_dir in $PATH
2637do
2638  IFS=$as_save_IFS
2639  test -z "$as_dir" && as_dir=.
2640    for ac_exec_ext in '' $ac_executable_extensions; do
2641  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2642    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2643    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2644    break 2
2645  fi
2646done
2647  done
2648IFS=$as_save_IFS
2649
2650fi
2651fi
2652CC=$ac_cv_prog_CC
2653if test -n "$CC"; then
2654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2655$as_echo "$CC" >&6; }
2656else
2657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2658$as_echo "no" >&6; }
2659fi
2660
2661
2662    test -n "$CC" && break
2663  done
2664fi
2665if test -z "$CC"; then
2666  ac_ct_CC=$CC
2667  for ac_prog in cl.exe
2668do
2669  # Extract the first word of "$ac_prog", so it can be a program name with args.
2670set dummy $ac_prog; ac_word=$2
2671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2672$as_echo_n "checking for $ac_word... " >&6; }
2673if ${ac_cv_prog_ac_ct_CC+:} false; then :
2674  $as_echo_n "(cached) " >&6
2675else
2676  if test -n "$ac_ct_CC"; then
2677  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2678else
2679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680for as_dir in $PATH
2681do
2682  IFS=$as_save_IFS
2683  test -z "$as_dir" && as_dir=.
2684    for ac_exec_ext in '' $ac_executable_extensions; do
2685  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2686    ac_cv_prog_ac_ct_CC="$ac_prog"
2687    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2688    break 2
2689  fi
2690done
2691  done
2692IFS=$as_save_IFS
2693
2694fi
2695fi
2696ac_ct_CC=$ac_cv_prog_ac_ct_CC
2697if test -n "$ac_ct_CC"; then
2698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2699$as_echo "$ac_ct_CC" >&6; }
2700else
2701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2702$as_echo "no" >&6; }
2703fi
2704
2705
2706  test -n "$ac_ct_CC" && break
2707done
2708
2709  if test "x$ac_ct_CC" = x; then
2710    CC=""
2711  else
2712    case $cross_compiling:$ac_tool_warned in
2713yes:)
2714{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2715$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2716ac_tool_warned=yes ;;
2717esac
2718    CC=$ac_ct_CC
2719  fi
2720fi
2721
2722fi
2723
2724
2725test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2726$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2727as_fn_error $? "no acceptable C compiler found in \$PATH
2728See \`config.log' for more details" "$LINENO" 5; }
2729
2730# Provide some information about the compiler.
2731$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2732set X $ac_compile
2733ac_compiler=$2
2734for ac_option in --version -v -V -qversion; do
2735  { { ac_try="$ac_compiler $ac_option >&5"
2736case "(($ac_try" in
2737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738  *) ac_try_echo=$ac_try;;
2739esac
2740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2741$as_echo "$ac_try_echo"; } >&5
2742  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2743  ac_status=$?
2744  if test -s conftest.err; then
2745    sed '10a\
2746... rest of stderr output deleted ...
2747         10q' conftest.err >conftest.er1
2748    cat conftest.er1 >&5
2749  fi
2750  rm -f conftest.er1 conftest.err
2751  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2752  test $ac_status = 0; }
2753done
2754
2755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2756/* end confdefs.h.  */
2757
2758int
2759main ()
2760{
2761
2762  ;
2763  return 0;
2764}
2765_ACEOF
2766ac_clean_files_save=$ac_clean_files
2767ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2768# Try to create an executable without -o first, disregard a.out.
2769# It will help us diagnose broken compilers, and finding out an intuition
2770# of exeext.
2771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2772$as_echo_n "checking whether the C compiler works... " >&6; }
2773ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2774
2775# The possible output files:
2776ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2777
2778ac_rmfiles=
2779for ac_file in $ac_files
2780do
2781  case $ac_file in
2782    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2783    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2784  esac
2785done
2786rm -f $ac_rmfiles
2787
2788if { { ac_try="$ac_link_default"
2789case "(($ac_try" in
2790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2791  *) ac_try_echo=$ac_try;;
2792esac
2793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2794$as_echo "$ac_try_echo"; } >&5
2795  (eval "$ac_link_default") 2>&5
2796  ac_status=$?
2797  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2798  test $ac_status = 0; }; then :
2799  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2800# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2801# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2802# so that the user can short-circuit this test for compilers unknown to
2803# Autoconf.
2804for ac_file in $ac_files ''
2805do
2806  test -f "$ac_file" || continue
2807  case $ac_file in
2808    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2809	;;
2810    [ab].out )
2811	# We found the default executable, but exeext='' is most
2812	# certainly right.
2813	break;;
2814    *.* )
2815	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2816	then :; else
2817	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2818	fi
2819	# We set ac_cv_exeext here because the later test for it is not
2820	# safe: cross compilers may not add the suffix if given an `-o'
2821	# argument, so we may need to know it at that point already.
2822	# Even if this section looks crufty: it has the advantage of
2823	# actually working.
2824	break;;
2825    * )
2826	break;;
2827  esac
2828done
2829test "$ac_cv_exeext" = no && ac_cv_exeext=
2830
2831else
2832  ac_file=''
2833fi
2834if test -z "$ac_file"; then :
2835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2836$as_echo "no" >&6; }
2837$as_echo "$as_me: failed program was:" >&5
2838sed 's/^/| /' conftest.$ac_ext >&5
2839
2840{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2841$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2842as_fn_error 77 "C compiler cannot create executables
2843See \`config.log' for more details" "$LINENO" 5; }
2844else
2845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2846$as_echo "yes" >&6; }
2847fi
2848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2849$as_echo_n "checking for C compiler default output file name... " >&6; }
2850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2851$as_echo "$ac_file" >&6; }
2852ac_exeext=$ac_cv_exeext
2853
2854rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2855ac_clean_files=$ac_clean_files_save
2856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2857$as_echo_n "checking for suffix of executables... " >&6; }
2858if { { ac_try="$ac_link"
2859case "(($ac_try" in
2860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861  *) ac_try_echo=$ac_try;;
2862esac
2863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2864$as_echo "$ac_try_echo"; } >&5
2865  (eval "$ac_link") 2>&5
2866  ac_status=$?
2867  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2868  test $ac_status = 0; }; then :
2869  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2870# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2871# work properly (i.e., refer to `conftest.exe'), while it won't with
2872# `rm'.
2873for ac_file in conftest.exe conftest conftest.*; do
2874  test -f "$ac_file" || continue
2875  case $ac_file in
2876    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2877    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2878	  break;;
2879    * ) break;;
2880  esac
2881done
2882else
2883  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2884$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2885as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2886See \`config.log' for more details" "$LINENO" 5; }
2887fi
2888rm -f conftest conftest$ac_cv_exeext
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2890$as_echo "$ac_cv_exeext" >&6; }
2891
2892rm -f conftest.$ac_ext
2893EXEEXT=$ac_cv_exeext
2894ac_exeext=$EXEEXT
2895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2896/* end confdefs.h.  */
2897#include <stdio.h>
2898int
2899main ()
2900{
2901FILE *f = fopen ("conftest.out", "w");
2902 return ferror (f) || fclose (f) != 0;
2903
2904  ;
2905  return 0;
2906}
2907_ACEOF
2908ac_clean_files="$ac_clean_files conftest.out"
2909# Check that the compiler produces executables we can run.  If not, either
2910# the compiler is broken, or we cross compile.
2911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2912$as_echo_n "checking whether we are cross compiling... " >&6; }
2913if test "$cross_compiling" != yes; then
2914  { { ac_try="$ac_link"
2915case "(($ac_try" in
2916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917  *) ac_try_echo=$ac_try;;
2918esac
2919eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2920$as_echo "$ac_try_echo"; } >&5
2921  (eval "$ac_link") 2>&5
2922  ac_status=$?
2923  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2924  test $ac_status = 0; }
2925  if { ac_try='./conftest$ac_cv_exeext'
2926  { { case "(($ac_try" in
2927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928  *) ac_try_echo=$ac_try;;
2929esac
2930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2931$as_echo "$ac_try_echo"; } >&5
2932  (eval "$ac_try") 2>&5
2933  ac_status=$?
2934  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2935  test $ac_status = 0; }; }; then
2936    cross_compiling=no
2937  else
2938    if test "$cross_compiling" = maybe; then
2939	cross_compiling=yes
2940    else
2941	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2942$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2943as_fn_error $? "cannot run C compiled programs.
2944If you meant to cross compile, use \`--host'.
2945See \`config.log' for more details" "$LINENO" 5; }
2946    fi
2947  fi
2948fi
2949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2950$as_echo "$cross_compiling" >&6; }
2951
2952rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2953ac_clean_files=$ac_clean_files_save
2954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2955$as_echo_n "checking for suffix of object files... " >&6; }
2956if ${ac_cv_objext+:} false; then :
2957  $as_echo_n "(cached) " >&6
2958else
2959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2960/* end confdefs.h.  */
2961
2962int
2963main ()
2964{
2965
2966  ;
2967  return 0;
2968}
2969_ACEOF
2970rm -f conftest.o conftest.obj
2971if { { ac_try="$ac_compile"
2972case "(($ac_try" in
2973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974  *) ac_try_echo=$ac_try;;
2975esac
2976eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2977$as_echo "$ac_try_echo"; } >&5
2978  (eval "$ac_compile") 2>&5
2979  ac_status=$?
2980  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2981  test $ac_status = 0; }; then :
2982  for ac_file in conftest.o conftest.obj conftest.*; do
2983  test -f "$ac_file" || continue;
2984  case $ac_file in
2985    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2986    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2987       break;;
2988  esac
2989done
2990else
2991  $as_echo "$as_me: failed program was:" >&5
2992sed 's/^/| /' conftest.$ac_ext >&5
2993
2994{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2995$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2996as_fn_error $? "cannot compute suffix of object files: cannot compile
2997See \`config.log' for more details" "$LINENO" 5; }
2998fi
2999rm -f conftest.$ac_cv_objext conftest.$ac_ext
3000fi
3001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3002$as_echo "$ac_cv_objext" >&6; }
3003OBJEXT=$ac_cv_objext
3004ac_objext=$OBJEXT
3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3006$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3007if ${ac_cv_c_compiler_gnu+:} false; then :
3008  $as_echo_n "(cached) " >&6
3009else
3010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3011/* end confdefs.h.  */
3012
3013int
3014main ()
3015{
3016#ifndef __GNUC__
3017       choke me
3018#endif
3019
3020  ;
3021  return 0;
3022}
3023_ACEOF
3024if ac_fn_c_try_compile "$LINENO"; then :
3025  ac_compiler_gnu=yes
3026else
3027  ac_compiler_gnu=no
3028fi
3029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3030ac_cv_c_compiler_gnu=$ac_compiler_gnu
3031
3032fi
3033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3034$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3035if test $ac_compiler_gnu = yes; then
3036  GCC=yes
3037else
3038  GCC=
3039fi
3040ac_test_CFLAGS=${CFLAGS+set}
3041ac_save_CFLAGS=$CFLAGS
3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3043$as_echo_n "checking whether $CC accepts -g... " >&6; }
3044if ${ac_cv_prog_cc_g+:} false; then :
3045  $as_echo_n "(cached) " >&6
3046else
3047  ac_save_c_werror_flag=$ac_c_werror_flag
3048   ac_c_werror_flag=yes
3049   ac_cv_prog_cc_g=no
3050   CFLAGS="-g"
3051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3052/* end confdefs.h.  */
3053
3054int
3055main ()
3056{
3057
3058  ;
3059  return 0;
3060}
3061_ACEOF
3062if ac_fn_c_try_compile "$LINENO"; then :
3063  ac_cv_prog_cc_g=yes
3064else
3065  CFLAGS=""
3066      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3067/* end confdefs.h.  */
3068
3069int
3070main ()
3071{
3072
3073  ;
3074  return 0;
3075}
3076_ACEOF
3077if ac_fn_c_try_compile "$LINENO"; then :
3078
3079else
3080  ac_c_werror_flag=$ac_save_c_werror_flag
3081	 CFLAGS="-g"
3082	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3083/* end confdefs.h.  */
3084
3085int
3086main ()
3087{
3088
3089  ;
3090  return 0;
3091}
3092_ACEOF
3093if ac_fn_c_try_compile "$LINENO"; then :
3094  ac_cv_prog_cc_g=yes
3095fi
3096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3097fi
3098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3099fi
3100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3101   ac_c_werror_flag=$ac_save_c_werror_flag
3102fi
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3104$as_echo "$ac_cv_prog_cc_g" >&6; }
3105if test "$ac_test_CFLAGS" = set; then
3106  CFLAGS=$ac_save_CFLAGS
3107elif test $ac_cv_prog_cc_g = yes; then
3108  if test "$GCC" = yes; then
3109    CFLAGS="-g -O2"
3110  else
3111    CFLAGS="-g"
3112  fi
3113else
3114  if test "$GCC" = yes; then
3115    CFLAGS="-O2"
3116  else
3117    CFLAGS=
3118  fi
3119fi
3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3121$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3122if ${ac_cv_prog_cc_c89+:} false; then :
3123  $as_echo_n "(cached) " >&6
3124else
3125  ac_cv_prog_cc_c89=no
3126ac_save_CC=$CC
3127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3128/* end confdefs.h.  */
3129#include <stdarg.h>
3130#include <stdio.h>
3131struct stat;
3132/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3133struct buf { int x; };
3134FILE * (*rcsopen) (struct buf *, struct stat *, int);
3135static char *e (p, i)
3136     char **p;
3137     int i;
3138{
3139  return p[i];
3140}
3141static char *f (char * (*g) (char **, int), char **p, ...)
3142{
3143  char *s;
3144  va_list v;
3145  va_start (v,p);
3146  s = g (p, va_arg (v,int));
3147  va_end (v);
3148  return s;
3149}
3150
3151/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3152   function prototypes and stuff, but not '\xHH' hex character constants.
3153   These don't provoke an error unfortunately, instead are silently treated
3154   as 'x'.  The following induces an error, until -std is added to get
3155   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3156   array size at least.  It's necessary to write '\x00'==0 to get something
3157   that's true only with -std.  */
3158int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3159
3160/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3161   inside strings and character constants.  */
3162#define FOO(x) 'x'
3163int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3164
3165int test (int i, double x);
3166struct s1 {int (*f) (int a);};
3167struct s2 {int (*f) (double a);};
3168int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3169int argc;
3170char **argv;
3171int
3172main ()
3173{
3174return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3175  ;
3176  return 0;
3177}
3178_ACEOF
3179for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3180	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3181do
3182  CC="$ac_save_CC $ac_arg"
3183  if ac_fn_c_try_compile "$LINENO"; then :
3184  ac_cv_prog_cc_c89=$ac_arg
3185fi
3186rm -f core conftest.err conftest.$ac_objext
3187  test "x$ac_cv_prog_cc_c89" != "xno" && break
3188done
3189rm -f conftest.$ac_ext
3190CC=$ac_save_CC
3191
3192fi
3193# AC_CACHE_VAL
3194case "x$ac_cv_prog_cc_c89" in
3195  x)
3196    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3197$as_echo "none needed" >&6; } ;;
3198  xno)
3199    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3200$as_echo "unsupported" >&6; } ;;
3201  *)
3202    CC="$CC $ac_cv_prog_cc_c89"
3203    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3204$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3205esac
3206if test "x$ac_cv_prog_cc_c89" != xno; then :
3207
3208fi
3209
3210ac_ext=c
3211ac_cpp='$CPP $CPPFLAGS'
3212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215
3216
3217
3218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
3219$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
3220if ${ac_cv_c_const+:} false; then :
3221  $as_echo_n "(cached) " >&6
3222else
3223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3224/* end confdefs.h.  */
3225
3226int
3227main ()
3228{
3229
3230#ifndef __cplusplus
3231  /* Ultrix mips cc rejects this sort of thing.  */
3232  typedef int charset[2];
3233  const charset cs = { 0, 0 };
3234  /* SunOS 4.1.1 cc rejects this.  */
3235  char const *const *pcpcc;
3236  char **ppc;
3237  /* NEC SVR4.0.2 mips cc rejects this.  */
3238  struct point {int x, y;};
3239  static struct point const zero = {0,0};
3240  /* AIX XL C 1.02.0.0 rejects this.
3241     It does not let you subtract one const X* pointer from another in
3242     an arm of an if-expression whose if-part is not a constant
3243     expression */
3244  const char *g = "string";
3245  pcpcc = &g + (g ? g-g : 0);
3246  /* HPUX 7.0 cc rejects these. */
3247  ++pcpcc;
3248  ppc = (char**) pcpcc;
3249  pcpcc = (char const *const *) ppc;
3250  { /* SCO 3.2v4 cc rejects this sort of thing.  */
3251    char tx;
3252    char *t = &tx;
3253    char const *s = 0 ? (char *) 0 : (char const *) 0;
3254
3255    *t++ = 0;
3256    if (s) return 0;
3257  }
3258  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3259    int x[] = {25, 17};
3260    const int *foo = &x[0];
3261    ++foo;
3262  }
3263  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3264    typedef const int *iptr;
3265    iptr p = 0;
3266    ++p;
3267  }
3268  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
3269       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3270    struct s { int j; const int *ap[3]; } bx;
3271    struct s *b = &bx; b->j = 5;
3272  }
3273  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3274    const int foo = 10;
3275    if (!foo) return 0;
3276  }
3277  return !cs[0] && !zero.x;
3278#endif
3279
3280  ;
3281  return 0;
3282}
3283_ACEOF
3284if ac_fn_c_try_compile "$LINENO"; then :
3285  ac_cv_c_const=yes
3286else
3287  ac_cv_c_const=no
3288fi
3289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3290fi
3291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
3292$as_echo "$ac_cv_c_const" >&6; }
3293if test $ac_cv_c_const = no; then
3294
3295$as_echo "#define const /**/" >>confdefs.h
3296
3297fi
3298
3299
3300ac_ext=c
3301ac_cpp='$CPP $CPPFLAGS'
3302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3304ac_compiler_gnu=$ac_cv_c_compiler_gnu
3305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3306$as_echo_n "checking how to run the C preprocessor... " >&6; }
3307# On Suns, sometimes $CPP names a directory.
3308if test -n "$CPP" && test -d "$CPP"; then
3309  CPP=
3310fi
3311if test -z "$CPP"; then
3312  if ${ac_cv_prog_CPP+:} false; then :
3313  $as_echo_n "(cached) " >&6
3314else
3315      # Double quotes because CPP needs to be expanded
3316    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3317    do
3318      ac_preproc_ok=false
3319for ac_c_preproc_warn_flag in '' yes
3320do
3321  # Use a header file that comes with gcc, so configuring glibc
3322  # with a fresh cross-compiler works.
3323  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3324  # <limits.h> exists even on freestanding compilers.
3325  # On the NeXT, cc -E runs the code through the compiler's parser,
3326  # not just through cpp. "Syntax error" is here to catch this case.
3327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3328/* end confdefs.h.  */
3329#ifdef __STDC__
3330# include <limits.h>
3331#else
3332# include <assert.h>
3333#endif
3334		     Syntax error
3335_ACEOF
3336if ac_fn_c_try_cpp "$LINENO"; then :
3337
3338else
3339  # Broken: fails on valid input.
3340continue
3341fi
3342rm -f conftest.err conftest.i conftest.$ac_ext
3343
3344  # OK, works on sane cases.  Now check whether nonexistent headers
3345  # can be detected and how.
3346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347/* end confdefs.h.  */
3348#include <ac_nonexistent.h>
3349_ACEOF
3350if ac_fn_c_try_cpp "$LINENO"; then :
3351  # Broken: success on invalid input.
3352continue
3353else
3354  # Passes both tests.
3355ac_preproc_ok=:
3356break
3357fi
3358rm -f conftest.err conftest.i conftest.$ac_ext
3359
3360done
3361# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3362rm -f conftest.i conftest.err conftest.$ac_ext
3363if $ac_preproc_ok; then :
3364  break
3365fi
3366
3367    done
3368    ac_cv_prog_CPP=$CPP
3369
3370fi
3371  CPP=$ac_cv_prog_CPP
3372else
3373  ac_cv_prog_CPP=$CPP
3374fi
3375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3376$as_echo "$CPP" >&6; }
3377ac_preproc_ok=false
3378for ac_c_preproc_warn_flag in '' yes
3379do
3380  # Use a header file that comes with gcc, so configuring glibc
3381  # with a fresh cross-compiler works.
3382  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3383  # <limits.h> exists even on freestanding compilers.
3384  # On the NeXT, cc -E runs the code through the compiler's parser,
3385  # not just through cpp. "Syntax error" is here to catch this case.
3386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387/* end confdefs.h.  */
3388#ifdef __STDC__
3389# include <limits.h>
3390#else
3391# include <assert.h>
3392#endif
3393		     Syntax error
3394_ACEOF
3395if ac_fn_c_try_cpp "$LINENO"; then :
3396
3397else
3398  # Broken: fails on valid input.
3399continue
3400fi
3401rm -f conftest.err conftest.i conftest.$ac_ext
3402
3403  # OK, works on sane cases.  Now check whether nonexistent headers
3404  # can be detected and how.
3405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406/* end confdefs.h.  */
3407#include <ac_nonexistent.h>
3408_ACEOF
3409if ac_fn_c_try_cpp "$LINENO"; then :
3410  # Broken: success on invalid input.
3411continue
3412else
3413  # Passes both tests.
3414ac_preproc_ok=:
3415break
3416fi
3417rm -f conftest.err conftest.i conftest.$ac_ext
3418
3419done
3420# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3421rm -f conftest.i conftest.err conftest.$ac_ext
3422if $ac_preproc_ok; then :
3423
3424else
3425  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3426$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3427as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3428See \`config.log' for more details" "$LINENO" 5; }
3429fi
3430
3431ac_ext=c
3432ac_cpp='$CPP $CPPFLAGS'
3433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3435ac_compiler_gnu=$ac_cv_c_compiler_gnu
3436
3437
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3439$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3440if ${ac_cv_path_GREP+:} false; then :
3441  $as_echo_n "(cached) " >&6
3442else
3443  if test -z "$GREP"; then
3444  ac_path_GREP_found=false
3445  # Loop through the user's path and test for each of PROGNAME-LIST
3446  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3448do
3449  IFS=$as_save_IFS
3450  test -z "$as_dir" && as_dir=.
3451    for ac_prog in grep ggrep; do
3452    for ac_exec_ext in '' $ac_executable_extensions; do
3453      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3454      as_fn_executable_p "$ac_path_GREP" || continue
3455# Check for GNU ac_path_GREP and select it if it is found.
3456  # Check for GNU $ac_path_GREP
3457case `"$ac_path_GREP" --version 2>&1` in
3458*GNU*)
3459  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3460*)
3461  ac_count=0
3462  $as_echo_n 0123456789 >"conftest.in"
3463  while :
3464  do
3465    cat "conftest.in" "conftest.in" >"conftest.tmp"
3466    mv "conftest.tmp" "conftest.in"
3467    cp "conftest.in" "conftest.nl"
3468    $as_echo 'GREP' >> "conftest.nl"
3469    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3470    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3471    as_fn_arith $ac_count + 1 && ac_count=$as_val
3472    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3473      # Best one so far, save it but keep looking for a better one
3474      ac_cv_path_GREP="$ac_path_GREP"
3475      ac_path_GREP_max=$ac_count
3476    fi
3477    # 10*(2^10) chars as input seems more than enough
3478    test $ac_count -gt 10 && break
3479  done
3480  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3481esac
3482
3483      $ac_path_GREP_found && break 3
3484    done
3485  done
3486  done
3487IFS=$as_save_IFS
3488  if test -z "$ac_cv_path_GREP"; then
3489    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3490  fi
3491else
3492  ac_cv_path_GREP=$GREP
3493fi
3494
3495fi
3496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3497$as_echo "$ac_cv_path_GREP" >&6; }
3498 GREP="$ac_cv_path_GREP"
3499
3500
3501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3502$as_echo_n "checking for egrep... " >&6; }
3503if ${ac_cv_path_EGREP+:} false; then :
3504  $as_echo_n "(cached) " >&6
3505else
3506  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3507   then ac_cv_path_EGREP="$GREP -E"
3508   else
3509     if test -z "$EGREP"; then
3510  ac_path_EGREP_found=false
3511  # Loop through the user's path and test for each of PROGNAME-LIST
3512  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3514do
3515  IFS=$as_save_IFS
3516  test -z "$as_dir" && as_dir=.
3517    for ac_prog in egrep; do
3518    for ac_exec_ext in '' $ac_executable_extensions; do
3519      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3520      as_fn_executable_p "$ac_path_EGREP" || continue
3521# Check for GNU ac_path_EGREP and select it if it is found.
3522  # Check for GNU $ac_path_EGREP
3523case `"$ac_path_EGREP" --version 2>&1` in
3524*GNU*)
3525  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3526*)
3527  ac_count=0
3528  $as_echo_n 0123456789 >"conftest.in"
3529  while :
3530  do
3531    cat "conftest.in" "conftest.in" >"conftest.tmp"
3532    mv "conftest.tmp" "conftest.in"
3533    cp "conftest.in" "conftest.nl"
3534    $as_echo 'EGREP' >> "conftest.nl"
3535    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3536    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3537    as_fn_arith $ac_count + 1 && ac_count=$as_val
3538    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3539      # Best one so far, save it but keep looking for a better one
3540      ac_cv_path_EGREP="$ac_path_EGREP"
3541      ac_path_EGREP_max=$ac_count
3542    fi
3543    # 10*(2^10) chars as input seems more than enough
3544    test $ac_count -gt 10 && break
3545  done
3546  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3547esac
3548
3549      $ac_path_EGREP_found && break 3
3550    done
3551  done
3552  done
3553IFS=$as_save_IFS
3554  if test -z "$ac_cv_path_EGREP"; then
3555    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3556  fi
3557else
3558  ac_cv_path_EGREP=$EGREP
3559fi
3560
3561   fi
3562fi
3563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3564$as_echo "$ac_cv_path_EGREP" >&6; }
3565 EGREP="$ac_cv_path_EGREP"
3566
3567
3568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3569$as_echo_n "checking for ANSI C header files... " >&6; }
3570if ${ac_cv_header_stdc+:} false; then :
3571  $as_echo_n "(cached) " >&6
3572else
3573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574/* end confdefs.h.  */
3575#include <stdlib.h>
3576#include <stdarg.h>
3577#include <string.h>
3578#include <float.h>
3579
3580int
3581main ()
3582{
3583
3584  ;
3585  return 0;
3586}
3587_ACEOF
3588if ac_fn_c_try_compile "$LINENO"; then :
3589  ac_cv_header_stdc=yes
3590else
3591  ac_cv_header_stdc=no
3592fi
3593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594
3595if test $ac_cv_header_stdc = yes; then
3596  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598/* end confdefs.h.  */
3599#include <string.h>
3600
3601_ACEOF
3602if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3603  $EGREP "memchr" >/dev/null 2>&1; then :
3604
3605else
3606  ac_cv_header_stdc=no
3607fi
3608rm -f conftest*
3609
3610fi
3611
3612if test $ac_cv_header_stdc = yes; then
3613  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615/* end confdefs.h.  */
3616#include <stdlib.h>
3617
3618_ACEOF
3619if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3620  $EGREP "free" >/dev/null 2>&1; then :
3621
3622else
3623  ac_cv_header_stdc=no
3624fi
3625rm -f conftest*
3626
3627fi
3628
3629if test $ac_cv_header_stdc = yes; then
3630  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3631  if test "$cross_compiling" = yes; then :
3632  :
3633else
3634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635/* end confdefs.h.  */
3636#include <ctype.h>
3637#include <stdlib.h>
3638#if ((' ' & 0x0FF) == 0x020)
3639# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3640# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3641#else
3642# define ISLOWER(c) \
3643		   (('a' <= (c) && (c) <= 'i') \
3644		     || ('j' <= (c) && (c) <= 'r') \
3645		     || ('s' <= (c) && (c) <= 'z'))
3646# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3647#endif
3648
3649#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3650int
3651main ()
3652{
3653  int i;
3654  for (i = 0; i < 256; i++)
3655    if (XOR (islower (i), ISLOWER (i))
3656	|| toupper (i) != TOUPPER (i))
3657      return 2;
3658  return 0;
3659}
3660_ACEOF
3661if ac_fn_c_try_run "$LINENO"; then :
3662
3663else
3664  ac_cv_header_stdc=no
3665fi
3666rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3667  conftest.$ac_objext conftest.beam conftest.$ac_ext
3668fi
3669
3670fi
3671fi
3672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3673$as_echo "$ac_cv_header_stdc" >&6; }
3674if test $ac_cv_header_stdc = yes; then
3675
3676$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3677
3678fi
3679
3680# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3681for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3682		  inttypes.h stdint.h unistd.h
3683do :
3684  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3685ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3686"
3687if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3688  cat >>confdefs.h <<_ACEOF
3689#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3690_ACEOF
3691
3692fi
3693
3694done
3695
3696
3697for ac_header in limits.h stdlib.h unistd.h sys/types.h fcntl.h
3698do :
3699  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3700ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3701if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3702  cat >>confdefs.h <<_ACEOF
3703#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3704_ACEOF
3705
3706fi
3707
3708done
3709
3710for ac_header in sys/uio.h sys/socket.h netinet/in.h netinet/tcp.h
3711do :
3712  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3713ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3714if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3715  cat >>confdefs.h <<_ACEOF
3716#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3717_ACEOF
3718
3719fi
3720
3721done
3722
3723for ac_header in sys/un.h arpa/inet.h netdb.h
3724do :
3725  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3726ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3727if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3728  cat >>confdefs.h <<_ACEOF
3729#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3730_ACEOF
3731
3732fi
3733
3734done
3735
3736for ac_header in net/if.h netioapi.h
3737do :
3738  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3739ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3740if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3741  cat >>confdefs.h <<_ACEOF
3742#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3743_ACEOF
3744
3745fi
3746
3747done
3748
3749
3750ac_fn_c_check_type "$LINENO" "struct ucred" "ac_cv_type_struct_ucred" "$ac_includes_default"
3751if test "x$ac_cv_type_struct_ucred" = xyes; then :
3752
3753cat >>confdefs.h <<_ACEOF
3754#define HAVE_STRUCT_UCRED 1
3755_ACEOF
3756
3757
3758fi
3759
3760
3761for ac_func in gai_strerror gethostent accept4
3762do :
3763  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3764ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
3765if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
3766  cat >>confdefs.h <<_ACEOF
3767#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3768_ACEOF
3769
3770fi
3771done
3772
3773for ac_func in getpeereid
3774do :
3775  ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid"
3776if test "x$ac_cv_func_getpeereid" = xyes; then :
3777  cat >>confdefs.h <<_ACEOF
3778#define HAVE_GETPEEREID 1
3779_ACEOF
3780
3781fi
3782done
3783
3784
3785ac_fn_c_check_decl "$LINENO" "AI_ADDRCONFIG" "ac_cv_have_decl_AI_ADDRCONFIG" "$ac_includes_default"
3786if test "x$ac_cv_have_decl_AI_ADDRCONFIG" = xyes; then :
3787  ac_have_decl=1
3788else
3789  ac_have_decl=0
3790fi
3791
3792cat >>confdefs.h <<_ACEOF
3793#define HAVE_DECL_AI_ADDRCONFIG $ac_have_decl
3794_ACEOF
3795ac_fn_c_check_decl "$LINENO" "AI_ALL" "ac_cv_have_decl_AI_ALL" "$ac_includes_default"
3796if test "x$ac_cv_have_decl_AI_ALL" = xyes; then :
3797  ac_have_decl=1
3798else
3799  ac_have_decl=0
3800fi
3801
3802cat >>confdefs.h <<_ACEOF
3803#define HAVE_DECL_AI_ALL $ac_have_decl
3804_ACEOF
3805ac_fn_c_check_decl "$LINENO" "AI_NUMERICSERV" "ac_cv_have_decl_AI_NUMERICSERV" "$ac_includes_default"
3806if test "x$ac_cv_have_decl_AI_NUMERICSERV" = xyes; then :
3807  ac_have_decl=1
3808else
3809  ac_have_decl=0
3810fi
3811
3812cat >>confdefs.h <<_ACEOF
3813#define HAVE_DECL_AI_NUMERICSERV $ac_have_decl
3814_ACEOF
3815ac_fn_c_check_decl "$LINENO" "AI_V4MAPPED" "ac_cv_have_decl_AI_V4MAPPED" "$ac_includes_default"
3816if test "x$ac_cv_have_decl_AI_V4MAPPED" = xyes; then :
3817  ac_have_decl=1
3818else
3819  ac_have_decl=0
3820fi
3821
3822cat >>confdefs.h <<_ACEOF
3823#define HAVE_DECL_AI_V4MAPPED $ac_have_decl
3824_ACEOF
3825
3826ac_fn_c_check_decl "$LINENO" "IPV6_V6ONLY" "ac_cv_have_decl_IPV6_V6ONLY" "$ac_includes_default"
3827if test "x$ac_cv_have_decl_IPV6_V6ONLY" = xyes; then :
3828  ac_have_decl=1
3829else
3830  ac_have_decl=0
3831fi
3832
3833cat >>confdefs.h <<_ACEOF
3834#define HAVE_DECL_IPV6_V6ONLY $ac_have_decl
3835_ACEOF
3836
3837ac_fn_c_check_decl "$LINENO" "IPPROTO_IP" "ac_cv_have_decl_IPPROTO_IP" "$ac_includes_default"
3838if test "x$ac_cv_have_decl_IPPROTO_IP" = xyes; then :
3839  ac_have_decl=1
3840else
3841  ac_have_decl=0
3842fi
3843
3844cat >>confdefs.h <<_ACEOF
3845#define HAVE_DECL_IPPROTO_IP $ac_have_decl
3846_ACEOF
3847ac_fn_c_check_decl "$LINENO" "IPPROTO_TCP" "ac_cv_have_decl_IPPROTO_TCP" "$ac_includes_default"
3848if test "x$ac_cv_have_decl_IPPROTO_TCP" = xyes; then :
3849  ac_have_decl=1
3850else
3851  ac_have_decl=0
3852fi
3853
3854cat >>confdefs.h <<_ACEOF
3855#define HAVE_DECL_IPPROTO_TCP $ac_have_decl
3856_ACEOF
3857ac_fn_c_check_decl "$LINENO" "IPPROTO_IPV6" "ac_cv_have_decl_IPPROTO_IPV6" "$ac_includes_default"
3858if test "x$ac_cv_have_decl_IPPROTO_IPV6" = xyes; then :
3859  ac_have_decl=1
3860else
3861  ac_have_decl=0
3862fi
3863
3864cat >>confdefs.h <<_ACEOF
3865#define HAVE_DECL_IPPROTO_IPV6 $ac_have_decl
3866_ACEOF
3867
3868ac_fn_c_check_decl "$LINENO" "SO_PEERCRED" "ac_cv_have_decl_SO_PEERCRED" "$ac_includes_default"
3869if test "x$ac_cv_have_decl_SO_PEERCRED" = xyes; then :
3870  ac_have_decl=1
3871else
3872  ac_have_decl=0
3873fi
3874
3875cat >>confdefs.h <<_ACEOF
3876#define HAVE_DECL_SO_PEERCRED $ac_have_decl
3877_ACEOF
3878
3879
3880ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "$ac_includes_default"
3881if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
3882
3883cat >>confdefs.h <<_ACEOF
3884#define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
3885_ACEOF
3886
3887
3888fi
3889ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "$ac_includes_default"
3890if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
3891
3892cat >>confdefs.h <<_ACEOF
3893#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
3894_ACEOF
3895
3896
3897fi
3898
3899ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "$ac_includes_default"
3900if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
3901
3902cat >>confdefs.h <<_ACEOF
3903#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
3904_ACEOF
3905
3906
3907fi
3908
3909
3910{ $as_echo "$as_me:${as_lineno-$LINENO}: creating ./network.buildinfo" >&5
3911$as_echo "$as_me: creating ./network.buildinfo" >&6;}
3912echo "install-includes: HsNetworkConfig.h" > network.buildinfo
3913
3914cat >confcache <<\_ACEOF
3915# This file is a shell script that caches the results of configure
3916# tests run on this system so they can be shared between configure
3917# scripts and configure runs, see configure's option --config-cache.
3918# It is not useful on other systems.  If it contains results you don't
3919# want to keep, you may remove or edit it.
3920#
3921# config.status only pays attention to the cache file if you give it
3922# the --recheck option to rerun configure.
3923#
3924# `ac_cv_env_foo' variables (set or unset) will be overridden when
3925# loading this file, other *unset* `ac_cv_foo' will be assigned the
3926# following values.
3927
3928_ACEOF
3929
3930# The following way of writing the cache mishandles newlines in values,
3931# but we know of no workaround that is simple, portable, and efficient.
3932# So, we kill variables containing newlines.
3933# Ultrix sh set writes to stderr and can't be redirected directly,
3934# and sets the high bit in the cache file unless we assign to the vars.
3935(
3936  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3937    eval ac_val=\$$ac_var
3938    case $ac_val in #(
3939    *${as_nl}*)
3940      case $ac_var in #(
3941      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3942$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3943      esac
3944      case $ac_var in #(
3945      _ | IFS | as_nl) ;; #(
3946      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3947      *) { eval $ac_var=; unset $ac_var;} ;;
3948      esac ;;
3949    esac
3950  done
3951
3952  (set) 2>&1 |
3953    case $as_nl`(ac_space=' '; set) 2>&1` in #(
3954    *${as_nl}ac_space=\ *)
3955      # `set' does not quote correctly, so add quotes: double-quote
3956      # substitution turns \\\\ into \\, and sed turns \\ into \.
3957      sed -n \
3958	"s/'/'\\\\''/g;
3959	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3960      ;; #(
3961    *)
3962      # `set' quotes correctly as required by POSIX, so do not add quotes.
3963      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3964      ;;
3965    esac |
3966    sort
3967) |
3968  sed '
3969     /^ac_cv_env_/b end
3970     t clear
3971     :clear
3972     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3973     t end
3974     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3975     :end' >>confcache
3976if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3977  if test -w "$cache_file"; then
3978    if test "x$cache_file" != "x/dev/null"; then
3979      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3980$as_echo "$as_me: updating cache $cache_file" >&6;}
3981      if test ! -f "$cache_file" || test -h "$cache_file"; then
3982	cat confcache >"$cache_file"
3983      else
3984        case $cache_file in #(
3985        */* | ?:*)
3986	  mv -f confcache "$cache_file"$$ &&
3987	  mv -f "$cache_file"$$ "$cache_file" ;; #(
3988        *)
3989	  mv -f confcache "$cache_file" ;;
3990	esac
3991      fi
3992    fi
3993  else
3994    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3995$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3996  fi
3997fi
3998rm -f confcache
3999
4000test "x$prefix" = xNONE && prefix=$ac_default_prefix
4001# Let make expand exec_prefix.
4002test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4003
4004DEFS=-DHAVE_CONFIG_H
4005
4006ac_libobjs=
4007ac_ltlibobjs=
4008U=
4009for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4010  # 1. Remove the extension, and $U if already installed.
4011  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4012  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4013  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
4014  #    will be set to the directory where LIBOBJS objects are built.
4015  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4016  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4017done
4018LIBOBJS=$ac_libobjs
4019
4020LTLIBOBJS=$ac_ltlibobjs
4021
4022
4023
4024: "${CONFIG_STATUS=./config.status}"
4025ac_write_fail=0
4026ac_clean_files_save=$ac_clean_files
4027ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4029$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4030as_write_fail=0
4031cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4032#! $SHELL
4033# Generated by $as_me.
4034# Run this file to recreate the current configuration.
4035# Compiler output produced by configure, useful for debugging
4036# configure, is in config.log if it exists.
4037
4038debug=false
4039ac_cs_recheck=false
4040ac_cs_silent=false
4041
4042SHELL=\${CONFIG_SHELL-$SHELL}
4043export SHELL
4044_ASEOF
4045cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4046## -------------------- ##
4047## M4sh Initialization. ##
4048## -------------------- ##
4049
4050# Be more Bourne compatible
4051DUALCASE=1; export DUALCASE # for MKS sh
4052if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4053  emulate sh
4054  NULLCMD=:
4055  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4056  # is contrary to our usage.  Disable this feature.
4057  alias -g '${1+"$@"}'='"$@"'
4058  setopt NO_GLOB_SUBST
4059else
4060  case `(set -o) 2>/dev/null` in #(
4061  *posix*) :
4062    set -o posix ;; #(
4063  *) :
4064     ;;
4065esac
4066fi
4067
4068
4069as_nl='
4070'
4071export as_nl
4072# Printing a long string crashes Solaris 7 /usr/bin/printf.
4073as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4074as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4075as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4076# Prefer a ksh shell builtin over an external printf program on Solaris,
4077# but without wasting forks for bash or zsh.
4078if test -z "$BASH_VERSION$ZSH_VERSION" \
4079    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4080  as_echo='print -r --'
4081  as_echo_n='print -rn --'
4082elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4083  as_echo='printf %s\n'
4084  as_echo_n='printf %s'
4085else
4086  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4087    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4088    as_echo_n='/usr/ucb/echo -n'
4089  else
4090    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4091    as_echo_n_body='eval
4092      arg=$1;
4093      case $arg in #(
4094      *"$as_nl"*)
4095	expr "X$arg" : "X\\(.*\\)$as_nl";
4096	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4097      esac;
4098      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4099    '
4100    export as_echo_n_body
4101    as_echo_n='sh -c $as_echo_n_body as_echo'
4102  fi
4103  export as_echo_body
4104  as_echo='sh -c $as_echo_body as_echo'
4105fi
4106
4107# The user is always right.
4108if test "${PATH_SEPARATOR+set}" != set; then
4109  PATH_SEPARATOR=:
4110  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4111    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4112      PATH_SEPARATOR=';'
4113  }
4114fi
4115
4116
4117# IFS
4118# We need space, tab and new line, in precisely that order.  Quoting is
4119# there to prevent editors from complaining about space-tab.
4120# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4121# splitting by setting IFS to empty value.)
4122IFS=" ""	$as_nl"
4123
4124# Find who we are.  Look in the path if we contain no directory separator.
4125as_myself=
4126case $0 in #((
4127  *[\\/]* ) as_myself=$0 ;;
4128  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129for as_dir in $PATH
4130do
4131  IFS=$as_save_IFS
4132  test -z "$as_dir" && as_dir=.
4133    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4134  done
4135IFS=$as_save_IFS
4136
4137     ;;
4138esac
4139# We did not find ourselves, most probably we were run as `sh COMMAND'
4140# in which case we are not to be found in the path.
4141if test "x$as_myself" = x; then
4142  as_myself=$0
4143fi
4144if test ! -f "$as_myself"; then
4145  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4146  exit 1
4147fi
4148
4149# Unset variables that we do not need and which cause bugs (e.g. in
4150# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
4151# suppresses any "Segmentation fault" message there.  '((' could
4152# trigger a bug in pdksh 5.2.14.
4153for as_var in BASH_ENV ENV MAIL MAILPATH
4154do eval test x\${$as_var+set} = xset \
4155  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4156done
4157PS1='$ '
4158PS2='> '
4159PS4='+ '
4160
4161# NLS nuisances.
4162LC_ALL=C
4163export LC_ALL
4164LANGUAGE=C
4165export LANGUAGE
4166
4167# CDPATH.
4168(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4169
4170
4171# as_fn_error STATUS ERROR [LINENO LOG_FD]
4172# ----------------------------------------
4173# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4174# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4175# script with STATUS, using 1 if that was 0.
4176as_fn_error ()
4177{
4178  as_status=$1; test $as_status -eq 0 && as_status=1
4179  if test "$4"; then
4180    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4181    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4182  fi
4183  $as_echo "$as_me: error: $2" >&2
4184  as_fn_exit $as_status
4185} # as_fn_error
4186
4187
4188# as_fn_set_status STATUS
4189# -----------------------
4190# Set $? to STATUS, without forking.
4191as_fn_set_status ()
4192{
4193  return $1
4194} # as_fn_set_status
4195
4196# as_fn_exit STATUS
4197# -----------------
4198# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4199as_fn_exit ()
4200{
4201  set +e
4202  as_fn_set_status $1
4203  exit $1
4204} # as_fn_exit
4205
4206# as_fn_unset VAR
4207# ---------------
4208# Portably unset VAR.
4209as_fn_unset ()
4210{
4211  { eval $1=; unset $1;}
4212}
4213as_unset=as_fn_unset
4214# as_fn_append VAR VALUE
4215# ----------------------
4216# Append the text in VALUE to the end of the definition contained in VAR. Take
4217# advantage of any shell optimizations that allow amortized linear growth over
4218# repeated appends, instead of the typical quadratic growth present in naive
4219# implementations.
4220if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4221  eval 'as_fn_append ()
4222  {
4223    eval $1+=\$2
4224  }'
4225else
4226  as_fn_append ()
4227  {
4228    eval $1=\$$1\$2
4229  }
4230fi # as_fn_append
4231
4232# as_fn_arith ARG...
4233# ------------------
4234# Perform arithmetic evaluation on the ARGs, and store the result in the
4235# global $as_val. Take advantage of shells that can avoid forks. The arguments
4236# must be portable across $(()) and expr.
4237if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4238  eval 'as_fn_arith ()
4239  {
4240    as_val=$(( $* ))
4241  }'
4242else
4243  as_fn_arith ()
4244  {
4245    as_val=`expr "$@" || test $? -eq 1`
4246  }
4247fi # as_fn_arith
4248
4249
4250if expr a : '\(a\)' >/dev/null 2>&1 &&
4251   test "X`expr 00001 : '.*\(...\)'`" = X001; then
4252  as_expr=expr
4253else
4254  as_expr=false
4255fi
4256
4257if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4258  as_basename=basename
4259else
4260  as_basename=false
4261fi
4262
4263if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4264  as_dirname=dirname
4265else
4266  as_dirname=false
4267fi
4268
4269as_me=`$as_basename -- "$0" ||
4270$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4271	 X"$0" : 'X\(//\)$' \| \
4272	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4273$as_echo X/"$0" |
4274    sed '/^.*\/\([^/][^/]*\)\/*$/{
4275	    s//\1/
4276	    q
4277	  }
4278	  /^X\/\(\/\/\)$/{
4279	    s//\1/
4280	    q
4281	  }
4282	  /^X\/\(\/\).*/{
4283	    s//\1/
4284	    q
4285	  }
4286	  s/.*/./; q'`
4287
4288# Avoid depending upon Character Ranges.
4289as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4290as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4291as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4292as_cr_digits='0123456789'
4293as_cr_alnum=$as_cr_Letters$as_cr_digits
4294
4295ECHO_C= ECHO_N= ECHO_T=
4296case `echo -n x` in #(((((
4297-n*)
4298  case `echo 'xy\c'` in
4299  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
4300  xy)  ECHO_C='\c';;
4301  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
4302       ECHO_T='	';;
4303  esac;;
4304*)
4305  ECHO_N='-n';;
4306esac
4307
4308rm -f conf$$ conf$$.exe conf$$.file
4309if test -d conf$$.dir; then
4310  rm -f conf$$.dir/conf$$.file
4311else
4312  rm -f conf$$.dir
4313  mkdir conf$$.dir 2>/dev/null
4314fi
4315if (echo >conf$$.file) 2>/dev/null; then
4316  if ln -s conf$$.file conf$$ 2>/dev/null; then
4317    as_ln_s='ln -s'
4318    # ... but there are two gotchas:
4319    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4320    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4321    # In both cases, we have to default to `cp -pR'.
4322    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4323      as_ln_s='cp -pR'
4324  elif ln conf$$.file conf$$ 2>/dev/null; then
4325    as_ln_s=ln
4326  else
4327    as_ln_s='cp -pR'
4328  fi
4329else
4330  as_ln_s='cp -pR'
4331fi
4332rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4333rmdir conf$$.dir 2>/dev/null
4334
4335
4336# as_fn_mkdir_p
4337# -------------
4338# Create "$as_dir" as a directory, including parents if necessary.
4339as_fn_mkdir_p ()
4340{
4341
4342  case $as_dir in #(
4343  -*) as_dir=./$as_dir;;
4344  esac
4345  test -d "$as_dir" || eval $as_mkdir_p || {
4346    as_dirs=
4347    while :; do
4348      case $as_dir in #(
4349      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4350      *) as_qdir=$as_dir;;
4351      esac
4352      as_dirs="'$as_qdir' $as_dirs"
4353      as_dir=`$as_dirname -- "$as_dir" ||
4354$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4355	 X"$as_dir" : 'X\(//\)[^/]' \| \
4356	 X"$as_dir" : 'X\(//\)$' \| \
4357	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4358$as_echo X"$as_dir" |
4359    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4360	    s//\1/
4361	    q
4362	  }
4363	  /^X\(\/\/\)[^/].*/{
4364	    s//\1/
4365	    q
4366	  }
4367	  /^X\(\/\/\)$/{
4368	    s//\1/
4369	    q
4370	  }
4371	  /^X\(\/\).*/{
4372	    s//\1/
4373	    q
4374	  }
4375	  s/.*/./; q'`
4376      test -d "$as_dir" && break
4377    done
4378    test -z "$as_dirs" || eval "mkdir $as_dirs"
4379  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4380
4381
4382} # as_fn_mkdir_p
4383if mkdir -p . 2>/dev/null; then
4384  as_mkdir_p='mkdir -p "$as_dir"'
4385else
4386  test -d ./-p && rmdir ./-p
4387  as_mkdir_p=false
4388fi
4389
4390
4391# as_fn_executable_p FILE
4392# -----------------------
4393# Test if FILE is an executable regular file.
4394as_fn_executable_p ()
4395{
4396  test -f "$1" && test -x "$1"
4397} # as_fn_executable_p
4398as_test_x='test -x'
4399as_executable_p=as_fn_executable_p
4400
4401# Sed expression to map a string onto a valid CPP name.
4402as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4403
4404# Sed expression to map a string onto a valid variable name.
4405as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4406
4407
4408exec 6>&1
4409## ----------------------------------- ##
4410## Main body of $CONFIG_STATUS script. ##
4411## ----------------------------------- ##
4412_ASEOF
4413test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4414
4415cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4416# Save the log message, to keep $0 and so on meaningful, and to
4417# report actual input values of CONFIG_FILES etc. instead of their
4418# values after options handling.
4419ac_log="
4420This file was extended by Haskell network package $as_me 3.1.1.0, which was
4421generated by GNU Autoconf 2.69.  Invocation command line was
4422
4423  CONFIG_FILES    = $CONFIG_FILES
4424  CONFIG_HEADERS  = $CONFIG_HEADERS
4425  CONFIG_LINKS    = $CONFIG_LINKS
4426  CONFIG_COMMANDS = $CONFIG_COMMANDS
4427  $ $0 $@
4428
4429on `(hostname || uname -n) 2>/dev/null | sed 1q`
4430"
4431
4432_ACEOF
4433
4434
4435case $ac_config_headers in *"
4436"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4437esac
4438
4439
4440cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4441# Files that config.status was made for.
4442config_headers="$ac_config_headers"
4443
4444_ACEOF
4445
4446cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4447ac_cs_usage="\
4448\`$as_me' instantiates files and other configuration actions
4449from templates according to the current configuration.  Unless the files
4450and actions are specified as TAGs, all are instantiated by default.
4451
4452Usage: $0 [OPTION]... [TAG]...
4453
4454  -h, --help       print this help, then exit
4455  -V, --version    print version number and configuration settings, then exit
4456      --config     print configuration, then exit
4457  -q, --quiet, --silent
4458                   do not print progress messages
4459  -d, --debug      don't remove temporary files
4460      --recheck    update $as_me by reconfiguring in the same conditions
4461      --header=FILE[:TEMPLATE]
4462                   instantiate the configuration header FILE
4463
4464Configuration headers:
4465$config_headers
4466
4467Report bugs to <libraries@haskell.org>."
4468
4469_ACEOF
4470cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4471ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4472ac_cs_version="\\
4473Haskell network package config.status 3.1.1.0
4474configured by $0, generated by GNU Autoconf 2.69,
4475  with options \\"\$ac_cs_config\\"
4476
4477Copyright (C) 2012 Free Software Foundation, Inc.
4478This config.status script is free software; the Free Software Foundation
4479gives unlimited permission to copy, distribute and modify it."
4480
4481ac_pwd='$ac_pwd'
4482srcdir='$srcdir'
4483test -n "\$AWK" || AWK=awk
4484_ACEOF
4485
4486cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4487# The default lists apply if the user does not specify any file.
4488ac_need_defaults=:
4489while test $# != 0
4490do
4491  case $1 in
4492  --*=?*)
4493    ac_option=`expr "X$1" : 'X\([^=]*\)='`
4494    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4495    ac_shift=:
4496    ;;
4497  --*=)
4498    ac_option=`expr "X$1" : 'X\([^=]*\)='`
4499    ac_optarg=
4500    ac_shift=:
4501    ;;
4502  *)
4503    ac_option=$1
4504    ac_optarg=$2
4505    ac_shift=shift
4506    ;;
4507  esac
4508
4509  case $ac_option in
4510  # Handling of the options.
4511  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4512    ac_cs_recheck=: ;;
4513  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4514    $as_echo "$ac_cs_version"; exit ;;
4515  --config | --confi | --conf | --con | --co | --c )
4516    $as_echo "$ac_cs_config"; exit ;;
4517  --debug | --debu | --deb | --de | --d | -d )
4518    debug=: ;;
4519  --header | --heade | --head | --hea )
4520    $ac_shift
4521    case $ac_optarg in
4522    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4523    esac
4524    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4525    ac_need_defaults=false;;
4526  --he | --h)
4527    # Conflict between --help and --header
4528    as_fn_error $? "ambiguous option: \`$1'
4529Try \`$0 --help' for more information.";;
4530  --help | --hel | -h )
4531    $as_echo "$ac_cs_usage"; exit ;;
4532  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4533  | -silent | --silent | --silen | --sile | --sil | --si | --s)
4534    ac_cs_silent=: ;;
4535
4536  # This is an error.
4537  -*) as_fn_error $? "unrecognized option: \`$1'
4538Try \`$0 --help' for more information." ;;
4539
4540  *) as_fn_append ac_config_targets " $1"
4541     ac_need_defaults=false ;;
4542
4543  esac
4544  shift
4545done
4546
4547ac_configure_extra_args=
4548
4549if $ac_cs_silent; then
4550  exec 6>/dev/null
4551  ac_configure_extra_args="$ac_configure_extra_args --silent"
4552fi
4553
4554_ACEOF
4555cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4556if \$ac_cs_recheck; then
4557  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4558  shift
4559  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4560  CONFIG_SHELL='$SHELL'
4561  export CONFIG_SHELL
4562  exec "\$@"
4563fi
4564
4565_ACEOF
4566cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4567exec 5>>config.log
4568{
4569  echo
4570  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4571## Running $as_me. ##
4572_ASBOX
4573  $as_echo "$ac_log"
4574} >&5
4575
4576_ACEOF
4577cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4578_ACEOF
4579
4580cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4581
4582# Handling of arguments.
4583for ac_config_target in $ac_config_targets
4584do
4585  case $ac_config_target in
4586    "include/HsNetworkConfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/HsNetworkConfig.h" ;;
4587
4588  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4589  esac
4590done
4591
4592
4593# If the user did not use the arguments to specify the items to instantiate,
4594# then the envvar interface is used.  Set only those that are not.
4595# We use the long form for the default assignment because of an extremely
4596# bizarre bug on SunOS 4.1.3.
4597if $ac_need_defaults; then
4598  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4599fi
4600
4601# Have a temporary directory for convenience.  Make it in the build tree
4602# simply because there is no reason against having it here, and in addition,
4603# creating and moving files from /tmp can sometimes cause problems.
4604# Hook for its removal unless debugging.
4605# Note that there is a small window in which the directory will not be cleaned:
4606# after its creation but before its name has been assigned to `$tmp'.
4607$debug ||
4608{
4609  tmp= ac_tmp=
4610  trap 'exit_status=$?
4611  : "${ac_tmp:=$tmp}"
4612  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4613' 0
4614  trap 'as_fn_exit 1' 1 2 13 15
4615}
4616# Create a (secure) tmp directory for tmp files.
4617
4618{
4619  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4620  test -d "$tmp"
4621}  ||
4622{
4623  tmp=./conf$$-$RANDOM
4624  (umask 077 && mkdir "$tmp")
4625} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4626ac_tmp=$tmp
4627
4628# Set up the scripts for CONFIG_HEADERS section.
4629# No need to generate them if there are no CONFIG_HEADERS.
4630# This happens for instance with `./config.status Makefile'.
4631if test -n "$CONFIG_HEADERS"; then
4632cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
4633BEGIN {
4634_ACEOF
4635
4636# Transform confdefs.h into an awk script `defines.awk', embedded as
4637# here-document in config.status, that substitutes the proper values into
4638# config.h.in to produce config.h.
4639
4640# Create a delimiter string that does not exist in confdefs.h, to ease
4641# handling of long lines.
4642ac_delim='%!_!# '
4643for ac_last_try in false false :; do
4644  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
4645  if test -z "$ac_tt"; then
4646    break
4647  elif $ac_last_try; then
4648    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
4649  else
4650    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4651  fi
4652done
4653
4654# For the awk script, D is an array of macro values keyed by name,
4655# likewise P contains macro parameters if any.  Preserve backslash
4656# newline sequences.
4657
4658ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4659sed -n '
4660s/.\{148\}/&'"$ac_delim"'/g
4661t rset
4662:rset
4663s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
4664t def
4665d
4666:def
4667s/\\$//
4668t bsnl
4669s/["\\]/\\&/g
4670s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
4671D["\1"]=" \3"/p
4672s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
4673d
4674:bsnl
4675s/["\\]/\\&/g
4676s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
4677D["\1"]=" \3\\\\\\n"\\/p
4678t cont
4679s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
4680t cont
4681d
4682:cont
4683n
4684s/.\{148\}/&'"$ac_delim"'/g
4685t clear
4686:clear
4687s/\\$//
4688t bsnlc
4689s/["\\]/\\&/g; s/^/"/; s/$/"/p
4690d
4691:bsnlc
4692s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
4693b cont
4694' <confdefs.h | sed '
4695s/'"$ac_delim"'/"\\\
4696"/g' >>$CONFIG_STATUS || ac_write_fail=1
4697
4698cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4699  for (key in D) D_is_set[key] = 1
4700  FS = ""
4701}
4702/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
4703  line = \$ 0
4704  split(line, arg, " ")
4705  if (arg[1] == "#") {
4706    defundef = arg[2]
4707    mac1 = arg[3]
4708  } else {
4709    defundef = substr(arg[1], 2)
4710    mac1 = arg[2]
4711  }
4712  split(mac1, mac2, "(") #)
4713  macro = mac2[1]
4714  prefix = substr(line, 1, index(line, defundef) - 1)
4715  if (D_is_set[macro]) {
4716    # Preserve the white space surrounding the "#".
4717    print prefix "define", macro P[macro] D[macro]
4718    next
4719  } else {
4720    # Replace #undef with comments.  This is necessary, for example,
4721    # in the case of _POSIX_SOURCE, which is predefined and required
4722    # on some systems where configure will not decide to define it.
4723    if (defundef == "undef") {
4724      print "/*", prefix defundef, macro, "*/"
4725      next
4726    }
4727  }
4728}
4729{ print }
4730_ACAWK
4731_ACEOF
4732cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4733  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
4734fi # test -n "$CONFIG_HEADERS"
4735
4736
4737eval set X "    :H $CONFIG_HEADERS    "
4738shift
4739for ac_tag
4740do
4741  case $ac_tag in
4742  :[FHLC]) ac_mode=$ac_tag; continue;;
4743  esac
4744  case $ac_mode$ac_tag in
4745  :[FHL]*:*);;
4746  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4747  :[FH]-) ac_tag=-:-;;
4748  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4749  esac
4750  ac_save_IFS=$IFS
4751  IFS=:
4752  set x $ac_tag
4753  IFS=$ac_save_IFS
4754  shift
4755  ac_file=$1
4756  shift
4757
4758  case $ac_mode in
4759  :L) ac_source=$1;;
4760  :[FH])
4761    ac_file_inputs=
4762    for ac_f
4763    do
4764      case $ac_f in
4765      -) ac_f="$ac_tmp/stdin";;
4766      *) # Look for the file first in the build tree, then in the source tree
4767	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
4768	 # because $ac_f cannot contain `:'.
4769	 test -f "$ac_f" ||
4770	   case $ac_f in
4771	   [\\/$]*) false;;
4772	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4773	   esac ||
4774	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4775      esac
4776      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4777      as_fn_append ac_file_inputs " '$ac_f'"
4778    done
4779
4780    # Let's still pretend it is `configure' which instantiates (i.e., don't
4781    # use $as_me), people would be surprised to read:
4782    #    /* config.h.  Generated by config.status.  */
4783    configure_input='Generated from '`
4784	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4785	`' by configure.'
4786    if test x"$ac_file" != x-; then
4787      configure_input="$ac_file.  $configure_input"
4788      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4789$as_echo "$as_me: creating $ac_file" >&6;}
4790    fi
4791    # Neutralize special characters interpreted by sed in replacement strings.
4792    case $configure_input in #(
4793    *\&* | *\|* | *\\* )
4794       ac_sed_conf_input=`$as_echo "$configure_input" |
4795       sed 's/[\\\\&|]/\\\\&/g'`;; #(
4796    *) ac_sed_conf_input=$configure_input;;
4797    esac
4798
4799    case $ac_tag in
4800    *:-:* | *:-) cat >"$ac_tmp/stdin" \
4801      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4802    esac
4803    ;;
4804  esac
4805
4806  ac_dir=`$as_dirname -- "$ac_file" ||
4807$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4808	 X"$ac_file" : 'X\(//\)[^/]' \| \
4809	 X"$ac_file" : 'X\(//\)$' \| \
4810	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4811$as_echo X"$ac_file" |
4812    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4813	    s//\1/
4814	    q
4815	  }
4816	  /^X\(\/\/\)[^/].*/{
4817	    s//\1/
4818	    q
4819	  }
4820	  /^X\(\/\/\)$/{
4821	    s//\1/
4822	    q
4823	  }
4824	  /^X\(\/\).*/{
4825	    s//\1/
4826	    q
4827	  }
4828	  s/.*/./; q'`
4829  as_dir="$ac_dir"; as_fn_mkdir_p
4830  ac_builddir=.
4831
4832case "$ac_dir" in
4833.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4834*)
4835  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4836  # A ".." for each directory in $ac_dir_suffix.
4837  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4838  case $ac_top_builddir_sub in
4839  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4840  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4841  esac ;;
4842esac
4843ac_abs_top_builddir=$ac_pwd
4844ac_abs_builddir=$ac_pwd$ac_dir_suffix
4845# for backward compatibility:
4846ac_top_builddir=$ac_top_build_prefix
4847
4848case $srcdir in
4849  .)  # We are building in place.
4850    ac_srcdir=.
4851    ac_top_srcdir=$ac_top_builddir_sub
4852    ac_abs_top_srcdir=$ac_pwd ;;
4853  [\\/]* | ?:[\\/]* )  # Absolute name.
4854    ac_srcdir=$srcdir$ac_dir_suffix;
4855    ac_top_srcdir=$srcdir
4856    ac_abs_top_srcdir=$srcdir ;;
4857  *) # Relative name.
4858    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4859    ac_top_srcdir=$ac_top_build_prefix$srcdir
4860    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4861esac
4862ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4863
4864
4865  case $ac_mode in
4866
4867  :H)
4868  #
4869  # CONFIG_HEADER
4870  #
4871  if test x"$ac_file" != x-; then
4872    {
4873      $as_echo "/* $configure_input  */" \
4874      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
4875    } >"$ac_tmp/config.h" \
4876      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4877    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
4878      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
4879$as_echo "$as_me: $ac_file is unchanged" >&6;}
4880    else
4881      rm -f "$ac_file"
4882      mv "$ac_tmp/config.h" "$ac_file" \
4883	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
4884    fi
4885  else
4886    $as_echo "/* $configure_input  */" \
4887      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
4888      || as_fn_error $? "could not create -" "$LINENO" 5
4889  fi
4890 ;;
4891
4892
4893  esac
4894
4895done # for ac_tag
4896
4897
4898as_fn_exit 0
4899_ACEOF
4900ac_clean_files=$ac_clean_files_save
4901
4902test $ac_write_fail = 0 ||
4903  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4904
4905
4906# configure is writing to config.log, and then calls config.status.
4907# config.status does its own redirection, appending to config.log.
4908# Unfortunately, on DOS this fails, as config.log is still kept open
4909# by configure, so config.status won't be able to write to it; its
4910# output is simply discarded.  So we exec the FD to /dev/null,
4911# effectively closing config.log, so it can be properly (re)opened and
4912# appended to by config.status.  When coming back to configure, we
4913# need to make the FD available again.
4914if test "$no_create" != yes; then
4915  ac_cs_success=:
4916  ac_config_status_args=
4917  test "$silent" = yes &&
4918    ac_config_status_args="$ac_config_status_args --quiet"
4919  exec 5>/dev/null
4920  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4921  exec 5>>config.log
4922  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4923  # would make configure fail if this is the last instruction.
4924  $ac_cs_success || as_fn_exit 1
4925fi
4926if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4927  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4928$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4929fi
4930
4931