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