Fix restore of files spanning on the first and second volumes of a dump.
[dump.git] / configure
<
CommitLineData
1227625a 1#! /bin/sh
1227625a 2# Guess values for system-dependent variables and create Makefiles.
d2816d4c 3# Generated by GNU Autoconf 2.61.
1227625a 4#
7f7d329e
SP
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1227625a
SP
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
1daf06b9
SP
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
d2816d4c
SP
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
1daf06b9
SP
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
cdfe1392
SP
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
7f7d329e
SP
21 setopt NO_GLOB_SUBST
22else
d2816d4c
SP
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
1daf06b9 27fi
d2816d4c
SP
28
29
1daf06b9 30
7f7d329e
SP
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
1daf06b9 53# Support unset when possible.
c9e4e868 54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1daf06b9
SP
55 as_unset=unset
56else
57 as_unset=false
58fi
59
cdfe1392 60
7f7d329e
SP
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
cdfe1392 94# Work around bugs in pre-3.0 UWIN ksh.
7f7d329e
SP
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
cdfe1392
SP
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
c9e4e868 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
cdfe1392
SP
109 eval $as_var=C; export $as_var
110 else
7f7d329e 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
cdfe1392
SP
112 fi
113done
114
115# Required to use basename.
7f7d329e
SP
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
cdfe1392
SP
118 as_expr=expr
119else
120 as_expr=false
121fi
122
7f7d329e 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
cdfe1392
SP
124 as_basename=basename
125else
126 as_basename=false
127fi
1daf06b9
SP
128
129
130# Name of the executable.
7f7d329e 131as_me=`$as_basename -- "$0" ||
1daf06b9
SP
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
7f7d329e 134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1daf06b9 135echo X/"$0" |
7f7d329e
SP
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
1daf06b9 149
7f7d329e
SP
150# CDPATH.
151$as_unset CDPATH
cdfe1392 152
1daf06b9 153
7f7d329e
SP
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
1daf06b9
SP
159fi
160
7f7d329e
SP
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
1daf06b9 177
7f7d329e
SP
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
1daf06b9 185
7f7d329e
SP
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
1daf06b9 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d2816d4c 222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1daf06b9
SP
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
7f7d329e 226 case $as_dir in
1daf06b9 227 /*)
7f7d329e
SP
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
7f7d329e
SP
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
d2816d4c
SP
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
7f7d329e 252fi
d2816d4c 253
7f7d329e
SP
254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
7f7d329e
SP
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
d2816d4c
SP
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
7f7d329e 273fi
d2816d4c 274
7f7d329e
SP
275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
1daf06b9
SP
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
1daf06b9 330 test "x$as_lineno_1" != "x$as_lineno_2" &&
7f7d329e
SP
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1daf06b9
SP
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
7f7d329e
SP
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
1daf06b9 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7f7d329e
SP
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
1daf06b9 442 sed '
7f7d329e
SP
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
1daf06b9 447 N
7f7d329e
SP
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1daf06b9 450 t loop
7f7d329e 451 s/-\n.*//
1daf06b9 452 ' >$as_me.lineno &&
7f7d329e 453 chmod +x "$as_me.lineno" ||
1daf06b9
SP
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
7f7d329e
SP
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
1daf06b9
SP
461 # Exit status is that of the last command.
462 exit
463}
464
465
7f7d329e
SP
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479*)
480 ECHO_N='-n';;
1daf06b9
SP
481esac
482
7f7d329e
SP
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1daf06b9
SP
485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
7f7d329e
SP
491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496fi
1daf06b9
SP
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
7f7d329e
SP
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1daf06b9 505 as_ln_s='cp -p'
1daf06b9
SP
506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508else
509 as_ln_s='cp -p'
510fi
7f7d329e
SP
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
1daf06b9 513
cdfe1392
SP
514if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516else
c9e4e868 517 test -d ./-p && rmdir ./-p
cdfe1392
SP
518 as_mkdir_p=false
519fi
520
d2816d4c
SP
521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
7f7d329e 523else
d2816d4c
SP
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
7f7d329e 541fi
d2816d4c 542as_executable_p=$as_test_x
1daf06b9
SP
543
544# Sed expression to map a string onto a valid CPP name.
c9e4e868 545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1daf06b9
SP
546
547# Sed expression to map a string onto a valid variable name.
c9e4e868 548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1daf06b9
SP
549
550
1daf06b9 551
7f7d329e 552exec 7<&0 </dev/null 6>&1
1daf06b9
SP
553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
1daf06b9
SP
559#
560# Initializations.
561#
1227625a 562ac_default_prefix=/usr/local
7f7d329e 563ac_clean_files=
cdfe1392 564ac_config_libobj_dir=.
7f7d329e 565LIBOBJS=
1daf06b9
SP
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
1daf06b9
SP
572# Identity of this package.
573PACKAGE_NAME=
574PACKAGE_TARNAME=
575PACKAGE_VERSION=
576PACKAGE_STRING=
577PACKAGE_BUGREPORT=
578
579ac_unique_file="dump/dump.h"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
d2816d4c 583#ifdef HAVE_SYS_TYPES_H
1daf06b9
SP
584# include <sys/types.h>
585#endif
d2816d4c 586#ifdef HAVE_SYS_STAT_H
1daf06b9
SP
587# include <sys/stat.h>
588#endif
d2816d4c 589#ifdef STDC_HEADERS
1daf06b9
SP
590# include <stdlib.h>
591# include <stddef.h>
592#else
d2816d4c 593# ifdef HAVE_STDLIB_H
1daf06b9
SP
594# include <stdlib.h>
595# endif
596#endif
d2816d4c
SP
597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1daf06b9
SP
599# include <memory.h>
600# endif
601# include <string.h>
602#endif
d2816d4c 603#ifdef HAVE_STRINGS_H
1daf06b9
SP
604# include <strings.h>
605#endif
d2816d4c 606#ifdef HAVE_INTTYPES_H
1daf06b9 607# include <inttypes.h>
7f7d329e 608#endif
d2816d4c 609#ifdef HAVE_STDINT_H
7f7d329e 610# include <stdint.h>
1daf06b9 611#endif
d2816d4c 612#ifdef HAVE_UNISTD_H
1daf06b9
SP
613# include <unistd.h>
614#endif"
615
7f7d329e
SP
616ac_subst_vars='SHELL
617PATH_SEPARATOR
618PACKAGE_NAME
619PACKAGE_TARNAME
620PACKAGE_VERSION
621PACKAGE_STRING
622PACKAGE_BUGREPORT
623exec_prefix
624prefix
625program_transform_name
626bindir
627sbindir
628libexecdir
629datarootdir
630datadir
631sysconfdir
632sharedstatedir
633localstatedir
634includedir
635oldincludedir
636docdir
637infodir
638htmldir
639dvidir
640pdfdir
641psdir
642libdir
643localedir
644mandir
645DEFS
646ECHO_C
647ECHO_N
648ECHO_T
649LIBS
650build_alias
651host_alias
652target_alias
653SET_MAKE
654LN_S
655CP
656MV
657RM
658AR
659RANLIB
660PATCH
661CC
662CFLAGS
663LDFLAGS
664CPPFLAGS
665ac_ct_CC
666EXEEXT
667OBJEXT
668INSTALL_PROGRAM
669INSTALL_SCRIPT
670INSTALL_DATA
671CPP
672GREP
673EGREP
674DUMPDEBUG
675RESTOREDEBUG
676STATIC
677RMTDIR
678ERMT
679CRYPTO
680OPTDEFS
681LTRANSSELINUX
682CCTRANSSELINUX
683LD
684CCOPTS
685LDOPTS
686BINOWNER
687BINGRP
688BINMODE
689MANOWNER
690MANGRP
691MANMODE
692DUMPDATESPATH
693BLKID
694READLINE
695ZLIB
696BZLIB
697top_builddir
698LIBOBJS
699LTLIBOBJS'
cdfe1392 700ac_subst_files='MCONFIG'
7f7d329e
SP
701 ac_precious_vars='build_alias
702host_alias
703target_alias
704CC
705CFLAGS
706LDFLAGS
d2816d4c 707LIBS
7f7d329e
SP
708CPPFLAGS
709CPP'
710
1227625a
SP
711
712# Initialize some variables set by options.
1daf06b9
SP
713ac_init_help=
714ac_init_version=false
1227625a
SP
715# The variables have the same names as the options, with
716# dashes changed to underlines.
1daf06b9 717cache_file=/dev/null
1227625a 718exec_prefix=NONE
1227625a 719no_create=
1227625a
SP
720no_recursion=
721prefix=NONE
722program_prefix=NONE
723program_suffix=NONE
724program_transform_name=s,x,x,
725silent=
726site=
727srcdir=
1227625a
SP
728verbose=
729x_includes=NONE
730x_libraries=NONE
1daf06b9
SP
731
732# Installation directory options.
733# These are left unexpanded so users can "make install exec_prefix=/foo"
734# and all the variables that are supposed to be based on exec_prefix
735# by default will actually change.
736# Use braces instead of parens because sh, perl, etc. also accept them.
7f7d329e 737# (The list follows the same order as the GNU Coding Standards.)
1227625a
SP
738bindir='${exec_prefix}/bin'
739sbindir='${exec_prefix}/sbin'
740libexecdir='${exec_prefix}/libexec'
7f7d329e
SP
741datarootdir='${prefix}/share'
742datadir='${datarootdir}'
1227625a
SP
743sysconfdir='${prefix}/etc'
744sharedstatedir='${prefix}/com'
745localstatedir='${prefix}/var'
1227625a
SP
746includedir='${prefix}/include'
747oldincludedir='/usr/include'
7f7d329e
SP
748docdir='${datarootdir}/doc/${PACKAGE}'
749infodir='${datarootdir}/info'
750htmldir='${docdir}'
751dvidir='${docdir}'
752pdfdir='${docdir}'
753psdir='${docdir}'
754libdir='${exec_prefix}/lib'
755localedir='${datarootdir}/locale'
756mandir='${datarootdir}/man'
1227625a 757
1227625a 758ac_prev=
7f7d329e 759ac_dashdash=
1227625a
SP
760for ac_option
761do
1227625a
SP
762 # If the previous option needs an argument, assign it.
763 if test -n "$ac_prev"; then
7f7d329e 764 eval $ac_prev=\$ac_option
1227625a
SP
765 ac_prev=
766 continue
767 fi
768
7f7d329e
SP
769 case $ac_option in
770 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
771 *) ac_optarg=yes ;;
772 esac
1227625a
SP
773
774 # Accept the important Cygnus configure options, so we can diagnose typos.
775
7f7d329e
SP
776 case $ac_dashdash$ac_option in
777 --)
778 ac_dashdash=yes ;;
1227625a
SP
779
780 -bindir | --bindir | --bindi | --bind | --bin | --bi)
781 ac_prev=bindir ;;
782 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1daf06b9 783 bindir=$ac_optarg ;;
1227625a
SP
784
785 -build | --build | --buil | --bui | --bu)
1daf06b9 786 ac_prev=build_alias ;;
1227625a 787 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1daf06b9 788 build_alias=$ac_optarg ;;
1227625a
SP
789
790 -cache-file | --cache-file | --cache-fil | --cache-fi \
791 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
792 ac_prev=cache_file ;;
793 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
794 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1daf06b9
SP
795 cache_file=$ac_optarg ;;
796
797 --config-cache | -C)
798 cache_file=config.cache ;;
1227625a 799
7f7d329e 800 -datadir | --datadir | --datadi | --datad)
1227625a 801 ac_prev=datadir ;;
7f7d329e 802 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1daf06b9 803 datadir=$ac_optarg ;;
1227625a 804
7f7d329e
SP
805 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
806 | --dataroo | --dataro | --datar)
807 ac_prev=datarootdir ;;
808 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
809 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
810 datarootdir=$ac_optarg ;;
811
1227625a 812 -disable-* | --disable-*)
1daf06b9 813 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1227625a 814 # Reject names that are not valid shell variable names.
d2816d4c 815 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1daf06b9
SP
816 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
817 { (exit 1); exit 1; }; }
d2816d4c 818 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
7f7d329e
SP
819 eval enable_$ac_feature=no ;;
820
821 -docdir | --docdir | --docdi | --doc | --do)
822 ac_prev=docdir ;;
823 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
824 docdir=$ac_optarg ;;
825
826 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
827 ac_prev=dvidir ;;
828 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
829 dvidir=$ac_optarg ;;
1227625a
SP
830
831 -enable-* | --enable-*)
1daf06b9 832 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1227625a 833 # Reject names that are not valid shell variable names.
d2816d4c 834 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1daf06b9
SP
835 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
836 { (exit 1); exit 1; }; }
d2816d4c 837 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
7f7d329e 838 eval enable_$ac_feature=\$ac_optarg ;;
1227625a
SP
839
840 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
841 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
842 | --exec | --exe | --ex)
843 ac_prev=exec_prefix ;;
844 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
845 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
846 | --exec=* | --exe=* | --ex=*)
1daf06b9 847 exec_prefix=$ac_optarg ;;
1227625a
SP
848
849 -gas | --gas | --ga | --g)
850 # Obsolete; use --with-gas.
851 with_gas=yes ;;
852
1daf06b9
SP
853 -help | --help | --hel | --he | -h)
854 ac_init_help=long ;;
855 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
856 ac_init_help=recursive ;;
857 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
858 ac_init_help=short ;;
1227625a
SP
859
860 -host | --host | --hos | --ho)
1daf06b9 861 ac_prev=host_alias ;;
1227625a 862 -host=* | --host=* | --hos=* | --ho=*)
1daf06b9 863 host_alias=$ac_optarg ;;
1227625a 864
7f7d329e
SP
865 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
866 ac_prev=htmldir ;;
867 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
868 | --ht=*)
869 htmldir=$ac_optarg ;;
870
1227625a
SP
871 -includedir | --includedir | --includedi | --included | --include \
872 | --includ | --inclu | --incl | --inc)
873 ac_prev=includedir ;;
874 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
875 | --includ=* | --inclu=* | --incl=* | --inc=*)
1daf06b9 876 includedir=$ac_optarg ;;
1227625a
SP
877
878 -infodir | --infodir | --infodi | --infod | --info | --inf)
879 ac_prev=infodir ;;
880 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1daf06b9 881 infodir=$ac_optarg ;;
1227625a
SP
882
883 -libdir | --libdir | --libdi | --libd)
884 ac_prev=libdir ;;
885 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1daf06b9 886 libdir=$ac_optarg ;;
1227625a
SP
887
888 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
889 | --libexe | --libex | --libe)
890 ac_prev=libexecdir ;;
891 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
892 | --libexe=* | --libex=* | --libe=*)
1daf06b9 893 libexecdir=$ac_optarg ;;
1227625a 894
7f7d329e
SP
895 -localedir | --localedir | --localedi | --localed | --locale)
896 ac_prev=localedir ;;
897 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
898 localedir=$ac_optarg ;;
899
1227625a 900 -localstatedir | --localstatedir | --localstatedi | --localstated \
7f7d329e 901 | --localstate | --localstat | --localsta | --localst | --locals)
1227625a
SP
902 ac_prev=localstatedir ;;
903 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7f7d329e 904 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1daf06b9 905 localstatedir=$ac_optarg ;;
1227625a
SP
906
907 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
908 ac_prev=mandir ;;
909 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1daf06b9 910 mandir=$ac_optarg ;;
1227625a
SP
911
912 -nfp | --nfp | --nf)
913 # Obsolete; use --without-fp.
914 with_fp=no ;;
915
916 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1daf06b9 917 | --no-cr | --no-c | -n)
1227625a
SP
918 no_create=yes ;;
919
920 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
921 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
922 no_recursion=yes ;;
923
924 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
925 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
926 | --oldin | --oldi | --old | --ol | --o)
927 ac_prev=oldincludedir ;;
928 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
929 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
930 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1daf06b9 931 oldincludedir=$ac_optarg ;;
1227625a
SP
932
933 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
934 ac_prev=prefix ;;
935 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1daf06b9 936 prefix=$ac_optarg ;;
1227625a
SP
937
938 -program-prefix | --program-prefix | --program-prefi | --program-pref \
939 | --program-pre | --program-pr | --program-p)
940 ac_prev=program_prefix ;;
941 -program-prefix=* | --program-prefix=* | --program-prefi=* \
942 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1daf06b9 943 program_prefix=$ac_optarg ;;
1227625a
SP
944
945 -program-suffix | --program-suffix | --program-suffi | --program-suff \
946 | --program-suf | --program-su | --program-s)
947 ac_prev=program_suffix ;;
948 -program-suffix=* | --program-suffix=* | --program-suffi=* \
949 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1daf06b9 950 program_suffix=$ac_optarg ;;
1227625a
SP
951
952 -program-transform-name | --program-transform-name \
953 | --program-transform-nam | --program-transform-na \
954 | --program-transform-n | --program-transform- \
955 | --program-transform | --program-transfor \
956 | --program-transfo | --program-transf \
957 | --program-trans | --program-tran \
958 | --progr-tra | --program-tr | --program-t)
959 ac_prev=program_transform_name ;;
960 -program-transform-name=* | --program-transform-name=* \
961 | --program-transform-nam=* | --program-transform-na=* \
962 | --program-transform-n=* | --program-transform-=* \
963 | --program-transform=* | --program-transfor=* \
964 | --program-transfo=* | --program-transf=* \
965 | --program-trans=* | --program-tran=* \
966 | --progr-tra=* | --program-tr=* | --program-t=*)
1daf06b9 967 program_transform_name=$ac_optarg ;;
1227625a 968
7f7d329e
SP
969 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
970 ac_prev=pdfdir ;;
971 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
972 pdfdir=$ac_optarg ;;
973
974 -psdir | --psdir | --psdi | --psd | --ps)
975 ac_prev=psdir ;;
976 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
977 psdir=$ac_optarg ;;
978
1227625a
SP
979 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
980 | -silent | --silent | --silen | --sile | --sil)
981 silent=yes ;;
982
983 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
984 ac_prev=sbindir ;;
985 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
986 | --sbi=* | --sb=*)
1daf06b9 987 sbindir=$ac_optarg ;;
1227625a
SP
988
989 -sharedstatedir | --sharedstatedir | --sharedstatedi \
990 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
991 | --sharedst | --shareds | --shared | --share | --shar \
992 | --sha | --sh)
993 ac_prev=sharedstatedir ;;
994 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
995 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
996 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
997 | --sha=* | --sh=*)
1daf06b9 998 sharedstatedir=$ac_optarg ;;
1227625a
SP
999
1000 -site | --site | --sit)
1001 ac_prev=site ;;
1002 -site=* | --site=* | --sit=*)
1daf06b9 1003 site=$ac_optarg ;;
1227625a
SP
1004
1005 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1006 ac_prev=srcdir ;;
1007 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1daf06b9 1008 srcdir=$ac_optarg ;;
1227625a
SP
1009
1010 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1011 | --syscon | --sysco | --sysc | --sys | --sy)
1012 ac_prev=sysconfdir ;;
1013 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1014 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1daf06b9 1015 sysconfdir=$ac_optarg ;;
1227625a
SP
1016
1017 -target | --target | --targe | --targ | --tar | --ta | --t)
1daf06b9 1018 ac_prev=target_alias ;;
1227625a 1019 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1daf06b9 1020 target_alias=$ac_optarg ;;
1227625a
SP
1021
1022 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1023 verbose=yes ;;
1024
1daf06b9
SP
1025 -version | --version | --versio | --versi | --vers | -V)
1026 ac_init_version=: ;;
1227625a
SP
1027
1028 -with-* | --with-*)
1daf06b9 1029 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1227625a 1030 # Reject names that are not valid shell variable names.
d2816d4c 1031 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1daf06b9
SP
1032 { echo "$as_me: error: invalid package name: $ac_package" >&2
1033 { (exit 1); exit 1; }; }
d2816d4c 1034 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
7f7d329e 1035 eval with_$ac_package=\$ac_optarg ;;
1227625a
SP
1036
1037 -without-* | --without-*)
1daf06b9 1038 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1227625a 1039 # Reject names that are not valid shell variable names.
d2816d4c 1040 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1daf06b9
SP
1041 { echo "$as_me: error: invalid package name: $ac_package" >&2
1042 { (exit 1); exit 1; }; }
d2816d4c 1043 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
7f7d329e 1044 eval with_$ac_package=no ;;
1227625a
SP
1045
1046 --x)
1047 # Obsolete; use --with-x.
1048 with_x=yes ;;
1049
1050 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1051 | --x-incl | --x-inc | --x-in | --x-i)
1052 ac_prev=x_includes ;;
1053 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1054 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1daf06b9 1055 x_includes=$ac_optarg ;;
1227625a
SP
1056
1057 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1058 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1059 ac_prev=x_libraries ;;
1060 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1061 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1daf06b9 1062 x_libraries=$ac_optarg ;;
1227625a 1063
1daf06b9
SP
1064 -*) { echo "$as_me: error: unrecognized option: $ac_option
1065Try \`$0 --help' for more information." >&2
1066 { (exit 1); exit 1; }; }
1227625a
SP
1067 ;;
1068
1daf06b9
SP
1069 *=*)
1070 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1073 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1074 { (exit 1); exit 1; }; }
7f7d329e 1075 eval $ac_envvar=\$ac_optarg
1daf06b9
SP
1076 export $ac_envvar ;;
1077
1227625a 1078 *)
1daf06b9
SP
1079 # FIXME: should be removed in autoconf 3.0.
1080 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1081 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1082 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1083 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1227625a
SP
1084 ;;
1085
1086 esac
1087done
1088
1089if test -n "$ac_prev"; then
1daf06b9
SP
1090 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1091 { echo "$as_me: error: missing argument to $ac_option" >&2
1092 { (exit 1); exit 1; }; }
1227625a 1093fi
1227625a 1094
7f7d329e
SP
1095# Be sure to have absolute directory names.
1096for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1097 datadir sysconfdir sharedstatedir localstatedir includedir \
1098 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1099 libdir localedir mandir
1227625a 1100do
7f7d329e 1101 eval ac_val=\$$ac_var
1daf06b9 1102 case $ac_val in
7f7d329e
SP
1103 [\\/$]* | ?:[\\/]* ) continue;;
1104 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227625a 1105 esac
7f7d329e
SP
1106 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1107 { (exit 1); exit 1; }; }
1227625a
SP
1108done
1109
1daf06b9
SP
1110# There might be people who depend on the old broken behavior: `$host'
1111# used to hold the argument of --host etc.
1112# FIXME: To remove some day.
1113build=$build_alias
1114host=$host_alias
1115target=$target_alias
1116
1117# FIXME: To remove some day.
1118if test "x$host_alias" != x; then
1119 if test "x$build_alias" = x; then
1120 cross_compiling=maybe
1121 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1122 If a cross compiler is detected then cross compile mode will be used." >&2
1123 elif test "x$build_alias" != "x$host_alias"; then
1124 cross_compiling=yes
1125 fi
1126fi
1227625a 1127
1daf06b9
SP
1128ac_tool_prefix=
1129test -n "$host_alias" && ac_tool_prefix=$host_alias-
1130
1131test "$silent" = yes && exec 6>/dev/null
1227625a 1132
1227625a 1133
7f7d329e
SP
1134ac_pwd=`pwd` && test -n "$ac_pwd" &&
1135ac_ls_di=`ls -di .` &&
1136ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1137 { echo "$as_me: error: Working directory cannot be determined" >&2
1138 { (exit 1); exit 1; }; }
1139test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1140 { echo "$as_me: error: pwd does not report name of working directory" >&2
1141 { (exit 1); exit 1; }; }
1142
1143
1227625a
SP
1144# Find the source files, if location was not specified.
1145if test -z "$srcdir"; then
1146 ac_srcdir_defaulted=yes
7f7d329e
SP
1147 # Try the directory containing this script, then the parent directory.
1148 ac_confdir=`$as_dirname -- "$0" ||
1daf06b9 1149$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
c9e4e868
SP
1150 X"$0" : 'X\(//\)[^/]' \| \
1151 X"$0" : 'X\(//\)$' \| \
7f7d329e 1152 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1daf06b9 1153echo X"$0" |
7f7d329e
SP
1154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1155 s//\1/
1156 q
1157 }
1158 /^X\(\/\/\)[^/].*/{
1159 s//\1/
1160 q
1161 }
1162 /^X\(\/\/\)$/{
1163 s//\1/
1164 q
1165 }
1166 /^X\(\/\).*/{
1167 s//\1/
1168 q
1169 }
1170 s/.*/./; q'`
1227625a 1171 srcdir=$ac_confdir
7f7d329e 1172 if test ! -r "$srcdir/$ac_unique_file"; then
1227625a
SP
1173 srcdir=..
1174 fi
1175else
1176 ac_srcdir_defaulted=no
1177fi
7f7d329e
SP
1178if test ! -r "$srcdir/$ac_unique_file"; then
1179 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1180 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1daf06b9 1181 { (exit 1); exit 1; }; }
1227625a 1182fi
7f7d329e
SP
1183ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1184ac_abs_confdir=`(
1185 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
cdfe1392 1186 { (exit 1); exit 1; }; }
7f7d329e
SP
1187 pwd)`
1188# When building in place, set srcdir=.
1189if test "$ac_abs_confdir" = "$ac_pwd"; then
1190 srcdir=.
1191fi
1192# Remove unnecessary trailing slashes from srcdir.
1193# Double slashes in file names in object file debugging info
1194# mess up M-x gdb in Emacs.
1195case $srcdir in
1196*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1197esac
1198for ac_var in $ac_precious_vars; do
1199 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1200 eval ac_env_${ac_var}_value=\$${ac_var}
1201 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1202 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1203done
1daf06b9
SP
1204
1205#
1206# Report the --help message.
1207#
1208if test "$ac_init_help" = "long"; then
1209 # Omit some internal or obsolete options to make the list less imposing.
1210 # This message is too long to be a string in the A/UX 3.1 sh.
1211 cat <<_ACEOF
1212\`configure' configures this package to adapt to many kinds of systems.
1213
1214Usage: $0 [OPTION]... [VAR=VALUE]...
1215
1216To assign environment variables (e.g., CC, CFLAGS...), specify them as
1217VAR=VALUE. See below for descriptions of some of the useful variables.
1218
1219Defaults for the options are specified in brackets.
1220
1221Configuration:
1222 -h, --help display this help and exit
1223 --help=short display options specific to this package
1224 --help=recursive display the short help of all the included packages
1225 -V, --version display version information and exit
1226 -q, --quiet, --silent do not print \`checking...' messages
1227 --cache-file=FILE cache test results in FILE [disabled]
1228 -C, --config-cache alias for \`--cache-file=config.cache'
1229 -n, --no-create do not create output files
1230 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1231
1daf06b9
SP
1232Installation directories:
1233 --prefix=PREFIX install architecture-independent files in PREFIX
c9e4e868 1234 [$ac_default_prefix]
1daf06b9 1235 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
c9e4e868 1236 [PREFIX]
1daf06b9
SP
1237
1238By default, \`make install' will install all the files in
1239\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1240an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1241for instance \`--prefix=\$HOME'.
1242
1243For better control, use the options below.
1244
1245Fine tuning of the installation directories:
1246 --bindir=DIR user executables [EPREFIX/bin]
1247 --sbindir=DIR system admin executables [EPREFIX/sbin]
1248 --libexecdir=DIR program executables [EPREFIX/libexec]
1daf06b9
SP
1249 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1250 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1251 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1252 --libdir=DIR object code libraries [EPREFIX/lib]
1253 --includedir=DIR C header files [PREFIX/include]
1254 --oldincludedir=DIR C header files for non-gcc [/usr/include]
7f7d329e
SP
1255 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1256 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1257 --infodir=DIR info documentation [DATAROOTDIR/info]
1258 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1259 --mandir=DIR man documentation [DATAROOTDIR/man]
1260 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1261 --htmldir=DIR html documentation [DOCDIR]
1262 --dvidir=DIR dvi documentation [DOCDIR]
1263 --pdfdir=DIR pdf documentation [DOCDIR]
1264 --psdir=DIR ps documentation [DOCDIR]
1daf06b9
SP
1265_ACEOF
1266
1267 cat <<\_ACEOF
1268_ACEOF
1269fi
1270
1271if test -n "$ac_init_help"; then
1272
1273 cat <<\_ACEOF
1274
1275Optional Features:
1276 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1277 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1278 --enable-debug include debugging code (default is NO)
1279 --enable-static link dump and restore statically (default is NO)
d7783603 1280 --enable-staticz link libz and libbz2 statically (default is NO)
1daf06b9 1281 --enable-rmt compile and install rmt (default is YES)
cdfe1392 1282 --enable-ermt compile ermt, an encrypting version of rmt (default is NO)
1daf06b9
SP
1283 --enable-kerberos compile kerberos extensions (default is NO)
1284 --enable-readline enable readline support in restore (default is YES)
1285 --enable-oldstylefscript enable old style F script (no arguments) (default is NO)
1286 --enable-largefile enable Large File System support (default is YES)
1287 --enable-qfa enable Quick File Access support (default is YES)
1288 --enable-qfadebug include Quick File Access debugging code (default is NO)
d1925e0c 1289 --enable-macosx include Mac OSX restore compatibility (default is NO)
7f7d329e 1290 --enable-transselinux restore can translate SELinux EAs (default is YES)
1daf06b9
SP
1291
1292Optional Packages:
1293 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1294 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1295 --with-cc=COMPILER select compiler to use
1296 --with-linker=LINKER select linker to use
1297 --with-ccopts=CCOPTS select compiler command line options
1298 --with-ldopts=LDOPTS select linker command line options
1299 --with-binowner=USER select owner for binaries
1300 --with-bingrp=GROUP select group for binaries
1301 --with-binmode=MODE select mode for binaries
1302 --with-manowner=USER select owner for manual pages
1303 --with-mangrp=GROUP select group for manual pages
1304 --with-manmode=MODE select mode for manual pages
1305 --with-dumpdatespath=PATH select path for dumpdates file
1306
1307Some influential environment variables:
1308 CC C compiler command
1309 CFLAGS C compiler flags
1310 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1311 nonstandard directory <lib dir>
d2816d4c 1312 LIBS libraries to pass to the linker, e.g. -l<library>
7f7d329e
SP
1313 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1314 you have headers in a nonstandard directory <include dir>
1daf06b9
SP
1315 CPP C preprocessor
1316
1317Use these variables to override the choices made by `configure' or to help
1318it to find libraries and programs with nonstandard names/locations.
1319
1320_ACEOF
7f7d329e 1321ac_status=$?
1daf06b9
SP
1322fi
1323
1324if test "$ac_init_help" = "recursive"; then
1325 # If there are subdirs, report their specific --help.
1daf06b9 1326 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
7f7d329e 1327 test -d "$ac_dir" || continue
1daf06b9
SP
1328 ac_builddir=.
1329
7f7d329e
SP
1330case "$ac_dir" in
1331.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1332*)
1daf06b9 1333 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7f7d329e
SP
1334 # A ".." for each directory in $ac_dir_suffix.
1335 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1336 case $ac_top_builddir_sub in
1337 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1338 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1339 esac ;;
1340esac
1341ac_abs_top_builddir=$ac_pwd
1342ac_abs_builddir=$ac_pwd$ac_dir_suffix
1343# for backward compatibility:
1344ac_top_builddir=$ac_top_build_prefix
1daf06b9
SP
1345
1346case $srcdir in
7f7d329e 1347 .) # We are building in place.
1daf06b9 1348 ac_srcdir=.
7f7d329e
SP
1349 ac_top_srcdir=$ac_top_builddir_sub
1350 ac_abs_top_srcdir=$ac_pwd ;;
1351 [\\/]* | ?:[\\/]* ) # Absolute name.
1daf06b9 1352 ac_srcdir=$srcdir$ac_dir_suffix;
7f7d329e
SP
1353 ac_top_srcdir=$srcdir
1354 ac_abs_top_srcdir=$srcdir ;;
1355 *) # Relative name.
1356 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1357 ac_top_srcdir=$ac_top_build_prefix$srcdir
1358 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c9e4e868 1359esac
7f7d329e
SP
1360ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1361
1362 cd "$ac_dir" || { ac_status=$?; continue; }
1363 # Check for guested configure.
1364 if test -f "$ac_srcdir/configure.gnu"; then
1365 echo &&
1366 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1367 elif test -f "$ac_srcdir/configure"; then
1368 echo &&
1369 $SHELL "$ac_srcdir/configure" --help=recursive
1daf06b9
SP
1370 else
1371 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7f7d329e
SP
1372 fi || ac_status=$?
1373 cd "$ac_pwd" || { ac_status=$?; break; }
1daf06b9
SP
1374 done
1375fi
1376
7f7d329e 1377test -n "$ac_init_help" && exit $ac_status
1daf06b9
SP
1378if $ac_init_version; then
1379 cat <<\_ACEOF
7f7d329e 1380configure
d2816d4c 1381generated by GNU Autoconf 2.61
1daf06b9 1382
7f7d329e
SP
1383Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
13842002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1daf06b9
SP
1385This configure script is free software; the Free Software Foundation
1386gives unlimited permission to copy, distribute and modify it.
1387_ACEOF
7f7d329e 1388 exit
1daf06b9 1389fi
7f7d329e 1390cat >config.log <<_ACEOF
1daf06b9
SP
1391This file contains any messages produced by compilers while
1392running configure, to aid debugging if configure makes a mistake.
1393
1394It was created by $as_me, which was
d2816d4c 1395generated by GNU Autoconf 2.61. Invocation command line was
1daf06b9
SP
1396
1397 $ $0 $@
1398
1399_ACEOF
7f7d329e 1400exec 5>>config.log
1daf06b9
SP
1401{
1402cat <<_ASUNAME
1403## --------- ##
1404## Platform. ##
1405## --------- ##
1406
1407hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1408uname -m = `(uname -m) 2>/dev/null || echo unknown`
1409uname -r = `(uname -r) 2>/dev/null || echo unknown`
1410uname -s = `(uname -s) 2>/dev/null || echo unknown`
1411uname -v = `(uname -v) 2>/dev/null || echo unknown`
1412
1413/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1414/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1415
1416/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1417/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1418/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7f7d329e 1419/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1daf06b9
SP
1420/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1421/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1422/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1423
1424_ASUNAME
1425
1426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1427for as_dir in $PATH
1428do
1429 IFS=$as_save_IFS
1430 test -z "$as_dir" && as_dir=.
1431 echo "PATH: $as_dir"
1432done
7f7d329e 1433IFS=$as_save_IFS
1daf06b9
SP
1434
1435} >&5
1436
1437cat >&5 <<_ACEOF
1438
1439
1440## ----------- ##
1441## Core tests. ##
1442## ----------- ##
1443
1444_ACEOF
1445
1446
1447# Keep a trace of the command line.
1448# Strip out --no-create and --no-recursion so they do not pile up.
cdfe1392 1449# Strip out --silent because we don't want to record it for future runs.
1daf06b9 1450# Also quote any args containing shell meta-characters.
cdfe1392 1451# Make two passes to allow for proper duplicate-argument suppression.
1daf06b9 1452ac_configure_args=
cdfe1392
SP
1453ac_configure_args0=
1454ac_configure_args1=
cdfe1392
SP
1455ac_must_keep_next=false
1456for ac_pass in 1 2
1daf06b9 1457do
cdfe1392
SP
1458 for ac_arg
1459 do
1460 case $ac_arg in
1461 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1462 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1463 | -silent | --silent | --silen | --sile | --sil)
1464 continue ;;
7f7d329e 1465 *\'*)
cdfe1392
SP
1466 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1467 esac
1468 case $ac_pass in
1469 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1470 2)
1471 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1472 if test $ac_must_keep_next = true; then
c9e4e868 1473 ac_must_keep_next=false # Got value, back to normal.
cdfe1392 1474 else
c9e4e868
SP
1475 case $ac_arg in
1476 *=* | --config-cache | -C | -disable-* | --disable-* \
1477 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1478 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1479 | -with-* | --with-* | -without-* | --without-* | --x)
1480 case "$ac_configure_args0 " in
1481 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1482 esac
1483 ;;
1484 -* ) ac_must_keep_next=true ;;
1485 esac
cdfe1392 1486 fi
7f7d329e 1487 ac_configure_args="$ac_configure_args '$ac_arg'"
cdfe1392
SP
1488 ;;
1489 esac
1490 done
1daf06b9 1491done
cdfe1392
SP
1492$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1493$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1daf06b9
SP
1494
1495# When interrupted or exit'd, cleanup temporary files, and complete
1496# config.log. We remove comments because anyway the quotes in there
1497# would cause problems or look ugly.
7f7d329e
SP
1498# WARNING: Use '\'' to represent an apostrophe within the trap.
1499# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1daf06b9
SP
1500trap 'exit_status=$?
1501 # Save into config.log some information that might help in debugging.
1502 {
1503 echo
cdfe1392 1504
1daf06b9
SP
1505 cat <<\_ASBOX
1506## ---------------- ##
1507## Cache variables. ##
1508## ---------------- ##
1509_ASBOX
1510 echo
1511 # The following way of writing the cache mishandles newlines in values,
7f7d329e
SP
1512(
1513 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1514 eval ac_val=\$$ac_var
1515 case $ac_val in #(
1516 *${as_nl}*)
1517 case $ac_var in #(
1518 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1519echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1520 esac
1521 case $ac_var in #(
1522 _ | IFS | as_nl) ;; #(
1523 *) $as_unset $ac_var ;;
1524 esac ;;
1525 esac
1526 done
1daf06b9 1527 (set) 2>&1 |
7f7d329e
SP
1528 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1529 *${as_nl}ac_space=\ *)
1daf06b9 1530 sed -n \
7f7d329e
SP
1531 "s/'\''/'\''\\\\'\'''\''/g;
1532 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1533 ;; #(
1daf06b9 1534 *)
7f7d329e 1535 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1daf06b9 1536 ;;
7f7d329e
SP
1537 esac |
1538 sort
1539)
1daf06b9 1540 echo
cdfe1392
SP
1541
1542 cat <<\_ASBOX
1543## ----------------- ##
1544## Output variables. ##
1545## ----------------- ##
1546_ASBOX
1547 echo
1548 for ac_var in $ac_subst_vars
1549 do
7f7d329e
SP
1550 eval ac_val=\$$ac_var
1551 case $ac_val in
1552 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1553 esac
1554 echo "$ac_var='\''$ac_val'\''"
cdfe1392
SP
1555 done | sort
1556 echo
1557
1558 if test -n "$ac_subst_files"; then
1559 cat <<\_ASBOX
7f7d329e
SP
1560## ------------------- ##
1561## File substitutions. ##
1562## ------------------- ##
cdfe1392
SP
1563_ASBOX
1564 echo
1565 for ac_var in $ac_subst_files
1566 do
7f7d329e
SP
1567 eval ac_val=\$$ac_var
1568 case $ac_val in
1569 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1570 esac
1571 echo "$ac_var='\''$ac_val'\''"
cdfe1392
SP
1572 done | sort
1573 echo
1574 fi
1575
1daf06b9
SP
1576 if test -s confdefs.h; then
1577 cat <<\_ASBOX
1578## ----------- ##
1579## confdefs.h. ##
1580## ----------- ##
1581_ASBOX
1582 echo
7f7d329e 1583 cat confdefs.h
1daf06b9
SP
1584 echo
1585 fi
1586 test "$ac_signal" != 0 &&
1587 echo "$as_me: caught signal $ac_signal"
1588 echo "$as_me: exit $exit_status"
1589 } >&5
7f7d329e
SP
1590 rm -f core *.core core.conftest.* &&
1591 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1daf06b9 1592 exit $exit_status
7f7d329e 1593' 0
1daf06b9
SP
1594for ac_signal in 1 2 13 15; do
1595 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1596done
1597ac_signal=0
1227625a 1598
1daf06b9 1599# confdefs.h avoids OS command line length limits that DEFS can exceed.
7f7d329e 1600rm -f -r conftest* confdefs.h
1daf06b9
SP
1601
1602# Predefined preprocessor variables.
1603
1604cat >>confdefs.h <<_ACEOF
1605#define PACKAGE_NAME "$PACKAGE_NAME"
1606_ACEOF
1607
1608
1609cat >>confdefs.h <<_ACEOF
1610#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1611_ACEOF
1612
1613
1614cat >>confdefs.h <<_ACEOF
1615#define PACKAGE_VERSION "$PACKAGE_VERSION"
1616_ACEOF
1617
1618
1619cat >>confdefs.h <<_ACEOF
1620#define PACKAGE_STRING "$PACKAGE_STRING"
1621_ACEOF
1622
1623
1624cat >>confdefs.h <<_ACEOF
1625#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1626_ACEOF
1627
1628
1629# Let the site file select an alternate cache file if it wants to.
1227625a 1630# Prefer explicitly selected file to automatically selected ones.
7f7d329e
SP
1631if test -n "$CONFIG_SITE"; then
1632 set x "$CONFIG_SITE"
1633elif test "x$prefix" != xNONE; then
1634 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1635else
1636 set x "$ac_default_prefix/share/config.site" \
1637 "$ac_default_prefix/etc/config.site"
1227625a 1638fi
7f7d329e
SP
1639shift
1640for ac_site_file
1641do
1227625a 1642 if test -r "$ac_site_file"; then
1daf06b9
SP
1643 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1644echo "$as_me: loading site script $ac_site_file" >&6;}
1645 sed 's/^/| /' "$ac_site_file" >&5
1227625a
SP
1646 . "$ac_site_file"
1647 fi
1648done
1649
1650if test -r "$cache_file"; then
1daf06b9
SP
1651 # Some versions of bash will fail to source /dev/null (special
1652 # files actually), so we avoid doing that.
1653 if test -f "$cache_file"; then
1654 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1655echo "$as_me: loading cache $cache_file" >&6;}
1656 case $cache_file in
7f7d329e
SP
1657 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1658 *) . "./$cache_file";;
1daf06b9
SP
1659 esac
1660 fi
1227625a 1661else
1daf06b9
SP
1662 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1663echo "$as_me: creating cache $cache_file" >&6;}
1664 >$cache_file
1665fi
1666
1667# Check that the precious variables saved in the cache have kept the same
1668# value.
1669ac_cache_corrupted=false
7f7d329e 1670for ac_var in $ac_precious_vars; do
1daf06b9
SP
1671 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1672 eval ac_new_set=\$ac_env_${ac_var}_set
7f7d329e
SP
1673 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1674 eval ac_new_val=\$ac_env_${ac_var}_value
1daf06b9
SP
1675 case $ac_old_set,$ac_new_set in
1676 set,)
1677 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1678echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1679 ac_cache_corrupted=: ;;
1680 ,set)
1681 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1682echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1683 ac_cache_corrupted=: ;;
1684 ,);;
1685 *)
1686 if test "x$ac_old_val" != "x$ac_new_val"; then
c9e4e868 1687 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1daf06b9 1688echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
c9e4e868 1689 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1daf06b9 1690echo "$as_me: former value: $ac_old_val" >&2;}
c9e4e868 1691 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1daf06b9 1692echo "$as_me: current value: $ac_new_val" >&2;}
c9e4e868 1693 ac_cache_corrupted=:
1daf06b9
SP
1694 fi;;
1695 esac
1696 # Pass precious variables to config.status.
1697 if test "$ac_new_set" = set; then
1698 case $ac_new_val in
7f7d329e 1699 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1daf06b9
SP
1700 *) ac_arg=$ac_var=$ac_new_val ;;
1701 esac
1702 case " $ac_configure_args " in
1703 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1704 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1705 esac
1706 fi
1707done
1708if $ac_cache_corrupted; then
1709 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1710echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1711 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1712echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1713 { (exit 1); exit 1; }; }
1227625a
SP
1714fi
1715
1daf06b9
SP
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1227625a 1731
7f7d329e
SP
1732ac_ext=c
1733ac_cpp='$CPP $CPPFLAGS'
1734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1736ac_compiler_gnu=$ac_cv_c_compiler_gnu
1227625a
SP
1737
1738
e7d18957 1739
cdfe1392 1740
1227625a
SP
1741MCONFIG=./MCONFIG
1742
1743
7f7d329e 1744ac_config_headers="$ac_config_headers config.h"
1227625a
SP
1745
1746
7f7d329e
SP
1747{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1748echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1749set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1750if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1daf06b9 1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1227625a 1752else
1daf06b9 1753 cat >conftest.make <<\_ACEOF
7f7d329e 1754SHELL = /bin/sh
1227625a 1755all:
7f7d329e 1756 @echo '@@@%%%=$(MAKE)=@@@%%%'
1daf06b9 1757_ACEOF
1227625a 1758# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7f7d329e
SP
1759case `${MAKE-make} -f conftest.make 2>/dev/null` in
1760 *@@@%%%=?*=@@@%%%*)
1761 eval ac_cv_prog_make_${ac_make}_set=yes;;
1762 *)
1763 eval ac_cv_prog_make_${ac_make}_set=no;;
1764esac
1daf06b9 1765rm -f conftest.make
1227625a 1766fi
7f7d329e
SP
1767if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1768 { echo "$as_me:$LINENO: result: yes" >&5
1769echo "${ECHO_T}yes" >&6; }
1227625a
SP
1770 SET_MAKE=
1771else
7f7d329e
SP
1772 { echo "$as_me:$LINENO: result: no" >&5
1773echo "${ECHO_T}no" >&6; }
1227625a
SP
1774 SET_MAKE="MAKE=${MAKE-make}"
1775fi
1776
7f7d329e
SP
1777{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
1778echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
1daf06b9
SP
1779LN_S=$as_ln_s
1780if test "$LN_S" = "ln -s"; then
7f7d329e
SP
1781 { echo "$as_me:$LINENO: result: yes" >&5
1782echo "${ECHO_T}yes" >&6; }
1227625a 1783else
7f7d329e
SP
1784 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1785echo "${ECHO_T}no, using $LN_S" >&6; }
1227625a
SP
1786fi
1787
1788# Extract the first word of "cp", so it can be a program name with args.
1789set dummy cp; ac_word=$2
7f7d329e
SP
1790{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1daf06b9
SP
1792if test "${ac_cv_path_CP+set}" = set; then
1793 echo $ECHO_N "(cached) $ECHO_C" >&6
1227625a 1794else
1daf06b9
SP
1795 case $CP in
1796 [\\/]* | ?:[\\/]*)
1227625a
SP
1797 ac_cv_path_CP="$CP" # Let the user override the test with a path.
1798 ;;
1799 *)
1daf06b9
SP
1800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1801for as_dir in $PATH
1802do
1803 IFS=$as_save_IFS
1804 test -z "$as_dir" && as_dir=.
1805 for ac_exec_ext in '' $ac_executable_extensions; do
d2816d4c 1806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1daf06b9
SP
1807 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
1808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1809 break 2
1810 fi
1811done
1812done
7f7d329e 1813IFS=$as_save_IFS
1daf06b9 1814
1227625a
SP
1815 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
1816 ;;
1817esac
1818fi
1daf06b9 1819CP=$ac_cv_path_CP
1227625a 1820if test -n "$CP"; then
7f7d329e
SP
1821 { echo "$as_me:$LINENO: result: $CP" >&5
1822echo "${ECHO_T}$CP" >&6; }
1227625a 1823else
7f7d329e
SP
1824 { echo "$as_me:$LINENO: result: no" >&5
1825echo "${ECHO_T}no" >&6; }
1227625a
SP
1826fi
1827
7f7d329e 1828
1227625a
SP
1829# Extract the first word of "mv", so it can be a program name with args.
1830set dummy mv; ac_word=$2
7f7d329e
SP
1831{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1daf06b9
SP
1833if test "${ac_cv_path_MV+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1227625a 1835else
1daf06b9
SP
1836 case $MV in
1837 [\\/]* | ?:[\\/]*)
1227625a
SP
1838 ac_cv_path_MV="$MV" # Let the user override the test with a path.
1839 ;;
1840 *)
1daf06b9
SP
1841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842for as_dir in $PATH
1843do
1844 IFS=$as_save_IFS
1845 test -z "$as_dir" && as_dir=.
1846 for ac_exec_ext in '' $ac_executable_extensions; do
d2816d4c 1847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1daf06b9
SP
1848 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
1849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1850 break 2
1851 fi
1852done
1853done
7f7d329e 1854IFS=$as_save_IFS
1daf06b9 1855
1227625a
SP
1856 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
1857 ;;
1858esac
1859fi
1daf06b9 1860MV=$ac_cv_path_MV
1227625a 1861if test -n "$MV"; then
7f7d329e
SP
1862 { echo "$as_me:$LINENO: result: $MV" >&5
1863echo "${ECHO_T}$MV" >&6; }
1227625a 1864else
7f7d329e
SP
1865 { echo "$as_me:$LINENO: result: no" >&5
1866echo "${ECHO_T}no" >&6; }
1227625a
SP
1867fi
1868
7f7d329e 1869
1227625a
SP
1870# Extract the first word of "rm", so it can be a program name with args.
1871set dummy rm; ac_word=$2
7f7d329e
SP
1872{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1daf06b9
SP
1874if test "${ac_cv_path_RM+set}" = set; then
1875 echo $ECHO_N "(cached) $ECHO_C" >&6
1227625a 1876else
1daf06b9
SP
1877 case $RM in
1878 [\\/]* | ?:[\\/]*)
1227625a
SP
1879 ac_cv_path_RM="$RM" # Let the user override the test with a path.
1880 ;;
1881 *)
1daf06b9
SP
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883for as_dir in $PATH
1884do
1885 IFS=$as_save_IFS
1886 test -z "$as_dir" && as_dir=.
1887 for ac_exec_ext in '' $ac_executable_extensions; do
d2816d4c 1888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1daf06b9
SP
1889 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
1890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891 break 2
1892 fi
1893done
1894done
7f7d329e 1895IFS=$as_save_IFS
1daf06b9 1896
1227625a
SP
1897 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
1898 ;;
1899esac
1900fi
1daf06b9 1901RM=$ac_cv_path_RM
1227625a 1902if test -n "$RM"; then
7f7d329e
SP
1903 { echo "$as_me:$LINENO: result: $RM" >&5
1904echo "${ECHO_T}$RM" >&6; }
1227625a 1905else
7f7d329e
SP
1906 { echo "$as_me:$LINENO: result: no" >&5
1907echo "${ECHO_T}no" >&6; }
1227625a
SP
1908fi
1909
7f7d329e 1910
1daf06b9
SP
1911if test -n "$ac_tool_prefix"; then
1912 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1227625a 1913set dummy ${ac_tool_prefix}ar; ac_word=$2
7f7d329e
SP
1914{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1daf06b9
SP
1916if test "${ac_cv_prog_AR+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" >&6
1227625a
SP
1918else
1919 if test -n "$AR"; then
1920 ac_cv_prog_AR="$AR" # Let the user override the test.
1921else
1daf06b9
SP
1922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923for as_dir in $PATH
1924do
1925 IFS=$as_save_IFS
1926 test -z "$as_dir" && as_dir=.
1927 for ac_exec_ext in '' $ac_executable_extensions; do
d2816d4c 1928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1daf06b9
SP
1929 ac_cv_prog_AR="${ac_tool_prefix}ar"
1930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1931 break 2
1932 fi
1933done
1934done
7f7d329e 1935IFS=$as_save_IFS
1daf06b9 1936
1227625a
SP
1937fi
1938fi
1daf06b9 1939AR=$ac_cv_prog_AR
1227625a 1940if test -n "$AR"; then
7f7d329e
SP
1941 { echo "$as_me:$LINENO: result: $AR" >&5
1942echo "${ECHO_T}$AR" >&6; }
1227625a 1943else
7f7d329e
SP
1944 { echo "$as_me:$LINENO: result: no" >&5
1945echo "${ECHO_T}no" >&6; }
1227625a
SP
1946fi
1947
7f7d329e 1948
1daf06b9 1949fi
1227625a 1950if test -z "$ac_cv_prog_AR"; then
1daf06b9 1951 ac_ct_AR=$AR
1227625a
SP
1952 # Extract the first word of "ar", so it can be a program name with args.
1953set dummy ar; ac_word=$2
7f7d329e
SP
1954{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1daf06b9
SP
1956if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1227625a 1958else
1daf06b9
SP
1959 if test -n "$ac_ct_AR"; then
1960 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
1227625a 1961else
1daf06b9
SP
1962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1963for as_dir in $PATH
1964do
1965 IFS=$as_save_IFS
1966 test -z "$as_dir" && as_dir=.
1967 for ac_exec_ext in '' $ac_executable_extensions; do
d2816d4c 1968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1daf06b9
SP
1969 ac_cv_prog_ac_ct_AR="ar"
1970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1971 break 2
1972 fi
1973done
1974done
7f7d329e 1975IFS=$as_save_IFS
1daf06b9 1976
1227625a
SP
1977fi
1978fi
1daf06b9
SP
1979ac_ct_AR=$ac_cv_prog_ac_ct_AR
1980if test -n "$ac_ct_AR"; then
7f7d329e
SP
1981 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
1982echo "${ECHO_T}$ac_ct_AR" >&6; }
1227625a 1983else
7f7d329e
SP
1984 { echo "$as_me:$LINENO: result: no" >&5
1985echo "${ECHO_T}no" >&6; }
1227625a
SP
1986fi
1987
7f7d329e
SP
1988 if test "x$ac_ct_AR" = x; then
1989 AR="ar"
1990 else
1991 case $cross_compiling:$ac_tool_warned in
1992yes:)
1993{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1994whose name does not start with the host triplet. If you think this
1995configuration is useful to you, please write to autoconf@gnu.org." >&5
1996echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1997whose name does not start with the host triplet. If you think this
1998configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1999ac_tool_warned=yes ;;
2000esac
2001 AR=$ac_ct_AR
2002 fi
1227625a 2003else
1daf06b9 2004 AR="$ac_cv_prog_AR"
1227625a
SP
2005fi
2006
1daf06b9
SP
2007if test -n "$ac_tool_prefix"; then
2008 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1227625a 2009set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7f7d329e
SP
2010{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1daf06b9
SP
2012if test "${ac_cv_prog_RANLIB+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
1227625a
SP
2014else
2015 if test -n "$RANLIB"; then
2016 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2017else
1daf06b9
SP
2018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019for as_dir in $PATH
2020do
2021 IFS=$as_save_IFS
2022 test -z "$as_dir" && as_dir=.
2023 for ac_exec_ext in '' $ac_executable_extensions; do
d2816d4c 2024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1daf06b9
SP
2025 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027 break 2
2028 fi
2029done
2030done
7f7d329e 2031IFS=$as_save_IFS
1daf06b9 2032
1227625a
SP
2033fi
2034fi
1daf06b9 2035RANLIB=$ac_cv_prog_RANLIB
1227625a 2036if test -n "$RANLIB"; then
7f7d329e
SP
2037 { echo "$as_me:$LINENO: result: $RANLIB" >&5
2038echo "${ECHO_T}$RANLIB" >&6; }
1227625a 2039else
7f7d329e
SP
2040 { echo "$as_me:$LINENO: result: no" >&5
2041echo "${ECHO_T}no" >&6; }
1227625a
SP
2042fi
2043
7f7d329e 2044
1daf06b9 2045fi
1227625a 2046if test -z "$ac_cv_prog_RANLIB"; then
1daf06b9 2047 ac_ct_RANLIB=$RANLIB
1227625a
SP
2048 # Extract the first word of "ranlib", so it can be a program name with args.
2049set dummy ranlib; ac_word=$2
7f7d329e
SP
2050{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1daf06b9
SP
2052if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2053 echo $ECHO_N "(cached) $ECHO_C" >&6
1227625a 2054else
1daf06b9
SP
2055 if test -n "$ac_ct_RANLIB"; then
2056 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1227625a 2057else
1daf06b9
SP
2058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059for as_dir in $PATH
2060do
2061 IFS=$as_save_IFS
2062 test -z "$as_dir" && as_dir=.
2063 for ac_exec_ext in '' $ac_executable_extensions; do
d2816d4c 2064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1daf06b9
SP
2065 ac_cv_prog_ac_ct_RANLIB="ranlib"
2066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2067 break 2
2068 fi
2069done
2070done
7f7d329e 2071IFS=$as_save_IFS
1daf06b9 2072
1227625a
SP
2073fi
2074fi
1daf06b9
SP
2075ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2076if test -n "$ac_ct_RANLIB"; then
7f7d329e
SP
2077 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2078echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
1227625a 2079else
7f7d329e
SP
2080 { echo "$as_me:$LINENO: result: no" >&5
2081echo "${ECHO_T}no" >&6; }
1227625a
SP
2082fi
2083
7f7d329e
SP
2084 if test "x$ac_ct_RANLIB" = x; then
2085 RANLIB=":"
2086 else
2087 case $cross_compiling:$ac_tool_warned in
2088yes:)
2089{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2090whose name does not start with the host triplet. If you think this
2091configuration is useful to you, please write to autoconf@gnu.org." >&5
2092echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2093whose name does not start with the host triplet. If you think this
2094configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2095ac_tool_warned=yes ;;
2096esac
2097 RANLIB=$ac_ct_RANLIB
2098 fi
1227625a 2099else
1daf06b9 2100 RANLIB="$ac_cv_prog_RANLIB"
1227625a
SP
2101fi
2102
1daf06b9
SP
2103if test -n "$ac_tool_prefix"; then
2104 # Extract the first word of "${ac_tool_prefix}patch", so it can be a program name with args.
1227625a 2105set dummy ${ac_tool_prefix}patch; ac_word=$2
7f7d329e
SP
2106{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1daf06b9
SP
2108if test "${ac_cv_prog_PATCH+set}" = set; then
2109 echo $ECHO_N "(cached) $ECHO_C" >&6
1227625a
SP
2110else
2111 if test -n "$PATCH"; then
2112 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
2113else
1daf06b9
SP
2114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115for as_dir in $PATH
2116do
2117 IFS=$as_save_IFS
2118 test -z "$as_dir" && as_dir=.
2119 for ac_exec_ext in '' $ac_executable_extensions; do
d2816d4c 2120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1daf06b9
SP
2121 ac_cv_prog_PATCH="${ac_tool_prefix}patch"
2122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2123 break 2
2124 fi
2125done
2126done
7f7d329e 2127IFS=$as_save_IFS
1daf06b9 2128
1227625a
SP
2129fi
2130fi
1daf06b9 2131PATCH=$ac_cv_prog_PATCH
1227625a 2132if test -n "$PATCH"; then
7f7d329e
SP
2133 { echo "$as_me:$LINENO: result: $PATCH" >&5
2134echo "${ECHO_T}$PATCH" >&6; }
1227625a 2135else
7f7d329e
SP
2136 { echo "$as_me:$LINENO: result: no" >&5
2137echo "${ECHO_T}no" >&6; }
1227625a
SP
2138fi
2139
7f7d329e 2140
1daf06b9 2141fi
1227625a 2142if test -z "$ac_cv_prog_PATCH"; then
1daf06b9 2143 ac_ct_PATCH=$PATCH
1227625a
SP
2144 # Extract the first word of "patch", so it can be a program name with args.
2145set dummy patch; ac_word=$2
7f7d329e
SP
2146{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1daf06b9
SP
2148if test "${ac_cv_prog_ac_ct_PATCH+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
1227625a 2150else
1daf06b9
SP
2151 if test -n "$ac_ct_PATCH"; then
2152 ac_cv_prog_ac_ct_PATCH="$ac_ct_PATCH" # Let the user override the test.
1227625a 2153else
1daf06b9
SP
2154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155for as_dir in $PATH
2156do
2157 IFS=$as_save_IFS
2158 test -z "$as_dir" && as_dir=.
2159 for ac_exec_ext in '' $ac_executable_extensions; do
d2816d4c 2160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1daf06b9
SP
2161 ac_cv_prog_ac_ct_PATCH="patch"
2162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2163 break 2
2164 fi
2165done
2166done
7f7d329e 2167IFS=$as_save_IFS
1daf06b9 2168
1227625a
SP
2169fi
2170fi
1daf06b9
SP
2171ac_ct_PATCH=$ac_cv_prog_ac_ct_PATCH
2172if test -n "$ac_ct_PATCH"; then
7f7d329e
SP
2173 { echo "$as_me:$LINENO: result: $ac_ct_PATCH" >&5
2174echo "${ECHO_T}$ac_ct_PATCH" >&6; }
1227625a 2175else
7f7d329e
SP
2176 { echo "$as_me:$LINENO: result: no" >&5
2177echo "${ECHO_T}no" >&6; }
1227625a
SP
2178fi
2179
7f7d329e
SP
2180 if test "x$ac_ct_PATCH" = x; then
2181 PATCH=":"
2182 else
2183 case $cross_compiling:$ac_tool_warned in
2184yes:)
2185{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2186whose name does not start with the host triplet. If you think this
2187configuration is useful to you, please write to autoconf@gnu.org." >&5
2188echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2189whose name does not start with the host triplet. If you think this
2190configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2191ac_tool_warned=yes ;;
2192esac
2193 PATCH=$ac_ct_PATCH
2194 fi
1daf06b9
SP
2195else
2196 PATCH="$ac_cv_prog_PATCH"
2197fi
2198
2199ac_ext=c
2200ac_cpp='$CPP $CPPFLAGS'
2201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2203ac_compiler_gnu=$ac_cv_c_compiler_gnu
2204if test -n "$ac_tool_prefix"; then
2205 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2206set dummy ${ac_tool_prefix}gcc; ac_word=$2
7f7d329e
SP
2207{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1daf06b9
SP
2209if test "${ac_cv_prog_CC+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2211else
2212 if test -n "$CC"; then
2213 ac_cv_prog_CC="$CC" # Let the user override the test.
1227625a 2214else
1daf06b9
SP
2215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216for as_dir in $PATH
2217do
2218 IFS=$as_save_IFS
2219 test -z "$as_dir" && as_dir=.
2220 for ac_exec_ext in '' $ac_executable_extensions; do
d2816d4c 2221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1daf06b9
SP
2222 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224 break 2
2225 fi
2226done
2227done
7f7d329e 2228IFS=$as_save_IFS
1daf06b9 2229
1227625a
SP
2230fi
2231fi
1daf06b9
SP
2232CC=$ac_cv_prog_CC
2233if test -n "$CC"; then
7f7d329e
SP
2234 { echo "$as_me:$LINENO: result: $CC" >&5
2235echo "${ECHO_T}$CC" >&6; }
1daf06b9 2236else
7f7d329e
SP
2237 { echo "$as_me:$LINENO: result: no" >&5
2238echo "${ECHO_T}no" >&6; }
1daf06b9 2239fi
1227625a 2240
7f7d329e 2241
1daf06b9
SP
2242fi
2243if test -z "$ac_cv_prog_CC"; then
2244 ac_ct_CC=$CC
2245 # Extract the first word of "gcc", so it can be a program name with args.
1227625a 2246set dummy gcc; ac_word=$2
7f7d329e
SP
2247{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1daf06b9
SP
2249if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
2251else
2252 if test -n "$ac_ct_CC"; then
2253 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2254else
2255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256for as_dir in $PATH
2257do
2258 IFS=$as_save_IFS
2259 test -z "$as_dir" && as_dir=.
2260 for ac_exec_ext in '' $ac_executable_extensions; do
d2816d4c 2261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1daf06b9
SP
2262 ac_cv_prog_ac_ct_CC="gcc"
2263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2264 break 2
2265 fi
2266done
2267done
7f7d329e 2268IFS=$as_save_IFS
1daf06b9
SP
2269
2270fi
2271fi
2272ac_ct_CC=$ac_cv_prog_ac_ct_CC
2273if test -n "$ac_ct_CC"; then
7f7d329e
SP
2274 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2275echo "${ECHO_T}$ac_ct_CC" >&6; }
1daf06b9 2276else
7f7d329e
SP
2277 { echo "$as_me:$LINENO: result: no" >&5
2278echo "${ECHO_T}no" >&6; }
1daf06b9
SP
2279fi
2280
7f7d329e
SP
2281 if test "x$ac_ct_CC" = x; then
2282 CC=""
2283 else
2284 case $cross_compiling:$ac_tool_warned in
2285yes:)
2286{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2287whose name does not start with the host triplet. If you think this
2288configuration is useful to you, please write to autoconf@gnu.org." >&5
2289echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2290whose name does not start with the host triplet. If you think this
2291configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2292ac_tool_warned=yes ;;
2293esac
2294 CC=$ac_ct_CC
2295 fi
1daf06b9
SP
2296else
2297 CC="$ac_cv_prog_CC"
2298fi
2299
2300if test -z "$CC"; then
7f7d329e
SP
2301 if test -n "$ac_tool_prefix"; then
2302 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1daf06b9 2303set dummy ${ac_tool_prefix}cc; ac_word=$2
7f7d329e
SP
2304{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1daf06b9
SP
2306if test "${ac_cv_prog_CC+set}" = set; then
2307 echo $ECHO_N "(cached) $ECHO_C" >&6
1227625a
SP
2308else
2309 if test -n "$CC"; then
2310 ac_cv_prog_CC="$CC" # Let the user override the test.
2311else
1daf06b9
SP
2312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313for as_dir in $PATH
2314do
2315 IFS=$as_save_IFS
2316 test -z "$as_dir" && as_dir=.
2317 for ac_exec_ext in '' $ac_executable_extensions; do
d2816d4c 2318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1daf06b9
SP
2319 ac_cv_prog_CC="${ac_tool_prefix}cc"
2320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321 break 2
2322 fi
2323done
2324done
7f7d329e 2325IFS=$as_save_IFS
1daf06b9 2326
1227625a
SP
2327fi
2328fi
1daf06b9 2329CC=$ac_cv_prog_CC
1227625a 2330if test -n "$CC"; then
7f7d329e
SP
2331 { echo "$as_me:$LINENO: result: $CC" >&5
2332echo "${ECHO_T}$CC" >&6; }
1227625a 2333else
7f7d329e
SP
2334 { echo "$as_me:$LINENO: result: no" >&5
2335echo "${ECHO_T}no" >&6; }
1227625a
SP
2336fi
2337
1daf06b9 2338
7f7d329e 2339 fi
1daf06b9 2340fi
1227625a
SP
2341if test -z "$CC"; then
2342 # Extract the first word of "cc", so it can be a program name with args.
2343set dummy cc; ac_word=$2
7f7d329e
SP
2344{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1daf06b9
SP
2346if test "${ac_cv_prog_CC+set}" = set; then
2347 echo $ECHO_N "(cached) $ECHO_C" >&6
1227625a
SP
2348else
2349 if test -n "$CC"; then
2350 ac_cv_prog_CC="$CC" # Let the user override the test.
2351else
1227625a 2352 ac_prog_rejected=no
1daf06b9
SP
2353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354for as_dir in $PATH
2355do
2356 IFS=$as_save_IFS
2357 test -z "$as_dir" && as_dir=.
2358 for ac_exec_ext in '' $ac_executable_extensions; do
d2816d4c 2359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1daf06b9
SP
2360 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2361 ac_prog_rejected=yes
2362 continue
2363 fi
2364 ac_cv_prog_CC="cc"
2365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2366 break 2
2367 fi
2368done
2369done
7f7d329e 2370IFS=$as_save_IFS
1daf06b9 2371
1227625a
SP
2372if test $ac_prog_rejected = yes; then
2373 # We found a bogon in the path, so make sure we never use it.
2374 set dummy $ac_cv_prog_CC
2375 shift
1daf06b9 2376 if test $# != 0; then
1227625a
SP
2377 # We chose a different compiler from the bogus one.
2378 # However, it has the same basename, so the bogon will be chosen
2379 # first if we set CC to just the basename; use the full file name.
2380 shift
cdfe1392 2381 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1227625a
SP
2382 fi
2383fi
2384fi
2385fi
1daf06b9 2386CC=$ac_cv_prog_CC
1227625a 2387if test -n "$CC"; then
7f7d329e
SP
2388 { echo "$as_me:$LINENO: result: $CC" >&5
2389echo "${ECHO_T}$CC" >&6; }
1227625a 2390else
7f7d329e
SP
2391 { echo "$as_me:$LINENO: result: no" >&5
2392echo "${ECHO_T}no" >&6; }
1227625a
SP
2393fi
2394
7f7d329e 2395
1daf06b9
SP
2396fi
2397if test -z "$CC"; then
2398 if test -n "$ac_tool_prefix"; then
7f7d329e 2399 for ac_prog in cl.exe
1daf06b9
SP
2400 do
2401 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2402set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7f7d329e
SP
2403{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1daf06b9
SP
2405if test "${ac_cv_prog_CC+set}" = set; then
2406 echo $ECHO_N "(cached) $ECHO_C" >&6
ddd2ef55
SP
2407else
2408 if test -n "$CC"; then
2409 ac_cv_prog_CC="$CC" # Let the user override the test.
2410else
1daf06b9
SP
2411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412for as_dir in $PATH
2413do
2414 IFS=$as_save_IFS
2415 test -z "$as_dir" && as_dir=.
2416 for ac_exec_ext in '' $ac_executable_extensions; do
d2816d4c 2417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1daf06b9
SP
2418 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2420 break 2
2421 fi
2422done
2423done
7f7d329e 2424IFS=$as_save_IFS
1daf06b9 2425
ddd2ef55
SP
2426fi
2427fi
1daf06b9 2428CC=$ac_cv_prog_CC
ddd2ef55 2429if test -n "$CC"; then
7f7d329e
SP
2430 { echo "$as_me:$LINENO: result: $CC" >&5
2431echo "${ECHO_T}$CC" >&6; }
ddd2ef55 2432else
7f7d329e
SP
2433 { echo "$as_me:$LINENO: result: no" >&5
2434echo "${ECHO_T}no" >&6; }
ddd2ef55 2435fi
1daf06b9 2436
7f7d329e 2437
1daf06b9
SP
2438 test -n "$CC" && break
2439 done
2440fi
2441if test -z "$CC"; then
2442 ac_ct_CC=$CC
7f7d329e 2443 for ac_prog in cl.exe
1daf06b9
SP
2444do
2445 # Extract the first word of "$ac_prog", so it can be a program name with args.
2446set dummy $ac_prog; ac_word=$2
7f7d329e
SP
2447{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1daf06b9
SP
2449if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2450 echo $ECHO_N "(cached) $ECHO_C" >&6
2451else
2452 if test -n "$ac_ct_CC"; then
2453 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2454else
2455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456for as_dir in $PATH
2457do
2458 IFS=$as_save_IFS
2459 test -z "$as_dir" && as_dir=.
2460 for ac_exec_ext in '' $ac_executable_extensions; do
d2816d4c 2461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1daf06b9
SP
2462 ac_cv_prog_ac_ct_CC="$ac_prog"
2463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 break 2
ddd2ef55 2465 fi
1daf06b9
SP
2466done
2467done
7f7d329e 2468IFS=$as_save_IFS
1daf06b9
SP
2469
2470fi
2471fi
2472ac_ct_CC=$ac_cv_prog_ac_ct_CC
2473if test -n "$ac_ct_CC"; then
7f7d329e
SP
2474 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2475echo "${ECHO_T}$ac_ct_CC" >&6; }
1daf06b9 2476else
7f7d329e
SP
2477 { echo "$as_me:$LINENO: result: no" >&5
2478echo "${ECHO_T}no" >&6; }
1227625a
SP
2479fi
2480
7f7d329e 2481
1daf06b9
SP
2482 test -n "$ac_ct_CC" && break
2483done
1227625a 2484
7f7d329e
SP
2485 if test "x$ac_ct_CC" = x; then
2486 CC=""
2487 else
2488 case $cross_compiling:$ac_tool_warned in
2489yes:)
2490{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2491whose name does not start with the host triplet. If you think this
2492configuration is useful to you, please write to autoconf@gnu.org." >&5
2493echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2494whose name does not start with the host triplet. If you think this
2495configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2496ac_tool_warned=yes ;;
2497esac
2498 CC=$ac_ct_CC
2499 fi
1daf06b9
SP
2500fi
2501
2502fi
1227625a 2503
ddd2ef55 2504
cdfe1392
SP
2505test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2506See \`config.log' for more details." >&5
2507echo "$as_me: error: no acceptable C compiler found in \$PATH
2508See \`config.log' for more details." >&2;}
1daf06b9
SP
2509 { (exit 1); exit 1; }; }
2510
2511# Provide some information about the compiler.
7f7d329e 2512echo "$as_me:$LINENO: checking for C compiler version" >&5
1daf06b9 2513ac_compiler=`set X $ac_compile; echo $2`
7f7d329e
SP
2514{ (ac_try="$ac_compiler --version >&5"
2515case "(($ac_try" in
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2518esac
2519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520 (eval "$ac_compiler --version >&5") 2>&5
1daf06b9
SP
2521 ac_status=$?
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }
7f7d329e
SP
2524{ (ac_try="$ac_compiler -v >&5"
2525case "(($ac_try" in
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2528esac
2529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530 (eval "$ac_compiler -v >&5") 2>&5
1daf06b9
SP
2531 ac_status=$?
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }
7f7d329e
SP
2534{ (ac_try="$ac_compiler -V >&5"
2535case "(($ac_try" in
2536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2537 *) ac_try_echo=$ac_try;;
2538esac
2539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2540 (eval "$ac_compiler -V >&5") 2>&5
1daf06b9
SP
2541 ac_status=$?
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); }
2544
2545cat >conftest.$ac_ext <<_ACEOF
cdfe1392
SP
2546/* confdefs.h. */
2547_ACEOF
2548cat confdefs.h >>conftest.$ac_ext
2549cat >>conftest.$ac_ext <<_ACEOF
2550/* end confdefs.h. */
ddd2ef55 2551
1daf06b9
SP
2552int
2553main ()
2554{
2555
2556 ;
2557 return 0;
2558}
2559_ACEOF
2560ac_clean_files_save=$ac_clean_files
cdfe1392 2561ac_clean_files="$ac_clean_files a.out a.exe b.out"
1daf06b9
SP
2562# Try to create an executable without -o first, disregard a.out.
2563# It will help us diagnose broken compilers, and finding out an intuition
2564# of exeext.
7f7d329e
SP
2565{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2566echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
1daf06b9 2567ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
7f7d329e
SP
2568#
2569# List of possible output files, starting from the most likely.
2570# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2571# only as a last resort. b.out is created by i960 compilers.
2572ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2573#
2574# The IRIX 6 linker writes into existing files which may not be
2575# executable, retaining their permissions. Remove them first so a
2576# subsequent execution test works.
2577ac_rmfiles=
2578for ac_file in $ac_files
2579do
2580 case $ac_file in
2581 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2582 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2583 esac
2584done
2585rm -f $ac_rmfiles
2586
2587if { (ac_try="$ac_link_default"
2588case "(($ac_try" in
2589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2590 *) ac_try_echo=$ac_try;;
2591esac
2592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2593 (eval "$ac_link_default") 2>&5
1daf06b9
SP
2594 ac_status=$?
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); }; then
7f7d329e
SP
2597 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2598# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2599# in a Makefile. We should not override ac_cv_exeext if it was cached,
2600# so that the user can short-circuit this test for compilers unknown to
2601# Autoconf.
d2816d4c 2602for ac_file in $ac_files ''
cdfe1392
SP
2603do
2604 test -f "$ac_file" || continue
1daf06b9 2605 case $ac_file in
7f7d329e 2606 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
c9e4e868 2607 ;;
cdfe1392 2608 [ab].out )
c9e4e868
SP
2609 # We found the default executable, but exeext='' is most
2610 # certainly right.
2611 break;;
cdfe1392 2612 *.* )
7f7d329e
SP
2613 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2614 then :; else
2615 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2616 fi
2617 # We set ac_cv_exeext here because the later test for it is not
2618 # safe: cross compilers may not add the suffix if given an `-o'
2619 # argument, so we may need to know it at that point already.
2620 # Even if this section looks crufty: it has the advantage of
2621 # actually working.
c9e4e868 2622 break;;
cdfe1392 2623 * )
c9e4e868 2624 break;;
1daf06b9
SP
2625 esac
2626done
7f7d329e
SP
2627test "$ac_cv_exeext" = no && ac_cv_exeext=
2628
1daf06b9 2629else
d2816d4c
SP
2630 ac_file=''
2631fi
2632
2633{ echo "$as_me:$LINENO: result: $ac_file" >&5
2634echo "${ECHO_T}$ac_file" >&6; }
2635if test -z "$ac_file"; then
1daf06b9 2636 echo "$as_me: failed program was:" >&5
cdfe1392
SP
2637sed 's/^/| /' conftest.$ac_ext >&5
2638
2639{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2640See \`config.log' for more details." >&5
2641echo "$as_me: error: C compiler cannot create executables
2642See \`config.log' for more details." >&2;}
1daf06b9
SP
2643 { (exit 77); exit 77; }; }
2644fi
2645
2646ac_exeext=$ac_cv_exeext
1daf06b9 2647
7f7d329e 2648# Check that the compiler produces executables we can run. If not, either
1daf06b9 2649# the compiler is broken, or we cross compile.
7f7d329e
SP
2650{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2651echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
1daf06b9
SP
2652# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2653# If not cross compiling, check that we can run a simple program.
2654if test "$cross_compiling" != yes; then
2655 if { ac_try='./$ac_file'
7f7d329e
SP
2656 { (case "(($ac_try" in
2657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658 *) ac_try_echo=$ac_try;;
2659esac
2660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2661 (eval "$ac_try") 2>&5
1daf06b9
SP
2662 ac_status=$?
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2665 cross_compiling=no
1227625a 2666 else
1daf06b9
SP
2667 if test "$cross_compiling" = maybe; then
2668 cross_compiling=yes
2669 else
2670 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
cdfe1392
SP
2671If you meant to cross compile, use \`--host'.
2672See \`config.log' for more details." >&5
1daf06b9 2673echo "$as_me: error: cannot run C compiled programs.
cdfe1392
SP
2674If you meant to cross compile, use \`--host'.
2675See \`config.log' for more details." >&2;}
1daf06b9
SP
2676 { (exit 1); exit 1; }; }
2677 fi
1227625a 2678 fi
1227625a 2679fi
7f7d329e
SP
2680{ echo "$as_me:$LINENO: result: yes" >&5
2681echo "${ECHO_T}yes" >&6; }
1daf06b9 2682
cdfe1392 2683rm -f a.out a.exe conftest$ac_cv_exeext b.out
1daf06b9 2684ac_clean_files=$ac_clean_files_save
7f7d329e 2685# Check that the compiler produces executables we can run. If not, either
1daf06b9 2686# the compiler is broken, or we cross compile.
7f7d329e
SP
2687{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2688echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2689{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2690echo "${ECHO_T}$cross_compiling" >&6; }
2691
2692{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2693echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2694if { (ac_try="$ac_link"
2695case "(($ac_try" in
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2698esac
2699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700 (eval "$ac_link") 2>&5
1daf06b9
SP
2701 ac_status=$?
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; then
2704 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2705# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2706# work properly (i.e., refer to `conftest.exe'), while it won't with
2707# `rm'.
cdfe1392
SP
2708for ac_file in conftest.exe conftest conftest.*; do
2709 test -f "$ac_file" || continue
1daf06b9 2710 case $ac_file in
7f7d329e 2711 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1daf06b9 2712 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c9e4e868 2713 break;;
1daf06b9
SP
2714 * ) break;;
2715 esac
2716done
1227625a 2717else
cdfe1392
SP
2718 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2719See \`config.log' for more details." >&5
2720echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2721See \`config.log' for more details." >&2;}
1daf06b9 2722 { (exit 1); exit 1; }; }
1227625a
SP
2723fi
2724
1daf06b9 2725rm -f conftest$ac_cv_exeext
7f7d329e
SP
2726{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2727echo "${ECHO_T}$ac_cv_exeext" >&6; }
1227625a 2728
1daf06b9
SP
2729rm -f conftest.$ac_ext
2730EXEEXT=$ac_cv_exeext
2731ac_exeext=$EXEEXT
7f7d329e
SP
2732{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2733echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
1daf06b9
SP
2734if test "${ac_cv_objext+set}" = set; then
2735 echo $ECHO_N "(cached) $ECHO_C" >&6
ddd2ef55 2736else
1daf06b9 2737 cat >conftest.$ac_ext <<_ACEOF
cdfe1392
SP
2738/* confdefs.h. */
2739_ACEOF
2740cat confdefs.h >>conftest.$ac_ext
2741cat >>conftest.$ac_ext <<_ACEOF
2742/* end confdefs.h. */
1daf06b9 2743
1daf06b9
SP
2744int
2745main ()
2746{
2747
2748 ;
2749 return 0;
2750}
2751_ACEOF
2752rm -f conftest.o conftest.obj
7f7d329e
SP
2753if { (ac_try="$ac_compile"
2754case "(($ac_try" in
2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756 *) ac_try_echo=$ac_try;;
2757esac
2758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759 (eval "$ac_compile") 2>&5
1daf06b9
SP
2760 ac_status=$?
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; then
7f7d329e
SP
2763 for ac_file in conftest.o conftest.obj conftest.*; do
2764 test -f "$ac_file" || continue;
1daf06b9 2765 case $ac_file in
7f7d329e 2766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
1daf06b9
SP
2767 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2768 break;;
2769 esac
2770done
2771else
2772 echo "$as_me: failed program was:" >&5
cdfe1392
SP
2773sed 's/^/| /' conftest.$ac_ext >&5
2774
2775{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2776See \`config.log' for more details." >&5
2777echo "$as_me: error: cannot compute suffix of object files: cannot compile
2778See \`config.log' for more details." >&2;}
1daf06b9 2779 { (exit 1); exit 1; }; }
ddd2ef55
SP
2780fi
2781
1daf06b9
SP
2782rm -f conftest.$ac_cv_objext conftest.$ac_ext
2783fi
7f7d329e
SP
2784{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2785echo "${ECHO_T}$ac_cv_objext" >&6; }
1daf06b9
SP
2786OBJEXT=$ac_cv_objext
2787ac_objext=$OBJEXT
7f7d329e
SP
2788{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2789echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1daf06b9
SP
2790if test "${ac_cv_c_compiler_gnu+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
1227625a 2792else
1daf06b9 2793 cat >conftest.$ac_ext <<_ACEOF
cdfe1392
SP
2794/* confdefs.h. */
2795_ACEOF
2796cat confdefs.h >>conftest.$ac_ext
2797cat >>conftest.$ac_ext <<_ACEOF
2798/* end confdefs.h. */
1daf06b9 2799
1daf06b9
SP
2800int
2801main ()
2802{
2803#ifndef __GNUC__
2804 choke me
2805#endif
2806
2807 ;
2808 return 0;
2809}
2810_ACEOF
2811rm -f conftest.$ac_objext
7f7d329e
SP
2812if { (ac_try="$ac_compile"
2813case "(($ac_try" in
2814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815 *) ac_try_echo=$ac_try;;
2816esac
2817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818 (eval "$ac_compile") 2>conftest.er1
1daf06b9 2819 ac_status=$?
c9e4e868
SP
2820 grep -v '^ *+' conftest.er1 >conftest.err
2821 rm -f conftest.er1
2822 cat conftest.err >&5
1daf06b9 2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d2816d4c
SP
2824 (exit $ac_status); } && {
2825 test -z "$ac_c_werror_flag" ||
2826 test ! -s conftest.err
2827 } && test -s conftest.$ac_objext; then
1daf06b9
SP
2828 ac_compiler_gnu=yes
2829else
2830 echo "$as_me: failed program was:" >&5
cdfe1392
SP
2831sed 's/^/| /' conftest.$ac_ext >&5
2832
7f7d329e 2833 ac_compiler_gnu=no
1daf06b9 2834fi
7f7d329e
SP
2835
2836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1daf06b9
SP
2837ac_cv_c_compiler_gnu=$ac_compiler_gnu
2838
2839fi
7f7d329e
SP
2840{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2841echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1daf06b9
SP
2842GCC=`test $ac_compiler_gnu = yes && echo yes`
2843ac_test_CFLAGS=${CFLAGS+set}
2844ac_save_CFLAGS=$CFLAGS
7f7d329e
SP
2845{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2846echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
1daf06b9
SP
2847if test "${ac_cv_prog_cc_g+set}" = set; then
2848 echo $ECHO_N "(cached) $ECHO_C" >&6
2849else
7f7d329e
SP
2850 ac_save_c_werror_flag=$ac_c_werror_flag
2851 ac_c_werror_flag=yes
2852 ac_cv_prog_cc_g=no
2853 CFLAGS="-g"
2854 cat >conftest.$ac_ext <<_ACEOF
2855/* confdefs.h. */
2856_ACEOF
2857cat confdefs.h >>conftest.$ac_ext
2858cat >>conftest.$ac_ext <<_ACEOF
2859/* end confdefs.h. */
2860
2861int
2862main ()
2863{
2864
2865 ;
2866 return 0;
2867}
2868_ACEOF
2869rm -f conftest.$ac_objext
2870if { (ac_try="$ac_compile"
2871case "(($ac_try" in
2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873 *) ac_try_echo=$ac_try;;
2874esac
2875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876 (eval "$ac_compile") 2>conftest.er1
2877 ac_status=$?
2878 grep -v '^ *+' conftest.er1 >conftest.err
2879 rm -f conftest.er1
2880 cat conftest.err >&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d2816d4c
SP
2882 (exit $ac_status); } && {
2883 test -z "$ac_c_werror_flag" ||
2884 test ! -s conftest.err
2885 } && test -s conftest.$ac_objext; then
7f7d329e
SP
2886 ac_cv_prog_cc_g=yes
2887else
2888 echo "$as_me: failed program was:" >&5
2889sed 's/^/| /' conftest.$ac_ext >&5
2890
2891 CFLAGS=""
2892 cat >conftest.$ac_ext <<_ACEOF
2893/* confdefs.h. */
2894_ACEOF
2895cat confdefs.h >>conftest.$ac_ext
2896cat >>conftest.$ac_ext <<_ACEOF
2897/* end confdefs.h. */
2898
2899int
2900main ()
2901{
2902
2903 ;
2904 return 0;
2905}
2906_ACEOF
2907rm -f conftest.$ac_objext
2908if { (ac_try="$ac_compile"
2909case "(($ac_try" in
2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2912esac
2913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914 (eval "$ac_compile") 2>conftest.er1
2915 ac_status=$?
2916 grep -v '^ *+' conftest.er1 >conftest.err
2917 rm -f conftest.er1
2918 cat conftest.err >&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d2816d4c
SP
2920 (exit $ac_status); } && {
2921 test -z "$ac_c_werror_flag" ||
2922 test ! -s conftest.err
2923 } && test -s conftest.$ac_objext; then
7f7d329e
SP
2924 :
2925else
2926 echo "$as_me: failed program was:" >&5
2927sed 's/^/| /' conftest.$ac_ext >&5
2928
2929 ac_c_werror_flag=$ac_save_c_werror_flag
2930 CFLAGS="-g"
2931 cat >conftest.$ac_ext <<_ACEOF
cdfe1392
SP
2932/* confdefs.h. */
2933_ACEOF
2934cat confdefs.h >>conftest.$ac_ext
2935cat >>conftest.$ac_ext <<_ACEOF
2936/* end confdefs.h. */
1daf06b9 2937
1daf06b9
SP
2938int
2939main ()
2940{
2941
2942 ;
2943 return 0;
2944}
2945_ACEOF
2946rm -f conftest.$ac_objext
7f7d329e
SP
2947if { (ac_try="$ac_compile"
2948case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2951esac
2952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_compile") 2>conftest.er1
1daf06b9 2954 ac_status=$?
c9e4e868
SP
2955 grep -v '^ *+' conftest.er1 >conftest.err
2956 rm -f conftest.er1
2957 cat conftest.err >&5
1daf06b9 2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d2816d4c
SP
2959 (exit $ac_status); } && {
2960 test -z "$ac_c_werror_flag" ||
2961 test ! -s conftest.err
2962 } && test -s conftest.$ac_objext; then
1227625a
SP
2963 ac_cv_prog_cc_g=yes
2964else
1daf06b9 2965 echo "$as_me: failed program was:" >&5
cdfe1392
SP
2966sed 's/^/| /' conftest.$ac_ext >&5
2967
7f7d329e
SP
2968
2969fi
2970
2971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2972fi
2973
2974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1227625a 2975fi
7f7d329e
SP
2976
2977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978 ac_c_werror_flag=$ac_save_c_werror_flag
1227625a 2979fi
7f7d329e
SP
2980{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2981echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
ddd2ef55 2982if test "$ac_test_CFLAGS" = set; then
1daf06b9 2983 CFLAGS=$ac_save_CFLAGS
ddd2ef55
SP
2984elif test $ac_cv_prog_cc_g = yes; then
2985 if test "$GCC" = yes; then
1227625a
SP
2986 CFLAGS="-g -O2"
2987 else
ddd2ef55 2988 CFLAGS="-g"
1227625a
SP
2989 fi
2990else
ddd2ef55
SP
2991 if test "$GCC" = yes; then
2992 CFLAGS="-O2"
2993 else
2994 CFLAGS=
2995 fi
1227625a 2996fi
7f7d329e
SP
2997{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2998echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2999if test "${ac_cv_prog_cc_c89+set}" = set; then
cdfe1392
SP
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3001else
7f7d329e 3002 ac_cv_prog_cc_c89=no
cdfe1392
SP
3003ac_save_CC=$CC
3004cat >conftest.$ac_ext <<_ACEOF
cdfe1392
SP
3005/* confdefs.h. */
3006_ACEOF
3007cat confdefs.h >>conftest.$ac_ext
3008cat >>conftest.$ac_ext <<_ACEOF
3009/* end confdefs.h. */
3010#include <stdarg.h>
3011#include <stdio.h>
3012#include <sys/types.h>
3013#include <sys/stat.h>
3014/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3015struct buf { int x; };
3016FILE * (*rcsopen) (struct buf *, struct stat *, int);
3017static char *e (p, i)
3018 char **p;
3019 int i;
3020{
3021 return p[i];
3022}
3023static char *f (char * (*g) (char **, int), char **p, ...)
3024{
3025 char *s;
3026 va_list v;
3027 va_start (v,p);
3028 s = g (p, va_arg (v,int));
3029 va_end (v);
3030 return s;
3031}
c9e4e868
SP
3032
3033/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3034 function prototypes and stuff, but not '\xHH' hex character constants.
3035 These don't provoke an error unfortunately, instead are silently treated
7f7d329e 3036 as 'x'. The following induces an error, until -std is added to get
c9e4e868
SP
3037 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3038 array size at least. It's necessary to write '\x00'==0 to get something
7f7d329e 3039 that's true only with -std. */
c9e4e868
SP
3040int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3041
7f7d329e
SP
3042/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3043 inside strings and character constants. */
3044#define FOO(x) 'x'
3045int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3046
cdfe1392
SP
3047int test (int i, double x);
3048struct s1 {int (*f) (int a);};
3049struct s2 {int (*f) (double a);};
3050int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3051int argc;
3052char **argv;
3053int
3054main ()
3055{
3056return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3057 ;
3058 return 0;
3059}
3060_ACEOF
7f7d329e
SP
3061for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3062 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
cdfe1392
SP
3063do
3064 CC="$ac_save_CC $ac_arg"
3065 rm -f conftest.$ac_objext
7f7d329e
SP
3066if { (ac_try="$ac_compile"
3067case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3070esac
3071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072 (eval "$ac_compile") 2>conftest.er1
cdfe1392 3073 ac_status=$?
c9e4e868
SP
3074 grep -v '^ *+' conftest.er1 >conftest.err
3075 rm -f conftest.er1
3076 cat conftest.err >&5
cdfe1392 3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d2816d4c
SP
3078 (exit $ac_status); } && {
3079 test -z "$ac_c_werror_flag" ||
3080 test ! -s conftest.err
3081 } && test -s conftest.$ac_objext; then
7f7d329e 3082 ac_cv_prog_cc_c89=$ac_arg
cdfe1392
SP
3083else
3084 echo "$as_me: failed program was:" >&5
3085sed 's/^/| /' conftest.$ac_ext >&5
3086
7f7d329e 3087
cdfe1392 3088fi
7f7d329e
SP
3089
3090rm -f core conftest.err conftest.$ac_objext
3091 test "x$ac_cv_prog_cc_c89" != "xno" && break
cdfe1392 3092done
7f7d329e 3093rm -f conftest.$ac_ext
cdfe1392
SP
3094CC=$ac_save_CC
3095
3096fi
7f7d329e
SP
3097# AC_CACHE_VAL
3098case "x$ac_cv_prog_cc_c89" in
3099 x)
3100 { echo "$as_me:$LINENO: result: none needed" >&5
3101echo "${ECHO_T}none needed" >&6; } ;;
3102 xno)
3103 { echo "$as_me:$LINENO: result: unsupported" >&5
3104echo "${ECHO_T}unsupported" >&6; } ;;
cdfe1392 3105 *)
7f7d329e
SP
3106 CC="$CC $ac_cv_prog_cc_c89"
3107 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3108echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
cdfe1392
SP
3109esac
3110
cdfe1392 3111
1daf06b9
SP
3112ac_ext=c
3113ac_cpp='$CPP $CPPFLAGS'
3114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3116ac_compiler_gnu=$ac_cv_c_compiler_gnu
3117
3118ac_aux_dir=
7f7d329e
SP
3119for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3120 if test -f "$ac_dir/install-sh"; then
1daf06b9
SP
3121 ac_aux_dir=$ac_dir
3122 ac_install_sh="$ac_aux_dir/install-sh -c"
3123 break
7f7d329e 3124 elif test -f "$ac_dir/install.sh"; then
1daf06b9
SP
3125 ac_aux_dir=$ac_dir
3126 ac_install_sh="$ac_aux_dir/install.sh -c"
3127 break
7f7d329e 3128 elif test -f "$ac_dir/shtool"; then
1daf06b9
SP
3129 ac_aux_dir=$ac_dir
3130 ac_install_sh="$ac_aux_dir/shtool install -c"
3131 break
3132 fi
3133done
3134if test -z "$ac_aux_dir"; then
7f7d329e
SP
3135 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3136echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1daf06b9
SP
3137 { (exit 1); exit 1; }; }
3138fi
7f7d329e
SP
3139
3140# These three variables are undocumented and unsupported,
3141# and are intended to be withdrawn in a future Autoconf release.
3142# They can cause serious problems if a builder's source tree is in a directory
3143# whose full name contains unusual characters.
3144ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3145ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3146ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3147
1227625a
SP
3148
3149# Find a good install program. We prefer a C program (faster),
3150# so one script is as good as another. But avoid the broken or
3151# incompatible versions:
3152# SysV /etc/install, /usr/sbin/install
3153# SunOS /usr/etc/install
3154# IRIX /sbin/install
3155# AIX /bin/install
1daf06b9 3156# AmigaOS /C/install, which installs bootblocks on floppy discs
ddd2ef55 3157# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1227625a
SP
3158# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3159# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c9e4e868 3160# OS/2's system install, which has a completely different semantic
1227625a 3161# ./install, which can be erroneously created by make from ./install.sh.
7f7d329e
SP
3162{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3163echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1227625a 3164if test -z "$INSTALL"; then
1daf06b9
SP
3165if test "${ac_cv_path_install+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3167else
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169for as_dir in $PATH
3170do
3171 IFS=$as_save_IFS
3172 test -z "$as_dir" && as_dir=.
3173 # Account for people who put trailing slashes in PATH elements.
3174case $as_dir/ in
3175 ./ | .// | /cC/* | \
3176 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
c9e4e868 3177 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1daf06b9
SP
3178 /usr/ucb/* ) ;;
3179 *)
3180 # OSF1 and SCO ODT 3.0 have their own names for install.
3181 # Don't use installbsd from OSF since it installs stuff as root
3182 # by default.
3183 for ac_prog in ginstall scoinst install; do
3184 for ac_exec_ext in '' $ac_executable_extensions; do
d2816d4c 3185 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
c9e4e868
SP
3186 if test $ac_prog = install &&
3187 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3188 # AIX install. It has an incompatible calling convention.
3189 :
3190 elif test $ac_prog = install &&
3191 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3192 # program-specific install script used by HP pwplus--don't use.
3193 :
3194 else
3195 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3196 break 3
3197 fi
3198 fi
1daf06b9
SP
3199 done
3200 done
3201 ;;
3202esac
3203done
7f7d329e 3204IFS=$as_save_IFS
1daf06b9 3205
1227625a
SP
3206
3207fi
3208 if test "${ac_cv_path_install+set}" = set; then
1daf06b9 3209 INSTALL=$ac_cv_path_install
1227625a 3210 else
7f7d329e
SP
3211 # As a last resort, use the slow shell script. Don't cache a
3212 # value for INSTALL within a source directory, because that will
1227625a 3213 # break other packages using the cache if that directory is
7f7d329e 3214 # removed, or if the value is a relative name.
1daf06b9 3215 INSTALL=$ac_install_sh
1227625a
SP
3216 fi
3217fi
7f7d329e
SP
3218{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3219echo "${ECHO_T}$INSTALL" >&6; }
1227625a
SP
3220
3221# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3222# It thinks the first close brace ends the variable substitution.
3223test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3224
1daf06b9 3225test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
ddd2ef55 3226
1227625a
SP
3227test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3228
3229
1227625a 3230
e7d18957
SP
3231ac_ext=c
3232ac_cpp='$CPP $CPPFLAGS'
3233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3235ac_compiler_gnu=$ac_cv_c_compiler_gnu
7f7d329e
SP
3236{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3237echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
e7d18957
SP
3238# On Suns, sometimes $CPP names a directory.
3239if test -n "$CPP" && test -d "$CPP"; then
3240 CPP=
1227625a 3241fi
e7d18957
SP
3242if test -z "$CPP"; then
3243 if test "${ac_cv_prog_CPP+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
1227625a 3245else
e7d18957
SP
3246 # Double quotes because CPP needs to be expanded
3247 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3248 do
3249 ac_preproc_ok=false
3250for ac_c_preproc_warn_flag in '' yes
3251do
3252 # Use a header file that comes with gcc, so configuring glibc
3253 # with a fresh cross-compiler works.
3254 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3255 # <limits.h> exists even on freestanding compilers.
3256 # On the NeXT, cc -E runs the code through the compiler's parser,
3257 # not just through cpp. "Syntax error" is here to catch this case.
3258 cat >conftest.$ac_ext <<_ACEOF
e7d18957
SP
3259/* confdefs.h. */
3260_ACEOF
3261cat confdefs.h >>conftest.$ac_ext
3262cat >>conftest.$ac_ext <<_ACEOF
3263/* end confdefs.h. */
3264#ifdef __STDC__
3265# include <limits.h>
3266#else
3267# include <assert.h>
3268#endif
c9e4e868 3269 Syntax error
e7d18957 3270_ACEOF
7f7d329e
SP
3271if { (ac_try="$ac_cpp conftest.$ac_ext"
3272case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275esac
3276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
e7d18957
SP
3278 ac_status=$?
3279 grep -v '^ *+' conftest.er1 >conftest.err
3280 rm -f conftest.er1
3281 cat conftest.err >&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d2816d4c
SP
3283 (exit $ac_status); } >/dev/null && {
3284 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3285 test ! -s conftest.err
3286 }; then
e7d18957 3287 :
1227625a 3288else
e7d18957
SP
3289 echo "$as_me: failed program was:" >&5
3290sed 's/^/| /' conftest.$ac_ext >&5
1227625a 3291
e7d18957
SP
3292 # Broken: fails on valid input.
3293continue
cdfe1392 3294fi
7f7d329e 3295
e7d18957 3296rm -f conftest.err conftest.$ac_ext
cdfe1392 3297
7f7d329e 3298 # OK, works on sane cases. Now check whether nonexistent headers
e7d18957
SP
3299 # can be detected and how.
3300 cat >conftest.$ac_ext <<_ACEOF
e7d18957
SP
3301/* confdefs.h. */
3302_ACEOF
3303cat confdefs.h >>conftest.$ac_ext
3304cat >>conftest.$ac_ext <<_ACEOF
3305/* end confdefs.h. */
3306#include <ac_nonexistent.h>
3307_ACEOF
7f7d329e
SP
3308if { (ac_try="$ac_cpp conftest.$ac_ext"
3309case "(($ac_try" in
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3312esac
3313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
e7d18957
SP
3315 ac_status=$?
3316 grep -v '^ *+' conftest.er1 >conftest.err
3317 rm -f conftest.er1
3318 cat conftest.err >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d2816d4c
SP
3320 (exit $ac_status); } >/dev/null && {
3321 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3322 test ! -s conftest.err
3323 }; then
e7d18957
SP
3324 # Broken: success on invalid input.
3325continue
c38e5b6a 3326else
e7d18957
SP
3327 echo "$as_me: failed program was:" >&5
3328sed 's/^/| /' conftest.$ac_ext >&5
c38e5b6a 3329
e7d18957
SP
3330 # Passes both tests.
3331ac_preproc_ok=:
3332break
c38e5b6a 3333fi
7f7d329e 3334
e7d18957 3335rm -f conftest.err conftest.$ac_ext
c38e5b6a 3336
e7d18957
SP
3337done
3338# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3339rm -f conftest.err conftest.$ac_ext
3340if $ac_preproc_ok; then
3341 break
d8574d45
SP
3342fi
3343
e7d18957
SP
3344 done
3345 ac_cv_prog_CPP=$CPP
d6967896
SP
3346
3347fi
e7d18957 3348 CPP=$ac_cv_prog_CPP
d6967896 3349else
e7d18957
SP
3350 ac_cv_prog_CPP=$CPP
3351fi
7f7d329e
SP
3352{ echo "$as_me:$LINENO: result: $CPP" >&5
3353echo "${ECHO_T}$CPP" >&6; }
e7d18957
SP
3354ac_preproc_ok=false
3355for ac_c_preproc_warn_flag in '' yes
3356do
3357 # Use a header file that comes with gcc, so configuring glibc
3358 # with a fresh cross-compiler works.
3359 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3360 # <limits.h> exists even on freestanding compilers.
3361 # On the NeXT, cc -E runs the code through the compiler's parser,
3362 # not just through cpp. "Syntax error" is here to catch this case.
3363 cat >conftest.$ac_ext <<_ACEOF
e7d18957
SP
3364/* confdefs.h. */
3365_ACEOF
3366cat confdefs.h >>conftest.$ac_ext
3367cat >>conftest.$ac_ext <<_ACEOF
3368/* end confdefs.h. */
3369#ifdef __STDC__
3370# include <limits.h>
3371#else
3372# include <assert.h>
3373#endif
c9e4e868 3374 Syntax error
e7d18957 3375_ACEOF
7f7d329e
SP
3376if { (ac_try="$ac_cpp conftest.$ac_ext"
3377case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380esac
3381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
e7d18957
SP
3383 ac_status=$?
3384 grep -v '^ *+' conftest.er1 >conftest.err
3385 rm -f conftest.er1
3386 cat conftest.err >&5
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d2816d4c
SP
3388 (exit $ac_status); } >/dev/null && {
3389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3390 test ! -s conftest.err
3391 }; then
e7d18957
SP
3392 :
3393else
3394 echo "$as_me: failed program was:" >&5
3395sed 's/^/| /' conftest.$ac_ext >&5
3396
3397 # Broken: fails on valid input.
3398continue
3399fi
7f7d329e 3400
e7d18957
SP
3401rm -f conftest.err conftest.$ac_ext
3402
7f7d329e 3403 # OK, works on sane cases. Now check whether nonexistent headers
e7d18957
SP
3404 # can be detected and how.
3405 cat >conftest.$ac_ext <<_ACEOF
e7d18957
SP
3406/* confdefs.h. */
3407_ACEOF
3408cat confdefs.h >>conftest.$ac_ext
3409cat >>conftest.$ac_ext <<_ACEOF
3410/* end confdefs.h. */
3411#include <ac_nonexistent.h>
3412_ACEOF
7f7d329e
SP
3413if { (ac_try="$ac_cpp conftest.$ac_ext"
3414case "(($ac_try" in
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3417esac
3418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
e7d18957
SP
3420 ac_status=$?
3421 grep -v '^ *+' conftest.er1 >conftest.err
3422 rm -f conftest.er1
3423 cat conftest.err >&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d2816d4c
SP
3425 (exit $ac_status); } >/dev/null && {
3426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3427 test ! -s conftest.err
3428 }; then
e7d18957
SP
3429 # Broken: success on invalid input.
3430continue
3431else
3432 echo "$as_me: failed program was:" >&5
3433sed 's/^/| /' conftest.$ac_ext >&5
3434
3435 # Passes both tests.
3436ac_preproc_ok=:
3437break
3438fi
7f7d329e 3439
e7d18957
SP
3440rm -f conftest.err conftest.$ac_ext
3441
3442done
3443# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3444rm -f conftest.err conftest.$ac_ext
3445if $ac_preproc_ok; then
3446 :
3447else
3448 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3449See \`config.log' for more details." >&5
3450echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3451See \`config.log' for more details." >&2;}
3452 { (exit 1); exit 1; }; }
3453fi
3454
3455ac_ext=c
3456ac_cpp='$CPP $CPPFLAGS'
3457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3459ac_compiler_gnu=$ac_cv_c_compiler_gnu
3460
3461
7f7d329e
SP
3462{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3463echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3464if test "${ac_cv_path_GREP+set}" = set; then
3465 echo $ECHO_N "(cached) $ECHO_C" >&6
3466else
3467 # Extract the first word of "grep ggrep" to use in msg output
3468if test -z "$GREP"; then
3469set dummy grep ggrep; ac_prog_name=$2
3470if test "${ac_cv_path_GREP+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3472else
3473 ac_path_GREP_found=false
3474# Loop through the user's path and test for each of PROGNAME-LIST
3475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3477do
3478 IFS=$as_save_IFS
3479 test -z "$as_dir" && as_dir=.
3480 for ac_prog in grep ggrep; do
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d2816d4c 3483 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7f7d329e
SP
3484 # Check for GNU ac_path_GREP and select it if it is found.
3485 # Check for GNU $ac_path_GREP
3486case `"$ac_path_GREP" --version 2>&1` in
3487*GNU*)
3488 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3489*)
3490 ac_count=0
3491 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3492 while :
3493 do
3494 cat "conftest.in" "conftest.in" >"conftest.tmp"
3495 mv "conftest.tmp" "conftest.in"
3496 cp "conftest.in" "conftest.nl"
3497 echo 'GREP' >> "conftest.nl"
3498 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3499 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3500 ac_count=`expr $ac_count + 1`
3501 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3502 # Best one so far, save it but keep looking for a better one
3503 ac_cv_path_GREP="$ac_path_GREP"
3504 ac_path_GREP_max=$ac_count
3505 fi
3506 # 10*(2^10) chars as input seems more than enough
3507 test $ac_count -gt 10 && break
3508 done
3509 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3510esac
3511
3512
3513 $ac_path_GREP_found && break 3
3514 done
3515done
3516
3517done
3518IFS=$as_save_IFS
3519
3520
3521fi
3522
3523GREP="$ac_cv_path_GREP"
3524if test -z "$GREP"; then
3525 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3526echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3527 { (exit 1); exit 1; }; }
3528fi
3529
3530else
3531 ac_cv_path_GREP=$GREP
3532fi
3533
3534
3535fi
3536{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3537echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3538 GREP="$ac_cv_path_GREP"
3539
3540
3541{ echo "$as_me:$LINENO: checking for egrep" >&5
3542echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3543if test "${ac_cv_path_EGREP+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545else
3546 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3547 then ac_cv_path_EGREP="$GREP -E"
3548 else
3549 # Extract the first word of "egrep" to use in msg output
3550if test -z "$EGREP"; then
3551set dummy egrep; ac_prog_name=$2
3552if test "${ac_cv_path_EGREP+set}" = set; then
e7d18957
SP
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3554else
7f7d329e
SP
3555 ac_path_EGREP_found=false
3556# Loop through the user's path and test for each of PROGNAME-LIST
3557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3559do
3560 IFS=$as_save_IFS
3561 test -z "$as_dir" && as_dir=.
3562 for ac_prog in egrep; do
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d2816d4c 3565 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7f7d329e
SP
3566 # Check for GNU ac_path_EGREP and select it if it is found.
3567 # Check for GNU $ac_path_EGREP
3568case `"$ac_path_EGREP" --version 2>&1` in
3569*GNU*)
3570 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3571*)
3572 ac_count=0
3573 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3574 while :
3575 do
3576 cat "conftest.in" "conftest.in" >"conftest.tmp"
3577 mv "conftest.tmp" "conftest.in"
3578 cp "conftest.in" "conftest.nl"
3579 echo 'EGREP' >> "conftest.nl"
3580 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3581 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3582 ac_count=`expr $ac_count + 1`
3583 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3584 # Best one so far, save it but keep looking for a better one
3585 ac_cv_path_EGREP="$ac_path_EGREP"
3586 ac_path_EGREP_max=$ac_count
e7d18957 3587 fi
7f7d329e
SP
3588 # 10*(2^10) chars as input seems more than enough
3589 test $ac_count -gt 10 && break
3590 done
3591 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3592esac
3593
3594
3595 $ac_path_EGREP_found && break 3
3596 done
3597done
3598
3599done
3600IFS=$as_save_IFS
3601
3602
e7d18957 3603fi
e7d18957 3604
7f7d329e
SP
3605EGREP="$ac_cv_path_EGREP"
3606if test -z "$EGREP"; then
3607 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3608echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3609 { (exit 1); exit 1; }; }
3610fi
3611
3612else
3613 ac_cv_path_EGREP=$EGREP
3614fi
3615
3616
3617 fi
3618fi
3619{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3620echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3621 EGREP="$ac_cv_path_EGREP"
e7d18957 3622
7f7d329e
SP
3623
3624{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3625echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
e7d18957
SP
3626if test "${ac_cv_header_stdc+set}" = set; then
3627 echo $ECHO_N "(cached) $ECHO_C" >&6
3628else
3629 cat >conftest.$ac_ext <<_ACEOF
e7d18957
SP
3630/* confdefs.h. */
3631_ACEOF
3632cat confdefs.h >>conftest.$ac_ext
3633cat >>conftest.$ac_ext <<_ACEOF
3634/* end confdefs.h. */
3635#include <stdlib.h>
3636#include <stdarg.h>
3637#include <string.h>
3638#include <float.h>
3639
3640int
3641main ()
3642{
3643
3644 ;
3645 return 0;
3646}
3647_ACEOF
3648rm -f conftest.$ac_objext
7f7d329e
SP
3649if { (ac_try="$ac_compile"
3650case "(($ac_try" in
3651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652 *) ac_try_echo=$ac_try;;
3653esac
3654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3655 (eval "$ac_compile") 2>conftest.er1
e7d18957 3656 ac_status=$?
c9e4e868
SP
3657 grep -v '^ *+' conftest.er1 >conftest.err
3658 rm -f conftest.er1
3659 cat conftest.err >&5
e7d18957 3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d2816d4c
SP
3661 (exit $ac_status); } && {
3662 test -z "$ac_c_werror_flag" ||
3663 test ! -s conftest.err
3664 } && test -s conftest.$ac_objext; then
e7d18957
SP
3665 ac_cv_header_stdc=yes
3666else
3667 echo "$as_me: failed program was:" >&5
3668sed 's/^/| /' conftest.$ac_ext >&5
3669
7f7d329e 3670 ac_cv_header_stdc=no
e7d18957 3671fi
7f7d329e
SP
3672
3673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e7d18957
SP
3674
3675if test $ac_cv_header_stdc = yes; then
3676 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3677 cat >conftest.$ac_ext <<_ACEOF
e7d18957
SP
3678/* confdefs.h. */