1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for atheme 7.2.9.
4#
5# Report bugs to <https://github.com/atheme/atheme/issues/>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: https://github.com/atheme/atheme/issues/ about your
271$0: system, including any error possibly output before this
272$0: message. Then install a modern shell, or manually run
273$0: the script under such a shell if you do have one."
274  fi
275  exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293  { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302  return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310  set +e
311  as_fn_set_status $1
312  exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321  case $as_dir in #(
322  -*) as_dir=./$as_dir;;
323  esac
324  test -d "$as_dir" || eval $as_mkdir_p || {
325    as_dirs=
326    while :; do
327      case $as_dir in #(
328      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329      *) as_qdir=$as_dir;;
330      esac
331      as_dirs="'$as_qdir' $as_dirs"
332      as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334	 X"$as_dir" : 'X\(//\)[^/]' \| \
335	 X"$as_dir" : 'X\(//\)$' \| \
336	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339	    s//\1/
340	    q
341	  }
342	  /^X\(\/\/\)[^/].*/{
343	    s//\1/
344	    q
345	  }
346	  /^X\(\/\/\)$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\).*/{
351	    s//\1/
352	    q
353	  }
354	  s/.*/./; q'`
355      test -d "$as_dir" && break
356    done
357    test -z "$as_dirs" || eval "mkdir $as_dirs"
358  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368  test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377  eval 'as_fn_append ()
378  {
379    eval $1+=\$2
380  }'
381else
382  as_fn_append ()
383  {
384    eval $1=\$$1\$2
385  }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394  eval 'as_fn_arith ()
395  {
396    as_val=$(( $* ))
397  }'
398else
399  as_fn_arith ()
400  {
401    as_val=`expr "$@" || test $? -eq 1`
402  }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413  as_status=$1; test $as_status -eq 0 && as_status=1
414  if test "$4"; then
415    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417  fi
418  $as_echo "$as_me: error: $2" >&2
419  as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423   test "X`expr 00001 : '.*\(...\)'`" = X001; then
424  as_expr=expr
425else
426  as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430  as_basename=basename
431else
432  as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436  as_dirname=dirname
437else
438  as_dirname=false
439fi
440
441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443	 X"$0" : 'X\(//\)$' \| \
444	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446    sed '/^.*\/\([^/][^/]*\)\/*$/{
447	    s//\1/
448	    q
449	  }
450	  /^X\/\(\/\/\)$/{
451	    s//\1/
452	    q
453	  }
454	  /^X\/\(\/\).*/{
455	    s//\1/
456	    q
457	  }
458	  s/.*/./; q'`
459
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468  as_lineno_1=$LINENO as_lineno_1a=$LINENO
469  as_lineno_2=$LINENO as_lineno_2a=$LINENO
470  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473  sed -n '
474    p
475    /[$]LINENO/=
476  ' <$as_myself |
477    sed '
478      s/[$]LINENO.*/&-/
479      t lineno
480      b
481      :lineno
482      N
483      :loop
484      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485      t loop
486      s/-\n.*//
487    ' >$as_me.lineno &&
488  chmod +x "$as_me.lineno" ||
489    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492  # already done that, so ensure we don't try to do so again and fall
493  # in an infinite loop.  This has already happened in practice.
494  _as_can_reexec=no; export _as_can_reexec
495  # Don't try to exec as it changes $[0], causing all sort of problems
496  # (the dirname of $[0] is not the place where we might find the
497  # original and so on.  Autoconf is especially sensitive to this).
498  . "./$as_me.lineno"
499  # Exit status is that of the last command.
500  exit
501}
502
503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506  case `echo 'xy\c'` in
507  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
508  xy)  ECHO_C='\c';;
509  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510       ECHO_T='	';;
511  esac;;
512*)
513  ECHO_N='-n';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518  rm -f conf$$.dir/conf$$.file
519else
520  rm -f conf$$.dir
521  mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524  if ln -s conf$$.file conf$$ 2>/dev/null; then
525    as_ln_s='ln -s'
526    # ... but there are two gotchas:
527    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529    # In both cases, we have to default to `cp -pR'.
530    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531      as_ln_s='cp -pR'
532  elif ln conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s=ln
534  else
535    as_ln_s='cp -pR'
536  fi
537else
538  as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544  as_mkdir_p='mkdir -p "$as_dir"'
545else
546  test -d ./-p && rmdir ./-p
547  as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
562
563# Name of the host.
564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='atheme'
582PACKAGE_TARNAME='atheme'
583PACKAGE_VERSION='7.2.9'
584PACKAGE_STRING='atheme 7.2.9'
585PACKAGE_BUGREPORT='https://github.com/atheme/atheme/issues/'
586PACKAGE_URL=''
587
588ac_default_prefix=~/atheme
589# Factoring default headers for most tests.
590ac_includes_default="\
591#include <stdio.h>
592#ifdef HAVE_SYS_TYPES_H
593# include <sys/types.h>
594#endif
595#ifdef HAVE_SYS_STAT_H
596# include <sys/stat.h>
597#endif
598#ifdef STDC_HEADERS
599# include <stdlib.h>
600# include <stddef.h>
601#else
602# ifdef HAVE_STDLIB_H
603#  include <stdlib.h>
604# endif
605#endif
606#ifdef HAVE_STRING_H
607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608#  include <memory.h>
609# endif
610# include <string.h>
611#endif
612#ifdef HAVE_STRINGS_H
613# include <strings.h>
614#endif
615#ifdef HAVE_INTTYPES_H
616# include <inttypes.h>
617#endif
618#ifdef HAVE_STDINT_H
619# include <stdint.h>
620#endif
621#ifdef HAVE_UNISTD_H
622# include <unistd.h>
623#endif"
624
625ac_header_list=
626enable_option_checking=no
627ac_subst_vars='LTLIBOBJS
628PODIR
629BUILDROOT
630PCRE_LIBS
631PCRE_CFLAGS
632LIBMOWGLI
633subdirs
634MOWGLI_LIBS
635MOWGLI_CFLAGS
636LIBQRENCODE_LIBS
637LIBQRENCODE_CFLAGS
638SSL_LIBS
639CONTRIB_ENABLE
640LOCALEDIR
641BUILDDIR
642SRCDIR
643ABSPATHS
644RUNDIR
645LOGDIR
646DATADIR
647SHAREDIR
648MODDIR
649DOCDIR
650mkdir_p
651PERL_ENABLE
652PERL_LIBS
653PERL_CFLAGS
654perlpath
655LDAP_AUTHC
656LDAP_LIBS
657LDAP_CFLAGS
658CRACKLIB_LIBS
659CRACKLIB_C
660LIBOBJS
661POSUB
662LTLIBINTL
663LIBINTL
664INTLLIBS
665LTLIBICONV
666LIBICONV
667MSGMERGE
668XGETTEXT
669GMSGFMT
670MSGFMT
671USE_NLS
672MKINSTALLDIRS
673INSTALL_DATA
674INSTALL_SCRIPT
675INSTALL_PROGRAM
676VERSION
677PACKAGE
678PKG_CONFIG
679SET_MAKE
680EGREP
681GREP
682CPP
683OBJEXT
684EXEEXT
685ac_ct_CC
686CPPFLAGS
687LDFLAGS
688CFLAGS
689CC
690RANLIB
691AR
692TAR
693LN_S
694LN
695CP
696MV
697RM
698PROG_IMPLIB_LDFLAGS
699PROG_IMPLIB_NEEDED
700CLEAN_LIB
701UNINSTALL_LIB
702INSTALL_LIB
703PLUGIN_SUFFIX
704PLUGIN_LDFLAGS
705PLUGIN_CFLAGS
706LDFLAGS_RPATH
707LIB_SUFFIX
708LIB_PREFIX
709LIB_LDFLAGS
710LIB_CFLAGS
711host_os
712host_vendor
713host_cpu
714host
715build_os
716build_vendor
717build_cpu
718build
719TERM_SETAF6
720TERM_SETAF4
721TERM_SETAF3
722TERM_SETAF2
723TERM_SETAF1
724TERM_BOLD
725TERM_SGR0
726TERM_EL
727TPUT
728target_alias
729host_alias
730build_alias
731LIBS
732ECHO_T
733ECHO_N
734ECHO_C
735DEFS
736mandir
737localedir
738libdir
739psdir
740pdfdir
741dvidir
742htmldir
743infodir
744docdir
745oldincludedir
746includedir
747localstatedir
748sharedstatedir
749sysconfdir
750datadir
751datarootdir
752libexecdir
753sbindir
754bindir
755program_transform_name
756prefix
757exec_prefix
758PACKAGE_URL
759PACKAGE_BUGREPORT
760PACKAGE_STRING
761PACKAGE_VERSION
762PACKAGE_TARNAME
763PACKAGE_NAME
764PATH_SEPARATOR
765SHELL'
766ac_subst_files=''
767ac_user_opts='
768enable_option_checking
769enable_nls
770with_gnu_ld
771with_libiconv_prefix
772with_libintl_prefix
773with_cracklib
774with_ldap
775with_perl
776enable_fhs_paths
777enable_reproducible_builds
778enable_large_net
779enable_contrib
780enable_ssl
781enable_warnings
782enable_propolice
783enable_profile
784enable_rpath
785with_libmowgli
786with_pcre
787'
788      ac_precious_vars='build_alias
789host_alias
790target_alias
791CC
792CFLAGS
793LDFLAGS
794LIBS
795CPPFLAGS
796CPP
797PKG_CONFIG
798LIBQRENCODE_CFLAGS
799LIBQRENCODE_LIBS
800MOWGLI_CFLAGS
801MOWGLI_LIBS
802PCRE_CFLAGS
803PCRE_LIBS'
804ac_subdirs_all='libmowgli-2'
805
806# Initialize some variables set by options.
807ac_init_help=
808ac_init_version=false
809ac_unrecognized_opts=
810ac_unrecognized_sep=
811# The variables have the same names as the options, with
812# dashes changed to underlines.
813cache_file=/dev/null
814exec_prefix=NONE
815no_create=
816no_recursion=
817prefix=NONE
818program_prefix=NONE
819program_suffix=NONE
820program_transform_name=s,x,x,
821silent=
822site=
823srcdir=
824verbose=
825x_includes=NONE
826x_libraries=NONE
827
828# Installation directory options.
829# These are left unexpanded so users can "make install exec_prefix=/foo"
830# and all the variables that are supposed to be based on exec_prefix
831# by default will actually change.
832# Use braces instead of parens because sh, perl, etc. also accept them.
833# (The list follows the same order as the GNU Coding Standards.)
834bindir='${exec_prefix}/bin'
835sbindir='${exec_prefix}/sbin'
836libexecdir='${exec_prefix}/libexec'
837datarootdir='${prefix}/share'
838datadir='${datarootdir}'
839sysconfdir='${prefix}/etc'
840sharedstatedir='${prefix}/com'
841localstatedir='${prefix}/var'
842includedir='${prefix}/include'
843oldincludedir='/usr/include'
844docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
845infodir='${datarootdir}/info'
846htmldir='${docdir}'
847dvidir='${docdir}'
848pdfdir='${docdir}'
849psdir='${docdir}'
850libdir='${exec_prefix}/lib'
851localedir='${datarootdir}/locale'
852mandir='${datarootdir}/man'
853
854ac_prev=
855ac_dashdash=
856for ac_option
857do
858  # If the previous option needs an argument, assign it.
859  if test -n "$ac_prev"; then
860    eval $ac_prev=\$ac_option
861    ac_prev=
862    continue
863  fi
864
865  case $ac_option in
866  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
867  *=)   ac_optarg= ;;
868  *)    ac_optarg=yes ;;
869  esac
870
871  # Accept the important Cygnus configure options, so we can diagnose typos.
872
873  case $ac_dashdash$ac_option in
874  --)
875    ac_dashdash=yes ;;
876
877  -bindir | --bindir | --bindi | --bind | --bin | --bi)
878    ac_prev=bindir ;;
879  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
880    bindir=$ac_optarg ;;
881
882  -build | --build | --buil | --bui | --bu)
883    ac_prev=build_alias ;;
884  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
885    build_alias=$ac_optarg ;;
886
887  -cache-file | --cache-file | --cache-fil | --cache-fi \
888  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
889    ac_prev=cache_file ;;
890  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
891  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
892    cache_file=$ac_optarg ;;
893
894  --config-cache | -C)
895    cache_file=config.cache ;;
896
897  -datadir | --datadir | --datadi | --datad)
898    ac_prev=datadir ;;
899  -datadir=* | --datadir=* | --datadi=* | --datad=*)
900    datadir=$ac_optarg ;;
901
902  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
903  | --dataroo | --dataro | --datar)
904    ac_prev=datarootdir ;;
905  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
906  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
907    datarootdir=$ac_optarg ;;
908
909  -disable-* | --disable-*)
910    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
911    # Reject names that are not valid shell variable names.
912    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913      as_fn_error $? "invalid feature name: $ac_useropt"
914    ac_useropt_orig=$ac_useropt
915    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916    case $ac_user_opts in
917      *"
918"enable_$ac_useropt"
919"*) ;;
920      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
921	 ac_unrecognized_sep=', ';;
922    esac
923    eval enable_$ac_useropt=no ;;
924
925  -docdir | --docdir | --docdi | --doc | --do)
926    ac_prev=docdir ;;
927  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928    docdir=$ac_optarg ;;
929
930  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931    ac_prev=dvidir ;;
932  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933    dvidir=$ac_optarg ;;
934
935  -enable-* | --enable-*)
936    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937    # Reject names that are not valid shell variable names.
938    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939      as_fn_error $? "invalid feature name: $ac_useropt"
940    ac_useropt_orig=$ac_useropt
941    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942    case $ac_user_opts in
943      *"
944"enable_$ac_useropt"
945"*) ;;
946      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
947	 ac_unrecognized_sep=', ';;
948    esac
949    eval enable_$ac_useropt=\$ac_optarg ;;
950
951  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953  | --exec | --exe | --ex)
954    ac_prev=exec_prefix ;;
955  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957  | --exec=* | --exe=* | --ex=*)
958    exec_prefix=$ac_optarg ;;
959
960  -gas | --gas | --ga | --g)
961    # Obsolete; use --with-gas.
962    with_gas=yes ;;
963
964  -help | --help | --hel | --he | -h)
965    ac_init_help=long ;;
966  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967    ac_init_help=recursive ;;
968  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969    ac_init_help=short ;;
970
971  -host | --host | --hos | --ho)
972    ac_prev=host_alias ;;
973  -host=* | --host=* | --hos=* | --ho=*)
974    host_alias=$ac_optarg ;;
975
976  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977    ac_prev=htmldir ;;
978  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979  | --ht=*)
980    htmldir=$ac_optarg ;;
981
982  -includedir | --includedir | --includedi | --included | --include \
983  | --includ | --inclu | --incl | --inc)
984    ac_prev=includedir ;;
985  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986  | --includ=* | --inclu=* | --incl=* | --inc=*)
987    includedir=$ac_optarg ;;
988
989  -infodir | --infodir | --infodi | --infod | --info | --inf)
990    ac_prev=infodir ;;
991  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992    infodir=$ac_optarg ;;
993
994  -libdir | --libdir | --libdi | --libd)
995    ac_prev=libdir ;;
996  -libdir=* | --libdir=* | --libdi=* | --libd=*)
997    libdir=$ac_optarg ;;
998
999  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000  | --libexe | --libex | --libe)
1001    ac_prev=libexecdir ;;
1002  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003  | --libexe=* | --libex=* | --libe=*)
1004    libexecdir=$ac_optarg ;;
1005
1006  -localedir | --localedir | --localedi | --localed | --locale)
1007    ac_prev=localedir ;;
1008  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009    localedir=$ac_optarg ;;
1010
1011  -localstatedir | --localstatedir | --localstatedi | --localstated \
1012  | --localstate | --localstat | --localsta | --localst | --locals)
1013    ac_prev=localstatedir ;;
1014  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016    localstatedir=$ac_optarg ;;
1017
1018  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019    ac_prev=mandir ;;
1020  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021    mandir=$ac_optarg ;;
1022
1023  -nfp | --nfp | --nf)
1024    # Obsolete; use --without-fp.
1025    with_fp=no ;;
1026
1027  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028  | --no-cr | --no-c | -n)
1029    no_create=yes ;;
1030
1031  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033    no_recursion=yes ;;
1034
1035  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037  | --oldin | --oldi | --old | --ol | --o)
1038    ac_prev=oldincludedir ;;
1039  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042    oldincludedir=$ac_optarg ;;
1043
1044  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045    ac_prev=prefix ;;
1046  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047    prefix=$ac_optarg ;;
1048
1049  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050  | --program-pre | --program-pr | --program-p)
1051    ac_prev=program_prefix ;;
1052  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054    program_prefix=$ac_optarg ;;
1055
1056  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057  | --program-suf | --program-su | --program-s)
1058    ac_prev=program_suffix ;;
1059  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061    program_suffix=$ac_optarg ;;
1062
1063  -program-transform-name | --program-transform-name \
1064  | --program-transform-nam | --program-transform-na \
1065  | --program-transform-n | --program-transform- \
1066  | --program-transform | --program-transfor \
1067  | --program-transfo | --program-transf \
1068  | --program-trans | --program-tran \
1069  | --progr-tra | --program-tr | --program-t)
1070    ac_prev=program_transform_name ;;
1071  -program-transform-name=* | --program-transform-name=* \
1072  | --program-transform-nam=* | --program-transform-na=* \
1073  | --program-transform-n=* | --program-transform-=* \
1074  | --program-transform=* | --program-transfor=* \
1075  | --program-transfo=* | --program-transf=* \
1076  | --program-trans=* | --program-tran=* \
1077  | --progr-tra=* | --program-tr=* | --program-t=*)
1078    program_transform_name=$ac_optarg ;;
1079
1080  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081    ac_prev=pdfdir ;;
1082  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083    pdfdir=$ac_optarg ;;
1084
1085  -psdir | --psdir | --psdi | --psd | --ps)
1086    ac_prev=psdir ;;
1087  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088    psdir=$ac_optarg ;;
1089
1090  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091  | -silent | --silent | --silen | --sile | --sil)
1092    silent=yes ;;
1093
1094  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095    ac_prev=sbindir ;;
1096  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097  | --sbi=* | --sb=*)
1098    sbindir=$ac_optarg ;;
1099
1100  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102  | --sharedst | --shareds | --shared | --share | --shar \
1103  | --sha | --sh)
1104    ac_prev=sharedstatedir ;;
1105  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108  | --sha=* | --sh=*)
1109    sharedstatedir=$ac_optarg ;;
1110
1111  -site | --site | --sit)
1112    ac_prev=site ;;
1113  -site=* | --site=* | --sit=*)
1114    site=$ac_optarg ;;
1115
1116  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117    ac_prev=srcdir ;;
1118  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119    srcdir=$ac_optarg ;;
1120
1121  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122  | --syscon | --sysco | --sysc | --sys | --sy)
1123    ac_prev=sysconfdir ;;
1124  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126    sysconfdir=$ac_optarg ;;
1127
1128  -target | --target | --targe | --targ | --tar | --ta | --t)
1129    ac_prev=target_alias ;;
1130  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131    target_alias=$ac_optarg ;;
1132
1133  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134    verbose=yes ;;
1135
1136  -version | --version | --versio | --versi | --vers | -V)
1137    ac_init_version=: ;;
1138
1139  -with-* | --with-*)
1140    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141    # Reject names that are not valid shell variable names.
1142    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143      as_fn_error $? "invalid package name: $ac_useropt"
1144    ac_useropt_orig=$ac_useropt
1145    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146    case $ac_user_opts in
1147      *"
1148"with_$ac_useropt"
1149"*) ;;
1150      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1151	 ac_unrecognized_sep=', ';;
1152    esac
1153    eval with_$ac_useropt=\$ac_optarg ;;
1154
1155  -without-* | --without-*)
1156    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1157    # Reject names that are not valid shell variable names.
1158    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159      as_fn_error $? "invalid package name: $ac_useropt"
1160    ac_useropt_orig=$ac_useropt
1161    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162    case $ac_user_opts in
1163      *"
1164"with_$ac_useropt"
1165"*) ;;
1166      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1167	 ac_unrecognized_sep=', ';;
1168    esac
1169    eval with_$ac_useropt=no ;;
1170
1171  --x)
1172    # Obsolete; use --with-x.
1173    with_x=yes ;;
1174
1175  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1176  | --x-incl | --x-inc | --x-in | --x-i)
1177    ac_prev=x_includes ;;
1178  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1179  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1180    x_includes=$ac_optarg ;;
1181
1182  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1183  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1184    ac_prev=x_libraries ;;
1185  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1186  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1187    x_libraries=$ac_optarg ;;
1188
1189  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1190Try \`$0 --help' for more information"
1191    ;;
1192
1193  *=*)
1194    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195    # Reject names that are not valid shell variable names.
1196    case $ac_envvar in #(
1197      '' | [0-9]* | *[!_$as_cr_alnum]* )
1198      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1199    esac
1200    eval $ac_envvar=\$ac_optarg
1201    export $ac_envvar ;;
1202
1203  *)
1204    # FIXME: should be removed in autoconf 3.0.
1205    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1206    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1208    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1209    ;;
1210
1211  esac
1212done
1213
1214if test -n "$ac_prev"; then
1215  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1216  as_fn_error $? "missing argument to $ac_option"
1217fi
1218
1219if test -n "$ac_unrecognized_opts"; then
1220  case $enable_option_checking in
1221    no) ;;
1222    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1223    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1224  esac
1225fi
1226
1227# Check all directory arguments for consistency.
1228for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1229		datadir sysconfdir sharedstatedir localstatedir includedir \
1230		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1231		libdir localedir mandir
1232do
1233  eval ac_val=\$$ac_var
1234  # Remove trailing slashes.
1235  case $ac_val in
1236    */ )
1237      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1238      eval $ac_var=\$ac_val;;
1239  esac
1240  # Be sure to have absolute directory names.
1241  case $ac_val in
1242    [\\/$]* | ?:[\\/]* )  continue;;
1243    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1244  esac
1245  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1246done
1247
1248# There might be people who depend on the old broken behavior: `$host'
1249# used to hold the argument of --host etc.
1250# FIXME: To remove some day.
1251build=$build_alias
1252host=$host_alias
1253target=$target_alias
1254
1255# FIXME: To remove some day.
1256if test "x$host_alias" != x; then
1257  if test "x$build_alias" = x; then
1258    cross_compiling=maybe
1259  elif test "x$build_alias" != "x$host_alias"; then
1260    cross_compiling=yes
1261  fi
1262fi
1263
1264ac_tool_prefix=
1265test -n "$host_alias" && ac_tool_prefix=$host_alias-
1266
1267test "$silent" = yes && exec 6>/dev/null
1268
1269
1270ac_pwd=`pwd` && test -n "$ac_pwd" &&
1271ac_ls_di=`ls -di .` &&
1272ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1273  as_fn_error $? "working directory cannot be determined"
1274test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1275  as_fn_error $? "pwd does not report name of working directory"
1276
1277
1278# Find the source files, if location was not specified.
1279if test -z "$srcdir"; then
1280  ac_srcdir_defaulted=yes
1281  # Try the directory containing this script, then the parent directory.
1282  ac_confdir=`$as_dirname -- "$as_myself" ||
1283$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1284	 X"$as_myself" : 'X\(//\)[^/]' \| \
1285	 X"$as_myself" : 'X\(//\)$' \| \
1286	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1287$as_echo X"$as_myself" |
1288    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1289	    s//\1/
1290	    q
1291	  }
1292	  /^X\(\/\/\)[^/].*/{
1293	    s//\1/
1294	    q
1295	  }
1296	  /^X\(\/\/\)$/{
1297	    s//\1/
1298	    q
1299	  }
1300	  /^X\(\/\).*/{
1301	    s//\1/
1302	    q
1303	  }
1304	  s/.*/./; q'`
1305  srcdir=$ac_confdir
1306  if test ! -r "$srcdir/$ac_unique_file"; then
1307    srcdir=..
1308  fi
1309else
1310  ac_srcdir_defaulted=no
1311fi
1312if test ! -r "$srcdir/$ac_unique_file"; then
1313  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1314  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1315fi
1316ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1317ac_abs_confdir=`(
1318	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1319	pwd)`
1320# When building in place, set srcdir=.
1321if test "$ac_abs_confdir" = "$ac_pwd"; then
1322  srcdir=.
1323fi
1324# Remove unnecessary trailing slashes from srcdir.
1325# Double slashes in file names in object file debugging info
1326# mess up M-x gdb in Emacs.
1327case $srcdir in
1328*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1329esac
1330for ac_var in $ac_precious_vars; do
1331  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1332  eval ac_env_${ac_var}_value=\$${ac_var}
1333  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1334  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1335done
1336
1337#
1338# Report the --help message.
1339#
1340if test "$ac_init_help" = "long"; then
1341  # Omit some internal or obsolete options to make the list less imposing.
1342  # This message is too long to be a string in the A/UX 3.1 sh.
1343  cat <<_ACEOF
1344\`configure' configures atheme 7.2.9 to adapt to many kinds of systems.
1345
1346Usage: $0 [OPTION]... [VAR=VALUE]...
1347
1348To assign environment variables (e.g., CC, CFLAGS...), specify them as
1349VAR=VALUE.  See below for descriptions of some of the useful variables.
1350
1351Defaults for the options are specified in brackets.
1352
1353Configuration:
1354  -h, --help              display this help and exit
1355      --help=short        display options specific to this package
1356      --help=recursive    display the short help of all the included packages
1357  -V, --version           display version information and exit
1358  -q, --quiet, --silent   do not print \`checking ...' messages
1359      --cache-file=FILE   cache test results in FILE [disabled]
1360  -C, --config-cache      alias for \`--cache-file=config.cache'
1361  -n, --no-create         do not create output files
1362      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1363
1364Installation directories:
1365  --prefix=PREFIX         install architecture-independent files in PREFIX
1366                          [$ac_default_prefix]
1367  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1368                          [PREFIX]
1369
1370By default, \`make install' will install all the files in
1371\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1372an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1373for instance \`--prefix=\$HOME'.
1374
1375For better control, use the options below.
1376
1377Fine tuning of the installation directories:
1378  --bindir=DIR            user executables [EPREFIX/bin]
1379  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1380  --libexecdir=DIR        program executables [EPREFIX/libexec]
1381  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1382  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1383  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1384  --libdir=DIR            object code libraries [EPREFIX/lib]
1385  --includedir=DIR        C header files [PREFIX/include]
1386  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1387  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1388  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1389  --infodir=DIR           info documentation [DATAROOTDIR/info]
1390  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1391  --mandir=DIR            man documentation [DATAROOTDIR/man]
1392  --docdir=DIR            documentation root [DATAROOTDIR/doc/atheme]
1393  --htmldir=DIR           html documentation [DOCDIR]
1394  --dvidir=DIR            dvi documentation [DOCDIR]
1395  --pdfdir=DIR            pdf documentation [DOCDIR]
1396  --psdir=DIR             ps documentation [DOCDIR]
1397_ACEOF
1398
1399  cat <<\_ACEOF
1400
1401System types:
1402  --build=BUILD     configure for building on BUILD [guessed]
1403  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1404_ACEOF
1405fi
1406
1407if test -n "$ac_init_help"; then
1408  case $ac_init_help in
1409     short | recursive ) echo "Configuration of atheme 7.2.9:";;
1410   esac
1411  cat <<\_ACEOF
1412
1413Optional Features:
1414  --disable-option-checking  ignore unrecognized --enable/--with options
1415  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1416  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1417  --disable-nls           do not use Native Language Support
1418  --enable-fhs-paths      Use more FHS-like pathnames (for packagers).
1419  --enable-reproducible-builds
1420                          Enable reproducible builds.
1421  --enable-large-net      Enable large network support.
1422  --enable-contrib        Enable contrib modules.
1423  --disable-ssl           don't use OpenSSL to provide more SASL mechanisms
1424  --enable-warnings       Enable compiler warnings
1425  --disable-propolice     Disable propolice protections (for debugging.)
1426  --enable-profile        Enable profiling extensions
1427  --disable-rpath         Disable use of -Wl,-rpath= during linking.
1428
1429Optional Packages:
1430  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1431  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1432  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1433  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1434  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1435  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1436  --without-libintl-prefix     don't search for libintl in includedir and libdir
1437  --with-cracklib         Compile cracklib nickserv submodule for checking
1438                          password strength.
1439  --without-ldap          Disable building ldap auth module.
1440  --without-perl          Disable building perl scripting module.
1441  --with-libmowgli[=prefix]
1442                          Specify location of system libmowgli install, or
1443                          "no" to force use of internal libmowgli
1444  --with-pcre             Enable PCRE regular expression support
1445
1446Some influential environment variables:
1447  CC          C compiler command
1448  CFLAGS      C compiler flags
1449  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1450              nonstandard directory <lib dir>
1451  LIBS        libraries to pass to the linker, e.g. -l<library>
1452  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1453              you have headers in a nonstandard directory <include dir>
1454  CPP         C preprocessor
1455  PKG_CONFIG  path to pkg-config utility
1456  LIBQRENCODE_CFLAGS
1457              C compiler flags for LIBQRENCODE, overriding pkg-config
1458  LIBQRENCODE_LIBS
1459              linker flags for LIBQRENCODE, overriding pkg-config
1460  MOWGLI_CFLAGS
1461              C compiler flags for MOWGLI, overriding pkg-config
1462  MOWGLI_LIBS linker flags for MOWGLI, overriding pkg-config
1463  PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
1464  PCRE_LIBS   linker flags for PCRE, overriding pkg-config
1465
1466Use these variables to override the choices made by `configure' or to help
1467it to find libraries and programs with nonstandard names/locations.
1468
1469Report bugs to <https://github.com/atheme/atheme/issues/>.
1470_ACEOF
1471ac_status=$?
1472fi
1473
1474if test "$ac_init_help" = "recursive"; then
1475  # If there are subdirs, report their specific --help.
1476  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1477    test -d "$ac_dir" ||
1478      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1479      continue
1480    ac_builddir=.
1481
1482case "$ac_dir" in
1483.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484*)
1485  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1486  # A ".." for each directory in $ac_dir_suffix.
1487  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1488  case $ac_top_builddir_sub in
1489  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1491  esac ;;
1492esac
1493ac_abs_top_builddir=$ac_pwd
1494ac_abs_builddir=$ac_pwd$ac_dir_suffix
1495# for backward compatibility:
1496ac_top_builddir=$ac_top_build_prefix
1497
1498case $srcdir in
1499  .)  # We are building in place.
1500    ac_srcdir=.
1501    ac_top_srcdir=$ac_top_builddir_sub
1502    ac_abs_top_srcdir=$ac_pwd ;;
1503  [\\/]* | ?:[\\/]* )  # Absolute name.
1504    ac_srcdir=$srcdir$ac_dir_suffix;
1505    ac_top_srcdir=$srcdir
1506    ac_abs_top_srcdir=$srcdir ;;
1507  *) # Relative name.
1508    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1509    ac_top_srcdir=$ac_top_build_prefix$srcdir
1510    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1511esac
1512ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1513
1514    cd "$ac_dir" || { ac_status=$?; continue; }
1515    # Check for guested configure.
1516    if test -f "$ac_srcdir/configure.gnu"; then
1517      echo &&
1518      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1519    elif test -f "$ac_srcdir/configure"; then
1520      echo &&
1521      $SHELL "$ac_srcdir/configure" --help=recursive
1522    else
1523      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1524    fi || ac_status=$?
1525    cd "$ac_pwd" || { ac_status=$?; break; }
1526  done
1527fi
1528
1529test -n "$ac_init_help" && exit $ac_status
1530if $ac_init_version; then
1531  cat <<\_ACEOF
1532atheme configure 7.2.9
1533generated by GNU Autoconf 2.69
1534
1535Copyright (C) 2012 Free Software Foundation, Inc.
1536This configure script is free software; the Free Software Foundation
1537gives unlimited permission to copy, distribute and modify it.
1538_ACEOF
1539  exit
1540fi
1541
1542## ------------------------ ##
1543## Autoconf initialization. ##
1544## ------------------------ ##
1545
1546# ac_fn_c_try_compile LINENO
1547# --------------------------
1548# Try to compile conftest.$ac_ext, and return whether this succeeded.
1549ac_fn_c_try_compile ()
1550{
1551  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552  rm -f conftest.$ac_objext
1553  if { { ac_try="$ac_compile"
1554case "(($ac_try" in
1555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556  *) ac_try_echo=$ac_try;;
1557esac
1558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559$as_echo "$ac_try_echo"; } >&5
1560  (eval "$ac_compile") 2>conftest.err
1561  ac_status=$?
1562  if test -s conftest.err; then
1563    grep -v '^ *+' conftest.err >conftest.er1
1564    cat conftest.er1 >&5
1565    mv -f conftest.er1 conftest.err
1566  fi
1567  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568  test $ac_status = 0; } && {
1569	 test -z "$ac_c_werror_flag" ||
1570	 test ! -s conftest.err
1571       } && test -s conftest.$ac_objext; then :
1572  ac_retval=0
1573else
1574  $as_echo "$as_me: failed program was:" >&5
1575sed 's/^/| /' conftest.$ac_ext >&5
1576
1577	ac_retval=1
1578fi
1579  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1580  as_fn_set_status $ac_retval
1581
1582} # ac_fn_c_try_compile
1583
1584# ac_fn_c_try_cpp LINENO
1585# ----------------------
1586# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1587ac_fn_c_try_cpp ()
1588{
1589  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590  if { { ac_try="$ac_cpp conftest.$ac_ext"
1591case "(($ac_try" in
1592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593  *) ac_try_echo=$ac_try;;
1594esac
1595eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596$as_echo "$ac_try_echo"; } >&5
1597  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1598  ac_status=$?
1599  if test -s conftest.err; then
1600    grep -v '^ *+' conftest.err >conftest.er1
1601    cat conftest.er1 >&5
1602    mv -f conftest.er1 conftest.err
1603  fi
1604  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605  test $ac_status = 0; } > conftest.i && {
1606	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1607	 test ! -s conftest.err
1608       }; then :
1609  ac_retval=0
1610else
1611  $as_echo "$as_me: failed program was:" >&5
1612sed 's/^/| /' conftest.$ac_ext >&5
1613
1614    ac_retval=1
1615fi
1616  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617  as_fn_set_status $ac_retval
1618
1619} # ac_fn_c_try_cpp
1620
1621# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1622# -------------------------------------------------------
1623# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1624# the include files in INCLUDES and setting the cache variable VAR
1625# accordingly.
1626ac_fn_c_check_header_mongrel ()
1627{
1628  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629  if eval \${$3+:} false; then :
1630  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1631$as_echo_n "checking for $2... " >&6; }
1632if eval \${$3+:} false; then :
1633  $as_echo_n "(cached) " >&6
1634fi
1635eval ac_res=\$$3
1636	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1637$as_echo "$ac_res" >&6; }
1638else
1639  # Is the header compilable?
1640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1641$as_echo_n "checking $2 usability... " >&6; }
1642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1643/* end confdefs.h.  */
1644$4
1645#include <$2>
1646_ACEOF
1647if ac_fn_c_try_compile "$LINENO"; then :
1648  ac_header_compiler=yes
1649else
1650  ac_header_compiler=no
1651fi
1652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1654$as_echo "$ac_header_compiler" >&6; }
1655
1656# Is the header present?
1657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1658$as_echo_n "checking $2 presence... " >&6; }
1659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1660/* end confdefs.h.  */
1661#include <$2>
1662_ACEOF
1663if ac_fn_c_try_cpp "$LINENO"; then :
1664  ac_header_preproc=yes
1665else
1666  ac_header_preproc=no
1667fi
1668rm -f conftest.err conftest.i conftest.$ac_ext
1669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1670$as_echo "$ac_header_preproc" >&6; }
1671
1672# So?  What about this header?
1673case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1674  yes:no: )
1675    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1676$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1677    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1678$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1679    ;;
1680  no:yes:* )
1681    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1682$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1683    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1684$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1685    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1686$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1687    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1688$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1689    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1690$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1691( $as_echo "## ------------------------------------------------------- ##
1692## Report this to https://github.com/atheme/atheme/issues/ ##
1693## ------------------------------------------------------- ##"
1694     ) | sed "s/^/$as_me: WARNING:     /" >&2
1695    ;;
1696esac
1697  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1698$as_echo_n "checking for $2... " >&6; }
1699if eval \${$3+:} false; then :
1700  $as_echo_n "(cached) " >&6
1701else
1702  eval "$3=\$ac_header_compiler"
1703fi
1704eval ac_res=\$$3
1705	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1706$as_echo "$ac_res" >&6; }
1707fi
1708  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709
1710} # ac_fn_c_check_header_mongrel
1711
1712# ac_fn_c_try_run LINENO
1713# ----------------------
1714# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1715# that executables *can* be run.
1716ac_fn_c_try_run ()
1717{
1718  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719  if { { ac_try="$ac_link"
1720case "(($ac_try" in
1721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722  *) ac_try_echo=$ac_try;;
1723esac
1724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725$as_echo "$ac_try_echo"; } >&5
1726  (eval "$ac_link") 2>&5
1727  ac_status=$?
1728  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1730  { { case "(($ac_try" in
1731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732  *) ac_try_echo=$ac_try;;
1733esac
1734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735$as_echo "$ac_try_echo"; } >&5
1736  (eval "$ac_try") 2>&5
1737  ac_status=$?
1738  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739  test $ac_status = 0; }; }; then :
1740  ac_retval=0
1741else
1742  $as_echo "$as_me: program exited with status $ac_status" >&5
1743       $as_echo "$as_me: failed program was:" >&5
1744sed 's/^/| /' conftest.$ac_ext >&5
1745
1746       ac_retval=$ac_status
1747fi
1748  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1749  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750  as_fn_set_status $ac_retval
1751
1752} # ac_fn_c_try_run
1753
1754# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1755# -------------------------------------------------------
1756# Tests whether HEADER exists and can be compiled using the include files in
1757# INCLUDES, setting the cache variable VAR accordingly.
1758ac_fn_c_check_header_compile ()
1759{
1760  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762$as_echo_n "checking for $2... " >&6; }
1763if eval \${$3+:} false; then :
1764  $as_echo_n "(cached) " >&6
1765else
1766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767/* end confdefs.h.  */
1768$4
1769#include <$2>
1770_ACEOF
1771if ac_fn_c_try_compile "$LINENO"; then :
1772  eval "$3=yes"
1773else
1774  eval "$3=no"
1775fi
1776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1777fi
1778eval ac_res=\$$3
1779	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780$as_echo "$ac_res" >&6; }
1781  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782
1783} # ac_fn_c_check_header_compile
1784
1785# ac_fn_c_try_link LINENO
1786# -----------------------
1787# Try to link conftest.$ac_ext, and return whether this succeeded.
1788ac_fn_c_try_link ()
1789{
1790  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791  rm -f conftest.$ac_objext conftest$ac_exeext
1792  if { { ac_try="$ac_link"
1793case "(($ac_try" in
1794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795  *) ac_try_echo=$ac_try;;
1796esac
1797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798$as_echo "$ac_try_echo"; } >&5
1799  (eval "$ac_link") 2>conftest.err
1800  ac_status=$?
1801  if test -s conftest.err; then
1802    grep -v '^ *+' conftest.err >conftest.er1
1803    cat conftest.er1 >&5
1804    mv -f conftest.er1 conftest.err
1805  fi
1806  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807  test $ac_status = 0; } && {
1808	 test -z "$ac_c_werror_flag" ||
1809	 test ! -s conftest.err
1810       } && test -s conftest$ac_exeext && {
1811	 test "$cross_compiling" = yes ||
1812	 test -x conftest$ac_exeext
1813       }; then :
1814  ac_retval=0
1815else
1816  $as_echo "$as_me: failed program was:" >&5
1817sed 's/^/| /' conftest.$ac_ext >&5
1818
1819	ac_retval=1
1820fi
1821  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1822  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1823  # interfere with the next link command; also delete a directory that is
1824  # left behind by Apple's compiler.  We do this before executing the actions.
1825  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1826  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827  as_fn_set_status $ac_retval
1828
1829} # ac_fn_c_try_link
1830
1831# ac_fn_c_check_header_preproc LINENO HEADER VAR
1832# ----------------------------------------------
1833# Tests whether HEADER is present, setting the cache variable VAR accordingly.
1834ac_fn_c_check_header_preproc ()
1835{
1836  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838$as_echo_n "checking for $2... " >&6; }
1839if eval \${$3+:} false; then :
1840  $as_echo_n "(cached) " >&6
1841else
1842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843/* end confdefs.h.  */
1844#include <$2>
1845_ACEOF
1846if ac_fn_c_try_cpp "$LINENO"; then :
1847  eval "$3=yes"
1848else
1849  eval "$3=no"
1850fi
1851rm -f conftest.err conftest.i conftest.$ac_ext
1852fi
1853eval ac_res=\$$3
1854	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855$as_echo "$ac_res" >&6; }
1856  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857
1858} # ac_fn_c_check_header_preproc
1859
1860# ac_fn_c_check_func LINENO FUNC VAR
1861# ----------------------------------
1862# Tests whether FUNC exists, setting the cache variable VAR accordingly
1863ac_fn_c_check_func ()
1864{
1865  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1867$as_echo_n "checking for $2... " >&6; }
1868if eval \${$3+:} false; then :
1869  $as_echo_n "(cached) " >&6
1870else
1871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1872/* end confdefs.h.  */
1873/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1874   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1875#define $2 innocuous_$2
1876
1877/* System header to define __stub macros and hopefully few prototypes,
1878    which can conflict with char $2 (); below.
1879    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1880    <limits.h> exists even on freestanding compilers.  */
1881
1882#ifdef __STDC__
1883# include <limits.h>
1884#else
1885# include <assert.h>
1886#endif
1887
1888#undef $2
1889
1890/* Override any GCC internal prototype to avoid an error.
1891   Use char because int might match the return type of a GCC
1892   builtin and then its argument prototype would still apply.  */
1893#ifdef __cplusplus
1894extern "C"
1895#endif
1896char $2 ();
1897/* The GNU C library defines this for functions which it implements
1898    to always fail with ENOSYS.  Some functions are actually named
1899    something starting with __ and the normal name is an alias.  */
1900#if defined __stub_$2 || defined __stub___$2
1901choke me
1902#endif
1903
1904int
1905main ()
1906{
1907return $2 ();
1908  ;
1909  return 0;
1910}
1911_ACEOF
1912if ac_fn_c_try_link "$LINENO"; then :
1913  eval "$3=yes"
1914else
1915  eval "$3=no"
1916fi
1917rm -f core conftest.err conftest.$ac_objext \
1918    conftest$ac_exeext conftest.$ac_ext
1919fi
1920eval ac_res=\$$3
1921	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922$as_echo "$ac_res" >&6; }
1923  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924
1925} # ac_fn_c_check_func
1926
1927# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1928# ----------------------------------------------------
1929# Tries to find if the field MEMBER exists in type AGGR, after including
1930# INCLUDES, setting cache variable VAR accordingly.
1931ac_fn_c_check_member ()
1932{
1933  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1935$as_echo_n "checking for $2.$3... " >&6; }
1936if eval \${$4+:} false; then :
1937  $as_echo_n "(cached) " >&6
1938else
1939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940/* end confdefs.h.  */
1941$5
1942int
1943main ()
1944{
1945static $2 ac_aggr;
1946if (ac_aggr.$3)
1947return 0;
1948  ;
1949  return 0;
1950}
1951_ACEOF
1952if ac_fn_c_try_compile "$LINENO"; then :
1953  eval "$4=yes"
1954else
1955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956/* end confdefs.h.  */
1957$5
1958int
1959main ()
1960{
1961static $2 ac_aggr;
1962if (sizeof ac_aggr.$3)
1963return 0;
1964  ;
1965  return 0;
1966}
1967_ACEOF
1968if ac_fn_c_try_compile "$LINENO"; then :
1969  eval "$4=yes"
1970else
1971  eval "$4=no"
1972fi
1973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974fi
1975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976fi
1977eval ac_res=\$$4
1978	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979$as_echo "$ac_res" >&6; }
1980  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1981
1982} # ac_fn_c_check_member
1983
1984# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1985# -------------------------------------------
1986# Tests whether TYPE exists after having included INCLUDES, setting cache
1987# variable VAR accordingly.
1988ac_fn_c_check_type ()
1989{
1990  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992$as_echo_n "checking for $2... " >&6; }
1993if eval \${$3+:} false; then :
1994  $as_echo_n "(cached) " >&6
1995else
1996  eval "$3=no"
1997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998/* end confdefs.h.  */
1999$4
2000int
2001main ()
2002{
2003if (sizeof ($2))
2004	 return 0;
2005  ;
2006  return 0;
2007}
2008_ACEOF
2009if ac_fn_c_try_compile "$LINENO"; then :
2010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011/* end confdefs.h.  */
2012$4
2013int
2014main ()
2015{
2016if (sizeof (($2)))
2017	    return 0;
2018  ;
2019  return 0;
2020}
2021_ACEOF
2022if ac_fn_c_try_compile "$LINENO"; then :
2023
2024else
2025  eval "$3=yes"
2026fi
2027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028fi
2029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030fi
2031eval ac_res=\$$3
2032	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033$as_echo "$ac_res" >&6; }
2034  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2035
2036} # ac_fn_c_check_type
2037cat >config.log <<_ACEOF
2038This file contains any messages produced by compilers while
2039running configure, to aid debugging if configure makes a mistake.
2040
2041It was created by atheme $as_me 7.2.9, which was
2042generated by GNU Autoconf 2.69.  Invocation command line was
2043
2044  $ $0 $@
2045
2046_ACEOF
2047exec 5>>config.log
2048{
2049cat <<_ASUNAME
2050## --------- ##
2051## Platform. ##
2052## --------- ##
2053
2054hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2055uname -m = `(uname -m) 2>/dev/null || echo unknown`
2056uname -r = `(uname -r) 2>/dev/null || echo unknown`
2057uname -s = `(uname -s) 2>/dev/null || echo unknown`
2058uname -v = `(uname -v) 2>/dev/null || echo unknown`
2059
2060/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2061/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2062
2063/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2064/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2065/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2066/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2067/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2068/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2069/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2070
2071_ASUNAME
2072
2073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074for as_dir in $PATH
2075do
2076  IFS=$as_save_IFS
2077  test -z "$as_dir" && as_dir=.
2078    $as_echo "PATH: $as_dir"
2079  done
2080IFS=$as_save_IFS
2081
2082} >&5
2083
2084cat >&5 <<_ACEOF
2085
2086
2087## ----------- ##
2088## Core tests. ##
2089## ----------- ##
2090
2091_ACEOF
2092
2093
2094# Keep a trace of the command line.
2095# Strip out --no-create and --no-recursion so they do not pile up.
2096# Strip out --silent because we don't want to record it for future runs.
2097# Also quote any args containing shell meta-characters.
2098# Make two passes to allow for proper duplicate-argument suppression.
2099ac_configure_args=
2100ac_configure_args0=
2101ac_configure_args1=
2102ac_must_keep_next=false
2103for ac_pass in 1 2
2104do
2105  for ac_arg
2106  do
2107    case $ac_arg in
2108    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2109    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2110    | -silent | --silent | --silen | --sile | --sil)
2111      continue ;;
2112    *\'*)
2113      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2114    esac
2115    case $ac_pass in
2116    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2117    2)
2118      as_fn_append ac_configure_args1 " '$ac_arg'"
2119      if test $ac_must_keep_next = true; then
2120	ac_must_keep_next=false # Got value, back to normal.
2121      else
2122	case $ac_arg in
2123	  *=* | --config-cache | -C | -disable-* | --disable-* \
2124	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2125	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2126	  | -with-* | --with-* | -without-* | --without-* | --x)
2127	    case "$ac_configure_args0 " in
2128	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2129	    esac
2130	    ;;
2131	  -* ) ac_must_keep_next=true ;;
2132	esac
2133      fi
2134      as_fn_append ac_configure_args " '$ac_arg'"
2135      ;;
2136    esac
2137  done
2138done
2139{ ac_configure_args0=; unset ac_configure_args0;}
2140{ ac_configure_args1=; unset ac_configure_args1;}
2141
2142# When interrupted or exit'd, cleanup temporary files, and complete
2143# config.log.  We remove comments because anyway the quotes in there
2144# would cause problems or look ugly.
2145# WARNING: Use '\'' to represent an apostrophe within the trap.
2146# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2147trap 'exit_status=$?
2148  # Save into config.log some information that might help in debugging.
2149  {
2150    echo
2151
2152    $as_echo "## ---------------- ##
2153## Cache variables. ##
2154## ---------------- ##"
2155    echo
2156    # The following way of writing the cache mishandles newlines in values,
2157(
2158  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2159    eval ac_val=\$$ac_var
2160    case $ac_val in #(
2161    *${as_nl}*)
2162      case $ac_var in #(
2163      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2164$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2165      esac
2166      case $ac_var in #(
2167      _ | IFS | as_nl) ;; #(
2168      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2169      *) { eval $ac_var=; unset $ac_var;} ;;
2170      esac ;;
2171    esac
2172  done
2173  (set) 2>&1 |
2174    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2175    *${as_nl}ac_space=\ *)
2176      sed -n \
2177	"s/'\''/'\''\\\\'\'''\''/g;
2178	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2179      ;; #(
2180    *)
2181      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2182      ;;
2183    esac |
2184    sort
2185)
2186    echo
2187
2188    $as_echo "## ----------------- ##
2189## Output variables. ##
2190## ----------------- ##"
2191    echo
2192    for ac_var in $ac_subst_vars
2193    do
2194      eval ac_val=\$$ac_var
2195      case $ac_val in
2196      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2197      esac
2198      $as_echo "$ac_var='\''$ac_val'\''"
2199    done | sort
2200    echo
2201
2202    if test -n "$ac_subst_files"; then
2203      $as_echo "## ------------------- ##
2204## File substitutions. ##
2205## ------------------- ##"
2206      echo
2207      for ac_var in $ac_subst_files
2208      do
2209	eval ac_val=\$$ac_var
2210	case $ac_val in
2211	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2212	esac
2213	$as_echo "$ac_var='\''$ac_val'\''"
2214      done | sort
2215      echo
2216    fi
2217
2218    if test -s confdefs.h; then
2219      $as_echo "## ----------- ##
2220## confdefs.h. ##
2221## ----------- ##"
2222      echo
2223      cat confdefs.h
2224      echo
2225    fi
2226    test "$ac_signal" != 0 &&
2227      $as_echo "$as_me: caught signal $ac_signal"
2228    $as_echo "$as_me: exit $exit_status"
2229  } >&5
2230  rm -f core *.core core.conftest.* &&
2231    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2232    exit $exit_status
2233' 0
2234for ac_signal in 1 2 13 15; do
2235  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2236done
2237ac_signal=0
2238
2239# confdefs.h avoids OS command line length limits that DEFS can exceed.
2240rm -f -r conftest* confdefs.h
2241
2242$as_echo "/* confdefs.h */" > confdefs.h
2243
2244# Predefined preprocessor variables.
2245
2246cat >>confdefs.h <<_ACEOF
2247#define PACKAGE_NAME "$PACKAGE_NAME"
2248_ACEOF
2249
2250cat >>confdefs.h <<_ACEOF
2251#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2252_ACEOF
2253
2254cat >>confdefs.h <<_ACEOF
2255#define PACKAGE_VERSION "$PACKAGE_VERSION"
2256_ACEOF
2257
2258cat >>confdefs.h <<_ACEOF
2259#define PACKAGE_STRING "$PACKAGE_STRING"
2260_ACEOF
2261
2262cat >>confdefs.h <<_ACEOF
2263#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2264_ACEOF
2265
2266cat >>confdefs.h <<_ACEOF
2267#define PACKAGE_URL "$PACKAGE_URL"
2268_ACEOF
2269
2270
2271# Let the site file select an alternate cache file if it wants to.
2272# Prefer an explicitly selected file to automatically selected ones.
2273ac_site_file1=NONE
2274ac_site_file2=NONE
2275if test -n "$CONFIG_SITE"; then
2276  # We do not want a PATH search for config.site.
2277  case $CONFIG_SITE in #((
2278    -*)  ac_site_file1=./$CONFIG_SITE;;
2279    */*) ac_site_file1=$CONFIG_SITE;;
2280    *)   ac_site_file1=./$CONFIG_SITE;;
2281  esac
2282elif test "x$prefix" != xNONE; then
2283  ac_site_file1=$prefix/share/config.site
2284  ac_site_file2=$prefix/etc/config.site
2285else
2286  ac_site_file1=$ac_default_prefix/share/config.site
2287  ac_site_file2=$ac_default_prefix/etc/config.site
2288fi
2289for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2290do
2291  test "x$ac_site_file" = xNONE && continue
2292  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2293    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2294$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2295    sed 's/^/| /' "$ac_site_file" >&5
2296    . "$ac_site_file" \
2297      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2298$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2299as_fn_error $? "failed to load site script $ac_site_file
2300See \`config.log' for more details" "$LINENO" 5; }
2301  fi
2302done
2303
2304if test -r "$cache_file"; then
2305  # Some versions of bash will fail to source /dev/null (special files
2306  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2307  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2308    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2309$as_echo "$as_me: loading cache $cache_file" >&6;}
2310    case $cache_file in
2311      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2312      *)                      . "./$cache_file";;
2313    esac
2314  fi
2315else
2316  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2317$as_echo "$as_me: creating cache $cache_file" >&6;}
2318  >$cache_file
2319fi
2320
2321as_fn_append ac_header_list " stdarg.h"
2322as_fn_append ac_header_list " varargs.h"
2323# Check that the precious variables saved in the cache have kept the same
2324# value.
2325ac_cache_corrupted=false
2326for ac_var in $ac_precious_vars; do
2327  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2328  eval ac_new_set=\$ac_env_${ac_var}_set
2329  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2330  eval ac_new_val=\$ac_env_${ac_var}_value
2331  case $ac_old_set,$ac_new_set in
2332    set,)
2333      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2334$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2335      ac_cache_corrupted=: ;;
2336    ,set)
2337      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2338$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2339      ac_cache_corrupted=: ;;
2340    ,);;
2341    *)
2342      if test "x$ac_old_val" != "x$ac_new_val"; then
2343	# differences in whitespace do not lead to failure.
2344	ac_old_val_w=`echo x $ac_old_val`
2345	ac_new_val_w=`echo x $ac_new_val`
2346	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2347	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2348$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2349	  ac_cache_corrupted=:
2350	else
2351	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2352$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2353	  eval $ac_var=\$ac_old_val
2354	fi
2355	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2356$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2357	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2358$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2359      fi;;
2360  esac
2361  # Pass precious variables to config.status.
2362  if test "$ac_new_set" = set; then
2363    case $ac_new_val in
2364    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2365    *) ac_arg=$ac_var=$ac_new_val ;;
2366    esac
2367    case " $ac_configure_args " in
2368      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2369      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2370    esac
2371  fi
2372done
2373if $ac_cache_corrupted; then
2374  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2375$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2376  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2377$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2378  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2379fi
2380## -------------------- ##
2381## Main body of script. ##
2382## -------------------- ##
2383
2384ac_ext=c
2385ac_cpp='$CPP $CPPFLAGS'
2386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2388ac_compiler_gnu=$ac_cv_c_compiler_gnu
2389
2390
2391
2392ac_aux_dir=
2393for ac_dir in autoconf "$srcdir"/autoconf; do
2394  if test -f "$ac_dir/install-sh"; then
2395    ac_aux_dir=$ac_dir
2396    ac_install_sh="$ac_aux_dir/install-sh -c"
2397    break
2398  elif test -f "$ac_dir/install.sh"; then
2399    ac_aux_dir=$ac_dir
2400    ac_install_sh="$ac_aux_dir/install.sh -c"
2401    break
2402  elif test -f "$ac_dir/shtool"; then
2403    ac_aux_dir=$ac_dir
2404    ac_install_sh="$ac_aux_dir/shtool install -c"
2405    break
2406  fi
2407done
2408if test -z "$ac_aux_dir"; then
2409  as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2410fi
2411
2412# These three variables are undocumented and unsupported,
2413# and are intended to be withdrawn in a future Autoconf release.
2414# They can cause serious problems if a builder's source tree is in a directory
2415# whose full name contains unusual characters.
2416ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2417ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2418ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2419
2420
2421
2422ac_config_headers="$ac_config_headers include/sysconf.h"
2423
2424
2425
2426
2427	# Extract the first word of "tput", so it can be a program name with args.
2428set dummy tput; ac_word=$2
2429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2430$as_echo_n "checking for $ac_word... " >&6; }
2431if ${ac_cv_path_TPUT+:} false; then :
2432  $as_echo_n "(cached) " >&6
2433else
2434  case $TPUT in
2435  [\\/]* | ?:[\\/]*)
2436  ac_cv_path_TPUT="$TPUT" # Let the user override the test with a path.
2437  ;;
2438  *)
2439  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440for as_dir in $PATH
2441do
2442  IFS=$as_save_IFS
2443  test -z "$as_dir" && as_dir=.
2444    for ac_exec_ext in '' $ac_executable_extensions; do
2445  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2446    ac_cv_path_TPUT="$as_dir/$ac_word$ac_exec_ext"
2447    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2448    break 2
2449  fi
2450done
2451  done
2452IFS=$as_save_IFS
2453
2454  ;;
2455esac
2456fi
2457TPUT=$ac_cv_path_TPUT
2458if test -n "$TPUT"; then
2459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TPUT" >&5
2460$as_echo "$TPUT" >&6; }
2461else
2462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2463$as_echo "no" >&6; }
2464fi
2465
2466
2467
2468	if test x"$TPUT" != x""; then :
2469
2470		if x=$($TPUT el 2>/dev/null); then
2471			TERM_EL="$x"
2472
2473		else
2474			TERM_EL="$($TPUT ce 2>/dev/null)"
2475
2476		fi
2477
2478		if x=$($TPUT sgr0 2>/dev/null); then
2479			TERM_SGR0="$x"
2480
2481		else
2482			TERM_SGR0="$($TPUT me 2>/dev/null)"
2483
2484		fi
2485
2486		if x=$($TPUT bold 2>/dev/null); then
2487			TERM_BOLD="$x"
2488
2489		else
2490			TERM_BOLD="$($TPUT md 2>/dev/null)"
2491
2492		fi
2493
2494		if x=$($TPUT setaf 1 2>/dev/null); then
2495			TERM_SETAF1="$x"
2496
2497			TERM_SETAF2="$($TPUT setaf 2 2>/dev/null)"
2498
2499			TERM_SETAF3="$($TPUT setaf 3 2>/dev/null)"
2500
2501			TERM_SETAF4="$($TPUT setaf 4 2>/dev/null)"
2502
2503			TERM_SETAF6="$($TPUT setaf 6 2>/dev/null)"
2504
2505		else
2506			TERM_SETAF1="$($TPUT AF 1 2>/dev/null)"
2507
2508			TERM_SETAF2="$($TPUT AF 2 2>/dev/null)"
2509
2510			TERM_SETAF3="$($TPUT AF 3 2>/dev/null)"
2511
2512			TERM_SETAF4="$($TPUT AF 4 2>/dev/null)"
2513
2514			TERM_SETAF6="$($TPUT AF 6 2>/dev/null)"
2515
2516		fi
2517
2518else
2519
2520		TERM_EL='\033\133K'
2521
2522		TERM_SGR0='\033\133m'
2523
2524		TERM_BOLD='\033\1331m'
2525
2526		TERM_SETAF1='\033\13331m'
2527
2528		TERM_SETAF2='\033\13332m'
2529
2530		TERM_SETAF3='\033\13333m'
2531
2532		TERM_SETAF4='\033\13334m'
2533
2534		TERM_SETAF6='\033\13336m'
2535
2536
2537fi
2538
2539# Make sure we can run config.sub.
2540$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2541  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2542
2543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2544$as_echo_n "checking build system type... " >&6; }
2545if ${ac_cv_build+:} false; then :
2546  $as_echo_n "(cached) " >&6
2547else
2548  ac_build_alias=$build_alias
2549test "x$ac_build_alias" = x &&
2550  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2551test "x$ac_build_alias" = x &&
2552  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2553ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2554  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2555
2556fi
2557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2558$as_echo "$ac_cv_build" >&6; }
2559case $ac_cv_build in
2560*-*-*) ;;
2561*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2562esac
2563build=$ac_cv_build
2564ac_save_IFS=$IFS; IFS='-'
2565set x $ac_cv_build
2566shift
2567build_cpu=$1
2568build_vendor=$2
2569shift; shift
2570# Remember, the first character of IFS is used to create $*,
2571# except with old shells:
2572build_os=$*
2573IFS=$ac_save_IFS
2574case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2575
2576
2577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2578$as_echo_n "checking host system type... " >&6; }
2579if ${ac_cv_host+:} false; then :
2580  $as_echo_n "(cached) " >&6
2581else
2582  if test "x$host_alias" = x; then
2583  ac_cv_host=$ac_cv_build
2584else
2585  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2586    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2587fi
2588
2589fi
2590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2591$as_echo "$ac_cv_host" >&6; }
2592case $ac_cv_host in
2593*-*-*) ;;
2594*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2595esac
2596host=$ac_cv_host
2597ac_save_IFS=$IFS; IFS='-'
2598set x $ac_cv_host
2599shift
2600host_cpu=$1
2601host_vendor=$2
2602shift; shift
2603# Remember, the first character of IFS is used to create $*,
2604# except with old shells:
2605host_os=$*
2606IFS=$ac_save_IFS
2607case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2608
2609
2610
2611
2612	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library system" >&5
2613$as_echo_n "checking for shared library system... " >&6; }
2614	case "$host_os" in
2615		darwin*)
2616			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
2617$as_echo "Darwin" >&6; }
2618			LIB_CFLAGS='-fPIC -DPIC'
2619			LIB_LDFLAGS='-dynamiclib -current_version ${LIB_MAJOR}.${LIB_MINOR} -compatibility_version ${LIB_MAJOR} -install_name @rpath/${SHARED_LIB}'
2620			LIB_PREFIX='lib'
2621			LIB_SUFFIX='.dylib'
2622			LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
2623			PLUGIN_CFLAGS='-fPIC -DPIC'
2624			PLUGIN_LDFLAGS='-shared -undefined dynamic_lookup'
2625			PLUGIN_SUFFIX='.so'
2626			INSTALL_LIB='&& ${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib && ${LN_S} -f $${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.dylib && ${LN_S} -f $${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib ${DESTDIR}${libdir}/$$i'
2627			UNINSTALL_LIB='&& rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.dylib ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib'
2628			CLEAN_LIB=''
2629			;;
2630		solaris*)
2631			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
2632$as_echo "Solaris" >&6; }
2633			LIB_CFLAGS='-fPIC -DPIC'
2634			LIB_LDFLAGS='-shared -Wl,-soname=${SHARED_LIB}.${LIB_MAJOR}.${LIB_MINOR}'
2635			LIB_PREFIX='lib'
2636			LIB_SUFFIX='.so'
2637			LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
2638			PLUGIN_CFLAGS='-fPIC -DPIC'
2639			PLUGIN_LDFLAGS='-shared'
2640			PLUGIN_SUFFIX='.so'
2641			INSTALL_LIB='&& ${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR} && rm -f ${DESTDIR}${libdir}/$$i && ${LN_S} $$i.${LIB_MAJOR}.${LIB_MINOR} ${DESTDIR}${libdir}/$$i'
2642			UNINSTALL_LIB='&& rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR}'
2643			CLEAN_LIB=''
2644			;;
2645		openbsd* | mirbsd*)
2646			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenBSD" >&5
2647$as_echo "OpenBSD" >&6; }
2648			LIB_CFLAGS='-fPIC -DPIC'
2649			LIB_LDFLAGS='-shared'
2650			LIB_PREFIX='lib'
2651			LIB_SUFFIX='.so.${LIB_MAJOR}.${LIB_MINOR}'
2652			LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
2653			PLUGIN_CFLAGS='-fPIC -DPIC'
2654			PLUGIN_LDFLAGS='-shared'
2655			PLUGIN_SUFFIX='.so'
2656			INSTALL_LIB='&& ${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$$i'
2657			UNINSTALL_LIB='&& rm -f ${DESTDIR}${libdir}/$$i'
2658			CLEAN_LIB=''
2659			;;
2660		cygwin* | mingw*)
2661			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Win32" >&5
2662$as_echo "Win32" >&6; }
2663			LIB_CFLAGS=''
2664			LIB_LDFLAGS='-shared -Wl,--out-implib,${SHARED_LIB}.a'
2665			LIB_PREFIX='lib'
2666			LIB_SUFFIX='.dll'
2667			LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
2668			PLUGIN_CFLAGS=''
2669			PLUGIN_LDFLAGS='-shared'
2670			PLUGIN_SUFFIX='.dll'
2671			INSTALL_LIB='&& ${MKDIR_P} ${DESTDIR}${bindir} && ${INSTALL} -m 755 $$i ${DESTDIR}${bindir}/$$i && ${INSTALL} -m 755 $$i.a ${DESTDIR}${libdir}/$$i.a'
2672			UNINSTALL_LIB='&& rm -f ${DESTDIR}${bindir}/$$i ${DESTDIR}${libdir}/$$i.a'
2673			CLEAN_LIB='${SHARED_LIB}.a'
2674			;;
2675		*)
2676			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GNU" >&5
2677$as_echo "GNU" >&6; }
2678			LIB_CFLAGS='-fPIC -DPIC'
2679			LIB_LDFLAGS='-shared -Wl,-soname=${SHARED_LIB}.${LIB_MAJOR}'
2680			LIB_PREFIX='lib'
2681			LIB_SUFFIX='.so'
2682			LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
2683			PLUGIN_CFLAGS='-fPIC -DPIC'
2684			PLUGIN_LDFLAGS='-shared'
2685			PLUGIN_SUFFIX='.so'
2686			INSTALL_LIB='&& ${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR}.0 && ${LN_S} -f $$i.${LIB_MAJOR}.${LIB_MINOR}.0 ${DESTDIR}${libdir}/$$i.${LIB_MAJOR} && ${LN_S} -f $$i.${LIB_MAJOR}.${LIB_MINOR}.0 ${DESTDIR}${libdir}/$$i'
2687			UNINSTALL_LIB='&& rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR} ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR}.0'
2688			CLEAN_LIB=''
2689			;;
2690	esac
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need an implib" >&5
2707$as_echo_n "checking whether we need an implib... " >&6; }
2708	case "$host_os" in
2709		cygwin* | mingw*)
2710			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2711$as_echo "yes" >&6; }
2712			PROG_IMPLIB_NEEDED='yes'
2713			PROG_IMPLIB_LDFLAGS='-Wl,-export-all-symbols,--out-implib,lib${PROG}.a'
2714			;;
2715		*)
2716			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2717$as_echo "no" >&6; }
2718			PROG_IMPLIB_NEEDED='no'
2719			PROG_IMPLIB_LDFLAGS=''
2720			;;
2721	esac
2722
2723
2724
2725
2726LIBS="$LIBS $DYNAMIC_LD_LIBS"
2727
2728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you read GIT-Access" >&5
2729$as_echo_n "checking if you read GIT-Access... " >&6; }
2730if ! test -f libmowgli-2/Makefile -a -f modules/contrib/Makefile; then
2731	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2732$as_echo "no" >&6; }
2733	as_fn_error $? "please read GIT-Access before trying to build from git" "$LINENO" 5
2734fi
2735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2736$as_echo "yes" >&6; }
2737
2738# Extract the first word of "rm", so it can be a program name with args.
2739set dummy rm; ac_word=$2
2740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2741$as_echo_n "checking for $ac_word... " >&6; }
2742if ${ac_cv_path_RM+:} false; then :
2743  $as_echo_n "(cached) " >&6
2744else
2745  case $RM in
2746  [\\/]* | ?:[\\/]*)
2747  ac_cv_path_RM="$RM" # Let the user override the test with a path.
2748  ;;
2749  *)
2750  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751for as_dir in $PATH
2752do
2753  IFS=$as_save_IFS
2754  test -z "$as_dir" && as_dir=.
2755    for ac_exec_ext in '' $ac_executable_extensions; do
2756  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2757    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
2758    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2759    break 2
2760  fi
2761done
2762  done
2763IFS=$as_save_IFS
2764
2765  ;;
2766esac
2767fi
2768RM=$ac_cv_path_RM
2769if test -n "$RM"; then
2770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
2771$as_echo "$RM" >&6; }
2772else
2773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2774$as_echo "no" >&6; }
2775fi
2776
2777
2778# Extract the first word of "mv", so it can be a program name with args.
2779set dummy mv; ac_word=$2
2780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781$as_echo_n "checking for $ac_word... " >&6; }
2782if ${ac_cv_path_MV+:} false; then :
2783  $as_echo_n "(cached) " >&6
2784else
2785  case $MV in
2786  [\\/]* | ?:[\\/]*)
2787  ac_cv_path_MV="$MV" # Let the user override the test with a path.
2788  ;;
2789  *)
2790  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791for as_dir in $PATH
2792do
2793  IFS=$as_save_IFS
2794  test -z "$as_dir" && as_dir=.
2795    for ac_exec_ext in '' $ac_executable_extensions; do
2796  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2797    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
2798    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2799    break 2
2800  fi
2801done
2802  done
2803IFS=$as_save_IFS
2804
2805  ;;
2806esac
2807fi
2808MV=$ac_cv_path_MV
2809if test -n "$MV"; then
2810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
2811$as_echo "$MV" >&6; }
2812else
2813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2814$as_echo "no" >&6; }
2815fi
2816
2817
2818# Extract the first word of "cp", so it can be a program name with args.
2819set dummy cp; ac_word=$2
2820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821$as_echo_n "checking for $ac_word... " >&6; }
2822if ${ac_cv_path_CP+:} false; then :
2823  $as_echo_n "(cached) " >&6
2824else
2825  case $CP in
2826  [\\/]* | ?:[\\/]*)
2827  ac_cv_path_CP="$CP" # Let the user override the test with a path.
2828  ;;
2829  *)
2830  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831for as_dir in $PATH
2832do
2833  IFS=$as_save_IFS
2834  test -z "$as_dir" && as_dir=.
2835    for ac_exec_ext in '' $ac_executable_extensions; do
2836  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2837    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
2838    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2839    break 2
2840  fi
2841done
2842  done
2843IFS=$as_save_IFS
2844
2845  ;;
2846esac
2847fi
2848CP=$ac_cv_path_CP
2849if test -n "$CP"; then
2850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
2851$as_echo "$CP" >&6; }
2852else
2853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854$as_echo "no" >&6; }
2855fi
2856
2857
2858# Extract the first word of "ln", so it can be a program name with args.
2859set dummy ln; ac_word=$2
2860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2861$as_echo_n "checking for $ac_word... " >&6; }
2862if ${ac_cv_path_LN+:} false; then :
2863  $as_echo_n "(cached) " >&6
2864else
2865  case $LN in
2866  [\\/]* | ?:[\\/]*)
2867  ac_cv_path_LN="$LN" # Let the user override the test with a path.
2868  ;;
2869  *)
2870  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871for as_dir in $PATH
2872do
2873  IFS=$as_save_IFS
2874  test -z "$as_dir" && as_dir=.
2875    for ac_exec_ext in '' $ac_executable_extensions; do
2876  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2877    ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
2878    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2879    break 2
2880  fi
2881done
2882  done
2883IFS=$as_save_IFS
2884
2885  ;;
2886esac
2887fi
2888LN=$ac_cv_path_LN
2889if test -n "$LN"; then
2890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
2891$as_echo "$LN" >&6; }
2892else
2893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2894$as_echo "no" >&6; }
2895fi
2896
2897
2898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2899$as_echo_n "checking whether ln -s works... " >&6; }
2900LN_S=$as_ln_s
2901if test "$LN_S" = "ln -s"; then
2902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2903$as_echo "yes" >&6; }
2904else
2905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2906$as_echo "no, using $LN_S" >&6; }
2907fi
2908
2909# Extract the first word of "tar", so it can be a program name with args.
2910set dummy tar; ac_word=$2
2911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912$as_echo_n "checking for $ac_word... " >&6; }
2913if ${ac_cv_path_TAR+:} false; then :
2914  $as_echo_n "(cached) " >&6
2915else
2916  case $TAR in
2917  [\\/]* | ?:[\\/]*)
2918  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
2919  ;;
2920  *)
2921  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922for as_dir in $PATH
2923do
2924  IFS=$as_save_IFS
2925  test -z "$as_dir" && as_dir=.
2926    for ac_exec_ext in '' $ac_executable_extensions; do
2927  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2928    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
2929    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2930    break 2
2931  fi
2932done
2933  done
2934IFS=$as_save_IFS
2935
2936  ;;
2937esac
2938fi
2939TAR=$ac_cv_path_TAR
2940if test -n "$TAR"; then
2941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
2942$as_echo "$TAR" >&6; }
2943else
2944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945$as_echo "no" >&6; }
2946fi
2947
2948
2949# Extract the first word of "ar", so it can be a program name with args.
2950set dummy ar; ac_word=$2
2951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952$as_echo_n "checking for $ac_word... " >&6; }
2953if ${ac_cv_path_AR+:} false; then :
2954  $as_echo_n "(cached) " >&6
2955else
2956  case $AR in
2957  [\\/]* | ?:[\\/]*)
2958  ac_cv_path_AR="$AR" # Let the user override the test with a path.
2959  ;;
2960  *)
2961  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962for as_dir in $PATH
2963do
2964  IFS=$as_save_IFS
2965  test -z "$as_dir" && as_dir=.
2966    for ac_exec_ext in '' $ac_executable_extensions; do
2967  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2968    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
2969    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2970    break 2
2971  fi
2972done
2973  done
2974IFS=$as_save_IFS
2975
2976  ;;
2977esac
2978fi
2979AR=$ac_cv_path_AR
2980if test -n "$AR"; then
2981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
2982$as_echo "$AR" >&6; }
2983else
2984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985$as_echo "no" >&6; }
2986fi
2987
2988
2989# Extract the first word of "ranlib", so it can be a program name with args.
2990set dummy ranlib; ac_word=$2
2991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2992$as_echo_n "checking for $ac_word... " >&6; }
2993if ${ac_cv_path_RANLIB+:} false; then :
2994  $as_echo_n "(cached) " >&6
2995else
2996  case $RANLIB in
2997  [\\/]* | ?:[\\/]*)
2998  ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
2999  ;;
3000  *)
3001  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002for as_dir in $PATH
3003do
3004  IFS=$as_save_IFS
3005  test -z "$as_dir" && as_dir=.
3006    for ac_exec_ext in '' $ac_executable_extensions; do
3007  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3008    ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
3009    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3010    break 2
3011  fi
3012done
3013  done
3014IFS=$as_save_IFS
3015
3016  ;;
3017esac
3018fi
3019RANLIB=$ac_cv_path_RANLIB
3020if test -n "$RANLIB"; then
3021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3022$as_echo "$RANLIB" >&6; }
3023else
3024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3025$as_echo "no" >&6; }
3026fi
3027
3028
3029
3030ac_ext=c
3031ac_cpp='$CPP $CPPFLAGS'
3032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3034ac_compiler_gnu=$ac_cv_c_compiler_gnu
3035if test -n "$ac_tool_prefix"; then
3036  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3037set dummy ${ac_tool_prefix}gcc; ac_word=$2
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039$as_echo_n "checking for $ac_word... " >&6; }
3040if ${ac_cv_prog_CC+:} false; then :
3041  $as_echo_n "(cached) " >&6
3042else
3043  if test -n "$CC"; then
3044  ac_cv_prog_CC="$CC" # Let the user override the test.
3045else
3046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047for as_dir in $PATH
3048do
3049  IFS=$as_save_IFS
3050  test -z "$as_dir" && as_dir=.
3051    for ac_exec_ext in '' $ac_executable_extensions; do
3052  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3053    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3054    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3055    break 2
3056  fi
3057done
3058  done
3059IFS=$as_save_IFS
3060
3061fi
3062fi
3063CC=$ac_cv_prog_CC
3064if test -n "$CC"; then
3065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3066$as_echo "$CC" >&6; }
3067else
3068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069$as_echo "no" >&6; }
3070fi
3071
3072
3073fi
3074if test -z "$ac_cv_prog_CC"; then
3075  ac_ct_CC=$CC
3076  # Extract the first word of "gcc", so it can be a program name with args.
3077set dummy gcc; ac_word=$2
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079$as_echo_n "checking for $ac_word... " >&6; }
3080if ${ac_cv_prog_ac_ct_CC+:} false; then :
3081  $as_echo_n "(cached) " >&6
3082else
3083  if test -n "$ac_ct_CC"; then
3084  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3085else
3086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087for as_dir in $PATH
3088do
3089  IFS=$as_save_IFS
3090  test -z "$as_dir" && as_dir=.
3091    for ac_exec_ext in '' $ac_executable_extensions; do
3092  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3093    ac_cv_prog_ac_ct_CC="gcc"
3094    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3095    break 2
3096  fi
3097done
3098  done
3099IFS=$as_save_IFS
3100
3101fi
3102fi
3103ac_ct_CC=$ac_cv_prog_ac_ct_CC
3104if test -n "$ac_ct_CC"; then
3105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3106$as_echo "$ac_ct_CC" >&6; }
3107else
3108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109$as_echo "no" >&6; }
3110fi
3111
3112  if test "x$ac_ct_CC" = x; then
3113    CC=""
3114  else
3115    case $cross_compiling:$ac_tool_warned in
3116yes:)
3117{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3118$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3119ac_tool_warned=yes ;;
3120esac
3121    CC=$ac_ct_CC
3122  fi
3123else
3124  CC="$ac_cv_prog_CC"
3125fi
3126
3127if test -z "$CC"; then
3128          if test -n "$ac_tool_prefix"; then
3129    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3130set dummy ${ac_tool_prefix}cc; ac_word=$2
3131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132$as_echo_n "checking for $ac_word... " >&6; }
3133if ${ac_cv_prog_CC+:} false; then :
3134  $as_echo_n "(cached) " >&6
3135else
3136  if test -n "$CC"; then
3137  ac_cv_prog_CC="$CC" # Let the user override the test.
3138else
3139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140for as_dir in $PATH
3141do
3142  IFS=$as_save_IFS
3143  test -z "$as_dir" && as_dir=.
3144    for ac_exec_ext in '' $ac_executable_extensions; do
3145  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3146    ac_cv_prog_CC="${ac_tool_prefix}cc"
3147    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3148    break 2
3149  fi
3150done
3151  done
3152IFS=$as_save_IFS
3153
3154fi
3155fi
3156CC=$ac_cv_prog_CC
3157if test -n "$CC"; then
3158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3159$as_echo "$CC" >&6; }
3160else
3161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162$as_echo "no" >&6; }
3163fi
3164
3165
3166  fi
3167fi
3168if test -z "$CC"; then
3169  # Extract the first word of "cc", so it can be a program name with args.
3170set dummy cc; ac_word=$2
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3172$as_echo_n "checking for $ac_word... " >&6; }
3173if ${ac_cv_prog_CC+:} false; then :
3174  $as_echo_n "(cached) " >&6
3175else
3176  if test -n "$CC"; then
3177  ac_cv_prog_CC="$CC" # Let the user override the test.
3178else
3179  ac_prog_rejected=no
3180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181for as_dir in $PATH
3182do
3183  IFS=$as_save_IFS
3184  test -z "$as_dir" && as_dir=.
3185    for ac_exec_ext in '' $ac_executable_extensions; do
3186  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3187    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3188       ac_prog_rejected=yes
3189       continue
3190     fi
3191    ac_cv_prog_CC="cc"
3192    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3193    break 2
3194  fi
3195done
3196  done
3197IFS=$as_save_IFS
3198
3199if test $ac_prog_rejected = yes; then
3200  # We found a bogon in the path, so make sure we never use it.
3201  set dummy $ac_cv_prog_CC
3202  shift
3203  if test $# != 0; then
3204    # We chose a different compiler from the bogus one.
3205    # However, it has the same basename, so the bogon will be chosen
3206    # first if we set CC to just the basename; use the full file name.
3207    shift
3208    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3209  fi
3210fi
3211fi
3212fi
3213CC=$ac_cv_prog_CC
3214if test -n "$CC"; then
3215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3216$as_echo "$CC" >&6; }
3217else
3218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219$as_echo "no" >&6; }
3220fi
3221
3222
3223fi
3224if test -z "$CC"; then
3225  if test -n "$ac_tool_prefix"; then
3226  for ac_prog in cl.exe
3227  do
3228    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3229set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3231$as_echo_n "checking for $ac_word... " >&6; }
3232if ${ac_cv_prog_CC+:} false; then :
3233  $as_echo_n "(cached) " >&6
3234else
3235  if test -n "$CC"; then
3236  ac_cv_prog_CC="$CC" # Let the user override the test.
3237else
3238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239for as_dir in $PATH
3240do
3241  IFS=$as_save_IFS
3242  test -z "$as_dir" && as_dir=.
3243    for ac_exec_ext in '' $ac_executable_extensions; do
3244  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3245    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3247    break 2
3248  fi
3249done
3250  done
3251IFS=$as_save_IFS
3252
3253fi
3254fi
3255CC=$ac_cv_prog_CC
3256if test -n "$CC"; then
3257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3258$as_echo "$CC" >&6; }
3259else
3260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261$as_echo "no" >&6; }
3262fi
3263
3264
3265    test -n "$CC" && break
3266  done
3267fi
3268if test -z "$CC"; then
3269  ac_ct_CC=$CC
3270  for ac_prog in cl.exe
3271do
3272  # Extract the first word of "$ac_prog", so it can be a program name with args.
3273set dummy $ac_prog; ac_word=$2
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3275$as_echo_n "checking for $ac_word... " >&6; }
3276if ${ac_cv_prog_ac_ct_CC+:} false; then :
3277  $as_echo_n "(cached) " >&6
3278else
3279  if test -n "$ac_ct_CC"; then
3280  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3281else
3282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283for as_dir in $PATH
3284do
3285  IFS=$as_save_IFS
3286  test -z "$as_dir" && as_dir=.
3287    for ac_exec_ext in '' $ac_executable_extensions; do
3288  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3289    ac_cv_prog_ac_ct_CC="$ac_prog"
3290    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3291    break 2
3292  fi
3293done
3294  done
3295IFS=$as_save_IFS
3296
3297fi
3298fi
3299ac_ct_CC=$ac_cv_prog_ac_ct_CC
3300if test -n "$ac_ct_CC"; then
3301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3302$as_echo "$ac_ct_CC" >&6; }
3303else
3304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305$as_echo "no" >&6; }
3306fi
3307
3308
3309  test -n "$ac_ct_CC" && break
3310done
3311
3312  if test "x$ac_ct_CC" = x; then
3313    CC=""
3314  else
3315    case $cross_compiling:$ac_tool_warned in
3316yes:)
3317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3319ac_tool_warned=yes ;;
3320esac
3321    CC=$ac_ct_CC
3322  fi
3323fi
3324
3325fi
3326
3327
3328test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3330as_fn_error $? "no acceptable C compiler found in \$PATH
3331See \`config.log' for more details" "$LINENO" 5; }
3332
3333# Provide some information about the compiler.
3334$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3335set X $ac_compile
3336ac_compiler=$2
3337for ac_option in --version -v -V -qversion; do
3338  { { ac_try="$ac_compiler $ac_option >&5"
3339case "(($ac_try" in
3340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341  *) ac_try_echo=$ac_try;;
3342esac
3343eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3344$as_echo "$ac_try_echo"; } >&5
3345  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3346  ac_status=$?
3347  if test -s conftest.err; then
3348    sed '10a\
3349... rest of stderr output deleted ...
3350         10q' conftest.err >conftest.er1
3351    cat conftest.er1 >&5
3352  fi
3353  rm -f conftest.er1 conftest.err
3354  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3355  test $ac_status = 0; }
3356done
3357
3358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3359/* end confdefs.h.  */
3360
3361int
3362main ()
3363{
3364
3365  ;
3366  return 0;
3367}
3368_ACEOF
3369ac_clean_files_save=$ac_clean_files
3370ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3371# Try to create an executable without -o first, disregard a.out.
3372# It will help us diagnose broken compilers, and finding out an intuition
3373# of exeext.
3374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3375$as_echo_n "checking whether the C compiler works... " >&6; }
3376ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3377
3378# The possible output files:
3379ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3380
3381ac_rmfiles=
3382for ac_file in $ac_files
3383do
3384  case $ac_file in
3385    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3386    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3387  esac
3388done
3389rm -f $ac_rmfiles
3390
3391if { { ac_try="$ac_link_default"
3392case "(($ac_try" in
3393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394  *) ac_try_echo=$ac_try;;
3395esac
3396eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3397$as_echo "$ac_try_echo"; } >&5
3398  (eval "$ac_link_default") 2>&5
3399  ac_status=$?
3400  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401  test $ac_status = 0; }; then :
3402  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3403# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3404# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3405# so that the user can short-circuit this test for compilers unknown to
3406# Autoconf.
3407for ac_file in $ac_files ''
3408do
3409  test -f "$ac_file" || continue
3410  case $ac_file in
3411    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3412	;;
3413    [ab].out )
3414	# We found the default executable, but exeext='' is most
3415	# certainly right.
3416	break;;
3417    *.* )
3418	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3419	then :; else
3420	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3421	fi
3422	# We set ac_cv_exeext here because the later test for it is not
3423	# safe: cross compilers may not add the suffix if given an `-o'
3424	# argument, so we may need to know it at that point already.
3425	# Even if this section looks crufty: it has the advantage of
3426	# actually working.
3427	break;;
3428    * )
3429	break;;
3430  esac
3431done
3432test "$ac_cv_exeext" = no && ac_cv_exeext=
3433
3434else
3435  ac_file=''
3436fi
3437if test -z "$ac_file"; then :
3438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439$as_echo "no" >&6; }
3440$as_echo "$as_me: failed program was:" >&5
3441sed 's/^/| /' conftest.$ac_ext >&5
3442
3443{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3444$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3445as_fn_error 77 "C compiler cannot create executables
3446See \`config.log' for more details" "$LINENO" 5; }
3447else
3448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3449$as_echo "yes" >&6; }
3450fi
3451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3452$as_echo_n "checking for C compiler default output file name... " >&6; }
3453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3454$as_echo "$ac_file" >&6; }
3455ac_exeext=$ac_cv_exeext
3456
3457rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3458ac_clean_files=$ac_clean_files_save
3459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3460$as_echo_n "checking for suffix of executables... " >&6; }
3461if { { ac_try="$ac_link"
3462case "(($ac_try" in
3463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464  *) ac_try_echo=$ac_try;;
3465esac
3466eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3467$as_echo "$ac_try_echo"; } >&5
3468  (eval "$ac_link") 2>&5
3469  ac_status=$?
3470  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471  test $ac_status = 0; }; then :
3472  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3473# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3474# work properly (i.e., refer to `conftest.exe'), while it won't with
3475# `rm'.
3476for ac_file in conftest.exe conftest conftest.*; do
3477  test -f "$ac_file" || continue
3478  case $ac_file in
3479    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3480    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3481	  break;;
3482    * ) break;;
3483  esac
3484done
3485else
3486  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3487$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3488as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3489See \`config.log' for more details" "$LINENO" 5; }
3490fi
3491rm -f conftest conftest$ac_cv_exeext
3492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3493$as_echo "$ac_cv_exeext" >&6; }
3494
3495rm -f conftest.$ac_ext
3496EXEEXT=$ac_cv_exeext
3497ac_exeext=$EXEEXT
3498cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499/* end confdefs.h.  */
3500#include <stdio.h>
3501int
3502main ()
3503{
3504FILE *f = fopen ("conftest.out", "w");
3505 return ferror (f) || fclose (f) != 0;
3506
3507  ;
3508  return 0;
3509}
3510_ACEOF
3511ac_clean_files="$ac_clean_files conftest.out"
3512# Check that the compiler produces executables we can run.  If not, either
3513# the compiler is broken, or we cross compile.
3514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3515$as_echo_n "checking whether we are cross compiling... " >&6; }
3516if test "$cross_compiling" != yes; then
3517  { { ac_try="$ac_link"
3518case "(($ac_try" in
3519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520  *) ac_try_echo=$ac_try;;
3521esac
3522eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3523$as_echo "$ac_try_echo"; } >&5
3524  (eval "$ac_link") 2>&5
3525  ac_status=$?
3526  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3527  test $ac_status = 0; }
3528  if { ac_try='./conftest$ac_cv_exeext'
3529  { { case "(($ac_try" in
3530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531  *) ac_try_echo=$ac_try;;
3532esac
3533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3534$as_echo "$ac_try_echo"; } >&5
3535  (eval "$ac_try") 2>&5
3536  ac_status=$?
3537  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3538  test $ac_status = 0; }; }; then
3539    cross_compiling=no
3540  else
3541    if test "$cross_compiling" = maybe; then
3542	cross_compiling=yes
3543    else
3544	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3545$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3546as_fn_error $? "cannot run C compiled programs.
3547If you meant to cross compile, use \`--host'.
3548See \`config.log' for more details" "$LINENO" 5; }
3549    fi
3550  fi
3551fi
3552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3553$as_echo "$cross_compiling" >&6; }
3554
3555rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3556ac_clean_files=$ac_clean_files_save
3557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3558$as_echo_n "checking for suffix of object files... " >&6; }
3559if ${ac_cv_objext+:} false; then :
3560  $as_echo_n "(cached) " >&6
3561else
3562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563/* end confdefs.h.  */
3564
3565int
3566main ()
3567{
3568
3569  ;
3570  return 0;
3571}
3572_ACEOF
3573rm -f conftest.o conftest.obj
3574if { { ac_try="$ac_compile"
3575case "(($ac_try" in
3576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577  *) ac_try_echo=$ac_try;;
3578esac
3579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580$as_echo "$ac_try_echo"; } >&5
3581  (eval "$ac_compile") 2>&5
3582  ac_status=$?
3583  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584  test $ac_status = 0; }; then :
3585  for ac_file in conftest.o conftest.obj conftest.*; do
3586  test -f "$ac_file" || continue;
3587  case $ac_file in
3588    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3589    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3590       break;;
3591  esac
3592done
3593else
3594  $as_echo "$as_me: failed program was:" >&5
3595sed 's/^/| /' conftest.$ac_ext >&5
3596
3597{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3598$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3599as_fn_error $? "cannot compute suffix of object files: cannot compile
3600See \`config.log' for more details" "$LINENO" 5; }
3601fi
3602rm -f conftest.$ac_cv_objext conftest.$ac_ext
3603fi
3604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3605$as_echo "$ac_cv_objext" >&6; }
3606OBJEXT=$ac_cv_objext
3607ac_objext=$OBJEXT
3608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3609$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3610if ${ac_cv_c_compiler_gnu+:} false; then :
3611  $as_echo_n "(cached) " >&6
3612else
3613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614/* end confdefs.h.  */
3615
3616int
3617main ()
3618{
3619#ifndef __GNUC__
3620       choke me
3621#endif
3622
3623  ;
3624  return 0;
3625}
3626_ACEOF
3627if ac_fn_c_try_compile "$LINENO"; then :
3628  ac_compiler_gnu=yes
3629else
3630  ac_compiler_gnu=no
3631fi
3632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3633ac_cv_c_compiler_gnu=$ac_compiler_gnu
3634
3635fi
3636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3637$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3638if test $ac_compiler_gnu = yes; then
3639  GCC=yes
3640else
3641  GCC=
3642fi
3643ac_test_CFLAGS=${CFLAGS+set}
3644ac_save_CFLAGS=$CFLAGS
3645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3646$as_echo_n "checking whether $CC accepts -g... " >&6; }
3647if ${ac_cv_prog_cc_g+:} false; then :
3648  $as_echo_n "(cached) " >&6
3649else
3650  ac_save_c_werror_flag=$ac_c_werror_flag
3651   ac_c_werror_flag=yes
3652   ac_cv_prog_cc_g=no
3653   CFLAGS="-g"
3654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655/* end confdefs.h.  */
3656
3657int
3658main ()
3659{
3660
3661  ;
3662  return 0;
3663}
3664_ACEOF
3665if ac_fn_c_try_compile "$LINENO"; then :
3666  ac_cv_prog_cc_g=yes
3667else
3668  CFLAGS=""
3669      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670/* end confdefs.h.  */
3671
3672int
3673main ()
3674{
3675
3676  ;
3677  return 0;
3678}
3679_ACEOF
3680if ac_fn_c_try_compile "$LINENO"; then :
3681
3682else
3683  ac_c_werror_flag=$ac_save_c_werror_flag
3684	 CFLAGS="-g"
3685	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686/* end confdefs.h.  */
3687
3688int
3689main ()
3690{
3691
3692  ;
3693  return 0;
3694}
3695_ACEOF
3696if ac_fn_c_try_compile "$LINENO"; then :
3697  ac_cv_prog_cc_g=yes
3698fi
3699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700fi
3701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3702fi
3703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3704   ac_c_werror_flag=$ac_save_c_werror_flag
3705fi
3706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3707$as_echo "$ac_cv_prog_cc_g" >&6; }
3708if test "$ac_test_CFLAGS" = set; then
3709  CFLAGS=$ac_save_CFLAGS
3710elif test $ac_cv_prog_cc_g = yes; then
3711  if test "$GCC" = yes; then
3712    CFLAGS="-g -O2"
3713  else
3714    CFLAGS="-g"
3715  fi
3716else
3717  if test "$GCC" = yes; then
3718    CFLAGS="-O2"
3719  else
3720    CFLAGS=
3721  fi
3722fi
3723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3724$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3725if ${ac_cv_prog_cc_c89+:} false; then :
3726  $as_echo_n "(cached) " >&6
3727else
3728  ac_cv_prog_cc_c89=no
3729ac_save_CC=$CC
3730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731/* end confdefs.h.  */
3732#include <stdarg.h>
3733#include <stdio.h>
3734struct stat;
3735/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3736struct buf { int x; };
3737FILE * (*rcsopen) (struct buf *, struct stat *, int);
3738static char *e (p, i)
3739     char **p;
3740     int i;
3741{
3742  return p[i];
3743}
3744static char *f (char * (*g) (char **, int), char **p, ...)
3745{
3746  char *s;
3747  va_list v;
3748  va_start (v,p);
3749  s = g (p, va_arg (v,int));
3750  va_end (v);
3751  return s;
3752}
3753
3754/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3755   function prototypes and stuff, but not '\xHH' hex character constants.
3756   These don't provoke an error unfortunately, instead are silently treated
3757   as 'x'.  The following induces an error, until -std is added to get
3758   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3759   array size at least.  It's necessary to write '\x00'==0 to get something
3760   that's true only with -std.  */
3761int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3762
3763/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3764   inside strings and character constants.  */
3765#define FOO(x) 'x'
3766int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3767
3768int test (int i, double x);
3769struct s1 {int (*f) (int a);};
3770struct s2 {int (*f) (double a);};
3771int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3772int argc;
3773char **argv;
3774int
3775main ()
3776{
3777return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3778  ;
3779  return 0;
3780}
3781_ACEOF
3782for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3783	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3784do
3785  CC="$ac_save_CC $ac_arg"
3786  if ac_fn_c_try_compile "$LINENO"; then :
3787  ac_cv_prog_cc_c89=$ac_arg
3788fi
3789rm -f core conftest.err conftest.$ac_objext
3790  test "x$ac_cv_prog_cc_c89" != "xno" && break
3791done
3792rm -f conftest.$ac_ext
3793CC=$ac_save_CC
3794
3795fi
3796# AC_CACHE_VAL
3797case "x$ac_cv_prog_cc_c89" in
3798  x)
3799    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3800$as_echo "none needed" >&6; } ;;
3801  xno)
3802    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3803$as_echo "unsupported" >&6; } ;;
3804  *)
3805    CC="$CC $ac_cv_prog_cc_c89"
3806    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3807$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3808esac
3809if test "x$ac_cv_prog_cc_c89" != xno; then :
3810
3811fi
3812
3813ac_ext=c
3814ac_cpp='$CPP $CPPFLAGS'
3815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817ac_compiler_gnu=$ac_cv_c_compiler_gnu
3818
3819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3820$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3821if ${ac_cv_prog_cc_c99+:} false; then :
3822  $as_echo_n "(cached) " >&6
3823else
3824  ac_cv_prog_cc_c99=no
3825ac_save_CC=$CC
3826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827/* end confdefs.h.  */
3828#include <stdarg.h>
3829#include <stdbool.h>
3830#include <stdlib.h>
3831#include <wchar.h>
3832#include <stdio.h>
3833
3834// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3835#define debug(...) fprintf (stderr, __VA_ARGS__)
3836#define showlist(...) puts (#__VA_ARGS__)
3837#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3838static void
3839test_varargs_macros (void)
3840{
3841  int x = 1234;
3842  int y = 5678;
3843  debug ("Flag");
3844  debug ("X = %d\n", x);
3845  showlist (The first, second, and third items.);
3846  report (x>y, "x is %d but y is %d", x, y);
3847}
3848
3849// Check long long types.
3850#define BIG64 18446744073709551615ull
3851#define BIG32 4294967295ul
3852#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3853#if !BIG_OK
3854  your preprocessor is broken;
3855#endif
3856#if BIG_OK
3857#else
3858  your preprocessor is broken;
3859#endif
3860static long long int bignum = -9223372036854775807LL;
3861static unsigned long long int ubignum = BIG64;
3862
3863struct incomplete_array
3864{
3865  int datasize;
3866  double data[];
3867};
3868
3869struct named_init {
3870  int number;
3871  const wchar_t *name;
3872  double average;
3873};
3874
3875typedef const char *ccp;
3876
3877static inline int
3878test_restrict (ccp restrict text)
3879{
3880  // See if C++-style comments work.
3881  // Iterate through items via the restricted pointer.
3882  // Also check for declarations in for loops.
3883  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3884    continue;
3885  return 0;
3886}
3887
3888// Check varargs and va_copy.
3889static void
3890test_varargs (const char *format, ...)
3891{
3892  va_list args;
3893  va_start (args, format);
3894  va_list args_copy;
3895  va_copy (args_copy, args);
3896
3897  const char *str;
3898  int number;
3899  float fnumber;
3900
3901  while (*format)
3902    {
3903      switch (*format++)
3904	{
3905	case 's': // string
3906	  str = va_arg (args_copy, const char *);
3907	  break;
3908	case 'd': // int
3909	  number = va_arg (args_copy, int);
3910	  break;
3911	case 'f': // float
3912	  fnumber = va_arg (args_copy, double);
3913	  break;
3914	default:
3915	  break;
3916	}
3917    }
3918  va_end (args_copy);
3919  va_end (args);
3920}
3921
3922int
3923main ()
3924{
3925
3926  // Check bool.
3927  _Bool success = false;
3928
3929  // Check restrict.
3930  if (test_restrict ("String literal") == 0)
3931    success = true;
3932  char *restrict newvar = "Another string";
3933
3934  // Check varargs.
3935  test_varargs ("s, d' f .", "string", 65, 34.234);
3936  test_varargs_macros ();
3937
3938  // Check flexible array members.
3939  struct incomplete_array *ia =
3940    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3941  ia->datasize = 10;
3942  for (int i = 0; i < ia->datasize; ++i)
3943    ia->data[i] = i * 1.234;
3944
3945  // Check named initializers.
3946  struct named_init ni = {
3947    .number = 34,
3948    .name = L"Test wide string",
3949    .average = 543.34343,
3950  };
3951
3952  ni.number = 58;
3953
3954  int dynamic_array[ni.number];
3955  dynamic_array[ni.number - 1] = 543;
3956
3957  // work around unused variable warnings
3958  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3959	  || dynamic_array[ni.number - 1] != 543);
3960
3961  ;
3962  return 0;
3963}
3964_ACEOF
3965for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3966do
3967  CC="$ac_save_CC $ac_arg"
3968  if ac_fn_c_try_compile "$LINENO"; then :
3969  ac_cv_prog_cc_c99=$ac_arg
3970fi
3971rm -f core conftest.err conftest.$ac_objext
3972  test "x$ac_cv_prog_cc_c99" != "xno" && break
3973done
3974rm -f conftest.$ac_ext
3975CC=$ac_save_CC
3976
3977fi
3978# AC_CACHE_VAL
3979case "x$ac_cv_prog_cc_c99" in
3980  x)
3981    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3982$as_echo "none needed" >&6; } ;;
3983  xno)
3984    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3985$as_echo "unsupported" >&6; } ;;
3986  *)
3987    CC="$CC $ac_cv_prog_cc_c99"
3988    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3989$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3990esac
3991if test "x$ac_cv_prog_cc_c99" != xno; then :
3992
3993fi
3994
3995
3996
3997ac_ext=c
3998ac_cpp='$CPP $CPPFLAGS'
3999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4001ac_compiler_gnu=$ac_cv_c_compiler_gnu
4002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4003$as_echo_n "checking how to run the C preprocessor... " >&6; }
4004# On Suns, sometimes $CPP names a directory.
4005if test -n "$CPP" && test -d "$CPP"; then
4006  CPP=
4007fi
4008if test -z "$CPP"; then
4009  if ${ac_cv_prog_CPP+:} false; then :
4010  $as_echo_n "(cached) " >&6
4011else
4012      # Double quotes because CPP needs to be expanded
4013    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4014    do
4015      ac_preproc_ok=false
4016for ac_c_preproc_warn_flag in '' yes
4017do
4018  # Use a header file that comes with gcc, so configuring glibc
4019  # with a fresh cross-compiler works.
4020  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4021  # <limits.h> exists even on freestanding compilers.
4022  # On the NeXT, cc -E runs the code through the compiler's parser,
4023  # not just through cpp. "Syntax error" is here to catch this case.
4024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025/* end confdefs.h.  */
4026#ifdef __STDC__
4027# include <limits.h>
4028#else
4029# include <assert.h>
4030#endif
4031		     Syntax error
4032_ACEOF
4033if ac_fn_c_try_cpp "$LINENO"; then :
4034
4035else
4036  # Broken: fails on valid input.
4037continue
4038fi
4039rm -f conftest.err conftest.i conftest.$ac_ext
4040
4041  # OK, works on sane cases.  Now check whether nonexistent headers
4042  # can be detected and how.
4043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044/* end confdefs.h.  */
4045#include <ac_nonexistent.h>
4046_ACEOF
4047if ac_fn_c_try_cpp "$LINENO"; then :
4048  # Broken: success on invalid input.
4049continue
4050else
4051  # Passes both tests.
4052ac_preproc_ok=:
4053break
4054fi
4055rm -f conftest.err conftest.i conftest.$ac_ext
4056
4057done
4058# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4059rm -f conftest.i conftest.err conftest.$ac_ext
4060if $ac_preproc_ok; then :
4061  break
4062fi
4063
4064    done
4065    ac_cv_prog_CPP=$CPP
4066
4067fi
4068  CPP=$ac_cv_prog_CPP
4069else
4070  ac_cv_prog_CPP=$CPP
4071fi
4072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4073$as_echo "$CPP" >&6; }
4074ac_preproc_ok=false
4075for ac_c_preproc_warn_flag in '' yes
4076do
4077  # Use a header file that comes with gcc, so configuring glibc
4078  # with a fresh cross-compiler works.
4079  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4080  # <limits.h> exists even on freestanding compilers.
4081  # On the NeXT, cc -E runs the code through the compiler's parser,
4082  # not just through cpp. "Syntax error" is here to catch this case.
4083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084/* end confdefs.h.  */
4085#ifdef __STDC__
4086# include <limits.h>
4087#else
4088# include <assert.h>
4089#endif
4090		     Syntax error
4091_ACEOF
4092if ac_fn_c_try_cpp "$LINENO"; then :
4093
4094else
4095  # Broken: fails on valid input.
4096continue
4097fi
4098rm -f conftest.err conftest.i conftest.$ac_ext
4099
4100  # OK, works on sane cases.  Now check whether nonexistent headers
4101  # can be detected and how.
4102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103/* end confdefs.h.  */
4104#include <ac_nonexistent.h>
4105_ACEOF
4106if ac_fn_c_try_cpp "$LINENO"; then :
4107  # Broken: success on invalid input.
4108continue
4109else
4110  # Passes both tests.
4111ac_preproc_ok=:
4112break
4113fi
4114rm -f conftest.err conftest.i conftest.$ac_ext
4115
4116done
4117# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4118rm -f conftest.i conftest.err conftest.$ac_ext
4119if $ac_preproc_ok; then :
4120
4121else
4122  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4123$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4124as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4125See \`config.log' for more details" "$LINENO" 5; }
4126fi
4127
4128ac_ext=c
4129ac_cpp='$CPP $CPPFLAGS'
4130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4132ac_compiler_gnu=$ac_cv_c_compiler_gnu
4133
4134
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4136$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4137if ${ac_cv_path_GREP+:} false; then :
4138  $as_echo_n "(cached) " >&6
4139else
4140  if test -z "$GREP"; then
4141  ac_path_GREP_found=false
4142  # Loop through the user's path and test for each of PROGNAME-LIST
4143  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4145do
4146  IFS=$as_save_IFS
4147  test -z "$as_dir" && as_dir=.
4148    for ac_prog in grep ggrep; do
4149    for ac_exec_ext in '' $ac_executable_extensions; do
4150      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4151      as_fn_executable_p "$ac_path_GREP" || continue
4152# Check for GNU ac_path_GREP and select it if it is found.
4153  # Check for GNU $ac_path_GREP
4154case `"$ac_path_GREP" --version 2>&1` in
4155*GNU*)
4156  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4157*)
4158  ac_count=0
4159  $as_echo_n 0123456789 >"conftest.in"
4160  while :
4161  do
4162    cat "conftest.in" "conftest.in" >"conftest.tmp"
4163    mv "conftest.tmp" "conftest.in"
4164    cp "conftest.in" "conftest.nl"
4165    $as_echo 'GREP' >> "conftest.nl"
4166    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4167    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4168    as_fn_arith $ac_count + 1 && ac_count=$as_val
4169    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4170      # Best one so far, save it but keep looking for a better one
4171      ac_cv_path_GREP="$ac_path_GREP"
4172      ac_path_GREP_max=$ac_count
4173    fi
4174    # 10*(2^10) chars as input seems more than enough
4175    test $ac_count -gt 10 && break
4176  done
4177  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4178esac
4179
4180      $ac_path_GREP_found && break 3
4181    done
4182  done
4183  done
4184IFS=$as_save_IFS
4185  if test -z "$ac_cv_path_GREP"; then
4186    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4187  fi
4188else
4189  ac_cv_path_GREP=$GREP
4190fi
4191
4192fi
4193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4194$as_echo "$ac_cv_path_GREP" >&6; }
4195 GREP="$ac_cv_path_GREP"
4196
4197
4198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4199$as_echo_n "checking for egrep... " >&6; }
4200if ${ac_cv_path_EGREP+:} false; then :
4201  $as_echo_n "(cached) " >&6
4202else
4203  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4204   then ac_cv_path_EGREP="$GREP -E"
4205   else
4206     if test -z "$EGREP"; then
4207  ac_path_EGREP_found=false
4208  # Loop through the user's path and test for each of PROGNAME-LIST
4209  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4211do
4212  IFS=$as_save_IFS
4213  test -z "$as_dir" && as_dir=.
4214    for ac_prog in egrep; do
4215    for ac_exec_ext in '' $ac_executable_extensions; do
4216      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4217      as_fn_executable_p "$ac_path_EGREP" || continue
4218# Check for GNU ac_path_EGREP and select it if it is found.
4219  # Check for GNU $ac_path_EGREP
4220case `"$ac_path_EGREP" --version 2>&1` in
4221*GNU*)
4222  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4223*)
4224  ac_count=0
4225  $as_echo_n 0123456789 >"conftest.in"
4226  while :
4227  do
4228    cat "conftest.in" "conftest.in" >"conftest.tmp"
4229    mv "conftest.tmp" "conftest.in"
4230    cp "conftest.in" "conftest.nl"
4231    $as_echo 'EGREP' >> "conftest.nl"
4232    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4233    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4234    as_fn_arith $ac_count + 1 && ac_count=$as_val
4235    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4236      # Best one so far, save it but keep looking for a better one
4237      ac_cv_path_EGREP="$ac_path_EGREP"
4238      ac_path_EGREP_max=$ac_count
4239    fi
4240    # 10*(2^10) chars as input seems more than enough
4241    test $ac_count -gt 10 && break
4242  done
4243  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4244esac
4245
4246      $ac_path_EGREP_found && break 3
4247    done
4248  done
4249  done
4250IFS=$as_save_IFS
4251  if test -z "$ac_cv_path_EGREP"; then
4252    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4253  fi
4254else
4255  ac_cv_path_EGREP=$EGREP
4256fi
4257
4258   fi
4259fi
4260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4261$as_echo "$ac_cv_path_EGREP" >&6; }
4262 EGREP="$ac_cv_path_EGREP"
4263
4264
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4266$as_echo_n "checking for ANSI C header files... " >&6; }
4267if ${ac_cv_header_stdc+:} false; then :
4268  $as_echo_n "(cached) " >&6
4269else
4270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271/* end confdefs.h.  */
4272#include <stdlib.h>
4273#include <stdarg.h>
4274#include <string.h>
4275#include <float.h>
4276
4277int
4278main ()
4279{
4280
4281  ;
4282  return 0;
4283}
4284_ACEOF
4285if ac_fn_c_try_compile "$LINENO"; then :
4286  ac_cv_header_stdc=yes
4287else
4288  ac_cv_header_stdc=no
4289fi
4290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4291
4292if test $ac_cv_header_stdc = yes; then
4293  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295/* end confdefs.h.  */
4296#include <string.h>
4297
4298_ACEOF
4299if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4300  $EGREP "memchr" >/dev/null 2>&1; then :
4301
4302else
4303  ac_cv_header_stdc=no
4304fi
4305rm -f conftest*
4306
4307fi
4308
4309if test $ac_cv_header_stdc = yes; then
4310  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312/* end confdefs.h.  */
4313#include <stdlib.h>
4314
4315_ACEOF
4316if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4317  $EGREP "free" >/dev/null 2>&1; then :
4318
4319else
4320  ac_cv_header_stdc=no
4321fi
4322rm -f conftest*
4323
4324fi
4325
4326if test $ac_cv_header_stdc = yes; then
4327  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4328  if test "$cross_compiling" = yes; then :
4329  :
4330else
4331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332/* end confdefs.h.  */
4333#include <ctype.h>
4334#include <stdlib.h>
4335#if ((' ' & 0x0FF) == 0x020)
4336# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4337# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4338#else
4339# define ISLOWER(c) \
4340		   (('a' <= (c) && (c) <= 'i') \
4341		     || ('j' <= (c) && (c) <= 'r') \
4342		     || ('s' <= (c) && (c) <= 'z'))
4343# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4344#endif
4345
4346#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4347int
4348main ()
4349{
4350  int i;
4351  for (i = 0; i < 256; i++)
4352    if (XOR (islower (i), ISLOWER (i))
4353	|| toupper (i) != TOUPPER (i))
4354      return 2;
4355  return 0;
4356}
4357_ACEOF
4358if ac_fn_c_try_run "$LINENO"; then :
4359
4360else
4361  ac_cv_header_stdc=no
4362fi
4363rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4364  conftest.$ac_objext conftest.beam conftest.$ac_ext
4365fi
4366
4367fi
4368fi
4369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4370$as_echo "$ac_cv_header_stdc" >&6; }
4371if test $ac_cv_header_stdc = yes; then
4372
4373$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4374
4375fi
4376
4377# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4378for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4379		  inttypes.h stdint.h unistd.h
4380do :
4381  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4382ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4383"
4384if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4385  cat >>confdefs.h <<_ACEOF
4386#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4387_ACEOF
4388
4389fi
4390
4391done
4392
4393
4394
4395  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4396if test "x$ac_cv_header_minix_config_h" = xyes; then :
4397  MINIX=yes
4398else
4399  MINIX=
4400fi
4401
4402
4403  if test "$MINIX" = yes; then
4404
4405$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4406
4407
4408$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4409
4410
4411$as_echo "#define _MINIX 1" >>confdefs.h
4412
4413  fi
4414
4415
4416  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4417$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4418if ${ac_cv_safe_to_define___extensions__+:} false; then :
4419  $as_echo_n "(cached) " >&6
4420else
4421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4422/* end confdefs.h.  */
4423
4424#         define __EXTENSIONS__ 1
4425          $ac_includes_default
4426int
4427main ()
4428{
4429
4430  ;
4431  return 0;
4432}
4433_ACEOF
4434if ac_fn_c_try_compile "$LINENO"; then :
4435  ac_cv_safe_to_define___extensions__=yes
4436else
4437  ac_cv_safe_to_define___extensions__=no
4438fi
4439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4440fi
4441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4442$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4443  test $ac_cv_safe_to_define___extensions__ = yes &&
4444    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4445
4446  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4447
4448  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4449
4450  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4451
4452  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4453
4454
4455
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4457$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4458if ${ac_cv_c_bigendian+:} false; then :
4459  $as_echo_n "(cached) " >&6
4460else
4461  ac_cv_c_bigendian=unknown
4462    # See if we're dealing with a universal compiler.
4463    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464/* end confdefs.h.  */
4465#ifndef __APPLE_CC__
4466	       not a universal capable compiler
4467	     #endif
4468	     typedef int dummy;
4469
4470_ACEOF
4471if ac_fn_c_try_compile "$LINENO"; then :
4472
4473	# Check for potential -arch flags.  It is not universal unless
4474	# there are at least two -arch flags with different values.
4475	ac_arch=
4476	ac_prev=
4477	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4478	 if test -n "$ac_prev"; then
4479	   case $ac_word in
4480	     i?86 | x86_64 | ppc | ppc64)
4481	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4482		 ac_arch=$ac_word
4483	       else
4484		 ac_cv_c_bigendian=universal
4485		 break
4486	       fi
4487	       ;;
4488	   esac
4489	   ac_prev=
4490	 elif test "x$ac_word" = "x-arch"; then
4491	   ac_prev=arch
4492	 fi
4493       done
4494fi
4495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4496    if test $ac_cv_c_bigendian = unknown; then
4497      # See if sys/param.h defines the BYTE_ORDER macro.
4498      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499/* end confdefs.h.  */
4500#include <sys/types.h>
4501	     #include <sys/param.h>
4502
4503int
4504main ()
4505{
4506#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4507		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4508		     && LITTLE_ENDIAN)
4509	      bogus endian macros
4510	     #endif
4511
4512  ;
4513  return 0;
4514}
4515_ACEOF
4516if ac_fn_c_try_compile "$LINENO"; then :
4517  # It does; now see whether it defined to BIG_ENDIAN or not.
4518	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519/* end confdefs.h.  */
4520#include <sys/types.h>
4521		#include <sys/param.h>
4522
4523int
4524main ()
4525{
4526#if BYTE_ORDER != BIG_ENDIAN
4527		 not big endian
4528		#endif
4529
4530  ;
4531  return 0;
4532}
4533_ACEOF
4534if ac_fn_c_try_compile "$LINENO"; then :
4535  ac_cv_c_bigendian=yes
4536else
4537  ac_cv_c_bigendian=no
4538fi
4539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4540fi
4541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4542    fi
4543    if test $ac_cv_c_bigendian = unknown; then
4544      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4545      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4546/* end confdefs.h.  */
4547#include <limits.h>
4548
4549int
4550main ()
4551{
4552#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4553	      bogus endian macros
4554	     #endif
4555
4556  ;
4557  return 0;
4558}
4559_ACEOF
4560if ac_fn_c_try_compile "$LINENO"; then :
4561  # It does; now see whether it defined to _BIG_ENDIAN or not.
4562	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4563/* end confdefs.h.  */
4564#include <limits.h>
4565
4566int
4567main ()
4568{
4569#ifndef _BIG_ENDIAN
4570		 not big endian
4571		#endif
4572
4573  ;
4574  return 0;
4575}
4576_ACEOF
4577if ac_fn_c_try_compile "$LINENO"; then :
4578  ac_cv_c_bigendian=yes
4579else
4580  ac_cv_c_bigendian=no
4581fi
4582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4583fi
4584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4585    fi
4586    if test $ac_cv_c_bigendian = unknown; then
4587      # Compile a test program.
4588      if test "$cross_compiling" = yes; then :
4589  # Try to guess by grepping values from an object file.
4590	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591/* end confdefs.h.  */
4592short int ascii_mm[] =
4593		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4594		short int ascii_ii[] =
4595		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4596		int use_ascii (int i) {
4597		  return ascii_mm[i] + ascii_ii[i];
4598		}
4599		short int ebcdic_ii[] =
4600		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4601		short int ebcdic_mm[] =
4602		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4603		int use_ebcdic (int i) {
4604		  return ebcdic_mm[i] + ebcdic_ii[i];
4605		}
4606		extern int foo;
4607
4608int
4609main ()
4610{
4611return use_ascii (foo) == use_ebcdic (foo);
4612  ;
4613  return 0;
4614}
4615_ACEOF
4616if ac_fn_c_try_compile "$LINENO"; then :
4617  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4618	      ac_cv_c_bigendian=yes
4619	    fi
4620	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4621	      if test "$ac_cv_c_bigendian" = unknown; then
4622		ac_cv_c_bigendian=no
4623	      else
4624		# finding both strings is unlikely to happen, but who knows?
4625		ac_cv_c_bigendian=unknown
4626	      fi
4627	    fi
4628fi
4629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630else
4631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632/* end confdefs.h.  */
4633$ac_includes_default
4634int
4635main ()
4636{
4637
4638	     /* Are we little or big endian?  From Harbison&Steele.  */
4639	     union
4640	     {
4641	       long int l;
4642	       char c[sizeof (long int)];
4643	     } u;
4644	     u.l = 1;
4645	     return u.c[sizeof (long int) - 1] == 1;
4646
4647  ;
4648  return 0;
4649}
4650_ACEOF
4651if ac_fn_c_try_run "$LINENO"; then :
4652  ac_cv_c_bigendian=no
4653else
4654  ac_cv_c_bigendian=yes
4655fi
4656rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4657  conftest.$ac_objext conftest.beam conftest.$ac_ext
4658fi
4659
4660    fi
4661fi
4662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4663$as_echo "$ac_cv_c_bigendian" >&6; }
4664 case $ac_cv_c_bigendian in #(
4665   yes)
4666     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4667;; #(
4668   no)
4669      ;; #(
4670   universal)
4671
4672$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4673
4674     ;; #(
4675   *)
4676     as_fn_error $? "unknown endianness
4677 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4678 esac
4679
4680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4681$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4682set x ${MAKE-make}
4683ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4684if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4685  $as_echo_n "(cached) " >&6
4686else
4687  cat >conftest.make <<\_ACEOF
4688SHELL = /bin/sh
4689all:
4690	@echo '@@@%%%=$(MAKE)=@@@%%%'
4691_ACEOF
4692# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4693case `${MAKE-make} -f conftest.make 2>/dev/null` in
4694  *@@@%%%=?*=@@@%%%*)
4695    eval ac_cv_prog_make_${ac_make}_set=yes;;
4696  *)
4697    eval ac_cv_prog_make_${ac_make}_set=no;;
4698esac
4699rm -f conftest.make
4700fi
4701if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4703$as_echo "yes" >&6; }
4704  SET_MAKE=
4705else
4706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4707$as_echo "no" >&6; }
4708  SET_MAKE="MAKE=${MAKE-make}"
4709fi
4710
4711
4712
4713
4714if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4715	if test -n "$ac_tool_prefix"; then
4716  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4717set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719$as_echo_n "checking for $ac_word... " >&6; }
4720if ${ac_cv_path_PKG_CONFIG+:} false; then :
4721  $as_echo_n "(cached) " >&6
4722else
4723  case $PKG_CONFIG in
4724  [\\/]* | ?:[\\/]*)
4725  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4726  ;;
4727  *)
4728  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729for as_dir in $PATH
4730do
4731  IFS=$as_save_IFS
4732  test -z "$as_dir" && as_dir=.
4733    for ac_exec_ext in '' $ac_executable_extensions; do
4734  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4735    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4736    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4737    break 2
4738  fi
4739done
4740  done
4741IFS=$as_save_IFS
4742
4743  ;;
4744esac
4745fi
4746PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4747if test -n "$PKG_CONFIG"; then
4748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4749$as_echo "$PKG_CONFIG" >&6; }
4750else
4751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4752$as_echo "no" >&6; }
4753fi
4754
4755
4756fi
4757if test -z "$ac_cv_path_PKG_CONFIG"; then
4758  ac_pt_PKG_CONFIG=$PKG_CONFIG
4759  # Extract the first word of "pkg-config", so it can be a program name with args.
4760set dummy pkg-config; ac_word=$2
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4762$as_echo_n "checking for $ac_word... " >&6; }
4763if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4764  $as_echo_n "(cached) " >&6
4765else
4766  case $ac_pt_PKG_CONFIG in
4767  [\\/]* | ?:[\\/]*)
4768  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4769  ;;
4770  *)
4771  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772for as_dir in $PATH
4773do
4774  IFS=$as_save_IFS
4775  test -z "$as_dir" && as_dir=.
4776    for ac_exec_ext in '' $ac_executable_extensions; do
4777  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4778    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4779    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4780    break 2
4781  fi
4782done
4783  done
4784IFS=$as_save_IFS
4785
4786  ;;
4787esac
4788fi
4789ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4790if test -n "$ac_pt_PKG_CONFIG"; then
4791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4792$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4793else
4794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795$as_echo "no" >&6; }
4796fi
4797
4798  if test "x$ac_pt_PKG_CONFIG" = x; then
4799    PKG_CONFIG=""
4800  else
4801    case $cross_compiling:$ac_tool_warned in
4802yes:)
4803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4805ac_tool_warned=yes ;;
4806esac
4807    PKG_CONFIG=$ac_pt_PKG_CONFIG
4808  fi
4809else
4810  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4811fi
4812
4813fi
4814if test -n "$PKG_CONFIG"; then
4815	_pkg_min_version=0.9.0
4816	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4817$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4818	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4819		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4820$as_echo "yes" >&6; }
4821	else
4822		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4823$as_echo "no" >&6; }
4824		PKG_CONFIG=""
4825	fi
4826
4827fi
4828if test -z "$PKG_CONFIG"; then
4829	as_fn_error $? "pkg-config not found" "$LINENO" 5
4830fi
4831
4832PACKAGE=atheme
4833
4834VERSION=7.2.9
4835
4836
4837
4838$as_echo "#define VENDOR_STRING \"Atheme Development Group <http://atheme.github.io>\"" >>confdefs.h
4839
4840
4841
4842cat >>confdefs.h <<_ACEOF
4843#define PACKAGE "$PACKAGE"
4844_ACEOF
4845
4846
4847cat >>confdefs.h <<_ACEOF
4848#define VERSION "$VERSION"
4849_ACEOF
4850
4851
4852
4853# Find a good install program.  We prefer a C program (faster),
4854# so one script is as good as another.  But avoid the broken or
4855# incompatible versions:
4856# SysV /etc/install, /usr/sbin/install
4857# SunOS /usr/etc/install
4858# IRIX /sbin/install
4859# AIX /bin/install
4860# AmigaOS /C/install, which installs bootblocks on floppy discs
4861# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4862# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4863# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4864# OS/2's system install, which has a completely different semantic
4865# ./install, which can be erroneously created by make from ./install.sh.
4866# Reject install programs that cannot install multiple files.
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4868$as_echo_n "checking for a BSD-compatible install... " >&6; }
4869if test -z "$INSTALL"; then
4870if ${ac_cv_path_install+:} false; then :
4871  $as_echo_n "(cached) " >&6
4872else
4873  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874for as_dir in $PATH
4875do
4876  IFS=$as_save_IFS
4877  test -z "$as_dir" && as_dir=.
4878    # Account for people who put trailing slashes in PATH elements.
4879case $as_dir/ in #((
4880  ./ | .// | /[cC]/* | \
4881  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4882  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4883  /usr/ucb/* ) ;;
4884  *)
4885    # OSF1 and SCO ODT 3.0 have their own names for install.
4886    # Don't use installbsd from OSF since it installs stuff as root
4887    # by default.
4888    for ac_prog in ginstall scoinst install; do
4889      for ac_exec_ext in '' $ac_executable_extensions; do
4890	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4891	  if test $ac_prog = install &&
4892	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4893	    # AIX install.  It has an incompatible calling convention.
4894	    :
4895	  elif test $ac_prog = install &&
4896	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4897	    # program-specific install script used by HP pwplus--don't use.
4898	    :
4899	  else
4900	    rm -rf conftest.one conftest.two conftest.dir
4901	    echo one > conftest.one
4902	    echo two > conftest.two
4903	    mkdir conftest.dir
4904	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4905	      test -s conftest.one && test -s conftest.two &&
4906	      test -s conftest.dir/conftest.one &&
4907	      test -s conftest.dir/conftest.two
4908	    then
4909	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4910	      break 3
4911	    fi
4912	  fi
4913	fi
4914      done
4915    done
4916    ;;
4917esac
4918
4919  done
4920IFS=$as_save_IFS
4921
4922rm -rf conftest.one conftest.two conftest.dir
4923
4924fi
4925  if test "${ac_cv_path_install+set}" = set; then
4926    INSTALL=$ac_cv_path_install
4927  else
4928    # As a last resort, use the slow shell script.  Don't cache a
4929    # value for INSTALL within a source directory, because that will
4930    # break other packages using the cache if that directory is
4931    # removed, or if the value is a relative name.
4932    INSTALL=$ac_install_sh
4933  fi
4934fi
4935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4936$as_echo "$INSTALL" >&6; }
4937
4938# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4939# It thinks the first close brace ends the variable substitution.
4940test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4941
4942test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4943
4944test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4945
4946
4947        MKINSTALLDIRS=
4948  if test -n "$ac_aux_dir"; then
4949    case "$ac_aux_dir" in
4950      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4951      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4952    esac
4953  fi
4954  if test -z "$MKINSTALLDIRS"; then
4955    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4956  fi
4957
4958
4959
4960  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4961$as_echo_n "checking whether NLS is requested... " >&6; }
4962    # Check whether --enable-nls was given.
4963if test "${enable_nls+set}" = set; then :
4964  enableval=$enable_nls; USE_NLS=$enableval
4965else
4966  USE_NLS=yes
4967fi
4968
4969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4970$as_echo "$USE_NLS" >&6; }
4971
4972
4973
4974
4975
4976
4977# Prepare PATH_SEPARATOR.
4978# The user is always right.
4979if test "${PATH_SEPARATOR+set}" != set; then
4980  echo "#! /bin/sh" >conf$$.sh
4981  echo  "exit 0"   >>conf$$.sh
4982  chmod +x conf$$.sh
4983  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4984    PATH_SEPARATOR=';'
4985  else
4986    PATH_SEPARATOR=:
4987  fi
4988  rm -f conf$$.sh
4989fi
4990
4991# Find out how to test for executable files. Don't use a zero-byte file,
4992# as systems may use methods other than mode bits to determine executability.
4993cat >conf$$.file <<_ASEOF
4994#! /bin/sh
4995exit 0
4996_ASEOF
4997chmod +x conf$$.file
4998if test -x conf$$.file >/dev/null 2>&1; then
4999  ac_executable_p="test -x"
5000else
5001  ac_executable_p="test -f"
5002fi
5003rm -f conf$$.file
5004
5005# Extract the first word of "msgfmt", so it can be a program name with args.
5006set dummy msgfmt; ac_word=$2
5007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5008$as_echo_n "checking for $ac_word... " >&6; }
5009if ${ac_cv_path_MSGFMT+:} false; then :
5010  $as_echo_n "(cached) " >&6
5011else
5012  case "$MSGFMT" in
5013  [\\/]* | ?:[\\/]*)
5014    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5015    ;;
5016  *)
5017    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5018    for ac_dir in $PATH; do
5019      IFS="$ac_save_IFS"
5020      test -z "$ac_dir" && ac_dir=.
5021      for ac_exec_ext in '' $ac_executable_extensions; do
5022        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5023          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5024     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5025            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5026            break 2
5027          fi
5028        fi
5029      done
5030    done
5031    IFS="$ac_save_IFS"
5032  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5033    ;;
5034esac
5035fi
5036MSGFMT="$ac_cv_path_MSGFMT"
5037if test "$MSGFMT" != ":"; then
5038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5039$as_echo "$MSGFMT" >&6; }
5040else
5041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042$as_echo "no" >&6; }
5043fi
5044
5045  # Extract the first word of "gmsgfmt", so it can be a program name with args.
5046set dummy gmsgfmt; ac_word=$2
5047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5048$as_echo_n "checking for $ac_word... " >&6; }
5049if ${ac_cv_path_GMSGFMT+:} false; then :
5050  $as_echo_n "(cached) " >&6
5051else
5052  case $GMSGFMT in
5053  [\\/]* | ?:[\\/]*)
5054  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5055  ;;
5056  *)
5057  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058for as_dir in $PATH
5059do
5060  IFS=$as_save_IFS
5061  test -z "$as_dir" && as_dir=.
5062    for ac_exec_ext in '' $ac_executable_extensions; do
5063  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5064    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5065    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5066    break 2
5067  fi
5068done
5069  done
5070IFS=$as_save_IFS
5071
5072  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5073  ;;
5074esac
5075fi
5076GMSGFMT=$ac_cv_path_GMSGFMT
5077if test -n "$GMSGFMT"; then
5078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5079$as_echo "$GMSGFMT" >&6; }
5080else
5081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5082$as_echo "no" >&6; }
5083fi
5084
5085
5086
5087
5088# Prepare PATH_SEPARATOR.
5089# The user is always right.
5090if test "${PATH_SEPARATOR+set}" != set; then
5091  echo "#! /bin/sh" >conf$$.sh
5092  echo  "exit 0"   >>conf$$.sh
5093  chmod +x conf$$.sh
5094  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5095    PATH_SEPARATOR=';'
5096  else
5097    PATH_SEPARATOR=:
5098  fi
5099  rm -f conf$$.sh
5100fi
5101
5102# Find out how to test for executable files. Don't use a zero-byte file,
5103# as systems may use methods other than mode bits to determine executability.
5104cat >conf$$.file <<_ASEOF
5105#! /bin/sh
5106exit 0
5107_ASEOF
5108chmod +x conf$$.file
5109if test -x conf$$.file >/dev/null 2>&1; then
5110  ac_executable_p="test -x"
5111else
5112  ac_executable_p="test -f"
5113fi
5114rm -f conf$$.file
5115
5116# Extract the first word of "xgettext", so it can be a program name with args.
5117set dummy xgettext; ac_word=$2
5118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5119$as_echo_n "checking for $ac_word... " >&6; }
5120if ${ac_cv_path_XGETTEXT+:} false; then :
5121  $as_echo_n "(cached) " >&6
5122else
5123  case "$XGETTEXT" in
5124  [\\/]* | ?:[\\/]*)
5125    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5126    ;;
5127  *)
5128    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5129    for ac_dir in $PATH; do
5130      IFS="$ac_save_IFS"
5131      test -z "$ac_dir" && ac_dir=.
5132      for ac_exec_ext in '' $ac_executable_extensions; do
5133        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5134          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5135     (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
5136            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5137            break 2
5138          fi
5139        fi
5140      done
5141    done
5142    IFS="$ac_save_IFS"
5143  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5144    ;;
5145esac
5146fi
5147XGETTEXT="$ac_cv_path_XGETTEXT"
5148if test "$XGETTEXT" != ":"; then
5149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5150$as_echo "$XGETTEXT" >&6; }
5151else
5152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5153$as_echo "no" >&6; }
5154fi
5155
5156    rm -f messages.po
5157
5158
5159# Prepare PATH_SEPARATOR.
5160# The user is always right.
5161if test "${PATH_SEPARATOR+set}" != set; then
5162  echo "#! /bin/sh" >conf$$.sh
5163  echo  "exit 0"   >>conf$$.sh
5164  chmod +x conf$$.sh
5165  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5166    PATH_SEPARATOR=';'
5167  else
5168    PATH_SEPARATOR=:
5169  fi
5170  rm -f conf$$.sh
5171fi
5172
5173# Find out how to test for executable files. Don't use a zero-byte file,
5174# as systems may use methods other than mode bits to determine executability.
5175cat >conf$$.file <<_ASEOF
5176#! /bin/sh
5177exit 0
5178_ASEOF
5179chmod +x conf$$.file
5180if test -x conf$$.file >/dev/null 2>&1; then
5181  ac_executable_p="test -x"
5182else
5183  ac_executable_p="test -f"
5184fi
5185rm -f conf$$.file
5186
5187# Extract the first word of "msgmerge", so it can be a program name with args.
5188set dummy msgmerge; ac_word=$2
5189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5190$as_echo_n "checking for $ac_word... " >&6; }
5191if ${ac_cv_path_MSGMERGE+:} false; then :
5192  $as_echo_n "(cached) " >&6
5193else
5194  case "$MSGMERGE" in
5195  [\\/]* | ?:[\\/]*)
5196    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5197    ;;
5198  *)
5199    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5200    for ac_dir in $PATH; do
5201      IFS="$ac_save_IFS"
5202      test -z "$ac_dir" && ac_dir=.
5203      for ac_exec_ext in '' $ac_executable_extensions; do
5204        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5205          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5206            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5207            break 2
5208          fi
5209        fi
5210      done
5211    done
5212    IFS="$ac_save_IFS"
5213  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5214    ;;
5215esac
5216fi
5217MSGMERGE="$ac_cv_path_MSGMERGE"
5218if test "$MSGMERGE" != ":"; then
5219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5220$as_echo "$MSGMERGE" >&6; }
5221else
5222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5223$as_echo "no" >&6; }
5224fi
5225
5226
5227      if test "$GMSGFMT" != ":"; then
5228            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5229       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5230      : ;
5231    else
5232      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5233      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5234$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
5235      GMSGFMT=":"
5236    fi
5237  fi
5238
5239      if test "$XGETTEXT" != ":"; then
5240            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5241       (if $XGETTEXT --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
5242      : ;
5243    else
5244      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
5245$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
5246      XGETTEXT=":"
5247    fi
5248        rm -f messages.po
5249  fi
5250
5251  ac_config_commands="$ac_config_commands default-1"
5252
5253
5254
5255      if test "X$prefix" = "XNONE"; then
5256    acl_final_prefix="$ac_default_prefix"
5257  else
5258    acl_final_prefix="$prefix"
5259  fi
5260  if test "X$exec_prefix" = "XNONE"; then
5261    acl_final_exec_prefix='${prefix}'
5262  else
5263    acl_final_exec_prefix="$exec_prefix"
5264  fi
5265  acl_save_prefix="$prefix"
5266  prefix="$acl_final_prefix"
5267  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5268  prefix="$acl_save_prefix"
5269
5270
5271# Check whether --with-gnu-ld was given.
5272if test "${with_gnu_ld+set}" = set; then :
5273  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5274else
5275  with_gnu_ld=no
5276fi
5277
5278# Prepare PATH_SEPARATOR.
5279# The user is always right.
5280if test "${PATH_SEPARATOR+set}" != set; then
5281  echo "#! /bin/sh" >conf$$.sh
5282  echo  "exit 0"   >>conf$$.sh
5283  chmod +x conf$$.sh
5284  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5285    PATH_SEPARATOR=';'
5286  else
5287    PATH_SEPARATOR=:
5288  fi
5289  rm -f conf$$.sh
5290fi
5291ac_prog=ld
5292if test "$GCC" = yes; then
5293  # Check if gcc -print-prog-name=ld gives a path.
5294  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5295$as_echo_n "checking for ld used by GCC... " >&6; }
5296  case $host in
5297  *-*-mingw*)
5298    # gcc leaves a trailing carriage return which upsets mingw
5299    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5300  *)
5301    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5302  esac
5303  case $ac_prog in
5304    # Accept absolute paths.
5305    [\\/]* | [A-Za-z]:[\\/]*)
5306      re_direlt='/[^/][^/]*/\.\./'
5307      # Canonicalize the path of ld
5308      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5309      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5310	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5311      done
5312      test -z "$LD" && LD="$ac_prog"
5313      ;;
5314  "")
5315    # If it fails, then pretend we aren't using GCC.
5316    ac_prog=ld
5317    ;;
5318  *)
5319    # If it is relative, then search for the first ld in PATH.
5320    with_gnu_ld=unknown
5321    ;;
5322  esac
5323elif test "$with_gnu_ld" = yes; then
5324  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5325$as_echo_n "checking for GNU ld... " >&6; }
5326else
5327  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5328$as_echo_n "checking for non-GNU ld... " >&6; }
5329fi
5330if ${acl_cv_path_LD+:} false; then :
5331  $as_echo_n "(cached) " >&6
5332else
5333  if test -z "$LD"; then
5334  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5335  for ac_dir in $PATH; do
5336    test -z "$ac_dir" && ac_dir=.
5337    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5338      acl_cv_path_LD="$ac_dir/$ac_prog"
5339      # Check to see if the program is GNU ld.  I'd rather use --version,
5340      # but apparently some GNU ld's only accept -v.
5341      # Break only if it was the GNU/non-GNU ld that we prefer.
5342      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5343	test "$with_gnu_ld" != no && break
5344      else
5345	test "$with_gnu_ld" != yes && break
5346      fi
5347    fi
5348  done
5349  IFS="$ac_save_ifs"
5350else
5351  acl_cv_path_LD="$LD" # Let the user override the test with a path.
5352fi
5353fi
5354
5355LD="$acl_cv_path_LD"
5356if test -n "$LD"; then
5357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5358$as_echo "$LD" >&6; }
5359else
5360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5361$as_echo "no" >&6; }
5362fi
5363test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5365$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5366if ${acl_cv_prog_gnu_ld+:} false; then :
5367  $as_echo_n "(cached) " >&6
5368else
5369  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5370if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5371  acl_cv_prog_gnu_ld=yes
5372else
5373  acl_cv_prog_gnu_ld=no
5374fi
5375fi
5376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5377$as_echo "$acl_cv_prog_gnu_ld" >&6; }
5378with_gnu_ld=$acl_cv_prog_gnu_ld
5379
5380
5381
5382                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5383$as_echo_n "checking for shared library run path origin... " >&6; }
5384if ${acl_cv_rpath+:} false; then :
5385  $as_echo_n "(cached) " >&6
5386else
5387
5388    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5389    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5390    . ./conftest.sh
5391    rm -f ./conftest.sh
5392    acl_cv_rpath=done
5393
5394fi
5395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5396$as_echo "$acl_cv_rpath" >&6; }
5397  wl="$acl_cv_wl"
5398  libext="$acl_cv_libext"
5399  shlibext="$acl_cv_shlibext"
5400  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5401  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5402  hardcode_direct="$acl_cv_hardcode_direct"
5403  hardcode_minus_L="$acl_cv_hardcode_minus_L"
5404
5405
5406
5407
5408
5409
5410
5411    use_additional=yes
5412
5413  acl_save_prefix="$prefix"
5414  prefix="$acl_final_prefix"
5415  acl_save_exec_prefix="$exec_prefix"
5416  exec_prefix="$acl_final_exec_prefix"
5417
5418    eval additional_includedir=\"$includedir\"
5419    eval additional_libdir=\"$libdir\"
5420
5421  exec_prefix="$acl_save_exec_prefix"
5422  prefix="$acl_save_prefix"
5423
5424
5425# Check whether --with-libiconv-prefix was given.
5426if test "${with_libiconv_prefix+set}" = set; then :
5427  withval=$with_libiconv_prefix;
5428    if test "X$withval" = "Xno"; then
5429      use_additional=no
5430    else
5431      if test "X$withval" = "X"; then
5432
5433  acl_save_prefix="$prefix"
5434  prefix="$acl_final_prefix"
5435  acl_save_exec_prefix="$exec_prefix"
5436  exec_prefix="$acl_final_exec_prefix"
5437
5438          eval additional_includedir=\"$includedir\"
5439          eval additional_libdir=\"$libdir\"
5440
5441  exec_prefix="$acl_save_exec_prefix"
5442  prefix="$acl_save_prefix"
5443
5444      else
5445        additional_includedir="$withval/include"
5446        additional_libdir="$withval/lib"
5447      fi
5448    fi
5449
5450fi
5451
5452      LIBICONV=
5453  LTLIBICONV=
5454  INCICONV=
5455  rpathdirs=
5456  ltrpathdirs=
5457  names_already_handled=
5458  names_next_round='iconv '
5459  while test -n "$names_next_round"; do
5460    names_this_round="$names_next_round"
5461    names_next_round=
5462    for name in $names_this_round; do
5463      already_handled=
5464      for n in $names_already_handled; do
5465        if test "$n" = "$name"; then
5466          already_handled=yes
5467          break
5468        fi
5469      done
5470      if test -z "$already_handled"; then
5471        names_already_handled="$names_already_handled $name"
5472                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5473        eval value=\"\$HAVE_LIB$uppername\"
5474        if test -n "$value"; then
5475          if test "$value" = yes; then
5476            eval value=\"\$LIB$uppername\"
5477            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5478            eval value=\"\$LTLIB$uppername\"
5479            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5480          else
5481                                    :
5482          fi
5483        else
5484                              found_dir=
5485          found_la=
5486          found_so=
5487          found_a=
5488          if test $use_additional = yes; then
5489            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5490              found_dir="$additional_libdir"
5491              found_so="$additional_libdir/lib$name.$shlibext"
5492              if test -f "$additional_libdir/lib$name.la"; then
5493                found_la="$additional_libdir/lib$name.la"
5494              fi
5495            else
5496              if test -f "$additional_libdir/lib$name.$libext"; then
5497                found_dir="$additional_libdir"
5498                found_a="$additional_libdir/lib$name.$libext"
5499                if test -f "$additional_libdir/lib$name.la"; then
5500                  found_la="$additional_libdir/lib$name.la"
5501                fi
5502              fi
5503            fi
5504          fi
5505          if test "X$found_dir" = "X"; then
5506            for x in $LDFLAGS $LTLIBICONV; do
5507
5508  acl_save_prefix="$prefix"
5509  prefix="$acl_final_prefix"
5510  acl_save_exec_prefix="$exec_prefix"
5511  exec_prefix="$acl_final_exec_prefix"
5512  eval x=\"$x\"
5513  exec_prefix="$acl_save_exec_prefix"
5514  prefix="$acl_save_prefix"
5515
5516              case "$x" in
5517                -L*)
5518                  dir=`echo "X$x" | sed -e 's/^X-L//'`
5519                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5520                    found_dir="$dir"
5521                    found_so="$dir/lib$name.$shlibext"
5522                    if test -f "$dir/lib$name.la"; then
5523                      found_la="$dir/lib$name.la"
5524                    fi
5525                  else
5526                    if test -f "$dir/lib$name.$libext"; then
5527                      found_dir="$dir"
5528                      found_a="$dir/lib$name.$libext"
5529                      if test -f "$dir/lib$name.la"; then
5530                        found_la="$dir/lib$name.la"
5531                      fi
5532                    fi
5533                  fi
5534                  ;;
5535              esac
5536              if test "X$found_dir" != "X"; then
5537                break
5538              fi
5539            done
5540          fi
5541          if test "X$found_dir" != "X"; then
5542                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5543            if test "X$found_so" != "X"; then
5544                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5545                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5546              else
5547                                                                                haveit=
5548                for x in $ltrpathdirs; do
5549                  if test "X$x" = "X$found_dir"; then
5550                    haveit=yes
5551                    break
5552                  fi
5553                done
5554                if test -z "$haveit"; then
5555                  ltrpathdirs="$ltrpathdirs $found_dir"
5556                fi
5557                                if test "$hardcode_direct" = yes; then
5558                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5559                else
5560                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5561                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5562                                                            haveit=
5563                    for x in $rpathdirs; do
5564                      if test "X$x" = "X$found_dir"; then
5565                        haveit=yes
5566                        break
5567                      fi
5568                    done
5569                    if test -z "$haveit"; then
5570                      rpathdirs="$rpathdirs $found_dir"
5571                    fi
5572                  else
5573                                                                                haveit=
5574                    for x in $LDFLAGS $LIBICONV; do
5575
5576  acl_save_prefix="$prefix"
5577  prefix="$acl_final_prefix"
5578  acl_save_exec_prefix="$exec_prefix"
5579  exec_prefix="$acl_final_exec_prefix"
5580  eval x=\"$x\"
5581  exec_prefix="$acl_save_exec_prefix"
5582  prefix="$acl_save_prefix"
5583
5584                      if test "X$x" = "X-L$found_dir"; then
5585                        haveit=yes
5586                        break
5587                      fi
5588                    done
5589                    if test -z "$haveit"; then
5590                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5591                    fi
5592                    if test "$hardcode_minus_L" != no; then
5593                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5594                    else
5595                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5596                    fi
5597                  fi
5598                fi
5599              fi
5600            else
5601              if test "X$found_a" != "X"; then
5602                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5603              else
5604                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5605              fi
5606            fi
5607                        additional_includedir=
5608            case "$found_dir" in
5609              */lib | */lib/)
5610                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5611                additional_includedir="$basedir/include"
5612                ;;
5613            esac
5614            if test "X$additional_includedir" != "X"; then
5615                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
5616                haveit=
5617                if test "X$additional_includedir" = "X/usr/local/include"; then
5618                  if test -n "$GCC"; then
5619                    case $host_os in
5620                      linux*) haveit=yes;;
5621                    esac
5622                  fi
5623                fi
5624                if test -z "$haveit"; then
5625                  for x in $CPPFLAGS $INCICONV; do
5626
5627  acl_save_prefix="$prefix"
5628  prefix="$acl_final_prefix"
5629  acl_save_exec_prefix="$exec_prefix"
5630  exec_prefix="$acl_final_exec_prefix"
5631  eval x=\"$x\"
5632  exec_prefix="$acl_save_exec_prefix"
5633  prefix="$acl_save_prefix"
5634
5635                    if test "X$x" = "X-I$additional_includedir"; then
5636                      haveit=yes
5637                      break
5638                    fi
5639                  done
5640                  if test -z "$haveit"; then
5641                    if test -d "$additional_includedir"; then
5642                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5643                    fi
5644                  fi
5645                fi
5646              fi
5647            fi
5648                        if test -n "$found_la"; then
5649                                                        save_libdir="$libdir"
5650              case "$found_la" in
5651                */* | *\\*) . "$found_la" ;;
5652                *) . "./$found_la" ;;
5653              esac
5654              libdir="$save_libdir"
5655                            for dep in $dependency_libs; do
5656                case "$dep" in
5657                  -L*)
5658                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5659                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
5660                      haveit=
5661                      if test "X$additional_libdir" = "X/usr/local/lib"; then
5662                        if test -n "$GCC"; then
5663                          case $host_os in
5664                            linux*) haveit=yes;;
5665                          esac
5666                        fi
5667                      fi
5668                      if test -z "$haveit"; then
5669                        haveit=
5670                        for x in $LDFLAGS $LIBICONV; do
5671
5672  acl_save_prefix="$prefix"
5673  prefix="$acl_final_prefix"
5674  acl_save_exec_prefix="$exec_prefix"
5675  exec_prefix="$acl_final_exec_prefix"
5676  eval x=\"$x\"
5677  exec_prefix="$acl_save_exec_prefix"
5678  prefix="$acl_save_prefix"
5679
5680                          if test "X$x" = "X-L$additional_libdir"; then
5681                            haveit=yes
5682                            break
5683                          fi
5684                        done
5685                        if test -z "$haveit"; then
5686                          if test -d "$additional_libdir"; then
5687                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5688                          fi
5689                        fi
5690                        haveit=
5691                        for x in $LDFLAGS $LTLIBICONV; do
5692
5693  acl_save_prefix="$prefix"
5694  prefix="$acl_final_prefix"
5695  acl_save_exec_prefix="$exec_prefix"
5696  exec_prefix="$acl_final_exec_prefix"
5697  eval x=\"$x\"
5698  exec_prefix="$acl_save_exec_prefix"
5699  prefix="$acl_save_prefix"
5700
5701                          if test "X$x" = "X-L$additional_libdir"; then
5702                            haveit=yes
5703                            break
5704                          fi
5705                        done
5706                        if test -z "$haveit"; then
5707                          if test -d "$additional_libdir"; then
5708                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5709                          fi
5710                        fi
5711                      fi
5712                    fi
5713                    ;;
5714                  -R*)
5715                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
5716                    if test "$enable_rpath" != no; then
5717                                                                  haveit=
5718                      for x in $rpathdirs; do
5719                        if test "X$x" = "X$dir"; then
5720                          haveit=yes
5721                          break
5722                        fi
5723                      done
5724                      if test -z "$haveit"; then
5725                        rpathdirs="$rpathdirs $dir"
5726                      fi
5727                                                                  haveit=
5728                      for x in $ltrpathdirs; do
5729                        if test "X$x" = "X$dir"; then
5730                          haveit=yes
5731                          break
5732                        fi
5733                      done
5734                      if test -z "$haveit"; then
5735                        ltrpathdirs="$ltrpathdirs $dir"
5736                      fi
5737                    fi
5738                    ;;
5739                  -l*)
5740                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5741                    ;;
5742                  *.la)
5743                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5744                    ;;
5745                  *)
5746                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5747                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5748                    ;;
5749                esac
5750              done
5751            fi
5752          else
5753                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5754            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5755          fi
5756        fi
5757      fi
5758    done
5759  done
5760  if test "X$rpathdirs" != "X"; then
5761    if test -n "$hardcode_libdir_separator"; then
5762                        alldirs=
5763      for found_dir in $rpathdirs; do
5764        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5765      done
5766            acl_save_libdir="$libdir"
5767      libdir="$alldirs"
5768      eval flag=\"$hardcode_libdir_flag_spec\"
5769      libdir="$acl_save_libdir"
5770      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5771    else
5772            for found_dir in $rpathdirs; do
5773        acl_save_libdir="$libdir"
5774        libdir="$found_dir"
5775        eval flag=\"$hardcode_libdir_flag_spec\"
5776        libdir="$acl_save_libdir"
5777        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5778      done
5779    fi
5780  fi
5781  if test "X$ltrpathdirs" != "X"; then
5782            for found_dir in $ltrpathdirs; do
5783      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5784    done
5785  fi
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5805$as_echo_n "checking whether NLS is requested... " >&6; }
5806    # Check whether --enable-nls was given.
5807if test "${enable_nls+set}" = set; then :
5808  enableval=$enable_nls; USE_NLS=$enableval
5809else
5810  USE_NLS=yes
5811fi
5812
5813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5814$as_echo "$USE_NLS" >&6; }
5815
5816
5817
5818
5819  LIBINTL=
5820  LTLIBINTL=
5821  POSUB=
5822
5823    if test "$USE_NLS" = "yes"; then
5824    gt_use_preinstalled_gnugettext=no
5825
5826
5827
5828
5829
5830
5831        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5832$as_echo_n "checking for GNU gettext in libc... " >&6; }
5833if ${gt_cv_func_gnugettext1_libc+:} false; then :
5834  $as_echo_n "(cached) " >&6
5835else
5836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837/* end confdefs.h.  */
5838#include <libintl.h>
5839extern int _nl_msg_cat_cntr;
5840extern int *_nl_domain_bindings;
5841int
5842main ()
5843{
5844bindtextdomain ("", "");
5845return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5846  ;
5847  return 0;
5848}
5849_ACEOF
5850if ac_fn_c_try_link "$LINENO"; then :
5851  gt_cv_func_gnugettext1_libc=yes
5852else
5853  gt_cv_func_gnugettext1_libc=no
5854fi
5855rm -f core conftest.err conftest.$ac_objext \
5856    conftest$ac_exeext conftest.$ac_ext
5857fi
5858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
5859$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
5860
5861        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5862
5863
5864
5865
5866
5867          am_save_CPPFLAGS="$CPPFLAGS"
5868
5869  for element in $INCICONV; do
5870    haveit=
5871    for x in $CPPFLAGS; do
5872
5873  acl_save_prefix="$prefix"
5874  prefix="$acl_final_prefix"
5875  acl_save_exec_prefix="$exec_prefix"
5876  exec_prefix="$acl_final_exec_prefix"
5877  eval x=\"$x\"
5878  exec_prefix="$acl_save_exec_prefix"
5879  prefix="$acl_save_prefix"
5880
5881      if test "X$x" = "X$element"; then
5882        haveit=yes
5883        break
5884      fi
5885    done
5886    if test -z "$haveit"; then
5887      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5888    fi
5889  done
5890
5891
5892  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5893$as_echo_n "checking for iconv... " >&6; }
5894if ${am_cv_func_iconv+:} false; then :
5895  $as_echo_n "(cached) " >&6
5896else
5897
5898    am_cv_func_iconv="no, consider installing GNU libiconv"
5899    am_cv_lib_iconv=no
5900    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5901/* end confdefs.h.  */
5902#include <stdlib.h>
5903#include <iconv.h>
5904int
5905main ()
5906{
5907iconv_t cd = iconv_open("","");
5908       iconv(cd,NULL,NULL,NULL,NULL);
5909       iconv_close(cd);
5910  ;
5911  return 0;
5912}
5913_ACEOF
5914if ac_fn_c_try_link "$LINENO"; then :
5915  am_cv_func_iconv=yes
5916fi
5917rm -f core conftest.err conftest.$ac_objext \
5918    conftest$ac_exeext conftest.$ac_ext
5919    if test "$am_cv_func_iconv" != yes; then
5920      am_save_LIBS="$LIBS"
5921      LIBS="$LIBS $LIBICONV"
5922      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5923/* end confdefs.h.  */
5924#include <stdlib.h>
5925#include <iconv.h>
5926int
5927main ()
5928{
5929iconv_t cd = iconv_open("","");
5930         iconv(cd,NULL,NULL,NULL,NULL);
5931         iconv_close(cd);
5932  ;
5933  return 0;
5934}
5935_ACEOF
5936if ac_fn_c_try_link "$LINENO"; then :
5937  am_cv_lib_iconv=yes
5938        am_cv_func_iconv=yes
5939fi
5940rm -f core conftest.err conftest.$ac_objext \
5941    conftest$ac_exeext conftest.$ac_ext
5942      LIBS="$am_save_LIBS"
5943    fi
5944
5945fi
5946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5947$as_echo "$am_cv_func_iconv" >&6; }
5948  if test "$am_cv_func_iconv" = yes; then
5949
5950$as_echo "#define HAVE_ICONV 1" >>confdefs.h
5951
5952  fi
5953  if test "$am_cv_lib_iconv" = yes; then
5954    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5955$as_echo_n "checking how to link with libiconv... " >&6; }
5956    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5957$as_echo "$LIBICONV" >&6; }
5958  else
5959            CPPFLAGS="$am_save_CPPFLAGS"
5960    LIBICONV=
5961    LTLIBICONV=
5962  fi
5963
5964
5965
5966
5967
5968
5969    use_additional=yes
5970
5971  acl_save_prefix="$prefix"
5972  prefix="$acl_final_prefix"
5973  acl_save_exec_prefix="$exec_prefix"
5974  exec_prefix="$acl_final_exec_prefix"
5975
5976    eval additional_includedir=\"$includedir\"
5977    eval additional_libdir=\"$libdir\"
5978
5979  exec_prefix="$acl_save_exec_prefix"
5980  prefix="$acl_save_prefix"
5981
5982
5983# Check whether --with-libintl-prefix was given.
5984if test "${with_libintl_prefix+set}" = set; then :
5985  withval=$with_libintl_prefix;
5986    if test "X$withval" = "Xno"; then
5987      use_additional=no
5988    else
5989      if test "X$withval" = "X"; then
5990
5991  acl_save_prefix="$prefix"
5992  prefix="$acl_final_prefix"
5993  acl_save_exec_prefix="$exec_prefix"
5994  exec_prefix="$acl_final_exec_prefix"
5995
5996          eval additional_includedir=\"$includedir\"
5997          eval additional_libdir=\"$libdir\"
5998
5999  exec_prefix="$acl_save_exec_prefix"
6000  prefix="$acl_save_prefix"
6001
6002      else
6003        additional_includedir="$withval/include"
6004        additional_libdir="$withval/lib"
6005      fi
6006    fi
6007
6008fi
6009
6010      LIBINTL=
6011  LTLIBINTL=
6012  INCINTL=
6013  rpathdirs=
6014  ltrpathdirs=
6015  names_already_handled=
6016  names_next_round='intl '
6017  while test -n "$names_next_round"; do
6018    names_this_round="$names_next_round"
6019    names_next_round=
6020    for name in $names_this_round; do
6021      already_handled=
6022      for n in $names_already_handled; do
6023        if test "$n" = "$name"; then
6024          already_handled=yes
6025          break
6026        fi
6027      done
6028      if test -z "$already_handled"; then
6029        names_already_handled="$names_already_handled $name"
6030                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6031        eval value=\"\$HAVE_LIB$uppername\"
6032        if test -n "$value"; then
6033          if test "$value" = yes; then
6034            eval value=\"\$LIB$uppername\"
6035            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6036            eval value=\"\$LTLIB$uppername\"
6037            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6038          else
6039                                    :
6040          fi
6041        else
6042                              found_dir=
6043          found_la=
6044          found_so=
6045          found_a=
6046          if test $use_additional = yes; then
6047            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6048              found_dir="$additional_libdir"
6049              found_so="$additional_libdir/lib$name.$shlibext"
6050              if test -f "$additional_libdir/lib$name.la"; then
6051                found_la="$additional_libdir/lib$name.la"
6052              fi
6053            else
6054              if test -f "$additional_libdir/lib$name.$libext"; then
6055                found_dir="$additional_libdir"
6056                found_a="$additional_libdir/lib$name.$libext"
6057                if test -f "$additional_libdir/lib$name.la"; then
6058                  found_la="$additional_libdir/lib$name.la"
6059                fi
6060              fi
6061            fi
6062          fi
6063          if test "X$found_dir" = "X"; then
6064            for x in $LDFLAGS $LTLIBINTL; do
6065
6066  acl_save_prefix="$prefix"
6067  prefix="$acl_final_prefix"
6068  acl_save_exec_prefix="$exec_prefix"
6069  exec_prefix="$acl_final_exec_prefix"
6070  eval x=\"$x\"
6071  exec_prefix="$acl_save_exec_prefix"
6072  prefix="$acl_save_prefix"
6073
6074              case "$x" in
6075                -L*)
6076                  dir=`echo "X$x" | sed -e 's/^X-L//'`
6077                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6078                    found_dir="$dir"
6079                    found_so="$dir/lib$name.$shlibext"
6080                    if test -f "$dir/lib$name.la"; then
6081                      found_la="$dir/lib$name.la"
6082                    fi
6083                  else
6084                    if test -f "$dir/lib$name.$libext"; then
6085                      found_dir="$dir"
6086                      found_a="$dir/lib$name.$libext"
6087                      if test -f "$dir/lib$name.la"; then
6088                        found_la="$dir/lib$name.la"
6089                      fi
6090                    fi
6091                  fi
6092                  ;;
6093              esac
6094              if test "X$found_dir" != "X"; then
6095                break
6096              fi
6097            done
6098          fi
6099          if test "X$found_dir" != "X"; then
6100                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6101            if test "X$found_so" != "X"; then
6102                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6103                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6104              else
6105                                                                                haveit=
6106                for x in $ltrpathdirs; do
6107                  if test "X$x" = "X$found_dir"; then
6108                    haveit=yes
6109                    break
6110                  fi
6111                done
6112                if test -z "$haveit"; then
6113                  ltrpathdirs="$ltrpathdirs $found_dir"
6114                fi
6115                                if test "$hardcode_direct" = yes; then
6116                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6117                else
6118                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6119                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6120                                                            haveit=
6121                    for x in $rpathdirs; do
6122                      if test "X$x" = "X$found_dir"; then
6123                        haveit=yes
6124                        break
6125                      fi
6126                    done
6127                    if test -z "$haveit"; then
6128                      rpathdirs="$rpathdirs $found_dir"
6129                    fi
6130                  else
6131                                                                                haveit=
6132                    for x in $LDFLAGS $LIBINTL; do
6133
6134  acl_save_prefix="$prefix"
6135  prefix="$acl_final_prefix"
6136  acl_save_exec_prefix="$exec_prefix"
6137  exec_prefix="$acl_final_exec_prefix"
6138  eval x=\"$x\"
6139  exec_prefix="$acl_save_exec_prefix"
6140  prefix="$acl_save_prefix"
6141
6142                      if test "X$x" = "X-L$found_dir"; then
6143                        haveit=yes
6144                        break
6145                      fi
6146                    done
6147                    if test -z "$haveit"; then
6148                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6149                    fi
6150                    if test "$hardcode_minus_L" != no; then
6151                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6152                    else
6153                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6154                    fi
6155                  fi
6156                fi
6157              fi
6158            else
6159              if test "X$found_a" != "X"; then
6160                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6161              else
6162                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6163              fi
6164            fi
6165                        additional_includedir=
6166            case "$found_dir" in
6167              */lib | */lib/)
6168                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6169                additional_includedir="$basedir/include"
6170                ;;
6171            esac
6172            if test "X$additional_includedir" != "X"; then
6173                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
6174                haveit=
6175                if test "X$additional_includedir" = "X/usr/local/include"; then
6176                  if test -n "$GCC"; then
6177                    case $host_os in
6178                      linux*) haveit=yes;;
6179                    esac
6180                  fi
6181                fi
6182                if test -z "$haveit"; then
6183                  for x in $CPPFLAGS $INCINTL; do
6184
6185  acl_save_prefix="$prefix"
6186  prefix="$acl_final_prefix"
6187  acl_save_exec_prefix="$exec_prefix"
6188  exec_prefix="$acl_final_exec_prefix"
6189  eval x=\"$x\"
6190  exec_prefix="$acl_save_exec_prefix"
6191  prefix="$acl_save_prefix"
6192
6193                    if test "X$x" = "X-I$additional_includedir"; then
6194                      haveit=yes
6195                      break
6196                    fi
6197                  done
6198                  if test -z "$haveit"; then
6199                    if test -d "$additional_includedir"; then
6200                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6201                    fi
6202                  fi
6203                fi
6204              fi
6205            fi
6206                        if test -n "$found_la"; then
6207                                                        save_libdir="$libdir"
6208              case "$found_la" in
6209                */* | *\\*) . "$found_la" ;;
6210                *) . "./$found_la" ;;
6211              esac
6212              libdir="$save_libdir"
6213                            for dep in $dependency_libs; do
6214                case "$dep" in
6215                  -L*)
6216                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6217                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
6218                      haveit=
6219                      if test "X$additional_libdir" = "X/usr/local/lib"; then
6220                        if test -n "$GCC"; then
6221                          case $host_os in
6222                            linux*) haveit=yes;;
6223                          esac
6224                        fi
6225                      fi
6226                      if test -z "$haveit"; then
6227                        haveit=
6228                        for x in $LDFLAGS $LIBINTL; do
6229
6230  acl_save_prefix="$prefix"
6231  prefix="$acl_final_prefix"
6232  acl_save_exec_prefix="$exec_prefix"
6233  exec_prefix="$acl_final_exec_prefix"
6234  eval x=\"$x\"
6235  exec_prefix="$acl_save_exec_prefix"
6236  prefix="$acl_save_prefix"
6237
6238                          if test "X$x" = "X-L$additional_libdir"; then
6239                            haveit=yes
6240                            break
6241                          fi
6242                        done
6243                        if test -z "$haveit"; then
6244                          if test -d "$additional_libdir"; then
6245                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6246                          fi
6247                        fi
6248                        haveit=
6249                        for x in $LDFLAGS $LTLIBINTL; do
6250
6251  acl_save_prefix="$prefix"
6252  prefix="$acl_final_prefix"
6253  acl_save_exec_prefix="$exec_prefix"
6254  exec_prefix="$acl_final_exec_prefix"
6255  eval x=\"$x\"
6256  exec_prefix="$acl_save_exec_prefix"
6257  prefix="$acl_save_prefix"
6258
6259                          if test "X$x" = "X-L$additional_libdir"; then
6260                            haveit=yes
6261                            break
6262                          fi
6263                        done
6264                        if test -z "$haveit"; then
6265                          if test -d "$additional_libdir"; then
6266                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6267                          fi
6268                        fi
6269                      fi
6270                    fi
6271                    ;;
6272                  -R*)
6273                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
6274                    if test "$enable_rpath" != no; then
6275                                                                  haveit=
6276                      for x in $rpathdirs; do
6277                        if test "X$x" = "X$dir"; then
6278                          haveit=yes
6279                          break
6280                        fi
6281                      done
6282                      if test -z "$haveit"; then
6283                        rpathdirs="$rpathdirs $dir"
6284                      fi
6285                                                                  haveit=
6286                      for x in $ltrpathdirs; do
6287                        if test "X$x" = "X$dir"; then
6288                          haveit=yes
6289                          break
6290                        fi
6291                      done
6292                      if test -z "$haveit"; then
6293                        ltrpathdirs="$ltrpathdirs $dir"
6294                      fi
6295                    fi
6296                    ;;
6297                  -l*)
6298                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6299                    ;;
6300                  *.la)
6301                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6302                    ;;
6303                  *)
6304                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6305                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6306                    ;;
6307                esac
6308              done
6309            fi
6310          else
6311                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6312            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6313          fi
6314        fi
6315      fi
6316    done
6317  done
6318  if test "X$rpathdirs" != "X"; then
6319    if test -n "$hardcode_libdir_separator"; then
6320                        alldirs=
6321      for found_dir in $rpathdirs; do
6322        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6323      done
6324            acl_save_libdir="$libdir"
6325      libdir="$alldirs"
6326      eval flag=\"$hardcode_libdir_flag_spec\"
6327      libdir="$acl_save_libdir"
6328      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6329    else
6330            for found_dir in $rpathdirs; do
6331        acl_save_libdir="$libdir"
6332        libdir="$found_dir"
6333        eval flag=\"$hardcode_libdir_flag_spec\"
6334        libdir="$acl_save_libdir"
6335        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6336      done
6337    fi
6338  fi
6339  if test "X$ltrpathdirs" != "X"; then
6340            for found_dir in $ltrpathdirs; do
6341      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6342    done
6343  fi
6344
6345          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6346$as_echo_n "checking for GNU gettext in libintl... " >&6; }
6347if ${gt_cv_func_gnugettext1_libintl+:} false; then :
6348  $as_echo_n "(cached) " >&6
6349else
6350  gt_save_CPPFLAGS="$CPPFLAGS"
6351            CPPFLAGS="$CPPFLAGS $INCINTL"
6352            gt_save_LIBS="$LIBS"
6353            LIBS="$LIBS $LIBINTL"
6354                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355/* end confdefs.h.  */
6356#include <libintl.h>
6357extern int _nl_msg_cat_cntr;
6358extern
6359#ifdef __cplusplus
6360"C"
6361#endif
6362const char *_nl_expand_alias ();
6363int
6364main ()
6365{
6366bindtextdomain ("", "");
6367return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
6368  ;
6369  return 0;
6370}
6371_ACEOF
6372if ac_fn_c_try_link "$LINENO"; then :
6373  gt_cv_func_gnugettext1_libintl=yes
6374else
6375  gt_cv_func_gnugettext1_libintl=no
6376fi
6377rm -f core conftest.err conftest.$ac_objext \
6378    conftest$ac_exeext conftest.$ac_ext
6379                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6380              LIBS="$LIBS $LIBICONV"
6381              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382/* end confdefs.h.  */
6383#include <libintl.h>
6384extern int _nl_msg_cat_cntr;
6385extern
6386#ifdef __cplusplus
6387"C"
6388#endif
6389const char *_nl_expand_alias ();
6390int
6391main ()
6392{
6393bindtextdomain ("", "");
6394return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
6395  ;
6396  return 0;
6397}
6398_ACEOF
6399if ac_fn_c_try_link "$LINENO"; then :
6400  LIBINTL="$LIBINTL $LIBICONV"
6401                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6402                gt_cv_func_gnugettext1_libintl=yes
6403
6404fi
6405rm -f core conftest.err conftest.$ac_objext \
6406    conftest$ac_exeext conftest.$ac_ext
6407            fi
6408            CPPFLAGS="$gt_save_CPPFLAGS"
6409            LIBS="$gt_save_LIBS"
6410fi
6411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
6412$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
6413        fi
6414
6415                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6416           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6417                && test "$PACKAGE" != gettext-runtime \
6418                && test "$PACKAGE" != gettext-tools; }; then
6419          gt_use_preinstalled_gnugettext=yes
6420        else
6421                    LIBINTL=
6422          LTLIBINTL=
6423          INCINTL=
6424        fi
6425
6426
6427
6428    if test "$gt_use_preinstalled_gnugettext" = "yes" \
6429       || test "$nls_cv_use_gnu_gettext" = "yes"; then
6430
6431$as_echo "#define ENABLE_NLS 1" >>confdefs.h
6432
6433    else
6434      USE_NLS=no
6435    fi
6436  fi
6437
6438  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6439$as_echo_n "checking whether to use NLS... " >&6; }
6440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6441$as_echo "$USE_NLS" >&6; }
6442  if test "$USE_NLS" = "yes"; then
6443    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6444$as_echo_n "checking where the gettext function comes from... " >&6; }
6445    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6446      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6447        gt_source="external libintl"
6448      else
6449        gt_source="libc"
6450      fi
6451    else
6452      gt_source="included intl directory"
6453    fi
6454    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6455$as_echo "$gt_source" >&6; }
6456  fi
6457
6458  if test "$USE_NLS" = "yes"; then
6459
6460    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6461      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6462        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6463$as_echo_n "checking how to link with libintl... " >&6; }
6464        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6465$as_echo "$LIBINTL" >&6; }
6466
6467  for element in $INCINTL; do
6468    haveit=
6469    for x in $CPPFLAGS; do
6470
6471  acl_save_prefix="$prefix"
6472  prefix="$acl_final_prefix"
6473  acl_save_exec_prefix="$exec_prefix"
6474  exec_prefix="$acl_final_exec_prefix"
6475  eval x=\"$x\"
6476  exec_prefix="$acl_save_exec_prefix"
6477  prefix="$acl_save_prefix"
6478
6479      if test "X$x" = "X$element"; then
6480        haveit=yes
6481        break
6482      fi
6483    done
6484    if test -z "$haveit"; then
6485      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6486    fi
6487  done
6488
6489      fi
6490
6491
6492$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6493
6494
6495$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6496
6497    fi
6498
6499        POSUB=po
6500  fi
6501
6502
6503
6504    INTLLIBS="$LIBINTL"
6505
6506
6507
6508
6509
6510
6511LIBS="${LIBS} ${LIBINTL}"
6512
6513if test "$prefix" = "NONE"; then
6514	prefix="${ac_default_prefix}"
6515fi
6516
6517
6518for ac_header in link.h
6519do :
6520  ac_fn_c_check_header_preproc "$LINENO" "link.h" "ac_cv_header_link_h"
6521if test "x$ac_cv_header_link_h" = xyes; then :
6522  cat >>confdefs.h <<_ACEOF
6523#define HAVE_LINK_H 1
6524_ACEOF
6525
6526fi
6527
6528done
6529
6530
6531for ac_func in inet_pton inet_ntop gettimeofday umask arc4random arc4random_buf arc4random_uniform explicit_bzero memset_s getrlimit fork getpid execve strtok_r inet_ntop strcasestr
6532do :
6533  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6534ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6535if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6536  cat >>confdefs.h <<_ACEOF
6537#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6538_ACEOF
6539
6540fi
6541done
6542
6543ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
6544if test "x$ac_cv_func_socket" = xyes; then :
6545
6546else
6547  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
6548$as_echo_n "checking for socket in -lsocket... " >&6; }
6549if ${ac_cv_lib_socket_socket+:} false; then :
6550  $as_echo_n "(cached) " >&6
6551else
6552  ac_check_lib_save_LIBS=$LIBS
6553LIBS="-lsocket  $LIBS"
6554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555/* end confdefs.h.  */
6556
6557/* Override any GCC internal prototype to avoid an error.
6558   Use char because int might match the return type of a GCC
6559   builtin and then its argument prototype would still apply.  */
6560#ifdef __cplusplus
6561extern "C"
6562#endif
6563char socket ();
6564int
6565main ()
6566{
6567return socket ();
6568  ;
6569  return 0;
6570}
6571_ACEOF
6572if ac_fn_c_try_link "$LINENO"; then :
6573  ac_cv_lib_socket_socket=yes
6574else
6575  ac_cv_lib_socket_socket=no
6576fi
6577rm -f core conftest.err conftest.$ac_objext \
6578    conftest$ac_exeext conftest.$ac_ext
6579LIBS=$ac_check_lib_save_LIBS
6580fi
6581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
6582$as_echo "$ac_cv_lib_socket_socket" >&6; }
6583if test "x$ac_cv_lib_socket_socket" = xyes; then :
6584  cat >>confdefs.h <<_ACEOF
6585#define HAVE_LIBSOCKET 1
6586_ACEOF
6587
6588  LIBS="-lsocket $LIBS"
6589
6590fi
6591
6592fi
6593
6594ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
6595if test "x$ac_cv_func_gethostbyname" = xyes; then :
6596
6597else
6598  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6599$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6600if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
6601  $as_echo_n "(cached) " >&6
6602else
6603  ac_check_lib_save_LIBS=$LIBS
6604LIBS="-lnsl  $LIBS"
6605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6606/* end confdefs.h.  */
6607
6608/* Override any GCC internal prototype to avoid an error.
6609   Use char because int might match the return type of a GCC
6610   builtin and then its argument prototype would still apply.  */
6611#ifdef __cplusplus
6612extern "C"
6613#endif
6614char gethostbyname ();
6615int
6616main ()
6617{
6618return gethostbyname ();
6619  ;
6620  return 0;
6621}
6622_ACEOF
6623if ac_fn_c_try_link "$LINENO"; then :
6624  ac_cv_lib_nsl_gethostbyname=yes
6625else
6626  ac_cv_lib_nsl_gethostbyname=no
6627fi
6628rm -f core conftest.err conftest.$ac_objext \
6629    conftest$ac_exeext conftest.$ac_ext
6630LIBS=$ac_check_lib_save_LIBS
6631fi
6632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6633$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6634if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
6635  cat >>confdefs.h <<_ACEOF
6636#define HAVE_LIBNSL 1
6637_ACEOF
6638
6639  LIBS="-lnsl $LIBS"
6640
6641fi
6642
6643fi
6644
6645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
6646$as_echo_n "checking for library containing crypt... " >&6; }
6647if ${ac_cv_search_crypt+:} false; then :
6648  $as_echo_n "(cached) " >&6
6649else
6650  ac_func_search_save_LIBS=$LIBS
6651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652/* end confdefs.h.  */
6653
6654/* Override any GCC internal prototype to avoid an error.
6655   Use char because int might match the return type of a GCC
6656   builtin and then its argument prototype would still apply.  */
6657#ifdef __cplusplus
6658extern "C"
6659#endif
6660char crypt ();
6661int
6662main ()
6663{
6664return crypt ();
6665  ;
6666  return 0;
6667}
6668_ACEOF
6669for ac_lib in '' crypt; do
6670  if test -z "$ac_lib"; then
6671    ac_res="none required"
6672  else
6673    ac_res=-l$ac_lib
6674    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6675  fi
6676  if ac_fn_c_try_link "$LINENO"; then :
6677  ac_cv_search_crypt=$ac_res
6678fi
6679rm -f core conftest.err conftest.$ac_objext \
6680    conftest$ac_exeext
6681  if ${ac_cv_search_crypt+:} false; then :
6682  break
6683fi
6684done
6685if ${ac_cv_search_crypt+:} false; then :
6686
6687else
6688  ac_cv_search_crypt=no
6689fi
6690rm conftest.$ac_ext
6691LIBS=$ac_func_search_save_LIBS
6692fi
6693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
6694$as_echo "$ac_cv_search_crypt" >&6; }
6695ac_res=$ac_cv_search_crypt
6696if test "$ac_res" != no; then :
6697  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6698
6699$as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
6700
6701fi
6702
6703
6704
6705
6706  for ac_header in $ac_header_list
6707do :
6708  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6709ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6710"
6711if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6712  cat >>confdefs.h <<_ACEOF
6713#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6714_ACEOF
6715
6716fi
6717
6718done
6719
6720
6721
6722
6723
6724
6725
6726  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6727$as_echo_n "checking for unsigned long long int... " >&6; }
6728if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6729  $as_echo_n "(cached) " >&6
6730else
6731  ac_cv_type_unsigned_long_long_int=yes
6732     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6733       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734/* end confdefs.h.  */
6735
6736  /* For now, do not test the preprocessor; as of 2007 there are too many
6737         implementations with broken preprocessors.  Perhaps this can
6738         be revisited in 2012.  In the meantime, code should not expect
6739         #if to work with literals wider than 32 bits.  */
6740      /* Test literals.  */
6741      long long int ll = 9223372036854775807ll;
6742      long long int nll = -9223372036854775807LL;
6743      unsigned long long int ull = 18446744073709551615ULL;
6744      /* Test constant expressions.   */
6745      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6746                     ? 1 : -1)];
6747      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6748                     ? 1 : -1)];
6749      int i = 63;
6750int
6751main ()
6752{
6753/* Test availability of runtime routines for shift and division.  */
6754      long long int llmax = 9223372036854775807ll;
6755      unsigned long long int ullmax = 18446744073709551615ull;
6756      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6757              | (llmax / ll) | (llmax % ll)
6758              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6759              | (ullmax / ull) | (ullmax % ull));
6760  ;
6761  return 0;
6762}
6763
6764_ACEOF
6765if ac_fn_c_try_link "$LINENO"; then :
6766
6767else
6768  ac_cv_type_unsigned_long_long_int=no
6769fi
6770rm -f core conftest.err conftest.$ac_objext \
6771    conftest$ac_exeext conftest.$ac_ext
6772     fi
6773fi
6774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6775$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6776  if test $ac_cv_type_unsigned_long_long_int = yes; then
6777
6778$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6779
6780  fi
6781
6782
6783      ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
6784if test "x$ac_cv_func_vsnprintf" = xyes; then :
6785  hw_cv_func_vsnprintf=yes
6786else
6787  hw_cv_func_vsnprintf=no
6788fi
6789
6790  if test "$hw_cv_func_vsnprintf" = yes; then :
6791  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
6792$as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
6793if ${hw_cv_func_vsnprintf_c99+:} false; then :
6794  $as_echo_n "(cached) " >&6
6795else
6796  if test "$cross_compiling" = yes; then :
6797  hw_cv_func_vsnprintf_c99=no
6798else
6799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800/* end confdefs.h.  */
6801#if HAVE_STDARG_H
6802          #include <stdarg.h>
6803          #endif
6804          #include <stdio.h>
6805          static int testprintf(char *buf, size_t size, const char *format, ...)
6806          {
6807            int result;
6808            va_list ap;
6809            va_start(ap, format);
6810            result = vsnprintf(buf, size, format, ap);
6811            va_end(ap);
6812            return result;
6813          }
6814int
6815main ()
6816{
6817char buf[43];
6818          if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
6819              testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
6820              buf[0] != 'T' || buf[3] != '\0')
6821            return 1;
6822  ;
6823  return 0;
6824}
6825_ACEOF
6826if ac_fn_c_try_run "$LINENO"; then :
6827  hw_cv_func_vsnprintf_c99=yes
6828else
6829  hw_cv_func_vsnprintf_c99=no
6830fi
6831rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6832  conftest.$ac_objext conftest.beam conftest.$ac_ext
6833fi
6834
6835fi
6836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
6837$as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
6838else
6839  hw_cv_func_snprintf_c99=no
6840fi
6841  if test "$hw_cv_func_vsnprintf_c99" = yes; then :
6842
6843$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
6844
6845else
6846
6847$as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h
6848
6849    for ac_header in inttypes.h locale.h stddef.h stdint.h
6850do :
6851  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6852ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6853if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6854  cat >>confdefs.h <<_ACEOF
6855#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6856_ACEOF
6857
6858fi
6859
6860done
6861
6862    ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
6863"
6864if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
6865
6866cat >>confdefs.h <<_ACEOF
6867#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
6868_ACEOF
6869
6870
6871fi
6872ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
6873"
6874if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :
6875
6876cat >>confdefs.h <<_ACEOF
6877#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
6878_ACEOF
6879
6880
6881fi
6882
6883
6884  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6885$as_echo_n "checking for long double... " >&6; }
6886if ${ac_cv_type_long_double+:} false; then :
6887  $as_echo_n "(cached) " >&6
6888else
6889  if test "$GCC" = yes; then
6890       ac_cv_type_long_double=yes
6891     else
6892       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6893/* end confdefs.h.  */
6894/* The Stardent Vistra knows sizeof (long double), but does
6895		 not support it.  */
6896	      long double foo = 0.0L;
6897int
6898main ()
6899{
6900static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
6901	      sizeof (double) <= sizeof (long double))];
6902test_array [0] = 0;
6903return test_array [0];
6904
6905  ;
6906  return 0;
6907}
6908_ACEOF
6909if ac_fn_c_try_compile "$LINENO"; then :
6910  ac_cv_type_long_double=yes
6911else
6912  ac_cv_type_long_double=no
6913fi
6914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6915     fi
6916fi
6917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
6918$as_echo "$ac_cv_type_long_double" >&6; }
6919  if test $ac_cv_type_long_double = yes; then
6920
6921$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6922
6923  fi
6924
6925
6926
6927  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6928$as_echo_n "checking for long long int... " >&6; }
6929if ${ac_cv_type_long_long_int+:} false; then :
6930  $as_echo_n "(cached) " >&6
6931else
6932  ac_cv_type_long_long_int=yes
6933      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6934        ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6935        if test $ac_cv_type_long_long_int = yes; then
6936                                        if test "$cross_compiling" = yes; then :
6937  :
6938else
6939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6940/* end confdefs.h.  */
6941#include <limits.h>
6942                 #ifndef LLONG_MAX
6943                 # define HALF \
6944                          (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6945                 # define LLONG_MAX (HALF - 1 + HALF)
6946                 #endif
6947int
6948main ()
6949{
6950long long int n = 1;
6951                 int i;
6952                 for (i = 0; ; i++)
6953                   {
6954                     long long int m = n << i;
6955                     if (m >> i != n)
6956                       return 1;
6957                     if (LLONG_MAX / 2 < m)
6958                       break;
6959                   }
6960                 return 0;
6961  ;
6962  return 0;
6963}
6964_ACEOF
6965if ac_fn_c_try_run "$LINENO"; then :
6966
6967else
6968  ac_cv_type_long_long_int=no
6969fi
6970rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6971  conftest.$ac_objext conftest.beam conftest.$ac_ext
6972fi
6973
6974        fi
6975      fi
6976fi
6977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6978$as_echo "$ac_cv_type_long_long_int" >&6; }
6979  if test $ac_cv_type_long_long_int = yes; then
6980
6981$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6982
6983  fi
6984
6985
6986  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6987$as_echo_n "checking for unsigned long long int... " >&6; }
6988if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6989  $as_echo_n "(cached) " >&6
6990else
6991  ac_cv_type_unsigned_long_long_int=yes
6992     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6993       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994/* end confdefs.h.  */
6995
6996  /* For now, do not test the preprocessor; as of 2007 there are too many
6997         implementations with broken preprocessors.  Perhaps this can
6998         be revisited in 2012.  In the meantime, code should not expect
6999         #if to work with literals wider than 32 bits.  */
7000      /* Test literals.  */
7001      long long int ll = 9223372036854775807ll;
7002      long long int nll = -9223372036854775807LL;
7003      unsigned long long int ull = 18446744073709551615ULL;
7004      /* Test constant expressions.   */
7005      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7006                     ? 1 : -1)];
7007      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7008                     ? 1 : -1)];
7009      int i = 63;
7010int
7011main ()
7012{
7013/* Test availability of runtime routines for shift and division.  */
7014      long long int llmax = 9223372036854775807ll;
7015      unsigned long long int ullmax = 18446744073709551615ull;
7016      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7017              | (llmax / ll) | (llmax % ll)
7018              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7019              | (ullmax / ull) | (ullmax % ull));
7020  ;
7021  return 0;
7022}
7023
7024_ACEOF
7025if ac_fn_c_try_link "$LINENO"; then :
7026
7027else
7028  ac_cv_type_unsigned_long_long_int=no
7029fi
7030rm -f core conftest.err conftest.$ac_objext \
7031    conftest$ac_exeext conftest.$ac_ext
7032     fi
7033fi
7034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7035$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7036  if test $ac_cv_type_unsigned_long_long_int = yes; then
7037
7038$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7039
7040  fi
7041
7042    ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7043if test "x$ac_cv_type_size_t" = xyes; then :
7044
7045else
7046
7047cat >>confdefs.h <<_ACEOF
7048#define size_t unsigned int
7049_ACEOF
7050
7051fi
7052
7053
7054
7055  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
7056if test "x$ac_cv_type_intmax_t" = xyes; then :
7057
7058$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
7059
7060else
7061  test $ac_cv_type_long_long_int = yes \
7062       && ac_type='long long int' \
7063       || ac_type='long int'
7064
7065cat >>confdefs.h <<_ACEOF
7066#define intmax_t $ac_type
7067_ACEOF
7068
7069fi
7070
7071
7072
7073
7074  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
7075if test "x$ac_cv_type_uintmax_t" = xyes; then :
7076
7077$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7078
7079else
7080  test $ac_cv_type_unsigned_long_long_int = yes \
7081       && ac_type='unsigned long long int' \
7082       || ac_type='unsigned long int'
7083
7084cat >>confdefs.h <<_ACEOF
7085#define uintmax_t $ac_type
7086_ACEOF
7087
7088fi
7089
7090
7091
7092  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
7093if test "x$ac_cv_type_uintptr_t" = xyes; then :
7094
7095$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
7096
7097else
7098  for ac_type in 'unsigned int' 'unsigned long int' \
7099	'unsigned long long int'; do
7100       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7101/* end confdefs.h.  */
7102$ac_includes_default
7103int
7104main ()
7105{
7106static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
7107test_array [0] = 0;
7108return test_array [0];
7109
7110  ;
7111  return 0;
7112}
7113_ACEOF
7114if ac_fn_c_try_compile "$LINENO"; then :
7115
7116cat >>confdefs.h <<_ACEOF
7117#define uintptr_t $ac_type
7118_ACEOF
7119
7120	  ac_type=
7121fi
7122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7123       test -z "$ac_type" && break
7124     done
7125fi
7126
7127
7128    ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
7129if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
7130
7131cat >>confdefs.h <<_ACEOF
7132#define HAVE_PTRDIFF_T 1
7133_ACEOF
7134
7135
7136fi
7137
7138    for ac_func in localeconv
7139do :
7140  ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
7141if test "x$ac_cv_func_localeconv" = xyes; then :
7142  cat >>confdefs.h <<_ACEOF
7143#define HAVE_LOCALECONV 1
7144_ACEOF
7145
7146fi
7147done
7148
7149
7150  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
7151  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7152$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7153if ${ac_cv_c_const+:} false; then :
7154  $as_echo_n "(cached) " >&6
7155else
7156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7157/* end confdefs.h.  */
7158
7159int
7160main ()
7161{
7162
7163#ifndef __cplusplus
7164  /* Ultrix mips cc rejects this sort of thing.  */
7165  typedef int charset[2];
7166  const charset cs = { 0, 0 };
7167  /* SunOS 4.1.1 cc rejects this.  */
7168  char const *const *pcpcc;
7169  char **ppc;
7170  /* NEC SVR4.0.2 mips cc rejects this.  */
7171  struct point {int x, y;};
7172  static struct point const zero = {0,0};
7173  /* AIX XL C 1.02.0.0 rejects this.
7174     It does not let you subtract one const X* pointer from another in
7175     an arm of an if-expression whose if-part is not a constant
7176     expression */
7177  const char *g = "string";
7178  pcpcc = &g + (g ? g-g : 0);
7179  /* HPUX 7.0 cc rejects these. */
7180  ++pcpcc;
7181  ppc = (char**) pcpcc;
7182  pcpcc = (char const *const *) ppc;
7183  { /* SCO 3.2v4 cc rejects this sort of thing.  */
7184    char tx;
7185    char *t = &tx;
7186    char const *s = 0 ? (char *) 0 : (char const *) 0;
7187
7188    *t++ = 0;
7189    if (s) return 0;
7190  }
7191  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7192    int x[] = {25, 17};
7193    const int *foo = &x[0];
7194    ++foo;
7195  }
7196  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7197    typedef const int *iptr;
7198    iptr p = 0;
7199    ++p;
7200  }
7201  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7202       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7203    struct s { int j; const int *ap[3]; } bx;
7204    struct s *b = &bx; b->j = 5;
7205  }
7206  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7207    const int foo = 10;
7208    if (!foo) return 0;
7209  }
7210  return !cs[0] && !zero.x;
7211#endif
7212
7213  ;
7214  return 0;
7215}
7216_ACEOF
7217if ac_fn_c_try_compile "$LINENO"; then :
7218  ac_cv_c_const=yes
7219else
7220  ac_cv_c_const=no
7221fi
7222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7223fi
7224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7225$as_echo "$ac_cv_c_const" >&6; }
7226if test $ac_cv_c_const = no; then
7227
7228$as_echo "#define const /**/" >>confdefs.h
7229
7230fi
7231
7232
7233
7234
7235    case " $LIBOBJS " in
7236  *" snprintf.$ac_objext "* ) ;;
7237  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
7238 ;;
7239esac
7240
7241    _hw_cv_func_xprintf_replace_done=yes
7242fi
7243
7244fi
7245
7246
7247    ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
7248if test "x$ac_cv_func_snprintf" = xyes; then :
7249  hw_cv_func_snprintf=yes
7250else
7251  hw_cv_func_snprintf=no
7252fi
7253
7254  if test "$hw_cv_func_snprintf" = yes; then :
7255  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
7256$as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
7257if ${hw_cv_func_snprintf_c99+:} false; then :
7258  $as_echo_n "(cached) " >&6
7259else
7260  if test "$cross_compiling" = yes; then :
7261  hw_cv_func_snprintf_c99=no
7262else
7263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7264/* end confdefs.h.  */
7265#include <stdio.h>
7266int
7267main ()
7268{
7269char buf[43];
7270          if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
7271              snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
7272              buf[0] != 'T' || buf[3] != '\0')
7273            return 1;
7274  ;
7275  return 0;
7276}
7277_ACEOF
7278if ac_fn_c_try_run "$LINENO"; then :
7279  hw_cv_func_snprintf_c99=yes
7280else
7281  hw_cv_func_snprintf_c99=no
7282fi
7283rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7284  conftest.$ac_objext conftest.beam conftest.$ac_ext
7285fi
7286
7287fi
7288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
7289$as_echo "$hw_cv_func_snprintf_c99" >&6; }
7290else
7291  hw_cv_func_snprintf_c99=no
7292fi
7293  if test "$hw_cv_func_snprintf_c99" = yes; then :
7294
7295$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
7296
7297else
7298
7299$as_echo "#define snprintf rpl_snprintf" >>confdefs.h
7300
7301
7302  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
7303  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7304$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7305if ${ac_cv_c_const+:} false; then :
7306  $as_echo_n "(cached) " >&6
7307else
7308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7309/* end confdefs.h.  */
7310
7311int
7312main ()
7313{
7314
7315#ifndef __cplusplus
7316  /* Ultrix mips cc rejects this sort of thing.  */
7317  typedef int charset[2];
7318  const charset cs = { 0, 0 };
7319  /* SunOS 4.1.1 cc rejects this.  */
7320  char const *const *pcpcc;
7321  char **ppc;
7322  /* NEC SVR4.0.2 mips cc rejects this.  */
7323  struct point {int x, y;};
7324  static struct point const zero = {0,0};
7325  /* AIX XL C 1.02.0.0 rejects this.
7326     It does not let you subtract one const X* pointer from another in
7327     an arm of an if-expression whose if-part is not a constant
7328     expression */
7329  const char *g = "string";
7330  pcpcc = &g + (g ? g-g : 0);
7331  /* HPUX 7.0 cc rejects these. */
7332  ++pcpcc;
7333  ppc = (char**) pcpcc;
7334  pcpcc = (char const *const *) ppc;
7335  { /* SCO 3.2v4 cc rejects this sort of thing.  */
7336    char tx;
7337    char *t = &tx;
7338    char const *s = 0 ? (char *) 0 : (char const *) 0;
7339
7340    *t++ = 0;
7341    if (s) return 0;
7342  }
7343  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7344    int x[] = {25, 17};
7345    const int *foo = &x[0];
7346    ++foo;
7347  }
7348  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7349    typedef const int *iptr;
7350    iptr p = 0;
7351    ++p;
7352  }
7353  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7354       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7355    struct s { int j; const int *ap[3]; } bx;
7356    struct s *b = &bx; b->j = 5;
7357  }
7358  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7359    const int foo = 10;
7360    if (!foo) return 0;
7361  }
7362  return !cs[0] && !zero.x;
7363#endif
7364
7365  ;
7366  return 0;
7367}
7368_ACEOF
7369if ac_fn_c_try_compile "$LINENO"; then :
7370  ac_cv_c_const=yes
7371else
7372  ac_cv_c_const=no
7373fi
7374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7375fi
7376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7377$as_echo "$ac_cv_c_const" >&6; }
7378if test $ac_cv_c_const = no; then
7379
7380$as_echo "#define const /**/" >>confdefs.h
7381
7382fi
7383
7384
7385
7386
7387    case " $LIBOBJS " in
7388  *" snprintf.$ac_objext "* ) ;;
7389  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
7390 ;;
7391esac
7392
7393    _hw_cv_func_xprintf_replace_done=yes
7394fi
7395
7396fi
7397
7398
7399
7400
7401
7402
7403
7404    for ac_func in vasprintf
7405do :
7406  ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
7407if test "x$ac_cv_func_vasprintf" = xyes; then :
7408  cat >>confdefs.h <<_ACEOF
7409#define HAVE_VASPRINTF 1
7410_ACEOF
7411 hw_cv_func_vasprintf=yes
7412else
7413  hw_cv_func_vasprintf=no
7414fi
7415done
7416
7417  if test "$hw_cv_func_vasprintf" = no; then :
7418
7419$as_echo "#define vasprintf rpl_vasprintf" >>confdefs.h
7420
7421    for ac_header in stdlib.h
7422do :
7423  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
7424if test "x$ac_cv_header_stdlib_h" = xyes; then :
7425  cat >>confdefs.h <<_ACEOF
7426#define HAVE_STDLIB_H 1
7427_ACEOF
7428
7429fi
7430
7431done
7432
7433
7434      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
7435$as_echo_n "checking for va_copy... " >&6; }
7436if ${hw_cv_func_va_copy+:} false; then :
7437  $as_echo_n "(cached) " >&6
7438else
7439  if test "$cross_compiling" = yes; then :
7440  hw_cv_func_va_copy=no
7441else
7442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7443/* end confdefs.h.  */
7444#if HAVE_STDARG_H
7445        #include <stdarg.h>
7446        #elif HAVE_VARARGS_H
7447        #include <varargs.h>
7448        #endif
7449int
7450main ()
7451{
7452va_list ap, aq; va_copy(aq, ap);
7453  ;
7454  return 0;
7455}
7456_ACEOF
7457if ac_fn_c_try_run "$LINENO"; then :
7458  hw_cv_func_va_copy=yes
7459else
7460  hw_cv_func_va_copy=no
7461fi
7462rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7463  conftest.$ac_objext conftest.beam conftest.$ac_ext
7464fi
7465
7466fi
7467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_va_copy" >&5
7468$as_echo "$hw_cv_func_va_copy" >&6; }
7469  if test "$hw_cv_func_va_copy" = yes; then :
7470
7471$as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
7472
7473fi
7474
7475    if test "$hw_cv_func_va_copy" = no; then :
7476
7477      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5
7478$as_echo_n "checking for __va_copy... " >&6; }
7479if ${hw_cv_func___va_copy+:} false; then :
7480  $as_echo_n "(cached) " >&6
7481else
7482  if test "$cross_compiling" = yes; then :
7483  hw_cv_func___va_copy=no
7484else
7485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486/* end confdefs.h.  */
7487#if HAVE_STDARG_H
7488        #include <stdarg.h>
7489        #elif HAVE_VARARGS_H
7490        #include <varargs.h>
7491        #endif
7492int
7493main ()
7494{
7495va_list ap, aq; __va_copy(aq, ap);
7496  ;
7497  return 0;
7498}
7499_ACEOF
7500if ac_fn_c_try_run "$LINENO"; then :
7501  hw_cv_func___va_copy=yes
7502else
7503  hw_cv_func___va_copy=no
7504fi
7505rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7506  conftest.$ac_objext conftest.beam conftest.$ac_ext
7507fi
7508
7509fi
7510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func___va_copy" >&5
7511$as_echo "$hw_cv_func___va_copy" >&6; }
7512  if test "$hw_cv_func___va_copy" = yes; then :
7513
7514$as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
7515
7516fi
7517
7518fi
7519
7520  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
7521  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7522$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7523if ${ac_cv_c_const+:} false; then :
7524  $as_echo_n "(cached) " >&6
7525else
7526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527/* end confdefs.h.  */
7528
7529int
7530main ()
7531{
7532
7533#ifndef __cplusplus
7534  /* Ultrix mips cc rejects this sort of thing.  */
7535  typedef int charset[2];
7536  const charset cs = { 0, 0 };
7537  /* SunOS 4.1.1 cc rejects this.  */
7538  char const *const *pcpcc;
7539  char **ppc;
7540  /* NEC SVR4.0.2 mips cc rejects this.  */
7541  struct point {int x, y;};
7542  static struct point const zero = {0,0};
7543  /* AIX XL C 1.02.0.0 rejects this.
7544     It does not let you subtract one const X* pointer from another in
7545     an arm of an if-expression whose if-part is not a constant
7546     expression */
7547  const char *g = "string";
7548  pcpcc = &g + (g ? g-g : 0);
7549  /* HPUX 7.0 cc rejects these. */
7550  ++pcpcc;
7551  ppc = (char**) pcpcc;
7552  pcpcc = (char const *const *) ppc;
7553  { /* SCO 3.2v4 cc rejects this sort of thing.  */
7554    char tx;
7555    char *t = &tx;
7556    char const *s = 0 ? (char *) 0 : (char const *) 0;
7557
7558    *t++ = 0;
7559    if (s) return 0;
7560  }
7561  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7562    int x[] = {25, 17};
7563    const int *foo = &x[0];
7564    ++foo;
7565  }
7566  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7567    typedef const int *iptr;
7568    iptr p = 0;
7569    ++p;
7570  }
7571  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7572       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7573    struct s { int j; const int *ap[3]; } bx;
7574    struct s *b = &bx; b->j = 5;
7575  }
7576  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7577    const int foo = 10;
7578    if (!foo) return 0;
7579  }
7580  return !cs[0] && !zero.x;
7581#endif
7582
7583  ;
7584  return 0;
7585}
7586_ACEOF
7587if ac_fn_c_try_compile "$LINENO"; then :
7588  ac_cv_c_const=yes
7589else
7590  ac_cv_c_const=no
7591fi
7592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7593fi
7594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7595$as_echo "$ac_cv_c_const" >&6; }
7596if test $ac_cv_c_const = no; then
7597
7598$as_echo "#define const /**/" >>confdefs.h
7599
7600fi
7601
7602
7603
7604
7605    case " $LIBOBJS " in
7606  *" snprintf.$ac_objext "* ) ;;
7607  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
7608 ;;
7609esac
7610
7611    _hw_cv_func_xprintf_replace_done=yes
7612fi
7613
7614fi
7615
7616
7617    for ac_func in asprintf
7618do :
7619  ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
7620if test "x$ac_cv_func_asprintf" = xyes; then :
7621  cat >>confdefs.h <<_ACEOF
7622#define HAVE_ASPRINTF 1
7623_ACEOF
7624 hw_cv_func_asprintf=yes
7625else
7626  hw_cv_func_asprintf=no
7627fi
7628done
7629
7630  if test "$hw_cv_func_asprintf" = no; then :
7631
7632$as_echo "#define asprintf rpl_asprintf" >>confdefs.h
7633
7634
7635  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
7636  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7637$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7638if ${ac_cv_c_const+:} false; then :
7639  $as_echo_n "(cached) " >&6
7640else
7641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7642/* end confdefs.h.  */
7643
7644int
7645main ()
7646{
7647
7648#ifndef __cplusplus
7649  /* Ultrix mips cc rejects this sort of thing.  */
7650  typedef int charset[2];
7651  const charset cs = { 0, 0 };
7652  /* SunOS 4.1.1 cc rejects this.  */
7653  char const *const *pcpcc;
7654  char **ppc;
7655  /* NEC SVR4.0.2 mips cc rejects this.  */
7656  struct point {int x, y;};
7657  static struct point const zero = {0,0};
7658  /* AIX XL C 1.02.0.0 rejects this.
7659     It does not let you subtract one const X* pointer from another in
7660     an arm of an if-expression whose if-part is not a constant
7661     expression */
7662  const char *g = "string";
7663  pcpcc = &g + (g ? g-g : 0);
7664  /* HPUX 7.0 cc rejects these. */
7665  ++pcpcc;
7666  ppc = (char**) pcpcc;
7667  pcpcc = (char const *const *) ppc;
7668  { /* SCO 3.2v4 cc rejects this sort of thing.  */
7669    char tx;
7670    char *t = &tx;
7671    char const *s = 0 ? (char *) 0 : (char const *) 0;
7672
7673    *t++ = 0;
7674    if (s) return 0;
7675  }
7676  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7677    int x[] = {25, 17};
7678    const int *foo = &x[0];
7679    ++foo;
7680  }
7681  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7682    typedef const int *iptr;
7683    iptr p = 0;
7684    ++p;
7685  }
7686  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7687       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7688    struct s { int j; const int *ap[3]; } bx;
7689    struct s *b = &bx; b->j = 5;
7690  }
7691  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7692    const int foo = 10;
7693    if (!foo) return 0;
7694  }
7695  return !cs[0] && !zero.x;
7696#endif
7697
7698  ;
7699  return 0;
7700}
7701_ACEOF
7702if ac_fn_c_try_compile "$LINENO"; then :
7703  ac_cv_c_const=yes
7704else
7705  ac_cv_c_const=no
7706fi
7707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7708fi
7709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7710$as_echo "$ac_cv_c_const" >&6; }
7711if test $ac_cv_c_const = no; then
7712
7713$as_echo "#define const /**/" >>confdefs.h
7714
7715fi
7716
7717
7718
7719
7720    case " $LIBOBJS " in
7721  *" snprintf.$ac_objext "* ) ;;
7722  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
7723 ;;
7724esac
7725
7726    _hw_cv_func_xprintf_replace_done=yes
7727fi
7728
7729fi
7730
7731
7732CRACKLIB_C=""
7733CRACKLIB_LIBS=""
7734
7735# Check whether --with-cracklib was given.
7736if test "${with_cracklib+set}" = set; then :
7737  withval=$with_cracklib;
7738else
7739  with_cracklib="auto"
7740fi
7741
7742if test "x$with_cracklib" != "xno"; then :
7743  LIBS_save="$LIBS"
7744	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing FascistCheck" >&5
7745$as_echo_n "checking for library containing FascistCheck... " >&6; }
7746if ${ac_cv_search_FascistCheck+:} false; then :
7747  $as_echo_n "(cached) " >&6
7748else
7749  ac_func_search_save_LIBS=$LIBS
7750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751/* end confdefs.h.  */
7752
7753/* Override any GCC internal prototype to avoid an error.
7754   Use char because int might match the return type of a GCC
7755   builtin and then its argument prototype would still apply.  */
7756#ifdef __cplusplus
7757extern "C"
7758#endif
7759char FascistCheck ();
7760int
7761main ()
7762{
7763return FascistCheck ();
7764  ;
7765  return 0;
7766}
7767_ACEOF
7768for ac_lib in '' crack; do
7769  if test -z "$ac_lib"; then
7770    ac_res="none required"
7771  else
7772    ac_res=-l$ac_lib
7773    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7774  fi
7775  if ac_fn_c_try_link "$LINENO"; then :
7776  ac_cv_search_FascistCheck=$ac_res
7777fi
7778rm -f core conftest.err conftest.$ac_objext \
7779    conftest$ac_exeext
7780  if ${ac_cv_search_FascistCheck+:} false; then :
7781  break
7782fi
7783done
7784if ${ac_cv_search_FascistCheck+:} false; then :
7785
7786else
7787  ac_cv_search_FascistCheck=no
7788fi
7789rm conftest.$ac_ext
7790LIBS=$ac_func_search_save_LIBS
7791fi
7792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_FascistCheck" >&5
7793$as_echo "$ac_cv_search_FascistCheck" >&6; }
7794ac_res=$ac_cv_search_FascistCheck
7795if test "$ac_res" != no; then :
7796  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7797  CRACKLIB_C="cracklib.c"
7798		if test "x$ac_cv_search_FascistCheck" != "xnone required"; then :
7799  CRACKLIB_LIBS="$ac_cv_search_FascistCheck"
7800fi
7801else
7802  if test "x$with_cracklib" != "xauto"; then :
7803  as_fn_error $? "--with-cracklib was specified but cracklib could not be found." "$LINENO" 5
7804fi
7805fi
7806
7807	LIBS="$LIBS_save"
7808fi
7809
7810
7811
7812
7813# Check whether --with-ldap was given.
7814if test "${with_ldap+set}" = set; then :
7815  withval=$with_ldap;
7816else
7817  with_ldap="auto"
7818fi
7819
7820
7821if test "x$with_ldap" != "xno"; then :
7822
7823# Thank autoconf and openldap developers for making me do all this stuff.
7824LDAP_CFLAGS=""
7825LDAP_LIBS=""
7826LDAP_AUTHC=""
7827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap" >&5
7828$as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
7829if ${ac_cv_lib_ldap_ldap_initialize+:} false; then :
7830  $as_echo_n "(cached) " >&6
7831else
7832  ac_check_lib_save_LIBS=$LIBS
7833LIBS="-lldap  $LIBS"
7834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835/* end confdefs.h.  */
7836
7837/* Override any GCC internal prototype to avoid an error.
7838   Use char because int might match the return type of a GCC
7839   builtin and then its argument prototype would still apply.  */
7840#ifdef __cplusplus
7841extern "C"
7842#endif
7843char ldap_initialize ();
7844int
7845main ()
7846{
7847return ldap_initialize ();
7848  ;
7849  return 0;
7850}
7851_ACEOF
7852if ac_fn_c_try_link "$LINENO"; then :
7853  ac_cv_lib_ldap_ldap_initialize=yes
7854else
7855  ac_cv_lib_ldap_ldap_initialize=no
7856fi
7857rm -f core conftest.err conftest.$ac_objext \
7858    conftest$ac_exeext conftest.$ac_ext
7859LIBS=$ac_check_lib_save_LIBS
7860fi
7861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_initialize" >&5
7862$as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
7863if test "x$ac_cv_lib_ldap_ldap_initialize" = xyes; then :
7864
7865	LDAP_CFLAGS=""
7866	LDAP_LIBS="-lldap"
7867	LDAP_AUTHC="ldap.c"
7868
7869else
7870
7871	unset ac_cv_lib_ldap_ldap_initialize
7872	saveCFLAGS="$CFLAGS"
7873	saveLIBS="$LIBS"
7874	CFLAGS="$CFLAGS -I/usr/local/include"
7875	LIBS="$LIBS -L/usr/local/lib"
7876	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap" >&5
7877$as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
7878if ${ac_cv_lib_ldap_ldap_initialize+:} false; then :
7879  $as_echo_n "(cached) " >&6
7880else
7881  ac_check_lib_save_LIBS=$LIBS
7882LIBS="-lldap  $LIBS"
7883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884/* end confdefs.h.  */
7885
7886/* Override any GCC internal prototype to avoid an error.
7887   Use char because int might match the return type of a GCC
7888   builtin and then its argument prototype would still apply.  */
7889#ifdef __cplusplus
7890extern "C"
7891#endif
7892char ldap_initialize ();
7893int
7894main ()
7895{
7896return ldap_initialize ();
7897  ;
7898  return 0;
7899}
7900_ACEOF
7901if ac_fn_c_try_link "$LINENO"; then :
7902  ac_cv_lib_ldap_ldap_initialize=yes
7903else
7904  ac_cv_lib_ldap_ldap_initialize=no
7905fi
7906rm -f core conftest.err conftest.$ac_objext \
7907    conftest$ac_exeext conftest.$ac_ext
7908LIBS=$ac_check_lib_save_LIBS
7909fi
7910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_initialize" >&5
7911$as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
7912if test "x$ac_cv_lib_ldap_ldap_initialize" = xyes; then :
7913
7914		LDAP_CFLAGS="-I/usr/local/include"
7915		LDAP_LIBS="-L/usr/local/lib -lldap"
7916		LDAP_AUTHC="ldap.c"
7917
7918fi
7919
7920	CFLAGS="$saveCFLAGS"
7921	LIBS="$saveLIBS"
7922
7923fi
7924
7925
7926fi
7927
7928if test "x$with_ldap" = "xyes" && test "x$LDAP_AUTHC" = "x"; then :
7929  as_fn_error $? "LDAP support was explicitly requested but could not be found." "$LINENO" 5
7930fi
7931
7932
7933
7934
7935
7936
7937# Check whether --with-perl was given.
7938if test "${with_perl+set}" = set; then :
7939  withval=$with_perl;
7940else
7941  with_perl="no"
7942fi
7943
7944
7945if test "x$with_perl" != "xno"; then :
7946
7947  # Extract the first word of "perl", so it can be a program name with args.
7948set dummy perl; ac_word=$2
7949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7950$as_echo_n "checking for $ac_word... " >&6; }
7951if ${ac_cv_path_perlpath+:} false; then :
7952  $as_echo_n "(cached) " >&6
7953else
7954  case $perlpath in
7955  [\\/]* | ?:[\\/]*)
7956  ac_cv_path_perlpath="$perlpath" # Let the user override the test with a path.
7957  ;;
7958  *)
7959  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7960for as_dir in $PATH
7961do
7962  IFS=$as_save_IFS
7963  test -z "$as_dir" && as_dir=.
7964    for ac_exec_ext in '' $ac_executable_extensions; do
7965  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7966    ac_cv_path_perlpath="$as_dir/$ac_word$ac_exec_ext"
7967    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7968    break 2
7969  fi
7970done
7971  done
7972IFS=$as_save_IFS
7973
7974  ;;
7975esac
7976fi
7977perlpath=$ac_cv_path_perlpath
7978if test -n "$perlpath"; then
7979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perlpath" >&5
7980$as_echo "$perlpath" >&6; }
7981else
7982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983$as_echo "no" >&6; }
7984fi
7985
7986
7987  if test -n "$perlpath"; then
7988      PERL_ENABLE=perl
7989      PERL_CFLAGS=`perl -MExtUtils::Embed -e ccopts`
7990      PERL_LIBS=`perl -MExtUtils::Embed -e ldopts`
7991  fi
7992
7993    if test -n "`echo "$PERL_LIBS" | grep pthread`"; then
7994     LIBS="$LIBS -lpthread"
7995  fi
7996
7997fi
7998
7999if test "x$with_perl" = "xyes" && test "x$PERL_CFLAGS" = "x"; then :
8000  as_fn_error $? "Perl support was requested but Perl could not be found." "$LINENO" 5
8001fi
8002
8003
8004
8005
8006
8007mkdir_p="mkdir -p"
8008
8009
8010DOCDIR='${prefix}/doc'
8011MODDIR='${exec_prefix}'
8012SHAREDIR='${prefix}'
8013LOGDIR='${prefix}/var'
8014DATADIR='${prefix}/etc'
8015RUNDIR='${prefix}/var'
8016
8017FHSPATHS="no"
8018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want FHS-like pathnames" >&5
8019$as_echo_n "checking if you want FHS-like pathnames... " >&6; }
8020# Check whether --enable-fhs-paths was given.
8021if test "${enable_fhs_paths+set}" = set; then :
8022  enableval=$enable_fhs_paths;
8023  case "$enableval" in
8024  yes)
8025    FHSPATHS="yes"
8026    DOCDIR='${datadir}/doc/atheme'
8027    MODDIR='${libdir}/atheme'
8028    SHAREDIR='${datadir}/atheme'
8029    LOGDIR='${localstatedir}/log/atheme'
8030    DATADIR='${localstatedir}/lib/atheme'
8031    RUNDIR='${localstatedir}/run/atheme'
8032    ;;
8033  no)
8034    FHSPATHS="no"
8035    ;;
8036  esac
8037
8038fi
8039
8040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FHSPATHS" >&5
8041$as_echo "$FHSPATHS" >&6; }
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052LOCALEDIR='${datadir}/locale'
8053
8054
8055REPRODUCIBLEBUILDS="no"
8056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want reproducible builds" >&5
8057$as_echo_n "checking if you want reproducible builds... " >&6; }
8058# Check whether --enable-reproducible-builds was given.
8059if test "${enable_reproducible_builds+set}" = set; then :
8060  enableval=$enable_reproducible_builds;
8061  case "$enableval" in
8062  yes)
8063    REPRODUCIBLEBUILDS="yes"
8064
8065$as_echo "#define REPRODUCIBLE_BUILDS 1" >>confdefs.h
8066
8067    ;;
8068  no)
8069    REPRODUCIBLEBUILDS="no"
8070    ;;
8071  esac
8072
8073fi
8074
8075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPRODUCIBLEBUILDS" >&5
8076$as_echo "$REPRODUCIBLEBUILDS" >&6; }
8077
8078LARGENET="no"
8079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want large network support" >&5
8080$as_echo_n "checking if you want large network support... " >&6; }
8081# Check whether --enable-large-net was given.
8082if test "${enable_large_net+set}" = set; then :
8083  enableval=$enable_large_net;
8084  case "$enableval" in
8085  yes)
8086    LARGENET="yes"
8087
8088$as_echo "#define LARGE_NETWORK 1" >>confdefs.h
8089
8090    ;;
8091  no)
8092    LARGENET="no"
8093    ;;
8094  esac
8095
8096fi
8097
8098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LARGENET" >&5
8099$as_echo "$LARGENET" >&6; }
8100
8101CONTRIB="no"
8102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want contrib modules" >&5
8103$as_echo_n "checking if you want contrib modules... " >&6; }
8104# Check whether --enable-contrib was given.
8105if test "${enable_contrib+set}" = set; then :
8106  enableval=$enable_contrib;
8107  case "$enableval" in
8108  yes)
8109    CONTRIB="yes"
8110    ;;
8111  no)
8112    CONTRIB="no"
8113    ;;
8114  esac
8115
8116fi
8117
8118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONTRIB" >&5
8119$as_echo "$CONTRIB" >&6; }
8120
8121if test "$CONTRIB" = "yes"; then
8122	CONTRIB_ENABLE="contrib"
8123else
8124	CONTRIB_ENABLE=""
8125fi
8126
8127
8128
8129# Check whether --enable-ssl was given.
8130if test "${enable_ssl+set}" = set; then :
8131  enableval=$enable_ssl;
8132else
8133  enable_ssl=yes
8134fi
8135
8136
8137SSL=no
8138if test "$enable_ssl" = "yes"; then
8139	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_read in -lssl" >&5
8140$as_echo_n "checking for SSL_read in -lssl... " >&6; }
8141if ${ac_cv_lib_ssl_SSL_read+:} false; then :
8142  $as_echo_n "(cached) " >&6
8143else
8144  ac_check_lib_save_LIBS=$LIBS
8145LIBS="-lssl -lcrypto $LIBS"
8146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8147/* end confdefs.h.  */
8148
8149/* Override any GCC internal prototype to avoid an error.
8150   Use char because int might match the return type of a GCC
8151   builtin and then its argument prototype would still apply.  */
8152#ifdef __cplusplus
8153extern "C"
8154#endif
8155char SSL_read ();
8156int
8157main ()
8158{
8159return SSL_read ();
8160  ;
8161  return 0;
8162}
8163_ACEOF
8164if ac_fn_c_try_link "$LINENO"; then :
8165  ac_cv_lib_ssl_SSL_read=yes
8166else
8167  ac_cv_lib_ssl_SSL_read=no
8168fi
8169rm -f core conftest.err conftest.$ac_objext \
8170    conftest$ac_exeext conftest.$ac_ext
8171LIBS=$ac_check_lib_save_LIBS
8172fi
8173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_read" >&5
8174$as_echo "$ac_cv_lib_ssl_SSL_read" >&6; }
8175if test "x$ac_cv_lib_ssl_SSL_read" = xyes; then :
8176
8177		for ac_header in openssl/ssl.h openssl/err.h
8178do :
8179  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8180ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8181if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8182  cat >>confdefs.h <<_ACEOF
8183#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8184_ACEOF
8185
8186			SSL_LIBS="-lssl -lcrypto"
8187
8188			SSL=yes
8189
8190else
8191  SSL=no
8192fi
8193
8194done
8195
8196
8197else
8198
8199			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_generate_key in -leay32" >&5
8200$as_echo_n "checking for DH_generate_key in -leay32... " >&6; }
8201if ${ac_cv_lib_eay32_DH_generate_key+:} false; then :
8202  $as_echo_n "(cached) " >&6
8203else
8204  ac_check_lib_save_LIBS=$LIBS
8205LIBS="-leay32  $LIBS"
8206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207/* end confdefs.h.  */
8208
8209/* Override any GCC internal prototype to avoid an error.
8210   Use char because int might match the return type of a GCC
8211   builtin and then its argument prototype would still apply.  */
8212#ifdef __cplusplus
8213extern "C"
8214#endif
8215char DH_generate_key ();
8216int
8217main ()
8218{
8219return DH_generate_key ();
8220  ;
8221  return 0;
8222}
8223_ACEOF
8224if ac_fn_c_try_link "$LINENO"; then :
8225  ac_cv_lib_eay32_DH_generate_key=yes
8226else
8227  ac_cv_lib_eay32_DH_generate_key=no
8228fi
8229rm -f core conftest.err conftest.$ac_objext \
8230    conftest$ac_exeext conftest.$ac_ext
8231LIBS=$ac_check_lib_save_LIBS
8232fi
8233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_eay32_DH_generate_key" >&5
8234$as_echo "$ac_cv_lib_eay32_DH_generate_key" >&6; }
8235if test "x$ac_cv_lib_eay32_DH_generate_key" = xyes; then :
8236
8237				for ac_header in openssl/ssl.h openssl/err.h
8238do :
8239  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8240ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8241if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8242  cat >>confdefs.h <<_ACEOF
8243#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8244_ACEOF
8245
8246					# Ugh.
8247					SSL_LIBS="-leay32 /mingw/lib/ssleay32.a"
8248
8249					SSL=yes
8250
8251else
8252  SSL=no
8253fi
8254
8255done
8256
8257
8258fi
8259
8260
8261fi
8262
8263	if test "$SSL" = "yes"; then
8264		for ac_header in openssl/ec.h
8265do :
8266  ac_fn_c_check_header_mongrel "$LINENO" "openssl/ec.h" "ac_cv_header_openssl_ec_h" "$ac_includes_default"
8267if test "x$ac_cv_header_openssl_ec_h" = xyes; then :
8268  cat >>confdefs.h <<_ACEOF
8269#define HAVE_OPENSSL_EC_H 1
8270_ACEOF
8271
8272fi
8273
8274done
8275 # Defines HAVE_OPENSSL_EC_H
8276
8277$as_echo "#define HAVE_OPENSSL /**/" >>confdefs.h
8278
8279	fi
8280fi
8281
8282case "$host" in
8283*-*-mingw32)
8284    CFLAGS="-I/mingw/include $CFLAGS"
8285    LIBS="$LIBS -lwsock32 -lws2_32 -lregex"
8286        ;;
8287esac
8288
8289
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -std=gnu99" >&5
8291$as_echo_n "checking GCC flag(s) -std=gnu99... " >&6; }
8292 if test "${GCC-no}" = yes
8293 then
8294  if ${atheme_cv_c_gcc_std_gnu99+:} false; then :
8295  $as_echo_n "(cached) " >&6
8296else
8297
8298   oldcflags="${CFLAGS-}"
8299   CFLAGS="${CFLAGS-} ${CWARNS} -std=gnu99 -Werror"
8300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8301/* end confdefs.h.  */
8302
8303#include <string.h>
8304#include <stdio.h>
8305int main(void);
8306
8307int
8308main ()
8309{
8310
8311    strcmp("a","b"); fprintf(stdout,"test ok\n");
8312
8313  ;
8314  return 0;
8315}
8316_ACEOF
8317if ac_fn_c_try_compile "$LINENO"; then :
8318  atheme_cv_c_gcc_std_gnu99=yes
8319else
8320  atheme_cv_c_gcc_std_gnu99=no
8321fi
8322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8323   CFLAGS="${oldcflags}"
8324fi
8325
8326  if test "x$atheme_cv_c_gcc_std_gnu99" = xyes; then
8327   CWARNS="${CWARNS}-std=gnu99 "
8328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8329$as_echo "ok" >&6; }
8330  else
8331   atheme_cv_c_gcc_std_gnu99=''
8332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8333$as_echo "no" >&6; }
8334  fi
8335 else
8336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337$as_echo "no" >&6; }
8338 fi
8339
8340
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Werror-implicit-function-declaration" >&5
8342$as_echo_n "checking GCC flag(s) -Werror-implicit-function-declaration... " >&6; }
8343 if test "${GCC-no}" = yes
8344 then
8345  if ${atheme_cv_c_gcc_w_error_implicit_function_declaration+:} false; then :
8346  $as_echo_n "(cached) " >&6
8347else
8348
8349   oldcflags="${CFLAGS-}"
8350   CFLAGS="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror"
8351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8352/* end confdefs.h.  */
8353
8354#include <string.h>
8355#include <stdio.h>
8356int main(void);
8357
8358int
8359main ()
8360{
8361
8362    strcmp("a","b"); fprintf(stdout,"test ok\n");
8363
8364  ;
8365  return 0;
8366}
8367_ACEOF
8368if ac_fn_c_try_compile "$LINENO"; then :
8369  atheme_cv_c_gcc_w_error_implicit_function_declaration=yes
8370else
8371  atheme_cv_c_gcc_w_error_implicit_function_declaration=no
8372fi
8373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8374   CFLAGS="${oldcflags}"
8375fi
8376
8377  if test "x$atheme_cv_c_gcc_w_error_implicit_function_declaration" = xyes; then
8378   CWARNS="${CWARNS}-Werror-implicit-function-declaration "
8379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8380$as_echo "ok" >&6; }
8381  else
8382   atheme_cv_c_gcc_w_error_implicit_function_declaration=''
8383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8384$as_echo "no" >&6; }
8385  fi
8386 else
8387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388$as_echo "no" >&6; }
8389 fi
8390
8391
8392# Check whether --enable-warnings was given.
8393if test "${enable_warnings+set}" = set; then :
8394  enableval=$enable_warnings;
8395else
8396  enable_warnings=no
8397fi
8398
8399if test "x$enable_warnings" = "xyes"; then :
8400
8401
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wall" >&5
8403$as_echo_n "checking GCC flag(s) -Wall... " >&6; }
8404 if test "${GCC-no}" = yes
8405 then
8406  if ${atheme_cv_c_gcc_w_all+:} false; then :
8407  $as_echo_n "(cached) " >&6
8408else
8409
8410   oldcflags="${CFLAGS-}"
8411   CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror"
8412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8413/* end confdefs.h.  */
8414
8415#include <string.h>
8416#include <stdio.h>
8417int main(void);
8418
8419int
8420main ()
8421{
8422
8423    strcmp("a","b"); fprintf(stdout,"test ok\n");
8424
8425  ;
8426  return 0;
8427}
8428_ACEOF
8429if ac_fn_c_try_compile "$LINENO"; then :
8430  atheme_cv_c_gcc_w_all=yes
8431else
8432  atheme_cv_c_gcc_w_all=no
8433fi
8434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8435   CFLAGS="${oldcflags}"
8436fi
8437
8438  if test "x$atheme_cv_c_gcc_w_all" = xyes; then
8439   CWARNS="${CWARNS}-Wall "
8440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8441$as_echo "ok" >&6; }
8442  else
8443   atheme_cv_c_gcc_w_all=''
8444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445$as_echo "no" >&6; }
8446  fi
8447 else
8448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8449$as_echo "no" >&6; }
8450 fi
8451
8452
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpointer-arith" >&5
8454$as_echo_n "checking GCC flag(s) -Wpointer-arith... " >&6; }
8455 if test "${GCC-no}" = yes
8456 then
8457  if ${atheme_cv_c_gcc_w_pointer_arith+:} false; then :
8458  $as_echo_n "(cached) " >&6
8459else
8460
8461   oldcflags="${CFLAGS-}"
8462   CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
8463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8464/* end confdefs.h.  */
8465
8466#include <string.h>
8467#include <stdio.h>
8468int main(void);
8469
8470int
8471main ()
8472{
8473
8474    strcmp("a","b"); fprintf(stdout,"test ok\n");
8475
8476  ;
8477  return 0;
8478}
8479_ACEOF
8480if ac_fn_c_try_compile "$LINENO"; then :
8481  atheme_cv_c_gcc_w_pointer_arith=yes
8482else
8483  atheme_cv_c_gcc_w_pointer_arith=no
8484fi
8485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8486   CFLAGS="${oldcflags}"
8487fi
8488
8489  if test "x$atheme_cv_c_gcc_w_pointer_arith" = xyes; then
8490   CWARNS="${CWARNS}-Wpointer-arith "
8491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8492$as_echo "ok" >&6; }
8493  else
8494   atheme_cv_c_gcc_w_pointer_arith=''
8495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8496$as_echo "no" >&6; }
8497  fi
8498 else
8499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8500$as_echo "no" >&6; }
8501 fi
8502
8503
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5
8505$as_echo_n "checking GCC flag(s) -Wimplicit -Wnested-externs... " >&6; }
8506 if test "${GCC-no}" = yes
8507 then
8508  if ${atheme_cv_c_gcc_w_implicit+:} false; then :
8509  $as_echo_n "(cached) " >&6
8510else
8511
8512   oldcflags="${CFLAGS-}"
8513   CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
8514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515/* end confdefs.h.  */
8516
8517#include <string.h>
8518#include <stdio.h>
8519int main(void);
8520
8521int
8522main ()
8523{
8524
8525    strcmp("a","b"); fprintf(stdout,"test ok\n");
8526
8527  ;
8528  return 0;
8529}
8530_ACEOF
8531if ac_fn_c_try_compile "$LINENO"; then :
8532  atheme_cv_c_gcc_w_implicit=yes
8533else
8534  atheme_cv_c_gcc_w_implicit=no
8535fi
8536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8537   CFLAGS="${oldcflags}"
8538fi
8539
8540  if test "x$atheme_cv_c_gcc_w_implicit" = xyes; then
8541   CWARNS="${CWARNS}-Wimplicit -Wnested-externs "
8542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8543$as_echo "ok" >&6; }
8544  else
8545   atheme_cv_c_gcc_w_implicit=''
8546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8547$as_echo "no" >&6; }
8548  fi
8549 else
8550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8551$as_echo "no" >&6; }
8552 fi
8553
8554
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-align" >&5
8556$as_echo_n "checking GCC flag(s) -Wcast-align... " >&6; }
8557 if test "${GCC-no}" = yes
8558 then
8559  if ${atheme_cv_c_gcc_w_cast_align+:} false; then :
8560  $as_echo_n "(cached) " >&6
8561else
8562
8563   oldcflags="${CFLAGS-}"
8564   CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror"
8565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8566/* end confdefs.h.  */
8567
8568#include <string.h>
8569#include <stdio.h>
8570int main(void);
8571
8572int
8573main ()
8574{
8575
8576    strcmp("a","b"); fprintf(stdout,"test ok\n");
8577
8578  ;
8579  return 0;
8580}
8581_ACEOF
8582if ac_fn_c_try_compile "$LINENO"; then :
8583  atheme_cv_c_gcc_w_cast_align=yes
8584else
8585  atheme_cv_c_gcc_w_cast_align=no
8586fi
8587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8588   CFLAGS="${oldcflags}"
8589fi
8590
8591  if test "x$atheme_cv_c_gcc_w_cast_align" = xyes; then
8592   CWARNS="${CWARNS}-Wcast-align "
8593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8594$as_echo "ok" >&6; }
8595  else
8596   atheme_cv_c_gcc_w_cast_align=''
8597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8598$as_echo "no" >&6; }
8599  fi
8600 else
8601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8602$as_echo "no" >&6; }
8603 fi
8604
8605
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-qual" >&5
8607$as_echo_n "checking GCC flag(s) -Wcast-qual... " >&6; }
8608 if test "${GCC-no}" = yes
8609 then
8610  if ${atheme_cv_c_gcc_w_cast_qual+:} false; then :
8611  $as_echo_n "(cached) " >&6
8612else
8613
8614   oldcflags="${CFLAGS-}"
8615   CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror"
8616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8617/* end confdefs.h.  */
8618
8619#include <string.h>
8620#include <stdio.h>
8621int main(void);
8622
8623int
8624main ()
8625{
8626
8627    strcmp("a","b"); fprintf(stdout,"test ok\n");
8628
8629  ;
8630  return 0;
8631}
8632_ACEOF
8633if ac_fn_c_try_compile "$LINENO"; then :
8634  atheme_cv_c_gcc_w_cast_qual=yes
8635else
8636  atheme_cv_c_gcc_w_cast_qual=no
8637fi
8638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8639   CFLAGS="${oldcflags}"
8640fi
8641
8642  if test "x$atheme_cv_c_gcc_w_cast_qual" = xyes; then
8643   CWARNS="${CWARNS}-Wcast-qual "
8644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8645$as_echo "ok" >&6; }
8646  else
8647   atheme_cv_c_gcc_w_cast_qual=''
8648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8649$as_echo "no" >&6; }
8650  fi
8651 else
8652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8653$as_echo "no" >&6; }
8654 fi
8655
8656
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5
8658$as_echo_n "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... " >&6; }
8659 if test "${GCC-no}" = yes
8660 then
8661  if ${atheme_cv_c_gcc_prototypes+:} false; then :
8662  $as_echo_n "(cached) " >&6
8663else
8664
8665   oldcflags="${CFLAGS-}"
8666   CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror"
8667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8668/* end confdefs.h.  */
8669
8670#include <string.h>
8671#include <stdio.h>
8672int main(void);
8673
8674int
8675main ()
8676{
8677
8678    strcmp("a","b"); fprintf(stdout,"test ok\n");
8679
8680  ;
8681  return 0;
8682}
8683_ACEOF
8684if ac_fn_c_try_compile "$LINENO"; then :
8685  atheme_cv_c_gcc_prototypes=yes
8686else
8687  atheme_cv_c_gcc_prototypes=no
8688fi
8689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8690   CFLAGS="${oldcflags}"
8691fi
8692
8693  if test "x$atheme_cv_c_gcc_prototypes" = xyes; then
8694   CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations "
8695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8696$as_echo "ok" >&6; }
8697  else
8698   atheme_cv_c_gcc_prototypes=''
8699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8700$as_echo "no" >&6; }
8701  fi
8702 else
8703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8704$as_echo "no" >&6; }
8705 fi
8706
8707
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wparentheses" >&5
8709$as_echo_n "checking GCC flag(s) -Wparentheses... " >&6; }
8710 if test "${GCC-no}" = yes
8711 then
8712  if ${atheme_cv_c_gcc_parentheses+:} false; then :
8713  $as_echo_n "(cached) " >&6
8714else
8715
8716   oldcflags="${CFLAGS-}"
8717   CFLAGS="${CFLAGS-} ${CWARNS} -Wparentheses -Werror"
8718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8719/* end confdefs.h.  */
8720
8721#include <string.h>
8722#include <stdio.h>
8723int main(void);
8724
8725int
8726main ()
8727{
8728
8729    strcmp("a","b"); fprintf(stdout,"test ok\n");
8730
8731  ;
8732  return 0;
8733}
8734_ACEOF
8735if ac_fn_c_try_compile "$LINENO"; then :
8736  atheme_cv_c_gcc_parentheses=yes
8737else
8738  atheme_cv_c_gcc_parentheses=no
8739fi
8740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8741   CFLAGS="${oldcflags}"
8742fi
8743
8744  if test "x$atheme_cv_c_gcc_parentheses" = xyes; then
8745   CWARNS="${CWARNS}-Wparentheses "
8746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8747$as_echo "ok" >&6; }
8748  else
8749   atheme_cv_c_gcc_parentheses=''
8750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8751$as_echo "no" >&6; }
8752  fi
8753 else
8754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8755$as_echo "no" >&6; }
8756 fi
8757
8758
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -W -Wno-unused" >&5
8760$as_echo_n "checking GCC flag(s) -W -Wno-unused... " >&6; }
8761 if test "${GCC-no}" = yes
8762 then
8763  if ${atheme_cv_c_gcc_w+:} false; then :
8764  $as_echo_n "(cached) " >&6
8765else
8766
8767   oldcflags="${CFLAGS-}"
8768   CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror"
8769   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770/* end confdefs.h.  */
8771
8772#include <string.h>
8773#include <stdio.h>
8774int main(void);
8775
8776int
8777main ()
8778{
8779
8780    strcmp("a","b"); fprintf(stdout,"test ok\n");
8781
8782  ;
8783  return 0;
8784}
8785_ACEOF
8786if ac_fn_c_try_compile "$LINENO"; then :
8787  atheme_cv_c_gcc_w=yes
8788else
8789  atheme_cv_c_gcc_w=no
8790fi
8791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8792   CFLAGS="${oldcflags}"
8793fi
8794
8795  if test "x$atheme_cv_c_gcc_w" = xyes; then
8796   CWARNS="${CWARNS}-W -Wno-unused "
8797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8798$as_echo "ok" >&6; }
8799  else
8800   atheme_cv_c_gcc_w=''
8801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8802$as_echo "no" >&6; }
8803  fi
8804 else
8805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8806$as_echo "no" >&6; }
8807 fi
8808
8809
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wextra" >&5
8811$as_echo_n "checking GCC flag(s) -Wextra... " >&6; }
8812 if test "${GCC-no}" = yes
8813 then
8814  if ${atheme_cv_c_gcc_w_extra+:} false; then :
8815  $as_echo_n "(cached) " >&6
8816else
8817
8818   oldcflags="${CFLAGS-}"
8819   CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror"
8820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8821/* end confdefs.h.  */
8822
8823#include <string.h>
8824#include <stdio.h>
8825int main(void);
8826
8827int
8828main ()
8829{
8830
8831    strcmp("a","b"); fprintf(stdout,"test ok\n");
8832
8833  ;
8834  return 0;
8835}
8836_ACEOF
8837if ac_fn_c_try_compile "$LINENO"; then :
8838  atheme_cv_c_gcc_w_extra=yes
8839else
8840  atheme_cv_c_gcc_w_extra=no
8841fi
8842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8843   CFLAGS="${oldcflags}"
8844fi
8845
8846  if test "x$atheme_cv_c_gcc_w_extra" = xyes; then
8847   CWARNS="${CWARNS}-Wextra "
8848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8849$as_echo "ok" >&6; }
8850  else
8851   atheme_cv_c_gcc_w_extra=''
8852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8853$as_echo "no" >&6; }
8854  fi
8855 else
8856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8857$as_echo "no" >&6; }
8858 fi
8859
8860
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wshadow" >&5
8862$as_echo_n "checking GCC flag(s) -Wshadow... " >&6; }
8863 if test "${GCC-no}" = yes
8864 then
8865  if ${atheme_cv_c_gcc_w_shadow+:} false; then :
8866  $as_echo_n "(cached) " >&6
8867else
8868
8869   oldcflags="${CFLAGS-}"
8870   CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror"
8871   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8872/* end confdefs.h.  */
8873
8874#include <string.h>
8875#include <stdio.h>
8876int main(void);
8877
8878int
8879main ()
8880{
8881
8882    strcmp("a","b"); fprintf(stdout,"test ok\n");
8883
8884  ;
8885  return 0;
8886}
8887_ACEOF
8888if ac_fn_c_try_compile "$LINENO"; then :
8889  atheme_cv_c_gcc_w_shadow=yes
8890else
8891  atheme_cv_c_gcc_w_shadow=no
8892fi
8893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8894   CFLAGS="${oldcflags}"
8895fi
8896
8897  if test "x$atheme_cv_c_gcc_w_shadow" = xyes; then
8898   CWARNS="${CWARNS}-Wshadow "
8899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8900$as_echo "ok" >&6; }
8901  else
8902   atheme_cv_c_gcc_w_shadow=''
8903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8904$as_echo "no" >&6; }
8905  fi
8906 else
8907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8908$as_echo "no" >&6; }
8909 fi
8910
8911
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wundef" >&5
8913$as_echo_n "checking GCC flag(s) -Wundef... " >&6; }
8914 if test "${GCC-no}" = yes
8915 then
8916  if ${atheme_cv_c_gcc_w_undef+:} false; then :
8917  $as_echo_n "(cached) " >&6
8918else
8919
8920   oldcflags="${CFLAGS-}"
8921   CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror"
8922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8923/* end confdefs.h.  */
8924
8925#include <string.h>
8926#include <stdio.h>
8927int main(void);
8928
8929int
8930main ()
8931{
8932
8933    strcmp("a","b"); fprintf(stdout,"test ok\n");
8934
8935  ;
8936  return 0;
8937}
8938_ACEOF
8939if ac_fn_c_try_compile "$LINENO"; then :
8940  atheme_cv_c_gcc_w_undef=yes
8941else
8942  atheme_cv_c_gcc_w_undef=no
8943fi
8944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8945   CFLAGS="${oldcflags}"
8946fi
8947
8948  if test "x$atheme_cv_c_gcc_w_undef" = xyes; then
8949   CWARNS="${CWARNS}-Wundef "
8950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8951$as_echo "ok" >&6; }
8952  else
8953   atheme_cv_c_gcc_w_undef=''
8954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8955$as_echo "no" >&6; }
8956  fi
8957 else
8958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8959$as_echo "no" >&6; }
8960 fi
8961
8962
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpacked" >&5
8964$as_echo_n "checking GCC flag(s) -Wpacked... " >&6; }
8965 if test "${GCC-no}" = yes
8966 then
8967  if ${atheme_cv_c_gcc_w_packed+:} false; then :
8968  $as_echo_n "(cached) " >&6
8969else
8970
8971   oldcflags="${CFLAGS-}"
8972   CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror"
8973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8974/* end confdefs.h.  */
8975
8976#include <string.h>
8977#include <stdio.h>
8978int main(void);
8979
8980int
8981main ()
8982{
8983
8984    strcmp("a","b"); fprintf(stdout,"test ok\n");
8985
8986  ;
8987  return 0;
8988}
8989_ACEOF
8990if ac_fn_c_try_compile "$LINENO"; then :
8991  atheme_cv_c_gcc_w_packed=yes
8992else
8993  atheme_cv_c_gcc_w_packed=no
8994fi
8995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8996   CFLAGS="${oldcflags}"
8997fi
8998
8999  if test "x$atheme_cv_c_gcc_w_packed" = xyes; then
9000   CWARNS="${CWARNS}-Wpacked "
9001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9002$as_echo "ok" >&6; }
9003  else
9004   atheme_cv_c_gcc_w_packed=''
9005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9006$as_echo "no" >&6; }
9007  fi
9008 else
9009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9010$as_echo "no" >&6; }
9011 fi
9012
9013
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wnested-externs" >&5
9015$as_echo_n "checking GCC flag(s) -Wnested-externs... " >&6; }
9016 if test "${GCC-no}" = yes
9017 then
9018  if ${atheme_cv_c_gcc_w_nested_externs+:} false; then :
9019  $as_echo_n "(cached) " >&6
9020else
9021
9022   oldcflags="${CFLAGS-}"
9023   CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror"
9024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9025/* end confdefs.h.  */
9026
9027#include <string.h>
9028#include <stdio.h>
9029int main(void);
9030
9031int
9032main ()
9033{
9034
9035    strcmp("a","b"); fprintf(stdout,"test ok\n");
9036
9037  ;
9038  return 0;
9039}
9040_ACEOF
9041if ac_fn_c_try_compile "$LINENO"; then :
9042  atheme_cv_c_gcc_w_nested_externs=yes
9043else
9044  atheme_cv_c_gcc_w_nested_externs=no
9045fi
9046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9047   CFLAGS="${oldcflags}"
9048fi
9049
9050  if test "x$atheme_cv_c_gcc_w_nested_externs" = xyes; then
9051   CWARNS="${CWARNS}-Wnested-externs "
9052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9053$as_echo "ok" >&6; }
9054  else
9055   atheme_cv_c_gcc_w_nested_externs=''
9056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9057$as_echo "no" >&6; }
9058  fi
9059 else
9060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9061$as_echo "no" >&6; }
9062 fi
9063
9064
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5
9066$as_echo_n "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... " >&6; }
9067 if test "${GCC-no}" = yes
9068 then
9069  if ${atheme_cv_c_gcc_w_unused+:} false; then :
9070  $as_echo_n "(cached) " >&6
9071else
9072
9073   oldcflags="${CFLAGS-}"
9074   CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror"
9075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9076/* end confdefs.h.  */
9077
9078#include <string.h>
9079#include <stdio.h>
9080int main(void);
9081
9082int
9083main ()
9084{
9085
9086    strcmp("a","b"); fprintf(stdout,"test ok\n");
9087
9088  ;
9089  return 0;
9090}
9091_ACEOF
9092if ac_fn_c_try_compile "$LINENO"; then :
9093  atheme_cv_c_gcc_w_unused=yes
9094else
9095  atheme_cv_c_gcc_w_unused=no
9096fi
9097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9098   CFLAGS="${oldcflags}"
9099fi
9100
9101  if test "x$atheme_cv_c_gcc_w_unused" = xyes; then
9102   CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable "
9103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9104$as_echo "ok" >&6; }
9105  else
9106   atheme_cv_c_gcc_w_unused=''
9107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9108$as_echo "no" >&6; }
9109  fi
9110 else
9111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9112$as_echo "no" >&6; }
9113 fi
9114
9115
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wredundant-decls" >&5
9117$as_echo_n "checking GCC flag(s) -Wredundant-decls... " >&6; }
9118 if test "${GCC-no}" = yes
9119 then
9120  if ${atheme_cv_c_gcc_w_redundant_decls+:} false; then :
9121  $as_echo_n "(cached) " >&6
9122else
9123
9124   oldcflags="${CFLAGS-}"
9125   CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror"
9126   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9127/* end confdefs.h.  */
9128
9129#include <string.h>
9130#include <stdio.h>
9131int main(void);
9132
9133int
9134main ()
9135{
9136
9137    strcmp("a","b"); fprintf(stdout,"test ok\n");
9138
9139  ;
9140  return 0;
9141}
9142_ACEOF
9143if ac_fn_c_try_compile "$LINENO"; then :
9144  atheme_cv_c_gcc_w_redundant_decls=yes
9145else
9146  atheme_cv_c_gcc_w_redundant_decls=no
9147fi
9148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9149   CFLAGS="${oldcflags}"
9150fi
9151
9152  if test "x$atheme_cv_c_gcc_w_redundant_decls" = xyes; then
9153   CWARNS="${CWARNS}-Wredundant-decls "
9154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9155$as_echo "ok" >&6; }
9156  else
9157   atheme_cv_c_gcc_w_redundant_decls=''
9158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9159$as_echo "no" >&6; }
9160  fi
9161 else
9162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9163$as_echo "no" >&6; }
9164 fi
9165
9166
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wfloat-equal" >&5
9168$as_echo_n "checking GCC flag(s) -Wfloat-equal... " >&6; }
9169 if test "${GCC-no}" = yes
9170 then
9171  if ${atheme_cv_c_gcc_w_float_equal+:} false; then :
9172  $as_echo_n "(cached) " >&6
9173else
9174
9175   oldcflags="${CFLAGS-}"
9176   CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror"
9177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9178/* end confdefs.h.  */
9179
9180#include <string.h>
9181#include <stdio.h>
9182int main(void);
9183
9184int
9185main ()
9186{
9187
9188    strcmp("a","b"); fprintf(stdout,"test ok\n");
9189
9190  ;
9191  return 0;
9192}
9193_ACEOF
9194if ac_fn_c_try_compile "$LINENO"; then :
9195  atheme_cv_c_gcc_w_float_equal=yes
9196else
9197  atheme_cv_c_gcc_w_float_equal=no
9198fi
9199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9200   CFLAGS="${oldcflags}"
9201fi
9202
9203  if test "x$atheme_cv_c_gcc_w_float_equal" = xyes; then
9204   CWARNS="${CWARNS}-Wfloat-equal "
9205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9206$as_echo "ok" >&6; }
9207  else
9208   atheme_cv_c_gcc_w_float_equal=''
9209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9210$as_echo "no" >&6; }
9211  fi
9212 else
9213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9214$as_echo "no" >&6; }
9215 fi
9216
9217
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wformat=2 -fno-builtin-strftime" >&5
9219$as_echo_n "checking GCC flag(s) -Wformat=2 -fno-builtin-strftime... " >&6; }
9220 if test "${GCC-no}" = yes
9221 then
9222  if ${atheme_cv_c_gcc_w_format+:} false; then :
9223  $as_echo_n "(cached) " >&6
9224else
9225
9226   oldcflags="${CFLAGS-}"
9227   CFLAGS="${CFLAGS-} ${CWARNS} -Wformat=2 -fno-builtin-strftime -Werror"
9228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9229/* end confdefs.h.  */
9230
9231#include <string.h>
9232#include <stdio.h>
9233int main(void);
9234
9235int
9236main ()
9237{
9238
9239    strcmp("a","b"); fprintf(stdout,"test ok\n");
9240
9241  ;
9242  return 0;
9243}
9244_ACEOF
9245if ac_fn_c_try_compile "$LINENO"; then :
9246  atheme_cv_c_gcc_w_format=yes
9247else
9248  atheme_cv_c_gcc_w_format=no
9249fi
9250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9251   CFLAGS="${oldcflags}"
9252fi
9253
9254  if test "x$atheme_cv_c_gcc_w_format" = xyes; then
9255   CWARNS="${CWARNS}-Wformat=2 -fno-builtin-strftime "
9256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9257$as_echo "ok" >&6; }
9258  else
9259   atheme_cv_c_gcc_w_format=''
9260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9261$as_echo "no" >&6; }
9262  fi
9263 else
9264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9265$as_echo "no" >&6; }
9266 fi
9267
9268
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wdisabled-optimization" >&5
9270$as_echo_n "checking GCC flag(s) -Wdisabled-optimization... " >&6; }
9271 if test "${GCC-no}" = yes
9272 then
9273  if ${atheme_cv_c_gcc_w_disabled_optimization+:} false; then :
9274  $as_echo_n "(cached) " >&6
9275else
9276
9277   oldcflags="${CFLAGS-}"
9278   CFLAGS="${CFLAGS-} ${CWARNS} -Wdisabled-optimization -Werror"
9279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9280/* end confdefs.h.  */
9281
9282#include <string.h>
9283#include <stdio.h>
9284int main(void);
9285
9286int
9287main ()
9288{
9289
9290    strcmp("a","b"); fprintf(stdout,"test ok\n");
9291
9292  ;
9293  return 0;
9294}
9295_ACEOF
9296if ac_fn_c_try_compile "$LINENO"; then :
9297  atheme_cv_c_gcc_w_disabled_optimization=yes
9298else
9299  atheme_cv_c_gcc_w_disabled_optimization=no
9300fi
9301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9302   CFLAGS="${oldcflags}"
9303fi
9304
9305  if test "x$atheme_cv_c_gcc_w_disabled_optimization" = xyes; then
9306   CWARNS="${CWARNS}-Wdisabled-optimization "
9307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9308$as_echo "ok" >&6; }
9309  else
9310   atheme_cv_c_gcc_w_disabled_optimization=''
9311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9312$as_echo "no" >&6; }
9313  fi
9314 else
9315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9316$as_echo "no" >&6; }
9317 fi
9318
9319
9320
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wunreachable-code" >&5
9322$as_echo_n "checking GCC flag(s) -Wunreachable-code... " >&6; }
9323 if test "${GCC-no}" = yes
9324 then
9325  if ${atheme_cv_c_gcc_w_unreachable_code+:} false; then :
9326  $as_echo_n "(cached) " >&6
9327else
9328
9329   oldcflags="${CFLAGS-}"
9330   CFLAGS="${CFLAGS-} ${CWARNS} -Wunreachable-code -Werror"
9331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9332/* end confdefs.h.  */
9333
9334#include <string.h>
9335#include <stdio.h>
9336int main(void);
9337
9338int
9339main ()
9340{
9341
9342    strcmp("a","b"); fprintf(stdout,"test ok\n");
9343
9344  ;
9345  return 0;
9346}
9347_ACEOF
9348if ac_fn_c_try_compile "$LINENO"; then :
9349  atheme_cv_c_gcc_w_unreachable_code=yes
9350else
9351  atheme_cv_c_gcc_w_unreachable_code=no
9352fi
9353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9354   CFLAGS="${oldcflags}"
9355fi
9356
9357  if test "x$atheme_cv_c_gcc_w_unreachable_code" = xyes; then
9358   CWARNS="${CWARNS}-Wunreachable-code "
9359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9360$as_echo "ok" >&6; }
9361  else
9362   atheme_cv_c_gcc_w_unreachable_code=''
9363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9364$as_echo "no" >&6; }
9365  fi
9366 else
9367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9368$as_echo "no" >&6; }
9369 fi
9370
9371
9372
9373fi
9374
9375# Check whether --enable-propolice was given.
9376if test "${enable_propolice+set}" = set; then :
9377  enableval=$enable_propolice;
9378else
9379  enable_propolice=no
9380fi
9381
9382if test "x$enable_propolice" = "xyes"; then :
9383
9384
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -fno-stack-protector-all" >&5
9386$as_echo_n "checking GCC flag(s) -fno-stack-protector-all... " >&6; }
9387 if test "${GCC-no}" = yes
9388 then
9389  if ${atheme_cv_nspa+:} false; then :
9390  $as_echo_n "(cached) " >&6
9391else
9392
9393   oldcflags="${CFLAGS-}"
9394   CFLAGS="${CFLAGS-} ${CWARNS} -fno-stack-protector-all -Werror"
9395   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9396/* end confdefs.h.  */
9397
9398#include <string.h>
9399#include <stdio.h>
9400int main(void);
9401
9402int
9403main ()
9404{
9405
9406    strcmp("a","b"); fprintf(stdout,"test ok\n");
9407
9408  ;
9409  return 0;
9410}
9411_ACEOF
9412if ac_fn_c_try_compile "$LINENO"; then :
9413  atheme_cv_nspa=yes
9414else
9415  atheme_cv_nspa=no
9416fi
9417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9418   CFLAGS="${oldcflags}"
9419fi
9420
9421  if test "x$atheme_cv_nspa" = xyes; then
9422   CWARNS="${CWARNS}-fno-stack-protector-all "
9423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9424$as_echo "ok" >&6; }
9425  else
9426   atheme_cv_nspa=''
9427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9428$as_echo "no" >&6; }
9429  fi
9430 else
9431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9432$as_echo "no" >&6; }
9433 fi
9434
9435
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -fno-pie" >&5
9437$as_echo_n "checking GCC flag(s) -fno-pie... " >&6; }
9438 if test "${GCC-no}" = yes
9439 then
9440  if ${atheme_cv_npie+:} false; then :
9441  $as_echo_n "(cached) " >&6
9442else
9443
9444   oldcflags="${CFLAGS-}"
9445   CFLAGS="${CFLAGS-} ${CWARNS} -fno-pie -Werror"
9446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9447/* end confdefs.h.  */
9448
9449#include <string.h>
9450#include <stdio.h>
9451int main(void);
9452
9453int
9454main ()
9455{
9456
9457    strcmp("a","b"); fprintf(stdout,"test ok\n");
9458
9459  ;
9460  return 0;
9461}
9462_ACEOF
9463if ac_fn_c_try_compile "$LINENO"; then :
9464  atheme_cv_npie=yes
9465else
9466  atheme_cv_npie=no
9467fi
9468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9469   CFLAGS="${oldcflags}"
9470fi
9471
9472  if test "x$atheme_cv_npie" = xyes; then
9473   CWARNS="${CWARNS}-fno-pie "
9474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9475$as_echo "ok" >&6; }
9476  else
9477   atheme_cv_npie=''
9478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9479$as_echo "no" >&6; }
9480  fi
9481 else
9482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9483$as_echo "no" >&6; }
9484 fi
9485
9486
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -nonow" >&5
9488$as_echo_n "checking GCC flag(s) -nonow... " >&6; }
9489 if test "${GCC-no}" = yes
9490 then
9491  if ${atheme_cv_nonow+:} false; then :
9492  $as_echo_n "(cached) " >&6
9493else
9494
9495   oldcflags="${CFLAGS-}"
9496   CFLAGS="${CFLAGS-} ${CWARNS} -nonow -Werror"
9497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9498/* end confdefs.h.  */
9499
9500#include <string.h>
9501#include <stdio.h>
9502int main(void);
9503
9504int
9505main ()
9506{
9507
9508    strcmp("a","b"); fprintf(stdout,"test ok\n");
9509
9510  ;
9511  return 0;
9512}
9513_ACEOF
9514if ac_fn_c_try_compile "$LINENO"; then :
9515  atheme_cv_nonow=yes
9516else
9517  atheme_cv_nonow=no
9518fi
9519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9520   CFLAGS="${oldcflags}"
9521fi
9522
9523  if test "x$atheme_cv_nonow" = xyes; then
9524   CWARNS="${CWARNS}-nonow "
9525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9526$as_echo "ok" >&6; }
9527  else
9528   atheme_cv_nonow=''
9529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9530$as_echo "no" >&6; }
9531  fi
9532 else
9533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9534$as_echo "no" >&6; }
9535 fi
9536
9537
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -norelro" >&5
9539$as_echo_n "checking GCC flag(s) -norelro... " >&6; }
9540 if test "${GCC-no}" = yes
9541 then
9542  if ${atheme_cv_no_relro+:} false; then :
9543  $as_echo_n "(cached) " >&6
9544else
9545
9546   oldcflags="${CFLAGS-}"
9547   CFLAGS="${CFLAGS-} ${CWARNS} -norelro -Werror"
9548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9549/* end confdefs.h.  */
9550
9551#include <string.h>
9552#include <stdio.h>
9553int main(void);
9554
9555int
9556main ()
9557{
9558
9559    strcmp("a","b"); fprintf(stdout,"test ok\n");
9560
9561  ;
9562  return 0;
9563}
9564_ACEOF
9565if ac_fn_c_try_compile "$LINENO"; then :
9566  atheme_cv_no_relro=yes
9567else
9568  atheme_cv_no_relro=no
9569fi
9570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9571   CFLAGS="${oldcflags}"
9572fi
9573
9574  if test "x$atheme_cv_no_relro" = xyes; then
9575   CWARNS="${CWARNS}-norelro "
9576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9577$as_echo "ok" >&6; }
9578  else
9579   atheme_cv_no_relro=''
9580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9581$as_echo "no" >&6; }
9582  fi
9583 else
9584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9585$as_echo "no" >&6; }
9586 fi
9587
9588
9589fi
9590
9591# Check whether --enable-profile was given.
9592if test "${enable_profile+set}" = set; then :
9593  enableval=$enable_profile;
9594else
9595  enable_profile=no
9596fi
9597
9598if test "x$enable_profile" = "xyes"; then :
9599
9600
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -pg" >&5
9602$as_echo_n "checking GCC flag(s) -pg... " >&6; }
9603 if test "${GCC-no}" = yes
9604 then
9605  if ${atheme_cv_pg+:} false; then :
9606  $as_echo_n "(cached) " >&6
9607else
9608
9609   oldcflags="${CFLAGS-}"
9610   CFLAGS="${CFLAGS-} ${CWARNS} -pg -Werror"
9611   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9612/* end confdefs.h.  */
9613
9614#include <string.h>
9615#include <stdio.h>
9616int main(void);
9617
9618int
9619main ()
9620{
9621
9622    strcmp("a","b"); fprintf(stdout,"test ok\n");
9623
9624  ;
9625  return 0;
9626}
9627_ACEOF
9628if ac_fn_c_try_compile "$LINENO"; then :
9629  atheme_cv_pg=yes
9630else
9631  atheme_cv_pg=no
9632fi
9633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9634   CFLAGS="${oldcflags}"
9635fi
9636
9637  if test "x$atheme_cv_pg" = xyes; then
9638   CWARNS="${CWARNS}-pg "
9639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9640$as_echo "ok" >&6; }
9641  else
9642   atheme_cv_pg=''
9643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9644$as_echo "no" >&6; }
9645  fi
9646 else
9647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9648$as_echo "no" >&6; }
9649 fi
9650
9651ac_save_LDFLAGS="${LDFLAGS} -pg"
9652LDFLAGS=${ac_save_LDFLAGS}
9653
9654fi
9655
9656ac_save_CPPFLAGS="${CFLAGS} ${orig_CFLAGS} ${CWARNS} -DPREFIX=\\\"\${prefix}\\\" -DLOCALEDIR=\\\"\${LOCALEDIR}\\\" -DMODDIR=\\\"\${MODDIR}\\\" -DSHAREDIR=\\\"${SHAREDIR}\\\" -DSYSCONFDIR=\\\"${sysconfdir}\\\" -DLOGDIR=\\\"${LOGDIR}\\\" -DRUNDIR=\\\"${RUNDIR}\\\" -DDATADIR=\\\"${DATADIR}\\\""
9657CPPFLAGS=${ac_save_CPPFLAGS}
9658
9659
9660enablerpath="yes"
9661# Check whether --enable-rpath was given.
9662if test "${enable_rpath+set}" = set; then :
9663  enableval=$enable_rpath; enablerpath="$enableval"
9664else
9665  enablerpath="yes"
9666fi
9667
9668
9669if test "x$enablerpath" != "xyes"; then
9670	LDFLAGS_RPATH=""
9671fi
9672
9673
9674pkg_failed=no
9675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBQRENCODE" >&5
9676$as_echo_n "checking for LIBQRENCODE... " >&6; }
9677
9678if test -n "$LIBQRENCODE_CFLAGS"; then
9679    pkg_cv_LIBQRENCODE_CFLAGS="$LIBQRENCODE_CFLAGS"
9680 elif test -n "$PKG_CONFIG"; then
9681    if test -n "$PKG_CONFIG" && \
9682    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libqrencode\""; } >&5
9683  ($PKG_CONFIG --exists --print-errors "libqrencode") 2>&5
9684  ac_status=$?
9685  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9686  test $ac_status = 0; }; then
9687  pkg_cv_LIBQRENCODE_CFLAGS=`$PKG_CONFIG --cflags "libqrencode" 2>/dev/null`
9688else
9689  pkg_failed=yes
9690fi
9691 else
9692    pkg_failed=untried
9693fi
9694if test -n "$LIBQRENCODE_LIBS"; then
9695    pkg_cv_LIBQRENCODE_LIBS="$LIBQRENCODE_LIBS"
9696 elif test -n "$PKG_CONFIG"; then
9697    if test -n "$PKG_CONFIG" && \
9698    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libqrencode\""; } >&5
9699  ($PKG_CONFIG --exists --print-errors "libqrencode") 2>&5
9700  ac_status=$?
9701  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9702  test $ac_status = 0; }; then
9703  pkg_cv_LIBQRENCODE_LIBS=`$PKG_CONFIG --libs "libqrencode" 2>/dev/null`
9704else
9705  pkg_failed=yes
9706fi
9707 else
9708    pkg_failed=untried
9709fi
9710
9711
9712
9713if test $pkg_failed = yes; then
9714
9715if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9716        _pkg_short_errors_supported=yes
9717else
9718        _pkg_short_errors_supported=no
9719fi
9720        if test $_pkg_short_errors_supported = yes; then
9721	        LIBQRENCODE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libqrencode" 2>&1`
9722        else
9723	        LIBQRENCODE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libqrencode" 2>&1`
9724        fi
9725	# Put the nasty error message in config.log where it belongs
9726	echo "$LIBQRENCODE_PKG_ERRORS" >&5
9727
9728	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9729$as_echo "no" >&6; }
9730                LIBQRENCODE="no"
9731elif test $pkg_failed = untried; then
9732	LIBQRENCODE="no"
9733else
9734	LIBQRENCODE_CFLAGS=$pkg_cv_LIBQRENCODE_CFLAGS
9735	LIBQRENCODE_LIBS=$pkg_cv_LIBQRENCODE_LIBS
9736        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9737$as_echo "yes" >&6; }
9738	LIBQRENCODE="yes"
9739fi
9740
9741if test "$LIBQRENCODE" = "yes"; then
9742
9743$as_echo "#define HAVE_LIBQRENCODE /**/" >>confdefs.h
9744
9745fi
9746
9747
9748# Check whether --with-libmowgli was given.
9749if test "${with_libmowgli+set}" = set; then :
9750  withval=$with_libmowgli;
9751else
9752  with_libmowgli=yes
9753fi
9754
9755
9756if test "x$with_libmowgli" = "xyes"; then
9757
9758pkg_failed=no
9759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MOWGLI" >&5
9760$as_echo_n "checking for MOWGLI... " >&6; }
9761
9762if test -n "$MOWGLI_CFLAGS"; then
9763    pkg_cv_MOWGLI_CFLAGS="$MOWGLI_CFLAGS"
9764 elif test -n "$PKG_CONFIG"; then
9765    if test -n "$PKG_CONFIG" && \
9766    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmowgli-2 >= 2.0.0\""; } >&5
9767  ($PKG_CONFIG --exists --print-errors "libmowgli-2 >= 2.0.0") 2>&5
9768  ac_status=$?
9769  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9770  test $ac_status = 0; }; then
9771  pkg_cv_MOWGLI_CFLAGS=`$PKG_CONFIG --cflags "libmowgli-2 >= 2.0.0" 2>/dev/null`
9772else
9773  pkg_failed=yes
9774fi
9775 else
9776    pkg_failed=untried
9777fi
9778if test -n "$MOWGLI_LIBS"; then
9779    pkg_cv_MOWGLI_LIBS="$MOWGLI_LIBS"
9780 elif test -n "$PKG_CONFIG"; then
9781    if test -n "$PKG_CONFIG" && \
9782    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmowgli-2 >= 2.0.0\""; } >&5
9783  ($PKG_CONFIG --exists --print-errors "libmowgli-2 >= 2.0.0") 2>&5
9784  ac_status=$?
9785  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9786  test $ac_status = 0; }; then
9787  pkg_cv_MOWGLI_LIBS=`$PKG_CONFIG --libs "libmowgli-2 >= 2.0.0" 2>/dev/null`
9788else
9789  pkg_failed=yes
9790fi
9791 else
9792    pkg_failed=untried
9793fi
9794
9795
9796
9797if test $pkg_failed = yes; then
9798
9799if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9800        _pkg_short_errors_supported=yes
9801else
9802        _pkg_short_errors_supported=no
9803fi
9804        if test $_pkg_short_errors_supported = yes; then
9805	        MOWGLI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libmowgli-2 >= 2.0.0" 2>&1`
9806        else
9807	        MOWGLI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libmowgli-2 >= 2.0.0" 2>&1`
9808        fi
9809	# Put the nasty error message in config.log where it belongs
9810	echo "$MOWGLI_PKG_ERRORS" >&5
9811
9812	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9813$as_echo "no" >&6; }
9814                with_libmowgli=no
9815elif test $pkg_failed = untried; then
9816	with_libmowgli=no
9817else
9818	MOWGLI_CFLAGS=$pkg_cv_MOWGLI_CFLAGS
9819	MOWGLI_LIBS=$pkg_cv_MOWGLI_LIBS
9820        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9821$as_echo "yes" >&6; }
9822	MOWGLI_SOURCE="system"
9823fi
9824fi
9825
9826
9827
9828if test "x$with_libmowgli" = "xyes"; then :
9829
9830elif test "x$with_libmowgli" = "xno"; then :
9831
9832    MOWGLI_CFLAGS="-I../libmowgli-2/src/libmowgli -I../../libmowgli-2/src/libmowgli -I../../../libmowgli-2/src/libmowgli"
9833    MOWGLI_LIBS="-L../libmowgli-2/src/libmowgli -L../../libmowgli-2/src/libmowgli -L../../../libmowgli-2/src/libmowgli -lmowgli-2"
9834    LIBMOWGLI="libmowgli-2"
9835    MOWGLI_SOURCE="internal"
9836    subdirs="$subdirs libmowgli-2"
9837
9838else
9839   MOWGLI_SOURCE="system"
9840    MOWGLI_CFLAGS="-I$with_libmowgli/include/libmowgli-2"
9841    MOWGLI_LIBS="-L$with_libmowgli/lib -lmowgli-2"
9842fi
9843
9844CPPFLAGS="$CPPFLAGS $MOWGLI_CFLAGS"
9845LIBS="$LIBS $MOWGLI_LIBS"
9846
9847
9848
9849
9850
9851
9852# Check whether --with-pcre was given.
9853if test "${with_pcre+set}" = set; then :
9854  withval=$with_pcre;
9855else
9856  with_pcre=no
9857fi
9858
9859
9860if test "x$with_pcre" != xno; then
9861
9862pkg_failed=no
9863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE" >&5
9864$as_echo_n "checking for PCRE... " >&6; }
9865
9866if test -n "$PCRE_CFLAGS"; then
9867    pkg_cv_PCRE_CFLAGS="$PCRE_CFLAGS"
9868 elif test -n "$PKG_CONFIG"; then
9869    if test -n "$PKG_CONFIG" && \
9870    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre\""; } >&5
9871  ($PKG_CONFIG --exists --print-errors "libpcre") 2>&5
9872  ac_status=$?
9873  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9874  test $ac_status = 0; }; then
9875  pkg_cv_PCRE_CFLAGS=`$PKG_CONFIG --cflags "libpcre" 2>/dev/null`
9876else
9877  pkg_failed=yes
9878fi
9879 else
9880    pkg_failed=untried
9881fi
9882if test -n "$PCRE_LIBS"; then
9883    pkg_cv_PCRE_LIBS="$PCRE_LIBS"
9884 elif test -n "$PKG_CONFIG"; then
9885    if test -n "$PKG_CONFIG" && \
9886    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre\""; } >&5
9887  ($PKG_CONFIG --exists --print-errors "libpcre") 2>&5
9888  ac_status=$?
9889  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9890  test $ac_status = 0; }; then
9891  pkg_cv_PCRE_LIBS=`$PKG_CONFIG --libs "libpcre" 2>/dev/null`
9892else
9893  pkg_failed=yes
9894fi
9895 else
9896    pkg_failed=untried
9897fi
9898
9899
9900
9901if test $pkg_failed = yes; then
9902
9903if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9904        _pkg_short_errors_supported=yes
9905else
9906        _pkg_short_errors_supported=no
9907fi
9908        if test $_pkg_short_errors_supported = yes; then
9909	        PCRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpcre" 2>&1`
9910        else
9911	        PCRE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpcre" 2>&1`
9912        fi
9913	# Put the nasty error message in config.log where it belongs
9914	echo "$PCRE_PKG_ERRORS" >&5
9915
9916	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9917$as_echo "no" >&6; }
9918
9919		as_fn_error $? "PCRE requested, but not found." "$LINENO" 5
9920elif test $pkg_failed = untried; then
9921
9922		as_fn_error $? "PCRE requested, but not found." "$LINENO" 5
9923else
9924	PCRE_CFLAGS=$pkg_cv_PCRE_CFLAGS
9925	PCRE_LIBS=$pkg_cv_PCRE_LIBS
9926        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9927$as_echo "yes" >&6; }
9928	:
9929fi
9930
9931
9932
9933
9934$as_echo "#define HAVE_PCRE 1" >>confdefs.h
9935
9936fi
9937
9938BUILDROOT=`pwd`
9939
9940
9941PODIR=""
9942if test "x$USE_NLS" = "xyes"; then
9943	PODIR="po"
9944fi
9945
9946
9947
9948	${as_echo:="echo"} ${as_me:="configure"}": touching .deps files"
9949	for i in $(find . -name Makefile); do
9950		DEPSFILE="$(dirname $i)/.deps"
9951		test -f "$DEPSFILE" && rm "$DEPSFILE"
9952		touch -t 0001010000 "$DEPSFILE"
9953	done
9954
9955
9956ac_config_files="$ac_config_files buildsys.mk extra.mk atheme-services.pc"
9957
9958cat >confcache <<\_ACEOF
9959# This file is a shell script that caches the results of configure
9960# tests run on this system so they can be shared between configure
9961# scripts and configure runs, see configure's option --config-cache.
9962# It is not useful on other systems.  If it contains results you don't
9963# want to keep, you may remove or edit it.
9964#
9965# config.status only pays attention to the cache file if you give it
9966# the --recheck option to rerun configure.
9967#
9968# `ac_cv_env_foo' variables (set or unset) will be overridden when
9969# loading this file, other *unset* `ac_cv_foo' will be assigned the
9970# following values.
9971
9972_ACEOF
9973
9974# The following way of writing the cache mishandles newlines in values,
9975# but we know of no workaround that is simple, portable, and efficient.
9976# So, we kill variables containing newlines.
9977# Ultrix sh set writes to stderr and can't be redirected directly,
9978# and sets the high bit in the cache file unless we assign to the vars.
9979(
9980  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9981    eval ac_val=\$$ac_var
9982    case $ac_val in #(
9983    *${as_nl}*)
9984      case $ac_var in #(
9985      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9986$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9987      esac
9988      case $ac_var in #(
9989      _ | IFS | as_nl) ;; #(
9990      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9991      *) { eval $ac_var=; unset $ac_var;} ;;
9992      esac ;;
9993    esac
9994  done
9995
9996  (set) 2>&1 |
9997    case $as_nl`(ac_space=' '; set) 2>&1` in #(
9998    *${as_nl}ac_space=\ *)
9999      # `set' does not quote correctly, so add quotes: double-quote
10000      # substitution turns \\\\ into \\, and sed turns \\ into \.
10001      sed -n \
10002	"s/'/'\\\\''/g;
10003	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10004      ;; #(
10005    *)
10006      # `set' quotes correctly as required by POSIX, so do not add quotes.
10007      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10008      ;;
10009    esac |
10010    sort
10011) |
10012  sed '
10013     /^ac_cv_env_/b end
10014     t clear
10015     :clear
10016     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10017     t end
10018     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10019     :end' >>confcache
10020if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10021  if test -w "$cache_file"; then
10022    if test "x$cache_file" != "x/dev/null"; then
10023      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10024$as_echo "$as_me: updating cache $cache_file" >&6;}
10025      if test ! -f "$cache_file" || test -h "$cache_file"; then
10026	cat confcache >"$cache_file"
10027      else
10028        case $cache_file in #(
10029        */* | ?:*)
10030	  mv -f confcache "$cache_file"$$ &&
10031	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10032        *)
10033	  mv -f confcache "$cache_file" ;;
10034	esac
10035      fi
10036    fi
10037  else
10038    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10039$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10040  fi
10041fi
10042rm -f confcache
10043
10044test "x$prefix" = xNONE && prefix=$ac_default_prefix
10045# Let make expand exec_prefix.
10046test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10047
10048DEFS=-DHAVE_CONFIG_H
10049
10050ac_libobjs=
10051ac_ltlibobjs=
10052U=
10053for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10054  # 1. Remove the extension, and $U if already installed.
10055  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10056  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10057  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10058  #    will be set to the directory where LIBOBJS objects are built.
10059  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10060  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10061done
10062LIBOBJS=$ac_libobjs
10063
10064LTLIBOBJS=$ac_ltlibobjs
10065
10066
10067
10068
10069: "${CONFIG_STATUS=./config.status}"
10070ac_write_fail=0
10071ac_clean_files_save=$ac_clean_files
10072ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10073{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10074$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10075as_write_fail=0
10076cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10077#! $SHELL
10078# Generated by $as_me.
10079# Run this file to recreate the current configuration.
10080# Compiler output produced by configure, useful for debugging
10081# configure, is in config.log if it exists.
10082
10083debug=false
10084ac_cs_recheck=false
10085ac_cs_silent=false
10086
10087SHELL=\${CONFIG_SHELL-$SHELL}
10088export SHELL
10089_ASEOF
10090cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10091## -------------------- ##
10092## M4sh Initialization. ##
10093## -------------------- ##
10094
10095# Be more Bourne compatible
10096DUALCASE=1; export DUALCASE # for MKS sh
10097if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10098  emulate sh
10099  NULLCMD=:
10100  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10101  # is contrary to our usage.  Disable this feature.
10102  alias -g '${1+"$@"}'='"$@"'
10103  setopt NO_GLOB_SUBST
10104else
10105  case `(set -o) 2>/dev/null` in #(
10106  *posix*) :
10107    set -o posix ;; #(
10108  *) :
10109     ;;
10110esac
10111fi
10112
10113
10114as_nl='
10115'
10116export as_nl
10117# Printing a long string crashes Solaris 7 /usr/bin/printf.
10118as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10119as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10120as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10121# Prefer a ksh shell builtin over an external printf program on Solaris,
10122# but without wasting forks for bash or zsh.
10123if test -z "$BASH_VERSION$ZSH_VERSION" \
10124    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10125  as_echo='print -r --'
10126  as_echo_n='print -rn --'
10127elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10128  as_echo='printf %s\n'
10129  as_echo_n='printf %s'
10130else
10131  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10132    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10133    as_echo_n='/usr/ucb/echo -n'
10134  else
10135    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10136    as_echo_n_body='eval
10137      arg=$1;
10138      case $arg in #(
10139      *"$as_nl"*)
10140	expr "X$arg" : "X\\(.*\\)$as_nl";
10141	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10142      esac;
10143      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10144    '
10145    export as_echo_n_body
10146    as_echo_n='sh -c $as_echo_n_body as_echo'
10147  fi
10148  export as_echo_body
10149  as_echo='sh -c $as_echo_body as_echo'
10150fi
10151
10152# The user is always right.
10153if test "${PATH_SEPARATOR+set}" != set; then
10154  PATH_SEPARATOR=:
10155  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10156    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10157      PATH_SEPARATOR=';'
10158  }
10159fi
10160
10161
10162# IFS
10163# We need space, tab and new line, in precisely that order.  Quoting is
10164# there to prevent editors from complaining about space-tab.
10165# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10166# splitting by setting IFS to empty value.)
10167IFS=" ""	$as_nl"
10168
10169# Find who we are.  Look in the path if we contain no directory separator.
10170as_myself=
10171case $0 in #((
10172  *[\\/]* ) as_myself=$0 ;;
10173  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10174for as_dir in $PATH
10175do
10176  IFS=$as_save_IFS
10177  test -z "$as_dir" && as_dir=.
10178    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10179  done
10180IFS=$as_save_IFS
10181
10182     ;;
10183esac
10184# We did not find ourselves, most probably we were run as `sh COMMAND'
10185# in which case we are not to be found in the path.
10186if test "x$as_myself" = x; then
10187  as_myself=$0
10188fi
10189if test ! -f "$as_myself"; then
10190  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10191  exit 1
10192fi
10193
10194# Unset variables that we do not need and which cause bugs (e.g. in
10195# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
10196# suppresses any "Segmentation fault" message there.  '((' could
10197# trigger a bug in pdksh 5.2.14.
10198for as_var in BASH_ENV ENV MAIL MAILPATH
10199do eval test x\${$as_var+set} = xset \
10200  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10201done
10202PS1='$ '
10203PS2='> '
10204PS4='+ '
10205
10206# NLS nuisances.
10207LC_ALL=C
10208export LC_ALL
10209LANGUAGE=C
10210export LANGUAGE
10211
10212# CDPATH.
10213(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10214
10215
10216# as_fn_error STATUS ERROR [LINENO LOG_FD]
10217# ----------------------------------------
10218# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10219# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10220# script with STATUS, using 1 if that was 0.
10221as_fn_error ()
10222{
10223  as_status=$1; test $as_status -eq 0 && as_status=1
10224  if test "$4"; then
10225    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10226    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10227  fi
10228  $as_echo "$as_me: error: $2" >&2
10229  as_fn_exit $as_status
10230} # as_fn_error
10231
10232
10233# as_fn_set_status STATUS
10234# -----------------------
10235# Set $? to STATUS, without forking.
10236as_fn_set_status ()
10237{
10238  return $1
10239} # as_fn_set_status
10240
10241# as_fn_exit STATUS
10242# -----------------
10243# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10244as_fn_exit ()
10245{
10246  set +e
10247  as_fn_set_status $1
10248  exit $1
10249} # as_fn_exit
10250
10251# as_fn_unset VAR
10252# ---------------
10253# Portably unset VAR.
10254as_fn_unset ()
10255{
10256  { eval $1=; unset $1;}
10257}
10258as_unset=as_fn_unset
10259# as_fn_append VAR VALUE
10260# ----------------------
10261# Append the text in VALUE to the end of the definition contained in VAR. Take
10262# advantage of any shell optimizations that allow amortized linear growth over
10263# repeated appends, instead of the typical quadratic growth present in naive
10264# implementations.
10265if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10266  eval 'as_fn_append ()
10267  {
10268    eval $1+=\$2
10269  }'
10270else
10271  as_fn_append ()
10272  {
10273    eval $1=\$$1\$2
10274  }
10275fi # as_fn_append
10276
10277# as_fn_arith ARG...
10278# ------------------
10279# Perform arithmetic evaluation on the ARGs, and store the result in the
10280# global $as_val. Take advantage of shells that can avoid forks. The arguments
10281# must be portable across $(()) and expr.
10282if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10283  eval 'as_fn_arith ()
10284  {
10285    as_val=$(( $* ))
10286  }'
10287else
10288  as_fn_arith ()
10289  {
10290    as_val=`expr "$@" || test $? -eq 1`
10291  }
10292fi # as_fn_arith
10293
10294
10295if expr a : '\(a\)' >/dev/null 2>&1 &&
10296   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10297  as_expr=expr
10298else
10299  as_expr=false
10300fi
10301
10302if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10303  as_basename=basename
10304else
10305  as_basename=false
10306fi
10307
10308if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10309  as_dirname=dirname
10310else
10311  as_dirname=false
10312fi
10313
10314as_me=`$as_basename -- "$0" ||
10315$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10316	 X"$0" : 'X\(//\)$' \| \
10317	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10318$as_echo X/"$0" |
10319    sed '/^.*\/\([^/][^/]*\)\/*$/{
10320	    s//\1/
10321	    q
10322	  }
10323	  /^X\/\(\/\/\)$/{
10324	    s//\1/
10325	    q
10326	  }
10327	  /^X\/\(\/\).*/{
10328	    s//\1/
10329	    q
10330	  }
10331	  s/.*/./; q'`
10332
10333# Avoid depending upon Character Ranges.
10334as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10335as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10336as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10337as_cr_digits='0123456789'
10338as_cr_alnum=$as_cr_Letters$as_cr_digits
10339
10340ECHO_C= ECHO_N= ECHO_T=
10341case `echo -n x` in #(((((
10342-n*)
10343  case `echo 'xy\c'` in
10344  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
10345  xy)  ECHO_C='\c';;
10346  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
10347       ECHO_T='	';;
10348  esac;;
10349*)
10350  ECHO_N='-n';;
10351esac
10352
10353rm -f conf$$ conf$$.exe conf$$.file
10354if test -d conf$$.dir; then
10355  rm -f conf$$.dir/conf$$.file
10356else
10357  rm -f conf$$.dir
10358  mkdir conf$$.dir 2>/dev/null
10359fi
10360if (echo >conf$$.file) 2>/dev/null; then
10361  if ln -s conf$$.file conf$$ 2>/dev/null; then
10362    as_ln_s='ln -s'
10363    # ... but there are two gotchas:
10364    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10365    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10366    # In both cases, we have to default to `cp -pR'.
10367    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10368      as_ln_s='cp -pR'
10369  elif ln conf$$.file conf$$ 2>/dev/null; then
10370    as_ln_s=ln
10371  else
10372    as_ln_s='cp -pR'
10373  fi
10374else
10375  as_ln_s='cp -pR'
10376fi
10377rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10378rmdir conf$$.dir 2>/dev/null
10379
10380
10381# as_fn_mkdir_p
10382# -------------
10383# Create "$as_dir" as a directory, including parents if necessary.
10384as_fn_mkdir_p ()
10385{
10386
10387  case $as_dir in #(
10388  -*) as_dir=./$as_dir;;
10389  esac
10390  test -d "$as_dir" || eval $as_mkdir_p || {
10391    as_dirs=
10392    while :; do
10393      case $as_dir in #(
10394      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10395      *) as_qdir=$as_dir;;
10396      esac
10397      as_dirs="'$as_qdir' $as_dirs"
10398      as_dir=`$as_dirname -- "$as_dir" ||
10399$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10400	 X"$as_dir" : 'X\(//\)[^/]' \| \
10401	 X"$as_dir" : 'X\(//\)$' \| \
10402	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10403$as_echo X"$as_dir" |
10404    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10405	    s//\1/
10406	    q
10407	  }
10408	  /^X\(\/\/\)[^/].*/{
10409	    s//\1/
10410	    q
10411	  }
10412	  /^X\(\/\/\)$/{
10413	    s//\1/
10414	    q
10415	  }
10416	  /^X\(\/\).*/{
10417	    s//\1/
10418	    q
10419	  }
10420	  s/.*/./; q'`
10421      test -d "$as_dir" && break
10422    done
10423    test -z "$as_dirs" || eval "mkdir $as_dirs"
10424  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10425
10426
10427} # as_fn_mkdir_p
10428if mkdir -p . 2>/dev/null; then
10429  as_mkdir_p='mkdir -p "$as_dir"'
10430else
10431  test -d ./-p && rmdir ./-p
10432  as_mkdir_p=false
10433fi
10434
10435
10436# as_fn_executable_p FILE
10437# -----------------------
10438# Test if FILE is an executable regular file.
10439as_fn_executable_p ()
10440{
10441  test -f "$1" && test -x "$1"
10442} # as_fn_executable_p
10443as_test_x='test -x'
10444as_executable_p=as_fn_executable_p
10445
10446# Sed expression to map a string onto a valid CPP name.
10447as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10448
10449# Sed expression to map a string onto a valid variable name.
10450as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10451
10452
10453exec 6>&1
10454## ----------------------------------- ##
10455## Main body of $CONFIG_STATUS script. ##
10456## ----------------------------------- ##
10457_ASEOF
10458test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10459
10460cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10461# Save the log message, to keep $0 and so on meaningful, and to
10462# report actual input values of CONFIG_FILES etc. instead of their
10463# values after options handling.
10464ac_log="
10465This file was extended by atheme $as_me 7.2.9, which was
10466generated by GNU Autoconf 2.69.  Invocation command line was
10467
10468  CONFIG_FILES    = $CONFIG_FILES
10469  CONFIG_HEADERS  = $CONFIG_HEADERS
10470  CONFIG_LINKS    = $CONFIG_LINKS
10471  CONFIG_COMMANDS = $CONFIG_COMMANDS
10472  $ $0 $@
10473
10474on `(hostname || uname -n) 2>/dev/null | sed 1q`
10475"
10476
10477_ACEOF
10478
10479case $ac_config_files in *"
10480"*) set x $ac_config_files; shift; ac_config_files=$*;;
10481esac
10482
10483case $ac_config_headers in *"
10484"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10485esac
10486
10487
10488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10489# Files that config.status was made for.
10490config_files="$ac_config_files"
10491config_headers="$ac_config_headers"
10492config_commands="$ac_config_commands"
10493
10494_ACEOF
10495
10496cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10497ac_cs_usage="\
10498\`$as_me' instantiates files and other configuration actions
10499from templates according to the current configuration.  Unless the files
10500and actions are specified as TAGs, all are instantiated by default.
10501
10502Usage: $0 [OPTION]... [TAG]...
10503
10504  -h, --help       print this help, then exit
10505  -V, --version    print version number and configuration settings, then exit
10506      --config     print configuration, then exit
10507  -q, --quiet, --silent
10508                   do not print progress messages
10509  -d, --debug      don't remove temporary files
10510      --recheck    update $as_me by reconfiguring in the same conditions
10511      --file=FILE[:TEMPLATE]
10512                   instantiate the configuration file FILE
10513      --header=FILE[:TEMPLATE]
10514                   instantiate the configuration header FILE
10515
10516Configuration files:
10517$config_files
10518
10519Configuration headers:
10520$config_headers
10521
10522Configuration commands:
10523$config_commands
10524
10525Report bugs to <https://github.com/atheme/atheme/issues/>."
10526
10527_ACEOF
10528cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10529ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10530ac_cs_version="\\
10531atheme config.status 7.2.9
10532configured by $0, generated by GNU Autoconf 2.69,
10533  with options \\"\$ac_cs_config\\"
10534
10535Copyright (C) 2012 Free Software Foundation, Inc.
10536This config.status script is free software; the Free Software Foundation
10537gives unlimited permission to copy, distribute and modify it."
10538
10539ac_pwd='$ac_pwd'
10540srcdir='$srcdir'
10541INSTALL='$INSTALL'
10542test -n "\$AWK" || AWK=awk
10543_ACEOF
10544
10545cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10546# The default lists apply if the user does not specify any file.
10547ac_need_defaults=:
10548while test $# != 0
10549do
10550  case $1 in
10551  --*=?*)
10552    ac_option=`expr "X$1" : 'X\([^=]*\)='`
10553    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10554    ac_shift=:
10555    ;;
10556  --*=)
10557    ac_option=`expr "X$1" : 'X\([^=]*\)='`
10558    ac_optarg=
10559    ac_shift=:
10560    ;;
10561  *)
10562    ac_option=$1
10563    ac_optarg=$2
10564    ac_shift=shift
10565    ;;
10566  esac
10567
10568  case $ac_option in
10569  # Handling of the options.
10570  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10571    ac_cs_recheck=: ;;
10572  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10573    $as_echo "$ac_cs_version"; exit ;;
10574  --config | --confi | --conf | --con | --co | --c )
10575    $as_echo "$ac_cs_config"; exit ;;
10576  --debug | --debu | --deb | --de | --d | -d )
10577    debug=: ;;
10578  --file | --fil | --fi | --f )
10579    $ac_shift
10580    case $ac_optarg in
10581    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10582    '') as_fn_error $? "missing file argument" ;;
10583    esac
10584    as_fn_append CONFIG_FILES " '$ac_optarg'"
10585    ac_need_defaults=false;;
10586  --header | --heade | --head | --hea )
10587    $ac_shift
10588    case $ac_optarg in
10589    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10590    esac
10591    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10592    ac_need_defaults=false;;
10593  --he | --h)
10594    # Conflict between --help and --header
10595    as_fn_error $? "ambiguous option: \`$1'
10596Try \`$0 --help' for more information.";;
10597  --help | --hel | -h )
10598    $as_echo "$ac_cs_usage"; exit ;;
10599  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10600  | -silent | --silent | --silen | --sile | --sil | --si | --s)
10601    ac_cs_silent=: ;;
10602
10603  # This is an error.
10604  -*) as_fn_error $? "unrecognized option: \`$1'
10605Try \`$0 --help' for more information." ;;
10606
10607  *) as_fn_append ac_config_targets " $1"
10608     ac_need_defaults=false ;;
10609
10610  esac
10611  shift
10612done
10613
10614ac_configure_extra_args=
10615
10616if $ac_cs_silent; then
10617  exec 6>/dev/null
10618  ac_configure_extra_args="$ac_configure_extra_args --silent"
10619fi
10620
10621_ACEOF
10622cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10623if \$ac_cs_recheck; then
10624  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10625  shift
10626  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10627  CONFIG_SHELL='$SHELL'
10628  export CONFIG_SHELL
10629  exec "\$@"
10630fi
10631
10632_ACEOF
10633cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10634exec 5>>config.log
10635{
10636  echo
10637  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10638## Running $as_me. ##
10639_ASBOX
10640  $as_echo "$ac_log"
10641} >&5
10642
10643_ACEOF
10644cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10645#
10646# INIT-COMMANDS
10647#
10648# Capture the value of obsolete ALL_LINGUAS because we need it to compute
10649    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
10650    # from automake.
10651    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
10652    # Capture the value of LINGUAS because we need it to compute CATALOGS.
10653    LINGUAS="${LINGUAS-%UNSET%}"
10654
10655
10656_ACEOF
10657
10658cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10659
10660# Handling of arguments.
10661for ac_config_target in $ac_config_targets
10662do
10663  case $ac_config_target in
10664    "include/sysconf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/sysconf.h" ;;
10665    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10666    "buildsys.mk") CONFIG_FILES="$CONFIG_FILES buildsys.mk" ;;
10667    "extra.mk") CONFIG_FILES="$CONFIG_FILES extra.mk" ;;
10668    "atheme-services.pc") CONFIG_FILES="$CONFIG_FILES atheme-services.pc" ;;
10669
10670  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10671  esac
10672done
10673
10674
10675# If the user did not use the arguments to specify the items to instantiate,
10676# then the envvar interface is used.  Set only those that are not.
10677# We use the long form for the default assignment because of an extremely
10678# bizarre bug on SunOS 4.1.3.
10679if $ac_need_defaults; then
10680  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10681  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10682  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10683fi
10684
10685# Have a temporary directory for convenience.  Make it in the build tree
10686# simply because there is no reason against having it here, and in addition,
10687# creating and moving files from /tmp can sometimes cause problems.
10688# Hook for its removal unless debugging.
10689# Note that there is a small window in which the directory will not be cleaned:
10690# after its creation but before its name has been assigned to `$tmp'.
10691$debug ||
10692{
10693  tmp= ac_tmp=
10694  trap 'exit_status=$?
10695  : "${ac_tmp:=$tmp}"
10696  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10697' 0
10698  trap 'as_fn_exit 1' 1 2 13 15
10699}
10700# Create a (secure) tmp directory for tmp files.
10701
10702{
10703  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10704  test -d "$tmp"
10705}  ||
10706{
10707  tmp=./conf$$-$RANDOM
10708  (umask 077 && mkdir "$tmp")
10709} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10710ac_tmp=$tmp
10711
10712# Set up the scripts for CONFIG_FILES section.
10713# No need to generate them if there are no CONFIG_FILES.
10714# This happens for instance with `./config.status config.h'.
10715if test -n "$CONFIG_FILES"; then
10716
10717
10718ac_cr=`echo X | tr X '\015'`
10719# On cygwin, bash can eat \r inside `` if the user requested igncr.
10720# But we know of no other shell where ac_cr would be empty at this
10721# point, so we can use a bashism as a fallback.
10722if test "x$ac_cr" = x; then
10723  eval ac_cr=\$\'\\r\'
10724fi
10725ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10726if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10727  ac_cs_awk_cr='\\r'
10728else
10729  ac_cs_awk_cr=$ac_cr
10730fi
10731
10732echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10733_ACEOF
10734
10735
10736{
10737  echo "cat >conf$$subs.awk <<_ACEOF" &&
10738  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10739  echo "_ACEOF"
10740} >conf$$subs.sh ||
10741  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10742ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10743ac_delim='%!_!# '
10744for ac_last_try in false false false false false :; do
10745  . ./conf$$subs.sh ||
10746    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10747
10748  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10749  if test $ac_delim_n = $ac_delim_num; then
10750    break
10751  elif $ac_last_try; then
10752    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10753  else
10754    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10755  fi
10756done
10757rm -f conf$$subs.sh
10758
10759cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10760cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10761_ACEOF
10762sed -n '
10763h
10764s/^/S["/; s/!.*/"]=/
10765p
10766g
10767s/^[^!]*!//
10768:repl
10769t repl
10770s/'"$ac_delim"'$//
10771t delim
10772:nl
10773h
10774s/\(.\{148\}\)..*/\1/
10775t more1
10776s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10777p
10778n
10779b repl
10780:more1
10781s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10782p
10783g
10784s/.\{148\}//
10785t nl
10786:delim
10787h
10788s/\(.\{148\}\)..*/\1/
10789t more2
10790s/["\\]/\\&/g; s/^/"/; s/$/"/
10791p
10792b
10793:more2
10794s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10795p
10796g
10797s/.\{148\}//
10798t delim
10799' <conf$$subs.awk | sed '
10800/^[^""]/{
10801  N
10802  s/\n//
10803}
10804' >>$CONFIG_STATUS || ac_write_fail=1
10805rm -f conf$$subs.awk
10806cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10807_ACAWK
10808cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10809  for (key in S) S_is_set[key] = 1
10810  FS = ""
10811
10812}
10813{
10814  line = $ 0
10815  nfields = split(line, field, "@")
10816  substed = 0
10817  len = length(field[1])
10818  for (i = 2; i < nfields; i++) {
10819    key = field[i]
10820    keylen = length(key)
10821    if (S_is_set[key]) {
10822      value = S[key]
10823      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10824      len += length(value) + length(field[++i])
10825      substed = 1
10826    } else
10827      len += 1 + keylen
10828  }
10829
10830  print line
10831}
10832
10833_ACAWK
10834_ACEOF
10835cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10836if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10837  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10838else
10839  cat
10840fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10841  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10842_ACEOF
10843
10844# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10845# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10846# trailing colons and then remove the whole line if VPATH becomes empty
10847# (actually we leave an empty line to preserve line numbers).
10848if test "x$srcdir" = x.; then
10849  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
10850h
10851s///
10852s/^/:/
10853s/[	 ]*$/:/
10854s/:\$(srcdir):/:/g
10855s/:\${srcdir}:/:/g
10856s/:@srcdir@:/:/g
10857s/^:*//
10858s/:*$//
10859x
10860s/\(=[	 ]*\).*/\1/
10861G
10862s/\n//
10863s/^[^=]*=[	 ]*$//
10864}'
10865fi
10866
10867cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10868fi # test -n "$CONFIG_FILES"
10869
10870# Set up the scripts for CONFIG_HEADERS section.
10871# No need to generate them if there are no CONFIG_HEADERS.
10872# This happens for instance with `./config.status Makefile'.
10873if test -n "$CONFIG_HEADERS"; then
10874cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10875BEGIN {
10876_ACEOF
10877
10878# Transform confdefs.h into an awk script `defines.awk', embedded as
10879# here-document in config.status, that substitutes the proper values into
10880# config.h.in to produce config.h.
10881
10882# Create a delimiter string that does not exist in confdefs.h, to ease
10883# handling of long lines.
10884ac_delim='%!_!# '
10885for ac_last_try in false false :; do
10886  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10887  if test -z "$ac_tt"; then
10888    break
10889  elif $ac_last_try; then
10890    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10891  else
10892    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10893  fi
10894done
10895
10896# For the awk script, D is an array of macro values keyed by name,
10897# likewise P contains macro parameters if any.  Preserve backslash
10898# newline sequences.
10899
10900ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10901sed -n '
10902s/.\{148\}/&'"$ac_delim"'/g
10903t rset
10904:rset
10905s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
10906t def
10907d
10908:def
10909s/\\$//
10910t bsnl
10911s/["\\]/\\&/g
10912s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
10913D["\1"]=" \3"/p
10914s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
10915d
10916:bsnl
10917s/["\\]/\\&/g
10918s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
10919D["\1"]=" \3\\\\\\n"\\/p
10920t cont
10921s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10922t cont
10923d
10924:cont
10925n
10926s/.\{148\}/&'"$ac_delim"'/g
10927t clear
10928:clear
10929s/\\$//
10930t bsnlc
10931s/["\\]/\\&/g; s/^/"/; s/$/"/p
10932d
10933:bsnlc
10934s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10935b cont
10936' <confdefs.h | sed '
10937s/'"$ac_delim"'/"\\\
10938"/g' >>$CONFIG_STATUS || ac_write_fail=1
10939
10940cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10941  for (key in D) D_is_set[key] = 1
10942  FS = ""
10943}
10944/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10945  line = \$ 0
10946  split(line, arg, " ")
10947  if (arg[1] == "#") {
10948    defundef = arg[2]
10949    mac1 = arg[3]
10950  } else {
10951    defundef = substr(arg[1], 2)
10952    mac1 = arg[2]
10953  }
10954  split(mac1, mac2, "(") #)
10955  macro = mac2[1]
10956  prefix = substr(line, 1, index(line, defundef) - 1)
10957  if (D_is_set[macro]) {
10958    # Preserve the white space surrounding the "#".
10959    print prefix "define", macro P[macro] D[macro]
10960    next
10961  } else {
10962    # Replace #undef with comments.  This is necessary, for example,
10963    # in the case of _POSIX_SOURCE, which is predefined and required
10964    # on some systems where configure will not decide to define it.
10965    if (defundef == "undef") {
10966      print "/*", prefix defundef, macro, "*/"
10967      next
10968    }
10969  }
10970}
10971{ print }
10972_ACAWK
10973_ACEOF
10974cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10975  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10976fi # test -n "$CONFIG_HEADERS"
10977
10978
10979eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
10980shift
10981for ac_tag
10982do
10983  case $ac_tag in
10984  :[FHLC]) ac_mode=$ac_tag; continue;;
10985  esac
10986  case $ac_mode$ac_tag in
10987  :[FHL]*:*);;
10988  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10989  :[FH]-) ac_tag=-:-;;
10990  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10991  esac
10992  ac_save_IFS=$IFS
10993  IFS=:
10994  set x $ac_tag
10995  IFS=$ac_save_IFS
10996  shift
10997  ac_file=$1
10998  shift
10999
11000  case $ac_mode in
11001  :L) ac_source=$1;;
11002  :[FH])
11003    ac_file_inputs=
11004    for ac_f
11005    do
11006      case $ac_f in
11007      -) ac_f="$ac_tmp/stdin";;
11008      *) # Look for the file first in the build tree, then in the source tree
11009	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11010	 # because $ac_f cannot contain `:'.
11011	 test -f "$ac_f" ||
11012	   case $ac_f in
11013	   [\\/$]*) false;;
11014	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11015	   esac ||
11016	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11017      esac
11018      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11019      as_fn_append ac_file_inputs " '$ac_f'"
11020    done
11021
11022    # Let's still pretend it is `configure' which instantiates (i.e., don't
11023    # use $as_me), people would be surprised to read:
11024    #    /* config.h.  Generated by config.status.  */
11025    configure_input='Generated from '`
11026	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11027	`' by configure.'
11028    if test x"$ac_file" != x-; then
11029      configure_input="$ac_file.  $configure_input"
11030      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11031$as_echo "$as_me: creating $ac_file" >&6;}
11032    fi
11033    # Neutralize special characters interpreted by sed in replacement strings.
11034    case $configure_input in #(
11035    *\&* | *\|* | *\\* )
11036       ac_sed_conf_input=`$as_echo "$configure_input" |
11037       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11038    *) ac_sed_conf_input=$configure_input;;
11039    esac
11040
11041    case $ac_tag in
11042    *:-:* | *:-) cat >"$ac_tmp/stdin" \
11043      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11044    esac
11045    ;;
11046  esac
11047
11048  ac_dir=`$as_dirname -- "$ac_file" ||
11049$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11050	 X"$ac_file" : 'X\(//\)[^/]' \| \
11051	 X"$ac_file" : 'X\(//\)$' \| \
11052	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11053$as_echo X"$ac_file" |
11054    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11055	    s//\1/
11056	    q
11057	  }
11058	  /^X\(\/\/\)[^/].*/{
11059	    s//\1/
11060	    q
11061	  }
11062	  /^X\(\/\/\)$/{
11063	    s//\1/
11064	    q
11065	  }
11066	  /^X\(\/\).*/{
11067	    s//\1/
11068	    q
11069	  }
11070	  s/.*/./; q'`
11071  as_dir="$ac_dir"; as_fn_mkdir_p
11072  ac_builddir=.
11073
11074case "$ac_dir" in
11075.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11076*)
11077  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11078  # A ".." for each directory in $ac_dir_suffix.
11079  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11080  case $ac_top_builddir_sub in
11081  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11082  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11083  esac ;;
11084esac
11085ac_abs_top_builddir=$ac_pwd
11086ac_abs_builddir=$ac_pwd$ac_dir_suffix
11087# for backward compatibility:
11088ac_top_builddir=$ac_top_build_prefix
11089
11090case $srcdir in
11091  .)  # We are building in place.
11092    ac_srcdir=.
11093    ac_top_srcdir=$ac_top_builddir_sub
11094    ac_abs_top_srcdir=$ac_pwd ;;
11095  [\\/]* | ?:[\\/]* )  # Absolute name.
11096    ac_srcdir=$srcdir$ac_dir_suffix;
11097    ac_top_srcdir=$srcdir
11098    ac_abs_top_srcdir=$srcdir ;;
11099  *) # Relative name.
11100    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11101    ac_top_srcdir=$ac_top_build_prefix$srcdir
11102    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11103esac
11104ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11105
11106
11107  case $ac_mode in
11108  :F)
11109  #
11110  # CONFIG_FILE
11111  #
11112
11113  case $INSTALL in
11114  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11115  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11116  esac
11117_ACEOF
11118
11119cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11120# If the template does not know about datarootdir, expand it.
11121# FIXME: This hack should be removed a few years after 2.60.
11122ac_datarootdir_hack=; ac_datarootdir_seen=
11123ac_sed_dataroot='
11124/datarootdir/ {
11125  p
11126  q
11127}
11128/@datadir@/p
11129/@docdir@/p
11130/@infodir@/p
11131/@localedir@/p
11132/@mandir@/p'
11133case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11134*datarootdir*) ac_datarootdir_seen=yes;;
11135*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11136  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11137$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11138_ACEOF
11139cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11140  ac_datarootdir_hack='
11141  s&@datadir@&$datadir&g
11142  s&@docdir@&$docdir&g
11143  s&@infodir@&$infodir&g
11144  s&@localedir@&$localedir&g
11145  s&@mandir@&$mandir&g
11146  s&\\\${datarootdir}&$datarootdir&g' ;;
11147esac
11148_ACEOF
11149
11150# Neutralize VPATH when `$srcdir' = `.'.
11151# Shell code in configure.ac might set extrasub.
11152# FIXME: do we really want to maintain this feature?
11153cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11154ac_sed_extra="$ac_vpsub
11155$extrasub
11156_ACEOF
11157cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11158:t
11159/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11160s|@configure_input@|$ac_sed_conf_input|;t t
11161s&@top_builddir@&$ac_top_builddir_sub&;t t
11162s&@top_build_prefix@&$ac_top_build_prefix&;t t
11163s&@srcdir@&$ac_srcdir&;t t
11164s&@abs_srcdir@&$ac_abs_srcdir&;t t
11165s&@top_srcdir@&$ac_top_srcdir&;t t
11166s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11167s&@builddir@&$ac_builddir&;t t
11168s&@abs_builddir@&$ac_abs_builddir&;t t
11169s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11170s&@INSTALL@&$ac_INSTALL&;t t
11171$ac_datarootdir_hack
11172"
11173eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11174  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11175
11176test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11177  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11178  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
11179      "$ac_tmp/out"`; test -z "$ac_out"; } &&
11180  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11181which seems to be undefined.  Please make sure it is defined" >&5
11182$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11183which seems to be undefined.  Please make sure it is defined" >&2;}
11184
11185  rm -f "$ac_tmp/stdin"
11186  case $ac_file in
11187  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11188  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11189  esac \
11190  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11191 ;;
11192  :H)
11193  #
11194  # CONFIG_HEADER
11195  #
11196  if test x"$ac_file" != x-; then
11197    {
11198      $as_echo "/* $configure_input  */" \
11199      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11200    } >"$ac_tmp/config.h" \
11201      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11202    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11203      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11204$as_echo "$as_me: $ac_file is unchanged" >&6;}
11205    else
11206      rm -f "$ac_file"
11207      mv "$ac_tmp/config.h" "$ac_file" \
11208	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
11209    fi
11210  else
11211    $as_echo "/* $configure_input  */" \
11212      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11213      || as_fn_error $? "could not create -" "$LINENO" 5
11214  fi
11215 ;;
11216
11217  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11218$as_echo "$as_me: executing $ac_file commands" >&6;}
11219 ;;
11220  esac
11221
11222
11223  case $ac_file$ac_mode in
11224    "default-1":C)
11225    for ac_file in $CONFIG_FILES; do
11226      # Support "outfile[:infile[:infile...]]"
11227      case "$ac_file" in
11228        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11229      esac
11230      # PO directories have a Makefile.in generated from Makefile.in.in.
11231      case "$ac_file" in */Makefile.in)
11232        # Adjust a relative srcdir.
11233        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
11234        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
11235        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
11236        # In autoconf-2.13 it is called $ac_given_srcdir.
11237        # In autoconf-2.50 it is called $srcdir.
11238        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
11239        case "$ac_given_srcdir" in
11240          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
11241          /*) top_srcdir="$ac_given_srcdir" ;;
11242          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
11243        esac
11244        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
11245          rm -f "$ac_dir/POTFILES"
11246          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
11247          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
11248          POMAKEFILEDEPS="POTFILES.in"
11249          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
11250          # on $ac_dir but don't depend on user-specified configuration
11251          # parameters.
11252          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
11253            # The LINGUAS file contains the set of available languages.
11254            if test -n "$OBSOLETE_ALL_LINGUAS"; then
11255              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
11256            fi
11257            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
11258            # Hide the ALL_LINGUAS assigment from automake.
11259            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
11260            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
11261          else
11262            # The set of available languages was given in configure.in.
11263            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
11264          fi
11265          case "$ac_given_srcdir" in
11266            .) srcdirpre= ;;
11267            *) srcdirpre='$(srcdir)/' ;;
11268          esac
11269          POFILES=
11270          GMOFILES=
11271          UPDATEPOFILES=
11272          DUMMYPOFILES=
11273          for lang in $ALL_LINGUAS; do
11274            POFILES="$POFILES $srcdirpre$lang.po"
11275            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
11276            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
11277            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
11278          done
11279          # CATALOGS depends on both $ac_dir and the user's LINGUAS
11280          # environment variable.
11281          INST_LINGUAS=
11282          if test -n "$ALL_LINGUAS"; then
11283            for presentlang in $ALL_LINGUAS; do
11284              useit=no
11285              if test "%UNSET%" != "$LINGUAS"; then
11286                desiredlanguages="$LINGUAS"
11287              else
11288                desiredlanguages="$ALL_LINGUAS"
11289              fi
11290              for desiredlang in $desiredlanguages; do
11291                # Use the presentlang catalog if desiredlang is
11292                #   a. equal to presentlang, or
11293                #   b. a variant of presentlang (because in this case,
11294                #      presentlang can be used as a fallback for messages
11295                #      which are not translated in the desiredlang catalog).
11296                case "$desiredlang" in
11297                  "$presentlang"*) useit=yes;;
11298                esac
11299              done
11300              if test $useit = yes; then
11301                INST_LINGUAS="$INST_LINGUAS $presentlang"
11302              fi
11303            done
11304          fi
11305          CATALOGS=
11306          if test -n "$INST_LINGUAS"; then
11307            for lang in $INST_LINGUAS; do
11308              CATALOGS="$CATALOGS $lang.gmo"
11309            done
11310          fi
11311          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
11312          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
11313          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
11314            if test -f "$f"; then
11315              case "$f" in
11316                *.orig | *.bak | *~) ;;
11317                *) cat "$f" >> "$ac_dir/Makefile" ;;
11318              esac
11319            fi
11320          done
11321        fi
11322        ;;
11323      esac
11324    done ;;
11325
11326  esac
11327done # for ac_tag
11328
11329
11330as_fn_exit 0
11331_ACEOF
11332ac_clean_files=$ac_clean_files_save
11333
11334test $ac_write_fail = 0 ||
11335  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11336
11337
11338# configure is writing to config.log, and then calls config.status.
11339# config.status does its own redirection, appending to config.log.
11340# Unfortunately, on DOS this fails, as config.log is still kept open
11341# by configure, so config.status won't be able to write to it; its
11342# output is simply discarded.  So we exec the FD to /dev/null,
11343# effectively closing config.log, so it can be properly (re)opened and
11344# appended to by config.status.  When coming back to configure, we
11345# need to make the FD available again.
11346if test "$no_create" != yes; then
11347  ac_cs_success=:
11348  ac_config_status_args=
11349  test "$silent" = yes &&
11350    ac_config_status_args="$ac_config_status_args --quiet"
11351  exec 5>/dev/null
11352  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11353  exec 5>>config.log
11354  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11355  # would make configure fail if this is the last instruction.
11356  $ac_cs_success || as_fn_exit 1
11357fi
11358
11359#
11360# CONFIG_SUBDIRS section.
11361#
11362if test "$no_recursion" != yes; then
11363
11364  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
11365  # so they do not pile up.
11366  ac_sub_configure_args=
11367  ac_prev=
11368  eval "set x $ac_configure_args"
11369  shift
11370  for ac_arg
11371  do
11372    if test -n "$ac_prev"; then
11373      ac_prev=
11374      continue
11375    fi
11376    case $ac_arg in
11377    -cache-file | --cache-file | --cache-fil | --cache-fi \
11378    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
11379      ac_prev=cache_file ;;
11380    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
11381    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
11382    | --c=*)
11383      ;;
11384    --config-cache | -C)
11385      ;;
11386    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
11387      ac_prev=srcdir ;;
11388    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
11389      ;;
11390    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
11391      ac_prev=prefix ;;
11392    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
11393      ;;
11394    --disable-option-checking)
11395      ;;
11396    *)
11397      case $ac_arg in
11398      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11399      esac
11400      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
11401    esac
11402  done
11403
11404  # Always prepend --prefix to ensure using the same prefix
11405  # in subdir configurations.
11406  ac_arg="--prefix=$prefix"
11407  case $ac_arg in
11408  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11409  esac
11410  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
11411
11412  # Pass --silent
11413  if test "$silent" = yes; then
11414    ac_sub_configure_args="--silent $ac_sub_configure_args"
11415  fi
11416
11417  # Always prepend --disable-option-checking to silence warnings, since
11418  # different subdirs can have different --enable and --with options.
11419  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
11420
11421  ac_popdir=`pwd`
11422  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
11423
11424    # Do not complain, so a configure script can configure whichever
11425    # parts of a large source tree are present.
11426    test -d "$srcdir/$ac_dir" || continue
11427
11428    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
11429    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
11430    $as_echo "$ac_msg" >&6
11431    as_dir="$ac_dir"; as_fn_mkdir_p
11432    ac_builddir=.
11433
11434case "$ac_dir" in
11435.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11436*)
11437  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11438  # A ".." for each directory in $ac_dir_suffix.
11439  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11440  case $ac_top_builddir_sub in
11441  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11442  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11443  esac ;;
11444esac
11445ac_abs_top_builddir=$ac_pwd
11446ac_abs_builddir=$ac_pwd$ac_dir_suffix
11447# for backward compatibility:
11448ac_top_builddir=$ac_top_build_prefix
11449
11450case $srcdir in
11451  .)  # We are building in place.
11452    ac_srcdir=.
11453    ac_top_srcdir=$ac_top_builddir_sub
11454    ac_abs_top_srcdir=$ac_pwd ;;
11455  [\\/]* | ?:[\\/]* )  # Absolute name.
11456    ac_srcdir=$srcdir$ac_dir_suffix;
11457    ac_top_srcdir=$srcdir
11458    ac_abs_top_srcdir=$srcdir ;;
11459  *) # Relative name.
11460    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11461    ac_top_srcdir=$ac_top_build_prefix$srcdir
11462    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11463esac
11464ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11465
11466
11467    cd "$ac_dir"
11468
11469    # Check for guested configure; otherwise get Cygnus style configure.
11470    if test -f "$ac_srcdir/configure.gnu"; then
11471      ac_sub_configure=$ac_srcdir/configure.gnu
11472    elif test -f "$ac_srcdir/configure"; then
11473      ac_sub_configure=$ac_srcdir/configure
11474    elif test -f "$ac_srcdir/configure.in"; then
11475      # This should be Cygnus configure.
11476      ac_sub_configure=$ac_aux_dir/configure
11477    else
11478      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
11479$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
11480      ac_sub_configure=
11481    fi
11482
11483    # The recursion is here.
11484    if test -n "$ac_sub_configure"; then
11485      # Make the cache file name correct relative to the subdirectory.
11486      case $cache_file in
11487      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
11488      *) # Relative name.
11489	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
11490      esac
11491
11492      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
11493$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
11494      # The eval makes quoting arguments work.
11495      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
11496	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
11497	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
11498    fi
11499
11500    cd "$ac_popdir"
11501  done
11502fi
11503if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11504  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11505$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11506fi
11507
11508
11509d=`eval echo ${MODDIR}`
11510d=`eval echo $d`
11511echo "
11512Configuration:
11513	Atheme version       : ${PACKAGE_VERSION}
11514	Installation prefix  : ${prefix}
11515	Module root directory: `eval echo $d`
11516	Config directory     : ${sysconfdir}
11517	Logfile directory    : ${LOGDIR}
11518	Data directory       : ${DATADIR}
11519	PID directory        : ${RUNDIR}
11520	Reproducible builds  : ${REPRODUCIBLEBUILDS}
11521	Large network support: ${LARGENET}
11522	OpenSSL SASL support : ${SSL}
11523	Contrib modules      : ${CONTRIB}
11524	Mowgli installation  : ${MOWGLI_SOURCE}
11525	PCRE support         : ${with_pcre}
11526	Perl support         : ${with_perl}
11527	QR Code support      : ${LIBQRENCODE}
11528	CFLAGS               : ${CFLAGS}
11529	Internationalization : ${USE_NLS}
11530
11531Type make to build Atheme, and make install to install it."
11532