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