1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212  IFS=$as_save_IFS
213  test -z "$as_dir" && as_dir=.
214  as_found=:
215  case $as_dir in #(
216	 /*)
217	   for as_base in sh bash ksh sh5; do
218	     # Try only shells that exist, to save several forks.
219	     as_shell=$as_dir/$as_base
220	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222  CONFIG_SHELL=$as_shell as_have_required=yes
223		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  break 2
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233  CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238      if test "x$CONFIG_SHELL" != x; then :
239  export CONFIG_SHELL
240             # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260    if test x$as_have_required = xno; then :
261  $as_echo "$0: This script requires a shell more modern than all"
262  $as_echo "$0: the shells that I found on your system."
263  if test x${ZSH_VERSION+set} = xset ; then
264    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266  else
267    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271  fi
272  exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299  return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307  set +e
308  as_fn_set_status $1
309  exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318  case $as_dir in #(
319  -*) as_dir=./$as_dir;;
320  esac
321  test -d "$as_dir" || eval $as_mkdir_p || {
322    as_dirs=
323    while :; do
324      case $as_dir in #(
325      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326      *) as_qdir=$as_dir;;
327      esac
328      as_dirs="'$as_qdir' $as_dirs"
329      as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331	 X"$as_dir" : 'X\(//\)[^/]' \| \
332	 X"$as_dir" : 'X\(//\)$' \| \
333	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336	    s//\1/
337	    q
338	  }
339	  /^X\(\/\/\)[^/].*/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\).*/{
348	    s//\1/
349	    q
350	  }
351	  s/.*/./; q'`
352      test -d "$as_dir" && break
353    done
354    test -z "$as_dirs" || eval "mkdir $as_dirs"
355  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365  test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374  eval 'as_fn_append ()
375  {
376    eval $1+=\$2
377  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410  as_status=$1; test $as_status -eq 0 && as_status=1
411  if test "$4"; then
412    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414  fi
415  $as_echo "$as_me: error: $2" >&2
416  as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440	 X"$0" : 'X\(//\)$' \| \
441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443    sed '/^.*\/\([^/][^/]*\)\/*$/{
444	    s//\1/
445	    q
446	  }
447	  /^X\/\(\/\/\)$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\).*/{
452	    s//\1/
453	    q
454	  }
455	  s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470  sed -n '
471    p
472    /[$]LINENO/=
473  ' <$as_myself |
474    sed '
475      s/[$]LINENO.*/&-/
476      t lineno
477      b
478      :lineno
479      N
480      :loop
481      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482      t loop
483      s/-\n.*//
484    ' >$as_me.lineno &&
485  chmod +x "$as_me.lineno" ||
486    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489  # already done that, so ensure we don't try to do so again and fall
490  # in an infinite loop.  This has already happened in practice.
491  _as_can_reexec=no; export _as_can_reexec
492  # Don't try to exec as it changes $[0], causing all sort of problems
493  # (the dirname of $[0] is not the place where we might find the
494  # original and so on.  Autoconf is especially sensitive to this).
495  . "./$as_me.lineno"
496  # Exit status is that of the last command.
497  exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503  case `echo 'xy\c'` in
504  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505  xy)  ECHO_C='\c';;
506  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507       ECHO_T='	';;
508  esac;;
509*)
510  ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521  if ln -s conf$$.file conf$$ 2>/dev/null; then
522    as_ln_s='ln -s'
523    # ... but there are two gotchas:
524    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526    # In both cases, we have to default to `cp -pR'.
527    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528      as_ln_s='cp -pR'
529  elif ln conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s=ln
531  else
532    as_ln_s='cp -pR'
533  fi
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
583PACKAGE_URL=
584
585ac_unique_file="version.h"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
589#ifdef HAVE_SYS_TYPES_H
590# include <sys/types.h>
591#endif
592#ifdef HAVE_SYS_STAT_H
593# include <sys/stat.h>
594#endif
595#ifdef STDC_HEADERS
596# include <stdlib.h>
597# include <stddef.h>
598#else
599# ifdef HAVE_STDLIB_H
600#  include <stdlib.h>
601# endif
602#endif
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605#  include <memory.h>
606# endif
607# include <string.h>
608#endif
609#ifdef HAVE_STRINGS_H
610# include <strings.h>
611#endif
612#ifdef HAVE_INTTYPES_H
613# include <inttypes.h>
614#endif
615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
618#ifdef HAVE_UNISTD_H
619# include <unistd.h>
620#endif"
621
622gt_needs=
623ac_header_list=
624gl_use_threads_default=
625ac_func_list=
626ac_subst_vars='LTLIBOBJS
627LIBOBJS
628LDFLAGS_SHLIB
629CFLAGS_STLIB
630CFLAGS_SHLIB
631BUILD_LDFLAGS
632BUILD_CFLAGS
633MKINSTALLDIRS
634INCLUDES
635DO_TEST_SUITE
636LDFLAGS_STATIC
637root_sysconfdir
638root_libdir
639root_sbindir
640root_bindir
641root_prefix
642UNIX_CMT
643CYGWIN_CMT
644LINUX_CMT
645UNI_DIFF_OPTS
646SEM_INIT_LIB
647FUSE_CMT
648FUSE_LIB
649CLOCK_GETTIME_LIB
650MAGIC_LIB
651SOCKET_LIB
652SIZEOF_TIME_T
653SIZEOF_OFF_T
654SIZEOF_LONG_LONG
655SIZEOF_LONG
656SIZEOF_INT
657SIZEOF_SHORT
658BUILD_CC
659MAKEINFO
660STRIP
661AR
662LDCONFIG
663PERL
664AWK
665CHMOD
666RM
667CP
668MV
669LN_S
670LN
671ifNotGNUmake
672ifGNUmake
673BINARY_TYPE
674POSUB
675LTLIBINTL
676LIBINTL
677INTLLIBS
678INTL_LIBTOOL_SUFFIX_PREFIX
679INTLOBJS
680GENCAT
681INSTOBJEXT
682DATADIRNAME
683CATOBJEXT
684USE_INCLUDED_LIBINTL
685BUILD_INCLUDED_LIBINTL
686LTLIBC
687WINDRES
688WOE32
689WOE32DLL
690HAVE_WPRINTF
691HAVE_NEWLOCALE
692HAVE_SNPRINTF
693HAVE_ASPRINTF
694HAVE_POSIX_PRINTF
695INTL_DEFAULT_VERBOSITY
696INTL_MACOSX_LIBS
697GLIBC21
698INTLBISON
699LTLIBICONV
700LIBICONV
701LTLIBMULTITHREAD
702LIBMULTITHREAD
703LTLIBTHREAD
704LIBTHREAD
705LIBPTH_PREFIX
706LTLIBPTH
707LIBPTH
708PRI_MACROS_BROKEN
709ALLOCA
710HAVE_VISIBILITY
711CFLAG_VISIBILITY
712RANLIB
713GLIBC2
714XGETTEXT_EXTRA_OPTIONS
715MSGMERGE
716XGETTEXT_015
717XGETTEXT
718GMSGFMT_015
719MSGFMT_015
720GMSGFMT
721MSGFMT
722GETTEXT_MACRO_VERSION
723USE_NLS
724SED
725MKDIR_P
726INSTALL_DATA
727INSTALL_SCRIPT
728INSTALL_PROGRAM
729SET_MAKE
730VERSION
731PACKAGE
732GETTEXT_PACKAGE
733TDB_MAN_COMMENT
734TDB_CMT
735UUIDD_CMT
736E2INITRD_MAN
737E2INITRD_PROG
738FSCK_MAN
739FSCK_PROG
740DEFRAG_CMT
741RESIZER_CMT
742IMAGER_CMT
743DEBUGFS_CMT
744BLKID_CMT
745DEPPROFILED_LIBBLKID
746PROFILED_LIBBLKID
747DEPSTATIC_LIBBLKID
748STATIC_LIBBLKID
749DEPLIBBLKID
750LIBBLKID
751UUID_CMT
752DEPPROFILED_LIBUUID
753PROFILED_LIBUUID
754DEPSTATIC_LIBUUID
755STATIC_LIBUUID
756DEPLIBUUID
757LIBUUID
758PKG_CONFIG_LIBDIR
759PKG_CONFIG_PATH
760PKG_CONFIG
761TEST_IO_CMT
762PRIVATE_LIBS_CMT
763LDFLAG_DYNAMIC
764PROFILED_LIB_EXT
765STATIC_LIB_EXT
766LIB_EXT
767PROFILE_CMT
768BSDLIB_CMT
769ELF_CMT
770Q
771ES
772E
773LINK_BUILD_FLAGS
774SYMLINK_RELATIVE
775LINK_INSTALL_FLAGS
776MAINTAINER_CMT
777EGREP
778GREP
779CPP
780RDYNAMIC
781DLOPEN_LIB
782OBJEXT
783EXEEXT
784ac_ct_CC
785CPPFLAGS
786LDFLAGS
787CFLAGS
788CC
789host_os
790host_vendor
791host_cpu
792host
793build_os
794build_vendor
795build_cpu
796build
797E2FSPROGS_PKGVER
798E2FSPROGS_VERSION
799E2FSPROGS_DAY
800E2FSPROGS_MONTH
801E2FSPROGS_YEAR
802target_alias
803host_alias
804build_alias
805LIBS
806ECHO_T
807ECHO_N
808ECHO_C
809DEFS
810mandir
811localedir
812libdir
813psdir
814pdfdir
815dvidir
816htmldir
817infodir
818docdir
819oldincludedir
820includedir
821runstatedir
822localstatedir
823sharedstatedir
824sysconfdir
825datadir
826datarootdir
827libexecdir
828sbindir
829bindir
830program_transform_name
831prefix
832exec_prefix
833PACKAGE_URL
834PACKAGE_BUGREPORT
835PACKAGE_STRING
836PACKAGE_VERSION
837PACKAGE_TARNAME
838PACKAGE_NAME
839PATH_SEPARATOR
840SHELL'
841ac_subst_files='MCONFIG
842MAKEFILE_ELF
843MAKEFILE_BSDLIB
844MAKEFILE_PROFILE
845MAKEFILE_LIBRARY
846ASM_TYPES_HEADER
847PUBLIC_CONFIG_HEADER'
848ac_user_opts='
849enable_option_checking
850with_diet_libc
851with_cc
852with_ccopts
853with_ldopts
854with_root_prefix
855enable_maintainer_mode
856enable_symlink_install
857enable_relative_symlinks
858enable_symlink_relative_symlinks
859enable_symlink_build
860enable_verbose_makecmds
861enable_elf_shlibs
862enable_bsd_shlibs
863enable_profile
864enable_gcov
865enable_hardening
866enable_jbd_debug
867enable_blkid_debug
868enable_testio_debug
869enable_libuuid
870enable_libblkid
871enable_backtrace
872enable_debugfs
873enable_imager
874enable_resizer
875enable_defrag
876enable_fsck
877enable_e2initrd_helper
878enable_tls
879enable_uuidd
880enable_mmp
881enable_tdb
882enable_bmap_stats
883enable_bmap_stats_ops
884enable_nls
885enable_threads
886with_gnu_ld
887enable_rpath
888with_libpth_prefix
889with_libiconv_prefix
890with_included_gettext
891with_libintl_prefix
892enable_fuse2fs
893with_multiarch
894'
895      ac_precious_vars='build_alias
896host_alias
897target_alias
898CC
899CFLAGS
900LDFLAGS
901LIBS
902CPPFLAGS
903CPP
904PKG_CONFIG
905PKG_CONFIG_PATH
906PKG_CONFIG_LIBDIR'
907
908
909# Initialize some variables set by options.
910ac_init_help=
911ac_init_version=false
912ac_unrecognized_opts=
913ac_unrecognized_sep=
914# The variables have the same names as the options, with
915# dashes changed to underlines.
916cache_file=/dev/null
917exec_prefix=NONE
918no_create=
919no_recursion=
920prefix=NONE
921program_prefix=NONE
922program_suffix=NONE
923program_transform_name=s,x,x,
924silent=
925site=
926srcdir=
927verbose=
928x_includes=NONE
929x_libraries=NONE
930
931# Installation directory options.
932# These are left unexpanded so users can "make install exec_prefix=/foo"
933# and all the variables that are supposed to be based on exec_prefix
934# by default will actually change.
935# Use braces instead of parens because sh, perl, etc. also accept them.
936# (The list follows the same order as the GNU Coding Standards.)
937bindir='${exec_prefix}/bin'
938sbindir='${exec_prefix}/sbin'
939libexecdir='${exec_prefix}/libexec'
940datarootdir='${prefix}/share'
941datadir='${datarootdir}'
942sysconfdir='${prefix}/etc'
943sharedstatedir='${prefix}/com'
944localstatedir='${prefix}/var'
945runstatedir='${localstatedir}/run'
946includedir='${prefix}/include'
947oldincludedir='/usr/include'
948docdir='${datarootdir}/doc/${PACKAGE}'
949infodir='${datarootdir}/info'
950htmldir='${docdir}'
951dvidir='${docdir}'
952pdfdir='${docdir}'
953psdir='${docdir}'
954libdir='${exec_prefix}/lib'
955localedir='${datarootdir}/locale'
956mandir='${datarootdir}/man'
957
958ac_prev=
959ac_dashdash=
960for ac_option
961do
962  # If the previous option needs an argument, assign it.
963  if test -n "$ac_prev"; then
964    eval $ac_prev=\$ac_option
965    ac_prev=
966    continue
967  fi
968
969  case $ac_option in
970  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
971  *=)   ac_optarg= ;;
972  *)    ac_optarg=yes ;;
973  esac
974
975  # Accept the important Cygnus configure options, so we can diagnose typos.
976
977  case $ac_dashdash$ac_option in
978  --)
979    ac_dashdash=yes ;;
980
981  -bindir | --bindir | --bindi | --bind | --bin | --bi)
982    ac_prev=bindir ;;
983  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
984    bindir=$ac_optarg ;;
985
986  -build | --build | --buil | --bui | --bu)
987    ac_prev=build_alias ;;
988  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
989    build_alias=$ac_optarg ;;
990
991  -cache-file | --cache-file | --cache-fil | --cache-fi \
992  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
993    ac_prev=cache_file ;;
994  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
995  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
996    cache_file=$ac_optarg ;;
997
998  --config-cache | -C)
999    cache_file=config.cache ;;
1000
1001  -datadir | --datadir | --datadi | --datad)
1002    ac_prev=datadir ;;
1003  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1004    datadir=$ac_optarg ;;
1005
1006  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1007  | --dataroo | --dataro | --datar)
1008    ac_prev=datarootdir ;;
1009  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1010  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1011    datarootdir=$ac_optarg ;;
1012
1013  -disable-* | --disable-*)
1014    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1015    # Reject names that are not valid shell variable names.
1016    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1017      as_fn_error $? "invalid feature name: $ac_useropt"
1018    ac_useropt_orig=$ac_useropt
1019    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020    case $ac_user_opts in
1021      *"
1022"enable_$ac_useropt"
1023"*) ;;
1024      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1025	 ac_unrecognized_sep=', ';;
1026    esac
1027    eval enable_$ac_useropt=no ;;
1028
1029  -docdir | --docdir | --docdi | --doc | --do)
1030    ac_prev=docdir ;;
1031  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1032    docdir=$ac_optarg ;;
1033
1034  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1035    ac_prev=dvidir ;;
1036  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1037    dvidir=$ac_optarg ;;
1038
1039  -enable-* | --enable-*)
1040    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1041    # Reject names that are not valid shell variable names.
1042    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043      as_fn_error $? "invalid feature name: $ac_useropt"
1044    ac_useropt_orig=$ac_useropt
1045    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046    case $ac_user_opts in
1047      *"
1048"enable_$ac_useropt"
1049"*) ;;
1050      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1051	 ac_unrecognized_sep=', ';;
1052    esac
1053    eval enable_$ac_useropt=\$ac_optarg ;;
1054
1055  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1056  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1057  | --exec | --exe | --ex)
1058    ac_prev=exec_prefix ;;
1059  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1060  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1061  | --exec=* | --exe=* | --ex=*)
1062    exec_prefix=$ac_optarg ;;
1063
1064  -gas | --gas | --ga | --g)
1065    # Obsolete; use --with-gas.
1066    with_gas=yes ;;
1067
1068  -help | --help | --hel | --he | -h)
1069    ac_init_help=long ;;
1070  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1071    ac_init_help=recursive ;;
1072  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1073    ac_init_help=short ;;
1074
1075  -host | --host | --hos | --ho)
1076    ac_prev=host_alias ;;
1077  -host=* | --host=* | --hos=* | --ho=*)
1078    host_alias=$ac_optarg ;;
1079
1080  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1081    ac_prev=htmldir ;;
1082  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1083  | --ht=*)
1084    htmldir=$ac_optarg ;;
1085
1086  -includedir | --includedir | --includedi | --included | --include \
1087  | --includ | --inclu | --incl | --inc)
1088    ac_prev=includedir ;;
1089  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1090  | --includ=* | --inclu=* | --incl=* | --inc=*)
1091    includedir=$ac_optarg ;;
1092
1093  -infodir | --infodir | --infodi | --infod | --info | --inf)
1094    ac_prev=infodir ;;
1095  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1096    infodir=$ac_optarg ;;
1097
1098  -libdir | --libdir | --libdi | --libd)
1099    ac_prev=libdir ;;
1100  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1101    libdir=$ac_optarg ;;
1102
1103  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1104  | --libexe | --libex | --libe)
1105    ac_prev=libexecdir ;;
1106  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1107  | --libexe=* | --libex=* | --libe=*)
1108    libexecdir=$ac_optarg ;;
1109
1110  -localedir | --localedir | --localedi | --localed | --locale)
1111    ac_prev=localedir ;;
1112  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1113    localedir=$ac_optarg ;;
1114
1115  -localstatedir | --localstatedir | --localstatedi | --localstated \
1116  | --localstate | --localstat | --localsta | --localst | --locals)
1117    ac_prev=localstatedir ;;
1118  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1119  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1120    localstatedir=$ac_optarg ;;
1121
1122  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1123    ac_prev=mandir ;;
1124  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1125    mandir=$ac_optarg ;;
1126
1127  -nfp | --nfp | --nf)
1128    # Obsolete; use --without-fp.
1129    with_fp=no ;;
1130
1131  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1132  | --no-cr | --no-c | -n)
1133    no_create=yes ;;
1134
1135  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1136  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1137    no_recursion=yes ;;
1138
1139  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1140  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1141  | --oldin | --oldi | --old | --ol | --o)
1142    ac_prev=oldincludedir ;;
1143  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1144  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1145  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1146    oldincludedir=$ac_optarg ;;
1147
1148  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1149    ac_prev=prefix ;;
1150  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1151    prefix=$ac_optarg ;;
1152
1153  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1154  | --program-pre | --program-pr | --program-p)
1155    ac_prev=program_prefix ;;
1156  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1157  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1158    program_prefix=$ac_optarg ;;
1159
1160  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1161  | --program-suf | --program-su | --program-s)
1162    ac_prev=program_suffix ;;
1163  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1164  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1165    program_suffix=$ac_optarg ;;
1166
1167  -program-transform-name | --program-transform-name \
1168  | --program-transform-nam | --program-transform-na \
1169  | --program-transform-n | --program-transform- \
1170  | --program-transform | --program-transfor \
1171  | --program-transfo | --program-transf \
1172  | --program-trans | --program-tran \
1173  | --progr-tra | --program-tr | --program-t)
1174    ac_prev=program_transform_name ;;
1175  -program-transform-name=* | --program-transform-name=* \
1176  | --program-transform-nam=* | --program-transform-na=* \
1177  | --program-transform-n=* | --program-transform-=* \
1178  | --program-transform=* | --program-transfor=* \
1179  | --program-transfo=* | --program-transf=* \
1180  | --program-trans=* | --program-tran=* \
1181  | --progr-tra=* | --program-tr=* | --program-t=*)
1182    program_transform_name=$ac_optarg ;;
1183
1184  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1185    ac_prev=pdfdir ;;
1186  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1187    pdfdir=$ac_optarg ;;
1188
1189  -psdir | --psdir | --psdi | --psd | --ps)
1190    ac_prev=psdir ;;
1191  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1192    psdir=$ac_optarg ;;
1193
1194  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1195  | -silent | --silent | --silen | --sile | --sil)
1196    silent=yes ;;
1197
1198  -runstatedir | --runstatedir | --runstatedi | --runstated \
1199  | --runstate | --runstat | --runsta | --runst | --runs \
1200  | --run | --ru | --r)
1201    ac_prev=runstatedir ;;
1202  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1203  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1204  | --run=* | --ru=* | --r=*)
1205    runstatedir=$ac_optarg ;;
1206
1207  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1208    ac_prev=sbindir ;;
1209  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1210  | --sbi=* | --sb=*)
1211    sbindir=$ac_optarg ;;
1212
1213  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1214  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1215  | --sharedst | --shareds | --shared | --share | --shar \
1216  | --sha | --sh)
1217    ac_prev=sharedstatedir ;;
1218  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1219  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1220  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1221  | --sha=* | --sh=*)
1222    sharedstatedir=$ac_optarg ;;
1223
1224  -site | --site | --sit)
1225    ac_prev=site ;;
1226  -site=* | --site=* | --sit=*)
1227    site=$ac_optarg ;;
1228
1229  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1230    ac_prev=srcdir ;;
1231  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1232    srcdir=$ac_optarg ;;
1233
1234  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1235  | --syscon | --sysco | --sysc | --sys | --sy)
1236    ac_prev=sysconfdir ;;
1237  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1238  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1239    sysconfdir=$ac_optarg ;;
1240
1241  -target | --target | --targe | --targ | --tar | --ta | --t)
1242    ac_prev=target_alias ;;
1243  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1244    target_alias=$ac_optarg ;;
1245
1246  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1247    verbose=yes ;;
1248
1249  -version | --version | --versio | --versi | --vers | -V)
1250    ac_init_version=: ;;
1251
1252  -with-* | --with-*)
1253    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1254    # Reject names that are not valid shell variable names.
1255    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1256      as_fn_error $? "invalid package name: $ac_useropt"
1257    ac_useropt_orig=$ac_useropt
1258    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259    case $ac_user_opts in
1260      *"
1261"with_$ac_useropt"
1262"*) ;;
1263      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1264	 ac_unrecognized_sep=', ';;
1265    esac
1266    eval with_$ac_useropt=\$ac_optarg ;;
1267
1268  -without-* | --without-*)
1269    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1270    # Reject names that are not valid shell variable names.
1271    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1272      as_fn_error $? "invalid package name: $ac_useropt"
1273    ac_useropt_orig=$ac_useropt
1274    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1275    case $ac_user_opts in
1276      *"
1277"with_$ac_useropt"
1278"*) ;;
1279      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1280	 ac_unrecognized_sep=', ';;
1281    esac
1282    eval with_$ac_useropt=no ;;
1283
1284  --x)
1285    # Obsolete; use --with-x.
1286    with_x=yes ;;
1287
1288  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1289  | --x-incl | --x-inc | --x-in | --x-i)
1290    ac_prev=x_includes ;;
1291  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1292  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1293    x_includes=$ac_optarg ;;
1294
1295  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1296  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1297    ac_prev=x_libraries ;;
1298  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1299  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1300    x_libraries=$ac_optarg ;;
1301
1302  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1303Try \`$0 --help' for more information"
1304    ;;
1305
1306  *=*)
1307    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1308    # Reject names that are not valid shell variable names.
1309    case $ac_envvar in #(
1310      '' | [0-9]* | *[!_$as_cr_alnum]* )
1311      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1312    esac
1313    eval $ac_envvar=\$ac_optarg
1314    export $ac_envvar ;;
1315
1316  *)
1317    # FIXME: should be removed in autoconf 3.0.
1318    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1319    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1320      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1321    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1322    ;;
1323
1324  esac
1325done
1326
1327if test -n "$ac_prev"; then
1328  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1329  as_fn_error $? "missing argument to $ac_option"
1330fi
1331
1332if test -n "$ac_unrecognized_opts"; then
1333  case $enable_option_checking in
1334    no) ;;
1335    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1336    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1337  esac
1338fi
1339
1340# Check all directory arguments for consistency.
1341for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1342		datadir sysconfdir sharedstatedir localstatedir includedir \
1343		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1344		libdir localedir mandir runstatedir
1345do
1346  eval ac_val=\$$ac_var
1347  # Remove trailing slashes.
1348  case $ac_val in
1349    */ )
1350      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1351      eval $ac_var=\$ac_val;;
1352  esac
1353  # Be sure to have absolute directory names.
1354  case $ac_val in
1355    [\\/$]* | ?:[\\/]* )  continue;;
1356    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1357  esac
1358  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1359done
1360
1361# There might be people who depend on the old broken behavior: `$host'
1362# used to hold the argument of --host etc.
1363# FIXME: To remove some day.
1364build=$build_alias
1365host=$host_alias
1366target=$target_alias
1367
1368# FIXME: To remove some day.
1369if test "x$host_alias" != x; then
1370  if test "x$build_alias" = x; then
1371    cross_compiling=maybe
1372  elif test "x$build_alias" != "x$host_alias"; then
1373    cross_compiling=yes
1374  fi
1375fi
1376
1377ac_tool_prefix=
1378test -n "$host_alias" && ac_tool_prefix=$host_alias-
1379
1380test "$silent" = yes && exec 6>/dev/null
1381
1382
1383ac_pwd=`pwd` && test -n "$ac_pwd" &&
1384ac_ls_di=`ls -di .` &&
1385ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1386  as_fn_error $? "working directory cannot be determined"
1387test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1388  as_fn_error $? "pwd does not report name of working directory"
1389
1390
1391# Find the source files, if location was not specified.
1392if test -z "$srcdir"; then
1393  ac_srcdir_defaulted=yes
1394  # Try the directory containing this script, then the parent directory.
1395  ac_confdir=`$as_dirname -- "$as_myself" ||
1396$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1397	 X"$as_myself" : 'X\(//\)[^/]' \| \
1398	 X"$as_myself" : 'X\(//\)$' \| \
1399	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1400$as_echo X"$as_myself" |
1401    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1402	    s//\1/
1403	    q
1404	  }
1405	  /^X\(\/\/\)[^/].*/{
1406	    s//\1/
1407	    q
1408	  }
1409	  /^X\(\/\/\)$/{
1410	    s//\1/
1411	    q
1412	  }
1413	  /^X\(\/\).*/{
1414	    s//\1/
1415	    q
1416	  }
1417	  s/.*/./; q'`
1418  srcdir=$ac_confdir
1419  if test ! -r "$srcdir/$ac_unique_file"; then
1420    srcdir=..
1421  fi
1422else
1423  ac_srcdir_defaulted=no
1424fi
1425if test ! -r "$srcdir/$ac_unique_file"; then
1426  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1427  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1428fi
1429ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1430ac_abs_confdir=`(
1431	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1432	pwd)`
1433# When building in place, set srcdir=.
1434if test "$ac_abs_confdir" = "$ac_pwd"; then
1435  srcdir=.
1436fi
1437# Remove unnecessary trailing slashes from srcdir.
1438# Double slashes in file names in object file debugging info
1439# mess up M-x gdb in Emacs.
1440case $srcdir in
1441*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1442esac
1443for ac_var in $ac_precious_vars; do
1444  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1445  eval ac_env_${ac_var}_value=\$${ac_var}
1446  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1447  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1448done
1449
1450#
1451# Report the --help message.
1452#
1453if test "$ac_init_help" = "long"; then
1454  # Omit some internal or obsolete options to make the list less imposing.
1455  # This message is too long to be a string in the A/UX 3.1 sh.
1456  cat <<_ACEOF
1457\`configure' configures this package to adapt to many kinds of systems.
1458
1459Usage: $0 [OPTION]... [VAR=VALUE]...
1460
1461To assign environment variables (e.g., CC, CFLAGS...), specify them as
1462VAR=VALUE.  See below for descriptions of some of the useful variables.
1463
1464Defaults for the options are specified in brackets.
1465
1466Configuration:
1467  -h, --help              display this help and exit
1468      --help=short        display options specific to this package
1469      --help=recursive    display the short help of all the included packages
1470  -V, --version           display version information and exit
1471  -q, --quiet, --silent   do not print \`checking ...' messages
1472      --cache-file=FILE   cache test results in FILE [disabled]
1473  -C, --config-cache      alias for \`--cache-file=config.cache'
1474  -n, --no-create         do not create output files
1475      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1476
1477Installation directories:
1478  --prefix=PREFIX         install architecture-independent files in PREFIX
1479                          [$ac_default_prefix]
1480  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1481                          [PREFIX]
1482
1483By default, \`make install' will install all the files in
1484\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1485an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1486for instance \`--prefix=\$HOME'.
1487
1488For better control, use the options below.
1489
1490Fine tuning of the installation directories:
1491  --bindir=DIR            user executables [EPREFIX/bin]
1492  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1493  --libexecdir=DIR        program executables [EPREFIX/libexec]
1494  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1495  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1496  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1497  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1498  --libdir=DIR            object code libraries [EPREFIX/lib]
1499  --includedir=DIR        C header files [PREFIX/include]
1500  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1501  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1502  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1503  --infodir=DIR           info documentation [DATAROOTDIR/info]
1504  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1505  --mandir=DIR            man documentation [DATAROOTDIR/man]
1506  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1507  --htmldir=DIR           html documentation [DOCDIR]
1508  --dvidir=DIR            dvi documentation [DOCDIR]
1509  --pdfdir=DIR            pdf documentation [DOCDIR]
1510  --psdir=DIR             ps documentation [DOCDIR]
1511_ACEOF
1512
1513  cat <<\_ACEOF
1514
1515System types:
1516  --build=BUILD     configure for building on BUILD [guessed]
1517  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1518_ACEOF
1519fi
1520
1521if test -n "$ac_init_help"; then
1522
1523  cat <<\_ACEOF
1524
1525Optional Features:
1526  --disable-option-checking  ignore unrecognized --enable/--with options
1527  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1528  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1529  --enable-maintainer-mode enable makefile rules useful for maintainers
1530  --enable-symlink-install use symlinks when installing instead of hard links
1531  --enable-relative-symlinks use relative symlinks when installing
1532
1533  --enable-symlink-build  use symlinks while building instead of hard links
1534  --enable-verbose-makecmds enable verbose make command output
1535  --enable-elf-shlibs	  select ELF shared libraries
1536  --enable-bsd-shlibs	  select BSD shared libraries
1537  --enable-profile	  build profiling libraries
1538  --enable-gcov	  	  build for coverage testing using gcov
1539  --enable-hardening	  	  build for coverage testing using gcov
1540  --enable-jbd-debug  	  enable journal debugging
1541  --enable-blkid-debug    enable blkid debugging
1542  --disable-testio-debug  disable the use of the test I/O manager for debugging
1543  --enable-libuuid	  build and use private uuid library
1544  --enable-libblkid	  build and use private blkid library
1545  --disable-backtrace	  disable use backtrace
1546  --disable-debugfs   	  disable support of debugfs program
1547  --disable-imager   	  disable support of e2image program
1548  --disable-resizer   	  disable support of e2resize program
1549  --disable-defrag   	  disable support of e4defrag program
1550  --enable-fsck           build fsck wrapper program
1551  --enable-e2initrd-helper build e2initrd-helper program
1552  --disable-tls           disable use of thread local support
1553  --disable-uuidd         disable building the uuid daemon
1554  --disable-mmp           disable support mmp, Multi Mount Protection
1555  --disable-tdb           disable tdb support
1556  --disable-bmap-stats    disable collection of bitmap stats.
1557  --enable-bmap-stats-ops enable collection of additional bitmap stats
1558  --disable-nls           do not use Native Language Support
1559  --enable-threads={posix|solaris|pth|windows}
1560                          specify multithreading API
1561  --disable-threads       build without multithread safety
1562  --disable-rpath         do not hardcode runtime library paths
1563  --disable-fuse2fs	  do not build fuse2fs
1564
1565Optional Packages:
1566  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1567  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1568  --with-diet-libc        use diet libc
1569  --with-cc               no longer supported, use CC= instead
1570  --with-ccopts           no longer supported, use CFLAGS= instead
1571  --with-ldopts           no longer supported, use LDFLAGS= instead
1572  --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1573  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1574  --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
1575  --without-libpth-prefix     don't search for libpth in includedir and libdir
1576  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1577  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1578  --with-included-gettext use the GNU gettext library included here
1579  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1580  --without-libintl-prefix     don't search for libintl in includedir and libdir
1581  --with-multiarch=ARCH specify the multiarch triplet
1582
1583Some influential environment variables:
1584  CC          C compiler command
1585  CFLAGS      C compiler flags
1586  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1587              nonstandard directory <lib dir>
1588  LIBS        libraries to pass to the linker, e.g. -l<library>
1589  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1590              you have headers in a nonstandard directory <include dir>
1591  CPP         C preprocessor
1592  PKG_CONFIG  path to pkg-config utility
1593  PKG_CONFIG_PATH
1594              directories to add to pkg-config's search path
1595  PKG_CONFIG_LIBDIR
1596              path overriding pkg-config's built-in search path
1597
1598Use these variables to override the choices made by `configure' or to help
1599it to find libraries and programs with nonstandard names/locations.
1600
1601Report bugs to the package provider.
1602_ACEOF
1603ac_status=$?
1604fi
1605
1606if test "$ac_init_help" = "recursive"; then
1607  # If there are subdirs, report their specific --help.
1608  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1609    test -d "$ac_dir" ||
1610      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1611      continue
1612    ac_builddir=.
1613
1614case "$ac_dir" in
1615.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616*)
1617  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1618  # A ".." for each directory in $ac_dir_suffix.
1619  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1620  case $ac_top_builddir_sub in
1621  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1623  esac ;;
1624esac
1625ac_abs_top_builddir=$ac_pwd
1626ac_abs_builddir=$ac_pwd$ac_dir_suffix
1627# for backward compatibility:
1628ac_top_builddir=$ac_top_build_prefix
1629
1630case $srcdir in
1631  .)  # We are building in place.
1632    ac_srcdir=.
1633    ac_top_srcdir=$ac_top_builddir_sub
1634    ac_abs_top_srcdir=$ac_pwd ;;
1635  [\\/]* | ?:[\\/]* )  # Absolute name.
1636    ac_srcdir=$srcdir$ac_dir_suffix;
1637    ac_top_srcdir=$srcdir
1638    ac_abs_top_srcdir=$srcdir ;;
1639  *) # Relative name.
1640    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1641    ac_top_srcdir=$ac_top_build_prefix$srcdir
1642    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1643esac
1644ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1645
1646    cd "$ac_dir" || { ac_status=$?; continue; }
1647    # Check for guested configure.
1648    if test -f "$ac_srcdir/configure.gnu"; then
1649      echo &&
1650      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1651    elif test -f "$ac_srcdir/configure"; then
1652      echo &&
1653      $SHELL "$ac_srcdir/configure" --help=recursive
1654    else
1655      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1656    fi || ac_status=$?
1657    cd "$ac_pwd" || { ac_status=$?; break; }
1658  done
1659fi
1660
1661test -n "$ac_init_help" && exit $ac_status
1662if $ac_init_version; then
1663  cat <<\_ACEOF
1664configure
1665generated by GNU Autoconf 2.69
1666
1667Copyright (C) 2012 Free Software Foundation, Inc.
1668This configure script is free software; the Free Software Foundation
1669gives unlimited permission to copy, distribute and modify it.
1670_ACEOF
1671  exit
1672fi
1673
1674## ------------------------ ##
1675## Autoconf initialization. ##
1676## ------------------------ ##
1677
1678# ac_fn_c_try_compile LINENO
1679# --------------------------
1680# Try to compile conftest.$ac_ext, and return whether this succeeded.
1681ac_fn_c_try_compile ()
1682{
1683  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684  rm -f conftest.$ac_objext
1685  if { { ac_try="$ac_compile"
1686case "(($ac_try" in
1687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688  *) ac_try_echo=$ac_try;;
1689esac
1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691$as_echo "$ac_try_echo"; } >&5
1692  (eval "$ac_compile") 2>conftest.err
1693  ac_status=$?
1694  if test -s conftest.err; then
1695    grep -v '^ *+' conftest.err >conftest.er1
1696    cat conftest.er1 >&5
1697    mv -f conftest.er1 conftest.err
1698  fi
1699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700  test $ac_status = 0; } && {
1701	 test -z "$ac_c_werror_flag" ||
1702	 test ! -s conftest.err
1703       } && test -s conftest.$ac_objext; then :
1704  ac_retval=0
1705else
1706  $as_echo "$as_me: failed program was:" >&5
1707sed 's/^/| /' conftest.$ac_ext >&5
1708
1709	ac_retval=1
1710fi
1711  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712  as_fn_set_status $ac_retval
1713
1714} # ac_fn_c_try_compile
1715
1716# ac_fn_c_try_link LINENO
1717# -----------------------
1718# Try to link conftest.$ac_ext, and return whether this succeeded.
1719ac_fn_c_try_link ()
1720{
1721  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722  rm -f conftest.$ac_objext conftest$ac_exeext
1723  if { { ac_try="$ac_link"
1724case "(($ac_try" in
1725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726  *) ac_try_echo=$ac_try;;
1727esac
1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729$as_echo "$ac_try_echo"; } >&5
1730  (eval "$ac_link") 2>conftest.err
1731  ac_status=$?
1732  if test -s conftest.err; then
1733    grep -v '^ *+' conftest.err >conftest.er1
1734    cat conftest.er1 >&5
1735    mv -f conftest.er1 conftest.err
1736  fi
1737  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738  test $ac_status = 0; } && {
1739	 test -z "$ac_c_werror_flag" ||
1740	 test ! -s conftest.err
1741       } && test -s conftest$ac_exeext && {
1742	 test "$cross_compiling" = yes ||
1743	 test -x conftest$ac_exeext
1744       }; then :
1745  ac_retval=0
1746else
1747  $as_echo "$as_me: failed program was:" >&5
1748sed 's/^/| /' conftest.$ac_ext >&5
1749
1750	ac_retval=1
1751fi
1752  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1753  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1754  # interfere with the next link command; also delete a directory that is
1755  # left behind by Apple's compiler.  We do this before executing the actions.
1756  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1757  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758  as_fn_set_status $ac_retval
1759
1760} # ac_fn_c_try_link
1761
1762# ac_fn_c_try_cpp LINENO
1763# ----------------------
1764# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1765ac_fn_c_try_cpp ()
1766{
1767  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768  if { { ac_try="$ac_cpp conftest.$ac_ext"
1769case "(($ac_try" in
1770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771  *) ac_try_echo=$ac_try;;
1772esac
1773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774$as_echo "$ac_try_echo"; } >&5
1775  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1776  ac_status=$?
1777  if test -s conftest.err; then
1778    grep -v '^ *+' conftest.err >conftest.er1
1779    cat conftest.er1 >&5
1780    mv -f conftest.er1 conftest.err
1781  fi
1782  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783  test $ac_status = 0; } > conftest.i && {
1784	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1785	 test ! -s conftest.err
1786       }; then :
1787  ac_retval=0
1788else
1789  $as_echo "$as_me: failed program was:" >&5
1790sed 's/^/| /' conftest.$ac_ext >&5
1791
1792    ac_retval=1
1793fi
1794  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795  as_fn_set_status $ac_retval
1796
1797} # ac_fn_c_try_cpp
1798
1799# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1800# -------------------------------------------------------
1801# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1802# the include files in INCLUDES and setting the cache variable VAR
1803# accordingly.
1804ac_fn_c_check_header_mongrel ()
1805{
1806  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807  if eval \${$3+:} false; then :
1808  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809$as_echo_n "checking for $2... " >&6; }
1810if eval \${$3+:} false; then :
1811  $as_echo_n "(cached) " >&6
1812fi
1813eval ac_res=\$$3
1814	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815$as_echo "$ac_res" >&6; }
1816else
1817  # Is the header compilable?
1818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1819$as_echo_n "checking $2 usability... " >&6; }
1820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821/* end confdefs.h.  */
1822$4
1823#include <$2>
1824_ACEOF
1825if ac_fn_c_try_compile "$LINENO"; then :
1826  ac_header_compiler=yes
1827else
1828  ac_header_compiler=no
1829fi
1830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1832$as_echo "$ac_header_compiler" >&6; }
1833
1834# Is the header present?
1835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1836$as_echo_n "checking $2 presence... " >&6; }
1837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838/* end confdefs.h.  */
1839#include <$2>
1840_ACEOF
1841if ac_fn_c_try_cpp "$LINENO"; then :
1842  ac_header_preproc=yes
1843else
1844  ac_header_preproc=no
1845fi
1846rm -f conftest.err conftest.i conftest.$ac_ext
1847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1848$as_echo "$ac_header_preproc" >&6; }
1849
1850# So?  What about this header?
1851case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1852  yes:no: )
1853    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1854$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1855    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1856$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1857    ;;
1858  no:yes:* )
1859    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1860$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1861    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1862$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1863    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1864$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1865    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1866$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1867    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1868$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1869    ;;
1870esac
1871  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872$as_echo_n "checking for $2... " >&6; }
1873if eval \${$3+:} false; then :
1874  $as_echo_n "(cached) " >&6
1875else
1876  eval "$3=\$ac_header_compiler"
1877fi
1878eval ac_res=\$$3
1879	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880$as_echo "$ac_res" >&6; }
1881fi
1882  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883
1884} # ac_fn_c_check_header_mongrel
1885
1886# ac_fn_c_try_run LINENO
1887# ----------------------
1888# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1889# that executables *can* be run.
1890ac_fn_c_try_run ()
1891{
1892  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893  if { { ac_try="$ac_link"
1894case "(($ac_try" in
1895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896  *) ac_try_echo=$ac_try;;
1897esac
1898eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899$as_echo "$ac_try_echo"; } >&5
1900  (eval "$ac_link") 2>&5
1901  ac_status=$?
1902  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1904  { { case "(($ac_try" in
1905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906  *) ac_try_echo=$ac_try;;
1907esac
1908eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909$as_echo "$ac_try_echo"; } >&5
1910  (eval "$ac_try") 2>&5
1911  ac_status=$?
1912  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913  test $ac_status = 0; }; }; then :
1914  ac_retval=0
1915else
1916  $as_echo "$as_me: program exited with status $ac_status" >&5
1917       $as_echo "$as_me: failed program was:" >&5
1918sed 's/^/| /' conftest.$ac_ext >&5
1919
1920       ac_retval=$ac_status
1921fi
1922  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1923  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924  as_fn_set_status $ac_retval
1925
1926} # ac_fn_c_try_run
1927
1928# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1929# -------------------------------------------------------
1930# Tests whether HEADER exists and can be compiled using the include files in
1931# INCLUDES, setting the cache variable VAR accordingly.
1932ac_fn_c_check_header_compile ()
1933{
1934  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936$as_echo_n "checking for $2... " >&6; }
1937if eval \${$3+:} false; then :
1938  $as_echo_n "(cached) " >&6
1939else
1940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941/* end confdefs.h.  */
1942$4
1943#include <$2>
1944_ACEOF
1945if ac_fn_c_try_compile "$LINENO"; then :
1946  eval "$3=yes"
1947else
1948  eval "$3=no"
1949fi
1950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951fi
1952eval ac_res=\$$3
1953	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954$as_echo "$ac_res" >&6; }
1955  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956
1957} # ac_fn_c_check_header_compile
1958
1959# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1960# -------------------------------------------
1961# Tests whether TYPE exists after having included INCLUDES, setting cache
1962# variable VAR accordingly.
1963ac_fn_c_check_type ()
1964{
1965  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967$as_echo_n "checking for $2... " >&6; }
1968if eval \${$3+:} false; then :
1969  $as_echo_n "(cached) " >&6
1970else
1971  eval "$3=no"
1972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973/* end confdefs.h.  */
1974$4
1975int
1976main ()
1977{
1978if (sizeof ($2))
1979	 return 0;
1980  ;
1981  return 0;
1982}
1983_ACEOF
1984if ac_fn_c_try_compile "$LINENO"; then :
1985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986/* end confdefs.h.  */
1987$4
1988int
1989main ()
1990{
1991if (sizeof (($2)))
1992	    return 0;
1993  ;
1994  return 0;
1995}
1996_ACEOF
1997if ac_fn_c_try_compile "$LINENO"; then :
1998
1999else
2000  eval "$3=yes"
2001fi
2002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003fi
2004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005fi
2006eval ac_res=\$$3
2007	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2008$as_echo "$ac_res" >&6; }
2009  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010
2011} # ac_fn_c_check_type
2012
2013# ac_fn_c_check_func LINENO FUNC VAR
2014# ----------------------------------
2015# Tests whether FUNC exists, setting the cache variable VAR accordingly
2016ac_fn_c_check_func ()
2017{
2018  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2020$as_echo_n "checking for $2... " >&6; }
2021if eval \${$3+:} false; then :
2022  $as_echo_n "(cached) " >&6
2023else
2024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025/* end confdefs.h.  */
2026/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2027   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2028#define $2 innocuous_$2
2029
2030/* System header to define __stub macros and hopefully few prototypes,
2031    which can conflict with char $2 (); below.
2032    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2033    <limits.h> exists even on freestanding compilers.  */
2034
2035#ifdef __STDC__
2036# include <limits.h>
2037#else
2038# include <assert.h>
2039#endif
2040
2041#undef $2
2042
2043/* Override any GCC internal prototype to avoid an error.
2044   Use char because int might match the return type of a GCC
2045   builtin and then its argument prototype would still apply.  */
2046#ifdef __cplusplus
2047extern "C"
2048#endif
2049char $2 ();
2050/* The GNU C library defines this for functions which it implements
2051    to always fail with ENOSYS.  Some functions are actually named
2052    something starting with __ and the normal name is an alias.  */
2053#if defined __stub_$2 || defined __stub___$2
2054choke me
2055#endif
2056
2057int
2058main ()
2059{
2060return $2 ();
2061  ;
2062  return 0;
2063}
2064_ACEOF
2065if ac_fn_c_try_link "$LINENO"; then :
2066  eval "$3=yes"
2067else
2068  eval "$3=no"
2069fi
2070rm -f core conftest.err conftest.$ac_objext \
2071    conftest$ac_exeext conftest.$ac_ext
2072fi
2073eval ac_res=\$$3
2074	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075$as_echo "$ac_res" >&6; }
2076  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077
2078} # ac_fn_c_check_func
2079
2080# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2081# ---------------------------------------------
2082# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2083# accordingly.
2084ac_fn_c_check_decl ()
2085{
2086  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2087  as_decl_name=`echo $2|sed 's/ *(.*//'`
2088  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2089  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2090$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2091if eval \${$3+:} false; then :
2092  $as_echo_n "(cached) " >&6
2093else
2094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095/* end confdefs.h.  */
2096$4
2097int
2098main ()
2099{
2100#ifndef $as_decl_name
2101#ifdef __cplusplus
2102  (void) $as_decl_use;
2103#else
2104  (void) $as_decl_name;
2105#endif
2106#endif
2107
2108  ;
2109  return 0;
2110}
2111_ACEOF
2112if ac_fn_c_try_compile "$LINENO"; then :
2113  eval "$3=yes"
2114else
2115  eval "$3=no"
2116fi
2117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118fi
2119eval ac_res=\$$3
2120	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2121$as_echo "$ac_res" >&6; }
2122  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2123
2124} # ac_fn_c_check_decl
2125
2126# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2127# --------------------------------------------
2128# Tries to find the compile-time value of EXPR in a program that includes
2129# INCLUDES, setting VAR accordingly. Returns whether the value could be
2130# computed
2131ac_fn_c_compute_int ()
2132{
2133  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2134  if test "$cross_compiling" = yes; then
2135    # Depending upon the size, compute the lo and hi bounds.
2136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137/* end confdefs.h.  */
2138$4
2139int
2140main ()
2141{
2142static int test_array [1 - 2 * !(($2) >= 0)];
2143test_array [0] = 0;
2144return test_array [0];
2145
2146  ;
2147  return 0;
2148}
2149_ACEOF
2150if ac_fn_c_try_compile "$LINENO"; then :
2151  ac_lo=0 ac_mid=0
2152  while :; do
2153    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154/* end confdefs.h.  */
2155$4
2156int
2157main ()
2158{
2159static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2160test_array [0] = 0;
2161return test_array [0];
2162
2163  ;
2164  return 0;
2165}
2166_ACEOF
2167if ac_fn_c_try_compile "$LINENO"; then :
2168  ac_hi=$ac_mid; break
2169else
2170  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2171			if test $ac_lo -le $ac_mid; then
2172			  ac_lo= ac_hi=
2173			  break
2174			fi
2175			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2176fi
2177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178  done
2179else
2180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181/* end confdefs.h.  */
2182$4
2183int
2184main ()
2185{
2186static int test_array [1 - 2 * !(($2) < 0)];
2187test_array [0] = 0;
2188return test_array [0];
2189
2190  ;
2191  return 0;
2192}
2193_ACEOF
2194if ac_fn_c_try_compile "$LINENO"; then :
2195  ac_hi=-1 ac_mid=-1
2196  while :; do
2197    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2198/* end confdefs.h.  */
2199$4
2200int
2201main ()
2202{
2203static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2204test_array [0] = 0;
2205return test_array [0];
2206
2207  ;
2208  return 0;
2209}
2210_ACEOF
2211if ac_fn_c_try_compile "$LINENO"; then :
2212  ac_lo=$ac_mid; break
2213else
2214  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2215			if test $ac_mid -le $ac_hi; then
2216			  ac_lo= ac_hi=
2217			  break
2218			fi
2219			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2220fi
2221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2222  done
2223else
2224  ac_lo= ac_hi=
2225fi
2226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227fi
2228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229# Binary search between lo and hi bounds.
2230while test "x$ac_lo" != "x$ac_hi"; do
2231  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233/* end confdefs.h.  */
2234$4
2235int
2236main ()
2237{
2238static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2239test_array [0] = 0;
2240return test_array [0];
2241
2242  ;
2243  return 0;
2244}
2245_ACEOF
2246if ac_fn_c_try_compile "$LINENO"; then :
2247  ac_hi=$ac_mid
2248else
2249  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2250fi
2251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252done
2253case $ac_lo in #((
2254?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2255'') ac_retval=1 ;;
2256esac
2257  else
2258    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259/* end confdefs.h.  */
2260$4
2261static long int longval () { return $2; }
2262static unsigned long int ulongval () { return $2; }
2263#include <stdio.h>
2264#include <stdlib.h>
2265int
2266main ()
2267{
2268
2269  FILE *f = fopen ("conftest.val", "w");
2270  if (! f)
2271    return 1;
2272  if (($2) < 0)
2273    {
2274      long int i = longval ();
2275      if (i != ($2))
2276	return 1;
2277      fprintf (f, "%ld", i);
2278    }
2279  else
2280    {
2281      unsigned long int i = ulongval ();
2282      if (i != ($2))
2283	return 1;
2284      fprintf (f, "%lu", i);
2285    }
2286  /* Do not output a trailing newline, as this causes \r\n confusion
2287     on some platforms.  */
2288  return ferror (f) || fclose (f) != 0;
2289
2290  ;
2291  return 0;
2292}
2293_ACEOF
2294if ac_fn_c_try_run "$LINENO"; then :
2295  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2296else
2297  ac_retval=1
2298fi
2299rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2300  conftest.$ac_objext conftest.beam conftest.$ac_ext
2301rm -f conftest.val
2302
2303  fi
2304  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2305  as_fn_set_status $ac_retval
2306
2307} # ac_fn_c_compute_int
2308
2309# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2310# ----------------------------------------------------
2311# Tries to find if the field MEMBER exists in type AGGR, after including
2312# INCLUDES, setting cache variable VAR accordingly.
2313ac_fn_c_check_member ()
2314{
2315  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2317$as_echo_n "checking for $2.$3... " >&6; }
2318if eval \${$4+:} false; then :
2319  $as_echo_n "(cached) " >&6
2320else
2321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322/* end confdefs.h.  */
2323$5
2324int
2325main ()
2326{
2327static $2 ac_aggr;
2328if (ac_aggr.$3)
2329return 0;
2330  ;
2331  return 0;
2332}
2333_ACEOF
2334if ac_fn_c_try_compile "$LINENO"; then :
2335  eval "$4=yes"
2336else
2337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338/* end confdefs.h.  */
2339$5
2340int
2341main ()
2342{
2343static $2 ac_aggr;
2344if (sizeof ac_aggr.$3)
2345return 0;
2346  ;
2347  return 0;
2348}
2349_ACEOF
2350if ac_fn_c_try_compile "$LINENO"; then :
2351  eval "$4=yes"
2352else
2353  eval "$4=no"
2354fi
2355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356fi
2357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358fi
2359eval ac_res=\$$4
2360	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2361$as_echo "$ac_res" >&6; }
2362  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2363
2364} # ac_fn_c_check_member
2365cat >config.log <<_ACEOF
2366This file contains any messages produced by compilers while
2367running configure, to aid debugging if configure makes a mistake.
2368
2369It was created by $as_me, which was
2370generated by GNU Autoconf 2.69.  Invocation command line was
2371
2372  $ $0 $@
2373
2374_ACEOF
2375exec 5>>config.log
2376{
2377cat <<_ASUNAME
2378## --------- ##
2379## Platform. ##
2380## --------- ##
2381
2382hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2383uname -m = `(uname -m) 2>/dev/null || echo unknown`
2384uname -r = `(uname -r) 2>/dev/null || echo unknown`
2385uname -s = `(uname -s) 2>/dev/null || echo unknown`
2386uname -v = `(uname -v) 2>/dev/null || echo unknown`
2387
2388/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2389/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2390
2391/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2392/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2393/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2394/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2395/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2396/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2397/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2398
2399_ASUNAME
2400
2401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402for as_dir in $PATH
2403do
2404  IFS=$as_save_IFS
2405  test -z "$as_dir" && as_dir=.
2406    $as_echo "PATH: $as_dir"
2407  done
2408IFS=$as_save_IFS
2409
2410} >&5
2411
2412cat >&5 <<_ACEOF
2413
2414
2415## ----------- ##
2416## Core tests. ##
2417## ----------- ##
2418
2419_ACEOF
2420
2421
2422# Keep a trace of the command line.
2423# Strip out --no-create and --no-recursion so they do not pile up.
2424# Strip out --silent because we don't want to record it for future runs.
2425# Also quote any args containing shell meta-characters.
2426# Make two passes to allow for proper duplicate-argument suppression.
2427ac_configure_args=
2428ac_configure_args0=
2429ac_configure_args1=
2430ac_must_keep_next=false
2431for ac_pass in 1 2
2432do
2433  for ac_arg
2434  do
2435    case $ac_arg in
2436    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2437    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2438    | -silent | --silent | --silen | --sile | --sil)
2439      continue ;;
2440    *\'*)
2441      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2442    esac
2443    case $ac_pass in
2444    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2445    2)
2446      as_fn_append ac_configure_args1 " '$ac_arg'"
2447      if test $ac_must_keep_next = true; then
2448	ac_must_keep_next=false # Got value, back to normal.
2449      else
2450	case $ac_arg in
2451	  *=* | --config-cache | -C | -disable-* | --disable-* \
2452	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2453	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2454	  | -with-* | --with-* | -without-* | --without-* | --x)
2455	    case "$ac_configure_args0 " in
2456	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2457	    esac
2458	    ;;
2459	  -* ) ac_must_keep_next=true ;;
2460	esac
2461      fi
2462      as_fn_append ac_configure_args " '$ac_arg'"
2463      ;;
2464    esac
2465  done
2466done
2467{ ac_configure_args0=; unset ac_configure_args0;}
2468{ ac_configure_args1=; unset ac_configure_args1;}
2469
2470# When interrupted or exit'd, cleanup temporary files, and complete
2471# config.log.  We remove comments because anyway the quotes in there
2472# would cause problems or look ugly.
2473# WARNING: Use '\'' to represent an apostrophe within the trap.
2474# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2475trap 'exit_status=$?
2476  # Save into config.log some information that might help in debugging.
2477  {
2478    echo
2479
2480    $as_echo "## ---------------- ##
2481## Cache variables. ##
2482## ---------------- ##"
2483    echo
2484    # The following way of writing the cache mishandles newlines in values,
2485(
2486  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2487    eval ac_val=\$$ac_var
2488    case $ac_val in #(
2489    *${as_nl}*)
2490      case $ac_var in #(
2491      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2492$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2493      esac
2494      case $ac_var in #(
2495      _ | IFS | as_nl) ;; #(
2496      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2497      *) { eval $ac_var=; unset $ac_var;} ;;
2498      esac ;;
2499    esac
2500  done
2501  (set) 2>&1 |
2502    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2503    *${as_nl}ac_space=\ *)
2504      sed -n \
2505	"s/'\''/'\''\\\\'\'''\''/g;
2506	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2507      ;; #(
2508    *)
2509      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2510      ;;
2511    esac |
2512    sort
2513)
2514    echo
2515
2516    $as_echo "## ----------------- ##
2517## Output variables. ##
2518## ----------------- ##"
2519    echo
2520    for ac_var in $ac_subst_vars
2521    do
2522      eval ac_val=\$$ac_var
2523      case $ac_val in
2524      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2525      esac
2526      $as_echo "$ac_var='\''$ac_val'\''"
2527    done | sort
2528    echo
2529
2530    if test -n "$ac_subst_files"; then
2531      $as_echo "## ------------------- ##
2532## File substitutions. ##
2533## ------------------- ##"
2534      echo
2535      for ac_var in $ac_subst_files
2536      do
2537	eval ac_val=\$$ac_var
2538	case $ac_val in
2539	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2540	esac
2541	$as_echo "$ac_var='\''$ac_val'\''"
2542      done | sort
2543      echo
2544    fi
2545
2546    if test -s confdefs.h; then
2547      $as_echo "## ----------- ##
2548## confdefs.h. ##
2549## ----------- ##"
2550      echo
2551      cat confdefs.h
2552      echo
2553    fi
2554    test "$ac_signal" != 0 &&
2555      $as_echo "$as_me: caught signal $ac_signal"
2556    $as_echo "$as_me: exit $exit_status"
2557  } >&5
2558  rm -f core *.core core.conftest.* &&
2559    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2560    exit $exit_status
2561' 0
2562for ac_signal in 1 2 13 15; do
2563  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2564done
2565ac_signal=0
2566
2567# confdefs.h avoids OS command line length limits that DEFS can exceed.
2568rm -f -r conftest* confdefs.h
2569
2570$as_echo "/* confdefs.h */" > confdefs.h
2571
2572# Predefined preprocessor variables.
2573
2574cat >>confdefs.h <<_ACEOF
2575#define PACKAGE_NAME "$PACKAGE_NAME"
2576_ACEOF
2577
2578cat >>confdefs.h <<_ACEOF
2579#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2580_ACEOF
2581
2582cat >>confdefs.h <<_ACEOF
2583#define PACKAGE_VERSION "$PACKAGE_VERSION"
2584_ACEOF
2585
2586cat >>confdefs.h <<_ACEOF
2587#define PACKAGE_STRING "$PACKAGE_STRING"
2588_ACEOF
2589
2590cat >>confdefs.h <<_ACEOF
2591#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2592_ACEOF
2593
2594cat >>confdefs.h <<_ACEOF
2595#define PACKAGE_URL "$PACKAGE_URL"
2596_ACEOF
2597
2598
2599# Let the site file select an alternate cache file if it wants to.
2600# Prefer an explicitly selected file to automatically selected ones.
2601ac_site_file1=NONE
2602ac_site_file2=NONE
2603if test -n "$CONFIG_SITE"; then
2604  # We do not want a PATH search for config.site.
2605  case $CONFIG_SITE in #((
2606    -*)  ac_site_file1=./$CONFIG_SITE;;
2607    */*) ac_site_file1=$CONFIG_SITE;;
2608    *)   ac_site_file1=./$CONFIG_SITE;;
2609  esac
2610elif test "x$prefix" != xNONE; then
2611  ac_site_file1=$prefix/share/config.site
2612  ac_site_file2=$prefix/etc/config.site
2613else
2614  ac_site_file1=$ac_default_prefix/share/config.site
2615  ac_site_file2=$ac_default_prefix/etc/config.site
2616fi
2617for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2618do
2619  test "x$ac_site_file" = xNONE && continue
2620  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2621    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2622$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2623    sed 's/^/| /' "$ac_site_file" >&5
2624    . "$ac_site_file" \
2625      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2627as_fn_error $? "failed to load site script $ac_site_file
2628See \`config.log' for more details" "$LINENO" 5; }
2629  fi
2630done
2631
2632if test -r "$cache_file"; then
2633  # Some versions of bash will fail to source /dev/null (special files
2634  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2635  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2636    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2637$as_echo "$as_me: loading cache $cache_file" >&6;}
2638    case $cache_file in
2639      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2640      *)                      . "./$cache_file";;
2641    esac
2642  fi
2643else
2644  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2645$as_echo "$as_me: creating cache $cache_file" >&6;}
2646  >$cache_file
2647fi
2648
2649gt_needs="$gt_needs "
2650as_fn_append ac_header_list " stdlib.h"
2651as_fn_append ac_header_list " unistd.h"
2652as_fn_append ac_header_list " sys/param.h"
2653as_fn_append ac_func_list " symlink"
2654# Check that the precious variables saved in the cache have kept the same
2655# value.
2656ac_cache_corrupted=false
2657for ac_var in $ac_precious_vars; do
2658  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2659  eval ac_new_set=\$ac_env_${ac_var}_set
2660  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2661  eval ac_new_val=\$ac_env_${ac_var}_value
2662  case $ac_old_set,$ac_new_set in
2663    set,)
2664      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2665$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2666      ac_cache_corrupted=: ;;
2667    ,set)
2668      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2669$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2670      ac_cache_corrupted=: ;;
2671    ,);;
2672    *)
2673      if test "x$ac_old_val" != "x$ac_new_val"; then
2674	# differences in whitespace do not lead to failure.
2675	ac_old_val_w=`echo x $ac_old_val`
2676	ac_new_val_w=`echo x $ac_new_val`
2677	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2678	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2679$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2680	  ac_cache_corrupted=:
2681	else
2682	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2683$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2684	  eval $ac_var=\$ac_old_val
2685	fi
2686	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2687$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2688	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2689$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2690      fi;;
2691  esac
2692  # Pass precious variables to config.status.
2693  if test "$ac_new_set" = set; then
2694    case $ac_new_val in
2695    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2696    *) ac_arg=$ac_var=$ac_new_val ;;
2697    esac
2698    case " $ac_configure_args " in
2699      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2700      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2701    esac
2702  fi
2703done
2704if $ac_cache_corrupted; then
2705  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2706$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2707  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2708$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2709  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2710fi
2711## -------------------- ##
2712## Main body of script. ##
2713## -------------------- ##
2714
2715ac_ext=c
2716ac_cpp='$CPP $CPPFLAGS'
2717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2719ac_compiler_gnu=$ac_cv_c_compiler_gnu
2720
2721
2722
2723ac_aux_dir=
2724for ac_dir in config "$srcdir"/config; do
2725  if test -f "$ac_dir/install-sh"; then
2726    ac_aux_dir=$ac_dir
2727    ac_install_sh="$ac_aux_dir/install-sh -c"
2728    break
2729  elif test -f "$ac_dir/install.sh"; then
2730    ac_aux_dir=$ac_dir
2731    ac_install_sh="$ac_aux_dir/install.sh -c"
2732    break
2733  elif test -f "$ac_dir/shtool"; then
2734    ac_aux_dir=$ac_dir
2735    ac_install_sh="$ac_aux_dir/shtool install -c"
2736    break
2737  fi
2738done
2739if test -z "$ac_aux_dir"; then
2740  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2741fi
2742
2743# These three variables are undocumented and unsupported,
2744# and are intended to be withdrawn in a future Autoconf release.
2745# They can cause serious problems if a builder's source tree is in a directory
2746# whose full name contains unusual characters.
2747ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2748ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2749ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2750
2751
2752ac_config_headers="$ac_config_headers lib/config.h"
2753
2754
2755MCONFIG=./MCONFIG
2756
2757BINARY_TYPE=bin
2758E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
2759	| awk '{print $3}' | tr \" " " | awk '{print $1}'`
2760DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2761	| tr \" " "`
2762E2FSPROGS_DAY=$(echo $DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2763MONTH=`echo $DATE | awk -F- '{print $2}'`
2764YEAR=`echo $DATE | awk -F- '{print $3}'`
2765
2766if expr $YEAR ">" 1900 > /dev/null ; then
2767	E2FSPROGS_YEAR=$YEAR
2768elif expr $YEAR ">" 90 >/dev/null ; then
2769	E2FSPROGS_YEAR=19$YEAR
2770else
2771	E2FSPROGS_YEAR=20$YEAR
2772fi
2773
2774case $MONTH in
2775Jan)	MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2776Feb)	MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2777Mar)	MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2778Apr)	MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2779May)	MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2780Jun)	MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2781Jul)	MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2782Aug)	MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2783Sep)	MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2784Oct)	MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2785Nov)	MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2786Dec)	MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2787*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2788$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2789esac
2790
2791base_ver=`echo $E2FSPROGS_VERSION | \
2792	       sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2793
2794date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2795
2796case $E2FSPROGS_VERSION in
2797*-WIP|pre-*)
2798	E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
2799	;;
2800*)
2801	E2FSPROGS_PKGVER="$base_ver"
2802	;;
2803esac
2804
2805unset DATE MONTH YEAR base_ver pre_vers date_spec
2806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2807$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2809$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2810
2811
2812
2813
2814
2815WITH_DIET_LIBC=
2816
2817# Check whether --with-diet-libc was given.
2818if test "${with_diet_libc+set}" = set; then :
2819  withval=$with_diet_libc; CC="diet cc -nostdinc"
2820WITH_DIET_LIBC=yes
2821if test -z "$LIBS"
2822then
2823	LIBS="-lcompat"
2824else
2825	LIBS="$LIBS -lcompat"
2826fi
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2828$as_echo "CC=$CC" >&6; }
2829fi
2830# Make sure we can run config.sub.
2831$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2832  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2833
2834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2835$as_echo_n "checking build system type... " >&6; }
2836if ${ac_cv_build+:} false; then :
2837  $as_echo_n "(cached) " >&6
2838else
2839  ac_build_alias=$build_alias
2840test "x$ac_build_alias" = x &&
2841  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2842test "x$ac_build_alias" = x &&
2843  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2844ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2845  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2846
2847fi
2848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2849$as_echo "$ac_cv_build" >&6; }
2850case $ac_cv_build in
2851*-*-*) ;;
2852*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2853esac
2854build=$ac_cv_build
2855ac_save_IFS=$IFS; IFS='-'
2856set x $ac_cv_build
2857shift
2858build_cpu=$1
2859build_vendor=$2
2860shift; shift
2861# Remember, the first character of IFS is used to create $*,
2862# except with old shells:
2863build_os=$*
2864IFS=$ac_save_IFS
2865case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2866
2867
2868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2869$as_echo_n "checking host system type... " >&6; }
2870if ${ac_cv_host+:} false; then :
2871  $as_echo_n "(cached) " >&6
2872else
2873  if test "x$host_alias" = x; then
2874  ac_cv_host=$ac_cv_build
2875else
2876  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2877    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2878fi
2879
2880fi
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2882$as_echo "$ac_cv_host" >&6; }
2883case $ac_cv_host in
2884*-*-*) ;;
2885*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2886esac
2887host=$ac_cv_host
2888ac_save_IFS=$IFS; IFS='-'
2889set x $ac_cv_host
2890shift
2891host_cpu=$1
2892host_vendor=$2
2893shift; shift
2894# Remember, the first character of IFS is used to create $*,
2895# except with old shells:
2896host_os=$*
2897IFS=$ac_save_IFS
2898case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2899
2900
2901DLOPEN_LIB=''
2902ac_ext=c
2903ac_cpp='$CPP $CPPFLAGS'
2904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2906ac_compiler_gnu=$ac_cv_c_compiler_gnu
2907if test -n "$ac_tool_prefix"; then
2908  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2909set dummy ${ac_tool_prefix}gcc; ac_word=$2
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911$as_echo_n "checking for $ac_word... " >&6; }
2912if ${ac_cv_prog_CC+:} false; then :
2913  $as_echo_n "(cached) " >&6
2914else
2915  if test -n "$CC"; then
2916  ac_cv_prog_CC="$CC" # Let the user override the test.
2917else
2918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919for as_dir in $PATH
2920do
2921  IFS=$as_save_IFS
2922  test -z "$as_dir" && as_dir=.
2923    for ac_exec_ext in '' $ac_executable_extensions; do
2924  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2926    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927    break 2
2928  fi
2929done
2930  done
2931IFS=$as_save_IFS
2932
2933fi
2934fi
2935CC=$ac_cv_prog_CC
2936if test -n "$CC"; then
2937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2938$as_echo "$CC" >&6; }
2939else
2940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941$as_echo "no" >&6; }
2942fi
2943
2944
2945fi
2946if test -z "$ac_cv_prog_CC"; then
2947  ac_ct_CC=$CC
2948  # Extract the first word of "gcc", so it can be a program name with args.
2949set dummy gcc; ac_word=$2
2950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951$as_echo_n "checking for $ac_word... " >&6; }
2952if ${ac_cv_prog_ac_ct_CC+:} false; then :
2953  $as_echo_n "(cached) " >&6
2954else
2955  if test -n "$ac_ct_CC"; then
2956  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2957else
2958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959for as_dir in $PATH
2960do
2961  IFS=$as_save_IFS
2962  test -z "$as_dir" && as_dir=.
2963    for ac_exec_ext in '' $ac_executable_extensions; do
2964  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2965    ac_cv_prog_ac_ct_CC="gcc"
2966    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967    break 2
2968  fi
2969done
2970  done
2971IFS=$as_save_IFS
2972
2973fi
2974fi
2975ac_ct_CC=$ac_cv_prog_ac_ct_CC
2976if test -n "$ac_ct_CC"; then
2977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2978$as_echo "$ac_ct_CC" >&6; }
2979else
2980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981$as_echo "no" >&6; }
2982fi
2983
2984  if test "x$ac_ct_CC" = x; then
2985    CC=""
2986  else
2987    case $cross_compiling:$ac_tool_warned in
2988yes:)
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2990$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2991ac_tool_warned=yes ;;
2992esac
2993    CC=$ac_ct_CC
2994  fi
2995else
2996  CC="$ac_cv_prog_CC"
2997fi
2998
2999if test -z "$CC"; then
3000          if test -n "$ac_tool_prefix"; then
3001    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3002set dummy ${ac_tool_prefix}cc; ac_word=$2
3003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004$as_echo_n "checking for $ac_word... " >&6; }
3005if ${ac_cv_prog_CC+:} false; then :
3006  $as_echo_n "(cached) " >&6
3007else
3008  if test -n "$CC"; then
3009  ac_cv_prog_CC="$CC" # Let the user override the test.
3010else
3011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012for as_dir in $PATH
3013do
3014  IFS=$as_save_IFS
3015  test -z "$as_dir" && as_dir=.
3016    for ac_exec_ext in '' $ac_executable_extensions; do
3017  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3018    ac_cv_prog_CC="${ac_tool_prefix}cc"
3019    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3020    break 2
3021  fi
3022done
3023  done
3024IFS=$as_save_IFS
3025
3026fi
3027fi
3028CC=$ac_cv_prog_CC
3029if test -n "$CC"; then
3030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3031$as_echo "$CC" >&6; }
3032else
3033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034$as_echo "no" >&6; }
3035fi
3036
3037
3038  fi
3039fi
3040if test -z "$CC"; then
3041  # Extract the first word of "cc", so it can be a program name with args.
3042set dummy cc; ac_word=$2
3043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044$as_echo_n "checking for $ac_word... " >&6; }
3045if ${ac_cv_prog_CC+:} false; then :
3046  $as_echo_n "(cached) " >&6
3047else
3048  if test -n "$CC"; then
3049  ac_cv_prog_CC="$CC" # Let the user override the test.
3050else
3051  ac_prog_rejected=no
3052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053for as_dir in $PATH
3054do
3055  IFS=$as_save_IFS
3056  test -z "$as_dir" && as_dir=.
3057    for ac_exec_ext in '' $ac_executable_extensions; do
3058  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3059    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3060       ac_prog_rejected=yes
3061       continue
3062     fi
3063    ac_cv_prog_CC="cc"
3064    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3065    break 2
3066  fi
3067done
3068  done
3069IFS=$as_save_IFS
3070
3071if test $ac_prog_rejected = yes; then
3072  # We found a bogon in the path, so make sure we never use it.
3073  set dummy $ac_cv_prog_CC
3074  shift
3075  if test $# != 0; then
3076    # We chose a different compiler from the bogus one.
3077    # However, it has the same basename, so the bogon will be chosen
3078    # first if we set CC to just the basename; use the full file name.
3079    shift
3080    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3081  fi
3082fi
3083fi
3084fi
3085CC=$ac_cv_prog_CC
3086if test -n "$CC"; then
3087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3088$as_echo "$CC" >&6; }
3089else
3090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091$as_echo "no" >&6; }
3092fi
3093
3094
3095fi
3096if test -z "$CC"; then
3097  if test -n "$ac_tool_prefix"; then
3098  for ac_prog in cl.exe
3099  do
3100    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3101set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103$as_echo_n "checking for $ac_word... " >&6; }
3104if ${ac_cv_prog_CC+:} false; then :
3105  $as_echo_n "(cached) " >&6
3106else
3107  if test -n "$CC"; then
3108  ac_cv_prog_CC="$CC" # Let the user override the test.
3109else
3110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111for as_dir in $PATH
3112do
3113  IFS=$as_save_IFS
3114  test -z "$as_dir" && as_dir=.
3115    for ac_exec_ext in '' $ac_executable_extensions; do
3116  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3117    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3118    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3119    break 2
3120  fi
3121done
3122  done
3123IFS=$as_save_IFS
3124
3125fi
3126fi
3127CC=$ac_cv_prog_CC
3128if test -n "$CC"; then
3129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3130$as_echo "$CC" >&6; }
3131else
3132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133$as_echo "no" >&6; }
3134fi
3135
3136
3137    test -n "$CC" && break
3138  done
3139fi
3140if test -z "$CC"; then
3141  ac_ct_CC=$CC
3142  for ac_prog in cl.exe
3143do
3144  # Extract the first word of "$ac_prog", so it can be a program name with args.
3145set dummy $ac_prog; ac_word=$2
3146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3147$as_echo_n "checking for $ac_word... " >&6; }
3148if ${ac_cv_prog_ac_ct_CC+:} false; then :
3149  $as_echo_n "(cached) " >&6
3150else
3151  if test -n "$ac_ct_CC"; then
3152  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3153else
3154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155for as_dir in $PATH
3156do
3157  IFS=$as_save_IFS
3158  test -z "$as_dir" && as_dir=.
3159    for ac_exec_ext in '' $ac_executable_extensions; do
3160  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3161    ac_cv_prog_ac_ct_CC="$ac_prog"
3162    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3163    break 2
3164  fi
3165done
3166  done
3167IFS=$as_save_IFS
3168
3169fi
3170fi
3171ac_ct_CC=$ac_cv_prog_ac_ct_CC
3172if test -n "$ac_ct_CC"; then
3173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3174$as_echo "$ac_ct_CC" >&6; }
3175else
3176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177$as_echo "no" >&6; }
3178fi
3179
3180
3181  test -n "$ac_ct_CC" && break
3182done
3183
3184  if test "x$ac_ct_CC" = x; then
3185    CC=""
3186  else
3187    case $cross_compiling:$ac_tool_warned in
3188yes:)
3189{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3190$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3191ac_tool_warned=yes ;;
3192esac
3193    CC=$ac_ct_CC
3194  fi
3195fi
3196
3197fi
3198
3199
3200test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3201$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3202as_fn_error $? "no acceptable C compiler found in \$PATH
3203See \`config.log' for more details" "$LINENO" 5; }
3204
3205# Provide some information about the compiler.
3206$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3207set X $ac_compile
3208ac_compiler=$2
3209for ac_option in --version -v -V -qversion; do
3210  { { ac_try="$ac_compiler $ac_option >&5"
3211case "(($ac_try" in
3212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213  *) ac_try_echo=$ac_try;;
3214esac
3215eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216$as_echo "$ac_try_echo"; } >&5
3217  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3218  ac_status=$?
3219  if test -s conftest.err; then
3220    sed '10a\
3221... rest of stderr output deleted ...
3222         10q' conftest.err >conftest.er1
3223    cat conftest.er1 >&5
3224  fi
3225  rm -f conftest.er1 conftest.err
3226  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3227  test $ac_status = 0; }
3228done
3229
3230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3231/* end confdefs.h.  */
3232
3233int
3234main ()
3235{
3236
3237  ;
3238  return 0;
3239}
3240_ACEOF
3241ac_clean_files_save=$ac_clean_files
3242ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3243# Try to create an executable without -o first, disregard a.out.
3244# It will help us diagnose broken compilers, and finding out an intuition
3245# of exeext.
3246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3247$as_echo_n "checking whether the C compiler works... " >&6; }
3248ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3249
3250# The possible output files:
3251ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3252
3253ac_rmfiles=
3254for ac_file in $ac_files
3255do
3256  case $ac_file in
3257    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3258    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3259  esac
3260done
3261rm -f $ac_rmfiles
3262
3263if { { ac_try="$ac_link_default"
3264case "(($ac_try" in
3265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266  *) ac_try_echo=$ac_try;;
3267esac
3268eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269$as_echo "$ac_try_echo"; } >&5
3270  (eval "$ac_link_default") 2>&5
3271  ac_status=$?
3272  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3273  test $ac_status = 0; }; then :
3274  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3275# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3276# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3277# so that the user can short-circuit this test for compilers unknown to
3278# Autoconf.
3279for ac_file in $ac_files ''
3280do
3281  test -f "$ac_file" || continue
3282  case $ac_file in
3283    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3284	;;
3285    [ab].out )
3286	# We found the default executable, but exeext='' is most
3287	# certainly right.
3288	break;;
3289    *.* )
3290	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3291	then :; else
3292	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3293	fi
3294	# We set ac_cv_exeext here because the later test for it is not
3295	# safe: cross compilers may not add the suffix if given an `-o'
3296	# argument, so we may need to know it at that point already.
3297	# Even if this section looks crufty: it has the advantage of
3298	# actually working.
3299	break;;
3300    * )
3301	break;;
3302  esac
3303done
3304test "$ac_cv_exeext" = no && ac_cv_exeext=
3305
3306else
3307  ac_file=''
3308fi
3309if test -z "$ac_file"; then :
3310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311$as_echo "no" >&6; }
3312$as_echo "$as_me: failed program was:" >&5
3313sed 's/^/| /' conftest.$ac_ext >&5
3314
3315{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3317as_fn_error 77 "C compiler cannot create executables
3318See \`config.log' for more details" "$LINENO" 5; }
3319else
3320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3321$as_echo "yes" >&6; }
3322fi
3323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3324$as_echo_n "checking for C compiler default output file name... " >&6; }
3325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3326$as_echo "$ac_file" >&6; }
3327ac_exeext=$ac_cv_exeext
3328
3329rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3330ac_clean_files=$ac_clean_files_save
3331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3332$as_echo_n "checking for suffix of executables... " >&6; }
3333if { { ac_try="$ac_link"
3334case "(($ac_try" in
3335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336  *) ac_try_echo=$ac_try;;
3337esac
3338eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3339$as_echo "$ac_try_echo"; } >&5
3340  (eval "$ac_link") 2>&5
3341  ac_status=$?
3342  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3343  test $ac_status = 0; }; then :
3344  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3345# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3346# work properly (i.e., refer to `conftest.exe'), while it won't with
3347# `rm'.
3348for ac_file in conftest.exe conftest conftest.*; do
3349  test -f "$ac_file" || continue
3350  case $ac_file in
3351    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3352    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3353	  break;;
3354    * ) break;;
3355  esac
3356done
3357else
3358  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3359$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3360as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3361See \`config.log' for more details" "$LINENO" 5; }
3362fi
3363rm -f conftest conftest$ac_cv_exeext
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3365$as_echo "$ac_cv_exeext" >&6; }
3366
3367rm -f conftest.$ac_ext
3368EXEEXT=$ac_cv_exeext
3369ac_exeext=$EXEEXT
3370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371/* end confdefs.h.  */
3372#include <stdio.h>
3373int
3374main ()
3375{
3376FILE *f = fopen ("conftest.out", "w");
3377 return ferror (f) || fclose (f) != 0;
3378
3379  ;
3380  return 0;
3381}
3382_ACEOF
3383ac_clean_files="$ac_clean_files conftest.out"
3384# Check that the compiler produces executables we can run.  If not, either
3385# the compiler is broken, or we cross compile.
3386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3387$as_echo_n "checking whether we are cross compiling... " >&6; }
3388if test "$cross_compiling" != yes; then
3389  { { ac_try="$ac_link"
3390case "(($ac_try" in
3391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392  *) ac_try_echo=$ac_try;;
3393esac
3394eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3395$as_echo "$ac_try_echo"; } >&5
3396  (eval "$ac_link") 2>&5
3397  ac_status=$?
3398  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3399  test $ac_status = 0; }
3400  if { ac_try='./conftest$ac_cv_exeext'
3401  { { case "(($ac_try" in
3402  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403  *) ac_try_echo=$ac_try;;
3404esac
3405eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3406$as_echo "$ac_try_echo"; } >&5
3407  (eval "$ac_try") 2>&5
3408  ac_status=$?
3409  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3410  test $ac_status = 0; }; }; then
3411    cross_compiling=no
3412  else
3413    if test "$cross_compiling" = maybe; then
3414	cross_compiling=yes
3415    else
3416	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418as_fn_error $? "cannot run C compiled programs.
3419If you meant to cross compile, use \`--host'.
3420See \`config.log' for more details" "$LINENO" 5; }
3421    fi
3422  fi
3423fi
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3425$as_echo "$cross_compiling" >&6; }
3426
3427rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3428ac_clean_files=$ac_clean_files_save
3429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3430$as_echo_n "checking for suffix of object files... " >&6; }
3431if ${ac_cv_objext+:} false; then :
3432  $as_echo_n "(cached) " >&6
3433else
3434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435/* end confdefs.h.  */
3436
3437int
3438main ()
3439{
3440
3441  ;
3442  return 0;
3443}
3444_ACEOF
3445rm -f conftest.o conftest.obj
3446if { { ac_try="$ac_compile"
3447case "(($ac_try" in
3448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449  *) ac_try_echo=$ac_try;;
3450esac
3451eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452$as_echo "$ac_try_echo"; } >&5
3453  (eval "$ac_compile") 2>&5
3454  ac_status=$?
3455  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3456  test $ac_status = 0; }; then :
3457  for ac_file in conftest.o conftest.obj conftest.*; do
3458  test -f "$ac_file" || continue;
3459  case $ac_file in
3460    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3461    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3462       break;;
3463  esac
3464done
3465else
3466  $as_echo "$as_me: failed program was:" >&5
3467sed 's/^/| /' conftest.$ac_ext >&5
3468
3469{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3470$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3471as_fn_error $? "cannot compute suffix of object files: cannot compile
3472See \`config.log' for more details" "$LINENO" 5; }
3473fi
3474rm -f conftest.$ac_cv_objext conftest.$ac_ext
3475fi
3476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3477$as_echo "$ac_cv_objext" >&6; }
3478OBJEXT=$ac_cv_objext
3479ac_objext=$OBJEXT
3480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3481$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3482if ${ac_cv_c_compiler_gnu+:} false; then :
3483  $as_echo_n "(cached) " >&6
3484else
3485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486/* end confdefs.h.  */
3487
3488int
3489main ()
3490{
3491#ifndef __GNUC__
3492       choke me
3493#endif
3494
3495  ;
3496  return 0;
3497}
3498_ACEOF
3499if ac_fn_c_try_compile "$LINENO"; then :
3500  ac_compiler_gnu=yes
3501else
3502  ac_compiler_gnu=no
3503fi
3504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505ac_cv_c_compiler_gnu=$ac_compiler_gnu
3506
3507fi
3508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3509$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3510if test $ac_compiler_gnu = yes; then
3511  GCC=yes
3512else
3513  GCC=
3514fi
3515ac_test_CFLAGS=${CFLAGS+set}
3516ac_save_CFLAGS=$CFLAGS
3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3518$as_echo_n "checking whether $CC accepts -g... " >&6; }
3519if ${ac_cv_prog_cc_g+:} false; then :
3520  $as_echo_n "(cached) " >&6
3521else
3522  ac_save_c_werror_flag=$ac_c_werror_flag
3523   ac_c_werror_flag=yes
3524   ac_cv_prog_cc_g=no
3525   CFLAGS="-g"
3526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527/* end confdefs.h.  */
3528
3529int
3530main ()
3531{
3532
3533  ;
3534  return 0;
3535}
3536_ACEOF
3537if ac_fn_c_try_compile "$LINENO"; then :
3538  ac_cv_prog_cc_g=yes
3539else
3540  CFLAGS=""
3541      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542/* end confdefs.h.  */
3543
3544int
3545main ()
3546{
3547
3548  ;
3549  return 0;
3550}
3551_ACEOF
3552if ac_fn_c_try_compile "$LINENO"; then :
3553
3554else
3555  ac_c_werror_flag=$ac_save_c_werror_flag
3556	 CFLAGS="-g"
3557	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558/* end confdefs.h.  */
3559
3560int
3561main ()
3562{
3563
3564  ;
3565  return 0;
3566}
3567_ACEOF
3568if ac_fn_c_try_compile "$LINENO"; then :
3569  ac_cv_prog_cc_g=yes
3570fi
3571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572fi
3573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574fi
3575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576   ac_c_werror_flag=$ac_save_c_werror_flag
3577fi
3578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3579$as_echo "$ac_cv_prog_cc_g" >&6; }
3580if test "$ac_test_CFLAGS" = set; then
3581  CFLAGS=$ac_save_CFLAGS
3582elif test $ac_cv_prog_cc_g = yes; then
3583  if test "$GCC" = yes; then
3584    CFLAGS="-g -O2"
3585  else
3586    CFLAGS="-g"
3587  fi
3588else
3589  if test "$GCC" = yes; then
3590    CFLAGS="-O2"
3591  else
3592    CFLAGS=
3593  fi
3594fi
3595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3596$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3597if ${ac_cv_prog_cc_c89+:} false; then :
3598  $as_echo_n "(cached) " >&6
3599else
3600  ac_cv_prog_cc_c89=no
3601ac_save_CC=$CC
3602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603/* end confdefs.h.  */
3604#include <stdarg.h>
3605#include <stdio.h>
3606struct stat;
3607/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3608struct buf { int x; };
3609FILE * (*rcsopen) (struct buf *, struct stat *, int);
3610static char *e (p, i)
3611     char **p;
3612     int i;
3613{
3614  return p[i];
3615}
3616static char *f (char * (*g) (char **, int), char **p, ...)
3617{
3618  char *s;
3619  va_list v;
3620  va_start (v,p);
3621  s = g (p, va_arg (v,int));
3622  va_end (v);
3623  return s;
3624}
3625
3626/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3627   function prototypes and stuff, but not '\xHH' hex character constants.
3628   These don't provoke an error unfortunately, instead are silently treated
3629   as 'x'.  The following induces an error, until -std is added to get
3630   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3631   array size at least.  It's necessary to write '\x00'==0 to get something
3632   that's true only with -std.  */
3633int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3634
3635/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3636   inside strings and character constants.  */
3637#define FOO(x) 'x'
3638int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3639
3640int test (int i, double x);
3641struct s1 {int (*f) (int a);};
3642struct s2 {int (*f) (double a);};
3643int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3644int argc;
3645char **argv;
3646int
3647main ()
3648{
3649return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3650  ;
3651  return 0;
3652}
3653_ACEOF
3654for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3655	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3656do
3657  CC="$ac_save_CC $ac_arg"
3658  if ac_fn_c_try_compile "$LINENO"; then :
3659  ac_cv_prog_cc_c89=$ac_arg
3660fi
3661rm -f core conftest.err conftest.$ac_objext
3662  test "x$ac_cv_prog_cc_c89" != "xno" && break
3663done
3664rm -f conftest.$ac_ext
3665CC=$ac_save_CC
3666
3667fi
3668# AC_CACHE_VAL
3669case "x$ac_cv_prog_cc_c89" in
3670  x)
3671    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3672$as_echo "none needed" >&6; } ;;
3673  xno)
3674    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3675$as_echo "unsupported" >&6; } ;;
3676  *)
3677    CC="$CC $ac_cv_prog_cc_c89"
3678    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3679$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3680esac
3681if test "x$ac_cv_prog_cc_c89" != xno; then :
3682
3683fi
3684
3685ac_ext=c
3686ac_cpp='$CPP $CPPFLAGS'
3687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3689ac_compiler_gnu=$ac_cv_c_compiler_gnu
3690
3691
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3693$as_echo_n "checking for dlopen in -ldl... " >&6; }
3694if ${ac_cv_lib_dl_dlopen+:} false; then :
3695  $as_echo_n "(cached) " >&6
3696else
3697  ac_check_lib_save_LIBS=$LIBS
3698LIBS="-ldl  $LIBS"
3699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700/* end confdefs.h.  */
3701
3702/* Override any GCC internal prototype to avoid an error.
3703   Use char because int might match the return type of a GCC
3704   builtin and then its argument prototype would still apply.  */
3705#ifdef __cplusplus
3706extern "C"
3707#endif
3708char dlopen ();
3709int
3710main ()
3711{
3712return dlopen ();
3713  ;
3714  return 0;
3715}
3716_ACEOF
3717if ac_fn_c_try_link "$LINENO"; then :
3718  ac_cv_lib_dl_dlopen=yes
3719else
3720  ac_cv_lib_dl_dlopen=no
3721fi
3722rm -f core conftest.err conftest.$ac_objext \
3723    conftest$ac_exeext conftest.$ac_ext
3724LIBS=$ac_check_lib_save_LIBS
3725fi
3726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3727$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3728if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3729  DLOPEN_LIB=-ldl
3730fi
3731
3732
3733
3734# Check whether --with-cc was given.
3735if test "${with_cc+set}" = set; then :
3736  withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3737fi
3738
3739
3740# Check whether --with-ccopts was given.
3741if test "${with_ccopts+set}" = set; then :
3742  withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3743fi
3744
3745
3746# Check whether --with-ldopts was given.
3747if test "${with_ldopts+set}" = set; then :
3748  withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3749fi
3750
3751ac_ext=c
3752ac_cpp='$CPP $CPPFLAGS'
3753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3755ac_compiler_gnu=$ac_cv_c_compiler_gnu
3756if test -n "$ac_tool_prefix"; then
3757  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3758set dummy ${ac_tool_prefix}gcc; ac_word=$2
3759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3760$as_echo_n "checking for $ac_word... " >&6; }
3761if ${ac_cv_prog_CC+:} false; then :
3762  $as_echo_n "(cached) " >&6
3763else
3764  if test -n "$CC"; then
3765  ac_cv_prog_CC="$CC" # Let the user override the test.
3766else
3767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768for as_dir in $PATH
3769do
3770  IFS=$as_save_IFS
3771  test -z "$as_dir" && as_dir=.
3772    for ac_exec_ext in '' $ac_executable_extensions; do
3773  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3774    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3775    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3776    break 2
3777  fi
3778done
3779  done
3780IFS=$as_save_IFS
3781
3782fi
3783fi
3784CC=$ac_cv_prog_CC
3785if test -n "$CC"; then
3786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3787$as_echo "$CC" >&6; }
3788else
3789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790$as_echo "no" >&6; }
3791fi
3792
3793
3794fi
3795if test -z "$ac_cv_prog_CC"; then
3796  ac_ct_CC=$CC
3797  # Extract the first word of "gcc", so it can be a program name with args.
3798set dummy gcc; ac_word=$2
3799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3800$as_echo_n "checking for $ac_word... " >&6; }
3801if ${ac_cv_prog_ac_ct_CC+:} false; then :
3802  $as_echo_n "(cached) " >&6
3803else
3804  if test -n "$ac_ct_CC"; then
3805  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3806else
3807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808for as_dir in $PATH
3809do
3810  IFS=$as_save_IFS
3811  test -z "$as_dir" && as_dir=.
3812    for ac_exec_ext in '' $ac_executable_extensions; do
3813  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3814    ac_cv_prog_ac_ct_CC="gcc"
3815    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3816    break 2
3817  fi
3818done
3819  done
3820IFS=$as_save_IFS
3821
3822fi
3823fi
3824ac_ct_CC=$ac_cv_prog_ac_ct_CC
3825if test -n "$ac_ct_CC"; then
3826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3827$as_echo "$ac_ct_CC" >&6; }
3828else
3829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3830$as_echo "no" >&6; }
3831fi
3832
3833  if test "x$ac_ct_CC" = x; then
3834    CC=""
3835  else
3836    case $cross_compiling:$ac_tool_warned in
3837yes:)
3838{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3840ac_tool_warned=yes ;;
3841esac
3842    CC=$ac_ct_CC
3843  fi
3844else
3845  CC="$ac_cv_prog_CC"
3846fi
3847
3848if test -z "$CC"; then
3849          if test -n "$ac_tool_prefix"; then
3850    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3851set dummy ${ac_tool_prefix}cc; ac_word=$2
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3853$as_echo_n "checking for $ac_word... " >&6; }
3854if ${ac_cv_prog_CC+:} false; then :
3855  $as_echo_n "(cached) " >&6
3856else
3857  if test -n "$CC"; then
3858  ac_cv_prog_CC="$CC" # Let the user override the test.
3859else
3860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861for as_dir in $PATH
3862do
3863  IFS=$as_save_IFS
3864  test -z "$as_dir" && as_dir=.
3865    for ac_exec_ext in '' $ac_executable_extensions; do
3866  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3867    ac_cv_prog_CC="${ac_tool_prefix}cc"
3868    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3869    break 2
3870  fi
3871done
3872  done
3873IFS=$as_save_IFS
3874
3875fi
3876fi
3877CC=$ac_cv_prog_CC
3878if test -n "$CC"; then
3879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3880$as_echo "$CC" >&6; }
3881else
3882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3883$as_echo "no" >&6; }
3884fi
3885
3886
3887  fi
3888fi
3889if test -z "$CC"; then
3890  # Extract the first word of "cc", so it can be a program name with args.
3891set dummy cc; ac_word=$2
3892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3893$as_echo_n "checking for $ac_word... " >&6; }
3894if ${ac_cv_prog_CC+:} false; then :
3895  $as_echo_n "(cached) " >&6
3896else
3897  if test -n "$CC"; then
3898  ac_cv_prog_CC="$CC" # Let the user override the test.
3899else
3900  ac_prog_rejected=no
3901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902for as_dir in $PATH
3903do
3904  IFS=$as_save_IFS
3905  test -z "$as_dir" && as_dir=.
3906    for ac_exec_ext in '' $ac_executable_extensions; do
3907  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3908    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3909       ac_prog_rejected=yes
3910       continue
3911     fi
3912    ac_cv_prog_CC="cc"
3913    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3914    break 2
3915  fi
3916done
3917  done
3918IFS=$as_save_IFS
3919
3920if test $ac_prog_rejected = yes; then
3921  # We found a bogon in the path, so make sure we never use it.
3922  set dummy $ac_cv_prog_CC
3923  shift
3924  if test $# != 0; then
3925    # We chose a different compiler from the bogus one.
3926    # However, it has the same basename, so the bogon will be chosen
3927    # first if we set CC to just the basename; use the full file name.
3928    shift
3929    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3930  fi
3931fi
3932fi
3933fi
3934CC=$ac_cv_prog_CC
3935if test -n "$CC"; then
3936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3937$as_echo "$CC" >&6; }
3938else
3939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3940$as_echo "no" >&6; }
3941fi
3942
3943
3944fi
3945if test -z "$CC"; then
3946  if test -n "$ac_tool_prefix"; then
3947  for ac_prog in cl.exe
3948  do
3949    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3950set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3952$as_echo_n "checking for $ac_word... " >&6; }
3953if ${ac_cv_prog_CC+:} false; then :
3954  $as_echo_n "(cached) " >&6
3955else
3956  if test -n "$CC"; then
3957  ac_cv_prog_CC="$CC" # Let the user override the test.
3958else
3959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960for as_dir in $PATH
3961do
3962  IFS=$as_save_IFS
3963  test -z "$as_dir" && as_dir=.
3964    for ac_exec_ext in '' $ac_executable_extensions; do
3965  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3966    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3967    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3968    break 2
3969  fi
3970done
3971  done
3972IFS=$as_save_IFS
3973
3974fi
3975fi
3976CC=$ac_cv_prog_CC
3977if test -n "$CC"; then
3978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3979$as_echo "$CC" >&6; }
3980else
3981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3982$as_echo "no" >&6; }
3983fi
3984
3985
3986    test -n "$CC" && break
3987  done
3988fi
3989if test -z "$CC"; then
3990  ac_ct_CC=$CC
3991  for ac_prog in cl.exe
3992do
3993  # Extract the first word of "$ac_prog", so it can be a program name with args.
3994set dummy $ac_prog; ac_word=$2
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3996$as_echo_n "checking for $ac_word... " >&6; }
3997if ${ac_cv_prog_ac_ct_CC+:} false; then :
3998  $as_echo_n "(cached) " >&6
3999else
4000  if test -n "$ac_ct_CC"; then
4001  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4002else
4003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004for as_dir in $PATH
4005do
4006  IFS=$as_save_IFS
4007  test -z "$as_dir" && as_dir=.
4008    for ac_exec_ext in '' $ac_executable_extensions; do
4009  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4010    ac_cv_prog_ac_ct_CC="$ac_prog"
4011    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4012    break 2
4013  fi
4014done
4015  done
4016IFS=$as_save_IFS
4017
4018fi
4019fi
4020ac_ct_CC=$ac_cv_prog_ac_ct_CC
4021if test -n "$ac_ct_CC"; then
4022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4023$as_echo "$ac_ct_CC" >&6; }
4024else
4025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4026$as_echo "no" >&6; }
4027fi
4028
4029
4030  test -n "$ac_ct_CC" && break
4031done
4032
4033  if test "x$ac_ct_CC" = x; then
4034    CC=""
4035  else
4036    case $cross_compiling:$ac_tool_warned in
4037yes:)
4038{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4039$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4040ac_tool_warned=yes ;;
4041esac
4042    CC=$ac_ct_CC
4043  fi
4044fi
4045
4046fi
4047
4048
4049test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4051as_fn_error $? "no acceptable C compiler found in \$PATH
4052See \`config.log' for more details" "$LINENO" 5; }
4053
4054# Provide some information about the compiler.
4055$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4056set X $ac_compile
4057ac_compiler=$2
4058for ac_option in --version -v -V -qversion; do
4059  { { ac_try="$ac_compiler $ac_option >&5"
4060case "(($ac_try" in
4061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062  *) ac_try_echo=$ac_try;;
4063esac
4064eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4065$as_echo "$ac_try_echo"; } >&5
4066  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4067  ac_status=$?
4068  if test -s conftest.err; then
4069    sed '10a\
4070... rest of stderr output deleted ...
4071         10q' conftest.err >conftest.er1
4072    cat conftest.er1 >&5
4073  fi
4074  rm -f conftest.er1 conftest.err
4075  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4076  test $ac_status = 0; }
4077done
4078
4079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4080$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4081if ${ac_cv_c_compiler_gnu+:} false; then :
4082  $as_echo_n "(cached) " >&6
4083else
4084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085/* end confdefs.h.  */
4086
4087int
4088main ()
4089{
4090#ifndef __GNUC__
4091       choke me
4092#endif
4093
4094  ;
4095  return 0;
4096}
4097_ACEOF
4098if ac_fn_c_try_compile "$LINENO"; then :
4099  ac_compiler_gnu=yes
4100else
4101  ac_compiler_gnu=no
4102fi
4103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104ac_cv_c_compiler_gnu=$ac_compiler_gnu
4105
4106fi
4107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4108$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4109if test $ac_compiler_gnu = yes; then
4110  GCC=yes
4111else
4112  GCC=
4113fi
4114ac_test_CFLAGS=${CFLAGS+set}
4115ac_save_CFLAGS=$CFLAGS
4116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4117$as_echo_n "checking whether $CC accepts -g... " >&6; }
4118if ${ac_cv_prog_cc_g+:} false; then :
4119  $as_echo_n "(cached) " >&6
4120else
4121  ac_save_c_werror_flag=$ac_c_werror_flag
4122   ac_c_werror_flag=yes
4123   ac_cv_prog_cc_g=no
4124   CFLAGS="-g"
4125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126/* end confdefs.h.  */
4127
4128int
4129main ()
4130{
4131
4132  ;
4133  return 0;
4134}
4135_ACEOF
4136if ac_fn_c_try_compile "$LINENO"; then :
4137  ac_cv_prog_cc_g=yes
4138else
4139  CFLAGS=""
4140      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141/* end confdefs.h.  */
4142
4143int
4144main ()
4145{
4146
4147  ;
4148  return 0;
4149}
4150_ACEOF
4151if ac_fn_c_try_compile "$LINENO"; then :
4152
4153else
4154  ac_c_werror_flag=$ac_save_c_werror_flag
4155	 CFLAGS="-g"
4156	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157/* end confdefs.h.  */
4158
4159int
4160main ()
4161{
4162
4163  ;
4164  return 0;
4165}
4166_ACEOF
4167if ac_fn_c_try_compile "$LINENO"; then :
4168  ac_cv_prog_cc_g=yes
4169fi
4170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4171fi
4172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4173fi
4174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175   ac_c_werror_flag=$ac_save_c_werror_flag
4176fi
4177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4178$as_echo "$ac_cv_prog_cc_g" >&6; }
4179if test "$ac_test_CFLAGS" = set; then
4180  CFLAGS=$ac_save_CFLAGS
4181elif test $ac_cv_prog_cc_g = yes; then
4182  if test "$GCC" = yes; then
4183    CFLAGS="-g -O2"
4184  else
4185    CFLAGS="-g"
4186  fi
4187else
4188  if test "$GCC" = yes; then
4189    CFLAGS="-O2"
4190  else
4191    CFLAGS=
4192  fi
4193fi
4194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4195$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4196if ${ac_cv_prog_cc_c89+:} false; then :
4197  $as_echo_n "(cached) " >&6
4198else
4199  ac_cv_prog_cc_c89=no
4200ac_save_CC=$CC
4201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202/* end confdefs.h.  */
4203#include <stdarg.h>
4204#include <stdio.h>
4205struct stat;
4206/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4207struct buf { int x; };
4208FILE * (*rcsopen) (struct buf *, struct stat *, int);
4209static char *e (p, i)
4210     char **p;
4211     int i;
4212{
4213  return p[i];
4214}
4215static char *f (char * (*g) (char **, int), char **p, ...)
4216{
4217  char *s;
4218  va_list v;
4219  va_start (v,p);
4220  s = g (p, va_arg (v,int));
4221  va_end (v);
4222  return s;
4223}
4224
4225/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4226   function prototypes and stuff, but not '\xHH' hex character constants.
4227   These don't provoke an error unfortunately, instead are silently treated
4228   as 'x'.  The following induces an error, until -std is added to get
4229   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4230   array size at least.  It's necessary to write '\x00'==0 to get something
4231   that's true only with -std.  */
4232int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4233
4234/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4235   inside strings and character constants.  */
4236#define FOO(x) 'x'
4237int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4238
4239int test (int i, double x);
4240struct s1 {int (*f) (int a);};
4241struct s2 {int (*f) (double a);};
4242int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4243int argc;
4244char **argv;
4245int
4246main ()
4247{
4248return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4249  ;
4250  return 0;
4251}
4252_ACEOF
4253for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4254	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4255do
4256  CC="$ac_save_CC $ac_arg"
4257  if ac_fn_c_try_compile "$LINENO"; then :
4258  ac_cv_prog_cc_c89=$ac_arg
4259fi
4260rm -f core conftest.err conftest.$ac_objext
4261  test "x$ac_cv_prog_cc_c89" != "xno" && break
4262done
4263rm -f conftest.$ac_ext
4264CC=$ac_save_CC
4265
4266fi
4267# AC_CACHE_VAL
4268case "x$ac_cv_prog_cc_c89" in
4269  x)
4270    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4271$as_echo "none needed" >&6; } ;;
4272  xno)
4273    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4274$as_echo "unsupported" >&6; } ;;
4275  *)
4276    CC="$CC $ac_cv_prog_cc_c89"
4277    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4278$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4279esac
4280if test "x$ac_cv_prog_cc_c89" != xno; then :
4281
4282fi
4283
4284ac_ext=c
4285ac_cpp='$CPP $CPPFLAGS'
4286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4288ac_compiler_gnu=$ac_cv_c_compiler_gnu
4289
4290if test "$GCC" = yes; then
4291   RDYNAMIC="-rdynamic"
4292
4293fi
4294ac_ext=c
4295ac_cpp='$CPP $CPPFLAGS'
4296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298ac_compiler_gnu=$ac_cv_c_compiler_gnu
4299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4300$as_echo_n "checking how to run the C preprocessor... " >&6; }
4301# On Suns, sometimes $CPP names a directory.
4302if test -n "$CPP" && test -d "$CPP"; then
4303  CPP=
4304fi
4305if test -z "$CPP"; then
4306  if ${ac_cv_prog_CPP+:} false; then :
4307  $as_echo_n "(cached) " >&6
4308else
4309      # Double quotes because CPP needs to be expanded
4310    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4311    do
4312      ac_preproc_ok=false
4313for ac_c_preproc_warn_flag in '' yes
4314do
4315  # Use a header file that comes with gcc, so configuring glibc
4316  # with a fresh cross-compiler works.
4317  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4318  # <limits.h> exists even on freestanding compilers.
4319  # On the NeXT, cc -E runs the code through the compiler's parser,
4320  # not just through cpp. "Syntax error" is here to catch this case.
4321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322/* end confdefs.h.  */
4323#ifdef __STDC__
4324# include <limits.h>
4325#else
4326# include <assert.h>
4327#endif
4328		     Syntax error
4329_ACEOF
4330if ac_fn_c_try_cpp "$LINENO"; then :
4331
4332else
4333  # Broken: fails on valid input.
4334continue
4335fi
4336rm -f conftest.err conftest.i conftest.$ac_ext
4337
4338  # OK, works on sane cases.  Now check whether nonexistent headers
4339  # can be detected and how.
4340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341/* end confdefs.h.  */
4342#include <ac_nonexistent.h>
4343_ACEOF
4344if ac_fn_c_try_cpp "$LINENO"; then :
4345  # Broken: success on invalid input.
4346continue
4347else
4348  # Passes both tests.
4349ac_preproc_ok=:
4350break
4351fi
4352rm -f conftest.err conftest.i conftest.$ac_ext
4353
4354done
4355# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4356rm -f conftest.i conftest.err conftest.$ac_ext
4357if $ac_preproc_ok; then :
4358  break
4359fi
4360
4361    done
4362    ac_cv_prog_CPP=$CPP
4363
4364fi
4365  CPP=$ac_cv_prog_CPP
4366else
4367  ac_cv_prog_CPP=$CPP
4368fi
4369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4370$as_echo "$CPP" >&6; }
4371ac_preproc_ok=false
4372for ac_c_preproc_warn_flag in '' yes
4373do
4374  # Use a header file that comes with gcc, so configuring glibc
4375  # with a fresh cross-compiler works.
4376  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4377  # <limits.h> exists even on freestanding compilers.
4378  # On the NeXT, cc -E runs the code through the compiler's parser,
4379  # not just through cpp. "Syntax error" is here to catch this case.
4380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381/* end confdefs.h.  */
4382#ifdef __STDC__
4383# include <limits.h>
4384#else
4385# include <assert.h>
4386#endif
4387		     Syntax error
4388_ACEOF
4389if ac_fn_c_try_cpp "$LINENO"; then :
4390
4391else
4392  # Broken: fails on valid input.
4393continue
4394fi
4395rm -f conftest.err conftest.i conftest.$ac_ext
4396
4397  # OK, works on sane cases.  Now check whether nonexistent headers
4398  # can be detected and how.
4399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400/* end confdefs.h.  */
4401#include <ac_nonexistent.h>
4402_ACEOF
4403if ac_fn_c_try_cpp "$LINENO"; then :
4404  # Broken: success on invalid input.
4405continue
4406else
4407  # Passes both tests.
4408ac_preproc_ok=:
4409break
4410fi
4411rm -f conftest.err conftest.i conftest.$ac_ext
4412
4413done
4414# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4415rm -f conftest.i conftest.err conftest.$ac_ext
4416if $ac_preproc_ok; then :
4417
4418else
4419  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4420$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4421as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4422See \`config.log' for more details" "$LINENO" 5; }
4423fi
4424
4425ac_ext=c
4426ac_cpp='$CPP $CPPFLAGS'
4427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4429ac_compiler_gnu=$ac_cv_c_compiler_gnu
4430
4431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4432$as_echo_n "checking for additional special compiler flags... " >&6; }
4433if test "$GCC" = yes
4434then
4435    case "$host_cpu" in
4436	alpha)		addcflags="-mieee" ;;
4437    esac
4438fi
4439if test "x$addcflags" != x
4440then
4441    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4442$as_echo "$addcflags" >&6; }
4443    CFLAGS="$addcflags $CFLAGS"
4444else
4445    { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4446$as_echo "(none)" >&6; }
4447fi
4448
4449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4450$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4451if ${ac_cv_path_GREP+:} false; then :
4452  $as_echo_n "(cached) " >&6
4453else
4454  if test -z "$GREP"; then
4455  ac_path_GREP_found=false
4456  # Loop through the user's path and test for each of PROGNAME-LIST
4457  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4459do
4460  IFS=$as_save_IFS
4461  test -z "$as_dir" && as_dir=.
4462    for ac_prog in grep ggrep; do
4463    for ac_exec_ext in '' $ac_executable_extensions; do
4464      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4465      as_fn_executable_p "$ac_path_GREP" || continue
4466# Check for GNU ac_path_GREP and select it if it is found.
4467  # Check for GNU $ac_path_GREP
4468case `"$ac_path_GREP" --version 2>&1` in
4469*GNU*)
4470  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4471*)
4472  ac_count=0
4473  $as_echo_n 0123456789 >"conftest.in"
4474  while :
4475  do
4476    cat "conftest.in" "conftest.in" >"conftest.tmp"
4477    mv "conftest.tmp" "conftest.in"
4478    cp "conftest.in" "conftest.nl"
4479    $as_echo 'GREP' >> "conftest.nl"
4480    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4481    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4482    as_fn_arith $ac_count + 1 && ac_count=$as_val
4483    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4484      # Best one so far, save it but keep looking for a better one
4485      ac_cv_path_GREP="$ac_path_GREP"
4486      ac_path_GREP_max=$ac_count
4487    fi
4488    # 10*(2^10) chars as input seems more than enough
4489    test $ac_count -gt 10 && break
4490  done
4491  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4492esac
4493
4494      $ac_path_GREP_found && break 3
4495    done
4496  done
4497  done
4498IFS=$as_save_IFS
4499  if test -z "$ac_cv_path_GREP"; then
4500    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4501  fi
4502else
4503  ac_cv_path_GREP=$GREP
4504fi
4505
4506fi
4507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4508$as_echo "$ac_cv_path_GREP" >&6; }
4509 GREP="$ac_cv_path_GREP"
4510
4511
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4513$as_echo_n "checking for egrep... " >&6; }
4514if ${ac_cv_path_EGREP+:} false; then :
4515  $as_echo_n "(cached) " >&6
4516else
4517  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4518   then ac_cv_path_EGREP="$GREP -E"
4519   else
4520     if test -z "$EGREP"; then
4521  ac_path_EGREP_found=false
4522  # Loop through the user's path and test for each of PROGNAME-LIST
4523  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4525do
4526  IFS=$as_save_IFS
4527  test -z "$as_dir" && as_dir=.
4528    for ac_prog in egrep; do
4529    for ac_exec_ext in '' $ac_executable_extensions; do
4530      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4531      as_fn_executable_p "$ac_path_EGREP" || continue
4532# Check for GNU ac_path_EGREP and select it if it is found.
4533  # Check for GNU $ac_path_EGREP
4534case `"$ac_path_EGREP" --version 2>&1` in
4535*GNU*)
4536  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4537*)
4538  ac_count=0
4539  $as_echo_n 0123456789 >"conftest.in"
4540  while :
4541  do
4542    cat "conftest.in" "conftest.in" >"conftest.tmp"
4543    mv "conftest.tmp" "conftest.in"
4544    cp "conftest.in" "conftest.nl"
4545    $as_echo 'EGREP' >> "conftest.nl"
4546    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4547    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4548    as_fn_arith $ac_count + 1 && ac_count=$as_val
4549    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4550      # Best one so far, save it but keep looking for a better one
4551      ac_cv_path_EGREP="$ac_path_EGREP"
4552      ac_path_EGREP_max=$ac_count
4553    fi
4554    # 10*(2^10) chars as input seems more than enough
4555    test $ac_count -gt 10 && break
4556  done
4557  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4558esac
4559
4560      $ac_path_EGREP_found && break 3
4561    done
4562  done
4563  done
4564IFS=$as_save_IFS
4565  if test -z "$ac_cv_path_EGREP"; then
4566    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4567  fi
4568else
4569  ac_cv_path_EGREP=$EGREP
4570fi
4571
4572   fi
4573fi
4574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4575$as_echo "$ac_cv_path_EGREP" >&6; }
4576 EGREP="$ac_cv_path_EGREP"
4577
4578
4579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4580$as_echo_n "checking for ANSI C header files... " >&6; }
4581if ${ac_cv_header_stdc+:} false; then :
4582  $as_echo_n "(cached) " >&6
4583else
4584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585/* end confdefs.h.  */
4586#include <stdlib.h>
4587#include <stdarg.h>
4588#include <string.h>
4589#include <float.h>
4590
4591int
4592main ()
4593{
4594
4595  ;
4596  return 0;
4597}
4598_ACEOF
4599if ac_fn_c_try_compile "$LINENO"; then :
4600  ac_cv_header_stdc=yes
4601else
4602  ac_cv_header_stdc=no
4603fi
4604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4605
4606if test $ac_cv_header_stdc = yes; then
4607  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609/* end confdefs.h.  */
4610#include <string.h>
4611
4612_ACEOF
4613if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4614  $EGREP "memchr" >/dev/null 2>&1; then :
4615
4616else
4617  ac_cv_header_stdc=no
4618fi
4619rm -f conftest*
4620
4621fi
4622
4623if test $ac_cv_header_stdc = yes; then
4624  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626/* end confdefs.h.  */
4627#include <stdlib.h>
4628
4629_ACEOF
4630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4631  $EGREP "free" >/dev/null 2>&1; then :
4632
4633else
4634  ac_cv_header_stdc=no
4635fi
4636rm -f conftest*
4637
4638fi
4639
4640if test $ac_cv_header_stdc = yes; then
4641  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4642  if test "$cross_compiling" = yes; then :
4643  :
4644else
4645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4646/* end confdefs.h.  */
4647#include <ctype.h>
4648#include <stdlib.h>
4649#if ((' ' & 0x0FF) == 0x020)
4650# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4651# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4652#else
4653# define ISLOWER(c) \
4654		   (('a' <= (c) && (c) <= 'i') \
4655		     || ('j' <= (c) && (c) <= 'r') \
4656		     || ('s' <= (c) && (c) <= 'z'))
4657# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4658#endif
4659
4660#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4661int
4662main ()
4663{
4664  int i;
4665  for (i = 0; i < 256; i++)
4666    if (XOR (islower (i), ISLOWER (i))
4667	|| toupper (i) != TOUPPER (i))
4668      return 2;
4669  return 0;
4670}
4671_ACEOF
4672if ac_fn_c_try_run "$LINENO"; then :
4673
4674else
4675  ac_cv_header_stdc=no
4676fi
4677rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4678  conftest.$ac_objext conftest.beam conftest.$ac_ext
4679fi
4680
4681fi
4682fi
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4684$as_echo "$ac_cv_header_stdc" >&6; }
4685if test $ac_cv_header_stdc = yes; then
4686
4687$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4688
4689fi
4690
4691# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4692for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4693		  inttypes.h stdint.h unistd.h
4694do :
4695  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4696ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4697"
4698if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4699  cat >>confdefs.h <<_ACEOF
4700#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4701_ACEOF
4702
4703fi
4704
4705done
4706
4707
4708
4709  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4710if test "x$ac_cv_header_minix_config_h" = xyes; then :
4711  MINIX=yes
4712else
4713  MINIX=
4714fi
4715
4716
4717  if test "$MINIX" = yes; then
4718
4719$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4720
4721
4722$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4723
4724
4725$as_echo "#define _MINIX 1" >>confdefs.h
4726
4727  fi
4728
4729
4730  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4731$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4732if ${ac_cv_safe_to_define___extensions__+:} false; then :
4733  $as_echo_n "(cached) " >&6
4734else
4735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736/* end confdefs.h.  */
4737
4738#         define __EXTENSIONS__ 1
4739          $ac_includes_default
4740int
4741main ()
4742{
4743
4744  ;
4745  return 0;
4746}
4747_ACEOF
4748if ac_fn_c_try_compile "$LINENO"; then :
4749  ac_cv_safe_to_define___extensions__=yes
4750else
4751  ac_cv_safe_to_define___extensions__=no
4752fi
4753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4754fi
4755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4756$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4757  test $ac_cv_safe_to_define___extensions__ = yes &&
4758    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4759
4760  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4761
4762  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4763
4764  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4765
4766  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4767
4768
4769LIB_EXT=.a
4770STATIC_LIB_EXT=.a
4771PROFILED_LIB_EXT=.a
4772
4773# Check whether --with-root-prefix was given.
4774if test "${with_root_prefix+set}" = set; then :
4775  withval=$with_root_prefix; root_prefix=$withval
4776else
4777  root_prefix=NONE
4778fi
4779# Check whether --enable-maintainer-mode was given.
4780if test "${enable_maintainer_mode+set}" = set; then :
4781  enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4782then
4783	MAINTAINER_CMT=#
4784	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4785$as_echo "Disabling maintainer mode" >&6; }
4786else
4787	MAINTAINER_CMT=
4788	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4789$as_echo "Enabling maintainer mode" >&6; }
4790fi
4791
4792else
4793  MAINTAINER_CMT=#
4794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4795$as_echo "Disabling maintainer mode by default" >&6; }
4796
4797fi
4798
4799
4800# Check whether --enable-symlink-install was given.
4801if test "${enable_symlink_install+set}" = set; then :
4802  enableval=$enable_symlink_install; if test "$enableval" = "no"
4803then
4804	LINK_INSTALL_FLAGS=-f
4805	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4806$as_echo "Disabling symlinks for install" >&6; }
4807else
4808	LINK_INSTALL_FLAGS=-sf
4809	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4810$as_echo "Enabling symlinks for install" >&6; }
4811fi
4812
4813else
4814  LINK_INSTALL_FLAGS=-f
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4816$as_echo "Disabling symlinks for install by default" >&6; }
4817
4818fi
4819
4820
4821relative_symlink_defined=
4822# Check whether --enable-relative-symlinks was given.
4823if test "${enable_relative_symlinks+set}" = set; then :
4824  enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4825then
4826	SYMLINK_RELATIVE=
4827	relative_symlink_defined=yes
4828	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4829$as_echo "Disabling relative symlinks for install" >&6; }
4830else
4831	SYMLINK_RELATIVE=--relative
4832	relative_symlink_defined=yes
4833	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4834$as_echo "Enabling relative symlinks for install" >&6; }
4835fi
4836fi
4837
4838# Check whether --enable-symlink-relative-symlinks was given.
4839if test "${enable_symlink_relative_symlinks+set}" = set; then :
4840  enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4841then
4842	SYMLINK_RELATIVE=yes
4843	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4844$as_echo "Disabling relative symlinks for install" >&6; }
4845else
4846	SYMLINK_RELATIVE=--relative
4847	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4848$as_echo "Enabling relative symlinks for install" >&6; }
4849fi
4850
4851else
4852  if test -z "$relative_symlink_defined"
4853then
4854	SYMLINK_RELATIVE=
4855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4856$as_echo "Disabling relative symlinks for install by default" >&6; }
4857fi
4858
4859fi
4860
4861
4862# Check whether --enable-symlink-build was given.
4863if test "${enable_symlink_build+set}" = set; then :
4864  enableval=$enable_symlink_build; if test "$enableval" = "no"
4865then
4866	LINK_BUILD_FLAGS=
4867	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4868$as_echo "Disabling symlinks for build" >&6; }
4869else
4870	LINK_BUILD_FLAGS=-s
4871	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4872$as_echo "Enabling symlinks for build" >&6; }
4873fi
4874
4875else
4876  LINK_BUILD_FLAGS=
4877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4878$as_echo "Disabling symlinks for build by default" >&6; }
4879
4880fi
4881
4882
4883# Check whether --enable-verbose-makecmds was given.
4884if test "${enable_verbose_makecmds+set}" = set; then :
4885  enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4886then
4887	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4888$as_echo "Disabling verbose make commands" >&6; }
4889	E=@echo
4890	ES=echo
4891	Q=@
4892else
4893	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4894$as_echo "Enabling verbose make commands" >&6; }
4895	E=@\\#
4896	ES=\\#
4897	Q=
4898fi
4899
4900else
4901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4902$as_echo "Disabling verbose make commands" >&6; }
4903E=@echo
4904ES=echo
4905Q=@
4906
4907fi
4908
4909
4910
4911
4912E2_PKG_CONFIG_STATIC=--static
4913LDFLAG_DYNAMIC=
4914PRIVATE_LIBS_CMT=
4915# Check whether --enable-elf-shlibs was given.
4916if test "${enable_elf_shlibs+set}" = set; then :
4917  enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4918then
4919	ELF_CMT=#
4920	MAKEFILE_ELF=/dev/null
4921	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4922$as_echo "Disabling ELF shared libraries" >&6; }
4923else
4924	E2_PKG_CONFIG_STATIC=
4925	ELF_CMT=
4926	MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4927	case "$host_os" in
4928	solaris2.*)
4929		MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4930	;;
4931	esac
4932	BINARY_TYPE=elfbin
4933	LIB_EXT=.so
4934	PRIVATE_LIBS_CMT=#
4935	LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4936	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4937$as_echo "Enabling ELF shared libraries" >&6; }
4938fi
4939
4940else
4941  MAKEFILE_ELF=/dev/null
4942ELF_CMT=#
4943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4944$as_echo "Disabling ELF shared libraries by default" >&6; }
4945
4946fi
4947
4948
4949
4950# Check whether --enable-bsd-shlibs was given.
4951if test "${enable_bsd_shlibs+set}" = set; then :
4952  enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4953then
4954	BSDLIB_CMT=#
4955	MAKEFILE_BSDLIB=/dev/null
4956	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4957$as_echo "Disabling BSD shared libraries" >&6; }
4958else
4959	E2_PKG_CONFIG_STATIC=
4960	BSDLIB_CMT=
4961	MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4962	LIB_EXT=.so
4963	case "$host_os" in
4964	darwin*)
4965		MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4966		LIB_EXT=.dylib
4967	;;
4968	esac
4969	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4970$as_echo "Enabling BSD shared libraries" >&6; }
4971fi
4972
4973else
4974  MAKEFILE_BSDLIB=/dev/null
4975BSDLIB_CMT=#
4976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4977$as_echo "Disabling BSD shared libraries by default" >&6; }
4978
4979fi
4980
4981
4982
4983# Check whether --enable-profile was given.
4984if test "${enable_profile+set}" = set; then :
4985  enableval=$enable_profile; if test "$enableval" = "no"
4986then
4987	PROFILE_CMT=#
4988	MAKEFILE_PROFILE=/dev/null
4989	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4990$as_echo "Disabling profiling libraries" >&6; }
4991else
4992	PROFILE_CMT=
4993	MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4994	PROFILED_LIB_EXT=_p.a
4995	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4996$as_echo "Building profiling libraries" >&6; }
4997fi
4998
4999else
5000  PROFILE_CMT=#
5001MAKEFILE_PROFILE=/dev/null
5002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5003$as_echo "Disabling profiling libraries by default" >&6; }
5004
5005fi
5006
5007
5008
5009# Check whether --enable-gcov was given.
5010if test "${enable_gcov+set}" = set; then :
5011  enableval=$enable_gcov; if test "$enableval" = "yes"
5012then
5013	CFLAGS="-g -fprofile-arcs -ftest-coverage"
5014	LDFLAGS="-fprofile-arcs -ftest-coverage"
5015	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5016$as_echo "Enabling gcov support" >&6; }
5017fi
5018
5019fi
5020
5021CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5022CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5023LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5024LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5025# Check whether --enable-hardening was given.
5026if test "${enable_hardening+set}" = set; then :
5027  enableval=$enable_hardening; if test "$enableval" = "yes"
5028then
5029	HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5030	HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5031	CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5032	CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5033	CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5034	LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5035	LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5036	LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5037	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5038$as_echo "Enabling hardening support" >&6; }
5039fi
5040
5041fi
5042
5043
5044
5045
5046
5047
5048# Check whether --enable-jbd-debug was given.
5049if test "${enable_jbd_debug+set}" = set; then :
5050  enableval=$enable_jbd_debug; if test "$enableval" = "no"
5051then
5052	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5053$as_echo "Disabling journal debugging" >&6; }
5054else
5055
5056$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5057
5058	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5059$as_echo "Enabling journal debugging" >&6; }
5060fi
5061
5062else
5063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5064$as_echo "Disabling journal debugging by default" >&6; }
5065
5066fi
5067
5068# Check whether --enable-blkid-debug was given.
5069if test "${enable_blkid_debug+set}" = set; then :
5070  enableval=$enable_blkid_debug; if test "$enableval" = "no"
5071then
5072	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5073$as_echo "Disabling blkid debugging" >&6; }
5074else
5075
5076$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5077
5078	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5079$as_echo "Enabling blkid debugging" >&6; }
5080fi
5081
5082else
5083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5084$as_echo "Disabling blkid debugging by default" >&6; }
5085
5086fi
5087
5088# Check whether --enable-testio-debug was given.
5089if test "${enable_testio_debug+set}" = set; then :
5090  enableval=$enable_testio_debug;
5091if test "$enableval" = "no"
5092then
5093	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5094$as_echo "Disabling testio debugging" >&6; }
5095	TEST_IO_CMT="#"
5096else
5097	TEST_IO_CMT=
5098	$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5099
5100	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5101$as_echo "Enabling testio debugging" >&6; }
5102fi
5103
5104else
5105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5106$as_echo "Enabling testio debugging by default" >&6; }
5107$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5108
5109TEST_IO_CMT=
5110
5111fi
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5122	if test -n "$ac_tool_prefix"; then
5123  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5124set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5126$as_echo_n "checking for $ac_word... " >&6; }
5127if ${ac_cv_path_PKG_CONFIG+:} false; then :
5128  $as_echo_n "(cached) " >&6
5129else
5130  case $PKG_CONFIG in
5131  [\\/]* | ?:[\\/]*)
5132  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5133  ;;
5134  *)
5135  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136for as_dir in $PATH
5137do
5138  IFS=$as_save_IFS
5139  test -z "$as_dir" && as_dir=.
5140    for ac_exec_ext in '' $ac_executable_extensions; do
5141  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5142    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5143    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5144    break 2
5145  fi
5146done
5147  done
5148IFS=$as_save_IFS
5149
5150  ;;
5151esac
5152fi
5153PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5154if test -n "$PKG_CONFIG"; then
5155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5156$as_echo "$PKG_CONFIG" >&6; }
5157else
5158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159$as_echo "no" >&6; }
5160fi
5161
5162
5163fi
5164if test -z "$ac_cv_path_PKG_CONFIG"; then
5165  ac_pt_PKG_CONFIG=$PKG_CONFIG
5166  # Extract the first word of "pkg-config", so it can be a program name with args.
5167set dummy pkg-config; ac_word=$2
5168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5169$as_echo_n "checking for $ac_word... " >&6; }
5170if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5171  $as_echo_n "(cached) " >&6
5172else
5173  case $ac_pt_PKG_CONFIG in
5174  [\\/]* | ?:[\\/]*)
5175  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5176  ;;
5177  *)
5178  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179for as_dir in $PATH
5180do
5181  IFS=$as_save_IFS
5182  test -z "$as_dir" && as_dir=.
5183    for ac_exec_ext in '' $ac_executable_extensions; do
5184  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5185    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5186    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5187    break 2
5188  fi
5189done
5190  done
5191IFS=$as_save_IFS
5192
5193  ;;
5194esac
5195fi
5196ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5197if test -n "$ac_pt_PKG_CONFIG"; then
5198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5199$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5200else
5201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202$as_echo "no" >&6; }
5203fi
5204
5205  if test "x$ac_pt_PKG_CONFIG" = x; then
5206    PKG_CONFIG=""
5207  else
5208    case $cross_compiling:$ac_tool_warned in
5209yes:)
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5211$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5212ac_tool_warned=yes ;;
5213esac
5214    PKG_CONFIG=$ac_pt_PKG_CONFIG
5215  fi
5216else
5217  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5218fi
5219
5220fi
5221if test -n "$PKG_CONFIG"; then
5222	_pkg_min_version=0.9.0
5223	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5224$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5225	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5226		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5227$as_echo "yes" >&6; }
5228	else
5229		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230$as_echo "no" >&6; }
5231		PKG_CONFIG=""
5232	fi
5233fi
5234LIBUUID=
5235DEPLIBUUID=
5236STATIC_LIBUUID=
5237DEPSTATIC_LIBUUID=
5238PROFILED_LIBUUID=
5239DEPPROFILED_LIBUUID=
5240UUID_CMT=
5241# Check whether --enable-libuuid was given.
5242if test "${enable_libuuid+set}" = set; then :
5243  enableval=$enable_libuuid; if test "$enableval" = "no"
5244then
5245	if test -z "$PKG_CONFIG"; then
5246		as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5247	fi
5248
5249	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5250$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5251if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5252  $as_echo_n "(cached) " >&6
5253else
5254  ac_check_lib_save_LIBS=$LIBS
5255LIBS="-luuid  $LIBS"
5256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257/* end confdefs.h.  */
5258
5259/* Override any GCC internal prototype to avoid an error.
5260   Use char because int might match the return type of a GCC
5261   builtin and then its argument prototype would still apply.  */
5262#ifdef __cplusplus
5263extern "C"
5264#endif
5265char uuid_generate ();
5266int
5267main ()
5268{
5269return uuid_generate ();
5270  ;
5271  return 0;
5272}
5273_ACEOF
5274if ac_fn_c_try_link "$LINENO"; then :
5275  ac_cv_lib_uuid_uuid_generate=yes
5276else
5277  ac_cv_lib_uuid_uuid_generate=no
5278fi
5279rm -f core conftest.err conftest.$ac_objext \
5280    conftest$ac_exeext conftest.$ac_ext
5281LIBS=$ac_check_lib_save_LIBS
5282fi
5283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5284$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5285if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5286  LIBUUID=`$PKG_CONFIG --libs uuid`;
5287		 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5288else
5289  as_fn_error $? "external uuid library not found" "$LINENO" 5
5290fi
5291
5292	PROFILED_LIBUUID=$LIBUUID
5293	UUID_CMT=#
5294	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5295$as_echo "Disabling private uuid library" >&6; }
5296else
5297	LIBUUID='$(LIB)/libuuid'$LIB_EXT
5298	DEPLIBUUID=$LIBUUID
5299	STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5300	DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5301	PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5302	DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5303	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5304$as_echo "Enabling private uuid library" >&6; }
5305fi
5306
5307else
5308  if test -n "$PKG_CONFIG"; then
5309	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5310$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5311if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5312  $as_echo_n "(cached) " >&6
5313else
5314  ac_check_lib_save_LIBS=$LIBS
5315LIBS="-luuid  $LIBS"
5316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317/* end confdefs.h.  */
5318
5319/* Override any GCC internal prototype to avoid an error.
5320   Use char because int might match the return type of a GCC
5321   builtin and then its argument prototype would still apply.  */
5322#ifdef __cplusplus
5323extern "C"
5324#endif
5325char uuid_generate ();
5326int
5327main ()
5328{
5329return uuid_generate ();
5330  ;
5331  return 0;
5332}
5333_ACEOF
5334if ac_fn_c_try_link "$LINENO"; then :
5335  ac_cv_lib_uuid_uuid_generate=yes
5336else
5337  ac_cv_lib_uuid_uuid_generate=no
5338fi
5339rm -f core conftest.err conftest.$ac_objext \
5340    conftest$ac_exeext conftest.$ac_ext
5341LIBS=$ac_check_lib_save_LIBS
5342fi
5343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5344$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5345if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5346  LIBUUID=`$PKG_CONFIG --libs uuid`;
5347		 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5348fi
5349
5350fi
5351if test -n "$LIBUUID"; then
5352	PROFILED_LIBUUID=$LIBUUID
5353	UUID_CMT=#
5354	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5355$as_echo "Using system uuid by default" >&6; }
5356else
5357	LIBUUID='$(LIB)/libuuid'$LIB_EXT
5358	DEPLIBUUID=$LIBUUID
5359	STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5360	DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5361	PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5362	DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5363	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5364$as_echo "Enabling private uuid library by default" >&6; }
5365fi
5366
5367fi
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5384	if test -n "$ac_tool_prefix"; then
5385  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5386set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5388$as_echo_n "checking for $ac_word... " >&6; }
5389if ${ac_cv_path_PKG_CONFIG+:} false; then :
5390  $as_echo_n "(cached) " >&6
5391else
5392  case $PKG_CONFIG in
5393  [\\/]* | ?:[\\/]*)
5394  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5395  ;;
5396  *)
5397  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398for as_dir in $PATH
5399do
5400  IFS=$as_save_IFS
5401  test -z "$as_dir" && as_dir=.
5402    for ac_exec_ext in '' $ac_executable_extensions; do
5403  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5404    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5405    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5406    break 2
5407  fi
5408done
5409  done
5410IFS=$as_save_IFS
5411
5412  ;;
5413esac
5414fi
5415PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5416if test -n "$PKG_CONFIG"; then
5417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5418$as_echo "$PKG_CONFIG" >&6; }
5419else
5420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421$as_echo "no" >&6; }
5422fi
5423
5424
5425fi
5426if test -z "$ac_cv_path_PKG_CONFIG"; then
5427  ac_pt_PKG_CONFIG=$PKG_CONFIG
5428  # Extract the first word of "pkg-config", so it can be a program name with args.
5429set dummy pkg-config; ac_word=$2
5430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5431$as_echo_n "checking for $ac_word... " >&6; }
5432if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5433  $as_echo_n "(cached) " >&6
5434else
5435  case $ac_pt_PKG_CONFIG in
5436  [\\/]* | ?:[\\/]*)
5437  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5438  ;;
5439  *)
5440  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441for as_dir in $PATH
5442do
5443  IFS=$as_save_IFS
5444  test -z "$as_dir" && as_dir=.
5445    for ac_exec_ext in '' $ac_executable_extensions; do
5446  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5447    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5448    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5449    break 2
5450  fi
5451done
5452  done
5453IFS=$as_save_IFS
5454
5455  ;;
5456esac
5457fi
5458ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5459if test -n "$ac_pt_PKG_CONFIG"; then
5460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5461$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5462else
5463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464$as_echo "no" >&6; }
5465fi
5466
5467  if test "x$ac_pt_PKG_CONFIG" = x; then
5468    PKG_CONFIG=""
5469  else
5470    case $cross_compiling:$ac_tool_warned in
5471yes:)
5472{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5473$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5474ac_tool_warned=yes ;;
5475esac
5476    PKG_CONFIG=$ac_pt_PKG_CONFIG
5477  fi
5478else
5479  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5480fi
5481
5482fi
5483if test -n "$PKG_CONFIG"; then
5484	_pkg_min_version=0.9.0
5485	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5486$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5487	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5488		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5489$as_echo "yes" >&6; }
5490	else
5491		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492$as_echo "no" >&6; }
5493		PKG_CONFIG=""
5494	fi
5495fi
5496LIBBLKID=
5497DEPLIBBLKID=
5498STATIC_LIBBLKID=
5499DEPSTATIC_LIBBLKID=
5500PROFILED_LIBBLKID=
5501DEPPROFILED_LIBBLKID=
5502BLKID_CMT=
5503
5504# Check whether --enable-libblkid was given.
5505if test "${enable_libblkid+set}" = set; then :
5506  enableval=$enable_libblkid; if test "$enableval" = "no"
5507then
5508	if test -z "$PKG_CONFIG"; then
5509		as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5510	fi
5511
5512	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5513$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5514if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5515  $as_echo_n "(cached) " >&6
5516else
5517  ac_check_lib_save_LIBS=$LIBS
5518LIBS="-lblkid -luuid $LIBS"
5519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520/* end confdefs.h.  */
5521
5522/* Override any GCC internal prototype to avoid an error.
5523   Use char because int might match the return type of a GCC
5524   builtin and then its argument prototype would still apply.  */
5525#ifdef __cplusplus
5526extern "C"
5527#endif
5528char blkid_get_cache ();
5529int
5530main ()
5531{
5532return blkid_get_cache ();
5533  ;
5534  return 0;
5535}
5536_ACEOF
5537if ac_fn_c_try_link "$LINENO"; then :
5538  ac_cv_lib_blkid_blkid_get_cache=yes
5539else
5540  ac_cv_lib_blkid_blkid_get_cache=no
5541fi
5542rm -f core conftest.err conftest.$ac_objext \
5543    conftest$ac_exeext conftest.$ac_ext
5544LIBS=$ac_check_lib_save_LIBS
5545fi
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5547$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5548if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5549  LIBBLKID=`$PKG_CONFIG --libs blkid`;
5550		 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5551else
5552  as_fn_error $? "external blkid library not found" "$LINENO" 5
5553fi
5554
5555	BLKID_CMT=#
5556	PROFILED_LIBBLKID=$LIBBLKID
5557	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5558$as_echo "Disabling private blkid library" >&6; }
5559else
5560	LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5561	DEPLIBBLKID=$LIBBLKID
5562	STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5563	DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5564	PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5565	DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5566	$as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5567
5568	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5569$as_echo "Enabling private blkid library" >&6; }
5570fi
5571
5572else
5573  if test -n "$PKG_CONFIG"; then
5574	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5575$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5576if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5577  $as_echo_n "(cached) " >&6
5578else
5579  ac_check_lib_save_LIBS=$LIBS
5580LIBS="-lblkid  $LIBS"
5581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5582/* end confdefs.h.  */
5583
5584/* Override any GCC internal prototype to avoid an error.
5585   Use char because int might match the return type of a GCC
5586   builtin and then its argument prototype would still apply.  */
5587#ifdef __cplusplus
5588extern "C"
5589#endif
5590char blkid_get_cache ();
5591int
5592main ()
5593{
5594return blkid_get_cache ();
5595  ;
5596  return 0;
5597}
5598_ACEOF
5599if ac_fn_c_try_link "$LINENO"; then :
5600  ac_cv_lib_blkid_blkid_get_cache=yes
5601else
5602  ac_cv_lib_blkid_blkid_get_cache=no
5603fi
5604rm -f core conftest.err conftest.$ac_objext \
5605    conftest$ac_exeext conftest.$ac_ext
5606LIBS=$ac_check_lib_save_LIBS
5607fi
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5609$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5610if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5611  LIBBLKID=`$PKG_CONFIG --libs blkid`;
5612		 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5613fi
5614
5615fi
5616if test -n "$LIBBLKID"; then
5617	BLKID_CMT=#
5618	PROFILED_LIBBLKID=$LIBBLKID
5619	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5620$as_echo "Using system blkid library by default" >&6; }
5621else
5622	LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5623	DEPLIBBLKID=$LIBBLKID
5624	STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5625	DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5626	PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5627	DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5628	$as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5629
5630	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5631$as_echo "Enabling private blkid library by default" >&6; }
5632fi
5633
5634fi
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644# Check whether --enable-backtrace was given.
5645if test "${enable_backtrace+set}" = set; then :
5646  enableval=$enable_backtrace; if test "$enableval" = "no"
5647then
5648	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5649$as_echo "Disabling use of backtrace" >&6; }
5650	$as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5651
5652else
5653	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5654$as_echo "Enabling use of backtrace" >&6; }
5655fi
5656
5657else
5658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5659$as_echo "Enabling use of backtrace by default" >&6; }
5660
5661fi
5662
5663# Check whether --enable-debugfs was given.
5664if test "${enable_debugfs+set}" = set; then :
5665  enableval=$enable_debugfs; if test "$enableval" = "no"
5666then
5667	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5668$as_echo "Disabling debugfs support" >&6; }
5669	DEBUGFS_CMT="#"
5670else
5671	DEBUGFS_CMT=
5672	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5673$as_echo "Enabling debugfs support" >&6; }
5674fi
5675
5676else
5677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5678$as_echo "Enabling debugfs support by default" >&6; }
5679DEBUGFS_CMT=
5680
5681fi
5682
5683
5684# Check whether --enable-imager was given.
5685if test "${enable_imager+set}" = set; then :
5686  enableval=$enable_imager; if test "$enableval" = "no"
5687then
5688	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5689$as_echo "Disabling e2image support" >&6; }
5690	IMAGER_CMT="#"
5691else
5692	IMAGER_CMT=
5693	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5694$as_echo "Enabling e2image support" >&6; }
5695fi
5696
5697else
5698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5699$as_echo "Enabling e2image support by default" >&6; }
5700IMAGER_CMT=
5701
5702fi
5703
5704
5705# Check whether --enable-resizer was given.
5706if test "${enable_resizer+set}" = set; then :
5707  enableval=$enable_resizer; if test "$enableval" = "no"
5708then
5709	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5710$as_echo "Disabling e2resize support" >&6; }
5711	RESIZER_CMT="#"
5712else
5713	RESIZER_CMT=
5714	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5715$as_echo "Enabling e2resize support" >&6; }
5716fi
5717
5718else
5719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5720$as_echo "Enabling e2resize support by default" >&6; }
5721RESIZER_CMT=
5722
5723fi
5724
5725
5726# Check whether --enable-defrag was given.
5727if test "${enable_defrag+set}" = set; then :
5728  enableval=$enable_defrag; if test "$enableval" = "no"
5729then
5730	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5731$as_echo "Disabling e4defrag support" >&6; }
5732	DEFRAG_CMT="#"
5733else
5734	DEFRAG_CMT=
5735	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5736$as_echo "Enabling e4defrag support" >&6; }
5737fi
5738
5739else
5740  if test -z "$WITH_DIET_LIBC"
5741then
5742	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5743$as_echo "Enabling e4defrag support by default" >&6; }
5744	DEFRAG_CMT=
5745else
5746	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5747$as_echo "Disabling e4defrag support by default" >&6; }
5748	DEFRAG_CMT="#"
5749fi
5750
5751fi
5752
5753
5754# Check whether --enable-fsck was given.
5755if test "${enable_fsck+set}" = set; then :
5756  enableval=$enable_fsck; if test "$enableval" = "no"
5757then
5758	FSCK_PROG='' FSCK_MAN=''
5759	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5760$as_echo "Not building fsck wrapper" >&6; }
5761else
5762	FSCK_PROG=fsck FSCK_MAN=fsck.8
5763	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5764$as_echo "Building fsck wrapper" >&6; }
5765fi
5766
5767else
5768  case "$host_os" in
5769  gnu*)
5770    FSCK_PROG='' FSCK_MAN=''
5771    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5772$as_echo "Not building fsck wrapper by default" >&6; }
5773    ;;
5774  *)
5775    FSCK_PROG=fsck FSCK_MAN=fsck.8
5776    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5777$as_echo "Building fsck wrapper by default" >&6; }
5778esac
5779
5780fi
5781
5782
5783
5784# Check whether --enable-e2initrd-helper was given.
5785if test "${enable_e2initrd_helper+set}" = set; then :
5786  enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5787then
5788	E2INITRD_PROG='' E2INITRD_MAN=''
5789	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5790$as_echo "Not building e2initrd helper" >&6; }
5791else
5792	E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5793	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5794$as_echo "Building e2initrd helper" >&6; }
5795fi
5796
5797else
5798  E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5800$as_echo "Building e2initrd helper by default" >&6; }
5801
5802fi
5803
5804
5805
5806# Check whether --enable-tls was given.
5807if test "${enable_tls+set}" = set; then :
5808  enableval=$enable_tls; if test "$enableval" = "no"
5809then
5810	try_tls=""
5811	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5812$as_echo "Disabling thread local support" >&6; }
5813else
5814	try_tls="yes"
5815	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5816$as_echo "Enabling thread local support" >&6; }
5817fi
5818
5819else
5820  if test -n "$WITH_DIET_LIBC"
5821then
5822	try_tls=""
5823	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5824$as_echo "Diet libc does not support thread local support" >&6; }
5825else
5826	try_tls="yes"
5827	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5828$as_echo "Try using thread local support by default" >&6; }
5829fi
5830
5831fi
5832
5833if test "$try_tls" = "yes"
5834then
5835
5836  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5837$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5838  if ${ac_cv_tls+:} false; then :
5839  $as_echo_n "(cached) " >&6
5840else
5841
5842    ax_tls_keywords="__thread __declspec(thread) none"
5843    for ax_tls_keyword in $ax_tls_keywords; do
5844       case $ax_tls_keyword in
5845          none) ac_cv_tls=none ; break ;;
5846          *)
5847             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5848/* end confdefs.h.  */
5849#include <stdlib.h>
5850                 static void
5851                 foo(void) {
5852                 static  $ax_tls_keyword  int bar;
5853                 exit(1);
5854                 }
5855int
5856main ()
5857{
5858
5859  ;
5860  return 0;
5861}
5862_ACEOF
5863if ac_fn_c_try_compile "$LINENO"; then :
5864  ac_cv_tls=$ax_tls_keyword ; break
5865else
5866  ac_cv_tls=none
5867
5868fi
5869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5870          esac
5871    done
5872
5873fi
5874
5875
5876  if test "$ac_cv_tls" != "none"; then
5877
5878cat >>confdefs.h <<_ACEOF
5879#define TLS $ac_cv_tls
5880_ACEOF
5881
5882  fi
5883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5884$as_echo "$ac_cv_tls" >&6; }
5885
5886fi
5887
5888# Check whether --enable-uuidd was given.
5889if test "${enable_uuidd+set}" = set; then :
5890  enableval=$enable_uuidd; if test "$enableval" = "no"
5891then
5892	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5893$as_echo "Not building uuidd" >&6; }
5894	UUIDD_CMT="#"
5895else
5896	$as_echo "#define USE_UUIDD 1" >>confdefs.h
5897
5898	UUIDD_CMT=""
5899	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5900$as_echo "Building uuidd" >&6; }
5901fi
5902
5903else
5904  $as_echo "#define USE_UUIDD 1" >>confdefs.h
5905
5906if test -z "$UUID_CMT"
5907then
5908	UUIDD_CMT=""
5909	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5910$as_echo "Building uuidd by default" >&6; }
5911else
5912	UUIDD_CMT="#"
5913	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5914$as_echo "Disabling uuidd by default" >&6; }
5915fi
5916
5917fi
5918
5919
5920
5921# Check whether --enable-mmp was given.
5922if test "${enable_mmp+set}" = set; then :
5923  enableval=$enable_mmp; if test "$enableval" = "no"
5924then
5925	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5926$as_echo "Disabling mmp support" >&6; }
5927else
5928	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5929$as_echo "Enabling mmp support" >&6; }
5930	$as_echo "#define CONFIG_MMP 1" >>confdefs.h
5931
5932fi
5933
5934else
5935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5936$as_echo "Enabling mmp support by default" >&6; }
5937$as_echo "#define CONFIG_MMP 1" >>confdefs.h
5938
5939
5940fi
5941
5942
5943# Check whether --enable-tdb was given.
5944if test "${enable_tdb+set}" = set; then :
5945  enableval=$enable_tdb; if test "$enableval" = "no"
5946then
5947	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
5948$as_echo "Disabling tdb support" >&6; }
5949	TDB_CMT="#"
5950	TDB_MAN_COMMENT='.\"'
5951else
5952	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
5953$as_echo "Enabling tdb support" >&6; }
5954	$as_echo "#define CONFIG_TDB 1" >>confdefs.h
5955
5956	TDB_CMT=""
5957	TDB_MAN_COMMENT=""
5958fi
5959
5960else
5961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5962$as_echo "Enabling mmp support by default" >&6; }
5963$as_echo "#define CONFIG_TDB 1" >>confdefs.h
5964
5965TDB_CMT=""
5966TDB_MAN_COMMENT=""
5967
5968fi
5969
5970
5971
5972
5973# Check whether --enable-bmap-stats was given.
5974if test "${enable_bmap_stats+set}" = set; then :
5975  enableval=$enable_bmap_stats; if test "$enableval" = "no"
5976then
5977	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
5978$as_echo "Disabling bitmap statistics support" >&6; }
5979else
5980	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
5981$as_echo "Enabling bitmap statistics support" >&6; }
5982	$as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5983
5984fi
5985
5986else
5987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
5988$as_echo "Enabling bitmap statistics support by default" >&6; }
5989$as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5990
5991
5992fi
5993
5994
5995# Check whether --enable-bmap-stats-ops was given.
5996if test "${enable_bmap_stats_ops+set}" = set; then :
5997  enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
5998then
5999	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6000$as_echo "Disabling additional bitmap statistics" >&6; }
6001else
6002		if test "x${enable_bmap_stats}" = "xno"; then :
6003  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6005as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6006See \`config.log' for more details" "$LINENO" 5; }
6007fi
6008
6009	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6010$as_echo "Enabling additional bitmap statistics" >&6; }
6011	$as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6012
6013fi
6014
6015else
6016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6017$as_echo "Disabling additional bitmap statistics by default" >&6; }
6018
6019fi
6020
6021MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6022
6023GETTEXT_PACKAGE=e2fsprogs
6024PACKAGE=e2fsprogs
6025VERSION="$E2FSPROGS_VERSION"
6026VERSION=0.14.1
6027
6028cat >>confdefs.h <<_ACEOF
6029#define PACKAGE "$PACKAGE"
6030_ACEOF
6031
6032
6033cat >>confdefs.h <<_ACEOF
6034#define VERSION "$VERSION"
6035_ACEOF
6036
6037
6038
6039
6040
6041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6042$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6043set x ${MAKE-make}
6044ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6045if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6046  $as_echo_n "(cached) " >&6
6047else
6048  cat >conftest.make <<\_ACEOF
6049SHELL = /bin/sh
6050all:
6051	@echo '@@@%%%=$(MAKE)=@@@%%%'
6052_ACEOF
6053# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6054case `${MAKE-make} -f conftest.make 2>/dev/null` in
6055  *@@@%%%=?*=@@@%%%*)
6056    eval ac_cv_prog_make_${ac_make}_set=yes;;
6057  *)
6058    eval ac_cv_prog_make_${ac_make}_set=no;;
6059esac
6060rm -f conftest.make
6061fi
6062if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6064$as_echo "yes" >&6; }
6065  SET_MAKE=
6066else
6067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6068$as_echo "no" >&6; }
6069  SET_MAKE="MAKE=${MAKE-make}"
6070fi
6071
6072# Find a good install program.  We prefer a C program (faster),
6073# so one script is as good as another.  But avoid the broken or
6074# incompatible versions:
6075# SysV /etc/install, /usr/sbin/install
6076# SunOS /usr/etc/install
6077# IRIX /sbin/install
6078# AIX /bin/install
6079# AmigaOS /C/install, which installs bootblocks on floppy discs
6080# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6081# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6082# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6083# OS/2's system install, which has a completely different semantic
6084# ./install, which can be erroneously created by make from ./install.sh.
6085# Reject install programs that cannot install multiple files.
6086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6087$as_echo_n "checking for a BSD-compatible install... " >&6; }
6088if test -z "$INSTALL"; then
6089if ${ac_cv_path_install+:} false; then :
6090  $as_echo_n "(cached) " >&6
6091else
6092  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093for as_dir in $PATH
6094do
6095  IFS=$as_save_IFS
6096  test -z "$as_dir" && as_dir=.
6097    # Account for people who put trailing slashes in PATH elements.
6098case $as_dir/ in #((
6099  ./ | .// | /[cC]/* | \
6100  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6101  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6102  /usr/ucb/* ) ;;
6103  *)
6104    # OSF1 and SCO ODT 3.0 have their own names for install.
6105    # Don't use installbsd from OSF since it installs stuff as root
6106    # by default.
6107    for ac_prog in ginstall scoinst install; do
6108      for ac_exec_ext in '' $ac_executable_extensions; do
6109	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6110	  if test $ac_prog = install &&
6111	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6112	    # AIX install.  It has an incompatible calling convention.
6113	    :
6114	  elif test $ac_prog = install &&
6115	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6116	    # program-specific install script used by HP pwplus--don't use.
6117	    :
6118	  else
6119	    rm -rf conftest.one conftest.two conftest.dir
6120	    echo one > conftest.one
6121	    echo two > conftest.two
6122	    mkdir conftest.dir
6123	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6124	      test -s conftest.one && test -s conftest.two &&
6125	      test -s conftest.dir/conftest.one &&
6126	      test -s conftest.dir/conftest.two
6127	    then
6128	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6129	      break 3
6130	    fi
6131	  fi
6132	fi
6133      done
6134    done
6135    ;;
6136esac
6137
6138  done
6139IFS=$as_save_IFS
6140
6141rm -rf conftest.one conftest.two conftest.dir
6142
6143fi
6144  if test "${ac_cv_path_install+set}" = set; then
6145    INSTALL=$ac_cv_path_install
6146  else
6147    # As a last resort, use the slow shell script.  Don't cache a
6148    # value for INSTALL within a source directory, because that will
6149    # break other packages using the cache if that directory is
6150    # removed, or if the value is a relative name.
6151    INSTALL=$ac_install_sh
6152  fi
6153fi
6154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6155$as_echo "$INSTALL" >&6; }
6156
6157# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6158# It thinks the first close brace ends the variable substitution.
6159test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6160
6161test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6162
6163test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6164
6165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6166$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6167if test -z "$MKDIR_P"; then
6168  if ${ac_cv_path_mkdir+:} false; then :
6169  $as_echo_n "(cached) " >&6
6170else
6171  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6173do
6174  IFS=$as_save_IFS
6175  test -z "$as_dir" && as_dir=.
6176    for ac_prog in mkdir gmkdir; do
6177	 for ac_exec_ext in '' $ac_executable_extensions; do
6178	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6179	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6180	     'mkdir (GNU coreutils) '* | \
6181	     'mkdir (coreutils) '* | \
6182	     'mkdir (fileutils) '4.1*)
6183	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6184	       break 3;;
6185	   esac
6186	 done
6187       done
6188  done
6189IFS=$as_save_IFS
6190
6191fi
6192
6193  test -d ./--version && rmdir ./--version
6194  if test "${ac_cv_path_mkdir+set}" = set; then
6195    MKDIR_P="$ac_cv_path_mkdir -p"
6196  else
6197    # As a last resort, use the slow shell script.  Don't cache a
6198    # value for MKDIR_P within a source directory, because that will
6199    # break other packages using the cache if that directory is
6200    # removed, or if the value is a relative name.
6201    MKDIR_P="$ac_install_sh -d"
6202  fi
6203fi
6204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6205$as_echo "$MKDIR_P" >&6; }
6206
6207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6208$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6209if ${ac_cv_path_SED+:} false; then :
6210  $as_echo_n "(cached) " >&6
6211else
6212            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6213     for ac_i in 1 2 3 4 5 6 7; do
6214       ac_script="$ac_script$as_nl$ac_script"
6215     done
6216     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6217     { ac_script=; unset ac_script;}
6218     if test -z "$SED"; then
6219  ac_path_SED_found=false
6220  # Loop through the user's path and test for each of PROGNAME-LIST
6221  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222for as_dir in $PATH
6223do
6224  IFS=$as_save_IFS
6225  test -z "$as_dir" && as_dir=.
6226    for ac_prog in sed gsed; do
6227    for ac_exec_ext in '' $ac_executable_extensions; do
6228      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6229      as_fn_executable_p "$ac_path_SED" || continue
6230# Check for GNU ac_path_SED and select it if it is found.
6231  # Check for GNU $ac_path_SED
6232case `"$ac_path_SED" --version 2>&1` in
6233*GNU*)
6234  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6235*)
6236  ac_count=0
6237  $as_echo_n 0123456789 >"conftest.in"
6238  while :
6239  do
6240    cat "conftest.in" "conftest.in" >"conftest.tmp"
6241    mv "conftest.tmp" "conftest.in"
6242    cp "conftest.in" "conftest.nl"
6243    $as_echo '' >> "conftest.nl"
6244    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6245    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6246    as_fn_arith $ac_count + 1 && ac_count=$as_val
6247    if test $ac_count -gt ${ac_path_SED_max-0}; then
6248      # Best one so far, save it but keep looking for a better one
6249      ac_cv_path_SED="$ac_path_SED"
6250      ac_path_SED_max=$ac_count
6251    fi
6252    # 10*(2^10) chars as input seems more than enough
6253    test $ac_count -gt 10 && break
6254  done
6255  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6256esac
6257
6258      $ac_path_SED_found && break 3
6259    done
6260  done
6261  done
6262IFS=$as_save_IFS
6263  if test -z "$ac_cv_path_SED"; then
6264    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6265  fi
6266else
6267  ac_cv_path_SED=$SED
6268fi
6269
6270fi
6271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6272$as_echo "$ac_cv_path_SED" >&6; }
6273 SED="$ac_cv_path_SED"
6274  rm -f conftest.sed
6275
6276
6277  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6278$as_echo_n "checking whether NLS is requested... " >&6; }
6279    # Check whether --enable-nls was given.
6280if test "${enable_nls+set}" = set; then :
6281  enableval=$enable_nls; USE_NLS=$enableval
6282else
6283  USE_NLS=yes
6284fi
6285
6286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6287$as_echo "$USE_NLS" >&6; }
6288
6289
6290
6291
6292      GETTEXT_MACRO_VERSION=0.18
6293
6294
6295
6296
6297# Prepare PATH_SEPARATOR.
6298# The user is always right.
6299if test "${PATH_SEPARATOR+set}" != set; then
6300  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6301  # contains only /bin. Note that ksh looks also at the FPATH variable,
6302  # so we have to set that as well for the test.
6303  PATH_SEPARATOR=:
6304  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6305    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6306           || PATH_SEPARATOR=';'
6307       }
6308fi
6309
6310# Find out how to test for executable files. Don't use a zero-byte file,
6311# as systems may use methods other than mode bits to determine executability.
6312cat >conf$$.file <<_ASEOF
6313#! /bin/sh
6314exit 0
6315_ASEOF
6316chmod +x conf$$.file
6317if test -x conf$$.file >/dev/null 2>&1; then
6318  ac_executable_p="test -x"
6319else
6320  ac_executable_p="test -f"
6321fi
6322rm -f conf$$.file
6323
6324# Extract the first word of "msgfmt", so it can be a program name with args.
6325set dummy msgfmt; ac_word=$2
6326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6327$as_echo_n "checking for $ac_word... " >&6; }
6328if ${ac_cv_path_MSGFMT+:} false; then :
6329  $as_echo_n "(cached) " >&6
6330else
6331  case "$MSGFMT" in
6332  [\\/]* | ?:[\\/]*)
6333    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6334    ;;
6335  *)
6336    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6337    for ac_dir in $PATH; do
6338      IFS="$ac_save_IFS"
6339      test -z "$ac_dir" && ac_dir=.
6340      for ac_exec_ext in '' $ac_executable_extensions; do
6341        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6342          echo "$as_me: trying $ac_dir/$ac_word..." >&5
6343          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6344     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6345            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6346            break 2
6347          fi
6348        fi
6349      done
6350    done
6351    IFS="$ac_save_IFS"
6352  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6353    ;;
6354esac
6355fi
6356MSGFMT="$ac_cv_path_MSGFMT"
6357if test "$MSGFMT" != ":"; then
6358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6359$as_echo "$MSGFMT" >&6; }
6360else
6361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6362$as_echo "no" >&6; }
6363fi
6364
6365  # Extract the first word of "gmsgfmt", so it can be a program name with args.
6366set dummy gmsgfmt; ac_word=$2
6367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6368$as_echo_n "checking for $ac_word... " >&6; }
6369if ${ac_cv_path_GMSGFMT+:} false; then :
6370  $as_echo_n "(cached) " >&6
6371else
6372  case $GMSGFMT in
6373  [\\/]* | ?:[\\/]*)
6374  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6375  ;;
6376  *)
6377  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378for as_dir in $PATH
6379do
6380  IFS=$as_save_IFS
6381  test -z "$as_dir" && as_dir=.
6382    for ac_exec_ext in '' $ac_executable_extensions; do
6383  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6384    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6385    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6386    break 2
6387  fi
6388done
6389  done
6390IFS=$as_save_IFS
6391
6392  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6393  ;;
6394esac
6395fi
6396GMSGFMT=$ac_cv_path_GMSGFMT
6397if test -n "$GMSGFMT"; then
6398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6399$as_echo "$GMSGFMT" >&6; }
6400else
6401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6402$as_echo "no" >&6; }
6403fi
6404
6405
6406
6407    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6408    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6409    *) MSGFMT_015=$MSGFMT ;;
6410  esac
6411
6412  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6413    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6414    *) GMSGFMT_015=$GMSGFMT ;;
6415  esac
6416
6417
6418
6419# Prepare PATH_SEPARATOR.
6420# The user is always right.
6421if test "${PATH_SEPARATOR+set}" != set; then
6422  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6423  # contains only /bin. Note that ksh looks also at the FPATH variable,
6424  # so we have to set that as well for the test.
6425  PATH_SEPARATOR=:
6426  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6427    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6428           || PATH_SEPARATOR=';'
6429       }
6430fi
6431
6432# Find out how to test for executable files. Don't use a zero-byte file,
6433# as systems may use methods other than mode bits to determine executability.
6434cat >conf$$.file <<_ASEOF
6435#! /bin/sh
6436exit 0
6437_ASEOF
6438chmod +x conf$$.file
6439if test -x conf$$.file >/dev/null 2>&1; then
6440  ac_executable_p="test -x"
6441else
6442  ac_executable_p="test -f"
6443fi
6444rm -f conf$$.file
6445
6446# Extract the first word of "xgettext", so it can be a program name with args.
6447set dummy xgettext; ac_word=$2
6448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449$as_echo_n "checking for $ac_word... " >&6; }
6450if ${ac_cv_path_XGETTEXT+:} false; then :
6451  $as_echo_n "(cached) " >&6
6452else
6453  case "$XGETTEXT" in
6454  [\\/]* | ?:[\\/]*)
6455    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6456    ;;
6457  *)
6458    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6459    for ac_dir in $PATH; do
6460      IFS="$ac_save_IFS"
6461      test -z "$ac_dir" && ac_dir=.
6462      for ac_exec_ext in '' $ac_executable_extensions; do
6463        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6464          echo "$as_me: trying $ac_dir/$ac_word..." >&5
6465          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6466     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6467            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6468            break 2
6469          fi
6470        fi
6471      done
6472    done
6473    IFS="$ac_save_IFS"
6474  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6475    ;;
6476esac
6477fi
6478XGETTEXT="$ac_cv_path_XGETTEXT"
6479if test "$XGETTEXT" != ":"; then
6480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6481$as_echo "$XGETTEXT" >&6; }
6482else
6483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6484$as_echo "no" >&6; }
6485fi
6486
6487    rm -f messages.po
6488
6489    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6490    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6491    *) XGETTEXT_015=$XGETTEXT ;;
6492  esac
6493
6494
6495
6496# Prepare PATH_SEPARATOR.
6497# The user is always right.
6498if test "${PATH_SEPARATOR+set}" != set; then
6499  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6500  # contains only /bin. Note that ksh looks also at the FPATH variable,
6501  # so we have to set that as well for the test.
6502  PATH_SEPARATOR=:
6503  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6504    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6505           || PATH_SEPARATOR=';'
6506       }
6507fi
6508
6509# Find out how to test for executable files. Don't use a zero-byte file,
6510# as systems may use methods other than mode bits to determine executability.
6511cat >conf$$.file <<_ASEOF
6512#! /bin/sh
6513exit 0
6514_ASEOF
6515chmod +x conf$$.file
6516if test -x conf$$.file >/dev/null 2>&1; then
6517  ac_executable_p="test -x"
6518else
6519  ac_executable_p="test -f"
6520fi
6521rm -f conf$$.file
6522
6523# Extract the first word of "msgmerge", so it can be a program name with args.
6524set dummy msgmerge; ac_word=$2
6525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6526$as_echo_n "checking for $ac_word... " >&6; }
6527if ${ac_cv_path_MSGMERGE+:} false; then :
6528  $as_echo_n "(cached) " >&6
6529else
6530  case "$MSGMERGE" in
6531  [\\/]* | ?:[\\/]*)
6532    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6533    ;;
6534  *)
6535    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6536    for ac_dir in $PATH; do
6537      IFS="$ac_save_IFS"
6538      test -z "$ac_dir" && ac_dir=.
6539      for ac_exec_ext in '' $ac_executable_extensions; do
6540        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6541          echo "$as_me: trying $ac_dir/$ac_word..." >&5
6542          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6543            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6544            break 2
6545          fi
6546        fi
6547      done
6548    done
6549    IFS="$ac_save_IFS"
6550  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6551    ;;
6552esac
6553fi
6554MSGMERGE="$ac_cv_path_MSGMERGE"
6555if test "$MSGMERGE" != ":"; then
6556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6557$as_echo "$MSGMERGE" >&6; }
6558else
6559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6560$as_echo "no" >&6; }
6561fi
6562
6563
6564        test -n "$localedir" || localedir='${datadir}/locale'
6565
6566
6567    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6568
6569
6570  ac_config_commands="$ac_config_commands po-directories"
6571
6572
6573
6574    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6575$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6576if ${ac_cv_gnu_library_2+:} false; then :
6577  $as_echo_n "(cached) " >&6
6578else
6579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580/* end confdefs.h.  */
6581
6582#include <features.h>
6583#ifdef __GNU_LIBRARY__
6584 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6585  Lucky GNU user
6586 #endif
6587#endif
6588
6589_ACEOF
6590if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6591  $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6592  ac_cv_gnu_library_2=yes
6593else
6594  ac_cv_gnu_library_2=no
6595fi
6596rm -f conftest*
6597
6598
6599
6600fi
6601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6602$as_echo "$ac_cv_gnu_library_2" >&6; }
6603
6604    GLIBC2="$ac_cv_gnu_library_2"
6605
6606
6607if test -n "$ac_tool_prefix"; then
6608  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6609set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6611$as_echo_n "checking for $ac_word... " >&6; }
6612if ${ac_cv_prog_RANLIB+:} false; then :
6613  $as_echo_n "(cached) " >&6
6614else
6615  if test -n "$RANLIB"; then
6616  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6617else
6618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619for as_dir in $PATH
6620do
6621  IFS=$as_save_IFS
6622  test -z "$as_dir" && as_dir=.
6623    for ac_exec_ext in '' $ac_executable_extensions; do
6624  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6625    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6626    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6627    break 2
6628  fi
6629done
6630  done
6631IFS=$as_save_IFS
6632
6633fi
6634fi
6635RANLIB=$ac_cv_prog_RANLIB
6636if test -n "$RANLIB"; then
6637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6638$as_echo "$RANLIB" >&6; }
6639else
6640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6641$as_echo "no" >&6; }
6642fi
6643
6644
6645fi
6646if test -z "$ac_cv_prog_RANLIB"; then
6647  ac_ct_RANLIB=$RANLIB
6648  # Extract the first word of "ranlib", so it can be a program name with args.
6649set dummy ranlib; ac_word=$2
6650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6651$as_echo_n "checking for $ac_word... " >&6; }
6652if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6653  $as_echo_n "(cached) " >&6
6654else
6655  if test -n "$ac_ct_RANLIB"; then
6656  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6657else
6658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659for as_dir in $PATH
6660do
6661  IFS=$as_save_IFS
6662  test -z "$as_dir" && as_dir=.
6663    for ac_exec_ext in '' $ac_executable_extensions; do
6664  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6665    ac_cv_prog_ac_ct_RANLIB="ranlib"
6666    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6667    break 2
6668  fi
6669done
6670  done
6671IFS=$as_save_IFS
6672
6673fi
6674fi
6675ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6676if test -n "$ac_ct_RANLIB"; then
6677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6678$as_echo "$ac_ct_RANLIB" >&6; }
6679else
6680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6681$as_echo "no" >&6; }
6682fi
6683
6684  if test "x$ac_ct_RANLIB" = x; then
6685    RANLIB=":"
6686  else
6687    case $cross_compiling:$ac_tool_warned in
6688yes:)
6689{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6691ac_tool_warned=yes ;;
6692esac
6693    RANLIB=$ac_ct_RANLIB
6694  fi
6695else
6696  RANLIB="$ac_cv_prog_RANLIB"
6697fi
6698
6699
6700
6701  CFLAG_VISIBILITY=
6702  HAVE_VISIBILITY=0
6703  if test -n "$GCC"; then
6704                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6705$as_echo_n "checking whether the -Werror option is usable... " >&6; }
6706    if ${gl_cv_cc_vis_werror+:} false; then :
6707  $as_echo_n "(cached) " >&6
6708else
6709
6710      gl_save_CFLAGS="$CFLAGS"
6711      CFLAGS="$CFLAGS -Werror"
6712      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6713/* end confdefs.h.  */
6714
6715int
6716main ()
6717{
6718
6719  ;
6720  return 0;
6721}
6722_ACEOF
6723if ac_fn_c_try_compile "$LINENO"; then :
6724  gl_cv_cc_vis_werror=yes
6725else
6726  gl_cv_cc_vis_werror=no
6727fi
6728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6729      CFLAGS="$gl_save_CFLAGS"
6730fi
6731
6732    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6733$as_echo "$gl_cv_cc_vis_werror" >&6; }
6734        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6735$as_echo_n "checking for simple visibility declarations... " >&6; }
6736    if ${gl_cv_cc_visibility+:} false; then :
6737  $as_echo_n "(cached) " >&6
6738else
6739
6740      gl_save_CFLAGS="$CFLAGS"
6741      CFLAGS="$CFLAGS -fvisibility=hidden"
6742                                    if test $gl_cv_cc_vis_werror = yes; then
6743        CFLAGS="$CFLAGS -Werror"
6744      fi
6745      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746/* end confdefs.h.  */
6747extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6748             extern __attribute__((__visibility__("default"))) int exportedvar;
6749             extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6750             extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6751             void dummyfunc (void) {}
6752
6753int
6754main ()
6755{
6756
6757  ;
6758  return 0;
6759}
6760_ACEOF
6761if ac_fn_c_try_compile "$LINENO"; then :
6762  gl_cv_cc_visibility=yes
6763else
6764  gl_cv_cc_visibility=no
6765fi
6766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6767      CFLAGS="$gl_save_CFLAGS"
6768fi
6769
6770    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6771$as_echo "$gl_cv_cc_visibility" >&6; }
6772    if test $gl_cv_cc_visibility = yes; then
6773      CFLAG_VISIBILITY="-fvisibility=hidden"
6774      HAVE_VISIBILITY=1
6775    fi
6776  fi
6777
6778
6779
6780cat >>confdefs.h <<_ACEOF
6781#define HAVE_VISIBILITY $HAVE_VISIBILITY
6782_ACEOF
6783
6784
6785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6786$as_echo_n "checking for inline... " >&6; }
6787if ${ac_cv_c_inline+:} false; then :
6788  $as_echo_n "(cached) " >&6
6789else
6790  ac_cv_c_inline=no
6791for ac_kw in inline __inline__ __inline; do
6792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6793/* end confdefs.h.  */
6794#ifndef __cplusplus
6795typedef int foo_t;
6796static $ac_kw foo_t static_foo () {return 0; }
6797$ac_kw foo_t foo () {return 0; }
6798#endif
6799
6800_ACEOF
6801if ac_fn_c_try_compile "$LINENO"; then :
6802  ac_cv_c_inline=$ac_kw
6803fi
6804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6805  test "$ac_cv_c_inline" != no && break
6806done
6807
6808fi
6809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6810$as_echo "$ac_cv_c_inline" >&6; }
6811
6812case $ac_cv_c_inline in
6813  inline | yes) ;;
6814  *)
6815    case $ac_cv_c_inline in
6816      no) ac_val=;;
6817      *) ac_val=$ac_cv_c_inline;;
6818    esac
6819    cat >>confdefs.h <<_ACEOF
6820#ifndef __cplusplus
6821#define inline $ac_val
6822#endif
6823_ACEOF
6824    ;;
6825esac
6826
6827ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6828if test "x$ac_cv_type_size_t" = xyes; then :
6829
6830else
6831
6832cat >>confdefs.h <<_ACEOF
6833#define size_t unsigned int
6834_ACEOF
6835
6836fi
6837
6838
6839  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6840$as_echo_n "checking for stdint.h... " >&6; }
6841if ${gl_cv_header_stdint_h+:} false; then :
6842  $as_echo_n "(cached) " >&6
6843else
6844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6845/* end confdefs.h.  */
6846#include <sys/types.h>
6847            #include <stdint.h>
6848int
6849main ()
6850{
6851uintmax_t i = (uintmax_t) -1; return !i;
6852  ;
6853  return 0;
6854}
6855_ACEOF
6856if ac_fn_c_try_compile "$LINENO"; then :
6857  gl_cv_header_stdint_h=yes
6858else
6859  gl_cv_header_stdint_h=no
6860fi
6861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6862fi
6863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6864$as_echo "$gl_cv_header_stdint_h" >&6; }
6865  if test $gl_cv_header_stdint_h = yes; then
6866
6867cat >>confdefs.h <<_ACEOF
6868#define HAVE_STDINT_H_WITH_UINTMAX 1
6869_ACEOF
6870
6871  fi
6872
6873# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6874# for constant arguments.  Useless!
6875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6876$as_echo_n "checking for working alloca.h... " >&6; }
6877if ${ac_cv_working_alloca_h+:} false; then :
6878  $as_echo_n "(cached) " >&6
6879else
6880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881/* end confdefs.h.  */
6882#include <alloca.h>
6883int
6884main ()
6885{
6886char *p = (char *) alloca (2 * sizeof (int));
6887			  if (p) return 0;
6888  ;
6889  return 0;
6890}
6891_ACEOF
6892if ac_fn_c_try_link "$LINENO"; then :
6893  ac_cv_working_alloca_h=yes
6894else
6895  ac_cv_working_alloca_h=no
6896fi
6897rm -f core conftest.err conftest.$ac_objext \
6898    conftest$ac_exeext conftest.$ac_ext
6899fi
6900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6901$as_echo "$ac_cv_working_alloca_h" >&6; }
6902if test $ac_cv_working_alloca_h = yes; then
6903
6904$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6905
6906fi
6907
6908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6909$as_echo_n "checking for alloca... " >&6; }
6910if ${ac_cv_func_alloca_works+:} false; then :
6911  $as_echo_n "(cached) " >&6
6912else
6913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914/* end confdefs.h.  */
6915#ifdef __GNUC__
6916# define alloca __builtin_alloca
6917#else
6918# ifdef _MSC_VER
6919#  include <malloc.h>
6920#  define alloca _alloca
6921# else
6922#  ifdef HAVE_ALLOCA_H
6923#   include <alloca.h>
6924#  else
6925#   ifdef _AIX
6926 #pragma alloca
6927#   else
6928#    ifndef alloca /* predefined by HP cc +Olibcalls */
6929void *alloca (size_t);
6930#    endif
6931#   endif
6932#  endif
6933# endif
6934#endif
6935
6936int
6937main ()
6938{
6939char *p = (char *) alloca (1);
6940				    if (p) return 0;
6941  ;
6942  return 0;
6943}
6944_ACEOF
6945if ac_fn_c_try_link "$LINENO"; then :
6946  ac_cv_func_alloca_works=yes
6947else
6948  ac_cv_func_alloca_works=no
6949fi
6950rm -f core conftest.err conftest.$ac_objext \
6951    conftest$ac_exeext conftest.$ac_ext
6952fi
6953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6954$as_echo "$ac_cv_func_alloca_works" >&6; }
6955
6956if test $ac_cv_func_alloca_works = yes; then
6957
6958$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6959
6960else
6961  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6962# that cause trouble.  Some versions do not even contain alloca or
6963# contain a buggy version.  If you still want to use their alloca,
6964# use ar to extract alloca.o from them instead of compiling alloca.c.
6965
6966ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6967
6968$as_echo "#define C_ALLOCA 1" >>confdefs.h
6969
6970
6971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6972$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6973if ${ac_cv_os_cray+:} false; then :
6974  $as_echo_n "(cached) " >&6
6975else
6976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6977/* end confdefs.h.  */
6978#if defined CRAY && ! defined CRAY2
6979webecray
6980#else
6981wenotbecray
6982#endif
6983
6984_ACEOF
6985if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6986  $EGREP "webecray" >/dev/null 2>&1; then :
6987  ac_cv_os_cray=yes
6988else
6989  ac_cv_os_cray=no
6990fi
6991rm -f conftest*
6992
6993fi
6994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6995$as_echo "$ac_cv_os_cray" >&6; }
6996if test $ac_cv_os_cray = yes; then
6997  for ac_func in _getb67 GETB67 getb67; do
6998    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6999ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7000if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7001
7002cat >>confdefs.h <<_ACEOF
7003#define CRAY_STACKSEG_END $ac_func
7004_ACEOF
7005
7006    break
7007fi
7008
7009  done
7010fi
7011
7012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7013$as_echo_n "checking stack direction for C alloca... " >&6; }
7014if ${ac_cv_c_stack_direction+:} false; then :
7015  $as_echo_n "(cached) " >&6
7016else
7017  if test "$cross_compiling" = yes; then :
7018  ac_cv_c_stack_direction=0
7019else
7020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7021/* end confdefs.h.  */
7022$ac_includes_default
7023int
7024find_stack_direction (int *addr, int depth)
7025{
7026  int dir, dummy = 0;
7027  if (! addr)
7028    addr = &dummy;
7029  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7030  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7031  return dir + dummy;
7032}
7033
7034int
7035main (int argc, char **argv)
7036{
7037  return find_stack_direction (0, argc + !argv + 20) < 0;
7038}
7039_ACEOF
7040if ac_fn_c_try_run "$LINENO"; then :
7041  ac_cv_c_stack_direction=1
7042else
7043  ac_cv_c_stack_direction=-1
7044fi
7045rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7046  conftest.$ac_objext conftest.beam conftest.$ac_ext
7047fi
7048
7049fi
7050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7051$as_echo "$ac_cv_c_stack_direction" >&6; }
7052cat >>confdefs.h <<_ACEOF
7053#define STACK_DIRECTION $ac_cv_c_stack_direction
7054_ACEOF
7055
7056
7057fi
7058
7059
7060
7061
7062  for ac_header in $ac_header_list
7063do :
7064  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7065ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7066"
7067if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7068  cat >>confdefs.h <<_ACEOF
7069#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7070_ACEOF
7071
7072fi
7073
7074done
7075
7076
7077
7078
7079
7080
7081
7082
7083for ac_func in getpagesize
7084do :
7085  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7086if test "x$ac_cv_func_getpagesize" = xyes; then :
7087  cat >>confdefs.h <<_ACEOF
7088#define HAVE_GETPAGESIZE 1
7089_ACEOF
7090
7091fi
7092done
7093
7094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7095$as_echo_n "checking for working mmap... " >&6; }
7096if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7097  $as_echo_n "(cached) " >&6
7098else
7099  if test "$cross_compiling" = yes; then :
7100  ac_cv_func_mmap_fixed_mapped=no
7101else
7102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7103/* end confdefs.h.  */
7104$ac_includes_default
7105/* malloc might have been renamed as rpl_malloc. */
7106#undef malloc
7107
7108/* Thanks to Mike Haertel and Jim Avera for this test.
7109   Here is a matrix of mmap possibilities:
7110	mmap private not fixed
7111	mmap private fixed at somewhere currently unmapped
7112	mmap private fixed at somewhere already mapped
7113	mmap shared not fixed
7114	mmap shared fixed at somewhere currently unmapped
7115	mmap shared fixed at somewhere already mapped
7116   For private mappings, we should verify that changes cannot be read()
7117   back from the file, nor mmap's back from the file at a different
7118   address.  (There have been systems where private was not correctly
7119   implemented like the infamous i386 svr4.0, and systems where the
7120   VM page cache was not coherent with the file system buffer cache
7121   like early versions of FreeBSD and possibly contemporary NetBSD.)
7122   For shared mappings, we should conversely verify that changes get
7123   propagated back to all the places they're supposed to be.
7124
7125   Grep wants private fixed already mapped.
7126   The main things grep needs to know about mmap are:
7127   * does it exist and is it safe to write into the mmap'd area
7128   * how to use it (BSD variants)  */
7129
7130#include <fcntl.h>
7131#include <sys/mman.h>
7132
7133#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7134char *malloc ();
7135#endif
7136
7137/* This mess was copied from the GNU getpagesize.h.  */
7138#ifndef HAVE_GETPAGESIZE
7139# ifdef _SC_PAGESIZE
7140#  define getpagesize() sysconf(_SC_PAGESIZE)
7141# else /* no _SC_PAGESIZE */
7142#  ifdef HAVE_SYS_PARAM_H
7143#   include <sys/param.h>
7144#   ifdef EXEC_PAGESIZE
7145#    define getpagesize() EXEC_PAGESIZE
7146#   else /* no EXEC_PAGESIZE */
7147#    ifdef NBPG
7148#     define getpagesize() NBPG * CLSIZE
7149#     ifndef CLSIZE
7150#      define CLSIZE 1
7151#     endif /* no CLSIZE */
7152#    else /* no NBPG */
7153#     ifdef NBPC
7154#      define getpagesize() NBPC
7155#     else /* no NBPC */
7156#      ifdef PAGESIZE
7157#       define getpagesize() PAGESIZE
7158#      endif /* PAGESIZE */
7159#     endif /* no NBPC */
7160#    endif /* no NBPG */
7161#   endif /* no EXEC_PAGESIZE */
7162#  else /* no HAVE_SYS_PARAM_H */
7163#   define getpagesize() 8192	/* punt totally */
7164#  endif /* no HAVE_SYS_PARAM_H */
7165# endif /* no _SC_PAGESIZE */
7166
7167#endif /* no HAVE_GETPAGESIZE */
7168
7169int
7170main ()
7171{
7172  char *data, *data2, *data3;
7173  const char *cdata2;
7174  int i, pagesize;
7175  int fd, fd2;
7176
7177  pagesize = getpagesize ();
7178
7179  /* First, make a file with some known garbage in it. */
7180  data = (char *) malloc (pagesize);
7181  if (!data)
7182    return 1;
7183  for (i = 0; i < pagesize; ++i)
7184    *(data + i) = rand ();
7185  umask (0);
7186  fd = creat ("conftest.mmap", 0600);
7187  if (fd < 0)
7188    return 2;
7189  if (write (fd, data, pagesize) != pagesize)
7190    return 3;
7191  close (fd);
7192
7193  /* Next, check that the tail of a page is zero-filled.  File must have
7194     non-zero length, otherwise we risk SIGBUS for entire page.  */
7195  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7196  if (fd2 < 0)
7197    return 4;
7198  cdata2 = "";
7199  if (write (fd2, cdata2, 1) != 1)
7200    return 5;
7201  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7202  if (data2 == MAP_FAILED)
7203    return 6;
7204  for (i = 0; i < pagesize; ++i)
7205    if (*(data2 + i))
7206      return 7;
7207  close (fd2);
7208  if (munmap (data2, pagesize))
7209    return 8;
7210
7211  /* Next, try to mmap the file at a fixed address which already has
7212     something else allocated at it.  If we can, also make sure that
7213     we see the same garbage.  */
7214  fd = open ("conftest.mmap", O_RDWR);
7215  if (fd < 0)
7216    return 9;
7217  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7218		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
7219    return 10;
7220  for (i = 0; i < pagesize; ++i)
7221    if (*(data + i) != *(data2 + i))
7222      return 11;
7223
7224  /* Finally, make sure that changes to the mapped area do not
7225     percolate back to the file as seen by read().  (This is a bug on
7226     some variants of i386 svr4.0.)  */
7227  for (i = 0; i < pagesize; ++i)
7228    *(data2 + i) = *(data2 + i) + 1;
7229  data3 = (char *) malloc (pagesize);
7230  if (!data3)
7231    return 12;
7232  if (read (fd, data3, pagesize) != pagesize)
7233    return 13;
7234  for (i = 0; i < pagesize; ++i)
7235    if (*(data + i) != *(data3 + i))
7236      return 14;
7237  close (fd);
7238  return 0;
7239}
7240_ACEOF
7241if ac_fn_c_try_run "$LINENO"; then :
7242  ac_cv_func_mmap_fixed_mapped=yes
7243else
7244  ac_cv_func_mmap_fixed_mapped=no
7245fi
7246rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7247  conftest.$ac_objext conftest.beam conftest.$ac_ext
7248fi
7249
7250fi
7251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7252$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7253if test $ac_cv_func_mmap_fixed_mapped = yes; then
7254
7255$as_echo "#define HAVE_MMAP 1" >>confdefs.h
7256
7257fi
7258rm -f conftest.mmap conftest.txt
7259
7260
7261
7262  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7263$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7264if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7265  $as_echo_n "(cached) " >&6
7266else
7267
7268      gt_cv_int_divbyzero_sigfpe=
7269      case "$host_os" in
7270        macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7271          # On Mac OS X 10.2 or newer, just assume the same as when cross-
7272          # compiling. If we were to perform the real test, 1 Crash Report
7273          # dialog window would pop up.
7274          case "$host_cpu" in
7275            i[34567]86 | x86_64)
7276              gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7277          esac
7278          ;;
7279      esac
7280      if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7281        if test "$cross_compiling" = yes; then :
7282
7283            # Guess based on the CPU.
7284            case "$host_cpu" in
7285              alpha* | i[34567]86 | x86_64 | m68k | s390*)
7286                gt_cv_int_divbyzero_sigfpe="guessing yes";;
7287              *)
7288                gt_cv_int_divbyzero_sigfpe="guessing no";;
7289            esac
7290
7291else
7292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293/* end confdefs.h.  */
7294
7295#include <stdlib.h>
7296#include <signal.h>
7297
7298static void
7299sigfpe_handler (int sig)
7300{
7301  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
7302  exit (sig != SIGFPE);
7303}
7304
7305int x = 1;
7306int y = 0;
7307int z;
7308int nan;
7309
7310int main ()
7311{
7312  signal (SIGFPE, sigfpe_handler);
7313/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7314#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7315  signal (SIGTRAP, sigfpe_handler);
7316#endif
7317/* Linux/SPARC yields signal SIGILL.  */
7318#if defined (__sparc__) && defined (__linux__)
7319  signal (SIGILL, sigfpe_handler);
7320#endif
7321
7322  z = x / y;
7323  nan = y / y;
7324  exit (2);
7325}
7326
7327_ACEOF
7328if ac_fn_c_try_run "$LINENO"; then :
7329  gt_cv_int_divbyzero_sigfpe=yes
7330else
7331  gt_cv_int_divbyzero_sigfpe=no
7332fi
7333rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7334  conftest.$ac_objext conftest.beam conftest.$ac_ext
7335fi
7336
7337      fi
7338
7339fi
7340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7341$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7342  case "$gt_cv_int_divbyzero_sigfpe" in
7343    *yes) value=1;;
7344    *) value=0;;
7345  esac
7346
7347cat >>confdefs.h <<_ACEOF
7348#define INTDIV0_RAISES_SIGFPE $value
7349_ACEOF
7350
7351
7352
7353  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7354$as_echo_n "checking for inttypes.h... " >&6; }
7355if ${gl_cv_header_inttypes_h+:} false; then :
7356  $as_echo_n "(cached) " >&6
7357else
7358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7359/* end confdefs.h.  */
7360
7361#include <sys/types.h>
7362#include <inttypes.h>
7363
7364int
7365main ()
7366{
7367uintmax_t i = (uintmax_t) -1; return !i;
7368  ;
7369  return 0;
7370}
7371_ACEOF
7372if ac_fn_c_try_compile "$LINENO"; then :
7373  gl_cv_header_inttypes_h=yes
7374else
7375  gl_cv_header_inttypes_h=no
7376fi
7377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7378fi
7379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7380$as_echo "$gl_cv_header_inttypes_h" >&6; }
7381  if test $gl_cv_header_inttypes_h = yes; then
7382
7383cat >>confdefs.h <<_ACEOF
7384#define HAVE_INTTYPES_H_WITH_UINTMAX 1
7385_ACEOF
7386
7387  fi
7388
7389
7390  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7391$as_echo_n "checking for unsigned long long int... " >&6; }
7392if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7393  $as_echo_n "(cached) " >&6
7394else
7395  ac_cv_type_unsigned_long_long_int=yes
7396     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7397       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7398/* end confdefs.h.  */
7399
7400  /* For now, do not test the preprocessor; as of 2007 there are too many
7401         implementations with broken preprocessors.  Perhaps this can
7402         be revisited in 2012.  In the meantime, code should not expect
7403         #if to work with literals wider than 32 bits.  */
7404      /* Test literals.  */
7405      long long int ll = 9223372036854775807ll;
7406      long long int nll = -9223372036854775807LL;
7407      unsigned long long int ull = 18446744073709551615ULL;
7408      /* Test constant expressions.   */
7409      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7410                     ? 1 : -1)];
7411      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7412                     ? 1 : -1)];
7413      int i = 63;
7414int
7415main ()
7416{
7417/* Test availability of runtime routines for shift and division.  */
7418      long long int llmax = 9223372036854775807ll;
7419      unsigned long long int ullmax = 18446744073709551615ull;
7420      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7421              | (llmax / ll) | (llmax % ll)
7422              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7423              | (ullmax / ull) | (ullmax % ull));
7424  ;
7425  return 0;
7426}
7427
7428_ACEOF
7429if ac_fn_c_try_link "$LINENO"; then :
7430
7431else
7432  ac_cv_type_unsigned_long_long_int=no
7433fi
7434rm -f core conftest.err conftest.$ac_objext \
7435    conftest$ac_exeext conftest.$ac_ext
7436     fi
7437fi
7438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7439$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7440  if test $ac_cv_type_unsigned_long_long_int = yes; then
7441
7442$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7443
7444  fi
7445
7446
7447
7448
7449  if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7450
7451    test $ac_cv_type_unsigned_long_long_int = yes \
7452      && ac_type='unsigned long long' \
7453      || ac_type='unsigned long'
7454
7455cat >>confdefs.h <<_ACEOF
7456#define uintmax_t $ac_type
7457_ACEOF
7458
7459  else
7460
7461$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7462
7463  fi
7464
7465
7466  for ac_header in inttypes.h
7467do :
7468  ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7469if test "x$ac_cv_header_inttypes_h" = xyes; then :
7470  cat >>confdefs.h <<_ACEOF
7471#define HAVE_INTTYPES_H 1
7472_ACEOF
7473
7474fi
7475
7476done
7477
7478  if test $ac_cv_header_inttypes_h = yes; then
7479    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7480$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7481if ${gt_cv_inttypes_pri_broken+:} false; then :
7482  $as_echo_n "(cached) " >&6
7483else
7484
7485        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486/* end confdefs.h.  */
7487
7488#include <inttypes.h>
7489#ifdef PRId32
7490char *p = PRId32;
7491#endif
7492
7493int
7494main ()
7495{
7496
7497  ;
7498  return 0;
7499}
7500_ACEOF
7501if ac_fn_c_try_compile "$LINENO"; then :
7502  gt_cv_inttypes_pri_broken=no
7503else
7504  gt_cv_inttypes_pri_broken=yes
7505fi
7506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7507
7508fi
7509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7510$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7511  fi
7512  if test "$gt_cv_inttypes_pri_broken" = yes; then
7513
7514cat >>confdefs.h <<_ACEOF
7515#define PRI_MACROS_BROKEN 1
7516_ACEOF
7517
7518    PRI_MACROS_BROKEN=1
7519  else
7520    PRI_MACROS_BROKEN=0
7521  fi
7522
7523
7524
7525
7526
7527
7528
7529  # Check whether --enable-threads was given.
7530if test "${enable_threads+set}" = set; then :
7531  enableval=$enable_threads; gl_use_threads=$enableval
7532else
7533  if test -n "$gl_use_threads_default"; then
7534       gl_use_threads="$gl_use_threads_default"
7535     else
7536       case "$host_os" in
7537                                                               osf*) gl_use_threads=no ;;
7538         cygwin*)
7539               case `uname -r` in
7540                 1.[0-5].*) gl_use_threads=no ;;
7541                 *)         gl_use_threads=yes ;;
7542               esac
7543               ;;
7544         *)    gl_use_threads=yes ;;
7545       esac
7546     fi
7547
7548fi
7549
7550  if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7551    # For using <pthread.h>:
7552    case "$host_os" in
7553      osf*)
7554        # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7555        # groks <pthread.h>. cc also understands the flag -pthread, but
7556        # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7557        # 2. putting a flag into CPPFLAGS that has an effect on the linker
7558        # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7559        # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7560        CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7561        ;;
7562    esac
7563    # Some systems optimize for single-threaded programs by default, and
7564    # need special flags to disable these optimizations. For example, the
7565    # definition of 'errno' in <errno.h>.
7566    case "$host_os" in
7567      aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7568      solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7569    esac
7570  fi
7571
7572
7573
7574
7575
7576      if test "X$prefix" = "XNONE"; then
7577    acl_final_prefix="$ac_default_prefix"
7578  else
7579    acl_final_prefix="$prefix"
7580  fi
7581  if test "X$exec_prefix" = "XNONE"; then
7582    acl_final_exec_prefix='${prefix}'
7583  else
7584    acl_final_exec_prefix="$exec_prefix"
7585  fi
7586  acl_save_prefix="$prefix"
7587  prefix="$acl_final_prefix"
7588  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7589  prefix="$acl_save_prefix"
7590
7591
7592
7593# Check whether --with-gnu-ld was given.
7594if test "${with_gnu_ld+set}" = set; then :
7595  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7596else
7597  with_gnu_ld=no
7598fi
7599
7600# Prepare PATH_SEPARATOR.
7601# The user is always right.
7602if test "${PATH_SEPARATOR+set}" != set; then
7603  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7604  # contains only /bin. Note that ksh looks also at the FPATH variable,
7605  # so we have to set that as well for the test.
7606  PATH_SEPARATOR=:
7607  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7608    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7609           || PATH_SEPARATOR=';'
7610       }
7611fi
7612
7613ac_prog=ld
7614if test "$GCC" = yes; then
7615  # Check if gcc -print-prog-name=ld gives a path.
7616  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7617$as_echo_n "checking for ld used by $CC... " >&6; }
7618  case $host in
7619  *-*-mingw*)
7620    # gcc leaves a trailing carriage return which upsets mingw
7621    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7622  *)
7623    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7624  esac
7625  case $ac_prog in
7626    # Accept absolute paths.
7627    [\\/]* | ?:[\\/]*)
7628      re_direlt='/[^/][^/]*/\.\./'
7629      # Canonicalize the pathname of ld
7630      ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7631      while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7632        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7633      done
7634      test -z "$LD" && LD="$ac_prog"
7635      ;;
7636  "")
7637    # If it fails, then pretend we aren't using GCC.
7638    ac_prog=ld
7639    ;;
7640  *)
7641    # If it is relative, then search for the first ld in PATH.
7642    with_gnu_ld=unknown
7643    ;;
7644  esac
7645elif test "$with_gnu_ld" = yes; then
7646  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7647$as_echo_n "checking for GNU ld... " >&6; }
7648else
7649  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7650$as_echo_n "checking for non-GNU ld... " >&6; }
7651fi
7652if ${acl_cv_path_LD+:} false; then :
7653  $as_echo_n "(cached) " >&6
7654else
7655  if test -z "$LD"; then
7656  acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7657  for ac_dir in $PATH; do
7658    IFS="$acl_save_ifs"
7659    test -z "$ac_dir" && ac_dir=.
7660    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7661      acl_cv_path_LD="$ac_dir/$ac_prog"
7662      # Check to see if the program is GNU ld.  I'd rather use --version,
7663      # but apparently some variants of GNU ld only accept -v.
7664      # Break only if it was the GNU/non-GNU ld that we prefer.
7665      case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7666      *GNU* | *'with BFD'*)
7667        test "$with_gnu_ld" != no && break
7668        ;;
7669      *)
7670        test "$with_gnu_ld" != yes && break
7671        ;;
7672      esac
7673    fi
7674  done
7675  IFS="$acl_save_ifs"
7676else
7677  acl_cv_path_LD="$LD" # Let the user override the test with a path.
7678fi
7679fi
7680
7681LD="$acl_cv_path_LD"
7682if test -n "$LD"; then
7683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7684$as_echo "$LD" >&6; }
7685else
7686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687$as_echo "no" >&6; }
7688fi
7689test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7691$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7692if ${acl_cv_prog_gnu_ld+:} false; then :
7693  $as_echo_n "(cached) " >&6
7694else
7695  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7696case `$LD -v 2>&1 </dev/null` in
7697*GNU* | *'with BFD'*)
7698  acl_cv_prog_gnu_ld=yes
7699  ;;
7700*)
7701  acl_cv_prog_gnu_ld=no
7702  ;;
7703esac
7704fi
7705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7706$as_echo "$acl_cv_prog_gnu_ld" >&6; }
7707with_gnu_ld=$acl_cv_prog_gnu_ld
7708
7709
7710
7711
7712                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7713$as_echo_n "checking for shared library run path origin... " >&6; }
7714if ${acl_cv_rpath+:} false; then :
7715  $as_echo_n "(cached) " >&6
7716else
7717
7718    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7719    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7720    . ./conftest.sh
7721    rm -f ./conftest.sh
7722    acl_cv_rpath=done
7723
7724fi
7725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7726$as_echo "$acl_cv_rpath" >&6; }
7727  wl="$acl_cv_wl"
7728  acl_libext="$acl_cv_libext"
7729  acl_shlibext="$acl_cv_shlibext"
7730  acl_libname_spec="$acl_cv_libname_spec"
7731  acl_library_names_spec="$acl_cv_library_names_spec"
7732  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7733  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7734  acl_hardcode_direct="$acl_cv_hardcode_direct"
7735  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7736    # Check whether --enable-rpath was given.
7737if test "${enable_rpath+set}" = set; then :
7738  enableval=$enable_rpath; :
7739else
7740  enable_rpath=yes
7741fi
7742
7743
7744
7745
7746  acl_libdirstem=lib
7747  acl_libdirstem2=
7748  case "$host_os" in
7749    solaris*)
7750                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7751$as_echo_n "checking for 64-bit host... " >&6; }
7752if ${gl_cv_solaris_64bit+:} false; then :
7753  $as_echo_n "(cached) " >&6
7754else
7755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756/* end confdefs.h.  */
7757
7758#ifdef _LP64
7759sixtyfour bits
7760#endif
7761
7762_ACEOF
7763if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7764  $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7765  gl_cv_solaris_64bit=yes
7766else
7767  gl_cv_solaris_64bit=no
7768fi
7769rm -f conftest*
7770
7771
7772fi
7773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7774$as_echo "$gl_cv_solaris_64bit" >&6; }
7775      if test $gl_cv_solaris_64bit = yes; then
7776        acl_libdirstem=lib/64
7777        case "$host_cpu" in
7778          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
7779          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7780        esac
7781      fi
7782      ;;
7783    *)
7784      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7785      if test -n "$searchpath"; then
7786        acl_save_IFS="${IFS= 	}"; IFS=":"
7787        for searchdir in $searchpath; do
7788          if test -d "$searchdir"; then
7789            case "$searchdir" in
7790              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7791              */../ | */.. )
7792                # Better ignore directories of this form. They are misleading.
7793                ;;
7794              *) searchdir=`cd "$searchdir" && pwd`
7795                 case "$searchdir" in
7796                   */lib64 ) acl_libdirstem=lib64 ;;
7797                 esac ;;
7798            esac
7799          fi
7800        done
7801        IFS="$acl_save_IFS"
7802      fi
7803      ;;
7804  esac
7805  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7806
7807
7808
7809  gl_threads_api=none
7810  LIBTHREAD=
7811  LTLIBTHREAD=
7812  LIBMULTITHREAD=
7813  LTLIBMULTITHREAD=
7814  if test "$gl_use_threads" != no; then
7815        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7816$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7817if ${gl_cv_have_weak+:} false; then :
7818  $as_echo_n "(cached) " >&6
7819else
7820  gl_cv_have_weak=no
7821              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7822/* end confdefs.h.  */
7823extern void xyzzy ();
7824#pragma weak xyzzy
7825int
7826main ()
7827{
7828xyzzy();
7829  ;
7830  return 0;
7831}
7832_ACEOF
7833if ac_fn_c_try_link "$LINENO"; then :
7834  gl_cv_have_weak=maybe
7835fi
7836rm -f core conftest.err conftest.$ac_objext \
7837    conftest$ac_exeext conftest.$ac_ext
7838       if test $gl_cv_have_weak = maybe; then
7839                           if test "$cross_compiling" = yes; then :
7840                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7841/* end confdefs.h.  */
7842#ifdef __ELF__
7843               Extensible Linking Format
7844               #endif
7845
7846_ACEOF
7847if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7848  $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7849  gl_cv_have_weak="guessing yes"
7850else
7851  gl_cv_have_weak="guessing no"
7852fi
7853rm -f conftest*
7854
7855
7856else
7857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7858/* end confdefs.h.  */
7859
7860#include <stdio.h>
7861#pragma weak fputs
7862int main ()
7863{
7864  return (fputs == NULL);
7865}
7866_ACEOF
7867if ac_fn_c_try_run "$LINENO"; then :
7868  gl_cv_have_weak=yes
7869else
7870  gl_cv_have_weak=no
7871fi
7872rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7873  conftest.$ac_objext conftest.beam conftest.$ac_ext
7874fi
7875
7876       fi
7877
7878fi
7879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7880$as_echo "$gl_cv_have_weak" >&6; }
7881    if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7882      # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7883      # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7884      ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7885if test "x$ac_cv_header_pthread_h" = xyes; then :
7886  gl_have_pthread_h=yes
7887else
7888  gl_have_pthread_h=no
7889fi
7890
7891
7892      if test "$gl_have_pthread_h" = yes; then
7893        # Other possible tests:
7894        #   -lpthreads (FSU threads, PCthreads)
7895        #   -lgthreads
7896        gl_have_pthread=
7897        # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7898        # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7899        # the second one only in libpthread, and lock.c needs it.
7900        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901/* end confdefs.h.  */
7902#include <pthread.h>
7903int
7904main ()
7905{
7906pthread_mutex_lock((pthread_mutex_t*)0);
7907               pthread_mutexattr_init((pthread_mutexattr_t*)0);
7908  ;
7909  return 0;
7910}
7911_ACEOF
7912if ac_fn_c_try_link "$LINENO"; then :
7913  gl_have_pthread=yes
7914fi
7915rm -f core conftest.err conftest.$ac_objext \
7916    conftest$ac_exeext conftest.$ac_ext
7917        # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7918        # since it is defined as a macro on OSF/1.)
7919        if test -n "$gl_have_pthread"; then
7920          # The program links fine without libpthread. But it may actually
7921          # need to link with libpthread in order to create multiple threads.
7922          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7923$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7924if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7925  $as_echo_n "(cached) " >&6
7926else
7927  ac_check_lib_save_LIBS=$LIBS
7928LIBS="-lpthread  $LIBS"
7929cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930/* end confdefs.h.  */
7931
7932/* Override any GCC internal prototype to avoid an error.
7933   Use char because int might match the return type of a GCC
7934   builtin and then its argument prototype would still apply.  */
7935#ifdef __cplusplus
7936extern "C"
7937#endif
7938char pthread_kill ();
7939int
7940main ()
7941{
7942return pthread_kill ();
7943  ;
7944  return 0;
7945}
7946_ACEOF
7947if ac_fn_c_try_link "$LINENO"; then :
7948  ac_cv_lib_pthread_pthread_kill=yes
7949else
7950  ac_cv_lib_pthread_pthread_kill=no
7951fi
7952rm -f core conftest.err conftest.$ac_objext \
7953    conftest$ac_exeext conftest.$ac_ext
7954LIBS=$ac_check_lib_save_LIBS
7955fi
7956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7957$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7958if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7959  LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7960             # On Solaris and HP-UX, most pthread functions exist also in libc.
7961             # Therefore pthread_in_use() needs to actually try to create a
7962             # thread: pthread_create from libc will fail, whereas
7963             # pthread_create will actually create a thread.
7964             case "$host_os" in
7965               solaris* | hpux*)
7966
7967$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
7968
7969             esac
7970
7971fi
7972
7973        else
7974          # Some library is needed. Try libpthread and libc_r.
7975          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7976$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7977if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7978  $as_echo_n "(cached) " >&6
7979else
7980  ac_check_lib_save_LIBS=$LIBS
7981LIBS="-lpthread  $LIBS"
7982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7983/* end confdefs.h.  */
7984
7985/* Override any GCC internal prototype to avoid an error.
7986   Use char because int might match the return type of a GCC
7987   builtin and then its argument prototype would still apply.  */
7988#ifdef __cplusplus
7989extern "C"
7990#endif
7991char pthread_kill ();
7992int
7993main ()
7994{
7995return pthread_kill ();
7996  ;
7997  return 0;
7998}
7999_ACEOF
8000if ac_fn_c_try_link "$LINENO"; then :
8001  ac_cv_lib_pthread_pthread_kill=yes
8002else
8003  ac_cv_lib_pthread_pthread_kill=no
8004fi
8005rm -f core conftest.err conftest.$ac_objext \
8006    conftest$ac_exeext conftest.$ac_ext
8007LIBS=$ac_check_lib_save_LIBS
8008fi
8009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8010$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8011if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8012  gl_have_pthread=yes
8013             LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8014             LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8015fi
8016
8017          if test -z "$gl_have_pthread"; then
8018            # For FreeBSD 4.
8019            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8020$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8021if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8022  $as_echo_n "(cached) " >&6
8023else
8024  ac_check_lib_save_LIBS=$LIBS
8025LIBS="-lc_r  $LIBS"
8026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8027/* end confdefs.h.  */
8028
8029/* Override any GCC internal prototype to avoid an error.
8030   Use char because int might match the return type of a GCC
8031   builtin and then its argument prototype would still apply.  */
8032#ifdef __cplusplus
8033extern "C"
8034#endif
8035char pthread_kill ();
8036int
8037main ()
8038{
8039return pthread_kill ();
8040  ;
8041  return 0;
8042}
8043_ACEOF
8044if ac_fn_c_try_link "$LINENO"; then :
8045  ac_cv_lib_c_r_pthread_kill=yes
8046else
8047  ac_cv_lib_c_r_pthread_kill=no
8048fi
8049rm -f core conftest.err conftest.$ac_objext \
8050    conftest$ac_exeext conftest.$ac_ext
8051LIBS=$ac_check_lib_save_LIBS
8052fi
8053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8054$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8055if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8056  gl_have_pthread=yes
8057               LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8058               LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8059fi
8060
8061          fi
8062        fi
8063        if test -n "$gl_have_pthread"; then
8064          gl_threads_api=posix
8065
8066$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8067
8068          if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8069            if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8070
8071$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8072
8073              LIBTHREAD=
8074              LTLIBTHREAD=
8075            fi
8076          fi
8077        fi
8078      fi
8079    fi
8080    if test -z "$gl_have_pthread"; then
8081      if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8082        gl_have_solaristhread=
8083        gl_save_LIBS="$LIBS"
8084        LIBS="$LIBS -lthread"
8085        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086/* end confdefs.h.  */
8087
8088#include <thread.h>
8089#include <synch.h>
8090
8091int
8092main ()
8093{
8094thr_self();
8095  ;
8096  return 0;
8097}
8098_ACEOF
8099if ac_fn_c_try_link "$LINENO"; then :
8100  gl_have_solaristhread=yes
8101fi
8102rm -f core conftest.err conftest.$ac_objext \
8103    conftest$ac_exeext conftest.$ac_ext
8104        LIBS="$gl_save_LIBS"
8105        if test -n "$gl_have_solaristhread"; then
8106          gl_threads_api=solaris
8107          LIBTHREAD=-lthread
8108          LTLIBTHREAD=-lthread
8109          LIBMULTITHREAD="$LIBTHREAD"
8110          LTLIBMULTITHREAD="$LTLIBTHREAD"
8111
8112$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8113
8114          if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8115
8116$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8117
8118            LIBTHREAD=
8119            LTLIBTHREAD=
8120          fi
8121        fi
8122      fi
8123    fi
8124    if test "$gl_use_threads" = pth; then
8125      gl_save_CPPFLAGS="$CPPFLAGS"
8126
8127
8128
8129
8130
8131  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8132$as_echo_n "checking how to link with libpth... " >&6; }
8133if ${ac_cv_libpth_libs+:} false; then :
8134  $as_echo_n "(cached) " >&6
8135else
8136
8137
8138
8139
8140
8141
8142
8143
8144    use_additional=yes
8145
8146  acl_save_prefix="$prefix"
8147  prefix="$acl_final_prefix"
8148  acl_save_exec_prefix="$exec_prefix"
8149  exec_prefix="$acl_final_exec_prefix"
8150
8151    eval additional_includedir=\"$includedir\"
8152    eval additional_libdir=\"$libdir\"
8153
8154  exec_prefix="$acl_save_exec_prefix"
8155  prefix="$acl_save_prefix"
8156
8157
8158# Check whether --with-libpth-prefix was given.
8159if test "${with_libpth_prefix+set}" = set; then :
8160  withval=$with_libpth_prefix;
8161    if test "X$withval" = "Xno"; then
8162      use_additional=no
8163    else
8164      if test "X$withval" = "X"; then
8165
8166  acl_save_prefix="$prefix"
8167  prefix="$acl_final_prefix"
8168  acl_save_exec_prefix="$exec_prefix"
8169  exec_prefix="$acl_final_exec_prefix"
8170
8171          eval additional_includedir=\"$includedir\"
8172          eval additional_libdir=\"$libdir\"
8173
8174  exec_prefix="$acl_save_exec_prefix"
8175  prefix="$acl_save_prefix"
8176
8177      else
8178        additional_includedir="$withval/include"
8179        additional_libdir="$withval/$acl_libdirstem"
8180        if test "$acl_libdirstem2" != "$acl_libdirstem" \
8181           && ! test -d "$withval/$acl_libdirstem"; then
8182          additional_libdir="$withval/$acl_libdirstem2"
8183        fi
8184      fi
8185    fi
8186
8187fi
8188
8189      LIBPTH=
8190  LTLIBPTH=
8191  INCPTH=
8192  LIBPTH_PREFIX=
8193      HAVE_LIBPTH=
8194  rpathdirs=
8195  ltrpathdirs=
8196  names_already_handled=
8197  names_next_round='pth '
8198  while test -n "$names_next_round"; do
8199    names_this_round="$names_next_round"
8200    names_next_round=
8201    for name in $names_this_round; do
8202      already_handled=
8203      for n in $names_already_handled; do
8204        if test "$n" = "$name"; then
8205          already_handled=yes
8206          break
8207        fi
8208      done
8209      if test -z "$already_handled"; then
8210        names_already_handled="$names_already_handled $name"
8211                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8212        eval value=\"\$HAVE_LIB$uppername\"
8213        if test -n "$value"; then
8214          if test "$value" = yes; then
8215            eval value=\"\$LIB$uppername\"
8216            test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8217            eval value=\"\$LTLIB$uppername\"
8218            test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8219          else
8220                                    :
8221          fi
8222        else
8223                              found_dir=
8224          found_la=
8225          found_so=
8226          found_a=
8227          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8228          if test -n "$acl_shlibext"; then
8229            shrext=".$acl_shlibext"             # typically: shrext=.so
8230          else
8231            shrext=
8232          fi
8233          if test $use_additional = yes; then
8234            dir="$additional_libdir"
8235                                    if test -n "$acl_shlibext"; then
8236              if test -f "$dir/$libname$shrext"; then
8237                found_dir="$dir"
8238                found_so="$dir/$libname$shrext"
8239              else
8240                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8241                  ver=`(cd "$dir" && \
8242                        for f in "$libname$shrext".*; do echo "$f"; done \
8243                        | sed -e "s,^$libname$shrext\\\\.,," \
8244                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8245                        | sed 1q ) 2>/dev/null`
8246                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8247                    found_dir="$dir"
8248                    found_so="$dir/$libname$shrext.$ver"
8249                  fi
8250                else
8251                  eval library_names=\"$acl_library_names_spec\"
8252                  for f in $library_names; do
8253                    if test -f "$dir/$f"; then
8254                      found_dir="$dir"
8255                      found_so="$dir/$f"
8256                      break
8257                    fi
8258                  done
8259                fi
8260              fi
8261            fi
8262                        if test "X$found_dir" = "X"; then
8263              if test -f "$dir/$libname.$acl_libext"; then
8264                found_dir="$dir"
8265                found_a="$dir/$libname.$acl_libext"
8266              fi
8267            fi
8268            if test "X$found_dir" != "X"; then
8269              if test -f "$dir/$libname.la"; then
8270                found_la="$dir/$libname.la"
8271              fi
8272            fi
8273          fi
8274          if test "X$found_dir" = "X"; then
8275            for x in $LDFLAGS $LTLIBPTH; do
8276
8277  acl_save_prefix="$prefix"
8278  prefix="$acl_final_prefix"
8279  acl_save_exec_prefix="$exec_prefix"
8280  exec_prefix="$acl_final_exec_prefix"
8281  eval x=\"$x\"
8282  exec_prefix="$acl_save_exec_prefix"
8283  prefix="$acl_save_prefix"
8284
8285              case "$x" in
8286                -L*)
8287                  dir=`echo "X$x" | sed -e 's/^X-L//'`
8288                                    if test -n "$acl_shlibext"; then
8289                    if test -f "$dir/$libname$shrext"; then
8290                      found_dir="$dir"
8291                      found_so="$dir/$libname$shrext"
8292                    else
8293                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8294                        ver=`(cd "$dir" && \
8295                              for f in "$libname$shrext".*; do echo "$f"; done \
8296                              | sed -e "s,^$libname$shrext\\\\.,," \
8297                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8298                              | sed 1q ) 2>/dev/null`
8299                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8300                          found_dir="$dir"
8301                          found_so="$dir/$libname$shrext.$ver"
8302                        fi
8303                      else
8304                        eval library_names=\"$acl_library_names_spec\"
8305                        for f in $library_names; do
8306                          if test -f "$dir/$f"; then
8307                            found_dir="$dir"
8308                            found_so="$dir/$f"
8309                            break
8310                          fi
8311                        done
8312                      fi
8313                    fi
8314                  fi
8315                                    if test "X$found_dir" = "X"; then
8316                    if test -f "$dir/$libname.$acl_libext"; then
8317                      found_dir="$dir"
8318                      found_a="$dir/$libname.$acl_libext"
8319                    fi
8320                  fi
8321                  if test "X$found_dir" != "X"; then
8322                    if test -f "$dir/$libname.la"; then
8323                      found_la="$dir/$libname.la"
8324                    fi
8325                  fi
8326                  ;;
8327              esac
8328              if test "X$found_dir" != "X"; then
8329                break
8330              fi
8331            done
8332          fi
8333          if test "X$found_dir" != "X"; then
8334                        LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8335            if test "X$found_so" != "X"; then
8336                                                        if test "$enable_rpath" = no \
8337                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8338                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8339                                LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8340              else
8341                                                                                haveit=
8342                for x in $ltrpathdirs; do
8343                  if test "X$x" = "X$found_dir"; then
8344                    haveit=yes
8345                    break
8346                  fi
8347                done
8348                if test -z "$haveit"; then
8349                  ltrpathdirs="$ltrpathdirs $found_dir"
8350                fi
8351                                if test "$acl_hardcode_direct" = yes; then
8352                                                      LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8353                else
8354                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8355                                                            LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8356                                                            haveit=
8357                    for x in $rpathdirs; do
8358                      if test "X$x" = "X$found_dir"; then
8359                        haveit=yes
8360                        break
8361                      fi
8362                    done
8363                    if test -z "$haveit"; then
8364                      rpathdirs="$rpathdirs $found_dir"
8365                    fi
8366                  else
8367                                                                                haveit=
8368                    for x in $LDFLAGS $LIBPTH; do
8369
8370  acl_save_prefix="$prefix"
8371  prefix="$acl_final_prefix"
8372  acl_save_exec_prefix="$exec_prefix"
8373  exec_prefix="$acl_final_exec_prefix"
8374  eval x=\"$x\"
8375  exec_prefix="$acl_save_exec_prefix"
8376  prefix="$acl_save_prefix"
8377
8378                      if test "X$x" = "X-L$found_dir"; then
8379                        haveit=yes
8380                        break
8381                      fi
8382                    done
8383                    if test -z "$haveit"; then
8384                      LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8385                    fi
8386                    if test "$acl_hardcode_minus_L" != no; then
8387                                                                                        LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8388                    else
8389                                                                                                                                                                                LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8390                    fi
8391                  fi
8392                fi
8393              fi
8394            else
8395              if test "X$found_a" != "X"; then
8396                                LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8397              else
8398                                                LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8399              fi
8400            fi
8401                        additional_includedir=
8402            case "$found_dir" in
8403              */$acl_libdirstem | */$acl_libdirstem/)
8404                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8405                if test "$name" = 'pth'; then
8406                  LIBPTH_PREFIX="$basedir"
8407                fi
8408                additional_includedir="$basedir/include"
8409                ;;
8410              */$acl_libdirstem2 | */$acl_libdirstem2/)
8411                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8412                if test "$name" = 'pth'; then
8413                  LIBPTH_PREFIX="$basedir"
8414                fi
8415                additional_includedir="$basedir/include"
8416                ;;
8417            esac
8418            if test "X$additional_includedir" != "X"; then
8419                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
8420                haveit=
8421                if test "X$additional_includedir" = "X/usr/local/include"; then
8422                  if test -n "$GCC"; then
8423                    case $host_os in
8424                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8425                    esac
8426                  fi
8427                fi
8428                if test -z "$haveit"; then
8429                  for x in $CPPFLAGS $INCPTH; do
8430
8431  acl_save_prefix="$prefix"
8432  prefix="$acl_final_prefix"
8433  acl_save_exec_prefix="$exec_prefix"
8434  exec_prefix="$acl_final_exec_prefix"
8435  eval x=\"$x\"
8436  exec_prefix="$acl_save_exec_prefix"
8437  prefix="$acl_save_prefix"
8438
8439                    if test "X$x" = "X-I$additional_includedir"; then
8440                      haveit=yes
8441                      break
8442                    fi
8443                  done
8444                  if test -z "$haveit"; then
8445                    if test -d "$additional_includedir"; then
8446                                            INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8447                    fi
8448                  fi
8449                fi
8450              fi
8451            fi
8452                        if test -n "$found_la"; then
8453                                                        save_libdir="$libdir"
8454              case "$found_la" in
8455                */* | *\\*) . "$found_la" ;;
8456                *) . "./$found_la" ;;
8457              esac
8458              libdir="$save_libdir"
8459                            for dep in $dependency_libs; do
8460                case "$dep" in
8461                  -L*)
8462                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8463                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8464                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8465                      haveit=
8466                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8467                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8468                        if test -n "$GCC"; then
8469                          case $host_os in
8470                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8471                          esac
8472                        fi
8473                      fi
8474                      if test -z "$haveit"; then
8475                        haveit=
8476                        for x in $LDFLAGS $LIBPTH; do
8477
8478  acl_save_prefix="$prefix"
8479  prefix="$acl_final_prefix"
8480  acl_save_exec_prefix="$exec_prefix"
8481  exec_prefix="$acl_final_exec_prefix"
8482  eval x=\"$x\"
8483  exec_prefix="$acl_save_exec_prefix"
8484  prefix="$acl_save_prefix"
8485
8486                          if test "X$x" = "X-L$additional_libdir"; then
8487                            haveit=yes
8488                            break
8489                          fi
8490                        done
8491                        if test -z "$haveit"; then
8492                          if test -d "$additional_libdir"; then
8493                                                        LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8494                          fi
8495                        fi
8496                        haveit=
8497                        for x in $LDFLAGS $LTLIBPTH; do
8498
8499  acl_save_prefix="$prefix"
8500  prefix="$acl_final_prefix"
8501  acl_save_exec_prefix="$exec_prefix"
8502  exec_prefix="$acl_final_exec_prefix"
8503  eval x=\"$x\"
8504  exec_prefix="$acl_save_exec_prefix"
8505  prefix="$acl_save_prefix"
8506
8507                          if test "X$x" = "X-L$additional_libdir"; then
8508                            haveit=yes
8509                            break
8510                          fi
8511                        done
8512                        if test -z "$haveit"; then
8513                          if test -d "$additional_libdir"; then
8514                                                        LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8515                          fi
8516                        fi
8517                      fi
8518                    fi
8519                    ;;
8520                  -R*)
8521                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
8522                    if test "$enable_rpath" != no; then
8523                                                                  haveit=
8524                      for x in $rpathdirs; do
8525                        if test "X$x" = "X$dir"; then
8526                          haveit=yes
8527                          break
8528                        fi
8529                      done
8530                      if test -z "$haveit"; then
8531                        rpathdirs="$rpathdirs $dir"
8532                      fi
8533                                                                  haveit=
8534                      for x in $ltrpathdirs; do
8535                        if test "X$x" = "X$dir"; then
8536                          haveit=yes
8537                          break
8538                        fi
8539                      done
8540                      if test -z "$haveit"; then
8541                        ltrpathdirs="$ltrpathdirs $dir"
8542                      fi
8543                    fi
8544                    ;;
8545                  -l*)
8546                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8547                    ;;
8548                  *.la)
8549                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8550                    ;;
8551                  *)
8552                                        LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8553                    LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8554                    ;;
8555                esac
8556              done
8557            fi
8558          else
8559                                                            LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8560            LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8561          fi
8562        fi
8563      fi
8564    done
8565  done
8566  if test "X$rpathdirs" != "X"; then
8567    if test -n "$acl_hardcode_libdir_separator"; then
8568                        alldirs=
8569      for found_dir in $rpathdirs; do
8570        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8571      done
8572            acl_save_libdir="$libdir"
8573      libdir="$alldirs"
8574      eval flag=\"$acl_hardcode_libdir_flag_spec\"
8575      libdir="$acl_save_libdir"
8576      LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8577    else
8578            for found_dir in $rpathdirs; do
8579        acl_save_libdir="$libdir"
8580        libdir="$found_dir"
8581        eval flag=\"$acl_hardcode_libdir_flag_spec\"
8582        libdir="$acl_save_libdir"
8583        LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8584      done
8585    fi
8586  fi
8587  if test "X$ltrpathdirs" != "X"; then
8588            for found_dir in $ltrpathdirs; do
8589      LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8590    done
8591  fi
8592
8593
8594
8595
8596
8597
8598    ac_cv_libpth_libs="$LIBPTH"
8599    ac_cv_libpth_ltlibs="$LTLIBPTH"
8600    ac_cv_libpth_cppflags="$INCPTH"
8601    ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8602
8603fi
8604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8605$as_echo "$ac_cv_libpth_libs" >&6; }
8606  LIBPTH="$ac_cv_libpth_libs"
8607  LTLIBPTH="$ac_cv_libpth_ltlibs"
8608  INCPTH="$ac_cv_libpth_cppflags"
8609  LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8610
8611  for element in $INCPTH; do
8612    haveit=
8613    for x in $CPPFLAGS; do
8614
8615  acl_save_prefix="$prefix"
8616  prefix="$acl_final_prefix"
8617  acl_save_exec_prefix="$exec_prefix"
8618  exec_prefix="$acl_final_exec_prefix"
8619  eval x=\"$x\"
8620  exec_prefix="$acl_save_exec_prefix"
8621  prefix="$acl_save_prefix"
8622
8623      if test "X$x" = "X$element"; then
8624        haveit=yes
8625        break
8626      fi
8627    done
8628    if test -z "$haveit"; then
8629      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8630    fi
8631  done
8632
8633
8634
8635
8636      HAVE_LIBPTH=yes
8637
8638
8639
8640      gl_have_pth=
8641      gl_save_LIBS="$LIBS"
8642      LIBS="$LIBS $LIBPTH"
8643      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8644/* end confdefs.h.  */
8645#include <pth.h>
8646int
8647main ()
8648{
8649pth_self();
8650  ;
8651  return 0;
8652}
8653_ACEOF
8654if ac_fn_c_try_link "$LINENO"; then :
8655  gl_have_pth=yes
8656fi
8657rm -f core conftest.err conftest.$ac_objext \
8658    conftest$ac_exeext conftest.$ac_ext
8659      LIBS="$gl_save_LIBS"
8660      if test -n "$gl_have_pth"; then
8661        gl_threads_api=pth
8662        LIBTHREAD="$LIBPTH"
8663        LTLIBTHREAD="$LTLIBPTH"
8664        LIBMULTITHREAD="$LIBTHREAD"
8665        LTLIBMULTITHREAD="$LTLIBTHREAD"
8666
8667$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8668
8669        if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8670          if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8671
8672$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8673
8674            LIBTHREAD=
8675            LTLIBTHREAD=
8676          fi
8677        fi
8678      else
8679        CPPFLAGS="$gl_save_CPPFLAGS"
8680      fi
8681    fi
8682    if test -z "$gl_have_pthread"; then
8683      case "$gl_use_threads" in
8684        yes | windows | win32) # The 'win32' is for backward compatibility.
8685          if { case "$host_os" in
8686                 mingw*) true;;
8687                 *) false;;
8688               esac
8689             }; then
8690            gl_threads_api=windows
8691
8692$as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8693
8694          fi
8695          ;;
8696      esac
8697    fi
8698  fi
8699  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8700$as_echo_n "checking for multithread API to use... " >&6; }
8701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8702$as_echo "$gl_threads_api" >&6; }
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714  if test "$gl_threads_api" = posix; then
8715    # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8716    # pthread_rwlock_* functions.
8717    ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8718"
8719if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8720
8721$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8722
8723fi
8724
8725    # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8726    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727/* end confdefs.h.  */
8728
8729      #include <pthread.h>
8730int
8731main ()
8732{
8733
8734#if __FreeBSD__ == 4
8735error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8736#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8737       && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8738error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8739#else
8740int x = (int)PTHREAD_MUTEX_RECURSIVE;
8741return !x;
8742#endif
8743
8744  ;
8745  return 0;
8746}
8747_ACEOF
8748if ac_fn_c_try_compile "$LINENO"; then :
8749
8750$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8751
8752fi
8753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8754  fi
8755  :
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768    use_additional=yes
8769
8770  acl_save_prefix="$prefix"
8771  prefix="$acl_final_prefix"
8772  acl_save_exec_prefix="$exec_prefix"
8773  exec_prefix="$acl_final_exec_prefix"
8774
8775    eval additional_includedir=\"$includedir\"
8776    eval additional_libdir=\"$libdir\"
8777
8778  exec_prefix="$acl_save_exec_prefix"
8779  prefix="$acl_save_prefix"
8780
8781
8782# Check whether --with-libiconv-prefix was given.
8783if test "${with_libiconv_prefix+set}" = set; then :
8784  withval=$with_libiconv_prefix;
8785    if test "X$withval" = "Xno"; then
8786      use_additional=no
8787    else
8788      if test "X$withval" = "X"; then
8789
8790  acl_save_prefix="$prefix"
8791  prefix="$acl_final_prefix"
8792  acl_save_exec_prefix="$exec_prefix"
8793  exec_prefix="$acl_final_exec_prefix"
8794
8795          eval additional_includedir=\"$includedir\"
8796          eval additional_libdir=\"$libdir\"
8797
8798  exec_prefix="$acl_save_exec_prefix"
8799  prefix="$acl_save_prefix"
8800
8801      else
8802        additional_includedir="$withval/include"
8803        additional_libdir="$withval/$acl_libdirstem"
8804        if test "$acl_libdirstem2" != "$acl_libdirstem" \
8805           && ! test -d "$withval/$acl_libdirstem"; then
8806          additional_libdir="$withval/$acl_libdirstem2"
8807        fi
8808      fi
8809    fi
8810
8811fi
8812
8813      LIBICONV=
8814  LTLIBICONV=
8815  INCICONV=
8816  LIBICONV_PREFIX=
8817      HAVE_LIBICONV=
8818  rpathdirs=
8819  ltrpathdirs=
8820  names_already_handled=
8821  names_next_round='iconv '
8822  while test -n "$names_next_round"; do
8823    names_this_round="$names_next_round"
8824    names_next_round=
8825    for name in $names_this_round; do
8826      already_handled=
8827      for n in $names_already_handled; do
8828        if test "$n" = "$name"; then
8829          already_handled=yes
8830          break
8831        fi
8832      done
8833      if test -z "$already_handled"; then
8834        names_already_handled="$names_already_handled $name"
8835                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8836        eval value=\"\$HAVE_LIB$uppername\"
8837        if test -n "$value"; then
8838          if test "$value" = yes; then
8839            eval value=\"\$LIB$uppername\"
8840            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8841            eval value=\"\$LTLIB$uppername\"
8842            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8843          else
8844                                    :
8845          fi
8846        else
8847                              found_dir=
8848          found_la=
8849          found_so=
8850          found_a=
8851          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8852          if test -n "$acl_shlibext"; then
8853            shrext=".$acl_shlibext"             # typically: shrext=.so
8854          else
8855            shrext=
8856          fi
8857          if test $use_additional = yes; then
8858            dir="$additional_libdir"
8859                                    if test -n "$acl_shlibext"; then
8860              if test -f "$dir/$libname$shrext"; then
8861                found_dir="$dir"
8862                found_so="$dir/$libname$shrext"
8863              else
8864                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8865                  ver=`(cd "$dir" && \
8866                        for f in "$libname$shrext".*; do echo "$f"; done \
8867                        | sed -e "s,^$libname$shrext\\\\.,," \
8868                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8869                        | sed 1q ) 2>/dev/null`
8870                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8871                    found_dir="$dir"
8872                    found_so="$dir/$libname$shrext.$ver"
8873                  fi
8874                else
8875                  eval library_names=\"$acl_library_names_spec\"
8876                  for f in $library_names; do
8877                    if test -f "$dir/$f"; then
8878                      found_dir="$dir"
8879                      found_so="$dir/$f"
8880                      break
8881                    fi
8882                  done
8883                fi
8884              fi
8885            fi
8886                        if test "X$found_dir" = "X"; then
8887              if test -f "$dir/$libname.$acl_libext"; then
8888                found_dir="$dir"
8889                found_a="$dir/$libname.$acl_libext"
8890              fi
8891            fi
8892            if test "X$found_dir" != "X"; then
8893              if test -f "$dir/$libname.la"; then
8894                found_la="$dir/$libname.la"
8895              fi
8896            fi
8897          fi
8898          if test "X$found_dir" = "X"; then
8899            for x in $LDFLAGS $LTLIBICONV; do
8900
8901  acl_save_prefix="$prefix"
8902  prefix="$acl_final_prefix"
8903  acl_save_exec_prefix="$exec_prefix"
8904  exec_prefix="$acl_final_exec_prefix"
8905  eval x=\"$x\"
8906  exec_prefix="$acl_save_exec_prefix"
8907  prefix="$acl_save_prefix"
8908
8909              case "$x" in
8910                -L*)
8911                  dir=`echo "X$x" | sed -e 's/^X-L//'`
8912                                    if test -n "$acl_shlibext"; then
8913                    if test -f "$dir/$libname$shrext"; then
8914                      found_dir="$dir"
8915                      found_so="$dir/$libname$shrext"
8916                    else
8917                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8918                        ver=`(cd "$dir" && \
8919                              for f in "$libname$shrext".*; do echo "$f"; done \
8920                              | sed -e "s,^$libname$shrext\\\\.,," \
8921                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8922                              | sed 1q ) 2>/dev/null`
8923                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8924                          found_dir="$dir"
8925                          found_so="$dir/$libname$shrext.$ver"
8926                        fi
8927                      else
8928                        eval library_names=\"$acl_library_names_spec\"
8929                        for f in $library_names; do
8930                          if test -f "$dir/$f"; then
8931                            found_dir="$dir"
8932                            found_so="$dir/$f"
8933                            break
8934                          fi
8935                        done
8936                      fi
8937                    fi
8938                  fi
8939                                    if test "X$found_dir" = "X"; then
8940                    if test -f "$dir/$libname.$acl_libext"; then
8941                      found_dir="$dir"
8942                      found_a="$dir/$libname.$acl_libext"
8943                    fi
8944                  fi
8945                  if test "X$found_dir" != "X"; then
8946                    if test -f "$dir/$libname.la"; then
8947                      found_la="$dir/$libname.la"
8948                    fi
8949                  fi
8950                  ;;
8951              esac
8952              if test "X$found_dir" != "X"; then
8953                break
8954              fi
8955            done
8956          fi
8957          if test "X$found_dir" != "X"; then
8958                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8959            if test "X$found_so" != "X"; then
8960                                                        if test "$enable_rpath" = no \
8961                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8962                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8963                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8964              else
8965                                                                                haveit=
8966                for x in $ltrpathdirs; do
8967                  if test "X$x" = "X$found_dir"; then
8968                    haveit=yes
8969                    break
8970                  fi
8971                done
8972                if test -z "$haveit"; then
8973                  ltrpathdirs="$ltrpathdirs $found_dir"
8974                fi
8975                                if test "$acl_hardcode_direct" = yes; then
8976                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8977                else
8978                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8979                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8980                                                            haveit=
8981                    for x in $rpathdirs; do
8982                      if test "X$x" = "X$found_dir"; then
8983                        haveit=yes
8984                        break
8985                      fi
8986                    done
8987                    if test -z "$haveit"; then
8988                      rpathdirs="$rpathdirs $found_dir"
8989                    fi
8990                  else
8991                                                                                haveit=
8992                    for x in $LDFLAGS $LIBICONV; do
8993
8994  acl_save_prefix="$prefix"
8995  prefix="$acl_final_prefix"
8996  acl_save_exec_prefix="$exec_prefix"
8997  exec_prefix="$acl_final_exec_prefix"
8998  eval x=\"$x\"
8999  exec_prefix="$acl_save_exec_prefix"
9000  prefix="$acl_save_prefix"
9001
9002                      if test "X$x" = "X-L$found_dir"; then
9003                        haveit=yes
9004                        break
9005                      fi
9006                    done
9007                    if test -z "$haveit"; then
9008                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9009                    fi
9010                    if test "$acl_hardcode_minus_L" != no; then
9011                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9012                    else
9013                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9014                    fi
9015                  fi
9016                fi
9017              fi
9018            else
9019              if test "X$found_a" != "X"; then
9020                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9021              else
9022                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9023              fi
9024            fi
9025                        additional_includedir=
9026            case "$found_dir" in
9027              */$acl_libdirstem | */$acl_libdirstem/)
9028                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9029                if test "$name" = 'iconv'; then
9030                  LIBICONV_PREFIX="$basedir"
9031                fi
9032                additional_includedir="$basedir/include"
9033                ;;
9034              */$acl_libdirstem2 | */$acl_libdirstem2/)
9035                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9036                if test "$name" = 'iconv'; then
9037                  LIBICONV_PREFIX="$basedir"
9038                fi
9039                additional_includedir="$basedir/include"
9040                ;;
9041            esac
9042            if test "X$additional_includedir" != "X"; then
9043                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
9044                haveit=
9045                if test "X$additional_includedir" = "X/usr/local/include"; then
9046                  if test -n "$GCC"; then
9047                    case $host_os in
9048                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9049                    esac
9050                  fi
9051                fi
9052                if test -z "$haveit"; then
9053                  for x in $CPPFLAGS $INCICONV; do
9054
9055  acl_save_prefix="$prefix"
9056  prefix="$acl_final_prefix"
9057  acl_save_exec_prefix="$exec_prefix"
9058  exec_prefix="$acl_final_exec_prefix"
9059  eval x=\"$x\"
9060  exec_prefix="$acl_save_exec_prefix"
9061  prefix="$acl_save_prefix"
9062
9063                    if test "X$x" = "X-I$additional_includedir"; then
9064                      haveit=yes
9065                      break
9066                    fi
9067                  done
9068                  if test -z "$haveit"; then
9069                    if test -d "$additional_includedir"; then
9070                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9071                    fi
9072                  fi
9073                fi
9074              fi
9075            fi
9076                        if test -n "$found_la"; then
9077                                                        save_libdir="$libdir"
9078              case "$found_la" in
9079                */* | *\\*) . "$found_la" ;;
9080                *) . "./$found_la" ;;
9081              esac
9082              libdir="$save_libdir"
9083                            for dep in $dependency_libs; do
9084                case "$dep" in
9085                  -L*)
9086                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9087                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9088                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9089                      haveit=
9090                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9091                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9092                        if test -n "$GCC"; then
9093                          case $host_os in
9094                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9095                          esac
9096                        fi
9097                      fi
9098                      if test -z "$haveit"; then
9099                        haveit=
9100                        for x in $LDFLAGS $LIBICONV; do
9101
9102  acl_save_prefix="$prefix"
9103  prefix="$acl_final_prefix"
9104  acl_save_exec_prefix="$exec_prefix"
9105  exec_prefix="$acl_final_exec_prefix"
9106  eval x=\"$x\"
9107  exec_prefix="$acl_save_exec_prefix"
9108  prefix="$acl_save_prefix"
9109
9110                          if test "X$x" = "X-L$additional_libdir"; then
9111                            haveit=yes
9112                            break
9113                          fi
9114                        done
9115                        if test -z "$haveit"; then
9116                          if test -d "$additional_libdir"; then
9117                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9118                          fi
9119                        fi
9120                        haveit=
9121                        for x in $LDFLAGS $LTLIBICONV; do
9122
9123  acl_save_prefix="$prefix"
9124  prefix="$acl_final_prefix"
9125  acl_save_exec_prefix="$exec_prefix"
9126  exec_prefix="$acl_final_exec_prefix"
9127  eval x=\"$x\"
9128  exec_prefix="$acl_save_exec_prefix"
9129  prefix="$acl_save_prefix"
9130
9131                          if test "X$x" = "X-L$additional_libdir"; then
9132                            haveit=yes
9133                            break
9134                          fi
9135                        done
9136                        if test -z "$haveit"; then
9137                          if test -d "$additional_libdir"; then
9138                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9139                          fi
9140                        fi
9141                      fi
9142                    fi
9143                    ;;
9144                  -R*)
9145                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
9146                    if test "$enable_rpath" != no; then
9147                                                                  haveit=
9148                      for x in $rpathdirs; do
9149                        if test "X$x" = "X$dir"; then
9150                          haveit=yes
9151                          break
9152                        fi
9153                      done
9154                      if test -z "$haveit"; then
9155                        rpathdirs="$rpathdirs $dir"
9156                      fi
9157                                                                  haveit=
9158                      for x in $ltrpathdirs; do
9159                        if test "X$x" = "X$dir"; then
9160                          haveit=yes
9161                          break
9162                        fi
9163                      done
9164                      if test -z "$haveit"; then
9165                        ltrpathdirs="$ltrpathdirs $dir"
9166                      fi
9167                    fi
9168                    ;;
9169                  -l*)
9170                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9171                    ;;
9172                  *.la)
9173                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9174                    ;;
9175                  *)
9176                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9177                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9178                    ;;
9179                esac
9180              done
9181            fi
9182          else
9183                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9184            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9185          fi
9186        fi
9187      fi
9188    done
9189  done
9190  if test "X$rpathdirs" != "X"; then
9191    if test -n "$acl_hardcode_libdir_separator"; then
9192                        alldirs=
9193      for found_dir in $rpathdirs; do
9194        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9195      done
9196            acl_save_libdir="$libdir"
9197      libdir="$alldirs"
9198      eval flag=\"$acl_hardcode_libdir_flag_spec\"
9199      libdir="$acl_save_libdir"
9200      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9201    else
9202            for found_dir in $rpathdirs; do
9203        acl_save_libdir="$libdir"
9204        libdir="$found_dir"
9205        eval flag=\"$acl_hardcode_libdir_flag_spec\"
9206        libdir="$acl_save_libdir"
9207        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9208      done
9209    fi
9210  fi
9211  if test "X$ltrpathdirs" != "X"; then
9212            for found_dir in $ltrpathdirs; do
9213      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9214    done
9215  fi
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228          am_save_CPPFLAGS="$CPPFLAGS"
9229
9230  for element in $INCICONV; do
9231    haveit=
9232    for x in $CPPFLAGS; do
9233
9234  acl_save_prefix="$prefix"
9235  prefix="$acl_final_prefix"
9236  acl_save_exec_prefix="$exec_prefix"
9237  exec_prefix="$acl_final_exec_prefix"
9238  eval x=\"$x\"
9239  exec_prefix="$acl_save_exec_prefix"
9240  prefix="$acl_save_prefix"
9241
9242      if test "X$x" = "X$element"; then
9243        haveit=yes
9244        break
9245      fi
9246    done
9247    if test -z "$haveit"; then
9248      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9249    fi
9250  done
9251
9252
9253  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9254$as_echo_n "checking for iconv... " >&6; }
9255if ${am_cv_func_iconv+:} false; then :
9256  $as_echo_n "(cached) " >&6
9257else
9258
9259    am_cv_func_iconv="no, consider installing GNU libiconv"
9260    am_cv_lib_iconv=no
9261    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9262/* end confdefs.h.  */
9263
9264#include <stdlib.h>
9265#include <iconv.h>
9266
9267int
9268main ()
9269{
9270iconv_t cd = iconv_open("","");
9271           iconv(cd,NULL,NULL,NULL,NULL);
9272           iconv_close(cd);
9273  ;
9274  return 0;
9275}
9276_ACEOF
9277if ac_fn_c_try_link "$LINENO"; then :
9278  am_cv_func_iconv=yes
9279fi
9280rm -f core conftest.err conftest.$ac_objext \
9281    conftest$ac_exeext conftest.$ac_ext
9282    if test "$am_cv_func_iconv" != yes; then
9283      am_save_LIBS="$LIBS"
9284      LIBS="$LIBS $LIBICONV"
9285      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9286/* end confdefs.h.  */
9287
9288#include <stdlib.h>
9289#include <iconv.h>
9290
9291int
9292main ()
9293{
9294iconv_t cd = iconv_open("","");
9295             iconv(cd,NULL,NULL,NULL,NULL);
9296             iconv_close(cd);
9297  ;
9298  return 0;
9299}
9300_ACEOF
9301if ac_fn_c_try_link "$LINENO"; then :
9302  am_cv_lib_iconv=yes
9303        am_cv_func_iconv=yes
9304fi
9305rm -f core conftest.err conftest.$ac_objext \
9306    conftest$ac_exeext conftest.$ac_ext
9307      LIBS="$am_save_LIBS"
9308    fi
9309
9310fi
9311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9312$as_echo "$am_cv_func_iconv" >&6; }
9313  if test "$am_cv_func_iconv" = yes; then
9314    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9315$as_echo_n "checking for working iconv... " >&6; }
9316if ${am_cv_func_iconv_works+:} false; then :
9317  $as_echo_n "(cached) " >&6
9318else
9319
9320                  am_save_LIBS="$LIBS"
9321      if test $am_cv_lib_iconv = yes; then
9322        LIBS="$LIBS $LIBICONV"
9323      fi
9324      if test "$cross_compiling" = yes; then :
9325
9326         case "$host_os" in
9327           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9328           *)            am_cv_func_iconv_works="guessing yes" ;;
9329         esac
9330
9331else
9332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9333/* end confdefs.h.  */
9334
9335#include <iconv.h>
9336#include <string.h>
9337int main ()
9338{
9339  int result = 0;
9340  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9341     returns.  */
9342  {
9343    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9344    if (cd_utf8_to_88591 != (iconv_t)(-1))
9345      {
9346        static const char input[] = "\342\202\254"; /* EURO SIGN */
9347        char buf[10];
9348        const char *inptr = input;
9349        size_t inbytesleft = strlen (input);
9350        char *outptr = buf;
9351        size_t outbytesleft = sizeof (buf);
9352        size_t res = iconv (cd_utf8_to_88591,
9353                            (char **) &inptr, &inbytesleft,
9354                            &outptr, &outbytesleft);
9355        if (res == 0)
9356          result |= 1;
9357        iconv_close (cd_utf8_to_88591);
9358      }
9359  }
9360  /* Test against Solaris 10 bug: Failures are not distinguishable from
9361     successful returns.  */
9362  {
9363    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9364    if (cd_ascii_to_88591 != (iconv_t)(-1))
9365      {
9366        static const char input[] = "\263";
9367        char buf[10];
9368        const char *inptr = input;
9369        size_t inbytesleft = strlen (input);
9370        char *outptr = buf;
9371        size_t outbytesleft = sizeof (buf);
9372        size_t res = iconv (cd_ascii_to_88591,
9373                            (char **) &inptr, &inbytesleft,
9374                            &outptr, &outbytesleft);
9375        if (res == 0)
9376          result |= 2;
9377        iconv_close (cd_ascii_to_88591);
9378      }
9379  }
9380  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
9381  {
9382    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9383    if (cd_88591_to_utf8 != (iconv_t)(-1))
9384      {
9385        static const char input[] = "\304";
9386        static char buf[2] = { (char)0xDE, (char)0xAD };
9387        const char *inptr = input;
9388        size_t inbytesleft = 1;
9389        char *outptr = buf;
9390        size_t outbytesleft = 1;
9391        size_t res = iconv (cd_88591_to_utf8,
9392                            (char **) &inptr, &inbytesleft,
9393                            &outptr, &outbytesleft);
9394        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9395          result |= 4;
9396        iconv_close (cd_88591_to_utf8);
9397      }
9398  }
9399#if 0 /* This bug could be worked around by the caller.  */
9400  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
9401  {
9402    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9403    if (cd_88591_to_utf8 != (iconv_t)(-1))
9404      {
9405        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9406        char buf[50];
9407        const char *inptr = input;
9408        size_t inbytesleft = strlen (input);
9409        char *outptr = buf;
9410        size_t outbytesleft = sizeof (buf);
9411        size_t res = iconv (cd_88591_to_utf8,
9412                            (char **) &inptr, &inbytesleft,
9413                            &outptr, &outbytesleft);
9414        if ((int)res > 0)
9415          result |= 8;
9416        iconv_close (cd_88591_to_utf8);
9417      }
9418  }
9419#endif
9420  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9421     provided.  */
9422  if (/* Try standardized names.  */
9423      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9424      /* Try IRIX, OSF/1 names.  */
9425      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9426      /* Try AIX names.  */
9427      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9428      /* Try HP-UX names.  */
9429      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9430    result |= 16;
9431  return result;
9432}
9433_ACEOF
9434if ac_fn_c_try_run "$LINENO"; then :
9435  am_cv_func_iconv_works=yes
9436else
9437  am_cv_func_iconv_works=no
9438fi
9439rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9440  conftest.$ac_objext conftest.beam conftest.$ac_ext
9441fi
9442
9443      LIBS="$am_save_LIBS"
9444
9445fi
9446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9447$as_echo "$am_cv_func_iconv_works" >&6; }
9448    case "$am_cv_func_iconv_works" in
9449      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9450      *)   am_func_iconv=yes ;;
9451    esac
9452  else
9453    am_func_iconv=no am_cv_lib_iconv=no
9454  fi
9455  if test "$am_func_iconv" = yes; then
9456
9457$as_echo "#define HAVE_ICONV 1" >>confdefs.h
9458
9459  fi
9460  if test "$am_cv_lib_iconv" = yes; then
9461    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9462$as_echo_n "checking how to link with libiconv... " >&6; }
9463    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9464$as_echo "$LIBICONV" >&6; }
9465  else
9466            CPPFLAGS="$am_save_CPPFLAGS"
9467    LIBICONV=
9468    LTLIBICONV=
9469  fi
9470
9471
9472
9473  if test "$am_cv_func_iconv" = yes; then
9474    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9475$as_echo_n "checking for iconv declaration... " >&6; }
9476    if ${am_cv_proto_iconv+:} false; then :
9477  $as_echo_n "(cached) " >&6
9478else
9479
9480      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481/* end confdefs.h.  */
9482
9483#include <stdlib.h>
9484#include <iconv.h>
9485extern
9486#ifdef __cplusplus
9487"C"
9488#endif
9489#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9490size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9491#else
9492size_t iconv();
9493#endif
9494
9495int
9496main ()
9497{
9498
9499  ;
9500  return 0;
9501}
9502_ACEOF
9503if ac_fn_c_try_compile "$LINENO"; then :
9504  am_cv_proto_iconv_arg1=""
9505else
9506  am_cv_proto_iconv_arg1="const"
9507fi
9508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9509      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
9510fi
9511
9512    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9513    { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9514         $am_cv_proto_iconv" >&5
9515$as_echo "
9516         $am_cv_proto_iconv" >&6; }
9517
9518cat >>confdefs.h <<_ACEOF
9519#define ICONV_CONST $am_cv_proto_iconv_arg1
9520_ACEOF
9521
9522
9523  fi
9524
9525
9526
9527
9528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9529/* end confdefs.h.  */
9530int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9531int
9532main ()
9533{
9534
9535  ;
9536  return 0;
9537}
9538_ACEOF
9539if ac_fn_c_try_link "$LINENO"; then :
9540
9541$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9542
9543fi
9544rm -f core conftest.err conftest.$ac_objext \
9545    conftest$ac_exeext conftest.$ac_ext
9546
9547  for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9548do :
9549  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9550ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9551if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9552  cat >>confdefs.h <<_ACEOF
9553#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9554_ACEOF
9555
9556fi
9557
9558done
9559
9560  for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9561    stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9562    argz_stringify argz_next __fsetlocking
9563do :
9564  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9565ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9566if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9567  cat >>confdefs.h <<_ACEOF
9568#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9569_ACEOF
9570
9571fi
9572done
9573
9574
9575          ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9576"
9577if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9578  ac_have_decl=1
9579else
9580  ac_have_decl=0
9581fi
9582
9583cat >>confdefs.h <<_ACEOF
9584#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9585_ACEOF
9586ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9587"
9588if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9589  ac_have_decl=1
9590else
9591  ac_have_decl=0
9592fi
9593
9594cat >>confdefs.h <<_ACEOF
9595#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9596_ACEOF
9597
9598
9599
9600
9601                      for ac_prog in bison
9602do
9603  # Extract the first word of "$ac_prog", so it can be a program name with args.
9604set dummy $ac_prog; ac_word=$2
9605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9606$as_echo_n "checking for $ac_word... " >&6; }
9607if ${ac_cv_prog_INTLBISON+:} false; then :
9608  $as_echo_n "(cached) " >&6
9609else
9610  if test -n "$INTLBISON"; then
9611  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9612else
9613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9614for as_dir in $PATH
9615do
9616  IFS=$as_save_IFS
9617  test -z "$as_dir" && as_dir=.
9618    for ac_exec_ext in '' $ac_executable_extensions; do
9619  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9620    ac_cv_prog_INTLBISON="$ac_prog"
9621    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9622    break 2
9623  fi
9624done
9625  done
9626IFS=$as_save_IFS
9627
9628fi
9629fi
9630INTLBISON=$ac_cv_prog_INTLBISON
9631if test -n "$INTLBISON"; then
9632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9633$as_echo "$INTLBISON" >&6; }
9634else
9635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9636$as_echo "no" >&6; }
9637fi
9638
9639
9640  test -n "$INTLBISON" && break
9641done
9642
9643  if test -z "$INTLBISON"; then
9644    ac_verc_fail=yes
9645  else
9646        { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9647$as_echo_n "checking version of bison... " >&6; }
9648    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9649    case $ac_prog_version in
9650      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9651      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9652         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9653      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9654    esac
9655    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9656$as_echo "$ac_prog_version" >&6; }
9657  fi
9658  if test $ac_verc_fail = yes; then
9659    INTLBISON=:
9660  fi
9661
9662
9663
9664  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9665$as_echo_n "checking for long long int... " >&6; }
9666if ${ac_cv_type_long_long_int+:} false; then :
9667  $as_echo_n "(cached) " >&6
9668else
9669  ac_cv_type_long_long_int=yes
9670      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9671        ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9672        if test $ac_cv_type_long_long_int = yes; then
9673                                        if test "$cross_compiling" = yes; then :
9674  :
9675else
9676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9677/* end confdefs.h.  */
9678#include <limits.h>
9679                 #ifndef LLONG_MAX
9680                 # define HALF \
9681                          (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9682                 # define LLONG_MAX (HALF - 1 + HALF)
9683                 #endif
9684int
9685main ()
9686{
9687long long int n = 1;
9688                 int i;
9689                 for (i = 0; ; i++)
9690                   {
9691                     long long int m = n << i;
9692                     if (m >> i != n)
9693                       return 1;
9694                     if (LLONG_MAX / 2 < m)
9695                       break;
9696                   }
9697                 return 0;
9698  ;
9699  return 0;
9700}
9701_ACEOF
9702if ac_fn_c_try_run "$LINENO"; then :
9703
9704else
9705  ac_cv_type_long_long_int=no
9706fi
9707rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9708  conftest.$ac_objext conftest.beam conftest.$ac_ext
9709fi
9710
9711        fi
9712      fi
9713fi
9714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9715$as_echo "$ac_cv_type_long_long_int" >&6; }
9716  if test $ac_cv_type_long_long_int = yes; then
9717
9718$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9719
9720  fi
9721
9722
9723  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9724$as_echo_n "checking for wchar_t... " >&6; }
9725if ${gt_cv_c_wchar_t+:} false; then :
9726  $as_echo_n "(cached) " >&6
9727else
9728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9729/* end confdefs.h.  */
9730#include <stddef.h>
9731            wchar_t foo = (wchar_t)'\0';
9732int
9733main ()
9734{
9735
9736  ;
9737  return 0;
9738}
9739_ACEOF
9740if ac_fn_c_try_compile "$LINENO"; then :
9741  gt_cv_c_wchar_t=yes
9742else
9743  gt_cv_c_wchar_t=no
9744fi
9745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9746fi
9747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9748$as_echo "$gt_cv_c_wchar_t" >&6; }
9749  if test $gt_cv_c_wchar_t = yes; then
9750
9751$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9752
9753  fi
9754
9755
9756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9757$as_echo_n "checking for wint_t... " >&6; }
9758if ${gt_cv_c_wint_t+:} false; then :
9759  $as_echo_n "(cached) " >&6
9760else
9761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9762/* end confdefs.h.  */
9763
9764/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9765   <wchar.h>.
9766   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9767   before <wchar.h>.  */
9768#include <stddef.h>
9769#include <stdio.h>
9770#include <time.h>
9771#include <wchar.h>
9772            wint_t foo = (wchar_t)'\0';
9773int
9774main ()
9775{
9776
9777  ;
9778  return 0;
9779}
9780_ACEOF
9781if ac_fn_c_try_compile "$LINENO"; then :
9782  gt_cv_c_wint_t=yes
9783else
9784  gt_cv_c_wint_t=no
9785fi
9786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9787fi
9788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9789$as_echo "$gt_cv_c_wint_t" >&6; }
9790  if test $gt_cv_c_wint_t = yes; then
9791
9792$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9793
9794  fi
9795
9796
9797
9798
9799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9800$as_echo_n "checking for intmax_t... " >&6; }
9801if ${gt_cv_c_intmax_t+:} false; then :
9802  $as_echo_n "(cached) " >&6
9803else
9804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9805/* end confdefs.h.  */
9806
9807#include <stddef.h>
9808#include <stdlib.h>
9809#if HAVE_STDINT_H_WITH_UINTMAX
9810#include <stdint.h>
9811#endif
9812#if HAVE_INTTYPES_H_WITH_UINTMAX
9813#include <inttypes.h>
9814#endif
9815
9816int
9817main ()
9818{
9819intmax_t x = -1;
9820            return !x;
9821  ;
9822  return 0;
9823}
9824_ACEOF
9825if ac_fn_c_try_compile "$LINENO"; then :
9826  gt_cv_c_intmax_t=yes
9827else
9828  gt_cv_c_intmax_t=no
9829fi
9830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9831fi
9832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9833$as_echo "$gt_cv_c_intmax_t" >&6; }
9834  if test $gt_cv_c_intmax_t = yes; then
9835
9836$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9837
9838  fi
9839
9840
9841
9842  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9843$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9844if ${gt_cv_func_printf_posix+:} false; then :
9845  $as_echo_n "(cached) " >&6
9846else
9847
9848      if test "$cross_compiling" = yes; then :
9849
9850          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9851/* end confdefs.h.  */
9852
9853#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9854  notposix
9855#endif
9856
9857_ACEOF
9858if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9859  $EGREP "notposix" >/dev/null 2>&1; then :
9860  gt_cv_func_printf_posix="guessing no"
9861else
9862  gt_cv_func_printf_posix="guessing yes"
9863fi
9864rm -f conftest*
9865
9866
9867else
9868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869/* end confdefs.h.  */
9870
9871#include <stdio.h>
9872#include <string.h>
9873/* The string "%2$d %1$d", with dollar characters protected from the shell's
9874   dollar expansion (possibly an autoconf bug).  */
9875static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9876static char buf[100];
9877int main ()
9878{
9879  sprintf (buf, format, 33, 55);
9880  return (strcmp (buf, "55 33") != 0);
9881}
9882_ACEOF
9883if ac_fn_c_try_run "$LINENO"; then :
9884  gt_cv_func_printf_posix=yes
9885else
9886  gt_cv_func_printf_posix=no
9887fi
9888rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9889  conftest.$ac_objext conftest.beam conftest.$ac_ext
9890fi
9891
9892
9893fi
9894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9895$as_echo "$gt_cv_func_printf_posix" >&6; }
9896  case $gt_cv_func_printf_posix in
9897    *yes)
9898
9899$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9900
9901      ;;
9902  esac
9903
9904
9905    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9906$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9907if ${ac_cv_gnu_library_2_1+:} false; then :
9908  $as_echo_n "(cached) " >&6
9909else
9910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9911/* end confdefs.h.  */
9912
9913#include <features.h>
9914#ifdef __GNU_LIBRARY__
9915 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9916  Lucky GNU user
9917 #endif
9918#endif
9919#ifdef __UCLIBC__
9920 Lucky user
9921#endif
9922
9923_ACEOF
9924if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9925  $EGREP "Lucky" >/dev/null 2>&1; then :
9926  ac_cv_gnu_library_2_1=yes
9927else
9928  ac_cv_gnu_library_2_1=no
9929fi
9930rm -f conftest*
9931
9932
9933
9934fi
9935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9936$as_echo "$ac_cv_gnu_library_2_1" >&6; }
9937
9938    GLIBC21="$ac_cv_gnu_library_2_1"
9939
9940
9941
9942  for ac_header in stdint.h
9943do :
9944  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9945if test "x$ac_cv_header_stdint_h" = xyes; then :
9946  cat >>confdefs.h <<_ACEOF
9947#define HAVE_STDINT_H 1
9948_ACEOF
9949
9950fi
9951
9952done
9953
9954    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9955$as_echo_n "checking for SIZE_MAX... " >&6; }
9956if ${gl_cv_size_max+:} false; then :
9957  $as_echo_n "(cached) " >&6
9958else
9959
9960    gl_cv_size_max=
9961    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9962/* end confdefs.h.  */
9963
9964#include <limits.h>
9965#if HAVE_STDINT_H
9966#include <stdint.h>
9967#endif
9968#ifdef SIZE_MAX
9969Found it
9970#endif
9971
9972_ACEOF
9973if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9974  $EGREP "Found it" >/dev/null 2>&1; then :
9975  gl_cv_size_max=yes
9976fi
9977rm -f conftest*
9978
9979    if test -z "$gl_cv_size_max"; then
9980                        if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
9981#include <limits.h>"; then :
9982
9983else
9984  size_t_bits_minus_1=
9985fi
9986
9987      if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
9988
9989else
9990  fits_in_uint=
9991fi
9992
9993      if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
9994        if test $fits_in_uint = 1; then
9995                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9996/* end confdefs.h.  */
9997#include <stddef.h>
9998                 extern size_t foo;
9999                 extern unsigned long foo;
10000
10001int
10002main ()
10003{
10004
10005  ;
10006  return 0;
10007}
10008_ACEOF
10009if ac_fn_c_try_compile "$LINENO"; then :
10010  fits_in_uint=0
10011fi
10012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10013        fi
10014                                if test $fits_in_uint = 1; then
10015          gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10016        else
10017          gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10018        fi
10019      else
10020                gl_cv_size_max='((size_t)~(size_t)0)'
10021      fi
10022    fi
10023
10024fi
10025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10026$as_echo "$gl_cv_size_max" >&6; }
10027  if test "$gl_cv_size_max" != yes; then
10028
10029cat >>confdefs.h <<_ACEOF
10030#define SIZE_MAX $gl_cv_size_max
10031_ACEOF
10032
10033  fi
10034
10035
10036
10037
10038  for ac_header in stdint.h
10039do :
10040  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10041if test "x$ac_cv_header_stdint_h" = xyes; then :
10042  cat >>confdefs.h <<_ACEOF
10043#define HAVE_STDINT_H 1
10044_ACEOF
10045
10046fi
10047
10048done
10049
10050
10051
10052
10053
10054  for ac_func in $ac_func_list
10055do :
10056  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10057ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10058if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10059  cat >>confdefs.h <<_ACEOF
10060#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10061_ACEOF
10062
10063fi
10064done
10065
10066
10067
10068
10069
10070
10071
10072
10073  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10074$as_echo_n "checking for working fcntl.h... " >&6; }
10075if ${gl_cv_header_working_fcntl_h+:} false; then :
10076  $as_echo_n "(cached) " >&6
10077else
10078  if test "$cross_compiling" = yes; then :
10079  gl_cv_header_working_fcntl_h=cross-compiling
10080else
10081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10082/* end confdefs.h.  */
10083#include <sys/types.h>
10084           #include <sys/stat.h>
10085           #if HAVE_UNISTD_H
10086           # include <unistd.h>
10087           #else /* on Windows with MSVC */
10088           # include <io.h>
10089           # include <stdlib.h>
10090           # defined sleep(n) _sleep ((n) * 1000)
10091           #endif
10092           #include <fcntl.h>
10093           #ifndef O_NOATIME
10094            #define O_NOATIME 0
10095           #endif
10096           #ifndef O_NOFOLLOW
10097            #define O_NOFOLLOW 0
10098           #endif
10099           static int const constants[] =
10100            {
10101              O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10102              O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10103            };
10104
10105int
10106main ()
10107{
10108
10109            int result = !constants;
10110            #if HAVE_SYMLINK
10111            {
10112              static char const sym[] = "conftest.sym";
10113              if (symlink ("/dev/null", sym) != 0)
10114                result |= 2;
10115              else
10116                {
10117                  int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10118                  if (fd >= 0)
10119                    {
10120                      close (fd);
10121                      result |= 4;
10122                    }
10123                }
10124              if (unlink (sym) != 0 || symlink (".", sym) != 0)
10125                result |= 2;
10126              else
10127                {
10128                  int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10129                  if (fd >= 0)
10130                    {
10131                      close (fd);
10132                      result |= 4;
10133                    }
10134                }
10135              unlink (sym);
10136            }
10137            #endif
10138            {
10139              static char const file[] = "confdefs.h";
10140              int fd = open (file, O_RDONLY | O_NOATIME);
10141              if (fd < 0)
10142                result |= 8;
10143              else
10144                {
10145                  struct stat st0;
10146                  if (fstat (fd, &st0) != 0)
10147                    result |= 16;
10148                  else
10149                    {
10150                      char c;
10151                      sleep (1);
10152                      if (read (fd, &c, 1) != 1)
10153                        result |= 24;
10154                      else
10155                        {
10156                          if (close (fd) != 0)
10157                            result |= 32;
10158                          else
10159                            {
10160                              struct stat st1;
10161                              if (stat (file, &st1) != 0)
10162                                result |= 40;
10163                              else
10164                                if (st0.st_atime != st1.st_atime)
10165                                  result |= 64;
10166                            }
10167                        }
10168                    }
10169                }
10170            }
10171            return result;
10172  ;
10173  return 0;
10174}
10175_ACEOF
10176if ac_fn_c_try_run "$LINENO"; then :
10177  gl_cv_header_working_fcntl_h=yes
10178else
10179  case $? in #(
10180        4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10181        64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10182        68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10183         *) gl_cv_header_working_fcntl_h='no';;
10184        esac
10185fi
10186rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10187  conftest.$ac_objext conftest.beam conftest.$ac_ext
10188fi
10189
10190fi
10191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10192$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10193
10194  case $gl_cv_header_working_fcntl_h in #(
10195  *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10196  *) ac_val=1;;
10197  esac
10198
10199cat >>confdefs.h <<_ACEOF
10200#define HAVE_WORKING_O_NOATIME $ac_val
10201_ACEOF
10202
10203
10204  case $gl_cv_header_working_fcntl_h in #(
10205  *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10206  *) ac_val=1;;
10207  esac
10208
10209cat >>confdefs.h <<_ACEOF
10210#define HAVE_WORKING_O_NOFOLLOW $ac_val
10211_ACEOF
10212
10213
10214
10215    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10216$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10217if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10218  $as_echo_n "(cached) " >&6
10219else
10220  gt_save_LIBS="$LIBS"
10221     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10222     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10223/* end confdefs.h.  */
10224#include <CoreFoundation/CFPreferences.h>
10225int
10226main ()
10227{
10228CFPreferencesCopyAppValue(NULL, NULL)
10229  ;
10230  return 0;
10231}
10232_ACEOF
10233if ac_fn_c_try_link "$LINENO"; then :
10234  gt_cv_func_CFPreferencesCopyAppValue=yes
10235else
10236  gt_cv_func_CFPreferencesCopyAppValue=no
10237fi
10238rm -f core conftest.err conftest.$ac_objext \
10239    conftest$ac_exeext conftest.$ac_ext
10240     LIBS="$gt_save_LIBS"
10241fi
10242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10243$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10244  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10245
10246$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10247
10248  fi
10249    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10250$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10251if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10252  $as_echo_n "(cached) " >&6
10253else
10254  gt_save_LIBS="$LIBS"
10255     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10256     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10257/* end confdefs.h.  */
10258#include <CoreFoundation/CFLocale.h>
10259int
10260main ()
10261{
10262CFLocaleCopyCurrent();
10263  ;
10264  return 0;
10265}
10266_ACEOF
10267if ac_fn_c_try_link "$LINENO"; then :
10268  gt_cv_func_CFLocaleCopyCurrent=yes
10269else
10270  gt_cv_func_CFLocaleCopyCurrent=no
10271fi
10272rm -f core conftest.err conftest.$ac_objext \
10273    conftest$ac_exeext conftest.$ac_ext
10274     LIBS="$gt_save_LIBS"
10275fi
10276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10277$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10278  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10279
10280$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10281
10282  fi
10283  INTL_MACOSX_LIBS=
10284  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10285    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10286  fi
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297    case "$enable_silent_rules" in
10298    yes) INTL_DEFAULT_VERBOSITY=0;;
10299    no)  INTL_DEFAULT_VERBOSITY=1;;
10300    *)   INTL_DEFAULT_VERBOSITY=1;;
10301  esac
10302
10303
10304  ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10305if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10306
10307else
10308
10309$as_echo "#define ptrdiff_t long" >>confdefs.h
10310
10311
10312fi
10313
10314  for ac_header in features.h stddef.h stdlib.h string.h
10315do :
10316  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10317ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10318if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10319  cat >>confdefs.h <<_ACEOF
10320#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10321_ACEOF
10322
10323fi
10324
10325done
10326
10327  for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10328    snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10329do :
10330  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10331ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10332if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10333  cat >>confdefs.h <<_ACEOF
10334#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10335_ACEOF
10336
10337fi
10338done
10339
10340
10341      ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10342"
10343if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10344  ac_have_decl=1
10345else
10346  ac_have_decl=0
10347fi
10348
10349cat >>confdefs.h <<_ACEOF
10350#define HAVE_DECL__SNPRINTF $ac_have_decl
10351_ACEOF
10352ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10353"
10354if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10355  ac_have_decl=1
10356else
10357  ac_have_decl=0
10358fi
10359
10360cat >>confdefs.h <<_ACEOF
10361#define HAVE_DECL__SNWPRINTF $ac_have_decl
10362_ACEOF
10363
10364
10365          ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10366"
10367if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10368  ac_have_decl=1
10369else
10370  ac_have_decl=0
10371fi
10372
10373cat >>confdefs.h <<_ACEOF
10374#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10375_ACEOF
10376
10377
10378  case $gt_cv_func_printf_posix in
10379    *yes) HAVE_POSIX_PRINTF=1 ;;
10380    *) HAVE_POSIX_PRINTF=0 ;;
10381  esac
10382
10383  if test "$ac_cv_func_asprintf" = yes; then
10384    HAVE_ASPRINTF=1
10385  else
10386    HAVE_ASPRINTF=0
10387  fi
10388
10389  if test "$ac_cv_func_snprintf" = yes; then
10390    HAVE_SNPRINTF=1
10391  else
10392    HAVE_SNPRINTF=0
10393  fi
10394
10395  if test "$ac_cv_func_newlocale" = yes; then
10396    HAVE_NEWLOCALE=1
10397  else
10398    HAVE_NEWLOCALE=0
10399  fi
10400
10401  if test "$ac_cv_func_wprintf" = yes; then
10402    HAVE_WPRINTF=1
10403  else
10404    HAVE_WPRINTF=0
10405  fi
10406
10407
10408
10409  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10410$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10411if ${am_cv_langinfo_codeset+:} false; then :
10412  $as_echo_n "(cached) " >&6
10413else
10414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10415/* end confdefs.h.  */
10416#include <langinfo.h>
10417int
10418main ()
10419{
10420char* cs = nl_langinfo(CODESET); return !cs;
10421  ;
10422  return 0;
10423}
10424_ACEOF
10425if ac_fn_c_try_link "$LINENO"; then :
10426  am_cv_langinfo_codeset=yes
10427else
10428  am_cv_langinfo_codeset=no
10429fi
10430rm -f core conftest.err conftest.$ac_objext \
10431    conftest$ac_exeext conftest.$ac_ext
10432
10433fi
10434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10435$as_echo "$am_cv_langinfo_codeset" >&6; }
10436  if test $am_cv_langinfo_codeset = yes; then
10437
10438$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10439
10440  fi
10441
10442
10443  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10444$as_echo_n "checking for LC_MESSAGES... " >&6; }
10445if ${gt_cv_val_LC_MESSAGES+:} false; then :
10446  $as_echo_n "(cached) " >&6
10447else
10448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449/* end confdefs.h.  */
10450#include <locale.h>
10451int
10452main ()
10453{
10454return LC_MESSAGES
10455  ;
10456  return 0;
10457}
10458_ACEOF
10459if ac_fn_c_try_link "$LINENO"; then :
10460  gt_cv_val_LC_MESSAGES=yes
10461else
10462  gt_cv_val_LC_MESSAGES=no
10463fi
10464rm -f core conftest.err conftest.$ac_objext \
10465    conftest$ac_exeext conftest.$ac_ext
10466fi
10467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10468$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10469  if test $gt_cv_val_LC_MESSAGES = yes; then
10470
10471$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10472
10473  fi
10474
10475
10476                if test "$enable_shared" = yes; then
10477    case "$host_os" in
10478      mingw* | cygwin*) is_woe32dll=yes ;;
10479      *) is_woe32dll=no ;;
10480    esac
10481  else
10482    is_woe32dll=no
10483  fi
10484  WOE32DLL=$is_woe32dll
10485
10486
10487      case "$host_os" in
10488    mingw* | cygwin*) is_woe32=yes ;;
10489    *) is_woe32=no ;;
10490  esac
10491  WOE32=$is_woe32
10492
10493  if test $WOE32 = yes; then
10494        if test -n "$ac_tool_prefix"; then
10495  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10496set dummy ${ac_tool_prefix}windres; ac_word=$2
10497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10498$as_echo_n "checking for $ac_word... " >&6; }
10499if ${ac_cv_prog_WINDRES+:} false; then :
10500  $as_echo_n "(cached) " >&6
10501else
10502  if test -n "$WINDRES"; then
10503  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10504else
10505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10506for as_dir in $PATH
10507do
10508  IFS=$as_save_IFS
10509  test -z "$as_dir" && as_dir=.
10510    for ac_exec_ext in '' $ac_executable_extensions; do
10511  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10512    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10513    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10514    break 2
10515  fi
10516done
10517  done
10518IFS=$as_save_IFS
10519
10520fi
10521fi
10522WINDRES=$ac_cv_prog_WINDRES
10523if test -n "$WINDRES"; then
10524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10525$as_echo "$WINDRES" >&6; }
10526else
10527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10528$as_echo "no" >&6; }
10529fi
10530
10531
10532fi
10533if test -z "$ac_cv_prog_WINDRES"; then
10534  ac_ct_WINDRES=$WINDRES
10535  # Extract the first word of "windres", so it can be a program name with args.
10536set dummy windres; ac_word=$2
10537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10538$as_echo_n "checking for $ac_word... " >&6; }
10539if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10540  $as_echo_n "(cached) " >&6
10541else
10542  if test -n "$ac_ct_WINDRES"; then
10543  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10544else
10545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10546for as_dir in $PATH
10547do
10548  IFS=$as_save_IFS
10549  test -z "$as_dir" && as_dir=.
10550    for ac_exec_ext in '' $ac_executable_extensions; do
10551  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10552    ac_cv_prog_ac_ct_WINDRES="windres"
10553    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10554    break 2
10555  fi
10556done
10557  done
10558IFS=$as_save_IFS
10559
10560fi
10561fi
10562ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10563if test -n "$ac_ct_WINDRES"; then
10564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10565$as_echo "$ac_ct_WINDRES" >&6; }
10566else
10567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10568$as_echo "no" >&6; }
10569fi
10570
10571  if test "x$ac_ct_WINDRES" = x; then
10572    WINDRES=""
10573  else
10574    case $cross_compiling:$ac_tool_warned in
10575yes:)
10576{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10577$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10578ac_tool_warned=yes ;;
10579esac
10580    WINDRES=$ac_ct_WINDRES
10581  fi
10582else
10583  WINDRES="$ac_cv_prog_WINDRES"
10584fi
10585
10586  fi
10587
10588              case "$host_os" in
10589    hpux*) LTLIBC="" ;;
10590    *)     LTLIBC="-lc" ;;
10591  esac
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10620$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10621if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10622  $as_echo_n "(cached) " >&6
10623else
10624  gt_save_LIBS="$LIBS"
10625     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10626     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10627/* end confdefs.h.  */
10628#include <CoreFoundation/CFPreferences.h>
10629int
10630main ()
10631{
10632CFPreferencesCopyAppValue(NULL, NULL)
10633  ;
10634  return 0;
10635}
10636_ACEOF
10637if ac_fn_c_try_link "$LINENO"; then :
10638  gt_cv_func_CFPreferencesCopyAppValue=yes
10639else
10640  gt_cv_func_CFPreferencesCopyAppValue=no
10641fi
10642rm -f core conftest.err conftest.$ac_objext \
10643    conftest$ac_exeext conftest.$ac_ext
10644     LIBS="$gt_save_LIBS"
10645fi
10646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10647$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10648  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10649
10650$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10651
10652  fi
10653    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10654$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10655if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10656  $as_echo_n "(cached) " >&6
10657else
10658  gt_save_LIBS="$LIBS"
10659     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10660     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10661/* end confdefs.h.  */
10662#include <CoreFoundation/CFLocale.h>
10663int
10664main ()
10665{
10666CFLocaleCopyCurrent();
10667  ;
10668  return 0;
10669}
10670_ACEOF
10671if ac_fn_c_try_link "$LINENO"; then :
10672  gt_cv_func_CFLocaleCopyCurrent=yes
10673else
10674  gt_cv_func_CFLocaleCopyCurrent=no
10675fi
10676rm -f core conftest.err conftest.$ac_objext \
10677    conftest$ac_exeext conftest.$ac_ext
10678     LIBS="$gt_save_LIBS"
10679fi
10680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10681$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10682  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10683
10684$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10685
10686  fi
10687  INTL_MACOSX_LIBS=
10688  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10689    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10690  fi
10691
10692
10693
10694
10695
10696
10697    BUILD_INCLUDED_LIBINTL=no
10698    USE_INCLUDED_LIBINTL=no
10699
10700  LIBINTL=
10701  LTLIBINTL=
10702  POSUB=
10703
10704    case " $gt_needs " in
10705    *" need-formatstring-macros "*) gt_api_version=3 ;;
10706    *" need-ngettext "*) gt_api_version=2 ;;
10707    *) gt_api_version=1 ;;
10708  esac
10709  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10710  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10711
10712    if test "$USE_NLS" = "yes"; then
10713    gt_use_preinstalled_gnugettext=no
10714
10715      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10716$as_echo_n "checking whether included gettext is requested... " >&6; }
10717
10718# Check whether --with-included-gettext was given.
10719if test "${with_included_gettext+set}" = set; then :
10720  withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10721else
10722  nls_cv_force_use_gnu_gettext=no
10723fi
10724
10725      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10726$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10727
10728      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10729      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10730
10731
10732        if test $gt_api_version -ge 3; then
10733          gt_revision_test_code='
10734#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10735#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10736#endif
10737typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10738'
10739        else
10740          gt_revision_test_code=
10741        fi
10742        if test $gt_api_version -ge 2; then
10743          gt_expression_test_code=' + * ngettext ("", "", 0)'
10744        else
10745          gt_expression_test_code=
10746        fi
10747
10748        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10749$as_echo_n "checking for GNU gettext in libc... " >&6; }
10750if eval \${$gt_func_gnugettext_libc+:} false; then :
10751  $as_echo_n "(cached) " >&6
10752else
10753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10754/* end confdefs.h.  */
10755
10756#include <libintl.h>
10757$gt_revision_test_code
10758extern int _nl_msg_cat_cntr;
10759extern int *_nl_domain_bindings;
10760
10761int
10762main ()
10763{
10764
10765bindtextdomain ("", "");
10766return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10767
10768  ;
10769  return 0;
10770}
10771_ACEOF
10772if ac_fn_c_try_link "$LINENO"; then :
10773  eval "$gt_func_gnugettext_libc=yes"
10774else
10775  eval "$gt_func_gnugettext_libc=no"
10776fi
10777rm -f core conftest.err conftest.$ac_objext \
10778    conftest$ac_exeext conftest.$ac_ext
10779fi
10780eval ac_res=\$$gt_func_gnugettext_libc
10781	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10782$as_echo "$ac_res" >&6; }
10783
10784        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10785
10786
10787
10788
10789
10790
10791
10792
10793    use_additional=yes
10794
10795  acl_save_prefix="$prefix"
10796  prefix="$acl_final_prefix"
10797  acl_save_exec_prefix="$exec_prefix"
10798  exec_prefix="$acl_final_exec_prefix"
10799
10800    eval additional_includedir=\"$includedir\"
10801    eval additional_libdir=\"$libdir\"
10802
10803  exec_prefix="$acl_save_exec_prefix"
10804  prefix="$acl_save_prefix"
10805
10806
10807# Check whether --with-libintl-prefix was given.
10808if test "${with_libintl_prefix+set}" = set; then :
10809  withval=$with_libintl_prefix;
10810    if test "X$withval" = "Xno"; then
10811      use_additional=no
10812    else
10813      if test "X$withval" = "X"; then
10814
10815  acl_save_prefix="$prefix"
10816  prefix="$acl_final_prefix"
10817  acl_save_exec_prefix="$exec_prefix"
10818  exec_prefix="$acl_final_exec_prefix"
10819
10820          eval additional_includedir=\"$includedir\"
10821          eval additional_libdir=\"$libdir\"
10822
10823  exec_prefix="$acl_save_exec_prefix"
10824  prefix="$acl_save_prefix"
10825
10826      else
10827        additional_includedir="$withval/include"
10828        additional_libdir="$withval/$acl_libdirstem"
10829        if test "$acl_libdirstem2" != "$acl_libdirstem" \
10830           && ! test -d "$withval/$acl_libdirstem"; then
10831          additional_libdir="$withval/$acl_libdirstem2"
10832        fi
10833      fi
10834    fi
10835
10836fi
10837
10838      LIBINTL=
10839  LTLIBINTL=
10840  INCINTL=
10841  LIBINTL_PREFIX=
10842      HAVE_LIBINTL=
10843  rpathdirs=
10844  ltrpathdirs=
10845  names_already_handled=
10846  names_next_round='intl '
10847  while test -n "$names_next_round"; do
10848    names_this_round="$names_next_round"
10849    names_next_round=
10850    for name in $names_this_round; do
10851      already_handled=
10852      for n in $names_already_handled; do
10853        if test "$n" = "$name"; then
10854          already_handled=yes
10855          break
10856        fi
10857      done
10858      if test -z "$already_handled"; then
10859        names_already_handled="$names_already_handled $name"
10860                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10861        eval value=\"\$HAVE_LIB$uppername\"
10862        if test -n "$value"; then
10863          if test "$value" = yes; then
10864            eval value=\"\$LIB$uppername\"
10865            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10866            eval value=\"\$LTLIB$uppername\"
10867            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10868          else
10869                                    :
10870          fi
10871        else
10872                              found_dir=
10873          found_la=
10874          found_so=
10875          found_a=
10876          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
10877          if test -n "$acl_shlibext"; then
10878            shrext=".$acl_shlibext"             # typically: shrext=.so
10879          else
10880            shrext=
10881          fi
10882          if test $use_additional = yes; then
10883            dir="$additional_libdir"
10884                                    if test -n "$acl_shlibext"; then
10885              if test -f "$dir/$libname$shrext"; then
10886                found_dir="$dir"
10887                found_so="$dir/$libname$shrext"
10888              else
10889                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10890                  ver=`(cd "$dir" && \
10891                        for f in "$libname$shrext".*; do echo "$f"; done \
10892                        | sed -e "s,^$libname$shrext\\\\.,," \
10893                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10894                        | sed 1q ) 2>/dev/null`
10895                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10896                    found_dir="$dir"
10897                    found_so="$dir/$libname$shrext.$ver"
10898                  fi
10899                else
10900                  eval library_names=\"$acl_library_names_spec\"
10901                  for f in $library_names; do
10902                    if test -f "$dir/$f"; then
10903                      found_dir="$dir"
10904                      found_so="$dir/$f"
10905                      break
10906                    fi
10907                  done
10908                fi
10909              fi
10910            fi
10911                        if test "X$found_dir" = "X"; then
10912              if test -f "$dir/$libname.$acl_libext"; then
10913                found_dir="$dir"
10914                found_a="$dir/$libname.$acl_libext"
10915              fi
10916            fi
10917            if test "X$found_dir" != "X"; then
10918              if test -f "$dir/$libname.la"; then
10919                found_la="$dir/$libname.la"
10920              fi
10921            fi
10922          fi
10923          if test "X$found_dir" = "X"; then
10924            for x in $LDFLAGS $LTLIBINTL; do
10925
10926  acl_save_prefix="$prefix"
10927  prefix="$acl_final_prefix"
10928  acl_save_exec_prefix="$exec_prefix"
10929  exec_prefix="$acl_final_exec_prefix"
10930  eval x=\"$x\"
10931  exec_prefix="$acl_save_exec_prefix"
10932  prefix="$acl_save_prefix"
10933
10934              case "$x" in
10935                -L*)
10936                  dir=`echo "X$x" | sed -e 's/^X-L//'`
10937                                    if test -n "$acl_shlibext"; then
10938                    if test -f "$dir/$libname$shrext"; then
10939                      found_dir="$dir"
10940                      found_so="$dir/$libname$shrext"
10941                    else
10942                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10943                        ver=`(cd "$dir" && \
10944                              for f in "$libname$shrext".*; do echo "$f"; done \
10945                              | sed -e "s,^$libname$shrext\\\\.,," \
10946                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10947                              | sed 1q ) 2>/dev/null`
10948                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10949                          found_dir="$dir"
10950                          found_so="$dir/$libname$shrext.$ver"
10951                        fi
10952                      else
10953                        eval library_names=\"$acl_library_names_spec\"
10954                        for f in $library_names; do
10955                          if test -f "$dir/$f"; then
10956                            found_dir="$dir"
10957                            found_so="$dir/$f"
10958                            break
10959                          fi
10960                        done
10961                      fi
10962                    fi
10963                  fi
10964                                    if test "X$found_dir" = "X"; then
10965                    if test -f "$dir/$libname.$acl_libext"; then
10966                      found_dir="$dir"
10967                      found_a="$dir/$libname.$acl_libext"
10968                    fi
10969                  fi
10970                  if test "X$found_dir" != "X"; then
10971                    if test -f "$dir/$libname.la"; then
10972                      found_la="$dir/$libname.la"
10973                    fi
10974                  fi
10975                  ;;
10976              esac
10977              if test "X$found_dir" != "X"; then
10978                break
10979              fi
10980            done
10981          fi
10982          if test "X$found_dir" != "X"; then
10983                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10984            if test "X$found_so" != "X"; then
10985                                                        if test "$enable_rpath" = no \
10986                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10987                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
10988                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10989              else
10990                                                                                haveit=
10991                for x in $ltrpathdirs; do
10992                  if test "X$x" = "X$found_dir"; then
10993                    haveit=yes
10994                    break
10995                  fi
10996                done
10997                if test -z "$haveit"; then
10998                  ltrpathdirs="$ltrpathdirs $found_dir"
10999                fi
11000                                if test "$acl_hardcode_direct" = yes; then
11001                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11002                else
11003                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11004                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11005                                                            haveit=
11006                    for x in $rpathdirs; do
11007                      if test "X$x" = "X$found_dir"; then
11008                        haveit=yes
11009                        break
11010                      fi
11011                    done
11012                    if test -z "$haveit"; then
11013                      rpathdirs="$rpathdirs $found_dir"
11014                    fi
11015                  else
11016                                                                                haveit=
11017                    for x in $LDFLAGS $LIBINTL; do
11018
11019  acl_save_prefix="$prefix"
11020  prefix="$acl_final_prefix"
11021  acl_save_exec_prefix="$exec_prefix"
11022  exec_prefix="$acl_final_exec_prefix"
11023  eval x=\"$x\"
11024  exec_prefix="$acl_save_exec_prefix"
11025  prefix="$acl_save_prefix"
11026
11027                      if test "X$x" = "X-L$found_dir"; then
11028                        haveit=yes
11029                        break
11030                      fi
11031                    done
11032                    if test -z "$haveit"; then
11033                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11034                    fi
11035                    if test "$acl_hardcode_minus_L" != no; then
11036                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11037                    else
11038                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11039                    fi
11040                  fi
11041                fi
11042              fi
11043            else
11044              if test "X$found_a" != "X"; then
11045                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11046              else
11047                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11048              fi
11049            fi
11050                        additional_includedir=
11051            case "$found_dir" in
11052              */$acl_libdirstem | */$acl_libdirstem/)
11053                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11054                if test "$name" = 'intl'; then
11055                  LIBINTL_PREFIX="$basedir"
11056                fi
11057                additional_includedir="$basedir/include"
11058                ;;
11059              */$acl_libdirstem2 | */$acl_libdirstem2/)
11060                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11061                if test "$name" = 'intl'; then
11062                  LIBINTL_PREFIX="$basedir"
11063                fi
11064                additional_includedir="$basedir/include"
11065                ;;
11066            esac
11067            if test "X$additional_includedir" != "X"; then
11068                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
11069                haveit=
11070                if test "X$additional_includedir" = "X/usr/local/include"; then
11071                  if test -n "$GCC"; then
11072                    case $host_os in
11073                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11074                    esac
11075                  fi
11076                fi
11077                if test -z "$haveit"; then
11078                  for x in $CPPFLAGS $INCINTL; do
11079
11080  acl_save_prefix="$prefix"
11081  prefix="$acl_final_prefix"
11082  acl_save_exec_prefix="$exec_prefix"
11083  exec_prefix="$acl_final_exec_prefix"
11084  eval x=\"$x\"
11085  exec_prefix="$acl_save_exec_prefix"
11086  prefix="$acl_save_prefix"
11087
11088                    if test "X$x" = "X-I$additional_includedir"; then
11089                      haveit=yes
11090                      break
11091                    fi
11092                  done
11093                  if test -z "$haveit"; then
11094                    if test -d "$additional_includedir"; then
11095                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11096                    fi
11097                  fi
11098                fi
11099              fi
11100            fi
11101                        if test -n "$found_la"; then
11102                                                        save_libdir="$libdir"
11103              case "$found_la" in
11104                */* | *\\*) . "$found_la" ;;
11105                *) . "./$found_la" ;;
11106              esac
11107              libdir="$save_libdir"
11108                            for dep in $dependency_libs; do
11109                case "$dep" in
11110                  -L*)
11111                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11112                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11113                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11114                      haveit=
11115                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11116                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11117                        if test -n "$GCC"; then
11118                          case $host_os in
11119                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11120                          esac
11121                        fi
11122                      fi
11123                      if test -z "$haveit"; then
11124                        haveit=
11125                        for x in $LDFLAGS $LIBINTL; do
11126
11127  acl_save_prefix="$prefix"
11128  prefix="$acl_final_prefix"
11129  acl_save_exec_prefix="$exec_prefix"
11130  exec_prefix="$acl_final_exec_prefix"
11131  eval x=\"$x\"
11132  exec_prefix="$acl_save_exec_prefix"
11133  prefix="$acl_save_prefix"
11134
11135                          if test "X$x" = "X-L$additional_libdir"; then
11136                            haveit=yes
11137                            break
11138                          fi
11139                        done
11140                        if test -z "$haveit"; then
11141                          if test -d "$additional_libdir"; then
11142                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11143                          fi
11144                        fi
11145                        haveit=
11146                        for x in $LDFLAGS $LTLIBINTL; do
11147
11148  acl_save_prefix="$prefix"
11149  prefix="$acl_final_prefix"
11150  acl_save_exec_prefix="$exec_prefix"
11151  exec_prefix="$acl_final_exec_prefix"
11152  eval x=\"$x\"
11153  exec_prefix="$acl_save_exec_prefix"
11154  prefix="$acl_save_prefix"
11155
11156                          if test "X$x" = "X-L$additional_libdir"; then
11157                            haveit=yes
11158                            break
11159                          fi
11160                        done
11161                        if test -z "$haveit"; then
11162                          if test -d "$additional_libdir"; then
11163                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11164                          fi
11165                        fi
11166                      fi
11167                    fi
11168                    ;;
11169                  -R*)
11170                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
11171                    if test "$enable_rpath" != no; then
11172                                                                  haveit=
11173                      for x in $rpathdirs; do
11174                        if test "X$x" = "X$dir"; then
11175                          haveit=yes
11176                          break
11177                        fi
11178                      done
11179                      if test -z "$haveit"; then
11180                        rpathdirs="$rpathdirs $dir"
11181                      fi
11182                                                                  haveit=
11183                      for x in $ltrpathdirs; do
11184                        if test "X$x" = "X$dir"; then
11185                          haveit=yes
11186                          break
11187                        fi
11188                      done
11189                      if test -z "$haveit"; then
11190                        ltrpathdirs="$ltrpathdirs $dir"
11191                      fi
11192                    fi
11193                    ;;
11194                  -l*)
11195                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11196                    ;;
11197                  *.la)
11198                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11199                    ;;
11200                  *)
11201                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11202                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11203                    ;;
11204                esac
11205              done
11206            fi
11207          else
11208                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11209            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11210          fi
11211        fi
11212      fi
11213    done
11214  done
11215  if test "X$rpathdirs" != "X"; then
11216    if test -n "$acl_hardcode_libdir_separator"; then
11217                        alldirs=
11218      for found_dir in $rpathdirs; do
11219        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11220      done
11221            acl_save_libdir="$libdir"
11222      libdir="$alldirs"
11223      eval flag=\"$acl_hardcode_libdir_flag_spec\"
11224      libdir="$acl_save_libdir"
11225      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11226    else
11227            for found_dir in $rpathdirs; do
11228        acl_save_libdir="$libdir"
11229        libdir="$found_dir"
11230        eval flag=\"$acl_hardcode_libdir_flag_spec\"
11231        libdir="$acl_save_libdir"
11232        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11233      done
11234    fi
11235  fi
11236  if test "X$ltrpathdirs" != "X"; then
11237            for found_dir in $ltrpathdirs; do
11238      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11239    done
11240  fi
11241
11242
11243
11244
11245
11246
11247          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11248$as_echo_n "checking for GNU gettext in libintl... " >&6; }
11249if eval \${$gt_func_gnugettext_libintl+:} false; then :
11250  $as_echo_n "(cached) " >&6
11251else
11252  gt_save_CPPFLAGS="$CPPFLAGS"
11253            CPPFLAGS="$CPPFLAGS $INCINTL"
11254            gt_save_LIBS="$LIBS"
11255            LIBS="$LIBS $LIBINTL"
11256                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11257/* end confdefs.h.  */
11258
11259#include <libintl.h>
11260$gt_revision_test_code
11261extern int _nl_msg_cat_cntr;
11262extern
11263#ifdef __cplusplus
11264"C"
11265#endif
11266const char *_nl_expand_alias (const char *);
11267
11268int
11269main ()
11270{
11271
11272bindtextdomain ("", "");
11273return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11274
11275  ;
11276  return 0;
11277}
11278_ACEOF
11279if ac_fn_c_try_link "$LINENO"; then :
11280  eval "$gt_func_gnugettext_libintl=yes"
11281else
11282  eval "$gt_func_gnugettext_libintl=no"
11283fi
11284rm -f core conftest.err conftest.$ac_objext \
11285    conftest$ac_exeext conftest.$ac_ext
11286                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11287              LIBS="$LIBS $LIBICONV"
11288              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11289/* end confdefs.h.  */
11290
11291#include <libintl.h>
11292$gt_revision_test_code
11293extern int _nl_msg_cat_cntr;
11294extern
11295#ifdef __cplusplus
11296"C"
11297#endif
11298const char *_nl_expand_alias (const char *);
11299
11300int
11301main ()
11302{
11303
11304bindtextdomain ("", "");
11305return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11306
11307  ;
11308  return 0;
11309}
11310_ACEOF
11311if ac_fn_c_try_link "$LINENO"; then :
11312  LIBINTL="$LIBINTL $LIBICONV"
11313                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11314                 eval "$gt_func_gnugettext_libintl=yes"
11315
11316fi
11317rm -f core conftest.err conftest.$ac_objext \
11318    conftest$ac_exeext conftest.$ac_ext
11319            fi
11320            CPPFLAGS="$gt_save_CPPFLAGS"
11321            LIBS="$gt_save_LIBS"
11322fi
11323eval ac_res=\$$gt_func_gnugettext_libintl
11324	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11325$as_echo "$ac_res" >&6; }
11326        fi
11327
11328                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11329           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11330                && test "$PACKAGE" != gettext-runtime \
11331                && test "$PACKAGE" != gettext-tools; }; then
11332          gt_use_preinstalled_gnugettext=yes
11333        else
11334                    LIBINTL=
11335          LTLIBINTL=
11336          INCINTL=
11337        fi
11338
11339
11340        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11341                              nls_cv_use_gnu_gettext=yes
11342        fi
11343      fi
11344
11345      if test "$nls_cv_use_gnu_gettext" = "yes"; then
11346                BUILD_INCLUDED_LIBINTL=yes
11347        USE_INCLUDED_LIBINTL=yes
11348        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11349        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11350        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11351      fi
11352
11353      CATOBJEXT=
11354      if test "$gt_use_preinstalled_gnugettext" = "yes" \
11355         || test "$nls_cv_use_gnu_gettext" = "yes"; then
11356                CATOBJEXT=.gmo
11357      fi
11358
11359
11360    if test -n "$INTL_MACOSX_LIBS"; then
11361      if test "$gt_use_preinstalled_gnugettext" = "yes" \
11362         || test "$nls_cv_use_gnu_gettext" = "yes"; then
11363                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11364        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11365      fi
11366    fi
11367
11368    if test "$gt_use_preinstalled_gnugettext" = "yes" \
11369       || test "$nls_cv_use_gnu_gettext" = "yes"; then
11370
11371$as_echo "#define ENABLE_NLS 1" >>confdefs.h
11372
11373    else
11374      USE_NLS=no
11375    fi
11376  fi
11377
11378  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11379$as_echo_n "checking whether to use NLS... " >&6; }
11380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11381$as_echo "$USE_NLS" >&6; }
11382  if test "$USE_NLS" = "yes"; then
11383    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11384$as_echo_n "checking where the gettext function comes from... " >&6; }
11385    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11386      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11387        gt_source="external libintl"
11388      else
11389        gt_source="libc"
11390      fi
11391    else
11392      gt_source="included intl directory"
11393    fi
11394    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11395$as_echo "$gt_source" >&6; }
11396  fi
11397
11398  if test "$USE_NLS" = "yes"; then
11399
11400    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11401      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11402        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11403$as_echo_n "checking how to link with libintl... " >&6; }
11404        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11405$as_echo "$LIBINTL" >&6; }
11406
11407  for element in $INCINTL; do
11408    haveit=
11409    for x in $CPPFLAGS; do
11410
11411  acl_save_prefix="$prefix"
11412  prefix="$acl_final_prefix"
11413  acl_save_exec_prefix="$exec_prefix"
11414  exec_prefix="$acl_final_exec_prefix"
11415  eval x=\"$x\"
11416  exec_prefix="$acl_save_exec_prefix"
11417  prefix="$acl_save_prefix"
11418
11419      if test "X$x" = "X$element"; then
11420        haveit=yes
11421        break
11422      fi
11423    done
11424    if test -z "$haveit"; then
11425      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11426    fi
11427  done
11428
11429      fi
11430
11431
11432$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11433
11434
11435$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11436
11437    fi
11438
11439        POSUB=po
11440  fi
11441
11442
11443            if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11444      BUILD_INCLUDED_LIBINTL=yes
11445    fi
11446
11447
11448
11449
11450
11451        nls_cv_header_intl=
11452    nls_cv_header_libgt=
11453
11454        DATADIRNAME=share
11455
11456
11457        INSTOBJEXT=.mo
11458
11459
11460        GENCAT=gencat
11461
11462
11463        INTLOBJS=
11464    if test "$USE_INCLUDED_LIBINTL" = yes; then
11465      INTLOBJS="\$(GETTOBJS)"
11466    fi
11467
11468
11469        INTL_LIBTOOL_SUFFIX_PREFIX=
11470
11471
11472
11473    INTLLIBS="$LIBINTL"
11474
11475
11476
11477
11478
11479
11480
11481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11482$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11483set x ${MAKE-make}
11484ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11485if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11486  $as_echo_n "(cached) " >&6
11487else
11488  cat >conftest.make <<\_ACEOF
11489SHELL = /bin/sh
11490all:
11491	@echo '@@@%%%=$(MAKE)=@@@%%%'
11492_ACEOF
11493# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11494case `${MAKE-make} -f conftest.make 2>/dev/null` in
11495  *@@@%%%=?*=@@@%%%*)
11496    eval ac_cv_prog_make_${ac_make}_set=yes;;
11497  *)
11498    eval ac_cv_prog_make_${ac_make}_set=no;;
11499esac
11500rm -f conftest.make
11501fi
11502if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11504$as_echo "yes" >&6; }
11505  SET_MAKE=
11506else
11507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11508$as_echo "no" >&6; }
11509  SET_MAKE="MAKE=${MAKE-make}"
11510fi
11511
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11513$as_echo_n "checking for GNU make... " >&6; }
11514if ${_cv_gnu_make_command+:} false; then :
11515  $as_echo_n "(cached) " >&6
11516else
11517  _cv_gnu_make_command='' ;
11518                if test -z "$FORCE_NATIVE_MAKE" ; then
11519                   MAKES="make"
11520                else
11521                   MAKES="make gmake gnumake"
11522                fi
11523                for a in "$MAKE" $MAKES ; do
11524                        if test -z "$a" ; then continue ; fi ;
11525                        if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
11526                                _cv_gnu_make_command=$a ;
11527                                break;
11528                        fi
11529                done ;
11530
11531fi
11532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11533$as_echo "$_cv_gnu_make_command" >&6; } ;
11534        if test  "x$_cv_gnu_make_command" != "x"  ; then
11535                ifGNUmake='' ;
11536                ifNotGNUmake='#' ;
11537        else
11538                ifGNUmake='#' ;
11539                ifNotGNUmake='' ;
11540                { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11541$as_echo "\"Not found\"" >&6; };
11542        fi
11543
11544
11545
11546# Extract the first word of "ln", so it can be a program name with args.
11547set dummy ln; ac_word=$2
11548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11549$as_echo_n "checking for $ac_word... " >&6; }
11550if ${ac_cv_path_LN+:} false; then :
11551  $as_echo_n "(cached) " >&6
11552else
11553  case $LN in
11554  [\\/]* | ?:[\\/]*)
11555  ac_cv_path_LN="$LN" # Let the user override the test with a path.
11556  ;;
11557  *)
11558  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11559for as_dir in $PATH
11560do
11561  IFS=$as_save_IFS
11562  test -z "$as_dir" && as_dir=.
11563    for ac_exec_ext in '' $ac_executable_extensions; do
11564  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11565    ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11566    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11567    break 2
11568  fi
11569done
11570  done
11571IFS=$as_save_IFS
11572
11573  test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11574  ;;
11575esac
11576fi
11577LN=$ac_cv_path_LN
11578if test -n "$LN"; then
11579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11580$as_echo "$LN" >&6; }
11581else
11582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11583$as_echo "no" >&6; }
11584fi
11585
11586
11587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11588$as_echo_n "checking whether ln -s works... " >&6; }
11589LN_S=$as_ln_s
11590if test "$LN_S" = "ln -s"; then
11591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11592$as_echo "yes" >&6; }
11593else
11594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11595$as_echo "no, using $LN_S" >&6; }
11596fi
11597
11598# Extract the first word of "mv", so it can be a program name with args.
11599set dummy mv; ac_word=$2
11600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11601$as_echo_n "checking for $ac_word... " >&6; }
11602if ${ac_cv_path_MV+:} false; then :
11603  $as_echo_n "(cached) " >&6
11604else
11605  case $MV in
11606  [\\/]* | ?:[\\/]*)
11607  ac_cv_path_MV="$MV" # Let the user override the test with a path.
11608  ;;
11609  *)
11610  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11611for as_dir in $PATH
11612do
11613  IFS=$as_save_IFS
11614  test -z "$as_dir" && as_dir=.
11615    for ac_exec_ext in '' $ac_executable_extensions; do
11616  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11617    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11618    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11619    break 2
11620  fi
11621done
11622  done
11623IFS=$as_save_IFS
11624
11625  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11626  ;;
11627esac
11628fi
11629MV=$ac_cv_path_MV
11630if test -n "$MV"; then
11631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11632$as_echo "$MV" >&6; }
11633else
11634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11635$as_echo "no" >&6; }
11636fi
11637
11638
11639# Extract the first word of "cp", so it can be a program name with args.
11640set dummy cp; ac_word=$2
11641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11642$as_echo_n "checking for $ac_word... " >&6; }
11643if ${ac_cv_path_CP+:} false; then :
11644  $as_echo_n "(cached) " >&6
11645else
11646  case $CP in
11647  [\\/]* | ?:[\\/]*)
11648  ac_cv_path_CP="$CP" # Let the user override the test with a path.
11649  ;;
11650  *)
11651  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11652for as_dir in $PATH
11653do
11654  IFS=$as_save_IFS
11655  test -z "$as_dir" && as_dir=.
11656    for ac_exec_ext in '' $ac_executable_extensions; do
11657  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11658    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11660    break 2
11661  fi
11662done
11663  done
11664IFS=$as_save_IFS
11665
11666  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11667  ;;
11668esac
11669fi
11670CP=$ac_cv_path_CP
11671if test -n "$CP"; then
11672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11673$as_echo "$CP" >&6; }
11674else
11675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11676$as_echo "no" >&6; }
11677fi
11678
11679
11680# Extract the first word of "rm", so it can be a program name with args.
11681set dummy rm; ac_word=$2
11682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11683$as_echo_n "checking for $ac_word... " >&6; }
11684if ${ac_cv_path_RM+:} false; then :
11685  $as_echo_n "(cached) " >&6
11686else
11687  case $RM in
11688  [\\/]* | ?:[\\/]*)
11689  ac_cv_path_RM="$RM" # Let the user override the test with a path.
11690  ;;
11691  *)
11692  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11693for as_dir in $PATH
11694do
11695  IFS=$as_save_IFS
11696  test -z "$as_dir" && as_dir=.
11697    for ac_exec_ext in '' $ac_executable_extensions; do
11698  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11699    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11700    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11701    break 2
11702  fi
11703done
11704  done
11705IFS=$as_save_IFS
11706
11707  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11708  ;;
11709esac
11710fi
11711RM=$ac_cv_path_RM
11712if test -n "$RM"; then
11713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11714$as_echo "$RM" >&6; }
11715else
11716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11717$as_echo "no" >&6; }
11718fi
11719
11720
11721# Extract the first word of "chmod", so it can be a program name with args.
11722set dummy chmod; ac_word=$2
11723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11724$as_echo_n "checking for $ac_word... " >&6; }
11725if ${ac_cv_path_CHMOD+:} false; then :
11726  $as_echo_n "(cached) " >&6
11727else
11728  case $CHMOD in
11729  [\\/]* | ?:[\\/]*)
11730  ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11731  ;;
11732  *)
11733  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11734for as_dir in $PATH
11735do
11736  IFS=$as_save_IFS
11737  test -z "$as_dir" && as_dir=.
11738    for ac_exec_ext in '' $ac_executable_extensions; do
11739  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11740    ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11741    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11742    break 2
11743  fi
11744done
11745  done
11746IFS=$as_save_IFS
11747
11748  test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11749  ;;
11750esac
11751fi
11752CHMOD=$ac_cv_path_CHMOD
11753if test -n "$CHMOD"; then
11754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11755$as_echo "$CHMOD" >&6; }
11756else
11757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11758$as_echo "no" >&6; }
11759fi
11760
11761
11762for ac_prog in gawk mawk nawk awk
11763do
11764  # Extract the first word of "$ac_prog", so it can be a program name with args.
11765set dummy $ac_prog; ac_word=$2
11766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11767$as_echo_n "checking for $ac_word... " >&6; }
11768if ${ac_cv_prog_AWK+:} false; then :
11769  $as_echo_n "(cached) " >&6
11770else
11771  if test -n "$AWK"; then
11772  ac_cv_prog_AWK="$AWK" # Let the user override the test.
11773else
11774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11775for as_dir in $PATH
11776do
11777  IFS=$as_save_IFS
11778  test -z "$as_dir" && as_dir=.
11779    for ac_exec_ext in '' $ac_executable_extensions; do
11780  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11781    ac_cv_prog_AWK="$ac_prog"
11782    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11783    break 2
11784  fi
11785done
11786  done
11787IFS=$as_save_IFS
11788
11789fi
11790fi
11791AWK=$ac_cv_prog_AWK
11792if test -n "$AWK"; then
11793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11794$as_echo "$AWK" >&6; }
11795else
11796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11797$as_echo "no" >&6; }
11798fi
11799
11800
11801  test -n "$AWK" && break
11802done
11803
11804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11805$as_echo_n "checking for egrep... " >&6; }
11806if ${ac_cv_path_EGREP+:} false; then :
11807  $as_echo_n "(cached) " >&6
11808else
11809  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11810   then ac_cv_path_EGREP="$GREP -E"
11811   else
11812     if test -z "$EGREP"; then
11813  ac_path_EGREP_found=false
11814  # Loop through the user's path and test for each of PROGNAME-LIST
11815  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11816for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11817do
11818  IFS=$as_save_IFS
11819  test -z "$as_dir" && as_dir=.
11820    for ac_prog in egrep; do
11821    for ac_exec_ext in '' $ac_executable_extensions; do
11822      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11823      as_fn_executable_p "$ac_path_EGREP" || continue
11824# Check for GNU ac_path_EGREP and select it if it is found.
11825  # Check for GNU $ac_path_EGREP
11826case `"$ac_path_EGREP" --version 2>&1` in
11827*GNU*)
11828  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11829*)
11830  ac_count=0
11831  $as_echo_n 0123456789 >"conftest.in"
11832  while :
11833  do
11834    cat "conftest.in" "conftest.in" >"conftest.tmp"
11835    mv "conftest.tmp" "conftest.in"
11836    cp "conftest.in" "conftest.nl"
11837    $as_echo 'EGREP' >> "conftest.nl"
11838    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11839    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11840    as_fn_arith $ac_count + 1 && ac_count=$as_val
11841    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11842      # Best one so far, save it but keep looking for a better one
11843      ac_cv_path_EGREP="$ac_path_EGREP"
11844      ac_path_EGREP_max=$ac_count
11845    fi
11846    # 10*(2^10) chars as input seems more than enough
11847    test $ac_count -gt 10 && break
11848  done
11849  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11850esac
11851
11852      $ac_path_EGREP_found && break 3
11853    done
11854  done
11855  done
11856IFS=$as_save_IFS
11857  if test -z "$ac_cv_path_EGREP"; then
11858    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11859  fi
11860else
11861  ac_cv_path_EGREP=$EGREP
11862fi
11863
11864   fi
11865fi
11866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11867$as_echo "$ac_cv_path_EGREP" >&6; }
11868 EGREP="$ac_cv_path_EGREP"
11869
11870
11871# Extract the first word of "sed", so it can be a program name with args.
11872set dummy sed; ac_word=$2
11873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11874$as_echo_n "checking for $ac_word... " >&6; }
11875if ${ac_cv_path_SED+:} false; then :
11876  $as_echo_n "(cached) " >&6
11877else
11878  case $SED in
11879  [\\/]* | ?:[\\/]*)
11880  ac_cv_path_SED="$SED" # Let the user override the test with a path.
11881  ;;
11882  *)
11883  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11884for as_dir in $PATH
11885do
11886  IFS=$as_save_IFS
11887  test -z "$as_dir" && as_dir=.
11888    for ac_exec_ext in '' $ac_executable_extensions; do
11889  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11890    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11891    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11892    break 2
11893  fi
11894done
11895  done
11896IFS=$as_save_IFS
11897
11898  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11899  ;;
11900esac
11901fi
11902SED=$ac_cv_path_SED
11903if test -n "$SED"; then
11904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11905$as_echo "$SED" >&6; }
11906else
11907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11908$as_echo "no" >&6; }
11909fi
11910
11911
11912# Extract the first word of "perl", so it can be a program name with args.
11913set dummy perl; ac_word=$2
11914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11915$as_echo_n "checking for $ac_word... " >&6; }
11916if ${ac_cv_path_PERL+:} false; then :
11917  $as_echo_n "(cached) " >&6
11918else
11919  case $PERL in
11920  [\\/]* | ?:[\\/]*)
11921  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11922  ;;
11923  *)
11924  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11925for as_dir in $PATH
11926do
11927  IFS=$as_save_IFS
11928  test -z "$as_dir" && as_dir=.
11929    for ac_exec_ext in '' $ac_executable_extensions; do
11930  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11931    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11932    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11933    break 2
11934  fi
11935done
11936  done
11937IFS=$as_save_IFS
11938
11939  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11940  ;;
11941esac
11942fi
11943PERL=$ac_cv_path_PERL
11944if test -n "$PERL"; then
11945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11946$as_echo "$PERL" >&6; }
11947else
11948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11949$as_echo "no" >&6; }
11950fi
11951
11952
11953# Extract the first word of "ldconfig", so it can be a program name with args.
11954set dummy ldconfig; ac_word=$2
11955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11956$as_echo_n "checking for $ac_word... " >&6; }
11957if ${ac_cv_path_LDCONFIG+:} false; then :
11958  $as_echo_n "(cached) " >&6
11959else
11960  case $LDCONFIG in
11961  [\\/]* | ?:[\\/]*)
11962  ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11963  ;;
11964  *)
11965  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11966for as_dir in $PATH
11967do
11968  IFS=$as_save_IFS
11969  test -z "$as_dir" && as_dir=.
11970    for ac_exec_ext in '' $ac_executable_extensions; do
11971  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11972    ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11973    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11974    break 2
11975  fi
11976done
11977  done
11978IFS=$as_save_IFS
11979
11980  test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11981  ;;
11982esac
11983fi
11984LDCONFIG=$ac_cv_path_LDCONFIG
11985if test -n "$LDCONFIG"; then
11986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
11987$as_echo "$LDCONFIG" >&6; }
11988else
11989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11990$as_echo "no" >&6; }
11991fi
11992
11993
11994if test -n "$ac_tool_prefix"; then
11995  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11996set dummy ${ac_tool_prefix}ar; ac_word=$2
11997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11998$as_echo_n "checking for $ac_word... " >&6; }
11999if ${ac_cv_prog_AR+:} false; then :
12000  $as_echo_n "(cached) " >&6
12001else
12002  if test -n "$AR"; then
12003  ac_cv_prog_AR="$AR" # Let the user override the test.
12004else
12005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12006for as_dir in $PATH
12007do
12008  IFS=$as_save_IFS
12009  test -z "$as_dir" && as_dir=.
12010    for ac_exec_ext in '' $ac_executable_extensions; do
12011  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12012    ac_cv_prog_AR="${ac_tool_prefix}ar"
12013    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12014    break 2
12015  fi
12016done
12017  done
12018IFS=$as_save_IFS
12019
12020fi
12021fi
12022AR=$ac_cv_prog_AR
12023if test -n "$AR"; then
12024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12025$as_echo "$AR" >&6; }
12026else
12027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12028$as_echo "no" >&6; }
12029fi
12030
12031
12032fi
12033if test -z "$ac_cv_prog_AR"; then
12034  ac_ct_AR=$AR
12035  # Extract the first word of "ar", so it can be a program name with args.
12036set dummy ar; ac_word=$2
12037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12038$as_echo_n "checking for $ac_word... " >&6; }
12039if ${ac_cv_prog_ac_ct_AR+:} false; then :
12040  $as_echo_n "(cached) " >&6
12041else
12042  if test -n "$ac_ct_AR"; then
12043  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12044else
12045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12046for as_dir in $PATH
12047do
12048  IFS=$as_save_IFS
12049  test -z "$as_dir" && as_dir=.
12050    for ac_exec_ext in '' $ac_executable_extensions; do
12051  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12052    ac_cv_prog_ac_ct_AR="ar"
12053    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12054    break 2
12055  fi
12056done
12057  done
12058IFS=$as_save_IFS
12059
12060fi
12061fi
12062ac_ct_AR=$ac_cv_prog_ac_ct_AR
12063if test -n "$ac_ct_AR"; then
12064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12065$as_echo "$ac_ct_AR" >&6; }
12066else
12067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12068$as_echo "no" >&6; }
12069fi
12070
12071  if test "x$ac_ct_AR" = x; then
12072    AR="ar"
12073  else
12074    case $cross_compiling:$ac_tool_warned in
12075yes:)
12076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12078ac_tool_warned=yes ;;
12079esac
12080    AR=$ac_ct_AR
12081  fi
12082else
12083  AR="$ac_cv_prog_AR"
12084fi
12085
12086if test -n "$ac_tool_prefix"; then
12087  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12088set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12090$as_echo_n "checking for $ac_word... " >&6; }
12091if ${ac_cv_prog_RANLIB+:} false; then :
12092  $as_echo_n "(cached) " >&6
12093else
12094  if test -n "$RANLIB"; then
12095  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12096else
12097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098for as_dir in $PATH
12099do
12100  IFS=$as_save_IFS
12101  test -z "$as_dir" && as_dir=.
12102    for ac_exec_ext in '' $ac_executable_extensions; do
12103  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12104    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12105    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12106    break 2
12107  fi
12108done
12109  done
12110IFS=$as_save_IFS
12111
12112fi
12113fi
12114RANLIB=$ac_cv_prog_RANLIB
12115if test -n "$RANLIB"; then
12116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12117$as_echo "$RANLIB" >&6; }
12118else
12119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12120$as_echo "no" >&6; }
12121fi
12122
12123
12124fi
12125if test -z "$ac_cv_prog_RANLIB"; then
12126  ac_ct_RANLIB=$RANLIB
12127  # Extract the first word of "ranlib", so it can be a program name with args.
12128set dummy ranlib; ac_word=$2
12129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12130$as_echo_n "checking for $ac_word... " >&6; }
12131if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12132  $as_echo_n "(cached) " >&6
12133else
12134  if test -n "$ac_ct_RANLIB"; then
12135  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12136else
12137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12138for as_dir in $PATH
12139do
12140  IFS=$as_save_IFS
12141  test -z "$as_dir" && as_dir=.
12142    for ac_exec_ext in '' $ac_executable_extensions; do
12143  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12144    ac_cv_prog_ac_ct_RANLIB="ranlib"
12145    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12146    break 2
12147  fi
12148done
12149  done
12150IFS=$as_save_IFS
12151
12152fi
12153fi
12154ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12155if test -n "$ac_ct_RANLIB"; then
12156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12157$as_echo "$ac_ct_RANLIB" >&6; }
12158else
12159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12160$as_echo "no" >&6; }
12161fi
12162
12163  if test "x$ac_ct_RANLIB" = x; then
12164    RANLIB=":"
12165  else
12166    case $cross_compiling:$ac_tool_warned in
12167yes:)
12168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12170ac_tool_warned=yes ;;
12171esac
12172    RANLIB=$ac_ct_RANLIB
12173  fi
12174else
12175  RANLIB="$ac_cv_prog_RANLIB"
12176fi
12177
12178if test -n "$ac_tool_prefix"; then
12179  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12180set dummy ${ac_tool_prefix}strip; ac_word=$2
12181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12182$as_echo_n "checking for $ac_word... " >&6; }
12183if ${ac_cv_prog_STRIP+:} false; then :
12184  $as_echo_n "(cached) " >&6
12185else
12186  if test -n "$STRIP"; then
12187  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12188else
12189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12190for as_dir in $PATH
12191do
12192  IFS=$as_save_IFS
12193  test -z "$as_dir" && as_dir=.
12194    for ac_exec_ext in '' $ac_executable_extensions; do
12195  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12196    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12197    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12198    break 2
12199  fi
12200done
12201  done
12202IFS=$as_save_IFS
12203
12204fi
12205fi
12206STRIP=$ac_cv_prog_STRIP
12207if test -n "$STRIP"; then
12208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12209$as_echo "$STRIP" >&6; }
12210else
12211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12212$as_echo "no" >&6; }
12213fi
12214
12215
12216fi
12217if test -z "$ac_cv_prog_STRIP"; then
12218  ac_ct_STRIP=$STRIP
12219  # Extract the first word of "strip", so it can be a program name with args.
12220set dummy strip; ac_word=$2
12221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12222$as_echo_n "checking for $ac_word... " >&6; }
12223if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12224  $as_echo_n "(cached) " >&6
12225else
12226  if test -n "$ac_ct_STRIP"; then
12227  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12228else
12229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12230for as_dir in $PATH
12231do
12232  IFS=$as_save_IFS
12233  test -z "$as_dir" && as_dir=.
12234    for ac_exec_ext in '' $ac_executable_extensions; do
12235  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12236    ac_cv_prog_ac_ct_STRIP="strip"
12237    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12238    break 2
12239  fi
12240done
12241  done
12242IFS=$as_save_IFS
12243
12244fi
12245fi
12246ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12247if test -n "$ac_ct_STRIP"; then
12248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12249$as_echo "$ac_ct_STRIP" >&6; }
12250else
12251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12252$as_echo "no" >&6; }
12253fi
12254
12255  if test "x$ac_ct_STRIP" = x; then
12256    STRIP=":"
12257  else
12258    case $cross_compiling:$ac_tool_warned in
12259yes:)
12260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12262ac_tool_warned=yes ;;
12263esac
12264    STRIP=$ac_ct_STRIP
12265  fi
12266else
12267  STRIP="$ac_cv_prog_STRIP"
12268fi
12269
12270# Extract the first word of "makeinfo", so it can be a program name with args.
12271set dummy makeinfo; ac_word=$2
12272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12273$as_echo_n "checking for $ac_word... " >&6; }
12274if ${ac_cv_prog_MAKEINFO+:} false; then :
12275  $as_echo_n "(cached) " >&6
12276else
12277  if test -n "$MAKEINFO"; then
12278  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12279else
12280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12281for as_dir in $PATH
12282do
12283  IFS=$as_save_IFS
12284  test -z "$as_dir" && as_dir=.
12285    for ac_exec_ext in '' $ac_executable_extensions; do
12286  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12287    ac_cv_prog_MAKEINFO="makeinfo"
12288    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12289    break 2
12290  fi
12291done
12292  done
12293IFS=$as_save_IFS
12294
12295fi
12296fi
12297MAKEINFO=$ac_cv_prog_MAKEINFO
12298if test -n "$MAKEINFO"; then
12299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12300$as_echo "$MAKEINFO" >&6; }
12301else
12302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12303$as_echo "no" >&6; }
12304fi
12305
12306
12307if test "_$MAKEINFO" = "_"; then
12308    MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12309else
12310    case "$MAKEINFO" in
12311      */missing.*)
12312        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12313*** Makeinfo is missing. Info documentation will not be built." >&5
12314$as_echo "$as_me: WARNING:
12315*** Makeinfo is missing. Info documentation will not be built." >&2;}
12316        ;;
12317      *)
12318        ;;
12319    esac
12320fi
12321
12322
12323# See if we need a separate native compiler.
12324if test $cross_compiling = no; then
12325  BUILD_CC="$CC"
12326
12327else
12328  for ac_prog in gcc cc
12329do
12330  # Extract the first word of "$ac_prog", so it can be a program name with args.
12331set dummy $ac_prog; ac_word=$2
12332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12333$as_echo_n "checking for $ac_word... " >&6; }
12334if ${ac_cv_prog_BUILD_CC+:} false; then :
12335  $as_echo_n "(cached) " >&6
12336else
12337  if test -n "$BUILD_CC"; then
12338  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12339else
12340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12341for as_dir in $PATH
12342do
12343  IFS=$as_save_IFS
12344  test -z "$as_dir" && as_dir=.
12345    for ac_exec_ext in '' $ac_executable_extensions; do
12346  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12347    ac_cv_prog_BUILD_CC="$ac_prog"
12348    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12349    break 2
12350  fi
12351done
12352  done
12353IFS=$as_save_IFS
12354
12355fi
12356fi
12357BUILD_CC=$ac_cv_prog_BUILD_CC
12358if test -n "$BUILD_CC"; then
12359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12360$as_echo "$BUILD_CC" >&6; }
12361else
12362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12363$as_echo "no" >&6; }
12364fi
12365
12366
12367  test -n "$BUILD_CC" && break
12368done
12369
12370fi
12371for ac_header in  	dirent.h 	errno.h 	execinfo.h 	getopt.h 	malloc.h 	mntent.h 	paths.h 	semaphore.h 	setjmp.h 	signal.h 	stdarg.h 	stdint.h 	stdlib.h 	termios.h 	termio.h 	unistd.h 	utime.h 	attr/xattr.h 	linux/falloc.h 	linux/fd.h 	linux/major.h 	linux/loop.h 	net/if_dl.h 	netinet/in.h 	sys/acl.h 	sys/disklabel.h 	sys/disk.h 	sys/file.h 	sys/ioctl.h 	sys/key.h 	sys/mkdev.h 	sys/mman.h 	sys/mount.h 	sys/prctl.h 	sys/resource.h 	sys/select.h 	sys/socket.h 	sys/sockio.h 	sys/stat.h 	sys/syscall.h 	sys/sysctl.h 	sys/sysmacros.h 	sys/time.h 	sys/types.h 	sys/un.h 	sys/wait.h
12372do :
12373  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12374ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12375if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12376  cat >>confdefs.h <<_ACEOF
12377#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12378_ACEOF
12379
12380fi
12381
12382done
12383
12384for ac_header in net/if.h
12385do :
12386  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12387#if HAVE_SYS_TYPES_H
12388#include <sys/types.h>
12389#endif
12390#if HAVE_SYS_SOCKET
12391#include <sys/socket.h>
12392#endif
12393
12394"
12395if test "x$ac_cv_header_net_if_h" = xyes; then :
12396  cat >>confdefs.h <<_ACEOF
12397#define HAVE_NET_IF_H 1
12398_ACEOF
12399
12400fi
12401
12402done
12403
12404for ac_func in vprintf
12405do :
12406  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12407if test "x$ac_cv_func_vprintf" = xyes; then :
12408  cat >>confdefs.h <<_ACEOF
12409#define HAVE_VPRINTF 1
12410_ACEOF
12411
12412ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12413if test "x$ac_cv_func__doprnt" = xyes; then :
12414
12415$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12416
12417fi
12418
12419fi
12420done
12421
12422
12423ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12424"
12425if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
12426
12427$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12428
12429fi
12430
12431ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12432if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12433
12434cat >>confdefs.h <<_ACEOF
12435#define HAVE_STRUCT_STAT_ST_ATIM 1
12436_ACEOF
12437
12438
12439fi
12440
12441ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12442"
12443if test "x$ac_cv_type_ssize_t" = xyes; then :
12444
12445$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12446
12447fi
12448
12449ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12450"
12451if test "x$ac_cv_have_decl_llseek" = xyes; then :
12452
12453$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12454
12455fi
12456
12457ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12458		 #define _LARGEFILE64_SOURCE
12459		 #include <unistd.h>
12460"
12461if test "x$ac_cv_have_decl_lseek64" = xyes; then :
12462
12463$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12464
12465fi
12466
12467# The cast to long int works around a bug in the HP C Compiler
12468# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12469# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12470# This bug is HP SR number 8606223364.
12471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12472$as_echo_n "checking size of short... " >&6; }
12473if ${ac_cv_sizeof_short+:} false; then :
12474  $as_echo_n "(cached) " >&6
12475else
12476  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
12477
12478else
12479  if test "$ac_cv_type_short" = yes; then
12480     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12481$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12482as_fn_error 77 "cannot compute sizeof (short)
12483See \`config.log' for more details" "$LINENO" 5; }
12484   else
12485     ac_cv_sizeof_short=0
12486   fi
12487fi
12488
12489fi
12490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12491$as_echo "$ac_cv_sizeof_short" >&6; }
12492
12493
12494
12495cat >>confdefs.h <<_ACEOF
12496#define SIZEOF_SHORT $ac_cv_sizeof_short
12497_ACEOF
12498
12499
12500# The cast to long int works around a bug in the HP C Compiler
12501# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12502# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12503# This bug is HP SR number 8606223364.
12504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12505$as_echo_n "checking size of int... " >&6; }
12506if ${ac_cv_sizeof_int+:} false; then :
12507  $as_echo_n "(cached) " >&6
12508else
12509  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12510
12511else
12512  if test "$ac_cv_type_int" = yes; then
12513     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12515as_fn_error 77 "cannot compute sizeof (int)
12516See \`config.log' for more details" "$LINENO" 5; }
12517   else
12518     ac_cv_sizeof_int=0
12519   fi
12520fi
12521
12522fi
12523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12524$as_echo "$ac_cv_sizeof_int" >&6; }
12525
12526
12527
12528cat >>confdefs.h <<_ACEOF
12529#define SIZEOF_INT $ac_cv_sizeof_int
12530_ACEOF
12531
12532
12533# The cast to long int works around a bug in the HP C Compiler
12534# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12535# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12536# This bug is HP SR number 8606223364.
12537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12538$as_echo_n "checking size of long... " >&6; }
12539if ${ac_cv_sizeof_long+:} false; then :
12540  $as_echo_n "(cached) " >&6
12541else
12542  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12543
12544else
12545  if test "$ac_cv_type_long" = yes; then
12546     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12547$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12548as_fn_error 77 "cannot compute sizeof (long)
12549See \`config.log' for more details" "$LINENO" 5; }
12550   else
12551     ac_cv_sizeof_long=0
12552   fi
12553fi
12554
12555fi
12556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12557$as_echo "$ac_cv_sizeof_long" >&6; }
12558
12559
12560
12561cat >>confdefs.h <<_ACEOF
12562#define SIZEOF_LONG $ac_cv_sizeof_long
12563_ACEOF
12564
12565
12566# The cast to long int works around a bug in the HP C Compiler
12567# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12568# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12569# This bug is HP SR number 8606223364.
12570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12571$as_echo_n "checking size of long long... " >&6; }
12572if ${ac_cv_sizeof_long_long+:} false; then :
12573  $as_echo_n "(cached) " >&6
12574else
12575  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
12576
12577else
12578  if test "$ac_cv_type_long_long" = yes; then
12579     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12581as_fn_error 77 "cannot compute sizeof (long long)
12582See \`config.log' for more details" "$LINENO" 5; }
12583   else
12584     ac_cv_sizeof_long_long=0
12585   fi
12586fi
12587
12588fi
12589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12590$as_echo "$ac_cv_sizeof_long_long" >&6; }
12591
12592
12593
12594cat >>confdefs.h <<_ACEOF
12595#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12596_ACEOF
12597
12598
12599# The cast to long int works around a bug in the HP C Compiler
12600# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12601# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12602# This bug is HP SR number 8606223364.
12603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12604$as_echo_n "checking size of off_t... " >&6; }
12605if ${ac_cv_sizeof_off_t+:} false; then :
12606  $as_echo_n "(cached) " >&6
12607else
12608  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
12609
12610else
12611  if test "$ac_cv_type_off_t" = yes; then
12612     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12613$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12614as_fn_error 77 "cannot compute sizeof (off_t)
12615See \`config.log' for more details" "$LINENO" 5; }
12616   else
12617     ac_cv_sizeof_off_t=0
12618   fi
12619fi
12620
12621fi
12622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12623$as_echo "$ac_cv_sizeof_off_t" >&6; }
12624
12625
12626
12627cat >>confdefs.h <<_ACEOF
12628#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12629_ACEOF
12630
12631
12632# The cast to long int works around a bug in the HP C Compiler
12633# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12634# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12635# This bug is HP SR number 8606223364.
12636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12637$as_echo_n "checking size of time_t... " >&6; }
12638if ${ac_cv_sizeof_time_t+:} false; then :
12639  $as_echo_n "(cached) " >&6
12640else
12641  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
12642
12643else
12644  if test "$ac_cv_type_time_t" = yes; then
12645     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12646$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12647as_fn_error 77 "cannot compute sizeof (time_t)
12648See \`config.log' for more details" "$LINENO" 5; }
12649   else
12650     ac_cv_sizeof_time_t=0
12651   fi
12652fi
12653
12654fi
12655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12656$as_echo "$ac_cv_sizeof_time_t" >&6; }
12657
12658
12659
12660cat >>confdefs.h <<_ACEOF
12661#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12662_ACEOF
12663
12664
12665SIZEOF_SHORT=$ac_cv_sizeof_short
12666SIZEOF_INT=$ac_cv_sizeof_int
12667SIZEOF_LONG=$ac_cv_sizeof_long
12668SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12669SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12670SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12671
12672
12673
12674
12675
12676
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12678$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12679if ${ac_cv_c_bigendian+:} false; then :
12680  $as_echo_n "(cached) " >&6
12681else
12682  ac_cv_c_bigendian=unknown
12683    # See if we're dealing with a universal compiler.
12684    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12685/* end confdefs.h.  */
12686#ifndef __APPLE_CC__
12687	       not a universal capable compiler
12688	     #endif
12689	     typedef int dummy;
12690
12691_ACEOF
12692if ac_fn_c_try_compile "$LINENO"; then :
12693
12694	# Check for potential -arch flags.  It is not universal unless
12695	# there are at least two -arch flags with different values.
12696	ac_arch=
12697	ac_prev=
12698	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12699	 if test -n "$ac_prev"; then
12700	   case $ac_word in
12701	     i?86 | x86_64 | ppc | ppc64)
12702	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12703		 ac_arch=$ac_word
12704	       else
12705		 ac_cv_c_bigendian=universal
12706		 break
12707	       fi
12708	       ;;
12709	   esac
12710	   ac_prev=
12711	 elif test "x$ac_word" = "x-arch"; then
12712	   ac_prev=arch
12713	 fi
12714       done
12715fi
12716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12717    if test $ac_cv_c_bigendian = unknown; then
12718      # See if sys/param.h defines the BYTE_ORDER macro.
12719      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12720/* end confdefs.h.  */
12721#include <sys/types.h>
12722	     #include <sys/param.h>
12723
12724int
12725main ()
12726{
12727#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12728		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12729		     && LITTLE_ENDIAN)
12730	      bogus endian macros
12731	     #endif
12732
12733  ;
12734  return 0;
12735}
12736_ACEOF
12737if ac_fn_c_try_compile "$LINENO"; then :
12738  # It does; now see whether it defined to BIG_ENDIAN or not.
12739	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12740/* end confdefs.h.  */
12741#include <sys/types.h>
12742		#include <sys/param.h>
12743
12744int
12745main ()
12746{
12747#if BYTE_ORDER != BIG_ENDIAN
12748		 not big endian
12749		#endif
12750
12751  ;
12752  return 0;
12753}
12754_ACEOF
12755if ac_fn_c_try_compile "$LINENO"; then :
12756  ac_cv_c_bigendian=yes
12757else
12758  ac_cv_c_bigendian=no
12759fi
12760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12761fi
12762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12763    fi
12764    if test $ac_cv_c_bigendian = unknown; then
12765      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12766      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12767/* end confdefs.h.  */
12768#include <limits.h>
12769
12770int
12771main ()
12772{
12773#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12774	      bogus endian macros
12775	     #endif
12776
12777  ;
12778  return 0;
12779}
12780_ACEOF
12781if ac_fn_c_try_compile "$LINENO"; then :
12782  # It does; now see whether it defined to _BIG_ENDIAN or not.
12783	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12784/* end confdefs.h.  */
12785#include <limits.h>
12786
12787int
12788main ()
12789{
12790#ifndef _BIG_ENDIAN
12791		 not big endian
12792		#endif
12793
12794  ;
12795  return 0;
12796}
12797_ACEOF
12798if ac_fn_c_try_compile "$LINENO"; then :
12799  ac_cv_c_bigendian=yes
12800else
12801  ac_cv_c_bigendian=no
12802fi
12803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12804fi
12805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12806    fi
12807    if test $ac_cv_c_bigendian = unknown; then
12808      # Compile a test program.
12809      if test "$cross_compiling" = yes; then :
12810  # Try to guess by grepping values from an object file.
12811	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12812/* end confdefs.h.  */
12813short int ascii_mm[] =
12814		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12815		short int ascii_ii[] =
12816		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12817		int use_ascii (int i) {
12818		  return ascii_mm[i] + ascii_ii[i];
12819		}
12820		short int ebcdic_ii[] =
12821		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12822		short int ebcdic_mm[] =
12823		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12824		int use_ebcdic (int i) {
12825		  return ebcdic_mm[i] + ebcdic_ii[i];
12826		}
12827		extern int foo;
12828
12829int
12830main ()
12831{
12832return use_ascii (foo) == use_ebcdic (foo);
12833  ;
12834  return 0;
12835}
12836_ACEOF
12837if ac_fn_c_try_compile "$LINENO"; then :
12838  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12839	      ac_cv_c_bigendian=yes
12840	    fi
12841	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12842	      if test "$ac_cv_c_bigendian" = unknown; then
12843		ac_cv_c_bigendian=no
12844	      else
12845		# finding both strings is unlikely to happen, but who knows?
12846		ac_cv_c_bigendian=unknown
12847	      fi
12848	    fi
12849fi
12850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12851else
12852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12853/* end confdefs.h.  */
12854$ac_includes_default
12855int
12856main ()
12857{
12858
12859	     /* Are we little or big endian?  From Harbison&Steele.  */
12860	     union
12861	     {
12862	       long int l;
12863	       char c[sizeof (long int)];
12864	     } u;
12865	     u.l = 1;
12866	     return u.c[sizeof (long int) - 1] == 1;
12867
12868  ;
12869  return 0;
12870}
12871_ACEOF
12872if ac_fn_c_try_run "$LINENO"; then :
12873  ac_cv_c_bigendian=no
12874else
12875  ac_cv_c_bigendian=yes
12876fi
12877rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12878  conftest.$ac_objext conftest.beam conftest.$ac_ext
12879fi
12880
12881    fi
12882fi
12883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12884$as_echo "$ac_cv_c_bigendian" >&6; }
12885 case $ac_cv_c_bigendian in #(
12886   yes)
12887     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12888;; #(
12889   no)
12890      ;; #(
12891   universal)
12892
12893$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12894
12895     ;; #(
12896   *)
12897     as_fn_error $? "unknown endianness
12898 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12899 esac
12900
12901if test $cross_compiling = no; then
12902  BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12903else
12904  CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12905fi
12906ASM_TYPES_HEADER=./asm_types.h
12907
12908echo "/* These defines are needed for the public ext2fs.h header file */" \
12909     > public_config.h
12910if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12911  uniq tmp_config.$$ >> public_config.h
12912else
12913  echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12914fi
12915if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12916  uniq tmp_config.$$ >> public_config.h
12917else
12918  echo "#undef WORDS_BIGENDIAN" >> public_config.h
12919fi
12920rm -f tmp_config.$$
12921PUBLIC_CONFIG_HEADER=./public_config.h
12922
12923for ac_header in inttypes.h
12924do :
12925  ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12926if test "x$ac_cv_header_inttypes_h" = xyes; then :
12927  cat >>confdefs.h <<_ACEOF
12928#define HAVE_INTTYPES_H 1
12929_ACEOF
12930
12931fi
12932
12933done
12934
12935ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
12936if test "x$ac_cv_type_intptr_t" = xyes; then :
12937
12938cat >>confdefs.h <<_ACEOF
12939#define HAVE_INTPTR_T 1
12940_ACEOF
12941
12942
12943fi
12944
12945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
12946$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
12947if ${e2fsprogs_cv_struct_st_flags+:} false; then :
12948  $as_echo_n "(cached) " >&6
12949else
12950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12951/* end confdefs.h.  */
12952#include <sys/stat.h>
12953int
12954main ()
12955{
12956struct stat stat; stat.st_flags = 0;
12957  ;
12958  return 0;
12959}
12960_ACEOF
12961if ac_fn_c_try_compile "$LINENO"; then :
12962  e2fsprogs_cv_struct_st_flags=yes
12963else
12964  e2fsprogs_cv_struct_st_flags=no
12965fi
12966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12967fi
12968
12969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
12970$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
12971if test "$e2fsprogs_cv_struct_st_flags" = yes; then
12972  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
12973$as_echo_n "checking whether st_flags field is useful... " >&6; }
12974  if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
12975  $as_echo_n "(cached) " >&6
12976else
12977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12978/* end confdefs.h.  */
12979#include <sys/stat.h>
12980int
12981main ()
12982{
12983struct stat stat; stat.st_flags |= UF_IMMUTABLE;
12984  ;
12985  return 0;
12986}
12987_ACEOF
12988if ac_fn_c_try_compile "$LINENO"; then :
12989  e2fsprogs_cv_struct_st_flags_immut=yes
12990else
12991  e2fsprogs_cv_struct_st_flags_immut=no
12992fi
12993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12994fi
12995
12996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
12997$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
12998  if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
12999
13000$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13001
13002  fi
13003fi
13004ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13005	 #include <sys/socket.h>
13006"
13007if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13008
13009cat >>confdefs.h <<_ACEOF
13010#define HAVE_SA_LEN 1
13011_ACEOF
13012
13013fi
13014
13015if test -n "$BLKID_CMT"; then
13016  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
13017$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
13018if ${ac_cv_search_blkid_probe_all+:} false; then :
13019  $as_echo_n "(cached) " >&6
13020else
13021  ac_func_search_save_LIBS=$LIBS
13022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13023/* end confdefs.h.  */
13024
13025/* Override any GCC internal prototype to avoid an error.
13026   Use char because int might match the return type of a GCC
13027   builtin and then its argument prototype would still apply.  */
13028#ifdef __cplusplus
13029extern "C"
13030#endif
13031char blkid_probe_all ();
13032int
13033main ()
13034{
13035return blkid_probe_all ();
13036  ;
13037  return 0;
13038}
13039_ACEOF
13040for ac_lib in '' blkid; do
13041  if test -z "$ac_lib"; then
13042    ac_res="none required"
13043  else
13044    ac_res=-l$ac_lib
13045    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13046  fi
13047  if ac_fn_c_try_link "$LINENO"; then :
13048  ac_cv_search_blkid_probe_all=$ac_res
13049fi
13050rm -f core conftest.err conftest.$ac_objext \
13051    conftest$ac_exeext
13052  if ${ac_cv_search_blkid_probe_all+:} false; then :
13053  break
13054fi
13055done
13056if ${ac_cv_search_blkid_probe_all+:} false; then :
13057
13058else
13059  ac_cv_search_blkid_probe_all=no
13060fi
13061rm conftest.$ac_ext
13062LIBS=$ac_func_search_save_LIBS
13063fi
13064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
13065$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13066ac_res=$ac_cv_search_blkid_probe_all
13067if test "$ac_res" != no; then :
13068  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13069
13070fi
13071
13072fi
13073if test -n "$DLOPEN_LIB" ; then
13074   ac_cv_func_dlopen=yes
13075fi
13076for ac_func in  	__secure_getenv 	add_key 	backtrace 	blkid_probe_get_topology 	blkid_probe_enable_partitions 	chflags 	dlopen 	fadvise64 	fallocate 	fallocate64 	fchown 	fdatasync 	fstat64 	ftruncate64 	futimes 	getcwd 	getdtablesize 	getmntinfo 	getpwuid_r 	getrlimit 	getrusage 	jrand48 	keyctl 	llistxattr 	llseek 	lseek64 	mallinfo 	mbstowcs 	memalign 	mempcpy 	mmap 	msync 	nanosleep 	open64 	pathconf 	posix_fadvise 	posix_fadvise64 	posix_memalign 	prctl 	pread 	pwrite 	pread64 	pwrite64 	secure_getenv 	setmntent 	setresgid 	setresuid 	snprintf 	srandom 	stpcpy 	strcasecmp 	strdup 	strnlen 	strptime 	strtoull 	sync_file_range 	sysconf 	usleep 	utime 	utimes 	valloc
13077do :
13078  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13079ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13080if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13081  cat >>confdefs.h <<_ACEOF
13082#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13083_ACEOF
13084
13085fi
13086done
13087
13088SOCKET_LIB=''
13089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13090$as_echo_n "checking for socket in -lsocket... " >&6; }
13091if ${ac_cv_lib_socket_socket+:} false; then :
13092  $as_echo_n "(cached) " >&6
13093else
13094  ac_check_lib_save_LIBS=$LIBS
13095LIBS="-lsocket  $LIBS"
13096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13097/* end confdefs.h.  */
13098
13099/* Override any GCC internal prototype to avoid an error.
13100   Use char because int might match the return type of a GCC
13101   builtin and then its argument prototype would still apply.  */
13102#ifdef __cplusplus
13103extern "C"
13104#endif
13105char socket ();
13106int
13107main ()
13108{
13109return socket ();
13110  ;
13111  return 0;
13112}
13113_ACEOF
13114if ac_fn_c_try_link "$LINENO"; then :
13115  ac_cv_lib_socket_socket=yes
13116else
13117  ac_cv_lib_socket_socket=no
13118fi
13119rm -f core conftest.err conftest.$ac_objext \
13120    conftest$ac_exeext conftest.$ac_ext
13121LIBS=$ac_check_lib_save_LIBS
13122fi
13123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13124$as_echo "$ac_cv_lib_socket_socket" >&6; }
13125if test "x$ac_cv_lib_socket_socket" = xyes; then :
13126  SOCKET_LIB=-lsocket
13127fi
13128
13129
13130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13131$as_echo_n "checking for magic_file in -lmagic... " >&6; }
13132if ${ac_cv_lib_magic_magic_file+:} false; then :
13133  $as_echo_n "(cached) " >&6
13134else
13135  ac_check_lib_save_LIBS=$LIBS
13136LIBS="-lmagic  $LIBS"
13137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13138/* end confdefs.h.  */
13139
13140/* Override any GCC internal prototype to avoid an error.
13141   Use char because int might match the return type of a GCC
13142   builtin and then its argument prototype would still apply.  */
13143#ifdef __cplusplus
13144extern "C"
13145#endif
13146char magic_file ();
13147int
13148main ()
13149{
13150return magic_file ();
13151  ;
13152  return 0;
13153}
13154_ACEOF
13155if ac_fn_c_try_link "$LINENO"; then :
13156  ac_cv_lib_magic_magic_file=yes
13157else
13158  ac_cv_lib_magic_magic_file=no
13159fi
13160rm -f core conftest.err conftest.$ac_objext \
13161    conftest$ac_exeext conftest.$ac_ext
13162LIBS=$ac_check_lib_save_LIBS
13163fi
13164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13165$as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13166if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13167  MAGIC_LIB=-lmagic
13168for ac_header in magic.h
13169do :
13170  ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13171if test "x$ac_cv_header_magic_h" = xyes; then :
13172  cat >>confdefs.h <<_ACEOF
13173#define HAVE_MAGIC_H 1
13174_ACEOF
13175
13176fi
13177
13178done
13179
13180fi
13181
13182if test "$ac_cv_func_dlopen" = yes ; then
13183   MAGIC_LIB=$DLOPEN_LIB
13184fi
13185
13186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13187$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13188if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13189  $as_echo_n "(cached) " >&6
13190else
13191  ac_check_lib_save_LIBS=$LIBS
13192LIBS="-lrt  $LIBS"
13193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13194/* end confdefs.h.  */
13195
13196/* Override any GCC internal prototype to avoid an error.
13197   Use char because int might match the return type of a GCC
13198   builtin and then its argument prototype would still apply.  */
13199#ifdef __cplusplus
13200extern "C"
13201#endif
13202char clock_gettime ();
13203int
13204main ()
13205{
13206return clock_gettime ();
13207  ;
13208  return 0;
13209}
13210_ACEOF
13211if ac_fn_c_try_link "$LINENO"; then :
13212  ac_cv_lib_rt_clock_gettime=yes
13213else
13214  ac_cv_lib_rt_clock_gettime=no
13215fi
13216rm -f core conftest.err conftest.$ac_objext \
13217    conftest$ac_exeext conftest.$ac_ext
13218LIBS=$ac_check_lib_save_LIBS
13219fi
13220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13221$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13222if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13223  CLOCK_GETTIME_LIB=-lrt
13224fi
13225
13226
13227FUSE_CMT=
13228FUSE_LIB=
13229# Check whether --enable-fuse2fs was given.
13230if test "${enable_fuse2fs+set}" = set; then :
13231  enableval=$enable_fuse2fs; if test "$enableval" = "no"
13232then
13233	FUSE_CMT="#"
13234	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13235$as_echo "Disabling fuse2fs" >&6; }
13236else
13237	for ac_header in pthread.h fuse.h
13238do :
13239  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13240ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS	64
13241#define FUSE_USE_VERSION 29
13242"
13243if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13244  cat >>confdefs.h <<_ACEOF
13245#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13246_ACEOF
13247
13248else
13249  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13250$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13251as_fn_error $? "Cannot find fuse2fs headers.
13252See \`config.log' for more details" "$LINENO" 5; }
13253fi
13254
13255done
13256
13257
13258	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13259/* end confdefs.h.  */
13260#define FUSE_USE_VERSION 29
13261#ifdef __linux__
13262#include <linux/fs.h>
13263#include <linux/falloc.h>
13264#include <linux/xattr.h>
13265#endif
13266
13267int
13268main ()
13269{
13270
13271  ;
13272  return 0;
13273}
13274_ACEOF
13275if ac_fn_c_try_cpp "$LINENO"; then :
13276
13277else
13278  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13279$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13280as_fn_error $? "Cannot find fuse2fs Linux headers.
13281See \`config.log' for more details" "$LINENO" 5; }
13282fi
13283rm -f conftest.err conftest.i conftest.$ac_ext
13284
13285	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13286$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13287if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13288  $as_echo_n "(cached) " >&6
13289else
13290  ac_check_lib_save_LIBS=$LIBS
13291LIBS="-losxfuse  $LIBS"
13292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13293/* end confdefs.h.  */
13294
13295/* Override any GCC internal prototype to avoid an error.
13296   Use char because int might match the return type of a GCC
13297   builtin and then its argument prototype would still apply.  */
13298#ifdef __cplusplus
13299extern "C"
13300#endif
13301char fuse_main ();
13302int
13303main ()
13304{
13305return fuse_main ();
13306  ;
13307  return 0;
13308}
13309_ACEOF
13310if ac_fn_c_try_link "$LINENO"; then :
13311  ac_cv_lib_osxfuse_fuse_main=yes
13312else
13313  ac_cv_lib_osxfuse_fuse_main=no
13314fi
13315rm -f core conftest.err conftest.$ac_objext \
13316    conftest$ac_exeext conftest.$ac_ext
13317LIBS=$ac_check_lib_save_LIBS
13318fi
13319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13320$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13321if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13322  FUSE_LIB=-losxfuse
13323else
13324  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13325$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13326if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13327  $as_echo_n "(cached) " >&6
13328else
13329  ac_check_lib_save_LIBS=$LIBS
13330LIBS="-lfuse  $LIBS"
13331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13332/* end confdefs.h.  */
13333
13334/* Override any GCC internal prototype to avoid an error.
13335   Use char because int might match the return type of a GCC
13336   builtin and then its argument prototype would still apply.  */
13337#ifdef __cplusplus
13338extern "C"
13339#endif
13340char fuse_main ();
13341int
13342main ()
13343{
13344return fuse_main ();
13345  ;
13346  return 0;
13347}
13348_ACEOF
13349if ac_fn_c_try_link "$LINENO"; then :
13350  ac_cv_lib_fuse_fuse_main=yes
13351else
13352  ac_cv_lib_fuse_fuse_main=no
13353fi
13354rm -f core conftest.err conftest.$ac_objext \
13355    conftest$ac_exeext conftest.$ac_ext
13356LIBS=$ac_check_lib_save_LIBS
13357fi
13358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13359$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13360if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13361  FUSE_LIB=-lfuse
13362else
13363  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13365as_fn_error $? "Cannot find fuse library.
13366See \`config.log' for more details" "$LINENO" 5; }
13367fi
13368
13369fi
13370
13371	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13372$as_echo "Enabling fuse2fs" >&6; }
13373fi
13374
13375else
13376  for ac_header in pthread.h fuse.h
13377do :
13378  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13379ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS	64
13380#define FUSE_USE_VERSION 29
13381#ifdef __linux__
13382# include <linux/fs.h>
13383# include <linux/falloc.h>
13384# include <linux/xattr.h>
13385#endif
13386"
13387if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13388  cat >>confdefs.h <<_ACEOF
13389#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13390_ACEOF
13391
13392else
13393  FUSE_CMT="#"
13394fi
13395
13396done
13397
13398if test -z "$FUSE_CMT"
13399then
13400	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13401$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13402if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13403  $as_echo_n "(cached) " >&6
13404else
13405  ac_check_lib_save_LIBS=$LIBS
13406LIBS="-losxfuse  $LIBS"
13407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13408/* end confdefs.h.  */
13409
13410/* Override any GCC internal prototype to avoid an error.
13411   Use char because int might match the return type of a GCC
13412   builtin and then its argument prototype would still apply.  */
13413#ifdef __cplusplus
13414extern "C"
13415#endif
13416char fuse_main ();
13417int
13418main ()
13419{
13420return fuse_main ();
13421  ;
13422  return 0;
13423}
13424_ACEOF
13425if ac_fn_c_try_link "$LINENO"; then :
13426  ac_cv_lib_osxfuse_fuse_main=yes
13427else
13428  ac_cv_lib_osxfuse_fuse_main=no
13429fi
13430rm -f core conftest.err conftest.$ac_objext \
13431    conftest$ac_exeext conftest.$ac_ext
13432LIBS=$ac_check_lib_save_LIBS
13433fi
13434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13435$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13436if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13437  FUSE_LIB=-losxfuse
13438else
13439  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13440$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13441if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13442  $as_echo_n "(cached) " >&6
13443else
13444  ac_check_lib_save_LIBS=$LIBS
13445LIBS="-lfuse  $LIBS"
13446cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447/* end confdefs.h.  */
13448
13449/* Override any GCC internal prototype to avoid an error.
13450   Use char because int might match the return type of a GCC
13451   builtin and then its argument prototype would still apply.  */
13452#ifdef __cplusplus
13453extern "C"
13454#endif
13455char fuse_main ();
13456int
13457main ()
13458{
13459return fuse_main ();
13460  ;
13461  return 0;
13462}
13463_ACEOF
13464if ac_fn_c_try_link "$LINENO"; then :
13465  ac_cv_lib_fuse_fuse_main=yes
13466else
13467  ac_cv_lib_fuse_fuse_main=no
13468fi
13469rm -f core conftest.err conftest.$ac_objext \
13470    conftest$ac_exeext conftest.$ac_ext
13471LIBS=$ac_check_lib_save_LIBS
13472fi
13473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13474$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13475if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13476  FUSE_LIB=-lfuse
13477else
13478  FUSE_CMT="#"
13479fi
13480
13481fi
13482
13483fi
13484if test -z "$FUSE_CMT"
13485then
13486	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13487$as_echo "Enabling fuse2fs by default." >&6; }
13488fi
13489
13490fi
13491
13492
13493
13494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13495$as_echo_n "checking for optreset... " >&6; }
13496if ${ac_cv_have_optreset+:} false; then :
13497  $as_echo_n "(cached) " >&6
13498else
13499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13500/* end confdefs.h.  */
13501#include <unistd.h>
13502
13503_ACEOF
13504if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13505  $EGREP "optreset" >/dev/null 2>&1; then :
13506  ac_cv_have_optreset=yes
13507else
13508  ac_cv_have_optreset=no
13509fi
13510rm -f conftest*
13511
13512fi
13513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13514$as_echo "$ac_cv_have_optreset" >&6; }
13515if test $ac_cv_have_optreset = yes; then
13516
13517$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
13518
13519fi
13520
13521SEM_INIT_LIB=''
13522ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13523if test "x$ac_cv_func_sem_init" = xyes; then :
13524
13525else
13526  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13527$as_echo_n "checking for sem_init in -lpthread... " >&6; }
13528if ${ac_cv_lib_pthread_sem_init+:} false; then :
13529  $as_echo_n "(cached) " >&6
13530else
13531  ac_check_lib_save_LIBS=$LIBS
13532LIBS="-lpthread  $LIBS"
13533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13534/* end confdefs.h.  */
13535
13536/* Override any GCC internal prototype to avoid an error.
13537   Use char because int might match the return type of a GCC
13538   builtin and then its argument prototype would still apply.  */
13539#ifdef __cplusplus
13540extern "C"
13541#endif
13542char sem_init ();
13543int
13544main ()
13545{
13546return sem_init ();
13547  ;
13548  return 0;
13549}
13550_ACEOF
13551if ac_fn_c_try_link "$LINENO"; then :
13552  ac_cv_lib_pthread_sem_init=yes
13553else
13554  ac_cv_lib_pthread_sem_init=no
13555fi
13556rm -f core conftest.err conftest.$ac_objext \
13557    conftest$ac_exeext conftest.$ac_ext
13558LIBS=$ac_check_lib_save_LIBS
13559fi
13560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13561$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
13562if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
13563  $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13564
13565  	SEM_INIT_LIB=-lpthread
13566else
13567  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13568$as_echo_n "checking for sem_init in -lrt... " >&6; }
13569if ${ac_cv_lib_rt_sem_init+:} false; then :
13570  $as_echo_n "(cached) " >&6
13571else
13572  ac_check_lib_save_LIBS=$LIBS
13573LIBS="-lrt  $LIBS"
13574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13575/* end confdefs.h.  */
13576
13577/* Override any GCC internal prototype to avoid an error.
13578   Use char because int might match the return type of a GCC
13579   builtin and then its argument prototype would still apply.  */
13580#ifdef __cplusplus
13581extern "C"
13582#endif
13583char sem_init ();
13584int
13585main ()
13586{
13587return sem_init ();
13588  ;
13589  return 0;
13590}
13591_ACEOF
13592if ac_fn_c_try_link "$LINENO"; then :
13593  ac_cv_lib_rt_sem_init=yes
13594else
13595  ac_cv_lib_rt_sem_init=no
13596fi
13597rm -f core conftest.err conftest.$ac_objext \
13598    conftest$ac_exeext conftest.$ac_ext
13599LIBS=$ac_check_lib_save_LIBS
13600fi
13601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13602$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
13603if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
13604  $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13605
13606  	SEM_INIT_LIB=-lrt
13607else
13608  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13609$as_echo_n "checking for sem_init in -lposix4... " >&6; }
13610if ${ac_cv_lib_posix4_sem_init+:} false; then :
13611  $as_echo_n "(cached) " >&6
13612else
13613  ac_check_lib_save_LIBS=$LIBS
13614LIBS="-lposix4  $LIBS"
13615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13616/* end confdefs.h.  */
13617
13618/* Override any GCC internal prototype to avoid an error.
13619   Use char because int might match the return type of a GCC
13620   builtin and then its argument prototype would still apply.  */
13621#ifdef __cplusplus
13622extern "C"
13623#endif
13624char sem_init ();
13625int
13626main ()
13627{
13628return sem_init ();
13629  ;
13630  return 0;
13631}
13632_ACEOF
13633if ac_fn_c_try_link "$LINENO"; then :
13634  ac_cv_lib_posix4_sem_init=yes
13635else
13636  ac_cv_lib_posix4_sem_init=no
13637fi
13638rm -f core conftest.err conftest.$ac_objext \
13639    conftest$ac_exeext conftest.$ac_ext
13640LIBS=$ac_check_lib_save_LIBS
13641fi
13642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13643$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
13644if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
13645  $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13646
13647  	SEM_INIT_LIB=-lposix4
13648fi
13649
13650fi
13651
13652fi
13653
13654fi
13655
13656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13657$as_echo_n "checking for unified diff option... " >&6; }
13658if diff -u $0 $0 > /dev/null 2>&1 ; then
13659   UNI_DIFF_OPTS=-u
13660else
13661   UNI_DIFF_OPTS=-c
13662fi
13663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13664$as_echo "$UNI_DIFF_OPTS" >&6; }
13665
13666case "$host_os" in
13667linux*)
13668
13669$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
13670
13671	;;
13672esac
13673LINUX_CMT="#"
13674CYGWIN_CMT="#"
13675UNIX_CMT=
13676case "$host_os" in
13677linux*)
13678	LINUX_CMT=
13679	;;
13680cygwin)
13681	CYGWIN_CMT=
13682	UNIX_CMT="#"
13683	;;
13684esac
13685
13686
13687
13688case "$host_os" in
13689linux* | gnu* | k*bsd*-gnu)
13690	if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13691		root_prefix="";
13692		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
13693$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
13694	fi
13695	;;
13696esac
13697case "$host_os" in
13698linux* | gnu* | k*bsd*-gnu)
13699	if test "$prefix" = NONE ; then
13700		prefix="/usr";
13701		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
13702$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
13703		if test "$mandir" = '${prefix}/man' ; then
13704			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
13705$as_echo "...and mandir defaults to /usr/share/man" >&6; }
13706			mandir=/usr/share/man
13707		fi
13708	fi
13709;;
13710esac
13711if test "$root_prefix" = NONE ; then
13712	if test "$prefix" = NONE ; then
13713		root_prefix="$ac_default_prefix"
13714	else
13715		root_prefix="$prefix"
13716	fi
13717	root_bindir=$bindir
13718	root_sbindir=$sbindir
13719	root_libdir=$libdir
13720	root_sysconfdir=$sysconfdir
13721else
13722	root_bindir='${root_prefix}/bin'
13723	root_sbindir='${root_prefix}/sbin'
13724	root_libdir='${root_prefix}/lib'
13725	root_sysconfdir='${root_prefix}/etc'
13726fi
13727if test "$bindir" != '${exec_prefix}/bin'; then
13728    root_bindir=$bindir
13729    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
13730$as_echo "Setting root_bindir to $root_bindir" >&6; }
13731fi
13732if test "$sbindir" != '${exec_prefix}/sbin'; then
13733    root_sbindir=$sbindir
13734    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
13735$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
13736fi
13737if test "$libdir" != '${exec_prefix}/lib'; then
13738    root_libdir=$libdir
13739    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
13740$as_echo "Setting root_libdir to $root_libdir" >&6; }
13741fi
13742if test "$sysconfdir" != '${prefix}/etc'; then
13743    root_sysconfdir=$sysconfdir
13744    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
13745$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
13746fi
13747
13748
13749
13750
13751
13752
13753# Check whether --with-multiarch was given.
13754if test "${with_multiarch+set}" = set; then :
13755  withval=$with_multiarch; if test "$withval" = "lib64"; then
13756    libdir=/usr/lib64
13757    root_libdir=/lib64
13758else
13759    libdir=$libdir/$withval
13760    root_libdir=$root_libdir/$withval
13761fi
13762
13763fi
13764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13765$as_echo_n "checking whether we can link with -static... " >&6; }
13766if ${ac_cv_e2fsprogs_use_static+:} false; then :
13767  $as_echo_n "(cached) " >&6
13768else
13769  SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
13770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13771/* end confdefs.h.  */
13772#include <stdio.h>
13773int
13774main ()
13775{
13776fflush(stdout);
13777  ;
13778  return 0;
13779}
13780_ACEOF
13781if ac_fn_c_try_link "$LINENO"; then :
13782  ac_cv_e2fsprogs_use_static=yes
13783else
13784  ac_cv_e2fsprogs_use_static=no
13785fi
13786rm -f core conftest.err conftest.$ac_objext \
13787    conftest$ac_exeext conftest.$ac_ext
13788LDFLAGS=$SAVE_LDFLAGS
13789fi
13790
13791case "$host_os" in
13792solaris2.*)
13793	ac_cv_e2fsprogs_use_static=no
13794;;
13795esac
13796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
13797$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
13798if test $ac_cv_e2fsprogs_use_static = yes; then
13799	LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
13800fi
13801
13802case "$host_os" in
13803darwin*)
13804	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
13805$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
13806
13807$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
13808
13809	;;
13810esac
13811if test "$cross_compiling" = yes ; then
13812  DO_TEST_SUITE=
13813else
13814  DO_TEST_SUITE=check
13815fi
13816
13817INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13818if test -n "$CPPFLAGS" ; then
13819	INCLUDES="$INCLUDES $CPPFLAGS"
13820fi
13821if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
13822	INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
13823fi
13824if test -n "$WITH_DIET_LIBC" ; then
13825	INCLUDES="$INCLUDES -D_REENTRANT"
13826fi
13827
13828
13829        MKINSTALLDIRS=
13830  if test -n "$ac_aux_dir"; then
13831    case "$ac_aux_dir" in
13832      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13833      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13834    esac
13835  fi
13836  if test -z "$MKINSTALLDIRS"; then
13837    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13838  fi
13839
13840
13841if test $cross_compiling = no; then
13842   BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
13843   BUILD_LDFLAGS="$LDFLAGS"
13844fi
13845
13846
13847CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
13848CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
13849LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
13850
13851
13852
13853test -d lib || mkdir lib
13854test -d include || mkdir include
13855test -d include/linux || mkdir include/linux
13856test -d include/asm || mkdir include/asm
13857if test -z "$UUID_CMT" ; then
13858	uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
13859		lib/uuid/uuid_types.h"
13860fi
13861if test -z "$BLKID_CMT" ; then
13862	blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
13863		lib/blkid/blkid_types.h"
13864fi
13865for i in MCONFIG Makefile e2fsprogs.spec \
13866	util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
13867	lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
13868	lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
13869	$uuid_out_list $blkid_out_list lib/support/Makefile \
13870	lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
13871	misc/Makefile ext2ed/Makefile e2fsck/Makefile \
13872	debugfs/Makefile tests/Makefile tests/progs/Makefile \
13873	resize/Makefile doc/Makefile intl/Makefile \
13874	intl/libgnuintl.h po/Makefile.in ; do
13875	if test -d `dirname ${srcdir}/$i` ; then
13876		outlist="$outlist $i"
13877	fi
13878done
13879ac_config_files="$ac_config_files $outlist"
13880
13881cat >confcache <<\_ACEOF
13882# This file is a shell script that caches the results of configure
13883# tests run on this system so they can be shared between configure
13884# scripts and configure runs, see configure's option --config-cache.
13885# It is not useful on other systems.  If it contains results you don't
13886# want to keep, you may remove or edit it.
13887#
13888# config.status only pays attention to the cache file if you give it
13889# the --recheck option to rerun configure.
13890#
13891# `ac_cv_env_foo' variables (set or unset) will be overridden when
13892# loading this file, other *unset* `ac_cv_foo' will be assigned the
13893# following values.
13894
13895_ACEOF
13896
13897# The following way of writing the cache mishandles newlines in values,
13898# but we know of no workaround that is simple, portable, and efficient.
13899# So, we kill variables containing newlines.
13900# Ultrix sh set writes to stderr and can't be redirected directly,
13901# and sets the high bit in the cache file unless we assign to the vars.
13902(
13903  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13904    eval ac_val=\$$ac_var
13905    case $ac_val in #(
13906    *${as_nl}*)
13907      case $ac_var in #(
13908      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13909$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13910      esac
13911      case $ac_var in #(
13912      _ | IFS | as_nl) ;; #(
13913      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13914      *) { eval $ac_var=; unset $ac_var;} ;;
13915      esac ;;
13916    esac
13917  done
13918
13919  (set) 2>&1 |
13920    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13921    *${as_nl}ac_space=\ *)
13922      # `set' does not quote correctly, so add quotes: double-quote
13923      # substitution turns \\\\ into \\, and sed turns \\ into \.
13924      sed -n \
13925	"s/'/'\\\\''/g;
13926	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13927      ;; #(
13928    *)
13929      # `set' quotes correctly as required by POSIX, so do not add quotes.
13930      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13931      ;;
13932    esac |
13933    sort
13934) |
13935  sed '
13936     /^ac_cv_env_/b end
13937     t clear
13938     :clear
13939     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13940     t end
13941     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13942     :end' >>confcache
13943if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13944  if test -w "$cache_file"; then
13945    if test "x$cache_file" != "x/dev/null"; then
13946      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13947$as_echo "$as_me: updating cache $cache_file" >&6;}
13948      if test ! -f "$cache_file" || test -h "$cache_file"; then
13949	cat confcache >"$cache_file"
13950      else
13951        case $cache_file in #(
13952        */* | ?:*)
13953	  mv -f confcache "$cache_file"$$ &&
13954	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13955        *)
13956	  mv -f confcache "$cache_file" ;;
13957	esac
13958      fi
13959    fi
13960  else
13961    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13962$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13963  fi
13964fi
13965rm -f confcache
13966
13967test "x$prefix" = xNONE && prefix=$ac_default_prefix
13968# Let make expand exec_prefix.
13969test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13970
13971DEFS=-DHAVE_CONFIG_H
13972
13973ac_libobjs=
13974ac_ltlibobjs=
13975U=
13976for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13977  # 1. Remove the extension, and $U if already installed.
13978  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13979  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13980  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13981  #    will be set to the directory where LIBOBJS objects are built.
13982  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13983  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13984done
13985LIBOBJS=$ac_libobjs
13986
13987LTLIBOBJS=$ac_ltlibobjs
13988
13989
13990
13991
13992: "${CONFIG_STATUS=./config.status}"
13993ac_write_fail=0
13994ac_clean_files_save=$ac_clean_files
13995ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13996{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13997$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13998as_write_fail=0
13999cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14000#! $SHELL
14001# Generated by $as_me.
14002# Run this file to recreate the current configuration.
14003# Compiler output produced by configure, useful for debugging
14004# configure, is in config.log if it exists.
14005
14006debug=false
14007ac_cs_recheck=false
14008ac_cs_silent=false
14009
14010SHELL=\${CONFIG_SHELL-$SHELL}
14011export SHELL
14012_ASEOF
14013cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14014## -------------------- ##
14015## M4sh Initialization. ##
14016## -------------------- ##
14017
14018# Be more Bourne compatible
14019DUALCASE=1; export DUALCASE # for MKS sh
14020if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14021  emulate sh
14022  NULLCMD=:
14023  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14024  # is contrary to our usage.  Disable this feature.
14025  alias -g '${1+"$@"}'='"$@"'
14026  setopt NO_GLOB_SUBST
14027else
14028  case `(set -o) 2>/dev/null` in #(
14029  *posix*) :
14030    set -o posix ;; #(
14031  *) :
14032     ;;
14033esac
14034fi
14035
14036
14037as_nl='
14038'
14039export as_nl
14040# Printing a long string crashes Solaris 7 /usr/bin/printf.
14041as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14042as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14043as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14044# Prefer a ksh shell builtin over an external printf program on Solaris,
14045# but without wasting forks for bash or zsh.
14046if test -z "$BASH_VERSION$ZSH_VERSION" \
14047    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14048  as_echo='print -r --'
14049  as_echo_n='print -rn --'
14050elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14051  as_echo='printf %s\n'
14052  as_echo_n='printf %s'
14053else
14054  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14055    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14056    as_echo_n='/usr/ucb/echo -n'
14057  else
14058    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14059    as_echo_n_body='eval
14060      arg=$1;
14061      case $arg in #(
14062      *"$as_nl"*)
14063	expr "X$arg" : "X\\(.*\\)$as_nl";
14064	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14065      esac;
14066      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14067    '
14068    export as_echo_n_body
14069    as_echo_n='sh -c $as_echo_n_body as_echo'
14070  fi
14071  export as_echo_body
14072  as_echo='sh -c $as_echo_body as_echo'
14073fi
14074
14075# The user is always right.
14076if test "${PATH_SEPARATOR+set}" != set; then
14077  PATH_SEPARATOR=:
14078  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14079    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14080      PATH_SEPARATOR=';'
14081  }
14082fi
14083
14084
14085# IFS
14086# We need space, tab and new line, in precisely that order.  Quoting is
14087# there to prevent editors from complaining about space-tab.
14088# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14089# splitting by setting IFS to empty value.)
14090IFS=" ""	$as_nl"
14091
14092# Find who we are.  Look in the path if we contain no directory separator.
14093as_myself=
14094case $0 in #((
14095  *[\\/]* ) as_myself=$0 ;;
14096  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14097for as_dir in $PATH
14098do
14099  IFS=$as_save_IFS
14100  test -z "$as_dir" && as_dir=.
14101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14102  done
14103IFS=$as_save_IFS
14104
14105     ;;
14106esac
14107# We did not find ourselves, most probably we were run as `sh COMMAND'
14108# in which case we are not to be found in the path.
14109if test "x$as_myself" = x; then
14110  as_myself=$0
14111fi
14112if test ! -f "$as_myself"; then
14113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14114  exit 1
14115fi
14116
14117# Unset variables that we do not need and which cause bugs (e.g. in
14118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14119# suppresses any "Segmentation fault" message there.  '((' could
14120# trigger a bug in pdksh 5.2.14.
14121for as_var in BASH_ENV ENV MAIL MAILPATH
14122do eval test x\${$as_var+set} = xset \
14123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14124done
14125PS1='$ '
14126PS2='> '
14127PS4='+ '
14128
14129# NLS nuisances.
14130LC_ALL=C
14131export LC_ALL
14132LANGUAGE=C
14133export LANGUAGE
14134
14135# CDPATH.
14136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14137
14138
14139# as_fn_error STATUS ERROR [LINENO LOG_FD]
14140# ----------------------------------------
14141# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14142# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14143# script with STATUS, using 1 if that was 0.
14144as_fn_error ()
14145{
14146  as_status=$1; test $as_status -eq 0 && as_status=1
14147  if test "$4"; then
14148    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14149    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14150  fi
14151  $as_echo "$as_me: error: $2" >&2
14152  as_fn_exit $as_status
14153} # as_fn_error
14154
14155
14156# as_fn_set_status STATUS
14157# -----------------------
14158# Set $? to STATUS, without forking.
14159as_fn_set_status ()
14160{
14161  return $1
14162} # as_fn_set_status
14163
14164# as_fn_exit STATUS
14165# -----------------
14166# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14167as_fn_exit ()
14168{
14169  set +e
14170  as_fn_set_status $1
14171  exit $1
14172} # as_fn_exit
14173
14174# as_fn_unset VAR
14175# ---------------
14176# Portably unset VAR.
14177as_fn_unset ()
14178{
14179  { eval $1=; unset $1;}
14180}
14181as_unset=as_fn_unset
14182# as_fn_append VAR VALUE
14183# ----------------------
14184# Append the text in VALUE to the end of the definition contained in VAR. Take
14185# advantage of any shell optimizations that allow amortized linear growth over
14186# repeated appends, instead of the typical quadratic growth present in naive
14187# implementations.
14188if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14189  eval 'as_fn_append ()
14190  {
14191    eval $1+=\$2
14192  }'
14193else
14194  as_fn_append ()
14195  {
14196    eval $1=\$$1\$2
14197  }
14198fi # as_fn_append
14199
14200# as_fn_arith ARG...
14201# ------------------
14202# Perform arithmetic evaluation on the ARGs, and store the result in the
14203# global $as_val. Take advantage of shells that can avoid forks. The arguments
14204# must be portable across $(()) and expr.
14205if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14206  eval 'as_fn_arith ()
14207  {
14208    as_val=$(( $* ))
14209  }'
14210else
14211  as_fn_arith ()
14212  {
14213    as_val=`expr "$@" || test $? -eq 1`
14214  }
14215fi # as_fn_arith
14216
14217
14218if expr a : '\(a\)' >/dev/null 2>&1 &&
14219   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14220  as_expr=expr
14221else
14222  as_expr=false
14223fi
14224
14225if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14226  as_basename=basename
14227else
14228  as_basename=false
14229fi
14230
14231if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14232  as_dirname=dirname
14233else
14234  as_dirname=false
14235fi
14236
14237as_me=`$as_basename -- "$0" ||
14238$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14239	 X"$0" : 'X\(//\)$' \| \
14240	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14241$as_echo X/"$0" |
14242    sed '/^.*\/\([^/][^/]*\)\/*$/{
14243	    s//\1/
14244	    q
14245	  }
14246	  /^X\/\(\/\/\)$/{
14247	    s//\1/
14248	    q
14249	  }
14250	  /^X\/\(\/\).*/{
14251	    s//\1/
14252	    q
14253	  }
14254	  s/.*/./; q'`
14255
14256# Avoid depending upon Character Ranges.
14257as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14258as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14259as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14260as_cr_digits='0123456789'
14261as_cr_alnum=$as_cr_Letters$as_cr_digits
14262
14263ECHO_C= ECHO_N= ECHO_T=
14264case `echo -n x` in #(((((
14265-n*)
14266  case `echo 'xy\c'` in
14267  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14268  xy)  ECHO_C='\c';;
14269  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14270       ECHO_T='	';;
14271  esac;;
14272*)
14273  ECHO_N='-n';;
14274esac
14275
14276rm -f conf$$ conf$$.exe conf$$.file
14277if test -d conf$$.dir; then
14278  rm -f conf$$.dir/conf$$.file
14279else
14280  rm -f conf$$.dir
14281  mkdir conf$$.dir 2>/dev/null
14282fi
14283if (echo >conf$$.file) 2>/dev/null; then
14284  if ln -s conf$$.file conf$$ 2>/dev/null; then
14285    as_ln_s='ln -s'
14286    # ... but there are two gotchas:
14287    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14288    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14289    # In both cases, we have to default to `cp -pR'.
14290    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14291      as_ln_s='cp -pR'
14292  elif ln conf$$.file conf$$ 2>/dev/null; then
14293    as_ln_s=ln
14294  else
14295    as_ln_s='cp -pR'
14296  fi
14297else
14298  as_ln_s='cp -pR'
14299fi
14300rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14301rmdir conf$$.dir 2>/dev/null
14302
14303
14304# as_fn_mkdir_p
14305# -------------
14306# Create "$as_dir" as a directory, including parents if necessary.
14307as_fn_mkdir_p ()
14308{
14309
14310  case $as_dir in #(
14311  -*) as_dir=./$as_dir;;
14312  esac
14313  test -d "$as_dir" || eval $as_mkdir_p || {
14314    as_dirs=
14315    while :; do
14316      case $as_dir in #(
14317      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14318      *) as_qdir=$as_dir;;
14319      esac
14320      as_dirs="'$as_qdir' $as_dirs"
14321      as_dir=`$as_dirname -- "$as_dir" ||
14322$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14323	 X"$as_dir" : 'X\(//\)[^/]' \| \
14324	 X"$as_dir" : 'X\(//\)$' \| \
14325	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14326$as_echo X"$as_dir" |
14327    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14328	    s//\1/
14329	    q
14330	  }
14331	  /^X\(\/\/\)[^/].*/{
14332	    s//\1/
14333	    q
14334	  }
14335	  /^X\(\/\/\)$/{
14336	    s//\1/
14337	    q
14338	  }
14339	  /^X\(\/\).*/{
14340	    s//\1/
14341	    q
14342	  }
14343	  s/.*/./; q'`
14344      test -d "$as_dir" && break
14345    done
14346    test -z "$as_dirs" || eval "mkdir $as_dirs"
14347  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14348
14349
14350} # as_fn_mkdir_p
14351if mkdir -p . 2>/dev/null; then
14352  as_mkdir_p='mkdir -p "$as_dir"'
14353else
14354  test -d ./-p && rmdir ./-p
14355  as_mkdir_p=false
14356fi
14357
14358
14359# as_fn_executable_p FILE
14360# -----------------------
14361# Test if FILE is an executable regular file.
14362as_fn_executable_p ()
14363{
14364  test -f "$1" && test -x "$1"
14365} # as_fn_executable_p
14366as_test_x='test -x'
14367as_executable_p=as_fn_executable_p
14368
14369# Sed expression to map a string onto a valid CPP name.
14370as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14371
14372# Sed expression to map a string onto a valid variable name.
14373as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14374
14375
14376exec 6>&1
14377## ----------------------------------- ##
14378## Main body of $CONFIG_STATUS script. ##
14379## ----------------------------------- ##
14380_ASEOF
14381test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14382
14383cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14384# Save the log message, to keep $0 and so on meaningful, and to
14385# report actual input values of CONFIG_FILES etc. instead of their
14386# values after options handling.
14387ac_log="
14388This file was extended by $as_me, which was
14389generated by GNU Autoconf 2.69.  Invocation command line was
14390
14391  CONFIG_FILES    = $CONFIG_FILES
14392  CONFIG_HEADERS  = $CONFIG_HEADERS
14393  CONFIG_LINKS    = $CONFIG_LINKS
14394  CONFIG_COMMANDS = $CONFIG_COMMANDS
14395  $ $0 $@
14396
14397on `(hostname || uname -n) 2>/dev/null | sed 1q`
14398"
14399
14400_ACEOF
14401
14402case $ac_config_files in *"
14403"*) set x $ac_config_files; shift; ac_config_files=$*;;
14404esac
14405
14406case $ac_config_headers in *"
14407"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14408esac
14409
14410
14411cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14412# Files that config.status was made for.
14413config_files="$ac_config_files"
14414config_headers="$ac_config_headers"
14415config_commands="$ac_config_commands"
14416
14417_ACEOF
14418
14419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14420ac_cs_usage="\
14421\`$as_me' instantiates files and other configuration actions
14422from templates according to the current configuration.  Unless the files
14423and actions are specified as TAGs, all are instantiated by default.
14424
14425Usage: $0 [OPTION]... [TAG]...
14426
14427  -h, --help       print this help, then exit
14428  -V, --version    print version number and configuration settings, then exit
14429      --config     print configuration, then exit
14430  -q, --quiet, --silent
14431                   do not print progress messages
14432  -d, --debug      don't remove temporary files
14433      --recheck    update $as_me by reconfiguring in the same conditions
14434      --file=FILE[:TEMPLATE]
14435                   instantiate the configuration file FILE
14436      --header=FILE[:TEMPLATE]
14437                   instantiate the configuration header FILE
14438
14439Configuration files:
14440$config_files
14441
14442Configuration headers:
14443$config_headers
14444
14445Configuration commands:
14446$config_commands
14447
14448Report bugs to the package provider."
14449
14450_ACEOF
14451cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14452ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14453ac_cs_version="\\
14454config.status
14455configured by $0, generated by GNU Autoconf 2.69,
14456  with options \\"\$ac_cs_config\\"
14457
14458Copyright (C) 2012 Free Software Foundation, Inc.
14459This config.status script is free software; the Free Software Foundation
14460gives unlimited permission to copy, distribute and modify it."
14461
14462ac_pwd='$ac_pwd'
14463srcdir='$srcdir'
14464INSTALL='$INSTALL'
14465MKDIR_P='$MKDIR_P'
14466AWK='$AWK'
14467test -n "\$AWK" || AWK=awk
14468_ACEOF
14469
14470cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14471# The default lists apply if the user does not specify any file.
14472ac_need_defaults=:
14473while test $# != 0
14474do
14475  case $1 in
14476  --*=?*)
14477    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14478    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14479    ac_shift=:
14480    ;;
14481  --*=)
14482    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14483    ac_optarg=
14484    ac_shift=:
14485    ;;
14486  *)
14487    ac_option=$1
14488    ac_optarg=$2
14489    ac_shift=shift
14490    ;;
14491  esac
14492
14493  case $ac_option in
14494  # Handling of the options.
14495  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14496    ac_cs_recheck=: ;;
14497  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14498    $as_echo "$ac_cs_version"; exit ;;
14499  --config | --confi | --conf | --con | --co | --c )
14500    $as_echo "$ac_cs_config"; exit ;;
14501  --debug | --debu | --deb | --de | --d | -d )
14502    debug=: ;;
14503  --file | --fil | --fi | --f )
14504    $ac_shift
14505    case $ac_optarg in
14506    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14507    '') as_fn_error $? "missing file argument" ;;
14508    esac
14509    as_fn_append CONFIG_FILES " '$ac_optarg'"
14510    ac_need_defaults=false;;
14511  --header | --heade | --head | --hea )
14512    $ac_shift
14513    case $ac_optarg in
14514    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14515    esac
14516    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14517    ac_need_defaults=false;;
14518  --he | --h)
14519    # Conflict between --help and --header
14520    as_fn_error $? "ambiguous option: \`$1'
14521Try \`$0 --help' for more information.";;
14522  --help | --hel | -h )
14523    $as_echo "$ac_cs_usage"; exit ;;
14524  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14525  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14526    ac_cs_silent=: ;;
14527
14528  # This is an error.
14529  -*) as_fn_error $? "unrecognized option: \`$1'
14530Try \`$0 --help' for more information." ;;
14531
14532  *) as_fn_append ac_config_targets " $1"
14533     ac_need_defaults=false ;;
14534
14535  esac
14536  shift
14537done
14538
14539ac_configure_extra_args=
14540
14541if $ac_cs_silent; then
14542  exec 6>/dev/null
14543  ac_configure_extra_args="$ac_configure_extra_args --silent"
14544fi
14545
14546_ACEOF
14547cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14548if \$ac_cs_recheck; then
14549  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14550  shift
14551  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14552  CONFIG_SHELL='$SHELL'
14553  export CONFIG_SHELL
14554  exec "\$@"
14555fi
14556
14557_ACEOF
14558cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14559exec 5>>config.log
14560{
14561  echo
14562  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14563## Running $as_me. ##
14564_ASBOX
14565  $as_echo "$ac_log"
14566} >&5
14567
14568_ACEOF
14569cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14570#
14571# INIT-COMMANDS
14572#
14573# Capture the value of obsolete ALL_LINGUAS because we need it to compute
14574    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14575    # from automake < 1.5.
14576    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14577    # Capture the value of LINGUAS because we need it to compute CATALOGS.
14578    LINGUAS="${LINGUAS-%UNSET%}"
14579
14580
14581_ACEOF
14582
14583cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14584
14585# Handling of arguments.
14586for ac_config_target in $ac_config_targets
14587do
14588  case $ac_config_target in
14589    "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
14590    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
14591    "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14592
14593  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14594  esac
14595done
14596
14597
14598# If the user did not use the arguments to specify the items to instantiate,
14599# then the envvar interface is used.  Set only those that are not.
14600# We use the long form for the default assignment because of an extremely
14601# bizarre bug on SunOS 4.1.3.
14602if $ac_need_defaults; then
14603  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14604  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14605  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14606fi
14607
14608# Have a temporary directory for convenience.  Make it in the build tree
14609# simply because there is no reason against having it here, and in addition,
14610# creating and moving files from /tmp can sometimes cause problems.
14611# Hook for its removal unless debugging.
14612# Note that there is a small window in which the directory will not be cleaned:
14613# after its creation but before its name has been assigned to `$tmp'.
14614$debug ||
14615{
14616  tmp= ac_tmp=
14617  trap 'exit_status=$?
14618  : "${ac_tmp:=$tmp}"
14619  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14620' 0
14621  trap 'as_fn_exit 1' 1 2 13 15
14622}
14623# Create a (secure) tmp directory for tmp files.
14624
14625{
14626  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14627  test -d "$tmp"
14628}  ||
14629{
14630  tmp=./conf$$-$RANDOM
14631  (umask 077 && mkdir "$tmp")
14632} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14633ac_tmp=$tmp
14634
14635# Set up the scripts for CONFIG_FILES section.
14636# No need to generate them if there are no CONFIG_FILES.
14637# This happens for instance with `./config.status config.h'.
14638if test -n "$CONFIG_FILES"; then
14639
14640if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14641  ac_cs_awk_getline=:
14642  ac_cs_awk_pipe_init=
14643  ac_cs_awk_read_file='
14644      while ((getline aline < (F[key])) > 0)
14645	print(aline)
14646      close(F[key])'
14647  ac_cs_awk_pipe_fini=
14648else
14649  ac_cs_awk_getline=false
14650  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14651  ac_cs_awk_read_file='
14652      print "|#_!!_#|"
14653      print "cat " F[key] " &&"
14654      '$ac_cs_awk_pipe_init
14655  # The final `:' finishes the AND list.
14656  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14657fi
14658ac_cr=`echo X | tr X '\015'`
14659# On cygwin, bash can eat \r inside `` if the user requested igncr.
14660# But we know of no other shell where ac_cr would be empty at this
14661# point, so we can use a bashism as a fallback.
14662if test "x$ac_cr" = x; then
14663  eval ac_cr=\$\'\\r\'
14664fi
14665ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14666if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14667  ac_cs_awk_cr='\\r'
14668else
14669  ac_cs_awk_cr=$ac_cr
14670fi
14671
14672echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14673_ACEOF
14674
14675# Create commands to substitute file output variables.
14676{
14677  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14678  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
14679  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14680  echo "_ACAWK" &&
14681  echo "_ACEOF"
14682} >conf$$files.sh &&
14683. ./conf$$files.sh ||
14684  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14685rm -f conf$$files.sh
14686
14687{
14688  echo "cat >conf$$subs.awk <<_ACEOF" &&
14689  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14690  echo "_ACEOF"
14691} >conf$$subs.sh ||
14692  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14693ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14694ac_delim='%!_!# '
14695for ac_last_try in false false false false false :; do
14696  . ./conf$$subs.sh ||
14697    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14698
14699  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14700  if test $ac_delim_n = $ac_delim_num; then
14701    break
14702  elif $ac_last_try; then
14703    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14704  else
14705    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14706  fi
14707done
14708rm -f conf$$subs.sh
14709
14710cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14711cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14712_ACEOF
14713sed -n '
14714h
14715s/^/S["/; s/!.*/"]=/
14716p
14717g
14718s/^[^!]*!//
14719:repl
14720t repl
14721s/'"$ac_delim"'$//
14722t delim
14723:nl
14724h
14725s/\(.\{148\}\)..*/\1/
14726t more1
14727s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14728p
14729n
14730b repl
14731:more1
14732s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14733p
14734g
14735s/.\{148\}//
14736t nl
14737:delim
14738h
14739s/\(.\{148\}\)..*/\1/
14740t more2
14741s/["\\]/\\&/g; s/^/"/; s/$/"/
14742p
14743b
14744:more2
14745s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14746p
14747g
14748s/.\{148\}//
14749t delim
14750' <conf$$subs.awk | sed '
14751/^[^""]/{
14752  N
14753  s/\n//
14754}
14755' >>$CONFIG_STATUS || ac_write_fail=1
14756rm -f conf$$subs.awk
14757cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14758_ACAWK
14759cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14760  for (key in S) S_is_set[key] = 1
14761  FS = ""
14762  \$ac_cs_awk_pipe_init
14763}
14764{
14765  line = $ 0
14766  nfields = split(line, field, "@")
14767  substed = 0
14768  len = length(field[1])
14769  for (i = 2; i < nfields; i++) {
14770    key = field[i]
14771    keylen = length(key)
14772    if (S_is_set[key]) {
14773      value = S[key]
14774      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14775      len += length(value) + length(field[++i])
14776      substed = 1
14777    } else
14778      len += 1 + keylen
14779  }
14780  if (nfields == 3 && !substed) {
14781    key = field[2]
14782    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
14783      \$ac_cs_awk_read_file
14784      next
14785    }
14786  }
14787  print line
14788}
14789\$ac_cs_awk_pipe_fini
14790_ACAWK
14791_ACEOF
14792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14793if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14794  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14795else
14796  cat
14797fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14798  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14799_ACEOF
14800
14801# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14802# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14803# trailing colons and then remove the whole line if VPATH becomes empty
14804# (actually we leave an empty line to preserve line numbers).
14805if test "x$srcdir" = x.; then
14806  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14807h
14808s///
14809s/^/:/
14810s/[	 ]*$/:/
14811s/:\$(srcdir):/:/g
14812s/:\${srcdir}:/:/g
14813s/:@srcdir@:/:/g
14814s/^:*//
14815s/:*$//
14816x
14817s/\(=[	 ]*\).*/\1/
14818G
14819s/\n//
14820s/^[^=]*=[	 ]*$//
14821}'
14822fi
14823
14824cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14825fi # test -n "$CONFIG_FILES"
14826
14827# Set up the scripts for CONFIG_HEADERS section.
14828# No need to generate them if there are no CONFIG_HEADERS.
14829# This happens for instance with `./config.status Makefile'.
14830if test -n "$CONFIG_HEADERS"; then
14831cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14832BEGIN {
14833_ACEOF
14834
14835# Transform confdefs.h into an awk script `defines.awk', embedded as
14836# here-document in config.status, that substitutes the proper values into
14837# config.h.in to produce config.h.
14838
14839# Create a delimiter string that does not exist in confdefs.h, to ease
14840# handling of long lines.
14841ac_delim='%!_!# '
14842for ac_last_try in false false :; do
14843  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14844  if test -z "$ac_tt"; then
14845    break
14846  elif $ac_last_try; then
14847    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14848  else
14849    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14850  fi
14851done
14852
14853# For the awk script, D is an array of macro values keyed by name,
14854# likewise P contains macro parameters if any.  Preserve backslash
14855# newline sequences.
14856
14857ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14858sed -n '
14859s/.\{148\}/&'"$ac_delim"'/g
14860t rset
14861:rset
14862s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14863t def
14864d
14865:def
14866s/\\$//
14867t bsnl
14868s/["\\]/\\&/g
14869s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14870D["\1"]=" \3"/p
14871s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14872d
14873:bsnl
14874s/["\\]/\\&/g
14875s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14876D["\1"]=" \3\\\\\\n"\\/p
14877t cont
14878s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14879t cont
14880d
14881:cont
14882n
14883s/.\{148\}/&'"$ac_delim"'/g
14884t clear
14885:clear
14886s/\\$//
14887t bsnlc
14888s/["\\]/\\&/g; s/^/"/; s/$/"/p
14889d
14890:bsnlc
14891s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14892b cont
14893' <confdefs.h | sed '
14894s/'"$ac_delim"'/"\\\
14895"/g' >>$CONFIG_STATUS || ac_write_fail=1
14896
14897cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14898  for (key in D) D_is_set[key] = 1
14899  FS = ""
14900}
14901/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14902  line = \$ 0
14903  split(line, arg, " ")
14904  if (arg[1] == "#") {
14905    defundef = arg[2]
14906    mac1 = arg[3]
14907  } else {
14908    defundef = substr(arg[1], 2)
14909    mac1 = arg[2]
14910  }
14911  split(mac1, mac2, "(") #)
14912  macro = mac2[1]
14913  prefix = substr(line, 1, index(line, defundef) - 1)
14914  if (D_is_set[macro]) {
14915    # Preserve the white space surrounding the "#".
14916    print prefix "define", macro P[macro] D[macro]
14917    next
14918  } else {
14919    # Replace #undef with comments.  This is necessary, for example,
14920    # in the case of _POSIX_SOURCE, which is predefined and required
14921    # on some systems where configure will not decide to define it.
14922    if (defundef == "undef") {
14923      print "/*", prefix defundef, macro, "*/"
14924      next
14925    }
14926  }
14927}
14928{ print }
14929_ACAWK
14930_ACEOF
14931cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14932  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14933fi # test -n "$CONFIG_HEADERS"
14934
14935
14936eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14937shift
14938for ac_tag
14939do
14940  case $ac_tag in
14941  :[FHLC]) ac_mode=$ac_tag; continue;;
14942  esac
14943  case $ac_mode$ac_tag in
14944  :[FHL]*:*);;
14945  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14946  :[FH]-) ac_tag=-:-;;
14947  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14948  esac
14949  ac_save_IFS=$IFS
14950  IFS=:
14951  set x $ac_tag
14952  IFS=$ac_save_IFS
14953  shift
14954  ac_file=$1
14955  shift
14956
14957  case $ac_mode in
14958  :L) ac_source=$1;;
14959  :[FH])
14960    ac_file_inputs=
14961    for ac_f
14962    do
14963      case $ac_f in
14964      -) ac_f="$ac_tmp/stdin";;
14965      *) # Look for the file first in the build tree, then in the source tree
14966	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14967	 # because $ac_f cannot contain `:'.
14968	 test -f "$ac_f" ||
14969	   case $ac_f in
14970	   [\\/$]*) false;;
14971	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14972	   esac ||
14973	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14974      esac
14975      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14976      as_fn_append ac_file_inputs " '$ac_f'"
14977    done
14978
14979    # Let's still pretend it is `configure' which instantiates (i.e., don't
14980    # use $as_me), people would be surprised to read:
14981    #    /* config.h.  Generated by config.status.  */
14982    configure_input='Generated from '`
14983	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14984	`' by configure.'
14985    if test x"$ac_file" != x-; then
14986      configure_input="$ac_file.  $configure_input"
14987      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14988$as_echo "$as_me: creating $ac_file" >&6;}
14989    fi
14990    # Neutralize special characters interpreted by sed in replacement strings.
14991    case $configure_input in #(
14992    *\&* | *\|* | *\\* )
14993       ac_sed_conf_input=`$as_echo "$configure_input" |
14994       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14995    *) ac_sed_conf_input=$configure_input;;
14996    esac
14997
14998    case $ac_tag in
14999    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15000      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15001    esac
15002    ;;
15003  esac
15004
15005  ac_dir=`$as_dirname -- "$ac_file" ||
15006$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15007	 X"$ac_file" : 'X\(//\)[^/]' \| \
15008	 X"$ac_file" : 'X\(//\)$' \| \
15009	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15010$as_echo X"$ac_file" |
15011    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15012	    s//\1/
15013	    q
15014	  }
15015	  /^X\(\/\/\)[^/].*/{
15016	    s//\1/
15017	    q
15018	  }
15019	  /^X\(\/\/\)$/{
15020	    s//\1/
15021	    q
15022	  }
15023	  /^X\(\/\).*/{
15024	    s//\1/
15025	    q
15026	  }
15027	  s/.*/./; q'`
15028  as_dir="$ac_dir"; as_fn_mkdir_p
15029  ac_builddir=.
15030
15031case "$ac_dir" in
15032.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15033*)
15034  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15035  # A ".." for each directory in $ac_dir_suffix.
15036  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15037  case $ac_top_builddir_sub in
15038  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15039  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15040  esac ;;
15041esac
15042ac_abs_top_builddir=$ac_pwd
15043ac_abs_builddir=$ac_pwd$ac_dir_suffix
15044# for backward compatibility:
15045ac_top_builddir=$ac_top_build_prefix
15046
15047case $srcdir in
15048  .)  # We are building in place.
15049    ac_srcdir=.
15050    ac_top_srcdir=$ac_top_builddir_sub
15051    ac_abs_top_srcdir=$ac_pwd ;;
15052  [\\/]* | ?:[\\/]* )  # Absolute name.
15053    ac_srcdir=$srcdir$ac_dir_suffix;
15054    ac_top_srcdir=$srcdir
15055    ac_abs_top_srcdir=$srcdir ;;
15056  *) # Relative name.
15057    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15058    ac_top_srcdir=$ac_top_build_prefix$srcdir
15059    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15060esac
15061ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15062
15063
15064  case $ac_mode in
15065  :F)
15066  #
15067  # CONFIG_FILE
15068  #
15069
15070  case $INSTALL in
15071  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15072  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15073  esac
15074  ac_MKDIR_P=$MKDIR_P
15075  case $MKDIR_P in
15076  [\\/$]* | ?:[\\/]* ) ;;
15077  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15078  esac
15079_ACEOF
15080
15081cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15082# If the template does not know about datarootdir, expand it.
15083# FIXME: This hack should be removed a few years after 2.60.
15084ac_datarootdir_hack=; ac_datarootdir_seen=
15085ac_sed_dataroot='
15086/datarootdir/ {
15087  p
15088  q
15089}
15090/@datadir@/p
15091/@docdir@/p
15092/@infodir@/p
15093/@localedir@/p
15094/@mandir@/p'
15095case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15096*datarootdir*) ac_datarootdir_seen=yes;;
15097*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15098  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15099$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15100_ACEOF
15101cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15102  ac_datarootdir_hack='
15103  s&@datadir@&$datadir&g
15104  s&@docdir@&$docdir&g
15105  s&@infodir@&$infodir&g
15106  s&@localedir@&$localedir&g
15107  s&@mandir@&$mandir&g
15108  s&\\\${datarootdir}&$datarootdir&g' ;;
15109esac
15110_ACEOF
15111
15112# Neutralize VPATH when `$srcdir' = `.'.
15113# Shell code in configure.ac might set extrasub.
15114# FIXME: do we really want to maintain this feature?
15115cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15116ac_sed_extra="$ac_vpsub
15117$extrasub
15118_ACEOF
15119cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15120:t
15121/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15122s|@configure_input@|$ac_sed_conf_input|;t t
15123s&@top_builddir@&$ac_top_builddir_sub&;t t
15124s&@top_build_prefix@&$ac_top_build_prefix&;t t
15125s&@srcdir@&$ac_srcdir&;t t
15126s&@abs_srcdir@&$ac_abs_srcdir&;t t
15127s&@top_srcdir@&$ac_top_srcdir&;t t
15128s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15129s&@builddir@&$ac_builddir&;t t
15130s&@abs_builddir@&$ac_abs_builddir&;t t
15131s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15132s&@INSTALL@&$ac_INSTALL&;t t
15133s&@MKDIR_P@&$ac_MKDIR_P&;t t
15134$ac_datarootdir_hack
15135"
15136eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15137if $ac_cs_awk_getline; then
15138  $AWK -f "$ac_tmp/subs.awk"
15139else
15140  $AWK -f "$ac_tmp/subs.awk" | $SHELL
15141fi \
15142  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15143
15144test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15145  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15146  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
15147      "$ac_tmp/out"`; test -z "$ac_out"; } &&
15148  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15149which seems to be undefined.  Please make sure it is defined" >&5
15150$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15151which seems to be undefined.  Please make sure it is defined" >&2;}
15152
15153  rm -f "$ac_tmp/stdin"
15154  case $ac_file in
15155  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15156  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15157  esac \
15158  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15159 ;;
15160  :H)
15161  #
15162  # CONFIG_HEADER
15163  #
15164  if test x"$ac_file" != x-; then
15165    {
15166      $as_echo "/* $configure_input  */" \
15167      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15168    } >"$ac_tmp/config.h" \
15169      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15170    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15171      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15172$as_echo "$as_me: $ac_file is unchanged" >&6;}
15173    else
15174      rm -f "$ac_file"
15175      mv "$ac_tmp/config.h" "$ac_file" \
15176	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
15177    fi
15178  else
15179    $as_echo "/* $configure_input  */" \
15180      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15181      || as_fn_error $? "could not create -" "$LINENO" 5
15182  fi
15183 ;;
15184
15185  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15186$as_echo "$as_me: executing $ac_file commands" >&6;}
15187 ;;
15188  esac
15189
15190
15191  case $ac_file$ac_mode in
15192    "po-directories":C)
15193    for ac_file in $CONFIG_FILES; do
15194      # Support "outfile[:infile[:infile...]]"
15195      case "$ac_file" in
15196        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15197      esac
15198      # PO directories have a Makefile.in generated from Makefile.in.in.
15199      case "$ac_file" in */Makefile.in)
15200        # Adjust a relative srcdir.
15201        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15202        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
15203        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15204        # In autoconf-2.13 it is called $ac_given_srcdir.
15205        # In autoconf-2.50 it is called $srcdir.
15206        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15207        case "$ac_given_srcdir" in
15208          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15209          /*) top_srcdir="$ac_given_srcdir" ;;
15210          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
15211        esac
15212        # Treat a directory as a PO directory if and only if it has a
15213        # POTFILES.in file. This allows packages to have multiple PO
15214        # directories under different names or in different locations.
15215        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15216          rm -f "$ac_dir/POTFILES"
15217          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15218          gt_tab=`printf '\t'`
15219          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15220          POMAKEFILEDEPS="POTFILES.in"
15221          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15222          # on $ac_dir but don't depend on user-specified configuration
15223          # parameters.
15224          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15225            # The LINGUAS file contains the set of available languages.
15226            if test -n "$OBSOLETE_ALL_LINGUAS"; then
15227              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15228            fi
15229            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15230            # Hide the ALL_LINGUAS assignment from automake < 1.5.
15231            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15232            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15233          else
15234            # The set of available languages was given in configure.in.
15235            # Hide the ALL_LINGUAS assignment from automake < 1.5.
15236            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15237          fi
15238          # Compute POFILES
15239          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15240          # Compute UPDATEPOFILES
15241          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15242          # Compute DUMMYPOFILES
15243          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15244          # Compute GMOFILES
15245          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15246          case "$ac_given_srcdir" in
15247            .) srcdirpre= ;;
15248            *) srcdirpre='$(srcdir)/' ;;
15249          esac
15250          POFILES=
15251          UPDATEPOFILES=
15252          DUMMYPOFILES=
15253          GMOFILES=
15254          for lang in $ALL_LINGUAS; do
15255            POFILES="$POFILES $srcdirpre$lang.po"
15256            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15257            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15258            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15259          done
15260          # CATALOGS depends on both $ac_dir and the user's LINGUAS
15261          # environment variable.
15262          INST_LINGUAS=
15263          if test -n "$ALL_LINGUAS"; then
15264            for presentlang in $ALL_LINGUAS; do
15265              useit=no
15266              if test "%UNSET%" != "$LINGUAS"; then
15267                desiredlanguages="$LINGUAS"
15268              else
15269                desiredlanguages="$ALL_LINGUAS"
15270              fi
15271              for desiredlang in $desiredlanguages; do
15272                # Use the presentlang catalog if desiredlang is
15273                #   a. equal to presentlang, or
15274                #   b. a variant of presentlang (because in this case,
15275                #      presentlang can be used as a fallback for messages
15276                #      which are not translated in the desiredlang catalog).
15277                case "$desiredlang" in
15278                  "$presentlang"*) useit=yes;;
15279                esac
15280              done
15281              if test $useit = yes; then
15282                INST_LINGUAS="$INST_LINGUAS $presentlang"
15283              fi
15284            done
15285          fi
15286          CATALOGS=
15287          if test -n "$INST_LINGUAS"; then
15288            for lang in $INST_LINGUAS; do
15289              CATALOGS="$CATALOGS $lang.gmo"
15290            done
15291          fi
15292          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15293          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
15294          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15295            if test -f "$f"; then
15296              case "$f" in
15297                *.orig | *.bak | *~) ;;
15298                *) cat "$f" >> "$ac_dir/Makefile" ;;
15299              esac
15300            fi
15301          done
15302        fi
15303        ;;
15304      esac
15305    done ;;
15306
15307  esac
15308done # for ac_tag
15309
15310
15311as_fn_exit 0
15312_ACEOF
15313ac_clean_files=$ac_clean_files_save
15314
15315test $ac_write_fail = 0 ||
15316  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15317
15318
15319# configure is writing to config.log, and then calls config.status.
15320# config.status does its own redirection, appending to config.log.
15321# Unfortunately, on DOS this fails, as config.log is still kept open
15322# by configure, so config.status won't be able to write to it; its
15323# output is simply discarded.  So we exec the FD to /dev/null,
15324# effectively closing config.log, so it can be properly (re)opened and
15325# appended to by config.status.  When coming back to configure, we
15326# need to make the FD available again.
15327if test "$no_create" != yes; then
15328  ac_cs_success=:
15329  ac_config_status_args=
15330  test "$silent" = yes &&
15331    ac_config_status_args="$ac_config_status_args --quiet"
15332  exec 5>/dev/null
15333  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15334  exec 5>>config.log
15335  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15336  # would make configure fail if this is the last instruction.
15337  $ac_cs_success || as_fn_exit 1
15338fi
15339if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15340  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15341$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15342fi
15343
15344if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
15345