Debian Codegraph @

contrib/mod_snmp/configure

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