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