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