source: git/reporter/configure @ 72f476b

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