Debian Codegraph @

configure

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