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