Debian Codegraph @

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