Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for qdbm 1.8.78.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if 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 --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
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'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
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'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if 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 }
81 fi
82
83
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.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
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.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
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.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if 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
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test 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"
174 if (eval "$as_required") 2>/dev/null; then :
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180
181 else
182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 as_found=false
184 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 do
186 IFS=$as_save_IFS
187 test -z "$as_dir" && as_dir=.
188 as_found=:
189 case $as_dir in #(
190 /*)
191 for as_base in sh bash ksh sh5; do
192 # Try only shells that exist, to save several forks.
193 as_shell=$as_dir/$as_base
194 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
195 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
196 CONFIG_SHELL=$as_shell as_have_required=yes
197 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 break 2
199 fi
200 fi
201 done;;
202 esac
203 as_found=false
204 done
205 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
207 CONFIG_SHELL=$SHELL as_have_required=yes
208 fi; }
209 IFS=$as_save_IFS
210
211
212 if test "x$CONFIG_SHELL" != x; then :
213 # We cannot yet assume a decent shell, so we have to provide a
214 # neutralization value for shells without unset; and this also
215 # works around shells that cannot unset nonexistent variables.
216 BASH_ENV=/dev/null
217 ENV=/dev/null
218 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 export CONFIG_SHELL
220 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
221 fi
222
223 if test x$as_have_required = xno; then :
224 $as_echo "$0: This script requires a shell more modern than all"
225 $as_echo "$0: the shells that I found on your system."
226 if test x${ZSH_VERSION+set} = xset ; then
227 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
228 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 else
230 $as_echo "$0: Please tell [email protected] about your system,
231 $0: including any error possibly output before this
232 $0: message. Then install a modern shell, or manually run
233 $0: the script under such a shell if you do have one."
234 fi
235 exit 1
236 fi
237 fi
238 fi
239 SHELL=${CONFIG_SHELL-/bin/sh}
240 export SHELL
241 # Unset more variables known to interfere with behavior of common tools.
242 CLICOLOR_FORCE= GREP_OPTIONS=
243 unset CLICOLOR_FORCE GREP_OPTIONS
244
245 ## --------------------- ##
246 ## M4sh Shell Functions. ##
247 ## --------------------- ##
248 # as_fn_unset VAR
249 # ---------------
250 # Portably unset VAR.
251 as_fn_unset ()
252 {
253 { eval $1=; unset $1;}
254 }
255 as_unset=as_fn_unset
256
257 # as_fn_set_status STATUS
258 # -----------------------
259 # Set $? to STATUS, without forking.
260 as_fn_set_status ()
261 {
262 return $1
263 } # as_fn_set_status
264
265 # as_fn_exit STATUS
266 # -----------------
267 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
268 as_fn_exit ()
269 {
270 set +e
271 as_fn_set_status $1
272 exit $1
273 } # as_fn_exit
274
275 # as_fn_mkdir_p
276 # -------------
277 # Create "$as_dir" as a directory, including parents if necessary.
278 as_fn_mkdir_p ()
279 {
280
281 case $as_dir in #(
282 -*) as_dir=./$as_dir;;
283 esac
284 test -d "$as_dir" || eval $as_mkdir_p || {
285 as_dirs=
286 while :; do
287 case $as_dir in #(
288 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
289 *) as_qdir=$as_dir;;
290 esac
291 as_dirs="'$as_qdir' $as_dirs"
292 as_dir=`$as_dirname -- "$as_dir" ||
293 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
294 X"$as_dir" : 'X\(//\)[^/]' \| \
295 X"$as_dir" : 'X\(//\)$' \| \
296 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
297 $as_echo X"$as_dir" |
298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
299 s//\1/
300 q
301 }
302 /^X\(\/\/\)[^/].*/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)$/{
307 s//\1/
308 q
309 }
310 /^X\(\/\).*/{
311 s//\1/
312 q
313 }
314 s/.*/./; q'`
315 test -d "$as_dir" && break
316 done
317 test -z "$as_dirs" || eval "mkdir $as_dirs"
318 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
319
320
321 } # as_fn_mkdir_p
322 # as_fn_append VAR VALUE
323 # ----------------------
324 # Append the text in VALUE to the end of the definition contained in VAR. Take
325 # advantage of any shell optimizations that allow amortized linear growth over
326 # repeated appends, instead of the typical quadratic growth present in naive
327 # implementations.
328 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
329 eval 'as_fn_append ()
330 {
331 eval $1+=\$2
332 }'
333 else
334 as_fn_append ()
335 {
336 eval $1=\$$1\$2
337 }
338 fi # as_fn_append
339
340 # as_fn_arith ARG...
341 # ------------------
342 # Perform arithmetic evaluation on the ARGs, and store the result in the
343 # global $as_val. Take advantage of shells that can avoid forks. The arguments
344 # must be portable across $(()) and expr.
345 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
346 eval 'as_fn_arith ()
347 {
348 as_val=$(( $* ))
349 }'
350 else
351 as_fn_arith ()
352 {
353 as_val=`expr "$@" || test $? -eq 1`
354 }
355 fi # as_fn_arith
356
357
358 # as_fn_error ERROR [LINENO LOG_FD]
359 # ---------------------------------
360 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
361 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
362 # script with status $?, using 1 if that was 0.
363 as_fn_error ()
364 {
365 as_status=$?; test $as_status -eq 0 && as_status=1
366 if test "$3"; then
367 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
368 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 fi
370 $as_echo "$as_me: error: $1" >&2
371 as_fn_exit $as_status
372 } # as_fn_error
373
374 if expr a : '\(a\)' >/dev/null 2>&1 &&
375 test "X`expr 00001 : '.*\(...\)'`" = X001; then
376 as_expr=expr
377 else
378 as_expr=false
379 fi
380
381 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
382 as_basename=basename
383 else
384 as_basename=false
385 fi
386
387 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
388 as_dirname=dirname
389 else
390 as_dirname=false
391 fi
392
393 as_me=`$as_basename -- "$0" ||
394 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
395 X"$0" : 'X\(//\)$' \| \
396 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 $as_echo X/"$0" |
398 sed '/^.*\/\([^/][^/]*\)\/*$/{
399 s//\1/
400 q
401 }
402 /^X\/\(\/\/\)$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\).*/{
407 s//\1/
408 q
409 }
410 s/.*/./; q'`
411
412 # Avoid depending upon Character Ranges.
413 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
414 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
415 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
416 as_cr_digits='0123456789'
417 as_cr_alnum=$as_cr_Letters$as_cr_digits
418
419
420 as_lineno_1=$LINENO as_lineno_1a=$LINENO
421 as_lineno_2=$LINENO as_lineno_2a=$LINENO
422 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
423 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
424 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
425 sed -n '
426 p
427 /[$]LINENO/=
428 ' <$as_myself |
429 sed '
430 s/[$]LINENO.*/&-/
431 t lineno
432 b
433 :lineno
434 N
435 :loop
436 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
437 t loop
438 s/-\n.*//
439 ' >$as_me.lineno &&
440 chmod +x "$as_me.lineno" ||
441 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442
443 # Don't try to exec as it changes $[0], causing all sort of problems
444 # (the dirname of $[0] is not the place where we might find the
445 # original and so on. Autoconf is especially sensitive to this).
446 . "./$as_me.lineno"
447 # Exit status is that of the last command.
448 exit
449 }
450
451 ECHO_C= ECHO_N= ECHO_T=
452 case `echo -n x` in #(((((
453 -n*)
454 case `echo 'xy\c'` in
455 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 xy) ECHO_C='\c';;
457 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
458 ECHO_T=' ';;
459 esac;;
460 *)
461 ECHO_N='-n';;
462 esac
463
464 rm -f conf$$ conf$$.exe conf$$.file
465 if test -d conf$$.dir; then
466 rm -f conf$$.dir/conf$$.file
467 else
468 rm -f conf$$.dir
469 mkdir conf$$.dir 2>/dev/null
470 fi
471 if (echo >conf$$.file) 2>/dev/null; then
472 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 as_ln_s='ln -s'
474 # ... but there are two gotchas:
475 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
476 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
477 # In both cases, we have to default to `cp -p'.
478 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 as_ln_s='cp -p'
480 elif ln conf$$.file conf$$ 2>/dev/null; then
481 as_ln_s=ln
482 else
483 as_ln_s='cp -p'
484 fi
485 else
486 as_ln_s='cp -p'
487 fi
488 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
489 rmdir conf$$.dir 2>/dev/null
490
491 if mkdir -p . 2>/dev/null; then
492 as_mkdir_p='mkdir -p "$as_dir"'
493 else
494 test -d ./-p && rmdir ./-p
495 as_mkdir_p=false
496 fi
497
498 if test -x / >/dev/null 2>&1; then
499 as_test_x='test -x'
500 else
501 if ls -dL / >/dev/null 2>&1; then
502 as_ls_L_option=L
503 else
504 as_ls_L_option=
505 fi
506 as_test_x='
507 eval sh -c '\''
508 if test -d "$1"; then
509 test -d "$1/.";
510 else
511 case $1 in #(
512 -*)set "./$1";;
513 esac;
514 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
515 ???[sx]*):;;*)false;;esac;fi
516 '\'' sh
517 '
518 fi
519 as_executable_p=$as_test_x
520
521 # Sed expression to map a string onto a valid CPP name.
522 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523
524 # Sed expression to map a string onto a valid variable name.
525 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
526
527
528 test -n "$DJDIR" || exec 7<&0 </dev/null
529 exec 6>&1
530
531 # Name of the host.
532 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
533 # so uname gets run too.
534 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
535
536 #
537 # Initializations.
538 #
539 ac_default_prefix=/usr/local
540 ac_clean_files=
541 ac_config_libobj_dir=.
542 LIBOBJS=
543 cross_compiling=no
544 subdirs=
545 MFLAGS=
546 MAKEFLAGS=
547
548 # Identity of this package.
549 PACKAGE_NAME='qdbm'
550 PACKAGE_TARNAME='qdbm'
551 PACKAGE_VERSION='1.8.78'
552 PACKAGE_STRING='qdbm 1.8.78'
553 PACKAGE_BUGREPORT=''
554 PACKAGE_URL=''
555
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 AR
559 LD
560 MGWLIBS
561 MYOPTS
562 MYDEFS
563 TARGETS
564 LIBREV
565 LIBVER
566 OBJEXT
567 EXEEXT
568 ac_ct_CC
569 CPPFLAGS
570 LDFLAGS
571 CFLAGS
572 CC
573 target_alias
574 host_alias
575 build_alias
576 LIBS
577 ECHO_T
578 ECHO_N
579 ECHO_C
580 DEFS
581 mandir
582 localedir
583 libdir
584 psdir
585 pdfdir
586 dvidir
587 htmldir
588 infodir
589 docdir
590 oldincludedir
591 includedir
592 localstatedir
593 sharedstatedir
594 sysconfdir
595 datadir
596 datarootdir
597 libexecdir
598 sbindir
599 bindir
600 program_transform_name
601 prefix
602 exec_prefix
603 PACKAGE_URL
604 PACKAGE_BUGREPORT
605 PACKAGE_STRING
606 PACKAGE_VERSION
607 PACKAGE_TARNAME
608 PACKAGE_NAME
609 PATH_SEPARATOR
610 SHELL'
611 ac_subst_files=''
612 ac_user_opts='
613 enable_option_checking
614 enable_debug
615 enable_devel
616 enable_stable
617 enable_pthread
618 enable_lock
619 enable_mmap
620 enable_zlib
621 enable_lzo
622 enable_bzip
623 enable_iconv
624 enable_warn
625 '
626 ac_precious_vars='build_alias
627 host_alias
628 target_alias
629 CC
630 CFLAGS
631 LDFLAGS
632 LIBS
633 CPPFLAGS'
634
635
636 # Initialize some variables set by options.
637 ac_init_help=
638 ac_init_version=false
639 ac_unrecognized_opts=
640 ac_unrecognized_sep=
641 # The variables have the same names as the options, with
642 # dashes changed to underlines.
643 cache_file=/dev/null
644 exec_prefix=NONE
645 no_create=
646 no_recursion=
647 prefix=NONE
648 program_prefix=NONE
649 program_suffix=NONE
650 program_transform_name=s,x,x,
651 silent=
652 site=
653 srcdir=
654 verbose=
655 x_includes=NONE
656 x_libraries=NONE
657
658 # Installation directory options.
659 # These are left unexpanded so users can "make install exec_prefix=/foo"
660 # and all the variables that are supposed to be based on exec_prefix
661 # by default will actually change.
662 # Use braces instead of parens because sh, perl, etc. also accept them.
663 # (The list follows the same order as the GNU Coding Standards.)
664 bindir='${exec_prefix}/bin'
665 sbindir='${exec_prefix}/sbin'
666 libexecdir='${exec_prefix}/libexec'
667 datarootdir='${prefix}/share'
668 datadir='${datarootdir}'
669 sysconfdir='${prefix}/etc'
670 sharedstatedir='${prefix}/com'
671 localstatedir='${prefix}/var'
672 includedir='${prefix}/include'
673 oldincludedir='/usr/include'
674 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
675 infodir='${datarootdir}/info'
676 htmldir='${docdir}'
677 dvidir='${docdir}'
678 pdfdir='${docdir}'
679 psdir='${docdir}'
680 libdir='${exec_prefix}/lib'
681 localedir='${datarootdir}/locale'
682 mandir='${datarootdir}/man'
683
684 ac_prev=
685 ac_dashdash=
686 for ac_option
687 do
688 # If the previous option needs an argument, assign it.
689 if test -n "$ac_prev"; then
690 eval $ac_prev=\$ac_option
691 ac_prev=
692 continue
693 fi
694
695 case $ac_option in
696 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
697 *) ac_optarg=yes ;;
698 esac
699
700 # Accept the important Cygnus configure options, so we can diagnose typos.
701
702 case $ac_dashdash$ac_option in
703 --)
704 ac_dashdash=yes ;;
705
706 -bindir | --bindir | --bindi | --bind | --bin | --bi)
707 ac_prev=bindir ;;
708 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
709 bindir=$ac_optarg ;;
710
711 -build | --build | --buil | --bui | --bu)
712 ac_prev=build_alias ;;
713 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
714 build_alias=$ac_optarg ;;
715
716 -cache-file | --cache-file | --cache-fil | --cache-fi \
717 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
718 ac_prev=cache_file ;;
719 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
720 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
721 cache_file=$ac_optarg ;;
722
723 --config-cache | -C)
724 cache_file=config.cache ;;
725
726 -datadir | --datadir | --datadi | --datad)
727 ac_prev=datadir ;;
728 -datadir=* | --datadir=* | --datadi=* | --datad=*)
729 datadir=$ac_optarg ;;
730
731 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
732 | --dataroo | --dataro | --datar)
733 ac_prev=datarootdir ;;
734 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
735 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
736 datarootdir=$ac_optarg ;;
737
738 -disable-* | --disable-*)
739 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
740 # Reject names that are not valid shell variable names.
741 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
742 as_fn_error "invalid feature name: $ac_useropt"
743 ac_useropt_orig=$ac_useropt
744 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
745 case $ac_user_opts in
746 *"
747 "enable_$ac_useropt"
748 "*) ;;
749 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
750 ac_unrecognized_sep=', ';;
751 esac
752 eval enable_$ac_useropt=no ;;
753
754 -docdir | --docdir | --docdi | --doc | --do)
755 ac_prev=docdir ;;
756 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
757 docdir=$ac_optarg ;;
758
759 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
760 ac_prev=dvidir ;;
761 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
762 dvidir=$ac_optarg ;;
763
764 -enable-* | --enable-*)
765 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
766 # Reject names that are not valid shell variable names.
767 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
768 as_fn_error "invalid feature name: $ac_useropt"
769 ac_useropt_orig=$ac_useropt
770 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
771 case $ac_user_opts in
772 *"
773 "enable_$ac_useropt"
774 "*) ;;
775 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
776 ac_unrecognized_sep=', ';;
777 esac
778 eval enable_$ac_useropt=\$ac_optarg ;;
779
780 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
781 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
782 | --exec | --exe | --ex)
783 ac_prev=exec_prefix ;;
784 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
785 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
786 | --exec=* | --exe=* | --ex=*)
787 exec_prefix=$ac_optarg ;;
788
789 -gas | --gas | --ga | --g)
790 # Obsolete; use --with-gas.
791 with_gas=yes ;;
792
793 -help | --help | --hel | --he | -h)
794 ac_init_help=long ;;
795 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
796 ac_init_help=recursive ;;
797 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
798 ac_init_help=short ;;
799
800 -host | --host | --hos | --ho)
801 ac_prev=host_alias ;;
802 -host=* | --host=* | --hos=* | --ho=*)
803 host_alias=$ac_optarg ;;
804
805 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
806 ac_prev=htmldir ;;
807 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
808 | --ht=*)
809 htmldir=$ac_optarg ;;
810
811 -includedir | --includedir | --includedi | --included | --include \
812 | --includ | --inclu | --incl | --inc)
813 ac_prev=includedir ;;
814 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
815 | --includ=* | --inclu=* | --incl=* | --inc=*)
816 includedir=$ac_optarg ;;
817
818 -infodir | --infodir | --infodi | --infod | --info | --inf)
819 ac_prev=infodir ;;
820 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
821 infodir=$ac_optarg ;;
822
823 -libdir | --libdir | --libdi | --libd)
824 ac_prev=libdir ;;
825 -libdir=* | --libdir=* | --libdi=* | --libd=*)
826 libdir=$ac_optarg ;;
827
828 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
829 | --libexe | --libex | --libe)
830 ac_prev=libexecdir ;;
831 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
832 | --libexe=* | --libex=* | --libe=*)
833 libexecdir=$ac_optarg ;;
834
835 -localedir | --localedir | --localedi | --localed | --locale)
836 ac_prev=localedir ;;
837 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
838 localedir=$ac_optarg ;;
839
840 -localstatedir | --localstatedir | --localstatedi | --localstated \
841 | --localstate | --localstat | --localsta | --localst | --locals)
842 ac_prev=localstatedir ;;
843 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
844 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
845 localstatedir=$ac_optarg ;;
846
847 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
848 ac_prev=mandir ;;
849 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
850 mandir=$ac_optarg ;;
851
852 -nfp | --nfp | --nf)
853 # Obsolete; use --without-fp.
854 with_fp=no ;;
855
856 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
857 | --no-cr | --no-c | -n)
858 no_create=yes ;;
859
860 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
861 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
862 no_recursion=yes ;;
863
864 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
865 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
866 | --oldin | --oldi | --old | --ol | --o)
867 ac_prev=oldincludedir ;;
868 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
869 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
870 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
871 oldincludedir=$ac_optarg ;;
872
873 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
874 ac_prev=prefix ;;
875 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
876 prefix=$ac_optarg ;;
877
878 -program-prefix | --program-prefix | --program-prefi | --program-pref \
879 | --program-pre | --program-pr | --program-p)
880 ac_prev=program_prefix ;;
881 -program-prefix=* | --program-prefix=* | --program-prefi=* \
882 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
883 program_prefix=$ac_optarg ;;
884
885 -program-suffix | --program-suffix | --program-suffi | --program-suff \
886 | --program-suf | --program-su | --program-s)
887 ac_prev=program_suffix ;;
888 -program-suffix=* | --program-suffix=* | --program-suffi=* \
889 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
890 program_suffix=$ac_optarg ;;
891
892 -program-transform-name | --program-transform-name \
893 | --program-transform-nam | --program-transform-na \
894 | --program-transform-n | --program-transform- \
895 | --program-transform | --program-transfor \
896 | --program-transfo | --program-transf \
897 | --program-trans | --program-tran \
898 | --progr-tra | --program-tr | --program-t)
899 ac_prev=program_transform_name ;;
900 -program-transform-name=* | --program-transform-name=* \
901 | --program-transform-nam=* | --program-transform-na=* \
902 | --program-transform-n=* | --program-transform-=* \
903 | --program-transform=* | --program-transfor=* \
904 | --program-transfo=* | --program-transf=* \
905 | --program-trans=* | --program-tran=* \
906 | --progr-tra=* | --program-tr=* | --program-t=*)
907 program_transform_name=$ac_optarg ;;
908
909 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
910 ac_prev=pdfdir ;;
911 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
912 pdfdir=$ac_optarg ;;
913
914 -psdir | --psdir | --psdi | --psd | --ps)
915 ac_prev=psdir ;;
916 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
917 psdir=$ac_optarg ;;
918
919 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
920 | -silent | --silent | --silen | --sile | --sil)
921 silent=yes ;;
922
923 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
924 ac_prev=sbindir ;;
925 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
926 | --sbi=* | --sb=*)
927 sbindir=$ac_optarg ;;
928
929 -sharedstatedir | --sharedstatedir | --sharedstatedi \
930 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
931 | --sharedst | --shareds | --shared | --share | --shar \
932 | --sha | --sh)
933 ac_prev=sharedstatedir ;;
934 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
935 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
936 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
937 | --sha=* | --sh=*)
938 sharedstatedir=$ac_optarg ;;
939
940 -site | --site | --sit)
941 ac_prev=site ;;
942 -site=* | --site=* | --sit=*)
943 site=$ac_optarg ;;
944
945 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
946 ac_prev=srcdir ;;
947 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
948 srcdir=$ac_optarg ;;
949
950 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
951 | --syscon | --sysco | --sysc | --sys | --sy)
952 ac_prev=sysconfdir ;;
953 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
954 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
955 sysconfdir=$ac_optarg ;;
956
957 -target | --target | --targe | --targ | --tar | --ta | --t)
958 ac_prev=target_alias ;;
959 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
960 target_alias=$ac_optarg ;;
961
962 -v | -verbose | --verbose | --verbos | --verbo | --verb)
963 verbose=yes ;;
964
965 -version | --version | --versio | --versi | --vers | -V)
966 ac_init_version=: ;;
967
968 -with-* | --with-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 as_fn_error "invalid package name: $ac_useropt"
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
976 *"
977 "with_$ac_useropt"
978 "*) ;;
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
981 esac
982 eval with_$ac_useropt=\$ac_optarg ;;
983
984 -without-* | --without-*)
985 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
988 as_fn_error "invalid package name: $ac_useropt"
989 ac_useropt_orig=$ac_useropt
990 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
992 *"
993 "with_$ac_useropt"
994 "*) ;;
995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
997 esac
998 eval with_$ac_useropt=no ;;
999
1000 --x)
1001 # Obsolete; use --with-x.
1002 with_x=yes ;;
1003
1004 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1005 | --x-incl | --x-inc | --x-in | --x-i)
1006 ac_prev=x_includes ;;
1007 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1008 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1009 x_includes=$ac_optarg ;;
1010
1011 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1012 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1013 ac_prev=x_libraries ;;
1014 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1015 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1016 x_libraries=$ac_optarg ;;
1017
1018 -*) as_fn_error "unrecognized option: \`$ac_option'
1019 Try \`$0 --help' for more information."
1020 ;;
1021
1022 *=*)
1023 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1024 # Reject names that are not valid shell variable names.
1025 case $ac_envvar in #(
1026 '' | [0-9]* | *[!_$as_cr_alnum]* )
1027 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1028 esac
1029 eval $ac_envvar=\$ac_optarg
1030 export $ac_envvar ;;
1031
1032 *)
1033 # FIXME: should be removed in autoconf 3.0.
1034 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1035 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1036 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1037 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1038 ;;
1039
1040 esac
1041 done
1042
1043 if test -n "$ac_prev"; then
1044 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1045 as_fn_error "missing argument to $ac_option"
1046 fi
1047
1048 if test -n "$ac_unrecognized_opts"; then
1049 case $enable_option_checking in
1050 no) ;;
1051 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1052 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1053 esac
1054 fi
1055
1056 # Check all directory arguments for consistency.
1057 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1058 datadir sysconfdir sharedstatedir localstatedir includedir \
1059 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1060 libdir localedir mandir
1061 do
1062 eval ac_val=\$$ac_var
1063 # Remove trailing slashes.
1064 case $ac_val in
1065 */ )
1066 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1067 eval $ac_var=\$ac_val;;
1068 esac
1069 # Be sure to have absolute directory names.
1070 case $ac_val in
1071 [\\/$]* | ?:[\\/]* ) continue;;
1072 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1073 esac
1074 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1075 done
1076
1077 # There might be people who depend on the old broken behavior: `$host'
1078 # used to hold the argument of --host etc.
1079 # FIXME: To remove some day.
1080 build=$build_alias
1081 host=$host_alias
1082 target=$target_alias
1083
1084 # FIXME: To remove some day.
1085 if test "x$host_alias" != x; then
1086 if test "x$build_alias" = x; then
1087 cross_compiling=maybe
1088 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1089 If a cross compiler is detected then cross compile mode will be used." >&2
1090 elif test "x$build_alias" != "x$host_alias"; then
1091 cross_compiling=yes
1092 fi
1093 fi
1094
1095 ac_tool_prefix=
1096 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1097
1098 test "$silent" = yes && exec 6>/dev/null
1099
1100
1101 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1102 ac_ls_di=`ls -di .` &&
1103 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1104 as_fn_error "working directory cannot be determined"
1105 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1106 as_fn_error "pwd does not report name of working directory"
1107
1108
1109 # Find the source files, if location was not specified.
1110 if test -z "$srcdir"; then
1111 ac_srcdir_defaulted=yes
1112 # Try the directory containing this script, then the parent directory.
1113 ac_confdir=`$as_dirname -- "$as_myself" ||
1114 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1115 X"$as_myself" : 'X\(//\)[^/]' \| \
1116 X"$as_myself" : 'X\(//\)$' \| \
1117 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1118 $as_echo X"$as_myself" |
1119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1120 s//\1/
1121 q
1122 }
1123 /^X\(\/\/\)[^/].*/{
1124 s//\1/
1125 q
1126 }
1127 /^X\(\/\/\)$/{
1128 s//\1/
1129 q
1130 }
1131 /^X\(\/\).*/{
1132 s//\1/
1133 q
1134 }
1135 s/.*/./; q'`
1136 srcdir=$ac_confdir
1137 if test ! -r "$srcdir/$ac_unique_file"; then
1138 srcdir=..
1139 fi
1140 else
1141 ac_srcdir_defaulted=no
1142 fi
1143 if test ! -r "$srcdir/$ac_unique_file"; then
1144 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1145 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1146 fi
1147 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1148 ac_abs_confdir=`(
1149 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1150 pwd)`
1151 # When building in place, set srcdir=.
1152 if test "$ac_abs_confdir" = "$ac_pwd"; then
1153 srcdir=.
1154 fi
1155 # Remove unnecessary trailing slashes from srcdir.
1156 # Double slashes in file names in object file debugging info
1157 # mess up M-x gdb in Emacs.
1158 case $srcdir in
1159 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1160 esac
1161 for ac_var in $ac_precious_vars; do
1162 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1163 eval ac_env_${ac_var}_value=\$${ac_var}
1164 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1165 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1166 done
1167
1168 #
1169 # Report the --help message.
1170 #
1171 if test "$ac_init_help" = "long"; then
1172 # Omit some internal or obsolete options to make the list less imposing.
1173 # This message is too long to be a string in the A/UX 3.1 sh.
1174 cat <<_ACEOF
1175 \`configure' configures qdbm 1.8.78 to adapt to many kinds of systems.
1176
1177 Usage: $0 [OPTION]... [VAR=VALUE]...
1178
1179 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1180 VAR=VALUE. See below for descriptions of some of the useful variables.
1181
1182 Defaults for the options are specified in brackets.
1183
1184 Configuration:
1185 -h, --help display this help and exit
1186 --help=short display options specific to this package
1187 --help=recursive display the short help of all the included packages
1188 -V, --version display version information and exit
1189 -q, --quiet, --silent do not print \`checking...' messages
1190 --cache-file=FILE cache test results in FILE [disabled]
1191 -C, --config-cache alias for \`--cache-file=config.cache'
1192 -n, --no-create do not create output files
1193 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1194
1195 Installation directories:
1196 --prefix=PREFIX install architecture-independent files in PREFIX
1197 [$ac_default_prefix]
1198 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1199 [PREFIX]
1200
1201 By default, \`make install' will install all the files in
1202 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1203 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1204 for instance \`--prefix=\$HOME'.
1205
1206 For better control, use the options below.
1207
1208 Fine tuning of the installation directories:
1209 --bindir=DIR user executables [EPREFIX/bin]
1210 --sbindir=DIR system admin executables [EPREFIX/sbin]
1211 --libexecdir=DIR program executables [EPREFIX/libexec]
1212 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1213 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1214 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1215 --libdir=DIR object code libraries [EPREFIX/lib]
1216 --includedir=DIR C header files [PREFIX/include]
1217 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1218 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1219 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1220 --infodir=DIR info documentation [DATAROOTDIR/info]
1221 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1222 --mandir=DIR man documentation [DATAROOTDIR/man]
1223 --docdir=DIR documentation root [DATAROOTDIR/doc/qdbm]
1224 --htmldir=DIR html documentation [DOCDIR]
1225 --dvidir=DIR dvi documentation [DOCDIR]
1226 --pdfdir=DIR pdf documentation [DOCDIR]
1227 --psdir=DIR ps documentation [DOCDIR]
1228 _ACEOF
1229
1230 cat <<\_ACEOF
1231 _ACEOF
1232 fi
1233
1234 if test -n "$ac_init_help"; then
1235 case $ac_init_help in
1236 short | recursive ) echo "Configuration of qdbm 1.8.78:";;
1237 esac
1238 cat <<\_ACEOF
1239
1240 Optional Features:
1241 --disable-option-checking ignore unrecognized --enable/--with options
1242 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1243 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1244 --enable-debug build for debugging
1245 --enable-devel build for development
1246 --enable-stable build for stable release
1247 --enable-pthread use POSIX thread and make APIs thread-safe
1248 --disable-lock build for environments without file locking
1249 --disable-mmap build for environments without memory mapping
1250 --enable-zlib feature ZLIB for B+ tree and inverted index
1251 --enable-lzo feature LZO for B+ tree and inverted index
1252 --enable-bzip feature BZIP2 for B+ tree and inverted index
1253 --enable-iconv feature ICONV utilities
1254 --disable-warn hide warnings in the configuration
1255
1256 Some influential environment variables:
1257 CC C compiler command
1258 CFLAGS C compiler flags
1259 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1260 nonstandard directory <lib dir>
1261 LIBS libraries to pass to the linker, e.g. -l<library>
1262 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1263 you have headers in a nonstandard directory <include dir>
1264
1265 Use these variables to override the choices made by `configure' or to help
1266 it to find libraries and programs with nonstandard names/locations.
1267
1268 Report bugs to the package provider.
1269 _ACEOF
1270 ac_status=$?
1271 fi
1272
1273 if test "$ac_init_help" = "recursive"; then
1274 # If there are subdirs, report their specific --help.
1275 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1276 test -d "$ac_dir" ||
1277 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1278 continue
1279 ac_builddir=.
1280
1281 case "$ac_dir" in
1282 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1283 *)
1284 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1285 # A ".." for each directory in $ac_dir_suffix.
1286 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1287 case $ac_top_builddir_sub in
1288 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1289 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1290 esac ;;
1291 esac
1292 ac_abs_top_builddir=$ac_pwd
1293 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1294 # for backward compatibility:
1295 ac_top_builddir=$ac_top_build_prefix
1296
1297 case $srcdir in
1298 .) # We are building in place.
1299 ac_srcdir=.
1300 ac_top_srcdir=$ac_top_builddir_sub
1301 ac_abs_top_srcdir=$ac_pwd ;;
1302 [\\/]* | ?:[\\/]* ) # Absolute name.
1303 ac_srcdir=$srcdir$ac_dir_suffix;
1304 ac_top_srcdir=$srcdir
1305 ac_abs_top_srcdir=$srcdir ;;
1306 *) # Relative name.
1307 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1308 ac_top_srcdir=$ac_top_build_prefix$srcdir
1309 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1310 esac
1311 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1312
1313 cd "$ac_dir" || { ac_status=$?; continue; }
1314 # Check for guested configure.
1315 if test -f "$ac_srcdir/configure.gnu"; then
1316 echo &&
1317 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1318 elif test -f "$ac_srcdir/configure"; then
1319 echo &&
1320 $SHELL "$ac_srcdir/configure" --help=recursive
1321 else
1322 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1323 fi || ac_status=$?
1324 cd "$ac_pwd" || { ac_status=$?; break; }
1325 done
1326 fi
1327
1328 test -n "$ac_init_help" && exit $ac_status
1329 if $ac_init_version; then
1330 cat <<\_ACEOF
1331 qdbm configure 1.8.78
1332 generated by GNU Autoconf 2.65
1333
1334 Copyright (C) 2009 Free Software Foundation, Inc.
1335 This configure script is free software; the Free Software Foundation
1336 gives unlimited permission to copy, distribute and modify it.
1337 _ACEOF
1338 exit
1339 fi
1340
1341 ## ------------------------ ##
1342 ## Autoconf initialization. ##
1343 ## ------------------------ ##
1344
1345 # ac_fn_c_try_compile LINENO
1346 # --------------------------
1347 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1348 ac_fn_c_try_compile ()
1349 {
1350 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1351 rm -f conftest.$ac_objext
1352 if { { ac_try="$ac_compile"
1353 case "(($ac_try" in
1354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1355 *) ac_try_echo=$ac_try;;
1356 esac
1357 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1358 $as_echo "$ac_try_echo"; } >&5
1359 (eval "$ac_compile") 2>conftest.err
1360 ac_status=$?
1361 if test -s conftest.err; then
1362 grep -v '^ *+' conftest.err >conftest.er1
1363 cat conftest.er1 >&5
1364 mv -f conftest.er1 conftest.err
1365 fi
1366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1367 test $ac_status = 0; } && {
1368 test -z "$ac_c_werror_flag" ||
1369 test ! -s conftest.err
1370 } && test -s conftest.$ac_objext; then :
1371 ac_retval=0
1372 else
1373 $as_echo "$as_me: failed program was:" >&5
1374 sed 's/^/| /' conftest.$ac_ext >&5
1375
1376 ac_retval=1
1377 fi
1378 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1379 as_fn_set_status $ac_retval
1380
1381 } # ac_fn_c_try_compile
1382
1383 # ac_fn_c_try_link LINENO
1384 # -----------------------
1385 # Try to link conftest.$ac_ext, and return whether this succeeded.
1386 ac_fn_c_try_link ()
1387 {
1388 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1389 rm -f conftest.$ac_objext conftest$ac_exeext
1390 if { { ac_try="$ac_link"
1391 case "(($ac_try" in
1392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1393 *) ac_try_echo=$ac_try;;
1394 esac
1395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1396 $as_echo "$ac_try_echo"; } >&5
1397 (eval "$ac_link") 2>conftest.err
1398 ac_status=$?
1399 if test -s conftest.err; then
1400 grep -v '^ *+' conftest.err >conftest.er1
1401 cat conftest.er1 >&5
1402 mv -f conftest.er1 conftest.err
1403 fi
1404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1405 test $ac_status = 0; } && {
1406 test -z "$ac_c_werror_flag" ||
1407 test ! -s conftest.err
1408 } && test -s conftest$ac_exeext && {
1409 test "$cross_compiling" = yes ||
1410 $as_test_x conftest$ac_exeext
1411 }; then :
1412 ac_retval=0
1413 else
1414 $as_echo "$as_me: failed program was:" >&5
1415 sed 's/^/| /' conftest.$ac_ext >&5
1416
1417 ac_retval=1
1418 fi
1419 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1420 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1421 # interfere with the next link command; also delete a directory that is
1422 # left behind by Apple's compiler. We do this before executing the actions.
1423 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1424 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1425 as_fn_set_status $ac_retval
1426
1427 } # ac_fn_c_try_link
1428 cat >config.log <<_ACEOF
1429 This file contains any messages produced by compilers while
1430 running configure, to aid debugging if configure makes a mistake.
1431
1432 It was created by qdbm $as_me 1.8.78, which was
1433 generated by GNU Autoconf 2.65. Invocation command line was
1434
1435 $ $0 $@
1436
1437 _ACEOF
1438 exec 5>>config.log
1439 {
1440 cat <<_ASUNAME
1441 ## --------- ##
1442 ## Platform. ##
1443 ## --------- ##
1444
1445 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1446 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1447 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1448 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1449 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1450
1451 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1452 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1453
1454 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1455 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1456 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1457 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1458 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1459 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1460 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1461
1462 _ASUNAME
1463
1464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1465 for as_dir in $PATH
1466 do
1467 IFS=$as_save_IFS
1468 test -z "$as_dir" && as_dir=.
1469 $as_echo "PATH: $as_dir"
1470 done
1471 IFS=$as_save_IFS
1472
1473 } >&5
1474
1475 cat >&5 <<_ACEOF
1476
1477
1478 ## ----------- ##
1479 ## Core tests. ##
1480 ## ----------- ##
1481
1482 _ACEOF
1483
1484
1485 # Keep a trace of the command line.
1486 # Strip out --no-create and --no-recursion so they do not pile up.
1487 # Strip out --silent because we don't want to record it for future runs.
1488 # Also quote any args containing shell meta-characters.
1489 # Make two passes to allow for proper duplicate-argument suppression.
1490 ac_configure_args=
1491 ac_configure_args0=
1492 ac_configure_args1=
1493 ac_must_keep_next=false
1494 for ac_pass in 1 2
1495 do
1496 for ac_arg
1497 do
1498 case $ac_arg in
1499 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1501 | -silent | --silent | --silen | --sile | --sil)
1502 continue ;;
1503 *\'*)
1504 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1505 esac
1506 case $ac_pass in
1507 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1508 2)
1509 as_fn_append ac_configure_args1 " '$ac_arg'"
1510 if test $ac_must_keep_next = true; then
1511 ac_must_keep_next=false # Got value, back to normal.
1512 else
1513 case $ac_arg in
1514 *=* | --config-cache | -C | -disable-* | --disable-* \
1515 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1516 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1517 | -with-* | --with-* | -without-* | --without-* | --x)
1518 case "$ac_configure_args0 " in
1519 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1520 esac
1521 ;;
1522 -* ) ac_must_keep_next=true ;;
1523 esac
1524 fi
1525 as_fn_append ac_configure_args " '$ac_arg'"
1526 ;;
1527 esac
1528 done
1529 done
1530 { ac_configure_args0=; unset ac_configure_args0;}
1531 { ac_configure_args1=; unset ac_configure_args1;}
1532
1533 # When interrupted or exit'd, cleanup temporary files, and complete
1534 # config.log. We remove comments because anyway the quotes in there
1535 # would cause problems or look ugly.
1536 # WARNING: Use '\'' to represent an apostrophe within the trap.
1537 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1538 trap 'exit_status=$?
1539 # Save into config.log some information that might help in debugging.
1540 {
1541 echo
1542
1543 cat <<\_ASBOX
1544 ## ---------------- ##
1545 ## Cache variables. ##
1546 ## ---------------- ##
1547 _ASBOX
1548 echo
1549 # The following way of writing the cache mishandles newlines in values,
1550 (
1551 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1552 eval ac_val=\$$ac_var
1553 case $ac_val in #(
1554 *${as_nl}*)
1555 case $ac_var in #(
1556 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1557 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1558 esac
1559 case $ac_var in #(
1560 _ | IFS | as_nl) ;; #(
1561 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1562 *) { eval $ac_var=; unset $ac_var;} ;;
1563 esac ;;
1564 esac
1565 done
1566 (set) 2>&1 |
1567 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1568 *${as_nl}ac_space=\ *)
1569 sed -n \
1570 "s/'\''/'\''\\\\'\'''\''/g;
1571 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1572 ;; #(
1573 *)
1574 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1575 ;;
1576 esac |
1577 sort
1578 )
1579 echo
1580
1581 cat <<\_ASBOX
1582 ## ----------------- ##
1583 ## Output variables. ##
1584 ## ----------------- ##
1585 _ASBOX
1586 echo
1587 for ac_var in $ac_subst_vars
1588 do
1589 eval ac_val=\$$ac_var
1590 case $ac_val in
1591 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1592 esac
1593 $as_echo "$ac_var='\''$ac_val'\''"
1594 done | sort
1595 echo
1596
1597 if test -n "$ac_subst_files"; then
1598 cat <<\_ASBOX
1599 ## ------------------- ##
1600 ## File substitutions. ##
1601 ## ------------------- ##
1602 _ASBOX
1603 echo
1604 for ac_var in $ac_subst_files
1605 do
1606 eval ac_val=\$$ac_var
1607 case $ac_val in
1608 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1609 esac
1610 $as_echo "$ac_var='\''$ac_val'\''"
1611 done | sort
1612 echo
1613 fi
1614
1615 if test -s confdefs.h; then
1616 cat <<\_ASBOX
1617 ## ----------- ##
1618 ## confdefs.h. ##
1619 ## ----------- ##
1620 _ASBOX
1621 echo
1622 cat confdefs.h
1623 echo
1624 fi
1625 test "$ac_signal" != 0 &&
1626 $as_echo "$as_me: caught signal $ac_signal"
1627 $as_echo "$as_me: exit $exit_status"
1628 } >&5
1629 rm -f core *.core core.conftest.* &&
1630 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1631 exit $exit_status
1632 ' 0
1633 for ac_signal in 1 2 13 15; do
1634 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1635 done
1636 ac_signal=0
1637
1638 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1639 rm -f -r conftest* confdefs.h
1640
1641 $as_echo "/* confdefs.h */" > confdefs.h
1642
1643 # Predefined preprocessor variables.
1644
1645 cat >>confdefs.h <<_ACEOF
1646 #define PACKAGE_NAME "$PACKAGE_NAME"
1647 _ACEOF
1648
1649 cat >>confdefs.h <<_ACEOF
1650 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1651 _ACEOF
1652
1653 cat >>confdefs.h <<_ACEOF
1654 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1655 _ACEOF
1656
1657 cat >>confdefs.h <<_ACEOF
1658 #define PACKAGE_STRING "$PACKAGE_STRING"
1659 _ACEOF
1660
1661 cat >>confdefs.h <<_ACEOF
1662 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1663 _ACEOF
1664
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_URL "$PACKAGE_URL"
1667 _ACEOF
1668
1669
1670 # Let the site file select an alternate cache file if it wants to.
1671 # Prefer an explicitly selected file to automatically selected ones.
1672 ac_site_file1=NONE
1673 ac_site_file2=NONE
1674 if test -n "$CONFIG_SITE"; then
1675 ac_site_file1=$CONFIG_SITE
1676 elif test "x$prefix" != xNONE; then
1677 ac_site_file1=$prefix/share/config.site
1678 ac_site_file2=$prefix/etc/config.site
1679 else
1680 ac_site_file1=$ac_default_prefix/share/config.site
1681 ac_site_file2=$ac_default_prefix/etc/config.site
1682 fi
1683 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1684 do
1685 test "x$ac_site_file" = xNONE && continue
1686 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1688 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1689 sed 's/^/| /' "$ac_site_file" >&5
1690 . "$ac_site_file"
1691 fi
1692 done
1693
1694 if test -r "$cache_file"; then
1695 # Some versions of bash will fail to source /dev/null (special files
1696 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1697 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1699 $as_echo "$as_me: loading cache $cache_file" >&6;}
1700 case $cache_file in
1701 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1702 *) . "./$cache_file";;
1703 esac
1704 fi
1705 else
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1707 $as_echo "$as_me: creating cache $cache_file" >&6;}
1708 >$cache_file
1709 fi
1710
1711 # Check that the precious variables saved in the cache have kept the same
1712 # value.
1713 ac_cache_corrupted=false
1714 for ac_var in $ac_precious_vars; do
1715 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1716 eval ac_new_set=\$ac_env_${ac_var}_set
1717 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1718 eval ac_new_val=\$ac_env_${ac_var}_value
1719 case $ac_old_set,$ac_new_set in
1720 set,)
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1722 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1723 ac_cache_corrupted=: ;;
1724 ,set)
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1726 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1727 ac_cache_corrupted=: ;;
1728 ,);;
1729 *)
1730 if test "x$ac_old_val" != "x$ac_new_val"; then
1731 # differences in whitespace do not lead to failure.
1732 ac_old_val_w=`echo x $ac_old_val`
1733 ac_new_val_w=`echo x $ac_new_val`
1734 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1736 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1737 ac_cache_corrupted=:
1738 else
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1740 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1741 eval $ac_var=\$ac_old_val
1742 fi
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1744 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1746 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1747 fi;;
1748 esac
1749 # Pass precious variables to config.status.
1750 if test "$ac_new_set" = set; then
1751 case $ac_new_val in
1752 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1753 *) ac_arg=$ac_var=$ac_new_val ;;
1754 esac
1755 case " $ac_configure_args " in
1756 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1757 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1758 esac
1759 fi
1760 done
1761 if $ac_cache_corrupted; then
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1765 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1766 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1767 fi
1768 ## -------------------- ##
1769 ## Main body of script. ##
1770 ## -------------------- ##
1771
1772 ac_ext=c
1773 ac_cpp='$CPP $CPPFLAGS'
1774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1777
1778
1779
1780 # Export variables
1781 LIBVER=14
1782 LIBREV=14
1783 TARGETS="all"
1784 MYDEFS=""
1785 MYOPTS=""
1786 MGWLIBS=""
1787 LD="ld"
1788 AR="ar"
1789
1790 # Building paths
1791 pathtmp="$PATH"
1792 PATH="$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
1793 PATH="$PATH:/usr/ccs/bin:/usr/ucb:/usr/xpg4/bin:/usr/xpg6/bin:$pathtmp"
1794 LIBRARY_PATH="$HOME/lib:/usr/local/lib:$LIBRARY_PATH"
1795 LD_LIBRARY_PATH="$HOME/lib:/usr/local/lib:$LD_LIBRARY_PATH"
1796 CPATH="$HOME/include:/usr/local/include:$CPATH"
1797 export PATH LIBRARY_PATH LD_LIBRARY_PATH CPATH
1798
1799
1800
1801 #================================================================
1802 # Options
1803 #================================================================
1804
1805
1806 # Internal variables
1807 enables=""
1808 ispthread=""
1809 iszlib=""
1810 isiconv=""
1811 isnowarn=""
1812
1813 # Debug mode
1814 # Check whether --enable-debug was given.
1815 if test "${enable_debug+set}" = set; then :
1816 enableval=$enable_debug;
1817 fi
1818
1819 if test "$enable_debug" = "yes"
1820 then
1821 TARGETS="debug"
1822 enables="$enables (debug)"
1823 fi
1824
1825 # Developping mode
1826 # Check whether --enable-devel was given.
1827 if test "${enable_devel+set}" = set; then :
1828 enableval=$enable_devel;
1829 fi
1830
1831 if test "$enable_devel" = "yes"
1832 then
1833 TARGETS="devel"
1834 enables="$enables (devel)"
1835 fi
1836
1837 # Stable mode
1838 # Check whether --enable-stable was given.
1839 if test "${enable_stable+set}" = set; then :
1840 enableval=$enable_stable;
1841 fi
1842
1843 if test "$enable_stable" = "yes"
1844 then
1845 TARGETS="stable"
1846 enables="$enables (stable)"
1847 fi
1848
1849 # Enable POSIX thread
1850 # Check whether --enable-pthread was given.
1851 if test "${enable_pthread+set}" = set; then :
1852 enableval=$enable_pthread;
1853 fi
1854
1855 if test "$enable_pthread" = "yes"
1856 then
1857 MYDEFS="$MYDEFS -DMYPTHREAD"
1858 enables="$enables (pthread)"
1859 ispthread="yes"
1860 fi
1861
1862 # Disable file locking
1863 # Check whether --enable-lock was given.
1864 if test "${enable_lock+set}" = set; then :
1865 enableval=$enable_lock;
1866 fi
1867
1868 if test "$enable_lock" = "no"
1869 then
1870 MYDEFS="$MYDEFS -DMYNOLOCK"
1871 enables="$enables (no-lock)"
1872 fi
1873
1874 # Disable memory mapping
1875 # Check whether --enable-mmap was given.
1876 if test "${enable_mmap+set}" = set; then :
1877 enableval=$enable_mmap;
1878 fi
1879
1880 if test "$enable_mmap" = "no"
1881 then
1882 MYDEFS="$MYDEFS -DMYNOMMAP"
1883 enables="$enables (no-mmap)"
1884 fi
1885
1886 # Enable ZLIB compression
1887 # Check whether --enable-zlib was given.
1888 if test "${enable_zlib+set}" = set; then :
1889 enableval=$enable_zlib;
1890 fi
1891
1892 if test "$enable_zlib" = "yes"
1893 then
1894 MYDEFS="$MYDEFS -DMYZLIB"
1895 MGWLIBS="-lz $MGWLIBS"
1896 enables="$enables (zlib)"
1897 iszlib="yes"
1898 fi
1899
1900 # Enable LZO compression
1901 # Check whether --enable-lzo was given.
1902 if test "${enable_lzo+set}" = set; then :
1903 enableval=$enable_lzo;
1904 fi
1905
1906 if test "$enable_lzo" = "yes"
1907 then
1908 MYDEFS="$MYDEFS -DMYLZO"
1909 MGWLIBS="-llzo2 $MGWLIBS"
1910 enables="$enables (lzo)"
1911 islzo="yes"
1912 fi
1913
1914 # Enable BZIP2 compression
1915 # Check whether --enable-bzip was given.
1916 if test "${enable_bzip+set}" = set; then :
1917 enableval=$enable_bzip;
1918 fi
1919
1920 if test "$enable_bzip" = "yes"
1921 then
1922 MYDEFS="$MYDEFS -DMYBZIP"
1923 MGWLIBS="-lbz2 $MGWLIBS"
1924 enables="$enables (bzip)"
1925 isbzip="yes"
1926 fi
1927
1928 # Enable ICONV utilities
1929 # Check whether --enable-iconv was given.
1930 if test "${enable_iconv+set}" = set; then :
1931 enableval=$enable_iconv;
1932 fi
1933
1934 if test "$enable_iconv" = "yes"
1935 then
1936 MYDEFS="$MYDEFS -DMYICONV"
1937 MGWLIBS="-liconv $MGWLIBS"
1938 enables="$enables (iconv)"
1939 isiconv="yes"
1940 fi
1941
1942 # No warning configuration
1943 # Check whether --enable-warn was given.
1944 if test "${enable_warn+set}" = set; then :
1945 enableval=$enable_warn;
1946 fi
1947
1948 if test "$enable_warn" = "no"
1949 then
1950 isnowarn="yes"
1951 fi
1952
1953 # Messages
1954 printf '#================================================================\n'
1955 printf '# Configuring QDBM version %s%s.\n' "$PACKAGE_VERSION" "$enables"
1956 printf '#================================================================\n'
1957
1958
1959
1960 #================================================================
1961 # Checking Commands to Build with
1962 #================================================================
1963
1964
1965 # C compiler
1966 ac_ext=c
1967 ac_cpp='$CPP $CPPFLAGS'
1968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1971 if test -n "$ac_tool_prefix"; then
1972 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1973 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1975 $as_echo_n "checking for $ac_word... " >&6; }
1976 if test "${ac_cv_prog_CC+set}" = set; then :
1977 $as_echo_n "(cached) " >&6
1978 else
1979 if test -n "$CC"; then
1980 ac_cv_prog_CC="$CC" # Let the user override the test.
1981 else
1982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983 for as_dir in $PATH
1984 do
1985 IFS=$as_save_IFS
1986 test -z "$as_dir" && as_dir=.
1987 for ac_exec_ext in '' $ac_executable_extensions; do
1988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1989 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1991 break 2
1992 fi
1993 done
1994 done
1995 IFS=$as_save_IFS
1996
1997 fi
1998 fi
1999 CC=$ac_cv_prog_CC
2000 if test -n "$CC"; then
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2002 $as_echo "$CC" >&6; }
2003 else
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2005 $as_echo "no" >&6; }
2006 fi
2007
2008
2009 fi
2010 if test -z "$ac_cv_prog_CC"; then
2011 ac_ct_CC=$CC
2012 # Extract the first word of "gcc", so it can be a program name with args.
2013 set dummy gcc; ac_word=$2
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2015 $as_echo_n "checking for $ac_word... " >&6; }
2016 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2017 $as_echo_n "(cached) " >&6
2018 else
2019 if test -n "$ac_ct_CC"; then
2020 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2021 else
2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023 for as_dir in $PATH
2024 do
2025 IFS=$as_save_IFS
2026 test -z "$as_dir" && as_dir=.
2027 for ac_exec_ext in '' $ac_executable_extensions; do
2028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2029 ac_cv_prog_ac_ct_CC="gcc"
2030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2031 break 2
2032 fi
2033 done
2034 done
2035 IFS=$as_save_IFS
2036
2037 fi
2038 fi
2039 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2040 if test -n "$ac_ct_CC"; then
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2042 $as_echo "$ac_ct_CC" >&6; }
2043 else
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2045 $as_echo "no" >&6; }
2046 fi
2047
2048 if test "x$ac_ct_CC" = x; then
2049 CC=""
2050 else
2051 case $cross_compiling:$ac_tool_warned in
2052 yes:)
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2055 ac_tool_warned=yes ;;
2056 esac
2057 CC=$ac_ct_CC
2058 fi
2059 else
2060 CC="$ac_cv_prog_CC"
2061 fi
2062
2063 if test -z "$CC"; then
2064 if test -n "$ac_tool_prefix"; then
2065 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2066 set dummy ${ac_tool_prefix}cc; ac_word=$2
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2068 $as_echo_n "checking for $ac_word... " >&6; }
2069 if test "${ac_cv_prog_CC+set}" = set; then :
2070 $as_echo_n "(cached) " >&6
2071 else
2072 if test -n "$CC"; then
2073 ac_cv_prog_CC="$CC" # Let the user override the test.
2074 else
2075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076 for as_dir in $PATH
2077 do
2078 IFS=$as_save_IFS
2079 test -z "$as_dir" && as_dir=.
2080 for ac_exec_ext in '' $ac_executable_extensions; do
2081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2082 ac_cv_prog_CC="${ac_tool_prefix}cc"
2083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2084 break 2
2085 fi
2086 done
2087 done
2088 IFS=$as_save_IFS
2089
2090 fi
2091 fi
2092 CC=$ac_cv_prog_CC
2093 if test -n "$CC"; then
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2095 $as_echo "$CC" >&6; }
2096 else
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2098 $as_echo "no" >&6; }
2099 fi
2100
2101
2102 fi
2103 fi
2104 if test -z "$CC"; then
2105 # Extract the first word of "cc", so it can be a program name with args.
2106 set dummy cc; ac_word=$2
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2108 $as_echo_n "checking for $ac_word... " >&6; }
2109 if test "${ac_cv_prog_CC+set}" = set; then :
2110 $as_echo_n "(cached) " >&6
2111 else
2112 if test -n "$CC"; then
2113 ac_cv_prog_CC="$CC" # Let the user override the test.
2114 else
2115 ac_prog_rejected=no
2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117 for as_dir in $PATH
2118 do
2119 IFS=$as_save_IFS
2120 test -z "$as_dir" && as_dir=.
2121 for ac_exec_ext in '' $ac_executable_extensions; do
2122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2123 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2124 ac_prog_rejected=yes
2125 continue
2126 fi
2127 ac_cv_prog_CC="cc"
2128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2129 break 2
2130 fi
2131 done
2132 done
2133 IFS=$as_save_IFS
2134
2135 if test $ac_prog_rejected = yes; then
2136 # We found a bogon in the path, so make sure we never use it.
2137 set dummy $ac_cv_prog_CC
2138 shift
2139 if test $# != 0; then
2140 # We chose a different compiler from the bogus one.
2141 # However, it has the same basename, so the bogon will be chosen
2142 # first if we set CC to just the basename; use the full file name.
2143 shift
2144 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2145 fi
2146 fi
2147 fi
2148 fi
2149 CC=$ac_cv_prog_CC
2150 if test -n "$CC"; then
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2152 $as_echo "$CC" >&6; }
2153 else
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2155 $as_echo "no" >&6; }
2156 fi
2157
2158
2159 fi
2160 if test -z "$CC"; then
2161 if test -n "$ac_tool_prefix"; then
2162 for ac_prog in cl.exe
2163 do
2164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2165 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2167 $as_echo_n "checking for $ac_word... " >&6; }
2168 if test "${ac_cv_prog_CC+set}" = set; then :
2169 $as_echo_n "(cached) " >&6
2170 else
2171 if test -n "$CC"; then
2172 ac_cv_prog_CC="$CC" # Let the user override the test.
2173 else
2174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2175 for as_dir in $PATH
2176 do
2177 IFS=$as_save_IFS
2178 test -z "$as_dir" && as_dir=.
2179 for ac_exec_ext in '' $ac_executable_extensions; do
2180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2181 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2183 break 2
2184 fi
2185 done
2186 done
2187 IFS=$as_save_IFS
2188
2189 fi
2190 fi
2191 CC=$ac_cv_prog_CC
2192 if test -n "$CC"; then
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2194 $as_echo "$CC" >&6; }
2195 else
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2197 $as_echo "no" >&6; }
2198 fi
2199
2200
2201 test -n "$CC" && break
2202 done
2203 fi
2204 if test -z "$CC"; then
2205 ac_ct_CC=$CC
2206 for ac_prog in cl.exe
2207 do
2208 # Extract the first word of "$ac_prog", so it can be a program name with args.
2209 set dummy $ac_prog; ac_word=$2
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2211 $as_echo_n "checking for $ac_word... " >&6; }
2212 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2213 $as_echo_n "(cached) " >&6
2214 else
2215 if test -n "$ac_ct_CC"; then
2216 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2217 else
2218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219 for as_dir in $PATH
2220 do
2221 IFS=$as_save_IFS
2222 test -z "$as_dir" && as_dir=.
2223 for ac_exec_ext in '' $ac_executable_extensions; do
2224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2225 ac_cv_prog_ac_ct_CC="$ac_prog"
2226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2227 break 2
2228 fi
2229 done
2230 done
2231 IFS=$as_save_IFS
2232
2233 fi
2234 fi
2235 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2236 if test -n "$ac_ct_CC"; then
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2238 $as_echo "$ac_ct_CC" >&6; }
2239 else
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2241 $as_echo "no" >&6; }
2242 fi
2243
2244
2245 test -n "$ac_ct_CC" && break
2246 done
2247
2248 if test "x$ac_ct_CC" = x; then
2249 CC=""
2250 else
2251 case $cross_compiling:$ac_tool_warned in
2252 yes:)
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2255 ac_tool_warned=yes ;;
2256 esac
2257 CC=$ac_ct_CC
2258 fi
2259 fi
2260
2261 fi
2262
2263
2264 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2266 as_fn_error "no acceptable C compiler found in \$PATH
2267 See \`config.log' for more details." "$LINENO" 5; }
2268
2269 # Provide some information about the compiler.
2270 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2271 set X $ac_compile
2272 ac_compiler=$2
2273 for ac_option in --version -v -V -qversion; do
2274 { { ac_try="$ac_compiler $ac_option >&5"
2275 case "(($ac_try" in
2276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277 *) ac_try_echo=$ac_try;;
2278 esac
2279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2280 $as_echo "$ac_try_echo"; } >&5
2281 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2282 ac_status=$?
2283 if test -s conftest.err; then
2284 sed '10a\
2285 ... rest of stderr output deleted ...
2286 10q' conftest.err >conftest.er1
2287 cat conftest.er1 >&5
2288 fi
2289 rm -f conftest.er1 conftest.err
2290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2291 test $ac_status = 0; }
2292 done
2293
2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295 /* end confdefs.h. */
2296
2297 int
2298 main ()
2299 {
2300
2301 ;
2302 return 0;
2303 }
2304 _ACEOF
2305 ac_clean_files_save=$ac_clean_files
2306 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2307 # Try to create an executable without -o first, disregard a.out.
2308 # It will help us diagnose broken compilers, and finding out an intuition
2309 # of exeext.
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2311 $as_echo_n "checking whether the C compiler works... " >&6; }
2312 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2313
2314 # The possible output files:
2315 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2316
2317 ac_rmfiles=
2318 for ac_file in $ac_files
2319 do
2320 case $ac_file in
2321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2322 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2323 esac
2324 done
2325 rm -f $ac_rmfiles
2326
2327 if { { ac_try="$ac_link_default"
2328 case "(($ac_try" in
2329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2330 *) ac_try_echo=$ac_try;;
2331 esac
2332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2333 $as_echo "$ac_try_echo"; } >&5
2334 (eval "$ac_link_default") 2>&5
2335 ac_status=$?
2336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2337 test $ac_status = 0; }; then :
2338 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2339 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2340 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2341 # so that the user can short-circuit this test for compilers unknown to
2342 # Autoconf.
2343 for ac_file in $ac_files ''
2344 do
2345 test -f "$ac_file" || continue
2346 case $ac_file in
2347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2348 ;;
2349 [ab].out )
2350 # We found the default executable, but exeext='' is most
2351 # certainly right.
2352 break;;
2353 *.* )
2354 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2355 then :; else
2356 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2357 fi
2358 # We set ac_cv_exeext here because the later test for it is not
2359 # safe: cross compilers may not add the suffix if given an `-o'
2360 # argument, so we may need to know it at that point already.
2361 # Even if this section looks crufty: it has the advantage of
2362 # actually working.
2363 break;;
2364 * )
2365 break;;
2366 esac
2367 done
2368 test "$ac_cv_exeext" = no && ac_cv_exeext=
2369
2370 else
2371 ac_file=''
2372 fi
2373 if test -z "$ac_file"; then :
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2375 $as_echo "no" >&6; }
2376 $as_echo "$as_me: failed program was:" >&5
2377 sed 's/^/| /' conftest.$ac_ext >&5
2378
2379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2381 { as_fn_set_status 77
2382 as_fn_error "C compiler cannot create executables
2383 See \`config.log' for more details." "$LINENO" 5; }; }
2384 else
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2386 $as_echo "yes" >&6; }
2387 fi
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2389 $as_echo_n "checking for C compiler default output file name... " >&6; }
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2391 $as_echo "$ac_file" >&6; }
2392 ac_exeext=$ac_cv_exeext
2393
2394 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2395 ac_clean_files=$ac_clean_files_save
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2397 $as_echo_n "checking for suffix of executables... " >&6; }
2398 if { { ac_try="$ac_link"
2399 case "(($ac_try" in
2400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401 *) ac_try_echo=$ac_try;;
2402 esac
2403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2404 $as_echo "$ac_try_echo"; } >&5
2405 (eval "$ac_link") 2>&5
2406 ac_status=$?
2407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2408 test $ac_status = 0; }; then :
2409 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2410 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2411 # work properly (i.e., refer to `conftest.exe'), while it won't with
2412 # `rm'.
2413 for ac_file in conftest.exe conftest conftest.*; do
2414 test -f "$ac_file" || continue
2415 case $ac_file in
2416 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2417 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2418 break;;
2419 * ) break;;
2420 esac
2421 done
2422 else
2423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2425 as_fn_error "cannot compute suffix of executables: cannot compile and link
2426 See \`config.log' for more details." "$LINENO" 5; }
2427 fi
2428 rm -f conftest conftest$ac_cv_exeext
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2430 $as_echo "$ac_cv_exeext" >&6; }
2431
2432 rm -f conftest.$ac_ext
2433 EXEEXT=$ac_cv_exeext
2434 ac_exeext=$EXEEXT
2435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2436 /* end confdefs.h. */
2437 #include <stdio.h>
2438 int
2439 main ()
2440 {
2441 FILE *f = fopen ("conftest.out", "w");
2442 return ferror (f) || fclose (f) != 0;
2443
2444 ;
2445 return 0;
2446 }
2447 _ACEOF
2448 ac_clean_files="$ac_clean_files conftest.out"
2449 # Check that the compiler produces executables we can run. If not, either
2450 # the compiler is broken, or we cross compile.
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2452 $as_echo_n "checking whether we are cross compiling... " >&6; }
2453 if test "$cross_compiling" != yes; then
2454 { { ac_try="$ac_link"
2455 case "(($ac_try" in
2456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457 *) ac_try_echo=$ac_try;;
2458 esac
2459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2460 $as_echo "$ac_try_echo"; } >&5
2461 (eval "$ac_link") 2>&5
2462 ac_status=$?
2463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2464 test $ac_status = 0; }
2465 if { ac_try='./conftest$ac_cv_exeext'
2466 { { case "(($ac_try" in
2467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468 *) ac_try_echo=$ac_try;;
2469 esac
2470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2471 $as_echo "$ac_try_echo"; } >&5
2472 (eval "$ac_try") 2>&5
2473 ac_status=$?
2474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2475 test $ac_status = 0; }; }; then
2476 cross_compiling=no
2477 else
2478 if test "$cross_compiling" = maybe; then
2479 cross_compiling=yes
2480 else
2481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2483 as_fn_error "cannot run C compiled programs.
2484 If you meant to cross compile, use \`--host'.
2485 See \`config.log' for more details." "$LINENO" 5; }
2486 fi
2487 fi
2488 fi
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2490 $as_echo "$cross_compiling" >&6; }
2491
2492 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2493 ac_clean_files=$ac_clean_files_save
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2495 $as_echo_n "checking for suffix of object files... " >&6; }
2496 if test "${ac_cv_objext+set}" = set; then :
2497 $as_echo_n "(cached) " >&6
2498 else
2499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2500 /* end confdefs.h. */
2501
2502 int
2503 main ()
2504 {
2505
2506 ;
2507 return 0;
2508 }
2509 _ACEOF
2510 rm -f conftest.o conftest.obj
2511 if { { ac_try="$ac_compile"
2512 case "(($ac_try" in
2513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514 *) ac_try_echo=$ac_try;;
2515 esac
2516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2517 $as_echo "$ac_try_echo"; } >&5
2518 (eval "$ac_compile") 2>&5
2519 ac_status=$?
2520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2521 test $ac_status = 0; }; then :
2522 for ac_file in conftest.o conftest.obj conftest.*; do
2523 test -f "$ac_file" || continue;
2524 case $ac_file in
2525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2526 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2527 break;;
2528 esac
2529 done
2530 else
2531 $as_echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2533
2534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2536 as_fn_error "cannot compute suffix of object files: cannot compile
2537 See \`config.log' for more details." "$LINENO" 5; }
2538 fi
2539 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2540 fi
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2542 $as_echo "$ac_cv_objext" >&6; }
2543 OBJEXT=$ac_cv_objext
2544 ac_objext=$OBJEXT
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2546 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2547 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2548 $as_echo_n "(cached) " >&6
2549 else
2550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2551 /* end confdefs.h. */
2552
2553 int
2554 main ()
2555 {
2556 #ifndef __GNUC__
2557 choke me
2558 #endif
2559
2560 ;
2561 return 0;
2562 }
2563 _ACEOF
2564 if ac_fn_c_try_compile "$LINENO"; then :
2565 ac_compiler_gnu=yes
2566 else
2567 ac_compiler_gnu=no
2568 fi
2569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2570 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2571
2572 fi
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2574 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2575 if test $ac_compiler_gnu = yes; then
2576 GCC=yes
2577 else
2578 GCC=
2579 fi
2580 ac_test_CFLAGS=${CFLAGS+set}
2581 ac_save_CFLAGS=$CFLAGS
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2583 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2584 if test "${ac_cv_prog_cc_g+set}" = set; then :
2585 $as_echo_n "(cached) " >&6
2586 else
2587 ac_save_c_werror_flag=$ac_c_werror_flag
2588 ac_c_werror_flag=yes
2589 ac_cv_prog_cc_g=no
2590 CFLAGS="-g"
2591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592 /* end confdefs.h. */
2593
2594 int
2595 main ()
2596 {
2597
2598 ;
2599 return 0;
2600 }
2601 _ACEOF
2602 if ac_fn_c_try_compile "$LINENO"; then :
2603 ac_cv_prog_cc_g=yes
2604 else
2605 CFLAGS=""
2606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2607 /* end confdefs.h. */
2608
2609 int
2610 main ()
2611 {
2612
2613 ;
2614 return 0;
2615 }
2616 _ACEOF
2617 if ac_fn_c_try_compile "$LINENO"; then :
2618
2619 else
2620 ac_c_werror_flag=$ac_save_c_werror_flag
2621 CFLAGS="-g"
2622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2623 /* end confdefs.h. */
2624
2625 int
2626 main ()
2627 {
2628
2629 ;
2630 return 0;
2631 }
2632 _ACEOF
2633 if ac_fn_c_try_compile "$LINENO"; then :
2634 ac_cv_prog_cc_g=yes
2635 fi
2636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637 fi
2638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639 fi
2640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641 ac_c_werror_flag=$ac_save_c_werror_flag
2642 fi
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2644 $as_echo "$ac_cv_prog_cc_g" >&6; }
2645 if test "$ac_test_CFLAGS" = set; then
2646 CFLAGS=$ac_save_CFLAGS
2647 elif test $ac_cv_prog_cc_g = yes; then
2648 if test "$GCC" = yes; then
2649 CFLAGS="-g -O2"
2650 else
2651 CFLAGS="-g"
2652 fi
2653 else
2654 if test "$GCC" = yes; then
2655 CFLAGS="-O2"
2656 else
2657 CFLAGS=
2658 fi
2659 fi
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2661 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2662 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2663 $as_echo_n "(cached) " >&6
2664 else
2665 ac_cv_prog_cc_c89=no
2666 ac_save_CC=$CC
2667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2668 /* end confdefs.h. */
2669 #include <stdarg.h>
2670 #include <stdio.h>
2671 #include <sys/types.h>
2672 #include <sys/stat.h>
2673 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2674 struct buf { int x; };
2675 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2676 static char *e (p, i)
2677 char **p;
2678 int i;
2679 {
2680 return p[i];
2681 }
2682 static char *f (char * (*g) (char **, int), char **p, ...)
2683 {
2684 char *s;
2685 va_list v;
2686 va_start (v,p);
2687 s = g (p, va_arg (v,int));
2688 va_end (v);
2689 return s;
2690 }
2691
2692 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2693 function prototypes and stuff, but not '\xHH' hex character constants.
2694 These don't provoke an error unfortunately, instead are silently treated
2695 as 'x'. The following induces an error, until -std is added to get
2696 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2697 array size at least. It's necessary to write '\x00'==0 to get something
2698 that's true only with -std. */
2699 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2700
2701 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2702 inside strings and character constants. */
2703 #define FOO(x) 'x'
2704 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2705
2706 int test (int i, double x);
2707 struct s1 {int (*f) (int a);};
2708 struct s2 {int (*f) (double a);};
2709 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2710 int argc;
2711 char **argv;
2712 int
2713 main ()
2714 {
2715 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2716 ;
2717 return 0;
2718 }
2719 _ACEOF
2720 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2721 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2722 do
2723 CC="$ac_save_CC $ac_arg"
2724 if ac_fn_c_try_compile "$LINENO"; then :
2725 ac_cv_prog_cc_c89=$ac_arg
2726 fi
2727 rm -f core conftest.err conftest.$ac_objext
2728 test "x$ac_cv_prog_cc_c89" != "xno" && break
2729 done
2730 rm -f conftest.$ac_ext
2731 CC=$ac_save_CC
2732
2733 fi
2734 # AC_CACHE_VAL
2735 case "x$ac_cv_prog_cc_c89" in
2736 x)
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2738 $as_echo "none needed" >&6; } ;;
2739 xno)
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2741 $as_echo "unsupported" >&6; } ;;
2742 *)
2743 CC="$CC $ac_cv_prog_cc_c89"
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2745 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2746 esac
2747 if test "x$ac_cv_prog_cc_c89" != xno; then :
2748
2749 fi
2750
2751 ac_ext=c
2752 ac_cpp='$CPP $CPPFLAGS'
2753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2756
2757 if test "$GCC" != "yes"
2758 then
2759 if test "$isnowarn" != "yes"
2760 then
2761 printf '#================================================================\n' 1>&2
2762 printf '# WARNING: GCC is required to build this package.\n' 1>&2
2763 printf '#================================================================\n' 1>&2
2764 fi
2765 fi
2766 if uname | egrep -i 'Linux' > /dev/null 2>&1 &&
2767 uname -m | egrep '(x|i)(3|4|5|6|7|8|9)?86' > /dev/null 2>&1
2768 then
2769 MYOPTS="-minline-all-stringops"
2770 fi
2771 if uname | egrep -i 'SunOS' > /dev/null 2>&1
2772 then
2773 MYOPTS="-O1 -fno-omit-frame-pointer -fno-force-addr"
2774 fi
2775 if uname | egrep -i 'BSD' > /dev/null 2>&1
2776 then
2777 MYOPTS="-O1 -fno-omit-frame-pointer -fno-force-addr"
2778 fi
2779 if gcc --version | egrep -i '^2\.(8|9)' > /dev/null 2>&1
2780 then
2781 MYOPTS="-O1 -fno-omit-frame-pointer -fno-force-addr"
2782 fi
2783
2784 # Linker
2785 printf 'checking for ld... '
2786 if which ld | grep '/ld$' > /dev/null 2>&1
2787 then
2788 LD=`which ld`
2789 printf '%s\n' "$LD"
2790 else
2791 printf 'no\n'
2792 if test "$isnowarn" != "yes"
2793 then
2794 printf '#================================================================\n' 1>&2
2795 printf '# WARNING: ld is not found in PATH.\n' 1>&2
2796 printf '#================================================================\n' 1>&2
2797 fi
2798 fi
2799
2800 # Archiver
2801 printf 'checking for ar... '
2802 if which ar | grep '/ar$' > /dev/null 2>&1
2803 then
2804 AR=`which ar`
2805 printf '%s\n' "$AR"
2806 else
2807 printf 'no\n'
2808 if test "$isnowarn" != "yes"
2809 then
2810 printf '#================================================================\n' 1>&2
2811 printf '# WARNING: ar is not found in PATH.\n' 1>&2
2812 printf '#================================================================\n' 1>&2
2813 fi
2814 fi
2815
2816
2817
2818 #================================================================
2819 # Checking Libraries
2820 #================================================================
2821
2822
2823 # Underlying libraries
2824
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lc" >&5
2826 $as_echo_n "checking for main in -lc... " >&6; }
2827 if test "${ac_cv_lib_c_main+set}" = set; then :
2828 $as_echo_n "(cached) " >&6
2829 else
2830 ac_check_lib_save_LIBS=$LIBS
2831 LIBS="-lc $LIBS"
2832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2833 /* end confdefs.h. */
2834
2835
2836 int
2837 main ()
2838 {
2839 return main ();
2840 ;
2841 return 0;
2842 }
2843 _ACEOF
2844 if ac_fn_c_try_link "$LINENO"; then :
2845 ac_cv_lib_c_main=yes
2846 else
2847 ac_cv_lib_c_main=no
2848 fi
2849 rm -f core conftest.err conftest.$ac_objext \
2850 conftest$ac_exeext conftest.$ac_ext
2851 LIBS=$ac_check_lib_save_LIBS
2852 fi
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_main" >&5
2854 $as_echo "$ac_cv_lib_c_main" >&6; }
2855 if test "x$ac_cv_lib_c_main" = x""yes; then :
2856 cat >>confdefs.h <<_ACEOF
2857 #define HAVE_LIBC 1
2858 _ACEOF
2859
2860 LIBS="-lc $LIBS"
2861
2862 fi
2863
2864
2865 # for pthread
2866 if test "$ispthread" = "yes"
2867 then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
2869 $as_echo_n "checking for main in -lpthread... " >&6; }
2870 if test "${ac_cv_lib_pthread_main+set}" = set; then :
2871 $as_echo_n "(cached) " >&6
2872 else
2873 ac_check_lib_save_LIBS=$LIBS
2874 LIBS="-lpthread $LIBS"
2875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2876 /* end confdefs.h. */
2877
2878
2879 int
2880 main ()
2881 {
2882 return main ();
2883 ;
2884 return 0;
2885 }
2886 _ACEOF
2887 if ac_fn_c_try_link "$LINENO"; then :
2888 ac_cv_lib_pthread_main=yes
2889 else
2890 ac_cv_lib_pthread_main=no
2891 fi
2892 rm -f core conftest.err conftest.$ac_objext \
2893 conftest$ac_exeext conftest.$ac_ext
2894 LIBS=$ac_check_lib_save_LIBS
2895 fi
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
2897 $as_echo "$ac_cv_lib_pthread_main" >&6; }
2898 if test "x$ac_cv_lib_pthread_main" = x""yes; then :
2899 cat >>confdefs.h <<_ACEOF
2900 #define HAVE_LIBPTHREAD 1
2901 _ACEOF
2902
2903 LIBS="-lpthread $LIBS"
2904
2905 fi
2906
2907 fi
2908
2909 # for zlib
2910 if test "$iszlib" = "yes"
2911 then
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lz" >&5
2913 $as_echo_n "checking for main in -lz... " >&6; }
2914 if test "${ac_cv_lib_z_main+set}" = set; then :
2915 $as_echo_n "(cached) " >&6
2916 else
2917 ac_check_lib_save_LIBS=$LIBS
2918 LIBS="-lz $LIBS"
2919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2920 /* end confdefs.h. */
2921
2922
2923 int
2924 main ()
2925 {
2926 return main ();
2927 ;
2928 return 0;
2929 }
2930 _ACEOF
2931 if ac_fn_c_try_link "$LINENO"; then :
2932 ac_cv_lib_z_main=yes
2933 else
2934 ac_cv_lib_z_main=no
2935 fi
2936 rm -f core conftest.err conftest.$ac_objext \
2937 conftest$ac_exeext conftest.$ac_ext
2938 LIBS=$ac_check_lib_save_LIBS
2939 fi
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_main" >&5
2941 $as_echo "$ac_cv_lib_z_main" >&6; }
2942 if test "x$ac_cv_lib_z_main" = x""yes; then :
2943 cat >>confdefs.h <<_ACEOF
2944 #define HAVE_LIBZ 1
2945 _ACEOF
2946
2947 LIBS="-lz $LIBS"
2948
2949 fi
2950
2951 fi
2952
2953 # for lzo
2954 if test "$islzo" = "yes"
2955 then
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -llzo2" >&5
2957 $as_echo_n "checking for main in -llzo2... " >&6; }
2958 if test "${ac_cv_lib_lzo2_main+set}" = set; then :
2959 $as_echo_n "(cached) " >&6
2960 else
2961 ac_check_lib_save_LIBS=$LIBS
2962 LIBS="-llzo2 $LIBS"
2963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2964 /* end confdefs.h. */
2965
2966
2967 int
2968 main ()
2969 {
2970 return main ();
2971 ;
2972 return 0;
2973 }
2974 _ACEOF
2975 if ac_fn_c_try_link "$LINENO"; then :
2976 ac_cv_lib_lzo2_main=yes
2977 else
2978 ac_cv_lib_lzo2_main=no
2979 fi
2980 rm -f core conftest.err conftest.$ac_objext \
2981 conftest$ac_exeext conftest.$ac_ext
2982 LIBS=$ac_check_lib_save_LIBS
2983 fi
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_main" >&5
2985 $as_echo "$ac_cv_lib_lzo2_main" >&6; }
2986 if test "x$ac_cv_lib_lzo2_main" = x""yes; then :
2987 cat >>confdefs.h <<_ACEOF
2988 #define HAVE_LIBLZO2 1
2989 _ACEOF
2990
2991 LIBS="-llzo2 $LIBS"
2992
2993 fi
2994
2995 fi
2996
2997 # for bzip
2998 if test "$isbzip" = "yes"
2999 then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lbz2" >&5
3001 $as_echo_n "checking for main in -lbz2... " >&6; }
3002 if test "${ac_cv_lib_bz2_main+set}" = set; then :
3003 $as_echo_n "(cached) " >&6
3004 else
3005 ac_check_lib_save_LIBS=$LIBS
3006 LIBS="-lbz2 $LIBS"
3007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3008 /* end confdefs.h. */
3009
3010
3011 int
3012 main ()
3013 {
3014 return main ();
3015 ;
3016 return 0;
3017 }
3018 _ACEOF
3019 if ac_fn_c_try_link "$LINENO"; then :
3020 ac_cv_lib_bz2_main=yes
3021 else
3022 ac_cv_lib_bz2_main=no
3023 fi
3024 rm -f core conftest.err conftest.$ac_objext \
3025 conftest$ac_exeext conftest.$ac_ext
3026 LIBS=$ac_check_lib_save_LIBS
3027 fi
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_main" >&5
3029 $as_echo "$ac_cv_lib_bz2_main" >&6; }
3030 if test "x$ac_cv_lib_bz2_main" = x""yes; then :
3031 cat >>confdefs.h <<_ACEOF
3032 #define HAVE_LIBBZ2 1
3033 _ACEOF
3034
3035 LIBS="-lbz2 $LIBS"
3036
3037 fi
3038
3039 fi
3040
3041 # for iconv
3042 if test "$isiconv" = "yes"
3043 then
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -liconv" >&5
3045 $as_echo_n "checking for main in -liconv... " >&6; }
3046 if test "${ac_cv_lib_iconv_main+set}" = set; then :
3047 $as_echo_n "(cached) " >&6
3048 else
3049 ac_check_lib_save_LIBS=$LIBS
3050 LIBS="-liconv $LIBS"
3051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3052 /* end confdefs.h. */
3053
3054
3055 int
3056 main ()
3057 {
3058 return main ();
3059 ;
3060 return 0;
3061 }
3062 _ACEOF
3063 if ac_fn_c_try_link "$LINENO"; then :
3064 ac_cv_lib_iconv_main=yes
3065 else
3066 ac_cv_lib_iconv_main=no
3067 fi
3068 rm -f core conftest.err conftest.$ac_objext \
3069 conftest$ac_exeext conftest.$ac_ext
3070 LIBS=$ac_check_lib_save_LIBS
3071 fi
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_main" >&5
3073 $as_echo "$ac_cv_lib_iconv_main" >&6; }
3074 if test "x$ac_cv_lib_iconv_main" = x""yes; then :
3075 cat >>confdefs.h <<_ACEOF
3076 #define HAVE_LIBICONV 1
3077 _ACEOF
3078
3079 LIBS="-liconv $LIBS"
3080
3081 fi
3082
3083 fi
3084
3085 # For old BSDs
3086 if test "$ispthread" = "yes" && uname -a | grep BSD > /dev/null &&
3087 test -f /usr/lib/libc_r.a && test ! -f /usr/lib/libpthread.a
3088 then
3089 LIBS=`printf '%s' "$LIBS" | sed 's/-lc/-lc_r/g'`
3090 fi
3091
3092 # Duplication of QDBM for C
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lqdbm" >&5
3094 $as_echo_n "checking for main in -lqdbm... " >&6; }
3095 if test "${ac_cv_lib_qdbm_main+set}" = set; then :
3096 $as_echo_n "(cached) " >&6
3097 else
3098 ac_check_lib_save_LIBS=$LIBS
3099 LIBS="-lqdbm $LIBS"
3100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3101 /* end confdefs.h. */
3102
3103
3104 int
3105 main ()
3106 {
3107 return main ();
3108 ;
3109 return 0;
3110 }
3111 _ACEOF
3112 if ac_fn_c_try_link "$LINENO"; then :
3113 ac_cv_lib_qdbm_main=yes
3114 else
3115 ac_cv_lib_qdbm_main=no
3116 fi
3117 rm -f core conftest.err conftest.$ac_objext \
3118 conftest$ac_exeext conftest.$ac_ext
3119 LIBS=$ac_check_lib_save_LIBS
3120 fi
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qdbm_main" >&5
3122 $as_echo "$ac_cv_lib_qdbm_main" >&6; }
3123 if test "x$ac_cv_lib_qdbm_main" = x""yes; then :
3124 if test "$isnowarn" != "yes"
3125 then
3126 printf '#================================================================\n' 1>&2
3127 printf '# WARNING: The existing library was detected.\n' 1>&2
3128 printf '#================================================================\n' 1>&2
3129 fi
3130
3131 fi
3132
3133
3134
3135
3136 #================================================================
3137 # Generic Settings
3138 #================================================================
3139
3140
3141 # Export variables
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153 # Targets
3154 ac_config_files="$ac_config_files Makefile LTmakefile qdbm.spec qdbm.pc"
3155
3156 cat >confcache <<\_ACEOF
3157 # This file is a shell script that caches the results of configure
3158 # tests run on this system so they can be shared between configure
3159 # scripts and configure runs, see configure's option --config-cache.
3160 # It is not useful on other systems. If it contains results you don't
3161 # want to keep, you may remove or edit it.
3162 #
3163 # config.status only pays attention to the cache file if you give it
3164 # the --recheck option to rerun configure.
3165 #
3166 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3167 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3168 # following values.
3169
3170 _ACEOF
3171
3172 # The following way of writing the cache mishandles newlines in values,
3173 # but we know of no workaround that is simple, portable, and efficient.
3174 # So, we kill variables containing newlines.
3175 # Ultrix sh set writes to stderr and can't be redirected directly,
3176 # and sets the high bit in the cache file unless we assign to the vars.
3177 (
3178 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3179 eval ac_val=\$$ac_var
3180 case $ac_val in #(
3181 *${as_nl}*)
3182 case $ac_var in #(
3183 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3184 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3185 esac
3186 case $ac_var in #(
3187 _ | IFS | as_nl) ;; #(
3188 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3189 *) { eval $ac_var=; unset $ac_var;} ;;
3190 esac ;;
3191 esac
3192 done
3193
3194 (set) 2>&1 |
3195 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3196 *${as_nl}ac_space=\ *)
3197 # `set' does not quote correctly, so add quotes: double-quote
3198 # substitution turns \\\\ into \\, and sed turns \\ into \.
3199 sed -n \
3200 "s/'/'\\\\''/g;
3201 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3202 ;; #(
3203 *)
3204 # `set' quotes correctly as required by POSIX, so do not add quotes.
3205 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3206 ;;
3207 esac |
3208 sort
3209 ) |
3210 sed '
3211 /^ac_cv_env_/b end
3212 t clear
3213 :clear
3214 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3215 t end
3216 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3217 :end' >>confcache
3218 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3219 if test -w "$cache_file"; then
3220 test "x$cache_file" != "x/dev/null" &&
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3222 $as_echo "$as_me: updating cache $cache_file" >&6;}
3223 cat confcache >$cache_file
3224 else
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3226 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3227 fi
3228 fi
3229 rm -f confcache
3230
3231 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3232 # Let make expand exec_prefix.
3233 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3234
3235 # Transform confdefs.h into DEFS.
3236 # Protect against shell expansion while executing Makefile rules.
3237 # Protect against Makefile macro expansion.
3238 #
3239 # If the first sed substitution is executed (which looks for macros that
3240 # take arguments), then branch to the quote section. Otherwise,
3241 # look for a macro that doesn't take arguments.
3242 ac_script='
3243 :mline
3244 /\\$/{
3245 N
3246 s,\\\n,,
3247 b mline
3248 }
3249 t clear
3250 :clear
3251 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
3252 t quote
3253 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
3254 t quote
3255 b any
3256 :quote
3257 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3258 s/\[/\\&/g
3259 s/\]/\\&/g
3260 s/\$/$$/g
3261 H
3262 :any
3263 ${
3264 g
3265 s/^\n//
3266 s/\n/ /g
3267 p
3268 }
3269 '
3270 DEFS=`sed -n "$ac_script" confdefs.h`
3271
3272
3273 ac_libobjs=
3274 ac_ltlibobjs=
3275 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3276 # 1. Remove the extension, and $U if already installed.
3277 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3278 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3279 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3280 # will be set to the directory where LIBOBJS objects are built.
3281 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3282 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3283 done
3284 LIBOBJS=$ac_libobjs
3285
3286 LTLIBOBJS=$ac_ltlibobjs
3287
3288
3289
3290 : ${CONFIG_STATUS=./config.status}
3291 ac_write_fail=0
3292 ac_clean_files_save=$ac_clean_files
3293 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3295 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3296 as_write_fail=0
3297 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3298 #! $SHELL
3299 # Generated by $as_me.
3300 # Run this file to recreate the current configuration.
3301 # Compiler output produced by configure, useful for debugging
3302 # configure, is in config.log if it exists.
3303
3304 debug=false
3305 ac_cs_recheck=false
3306 ac_cs_silent=false
3307
3308 SHELL=\${CONFIG_SHELL-$SHELL}
3309 export SHELL
3310 _ASEOF
3311 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3312 ## -------------------- ##
3313 ## M4sh Initialization. ##
3314 ## -------------------- ##
3315
3316 # Be more Bourne compatible
3317 DUALCASE=1; export DUALCASE # for MKS sh
3318 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3319 emulate sh
3320 NULLCMD=:
3321 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3322 # is contrary to our usage. Disable this feature.
3323 alias -g '${1+"$@"}'='"$@"'
3324 setopt NO_GLOB_SUBST
3325 else
3326 case `(set -o) 2>/dev/null` in #(
3327 *posix*) :
3328 set -o posix ;; #(
3329 *) :
3330 ;;
3331 esac
3332 fi
3333
3334
3335 as_nl='
3336 '
3337 export as_nl
3338 # Printing a long string crashes Solaris 7 /usr/bin/printf.
3339 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3340 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3341 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3342 # Prefer a ksh shell builtin over an external printf program on Solaris,
3343 # but without wasting forks for bash or zsh.
3344 if test -z "$BASH_VERSION$ZSH_VERSION" \
3345 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3346 as_echo='print -r --'
3347 as_echo_n='print -rn --'
3348 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3349 as_echo='printf %s\n'
3350 as_echo_n='printf %s'
3351 else
3352 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3353 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3354 as_echo_n='/usr/ucb/echo -n'
3355 else
3356 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3357 as_echo_n_body='eval
3358 arg=$1;
3359 case $arg in #(
3360 *"$as_nl"*)
3361 expr "X$arg" : "X\\(.*\\)$as_nl";
3362 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3363 esac;
3364 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3365 '
3366 export as_echo_n_body
3367 as_echo_n='sh -c $as_echo_n_body as_echo'
3368 fi
3369 export as_echo_body
3370 as_echo='sh -c $as_echo_body as_echo'
3371 fi
3372
3373 # The user is always right.
3374 if test "${PATH_SEPARATOR+set}" != set; then
3375 PATH_SEPARATOR=:
3376 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3377 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3378 PATH_SEPARATOR=';'
3379 }
3380 fi
3381
3382
3383 # IFS
3384 # We need space, tab and new line, in precisely that order. Quoting is
3385 # there to prevent editors from complaining about space-tab.
3386 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3387 # splitting by setting IFS to empty value.)
3388 IFS=" "" $as_nl"
3389
3390 # Find who we are. Look in the path if we contain no directory separator.
3391 case $0 in #((
3392 *[\\/]* ) as_myself=$0 ;;
3393 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394 for as_dir in $PATH
3395 do
3396 IFS=$as_save_IFS
3397 test -z "$as_dir" && as_dir=.
3398 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3399 done
3400 IFS=$as_save_IFS
3401
3402 ;;
3403 esac
3404 # We did not find ourselves, most probably we were run as `sh COMMAND'
3405 # in which case we are not to be found in the path.
3406 if test "x$as_myself" = x; then
3407 as_myself=$0
3408 fi
3409 if test ! -f "$as_myself"; then
3410 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3411 exit 1
3412 fi
3413
3414 # Unset variables that we do not need and which cause bugs (e.g. in
3415 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3416 # suppresses any "Segmentation fault" message there. '((' could
3417 # trigger a bug in pdksh 5.2.14.
3418 for as_var in BASH_ENV ENV MAIL MAILPATH
3419 do eval test x\${$as_var+set} = xset \
3420 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3421 done
3422 PS1='$ '
3423 PS2='> '
3424 PS4='+ '
3425
3426 # NLS nuisances.
3427 LC_ALL=C
3428 export LC_ALL
3429 LANGUAGE=C
3430 export LANGUAGE
3431
3432 # CDPATH.
3433 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3434
3435
3436 # as_fn_error ERROR [LINENO LOG_FD]
3437 # ---------------------------------
3438 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3439 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3440 # script with status $?, using 1 if that was 0.
3441 as_fn_error ()
3442 {
3443 as_status=$?; test $as_status -eq 0 && as_status=1
3444 if test "$3"; then
3445 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3446 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
3447 fi
3448 $as_echo "$as_me: error: $1" >&2
3449 as_fn_exit $as_status
3450 } # as_fn_error
3451
3452
3453 # as_fn_set_status STATUS
3454 # -----------------------
3455 # Set $? to STATUS, without forking.
3456 as_fn_set_status ()
3457 {
3458 return $1
3459 } # as_fn_set_status
3460
3461 # as_fn_exit STATUS
3462 # -----------------
3463 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3464 as_fn_exit ()
3465 {
3466 set +e
3467 as_fn_set_status $1
3468 exit $1
3469 } # as_fn_exit
3470
3471 # as_fn_unset VAR
3472 # ---------------
3473 # Portably unset VAR.
3474 as_fn_unset ()
3475 {
3476 { eval $1=; unset $1;}
3477 }
3478 as_unset=as_fn_unset
3479 # as_fn_append VAR VALUE
3480 # ----------------------
3481 # Append the text in VALUE to the end of the definition contained in VAR. Take
3482 # advantage of any shell optimizations that allow amortized linear growth over
3483 # repeated appends, instead of the typical quadratic growth present in naive
3484 # implementations.
3485 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3486 eval 'as_fn_append ()
3487 {
3488 eval $1+=\$2
3489 }'
3490 else
3491 as_fn_append ()
3492 {
3493 eval $1=\$$1\$2
3494 }
3495 fi # as_fn_append
3496
3497 # as_fn_arith ARG...
3498 # ------------------
3499 # Perform arithmetic evaluation on the ARGs, and store the result in the
3500 # global $as_val. Take advantage of shells that can avoid forks. The arguments
3501 # must be portable across $(()) and expr.
3502 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3503 eval 'as_fn_arith ()
3504 {
3505 as_val=$(( $* ))
3506 }'
3507 else
3508 as_fn_arith ()
3509 {
3510 as_val=`expr "$@" || test $? -eq 1`
3511 }
3512 fi # as_fn_arith
3513
3514
3515 if expr a : '\(a\)' >/dev/null 2>&1 &&
3516 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3517 as_expr=expr
3518 else
3519 as_expr=false
3520 fi
3521
3522 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3523 as_basename=basename
3524 else
3525 as_basename=false
3526 fi
3527
3528 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3529 as_dirname=dirname
3530 else
3531 as_dirname=false
3532 fi
3533
3534 as_me=`$as_basename -- "$0" ||
3535 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3536 X"$0" : 'X\(//\)$' \| \
3537 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3538 $as_echo X/"$0" |
3539 sed '/^.*\/\([^/][^/]*\)\/*$/{
3540 s//\1/
3541 q
3542 }
3543 /^X\/\(\/\/\)$/{
3544 s//\1/
3545 q
3546 }
3547 /^X\/\(\/\).*/{
3548 s//\1/
3549 q
3550 }
3551 s/.*/./; q'`
3552
3553 # Avoid depending upon Character Ranges.
3554 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3555 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3556 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3557 as_cr_digits='0123456789'
3558 as_cr_alnum=$as_cr_Letters$as_cr_digits
3559
3560 ECHO_C= ECHO_N= ECHO_T=
3561 case `echo -n x` in #(((((
3562 -n*)
3563 case `echo 'xy\c'` in
3564 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3565 xy) ECHO_C='\c';;
3566 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3567 ECHO_T=' ';;
3568 esac;;
3569 *)
3570 ECHO_N='-n';;
3571 esac
3572
3573 rm -f conf$$ conf$$.exe conf$$.file
3574 if test -d conf$$.dir; then
3575 rm -f conf$$.dir/conf$$.file
3576 else
3577 rm -f conf$$.dir
3578 mkdir conf$$.dir 2>/dev/null
3579 fi
3580 if (echo >conf$$.file) 2>/dev/null; then
3581 if ln -s conf$$.file conf$$ 2>/dev/null; then
3582 as_ln_s='ln -s'
3583 # ... but there are two gotchas:
3584 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3585 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3586 # In both cases, we have to default to `cp -p'.
3587 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3588 as_ln_s='cp -p'
3589 elif ln conf$$.file conf$$ 2>/dev/null; then
3590 as_ln_s=ln
3591 else
3592 as_ln_s='cp -p'
3593 fi
3594 else
3595 as_ln_s='cp -p'
3596 fi
3597 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3598 rmdir conf$$.dir 2>/dev/null
3599
3600
3601 # as_fn_mkdir_p
3602 # -------------
3603 # Create "$as_dir" as a directory, including parents if necessary.
3604 as_fn_mkdir_p ()
3605 {
3606
3607 case $as_dir in #(
3608 -*) as_dir=./$as_dir;;
3609 esac
3610 test -d "$as_dir" || eval $as_mkdir_p || {
3611 as_dirs=
3612 while :; do
3613 case $as_dir in #(
3614 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3615 *) as_qdir=$as_dir;;
3616 esac
3617 as_dirs="'$as_qdir' $as_dirs"
3618 as_dir=`$as_dirname -- "$as_dir" ||
3619 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3620 X"$as_dir" : 'X\(//\)[^/]' \| \
3621 X"$as_dir" : 'X\(//\)$' \| \
3622 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3623 $as_echo X"$as_dir" |
3624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3625 s//\1/
3626 q
3627 }
3628 /^X\(\/\/\)[^/].*/{
3629 s//\1/
3630 q
3631 }
3632 /^X\(\/\/\)$/{
3633 s//\1/
3634 q
3635 }
3636 /^X\(\/\).*/{
3637 s//\1/
3638 q
3639 }
3640 s/.*/./; q'`
3641 test -d "$as_dir" && break
3642 done
3643 test -z "$as_dirs" || eval "mkdir $as_dirs"
3644 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
3645
3646
3647 } # as_fn_mkdir_p
3648 if mkdir -p . 2>/dev/null; then
3649 as_mkdir_p='mkdir -p "$as_dir"'
3650 else
3651 test -d ./-p && rmdir ./-p
3652 as_mkdir_p=false
3653 fi
3654
3655 if test -x / >/dev/null 2>&1; then
3656 as_test_x='test -x'
3657 else
3658 if ls -dL / >/dev/null 2>&1; then
3659 as_ls_L_option=L
3660 else
3661 as_ls_L_option=
3662 fi
3663 as_test_x='
3664 eval sh -c '\''
3665 if test -d "$1"; then
3666 test -d "$1/.";
3667 else
3668 case $1 in #(
3669 -*)set "./$1";;
3670 esac;
3671 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
3672 ???[sx]*):;;*)false;;esac;fi
3673 '\'' sh
3674 '
3675 fi
3676 as_executable_p=$as_test_x
3677
3678 # Sed expression to map a string onto a valid CPP name.
3679 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3680
3681 # Sed expression to map a string onto a valid variable name.
3682 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3683
3684
3685 exec 6>&1
3686 ## ----------------------------------- ##
3687 ## Main body of $CONFIG_STATUS script. ##
3688 ## ----------------------------------- ##
3689 _ASEOF
3690 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3691
3692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3693 # Save the log message, to keep $0 and so on meaningful, and to
3694 # report actual input values of CONFIG_FILES etc. instead of their
3695 # values after options handling.
3696 ac_log="
3697 This file was extended by qdbm $as_me 1.8.78, which was
3698 generated by GNU Autoconf 2.65. Invocation command line was
3699
3700 CONFIG_FILES = $CONFIG_FILES
3701 CONFIG_HEADERS = $CONFIG_HEADERS
3702 CONFIG_LINKS = $CONFIG_LINKS
3703 CONFIG_COMMANDS = $CONFIG_COMMANDS
3704 $ $0 $@
3705
3706 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3707 "
3708
3709 _ACEOF
3710
3711 case $ac_config_files in *"
3712 "*) set x $ac_config_files; shift; ac_config_files=$*;;
3713 esac
3714
3715
3716
3717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3718 # Files that config.status was made for.
3719 config_files="$ac_config_files"
3720
3721 _ACEOF
3722
3723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3724 ac_cs_usage="\
3725 \`$as_me' instantiates files and other configuration actions
3726 from templates according to the current configuration. Unless the files
3727 and actions are specified as TAGs, all are instantiated by default.
3728
3729 Usage: $0 [OPTION]... [TAG]...
3730
3731 -h, --help print this help, then exit
3732 -V, --version print version number and configuration settings, then exit
3733 --config print configuration, then exit
3734 -q, --quiet, --silent
3735 do not print progress messages
3736 -d, --debug don't remove temporary files
3737 --recheck update $as_me by reconfiguring in the same conditions
3738 --file=FILE[:TEMPLATE]
3739 instantiate the configuration file FILE
3740
3741 Configuration files:
3742 $config_files
3743
3744 Report bugs to the package provider."
3745
3746 _ACEOF
3747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3748 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3749 ac_cs_version="\\
3750 qdbm config.status 1.8.78
3751 configured by $0, generated by GNU Autoconf 2.65,
3752 with options \\"\$ac_cs_config\\"
3753
3754 Copyright (C) 2009 Free Software Foundation, Inc.
3755 This config.status script is free software; the Free Software Foundation
3756 gives unlimited permission to copy, distribute and modify it."
3757
3758 ac_pwd='$ac_pwd'
3759 srcdir='$srcdir'
3760 test -n "\$AWK" || AWK=awk
3761 _ACEOF
3762
3763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3764 # The default lists apply if the user does not specify any file.
3765 ac_need_defaults=:
3766 while test $# != 0
3767 do
3768 case $1 in
3769 --*=*)
3770 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3771 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3772 ac_shift=:
3773 ;;
3774 *)
3775 ac_option=$1
3776 ac_optarg=$2
3777 ac_shift=shift
3778 ;;
3779 esac
3780
3781 case $ac_option in
3782 # Handling of the options.
3783 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3784 ac_cs_recheck=: ;;
3785 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3786 $as_echo "$ac_cs_version"; exit ;;
3787 --config | --confi | --conf | --con | --co | --c )
3788 $as_echo "$ac_cs_config"; exit ;;
3789 --debug | --debu | --deb | --de | --d | -d )
3790 debug=: ;;
3791 --file | --fil | --fi | --f )
3792 $ac_shift
3793 case $ac_optarg in
3794 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3795 esac
3796 as_fn_append CONFIG_FILES " '$ac_optarg'"
3797 ac_need_defaults=false;;
3798 --he | --h | --help | --hel | -h )
3799 $as_echo "$ac_cs_usage"; exit ;;
3800 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3801 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3802 ac_cs_silent=: ;;
3803
3804 # This is an error.
3805 -*) as_fn_error "unrecognized option: \`$1'
3806 Try \`$0 --help' for more information." ;;
3807
3808 *) as_fn_append ac_config_targets " $1"
3809 ac_need_defaults=false ;;
3810
3811 esac
3812 shift
3813 done
3814
3815 ac_configure_extra_args=
3816
3817 if $ac_cs_silent; then
3818 exec 6>/dev/null
3819 ac_configure_extra_args="$ac_configure_extra_args --silent"
3820 fi
3821
3822 _ACEOF
3823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3824 if \$ac_cs_recheck; then
3825 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3826 shift
3827 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3828 CONFIG_SHELL='$SHELL'
3829 export CONFIG_SHELL
3830 exec "\$@"
3831 fi
3832
3833 _ACEOF
3834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3835 exec 5>>config.log
3836 {
3837 echo
3838 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3839 ## Running $as_me. ##
3840 _ASBOX
3841 $as_echo "$ac_log"
3842 } >&5
3843
3844 _ACEOF
3845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3846 _ACEOF
3847
3848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3849
3850 # Handling of arguments.
3851 for ac_config_target in $ac_config_targets
3852 do
3853 case $ac_config_target in
3854 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3855 "LTmakefile") CONFIG_FILES="$CONFIG_FILES LTmakefile" ;;
3856 "qdbm.spec") CONFIG_FILES="$CONFIG_FILES qdbm.spec" ;;
3857 "qdbm.pc") CONFIG_FILES="$CONFIG_FILES qdbm.pc" ;;
3858
3859 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3860 esac
3861 done
3862
3863
3864 # If the user did not use the arguments to specify the items to instantiate,
3865 # then the envvar interface is used. Set only those that are not.
3866 # We use the long form for the default assignment because of an extremely
3867 # bizarre bug on SunOS 4.1.3.
3868 if $ac_need_defaults; then
3869 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3870 fi
3871
3872 # Have a temporary directory for convenience. Make it in the build tree
3873 # simply because there is no reason against having it here, and in addition,
3874 # creating and moving files from /tmp can sometimes cause problems.
3875 # Hook for its removal unless debugging.
3876 # Note that there is a small window in which the directory will not be cleaned:
3877 # after its creation but before its name has been assigned to `$tmp'.
3878 $debug ||
3879 {
3880 tmp=
3881 trap 'exit_status=$?
3882 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
3883 ' 0
3884 trap 'as_fn_exit 1' 1 2 13 15
3885 }
3886 # Create a (secure) tmp directory for tmp files.
3887
3888 {
3889 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3890 test -n "$tmp" && test -d "$tmp"
3891 } ||
3892 {
3893 tmp=./conf$$-$RANDOM
3894 (umask 077 && mkdir "$tmp")
3895 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
3896
3897 # Set up the scripts for CONFIG_FILES section.
3898 # No need to generate them if there are no CONFIG_FILES.
3899 # This happens for instance with `./config.status config.h'.
3900 if test -n "$CONFIG_FILES"; then
3901
3902
3903 ac_cr=`echo X | tr X '\015'`
3904 # On cygwin, bash can eat \r inside `` if the user requested igncr.
3905 # But we know of no other shell where ac_cr would be empty at this
3906 # point, so we can use a bashism as a fallback.
3907 if test "x$ac_cr" = x; then
3908 eval ac_cr=\$\'\\r\'
3909 fi
3910 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3911 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3912 ac_cs_awk_cr='\r'
3913 else
3914 ac_cs_awk_cr=$ac_cr
3915 fi
3916
3917 echo 'BEGIN {' >"$tmp/subs1.awk" &&
3918 _ACEOF
3919
3920
3921 {
3922 echo "cat >conf$$subs.awk <<_ACEOF" &&
3923 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3924 echo "_ACEOF"
3925 } >conf$$subs.sh ||
3926 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
3927 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
3928 ac_delim='%!_!# '
3929 for ac_last_try in false false false false false :; do
3930 . ./conf$$subs.sh ||
3931 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
3932
3933 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3934 if test $ac_delim_n = $ac_delim_num; then
3935 break
3936 elif $ac_last_try; then
3937 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
3938 else
3939 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3940 fi
3941 done
3942 rm -f conf$$subs.sh
3943
3944 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3945 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
3946 _ACEOF
3947 sed -n '
3948 h
3949 s/^/S["/; s/!.*/"]=/
3950 p
3951 g
3952 s/^[^!]*!//
3953 :repl
3954 t repl
3955 s/'"$ac_delim"'$//
3956 t delim
3957 :nl
3958 h
3959 s/\(.\{148\}\)..*/\1/
3960 t more1
3961 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3962 p
3963 n
3964 b repl
3965 :more1
3966 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3967 p
3968 g
3969 s/.\{148\}//
3970 t nl
3971 :delim
3972 h
3973 s/\(.\{148\}\)..*/\1/
3974 t more2
3975 s/["\\]/\\&/g; s/^/"/; s/$/"/
3976 p
3977 b
3978 :more2
3979 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3980 p
3981 g
3982 s/.\{148\}//
3983 t delim
3984 ' <conf$$subs.awk | sed '
3985 /^[^""]/{
3986 N
3987 s/\n//
3988 }
3989 ' >>$CONFIG_STATUS || ac_write_fail=1
3990 rm -f conf$$subs.awk
3991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3992 _ACAWK
3993 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
3994 for (key in S) S_is_set[key] = 1
3995 FS = ""
3996
3997 }
3998 {
3999 line = $ 0
4000 nfields = split(line, field, "@")
4001 substed = 0
4002 len = length(field[1])
4003 for (i = 2; i < nfields; i++) {
4004 key = field[i]
4005 keylen = length(key)
4006 if (S_is_set[key]) {
4007 value = S[key]
4008 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4009 len += length(value) + length(field[++i])
4010 substed = 1
4011 } else
4012 len += 1 + keylen
4013 }
4014
4015 print line
4016 }
4017
4018 _ACAWK
4019 _ACEOF
4020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4021 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4022 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4023 else
4024 cat
4025 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
4026 || as_fn_error "could not setup config files machinery" "$LINENO" 5
4027 _ACEOF
4028
4029 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4030 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4031 # trailing colons and then remove the whole line if VPATH becomes empty
4032 # (actually we leave an empty line to preserve line numbers).
4033 if test "x$srcdir" = x.; then
4034 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4035 s/:*\$(srcdir):*/:/
4036 s/:*\${srcdir}:*/:/
4037 s/:*@srcdir@:*/:/
4038 s/^\([^=]*=[ ]*\):*/\1/
4039 s/:*$//
4040 s/^[^=]*=[ ]*$//
4041 }'
4042 fi
4043
4044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4045 fi # test -n "$CONFIG_FILES"
4046
4047
4048 eval set X " :F $CONFIG_FILES "
4049 shift
4050 for ac_tag
4051 do
4052 case $ac_tag in
4053 :[FHLC]) ac_mode=$ac_tag; continue;;
4054 esac
4055 case $ac_mode$ac_tag in
4056 :[FHL]*:*);;
4057 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
4058 :[FH]-) ac_tag=-:-;;
4059 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4060 esac
4061 ac_save_IFS=$IFS
4062 IFS=:
4063 set x $ac_tag
4064 IFS=$ac_save_IFS
4065 shift
4066 ac_file=$1
4067 shift
4068
4069 case $ac_mode in
4070 :L) ac_source=$1;;
4071 :[FH])
4072 ac_file_inputs=
4073 for ac_f
4074 do
4075 case $ac_f in
4076 -) ac_f="$tmp/stdin";;
4077 *) # Look for the file first in the build tree, then in the source tree
4078 # (if the path is not absolute). The absolute path cannot be DOS-style,
4079 # because $ac_f cannot contain `:'.
4080 test -f "$ac_f" ||
4081 case $ac_f in
4082 [\\/$]*) false;;
4083 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4084 esac ||
4085 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4086 esac
4087 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4088 as_fn_append ac_file_inputs " '$ac_f'"
4089 done
4090
4091 # Let's still pretend it is `configure' which instantiates (i.e., don't
4092 # use $as_me), people would be surprised to read:
4093 # /* config.h. Generated by config.status. */
4094 configure_input='Generated from '`
4095 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4096 `' by configure.'
4097 if test x"$ac_file" != x-; then
4098 configure_input="$ac_file. $configure_input"
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4100 $as_echo "$as_me: creating $ac_file" >&6;}
4101 fi
4102 # Neutralize special characters interpreted by sed in replacement strings.
4103 case $configure_input in #(
4104 *\&* | *\|* | *\\* )
4105 ac_sed_conf_input=`$as_echo "$configure_input" |
4106 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4107 *) ac_sed_conf_input=$configure_input;;
4108 esac
4109
4110 case $ac_tag in
4111 *:-:* | *:-) cat >"$tmp/stdin" \
4112 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
4113 esac
4114 ;;
4115 esac
4116
4117 ac_dir=`$as_dirname -- "$ac_file" ||
4118 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4119 X"$ac_file" : 'X\(//\)[^/]' \| \
4120 X"$ac_file" : 'X\(//\)$' \| \
4121 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4122 $as_echo X"$ac_file" |
4123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4124 s//\1/
4125 q
4126 }
4127 /^X\(\/\/\)[^/].*/{
4128 s//\1/
4129 q
4130 }
4131 /^X\(\/\/\)$/{
4132 s//\1/
4133 q
4134 }
4135 /^X\(\/\).*/{
4136 s//\1/
4137 q
4138 }
4139 s/.*/./; q'`
4140 as_dir="$ac_dir"; as_fn_mkdir_p
4141 ac_builddir=.
4142
4143 case "$ac_dir" in
4144 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4145 *)
4146 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4147 # A ".." for each directory in $ac_dir_suffix.
4148 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4149 case $ac_top_builddir_sub in
4150 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4151 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4152 esac ;;
4153 esac
4154 ac_abs_top_builddir=$ac_pwd
4155 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4156 # for backward compatibility:
4157 ac_top_builddir=$ac_top_build_prefix
4158
4159 case $srcdir in
4160 .) # We are building in place.
4161 ac_srcdir=.
4162 ac_top_srcdir=$ac_top_builddir_sub
4163 ac_abs_top_srcdir=$ac_pwd ;;
4164 [\\/]* | ?:[\\/]* ) # Absolute name.
4165 ac_srcdir=$srcdir$ac_dir_suffix;
4166 ac_top_srcdir=$srcdir
4167 ac_abs_top_srcdir=$srcdir ;;
4168 *) # Relative name.
4169 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4170 ac_top_srcdir=$ac_top_build_prefix$srcdir
4171 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4172 esac
4173 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4174
4175
4176 case $ac_mode in
4177 :F)
4178 #
4179 # CONFIG_FILE
4180 #
4181
4182 _ACEOF
4183
4184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4185 # If the template does not know about datarootdir, expand it.
4186 # FIXME: This hack should be removed a few years after 2.60.
4187 ac_datarootdir_hack=; ac_datarootdir_seen=
4188 ac_sed_dataroot='
4189 /datarootdir/ {
4190 p
4191 q
4192 }
4193 /@datadir@/p
4194 /@docdir@/p
4195 /@infodir@/p
4196 /@localedir@/p
4197 /@mandir@/p'
4198 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4199 *datarootdir*) ac_datarootdir_seen=yes;;
4200 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4202 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4203 _ACEOF
4204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4205 ac_datarootdir_hack='
4206 s&@datadir@&$datadir&g
4207 s&@docdir@&$docdir&g
4208 s&@infodir@&$infodir&g
4209 s&@localedir@&$localedir&g
4210 s&@mandir@&$mandir&g
4211 s&\\\${datarootdir}&$datarootdir&g' ;;
4212 esac
4213 _ACEOF
4214
4215 # Neutralize VPATH when `$srcdir' = `.'.
4216 # Shell code in configure.ac might set extrasub.
4217 # FIXME: do we really want to maintain this feature?
4218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4219 ac_sed_extra="$ac_vpsub
4220 $extrasub
4221 _ACEOF
4222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4223 :t
4224 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4225 s|@configure_input@|$ac_sed_conf_input|;t t
4226 s&@top_builddir@&$ac_top_builddir_sub&;t t
4227 s&@top_build_prefix@&$ac_top_build_prefix&;t t
4228 s&@srcdir@&$ac_srcdir&;t t
4229 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4230 s&@top_srcdir@&$ac_top_srcdir&;t t
4231 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4232 s&@builddir@&$ac_builddir&;t t
4233 s&@abs_builddir@&$ac_abs_builddir&;t t
4234 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4235 $ac_datarootdir_hack
4236 "
4237 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
4238 || as_fn_error "could not create $ac_file" "$LINENO" 5
4239
4240 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4241 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
4242 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4244 which seems to be undefined. Please make sure it is defined." >&5
4245 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4246 which seems to be undefined. Please make sure it is defined." >&2;}
4247
4248 rm -f "$tmp/stdin"
4249 case $ac_file in
4250 -) cat "$tmp/out" && rm -f "$tmp/out";;
4251 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
4252 esac \
4253 || as_fn_error "could not create $ac_file" "$LINENO" 5
4254 ;;
4255
4256
4257
4258 esac
4259
4260 done # for ac_tag
4261
4262
4263 as_fn_exit 0
4264 _ACEOF
4265 ac_clean_files=$ac_clean_files_save
4266
4267 test $ac_write_fail = 0 ||
4268 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
4269
4270
4271 # configure is writing to config.log, and then calls config.status.
4272 # config.status does its own redirection, appending to config.log.
4273 # Unfortunately, on DOS this fails, as config.log is still kept open
4274 # by configure, so config.status won't be able to write to it; its
4275 # output is simply discarded. So we exec the FD to /dev/null,
4276 # effectively closing config.log, so it can be properly (re)opened and
4277 # appended to by config.status. When coming back to configure, we
4278 # need to make the FD available again.
4279 if test "$no_create" != yes; then
4280 ac_cs_success=:
4281 ac_config_status_args=
4282 test "$silent" = yes &&
4283 ac_config_status_args="$ac_config_status_args --quiet"
4284 exec 5>/dev/null
4285 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4286 exec 5>>config.log
4287 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4288 # would make configure fail if this is the last instruction.
4289 $ac_cs_success || as_fn_exit $?
4290 fi
4291 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4293 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4294 fi
4295
4296
4297 # Messages
4298 printf '#================================================================\n'
4299 printf '# Ready to make.\n'
4300 printf '#================================================================\n'
4301
4302
4303
4304 # END OF FILE