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