Debian Codegraph @

src/modules/rlm_couchbase/configure

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