Sync usage with man page.
[netbsd-mini2440.git] / external / bsd / ntp / dist / configure
blob550a14606645ee3de4709927b65d3533ba04fc42
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for ntp 4.2.6.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
533 case X$ECHO in
534 X*--fallback-echo)
535 # Remove one level of quotation (which was required for Make).
536 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
538 esac
540 echo=${ECHO-echo}
541 if test "X$1" = X--no-reexec; then
542 # Discard the --no-reexec flag, and continue.
543 shift
544 elif test "X$1" = X--fallback-echo; then
545 # Avoid inline document here, it may be left over
547 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
548 # Yippee, $echo works!
550 else
551 # Restart under the correct shell.
552 exec $SHELL "$0" --no-reexec ${1+"$@"}
555 if test "X$1" = X--fallback-echo; then
556 # used as fallback echo
557 shift
558 cat <<EOF
561 exit 0
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
565 # if CDPATH is set.
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568 if test -z "$ECHO"; then
569 if test "X${echo_test_string+set}" != Xset; then
570 # find a string as large as possible, as long as the shell can cope with it
571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
574 echo_test_string=`eval $cmd` &&
575 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
576 then
577 break
579 done
582 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
583 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
584 test "X$echo_testing_string" = "X$echo_test_string"; then
586 else
587 # The Solaris, AIX, and Digital Unix default echo programs unquote
588 # backslashes. This makes it impossible to quote backslashes using
589 # echo "$something" | sed 's/\\/\\\\/g'
591 # So, first we look for a working echo in the user's PATH.
593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
594 for dir in $PATH /usr/ucb; do
595 IFS="$lt_save_ifs"
596 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
597 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599 test "X$echo_testing_string" = "X$echo_test_string"; then
600 echo="$dir/echo"
601 break
603 done
604 IFS="$lt_save_ifs"
606 if test "X$echo" = Xecho; then
607 # We didn't find a better echo, so look for alternatives.
608 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
609 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
610 test "X$echo_testing_string" = "X$echo_test_string"; then
611 # This shell has a builtin print -r that does the trick.
612 echo='print -r'
613 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
614 test "X$CONFIG_SHELL" != X/bin/ksh; then
615 # If we have ksh, try running configure again with it.
616 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
617 export ORIGINAL_CONFIG_SHELL
618 CONFIG_SHELL=/bin/ksh
619 export CONFIG_SHELL
620 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
621 else
622 # Try using printf.
623 echo='printf %s\n'
624 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
627 # Cool, printf works
629 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630 test "X$echo_testing_string" = 'X\t' &&
631 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634 export CONFIG_SHELL
635 SHELL="$CONFIG_SHELL"
636 export SHELL
637 echo="$CONFIG_SHELL $0 --fallback-echo"
638 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639 test "X$echo_testing_string" = 'X\t' &&
640 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641 test "X$echo_testing_string" = "X$echo_test_string"; then
642 echo="$CONFIG_SHELL $0 --fallback-echo"
643 else
644 # maybe with a smaller string...
645 prev=:
647 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
649 then
650 break
652 prev="$cmd"
653 done
655 if test "$prev" != 'sed 50q "$0"'; then
656 echo_test_string=`eval $prev`
657 export echo_test_string
658 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659 else
660 # Oops. We lost completely, so just stick with echo.
661 echo=echo
669 # Copy echo and quote the copy suitably for passing to libtool from
670 # the Makefile, instead of quoting the original, which is used later.
671 ECHO=$echo
672 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
679 test -n "$DJDIR" || exec 7<&0 </dev/null
680 exec 6>&1
682 # Name of the host.
683 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
684 # so uname gets run too.
685 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688 # Initializations.
690 ac_default_prefix=/usr/local
691 ac_clean_files=
692 ac_config_libobj_dir=.
693 LIBOBJS=
694 cross_compiling=no
695 subdirs=
696 MFLAGS=
697 MAKEFLAGS=
699 # Identity of this package.
700 PACKAGE_NAME='ntp'
701 PACKAGE_TARNAME='ntp'
702 PACKAGE_VERSION='4.2.6'
703 PACKAGE_STRING='ntp 4.2.6'
704 PACKAGE_BUGREPORT=''
705 PACKAGE_URL=''
707 # Factoring default headers for most tests.
708 ac_includes_default="\
709 #include <stdio.h>
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
712 #endif
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
715 #endif
716 #ifdef STDC_HEADERS
717 # include <stdlib.h>
718 # include <stddef.h>
719 #else
720 # ifdef HAVE_STDLIB_H
721 # include <stdlib.h>
722 # endif
723 #endif
724 #ifdef HAVE_STRING_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726 # include <memory.h>
727 # endif
728 # include <string.h>
729 #endif
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
732 #endif
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
735 #endif
736 #ifdef HAVE_STDINT_H
737 # include <stdint.h>
738 #endif
739 #ifdef HAVE_UNISTD_H
740 # include <unistd.h>
741 #endif"
743 enable_option_checking=no
744 ac_subst_vars='am__EXEEXT_FALSE
745 am__EXEEXT_TRUE
746 LTLIBOBJS
747 LIBOBJS
748 SAVECONFIG_ENABLED_FALSE
749 SAVECONFIG_ENABLED_TRUE
750 LSCF
751 MAKE_NTPSNMPD
752 SNMP_CFLAGS
753 SNMP_CPPFLAGS
754 SNMP_LIBS
755 MAKE_NTPDSIM
756 MAKE_LIBNTPSIM
757 MAKE_TIMETRIM
758 MAKE_TICKADJ
759 MAKE_NTPTIME
760 MAKE_ADJTIMED
761 CLKTEST
762 CHUTEST
763 PROPDELAY
764 MAKE_PARSEKMODULE
765 DCFD
766 TESTDCF
767 MAKE_CHECK_LAYOUT
768 EF_LIBS
769 EF_PROGS
770 LCRYPTO
771 OPENSSL_LIB
772 OPENSSL_INC
773 OPENSSL
774 MAKE_CHECK_Y2K
775 MAKE_LIBPARSE_KERNEL
776 MAKE_LIBPARSE
777 LIBPARSE
778 HAVE_INLINE
779 EDITLINE_LIBS
780 PATH_NET_SNMP_CONFIG
781 PATH_PERL
782 PATH_SH
783 LIBTOOL
784 RANLIB
786 ECHO
787 LN_S
788 ARLIB_DIR
789 subdirs
790 BINSUBDIR
791 NTP_CROSSCOMPILE_FALSE
792 NTP_CROSSCOMPILE_TRUE
793 LIBOPTS_CFLAGS
794 LIBOPTS_LDADD
795 NEED_LIBOPTS_FALSE
796 NEED_LIBOPTS_TRUE
797 INSTALL_LIBOPTS_FALSE
798 INSTALL_LIBOPTS_TRUE
799 LIBOPTS_DIR
800 VPATH_HACK_FALSE
801 VPATH_HACK_TRUE
802 YFLAGS
803 YACC
804 EGREP
805 GREP
807 am__fastdepCC_FALSE
808 am__fastdepCC_TRUE
809 CCDEPMODE
810 AMDEPBACKSLASH
811 AMDEP_FALSE
812 AMDEP_TRUE
813 am__quote
814 am__include
815 DEPDIR
816 OBJEXT
817 EXEEXT
818 ac_ct_CC
819 CPPFLAGS
820 LDFLAGS
821 CFLAGS
823 host_os
824 host_vendor
825 host_cpu
826 host
827 build_os
828 build_vendor
829 build_cpu
830 build
831 am__untar
832 am__tar
833 AMTAR
834 am__leading_dot
835 SET_MAKE
837 mkdir_p
838 MKDIR_P
839 INSTALL_STRIP_PROGRAM
840 STRIP
841 install_sh
842 MAKEINFO
843 AUTOHEADER
844 AUTOMAKE
845 AUTOCONF
846 ACLOCAL
847 VERSION
848 PACKAGE
849 CYGPATH_W
850 am__isrc
851 INSTALL_DATA
852 INSTALL_SCRIPT
853 INSTALL_PROGRAM
854 target_alias
855 host_alias
856 build_alias
857 LIBS
858 ECHO_T
859 ECHO_N
860 ECHO_C
861 DEFS
862 mandir
863 localedir
864 libdir
865 psdir
866 pdfdir
867 dvidir
868 htmldir
869 infodir
870 docdir
871 oldincludedir
872 includedir
873 localstatedir
874 sharedstatedir
875 sysconfdir
876 datadir
877 datarootdir
878 libexecdir
879 sbindir
880 bindir
881 program_transform_name
882 prefix
883 exec_prefix
884 PACKAGE_URL
885 PACKAGE_BUGREPORT
886 PACKAGE_STRING
887 PACKAGE_VERSION
888 PACKAGE_TARNAME
889 PACKAGE_NAME
890 PATH_SEPARATOR
891 SHELL'
892 ac_subst_files=''
893 ac_user_opts='
894 enable_option_checking
895 enable_dependency_tracking
896 enable_shared
897 enable_local_libopts
898 enable_libopts_install
899 with_autoopts_config
900 with_regex_header
901 with_libregex
902 with_libregex_cflags
903 with_libregex_libs
904 enable_optional_args
905 with_binsubdir
906 with_arlib
907 with_rpath
908 enable_static
909 enable_fast_install
910 with_gnu_ld
911 enable_libtool_lock
912 with_pic
913 with_tags
914 with_net_snmp_config
915 with_lineeditlibs
916 enable_getifaddrs
917 enable_debugging
918 enable_debug_timing
919 enable_dst_minutes
920 enable_ignore_dns_errors
921 enable_force_defer_DNS
922 enable_BANCOMM
923 enable_GPSVME
924 enable_all_clocks
925 enable_ACTS
926 enable_ARBITER
927 enable_ARCRON_MSF
928 enable_AS2201
929 enable_ATOM
930 enable_CHRONOLOG
931 enable_CHU
932 enable_AUDIO_CHU
933 enable_DATUM
934 enable_DUMBCLOCK
935 enable_FG
936 enable_HEATH
937 enable_HOPFSERIAL
938 enable_HOPFPCI
939 enable_HPGPS
940 enable_IRIG
941 enable_JJY
942 enable_JUPITER
943 enable_LEITCH
944 enable_LOCAL_CLOCK
945 enable_MX4200
946 enable_NEOCLOCK4X
947 enable_NMEA
948 enable_ONCORE
949 enable_PALISADE
950 enable_PCF
951 enable_PST
952 enable_RIPENCC
953 enable_SHM
954 enable_SPECTRACOM
955 enable_TPRO
956 enable_TRUETIME
957 enable_TT560
958 enable_ULINK
959 enable_WWV
960 enable_ZYFER
961 enable_parse_clocks
962 enable_COMPUTIME
963 enable_DCF7000
964 enable_HOPF6021
965 enable_MEINBERG
966 enable_RAWDCF
967 enable_RCC8000
968 enable_SCHMID
969 enable_TRIMTAIP
970 enable_TRIMTSIP
971 enable_WHARTON
972 enable_VARITEXT
973 with_openssl_libdir
974 with_openssl_incdir
975 with_crypto
976 with_electricfence
977 enable_kmem
978 enable_accurate_adjtime
979 enable_tick
980 enable_tickadj
981 enable_simulator
982 with_ntpsnmpd
983 enable_slew_always
984 enable_step_slew
985 enable_ntpdate_step
986 enable_hourly_todr_sync
987 enable_kernel_fll_bug
988 enable_bug1243_fix
989 enable_irig_sawtooth
990 enable_nist
991 enable_ntp_signd
992 enable_clockctl
993 enable_linuxcaps
994 enable_ipv6
995 with_kame
996 enable_saveconfig
998 ac_precious_vars='build_alias
999 host_alias
1000 target_alias
1002 CFLAGS
1003 LDFLAGS
1004 LIBS
1005 CPPFLAGS
1007 YACC
1008 YFLAGS'
1009 ac_subdirs_all='arlib
1010 sntp'
1012 # Initialize some variables set by options.
1013 ac_init_help=
1014 ac_init_version=false
1015 ac_unrecognized_opts=
1016 ac_unrecognized_sep=
1017 # The variables have the same names as the options, with
1018 # dashes changed to underlines.
1019 cache_file=/dev/null
1020 exec_prefix=NONE
1021 no_create=
1022 no_recursion=
1023 prefix=NONE
1024 program_prefix=NONE
1025 program_suffix=NONE
1026 program_transform_name=s,x,x,
1027 silent=
1028 site=
1029 srcdir=
1030 verbose=
1031 x_includes=NONE
1032 x_libraries=NONE
1034 # Installation directory options.
1035 # These are left unexpanded so users can "make install exec_prefix=/foo"
1036 # and all the variables that are supposed to be based on exec_prefix
1037 # by default will actually change.
1038 # Use braces instead of parens because sh, perl, etc. also accept them.
1039 # (The list follows the same order as the GNU Coding Standards.)
1040 bindir='${exec_prefix}/bin'
1041 sbindir='${exec_prefix}/sbin'
1042 libexecdir='${exec_prefix}/libexec'
1043 datarootdir='${prefix}/share'
1044 datadir='${datarootdir}'
1045 sysconfdir='${prefix}/etc'
1046 sharedstatedir='${prefix}/com'
1047 localstatedir='${prefix}/var'
1048 includedir='${prefix}/include'
1049 oldincludedir='/usr/include'
1050 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1051 infodir='${datarootdir}/info'
1052 htmldir='${docdir}'
1053 dvidir='${docdir}'
1054 pdfdir='${docdir}'
1055 psdir='${docdir}'
1056 libdir='${exec_prefix}/lib'
1057 localedir='${datarootdir}/locale'
1058 mandir='${datarootdir}/man'
1060 ac_prev=
1061 ac_dashdash=
1062 for ac_option
1064 # If the previous option needs an argument, assign it.
1065 if test -n "$ac_prev"; then
1066 eval $ac_prev=\$ac_option
1067 ac_prev=
1068 continue
1071 case $ac_option in
1072 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1073 *) ac_optarg=yes ;;
1074 esac
1076 # Accept the important Cygnus configure options, so we can diagnose typos.
1078 case $ac_dashdash$ac_option in
1080 ac_dashdash=yes ;;
1082 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1083 ac_prev=bindir ;;
1084 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1085 bindir=$ac_optarg ;;
1087 -build | --build | --buil | --bui | --bu)
1088 ac_prev=build_alias ;;
1089 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1090 build_alias=$ac_optarg ;;
1092 -cache-file | --cache-file | --cache-fil | --cache-fi \
1093 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1094 ac_prev=cache_file ;;
1095 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1096 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1097 cache_file=$ac_optarg ;;
1099 --config-cache | -C)
1100 cache_file=config.cache ;;
1102 -datadir | --datadir | --datadi | --datad)
1103 ac_prev=datadir ;;
1104 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1105 datadir=$ac_optarg ;;
1107 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1108 | --dataroo | --dataro | --datar)
1109 ac_prev=datarootdir ;;
1110 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1111 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1112 datarootdir=$ac_optarg ;;
1114 -disable-* | --disable-*)
1115 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118 as_fn_error "invalid feature name: $ac_useropt"
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1123 "enable_$ac_useropt"
1124 "*) ;;
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
1127 esac
1128 eval enable_$ac_useropt=no ;;
1130 -docdir | --docdir | --docdi | --doc | --do)
1131 ac_prev=docdir ;;
1132 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1133 docdir=$ac_optarg ;;
1135 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1136 ac_prev=dvidir ;;
1137 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1138 dvidir=$ac_optarg ;;
1140 -enable-* | --enable-*)
1141 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 as_fn_error "invalid feature name: $ac_useropt"
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1149 "enable_$ac_useropt"
1150 "*) ;;
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1153 esac
1154 eval enable_$ac_useropt=\$ac_optarg ;;
1156 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1157 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1158 | --exec | --exe | --ex)
1159 ac_prev=exec_prefix ;;
1160 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1161 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1162 | --exec=* | --exe=* | --ex=*)
1163 exec_prefix=$ac_optarg ;;
1165 -gas | --gas | --ga | --g)
1166 # Obsolete; use --with-gas.
1167 with_gas=yes ;;
1169 -help | --help | --hel | --he | -h)
1170 ac_init_help=long ;;
1171 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1172 ac_init_help=recursive ;;
1173 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1174 ac_init_help=short ;;
1176 -host | --host | --hos | --ho)
1177 ac_prev=host_alias ;;
1178 -host=* | --host=* | --hos=* | --ho=*)
1179 host_alias=$ac_optarg ;;
1181 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1182 ac_prev=htmldir ;;
1183 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1184 | --ht=*)
1185 htmldir=$ac_optarg ;;
1187 -includedir | --includedir | --includedi | --included | --include \
1188 | --includ | --inclu | --incl | --inc)
1189 ac_prev=includedir ;;
1190 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1191 | --includ=* | --inclu=* | --incl=* | --inc=*)
1192 includedir=$ac_optarg ;;
1194 -infodir | --infodir | --infodi | --infod | --info | --inf)
1195 ac_prev=infodir ;;
1196 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1197 infodir=$ac_optarg ;;
1199 -libdir | --libdir | --libdi | --libd)
1200 ac_prev=libdir ;;
1201 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1202 libdir=$ac_optarg ;;
1204 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1205 | --libexe | --libex | --libe)
1206 ac_prev=libexecdir ;;
1207 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1208 | --libexe=* | --libex=* | --libe=*)
1209 libexecdir=$ac_optarg ;;
1211 -localedir | --localedir | --localedi | --localed | --locale)
1212 ac_prev=localedir ;;
1213 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1214 localedir=$ac_optarg ;;
1216 -localstatedir | --localstatedir | --localstatedi | --localstated \
1217 | --localstate | --localstat | --localsta | --localst | --locals)
1218 ac_prev=localstatedir ;;
1219 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1220 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1221 localstatedir=$ac_optarg ;;
1223 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1224 ac_prev=mandir ;;
1225 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1226 mandir=$ac_optarg ;;
1228 -nfp | --nfp | --nf)
1229 # Obsolete; use --without-fp.
1230 with_fp=no ;;
1232 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1233 | --no-cr | --no-c | -n)
1234 no_create=yes ;;
1236 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1237 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1238 no_recursion=yes ;;
1240 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1241 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1242 | --oldin | --oldi | --old | --ol | --o)
1243 ac_prev=oldincludedir ;;
1244 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1245 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1246 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1247 oldincludedir=$ac_optarg ;;
1249 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1250 ac_prev=prefix ;;
1251 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1252 prefix=$ac_optarg ;;
1254 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1255 | --program-pre | --program-pr | --program-p)
1256 ac_prev=program_prefix ;;
1257 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1258 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1259 program_prefix=$ac_optarg ;;
1261 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1262 | --program-suf | --program-su | --program-s)
1263 ac_prev=program_suffix ;;
1264 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1265 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1266 program_suffix=$ac_optarg ;;
1268 -program-transform-name | --program-transform-name \
1269 | --program-transform-nam | --program-transform-na \
1270 | --program-transform-n | --program-transform- \
1271 | --program-transform | --program-transfor \
1272 | --program-transfo | --program-transf \
1273 | --program-trans | --program-tran \
1274 | --progr-tra | --program-tr | --program-t)
1275 ac_prev=program_transform_name ;;
1276 -program-transform-name=* | --program-transform-name=* \
1277 | --program-transform-nam=* | --program-transform-na=* \
1278 | --program-transform-n=* | --program-transform-=* \
1279 | --program-transform=* | --program-transfor=* \
1280 | --program-transfo=* | --program-transf=* \
1281 | --program-trans=* | --program-tran=* \
1282 | --progr-tra=* | --program-tr=* | --program-t=*)
1283 program_transform_name=$ac_optarg ;;
1285 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1286 ac_prev=pdfdir ;;
1287 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1288 pdfdir=$ac_optarg ;;
1290 -psdir | --psdir | --psdi | --psd | --ps)
1291 ac_prev=psdir ;;
1292 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1293 psdir=$ac_optarg ;;
1295 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1296 | -silent | --silent | --silen | --sile | --sil)
1297 silent=yes ;;
1299 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1300 ac_prev=sbindir ;;
1301 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1302 | --sbi=* | --sb=*)
1303 sbindir=$ac_optarg ;;
1305 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1306 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1307 | --sharedst | --shareds | --shared | --share | --shar \
1308 | --sha | --sh)
1309 ac_prev=sharedstatedir ;;
1310 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1311 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1312 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1313 | --sha=* | --sh=*)
1314 sharedstatedir=$ac_optarg ;;
1316 -site | --site | --sit)
1317 ac_prev=site ;;
1318 -site=* | --site=* | --sit=*)
1319 site=$ac_optarg ;;
1321 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1322 ac_prev=srcdir ;;
1323 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1324 srcdir=$ac_optarg ;;
1326 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1327 | --syscon | --sysco | --sysc | --sys | --sy)
1328 ac_prev=sysconfdir ;;
1329 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1330 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1331 sysconfdir=$ac_optarg ;;
1333 -target | --target | --targe | --targ | --tar | --ta | --t)
1334 ac_prev=target_alias ;;
1335 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1336 target_alias=$ac_optarg ;;
1338 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1339 verbose=yes ;;
1341 -version | --version | --versio | --versi | --vers | -V)
1342 ac_init_version=: ;;
1344 -with-* | --with-*)
1345 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1346 # Reject names that are not valid shell variable names.
1347 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1348 as_fn_error "invalid package name: $ac_useropt"
1349 ac_useropt_orig=$ac_useropt
1350 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1351 case $ac_user_opts in
1353 "with_$ac_useropt"
1354 "*) ;;
1355 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1356 ac_unrecognized_sep=', ';;
1357 esac
1358 eval with_$ac_useropt=\$ac_optarg ;;
1360 -without-* | --without-*)
1361 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1362 # Reject names that are not valid shell variable names.
1363 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1364 as_fn_error "invalid package name: $ac_useropt"
1365 ac_useropt_orig=$ac_useropt
1366 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1367 case $ac_user_opts in
1369 "with_$ac_useropt"
1370 "*) ;;
1371 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1372 ac_unrecognized_sep=', ';;
1373 esac
1374 eval with_$ac_useropt=no ;;
1376 --x)
1377 # Obsolete; use --with-x.
1378 with_x=yes ;;
1380 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1381 | --x-incl | --x-inc | --x-in | --x-i)
1382 ac_prev=x_includes ;;
1383 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1384 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1385 x_includes=$ac_optarg ;;
1387 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1388 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1389 ac_prev=x_libraries ;;
1390 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1391 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1392 x_libraries=$ac_optarg ;;
1394 -*) as_fn_error "unrecognized option: \`$ac_option'
1395 Try \`$0 --help' for more information."
1398 *=*)
1399 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1400 # Reject names that are not valid shell variable names.
1401 case $ac_envvar in #(
1402 '' | [0-9]* | *[!_$as_cr_alnum]* )
1403 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1404 esac
1405 eval $ac_envvar=\$ac_optarg
1406 export $ac_envvar ;;
1409 # FIXME: should be removed in autoconf 3.0.
1410 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1411 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1412 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1413 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1416 esac
1417 done
1419 if test -n "$ac_prev"; then
1420 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1421 as_fn_error "missing argument to $ac_option"
1424 if test -n "$ac_unrecognized_opts"; then
1425 case $enable_option_checking in
1426 no) ;;
1427 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1428 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1429 esac
1432 # Check all directory arguments for consistency.
1433 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1434 datadir sysconfdir sharedstatedir localstatedir includedir \
1435 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1436 libdir localedir mandir
1438 eval ac_val=\$$ac_var
1439 # Remove trailing slashes.
1440 case $ac_val in
1441 */ )
1442 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1443 eval $ac_var=\$ac_val;;
1444 esac
1445 # Be sure to have absolute directory names.
1446 case $ac_val in
1447 [\\/$]* | ?:[\\/]* ) continue;;
1448 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1449 esac
1450 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1451 done
1453 # There might be people who depend on the old broken behavior: `$host'
1454 # used to hold the argument of --host etc.
1455 # FIXME: To remove some day.
1456 build=$build_alias
1457 host=$host_alias
1458 target=$target_alias
1460 # FIXME: To remove some day.
1461 if test "x$host_alias" != x; then
1462 if test "x$build_alias" = x; then
1463 cross_compiling=maybe
1464 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1465 If a cross compiler is detected then cross compile mode will be used." >&2
1466 elif test "x$build_alias" != "x$host_alias"; then
1467 cross_compiling=yes
1471 ac_tool_prefix=
1472 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1474 test "$silent" = yes && exec 6>/dev/null
1477 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1478 ac_ls_di=`ls -di .` &&
1479 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1480 as_fn_error "working directory cannot be determined"
1481 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1482 as_fn_error "pwd does not report name of working directory"
1485 # Find the source files, if location was not specified.
1486 if test -z "$srcdir"; then
1487 ac_srcdir_defaulted=yes
1488 # Try the directory containing this script, then the parent directory.
1489 ac_confdir=`$as_dirname -- "$as_myself" ||
1490 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1491 X"$as_myself" : 'X\(//\)[^/]' \| \
1492 X"$as_myself" : 'X\(//\)$' \| \
1493 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1494 $as_echo X"$as_myself" |
1495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1496 s//\1/
1499 /^X\(\/\/\)[^/].*/{
1500 s//\1/
1503 /^X\(\/\/\)$/{
1504 s//\1/
1507 /^X\(\/\).*/{
1508 s//\1/
1511 s/.*/./; q'`
1512 srcdir=$ac_confdir
1513 if test ! -r "$srcdir/$ac_unique_file"; then
1514 srcdir=..
1516 else
1517 ac_srcdir_defaulted=no
1519 if test ! -r "$srcdir/$ac_unique_file"; then
1520 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1521 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1523 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1524 ac_abs_confdir=`(
1525 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1526 pwd)`
1527 # When building in place, set srcdir=.
1528 if test "$ac_abs_confdir" = "$ac_pwd"; then
1529 srcdir=.
1531 # Remove unnecessary trailing slashes from srcdir.
1532 # Double slashes in file names in object file debugging info
1533 # mess up M-x gdb in Emacs.
1534 case $srcdir in
1535 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1536 esac
1537 for ac_var in $ac_precious_vars; do
1538 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1539 eval ac_env_${ac_var}_value=\$${ac_var}
1540 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1541 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1542 done
1545 # Report the --help message.
1547 if test "$ac_init_help" = "long"; then
1548 # Omit some internal or obsolete options to make the list less imposing.
1549 # This message is too long to be a string in the A/UX 3.1 sh.
1550 cat <<_ACEOF
1551 \`configure' configures ntp 4.2.6 to adapt to many kinds of systems.
1553 Usage: $0 [OPTION]... [VAR=VALUE]...
1555 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1556 VAR=VALUE. See below for descriptions of some of the useful variables.
1558 Defaults for the options are specified in brackets.
1560 Configuration:
1561 -h, --help display this help and exit
1562 --help=short display options specific to this package
1563 --help=recursive display the short help of all the included packages
1564 -V, --version display version information and exit
1565 -q, --quiet, --silent do not print \`checking...' messages
1566 --cache-file=FILE cache test results in FILE [disabled]
1567 -C, --config-cache alias for \`--cache-file=config.cache'
1568 -n, --no-create do not create output files
1569 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1571 Installation directories:
1572 --prefix=PREFIX install architecture-independent files in PREFIX
1573 [$ac_default_prefix]
1574 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1575 [PREFIX]
1577 By default, \`make install' will install all the files in
1578 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1579 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1580 for instance \`--prefix=\$HOME'.
1582 For better control, use the options below.
1584 Fine tuning of the installation directories:
1585 --bindir=DIR user executables [EPREFIX/bin]
1586 --sbindir=DIR system admin executables [EPREFIX/sbin]
1587 --libexecdir=DIR program executables [EPREFIX/libexec]
1588 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1589 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1590 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1591 --libdir=DIR object code libraries [EPREFIX/lib]
1592 --includedir=DIR C header files [PREFIX/include]
1593 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1594 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1595 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1596 --infodir=DIR info documentation [DATAROOTDIR/info]
1597 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1598 --mandir=DIR man documentation [DATAROOTDIR/man]
1599 --docdir=DIR documentation root [DATAROOTDIR/doc/ntp]
1600 --htmldir=DIR html documentation [DOCDIR]
1601 --dvidir=DIR dvi documentation [DOCDIR]
1602 --pdfdir=DIR pdf documentation [DOCDIR]
1603 --psdir=DIR ps documentation [DOCDIR]
1604 _ACEOF
1606 cat <<\_ACEOF
1608 Program names:
1609 --program-prefix=PREFIX prepend PREFIX to installed program names
1610 --program-suffix=SUFFIX append SUFFIX to installed program names
1611 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1613 System types:
1614 --build=BUILD configure for building on BUILD [guessed]
1615 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1616 _ACEOF
1619 if test -n "$ac_init_help"; then
1620 case $ac_init_help in
1621 short | recursive ) echo "Configuration of ntp 4.2.6:";;
1622 esac
1623 cat <<\_ACEOF
1625 Optional Features:
1626 --disable-option-checking ignore unrecognized --enable/--with options
1627 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1628 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1629 --disable-dependency-tracking speeds up one-time build
1630 --enable-dependency-tracking do not reject slow dependency extractors
1631 --enable-shared[=PKGS] build shared libraries [default=no]
1632 --enable-local-libopts Force using the supplied libopts tearoff code
1633 --disable-libopts-install
1634 Do not install libopts with client installation
1635 --disable-optional-args not wanting optional option args
1636 --enable-static[=PKGS] build static libraries [default=yes]
1637 --enable-fast-install[=PKGS]
1638 optimize for fast installation [default=yes]
1639 --disable-libtool-lock avoid locking (might break parallel builds)
1640 --enable-getifaddrs s Enable the use of getifaddrs() [[yes|no|glibc]].
1641 glibc: Use getifaddrs() in glibc if you know it
1642 supports IPv6.
1643 --enable-debugging + include ntpd debugging code
1644 --enable-debug-timing - include processing time debugging code (costs
1645 performance)
1646 --enable-dst-minutes n minutes per DST adjustment [60]
1647 --enable-ignore-dns-errors
1648 - retry DNS queries on any error
1649 --enable-force-defer-DNS
1650 - force all DNS lookups to take the deferred path
1651 --enable-BANCOMM - Datum/Bancomm bc635/VME interface
1652 --enable-GPSVME - TrueTime GPS receiver/VME interface
1653 --enable-all-clocks + include all suitable non-PARSE clocks:
1654 --enable-ACTS s ACTS modem service
1655 --enable-ARBITER + Arbiter 1088A/B GPS receiver
1656 --enable-ARCRON-MSF + Arcron MSF receiver
1657 --enable-AS2201 + Austron 2200A/2201A GPS receiver
1658 --enable-ATOM s ATOM PPS interface
1659 --enable-CHRONOLOG + Chrono-log K-series WWVB receiver
1660 --enable-CHU + CHU modem/decoder
1661 --enable-AUDIO-CHU s CHU audio/decoder
1662 --enable-DATUM s Datum Programmable Time System
1663 --enable-DUMBCLOCK + Dumb generic hh:mm:ss local clock
1664 --enable-FG + Forum Graphic GPS
1665 --enable-HEATH s Heath GC-1000 WWV/WWVH receiver
1666 --enable-HOPFSERIAL + hopf serial clock device
1667 --enable-HOPFPCI + hopf 6039 PCI board
1668 --enable-HPGPS + HP 58503A GPS receiver
1669 --enable-IRIG s IRIG audio decoder
1670 --enable-JJY + JJY receiver
1671 --enable-JUPITER s Rockwell Jupiter GPS receiver
1672 --enable-LEITCH + Leitch CSD 5300 Master Clock System Driver
1673 --enable-LOCAL-CLOCK + local clock reference
1674 --enable-MX4200 s Magnavox MX4200 GPS receiver
1675 --enable-NEOCLOCK4X + NeoClock4X DCF77 / TDF receiver
1676 --enable-NMEA + NMEA GPS receiver
1677 --enable-ONCORE s Motorola VP/UT Oncore GPS receiver
1678 --enable-PALISADE s Palisade clock
1679 --enable-PCF + Conrad parallel port radio clock
1680 --enable-PST + PST/Traconex 1020 WWV/WWVH receiver
1681 --enable-RIPENCC - RIPENCC specific Trimble driver
1682 --enable-SHM s SHM clock attached thru shared memory
1683 --enable-SPECTRACOM + Spectracom 8170/Netclock/2 WWVB receiver
1684 --enable-TPRO s KSI/Odetics TPRO/S GPS receiver/IRIG interface
1685 --enable-TRUETIME s Kinemetrics/TrueTime receivers
1686 --enable-TT560 - TrueTime 560 IRIG-B decoder
1687 --enable-ULINK + Ultralink WWVB receiver
1688 --enable-WWV s WWV Audio receiver
1689 --enable-ZYFER + Zyfer GPStarplus receiver
1690 --enable-parse-clocks - include all suitable PARSE clocks:
1691 --enable-COMPUTIME s Diem Computime Radio Clock
1692 --enable-DCF7000 s ELV/DCF7000 clock
1693 --enable-HOPF6021 s HOPF 6021 clock
1694 --enable-MEINBERG s Meinberg clocks
1695 --enable-RAWDCF s DCF77 raw time code
1696 --enable-RCC8000 s RCC 8000 clock
1697 --enable-SCHMID s Schmid DCF77 clock
1698 --enable-TRIMTAIP s Trimble GPS receiver/TAIP protocol
1699 --enable-TRIMTSIP s Trimble GPS receiver/TSIP protocol
1700 --enable-WHARTON s WHARTON 400A Series clock
1701 --enable-VARITEXT s VARITEXT clock
1702 --enable-kmem s read /dev/kmem for tick and/or tickadj
1703 --enable-accurate-adjtime
1704 s the adjtime() call is accurate
1705 --enable-tick=VALUE s force a value for 'tick'
1706 --enable-tickadj=VALUE s force a value for 'tickadj'
1707 --enable-simulator - build/install the NTPD simulator?
1708 --enable-slew-always s always slew the time
1709 --enable-step-slew s step and slew the time
1710 --enable-ntpdate-step s if ntpdate should step the time
1711 --enable-hourly-todr-sync
1712 s if we should sync TODR hourly
1713 --enable-kernel-fll-bug s if we should avoid a kernel FLL bug
1714 --enable-bug1243-fix + use unmodified autokey session keys
1715 --enable-irig-sawtooth s if we should enable the IRIG sawtooth filter
1716 --enable-nist - if we should enable the NIST lockclock scheme
1717 --enable-ntp-signd - Provide support for Samba's signing daemon,
1718 =/var/run/ntp_signd
1719 --enable-clockctl s Use /dev/clockctl for non-root clock control
1720 --enable-linuxcaps + Use Linux capabilities for non-root clock control
1721 --enable-ipv6 s use IPv6?
1722 --enable-saveconfig + saveconfig mechanism
1724 Optional Packages:
1725 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1726 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1727 --with-autoopts-config specify the config-info script
1728 --with-regex-header a reg expr header is specified
1729 --with-libregex libregex installation prefix
1730 --with-libregex-cflags libregex compile flags
1731 --with-libregex-libs libregex link command arguments
1732 --with-binsubdir bin ={bin,sbin}
1733 --with-arlib - Compile the async resolver library?
1734 --without-rpath s Disable auto-added -R linker paths
1735 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1736 --with-pic try to use only PIC/non-PIC objects [default=use
1737 both]
1738 --with-tags[=TAGS] include additional configurations [automatic]
1739 --with-net-snmp-config + =net-snmp-config
1740 --with-lineeditlibs edit,editline (readline may be specified if desired)
1741 --with-openssl-libdir + =/something/reasonable
1742 --with-openssl-incdir + =/something/reasonable
1743 --with-crypto + =openssl
1744 --with-electricfence - compile with ElectricFence malloc debugger
1745 --with-ntpsnmpd s Build ntpsnmpd MIB agent?
1746 --with-kame - =/usr/local/v6
1748 Some influential environment variables:
1749 CC C compiler command
1750 CFLAGS C compiler flags
1751 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1752 nonstandard directory <lib dir>
1753 LIBS libraries to pass to the linker, e.g. -l<library>
1754 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1755 you have headers in a nonstandard directory <include dir>
1756 CPP C preprocessor
1757 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1758 the first program found out of: `bison -y', `byacc', `yacc'.
1759 YFLAGS The list of arguments that will be passed by default to $YACC.
1760 This script will default YFLAGS to the empty string to avoid a
1761 default value of `-d' given by some make applications.
1763 Use these variables to override the choices made by `configure' or to help
1764 it to find libraries and programs with nonstandard names/locations.
1766 Report bugs to the package provider.
1767 _ACEOF
1768 ac_status=$?
1771 if test "$ac_init_help" = "recursive"; then
1772 # If there are subdirs, report their specific --help.
1773 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1774 test -d "$ac_dir" ||
1775 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1776 continue
1777 ac_builddir=.
1779 case "$ac_dir" in
1780 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1782 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1783 # A ".." for each directory in $ac_dir_suffix.
1784 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1785 case $ac_top_builddir_sub in
1786 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1787 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1788 esac ;;
1789 esac
1790 ac_abs_top_builddir=$ac_pwd
1791 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1792 # for backward compatibility:
1793 ac_top_builddir=$ac_top_build_prefix
1795 case $srcdir in
1796 .) # We are building in place.
1797 ac_srcdir=.
1798 ac_top_srcdir=$ac_top_builddir_sub
1799 ac_abs_top_srcdir=$ac_pwd ;;
1800 [\\/]* | ?:[\\/]* ) # Absolute name.
1801 ac_srcdir=$srcdir$ac_dir_suffix;
1802 ac_top_srcdir=$srcdir
1803 ac_abs_top_srcdir=$srcdir ;;
1804 *) # Relative name.
1805 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1806 ac_top_srcdir=$ac_top_build_prefix$srcdir
1807 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1808 esac
1809 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1811 cd "$ac_dir" || { ac_status=$?; continue; }
1812 # Check for guested configure.
1813 if test -f "$ac_srcdir/configure.gnu"; then
1814 echo &&
1815 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1816 elif test -f "$ac_srcdir/configure"; then
1817 echo &&
1818 $SHELL "$ac_srcdir/configure" --help=recursive
1819 else
1820 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1821 fi || ac_status=$?
1822 cd "$ac_pwd" || { ac_status=$?; break; }
1823 done
1826 test -n "$ac_init_help" && exit $ac_status
1827 if $ac_init_version; then
1828 cat <<\_ACEOF
1829 ntp configure 4.2.6
1830 generated by GNU Autoconf 2.65
1832 Copyright (C) 2009 Free Software Foundation, Inc.
1833 This configure script is free software; the Free Software Foundation
1834 gives unlimited permission to copy, distribute and modify it.
1835 _ACEOF
1836 exit
1839 ## ------------------------ ##
1840 ## Autoconf initialization. ##
1841 ## ------------------------ ##
1843 # ac_fn_c_try_compile LINENO
1844 # --------------------------
1845 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1846 ac_fn_c_try_compile ()
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 rm -f conftest.$ac_objext
1850 if { { ac_try="$ac_compile"
1851 case "(($ac_try" in
1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853 *) ac_try_echo=$ac_try;;
1854 esac
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857 (eval "$ac_compile") 2>conftest.err
1858 ac_status=$?
1859 if test -s conftest.err; then
1860 grep -v '^ *+' conftest.err >conftest.er1
1861 cat conftest.er1 >&5
1862 mv -f conftest.er1 conftest.err
1864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865 test $ac_status = 0; } && {
1866 test -z "$ac_c_werror_flag" ||
1867 test ! -s conftest.err
1868 } && test -s conftest.$ac_objext; then :
1869 ac_retval=0
1870 else
1871 $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1874 ac_retval=1
1876 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1877 as_fn_set_status $ac_retval
1879 } # ac_fn_c_try_compile
1881 # ac_fn_c_try_cpp LINENO
1882 # ----------------------
1883 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1884 ac_fn_c_try_cpp ()
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 if { { ac_try="$ac_cpp conftest.$ac_ext"
1888 case "(($ac_try" in
1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890 *) ac_try_echo=$ac_try;;
1891 esac
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 $as_echo "$ac_try_echo"; } >&5
1894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1895 ac_status=$?
1896 if test -s conftest.err; then
1897 grep -v '^ *+' conftest.err >conftest.er1
1898 cat conftest.er1 >&5
1899 mv -f conftest.er1 conftest.err
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; } >/dev/null && {
1903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1904 test ! -s conftest.err
1905 }; then :
1906 ac_retval=0
1907 else
1908 $as_echo "$as_me: failed program was:" >&5
1909 sed 's/^/| /' conftest.$ac_ext >&5
1911 ac_retval=1
1913 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1914 as_fn_set_status $ac_retval
1916 } # ac_fn_c_try_cpp
1918 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1919 # -------------------------------------------------------
1920 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1921 # the include files in INCLUDES and setting the cache variable VAR
1922 # accordingly.
1923 ac_fn_c_check_header_mongrel ()
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928 $as_echo_n "checking for $2... " >&6; }
1929 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1930 $as_echo_n "(cached) " >&6
1932 eval ac_res=\$$3
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 $as_echo "$ac_res" >&6; }
1935 else
1936 # Is the header compilable?
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1938 $as_echo_n "checking $2 usability... " >&6; }
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1942 #include <$2>
1943 _ACEOF
1944 if ac_fn_c_try_compile "$LINENO"; then :
1945 ac_header_compiler=yes
1946 else
1947 ac_header_compiler=no
1949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1951 $as_echo "$ac_header_compiler" >&6; }
1953 # Is the header present?
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1955 $as_echo_n "checking $2 presence... " >&6; }
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1958 #include <$2>
1959 _ACEOF
1960 if ac_fn_c_try_cpp "$LINENO"; then :
1961 ac_header_preproc=yes
1962 else
1963 ac_header_preproc=no
1965 rm -f conftest.err conftest.$ac_ext
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1967 $as_echo "$ac_header_preproc" >&6; }
1969 # So? What about this header?
1970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1971 yes:no: )
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1973 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1975 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1977 no:yes:* )
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1979 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1981 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1983 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1985 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1987 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1989 esac
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1991 $as_echo_n "checking for $2... " >&6; }
1992 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1993 $as_echo_n "(cached) " >&6
1994 else
1995 eval "$3=\$ac_header_compiler"
1997 eval ac_res=\$$3
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999 $as_echo "$ac_res" >&6; }
2001 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2003 } # ac_fn_c_check_header_mongrel
2005 # ac_fn_c_try_run LINENO
2006 # ----------------------
2007 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2008 # that executables *can* be run.
2009 ac_fn_c_try_run ()
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 if { { ac_try="$ac_link"
2013 case "(($ac_try" in
2014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2015 *) ac_try_echo=$ac_try;;
2016 esac
2017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2018 $as_echo "$ac_try_echo"; } >&5
2019 (eval "$ac_link") 2>&5
2020 ac_status=$?
2021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2022 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2023 { { case "(($ac_try" in
2024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2025 *) ac_try_echo=$ac_try;;
2026 esac
2027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028 $as_echo "$ac_try_echo"; } >&5
2029 (eval "$ac_try") 2>&5
2030 ac_status=$?
2031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2032 test $ac_status = 0; }; }; then :
2033 ac_retval=0
2034 else
2035 $as_echo "$as_me: program exited with status $ac_status" >&5
2036 $as_echo "$as_me: failed program was:" >&5
2037 sed 's/^/| /' conftest.$ac_ext >&5
2039 ac_retval=$ac_status
2041 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2042 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2043 as_fn_set_status $ac_retval
2045 } # ac_fn_c_try_run
2047 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2048 # -------------------------------------------------------
2049 # Tests whether HEADER exists and can be compiled using the include files in
2050 # INCLUDES, setting the cache variable VAR accordingly.
2051 ac_fn_c_check_header_compile ()
2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055 $as_echo_n "checking for $2... " >&6; }
2056 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2057 $as_echo_n "(cached) " >&6
2058 else
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2062 #include <$2>
2063 _ACEOF
2064 if ac_fn_c_try_compile "$LINENO"; then :
2065 eval "$3=yes"
2066 else
2067 eval "$3=no"
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071 eval ac_res=\$$3
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073 $as_echo "$ac_res" >&6; }
2074 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2076 } # ac_fn_c_check_header_compile
2078 # ac_fn_c_try_link LINENO
2079 # -----------------------
2080 # Try to link conftest.$ac_ext, and return whether this succeeded.
2081 ac_fn_c_try_link ()
2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084 rm -f conftest.$ac_objext conftest$ac_exeext
2085 if { { ac_try="$ac_link"
2086 case "(($ac_try" in
2087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2088 *) ac_try_echo=$ac_try;;
2089 esac
2090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2091 $as_echo "$ac_try_echo"; } >&5
2092 (eval "$ac_link") 2>conftest.err
2093 ac_status=$?
2094 if test -s conftest.err; then
2095 grep -v '^ *+' conftest.err >conftest.er1
2096 cat conftest.er1 >&5
2097 mv -f conftest.er1 conftest.err
2099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2100 test $ac_status = 0; } && {
2101 test -z "$ac_c_werror_flag" ||
2102 test ! -s conftest.err
2103 } && test -s conftest$ac_exeext && {
2104 test "$cross_compiling" = yes ||
2105 $as_test_x conftest$ac_exeext
2106 }; then :
2107 ac_retval=0
2108 else
2109 $as_echo "$as_me: failed program was:" >&5
2110 sed 's/^/| /' conftest.$ac_ext >&5
2112 ac_retval=1
2114 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2115 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2116 # interfere with the next link command; also delete a directory that is
2117 # left behind by Apple's compiler. We do this before executing the actions.
2118 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2119 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2120 as_fn_set_status $ac_retval
2122 } # ac_fn_c_try_link
2124 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2125 # -------------------------------------------
2126 # Tests whether TYPE exists after having included INCLUDES, setting cache
2127 # variable VAR accordingly.
2128 ac_fn_c_check_type ()
2130 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2132 $as_echo_n "checking for $2... " >&6; }
2133 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2134 $as_echo_n "(cached) " >&6
2135 else
2136 eval "$3=no"
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h. */
2141 main ()
2143 if (sizeof ($2))
2144 return 0;
2146 return 0;
2148 _ACEOF
2149 if ac_fn_c_try_compile "$LINENO"; then :
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2154 main ()
2156 if (sizeof (($2)))
2157 return 0;
2159 return 0;
2161 _ACEOF
2162 if ac_fn_c_try_compile "$LINENO"; then :
2164 else
2165 eval "$3=yes"
2167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171 eval ac_res=\$$3
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2173 $as_echo "$ac_res" >&6; }
2174 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2176 } # ac_fn_c_check_type
2178 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2179 # --------------------------------------------
2180 # Tries to find the compile-time value of EXPR in a program that includes
2181 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2182 # computed
2183 ac_fn_c_compute_int ()
2185 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2186 if test "$cross_compiling" = yes; then
2187 # Depending upon the size, compute the lo and hi bounds.
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h. */
2192 main ()
2194 static int test_array [1 - 2 * !(($2) >= 0)];
2195 test_array [0] = 0
2198 return 0;
2200 _ACEOF
2201 if ac_fn_c_try_compile "$LINENO"; then :
2202 ac_lo=0 ac_mid=0
2203 while :; do
2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205 /* end confdefs.h. */
2208 main ()
2210 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2211 test_array [0] = 0
2214 return 0;
2216 _ACEOF
2217 if ac_fn_c_try_compile "$LINENO"; then :
2218 ac_hi=$ac_mid; break
2219 else
2220 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2221 if test $ac_lo -le $ac_mid; then
2222 ac_lo= ac_hi=
2223 break
2225 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2228 done
2229 else
2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h. */
2234 main ()
2236 static int test_array [1 - 2 * !(($2) < 0)];
2237 test_array [0] = 0
2240 return 0;
2242 _ACEOF
2243 if ac_fn_c_try_compile "$LINENO"; then :
2244 ac_hi=-1 ac_mid=-1
2245 while :; do
2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2250 main ()
2252 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2253 test_array [0] = 0
2256 return 0;
2258 _ACEOF
2259 if ac_fn_c_try_compile "$LINENO"; then :
2260 ac_lo=$ac_mid; break
2261 else
2262 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2263 if test $ac_mid -le $ac_hi; then
2264 ac_lo= ac_hi=
2265 break
2267 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 done
2271 else
2272 ac_lo= ac_hi=
2274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2277 # Binary search between lo and hi bounds.
2278 while test "x$ac_lo" != "x$ac_hi"; do
2279 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2284 main ()
2286 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2287 test_array [0] = 0
2290 return 0;
2292 _ACEOF
2293 if ac_fn_c_try_compile "$LINENO"; then :
2294 ac_hi=$ac_mid
2295 else
2296 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 done
2300 case $ac_lo in #((
2301 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2302 '') ac_retval=1 ;;
2303 esac
2304 else
2305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2306 /* end confdefs.h. */
2308 static long int longval () { return $2; }
2309 static unsigned long int ulongval () { return $2; }
2310 #include <stdio.h>
2311 #include <stdlib.h>
2313 main ()
2316 FILE *f = fopen ("conftest.val", "w");
2317 if (! f)
2318 return 1;
2319 if (($2) < 0)
2321 long int i = longval ();
2322 if (i != ($2))
2323 return 1;
2324 fprintf (f, "%ld", i);
2326 else
2328 unsigned long int i = ulongval ();
2329 if (i != ($2))
2330 return 1;
2331 fprintf (f, "%lu", i);
2333 /* Do not output a trailing newline, as this causes \r\n confusion
2334 on some platforms. */
2335 return ferror (f) || fclose (f) != 0;
2338 return 0;
2340 _ACEOF
2341 if ac_fn_c_try_run "$LINENO"; then :
2342 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2343 else
2344 ac_retval=1
2346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2347 conftest.$ac_objext conftest.beam conftest.$ac_ext
2348 rm -f conftest.val
2351 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2352 as_fn_set_status $ac_retval
2354 } # ac_fn_c_compute_int
2356 # ac_fn_c_check_func LINENO FUNC VAR
2357 # ----------------------------------
2358 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2359 ac_fn_c_check_func ()
2361 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2363 $as_echo_n "checking for $2... " >&6; }
2364 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2365 $as_echo_n "(cached) " >&6
2366 else
2367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2368 /* end confdefs.h. */
2369 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2371 #define $2 innocuous_$2
2373 /* System header to define __stub macros and hopefully few prototypes,
2374 which can conflict with char $2 (); below.
2375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2376 <limits.h> exists even on freestanding compilers. */
2378 #ifdef __STDC__
2379 # include <limits.h>
2380 #else
2381 # include <assert.h>
2382 #endif
2384 #undef $2
2386 /* Override any GCC internal prototype to avoid an error.
2387 Use char because int might match the return type of a GCC
2388 builtin and then its argument prototype would still apply. */
2389 #ifdef __cplusplus
2390 extern "C"
2391 #endif
2392 char $2 ();
2393 /* The GNU C library defines this for functions which it implements
2394 to always fail with ENOSYS. Some functions are actually named
2395 something starting with __ and the normal name is an alias. */
2396 #if defined __stub_$2 || defined __stub___$2
2397 choke me
2398 #endif
2401 main ()
2403 return $2 ();
2405 return 0;
2407 _ACEOF
2408 if ac_fn_c_try_link "$LINENO"; then :
2409 eval "$3=yes"
2410 else
2411 eval "$3=no"
2413 rm -f core conftest.err conftest.$ac_objext \
2414 conftest$ac_exeext conftest.$ac_ext
2416 eval ac_res=\$$3
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2418 $as_echo "$ac_res" >&6; }
2419 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2421 } # ac_fn_c_check_func
2423 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2424 # ----------------------------------------------------
2425 # Tries to find if the field MEMBER exists in type AGGR, after including
2426 # INCLUDES, setting cache variable VAR accordingly.
2427 ac_fn_c_check_member ()
2429 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2431 $as_echo_n "checking for $2.$3... " >&6; }
2432 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2433 $as_echo_n "(cached) " >&6
2434 else
2435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2436 /* end confdefs.h. */
2439 main ()
2441 static $2 ac_aggr;
2442 if (ac_aggr.$3)
2443 return 0;
2445 return 0;
2447 _ACEOF
2448 if ac_fn_c_try_compile "$LINENO"; then :
2449 eval "$4=yes"
2450 else
2451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2452 /* end confdefs.h. */
2455 main ()
2457 static $2 ac_aggr;
2458 if (sizeof ac_aggr.$3)
2459 return 0;
2461 return 0;
2463 _ACEOF
2464 if ac_fn_c_try_compile "$LINENO"; then :
2465 eval "$4=yes"
2466 else
2467 eval "$4=no"
2469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2473 eval ac_res=\$$4
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2475 $as_echo "$ac_res" >&6; }
2476 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2478 } # ac_fn_c_check_member
2479 cat >config.log <<_ACEOF
2480 This file contains any messages produced by compilers while
2481 running configure, to aid debugging if configure makes a mistake.
2483 It was created by ntp $as_me 4.2.6, which was
2484 generated by GNU Autoconf 2.65. Invocation command line was
2486 $ $0 $@
2488 _ACEOF
2489 exec 5>>config.log
2491 cat <<_ASUNAME
2492 ## --------- ##
2493 ## Platform. ##
2494 ## --------- ##
2496 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2497 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2498 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2499 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2500 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2502 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2503 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2505 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2506 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2507 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2508 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2509 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2510 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2511 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2513 _ASUNAME
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 for as_dir in $PATH
2518 IFS=$as_save_IFS
2519 test -z "$as_dir" && as_dir=.
2520 $as_echo "PATH: $as_dir"
2521 done
2522 IFS=$as_save_IFS
2524 } >&5
2526 cat >&5 <<_ACEOF
2529 ## ----------- ##
2530 ## Core tests. ##
2531 ## ----------- ##
2533 _ACEOF
2536 # Keep a trace of the command line.
2537 # Strip out --no-create and --no-recursion so they do not pile up.
2538 # Strip out --silent because we don't want to record it for future runs.
2539 # Also quote any args containing shell meta-characters.
2540 # Make two passes to allow for proper duplicate-argument suppression.
2541 ac_configure_args=
2542 ac_configure_args0=
2543 ac_configure_args1=
2544 ac_must_keep_next=false
2545 for ac_pass in 1 2
2547 for ac_arg
2549 case $ac_arg in
2550 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2551 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2552 | -silent | --silent | --silen | --sile | --sil)
2553 continue ;;
2554 *\'*)
2555 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2556 esac
2557 case $ac_pass in
2558 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2560 as_fn_append ac_configure_args1 " '$ac_arg'"
2561 if test $ac_must_keep_next = true; then
2562 ac_must_keep_next=false # Got value, back to normal.
2563 else
2564 case $ac_arg in
2565 *=* | --config-cache | -C | -disable-* | --disable-* \
2566 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2567 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2568 | -with-* | --with-* | -without-* | --without-* | --x)
2569 case "$ac_configure_args0 " in
2570 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2571 esac
2573 -* ) ac_must_keep_next=true ;;
2574 esac
2576 as_fn_append ac_configure_args " '$ac_arg'"
2578 esac
2579 done
2580 done
2581 { ac_configure_args0=; unset ac_configure_args0;}
2582 { ac_configure_args1=; unset ac_configure_args1;}
2584 # When interrupted or exit'd, cleanup temporary files, and complete
2585 # config.log. We remove comments because anyway the quotes in there
2586 # would cause problems or look ugly.
2587 # WARNING: Use '\'' to represent an apostrophe within the trap.
2588 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2589 trap 'exit_status=$?
2590 # Save into config.log some information that might help in debugging.
2592 echo
2594 cat <<\_ASBOX
2595 ## ---------------- ##
2596 ## Cache variables. ##
2597 ## ---------------- ##
2598 _ASBOX
2599 echo
2600 # The following way of writing the cache mishandles newlines in values,
2602 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2603 eval ac_val=\$$ac_var
2604 case $ac_val in #(
2605 *${as_nl}*)
2606 case $ac_var in #(
2607 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2608 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2609 esac
2610 case $ac_var in #(
2611 _ | IFS | as_nl) ;; #(
2612 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2613 *) { eval $ac_var=; unset $ac_var;} ;;
2614 esac ;;
2615 esac
2616 done
2617 (set) 2>&1 |
2618 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2619 *${as_nl}ac_space=\ *)
2620 sed -n \
2621 "s/'\''/'\''\\\\'\'''\''/g;
2622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2623 ;; #(
2625 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2627 esac |
2628 sort
2630 echo
2632 cat <<\_ASBOX
2633 ## ----------------- ##
2634 ## Output variables. ##
2635 ## ----------------- ##
2636 _ASBOX
2637 echo
2638 for ac_var in $ac_subst_vars
2640 eval ac_val=\$$ac_var
2641 case $ac_val in
2642 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2643 esac
2644 $as_echo "$ac_var='\''$ac_val'\''"
2645 done | sort
2646 echo
2648 if test -n "$ac_subst_files"; then
2649 cat <<\_ASBOX
2650 ## ------------------- ##
2651 ## File substitutions. ##
2652 ## ------------------- ##
2653 _ASBOX
2654 echo
2655 for ac_var in $ac_subst_files
2657 eval ac_val=\$$ac_var
2658 case $ac_val in
2659 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2660 esac
2661 $as_echo "$ac_var='\''$ac_val'\''"
2662 done | sort
2663 echo
2666 if test -s confdefs.h; then
2667 cat <<\_ASBOX
2668 ## ----------- ##
2669 ## confdefs.h. ##
2670 ## ----------- ##
2671 _ASBOX
2672 echo
2673 cat confdefs.h
2674 echo
2676 test "$ac_signal" != 0 &&
2677 $as_echo "$as_me: caught signal $ac_signal"
2678 $as_echo "$as_me: exit $exit_status"
2679 } >&5
2680 rm -f core *.core core.conftest.* &&
2681 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2682 exit $exit_status
2684 for ac_signal in 1 2 13 15; do
2685 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2686 done
2687 ac_signal=0
2689 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2690 rm -f -r conftest* confdefs.h
2692 $as_echo "/* confdefs.h */" > confdefs.h
2694 # Predefined preprocessor variables.
2696 cat >>confdefs.h <<_ACEOF
2697 #define PACKAGE_NAME "$PACKAGE_NAME"
2698 _ACEOF
2700 cat >>confdefs.h <<_ACEOF
2701 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2702 _ACEOF
2704 cat >>confdefs.h <<_ACEOF
2705 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2706 _ACEOF
2708 cat >>confdefs.h <<_ACEOF
2709 #define PACKAGE_STRING "$PACKAGE_STRING"
2710 _ACEOF
2712 cat >>confdefs.h <<_ACEOF
2713 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2714 _ACEOF
2716 cat >>confdefs.h <<_ACEOF
2717 #define PACKAGE_URL "$PACKAGE_URL"
2718 _ACEOF
2721 # Let the site file select an alternate cache file if it wants to.
2722 # Prefer an explicitly selected file to automatically selected ones.
2723 ac_site_file1=NONE
2724 ac_site_file2=NONE
2725 if test -n "$CONFIG_SITE"; then
2726 ac_site_file1=$CONFIG_SITE
2727 elif test "x$prefix" != xNONE; then
2728 ac_site_file1=$prefix/share/config.site
2729 ac_site_file2=$prefix/etc/config.site
2730 else
2731 ac_site_file1=$ac_default_prefix/share/config.site
2732 ac_site_file2=$ac_default_prefix/etc/config.site
2734 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2736 test "x$ac_site_file" = xNONE && continue
2737 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2739 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2740 sed 's/^/| /' "$ac_site_file" >&5
2741 . "$ac_site_file"
2743 done
2745 if test -r "$cache_file"; then
2746 # Some versions of bash will fail to source /dev/null (special files
2747 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2748 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2750 $as_echo "$as_me: loading cache $cache_file" >&6;}
2751 case $cache_file in
2752 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2753 *) . "./$cache_file";;
2754 esac
2756 else
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2758 $as_echo "$as_me: creating cache $cache_file" >&6;}
2759 >$cache_file
2762 # Check that the precious variables saved in the cache have kept the same
2763 # value.
2764 ac_cache_corrupted=false
2765 for ac_var in $ac_precious_vars; do
2766 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2767 eval ac_new_set=\$ac_env_${ac_var}_set
2768 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2769 eval ac_new_val=\$ac_env_${ac_var}_value
2770 case $ac_old_set,$ac_new_set in
2771 set,)
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2773 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2774 ac_cache_corrupted=: ;;
2775 ,set)
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2777 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2778 ac_cache_corrupted=: ;;
2779 ,);;
2781 if test "x$ac_old_val" != "x$ac_new_val"; then
2782 # differences in whitespace do not lead to failure.
2783 ac_old_val_w=`echo x $ac_old_val`
2784 ac_new_val_w=`echo x $ac_new_val`
2785 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2787 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2788 ac_cache_corrupted=:
2789 else
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2791 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2792 eval $ac_var=\$ac_old_val
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2795 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2797 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2798 fi;;
2799 esac
2800 # Pass precious variables to config.status.
2801 if test "$ac_new_set" = set; then
2802 case $ac_new_val in
2803 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2804 *) ac_arg=$ac_var=$ac_new_val ;;
2805 esac
2806 case " $ac_configure_args " in
2807 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2808 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2809 esac
2811 done
2812 if $ac_cache_corrupted; then
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2814 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2816 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2817 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2819 ## -------------------- ##
2820 ## Main body of script. ##
2821 ## -------------------- ##
2823 ac_ext=c
2824 ac_cpp='$CPP $CPPFLAGS'
2825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2831 ac_aux_dir=
2832 for ac_dir in . "$srcdir"/.; do
2833 for ac_t in install-sh install.sh shtool; do
2834 if test -f "$ac_dir/$ac_t"; then
2835 ac_aux_dir=$ac_dir
2836 ac_install_sh="$ac_aux_dir/$ac_t -c"
2837 break 2
2839 done
2840 done
2841 if test -z "$ac_aux_dir"; then
2842 as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2845 # These three variables are undocumented and unsupported,
2846 # and are intended to be withdrawn in a future Autoconf release.
2847 # They can cause serious problems if a builder's source tree is in a directory
2848 # whose full name contains unusual characters.
2849 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2850 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2851 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2855 # Increment ntp_configure_cache_version by one for each change to
2856 # configure.ac or .m4 files which invalidates cached values from
2857 # previous versions.
2859 # If the change affects cache variables used only by the main NTP
2860 # configure.ac, then only its version number should be bumped, while
2861 # the subdir configure.ac version numbers should be unchanged. The
2862 # same is true for a test/variable that is used only by one subdir
2863 # being changed incompatibly; only that subdir's cache version needs
2864 # bumping.
2866 # If a change affects variables shared by all NTP configure scripts,
2867 # please bump the version numbers of all three. If you are not sure,
2868 # the safe choice is to bump all three on any cache-invalidating change.
2870 # In order to avoid the risk of version stamp collision between -stable
2871 # and -dev branches, do not simply increment the version, instead use
2872 # the date YYYYMMDD optionally with -HHMM if there is more than one
2873 # bump in a day.
2875 ntp_configure_cache_version=20091117
2877 # When the cache version of config.cache and configure do not
2878 # match, NTP_CACHEVERSION will flush the cache.
2882 ntp_cache_flush=1
2884 case "$ntp_cv_main_cache_version" in
2885 $ntp_configure_cache_version)
2886 # same version, good
2887 ntp_cache_flush=0
2890 # No cache, predates ntp_cv_main_cache_version, or is empty.
2891 case "$cache_file" in
2892 /dev/null)
2893 ntp_cache_flush=0
2896 case "$NTP_CACHEVERSION_PARENT" in
2898 # Do not clear the cache immediately after it is created
2899 # empty as it is noisy. Differentiate a newly-created
2900 # config.cache from one predating the cache version
2901 # mechanism by looking for the first cached variable set
2902 # by Autoconf
2903 case "$ac_cv_path_install" in
2905 # empty config.cache file
2906 ntp_cache_flush=0
2907 esac
2910 # Parent configure just created cache from empty,
2911 # flushing would be counterproductive.
2912 ntp_cache_flush=0;
2913 esac
2914 esac
2917 # configure cache version mismatches config.cache version
2918 esac
2920 case "$ntp_cache_flush" in
2922 c_version="${ntp_cv_main_cache_version:-(no version found)}"
2924 # Do we flush all variables or exclude others' version stamps?
2926 case "$NTP_CACHEVERSION_PARENT" in
2928 # Clear all *_cv_* variables including our child subdirs'
2929 # ntp_cv_*_cache_version variables. This prevents subdir
2930 # configure scripts from noticing a version mismatch just
2931 # after the top configure in the invocation cleared and
2932 # recreated the cache.
2934 c_varname_list=`set |
2935 sed -n -e 's/=.*$//' \
2936 -e '/_cv_/p'
2940 # This is not the top configure this particular invocation.
2941 # Clear all *_cv_* variables sparing the version stamps
2942 # of other configure scripts, so we don't trigger
2943 # useless repeated clearings.
2945 c_varname_list=`set |
2946 sed -n -e 's/=.*$//' \
2947 -e '/ntp_cv_.*_cache_version/d' \
2948 -e '/_cv_/p'
2950 esac
2952 for c_varname in $c_varname_list
2954 eval ${c_varname}=; $as_unset $c_varname
2955 done
2957 c_varname_list=; $as_unset c_varname_list c_varname
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
2960 $as_echo "$as_me: $cache_file saved by another version, ignored." >&6;}
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $ntp_configure_cache_version" >&5
2962 $as_echo "$as_me: configure script cache version: $ntp_configure_cache_version" >&6;}
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
2964 $as_echo "$as_me: $cache_file version: $c_version" >&6;}
2965 $as_unset c_version
2966 esac
2968 # save configure version in config.cache for next time
2969 ntp_cv_main_cache_version="$ntp_configure_cache_version"
2971 $as_unset ntp_cache_flush
2973 # let any subdir configure.ac NTP_CACHEVERSION invocations
2974 # know they are not the top level.
2975 NTP_CACHEVERSION_PARENT='main' ; export NTP_CACHEVERSION_PARENT
2978 am__api_version='1.11'
2980 # Find a good install program. We prefer a C program (faster),
2981 # so one script is as good as another. But avoid the broken or
2982 # incompatible versions:
2983 # SysV /etc/install, /usr/sbin/install
2984 # SunOS /usr/etc/install
2985 # IRIX /sbin/install
2986 # AIX /bin/install
2987 # AmigaOS /C/install, which installs bootblocks on floppy discs
2988 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2989 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2990 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2991 # OS/2's system install, which has a completely different semantic
2992 # ./install, which can be erroneously created by make from ./install.sh.
2993 # Reject install programs that cannot install multiple files.
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2995 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2996 if test -z "$INSTALL"; then
2997 if test "${ac_cv_path_install+set}" = set; then :
2998 $as_echo_n "(cached) " >&6
2999 else
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 for as_dir in $PATH
3003 IFS=$as_save_IFS
3004 test -z "$as_dir" && as_dir=.
3005 # Account for people who put trailing slashes in PATH elements.
3006 case $as_dir/ in #((
3007 ./ | .// | /[cC]/* | \
3008 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3009 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3010 /usr/ucb/* ) ;;
3012 # OSF1 and SCO ODT 3.0 have their own names for install.
3013 # Don't use installbsd from OSF since it installs stuff as root
3014 # by default.
3015 for ac_prog in ginstall scoinst install; do
3016 for ac_exec_ext in '' $ac_executable_extensions; do
3017 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3018 if test $ac_prog = install &&
3019 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3020 # AIX install. It has an incompatible calling convention.
3022 elif test $ac_prog = install &&
3023 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3024 # program-specific install script used by HP pwplus--don't use.
3026 else
3027 rm -rf conftest.one conftest.two conftest.dir
3028 echo one > conftest.one
3029 echo two > conftest.two
3030 mkdir conftest.dir
3031 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3032 test -s conftest.one && test -s conftest.two &&
3033 test -s conftest.dir/conftest.one &&
3034 test -s conftest.dir/conftest.two
3035 then
3036 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3037 break 3
3041 done
3042 done
3044 esac
3046 done
3047 IFS=$as_save_IFS
3049 rm -rf conftest.one conftest.two conftest.dir
3052 if test "${ac_cv_path_install+set}" = set; then
3053 INSTALL=$ac_cv_path_install
3054 else
3055 # As a last resort, use the slow shell script. Don't cache a
3056 # value for INSTALL within a source directory, because that will
3057 # break other packages using the cache if that directory is
3058 # removed, or if the value is a relative name.
3059 INSTALL=$ac_install_sh
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3063 $as_echo "$INSTALL" >&6; }
3065 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3066 # It thinks the first close brace ends the variable substitution.
3067 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3069 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3071 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3074 $as_echo_n "checking whether build environment is sane... " >&6; }
3075 # Just in case
3076 sleep 1
3077 echo timestamp > conftest.file
3078 # Reject unsafe characters in $srcdir or the absolute working directory
3079 # name. Accept space and tab only in the latter.
3080 am_lf='
3082 case `pwd` in
3083 *[\\\"\#\$\&\'\`$am_lf]*)
3084 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3085 esac
3086 case $srcdir in
3087 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3088 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3089 esac
3091 # Do `set' in a subshell so we don't clobber the current shell's
3092 # arguments. Must try -L first in case configure is actually a
3093 # symlink; some systems play weird games with the mod time of symlinks
3094 # (eg FreeBSD returns the mod time of the symlink's containing
3095 # directory).
3096 if (
3097 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3098 if test "$*" = "X"; then
3099 # -L didn't work.
3100 set X `ls -t "$srcdir/configure" conftest.file`
3102 rm -f conftest.file
3103 if test "$*" != "X $srcdir/configure conftest.file" \
3104 && test "$*" != "X conftest.file $srcdir/configure"; then
3106 # If neither matched, then we have a broken ls. This can happen
3107 # if, for instance, CONFIG_SHELL is bash and it inherits a
3108 # broken ls alias from the environment. This has actually
3109 # happened. Such a system could not be considered "sane".
3110 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3111 alias in your environment" "$LINENO" 5
3114 test "$2" = conftest.file
3116 then
3117 # Ok.
3119 else
3120 as_fn_error "newly created file is older than distributed files!
3121 Check your system clock" "$LINENO" 5
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3124 $as_echo "yes" >&6; }
3125 test "$program_prefix" != NONE &&
3126 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3127 # Use a double $ so make ignores it.
3128 test "$program_suffix" != NONE &&
3129 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3130 # Double any \ or $.
3131 # By default was `s,x,x', remove it if useless.
3132 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3133 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3135 # expand $ac_aux_dir to an absolute path
3136 am_aux_dir=`cd $ac_aux_dir && pwd`
3138 if test x"${MISSING+set}" != xset; then
3139 case $am_aux_dir in
3140 *\ * | *\ *)
3141 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3143 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3144 esac
3146 # Use eval to expand $SHELL
3147 if eval "$MISSING --run true"; then
3148 am_missing_run="$MISSING --run "
3149 else
3150 am_missing_run=
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3152 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3155 if test x"${install_sh}" != xset; then
3156 case $am_aux_dir in
3157 *\ * | *\ *)
3158 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3160 install_sh="\${SHELL} $am_aux_dir/install-sh"
3161 esac
3164 # Installed binaries are usually stripped using `strip' when the user
3165 # run `make install-strip'. However `strip' might not be the right
3166 # tool to use in cross-compilation environments, therefore Automake
3167 # will honor the `STRIP' environment variable to overrule this program.
3168 if test "$cross_compiling" != no; then
3169 if test -n "$ac_tool_prefix"; then
3170 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3171 set dummy ${ac_tool_prefix}strip; ac_word=$2
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 $as_echo_n "checking for $ac_word... " >&6; }
3174 if test "${ac_cv_prog_STRIP+set}" = set; then :
3175 $as_echo_n "(cached) " >&6
3176 else
3177 if test -n "$STRIP"; then
3178 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3179 else
3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 for as_dir in $PATH
3183 IFS=$as_save_IFS
3184 test -z "$as_dir" && as_dir=.
3185 for ac_exec_ext in '' $ac_executable_extensions; do
3186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3187 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 break 2
3191 done
3192 done
3193 IFS=$as_save_IFS
3197 STRIP=$ac_cv_prog_STRIP
3198 if test -n "$STRIP"; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3200 $as_echo "$STRIP" >&6; }
3201 else
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 $as_echo "no" >&6; }
3208 if test -z "$ac_cv_prog_STRIP"; then
3209 ac_ct_STRIP=$STRIP
3210 # Extract the first word of "strip", so it can be a program name with args.
3211 set dummy strip; ac_word=$2
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213 $as_echo_n "checking for $ac_word... " >&6; }
3214 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3215 $as_echo_n "(cached) " >&6
3216 else
3217 if test -n "$ac_ct_STRIP"; then
3218 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3219 else
3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221 for as_dir in $PATH
3223 IFS=$as_save_IFS
3224 test -z "$as_dir" && as_dir=.
3225 for ac_exec_ext in '' $ac_executable_extensions; do
3226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3227 ac_cv_prog_ac_ct_STRIP="strip"
3228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3229 break 2
3231 done
3232 done
3233 IFS=$as_save_IFS
3237 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3238 if test -n "$ac_ct_STRIP"; then
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3240 $as_echo "$ac_ct_STRIP" >&6; }
3241 else
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243 $as_echo "no" >&6; }
3246 if test "x$ac_ct_STRIP" = x; then
3247 STRIP=":"
3248 else
3249 case $cross_compiling:$ac_tool_warned in
3250 yes:)
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3253 ac_tool_warned=yes ;;
3254 esac
3255 STRIP=$ac_ct_STRIP
3257 else
3258 STRIP="$ac_cv_prog_STRIP"
3262 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3265 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3266 if test -z "$MKDIR_P"; then
3267 if test "${ac_cv_path_mkdir+set}" = set; then :
3268 $as_echo_n "(cached) " >&6
3269 else
3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3273 IFS=$as_save_IFS
3274 test -z "$as_dir" && as_dir=.
3275 for ac_prog in mkdir gmkdir; do
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3278 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3279 'mkdir (GNU coreutils) '* | \
3280 'mkdir (coreutils) '* | \
3281 'mkdir (fileutils) '4.1*)
3282 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3283 break 3;;
3284 esac
3285 done
3286 done
3287 done
3288 IFS=$as_save_IFS
3292 test -d ./--version && rmdir ./--version
3293 if test "${ac_cv_path_mkdir+set}" = set; then
3294 MKDIR_P="$ac_cv_path_mkdir -p"
3295 else
3296 # As a last resort, use the slow shell script. Don't cache a
3297 # value for MKDIR_P within a source directory, because that will
3298 # break other packages using the cache if that directory is
3299 # removed, or if the value is a relative name.
3300 MKDIR_P="$ac_install_sh -d"
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3304 $as_echo "$MKDIR_P" >&6; }
3306 mkdir_p="$MKDIR_P"
3307 case $mkdir_p in
3308 [\\/$]* | ?:[\\/]*) ;;
3309 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3310 esac
3312 for ac_prog in gawk mawk nawk awk
3314 # Extract the first word of "$ac_prog", so it can be a program name with args.
3315 set dummy $ac_prog; ac_word=$2
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3317 $as_echo_n "checking for $ac_word... " >&6; }
3318 if test "${ac_cv_prog_AWK+set}" = set; then :
3319 $as_echo_n "(cached) " >&6
3320 else
3321 if test -n "$AWK"; then
3322 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3323 else
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 for as_dir in $PATH
3327 IFS=$as_save_IFS
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3331 ac_cv_prog_AWK="$ac_prog"
3332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 break 2
3335 done
3336 done
3337 IFS=$as_save_IFS
3341 AWK=$ac_cv_prog_AWK
3342 if test -n "$AWK"; then
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3344 $as_echo "$AWK" >&6; }
3345 else
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3347 $as_echo "no" >&6; }
3351 test -n "$AWK" && break
3352 done
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3355 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3356 set x ${MAKE-make}
3357 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3358 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3359 $as_echo_n "(cached) " >&6
3360 else
3361 cat >conftest.make <<\_ACEOF
3362 SHELL = /bin/sh
3363 all:
3364 @echo '@@@%%%=$(MAKE)=@@@%%%'
3365 _ACEOF
3366 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3367 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3368 *@@@%%%=?*=@@@%%%*)
3369 eval ac_cv_prog_make_${ac_make}_set=yes;;
3371 eval ac_cv_prog_make_${ac_make}_set=no;;
3372 esac
3373 rm -f conftest.make
3375 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3377 $as_echo "yes" >&6; }
3378 SET_MAKE=
3379 else
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381 $as_echo "no" >&6; }
3382 SET_MAKE="MAKE=${MAKE-make}"
3385 rm -rf .tst 2>/dev/null
3386 mkdir .tst 2>/dev/null
3387 if test -d .tst; then
3388 am__leading_dot=.
3389 else
3390 am__leading_dot=_
3392 rmdir .tst 2>/dev/null
3394 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3395 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3396 # is not polluted with repeated "-I."
3397 am__isrc=' -I$(srcdir)'
3398 # test to see if srcdir already configured
3399 if test -f $srcdir/config.status; then
3400 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3404 # test whether we have cygpath
3405 if test -z "$CYGPATH_W"; then
3406 if (cygpath --version) >/dev/null 2>/dev/null; then
3407 CYGPATH_W='cygpath -w'
3408 else
3409 CYGPATH_W=echo
3414 # Define the identity of the package.
3415 PACKAGE='ntp'
3416 VERSION='4.2.6'
3419 cat >>confdefs.h <<_ACEOF
3420 #define PACKAGE "$PACKAGE"
3421 _ACEOF
3424 cat >>confdefs.h <<_ACEOF
3425 #define VERSION "$VERSION"
3426 _ACEOF
3428 # Some tools Automake needs.
3430 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3433 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3436 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3439 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3442 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3444 # We need awk for the "check" target. The system "awk" is bad on
3445 # some platforms.
3446 # Always define AMTAR for backward compatibility.
3448 AMTAR=${AMTAR-"${am_missing_run}tar"}
3450 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3456 # Make sure we can run config.sub.
3457 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3458 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3461 $as_echo_n "checking build system type... " >&6; }
3462 if test "${ac_cv_build+set}" = set; then :
3463 $as_echo_n "(cached) " >&6
3464 else
3465 ac_build_alias=$build_alias
3466 test "x$ac_build_alias" = x &&
3467 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3468 test "x$ac_build_alias" = x &&
3469 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3470 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3471 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3475 $as_echo "$ac_cv_build" >&6; }
3476 case $ac_cv_build in
3477 *-*-*) ;;
3478 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3479 esac
3480 build=$ac_cv_build
3481 ac_save_IFS=$IFS; IFS='-'
3482 set x $ac_cv_build
3483 shift
3484 build_cpu=$1
3485 build_vendor=$2
3486 shift; shift
3487 # Remember, the first character of IFS is used to create $*,
3488 # except with old shells:
3489 build_os=$*
3490 IFS=$ac_save_IFS
3491 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3495 $as_echo_n "checking host system type... " >&6; }
3496 if test "${ac_cv_host+set}" = set; then :
3497 $as_echo_n "(cached) " >&6
3498 else
3499 if test "x$host_alias" = x; then
3500 ac_cv_host=$ac_cv_build
3501 else
3502 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3503 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3508 $as_echo "$ac_cv_host" >&6; }
3509 case $ac_cv_host in
3510 *-*-*) ;;
3511 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3512 esac
3513 host=$ac_cv_host
3514 ac_save_IFS=$IFS; IFS='-'
3515 set x $ac_cv_host
3516 shift
3517 host_cpu=$1
3518 host_vendor=$2
3519 shift; shift
3520 # Remember, the first character of IFS is used to create $*,
3521 # except with old shells:
3522 host_os=$*
3523 IFS=$ac_save_IFS
3524 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3528 cat >>confdefs.h <<_ACEOF
3529 #define STR_SYSTEM "$host"
3530 _ACEOF
3532 ac_config_headers="$ac_config_headers config.h"
3535 ac_cv_var_atom_ok=no
3536 ac_cv_var_oncore_ok=no
3537 ac_cv_var_parse_ok=no
3538 ac_cv_var_ripe_ncc_ok=no
3539 ac_cv_var_jupiter_ok=no
3541 iCFLAGS="$CFLAGS"
3543 DEPDIR="${am__leading_dot}deps"
3545 ac_config_commands="$ac_config_commands depfiles"
3548 am_make=${MAKE-make}
3549 cat > confinc << 'END'
3550 am__doit:
3551 @echo this is the am__doit target
3552 .PHONY: am__doit
3554 # If we don't find an include directive, just comment out the code.
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3556 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3557 am__include="#"
3558 am__quote=
3559 _am_result=none
3560 # First try GNU make style include.
3561 echo "include confinc" > confmf
3562 # Ignore all kinds of additional output from `make'.
3563 case `$am_make -s -f confmf 2> /dev/null` in #(
3564 *the\ am__doit\ target*)
3565 am__include=include
3566 am__quote=
3567 _am_result=GNU
3569 esac
3570 # Now try BSD make style include.
3571 if test "$am__include" = "#"; then
3572 echo '.include "confinc"' > confmf
3573 case `$am_make -s -f confmf 2> /dev/null` in #(
3574 *the\ am__doit\ target*)
3575 am__include=.include
3576 am__quote="\""
3577 _am_result=BSD
3579 esac
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3584 $as_echo "$_am_result" >&6; }
3585 rm -f confinc confmf
3587 # Check whether --enable-dependency-tracking was given.
3588 if test "${enable_dependency_tracking+set}" = set; then :
3589 enableval=$enable_dependency_tracking;
3592 if test "x$enable_dependency_tracking" != xno; then
3593 am_depcomp="$ac_aux_dir/depcomp"
3594 AMDEPBACKSLASH='\'
3596 if test "x$enable_dependency_tracking" != xno; then
3597 AMDEP_TRUE=
3598 AMDEP_FALSE='#'
3599 else
3600 AMDEP_TRUE='#'
3601 AMDEP_FALSE=
3605 ac_ext=c
3606 ac_cpp='$CPP $CPPFLAGS'
3607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3610 if test -n "$ac_tool_prefix"; then
3611 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3612 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614 $as_echo_n "checking for $ac_word... " >&6; }
3615 if test "${ac_cv_prog_CC+set}" = set; then :
3616 $as_echo_n "(cached) " >&6
3617 else
3618 if test -n "$CC"; then
3619 ac_cv_prog_CC="$CC" # Let the user override the test.
3620 else
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622 for as_dir in $PATH
3624 IFS=$as_save_IFS
3625 test -z "$as_dir" && as_dir=.
3626 for ac_exec_ext in '' $ac_executable_extensions; do
3627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3628 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630 break 2
3632 done
3633 done
3634 IFS=$as_save_IFS
3638 CC=$ac_cv_prog_CC
3639 if test -n "$CC"; then
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3641 $as_echo "$CC" >&6; }
3642 else
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3649 if test -z "$ac_cv_prog_CC"; then
3650 ac_ct_CC=$CC
3651 # Extract the first word of "gcc", so it can be a program name with args.
3652 set dummy gcc; ac_word=$2
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 $as_echo_n "checking for $ac_word... " >&6; }
3655 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3656 $as_echo_n "(cached) " >&6
3657 else
3658 if test -n "$ac_ct_CC"; then
3659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3660 else
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3664 IFS=$as_save_IFS
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3668 ac_cv_prog_ac_ct_CC="gcc"
3669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 break 2
3672 done
3673 done
3674 IFS=$as_save_IFS
3678 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3679 if test -n "$ac_ct_CC"; then
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3681 $as_echo "$ac_ct_CC" >&6; }
3682 else
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684 $as_echo "no" >&6; }
3687 if test "x$ac_ct_CC" = x; then
3688 CC=""
3689 else
3690 case $cross_compiling:$ac_tool_warned in
3691 yes:)
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3694 ac_tool_warned=yes ;;
3695 esac
3696 CC=$ac_ct_CC
3698 else
3699 CC="$ac_cv_prog_CC"
3702 if test -z "$CC"; then
3703 if test -n "$ac_tool_prefix"; then
3704 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3705 set dummy ${ac_tool_prefix}cc; ac_word=$2
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3707 $as_echo_n "checking for $ac_word... " >&6; }
3708 if test "${ac_cv_prog_CC+set}" = set; then :
3709 $as_echo_n "(cached) " >&6
3710 else
3711 if test -n "$CC"; then
3712 ac_cv_prog_CC="$CC" # Let the user override the test.
3713 else
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 for as_dir in $PATH
3717 IFS=$as_save_IFS
3718 test -z "$as_dir" && as_dir=.
3719 for ac_exec_ext in '' $ac_executable_extensions; do
3720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3721 ac_cv_prog_CC="${ac_tool_prefix}cc"
3722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3723 break 2
3725 done
3726 done
3727 IFS=$as_save_IFS
3731 CC=$ac_cv_prog_CC
3732 if test -n "$CC"; then
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3734 $as_echo "$CC" >&6; }
3735 else
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737 $as_echo "no" >&6; }
3743 if test -z "$CC"; then
3744 # Extract the first word of "cc", so it can be a program name with args.
3745 set dummy cc; ac_word=$2
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3747 $as_echo_n "checking for $ac_word... " >&6; }
3748 if test "${ac_cv_prog_CC+set}" = set; then :
3749 $as_echo_n "(cached) " >&6
3750 else
3751 if test -n "$CC"; then
3752 ac_cv_prog_CC="$CC" # Let the user override the test.
3753 else
3754 ac_prog_rejected=no
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 for as_dir in $PATH
3758 IFS=$as_save_IFS
3759 test -z "$as_dir" && as_dir=.
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3762 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3763 ac_prog_rejected=yes
3764 continue
3766 ac_cv_prog_CC="cc"
3767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3768 break 2
3770 done
3771 done
3772 IFS=$as_save_IFS
3774 if test $ac_prog_rejected = yes; then
3775 # We found a bogon in the path, so make sure we never use it.
3776 set dummy $ac_cv_prog_CC
3777 shift
3778 if test $# != 0; then
3779 # We chose a different compiler from the bogus one.
3780 # However, it has the same basename, so the bogon will be chosen
3781 # first if we set CC to just the basename; use the full file name.
3782 shift
3783 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3788 CC=$ac_cv_prog_CC
3789 if test -n "$CC"; then
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3791 $as_echo "$CC" >&6; }
3792 else
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794 $as_echo "no" >&6; }
3799 if test -z "$CC"; then
3800 if test -n "$ac_tool_prefix"; then
3801 for ac_prog in cl.exe
3803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3806 $as_echo_n "checking for $ac_word... " >&6; }
3807 if test "${ac_cv_prog_CC+set}" = set; then :
3808 $as_echo_n "(cached) " >&6
3809 else
3810 if test -n "$CC"; then
3811 ac_cv_prog_CC="$CC" # Let the user override the test.
3812 else
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH
3816 IFS=$as_save_IFS
3817 test -z "$as_dir" && as_dir=.
3818 for ac_exec_ext in '' $ac_executable_extensions; do
3819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3820 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3822 break 2
3824 done
3825 done
3826 IFS=$as_save_IFS
3830 CC=$ac_cv_prog_CC
3831 if test -n "$CC"; then
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3833 $as_echo "$CC" >&6; }
3834 else
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3836 $as_echo "no" >&6; }
3840 test -n "$CC" && break
3841 done
3843 if test -z "$CC"; then
3844 ac_ct_CC=$CC
3845 for ac_prog in cl.exe
3847 # Extract the first word of "$ac_prog", so it can be a program name with args.
3848 set dummy $ac_prog; ac_word=$2
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3850 $as_echo_n "checking for $ac_word... " >&6; }
3851 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3852 $as_echo_n "(cached) " >&6
3853 else
3854 if test -n "$ac_ct_CC"; then
3855 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3856 else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH
3860 IFS=$as_save_IFS
3861 test -z "$as_dir" && as_dir=.
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3864 ac_cv_prog_ac_ct_CC="$ac_prog"
3865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3866 break 2
3868 done
3869 done
3870 IFS=$as_save_IFS
3874 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3875 if test -n "$ac_ct_CC"; then
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3877 $as_echo "$ac_ct_CC" >&6; }
3878 else
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3884 test -n "$ac_ct_CC" && break
3885 done
3887 if test "x$ac_ct_CC" = x; then
3888 CC=""
3889 else
3890 case $cross_compiling:$ac_tool_warned in
3891 yes:)
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3894 ac_tool_warned=yes ;;
3895 esac
3896 CC=$ac_ct_CC
3903 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3905 as_fn_error "no acceptable C compiler found in \$PATH
3906 See \`config.log' for more details." "$LINENO" 5; }
3908 # Provide some information about the compiler.
3909 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3910 set X $ac_compile
3911 ac_compiler=$2
3912 for ac_option in --version -v -V -qversion; do
3913 { { ac_try="$ac_compiler $ac_option >&5"
3914 case "(($ac_try" in
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3917 esac
3918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3919 $as_echo "$ac_try_echo"; } >&5
3920 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3921 ac_status=$?
3922 if test -s conftest.err; then
3923 sed '10a\
3924 ... rest of stderr output deleted ...
3925 10q' conftest.err >conftest.er1
3926 cat conftest.er1 >&5
3928 rm -f conftest.er1 conftest.err
3929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3930 test $ac_status = 0; }
3931 done
3933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934 /* end confdefs.h. */
3937 main ()
3941 return 0;
3943 _ACEOF
3944 ac_clean_files_save=$ac_clean_files
3945 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3946 # Try to create an executable without -o first, disregard a.out.
3947 # It will help us diagnose broken compilers, and finding out an intuition
3948 # of exeext.
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3950 $as_echo_n "checking whether the C compiler works... " >&6; }
3951 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3953 # The possible output files:
3954 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3956 ac_rmfiles=
3957 for ac_file in $ac_files
3959 case $ac_file in
3960 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3961 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3962 esac
3963 done
3964 rm -f $ac_rmfiles
3966 if { { ac_try="$ac_link_default"
3967 case "(($ac_try" in
3968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3969 *) ac_try_echo=$ac_try;;
3970 esac
3971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3972 $as_echo "$ac_try_echo"; } >&5
3973 (eval "$ac_link_default") 2>&5
3974 ac_status=$?
3975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3976 test $ac_status = 0; }; then :
3977 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3978 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3979 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3980 # so that the user can short-circuit this test for compilers unknown to
3981 # Autoconf.
3982 for ac_file in $ac_files ''
3984 test -f "$ac_file" || continue
3985 case $ac_file in
3986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3988 [ab].out )
3989 # We found the default executable, but exeext='' is most
3990 # certainly right.
3991 break;;
3992 *.* )
3993 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3994 then :; else
3995 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3997 # We set ac_cv_exeext here because the later test for it is not
3998 # safe: cross compilers may not add the suffix if given an `-o'
3999 # argument, so we may need to know it at that point already.
4000 # Even if this section looks crufty: it has the advantage of
4001 # actually working.
4002 break;;
4004 break;;
4005 esac
4006 done
4007 test "$ac_cv_exeext" = no && ac_cv_exeext=
4009 else
4010 ac_file=''
4012 if test -z "$ac_file"; then :
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014 $as_echo "no" >&6; }
4015 $as_echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.$ac_ext >&5
4018 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4020 { as_fn_set_status 77
4021 as_fn_error "C compiler cannot create executables
4022 See \`config.log' for more details." "$LINENO" 5; }; }
4023 else
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4025 $as_echo "yes" >&6; }
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4028 $as_echo_n "checking for C compiler default output file name... " >&6; }
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4030 $as_echo "$ac_file" >&6; }
4031 ac_exeext=$ac_cv_exeext
4033 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4034 ac_clean_files=$ac_clean_files_save
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4036 $as_echo_n "checking for suffix of executables... " >&6; }
4037 if { { ac_try="$ac_link"
4038 case "(($ac_try" in
4039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040 *) ac_try_echo=$ac_try;;
4041 esac
4042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4043 $as_echo "$ac_try_echo"; } >&5
4044 (eval "$ac_link") 2>&5
4045 ac_status=$?
4046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4047 test $ac_status = 0; }; then :
4048 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4049 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4050 # work properly (i.e., refer to `conftest.exe'), while it won't with
4051 # `rm'.
4052 for ac_file in conftest.exe conftest conftest.*; do
4053 test -f "$ac_file" || continue
4054 case $ac_file in
4055 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4056 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4057 break;;
4058 * ) break;;
4059 esac
4060 done
4061 else
4062 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4063 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4064 as_fn_error "cannot compute suffix of executables: cannot compile and link
4065 See \`config.log' for more details." "$LINENO" 5; }
4067 rm -f conftest conftest$ac_cv_exeext
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4069 $as_echo "$ac_cv_exeext" >&6; }
4071 rm -f conftest.$ac_ext
4072 EXEEXT=$ac_cv_exeext
4073 ac_exeext=$EXEEXT
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4076 #include <stdio.h>
4078 main ()
4080 FILE *f = fopen ("conftest.out", "w");
4081 return ferror (f) || fclose (f) != 0;
4084 return 0;
4086 _ACEOF
4087 ac_clean_files="$ac_clean_files conftest.out"
4088 # Check that the compiler produces executables we can run. If not, either
4089 # the compiler is broken, or we cross compile.
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4091 $as_echo_n "checking whether we are cross compiling... " >&6; }
4092 if test "$cross_compiling" != yes; then
4093 { { ac_try="$ac_link"
4094 case "(($ac_try" in
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4097 esac
4098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4099 $as_echo "$ac_try_echo"; } >&5
4100 (eval "$ac_link") 2>&5
4101 ac_status=$?
4102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4103 test $ac_status = 0; }
4104 if { ac_try='./conftest$ac_cv_exeext'
4105 { { case "(($ac_try" in
4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107 *) ac_try_echo=$ac_try;;
4108 esac
4109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4110 $as_echo "$ac_try_echo"; } >&5
4111 (eval "$ac_try") 2>&5
4112 ac_status=$?
4113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4114 test $ac_status = 0; }; }; then
4115 cross_compiling=no
4116 else
4117 if test "$cross_compiling" = maybe; then
4118 cross_compiling=yes
4119 else
4120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4122 as_fn_error "cannot run C compiled programs.
4123 If you meant to cross compile, use \`--host'.
4124 See \`config.log' for more details." "$LINENO" 5; }
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4129 $as_echo "$cross_compiling" >&6; }
4131 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4132 ac_clean_files=$ac_clean_files_save
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4134 $as_echo_n "checking for suffix of object files... " >&6; }
4135 if test "${ac_cv_objext+set}" = set; then :
4136 $as_echo_n "(cached) " >&6
4137 else
4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h. */
4142 main ()
4146 return 0;
4148 _ACEOF
4149 rm -f conftest.o conftest.obj
4150 if { { ac_try="$ac_compile"
4151 case "(($ac_try" in
4152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4153 *) ac_try_echo=$ac_try;;
4154 esac
4155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4156 $as_echo "$ac_try_echo"; } >&5
4157 (eval "$ac_compile") 2>&5
4158 ac_status=$?
4159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4160 test $ac_status = 0; }; then :
4161 for ac_file in conftest.o conftest.obj conftest.*; do
4162 test -f "$ac_file" || continue;
4163 case $ac_file in
4164 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4165 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4166 break;;
4167 esac
4168 done
4169 else
4170 $as_echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4175 as_fn_error "cannot compute suffix of object files: cannot compile
4176 See \`config.log' for more details." "$LINENO" 5; }
4178 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4181 $as_echo "$ac_cv_objext" >&6; }
4182 OBJEXT=$ac_cv_objext
4183 ac_objext=$OBJEXT
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4185 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4186 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4187 $as_echo_n "(cached) " >&6
4188 else
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4193 main ()
4195 #ifndef __GNUC__
4196 choke me
4197 #endif
4200 return 0;
4202 _ACEOF
4203 if ac_fn_c_try_compile "$LINENO"; then :
4204 ac_compiler_gnu=yes
4205 else
4206 ac_compiler_gnu=no
4208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4213 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4214 if test $ac_compiler_gnu = yes; then
4215 GCC=yes
4216 else
4217 GCC=
4219 ac_test_CFLAGS=${CFLAGS+set}
4220 ac_save_CFLAGS=$CFLAGS
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4222 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4223 if test "${ac_cv_prog_cc_g+set}" = set; then :
4224 $as_echo_n "(cached) " >&6
4225 else
4226 ac_save_c_werror_flag=$ac_c_werror_flag
4227 ac_c_werror_flag=yes
4228 ac_cv_prog_cc_g=no
4229 CFLAGS="-g"
4230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231 /* end confdefs.h. */
4234 main ()
4238 return 0;
4240 _ACEOF
4241 if ac_fn_c_try_compile "$LINENO"; then :
4242 ac_cv_prog_cc_g=yes
4243 else
4244 CFLAGS=""
4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4249 main ()
4253 return 0;
4255 _ACEOF
4256 if ac_fn_c_try_compile "$LINENO"; then :
4258 else
4259 ac_c_werror_flag=$ac_save_c_werror_flag
4260 CFLAGS="-g"
4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h. */
4265 main ()
4269 return 0;
4271 _ACEOF
4272 if ac_fn_c_try_compile "$LINENO"; then :
4273 ac_cv_prog_cc_g=yes
4275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4280 ac_c_werror_flag=$ac_save_c_werror_flag
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4283 $as_echo "$ac_cv_prog_cc_g" >&6; }
4284 if test "$ac_test_CFLAGS" = set; then
4285 CFLAGS=$ac_save_CFLAGS
4286 elif test $ac_cv_prog_cc_g = yes; then
4287 if test "$GCC" = yes; then
4288 CFLAGS="-g -O2"
4289 else
4290 CFLAGS="-g"
4292 else
4293 if test "$GCC" = yes; then
4294 CFLAGS="-O2"
4295 else
4296 CFLAGS=
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4300 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4301 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4302 $as_echo_n "(cached) " >&6
4303 else
4304 ac_cv_prog_cc_c89=no
4305 ac_save_CC=$CC
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4308 #include <stdarg.h>
4309 #include <stdio.h>
4310 #include <sys/types.h>
4311 #include <sys/stat.h>
4312 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4313 struct buf { int x; };
4314 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4315 static char *e (p, i)
4316 char **p;
4317 int i;
4319 return p[i];
4321 static char *f (char * (*g) (char **, int), char **p, ...)
4323 char *s;
4324 va_list v;
4325 va_start (v,p);
4326 s = g (p, va_arg (v,int));
4327 va_end (v);
4328 return s;
4331 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4332 function prototypes and stuff, but not '\xHH' hex character constants.
4333 These don't provoke an error unfortunately, instead are silently treated
4334 as 'x'. The following induces an error, until -std is added to get
4335 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4336 array size at least. It's necessary to write '\x00'==0 to get something
4337 that's true only with -std. */
4338 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4340 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4341 inside strings and character constants. */
4342 #define FOO(x) 'x'
4343 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4345 int test (int i, double x);
4346 struct s1 {int (*f) (int a);};
4347 struct s2 {int (*f) (double a);};
4348 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4349 int argc;
4350 char **argv;
4352 main ()
4354 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4356 return 0;
4358 _ACEOF
4359 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4360 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4362 CC="$ac_save_CC $ac_arg"
4363 if ac_fn_c_try_compile "$LINENO"; then :
4364 ac_cv_prog_cc_c89=$ac_arg
4366 rm -f core conftest.err conftest.$ac_objext
4367 test "x$ac_cv_prog_cc_c89" != "xno" && break
4368 done
4369 rm -f conftest.$ac_ext
4370 CC=$ac_save_CC
4373 # AC_CACHE_VAL
4374 case "x$ac_cv_prog_cc_c89" in
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4377 $as_echo "none needed" >&6; } ;;
4378 xno)
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4380 $as_echo "unsupported" >&6; } ;;
4382 CC="$CC $ac_cv_prog_cc_c89"
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4384 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4385 esac
4386 if test "x$ac_cv_prog_cc_c89" != xno; then :
4390 ac_ext=c
4391 ac_cpp='$CPP $CPPFLAGS'
4392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4396 depcc="$CC" am_compiler_list=
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4399 $as_echo_n "checking dependency style of $depcc... " >&6; }
4400 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4401 $as_echo_n "(cached) " >&6
4402 else
4403 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4404 # We make a subdir and do the tests there. Otherwise we can end up
4405 # making bogus files that we don't know about and never remove. For
4406 # instance it was reported that on HP-UX the gcc test will end up
4407 # making a dummy file named `D' -- because `-MD' means `put the output
4408 # in D'.
4409 mkdir conftest.dir
4410 # Copy depcomp to subdir because otherwise we won't find it if we're
4411 # using a relative directory.
4412 cp "$am_depcomp" conftest.dir
4413 cd conftest.dir
4414 # We will build objects and dependencies in a subdirectory because
4415 # it helps to detect inapplicable dependency modes. For instance
4416 # both Tru64's cc and ICC support -MD to output dependencies as a
4417 # side effect of compilation, but ICC will put the dependencies in
4418 # the current directory while Tru64 will put them in the object
4419 # directory.
4420 mkdir sub
4422 am_cv_CC_dependencies_compiler_type=none
4423 if test "$am_compiler_list" = ""; then
4424 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4426 am__universal=false
4427 case " $depcc " in #(
4428 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4429 esac
4431 for depmode in $am_compiler_list; do
4432 # Setup a source with many dependencies, because some compilers
4433 # like to wrap large dependency lists on column 80 (with \), and
4434 # we should not choose a depcomp mode which is confused by this.
4436 # We need to recreate these files for each test, as the compiler may
4437 # overwrite some of them when testing with obscure command lines.
4438 # This happens at least with the AIX C compiler.
4439 : > sub/conftest.c
4440 for i in 1 2 3 4 5 6; do
4441 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4442 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4443 # Solaris 8's {/usr,}/bin/sh.
4444 touch sub/conftst$i.h
4445 done
4446 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4448 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4449 # mode. It turns out that the SunPro C++ compiler does not properly
4450 # handle `-M -o', and we need to detect this. Also, some Intel
4451 # versions had trouble with output in subdirs
4452 am__obj=sub/conftest.${OBJEXT-o}
4453 am__minus_obj="-o $am__obj"
4454 case $depmode in
4455 gcc)
4456 # This depmode causes a compiler race in universal mode.
4457 test "$am__universal" = false || continue
4459 nosideeffect)
4460 # after this tag, mechanisms are not by side-effect, so they'll
4461 # only be used when explicitly requested
4462 if test "x$enable_dependency_tracking" = xyes; then
4463 continue
4464 else
4465 break
4468 msvisualcpp | msvcmsys)
4469 # This compiler won't grok `-c -o', but also, the minuso test has
4470 # not run yet. These depmodes are late enough in the game, and
4471 # so weak that their functioning should not be impacted.
4472 am__obj=conftest.${OBJEXT-o}
4473 am__minus_obj=
4475 none) break ;;
4476 esac
4477 if depmode=$depmode \
4478 source=sub/conftest.c object=$am__obj \
4479 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4480 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4481 >/dev/null 2>conftest.err &&
4482 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4483 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4484 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4485 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4486 # icc doesn't choke on unknown options, it will just issue warnings
4487 # or remarks (even with -Werror). So we grep stderr for any message
4488 # that says an option was ignored or not supported.
4489 # When given -MP, icc 7.0 and 7.1 complain thusly:
4490 # icc: Command line warning: ignoring option '-M'; no argument required
4491 # The diagnosis changed in icc 8.0:
4492 # icc: Command line remark: option '-MP' not supported
4493 if (grep 'ignoring option' conftest.err ||
4494 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4495 am_cv_CC_dependencies_compiler_type=$depmode
4496 break
4499 done
4501 cd ..
4502 rm -rf conftest.dir
4503 else
4504 am_cv_CC_dependencies_compiler_type=none
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4509 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4510 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4513 test "x$enable_dependency_tracking" != xno \
4514 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4515 am__fastdepCC_TRUE=
4516 am__fastdepCC_FALSE='#'
4517 else
4518 am__fastdepCC_TRUE='#'
4519 am__fastdepCC_FALSE=
4524 ac_ext=c
4525 ac_cpp='$CPP $CPPFLAGS'
4526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4530 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4531 # On Suns, sometimes $CPP names a directory.
4532 if test -n "$CPP" && test -d "$CPP"; then
4533 CPP=
4535 if test -z "$CPP"; then
4536 if test "${ac_cv_prog_CPP+set}" = set; then :
4537 $as_echo_n "(cached) " >&6
4538 else
4539 # Double quotes because CPP needs to be expanded
4540 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4542 ac_preproc_ok=false
4543 for ac_c_preproc_warn_flag in '' yes
4545 # Use a header file that comes with gcc, so configuring glibc
4546 # with a fresh cross-compiler works.
4547 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4548 # <limits.h> exists even on freestanding compilers.
4549 # On the NeXT, cc -E runs the code through the compiler's parser,
4550 # not just through cpp. "Syntax error" is here to catch this case.
4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552 /* end confdefs.h. */
4553 #ifdef __STDC__
4554 # include <limits.h>
4555 #else
4556 # include <assert.h>
4557 #endif
4558 Syntax error
4559 _ACEOF
4560 if ac_fn_c_try_cpp "$LINENO"; then :
4562 else
4563 # Broken: fails on valid input.
4564 continue
4566 rm -f conftest.err conftest.$ac_ext
4568 # OK, works on sane cases. Now check whether nonexistent headers
4569 # can be detected and how.
4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571 /* end confdefs.h. */
4572 #include <ac_nonexistent.h>
4573 _ACEOF
4574 if ac_fn_c_try_cpp "$LINENO"; then :
4575 # Broken: success on invalid input.
4576 continue
4577 else
4578 # Passes both tests.
4579 ac_preproc_ok=:
4580 break
4582 rm -f conftest.err conftest.$ac_ext
4584 done
4585 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4586 rm -f conftest.err conftest.$ac_ext
4587 if $ac_preproc_ok; then :
4588 break
4591 done
4592 ac_cv_prog_CPP=$CPP
4595 CPP=$ac_cv_prog_CPP
4596 else
4597 ac_cv_prog_CPP=$CPP
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4600 $as_echo "$CPP" >&6; }
4601 ac_preproc_ok=false
4602 for ac_c_preproc_warn_flag in '' yes
4604 # Use a header file that comes with gcc, so configuring glibc
4605 # with a fresh cross-compiler works.
4606 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4607 # <limits.h> exists even on freestanding compilers.
4608 # On the NeXT, cc -E runs the code through the compiler's parser,
4609 # not just through cpp. "Syntax error" is here to catch this case.
4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h. */
4612 #ifdef __STDC__
4613 # include <limits.h>
4614 #else
4615 # include <assert.h>
4616 #endif
4617 Syntax error
4618 _ACEOF
4619 if ac_fn_c_try_cpp "$LINENO"; then :
4621 else
4622 # Broken: fails on valid input.
4623 continue
4625 rm -f conftest.err conftest.$ac_ext
4627 # OK, works on sane cases. Now check whether nonexistent headers
4628 # can be detected and how.
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h. */
4631 #include <ac_nonexistent.h>
4632 _ACEOF
4633 if ac_fn_c_try_cpp "$LINENO"; then :
4634 # Broken: success on invalid input.
4635 continue
4636 else
4637 # Passes both tests.
4638 ac_preproc_ok=:
4639 break
4641 rm -f conftest.err conftest.$ac_ext
4643 done
4644 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4645 rm -f conftest.err conftest.$ac_ext
4646 if $ac_preproc_ok; then :
4648 else
4649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4651 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4652 See \`config.log' for more details." "$LINENO" 5; }
4655 ac_ext=c
4656 ac_cpp='$CPP $CPPFLAGS'
4657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4663 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4664 if test "${ac_cv_path_GREP+set}" = set; then :
4665 $as_echo_n "(cached) " >&6
4666 else
4667 if test -z "$GREP"; then
4668 ac_path_GREP_found=false
4669 # Loop through the user's path and test for each of PROGNAME-LIST
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_prog in grep ggrep; do
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4678 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4679 # Check for GNU ac_path_GREP and select it if it is found.
4680 # Check for GNU $ac_path_GREP
4681 case `"$ac_path_GREP" --version 2>&1` in
4682 *GNU*)
4683 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4685 ac_count=0
4686 $as_echo_n 0123456789 >"conftest.in"
4687 while :
4689 cat "conftest.in" "conftest.in" >"conftest.tmp"
4690 mv "conftest.tmp" "conftest.in"
4691 cp "conftest.in" "conftest.nl"
4692 $as_echo 'GREP' >> "conftest.nl"
4693 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4694 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4695 as_fn_arith $ac_count + 1 && ac_count=$as_val
4696 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4697 # Best one so far, save it but keep looking for a better one
4698 ac_cv_path_GREP="$ac_path_GREP"
4699 ac_path_GREP_max=$ac_count
4701 # 10*(2^10) chars as input seems more than enough
4702 test $ac_count -gt 10 && break
4703 done
4704 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4705 esac
4707 $ac_path_GREP_found && break 3
4708 done
4709 done
4710 done
4711 IFS=$as_save_IFS
4712 if test -z "$ac_cv_path_GREP"; then
4713 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4715 else
4716 ac_cv_path_GREP=$GREP
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4721 $as_echo "$ac_cv_path_GREP" >&6; }
4722 GREP="$ac_cv_path_GREP"
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4726 $as_echo_n "checking for egrep... " >&6; }
4727 if test "${ac_cv_path_EGREP+set}" = set; then :
4728 $as_echo_n "(cached) " >&6
4729 else
4730 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4731 then ac_cv_path_EGREP="$GREP -E"
4732 else
4733 if test -z "$EGREP"; then
4734 ac_path_EGREP_found=false
4735 # Loop through the user's path and test for each of PROGNAME-LIST
4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4739 IFS=$as_save_IFS
4740 test -z "$as_dir" && as_dir=.
4741 for ac_prog in egrep; do
4742 for ac_exec_ext in '' $ac_executable_extensions; do
4743 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4744 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4745 # Check for GNU ac_path_EGREP and select it if it is found.
4746 # Check for GNU $ac_path_EGREP
4747 case `"$ac_path_EGREP" --version 2>&1` in
4748 *GNU*)
4749 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4751 ac_count=0
4752 $as_echo_n 0123456789 >"conftest.in"
4753 while :
4755 cat "conftest.in" "conftest.in" >"conftest.tmp"
4756 mv "conftest.tmp" "conftest.in"
4757 cp "conftest.in" "conftest.nl"
4758 $as_echo 'EGREP' >> "conftest.nl"
4759 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4760 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4761 as_fn_arith $ac_count + 1 && ac_count=$as_val
4762 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4763 # Best one so far, save it but keep looking for a better one
4764 ac_cv_path_EGREP="$ac_path_EGREP"
4765 ac_path_EGREP_max=$ac_count
4767 # 10*(2^10) chars as input seems more than enough
4768 test $ac_count -gt 10 && break
4769 done
4770 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4771 esac
4773 $ac_path_EGREP_found && break 3
4774 done
4775 done
4776 done
4777 IFS=$as_save_IFS
4778 if test -z "$ac_cv_path_EGREP"; then
4779 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4781 else
4782 ac_cv_path_EGREP=$EGREP
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4788 $as_echo "$ac_cv_path_EGREP" >&6; }
4789 EGREP="$ac_cv_path_EGREP"
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4793 $as_echo_n "checking for ANSI C header files... " >&6; }
4794 if test "${ac_cv_header_stdc+set}" = set; then :
4795 $as_echo_n "(cached) " >&6
4796 else
4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798 /* end confdefs.h. */
4799 #include <stdlib.h>
4800 #include <stdarg.h>
4801 #include <string.h>
4802 #include <float.h>
4805 main ()
4809 return 0;
4811 _ACEOF
4812 if ac_fn_c_try_compile "$LINENO"; then :
4813 ac_cv_header_stdc=yes
4814 else
4815 ac_cv_header_stdc=no
4817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819 if test $ac_cv_header_stdc = yes; then
4820 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4822 /* end confdefs.h. */
4823 #include <string.h>
4825 _ACEOF
4826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4827 $EGREP "memchr" >/dev/null 2>&1; then :
4829 else
4830 ac_cv_header_stdc=no
4832 rm -f conftest*
4836 if test $ac_cv_header_stdc = yes; then
4837 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839 /* end confdefs.h. */
4840 #include <stdlib.h>
4842 _ACEOF
4843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4844 $EGREP "free" >/dev/null 2>&1; then :
4846 else
4847 ac_cv_header_stdc=no
4849 rm -f conftest*
4853 if test $ac_cv_header_stdc = yes; then
4854 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4855 if test "$cross_compiling" = yes; then :
4857 else
4858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4859 /* end confdefs.h. */
4860 #include <ctype.h>
4861 #include <stdlib.h>
4862 #if ((' ' & 0x0FF) == 0x020)
4863 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4864 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4865 #else
4866 # define ISLOWER(c) \
4867 (('a' <= (c) && (c) <= 'i') \
4868 || ('j' <= (c) && (c) <= 'r') \
4869 || ('s' <= (c) && (c) <= 'z'))
4870 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4871 #endif
4873 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4875 main ()
4877 int i;
4878 for (i = 0; i < 256; i++)
4879 if (XOR (islower (i), ISLOWER (i))
4880 || toupper (i) != TOUPPER (i))
4881 return 2;
4882 return 0;
4884 _ACEOF
4885 if ac_fn_c_try_run "$LINENO"; then :
4887 else
4888 ac_cv_header_stdc=no
4890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4891 conftest.$ac_objext conftest.beam conftest.$ac_ext
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4897 $as_echo "$ac_cv_header_stdc" >&6; }
4898 if test $ac_cv_header_stdc = yes; then
4900 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4904 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4905 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4906 inttypes.h stdint.h unistd.h
4907 do :
4908 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4909 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4911 eval as_val=\$$as_ac_Header
4912 if test "x$as_val" = x""yes; then :
4913 cat >>confdefs.h <<_ACEOF
4914 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4915 _ACEOF
4919 done
4923 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4924 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4925 MINIX=yes
4926 else
4927 MINIX=
4931 if test "$MINIX" = yes; then
4933 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4936 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4939 $as_echo "#define _MINIX 1" >>confdefs.h
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4945 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4946 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4947 $as_echo_n "(cached) " >&6
4948 else
4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4952 # define __EXTENSIONS__ 1
4953 $ac_includes_default
4955 main ()
4959 return 0;
4961 _ACEOF
4962 if ac_fn_c_try_compile "$LINENO"; then :
4963 ac_cv_safe_to_define___extensions__=yes
4964 else
4965 ac_cv_safe_to_define___extensions__=no
4967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4970 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4971 test $ac_cv_safe_to_define___extensions__ = yes &&
4972 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4974 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4976 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4978 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4980 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4986 # So far, the only shared library we might use is libopts.
4987 # It's a small library - we might as well use a static version of it.
4988 # Check whether --enable-shared was given.
4989 if test "${enable_shared+set}" = set; then :
4990 enableval=$enable_shared; p=${PACKAGE-default}
4991 case $enableval in
4992 yes) enable_shared=yes ;;
4993 no) enable_shared=no ;;
4995 enable_shared=no
4996 # Look at the argument we got. We use all the common list separators.
4997 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4998 for pkg in $enableval; do
4999 IFS="$lt_save_ifs"
5000 if test "X$pkg" = "X$p"; then
5001 enable_shared=yes
5003 done
5004 IFS="$lt_save_ifs"
5006 esac
5007 else
5008 enable_shared=no
5014 ac_ext=c
5015 ac_cpp='$CPP $CPPFLAGS'
5016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5019 if test -n "$ac_tool_prefix"; then
5020 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5021 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5023 $as_echo_n "checking for $ac_word... " >&6; }
5024 if test "${ac_cv_prog_CC+set}" = set; then :
5025 $as_echo_n "(cached) " >&6
5026 else
5027 if test -n "$CC"; then
5028 ac_cv_prog_CC="$CC" # Let the user override the test.
5029 else
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 for as_dir in $PATH
5033 IFS=$as_save_IFS
5034 test -z "$as_dir" && as_dir=.
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5037 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5039 break 2
5041 done
5042 done
5043 IFS=$as_save_IFS
5047 CC=$ac_cv_prog_CC
5048 if test -n "$CC"; then
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5050 $as_echo "$CC" >&6; }
5051 else
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053 $as_echo "no" >&6; }
5058 if test -z "$ac_cv_prog_CC"; then
5059 ac_ct_CC=$CC
5060 # Extract the first word of "gcc", so it can be a program name with args.
5061 set dummy gcc; ac_word=$2
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5063 $as_echo_n "checking for $ac_word... " >&6; }
5064 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5065 $as_echo_n "(cached) " >&6
5066 else
5067 if test -n "$ac_ct_CC"; then
5068 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5069 else
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH
5073 IFS=$as_save_IFS
5074 test -z "$as_dir" && as_dir=.
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5077 ac_cv_prog_ac_ct_CC="gcc"
5078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5079 break 2
5081 done
5082 done
5083 IFS=$as_save_IFS
5087 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5088 if test -n "$ac_ct_CC"; then
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5090 $as_echo "$ac_ct_CC" >&6; }
5091 else
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093 $as_echo "no" >&6; }
5096 if test "x$ac_ct_CC" = x; then
5097 CC=""
5098 else
5099 case $cross_compiling:$ac_tool_warned in
5100 yes:)
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5103 ac_tool_warned=yes ;;
5104 esac
5105 CC=$ac_ct_CC
5107 else
5108 CC="$ac_cv_prog_CC"
5111 if test -z "$CC"; then
5112 if test -n "$ac_tool_prefix"; then
5113 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5114 set dummy ${ac_tool_prefix}cc; ac_word=$2
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5116 $as_echo_n "checking for $ac_word... " >&6; }
5117 if test "${ac_cv_prog_CC+set}" = set; then :
5118 $as_echo_n "(cached) " >&6
5119 else
5120 if test -n "$CC"; then
5121 ac_cv_prog_CC="$CC" # Let the user override the test.
5122 else
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 for as_dir in $PATH
5126 IFS=$as_save_IFS
5127 test -z "$as_dir" && as_dir=.
5128 for ac_exec_ext in '' $ac_executable_extensions; do
5129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5130 ac_cv_prog_CC="${ac_tool_prefix}cc"
5131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5132 break 2
5134 done
5135 done
5136 IFS=$as_save_IFS
5140 CC=$ac_cv_prog_CC
5141 if test -n "$CC"; then
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5143 $as_echo "$CC" >&6; }
5144 else
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5146 $as_echo "no" >&6; }
5152 if test -z "$CC"; then
5153 # Extract the first word of "cc", so it can be a program name with args.
5154 set dummy cc; ac_word=$2
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5156 $as_echo_n "checking for $ac_word... " >&6; }
5157 if test "${ac_cv_prog_CC+set}" = set; then :
5158 $as_echo_n "(cached) " >&6
5159 else
5160 if test -n "$CC"; then
5161 ac_cv_prog_CC="$CC" # Let the user override the test.
5162 else
5163 ac_prog_rejected=no
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 for as_dir in $PATH
5167 IFS=$as_save_IFS
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5171 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5172 ac_prog_rejected=yes
5173 continue
5175 ac_cv_prog_CC="cc"
5176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 break 2
5179 done
5180 done
5181 IFS=$as_save_IFS
5183 if test $ac_prog_rejected = yes; then
5184 # We found a bogon in the path, so make sure we never use it.
5185 set dummy $ac_cv_prog_CC
5186 shift
5187 if test $# != 0; then
5188 # We chose a different compiler from the bogus one.
5189 # However, it has the same basename, so the bogon will be chosen
5190 # first if we set CC to just the basename; use the full file name.
5191 shift
5192 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5197 CC=$ac_cv_prog_CC
5198 if test -n "$CC"; then
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5200 $as_echo "$CC" >&6; }
5201 else
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203 $as_echo "no" >&6; }
5208 if test -z "$CC"; then
5209 if test -n "$ac_tool_prefix"; then
5210 for ac_prog in cl.exe
5212 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5213 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5215 $as_echo_n "checking for $ac_word... " >&6; }
5216 if test "${ac_cv_prog_CC+set}" = set; then :
5217 $as_echo_n "(cached) " >&6
5218 else
5219 if test -n "$CC"; then
5220 ac_cv_prog_CC="$CC" # Let the user override the test.
5221 else
5222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223 for as_dir in $PATH
5225 IFS=$as_save_IFS
5226 test -z "$as_dir" && as_dir=.
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5229 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5231 break 2
5233 done
5234 done
5235 IFS=$as_save_IFS
5239 CC=$ac_cv_prog_CC
5240 if test -n "$CC"; then
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5242 $as_echo "$CC" >&6; }
5243 else
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245 $as_echo "no" >&6; }
5249 test -n "$CC" && break
5250 done
5252 if test -z "$CC"; then
5253 ac_ct_CC=$CC
5254 for ac_prog in cl.exe
5256 # Extract the first word of "$ac_prog", so it can be a program name with args.
5257 set dummy $ac_prog; ac_word=$2
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259 $as_echo_n "checking for $ac_word... " >&6; }
5260 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5261 $as_echo_n "(cached) " >&6
5262 else
5263 if test -n "$ac_ct_CC"; then
5264 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5265 else
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 for as_dir in $PATH
5269 IFS=$as_save_IFS
5270 test -z "$as_dir" && as_dir=.
5271 for ac_exec_ext in '' $ac_executable_extensions; do
5272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5273 ac_cv_prog_ac_ct_CC="$ac_prog"
5274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5275 break 2
5277 done
5278 done
5279 IFS=$as_save_IFS
5283 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5284 if test -n "$ac_ct_CC"; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5286 $as_echo "$ac_ct_CC" >&6; }
5287 else
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289 $as_echo "no" >&6; }
5293 test -n "$ac_ct_CC" && break
5294 done
5296 if test "x$ac_ct_CC" = x; then
5297 CC=""
5298 else
5299 case $cross_compiling:$ac_tool_warned in
5300 yes:)
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5303 ac_tool_warned=yes ;;
5304 esac
5305 CC=$ac_ct_CC
5312 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5314 as_fn_error "no acceptable C compiler found in \$PATH
5315 See \`config.log' for more details." "$LINENO" 5; }
5317 # Provide some information about the compiler.
5318 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5319 set X $ac_compile
5320 ac_compiler=$2
5321 for ac_option in --version -v -V -qversion; do
5322 { { ac_try="$ac_compiler $ac_option >&5"
5323 case "(($ac_try" in
5324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5325 *) ac_try_echo=$ac_try;;
5326 esac
5327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5328 $as_echo "$ac_try_echo"; } >&5
5329 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5330 ac_status=$?
5331 if test -s conftest.err; then
5332 sed '10a\
5333 ... rest of stderr output deleted ...
5334 10q' conftest.err >conftest.er1
5335 cat conftest.er1 >&5
5337 rm -f conftest.er1 conftest.err
5338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5339 test $ac_status = 0; }
5340 done
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5343 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5344 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5345 $as_echo_n "(cached) " >&6
5346 else
5347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5348 /* end confdefs.h. */
5351 main ()
5353 #ifndef __GNUC__
5354 choke me
5355 #endif
5358 return 0;
5360 _ACEOF
5361 if ac_fn_c_try_compile "$LINENO"; then :
5362 ac_compiler_gnu=yes
5363 else
5364 ac_compiler_gnu=no
5366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5367 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5371 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5372 if test $ac_compiler_gnu = yes; then
5373 GCC=yes
5374 else
5375 GCC=
5377 ac_test_CFLAGS=${CFLAGS+set}
5378 ac_save_CFLAGS=$CFLAGS
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5380 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5381 if test "${ac_cv_prog_cc_g+set}" = set; then :
5382 $as_echo_n "(cached) " >&6
5383 else
5384 ac_save_c_werror_flag=$ac_c_werror_flag
5385 ac_c_werror_flag=yes
5386 ac_cv_prog_cc_g=no
5387 CFLAGS="-g"
5388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h. */
5392 main ()
5396 return 0;
5398 _ACEOF
5399 if ac_fn_c_try_compile "$LINENO"; then :
5400 ac_cv_prog_cc_g=yes
5401 else
5402 CFLAGS=""
5403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5404 /* end confdefs.h. */
5407 main ()
5411 return 0;
5413 _ACEOF
5414 if ac_fn_c_try_compile "$LINENO"; then :
5416 else
5417 ac_c_werror_flag=$ac_save_c_werror_flag
5418 CFLAGS="-g"
5419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5420 /* end confdefs.h. */
5423 main ()
5427 return 0;
5429 _ACEOF
5430 if ac_fn_c_try_compile "$LINENO"; then :
5431 ac_cv_prog_cc_g=yes
5433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5438 ac_c_werror_flag=$ac_save_c_werror_flag
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5441 $as_echo "$ac_cv_prog_cc_g" >&6; }
5442 if test "$ac_test_CFLAGS" = set; then
5443 CFLAGS=$ac_save_CFLAGS
5444 elif test $ac_cv_prog_cc_g = yes; then
5445 if test "$GCC" = yes; then
5446 CFLAGS="-g -O2"
5447 else
5448 CFLAGS="-g"
5450 else
5451 if test "$GCC" = yes; then
5452 CFLAGS="-O2"
5453 else
5454 CFLAGS=
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5458 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5459 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5460 $as_echo_n "(cached) " >&6
5461 else
5462 ac_cv_prog_cc_c89=no
5463 ac_save_CC=$CC
5464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5465 /* end confdefs.h. */
5466 #include <stdarg.h>
5467 #include <stdio.h>
5468 #include <sys/types.h>
5469 #include <sys/stat.h>
5470 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5471 struct buf { int x; };
5472 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5473 static char *e (p, i)
5474 char **p;
5475 int i;
5477 return p[i];
5479 static char *f (char * (*g) (char **, int), char **p, ...)
5481 char *s;
5482 va_list v;
5483 va_start (v,p);
5484 s = g (p, va_arg (v,int));
5485 va_end (v);
5486 return s;
5489 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5490 function prototypes and stuff, but not '\xHH' hex character constants.
5491 These don't provoke an error unfortunately, instead are silently treated
5492 as 'x'. The following induces an error, until -std is added to get
5493 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5494 array size at least. It's necessary to write '\x00'==0 to get something
5495 that's true only with -std. */
5496 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5498 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5499 inside strings and character constants. */
5500 #define FOO(x) 'x'
5501 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5503 int test (int i, double x);
5504 struct s1 {int (*f) (int a);};
5505 struct s2 {int (*f) (double a);};
5506 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5507 int argc;
5508 char **argv;
5510 main ()
5512 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5514 return 0;
5516 _ACEOF
5517 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5518 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5520 CC="$ac_save_CC $ac_arg"
5521 if ac_fn_c_try_compile "$LINENO"; then :
5522 ac_cv_prog_cc_c89=$ac_arg
5524 rm -f core conftest.err conftest.$ac_objext
5525 test "x$ac_cv_prog_cc_c89" != "xno" && break
5526 done
5527 rm -f conftest.$ac_ext
5528 CC=$ac_save_CC
5531 # AC_CACHE_VAL
5532 case "x$ac_cv_prog_cc_c89" in
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5535 $as_echo "none needed" >&6; } ;;
5536 xno)
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5538 $as_echo "unsupported" >&6; } ;;
5540 CC="$CC $ac_cv_prog_cc_c89"
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5542 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5543 esac
5544 if test "x$ac_cv_prog_cc_c89" != xno; then :
5548 ac_ext=c
5549 ac_cpp='$CPP $CPPFLAGS'
5550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5554 depcc="$CC" am_compiler_list=
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5557 $as_echo_n "checking dependency style of $depcc... " >&6; }
5558 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5559 $as_echo_n "(cached) " >&6
5560 else
5561 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5562 # We make a subdir and do the tests there. Otherwise we can end up
5563 # making bogus files that we don't know about and never remove. For
5564 # instance it was reported that on HP-UX the gcc test will end up
5565 # making a dummy file named `D' -- because `-MD' means `put the output
5566 # in D'.
5567 mkdir conftest.dir
5568 # Copy depcomp to subdir because otherwise we won't find it if we're
5569 # using a relative directory.
5570 cp "$am_depcomp" conftest.dir
5571 cd conftest.dir
5572 # We will build objects and dependencies in a subdirectory because
5573 # it helps to detect inapplicable dependency modes. For instance
5574 # both Tru64's cc and ICC support -MD to output dependencies as a
5575 # side effect of compilation, but ICC will put the dependencies in
5576 # the current directory while Tru64 will put them in the object
5577 # directory.
5578 mkdir sub
5580 am_cv_CC_dependencies_compiler_type=none
5581 if test "$am_compiler_list" = ""; then
5582 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5584 am__universal=false
5585 case " $depcc " in #(
5586 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5587 esac
5589 for depmode in $am_compiler_list; do
5590 # Setup a source with many dependencies, because some compilers
5591 # like to wrap large dependency lists on column 80 (with \), and
5592 # we should not choose a depcomp mode which is confused by this.
5594 # We need to recreate these files for each test, as the compiler may
5595 # overwrite some of them when testing with obscure command lines.
5596 # This happens at least with the AIX C compiler.
5597 : > sub/conftest.c
5598 for i in 1 2 3 4 5 6; do
5599 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5600 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5601 # Solaris 8's {/usr,}/bin/sh.
5602 touch sub/conftst$i.h
5603 done
5604 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5606 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5607 # mode. It turns out that the SunPro C++ compiler does not properly
5608 # handle `-M -o', and we need to detect this. Also, some Intel
5609 # versions had trouble with output in subdirs
5610 am__obj=sub/conftest.${OBJEXT-o}
5611 am__minus_obj="-o $am__obj"
5612 case $depmode in
5613 gcc)
5614 # This depmode causes a compiler race in universal mode.
5615 test "$am__universal" = false || continue
5617 nosideeffect)
5618 # after this tag, mechanisms are not by side-effect, so they'll
5619 # only be used when explicitly requested
5620 if test "x$enable_dependency_tracking" = xyes; then
5621 continue
5622 else
5623 break
5626 msvisualcpp | msvcmsys)
5627 # This compiler won't grok `-c -o', but also, the minuso test has
5628 # not run yet. These depmodes are late enough in the game, and
5629 # so weak that their functioning should not be impacted.
5630 am__obj=conftest.${OBJEXT-o}
5631 am__minus_obj=
5633 none) break ;;
5634 esac
5635 if depmode=$depmode \
5636 source=sub/conftest.c object=$am__obj \
5637 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5638 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5639 >/dev/null 2>conftest.err &&
5640 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5641 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5642 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5643 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5644 # icc doesn't choke on unknown options, it will just issue warnings
5645 # or remarks (even with -Werror). So we grep stderr for any message
5646 # that says an option was ignored or not supported.
5647 # When given -MP, icc 7.0 and 7.1 complain thusly:
5648 # icc: Command line warning: ignoring option '-M'; no argument required
5649 # The diagnosis changed in icc 8.0:
5650 # icc: Command line remark: option '-MP' not supported
5651 if (grep 'ignoring option' conftest.err ||
5652 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5653 am_cv_CC_dependencies_compiler_type=$depmode
5654 break
5657 done
5659 cd ..
5660 rm -rf conftest.dir
5661 else
5662 am_cv_CC_dependencies_compiler_type=none
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5667 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5668 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5671 test "x$enable_dependency_tracking" != xno \
5672 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5673 am__fastdepCC_TRUE=
5674 am__fastdepCC_FALSE='#'
5675 else
5676 am__fastdepCC_TRUE='#'
5677 am__fastdepCC_FALSE=
5681 # Ralf Wildenhues: With per-target flags we need CC_C_O
5682 # AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
5683 if test "x$CC" != xcc; then
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5685 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5686 else
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5688 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5690 set dummy $CC; ac_cc=`$as_echo "$2" |
5691 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5692 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5693 $as_echo_n "(cached) " >&6
5694 else
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h. */
5699 main ()
5703 return 0;
5705 _ACEOF
5706 # Make sure it works both with $CC and with simple cc.
5707 # We do the test twice because some compilers refuse to overwrite an
5708 # existing .o file with -o, though they will create one.
5709 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5710 rm -f conftest2.*
5711 if { { case "(($ac_try" in
5712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5713 *) ac_try_echo=$ac_try;;
5714 esac
5715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5716 $as_echo "$ac_try_echo"; } >&5
5717 (eval "$ac_try") 2>&5
5718 ac_status=$?
5719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5720 test $ac_status = 0; } &&
5721 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5723 *) ac_try_echo=$ac_try;;
5724 esac
5725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5726 $as_echo "$ac_try_echo"; } >&5
5727 (eval "$ac_try") 2>&5
5728 ac_status=$?
5729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5730 test $ac_status = 0; };
5731 then
5732 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5733 if test "x$CC" != xcc; then
5734 # Test first that cc exists at all.
5735 if { ac_try='cc -c conftest.$ac_ext >&5'
5736 { { case "(($ac_try" in
5737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5738 *) ac_try_echo=$ac_try;;
5739 esac
5740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5741 $as_echo "$ac_try_echo"; } >&5
5742 (eval "$ac_try") 2>&5
5743 ac_status=$?
5744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5745 test $ac_status = 0; }; }; then
5746 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5747 rm -f conftest2.*
5748 if { { case "(($ac_try" in
5749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750 *) ac_try_echo=$ac_try;;
5751 esac
5752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5753 $as_echo "$ac_try_echo"; } >&5
5754 (eval "$ac_try") 2>&5
5755 ac_status=$?
5756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5757 test $ac_status = 0; } &&
5758 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760 *) ac_try_echo=$ac_try;;
5761 esac
5762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5763 $as_echo "$ac_try_echo"; } >&5
5764 (eval "$ac_try") 2>&5
5765 ac_status=$?
5766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5767 test $ac_status = 0; };
5768 then
5769 # cc works too.
5771 else
5772 # cc exists but doesn't like -o.
5773 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5777 else
5778 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5780 rm -f core conftest*
5783 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5785 $as_echo "yes" >&6; }
5786 else
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788 $as_echo "no" >&6; }
5790 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5794 # FIXME: we rely on the cache variable name because
5795 # there is no other way.
5796 set dummy $CC
5797 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5798 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5799 if test "$am_t" != yes; then
5800 # Losing compiler, so override with the script.
5801 # FIXME: It is wrong to rewrite CC.
5802 # But if we don't then we get into trouble of one sort or another.
5803 # A longer-term fix would be to have automake use am__CC in this case,
5804 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5805 CC="$am_aux_dir/compile $CC"
5809 ac_ext=c
5810 ac_cpp='$CPP $CPPFLAGS'
5811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5815 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5816 # On Suns, sometimes $CPP names a directory.
5817 if test -n "$CPP" && test -d "$CPP"; then
5818 CPP=
5820 if test -z "$CPP"; then
5821 if test "${ac_cv_prog_CPP+set}" = set; then :
5822 $as_echo_n "(cached) " >&6
5823 else
5824 # Double quotes because CPP needs to be expanded
5825 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5827 ac_preproc_ok=false
5828 for ac_c_preproc_warn_flag in '' yes
5830 # Use a header file that comes with gcc, so configuring glibc
5831 # with a fresh cross-compiler works.
5832 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5833 # <limits.h> exists even on freestanding compilers.
5834 # On the NeXT, cc -E runs the code through the compiler's parser,
5835 # not just through cpp. "Syntax error" is here to catch this case.
5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837 /* end confdefs.h. */
5838 #ifdef __STDC__
5839 # include <limits.h>
5840 #else
5841 # include <assert.h>
5842 #endif
5843 Syntax error
5844 _ACEOF
5845 if ac_fn_c_try_cpp "$LINENO"; then :
5847 else
5848 # Broken: fails on valid input.
5849 continue
5851 rm -f conftest.err conftest.$ac_ext
5853 # OK, works on sane cases. Now check whether nonexistent headers
5854 # can be detected and how.
5855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5856 /* end confdefs.h. */
5857 #include <ac_nonexistent.h>
5858 _ACEOF
5859 if ac_fn_c_try_cpp "$LINENO"; then :
5860 # Broken: success on invalid input.
5861 continue
5862 else
5863 # Passes both tests.
5864 ac_preproc_ok=:
5865 break
5867 rm -f conftest.err conftest.$ac_ext
5869 done
5870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5871 rm -f conftest.err conftest.$ac_ext
5872 if $ac_preproc_ok; then :
5873 break
5876 done
5877 ac_cv_prog_CPP=$CPP
5880 CPP=$ac_cv_prog_CPP
5881 else
5882 ac_cv_prog_CPP=$CPP
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5885 $as_echo "$CPP" >&6; }
5886 ac_preproc_ok=false
5887 for ac_c_preproc_warn_flag in '' yes
5889 # Use a header file that comes with gcc, so configuring glibc
5890 # with a fresh cross-compiler works.
5891 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5892 # <limits.h> exists even on freestanding compilers.
5893 # On the NeXT, cc -E runs the code through the compiler's parser,
5894 # not just through cpp. "Syntax error" is here to catch this case.
5895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5896 /* end confdefs.h. */
5897 #ifdef __STDC__
5898 # include <limits.h>
5899 #else
5900 # include <assert.h>
5901 #endif
5902 Syntax error
5903 _ACEOF
5904 if ac_fn_c_try_cpp "$LINENO"; then :
5906 else
5907 # Broken: fails on valid input.
5908 continue
5910 rm -f conftest.err conftest.$ac_ext
5912 # OK, works on sane cases. Now check whether nonexistent headers
5913 # can be detected and how.
5914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915 /* end confdefs.h. */
5916 #include <ac_nonexistent.h>
5917 _ACEOF
5918 if ac_fn_c_try_cpp "$LINENO"; then :
5919 # Broken: success on invalid input.
5920 continue
5921 else
5922 # Passes both tests.
5923 ac_preproc_ok=:
5924 break
5926 rm -f conftest.err conftest.$ac_ext
5928 done
5929 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5930 rm -f conftest.err conftest.$ac_ext
5931 if $ac_preproc_ok; then :
5933 else
5934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5936 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5937 See \`config.log' for more details." "$LINENO" 5; }
5940 ac_ext=c
5941 ac_cpp='$CPP $CPPFLAGS'
5942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5946 for ac_prog in 'bison -y' byacc
5948 # Extract the first word of "$ac_prog", so it can be a program name with args.
5949 set dummy $ac_prog; ac_word=$2
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5951 $as_echo_n "checking for $ac_word... " >&6; }
5952 if test "${ac_cv_prog_YACC+set}" = set; then :
5953 $as_echo_n "(cached) " >&6
5954 else
5955 if test -n "$YACC"; then
5956 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5957 else
5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 for as_dir in $PATH
5961 IFS=$as_save_IFS
5962 test -z "$as_dir" && as_dir=.
5963 for ac_exec_ext in '' $ac_executable_extensions; do
5964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5965 ac_cv_prog_YACC="$ac_prog"
5966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5967 break 2
5969 done
5970 done
5971 IFS=$as_save_IFS
5975 YACC=$ac_cv_prog_YACC
5976 if test -n "$YACC"; then
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5978 $as_echo "$YACC" >&6; }
5979 else
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5981 $as_echo "no" >&6; }
5985 test -n "$YACC" && break
5986 done
5987 test -n "$YACC" || YACC="yacc"
5990 # AC_PROG_CC_STDC has two functions. It attempts to find a compiler
5991 # capable of C99, or failing that, for C89. CC is set afterward with
5992 # the selected invocation, such as "gcc --std=gnu99". Also, the
5993 # ac_cv_prog_cc_stdc variable is no if the compiler selected for CC
5994 # does not accept C89.
5996 case $ac_cv_prog_cc_stdc in #(
5997 no) :
5998 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5999 *) :
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6001 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6002 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6003 $as_echo_n "(cached) " >&6
6004 else
6005 ac_cv_prog_cc_c99=no
6006 ac_save_CC=$CC
6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h. */
6009 #include <stdarg.h>
6010 #include <stdbool.h>
6011 #include <stdlib.h>
6012 #include <wchar.h>
6013 #include <stdio.h>
6015 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6016 #define debug(...) fprintf (stderr, __VA_ARGS__)
6017 #define showlist(...) puts (#__VA_ARGS__)
6018 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6019 static void
6020 test_varargs_macros (void)
6022 int x = 1234;
6023 int y = 5678;
6024 debug ("Flag");
6025 debug ("X = %d\n", x);
6026 showlist (The first, second, and third items.);
6027 report (x>y, "x is %d but y is %d", x, y);
6030 // Check long long types.
6031 #define BIG64 18446744073709551615ull
6032 #define BIG32 4294967295ul
6033 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6034 #if !BIG_OK
6035 your preprocessor is broken;
6036 #endif
6037 #if BIG_OK
6038 #else
6039 your preprocessor is broken;
6040 #endif
6041 static long long int bignum = -9223372036854775807LL;
6042 static unsigned long long int ubignum = BIG64;
6044 struct incomplete_array
6046 int datasize;
6047 double data[];
6050 struct named_init {
6051 int number;
6052 const wchar_t *name;
6053 double average;
6056 typedef const char *ccp;
6058 static inline int
6059 test_restrict (ccp restrict text)
6061 // See if C++-style comments work.
6062 // Iterate through items via the restricted pointer.
6063 // Also check for declarations in for loops.
6064 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6065 continue;
6066 return 0;
6069 // Check varargs and va_copy.
6070 static void
6071 test_varargs (const char *format, ...)
6073 va_list args;
6074 va_start (args, format);
6075 va_list args_copy;
6076 va_copy (args_copy, args);
6078 const char *str;
6079 int number;
6080 float fnumber;
6082 while (*format)
6084 switch (*format++)
6086 case 's': // string
6087 str = va_arg (args_copy, const char *);
6088 break;
6089 case 'd': // int
6090 number = va_arg (args_copy, int);
6091 break;
6092 case 'f': // float
6093 fnumber = va_arg (args_copy, double);
6094 break;
6095 default:
6096 break;
6099 va_end (args_copy);
6100 va_end (args);
6104 main ()
6107 // Check bool.
6108 _Bool success = false;
6110 // Check restrict.
6111 if (test_restrict ("String literal") == 0)
6112 success = true;
6113 char *restrict newvar = "Another string";
6115 // Check varargs.
6116 test_varargs ("s, d' f .", "string", 65, 34.234);
6117 test_varargs_macros ();
6119 // Check flexible array members.
6120 struct incomplete_array *ia =
6121 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6122 ia->datasize = 10;
6123 for (int i = 0; i < ia->datasize; ++i)
6124 ia->data[i] = i * 1.234;
6126 // Check named initializers.
6127 struct named_init ni = {
6128 .number = 34,
6129 .name = L"Test wide string",
6130 .average = 543.34343,
6133 ni.number = 58;
6135 int dynamic_array[ni.number];
6136 dynamic_array[ni.number - 1] = 543;
6138 // work around unused variable warnings
6139 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6140 || dynamic_array[ni.number - 1] != 543);
6143 return 0;
6145 _ACEOF
6146 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6148 CC="$ac_save_CC $ac_arg"
6149 if ac_fn_c_try_compile "$LINENO"; then :
6150 ac_cv_prog_cc_c99=$ac_arg
6152 rm -f core conftest.err conftest.$ac_objext
6153 test "x$ac_cv_prog_cc_c99" != "xno" && break
6154 done
6155 rm -f conftest.$ac_ext
6156 CC=$ac_save_CC
6159 # AC_CACHE_VAL
6160 case "x$ac_cv_prog_cc_c99" in
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6163 $as_echo "none needed" >&6; } ;;
6164 xno)
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6166 $as_echo "unsupported" >&6; } ;;
6168 CC="$CC $ac_cv_prog_cc_c99"
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6170 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6171 esac
6172 if test "x$ac_cv_prog_cc_c99" != xno; then :
6173 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6174 else
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6176 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6177 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6178 $as_echo_n "(cached) " >&6
6179 else
6180 ac_cv_prog_cc_c89=no
6181 ac_save_CC=$CC
6182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183 /* end confdefs.h. */
6184 #include <stdarg.h>
6185 #include <stdio.h>
6186 #include <sys/types.h>
6187 #include <sys/stat.h>
6188 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6189 struct buf { int x; };
6190 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6191 static char *e (p, i)
6192 char **p;
6193 int i;
6195 return p[i];
6197 static char *f (char * (*g) (char **, int), char **p, ...)
6199 char *s;
6200 va_list v;
6201 va_start (v,p);
6202 s = g (p, va_arg (v,int));
6203 va_end (v);
6204 return s;
6207 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6208 function prototypes and stuff, but not '\xHH' hex character constants.
6209 These don't provoke an error unfortunately, instead are silently treated
6210 as 'x'. The following induces an error, until -std is added to get
6211 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6212 array size at least. It's necessary to write '\x00'==0 to get something
6213 that's true only with -std. */
6214 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6216 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6217 inside strings and character constants. */
6218 #define FOO(x) 'x'
6219 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6221 int test (int i, double x);
6222 struct s1 {int (*f) (int a);};
6223 struct s2 {int (*f) (double a);};
6224 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6225 int argc;
6226 char **argv;
6228 main ()
6230 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6232 return 0;
6234 _ACEOF
6235 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6236 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6238 CC="$ac_save_CC $ac_arg"
6239 if ac_fn_c_try_compile "$LINENO"; then :
6240 ac_cv_prog_cc_c89=$ac_arg
6242 rm -f core conftest.err conftest.$ac_objext
6243 test "x$ac_cv_prog_cc_c89" != "xno" && break
6244 done
6245 rm -f conftest.$ac_ext
6246 CC=$ac_save_CC
6249 # AC_CACHE_VAL
6250 case "x$ac_cv_prog_cc_c89" in
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6253 $as_echo "none needed" >&6; } ;;
6254 xno)
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6256 $as_echo "unsupported" >&6; } ;;
6258 CC="$CC $ac_cv_prog_cc_c89"
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6260 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6261 esac
6262 if test "x$ac_cv_prog_cc_c89" != xno; then :
6263 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6264 else
6265 ac_cv_prog_cc_stdc=no
6270 esac
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6272 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6273 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6274 $as_echo_n "(cached) " >&6
6277 case $ac_cv_prog_cc_stdc in #(
6278 no) :
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6280 $as_echo "unsupported" >&6; } ;; #(
6281 '') :
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6283 $as_echo "none needed" >&6; } ;; #(
6284 *) :
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6286 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6287 esac
6290 case "$ac_cv_prog_cc_stdc" in
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
6293 version 4.2.5 and higher." >&5
6294 $as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
6295 version 4.2.5 and higher." >&2;}
6296 esac
6298 # HMS: These need to be moved to AM_CPPFLAGS and/or AM_CFLAGS
6299 case "$host" in
6300 *-*-amigaos)
6301 CFLAGS="$CFLAGS -Dfork=vfork -DSYS_AMIGA"
6303 *-*-hpux10.*) # at least for hppa2.0-hp-hpux10.20
6304 case "$GCC" in
6305 yes)
6307 *) CFLAGS="$CFLAGS -Wp,-H18816"
6309 esac
6311 *-pc-cygwin*)
6312 CFLAGS="$CFLAGS -DSYS_CYGWIN32"
6314 i386-sequent-sysv4)
6315 case "$CC" in
6317 CFLAGS="$CFLAGS -Wc,+abi-socket"
6319 esac
6321 *-*-mpeix*)
6322 CPPFLAGS="$CPPFLAGS -DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE -I/SYSLOG/PUB"
6323 LDFLAGS="$LDFLAGS -L/SYSLOG/PUB"
6324 LIBS="$LIBS -lcurses"
6326 *-*-solaris*)
6327 # see "man standards".
6328 # -D_XOPEN_SOURCE=500 is probably OK for c89 and before
6329 # -D_XOPEN_SOURCE=600 seems OK for c99
6330 #CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500 -D__EXTENSIONS__"
6331 CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
6332 libxnet=-lxnet
6334 esac
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
6338 $as_echo_n "checking additional compiler flags... " >&6; }
6339 if test "${ac_cv_os_cflags+set}" = set; then :
6340 $as_echo_n "(cached) " >&6
6341 else
6343 case "${host_os}" in
6344 irix6* )
6345 case "${CC}" in
6346 cc )
6347 # do not use 64-bit compiler
6348 ac_cv_os_cflags="-n32 -mips3 -Wl,-woff,84"
6350 esac
6352 # HMS: am-utils needed this but we don't (apparently)
6353 # osf[[1-3]]* )
6354 # # get the right version of struct sockaddr
6355 # case "${CC}" in
6356 # cc )
6357 # ac_cv_os_cflags="-std -D_SOCKADDR_LEN -D_NO_PROTO"
6358 # ;;
6359 # * )
6360 # ac_cv_os_cflags="-D_SOCKADDR_LEN -D_NO_PROTO"
6361 # ;;
6362 # esac
6363 # ;;
6364 # osf* )
6365 # # get the right version of struct sockaddr
6366 # case "${CC}" in
6367 # cc )
6368 # ac_cv_os_cflags="-std -D_SOCKADDR_LEN"
6369 # ;;
6370 # * )
6371 # ac_cv_os_cflags="-D_SOCKADDR_LEN"
6372 # ;;
6373 # esac
6374 # ;;
6375 aix[1-3]* )
6376 ac_cv_os_cflags="" ;;
6377 aix4.[0-2]* )
6378 # turn on additional headers
6379 ac_cv_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
6381 aix5.3* )
6382 # avoid circular dependencies in yp headers, and more
6383 ac_cv_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE -D_USE_IRS -D_MSGQSUPPORT"
6385 aix* )
6386 # avoid circular dependencies in yp headers
6387 ac_cv_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE -D_USE_IRS"
6389 OFF-sunos4* )
6390 # make sure passing whole structures is handled in gcc
6391 case "${CC}" in
6392 gcc )
6393 ac_cv_os_cflags="-fpcc-struct-return"
6395 esac
6397 sunos[34]* | solaris1* | solaris2.[0-5] | sunos5.[0-5] | solaris2.5.* | sunos5.5.* )
6398 ac_cv_os_cflags="" ;;
6399 solaris2* | sunos5* )
6400 # turn on 64-bit file offset interface
6401 case "${CC}" in
6403 ac_cv_os_cflags="-D_LARGEFILE64_SOURCE"
6405 esac
6407 hpux* )
6408 # use Ansi compiler on HPUX
6409 case "${CC}" in
6410 cc )
6411 ac_cv_os_cflags="-Ae"
6413 esac
6415 darwin* | macosx* | rhapsody* )
6416 ac_cv_os_cflags="-D_P1003_1B_VISIBLE"
6419 ac_cv_os_cflags=""
6421 esac
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cflags" >&5
6425 $as_echo "$ac_cv_os_cflags" >&6; }
6426 CFLAGS="$CFLAGS $ac_cv_os_cflags"
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
6430 $as_echo_n "checking for directory path separator... " >&6; }
6431 if test "${ac_cv_dir_sep+set}" = set; then :
6432 $as_echo_n "(cached) " >&6
6433 else
6435 case "$ac_cv_dir_sep" in
6437 case "$target_os" in
6438 *djgpp | *mingw32* | *emx*) ac_cv_dir_sep="'\\'" ;;
6439 *) ac_cv_dir_sep="'/'" ;;
6440 esac
6442 esac
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dir_sep" >&5
6446 $as_echo "$ac_cv_dir_sep" >&6; }
6448 cat >>confdefs.h <<_ACEOF
6449 #define DIR_SEP $ac_cv_dir_sep
6450 _ACEOF
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we need a VPATH hack" >&5
6454 $as_echo_n "checking to see if we need a VPATH hack... " >&6; }
6455 ntp_vpath_hack="no"
6456 case "$srcdir::$build_os::${force_ntp_vpath_hack+set}" in
6457 .::*::*)
6459 *::*::set)
6460 ntp_vpath_hack="yes"
6462 *::freebsd*::)
6463 case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
6465 ntp_vpath_hack="yes"
6466 esac
6467 esac
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_vpath_hack" >&5
6469 $as_echo "$ntp_vpath_hack" >&6; }
6470 if test x$ntp_vpath_hack = xyes; then
6471 VPATH_HACK_TRUE=
6472 VPATH_HACK_FALSE='#'
6473 else
6474 VPATH_HACK_TRUE='#'
6475 VPATH_HACK_FALSE=
6480 # NTP has (so far) been relying on leading-edge autogen.
6481 # Therefore, by default:
6482 # - use the version we ship with
6483 # - do not install it
6484 # - build a static copy (AC_DISABLE_SHARED - done earlier)
6485 case "${enable_local_libopts+set}" in
6486 set) ;;
6487 *) enable_local_libopts=yes ;;
6488 esac
6489 case "${enable_libopts_install+set}" in
6490 set) ;;
6491 *) enable_libopts_install=no ;;
6492 esac
6493 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6494 if test "x$ac_cv_type_pid_t" = x""yes; then :
6496 else
6498 cat >>confdefs.h <<_ACEOF
6499 #define pid_t int
6500 _ACEOF
6505 NEED_LIBOPTS_DIR=''
6507 LIBOPTS_DIR=libopts
6509 # Check whether --enable-local-libopts was given.
6510 if test "${enable_local_libopts+set}" = set; then :
6511 enableval=$enable_local_libopts;
6512 if test x$enableval = xyes ; then
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
6514 $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
6515 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
6516 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
6517 NEED_LIBOPTS_DIR=true
6522 # Check whether --enable-libopts-install was given.
6523 if test "${enable_libopts_install+set}" = set; then :
6524 enableval=$enable_libopts_install;
6527 if test "X${enable_libopts_install}" != Xno; then
6528 INSTALL_LIBOPTS_TRUE=
6529 INSTALL_LIBOPTS_FALSE='#'
6530 else
6531 INSTALL_LIBOPTS_TRUE='#'
6532 INSTALL_LIBOPTS_FALSE=
6536 if test -z "${NEED_LIBOPTS_DIR}" ; then
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
6538 $as_echo_n "checking whether autoopts-config can be found... " >&6; }
6540 # Check whether --with-autoopts-config was given.
6541 if test "${with_autoopts_config+set}" = set; then :
6542 withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
6543 else
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
6545 $as_echo_n "checking whether autoopts-config is specified... " >&6; }
6546 if test "${lo_cv_with_autoopts_config+set}" = set; then :
6547 $as_echo_n "(cached) " >&6
6548 else
6549 if autoopts-config --help 2>/dev/null 1>&2
6550 then lo_cv_with_autoopts_config=autoopts-config
6551 elif libopts-config --help 2>/dev/null 1>&2
6552 then lo_cv_with_autoopts_config=libopts-config
6553 else lo_cv_with_autoopts_config=no ; fi
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
6556 $as_echo "$lo_cv_with_autoopts_config" >&6; }
6559 # end of AC_ARG_WITH
6561 if test "${lo_cv_test_autoopts+set}" = set; then :
6562 $as_echo_n "(cached) " >&6
6563 else
6565 if test -z "${lo_cv_with_autoopts_config}" \
6566 -o X"${lo_cv_with_autoopts_config}" = Xno
6567 then
6568 if autoopts-config --help 2>/dev/null 1>&2
6569 then lo_cv_with_autoopts_config=autoopts-config
6570 elif libopts-config --help 2>/dev/null 1>&2
6571 then lo_cv_with_autoopts_config=libopts-config
6572 else lo_cv_with_autoopts_config=false ; fi
6574 lo_cv_test_autoopts=`
6575 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
6576 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
6577 then lo_cv_test_autoopts=no ; fi
6580 # end of CACHE_VAL
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
6582 $as_echo "${lo_cv_test_autoopts}" >&6; }
6584 if test "X${lo_cv_test_autoopts}" != Xno
6585 then
6586 LIBOPTS_LDADD="${lo_cv_test_autoopts}"
6587 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
6588 else
6589 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
6590 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
6591 NEED_LIBOPTS_DIR=true
6593 fi # end of if test -z "${NEED_LIBOPTS_DIR}"
6595 if test -n "${NEED_LIBOPTS_DIR}"; then
6596 NEED_LIBOPTS_TRUE=
6597 NEED_LIBOPTS_FALSE='#'
6598 else
6599 NEED_LIBOPTS_TRUE='#'
6600 NEED_LIBOPTS_FALSE=
6605 LIBOPTS_DIR=libopts
6607 ac_config_files="$ac_config_files libopts/Makefile"
6611 if test -n "${NEED_LIBOPTS_DIR}" ; then
6614 if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6616 $as_echo_n "checking for ANSI C header files... " >&6; }
6617 if test "${ac_cv_header_stdc+set}" = set; then :
6618 $as_echo_n "(cached) " >&6
6619 else
6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621 /* end confdefs.h. */
6622 #include <stdlib.h>
6623 #include <stdarg.h>
6624 #include <string.h>
6625 #include <float.h>
6628 main ()
6632 return 0;
6634 _ACEOF
6635 if ac_fn_c_try_compile "$LINENO"; then :
6636 ac_cv_header_stdc=yes
6637 else
6638 ac_cv_header_stdc=no
6640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6642 if test $ac_cv_header_stdc = yes; then
6643 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645 /* end confdefs.h. */
6646 #include <string.h>
6648 _ACEOF
6649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6650 $EGREP "memchr" >/dev/null 2>&1; then :
6652 else
6653 ac_cv_header_stdc=no
6655 rm -f conftest*
6659 if test $ac_cv_header_stdc = yes; then
6660 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6662 /* end confdefs.h. */
6663 #include <stdlib.h>
6665 _ACEOF
6666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6667 $EGREP "free" >/dev/null 2>&1; then :
6669 else
6670 ac_cv_header_stdc=no
6672 rm -f conftest*
6676 if test $ac_cv_header_stdc = yes; then
6677 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6678 if test "$cross_compiling" = yes; then :
6680 else
6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682 /* end confdefs.h. */
6683 #include <ctype.h>
6684 #include <stdlib.h>
6685 #if ((' ' & 0x0FF) == 0x020)
6686 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6687 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6688 #else
6689 # define ISLOWER(c) \
6690 (('a' <= (c) && (c) <= 'i') \
6691 || ('j' <= (c) && (c) <= 'r') \
6692 || ('s' <= (c) && (c) <= 'z'))
6693 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6694 #endif
6696 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6698 main ()
6700 int i;
6701 for (i = 0; i < 256; i++)
6702 if (XOR (islower (i), ISLOWER (i))
6703 || toupper (i) != TOUPPER (i))
6704 return 2;
6705 return 0;
6707 _ACEOF
6708 if ac_fn_c_try_run "$LINENO"; then :
6710 else
6711 ac_cv_header_stdc=no
6713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6714 conftest.$ac_objext conftest.beam conftest.$ac_ext
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6720 $as_echo "$ac_cv_header_stdc" >&6; }
6721 if test $ac_cv_header_stdc = yes; then
6723 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6727 ac_header_dirent=no
6728 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6729 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6731 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
6733 $as_echo_n "(cached) " >&6
6734 else
6735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6736 /* end confdefs.h. */
6737 #include <sys/types.h>
6738 #include <$ac_hdr>
6741 main ()
6743 if ((DIR *) 0)
6744 return 0;
6746 return 0;
6748 _ACEOF
6749 if ac_fn_c_try_compile "$LINENO"; then :
6750 eval "$as_ac_Header=yes"
6751 else
6752 eval "$as_ac_Header=no"
6754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6756 eval ac_res=\$$as_ac_Header
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6758 $as_echo "$ac_res" >&6; }
6759 eval as_val=\$$as_ac_Header
6760 if test "x$as_val" = x""yes; then :
6761 cat >>confdefs.h <<_ACEOF
6762 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6763 _ACEOF
6765 ac_header_dirent=$ac_hdr; break
6768 done
6769 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6770 if test $ac_header_dirent = dirent.h; then
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6772 $as_echo_n "checking for library containing opendir... " >&6; }
6773 if test "${ac_cv_search_opendir+set}" = set; then :
6774 $as_echo_n "(cached) " >&6
6775 else
6776 ac_func_search_save_LIBS=$LIBS
6777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6780 /* Override any GCC internal prototype to avoid an error.
6781 Use char because int might match the return type of a GCC
6782 builtin and then its argument prototype would still apply. */
6783 #ifdef __cplusplus
6784 extern "C"
6785 #endif
6786 char opendir ();
6788 main ()
6790 return opendir ();
6792 return 0;
6794 _ACEOF
6795 for ac_lib in '' dir; do
6796 if test -z "$ac_lib"; then
6797 ac_res="none required"
6798 else
6799 ac_res=-l$ac_lib
6800 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6802 if ac_fn_c_try_link "$LINENO"; then :
6803 ac_cv_search_opendir=$ac_res
6805 rm -f core conftest.err conftest.$ac_objext \
6806 conftest$ac_exeext
6807 if test "${ac_cv_search_opendir+set}" = set; then :
6808 break
6810 done
6811 if test "${ac_cv_search_opendir+set}" = set; then :
6813 else
6814 ac_cv_search_opendir=no
6816 rm conftest.$ac_ext
6817 LIBS=$ac_func_search_save_LIBS
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6820 $as_echo "$ac_cv_search_opendir" >&6; }
6821 ac_res=$ac_cv_search_opendir
6822 if test "$ac_res" != no; then :
6823 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6827 else
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6829 $as_echo_n "checking for library containing opendir... " >&6; }
6830 if test "${ac_cv_search_opendir+set}" = set; then :
6831 $as_echo_n "(cached) " >&6
6832 else
6833 ac_func_search_save_LIBS=$LIBS
6834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835 /* end confdefs.h. */
6837 /* Override any GCC internal prototype to avoid an error.
6838 Use char because int might match the return type of a GCC
6839 builtin and then its argument prototype would still apply. */
6840 #ifdef __cplusplus
6841 extern "C"
6842 #endif
6843 char opendir ();
6845 main ()
6847 return opendir ();
6849 return 0;
6851 _ACEOF
6852 for ac_lib in '' x; do
6853 if test -z "$ac_lib"; then
6854 ac_res="none required"
6855 else
6856 ac_res=-l$ac_lib
6857 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6859 if ac_fn_c_try_link "$LINENO"; then :
6860 ac_cv_search_opendir=$ac_res
6862 rm -f core conftest.err conftest.$ac_objext \
6863 conftest$ac_exeext
6864 if test "${ac_cv_search_opendir+set}" = set; then :
6865 break
6867 done
6868 if test "${ac_cv_search_opendir+set}" = set; then :
6870 else
6871 ac_cv_search_opendir=no
6873 rm conftest.$ac_ext
6874 LIBS=$ac_func_search_save_LIBS
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6877 $as_echo "$ac_cv_search_opendir" >&6; }
6878 ac_res=$ac_cv_search_opendir
6879 if test "$ac_res" != no; then :
6880 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6887 # =================
6888 # AC_CHECK_HEADERS
6889 # =================
6890 for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
6891 setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
6892 sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
6893 utime.h sysexits.h
6894 do :
6895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6896 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6897 eval as_val=\$$as_ac_Header
6898 if test "x$as_val" = x""yes; then :
6899 cat >>confdefs.h <<_ACEOF
6900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6901 _ACEOF
6905 done
6908 # --------------------------------------------
6909 # Verify certain entries from AC_CHECK_HEADERS
6910 # --------------------------------------------
6911 for f in sys_types sys_mman sys_param sys_stat sys_wait \
6912 string errno stdlib memory setjmp
6913 do eval as_ac_var=\${ac_cv_header_${f}_h+set}
6914 test "${as_ac_var}" = set || \
6915 as_fn_error "You must have ${f}.h on your system" "$LINENO" 5
6916 done
6918 # ================================================
6919 # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
6920 # if varargs.h is present define HAVE_VARARGS_H.
6921 # ================================================
6922 for ac_header in stdarg.h varargs.h
6923 do :
6924 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6925 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6926 eval as_val=\$$as_ac_Header
6927 if test "x$as_val" = x""yes; then :
6928 cat >>confdefs.h <<_ACEOF
6929 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6930 _ACEOF
6931 break
6934 done
6936 if test `eval echo '${'$as_ac_Header'}'` != yes; then
6937 as_fn_error "You must have stdarg.h or varargs.h on your system" "$LINENO" 5
6940 # ================================================
6941 # Similarly for the string.h and strings.h headers
6942 # ================================================
6943 for ac_header in string.h strings.h
6944 do :
6945 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6946 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6947 eval as_val=\$$as_ac_Header
6948 if test "x$as_val" = x""yes; then :
6949 cat >>confdefs.h <<_ACEOF
6950 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6951 _ACEOF
6952 break
6955 done
6957 if test `eval echo '${'$as_ac_Header'}'` != yes; then
6958 as_fn_error "You must have string.h or strings.h on your system" "$LINENO" 5
6961 # =====================
6962 # ...and limits headers
6963 # =====================
6964 for ac_header in limits.h sys/limits.h values.h
6965 do :
6966 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6967 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6968 eval as_val=\$$as_ac_Header
6969 if test "x$as_val" = x""yes; then :
6970 cat >>confdefs.h <<_ACEOF
6971 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6972 _ACEOF
6973 break
6976 done
6978 if test `eval echo '${'$as_ac_Header'}'` != yes; then
6979 as_fn_error "You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
6982 # ----------------------------------------------------------------------
6983 # check for various programs used during the build.
6984 # On OS/X, "wchar.h" needs "runetype.h" to work properly.
6985 # ----------------------------------------------------------------------
6986 for ac_header in runetype.h wchar.h
6987 do :
6988 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6989 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
6990 $ac_includes_default
6991 #if HAVE_RUNETYPE_H
6992 # include <runetype.h>
6993 #endif
6996 eval as_val=\$$as_ac_Header
6997 if test "x$as_val" = x""yes; then :
6998 cat >>confdefs.h <<_ACEOF
6999 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7000 _ACEOF
7004 done
7007 # ----------------------------------------------------------------------
7008 # Checks for typedefs
7009 # ----------------------------------------------------------------------
7010 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
7011 if test "x$ac_cv_type_wchar_t" = x""yes; then :
7013 cat >>confdefs.h <<_ACEOF
7014 #define HAVE_WCHAR_T 1
7015 _ACEOF
7020 ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
7021 $ac_includes_default
7022 #if HAVE_RUNETYPE_H
7023 # include <runetype.h>
7024 #endif
7025 #if HAVE_WCHAR_H
7026 # include <wchar.h>
7027 #endif
7030 if test "x$ac_cv_type_wint_t" = x""yes; then :
7032 cat >>confdefs.h <<_ACEOF
7033 #define HAVE_WINT_T 1
7034 _ACEOF
7040 # ========================
7041 # ...and int types headers
7042 # ========================
7043 for ac_header in stdint.h inttypes.h
7044 do :
7045 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7046 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7047 eval as_val=\$$as_ac_Header
7048 if test "x$as_val" = x""yes; then :
7049 cat >>confdefs.h <<_ACEOF
7050 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7051 _ACEOF
7052 break
7055 done
7057 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
7058 if test "x$ac_cv_type_int8_t" = x""yes; then :
7060 cat >>confdefs.h <<_ACEOF
7061 #define HAVE_INT8_T 1
7062 _ACEOF
7066 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
7067 if test "x$ac_cv_type_uint8_t" = x""yes; then :
7069 cat >>confdefs.h <<_ACEOF
7070 #define HAVE_UINT8_T 1
7071 _ACEOF
7075 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
7076 if test "x$ac_cv_type_int16_t" = x""yes; then :
7078 cat >>confdefs.h <<_ACEOF
7079 #define HAVE_INT16_T 1
7080 _ACEOF
7084 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
7085 if test "x$ac_cv_type_uint16_t" = x""yes; then :
7087 cat >>confdefs.h <<_ACEOF
7088 #define HAVE_UINT16_T 1
7089 _ACEOF
7093 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
7094 if test "x$ac_cv_type_int32_t" = x""yes; then :
7096 cat >>confdefs.h <<_ACEOF
7097 #define HAVE_INT32_T 1
7098 _ACEOF
7102 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
7103 if test "x$ac_cv_type_uint32_t" = x""yes; then :
7105 cat >>confdefs.h <<_ACEOF
7106 #define HAVE_UINT32_T 1
7107 _ACEOF
7111 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
7112 if test "x$ac_cv_type_intptr_t" = x""yes; then :
7114 cat >>confdefs.h <<_ACEOF
7115 #define HAVE_INTPTR_T 1
7116 _ACEOF
7120 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
7121 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
7123 cat >>confdefs.h <<_ACEOF
7124 #define HAVE_UINTPTR_T 1
7125 _ACEOF
7129 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
7130 if test "x$ac_cv_type_uint_t" = x""yes; then :
7132 cat >>confdefs.h <<_ACEOF
7133 #define HAVE_UINT_T 1
7134 _ACEOF
7138 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7139 if test "x$ac_cv_type_pid_t" = x""yes; then :
7141 cat >>confdefs.h <<_ACEOF
7142 #define HAVE_PID_T 1
7143 _ACEOF
7147 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7148 if test "x$ac_cv_type_size_t" = x""yes; then :
7150 cat >>confdefs.h <<_ACEOF
7151 #define HAVE_SIZE_T 1
7152 _ACEOF
7158 # =====
7159 # sizes
7160 # =====
7161 # The cast to long int works around a bug in the HP C Compiler
7162 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7163 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7164 # This bug is HP SR number 8606223364.
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
7166 $as_echo_n "checking size of char*... " >&6; }
7167 if test "${ac_cv_sizeof_charp+set}" = set; then :
7168 $as_echo_n "(cached) " >&6
7169 else
7170 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then :
7172 else
7173 if test "$ac_cv_type_charp" = yes; then
7174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7176 { as_fn_set_status 77
7177 as_fn_error "cannot compute sizeof (char*)
7178 See \`config.log' for more details." "$LINENO" 5; }; }
7179 else
7180 ac_cv_sizeof_charp=0
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
7186 $as_echo "$ac_cv_sizeof_charp" >&6; }
7190 cat >>confdefs.h <<_ACEOF
7191 #define SIZEOF_CHARP $ac_cv_sizeof_charp
7192 _ACEOF
7195 # The cast to long int works around a bug in the HP C Compiler
7196 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7197 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7198 # This bug is HP SR number 8606223364.
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
7200 $as_echo_n "checking size of int... " >&6; }
7201 if test "${ac_cv_sizeof_int+set}" = set; then :
7202 $as_echo_n "(cached) " >&6
7203 else
7204 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
7206 else
7207 if test "$ac_cv_type_int" = yes; then
7208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7210 { as_fn_set_status 77
7211 as_fn_error "cannot compute sizeof (int)
7212 See \`config.log' for more details." "$LINENO" 5; }; }
7213 else
7214 ac_cv_sizeof_int=0
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
7220 $as_echo "$ac_cv_sizeof_int" >&6; }
7224 cat >>confdefs.h <<_ACEOF
7225 #define SIZEOF_INT $ac_cv_sizeof_int
7226 _ACEOF
7229 # The cast to long int works around a bug in the HP C Compiler
7230 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7231 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7232 # This bug is HP SR number 8606223364.
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7234 $as_echo_n "checking size of long... " >&6; }
7235 if test "${ac_cv_sizeof_long+set}" = set; then :
7236 $as_echo_n "(cached) " >&6
7237 else
7238 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
7240 else
7241 if test "$ac_cv_type_long" = yes; then
7242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7244 { as_fn_set_status 77
7245 as_fn_error "cannot compute sizeof (long)
7246 See \`config.log' for more details." "$LINENO" 5; }; }
7247 else
7248 ac_cv_sizeof_long=0
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
7254 $as_echo "$ac_cv_sizeof_long" >&6; }
7258 cat >>confdefs.h <<_ACEOF
7259 #define SIZEOF_LONG $ac_cv_sizeof_long
7260 _ACEOF
7263 # The cast to long int works around a bug in the HP C Compiler
7264 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7265 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7266 # This bug is HP SR number 8606223364.
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
7268 $as_echo_n "checking size of short... " >&6; }
7269 if test "${ac_cv_sizeof_short+set}" = set; then :
7270 $as_echo_n "(cached) " >&6
7271 else
7272 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
7274 else
7275 if test "$ac_cv_type_short" = yes; then
7276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7278 { as_fn_set_status 77
7279 as_fn_error "cannot compute sizeof (short)
7280 See \`config.log' for more details." "$LINENO" 5; }; }
7281 else
7282 ac_cv_sizeof_short=0
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
7288 $as_echo "$ac_cv_sizeof_short" >&6; }
7292 cat >>confdefs.h <<_ACEOF
7293 #define SIZEOF_SHORT $ac_cv_sizeof_short
7294 _ACEOF
7298 # ----------------------------------------------------------------------
7299 # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
7300 # ----------------------------------------------------------------------
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
7302 $as_echo_n "checking for pathfind in -lgen... " >&6; }
7303 if test "${ac_cv_lib_gen_pathfind+set}" = set; then :
7304 $as_echo_n "(cached) " >&6
7305 else
7306 ac_check_lib_save_LIBS=$LIBS
7307 LIBS="-lgen $LIBS"
7308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7309 /* end confdefs.h. */
7311 /* Override any GCC internal prototype to avoid an error.
7312 Use char because int might match the return type of a GCC
7313 builtin and then its argument prototype would still apply. */
7314 #ifdef __cplusplus
7315 extern "C"
7316 #endif
7317 char pathfind ();
7319 main ()
7321 return pathfind ();
7323 return 0;
7325 _ACEOF
7326 if ac_fn_c_try_link "$LINENO"; then :
7327 ac_cv_lib_gen_pathfind=yes
7328 else
7329 ac_cv_lib_gen_pathfind=no
7331 rm -f core conftest.err conftest.$ac_objext \
7332 conftest$ac_exeext conftest.$ac_ext
7333 LIBS=$ac_check_lib_save_LIBS
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
7336 $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
7337 if test "x$ac_cv_lib_gen_pathfind" = x""yes; then :
7338 cat >>confdefs.h <<_ACEOF
7339 #define HAVE_LIBGEN 1
7340 _ACEOF
7342 LIBS="-lgen $LIBS"
7346 for ac_func in vprintf
7347 do :
7348 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
7349 if test "x$ac_cv_func_vprintf" = x""yes; then :
7350 cat >>confdefs.h <<_ACEOF
7351 #define HAVE_VPRINTF 1
7352 _ACEOF
7354 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
7355 if test "x$ac_cv_func__doprnt" = x""yes; then :
7357 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
7362 done
7365 for ac_header in vfork.h
7366 do :
7367 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
7368 if test "x$ac_cv_header_vfork_h" = x""yes; then :
7369 cat >>confdefs.h <<_ACEOF
7370 #define HAVE_VFORK_H 1
7371 _ACEOF
7375 done
7377 for ac_func in fork vfork
7378 do :
7379 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7380 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7381 eval as_val=\$$as_ac_var
7382 if test "x$as_val" = x""yes; then :
7383 cat >>confdefs.h <<_ACEOF
7384 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7385 _ACEOF
7388 done
7390 if test "x$ac_cv_func_fork" = xyes; then
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
7392 $as_echo_n "checking for working fork... " >&6; }
7393 if test "${ac_cv_func_fork_works+set}" = set; then :
7394 $as_echo_n "(cached) " >&6
7395 else
7396 if test "$cross_compiling" = yes; then :
7397 ac_cv_func_fork_works=cross
7398 else
7399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400 /* end confdefs.h. */
7401 $ac_includes_default
7403 main ()
7406 /* By Ruediger Kuhlmann. */
7407 return fork () < 0;
7410 return 0;
7412 _ACEOF
7413 if ac_fn_c_try_run "$LINENO"; then :
7414 ac_cv_func_fork_works=yes
7415 else
7416 ac_cv_func_fork_works=no
7418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7419 conftest.$ac_objext conftest.beam conftest.$ac_ext
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
7424 $as_echo "$ac_cv_func_fork_works" >&6; }
7426 else
7427 ac_cv_func_fork_works=$ac_cv_func_fork
7429 if test "x$ac_cv_func_fork_works" = xcross; then
7430 case $host in
7431 *-*-amigaos* | *-*-msdosdjgpp*)
7432 # Override, as these systems have only a dummy fork() stub
7433 ac_cv_func_fork_works=no
7436 ac_cv_func_fork_works=yes
7438 esac
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7440 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7442 ac_cv_func_vfork_works=$ac_cv_func_vfork
7443 if test "x$ac_cv_func_vfork" = xyes; then
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
7445 $as_echo_n "checking for working vfork... " >&6; }
7446 if test "${ac_cv_func_vfork_works+set}" = set; then :
7447 $as_echo_n "(cached) " >&6
7448 else
7449 if test "$cross_compiling" = yes; then :
7450 ac_cv_func_vfork_works=cross
7451 else
7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453 /* end confdefs.h. */
7454 /* Thanks to Paul Eggert for this test. */
7455 $ac_includes_default
7456 #include <sys/wait.h>
7457 #ifdef HAVE_VFORK_H
7458 # include <vfork.h>
7459 #endif
7460 /* On some sparc systems, changes by the child to local and incoming
7461 argument registers are propagated back to the parent. The compiler
7462 is told about this with #include <vfork.h>, but some compilers
7463 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7464 static variable whose address is put into a register that is
7465 clobbered by the vfork. */
7466 static void
7467 #ifdef __cplusplus
7468 sparc_address_test (int arg)
7469 # else
7470 sparc_address_test (arg) int arg;
7471 #endif
7473 static pid_t child;
7474 if (!child) {
7475 child = vfork ();
7476 if (child < 0) {
7477 perror ("vfork");
7478 _exit(2);
7480 if (!child) {
7481 arg = getpid();
7482 write(-1, "", 0);
7483 _exit (arg);
7489 main ()
7491 pid_t parent = getpid ();
7492 pid_t child;
7494 sparc_address_test (0);
7496 child = vfork ();
7498 if (child == 0) {
7499 /* Here is another test for sparc vfork register problems. This
7500 test uses lots of local variables, at least as many local
7501 variables as main has allocated so far including compiler
7502 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7503 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7504 reuse the register of parent for one of the local variables,
7505 since it will think that parent can't possibly be used any more
7506 in this routine. Assigning to the local variable will thus
7507 munge parent in the parent process. */
7508 pid_t
7509 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7510 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7511 /* Convince the compiler that p..p7 are live; otherwise, it might
7512 use the same hardware register for all 8 local variables. */
7513 if (p != p1 || p != p2 || p != p3 || p != p4
7514 || p != p5 || p != p6 || p != p7)
7515 _exit(1);
7517 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7518 from child file descriptors. If the child closes a descriptor
7519 before it execs or exits, this munges the parent's descriptor
7520 as well. Test for this by closing stdout in the child. */
7521 _exit(close(fileno(stdout)) != 0);
7522 } else {
7523 int status;
7524 struct stat st;
7526 while (wait(&status) != child)
7528 return (
7529 /* Was there some problem with vforking? */
7530 child < 0
7532 /* Did the child fail? (This shouldn't happen.) */
7533 || status
7535 /* Did the vfork/compiler bug occur? */
7536 || parent != getpid()
7538 /* Did the file descriptor bug occur? */
7539 || fstat(fileno(stdout), &st) != 0
7543 _ACEOF
7544 if ac_fn_c_try_run "$LINENO"; then :
7545 ac_cv_func_vfork_works=yes
7546 else
7547 ac_cv_func_vfork_works=no
7549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7550 conftest.$ac_objext conftest.beam conftest.$ac_ext
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
7555 $as_echo "$ac_cv_func_vfork_works" >&6; }
7558 if test "x$ac_cv_func_fork_works" = xcross; then
7559 ac_cv_func_vfork_works=$ac_cv_func_vfork
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7561 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7564 if test "x$ac_cv_func_vfork_works" = xyes; then
7566 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
7568 else
7570 $as_echo "#define vfork fork" >>confdefs.h
7573 if test "x$ac_cv_func_fork_works" = xyes; then
7575 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
7579 for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
7580 strrchr strsignal
7581 do :
7582 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7583 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7584 eval as_val=\$$as_ac_var
7585 if test "x$as_val" = x""yes; then :
7586 cat >>confdefs.h <<_ACEOF
7587 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7588 _ACEOF
7591 done
7593 INVOKE_LIBOPTS_MACROS_FIRST_done=yes
7595 # Check to see if a reg expr header is specified.
7598 # Check whether --with-regex-header was given.
7599 if test "${with_regex_header+set}" = set; then :
7600 withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
7601 else
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
7603 $as_echo_n "checking whether a reg expr header is specified... " >&6; }
7604 if test "${libopts_cv_with_regex_header+set}" = set; then :
7605 $as_echo_n "(cached) " >&6
7606 else
7607 libopts_cv_with_regex_header=no
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
7610 $as_echo "$libopts_cv_with_regex_header" >&6; }
7613 # end of AC_ARG_WITH
7615 if test "X${libopts_cv_with_regex_header}" != Xno
7616 then
7617 cat >>confdefs.h <<_ACEOF
7618 #define REGEX_HEADER <${libopts_cv_with_regex_header}>
7619 _ACEOF
7621 else
7623 $as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
7629 # Check to see if a working libregex can be found.
7632 # Check whether --with-libregex was given.
7633 if test "${with_libregex+set}" = set; then :
7634 withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
7635 else
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
7637 $as_echo_n "checking whether with-libregex was specified... " >&6; }
7638 if test "${libopts_cv_with_libregex_root+set}" = set; then :
7639 $as_echo_n "(cached) " >&6
7640 else
7641 libopts_cv_with_libregex_root=no
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
7644 $as_echo "$libopts_cv_with_libregex_root" >&6; }
7647 # end of AC_ARG_WITH libregex
7649 if test "${with_libguile+set}" = set && \
7650 test "${withval}" = no
7651 then ## disabled by request
7652 libopts_cv_with_libregex_root=no
7653 libopts_cv_with_libregex_cflags=no
7654 libopts_cv_with_libregex_libs=no
7655 else
7658 # Check whether --with-libregex-cflags was given.
7659 if test "${with_libregex_cflags+set}" = set; then :
7660 withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_regex_cflags}
7661 else
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
7663 $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
7664 if test "${libopts_cv_with_libregex_cflags+set}" = set; then :
7665 $as_echo_n "(cached) " >&6
7666 else
7667 libopts_cv_with_libregex_cflags=no
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
7670 $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
7673 # end of AC_ARG_WITH libregex-cflags
7676 # Check whether --with-libregex-libs was given.
7677 if test "${with_libregex_libs+set}" = set; then :
7678 withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_regex_libs}
7679 else
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
7681 $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
7682 if test "${libopts_cv_with_libregex_libs+set}" = set; then :
7683 $as_echo_n "(cached) " >&6
7684 else
7685 libopts_cv_with_libregex_libs=no
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
7688 $as_echo "$libopts_cv_with_libregex_libs" >&6; }
7691 # end of AC_ARG_WITH libregex-libs
7693 case "X${libopts_cv_with_libregex_cflags}" in
7694 Xyes|Xno|X )
7695 case "X${libopts_cv_with_libregex_root}" in
7696 Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
7697 * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
7698 esac
7699 esac
7700 case "X${libopts_cv_with_libregex_libs}" in
7701 Xyes|Xno|X )
7702 case "X${libopts_cv_with_libregex_root}" in
7703 Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
7704 * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
7705 esac
7706 esac
7707 libopts_save_CPPFLAGS="${CPPFLAGS}"
7708 libopts_save_LIBS="${LIBS}"
7709 fi ## disabled by request
7711 case "X${libopts_cv_with_libregex_cflags}" in
7712 Xyes|Xno|X )
7713 libopts_cv_with_libregex_cflags="" ;;
7714 * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
7715 esac
7716 case "X${libopts_cv_with_libregex_libs}" in
7717 Xyes|Xno|X )
7718 libopts_cv_with_libregex_libs="" ;;
7720 LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
7721 esac
7722 LIBREGEX_CFLAGS=""
7723 LIBREGEX_LIBS=""
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
7725 $as_echo_n "checking whether libregex functions properly... " >&6; }
7726 if test "${libopts_cv_with_libregex+set}" = set; then :
7727 $as_echo_n "(cached) " >&6
7728 else
7730 if test "$cross_compiling" = yes; then :
7731 libopts_cv_with_libregex=no
7732 else
7733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7734 /* end confdefs.h. */
7735 #include <stdio.h>
7736 #include <stdlib.h>
7737 #include <sys/types.h>
7738 #include REGEX_HEADER
7739 static regex_t re;
7740 void comp_re( char const* pzPat ) {
7741 int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
7742 if (res == 0) return;
7743 exit( res ); }
7744 int main() {
7745 regmatch_t m[2];
7746 comp_re( "^.*\$" );
7747 comp_re( "()|no.*" );
7748 comp_re( "." );
7749 if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
7750 if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
7751 fputs( "error: regex -->.<-- did not match\n", stderr );
7752 return 1;
7754 return 0; }
7755 _ACEOF
7756 if ac_fn_c_try_run "$LINENO"; then :
7757 libopts_cv_with_libregex=yes
7758 else
7759 libopts_cv_with_libregex=no
7761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7762 conftest.$ac_objext conftest.beam conftest.$ac_ext
7764 # end of AC_TRY_RUN
7767 # end of AC_CACHE_VAL for libopts_cv_with_libregex
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
7769 $as_echo "${libopts_cv_with_libregex}" >&6; }
7771 if test "X${libopts_cv_with_libregex}" != Xno
7772 then
7774 $as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
7776 else
7777 CPPFLAGS="${libopts_save_CPPFLAGS}"
7778 LIBS="${libopts_save_LIBS}"
7783 # Check to see if pathfind(3) works.
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
7786 $as_echo_n "checking whether pathfind(3) works... " >&6; }
7787 if test "${libopts_cv_run_pathfind+set}" = set; then :
7788 $as_echo_n "(cached) " >&6
7789 else
7791 if test "$cross_compiling" = yes; then :
7792 libopts_cv_run_pathfind=no
7794 else
7795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7796 /* end confdefs.h. */
7797 #include <string.h>
7798 #include <stdlib.h>
7799 int main (int argc, char** argv) {
7800 char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
7801 return (pz == 0) ? 1 : 0;
7803 _ACEOF
7804 if ac_fn_c_try_run "$LINENO"; then :
7805 libopts_cv_run_pathfind=yes
7806 else
7807 libopts_cv_run_pathfind=no
7809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7810 conftest.$ac_objext conftest.beam conftest.$ac_ext
7812 # end of TRY_RUN
7815 # end of AC_CACHE_VAL for libopts_cv_run_pathfind
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
7817 $as_echo "${libopts_cv_run_pathfind}" >&6; }
7819 if test "X${libopts_cv_run_pathfind}" != Xno
7820 then
7822 $as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
7828 # Check to see if /dev/zero is readable device.
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
7831 $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
7832 if test "${libopts_cv_test_dev_zero+set}" = set; then :
7833 $as_echo_n "(cached) " >&6
7834 else
7836 libopts_cv_test_dev_zero=`exec 2> /dev/null
7837 dzero=\`ls -lL /dev/zero | egrep ^c......r\`
7838 test -z "${dzero}" && exit 1
7839 echo ${dzero}`
7840 if test $? -ne 0
7841 then libopts_cv_test_dev_zero=no
7842 elif test -z "$libopts_cv_test_dev_zero"
7843 then libopts_cv_test_dev_zero=no
7847 # end of CACHE_VAL of libopts_cv_test_dev_zero
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
7849 $as_echo "${libopts_cv_test_dev_zero}" >&6; }
7851 if test "X${libopts_cv_test_dev_zero}" != Xno
7852 then
7854 $as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
7860 # Check to see if we have a functional realpath(3C).
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
7863 $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
7864 if test "${libopts_cv_run_realpath+set}" = set; then :
7865 $as_echo_n "(cached) " >&6
7866 else
7868 if test "$cross_compiling" = yes; then :
7869 libopts_cv_run_realpath=no
7871 else
7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873 /* end confdefs.h. */
7874 #include <limits.h>
7875 #include <stdlib.h>
7876 int main (int argc, char** argv) {
7877 #ifndef PATH_MAX
7878 choke me!!
7879 #else
7880 char zPath[PATH_MAX+1];
7881 #endif
7882 char *pz = realpath(argv[0], zPath);
7883 return (pz == zPath) ? 0 : 1;
7885 _ACEOF
7886 if ac_fn_c_try_run "$LINENO"; then :
7887 libopts_cv_run_realpath=yes
7888 else
7889 libopts_cv_run_realpath=no
7891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7892 conftest.$ac_objext conftest.beam conftest.$ac_ext
7894 # end of TRY_RUN
7897 # end of AC_CACHE_VAL for libopts_cv_run_realpath
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
7899 $as_echo "${libopts_cv_run_realpath}" >&6; }
7901 if test "X${libopts_cv_run_realpath}" != Xno
7902 then
7904 $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
7910 # Check to see if strftime() works.
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
7913 $as_echo_n "checking whether strftime() works... " >&6; }
7914 if test "${libopts_cv_run_strftime+set}" = set; then :
7915 $as_echo_n "(cached) " >&6
7916 else
7918 if test "$cross_compiling" = yes; then :
7919 libopts_cv_run_strftime=no
7921 else
7922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7923 /* end confdefs.h. */
7924 #include <time.h>
7925 #include <string.h>
7926 char t_buf[ 64 ];
7927 int main() {
7928 static char const z[] = "Thursday Aug 28 240";
7929 struct tm tm;
7930 tm.tm_sec = 36; /* seconds after the minute [0, 61] */
7931 tm.tm_min = 44; /* minutes after the hour [0, 59] */
7932 tm.tm_hour = 12; /* hour since midnight [0, 23] */
7933 tm.tm_mday = 28; /* day of the month [1, 31] */
7934 tm.tm_mon = 7; /* months since January [0, 11] */
7935 tm.tm_year = 86; /* years since 1900 */
7936 tm.tm_wday = 4; /* days since Sunday [0, 6] */
7937 tm.tm_yday = 239; /* days since January 1 [0, 365] */
7938 tm.tm_isdst = 1; /* flag for daylight savings time */
7939 strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
7940 return (strcmp( t_buf, z ) != 0); }
7941 _ACEOF
7942 if ac_fn_c_try_run "$LINENO"; then :
7943 libopts_cv_run_strftime=yes
7944 else
7945 libopts_cv_run_strftime=no
7947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7948 conftest.$ac_objext conftest.beam conftest.$ac_ext
7950 # end of TRY_RUN
7953 # end of AC_CACHE_VAL for libopts_cv_run_strftime
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
7955 $as_echo "${libopts_cv_run_strftime}" >&6; }
7957 if test "X${libopts_cv_run_strftime}" != Xno
7958 then
7960 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
7966 # Check to see if fopen accepts "b" mode.
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
7969 $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
7970 if test "${libopts_cv_run_fopen_binary+set}" = set; then :
7971 $as_echo_n "(cached) " >&6
7972 else
7974 if test "$cross_compiling" = yes; then :
7975 libopts_cv_run_fopen_binary=no
7977 else
7978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7979 /* end confdefs.h. */
7980 #include <stdio.h>
7981 int main (int argc, char** argv) {
7982 FILE* fp = fopen("conftest.$ac_ext", "rb");
7983 return (fp == NULL) ? 1 : fclose(fp); }
7984 _ACEOF
7985 if ac_fn_c_try_run "$LINENO"; then :
7986 libopts_cv_run_fopen_binary=yes
7987 else
7988 libopts_cv_run_fopen_binary=no
7990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7991 conftest.$ac_objext conftest.beam conftest.$ac_ext
7993 # end of TRY_RUN
7996 # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
7998 $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
8000 if test "X${libopts_cv_run_fopen_binary}" != Xno
8001 then
8003 $as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
8005 else
8007 $as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
8013 # Check to see if fopen accepts "t" mode.
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
8016 $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
8017 if test "${libopts_cv_run_fopen_text+set}" = set; then :
8018 $as_echo_n "(cached) " >&6
8019 else
8021 if test "$cross_compiling" = yes; then :
8022 libopts_cv_run_fopen_text=no
8024 else
8025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8026 /* end confdefs.h. */
8027 #include <stdio.h>
8028 int main (int argc, char** argv) {
8029 FILE* fp = fopen("conftest.$ac_ext", "rt");
8030 return (fp == NULL) ? 1 : fclose(fp); }
8031 _ACEOF
8032 if ac_fn_c_try_run "$LINENO"; then :
8033 libopts_cv_run_fopen_text=yes
8034 else
8035 libopts_cv_run_fopen_text=no
8037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8038 conftest.$ac_objext conftest.beam conftest.$ac_ext
8040 # end of TRY_RUN
8043 # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
8045 $as_echo "${libopts_cv_run_fopen_text}" >&6; }
8047 if test "X${libopts_cv_run_fopen_text}" != Xno
8048 then
8050 $as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
8052 else
8054 $as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
8060 # Check to see if not wanting optional option args.
8062 # Check whether --enable-optional-args was given.
8063 if test "${enable_optional_args+set}" = set; then :
8064 enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
8065 else
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
8067 $as_echo_n "checking whether not wanting optional option args... " >&6; }
8068 if test "${libopts_cv_enable_optional_args+set}" = set; then :
8069 $as_echo_n "(cached) " >&6
8070 else
8071 libopts_cv_enable_optional_args=yes
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
8074 $as_echo "$libopts_cv_enable_optional_args" >&6; }
8077 # end of AC_ARG_ENABLE
8079 if test "X${libopts_cv_enable_optional_args}" = Xno
8080 then
8082 $as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
8089 else
8091 if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8093 $as_echo_n "checking for ANSI C header files... " >&6; }
8094 if test "${ac_cv_header_stdc+set}" = set; then :
8095 $as_echo_n "(cached) " >&6
8096 else
8097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8098 /* end confdefs.h. */
8099 #include <stdlib.h>
8100 #include <stdarg.h>
8101 #include <string.h>
8102 #include <float.h>
8105 main ()
8109 return 0;
8111 _ACEOF
8112 if ac_fn_c_try_compile "$LINENO"; then :
8113 ac_cv_header_stdc=yes
8114 else
8115 ac_cv_header_stdc=no
8117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8119 if test $ac_cv_header_stdc = yes; then
8120 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8122 /* end confdefs.h. */
8123 #include <string.h>
8125 _ACEOF
8126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8127 $EGREP "memchr" >/dev/null 2>&1; then :
8129 else
8130 ac_cv_header_stdc=no
8132 rm -f conftest*
8136 if test $ac_cv_header_stdc = yes; then
8137 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8139 /* end confdefs.h. */
8140 #include <stdlib.h>
8142 _ACEOF
8143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8144 $EGREP "free" >/dev/null 2>&1; then :
8146 else
8147 ac_cv_header_stdc=no
8149 rm -f conftest*
8153 if test $ac_cv_header_stdc = yes; then
8154 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8155 if test "$cross_compiling" = yes; then :
8157 else
8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159 /* end confdefs.h. */
8160 #include <ctype.h>
8161 #include <stdlib.h>
8162 #if ((' ' & 0x0FF) == 0x020)
8163 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8164 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8165 #else
8166 # define ISLOWER(c) \
8167 (('a' <= (c) && (c) <= 'i') \
8168 || ('j' <= (c) && (c) <= 'r') \
8169 || ('s' <= (c) && (c) <= 'z'))
8170 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8171 #endif
8173 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8175 main ()
8177 int i;
8178 for (i = 0; i < 256; i++)
8179 if (XOR (islower (i), ISLOWER (i))
8180 || toupper (i) != TOUPPER (i))
8181 return 2;
8182 return 0;
8184 _ACEOF
8185 if ac_fn_c_try_run "$LINENO"; then :
8187 else
8188 ac_cv_header_stdc=no
8190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8191 conftest.$ac_objext conftest.beam conftest.$ac_ext
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8197 $as_echo "$ac_cv_header_stdc" >&6; }
8198 if test $ac_cv_header_stdc = yes; then
8200 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8204 ac_header_dirent=no
8205 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8206 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8208 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
8210 $as_echo_n "(cached) " >&6
8211 else
8212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8213 /* end confdefs.h. */
8214 #include <sys/types.h>
8215 #include <$ac_hdr>
8218 main ()
8220 if ((DIR *) 0)
8221 return 0;
8223 return 0;
8225 _ACEOF
8226 if ac_fn_c_try_compile "$LINENO"; then :
8227 eval "$as_ac_Header=yes"
8228 else
8229 eval "$as_ac_Header=no"
8231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8233 eval ac_res=\$$as_ac_Header
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8235 $as_echo "$ac_res" >&6; }
8236 eval as_val=\$$as_ac_Header
8237 if test "x$as_val" = x""yes; then :
8238 cat >>confdefs.h <<_ACEOF
8239 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8240 _ACEOF
8242 ac_header_dirent=$ac_hdr; break
8245 done
8246 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8247 if test $ac_header_dirent = dirent.h; then
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8249 $as_echo_n "checking for library containing opendir... " >&6; }
8250 if test "${ac_cv_search_opendir+set}" = set; then :
8251 $as_echo_n "(cached) " >&6
8252 else
8253 ac_func_search_save_LIBS=$LIBS
8254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8255 /* end confdefs.h. */
8257 /* Override any GCC internal prototype to avoid an error.
8258 Use char because int might match the return type of a GCC
8259 builtin and then its argument prototype would still apply. */
8260 #ifdef __cplusplus
8261 extern "C"
8262 #endif
8263 char opendir ();
8265 main ()
8267 return opendir ();
8269 return 0;
8271 _ACEOF
8272 for ac_lib in '' dir; do
8273 if test -z "$ac_lib"; then
8274 ac_res="none required"
8275 else
8276 ac_res=-l$ac_lib
8277 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8279 if ac_fn_c_try_link "$LINENO"; then :
8280 ac_cv_search_opendir=$ac_res
8282 rm -f core conftest.err conftest.$ac_objext \
8283 conftest$ac_exeext
8284 if test "${ac_cv_search_opendir+set}" = set; then :
8285 break
8287 done
8288 if test "${ac_cv_search_opendir+set}" = set; then :
8290 else
8291 ac_cv_search_opendir=no
8293 rm conftest.$ac_ext
8294 LIBS=$ac_func_search_save_LIBS
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8297 $as_echo "$ac_cv_search_opendir" >&6; }
8298 ac_res=$ac_cv_search_opendir
8299 if test "$ac_res" != no; then :
8300 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8304 else
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8306 $as_echo_n "checking for library containing opendir... " >&6; }
8307 if test "${ac_cv_search_opendir+set}" = set; then :
8308 $as_echo_n "(cached) " >&6
8309 else
8310 ac_func_search_save_LIBS=$LIBS
8311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8312 /* end confdefs.h. */
8314 /* Override any GCC internal prototype to avoid an error.
8315 Use char because int might match the return type of a GCC
8316 builtin and then its argument prototype would still apply. */
8317 #ifdef __cplusplus
8318 extern "C"
8319 #endif
8320 char opendir ();
8322 main ()
8324 return opendir ();
8326 return 0;
8328 _ACEOF
8329 for ac_lib in '' x; do
8330 if test -z "$ac_lib"; then
8331 ac_res="none required"
8332 else
8333 ac_res=-l$ac_lib
8334 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8336 if ac_fn_c_try_link "$LINENO"; then :
8337 ac_cv_search_opendir=$ac_res
8339 rm -f core conftest.err conftest.$ac_objext \
8340 conftest$ac_exeext
8341 if test "${ac_cv_search_opendir+set}" = set; then :
8342 break
8344 done
8345 if test "${ac_cv_search_opendir+set}" = set; then :
8347 else
8348 ac_cv_search_opendir=no
8350 rm conftest.$ac_ext
8351 LIBS=$ac_func_search_save_LIBS
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8354 $as_echo "$ac_cv_search_opendir" >&6; }
8355 ac_res=$ac_cv_search_opendir
8356 if test "$ac_res" != no; then :
8357 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8364 # =================
8365 # AC_CHECK_HEADERS
8366 # =================
8367 for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
8368 setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
8369 sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
8370 utime.h sysexits.h
8371 do :
8372 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8373 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8374 eval as_val=\$$as_ac_Header
8375 if test "x$as_val" = x""yes; then :
8376 cat >>confdefs.h <<_ACEOF
8377 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8378 _ACEOF
8382 done
8385 # --------------------------------------------
8386 # Verify certain entries from AC_CHECK_HEADERS
8387 # --------------------------------------------
8388 for f in sys_types sys_mman sys_param sys_stat sys_wait \
8389 string errno stdlib memory setjmp
8390 do eval as_ac_var=\${ac_cv_header_${f}_h+set}
8391 test "${as_ac_var}" = set || \
8392 as_fn_error "You must have ${f}.h on your system" "$LINENO" 5
8393 done
8395 # ================================================
8396 # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
8397 # if varargs.h is present define HAVE_VARARGS_H.
8398 # ================================================
8399 for ac_header in stdarg.h varargs.h
8400 do :
8401 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8402 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8403 eval as_val=\$$as_ac_Header
8404 if test "x$as_val" = x""yes; then :
8405 cat >>confdefs.h <<_ACEOF
8406 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8407 _ACEOF
8408 break
8411 done
8413 if test `eval echo '${'$as_ac_Header'}'` != yes; then
8414 as_fn_error "You must have stdarg.h or varargs.h on your system" "$LINENO" 5
8417 # ================================================
8418 # Similarly for the string.h and strings.h headers
8419 # ================================================
8420 for ac_header in string.h strings.h
8421 do :
8422 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8423 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8424 eval as_val=\$$as_ac_Header
8425 if test "x$as_val" = x""yes; then :
8426 cat >>confdefs.h <<_ACEOF
8427 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8428 _ACEOF
8429 break
8432 done
8434 if test `eval echo '${'$as_ac_Header'}'` != yes; then
8435 as_fn_error "You must have string.h or strings.h on your system" "$LINENO" 5
8438 # =====================
8439 # ...and limits headers
8440 # =====================
8441 for ac_header in limits.h sys/limits.h values.h
8442 do :
8443 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8444 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8445 eval as_val=\$$as_ac_Header
8446 if test "x$as_val" = x""yes; then :
8447 cat >>confdefs.h <<_ACEOF
8448 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8449 _ACEOF
8450 break
8453 done
8455 if test `eval echo '${'$as_ac_Header'}'` != yes; then
8456 as_fn_error "You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
8459 # ----------------------------------------------------------------------
8460 # check for various programs used during the build.
8461 # On OS/X, "wchar.h" needs "runetype.h" to work properly.
8462 # ----------------------------------------------------------------------
8463 for ac_header in runetype.h wchar.h
8464 do :
8465 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8466 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
8467 $ac_includes_default
8468 #if HAVE_RUNETYPE_H
8469 # include <runetype.h>
8470 #endif
8473 eval as_val=\$$as_ac_Header
8474 if test "x$as_val" = x""yes; then :
8475 cat >>confdefs.h <<_ACEOF
8476 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8477 _ACEOF
8481 done
8484 # ----------------------------------------------------------------------
8485 # Checks for typedefs
8486 # ----------------------------------------------------------------------
8487 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
8488 if test "x$ac_cv_type_wchar_t" = x""yes; then :
8490 cat >>confdefs.h <<_ACEOF
8491 #define HAVE_WCHAR_T 1
8492 _ACEOF
8497 ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
8498 $ac_includes_default
8499 #if HAVE_RUNETYPE_H
8500 # include <runetype.h>
8501 #endif
8502 #if HAVE_WCHAR_H
8503 # include <wchar.h>
8504 #endif
8507 if test "x$ac_cv_type_wint_t" = x""yes; then :
8509 cat >>confdefs.h <<_ACEOF
8510 #define HAVE_WINT_T 1
8511 _ACEOF
8517 # ========================
8518 # ...and int types headers
8519 # ========================
8520 for ac_header in stdint.h inttypes.h
8521 do :
8522 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8523 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8524 eval as_val=\$$as_ac_Header
8525 if test "x$as_val" = x""yes; then :
8526 cat >>confdefs.h <<_ACEOF
8527 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8528 _ACEOF
8529 break
8532 done
8534 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
8535 if test "x$ac_cv_type_int8_t" = x""yes; then :
8537 cat >>confdefs.h <<_ACEOF
8538 #define HAVE_INT8_T 1
8539 _ACEOF
8543 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
8544 if test "x$ac_cv_type_uint8_t" = x""yes; then :
8546 cat >>confdefs.h <<_ACEOF
8547 #define HAVE_UINT8_T 1
8548 _ACEOF
8552 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
8553 if test "x$ac_cv_type_int16_t" = x""yes; then :
8555 cat >>confdefs.h <<_ACEOF
8556 #define HAVE_INT16_T 1
8557 _ACEOF
8561 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
8562 if test "x$ac_cv_type_uint16_t" = x""yes; then :
8564 cat >>confdefs.h <<_ACEOF
8565 #define HAVE_UINT16_T 1
8566 _ACEOF
8570 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
8571 if test "x$ac_cv_type_int32_t" = x""yes; then :
8573 cat >>confdefs.h <<_ACEOF
8574 #define HAVE_INT32_T 1
8575 _ACEOF
8579 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
8580 if test "x$ac_cv_type_uint32_t" = x""yes; then :
8582 cat >>confdefs.h <<_ACEOF
8583 #define HAVE_UINT32_T 1
8584 _ACEOF
8588 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
8589 if test "x$ac_cv_type_intptr_t" = x""yes; then :
8591 cat >>confdefs.h <<_ACEOF
8592 #define HAVE_INTPTR_T 1
8593 _ACEOF
8597 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
8598 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
8600 cat >>confdefs.h <<_ACEOF
8601 #define HAVE_UINTPTR_T 1
8602 _ACEOF
8606 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
8607 if test "x$ac_cv_type_uint_t" = x""yes; then :
8609 cat >>confdefs.h <<_ACEOF
8610 #define HAVE_UINT_T 1
8611 _ACEOF
8615 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8616 if test "x$ac_cv_type_pid_t" = x""yes; then :
8618 cat >>confdefs.h <<_ACEOF
8619 #define HAVE_PID_T 1
8620 _ACEOF
8624 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8625 if test "x$ac_cv_type_size_t" = x""yes; then :
8627 cat >>confdefs.h <<_ACEOF
8628 #define HAVE_SIZE_T 1
8629 _ACEOF
8635 # =====
8636 # sizes
8637 # =====
8638 # The cast to long int works around a bug in the HP C Compiler
8639 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8640 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8641 # This bug is HP SR number 8606223364.
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
8643 $as_echo_n "checking size of char*... " >&6; }
8644 if test "${ac_cv_sizeof_charp+set}" = set; then :
8645 $as_echo_n "(cached) " >&6
8646 else
8647 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then :
8649 else
8650 if test "$ac_cv_type_charp" = yes; then
8651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8653 { as_fn_set_status 77
8654 as_fn_error "cannot compute sizeof (char*)
8655 See \`config.log' for more details." "$LINENO" 5; }; }
8656 else
8657 ac_cv_sizeof_charp=0
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
8663 $as_echo "$ac_cv_sizeof_charp" >&6; }
8667 cat >>confdefs.h <<_ACEOF
8668 #define SIZEOF_CHARP $ac_cv_sizeof_charp
8669 _ACEOF
8672 # The cast to long int works around a bug in the HP C Compiler
8673 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8674 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8675 # This bug is HP SR number 8606223364.
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
8677 $as_echo_n "checking size of int... " >&6; }
8678 if test "${ac_cv_sizeof_int+set}" = set; then :
8679 $as_echo_n "(cached) " >&6
8680 else
8681 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
8683 else
8684 if test "$ac_cv_type_int" = yes; then
8685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8687 { as_fn_set_status 77
8688 as_fn_error "cannot compute sizeof (int)
8689 See \`config.log' for more details." "$LINENO" 5; }; }
8690 else
8691 ac_cv_sizeof_int=0
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
8697 $as_echo "$ac_cv_sizeof_int" >&6; }
8701 cat >>confdefs.h <<_ACEOF
8702 #define SIZEOF_INT $ac_cv_sizeof_int
8703 _ACEOF
8706 # The cast to long int works around a bug in the HP C Compiler
8707 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8708 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8709 # This bug is HP SR number 8606223364.
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
8711 $as_echo_n "checking size of long... " >&6; }
8712 if test "${ac_cv_sizeof_long+set}" = set; then :
8713 $as_echo_n "(cached) " >&6
8714 else
8715 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
8717 else
8718 if test "$ac_cv_type_long" = yes; then
8719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8721 { as_fn_set_status 77
8722 as_fn_error "cannot compute sizeof (long)
8723 See \`config.log' for more details." "$LINENO" 5; }; }
8724 else
8725 ac_cv_sizeof_long=0
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
8731 $as_echo "$ac_cv_sizeof_long" >&6; }
8735 cat >>confdefs.h <<_ACEOF
8736 #define SIZEOF_LONG $ac_cv_sizeof_long
8737 _ACEOF
8740 # The cast to long int works around a bug in the HP C Compiler
8741 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8742 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8743 # This bug is HP SR number 8606223364.
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
8745 $as_echo_n "checking size of short... " >&6; }
8746 if test "${ac_cv_sizeof_short+set}" = set; then :
8747 $as_echo_n "(cached) " >&6
8748 else
8749 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
8751 else
8752 if test "$ac_cv_type_short" = yes; then
8753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8755 { as_fn_set_status 77
8756 as_fn_error "cannot compute sizeof (short)
8757 See \`config.log' for more details." "$LINENO" 5; }; }
8758 else
8759 ac_cv_sizeof_short=0
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
8765 $as_echo "$ac_cv_sizeof_short" >&6; }
8769 cat >>confdefs.h <<_ACEOF
8770 #define SIZEOF_SHORT $ac_cv_sizeof_short
8771 _ACEOF
8775 # ----------------------------------------------------------------------
8776 # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
8777 # ----------------------------------------------------------------------
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
8779 $as_echo_n "checking for pathfind in -lgen... " >&6; }
8780 if test "${ac_cv_lib_gen_pathfind+set}" = set; then :
8781 $as_echo_n "(cached) " >&6
8782 else
8783 ac_check_lib_save_LIBS=$LIBS
8784 LIBS="-lgen $LIBS"
8785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8786 /* end confdefs.h. */
8788 /* Override any GCC internal prototype to avoid an error.
8789 Use char because int might match the return type of a GCC
8790 builtin and then its argument prototype would still apply. */
8791 #ifdef __cplusplus
8792 extern "C"
8793 #endif
8794 char pathfind ();
8796 main ()
8798 return pathfind ();
8800 return 0;
8802 _ACEOF
8803 if ac_fn_c_try_link "$LINENO"; then :
8804 ac_cv_lib_gen_pathfind=yes
8805 else
8806 ac_cv_lib_gen_pathfind=no
8808 rm -f core conftest.err conftest.$ac_objext \
8809 conftest$ac_exeext conftest.$ac_ext
8810 LIBS=$ac_check_lib_save_LIBS
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
8813 $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
8814 if test "x$ac_cv_lib_gen_pathfind" = x""yes; then :
8815 cat >>confdefs.h <<_ACEOF
8816 #define HAVE_LIBGEN 1
8817 _ACEOF
8819 LIBS="-lgen $LIBS"
8823 for ac_func in vprintf
8824 do :
8825 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
8826 if test "x$ac_cv_func_vprintf" = x""yes; then :
8827 cat >>confdefs.h <<_ACEOF
8828 #define HAVE_VPRINTF 1
8829 _ACEOF
8831 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
8832 if test "x$ac_cv_func__doprnt" = x""yes; then :
8834 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
8839 done
8842 for ac_header in vfork.h
8843 do :
8844 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
8845 if test "x$ac_cv_header_vfork_h" = x""yes; then :
8846 cat >>confdefs.h <<_ACEOF
8847 #define HAVE_VFORK_H 1
8848 _ACEOF
8852 done
8854 for ac_func in fork vfork
8855 do :
8856 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8857 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8858 eval as_val=\$$as_ac_var
8859 if test "x$as_val" = x""yes; then :
8860 cat >>confdefs.h <<_ACEOF
8861 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8862 _ACEOF
8865 done
8867 if test "x$ac_cv_func_fork" = xyes; then
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8869 $as_echo_n "checking for working fork... " >&6; }
8870 if test "${ac_cv_func_fork_works+set}" = set; then :
8871 $as_echo_n "(cached) " >&6
8872 else
8873 if test "$cross_compiling" = yes; then :
8874 ac_cv_func_fork_works=cross
8875 else
8876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8877 /* end confdefs.h. */
8878 $ac_includes_default
8880 main ()
8883 /* By Ruediger Kuhlmann. */
8884 return fork () < 0;
8887 return 0;
8889 _ACEOF
8890 if ac_fn_c_try_run "$LINENO"; then :
8891 ac_cv_func_fork_works=yes
8892 else
8893 ac_cv_func_fork_works=no
8895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8896 conftest.$ac_objext conftest.beam conftest.$ac_ext
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8901 $as_echo "$ac_cv_func_fork_works" >&6; }
8903 else
8904 ac_cv_func_fork_works=$ac_cv_func_fork
8906 if test "x$ac_cv_func_fork_works" = xcross; then
8907 case $host in
8908 *-*-amigaos* | *-*-msdosdjgpp*)
8909 # Override, as these systems have only a dummy fork() stub
8910 ac_cv_func_fork_works=no
8913 ac_cv_func_fork_works=yes
8915 esac
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8917 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8919 ac_cv_func_vfork_works=$ac_cv_func_vfork
8920 if test "x$ac_cv_func_vfork" = xyes; then
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8922 $as_echo_n "checking for working vfork... " >&6; }
8923 if test "${ac_cv_func_vfork_works+set}" = set; then :
8924 $as_echo_n "(cached) " >&6
8925 else
8926 if test "$cross_compiling" = yes; then :
8927 ac_cv_func_vfork_works=cross
8928 else
8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8930 /* end confdefs.h. */
8931 /* Thanks to Paul Eggert for this test. */
8932 $ac_includes_default
8933 #include <sys/wait.h>
8934 #ifdef HAVE_VFORK_H
8935 # include <vfork.h>
8936 #endif
8937 /* On some sparc systems, changes by the child to local and incoming
8938 argument registers are propagated back to the parent. The compiler
8939 is told about this with #include <vfork.h>, but some compilers
8940 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8941 static variable whose address is put into a register that is
8942 clobbered by the vfork. */
8943 static void
8944 #ifdef __cplusplus
8945 sparc_address_test (int arg)
8946 # else
8947 sparc_address_test (arg) int arg;
8948 #endif
8950 static pid_t child;
8951 if (!child) {
8952 child = vfork ();
8953 if (child < 0) {
8954 perror ("vfork");
8955 _exit(2);
8957 if (!child) {
8958 arg = getpid();
8959 write(-1, "", 0);
8960 _exit (arg);
8966 main ()
8968 pid_t parent = getpid ();
8969 pid_t child;
8971 sparc_address_test (0);
8973 child = vfork ();
8975 if (child == 0) {
8976 /* Here is another test for sparc vfork register problems. This
8977 test uses lots of local variables, at least as many local
8978 variables as main has allocated so far including compiler
8979 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8980 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8981 reuse the register of parent for one of the local variables,
8982 since it will think that parent can't possibly be used any more
8983 in this routine. Assigning to the local variable will thus
8984 munge parent in the parent process. */
8985 pid_t
8986 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8987 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8988 /* Convince the compiler that p..p7 are live; otherwise, it might
8989 use the same hardware register for all 8 local variables. */
8990 if (p != p1 || p != p2 || p != p3 || p != p4
8991 || p != p5 || p != p6 || p != p7)
8992 _exit(1);
8994 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8995 from child file descriptors. If the child closes a descriptor
8996 before it execs or exits, this munges the parent's descriptor
8997 as well. Test for this by closing stdout in the child. */
8998 _exit(close(fileno(stdout)) != 0);
8999 } else {
9000 int status;
9001 struct stat st;
9003 while (wait(&status) != child)
9005 return (
9006 /* Was there some problem with vforking? */
9007 child < 0
9009 /* Did the child fail? (This shouldn't happen.) */
9010 || status
9012 /* Did the vfork/compiler bug occur? */
9013 || parent != getpid()
9015 /* Did the file descriptor bug occur? */
9016 || fstat(fileno(stdout), &st) != 0
9020 _ACEOF
9021 if ac_fn_c_try_run "$LINENO"; then :
9022 ac_cv_func_vfork_works=yes
9023 else
9024 ac_cv_func_vfork_works=no
9026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9027 conftest.$ac_objext conftest.beam conftest.$ac_ext
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9032 $as_echo "$ac_cv_func_vfork_works" >&6; }
9035 if test "x$ac_cv_func_fork_works" = xcross; then
9036 ac_cv_func_vfork_works=$ac_cv_func_vfork
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9038 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9041 if test "x$ac_cv_func_vfork_works" = xyes; then
9043 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9045 else
9047 $as_echo "#define vfork fork" >>confdefs.h
9050 if test "x$ac_cv_func_fork_works" = xyes; then
9052 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9056 for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
9057 strrchr strsignal
9058 do :
9059 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9060 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9061 eval as_val=\$$as_ac_var
9062 if test "x$as_val" = x""yes; then :
9063 cat >>confdefs.h <<_ACEOF
9064 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9065 _ACEOF
9068 done
9070 INVOKE_LIBOPTS_MACROS_FIRST_done=yes
9073 # end of AC_DEFUN of LIBOPTS_CHECK
9076 for ac_header in vfork.h
9077 do :
9078 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
9079 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9080 cat >>confdefs.h <<_ACEOF
9081 #define HAVE_VFORK_H 1
9082 _ACEOF
9086 done
9088 for ac_func in fork vfork
9089 do :
9090 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9091 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9092 eval as_val=\$$as_ac_var
9093 if test "x$as_val" = x""yes; then :
9094 cat >>confdefs.h <<_ACEOF
9095 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9096 _ACEOF
9099 done
9101 if test "x$ac_cv_func_fork" = xyes; then
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9103 $as_echo_n "checking for working fork... " >&6; }
9104 if test "${ac_cv_func_fork_works+set}" = set; then :
9105 $as_echo_n "(cached) " >&6
9106 else
9107 if test "$cross_compiling" = yes; then :
9108 ac_cv_func_fork_works=cross
9109 else
9110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111 /* end confdefs.h. */
9112 $ac_includes_default
9114 main ()
9117 /* By Ruediger Kuhlmann. */
9118 return fork () < 0;
9121 return 0;
9123 _ACEOF
9124 if ac_fn_c_try_run "$LINENO"; then :
9125 ac_cv_func_fork_works=yes
9126 else
9127 ac_cv_func_fork_works=no
9129 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9130 conftest.$ac_objext conftest.beam conftest.$ac_ext
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9135 $as_echo "$ac_cv_func_fork_works" >&6; }
9137 else
9138 ac_cv_func_fork_works=$ac_cv_func_fork
9140 if test "x$ac_cv_func_fork_works" = xcross; then
9141 case $host in
9142 *-*-amigaos* | *-*-msdosdjgpp*)
9143 # Override, as these systems have only a dummy fork() stub
9144 ac_cv_func_fork_works=no
9147 ac_cv_func_fork_works=yes
9149 esac
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9151 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9153 ac_cv_func_vfork_works=$ac_cv_func_vfork
9154 if test "x$ac_cv_func_vfork" = xyes; then
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9156 $as_echo_n "checking for working vfork... " >&6; }
9157 if test "${ac_cv_func_vfork_works+set}" = set; then :
9158 $as_echo_n "(cached) " >&6
9159 else
9160 if test "$cross_compiling" = yes; then :
9161 ac_cv_func_vfork_works=cross
9162 else
9163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9164 /* end confdefs.h. */
9165 /* Thanks to Paul Eggert for this test. */
9166 $ac_includes_default
9167 #include <sys/wait.h>
9168 #ifdef HAVE_VFORK_H
9169 # include <vfork.h>
9170 #endif
9171 /* On some sparc systems, changes by the child to local and incoming
9172 argument registers are propagated back to the parent. The compiler
9173 is told about this with #include <vfork.h>, but some compilers
9174 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9175 static variable whose address is put into a register that is
9176 clobbered by the vfork. */
9177 static void
9178 #ifdef __cplusplus
9179 sparc_address_test (int arg)
9180 # else
9181 sparc_address_test (arg) int arg;
9182 #endif
9184 static pid_t child;
9185 if (!child) {
9186 child = vfork ();
9187 if (child < 0) {
9188 perror ("vfork");
9189 _exit(2);
9191 if (!child) {
9192 arg = getpid();
9193 write(-1, "", 0);
9194 _exit (arg);
9200 main ()
9202 pid_t parent = getpid ();
9203 pid_t child;
9205 sparc_address_test (0);
9207 child = vfork ();
9209 if (child == 0) {
9210 /* Here is another test for sparc vfork register problems. This
9211 test uses lots of local variables, at least as many local
9212 variables as main has allocated so far including compiler
9213 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9214 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9215 reuse the register of parent for one of the local variables,
9216 since it will think that parent can't possibly be used any more
9217 in this routine. Assigning to the local variable will thus
9218 munge parent in the parent process. */
9219 pid_t
9220 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9221 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9222 /* Convince the compiler that p..p7 are live; otherwise, it might
9223 use the same hardware register for all 8 local variables. */
9224 if (p != p1 || p != p2 || p != p3 || p != p4
9225 || p != p5 || p != p6 || p != p7)
9226 _exit(1);
9228 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9229 from child file descriptors. If the child closes a descriptor
9230 before it execs or exits, this munges the parent's descriptor
9231 as well. Test for this by closing stdout in the child. */
9232 _exit(close(fileno(stdout)) != 0);
9233 } else {
9234 int status;
9235 struct stat st;
9237 while (wait(&status) != child)
9239 return (
9240 /* Was there some problem with vforking? */
9241 child < 0
9243 /* Did the child fail? (This shouldn't happen.) */
9244 || status
9246 /* Did the vfork/compiler bug occur? */
9247 || parent != getpid()
9249 /* Did the file descriptor bug occur? */
9250 || fstat(fileno(stdout), &st) != 0
9254 _ACEOF
9255 if ac_fn_c_try_run "$LINENO"; then :
9256 ac_cv_func_vfork_works=yes
9257 else
9258 ac_cv_func_vfork_works=no
9260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9261 conftest.$ac_objext conftest.beam conftest.$ac_ext
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9266 $as_echo "$ac_cv_func_vfork_works" >&6; }
9269 if test "x$ac_cv_func_fork_works" = xcross; then
9270 ac_cv_func_vfork_works=$ac_cv_func_vfork
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9272 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9275 if test "x$ac_cv_func_vfork_works" = xyes; then
9277 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9279 else
9281 $as_echo "#define vfork fork" >>confdefs.h
9284 if test "x$ac_cv_func_fork_works" = xyes; then
9286 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
9292 $as_echo_n "checking if $CC can handle #warning... " >&6; }
9293 if test "${ac_cv_cpp_warning+set}" = set; then :
9294 $as_echo_n "(cached) " >&6
9295 else
9297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h. */
9301 main ()
9303 #warning foo
9305 return 0;
9307 _ACEOF
9308 if ac_fn_c_try_compile "$LINENO"; then :
9309 ac_cv_cpp_warning=yes
9310 else
9311 ac_cv_cpp_warning=no
9313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_warning" >&5
9318 $as_echo "$ac_cv_cpp_warning" >&6; }
9320 case "$ac_cv_cpp_warning" in
9323 $as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
9325 esac
9327 case "$GCC" in
9328 yes)
9329 SAVED_CFLAGS_AC="$CFLAGS"
9330 CFLAGS="$CFLAGS -Wstrict-overflow"
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
9332 $as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
9333 if test "${ac_cv_gcc_Wstrict_overflow+set}" = set; then :
9334 $as_echo_n "(cached) " >&6
9335 else
9337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9338 /* end confdefs.h. */
9341 main ()
9345 return 0;
9347 _ACEOF
9348 if ac_fn_c_try_compile "$LINENO"; then :
9349 ac_cv_gcc_Wstrict_overflow=yes
9350 else
9351 ac_cv_gcc_Wstrict_overflow=no
9354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_Wstrict_overflow" >&5
9359 $as_echo "$ac_cv_gcc_Wstrict_overflow" >&6; }
9360 CFLAGS="$SAVED_CFLAGS_AC"
9361 $as_unset SAVED_CFLAGS_AC
9363 # $ac_cv_gcc_Wstrict_overflow is tested later to add the
9364 # flag to CFLAGS.
9366 esac
9369 case "$GCC" in
9370 yes)
9371 SAVED_CFLAGS_AC="$CFLAGS"
9372 CFLAGS="$CFLAGS -Winit-self"
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
9374 $as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
9375 if test "${ac_cv_gcc_Winit_self+set}" = set; then :
9376 $as_echo_n "(cached) " >&6
9377 else
9379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9380 /* end confdefs.h. */
9383 main ()
9387 return 0;
9389 _ACEOF
9390 if ac_fn_c_try_compile "$LINENO"; then :
9391 ac_cv_gcc_Winit_self=yes
9392 else
9393 ac_cv_gcc_Winit_self=no
9396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_Winit_self" >&5
9401 $as_echo "$ac_cv_gcc_Winit_self" >&6; }
9402 CFLAGS="$SAVED_CFLAGS_AC"
9403 $as_unset SAVED_CFLAGS_AC
9405 # $ac_cv_gcc_Winit_self is tested later to add the
9406 # flag to CFLAGS.
9408 esac
9410 # Expose a cross-compilation indicator to makefiles
9411 if test $build != $host; then
9412 NTP_CROSSCOMPILE_TRUE=
9413 NTP_CROSSCOMPILE_FALSE='#'
9414 else
9415 NTP_CROSSCOMPILE_TRUE='#'
9416 NTP_CROSSCOMPILE_FALSE=
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bin subdirectory" >&5
9421 $as_echo_n "checking for bin subdirectory... " >&6; }
9423 # Check whether --with-binsubdir was given.
9424 if test "${with_binsubdir+set}" = set; then :
9425 withval=$with_binsubdir; use_binsubdir="$withval"
9426 else
9427 use_binsubdir="bin"
9431 case "$use_binsubdir" in
9432 bin)
9434 sbin)
9437 as_fn_error "<$use_binsubdir> is illegal - must be \"bin\" or \"sbin\"" "$LINENO" 5
9439 esac
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_binsubdir" >&5
9441 $as_echo "$use_binsubdir" >&6; }
9442 BINSUBDIR=$use_binsubdir
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use arlib" >&5
9446 $as_echo_n "checking if we want to use arlib... " >&6; }
9448 # Check whether --with-arlib was given.
9449 if test "${with_arlib+set}" = set; then :
9450 withval=$with_arlib; ans=$withval
9451 else
9452 ans=no
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
9456 $as_echo "$ans" >&6; }
9458 if test -d $srcdir/arlib
9459 then
9460 case "$ans" in
9461 yes)
9462 ARLIB_DIR=arlib
9465 subdirs="$subdirs arlib"
9468 esac
9473 # Check whether --with-rpath was given.
9474 if test "${with_rpath+set}" = set; then :
9475 withval=$with_rpath; ans=$withval
9476 else
9477 ans=x
9480 case "$ans" in
9482 need_dash_r=
9484 yes)
9485 need_dash_r=1
9487 esac
9488 # HMS: Why isn't this $build?
9489 # Well, that depends on if we need this for the build toolchain or
9490 # for info in the host executable...
9491 # I still have no idea which way this should go, but nobody has complained.
9492 case "$host" in
9493 *-*-netbsd*)
9494 case "$need_dash_r" in
9495 no) ;;
9496 *) need_dash_r=1
9498 esac
9500 *-*-solaris*)
9501 case "$need_dash_r" in
9502 no) ;;
9503 *) need_dash_r=1
9505 esac
9507 esac
9509 case "$build" in
9510 $host)
9512 *) case "$host" in
9513 *-*-vxworks*)
9514 # Quick and dirty sanity check
9515 case "$VX_KERNEL" in
9516 '') as_fn_error "Please follow the directions in html/build/hints/vxworks.html!" "$LINENO" 5
9518 esac
9519 CFLAGS="$CFLAGS -DSYS_VXWORKS"
9521 esac
9523 esac
9525 for ac_prog in gawk mawk nawk awk
9527 # Extract the first word of "$ac_prog", so it can be a program name with args.
9528 set dummy $ac_prog; ac_word=$2
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9530 $as_echo_n "checking for $ac_word... " >&6; }
9531 if test "${ac_cv_prog_AWK+set}" = set; then :
9532 $as_echo_n "(cached) " >&6
9533 else
9534 if test -n "$AWK"; then
9535 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9536 else
9537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9538 for as_dir in $PATH
9540 IFS=$as_save_IFS
9541 test -z "$as_dir" && as_dir=.
9542 for ac_exec_ext in '' $ac_executable_extensions; do
9543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9544 ac_cv_prog_AWK="$ac_prog"
9545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9546 break 2
9548 done
9549 done
9550 IFS=$as_save_IFS
9554 AWK=$ac_cv_prog_AWK
9555 if test -n "$AWK"; then
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9557 $as_echo "$AWK" >&6; }
9558 else
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9560 $as_echo "no" >&6; }
9564 test -n "$AWK" && break
9565 done
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9568 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9569 set x ${MAKE-make}
9570 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9571 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9572 $as_echo_n "(cached) " >&6
9573 else
9574 cat >conftest.make <<\_ACEOF
9575 SHELL = /bin/sh
9576 all:
9577 @echo '@@@%%%=$(MAKE)=@@@%%%'
9578 _ACEOF
9579 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9580 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9581 *@@@%%%=?*=@@@%%%*)
9582 eval ac_cv_prog_make_${ac_make}_set=yes;;
9584 eval ac_cv_prog_make_${ac_make}_set=no;;
9585 esac
9586 rm -f conftest.make
9588 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9590 $as_echo "yes" >&6; }
9591 SET_MAKE=
9592 else
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9594 $as_echo "no" >&6; }
9595 SET_MAKE="MAKE=${MAKE-make}"
9599 rm -f conftest*
9601 case "$GCC" in
9602 yes)
9603 CFLAGS="$CFLAGS -Wall"
9604 # CFLAGS="$CFLAGS -Wcast-align"
9605 CFLAGS="$CFLAGS -Wcast-qual"
9606 # CFLAGS="$CFLAGS -Wconversion"
9607 # CFLAGS="$CFLAGS -Werror"
9608 # CFLAGS="$CFLAGS -Wextra"
9609 # CFLAGS="$CFLAGS -Wfloat-equal"
9610 CFLAGS="$CFLAGS -Wmissing-prototypes"
9611 CFLAGS="$CFLAGS -Wpointer-arith"
9612 CFLAGS="$CFLAGS -Wshadow"
9613 # CFLAGS="$CFLAGS -Wtraditional"
9614 # CFLAGS="$CFLAGS -Wwrite-strings"
9615 case "$ac_cv_gcc_Winit_self" in
9616 yes)
9617 CFLAGS="$CFLAGS -Winit-self"
9618 esac
9619 case "$ac_cv_gcc_Wstrict_overflow" in
9620 yes)
9621 CFLAGS="$CFLAGS -Wstrict-overflow"
9622 esac
9623 # if building with OpenSSL, -Wno-strict-prototypes is added later
9624 esac
9626 case "$host" in
9627 *-next-nextstep3)
9628 CFLAGS="$CFLAGS -posix"
9630 esac
9632 ac_busted_vpath_in_make=no
9634 case "$build" in
9635 *-*-irix6.1*) # 64 bit only
9636 # busted vpath?
9638 *-*-irix6*) # 6.2 (and later?)
9639 ac_busted_vpath_in_make=yes
9641 *-*-solaris2.5.1)
9642 ac_busted_vpath_in_make=yes
9644 *-*-unicosmp*)
9645 ac_busted_vpath_in_make=yes
9647 esac
9649 case "$ac_busted_vpath_in_make$srcdir" in
9650 no*) ;;
9651 yes.) ;;
9652 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | sed -e 's/GNU Make version \(1-9.]*\).*/\1/' -e q`" in
9654 as_fn_error "building outside of the main directory requires GNU make" "$LINENO" 5
9656 *) ;;
9657 esac
9659 esac
9665 # Check whether --enable-static was given.
9666 if test "${enable_static+set}" = set; then :
9667 enableval=$enable_static; p=${PACKAGE-default}
9668 case $enableval in
9669 yes) enable_static=yes ;;
9670 no) enable_static=no ;;
9672 enable_static=no
9673 # Look at the argument we got. We use all the common list separators.
9674 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9675 for pkg in $enableval; do
9676 IFS="$lt_save_ifs"
9677 if test "X$pkg" = "X$p"; then
9678 enable_static=yes
9680 done
9681 IFS="$lt_save_ifs"
9683 esac
9684 else
9685 enable_static=yes
9689 # Check whether --enable-fast-install was given.
9690 if test "${enable_fast_install+set}" = set; then :
9691 enableval=$enable_fast_install; p=${PACKAGE-default}
9692 case $enableval in
9693 yes) enable_fast_install=yes ;;
9694 no) enable_fast_install=no ;;
9696 enable_fast_install=no
9697 # Look at the argument we got. We use all the common list separators.
9698 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9699 for pkg in $enableval; do
9700 IFS="$lt_save_ifs"
9701 if test "X$pkg" = "X$p"; then
9702 enable_fast_install=yes
9704 done
9705 IFS="$lt_save_ifs"
9707 esac
9708 else
9709 enable_fast_install=yes
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
9714 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
9715 if test "${lt_cv_path_SED+set}" = set; then :
9716 $as_echo_n "(cached) " >&6
9717 else
9718 # Loop through the user's path and test for sed and gsed.
9719 # Then use that list of sed's as ones to test for truncation.
9720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9721 for as_dir in $PATH
9723 IFS=$as_save_IFS
9724 test -z "$as_dir" && as_dir=.
9725 for lt_ac_prog in sed gsed; do
9726 for ac_exec_ext in '' $ac_executable_extensions; do
9727 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9728 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9730 done
9731 done
9732 done
9733 lt_ac_max=0
9734 lt_ac_count=0
9735 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9736 # along with /bin/sed that truncates output.
9737 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9738 test ! -f $lt_ac_sed && continue
9739 cat /dev/null > conftest.in
9740 lt_ac_count=0
9741 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9742 # Check for GNU sed and select it if it is found.
9743 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9744 lt_cv_path_SED=$lt_ac_sed
9745 break
9747 while true; do
9748 cat conftest.in conftest.in >conftest.tmp
9749 mv conftest.tmp conftest.in
9750 cp conftest.in conftest.nl
9751 echo >>conftest.nl
9752 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9753 cmp -s conftest.out conftest.nl || break
9754 # 10000 chars as input seems more than enough
9755 test $lt_ac_count -gt 10 && break
9756 lt_ac_count=`expr $lt_ac_count + 1`
9757 if test $lt_ac_count -gt $lt_ac_max; then
9758 lt_ac_max=$lt_ac_count
9759 lt_cv_path_SED=$lt_ac_sed
9761 done
9762 done
9766 SED=$lt_cv_path_SED
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9768 $as_echo "$SED" >&6; }
9771 # Check whether --with-gnu-ld was given.
9772 if test "${with_gnu_ld+set}" = set; then :
9773 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9774 else
9775 with_gnu_ld=no
9778 ac_prog=ld
9779 if test "$GCC" = yes; then
9780 # Check if gcc -print-prog-name=ld gives a path.
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9782 $as_echo_n "checking for ld used by $CC... " >&6; }
9783 case $host in
9784 *-*-mingw*)
9785 # gcc leaves a trailing carriage return which upsets mingw
9786 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9788 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9789 esac
9790 case $ac_prog in
9791 # Accept absolute paths.
9792 [\\/]* | ?:[\\/]*)
9793 re_direlt='/[^/][^/]*/\.\./'
9794 # Canonicalize the pathname of ld
9795 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9796 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9797 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9798 done
9799 test -z "$LD" && LD="$ac_prog"
9802 # If it fails, then pretend we aren't using GCC.
9803 ac_prog=ld
9806 # If it is relative, then search for the first ld in PATH.
9807 with_gnu_ld=unknown
9809 esac
9810 elif test "$with_gnu_ld" = yes; then
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9812 $as_echo_n "checking for GNU ld... " >&6; }
9813 else
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9815 $as_echo_n "checking for non-GNU ld... " >&6; }
9817 if test "${lt_cv_path_LD+set}" = set; then :
9818 $as_echo_n "(cached) " >&6
9819 else
9820 if test -z "$LD"; then
9821 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9822 for ac_dir in $PATH; do
9823 IFS="$lt_save_ifs"
9824 test -z "$ac_dir" && ac_dir=.
9825 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9826 lt_cv_path_LD="$ac_dir/$ac_prog"
9827 # Check to see if the program is GNU ld. I'd rather use --version,
9828 # but apparently some variants of GNU ld only accept -v.
9829 # Break only if it was the GNU/non-GNU ld that we prefer.
9830 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9831 *GNU* | *'with BFD'*)
9832 test "$with_gnu_ld" != no && break
9835 test "$with_gnu_ld" != yes && break
9837 esac
9839 done
9840 IFS="$lt_save_ifs"
9841 else
9842 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9846 LD="$lt_cv_path_LD"
9847 if test -n "$LD"; then
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9849 $as_echo "$LD" >&6; }
9850 else
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9852 $as_echo "no" >&6; }
9854 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9856 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9857 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
9858 $as_echo_n "(cached) " >&6
9859 else
9860 # I'd rather use --version here, but apparently some GNU lds only accept -v.
9861 case `$LD -v 2>&1 </dev/null` in
9862 *GNU* | *'with BFD'*)
9863 lt_cv_prog_gnu_ld=yes
9866 lt_cv_prog_gnu_ld=no
9868 esac
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9871 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
9872 with_gnu_ld=$lt_cv_prog_gnu_ld
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9876 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9877 if test "${lt_cv_ld_reload_flag+set}" = set; then :
9878 $as_echo_n "(cached) " >&6
9879 else
9880 lt_cv_ld_reload_flag='-r'
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9883 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9884 reload_flag=$lt_cv_ld_reload_flag
9885 case $reload_flag in
9886 "" | " "*) ;;
9887 *) reload_flag=" $reload_flag" ;;
9888 esac
9889 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9890 case $host_os in
9891 darwin*)
9892 if test "$GCC" = yes; then
9893 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9894 else
9895 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9898 esac
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
9901 $as_echo_n "checking for BSD-compatible nm... " >&6; }
9902 if test "${lt_cv_path_NM+set}" = set; then :
9903 $as_echo_n "(cached) " >&6
9904 else
9905 if test -n "$NM"; then
9906 # Let the user override the test.
9907 lt_cv_path_NM="$NM"
9908 else
9909 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9910 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
9911 IFS="$lt_save_ifs"
9912 test -z "$ac_dir" && ac_dir=.
9913 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
9914 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9915 # Check to see if the nm accepts a BSD-compat flag.
9916 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9917 # nm: unknown option "B" ignored
9918 # Tru64's nm complains that /dev/null is an invalid object file
9919 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9920 */dev/null* | *'Invalid file or object type'*)
9921 lt_cv_path_NM="$tmp_nm -B"
9922 break
9925 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9926 */dev/null*)
9927 lt_cv_path_NM="$tmp_nm -p"
9928 break
9931 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9932 continue # so that we can try to find one that supports BSD flags
9934 esac
9935 esac
9937 done
9938 IFS="$lt_save_ifs"
9939 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9943 $as_echo "$lt_cv_path_NM" >&6; }
9944 NM="$lt_cv_path_NM"
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9947 $as_echo_n "checking whether ln -s works... " >&6; }
9948 LN_S=$as_ln_s
9949 if test "$LN_S" = "ln -s"; then
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9951 $as_echo "yes" >&6; }
9952 else
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9954 $as_echo "no, using $LN_S" >&6; }
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
9958 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
9959 if test "${lt_cv_deplibs_check_method+set}" = set; then :
9960 $as_echo_n "(cached) " >&6
9961 else
9962 lt_cv_file_magic_cmd='$MAGIC_CMD'
9963 lt_cv_file_magic_test_file=
9964 lt_cv_deplibs_check_method='unknown'
9965 # Need to set the preceding variable on all platforms that support
9966 # interlibrary dependencies.
9967 # 'none' -- dependencies not supported.
9968 # `unknown' -- same as none, but documents that we really don't know.
9969 # 'pass_all' -- all dependencies passed with no checks.
9970 # 'test_compile' -- check by making test program.
9971 # 'file_magic [[regex]]' -- check by looking for files in library path
9972 # which responds to the $file_magic_cmd with a given extended regex.
9973 # If you have `file' or equivalent on your system and you're not sure
9974 # whether `pass_all' will *always* work, you probably want this one.
9976 case $host_os in
9977 aix4* | aix5*)
9978 lt_cv_deplibs_check_method=pass_all
9981 beos*)
9982 lt_cv_deplibs_check_method=pass_all
9985 bsdi[45]*)
9986 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9987 lt_cv_file_magic_cmd='/usr/bin/file -L'
9988 lt_cv_file_magic_test_file=/shlib/libc.so
9991 cygwin*)
9992 # func_win32_libid is a shell function defined in ltmain.sh
9993 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9994 lt_cv_file_magic_cmd='func_win32_libid'
9997 mingw* | pw32*)
9998 # Base MSYS/MinGW do not provide the 'file' command needed by
9999 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10000 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10001 lt_cv_file_magic_cmd='$OBJDUMP -f'
10004 darwin* | rhapsody*)
10005 lt_cv_deplibs_check_method=pass_all
10008 freebsd* | kfreebsd*-gnu | dragonfly*)
10009 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10010 case $host_cpu in
10011 i*86 )
10012 # Not sure whether the presence of OpenBSD here was a mistake.
10013 # Let's accept both of them until this is cleared up.
10014 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10015 lt_cv_file_magic_cmd=/usr/bin/file
10016 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10018 esac
10019 else
10020 lt_cv_deplibs_check_method=pass_all
10024 gnu*)
10025 lt_cv_deplibs_check_method=pass_all
10028 hpux10.20* | hpux11*)
10029 lt_cv_file_magic_cmd=/usr/bin/file
10030 case $host_cpu in
10031 ia64*)
10032 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10033 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10035 hppa*64*)
10036 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
10037 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10040 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10041 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10043 esac
10046 irix5* | irix6* | nonstopux*)
10047 case $LD in
10048 *-32|*"-32 ") libmagic=32-bit;;
10049 *-n32|*"-n32 ") libmagic=N32;;
10050 *-64|*"-64 ") libmagic=64-bit;;
10051 *) libmagic=never-match;;
10052 esac
10053 lt_cv_deplibs_check_method=pass_all
10056 # This must be Linux ELF.
10057 linux*)
10058 lt_cv_deplibs_check_method=pass_all
10061 netbsd*)
10062 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10063 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10064 else
10065 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10069 newos6*)
10070 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10071 lt_cv_file_magic_cmd=/usr/bin/file
10072 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10075 nto-qnx*)
10076 lt_cv_deplibs_check_method=unknown
10079 openbsd*)
10080 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10082 else
10083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10087 osf3* | osf4* | osf5*)
10088 lt_cv_deplibs_check_method=pass_all
10091 sco3.2v5*)
10092 lt_cv_deplibs_check_method=pass_all
10095 solaris*)
10096 lt_cv_deplibs_check_method=pass_all
10099 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10100 case $host_vendor in
10101 motorola)
10102 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
10103 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10105 ncr)
10106 lt_cv_deplibs_check_method=pass_all
10108 sequent)
10109 lt_cv_file_magic_cmd='/bin/file'
10110 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10112 sni)
10113 lt_cv_file_magic_cmd='/bin/file'
10114 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10115 lt_cv_file_magic_test_file=/lib/libc.so
10117 siemens)
10118 lt_cv_deplibs_check_method=pass_all
10120 esac
10123 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10124 lt_cv_deplibs_check_method=pass_all
10126 esac
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10130 $as_echo "$lt_cv_deplibs_check_method" >&6; }
10131 file_magic_cmd=$lt_cv_file_magic_cmd
10132 deplibs_check_method=$lt_cv_deplibs_check_method
10133 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10138 # If no C compiler was specified, use CC.
10139 LTCC=${LTCC-"$CC"}
10141 # Allow CC to be a program name with arguments.
10142 compiler=$CC
10144 # Check whether --enable-libtool-lock was given.
10145 if test "${enable_libtool_lock+set}" = set; then :
10146 enableval=$enable_libtool_lock;
10149 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10151 # Some flags need to be propagated to the compiler or linker for good
10152 # libtool support.
10153 case $host in
10154 ia64-*-hpux*)
10155 # Find out which ABI we are using.
10156 echo 'int i;' > conftest.$ac_ext
10157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10158 (eval $ac_compile) 2>&5
10159 ac_status=$?
10160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10161 test $ac_status = 0; }; then
10162 case `/usr/bin/file conftest.$ac_objext` in
10163 *ELF-32*)
10164 HPUX_IA64_MODE="32"
10166 *ELF-64*)
10167 HPUX_IA64_MODE="64"
10169 esac
10171 rm -rf conftest*
10173 *-*-irix6*)
10174 # Find out which ABI we are using.
10175 echo '#line 10175 "configure"' > conftest.$ac_ext
10176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10177 (eval $ac_compile) 2>&5
10178 ac_status=$?
10179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10180 test $ac_status = 0; }; then
10181 if test "$lt_cv_prog_gnu_ld" = yes; then
10182 case `/usr/bin/file conftest.$ac_objext` in
10183 *32-bit*)
10184 LD="${LD-ld} -melf32bsmip"
10186 *N32*)
10187 LD="${LD-ld} -melf32bmipn32"
10189 *64-bit*)
10190 LD="${LD-ld} -melf64bmip"
10192 esac
10193 else
10194 case `/usr/bin/file conftest.$ac_objext` in
10195 *32-bit*)
10196 LD="${LD-ld} -32"
10198 *N32*)
10199 LD="${LD-ld} -n32"
10201 *64-bit*)
10202 LD="${LD-ld} -64"
10204 esac
10207 rm -rf conftest*
10210 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10211 # Find out which ABI we are using.
10212 echo 'int i;' > conftest.$ac_ext
10213 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10214 (eval $ac_compile) 2>&5
10215 ac_status=$?
10216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10217 test $ac_status = 0; }; then
10218 case `/usr/bin/file conftest.o` in
10219 *32-bit*)
10220 case $host in
10221 x86_64-*linux*)
10222 LD="${LD-ld} -m elf_i386"
10224 ppc64-*linux*|powerpc64-*linux*)
10225 LD="${LD-ld} -m elf32ppclinux"
10227 s390x-*linux*)
10228 LD="${LD-ld} -m elf_s390"
10230 sparc64-*linux*)
10231 LD="${LD-ld} -m elf32_sparc"
10233 esac
10235 *64-bit*)
10236 case $host in
10237 x86_64-*linux*)
10238 LD="${LD-ld} -m elf_x86_64"
10240 ppc*-*linux*|powerpc*-*linux*)
10241 LD="${LD-ld} -m elf64ppc"
10243 s390*-*linux*)
10244 LD="${LD-ld} -m elf64_s390"
10246 sparc*-*linux*)
10247 LD="${LD-ld} -m elf64_sparc"
10249 esac
10251 esac
10253 rm -rf conftest*
10256 *-*-sco3.2v5*)
10257 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10258 SAVE_CFLAGS="$CFLAGS"
10259 CFLAGS="$CFLAGS -belf"
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10261 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10262 if test "${lt_cv_cc_needs_belf+set}" = set; then :
10263 $as_echo_n "(cached) " >&6
10264 else
10265 ac_ext=c
10266 ac_cpp='$CPP $CPPFLAGS'
10267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10272 /* end confdefs.h. */
10275 main ()
10279 return 0;
10281 _ACEOF
10282 if ac_fn_c_try_link "$LINENO"; then :
10283 lt_cv_cc_needs_belf=yes
10284 else
10285 lt_cv_cc_needs_belf=no
10287 rm -f core conftest.err conftest.$ac_objext \
10288 conftest$ac_exeext conftest.$ac_ext
10289 ac_ext=c
10290 ac_cpp='$CPP $CPPFLAGS'
10291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10297 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10298 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10299 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10300 CFLAGS="$SAVE_CFLAGS"
10304 esac
10306 need_locks="$enable_libtool_lock"
10309 for ac_header in dlfcn.h
10310 do :
10311 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
10312 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
10313 cat >>confdefs.h <<_ACEOF
10314 #define HAVE_DLFCN_H 1
10315 _ACEOF
10319 done
10322 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10324 # find the maximum length of command line arguments
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10326 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
10327 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
10328 $as_echo_n "(cached) " >&6
10329 else
10331 teststring="ABCD"
10333 case $build_os in
10334 msdosdjgpp*)
10335 # On DJGPP, this test can blow up pretty badly due to problems in libc
10336 # (any single argument exceeding 2000 bytes causes a buffer overrun
10337 # during glob expansion). Even if it were fixed, the result of this
10338 # check would be larger than it should be.
10339 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10342 gnu*)
10343 # Under GNU Hurd, this test is not required because there is
10344 # no limit to the length of command line arguments.
10345 # Libtool will interpret -1 as no limit whatsoever
10346 lt_cv_sys_max_cmd_len=-1;
10349 cygwin* | mingw*)
10350 # On Win9x/ME, this test blows up -- it succeeds, but takes
10351 # about 5 minutes as the teststring grows exponentially.
10352 # Worse, since 9x/ME are not pre-emptively multitasking,
10353 # you end up with a "frozen" computer, even though with patience
10354 # the test eventually succeeds (with a max line length of 256k).
10355 # Instead, let's just punt: use the minimum linelength reported by
10356 # all of the supported platforms: 8192 (on NT/2K/XP).
10357 lt_cv_sys_max_cmd_len=8192;
10360 amigaos*)
10361 # On AmigaOS with pdksh, this test takes hours, literally.
10362 # So we just punt and use a minimum line length of 8192.
10363 lt_cv_sys_max_cmd_len=8192;
10366 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10367 # This has been around since 386BSD, at least. Likely further.
10368 if test -x /sbin/sysctl; then
10369 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10370 elif test -x /usr/sbin/sysctl; then
10371 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10372 else
10373 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10375 # And add a safety zone
10376 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10377 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10379 osf*)
10380 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10381 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10382 # nice to cause kernel panics so lets avoid the loop below.
10383 # First set a reasonable default.
10384 lt_cv_sys_max_cmd_len=16384
10386 if test -x /sbin/sysconfig; then
10387 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10388 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10389 esac
10393 # If test is not a shell built-in, we'll probably end up computing a
10394 # maximum length that is only half of the actual maximum length, but
10395 # we can't tell.
10396 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10397 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10398 = "XX$teststring") >/dev/null 2>&1 &&
10399 new_result=`expr "X$teststring" : ".*" 2>&1` &&
10400 lt_cv_sys_max_cmd_len=$new_result &&
10401 test $i != 17 # 1/2 MB should be enough
10403 i=`expr $i + 1`
10404 teststring=$teststring$teststring
10405 done
10406 teststring=
10407 # Add a significant safety factor because C++ compilers can tack on massive
10408 # amounts of additional arguments before passing them to the linker.
10409 # It appears as though 1/2 is a usable value.
10410 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10412 esac
10416 if test -n $lt_cv_sys_max_cmd_len ; then
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10418 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10419 else
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10421 $as_echo "none" >&6; }
10427 # Check for command to grab the raw symbol name followed by C symbol from nm.
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10429 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10430 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
10431 $as_echo_n "(cached) " >&6
10432 else
10434 # These are sane defaults that work on at least a few old systems.
10435 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10437 # Character class describing NM global symbol codes.
10438 symcode='[BCDEGRST]'
10440 # Regexp to match symbols that can be accessed directly from C.
10441 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10443 # Transform an extracted symbol line into a proper C declaration
10444 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10446 # Transform an extracted symbol line into symbol name and symbol address
10447 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
10449 # Define system-specific variables.
10450 case $host_os in
10451 aix*)
10452 symcode='[BCDT]'
10454 cygwin* | mingw* | pw32*)
10455 symcode='[ABCDGISTW]'
10457 hpux*) # Its linker distinguishes data from code symbols
10458 if test "$host_cpu" = ia64; then
10459 symcode='[ABCDEGRST]'
10461 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10462 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
10464 linux*)
10465 if test "$host_cpu" = ia64; then
10466 symcode='[ABCDGIRSTW]'
10467 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10468 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
10471 irix* | nonstopux*)
10472 symcode='[BCDEGRST]'
10474 osf*)
10475 symcode='[BCDEGQRST]'
10477 solaris* | sysv5*)
10478 symcode='[BDRT]'
10480 sysv4)
10481 symcode='[DFNSTU]'
10483 esac
10485 # Handle CRLF in mingw tool chain
10486 opt_cr=
10487 case $build_os in
10488 mingw*)
10489 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10491 esac
10493 # If we're using GNU nm, then use its standard symbol codes.
10494 case `$NM -V 2>&1` in
10495 *GNU* | *'with BFD'*)
10496 symcode='[ABCDGIRSTW]' ;;
10497 esac
10499 # Try without a prefix undercore, then with it.
10500 for ac_symprfx in "" "_"; do
10502 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10503 symxfrm="\\1 $ac_symprfx\\2 \\2"
10505 # Write the raw and C identifiers.
10506 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10508 # Check to see that the pipe works correctly.
10509 pipe_works=no
10511 rm -f conftest*
10512 cat > conftest.$ac_ext <<EOF
10513 #ifdef __cplusplus
10514 extern "C" {
10515 #endif
10516 char nm_test_var;
10517 void nm_test_func(){}
10518 #ifdef __cplusplus
10520 #endif
10521 int main(){nm_test_var='a';nm_test_func();return(0);}
10524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10525 (eval $ac_compile) 2>&5
10526 ac_status=$?
10527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10528 test $ac_status = 0; }; then
10529 # Now try to grab the symbols.
10530 nlist=conftest.nm
10531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
10532 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10533 ac_status=$?
10534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10535 test $ac_status = 0; } && test -s "$nlist"; then
10536 # Try sorting and uniquifying the output.
10537 if sort "$nlist" | uniq > "$nlist"T; then
10538 mv -f "$nlist"T "$nlist"
10539 else
10540 rm -f "$nlist"T
10543 # Make sure that we snagged all the symbols we need.
10544 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10545 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10546 cat <<EOF > conftest.$ac_ext
10547 #ifdef __cplusplus
10548 extern "C" {
10549 #endif
10552 # Now generate the symbol file.
10553 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10555 cat <<EOF >> conftest.$ac_ext
10556 #if defined (__STDC__) && __STDC__
10557 # define lt_ptr_t void *
10558 #else
10559 # define lt_ptr_t char *
10560 # define const
10561 #endif
10563 /* The mapping between symbol names and symbols. */
10564 const struct {
10565 const char *name;
10566 lt_ptr_t address;
10568 lt_preloaded_symbols[] =
10571 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10572 cat <<\EOF >> conftest.$ac_ext
10573 {0, (lt_ptr_t) 0}
10576 #ifdef __cplusplus
10578 #endif
10580 # Now try linking the two files.
10581 mv conftest.$ac_objext conftstm.$ac_objext
10582 lt_save_LIBS="$LIBS"
10583 lt_save_CFLAGS="$CFLAGS"
10584 LIBS="conftstm.$ac_objext"
10585 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10587 (eval $ac_link) 2>&5
10588 ac_status=$?
10589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10590 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10591 pipe_works=yes
10593 LIBS="$lt_save_LIBS"
10594 CFLAGS="$lt_save_CFLAGS"
10595 else
10596 echo "cannot find nm_test_func in $nlist" >&5
10598 else
10599 echo "cannot find nm_test_var in $nlist" >&5
10601 else
10602 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10604 else
10605 echo "$progname: failed program was:" >&5
10606 cat conftest.$ac_ext >&5
10608 rm -f conftest* conftst*
10610 # Do not use the global_symbol_pipe unless it works.
10611 if test "$pipe_works" = yes; then
10612 break
10613 else
10614 lt_cv_sys_global_symbol_pipe=
10616 done
10620 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10621 lt_cv_sys_global_symbol_to_cdecl=
10623 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10625 $as_echo "failed" >&6; }
10626 else
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10628 $as_echo "ok" >&6; }
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10632 $as_echo_n "checking for objdir... " >&6; }
10633 if test "${lt_cv_objdir+set}" = set; then :
10634 $as_echo_n "(cached) " >&6
10635 else
10636 rm -f .libs 2>/dev/null
10637 mkdir .libs 2>/dev/null
10638 if test -d .libs; then
10639 lt_cv_objdir=.libs
10640 else
10641 # MS-DOS does not allow filenames that begin with a dot.
10642 lt_cv_objdir=_libs
10644 rmdir .libs 2>/dev/null
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10647 $as_echo "$lt_cv_objdir" >&6; }
10648 objdir=$lt_cv_objdir
10654 case $host_os in
10655 aix3*)
10656 # AIX sometimes has problems with the GCC collect2 program. For some
10657 # reason, if we set the COLLECT_NAMES environment variable, the problems
10658 # vanish in a puff of smoke.
10659 if test "X${COLLECT_NAMES+set}" != Xset; then
10660 COLLECT_NAMES=
10661 export COLLECT_NAMES
10664 esac
10666 # Sed substitution that helps us do robust quoting. It backslashifies
10667 # metacharacters that are still active within double-quoted strings.
10668 Xsed='sed -e 1s/^X//'
10669 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
10671 # Same as above, but do not quote variable references.
10672 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
10674 # Sed substitution to delay expansion of an escaped shell variable in a
10675 # double_quote_subst'ed string.
10676 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10678 # Sed substitution to avoid accidental globbing in evaled expressions
10679 no_glob_subst='s/\*/\\\*/g'
10681 # Constants:
10682 rm="rm -f"
10684 # Global variables:
10685 default_ofile=libtool
10686 can_build_shared=yes
10688 # All known linkers require a `.a' archive for static linking (except MSVC,
10689 # which needs '.lib').
10690 libext=a
10691 ltmain="$ac_aux_dir/ltmain.sh"
10692 ofile="$default_ofile"
10693 with_gnu_ld="$lt_cv_prog_gnu_ld"
10695 if test -n "$ac_tool_prefix"; then
10696 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10697 set dummy ${ac_tool_prefix}ar; ac_word=$2
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10699 $as_echo_n "checking for $ac_word... " >&6; }
10700 if test "${ac_cv_prog_AR+set}" = set; then :
10701 $as_echo_n "(cached) " >&6
10702 else
10703 if test -n "$AR"; then
10704 ac_cv_prog_AR="$AR" # Let the user override the test.
10705 else
10706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10707 for as_dir in $PATH
10709 IFS=$as_save_IFS
10710 test -z "$as_dir" && as_dir=.
10711 for ac_exec_ext in '' $ac_executable_extensions; do
10712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10713 ac_cv_prog_AR="${ac_tool_prefix}ar"
10714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10715 break 2
10717 done
10718 done
10719 IFS=$as_save_IFS
10723 AR=$ac_cv_prog_AR
10724 if test -n "$AR"; then
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10726 $as_echo "$AR" >&6; }
10727 else
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10729 $as_echo "no" >&6; }
10734 if test -z "$ac_cv_prog_AR"; then
10735 ac_ct_AR=$AR
10736 # Extract the first word of "ar", so it can be a program name with args.
10737 set dummy ar; ac_word=$2
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10739 $as_echo_n "checking for $ac_word... " >&6; }
10740 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
10741 $as_echo_n "(cached) " >&6
10742 else
10743 if test -n "$ac_ct_AR"; then
10744 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10745 else
10746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10747 for as_dir in $PATH
10749 IFS=$as_save_IFS
10750 test -z "$as_dir" && as_dir=.
10751 for ac_exec_ext in '' $ac_executable_extensions; do
10752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10753 ac_cv_prog_ac_ct_AR="ar"
10754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10755 break 2
10757 done
10758 done
10759 IFS=$as_save_IFS
10763 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10764 if test -n "$ac_ct_AR"; then
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10766 $as_echo "$ac_ct_AR" >&6; }
10767 else
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10769 $as_echo "no" >&6; }
10772 if test "x$ac_ct_AR" = x; then
10773 AR="false"
10774 else
10775 case $cross_compiling:$ac_tool_warned in
10776 yes:)
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10779 ac_tool_warned=yes ;;
10780 esac
10781 AR=$ac_ct_AR
10783 else
10784 AR="$ac_cv_prog_AR"
10787 if test -n "$ac_tool_prefix"; then
10788 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10789 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10791 $as_echo_n "checking for $ac_word... " >&6; }
10792 if test "${ac_cv_prog_RANLIB+set}" = set; then :
10793 $as_echo_n "(cached) " >&6
10794 else
10795 if test -n "$RANLIB"; then
10796 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10797 else
10798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10799 for as_dir in $PATH
10801 IFS=$as_save_IFS
10802 test -z "$as_dir" && as_dir=.
10803 for ac_exec_ext in '' $ac_executable_extensions; do
10804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10805 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10807 break 2
10809 done
10810 done
10811 IFS=$as_save_IFS
10815 RANLIB=$ac_cv_prog_RANLIB
10816 if test -n "$RANLIB"; then
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10818 $as_echo "$RANLIB" >&6; }
10819 else
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10821 $as_echo "no" >&6; }
10826 if test -z "$ac_cv_prog_RANLIB"; then
10827 ac_ct_RANLIB=$RANLIB
10828 # Extract the first word of "ranlib", so it can be a program name with args.
10829 set dummy ranlib; ac_word=$2
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10831 $as_echo_n "checking for $ac_word... " >&6; }
10832 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
10833 $as_echo_n "(cached) " >&6
10834 else
10835 if test -n "$ac_ct_RANLIB"; then
10836 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10837 else
10838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10839 for as_dir in $PATH
10841 IFS=$as_save_IFS
10842 test -z "$as_dir" && as_dir=.
10843 for ac_exec_ext in '' $ac_executable_extensions; do
10844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10845 ac_cv_prog_ac_ct_RANLIB="ranlib"
10846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10847 break 2
10849 done
10850 done
10851 IFS=$as_save_IFS
10855 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10856 if test -n "$ac_ct_RANLIB"; then
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10858 $as_echo "$ac_ct_RANLIB" >&6; }
10859 else
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10861 $as_echo "no" >&6; }
10864 if test "x$ac_ct_RANLIB" = x; then
10865 RANLIB=":"
10866 else
10867 case $cross_compiling:$ac_tool_warned in
10868 yes:)
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10871 ac_tool_warned=yes ;;
10872 esac
10873 RANLIB=$ac_ct_RANLIB
10875 else
10876 RANLIB="$ac_cv_prog_RANLIB"
10879 if test -n "$ac_tool_prefix"; then
10880 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10881 set dummy ${ac_tool_prefix}strip; ac_word=$2
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10883 $as_echo_n "checking for $ac_word... " >&6; }
10884 if test "${ac_cv_prog_STRIP+set}" = set; then :
10885 $as_echo_n "(cached) " >&6
10886 else
10887 if test -n "$STRIP"; then
10888 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10889 else
10890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10891 for as_dir in $PATH
10893 IFS=$as_save_IFS
10894 test -z "$as_dir" && as_dir=.
10895 for ac_exec_ext in '' $ac_executable_extensions; do
10896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10897 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10899 break 2
10901 done
10902 done
10903 IFS=$as_save_IFS
10907 STRIP=$ac_cv_prog_STRIP
10908 if test -n "$STRIP"; then
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10910 $as_echo "$STRIP" >&6; }
10911 else
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10913 $as_echo "no" >&6; }
10918 if test -z "$ac_cv_prog_STRIP"; then
10919 ac_ct_STRIP=$STRIP
10920 # Extract the first word of "strip", so it can be a program name with args.
10921 set dummy strip; ac_word=$2
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10923 $as_echo_n "checking for $ac_word... " >&6; }
10924 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10925 $as_echo_n "(cached) " >&6
10926 else
10927 if test -n "$ac_ct_STRIP"; then
10928 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10929 else
10930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10931 for as_dir in $PATH
10933 IFS=$as_save_IFS
10934 test -z "$as_dir" && as_dir=.
10935 for ac_exec_ext in '' $ac_executable_extensions; do
10936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10937 ac_cv_prog_ac_ct_STRIP="strip"
10938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10939 break 2
10941 done
10942 done
10943 IFS=$as_save_IFS
10947 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10948 if test -n "$ac_ct_STRIP"; then
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10950 $as_echo "$ac_ct_STRIP" >&6; }
10951 else
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10953 $as_echo "no" >&6; }
10956 if test "x$ac_ct_STRIP" = x; then
10957 STRIP=":"
10958 else
10959 case $cross_compiling:$ac_tool_warned in
10960 yes:)
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10963 ac_tool_warned=yes ;;
10964 esac
10965 STRIP=$ac_ct_STRIP
10967 else
10968 STRIP="$ac_cv_prog_STRIP"
10972 old_CC="$CC"
10973 old_CFLAGS="$CFLAGS"
10975 # Set sane defaults for various variables
10976 test -z "$AR" && AR=ar
10977 test -z "$AR_FLAGS" && AR_FLAGS=cru
10978 test -z "$AS" && AS=as
10979 test -z "$CC" && CC=cc
10980 test -z "$LTCC" && LTCC=$CC
10981 test -z "$DLLTOOL" && DLLTOOL=dlltool
10982 test -z "$LD" && LD=ld
10983 test -z "$LN_S" && LN_S="ln -s"
10984 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10985 test -z "$NM" && NM=nm
10986 test -z "$SED" && SED=sed
10987 test -z "$OBJDUMP" && OBJDUMP=objdump
10988 test -z "$RANLIB" && RANLIB=:
10989 test -z "$STRIP" && STRIP=:
10990 test -z "$ac_objext" && ac_objext=o
10992 # Determine commands to create old-style static archives.
10993 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
10994 old_postinstall_cmds='chmod 644 $oldlib'
10995 old_postuninstall_cmds=
10997 if test -n "$RANLIB"; then
10998 case $host_os in
10999 openbsd*)
11000 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11003 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11005 esac
11006 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11009 for cc_temp in $compiler""; do
11010 case $cc_temp in
11011 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11012 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11013 \-*) ;;
11014 *) break;;
11015 esac
11016 done
11017 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11020 # Only perform the check for file, if the check method requires it
11021 case $deplibs_check_method in
11022 file_magic*)
11023 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11025 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11026 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
11027 $as_echo_n "(cached) " >&6
11028 else
11029 case $MAGIC_CMD in
11030 [\\/*] | ?:[\\/]*)
11031 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11034 lt_save_MAGIC_CMD="$MAGIC_CMD"
11035 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11036 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11037 for ac_dir in $ac_dummy; do
11038 IFS="$lt_save_ifs"
11039 test -z "$ac_dir" && ac_dir=.
11040 if test -f $ac_dir/${ac_tool_prefix}file; then
11041 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11042 if test -n "$file_magic_test_file"; then
11043 case $deplibs_check_method in
11044 "file_magic "*)
11045 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11046 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11047 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11048 $EGREP "$file_magic_regex" > /dev/null; then
11050 else
11051 cat <<EOF 1>&2
11053 *** Warning: the command libtool uses to detect shared libraries,
11054 *** $file_magic_cmd, produces output that libtool cannot recognize.
11055 *** The result is that libtool may fail to recognize shared libraries
11056 *** as such. This will affect the creation of libtool libraries that
11057 *** depend on shared libraries, but programs linked with such libtool
11058 *** libraries will work regardless of this problem. Nevertheless, you
11059 *** may want to report the problem to your system manager and/or to
11060 *** bug-libtool@gnu.org
11063 fi ;;
11064 esac
11066 break
11068 done
11069 IFS="$lt_save_ifs"
11070 MAGIC_CMD="$lt_save_MAGIC_CMD"
11072 esac
11075 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11076 if test -n "$MAGIC_CMD"; then
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11078 $as_echo "$MAGIC_CMD" >&6; }
11079 else
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11081 $as_echo "no" >&6; }
11084 if test -z "$lt_cv_path_MAGIC_CMD"; then
11085 if test -n "$ac_tool_prefix"; then
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11087 $as_echo_n "checking for file... " >&6; }
11088 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
11089 $as_echo_n "(cached) " >&6
11090 else
11091 case $MAGIC_CMD in
11092 [\\/*] | ?:[\\/]*)
11093 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11096 lt_save_MAGIC_CMD="$MAGIC_CMD"
11097 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11098 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11099 for ac_dir in $ac_dummy; do
11100 IFS="$lt_save_ifs"
11101 test -z "$ac_dir" && ac_dir=.
11102 if test -f $ac_dir/file; then
11103 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11104 if test -n "$file_magic_test_file"; then
11105 case $deplibs_check_method in
11106 "file_magic "*)
11107 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11108 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11109 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11110 $EGREP "$file_magic_regex" > /dev/null; then
11112 else
11113 cat <<EOF 1>&2
11115 *** Warning: the command libtool uses to detect shared libraries,
11116 *** $file_magic_cmd, produces output that libtool cannot recognize.
11117 *** The result is that libtool may fail to recognize shared libraries
11118 *** as such. This will affect the creation of libtool libraries that
11119 *** depend on shared libraries, but programs linked with such libtool
11120 *** libraries will work regardless of this problem. Nevertheless, you
11121 *** may want to report the problem to your system manager and/or to
11122 *** bug-libtool@gnu.org
11125 fi ;;
11126 esac
11128 break
11130 done
11131 IFS="$lt_save_ifs"
11132 MAGIC_CMD="$lt_save_MAGIC_CMD"
11134 esac
11137 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11138 if test -n "$MAGIC_CMD"; then
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11140 $as_echo "$MAGIC_CMD" >&6; }
11141 else
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11143 $as_echo "no" >&6; }
11146 else
11147 MAGIC_CMD=:
11153 esac
11155 enable_dlopen=no
11156 enable_win32_dll=no
11158 # Check whether --enable-libtool-lock was given.
11159 if test "${enable_libtool_lock+set}" = set; then :
11160 enableval=$enable_libtool_lock;
11163 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11166 # Check whether --with-pic was given.
11167 if test "${with_pic+set}" = set; then :
11168 withval=$with_pic; pic_mode="$withval"
11169 else
11170 pic_mode=default
11173 test -z "$pic_mode" && pic_mode=default
11175 # Use C for the default configuration in the libtool script
11176 tagname=
11177 lt_save_CC="$CC"
11178 ac_ext=c
11179 ac_cpp='$CPP $CPPFLAGS'
11180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11185 # Source file extension for C test sources.
11186 ac_ext=c
11188 # Object file extension for compiled C test sources.
11189 objext=o
11190 objext=$objext
11192 # Code to be used in simple compile tests
11193 lt_simple_compile_test_code="int some_variable = 0;\n"
11195 # Code to be used in simple link tests
11196 lt_simple_link_test_code='int main(){return(0);}\n'
11199 # If no C compiler was specified, use CC.
11200 LTCC=${LTCC-"$CC"}
11202 # Allow CC to be a program name with arguments.
11203 compiler=$CC
11206 # save warnings/boilerplate of simple test code
11207 ac_outfile=conftest.$ac_objext
11208 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11209 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11210 _lt_compiler_boilerplate=`cat conftest.err`
11211 $rm conftest*
11213 ac_outfile=conftest.$ac_objext
11214 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11215 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11216 _lt_linker_boilerplate=`cat conftest.err`
11217 $rm conftest*
11221 # Check for any special shared library compilation flags.
11223 lt_prog_cc_shlib=
11224 if test "$GCC" = no; then
11225 case $host_os in
11226 sco3.2v5*)
11227 lt_prog_cc_shlib='-belf'
11229 esac
11231 if test -n "$lt_prog_cc_shlib"; then
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11233 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11234 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11235 else
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11237 $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11238 lt_cv_prog_cc_can_build_shared=no
11244 # Check to make sure the static flag actually works.
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11247 $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
11248 if test "${lt_prog_compiler_static_works+set}" = set; then :
11249 $as_echo_n "(cached) " >&6
11250 else
11251 lt_prog_compiler_static_works=no
11252 save_LDFLAGS="$LDFLAGS"
11253 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11254 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11255 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11256 # The linker can only warn and ignore the option if not recognized
11257 # So say no if there are warnings
11258 if test -s conftest.err; then
11259 # Append any errors to the config.log.
11260 cat conftest.err 1>&5
11261 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
11262 $SED '/^$/d' conftest.err >conftest.er2
11263 if diff conftest.exp conftest.er2 >/dev/null; then
11264 lt_prog_compiler_static_works=yes
11266 else
11267 lt_prog_compiler_static_works=yes
11270 $rm conftest*
11271 LDFLAGS="$save_LDFLAGS"
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
11275 $as_echo "$lt_prog_compiler_static_works" >&6; }
11277 if test x"$lt_prog_compiler_static_works" = xyes; then
11279 else
11280 lt_prog_compiler_static=
11286 lt_prog_compiler_no_builtin_flag=
11288 if test "$GCC" = yes; then
11289 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11293 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11294 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11295 $as_echo_n "(cached) " >&6
11296 else
11297 lt_cv_prog_compiler_rtti_exceptions=no
11298 ac_outfile=conftest.$ac_objext
11299 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11300 lt_compiler_flag="-fno-rtti -fno-exceptions"
11301 # Insert the option either (1) after the last *FLAGS variable, or
11302 # (2) before a word containing "conftest.", or (3) at the end.
11303 # Note that $ac_compile itself does not contain backslashes and begins
11304 # with a dollar sign (not a hyphen), so the echo should work correctly.
11305 # The option is referenced via a variable to avoid confusing sed.
11306 lt_compile=`echo "$ac_compile" | $SED \
11307 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11308 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11309 -e 's:$: $lt_compiler_flag:'`
11310 (eval echo "\"\$as_me:11310: $lt_compile\"" >&5)
11311 (eval "$lt_compile" 2>conftest.err)
11312 ac_status=$?
11313 cat conftest.err >&5
11314 echo "$as_me:11314: \$? = $ac_status" >&5
11315 if (exit $ac_status) && test -s "$ac_outfile"; then
11316 # The compiler can only warn and ignore the option if not recognized
11317 # So say no if there are warnings other than the usual output.
11318 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11319 $SED '/^$/d' conftest.err >conftest.er2
11320 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11321 lt_cv_prog_compiler_rtti_exceptions=yes
11324 $rm conftest*
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11328 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11330 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11331 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11332 else
11338 lt_prog_compiler_wl=
11339 lt_prog_compiler_pic=
11340 lt_prog_compiler_static=
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11343 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11345 if test "$GCC" = yes; then
11346 lt_prog_compiler_wl='-Wl,'
11347 lt_prog_compiler_static='-static'
11349 case $host_os in
11350 aix*)
11351 # All AIX code is PIC.
11352 if test "$host_cpu" = ia64; then
11353 # AIX 5 now supports IA64 processor
11354 lt_prog_compiler_static='-Bstatic'
11358 amigaos*)
11359 # FIXME: we need at least 68020 code to build shared libraries, but
11360 # adding the `-m68020' flag to GCC prevents building anything better,
11361 # like `-m68040'.
11362 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11365 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11366 # PIC is the default for these OSes.
11369 mingw* | pw32* | os2*)
11370 # This hack is so that the source file can tell whether it is being
11371 # built for inclusion in a dll (and should export symbols for example).
11372 lt_prog_compiler_pic='-DDLL_EXPORT'
11375 darwin* | rhapsody*)
11376 # PIC is the default on this platform
11377 # Common symbols not allowed in MH_DYLIB files
11378 lt_prog_compiler_pic='-fno-common'
11381 msdosdjgpp*)
11382 # Just because we use GCC doesn't mean we suddenly get shared libraries
11383 # on systems that don't support them.
11384 lt_prog_compiler_can_build_shared=no
11385 enable_shared=no
11388 sysv4*MP*)
11389 if test -d /usr/nec; then
11390 lt_prog_compiler_pic=-Kconform_pic
11394 hpux*)
11395 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11396 # not for PA HP-UX.
11397 case $host_cpu in
11398 hppa*64*|ia64*)
11399 # +Z the default
11402 lt_prog_compiler_pic='-fPIC'
11404 esac
11408 lt_prog_compiler_pic='-fPIC'
11410 esac
11411 else
11412 # PORTME Check for flag to pass linker flags through the system compiler.
11413 case $host_os in
11414 aix*)
11415 lt_prog_compiler_wl='-Wl,'
11416 if test "$host_cpu" = ia64; then
11417 # AIX 5 now supports IA64 processor
11418 lt_prog_compiler_static='-Bstatic'
11419 else
11420 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11423 darwin*)
11424 # PIC is the default on this platform
11425 # Common symbols not allowed in MH_DYLIB files
11426 case $cc_basename in
11427 xlc*)
11428 lt_prog_compiler_pic='-qnocommon'
11429 lt_prog_compiler_wl='-Wl,'
11431 esac
11434 mingw* | pw32* | os2*)
11435 # This hack is so that the source file can tell whether it is being
11436 # built for inclusion in a dll (and should export symbols for example).
11437 lt_prog_compiler_pic='-DDLL_EXPORT'
11440 hpux9* | hpux10* | hpux11*)
11441 lt_prog_compiler_wl='-Wl,'
11442 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11443 # not for PA HP-UX.
11444 case $host_cpu in
11445 hppa*64*|ia64*)
11446 # +Z the default
11449 lt_prog_compiler_pic='+Z'
11451 esac
11452 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11453 lt_prog_compiler_static='${wl}-a ${wl}archive'
11456 irix5* | irix6* | nonstopux*)
11457 lt_prog_compiler_wl='-Wl,'
11458 # PIC (with -KPIC) is the default.
11459 lt_prog_compiler_static='-non_shared'
11462 newsos6)
11463 lt_prog_compiler_pic='-KPIC'
11464 lt_prog_compiler_static='-Bstatic'
11467 linux*)
11468 case $cc_basename in
11469 icc* | ecc*)
11470 lt_prog_compiler_wl='-Wl,'
11471 lt_prog_compiler_pic='-KPIC'
11472 lt_prog_compiler_static='-static'
11474 pgcc* | pgf77* | pgf90* | pgf95*)
11475 # Portland Group compilers (*not* the Pentium gcc compiler,
11476 # which looks to be a dead project)
11477 lt_prog_compiler_wl='-Wl,'
11478 lt_prog_compiler_pic='-fpic'
11479 lt_prog_compiler_static='-Bstatic'
11481 ccc*)
11482 lt_prog_compiler_wl='-Wl,'
11483 # All Alpha code is PIC.
11484 lt_prog_compiler_static='-non_shared'
11486 esac
11489 osf3* | osf4* | osf5*)
11490 lt_prog_compiler_wl='-Wl,'
11491 # All OSF/1 code is PIC.
11492 lt_prog_compiler_static='-non_shared'
11495 sco3.2v5*)
11496 lt_prog_compiler_pic='-Kpic'
11497 lt_prog_compiler_static='-dn'
11500 solaris*)
11501 lt_prog_compiler_pic='-KPIC'
11502 lt_prog_compiler_static='-Bstatic'
11503 case $cc_basename in
11504 f77* | f90* | f95*)
11505 lt_prog_compiler_wl='-Qoption ld ';;
11507 lt_prog_compiler_wl='-Wl,';;
11508 esac
11511 sunos4*)
11512 lt_prog_compiler_wl='-Qoption ld '
11513 lt_prog_compiler_pic='-PIC'
11514 lt_prog_compiler_static='-Bstatic'
11517 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11518 lt_prog_compiler_wl='-Wl,'
11519 lt_prog_compiler_pic='-KPIC'
11520 lt_prog_compiler_static='-Bstatic'
11523 sysv4*MP*)
11524 if test -d /usr/nec ;then
11525 lt_prog_compiler_pic='-Kconform_pic'
11526 lt_prog_compiler_static='-Bstatic'
11530 unicos*)
11531 lt_prog_compiler_wl='-Wl,'
11532 lt_prog_compiler_can_build_shared=no
11535 uts4*)
11536 lt_prog_compiler_pic='-pic'
11537 lt_prog_compiler_static='-Bstatic'
11541 lt_prog_compiler_can_build_shared=no
11543 esac
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
11547 $as_echo "$lt_prog_compiler_pic" >&6; }
11550 # Check to make sure the PIC flag actually works.
11552 if test -n "$lt_prog_compiler_pic"; then
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11555 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11556 if test "${lt_prog_compiler_pic_works+set}" = set; then :
11557 $as_echo_n "(cached) " >&6
11558 else
11559 lt_prog_compiler_pic_works=no
11560 ac_outfile=conftest.$ac_objext
11561 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11562 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11563 # Insert the option either (1) after the last *FLAGS variable, or
11564 # (2) before a word containing "conftest.", or (3) at the end.
11565 # Note that $ac_compile itself does not contain backslashes and begins
11566 # with a dollar sign (not a hyphen), so the echo should work correctly.
11567 # The option is referenced via a variable to avoid confusing sed.
11568 lt_compile=`echo "$ac_compile" | $SED \
11569 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11570 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11571 -e 's:$: $lt_compiler_flag:'`
11572 (eval echo "\"\$as_me:11572: $lt_compile\"" >&5)
11573 (eval "$lt_compile" 2>conftest.err)
11574 ac_status=$?
11575 cat conftest.err >&5
11576 echo "$as_me:11576: \$? = $ac_status" >&5
11577 if (exit $ac_status) && test -s "$ac_outfile"; then
11578 # The compiler can only warn and ignore the option if not recognized
11579 # So say no if there are warnings other than the usual output.
11580 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11581 $SED '/^$/d' conftest.err >conftest.er2
11582 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11583 lt_prog_compiler_pic_works=yes
11586 $rm conftest*
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
11590 $as_echo "$lt_prog_compiler_pic_works" >&6; }
11592 if test x"$lt_prog_compiler_pic_works" = xyes; then
11593 case $lt_prog_compiler_pic in
11594 "" | " "*) ;;
11595 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11596 esac
11597 else
11598 lt_prog_compiler_pic=
11599 lt_prog_compiler_can_build_shared=no
11603 case $host_os in
11604 # For platforms which do not support PIC, -DPIC is meaningless:
11605 *djgpp*)
11606 lt_prog_compiler_pic=
11609 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11611 esac
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11614 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11615 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
11616 $as_echo_n "(cached) " >&6
11617 else
11618 lt_cv_prog_compiler_c_o=no
11619 $rm -r conftest 2>/dev/null
11620 mkdir conftest
11621 cd conftest
11622 mkdir out
11623 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11625 lt_compiler_flag="-o out/conftest2.$ac_objext"
11626 # Insert the option either (1) after the last *FLAGS variable, or
11627 # (2) before a word containing "conftest.", or (3) at the end.
11628 # Note that $ac_compile itself does not contain backslashes and begins
11629 # with a dollar sign (not a hyphen), so the echo should work correctly.
11630 lt_compile=`echo "$ac_compile" | $SED \
11631 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11632 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11633 -e 's:$: $lt_compiler_flag:'`
11634 (eval echo "\"\$as_me:11634: $lt_compile\"" >&5)
11635 (eval "$lt_compile" 2>out/conftest.err)
11636 ac_status=$?
11637 cat out/conftest.err >&5
11638 echo "$as_me:11638: \$? = $ac_status" >&5
11639 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11640 then
11641 # The compiler can only warn and ignore the option if not recognized
11642 # So say no if there are warnings
11643 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11644 $SED '/^$/d' out/conftest.err >out/conftest.er2
11645 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11646 lt_cv_prog_compiler_c_o=yes
11649 chmod u+w . 2>&5
11650 $rm conftest*
11651 # SGI C++ compiler will create directory out/ii_files/ for
11652 # template instantiation
11653 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11654 $rm out/* && rmdir out
11655 cd ..
11656 rmdir conftest
11657 $rm conftest*
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11661 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11664 hard_links="nottested"
11665 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11666 # do not overwrite the value of need_locks provided by the user
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11668 $as_echo_n "checking if we can lock with hard links... " >&6; }
11669 hard_links=yes
11670 $rm conftest*
11671 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11672 touch conftest.a
11673 ln conftest.a conftest.b 2>&5 || hard_links=no
11674 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11676 $as_echo "$hard_links" >&6; }
11677 if test "$hard_links" = no; then
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11679 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11680 need_locks=warn
11682 else
11683 need_locks=no
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11687 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11689 runpath_var=
11690 allow_undefined_flag=
11691 enable_shared_with_static_runtimes=no
11692 archive_cmds=
11693 archive_expsym_cmds=
11694 old_archive_From_new_cmds=
11695 old_archive_from_expsyms_cmds=
11696 export_dynamic_flag_spec=
11697 whole_archive_flag_spec=
11698 thread_safe_flag_spec=
11699 hardcode_libdir_flag_spec=
11700 hardcode_libdir_flag_spec_ld=
11701 hardcode_libdir_separator=
11702 hardcode_direct=no
11703 hardcode_minus_L=no
11704 hardcode_shlibpath_var=unsupported
11705 link_all_deplibs=unknown
11706 hardcode_automatic=no
11707 module_cmds=
11708 module_expsym_cmds=
11709 always_export_symbols=no
11710 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11711 # include_expsyms should be a list of space-separated symbols to be *always*
11712 # included in the symbol list
11713 include_expsyms=
11714 # exclude_expsyms can be an extended regexp of symbols to exclude
11715 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11716 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11717 # as well as any symbol that contains `d'.
11718 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
11719 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11720 # platforms (ab)use it in PIC code, but their linkers get confused if
11721 # the symbol is explicitly referenced. Since portable code cannot
11722 # rely on this symbol name, it's probably fine to never include it in
11723 # preloaded symbol tables.
11724 extract_expsyms_cmds=
11725 # Just being paranoid about ensuring that cc_basename is set.
11726 for cc_temp in $compiler""; do
11727 case $cc_temp in
11728 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11729 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11730 \-*) ;;
11731 *) break;;
11732 esac
11733 done
11734 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11736 case $host_os in
11737 cygwin* | mingw* | pw32*)
11738 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11739 # When not using gcc, we currently assume that we are using
11740 # Microsoft Visual C++.
11741 if test "$GCC" != yes; then
11742 with_gnu_ld=no
11745 openbsd*)
11746 with_gnu_ld=no
11748 esac
11750 ld_shlibs=yes
11751 if test "$with_gnu_ld" = yes; then
11752 # If archive_cmds runs LD, not CC, wlarc should be empty
11753 wlarc='${wl}'
11755 # Set some defaults for GNU ld with shared library support. These
11756 # are reset later if shared libraries are not supported. Putting them
11757 # here allows them to be overridden if necessary.
11758 runpath_var=LD_RUN_PATH
11759 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
11760 export_dynamic_flag_spec='${wl}--export-dynamic'
11761 # ancient GNU ld didn't support --whole-archive et. al.
11762 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
11763 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11764 else
11765 whole_archive_flag_spec=
11767 supports_anon_versioning=no
11768 case `$LD -v 2>/dev/null` in
11769 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11770 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11771 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11772 *\ 2.11.*) ;; # other 2.11 versions
11773 *) supports_anon_versioning=yes ;;
11774 esac
11776 # See if GNU ld supports shared libraries.
11777 case $host_os in
11778 aix3* | aix4* | aix5*)
11779 # On AIX/PPC, the GNU linker is very broken
11780 if test "$host_cpu" != ia64; then
11781 ld_shlibs=no
11782 cat <<EOF 1>&2
11784 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
11785 *** to be unable to reliably create shared libraries on AIX.
11786 *** Therefore, libtool is disabling shared libraries support. If you
11787 *** really care for shared libraries, you may want to modify your PATH
11788 *** so that a non-GNU linker is found, and then restart.
11794 amigaos*)
11795 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
11796 hardcode_libdir_flag_spec='-L$libdir'
11797 hardcode_minus_L=yes
11799 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
11800 # that the semantics of dynamic libraries on AmigaOS, at least up
11801 # to version 4, is to share data among multiple programs linked
11802 # with the same dynamic library. Since this doesn't match the
11803 # behavior of shared libraries on other platforms, we can't use
11804 # them.
11805 ld_shlibs=no
11808 beos*)
11809 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11810 allow_undefined_flag=unsupported
11811 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11812 # support --undefined. This deserves some investigation. FIXME
11813 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11814 else
11815 ld_shlibs=no
11819 cygwin* | mingw* | pw32*)
11820 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11821 # as there is no search path for DLLs.
11822 hardcode_libdir_flag_spec='-L$libdir'
11823 allow_undefined_flag=unsupported
11824 always_export_symbols=no
11825 enable_shared_with_static_runtimes=yes
11826 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11828 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11829 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11830 # If the export-symbols file already is a .def file (1st line
11831 # is EXPORTS), use it as is; otherwise, prepend...
11832 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11833 cp $export_symbols $output_objdir/$soname.def;
11834 else
11835 echo EXPORTS > $output_objdir/$soname.def;
11836 cat $export_symbols >> $output_objdir/$soname.def;
11838 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11839 else
11840 ld_shlibs=no
11844 linux*)
11845 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11846 tmp_addflag=
11847 case $cc_basename,$host_cpu in
11848 pgcc*) # Portland Group C compiler
11849 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11850 tmp_addflag=' $pic_flag'
11852 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
11853 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11854 tmp_addflag=' $pic_flag -Mnomain' ;;
11855 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11856 tmp_addflag=' -i_dynamic' ;;
11857 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11858 tmp_addflag=' -i_dynamic -nofor_main' ;;
11859 ifc* | ifort*) # Intel Fortran compiler
11860 tmp_addflag=' -nofor_main' ;;
11861 esac
11862 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11864 if test $supports_anon_versioning = yes; then
11865 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
11866 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11867 $echo "local: *; };" >> $output_objdir/$libname.ver~
11868 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11870 else
11871 ld_shlibs=no
11875 netbsd*)
11876 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11877 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11878 wlarc=
11879 else
11880 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11881 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11885 solaris* | sysv5*)
11886 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
11887 ld_shlibs=no
11888 cat <<EOF 1>&2
11890 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11891 *** create shared libraries on Solaris systems. Therefore, libtool
11892 *** is disabling shared libraries support. We urge you to upgrade GNU
11893 *** binutils to release 2.9.1 or newer. Another option is to modify
11894 *** your PATH or compiler configuration so that the native linker is
11895 *** used, and then restart.
11898 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11899 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11900 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11901 else
11902 ld_shlibs=no
11906 sunos4*)
11907 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11908 wlarc=
11909 hardcode_direct=yes
11910 hardcode_shlibpath_var=no
11914 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11915 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11916 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11917 else
11918 ld_shlibs=no
11921 esac
11923 if test "$ld_shlibs" = no; then
11924 runpath_var=
11925 hardcode_libdir_flag_spec=
11926 export_dynamic_flag_spec=
11927 whole_archive_flag_spec=
11929 else
11930 # PORTME fill in a description of your system's linker (not GNU ld)
11931 case $host_os in
11932 aix3*)
11933 allow_undefined_flag=unsupported
11934 always_export_symbols=yes
11935 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
11936 # Note: this linker hardcodes the directories in LIBPATH if there
11937 # are no directories specified by -L.
11938 hardcode_minus_L=yes
11939 if test "$GCC" = yes && test -z "$link_static_flag"; then
11940 # Neither direct hardcoding nor static linking is supported with a
11941 # broken collect2.
11942 hardcode_direct=unsupported
11946 aix4* | aix5*)
11947 if test "$host_cpu" = ia64; then
11948 # On IA64, the linker does run time linking by default, so we don't
11949 # have to do anything special.
11950 aix_use_runtimelinking=no
11951 exp_sym_flag='-Bexport'
11952 no_entry_flag=""
11953 else
11954 # If we're using GNU nm, then we don't want the "-C" option.
11955 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11956 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11957 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11958 else
11959 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11961 aix_use_runtimelinking=no
11963 # Test if we are trying to use run time linking or normal
11964 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11965 # need to do runtime linking.
11966 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11967 for ld_flag in $LDFLAGS; do
11968 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11969 aix_use_runtimelinking=yes
11970 break
11972 done
11973 esac
11975 exp_sym_flag='-bexport'
11976 no_entry_flag='-bnoentry'
11979 # When large executables or shared objects are built, AIX ld can
11980 # have problems creating the table of contents. If linking a library
11981 # or program results in "error TOC overflow" add -mminimal-toc to
11982 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11983 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11985 archive_cmds=''
11986 hardcode_direct=yes
11987 hardcode_libdir_separator=':'
11988 link_all_deplibs=yes
11990 if test "$GCC" = yes; then
11991 case $host_os in aix4.[012]|aix4.[012].*)
11992 # We only want to do this on AIX 4.2 and lower, the check
11993 # below for broken collect2 doesn't work under 4.3+
11994 collect2name=`${CC} -print-prog-name=collect2`
11995 if test -f "$collect2name" && \
11996 strings "$collect2name" | grep resolve_lib_name >/dev/null
11997 then
11998 # We have reworked collect2
11999 hardcode_direct=yes
12000 else
12001 # We have old collect2
12002 hardcode_direct=unsupported
12003 # It fails to find uninstalled libraries when the uninstalled
12004 # path is not listed in the libpath. Setting hardcode_minus_L
12005 # to unsupported forces relinking
12006 hardcode_minus_L=yes
12007 hardcode_libdir_flag_spec='-L$libdir'
12008 hardcode_libdir_separator=
12010 esac
12011 shared_flag='-shared'
12012 if test "$aix_use_runtimelinking" = yes; then
12013 shared_flag="$shared_flag "'${wl}-G'
12015 else
12016 # not using gcc
12017 if test "$host_cpu" = ia64; then
12018 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12019 # chokes on -Wl,-G. The following line is correct:
12020 shared_flag='-G'
12021 else
12022 if test "$aix_use_runtimelinking" = yes; then
12023 shared_flag='${wl}-G'
12024 else
12025 shared_flag='${wl}-bM:SRE'
12030 # It seems that -bexpall does not export symbols beginning with
12031 # underscore (_), so it is better to generate a list of symbols to export.
12032 always_export_symbols=yes
12033 if test "$aix_use_runtimelinking" = yes; then
12034 # Warning - without using the other runtime loading flags (-brtl),
12035 # -berok will link without error, but may produce a broken library.
12036 allow_undefined_flag='-berok'
12037 # Determine the default libpath from the value encoded in an empty executable.
12038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12039 /* end confdefs.h. */
12042 main ()
12046 return 0;
12048 _ACEOF
12049 if ac_fn_c_try_link "$LINENO"; then :
12051 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12053 # Check for a 64-bit object if we didn't find anything.
12054 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12055 }'`; fi
12057 rm -f core conftest.err conftest.$ac_objext \
12058 conftest$ac_exeext conftest.$ac_ext
12059 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12061 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12062 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12063 else
12064 if test "$host_cpu" = ia64; then
12065 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12066 allow_undefined_flag="-z nodefs"
12067 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
12068 else
12069 # Determine the default libpath from the value encoded in an empty executable.
12070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12071 /* end confdefs.h. */
12074 main ()
12078 return 0;
12080 _ACEOF
12081 if ac_fn_c_try_link "$LINENO"; then :
12083 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12085 # Check for a 64-bit object if we didn't find anything.
12086 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12087 }'`; fi
12089 rm -f core conftest.err conftest.$ac_objext \
12090 conftest$ac_exeext conftest.$ac_ext
12091 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12093 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12094 # Warning - without using the other run time loading flags,
12095 # -berok will link without error, but may produce a broken library.
12096 no_undefined_flag=' ${wl}-bernotok'
12097 allow_undefined_flag=' ${wl}-berok'
12098 # -bexpall does not export symbols beginning with underscore (_)
12099 always_export_symbols=yes
12100 # Exported symbols can be pulled into shared objects from archives
12101 whole_archive_flag_spec=' '
12102 archive_cmds_need_lc=yes
12103 # This is similar to how AIX traditionally builds its shared libraries.
12104 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12109 amigaos*)
12110 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12111 hardcode_libdir_flag_spec='-L$libdir'
12112 hardcode_minus_L=yes
12113 # see comment about different semantics on the GNU ld section
12114 ld_shlibs=no
12117 bsdi[45]*)
12118 export_dynamic_flag_spec=-rdynamic
12121 cygwin* | mingw* | pw32*)
12122 # When not using gcc, we currently assume that we are using
12123 # Microsoft Visual C++.
12124 # hardcode_libdir_flag_spec is actually meaningless, as there is
12125 # no search path for DLLs.
12126 hardcode_libdir_flag_spec=' '
12127 allow_undefined_flag=unsupported
12128 # Tell ltmain to make .lib files, not .a files.
12129 libext=lib
12130 # Tell ltmain to make .dll files, not .so files.
12131 shrext_cmds=".dll"
12132 # FIXME: Setting linknames here is a bad hack.
12133 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12134 # The linker will automatically build a .lib file if we build a DLL.
12135 old_archive_From_new_cmds='true'
12136 # FIXME: Should let the user specify the lib program.
12137 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12138 fix_srcfile_path='`cygpath -w "$srcfile"`'
12139 enable_shared_with_static_runtimes=yes
12142 darwin* | rhapsody*)
12143 case $host_os in
12144 rhapsody* | darwin1.[012])
12145 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12147 *) # Darwin 1.3 on
12148 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12149 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12150 else
12151 case ${MACOSX_DEPLOYMENT_TARGET} in
12152 10.[012])
12153 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12155 10.*)
12156 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12158 esac
12161 esac
12162 archive_cmds_need_lc=no
12163 hardcode_direct=no
12164 hardcode_automatic=yes
12165 hardcode_shlibpath_var=unsupported
12166 whole_archive_flag_spec=''
12167 link_all_deplibs=yes
12168 if test "$GCC" = yes ; then
12169 output_verbose_link_cmd='echo'
12170 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12171 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12172 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12173 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12174 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12175 else
12176 case $cc_basename in
12177 xlc*)
12178 output_verbose_link_cmd='echo'
12179 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12180 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12181 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12182 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12183 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12186 ld_shlibs=no
12188 esac
12192 dgux*)
12193 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12194 hardcode_libdir_flag_spec='-L$libdir'
12195 hardcode_shlibpath_var=no
12198 freebsd1*)
12199 ld_shlibs=no
12202 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12203 # support. Future versions do this automatically, but an explicit c++rt0.o
12204 # does not break anything, and helps significantly (at the cost of a little
12205 # extra space).
12206 freebsd2.2*)
12207 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12208 hardcode_libdir_flag_spec='-R$libdir'
12209 hardcode_direct=yes
12210 hardcode_shlibpath_var=no
12213 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12214 freebsd2*)
12215 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12216 hardcode_direct=yes
12217 hardcode_minus_L=yes
12218 hardcode_shlibpath_var=no
12221 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12222 freebsd* | kfreebsd*-gnu | dragonfly*)
12223 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12224 hardcode_libdir_flag_spec='-R$libdir'
12225 hardcode_direct=yes
12226 hardcode_shlibpath_var=no
12229 hpux9*)
12230 if test "$GCC" = yes; then
12231 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12232 else
12233 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12235 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12236 hardcode_libdir_separator=:
12237 hardcode_direct=yes
12239 # hardcode_minus_L: Not really in the search PATH,
12240 # but as the default location of the library.
12241 hardcode_minus_L=yes
12242 export_dynamic_flag_spec='${wl}-E'
12245 hpux10* | hpux11*)
12246 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12247 case $host_cpu in
12248 hppa*64*|ia64*)
12249 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12252 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12254 esac
12255 else
12256 case $host_cpu in
12257 hppa*64*|ia64*)
12258 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12261 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12263 esac
12265 if test "$with_gnu_ld" = no; then
12266 case $host_cpu in
12267 hppa*64*)
12268 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12269 hardcode_libdir_flag_spec_ld='+b $libdir'
12270 hardcode_libdir_separator=:
12271 hardcode_direct=no
12272 hardcode_shlibpath_var=no
12274 ia64*)
12275 hardcode_libdir_flag_spec='-L$libdir'
12276 hardcode_direct=no
12277 hardcode_shlibpath_var=no
12279 # hardcode_minus_L: Not really in the search PATH,
12280 # but as the default location of the library.
12281 hardcode_minus_L=yes
12284 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12285 hardcode_libdir_separator=:
12286 hardcode_direct=yes
12287 export_dynamic_flag_spec='${wl}-E'
12289 # hardcode_minus_L: Not really in the search PATH,
12290 # but as the default location of the library.
12291 hardcode_minus_L=yes
12293 esac
12297 irix5* | irix6* | nonstopux*)
12298 if test "$GCC" = yes; then
12299 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12300 else
12301 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12302 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12304 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12305 hardcode_libdir_separator=:
12306 link_all_deplibs=yes
12309 netbsd*)
12310 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12311 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12312 else
12313 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12315 hardcode_libdir_flag_spec='-R$libdir'
12316 hardcode_direct=yes
12317 hardcode_shlibpath_var=no
12320 newsos6)
12321 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12322 hardcode_direct=yes
12323 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12324 hardcode_libdir_separator=:
12325 hardcode_shlibpath_var=no
12328 openbsd*)
12329 hardcode_direct=yes
12330 hardcode_shlibpath_var=no
12331 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12332 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12333 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12334 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12335 export_dynamic_flag_spec='${wl}-E'
12336 else
12337 case $host_os in
12338 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12339 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12340 hardcode_libdir_flag_spec='-R$libdir'
12343 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12344 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12346 esac
12350 os2*)
12351 hardcode_libdir_flag_spec='-L$libdir'
12352 hardcode_minus_L=yes
12353 allow_undefined_flag=unsupported
12354 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
12355 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12358 osf3*)
12359 if test "$GCC" = yes; then
12360 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12361 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12362 else
12363 allow_undefined_flag=' -expect_unresolved \*'
12364 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12366 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12367 hardcode_libdir_separator=:
12370 osf4* | osf5*) # as osf3* with the addition of -msym flag
12371 if test "$GCC" = yes; then
12372 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12373 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12374 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12375 else
12376 allow_undefined_flag=' -expect_unresolved \*'
12377 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12378 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12379 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
12381 # Both c and cxx compiler support -rpath directly
12382 hardcode_libdir_flag_spec='-rpath $libdir'
12384 hardcode_libdir_separator=:
12387 sco3.2v5*)
12388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12389 hardcode_shlibpath_var=no
12390 export_dynamic_flag_spec='${wl}-Bexport'
12391 runpath_var=LD_RUN_PATH
12392 hardcode_runpath_var=yes
12395 solaris*)
12396 no_undefined_flag=' -z text'
12397 if test "$GCC" = yes; then
12398 wlarc='${wl}'
12399 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12400 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12401 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12402 else
12403 wlarc=''
12404 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12405 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12406 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12408 hardcode_libdir_flag_spec='-R$libdir'
12409 hardcode_shlibpath_var=no
12410 case $host_os in
12411 solaris2.[0-5] | solaris2.[0-5].*) ;;
12413 # The compiler driver will combine linker options so we
12414 # cannot just pass the convience library names through
12415 # without $wl, iff we do not link with $LD.
12416 # Luckily, gcc supports the same syntax we need for Sun Studio.
12417 # Supported since Solaris 2.6 (maybe 2.5.1?)
12418 case $wlarc in
12420 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12422 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
12423 esac ;;
12424 esac
12425 link_all_deplibs=yes
12428 sunos4*)
12429 if test "x$host_vendor" = xsequent; then
12430 # Use $CC to link under sequent, because it throws in some extra .o
12431 # files that make .init and .fini sections work.
12432 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12433 else
12434 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12436 hardcode_libdir_flag_spec='-L$libdir'
12437 hardcode_direct=yes
12438 hardcode_minus_L=yes
12439 hardcode_shlibpath_var=no
12442 sysv4)
12443 case $host_vendor in
12444 sni)
12445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12446 hardcode_direct=yes # is this really true???
12448 siemens)
12449 ## LD is ld it makes a PLAMLIB
12450 ## CC just makes a GrossModule.
12451 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12452 reload_cmds='$CC -r -o $output$reload_objs'
12453 hardcode_direct=no
12455 motorola)
12456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12457 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12459 esac
12460 runpath_var='LD_RUN_PATH'
12461 hardcode_shlibpath_var=no
12464 sysv4.3*)
12465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12466 hardcode_shlibpath_var=no
12467 export_dynamic_flag_spec='-Bexport'
12470 sysv4*MP*)
12471 if test -d /usr/nec; then
12472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12473 hardcode_shlibpath_var=no
12474 runpath_var=LD_RUN_PATH
12475 hardcode_runpath_var=yes
12476 ld_shlibs=yes
12480 sysv4.2uw2*)
12481 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12482 hardcode_direct=yes
12483 hardcode_minus_L=no
12484 hardcode_shlibpath_var=no
12485 hardcode_runpath_var=yes
12486 runpath_var=LD_RUN_PATH
12489 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12490 no_undefined_flag='${wl}-z ${wl}text'
12491 if test "$GCC" = yes; then
12492 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12493 else
12494 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12496 runpath_var='LD_RUN_PATH'
12497 hardcode_shlibpath_var=no
12500 sysv5*)
12501 no_undefined_flag=' -z text'
12502 # $CC -shared without GNU ld will not create a library from C++
12503 # object files and a static libstdc++, better avoid it by now
12504 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12505 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12506 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12507 hardcode_libdir_flag_spec=
12508 hardcode_shlibpath_var=no
12509 runpath_var='LD_RUN_PATH'
12512 uts4*)
12513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12514 hardcode_libdir_flag_spec='-L$libdir'
12515 hardcode_shlibpath_var=no
12519 ld_shlibs=no
12521 esac
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12525 $as_echo "$ld_shlibs" >&6; }
12526 test "$ld_shlibs" = no && can_build_shared=no
12528 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12529 if test "$GCC" = yes; then
12530 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12534 # Do we need to explicitly link libc?
12536 case "x$archive_cmds_need_lc" in
12537 x|xyes)
12538 # Assume -lc should be added
12539 archive_cmds_need_lc=yes
12541 if test "$enable_shared" = yes && test "$GCC" = yes; then
12542 case $archive_cmds in
12543 *'~'*)
12544 # FIXME: we may have to deal with multi-command sequences.
12546 '$CC '*)
12547 # Test whether the compiler implicitly links with -lc since on some
12548 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12549 # to ld, don't add -lc before -lgcc.
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12551 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12552 $rm conftest*
12553 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12556 (eval $ac_compile) 2>&5
12557 ac_status=$?
12558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12559 test $ac_status = 0; } 2>conftest.err; then
12560 soname=conftest
12561 lib=conftest
12562 libobjs=conftest.$ac_objext
12563 deplibs=
12564 wl=$lt_prog_compiler_wl
12565 compiler_flags=-v
12566 linker_flags=-v
12567 verstring=
12568 output_objdir=.
12569 libname=conftest
12570 lt_save_allow_undefined_flag=$allow_undefined_flag
12571 allow_undefined_flag=
12572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12573 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12574 ac_status=$?
12575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12576 test $ac_status = 0; }
12577 then
12578 archive_cmds_need_lc=no
12579 else
12580 archive_cmds_need_lc=yes
12582 allow_undefined_flag=$lt_save_allow_undefined_flag
12583 else
12584 cat conftest.err 1>&5
12586 $rm conftest*
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
12588 $as_echo "$archive_cmds_need_lc" >&6; }
12590 esac
12593 esac
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12596 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12597 library_names_spec=
12598 libname_spec='lib$name'
12599 soname_spec=
12600 shrext_cmds=".so"
12601 postinstall_cmds=
12602 postuninstall_cmds=
12603 finish_cmds=
12604 finish_eval=
12605 shlibpath_var=
12606 shlibpath_overrides_runpath=unknown
12607 version_type=none
12608 dynamic_linker="$host_os ld.so"
12609 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12610 if test "$GCC" = yes; then
12611 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12612 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12613 # if the path contains ";" then we assume it to be the separator
12614 # otherwise default to the standard path separator (i.e. ":") - it is
12615 # assumed that no part of a normal pathname contains ";" but that should
12616 # okay in the real world where ";" in dirpaths is itself problematic.
12617 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12618 else
12619 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12621 else
12622 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12624 need_lib_prefix=unknown
12625 hardcode_into_libs=no
12627 # when you set need_version to no, make sure it does not cause -set_version
12628 # flags to be left without arguments
12629 need_version=unknown
12631 case $host_os in
12632 aix3*)
12633 version_type=linux
12634 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12635 shlibpath_var=LIBPATH
12637 # AIX 3 has no versioning support, so we append a major version to the name.
12638 soname_spec='${libname}${release}${shared_ext}$major'
12641 aix4* | aix5*)
12642 version_type=linux
12643 need_lib_prefix=no
12644 need_version=no
12645 hardcode_into_libs=yes
12646 if test "$host_cpu" = ia64; then
12647 # AIX 5 supports IA64
12648 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12649 shlibpath_var=LD_LIBRARY_PATH
12650 else
12651 # With GCC up to 2.95.x, collect2 would create an import file
12652 # for dependence libraries. The import file would start with
12653 # the line `#! .'. This would cause the generated library to
12654 # depend on `.', always an invalid library. This was fixed in
12655 # development snapshots of GCC prior to 3.0.
12656 case $host_os in
12657 aix4 | aix4.[01] | aix4.[01].*)
12658 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12659 echo ' yes '
12660 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12662 else
12663 can_build_shared=no
12666 esac
12667 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12668 # soname into executable. Probably we can add versioning support to
12669 # collect2, so additional links can be useful in future.
12670 if test "$aix_use_runtimelinking" = yes; then
12671 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12672 # instead of lib<name>.a to let people know that these are not
12673 # typical AIX shared libraries.
12674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12675 else
12676 # We preserve .a as extension for shared libraries through AIX4.2
12677 # and later when we are not doing run time linking.
12678 library_names_spec='${libname}${release}.a $libname.a'
12679 soname_spec='${libname}${release}${shared_ext}$major'
12681 shlibpath_var=LIBPATH
12685 amigaos*)
12686 library_names_spec='$libname.ixlibrary $libname.a'
12687 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12688 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12691 beos*)
12692 library_names_spec='${libname}${shared_ext}'
12693 dynamic_linker="$host_os ld.so"
12694 shlibpath_var=LIBRARY_PATH
12697 bsdi[45]*)
12698 version_type=linux
12699 need_version=no
12700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12701 soname_spec='${libname}${release}${shared_ext}$major'
12702 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12703 shlibpath_var=LD_LIBRARY_PATH
12704 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12705 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12706 # the default ld.so.conf also contains /usr/contrib/lib and
12707 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12708 # libtool to hard-code these into programs
12711 cygwin* | mingw* | pw32*)
12712 version_type=windows
12713 shrext_cmds=".dll"
12714 need_version=no
12715 need_lib_prefix=no
12717 case $GCC,$host_os in
12718 yes,cygwin* | yes,mingw* | yes,pw32*)
12719 library_names_spec='$libname.dll.a'
12720 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12721 postinstall_cmds='base_file=`basename \${file}`~
12722 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12723 dldir=$destdir/`dirname \$dlpath`~
12724 test -d \$dldir || mkdir -p \$dldir~
12725 $install_prog $dir/$dlname \$dldir/$dlname~
12726 chmod a+x \$dldir/$dlname'
12727 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12728 dlpath=$dir/\$dldll~
12729 $rm \$dlpath'
12730 shlibpath_overrides_runpath=yes
12732 case $host_os in
12733 cygwin*)
12734 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12735 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12736 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12738 mingw*)
12739 # MinGW DLLs use traditional 'lib' prefix
12740 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12741 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12742 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12743 # It is most probably a Windows format PATH printed by
12744 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12745 # path with ; separators, and with drive letters. We can handle the
12746 # drive letters (cygwin fileutils understands them), so leave them,
12747 # especially as we might pass files found there to a mingw objdump,
12748 # which wouldn't understand a cygwinified path. Ahh.
12749 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12750 else
12751 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12754 pw32*)
12755 # pw32 DLLs use 'pw' prefix rather than 'lib'
12756 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12758 esac
12762 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12764 esac
12765 dynamic_linker='Win32 ld.exe'
12766 # FIXME: first we should search . and the directory the executable is in
12767 shlibpath_var=PATH
12770 darwin* | rhapsody*)
12771 dynamic_linker="$host_os dyld"
12772 version_type=darwin
12773 need_lib_prefix=no
12774 need_version=no
12775 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12776 soname_spec='${libname}${release}${major}$shared_ext'
12777 shlibpath_overrides_runpath=yes
12778 shlibpath_var=DYLD_LIBRARY_PATH
12779 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12780 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12781 if test "$GCC" = yes; then
12782 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12783 else
12784 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12786 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12789 dgux*)
12790 version_type=linux
12791 need_lib_prefix=no
12792 need_version=no
12793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12794 soname_spec='${libname}${release}${shared_ext}$major'
12795 shlibpath_var=LD_LIBRARY_PATH
12798 freebsd1*)
12799 dynamic_linker=no
12802 kfreebsd*-gnu)
12803 version_type=linux
12804 need_lib_prefix=no
12805 need_version=no
12806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12807 soname_spec='${libname}${release}${shared_ext}$major'
12808 shlibpath_var=LD_LIBRARY_PATH
12809 shlibpath_overrides_runpath=no
12810 hardcode_into_libs=yes
12811 dynamic_linker='GNU ld.so'
12814 freebsd* | dragonfly*)
12815 # DragonFly does not have aout. When/if they implement a new
12816 # versioning mechanism, adjust this.
12817 if test -x /usr/bin/objformat; then
12818 objformat=`/usr/bin/objformat`
12819 else
12820 case $host_os in
12821 freebsd[123]*) objformat=aout ;;
12822 *) objformat=elf ;;
12823 esac
12825 version_type=freebsd-$objformat
12826 case $version_type in
12827 freebsd-elf*)
12828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12829 need_version=no
12830 need_lib_prefix=no
12832 freebsd-*)
12833 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12834 need_version=yes
12836 esac
12837 shlibpath_var=LD_LIBRARY_PATH
12838 case $host_os in
12839 freebsd2*)
12840 shlibpath_overrides_runpath=yes
12842 freebsd3.[01]* | freebsdelf3.[01]*)
12843 shlibpath_overrides_runpath=yes
12844 hardcode_into_libs=yes
12846 *) # from 3.2 on
12847 shlibpath_overrides_runpath=no
12848 hardcode_into_libs=yes
12850 esac
12853 gnu*)
12854 version_type=linux
12855 need_lib_prefix=no
12856 need_version=no
12857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12858 soname_spec='${libname}${release}${shared_ext}$major'
12859 shlibpath_var=LD_LIBRARY_PATH
12860 hardcode_into_libs=yes
12863 hpux9* | hpux10* | hpux11*)
12864 # Give a soname corresponding to the major version so that dld.sl refuses to
12865 # link against other versions.
12866 version_type=sunos
12867 need_lib_prefix=no
12868 need_version=no
12869 case $host_cpu in
12870 ia64*)
12871 shrext_cmds='.so'
12872 hardcode_into_libs=yes
12873 dynamic_linker="$host_os dld.so"
12874 shlibpath_var=LD_LIBRARY_PATH
12875 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12877 soname_spec='${libname}${release}${shared_ext}$major'
12878 if test "X$HPUX_IA64_MODE" = X32; then
12879 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12880 else
12881 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12883 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12885 hppa*64*)
12886 shrext_cmds='.sl'
12887 hardcode_into_libs=yes
12888 dynamic_linker="$host_os dld.sl"
12889 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12890 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12892 soname_spec='${libname}${release}${shared_ext}$major'
12893 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12894 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12897 shrext_cmds='.sl'
12898 dynamic_linker="$host_os dld.sl"
12899 shlibpath_var=SHLIB_PATH
12900 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12902 soname_spec='${libname}${release}${shared_ext}$major'
12904 esac
12905 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12906 postinstall_cmds='chmod 555 $lib'
12909 irix5* | irix6* | nonstopux*)
12910 case $host_os in
12911 nonstopux*) version_type=nonstopux ;;
12913 if test "$lt_cv_prog_gnu_ld" = yes; then
12914 version_type=linux
12915 else
12916 version_type=irix
12917 fi ;;
12918 esac
12919 need_lib_prefix=no
12920 need_version=no
12921 soname_spec='${libname}${release}${shared_ext}$major'
12922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12923 case $host_os in
12924 irix5* | nonstopux*)
12925 libsuff= shlibsuff=
12928 case $LD in # libtool.m4 will add one of these switches to LD
12929 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12930 libsuff= shlibsuff= libmagic=32-bit;;
12931 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12932 libsuff=32 shlibsuff=N32 libmagic=N32;;
12933 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12934 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12935 *) libsuff= shlibsuff= libmagic=never-match;;
12936 esac
12938 esac
12939 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12940 shlibpath_overrides_runpath=no
12941 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12942 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12943 hardcode_into_libs=yes
12946 # No shared lib support for Linux oldld, aout, or coff.
12947 linux*oldld* | linux*aout* | linux*coff*)
12948 dynamic_linker=no
12951 # This must be Linux ELF.
12952 linux*)
12953 version_type=linux
12954 need_lib_prefix=no
12955 need_version=no
12956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12957 soname_spec='${libname}${release}${shared_ext}$major'
12958 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12959 shlibpath_var=LD_LIBRARY_PATH
12960 shlibpath_overrides_runpath=no
12961 # This implies no fast_install, which is unacceptable.
12962 # Some rework will be needed to allow for fast_install
12963 # before this can be enabled.
12964 hardcode_into_libs=yes
12966 # Append ld.so.conf contents to the search path
12967 if test -f /etc/ld.so.conf; then
12968 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12969 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12972 # We used to test for /lib/ld.so.1 and disable shared libraries on
12973 # powerpc, because MkLinux only supported shared libraries with the
12974 # GNU dynamic linker. Since this was broken with cross compilers,
12975 # most powerpc-linux boxes support dynamic linking these days and
12976 # people can always --disable-shared, the test was removed, and we
12977 # assume the GNU/Linux dynamic linker is in use.
12978 dynamic_linker='GNU/Linux ld.so'
12981 knetbsd*-gnu)
12982 version_type=linux
12983 need_lib_prefix=no
12984 need_version=no
12985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12986 soname_spec='${libname}${release}${shared_ext}$major'
12987 shlibpath_var=LD_LIBRARY_PATH
12988 shlibpath_overrides_runpath=no
12989 hardcode_into_libs=yes
12990 dynamic_linker='GNU ld.so'
12993 netbsd*)
12994 version_type=sunos
12995 need_lib_prefix=no
12996 need_version=no
12997 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12999 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13000 dynamic_linker='NetBSD (a.out) ld.so'
13001 else
13002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13003 soname_spec='${libname}${release}${shared_ext}$major'
13004 dynamic_linker='NetBSD ld.elf_so'
13006 shlibpath_var=LD_LIBRARY_PATH
13007 shlibpath_overrides_runpath=yes
13008 hardcode_into_libs=yes
13011 newsos6)
13012 version_type=linux
13013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13014 shlibpath_var=LD_LIBRARY_PATH
13015 shlibpath_overrides_runpath=yes
13018 nto-qnx*)
13019 version_type=linux
13020 need_lib_prefix=no
13021 need_version=no
13022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13023 soname_spec='${libname}${release}${shared_ext}$major'
13024 shlibpath_var=LD_LIBRARY_PATH
13025 shlibpath_overrides_runpath=yes
13028 openbsd*)
13029 version_type=sunos
13030 need_lib_prefix=no
13031 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13032 case $host_os in
13033 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13034 *) need_version=no ;;
13035 esac
13036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13038 shlibpath_var=LD_LIBRARY_PATH
13039 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13040 case $host_os in
13041 openbsd2.[89] | openbsd2.[89].*)
13042 shlibpath_overrides_runpath=no
13045 shlibpath_overrides_runpath=yes
13047 esac
13048 else
13049 shlibpath_overrides_runpath=yes
13053 os2*)
13054 libname_spec='$name'
13055 shrext_cmds=".dll"
13056 need_lib_prefix=no
13057 library_names_spec='$libname${shared_ext} $libname.a'
13058 dynamic_linker='OS/2 ld.exe'
13059 shlibpath_var=LIBPATH
13062 osf3* | osf4* | osf5*)
13063 version_type=osf
13064 need_lib_prefix=no
13065 need_version=no
13066 soname_spec='${libname}${release}${shared_ext}$major'
13067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13068 shlibpath_var=LD_LIBRARY_PATH
13069 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13070 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13073 sco3.2v5*)
13074 version_type=osf
13075 soname_spec='${libname}${release}${shared_ext}$major'
13076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13077 shlibpath_var=LD_LIBRARY_PATH
13080 solaris*)
13081 version_type=linux
13082 need_lib_prefix=no
13083 need_version=no
13084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13085 soname_spec='${libname}${release}${shared_ext}$major'
13086 shlibpath_var=LD_LIBRARY_PATH
13087 shlibpath_overrides_runpath=yes
13088 hardcode_into_libs=yes
13089 # ldd complains unless libraries are executable
13090 postinstall_cmds='chmod +x $lib'
13093 sunos4*)
13094 version_type=sunos
13095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13096 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13097 shlibpath_var=LD_LIBRARY_PATH
13098 shlibpath_overrides_runpath=yes
13099 if test "$with_gnu_ld" = yes; then
13100 need_lib_prefix=no
13102 need_version=yes
13105 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13106 version_type=linux
13107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13108 soname_spec='${libname}${release}${shared_ext}$major'
13109 shlibpath_var=LD_LIBRARY_PATH
13110 case $host_vendor in
13111 sni)
13112 shlibpath_overrides_runpath=no
13113 need_lib_prefix=no
13114 export_dynamic_flag_spec='${wl}-Blargedynsym'
13115 runpath_var=LD_RUN_PATH
13117 siemens)
13118 need_lib_prefix=no
13120 motorola)
13121 need_lib_prefix=no
13122 need_version=no
13123 shlibpath_overrides_runpath=no
13124 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13126 esac
13129 sysv4*MP*)
13130 if test -d /usr/nec ;then
13131 version_type=linux
13132 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13133 soname_spec='$libname${shared_ext}.$major'
13134 shlibpath_var=LD_LIBRARY_PATH
13138 uts4*)
13139 version_type=linux
13140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13141 soname_spec='${libname}${release}${shared_ext}$major'
13142 shlibpath_var=LD_LIBRARY_PATH
13146 dynamic_linker=no
13148 esac
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13150 $as_echo "$dynamic_linker" >&6; }
13151 test "$dynamic_linker" = no && can_build_shared=no
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13154 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13155 hardcode_action=
13156 if test -n "$hardcode_libdir_flag_spec" || \
13157 test -n "$runpath_var" || \
13158 test "X$hardcode_automatic" = "Xyes" ; then
13160 # We can hardcode non-existant directories.
13161 if test "$hardcode_direct" != no &&
13162 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13163 # have to relink, otherwise we might link with an installed library
13164 # when we should be linking with a yet-to-be-installed one
13165 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13166 test "$hardcode_minus_L" != no; then
13167 # Linking always hardcodes the temporary library directory.
13168 hardcode_action=relink
13169 else
13170 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13171 hardcode_action=immediate
13173 else
13174 # We cannot hardcode anything, or else we can only hardcode existing
13175 # directories.
13176 hardcode_action=unsupported
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13179 $as_echo "$hardcode_action" >&6; }
13181 if test "$hardcode_action" = relink; then
13182 # Fast installation is not supported
13183 enable_fast_install=no
13184 elif test "$shlibpath_overrides_runpath" = yes ||
13185 test "$enable_shared" = no; then
13186 # Fast installation is not necessary
13187 enable_fast_install=needless
13190 striplib=
13191 old_striplib=
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13193 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13194 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13195 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13196 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13198 $as_echo "yes" >&6; }
13199 else
13200 # FIXME - insert some real tests, host_os isn't really good enough
13201 case $host_os in
13202 darwin*)
13203 if test -n "$STRIP" ; then
13204 striplib="$STRIP -x"
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13206 $as_echo "yes" >&6; }
13207 else
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13209 $as_echo "no" >&6; }
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13214 $as_echo "no" >&6; }
13216 esac
13219 if test "x$enable_dlopen" != xyes; then
13220 enable_dlopen=unknown
13221 enable_dlopen_self=unknown
13222 enable_dlopen_self_static=unknown
13223 else
13224 lt_cv_dlopen=no
13225 lt_cv_dlopen_libs=
13227 case $host_os in
13228 beos*)
13229 lt_cv_dlopen="load_add_on"
13230 lt_cv_dlopen_libs=
13231 lt_cv_dlopen_self=yes
13234 mingw* | pw32*)
13235 lt_cv_dlopen="LoadLibrary"
13236 lt_cv_dlopen_libs=
13239 cygwin*)
13240 lt_cv_dlopen="dlopen"
13241 lt_cv_dlopen_libs=
13244 darwin*)
13245 # if libdl is installed we need to link against it
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13247 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13248 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13249 $as_echo_n "(cached) " >&6
13250 else
13251 ac_check_lib_save_LIBS=$LIBS
13252 LIBS="-ldl $LIBS"
13253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13254 /* end confdefs.h. */
13256 /* Override any GCC internal prototype to avoid an error.
13257 Use char because int might match the return type of a GCC
13258 builtin and then its argument prototype would still apply. */
13259 #ifdef __cplusplus
13260 extern "C"
13261 #endif
13262 char dlopen ();
13264 main ()
13266 return dlopen ();
13268 return 0;
13270 _ACEOF
13271 if ac_fn_c_try_link "$LINENO"; then :
13272 ac_cv_lib_dl_dlopen=yes
13273 else
13274 ac_cv_lib_dl_dlopen=no
13276 rm -f core conftest.err conftest.$ac_objext \
13277 conftest$ac_exeext conftest.$ac_ext
13278 LIBS=$ac_check_lib_save_LIBS
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13281 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13282 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13283 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13284 else
13286 lt_cv_dlopen="dyld"
13287 lt_cv_dlopen_libs=
13288 lt_cv_dlopen_self=yes
13295 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13296 if test "x$ac_cv_func_shl_load" = x""yes; then :
13297 lt_cv_dlopen="shl_load"
13298 else
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13300 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13301 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13302 $as_echo_n "(cached) " >&6
13303 else
13304 ac_check_lib_save_LIBS=$LIBS
13305 LIBS="-ldld $LIBS"
13306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13307 /* end confdefs.h. */
13309 /* Override any GCC internal prototype to avoid an error.
13310 Use char because int might match the return type of a GCC
13311 builtin and then its argument prototype would still apply. */
13312 #ifdef __cplusplus
13313 extern "C"
13314 #endif
13315 char shl_load ();
13317 main ()
13319 return shl_load ();
13321 return 0;
13323 _ACEOF
13324 if ac_fn_c_try_link "$LINENO"; then :
13325 ac_cv_lib_dld_shl_load=yes
13326 else
13327 ac_cv_lib_dld_shl_load=no
13329 rm -f core conftest.err conftest.$ac_objext \
13330 conftest$ac_exeext conftest.$ac_ext
13331 LIBS=$ac_check_lib_save_LIBS
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13334 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13335 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13336 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13337 else
13338 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13339 if test "x$ac_cv_func_dlopen" = x""yes; then :
13340 lt_cv_dlopen="dlopen"
13341 else
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13343 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13344 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13345 $as_echo_n "(cached) " >&6
13346 else
13347 ac_check_lib_save_LIBS=$LIBS
13348 LIBS="-ldl $LIBS"
13349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13350 /* end confdefs.h. */
13352 /* Override any GCC internal prototype to avoid an error.
13353 Use char because int might match the return type of a GCC
13354 builtin and then its argument prototype would still apply. */
13355 #ifdef __cplusplus
13356 extern "C"
13357 #endif
13358 char dlopen ();
13360 main ()
13362 return dlopen ();
13364 return 0;
13366 _ACEOF
13367 if ac_fn_c_try_link "$LINENO"; then :
13368 ac_cv_lib_dl_dlopen=yes
13369 else
13370 ac_cv_lib_dl_dlopen=no
13372 rm -f core conftest.err conftest.$ac_objext \
13373 conftest$ac_exeext conftest.$ac_ext
13374 LIBS=$ac_check_lib_save_LIBS
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13377 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13378 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13379 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13380 else
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13382 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13383 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13384 $as_echo_n "(cached) " >&6
13385 else
13386 ac_check_lib_save_LIBS=$LIBS
13387 LIBS="-lsvld $LIBS"
13388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13389 /* end confdefs.h. */
13391 /* Override any GCC internal prototype to avoid an error.
13392 Use char because int might match the return type of a GCC
13393 builtin and then its argument prototype would still apply. */
13394 #ifdef __cplusplus
13395 extern "C"
13396 #endif
13397 char dlopen ();
13399 main ()
13401 return dlopen ();
13403 return 0;
13405 _ACEOF
13406 if ac_fn_c_try_link "$LINENO"; then :
13407 ac_cv_lib_svld_dlopen=yes
13408 else
13409 ac_cv_lib_svld_dlopen=no
13411 rm -f core conftest.err conftest.$ac_objext \
13412 conftest$ac_exeext conftest.$ac_ext
13413 LIBS=$ac_check_lib_save_LIBS
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13416 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13417 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13418 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13419 else
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13421 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13422 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13423 $as_echo_n "(cached) " >&6
13424 else
13425 ac_check_lib_save_LIBS=$LIBS
13426 LIBS="-ldld $LIBS"
13427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13428 /* end confdefs.h. */
13430 /* Override any GCC internal prototype to avoid an error.
13431 Use char because int might match the return type of a GCC
13432 builtin and then its argument prototype would still apply. */
13433 #ifdef __cplusplus
13434 extern "C"
13435 #endif
13436 char dld_link ();
13438 main ()
13440 return dld_link ();
13442 return 0;
13444 _ACEOF
13445 if ac_fn_c_try_link "$LINENO"; then :
13446 ac_cv_lib_dld_dld_link=yes
13447 else
13448 ac_cv_lib_dld_dld_link=no
13450 rm -f core conftest.err conftest.$ac_objext \
13451 conftest$ac_exeext conftest.$ac_ext
13452 LIBS=$ac_check_lib_save_LIBS
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13455 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13456 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13457 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13476 esac
13478 if test "x$lt_cv_dlopen" != xno; then
13479 enable_dlopen=yes
13480 else
13481 enable_dlopen=no
13484 case $lt_cv_dlopen in
13485 dlopen)
13486 save_CPPFLAGS="$CPPFLAGS"
13487 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13489 save_LDFLAGS="$LDFLAGS"
13490 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13492 save_LIBS="$LIBS"
13493 LIBS="$lt_cv_dlopen_libs $LIBS"
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13496 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13497 if test "${lt_cv_dlopen_self+set}" = set; then :
13498 $as_echo_n "(cached) " >&6
13499 else
13500 if test "$cross_compiling" = yes; then :
13501 lt_cv_dlopen_self=cross
13502 else
13503 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13504 lt_status=$lt_dlunknown
13505 cat > conftest.$ac_ext <<EOF
13506 #line 13506 "configure"
13507 #include "confdefs.h"
13509 #if HAVE_DLFCN_H
13510 #include <dlfcn.h>
13511 #endif
13513 #include <stdio.h>
13515 #ifdef RTLD_GLOBAL
13516 # define LT_DLGLOBAL RTLD_GLOBAL
13517 #else
13518 # ifdef DL_GLOBAL
13519 # define LT_DLGLOBAL DL_GLOBAL
13520 # else
13521 # define LT_DLGLOBAL 0
13522 # endif
13523 #endif
13525 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13526 find out it does not work in some platform. */
13527 #ifndef LT_DLLAZY_OR_NOW
13528 # ifdef RTLD_LAZY
13529 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13530 # else
13531 # ifdef DL_LAZY
13532 # define LT_DLLAZY_OR_NOW DL_LAZY
13533 # else
13534 # ifdef RTLD_NOW
13535 # define LT_DLLAZY_OR_NOW RTLD_NOW
13536 # else
13537 # ifdef DL_NOW
13538 # define LT_DLLAZY_OR_NOW DL_NOW
13539 # else
13540 # define LT_DLLAZY_OR_NOW 0
13541 # endif
13542 # endif
13543 # endif
13544 # endif
13545 #endif
13547 #ifdef __cplusplus
13548 extern "C" void exit (int);
13549 #endif
13551 void fnord() { int i=42;}
13552 int main ()
13554 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13555 int status = $lt_dlunknown;
13557 if (self)
13559 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13560 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13561 /* dlclose (self); */
13564 exit (status);
13567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13568 (eval $ac_link) 2>&5
13569 ac_status=$?
13570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13571 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13572 (./conftest; exit; ) >&5 2>/dev/null
13573 lt_status=$?
13574 case x$lt_status in
13575 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13576 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13577 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13578 esac
13579 else :
13580 # compilation failed
13581 lt_cv_dlopen_self=no
13584 rm -fr conftest*
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13589 $as_echo "$lt_cv_dlopen_self" >&6; }
13591 if test "x$lt_cv_dlopen_self" = xyes; then
13592 LDFLAGS="$LDFLAGS $link_static_flag"
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13594 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13595 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13596 $as_echo_n "(cached) " >&6
13597 else
13598 if test "$cross_compiling" = yes; then :
13599 lt_cv_dlopen_self_static=cross
13600 else
13601 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13602 lt_status=$lt_dlunknown
13603 cat > conftest.$ac_ext <<EOF
13604 #line 13604 "configure"
13605 #include "confdefs.h"
13607 #if HAVE_DLFCN_H
13608 #include <dlfcn.h>
13609 #endif
13611 #include <stdio.h>
13613 #ifdef RTLD_GLOBAL
13614 # define LT_DLGLOBAL RTLD_GLOBAL
13615 #else
13616 # ifdef DL_GLOBAL
13617 # define LT_DLGLOBAL DL_GLOBAL
13618 # else
13619 # define LT_DLGLOBAL 0
13620 # endif
13621 #endif
13623 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13624 find out it does not work in some platform. */
13625 #ifndef LT_DLLAZY_OR_NOW
13626 # ifdef RTLD_LAZY
13627 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13628 # else
13629 # ifdef DL_LAZY
13630 # define LT_DLLAZY_OR_NOW DL_LAZY
13631 # else
13632 # ifdef RTLD_NOW
13633 # define LT_DLLAZY_OR_NOW RTLD_NOW
13634 # else
13635 # ifdef DL_NOW
13636 # define LT_DLLAZY_OR_NOW DL_NOW
13637 # else
13638 # define LT_DLLAZY_OR_NOW 0
13639 # endif
13640 # endif
13641 # endif
13642 # endif
13643 #endif
13645 #ifdef __cplusplus
13646 extern "C" void exit (int);
13647 #endif
13649 void fnord() { int i=42;}
13650 int main ()
13652 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13653 int status = $lt_dlunknown;
13655 if (self)
13657 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13658 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13659 /* dlclose (self); */
13662 exit (status);
13665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13666 (eval $ac_link) 2>&5
13667 ac_status=$?
13668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13669 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13670 (./conftest; exit; ) >&5 2>/dev/null
13671 lt_status=$?
13672 case x$lt_status in
13673 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13674 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13675 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13676 esac
13677 else :
13678 # compilation failed
13679 lt_cv_dlopen_self_static=no
13682 rm -fr conftest*
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13687 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13690 CPPFLAGS="$save_CPPFLAGS"
13691 LDFLAGS="$save_LDFLAGS"
13692 LIBS="$save_LIBS"
13694 esac
13696 case $lt_cv_dlopen_self in
13697 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13698 *) enable_dlopen_self=unknown ;;
13699 esac
13701 case $lt_cv_dlopen_self_static in
13702 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13703 *) enable_dlopen_self_static=unknown ;;
13704 esac
13708 # Report which librarie types wil actually be built
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13710 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13712 $as_echo "$can_build_shared" >&6; }
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13715 $as_echo_n "checking whether to build shared libraries... " >&6; }
13716 test "$can_build_shared" = "no" && enable_shared=no
13718 # On AIX, shared libraries and static libraries use the same namespace, and
13719 # are all built from PIC.
13720 case $host_os in
13721 aix3*)
13722 test "$enable_shared" = yes && enable_static=no
13723 if test -n "$RANLIB"; then
13724 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13725 postinstall_cmds='$RANLIB $lib'
13729 aix4* | aix5*)
13730 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13731 test "$enable_shared" = yes && enable_static=no
13734 esac
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13736 $as_echo "$enable_shared" >&6; }
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13739 $as_echo_n "checking whether to build static libraries... " >&6; }
13740 # Make sure either enable_shared or enable_static is yes.
13741 test "$enable_shared" = yes || enable_static=yes
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13743 $as_echo "$enable_static" >&6; }
13745 # The else clause should only fire when bootstrapping the
13746 # libtool distribution, otherwise you forgot to ship ltmain.sh
13747 # with your package, and you will get complaints that there are
13748 # no rules to generate ltmain.sh.
13749 if test -f "$ltmain"; then
13750 # See if we are running on zsh, and set the options which allow our commands through
13751 # without removal of \ escapes.
13752 if test -n "${ZSH_VERSION+set}" ; then
13753 setopt NO_GLOB_SUBST
13755 # Now quote all the things that may contain metacharacters while being
13756 # careful not to overquote the AC_SUBSTed values. We take copies of the
13757 # variables and quote the copies for generation of the libtool script.
13758 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13759 SED SHELL STRIP \
13760 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13761 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13762 deplibs_check_method reload_flag reload_cmds need_locks \
13763 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13764 lt_cv_sys_global_symbol_to_c_name_address \
13765 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13766 old_postinstall_cmds old_postuninstall_cmds \
13767 compiler \
13768 CC \
13769 LD \
13770 lt_prog_compiler_wl \
13771 lt_prog_compiler_pic \
13772 lt_prog_compiler_static \
13773 lt_prog_compiler_no_builtin_flag \
13774 export_dynamic_flag_spec \
13775 thread_safe_flag_spec \
13776 whole_archive_flag_spec \
13777 enable_shared_with_static_runtimes \
13778 old_archive_cmds \
13779 old_archive_from_new_cmds \
13780 predep_objects \
13781 postdep_objects \
13782 predeps \
13783 postdeps \
13784 compiler_lib_search_path \
13785 archive_cmds \
13786 archive_expsym_cmds \
13787 postinstall_cmds \
13788 postuninstall_cmds \
13789 old_archive_from_expsyms_cmds \
13790 allow_undefined_flag \
13791 no_undefined_flag \
13792 export_symbols_cmds \
13793 hardcode_libdir_flag_spec \
13794 hardcode_libdir_flag_spec_ld \
13795 hardcode_libdir_separator \
13796 hardcode_automatic \
13797 module_cmds \
13798 module_expsym_cmds \
13799 lt_cv_prog_compiler_c_o \
13800 exclude_expsyms \
13801 include_expsyms; do
13803 case $var in
13804 old_archive_cmds | \
13805 old_archive_from_new_cmds | \
13806 archive_cmds | \
13807 archive_expsym_cmds | \
13808 module_cmds | \
13809 module_expsym_cmds | \
13810 old_archive_from_expsyms_cmds | \
13811 export_symbols_cmds | \
13812 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13813 postinstall_cmds | postuninstall_cmds | \
13814 old_postinstall_cmds | old_postuninstall_cmds | \
13815 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13816 # Double-quote double-evaled strings.
13817 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13820 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13822 esac
13823 done
13825 case $lt_echo in
13826 *'\$0 --fallback-echo"')
13827 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13829 esac
13831 cfgfile="${ofile}T"
13832 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
13833 $rm -f "$cfgfile"
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
13835 $as_echo "$as_me: creating $ofile" >&6;}
13837 cat <<__EOF__ >> "$cfgfile"
13838 #! $SHELL
13840 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13841 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
13842 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13844 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
13845 # Free Software Foundation, Inc.
13847 # This file is part of GNU Libtool:
13848 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13850 # This program is free software; you can redistribute it and/or modify
13851 # it under the terms of the GNU General Public License as published by
13852 # the Free Software Foundation; either version 2 of the License, or
13853 # (at your option) any later version.
13855 # This program is distributed in the hope that it will be useful, but
13856 # WITHOUT ANY WARRANTY; without even the implied warranty of
13857 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13858 # General Public License for more details.
13860 # You should have received a copy of the GNU General Public License
13861 # along with this program; if not, write to the Free Software
13862 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13864 # As a special exception to the GNU General Public License, if you
13865 # distribute this file as part of a program that contains a
13866 # configuration script generated by Autoconf, you may include it under
13867 # the same distribution terms that you use for the rest of that program.
13869 # A sed program that does not truncate output.
13870 SED=$lt_SED
13872 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13873 Xsed="$SED -e 1s/^X//"
13875 # The HP-UX ksh and POSIX shell print the target directory to stdout
13876 # if CDPATH is set.
13877 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13879 # The names of the tagged configurations supported by this script.
13880 available_tags=
13882 # ### BEGIN LIBTOOL CONFIG
13884 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13886 # Shell to use when invoking shell scripts.
13887 SHELL=$lt_SHELL
13889 # Whether or not to build shared libraries.
13890 build_libtool_libs=$enable_shared
13892 # Whether or not to build static libraries.
13893 build_old_libs=$enable_static
13895 # Whether or not to add -lc for building shared libraries.
13896 build_libtool_need_lc=$archive_cmds_need_lc
13898 # Whether or not to disallow shared libs when runtime libs are static
13899 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13901 # Whether or not to optimize for fast installation.
13902 fast_install=$enable_fast_install
13904 # The host system.
13905 host_alias=$host_alias
13906 host=$host
13907 host_os=$host_os
13909 # The build system.
13910 build_alias=$build_alias
13911 build=$build
13912 build_os=$build_os
13914 # An echo program that does not interpret backslashes.
13915 echo=$lt_echo
13917 # The archiver.
13918 AR=$lt_AR
13919 AR_FLAGS=$lt_AR_FLAGS
13921 # A C compiler.
13922 LTCC=$lt_LTCC
13924 # A language-specific compiler.
13925 CC=$lt_compiler
13927 # Is the compiler the GNU C compiler?
13928 with_gcc=$GCC
13930 # An ERE matcher.
13931 EGREP=$lt_EGREP
13933 # The linker used to build libraries.
13934 LD=$lt_LD
13936 # Whether we need hard or soft links.
13937 LN_S=$lt_LN_S
13939 # A BSD-compatible nm program.
13940 NM=$lt_NM
13942 # A symbol stripping program
13943 STRIP=$lt_STRIP
13945 # Used to examine libraries when file_magic_cmd begins "file"
13946 MAGIC_CMD=$MAGIC_CMD
13948 # Used on cygwin: DLL creation program.
13949 DLLTOOL="$DLLTOOL"
13951 # Used on cygwin: object dumper.
13952 OBJDUMP="$OBJDUMP"
13954 # Used on cygwin: assembler.
13955 AS="$AS"
13957 # The name of the directory that contains temporary libtool files.
13958 objdir=$objdir
13960 # How to create reloadable object files.
13961 reload_flag=$lt_reload_flag
13962 reload_cmds=$lt_reload_cmds
13964 # How to pass a linker flag through the compiler.
13965 wl=$lt_lt_prog_compiler_wl
13967 # Object file suffix (normally "o").
13968 objext="$ac_objext"
13970 # Old archive suffix (normally "a").
13971 libext="$libext"
13973 # Shared library suffix (normally ".so").
13974 shrext_cmds='$shrext_cmds'
13976 # Executable file suffix (normally "").
13977 exeext="$exeext"
13979 # Additional compiler flags for building library objects.
13980 pic_flag=$lt_lt_prog_compiler_pic
13981 pic_mode=$pic_mode
13983 # What is the maximum length of a command?
13984 max_cmd_len=$lt_cv_sys_max_cmd_len
13986 # Does compiler simultaneously support -c and -o options?
13987 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13989 # Must we lock files when doing compilation?
13990 need_locks=$lt_need_locks
13992 # Do we need the lib prefix for modules?
13993 need_lib_prefix=$need_lib_prefix
13995 # Do we need a version for libraries?
13996 need_version=$need_version
13998 # Whether dlopen is supported.
13999 dlopen_support=$enable_dlopen
14001 # Whether dlopen of programs is supported.
14002 dlopen_self=$enable_dlopen_self
14004 # Whether dlopen of statically linked programs is supported.
14005 dlopen_self_static=$enable_dlopen_self_static
14007 # Compiler flag to prevent dynamic linking.
14008 link_static_flag=$lt_lt_prog_compiler_static
14010 # Compiler flag to turn off builtin functions.
14011 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14013 # Compiler flag to allow reflexive dlopens.
14014 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14016 # Compiler flag to generate shared objects directly from archives.
14017 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14019 # Compiler flag to generate thread-safe objects.
14020 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14022 # Library versioning type.
14023 version_type=$version_type
14025 # Format of library name prefix.
14026 libname_spec=$lt_libname_spec
14028 # List of archive names. First name is the real one, the rest are links.
14029 # The last name is the one that the linker finds with -lNAME.
14030 library_names_spec=$lt_library_names_spec
14032 # The coded name of the library, if different from the real name.
14033 soname_spec=$lt_soname_spec
14035 # Commands used to build and install an old-style archive.
14036 RANLIB=$lt_RANLIB
14037 old_archive_cmds=$lt_old_archive_cmds
14038 old_postinstall_cmds=$lt_old_postinstall_cmds
14039 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14041 # Create an old-style archive from a shared archive.
14042 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14044 # Create a temporary old-style archive to link instead of a shared archive.
14045 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14047 # Commands used to build and install a shared archive.
14048 archive_cmds=$lt_archive_cmds
14049 archive_expsym_cmds=$lt_archive_expsym_cmds
14050 postinstall_cmds=$lt_postinstall_cmds
14051 postuninstall_cmds=$lt_postuninstall_cmds
14053 # Commands used to build a loadable module (assumed same as above if empty)
14054 module_cmds=$lt_module_cmds
14055 module_expsym_cmds=$lt_module_expsym_cmds
14057 # Commands to strip libraries.
14058 old_striplib=$lt_old_striplib
14059 striplib=$lt_striplib
14061 # Dependencies to place before the objects being linked to create a
14062 # shared library.
14063 predep_objects=$lt_predep_objects
14065 # Dependencies to place after the objects being linked to create a
14066 # shared library.
14067 postdep_objects=$lt_postdep_objects
14069 # Dependencies to place before the objects being linked to create a
14070 # shared library.
14071 predeps=$lt_predeps
14073 # Dependencies to place after the objects being linked to create a
14074 # shared library.
14075 postdeps=$lt_postdeps
14077 # The library search path used internally by the compiler when linking
14078 # a shared library.
14079 compiler_lib_search_path=$lt_compiler_lib_search_path
14081 # Method to check whether dependent libraries are shared objects.
14082 deplibs_check_method=$lt_deplibs_check_method
14084 # Command to use when deplibs_check_method == file_magic.
14085 file_magic_cmd=$lt_file_magic_cmd
14087 # Flag that allows shared libraries with undefined symbols to be built.
14088 allow_undefined_flag=$lt_allow_undefined_flag
14090 # Flag that forces no undefined symbols.
14091 no_undefined_flag=$lt_no_undefined_flag
14093 # Commands used to finish a libtool library installation in a directory.
14094 finish_cmds=$lt_finish_cmds
14096 # Same as above, but a single script fragment to be evaled but not shown.
14097 finish_eval=$lt_finish_eval
14099 # Take the output of nm and produce a listing of raw symbols and C names.
14100 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14102 # Transform the output of nm in a proper C declaration
14103 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14105 # Transform the output of nm in a C name address pair
14106 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14108 # This is the shared library runtime path variable.
14109 runpath_var=$runpath_var
14111 # This is the shared library path variable.
14112 shlibpath_var=$shlibpath_var
14114 # Is shlibpath searched before the hard-coded library search path?
14115 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14117 # How to hardcode a shared library path into an executable.
14118 hardcode_action=$hardcode_action
14120 # Whether we should hardcode library paths into libraries.
14121 hardcode_into_libs=$hardcode_into_libs
14123 # Flag to hardcode \$libdir into a binary during linking.
14124 # This must work even if \$libdir does not exist.
14125 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14127 # If ld is used when linking, flag to hardcode \$libdir into
14128 # a binary during linking. This must work even if \$libdir does
14129 # not exist.
14130 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14132 # Whether we need a single -rpath flag with a separated argument.
14133 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14135 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14136 # resulting binary.
14137 hardcode_direct=$hardcode_direct
14139 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14140 # resulting binary.
14141 hardcode_minus_L=$hardcode_minus_L
14143 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14144 # the resulting binary.
14145 hardcode_shlibpath_var=$hardcode_shlibpath_var
14147 # Set to yes if building a shared library automatically hardcodes DIR into the library
14148 # and all subsequent libraries and executables linked against it.
14149 hardcode_automatic=$hardcode_automatic
14151 # Variables whose values should be saved in libtool wrapper scripts and
14152 # restored at relink time.
14153 variables_saved_for_relink="$variables_saved_for_relink"
14155 # Whether libtool must link a program against all its dependency libraries.
14156 link_all_deplibs=$link_all_deplibs
14158 # Compile-time system search path for libraries
14159 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14161 # Run-time system search path for libraries
14162 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14164 # Fix the shell variable \$srcfile for the compiler.
14165 fix_srcfile_path="$fix_srcfile_path"
14167 # Set to yes if exported symbols are required.
14168 always_export_symbols=$always_export_symbols
14170 # The commands to list exported symbols.
14171 export_symbols_cmds=$lt_export_symbols_cmds
14173 # The commands to extract the exported symbol list from a shared archive.
14174 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14176 # Symbols that should not be listed in the preloaded symbols.
14177 exclude_expsyms=$lt_exclude_expsyms
14179 # Symbols that must always be exported.
14180 include_expsyms=$lt_include_expsyms
14182 # ### END LIBTOOL CONFIG
14184 __EOF__
14187 case $host_os in
14188 aix3*)
14189 cat <<\EOF >> "$cfgfile"
14191 # AIX sometimes has problems with the GCC collect2 program. For some
14192 # reason, if we set the COLLECT_NAMES environment variable, the problems
14193 # vanish in a puff of smoke.
14194 if test "X${COLLECT_NAMES+set}" != Xset; then
14195 COLLECT_NAMES=
14196 export COLLECT_NAMES
14200 esac
14202 # We use sed instead of cat because bash on DJGPP gets confused if
14203 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14204 # text mode, it properly converts lines to CR/LF. This bash problem
14205 # is reportedly fixed, but why not run on old versions too?
14206 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14208 mv -f "$cfgfile" "$ofile" || \
14209 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14210 chmod +x "$ofile"
14212 else
14213 # If there is no Makefile yet, we rely on a make rule to execute
14214 # `config.status --recheck' to rerun these tests and create the
14215 # libtool script then.
14216 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14217 if test -f "$ltmain_in"; then
14218 test -f Makefile && make "$ltmain"
14223 ac_ext=c
14224 ac_cpp='$CPP $CPPFLAGS'
14225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14229 CC="$lt_save_CC"
14232 # Check whether --with-tags was given.
14233 if test "${with_tags+set}" = set; then :
14234 withval=$with_tags; tagnames="$withval"
14238 if test -f "$ltmain" && test -n "$tagnames"; then
14239 if test ! -f "${ofile}"; then
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
14241 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14244 if test -z "$LTCC"; then
14245 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14246 if test -z "$LTCC"; then
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14248 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14249 else
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14251 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14255 # Extract list of available tagged configurations in $ofile.
14256 # Note that this assumes the entire list is on one line.
14257 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14259 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14260 for tagname in $tagnames; do
14261 IFS="$lt_save_ifs"
14262 # Check whether tagname contains only valid characters
14263 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14264 "") ;;
14265 *) as_fn_error "invalid tag name: $tagname" "$LINENO" 5
14267 esac
14269 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
14270 then
14271 as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5
14274 # Update the list of available tags.
14275 if test -n "$tagname"; then
14276 echo appending configuration tag \"$tagname\" to $ofile
14278 case $tagname in
14279 CXX)
14280 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14281 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14282 (test "X$CXX" != "Xg++"))) ; then
14284 else
14285 tagname=""
14289 F77)
14290 if test -n "$F77" && test "X$F77" != "Xno"; then
14292 else
14293 tagname=""
14297 GCJ)
14298 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14301 # Source file extension for Java test sources.
14302 ac_ext=java
14304 # Object file extension for compiled Java test sources.
14305 objext=o
14306 objext_GCJ=$objext
14308 # Code to be used in simple compile tests
14309 lt_simple_compile_test_code="class foo {}\n"
14311 # Code to be used in simple link tests
14312 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
14314 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14316 # If no C compiler was specified, use CC.
14317 LTCC=${LTCC-"$CC"}
14319 # Allow CC to be a program name with arguments.
14320 compiler=$CC
14323 # save warnings/boilerplate of simple test code
14324 ac_outfile=conftest.$ac_objext
14325 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14326 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14327 _lt_compiler_boilerplate=`cat conftest.err`
14328 $rm conftest*
14330 ac_outfile=conftest.$ac_objext
14331 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14332 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14333 _lt_linker_boilerplate=`cat conftest.err`
14334 $rm conftest*
14337 # Allow CC to be a program name with arguments.
14338 lt_save_CC="$CC"
14339 CC=${GCJ-"gcj"}
14340 compiler=$CC
14341 compiler_GCJ=$CC
14342 for cc_temp in $compiler""; do
14343 case $cc_temp in
14344 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14345 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14346 \-*) ;;
14347 *) break;;
14348 esac
14349 done
14350 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14353 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14354 archive_cmds_need_lc_GCJ=no
14356 old_archive_cmds_GCJ=$old_archive_cmds
14359 lt_prog_compiler_no_builtin_flag_GCJ=
14361 if test "$GCC" = yes; then
14362 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14366 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14367 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14368 $as_echo_n "(cached) " >&6
14369 else
14370 lt_cv_prog_compiler_rtti_exceptions=no
14371 ac_outfile=conftest.$ac_objext
14372 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14373 lt_compiler_flag="-fno-rtti -fno-exceptions"
14374 # Insert the option either (1) after the last *FLAGS variable, or
14375 # (2) before a word containing "conftest.", or (3) at the end.
14376 # Note that $ac_compile itself does not contain backslashes and begins
14377 # with a dollar sign (not a hyphen), so the echo should work correctly.
14378 # The option is referenced via a variable to avoid confusing sed.
14379 lt_compile=`echo "$ac_compile" | $SED \
14380 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14381 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14382 -e 's:$: $lt_compiler_flag:'`
14383 (eval echo "\"\$as_me:14383: $lt_compile\"" >&5)
14384 (eval "$lt_compile" 2>conftest.err)
14385 ac_status=$?
14386 cat conftest.err >&5
14387 echo "$as_me:14387: \$? = $ac_status" >&5
14388 if (exit $ac_status) && test -s "$ac_outfile"; then
14389 # The compiler can only warn and ignore the option if not recognized
14390 # So say no if there are warnings other than the usual output.
14391 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
14392 $SED '/^$/d' conftest.err >conftest.er2
14393 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
14394 lt_cv_prog_compiler_rtti_exceptions=yes
14397 $rm conftest*
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14401 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14403 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14404 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14405 else
14411 lt_prog_compiler_wl_GCJ=
14412 lt_prog_compiler_pic_GCJ=
14413 lt_prog_compiler_static_GCJ=
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14416 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14418 if test "$GCC" = yes; then
14419 lt_prog_compiler_wl_GCJ='-Wl,'
14420 lt_prog_compiler_static_GCJ='-static'
14422 case $host_os in
14423 aix*)
14424 # All AIX code is PIC.
14425 if test "$host_cpu" = ia64; then
14426 # AIX 5 now supports IA64 processor
14427 lt_prog_compiler_static_GCJ='-Bstatic'
14431 amigaos*)
14432 # FIXME: we need at least 68020 code to build shared libraries, but
14433 # adding the `-m68020' flag to GCC prevents building anything better,
14434 # like `-m68040'.
14435 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14438 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14439 # PIC is the default for these OSes.
14442 mingw* | pw32* | os2*)
14443 # This hack is so that the source file can tell whether it is being
14444 # built for inclusion in a dll (and should export symbols for example).
14445 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14448 darwin* | rhapsody*)
14449 # PIC is the default on this platform
14450 # Common symbols not allowed in MH_DYLIB files
14451 lt_prog_compiler_pic_GCJ='-fno-common'
14454 msdosdjgpp*)
14455 # Just because we use GCC doesn't mean we suddenly get shared libraries
14456 # on systems that don't support them.
14457 lt_prog_compiler_can_build_shared_GCJ=no
14458 enable_shared=no
14461 sysv4*MP*)
14462 if test -d /usr/nec; then
14463 lt_prog_compiler_pic_GCJ=-Kconform_pic
14467 hpux*)
14468 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14469 # not for PA HP-UX.
14470 case $host_cpu in
14471 hppa*64*|ia64*)
14472 # +Z the default
14475 lt_prog_compiler_pic_GCJ='-fPIC'
14477 esac
14481 lt_prog_compiler_pic_GCJ='-fPIC'
14483 esac
14484 else
14485 # PORTME Check for flag to pass linker flags through the system compiler.
14486 case $host_os in
14487 aix*)
14488 lt_prog_compiler_wl_GCJ='-Wl,'
14489 if test "$host_cpu" = ia64; then
14490 # AIX 5 now supports IA64 processor
14491 lt_prog_compiler_static_GCJ='-Bstatic'
14492 else
14493 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14496 darwin*)
14497 # PIC is the default on this platform
14498 # Common symbols not allowed in MH_DYLIB files
14499 case $cc_basename in
14500 xlc*)
14501 lt_prog_compiler_pic_GCJ='-qnocommon'
14502 lt_prog_compiler_wl_GCJ='-Wl,'
14504 esac
14507 mingw* | pw32* | os2*)
14508 # This hack is so that the source file can tell whether it is being
14509 # built for inclusion in a dll (and should export symbols for example).
14510 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14513 hpux9* | hpux10* | hpux11*)
14514 lt_prog_compiler_wl_GCJ='-Wl,'
14515 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14516 # not for PA HP-UX.
14517 case $host_cpu in
14518 hppa*64*|ia64*)
14519 # +Z the default
14522 lt_prog_compiler_pic_GCJ='+Z'
14524 esac
14525 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14526 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14529 irix5* | irix6* | nonstopux*)
14530 lt_prog_compiler_wl_GCJ='-Wl,'
14531 # PIC (with -KPIC) is the default.
14532 lt_prog_compiler_static_GCJ='-non_shared'
14535 newsos6)
14536 lt_prog_compiler_pic_GCJ='-KPIC'
14537 lt_prog_compiler_static_GCJ='-Bstatic'
14540 linux*)
14541 case $cc_basename in
14542 icc* | ecc*)
14543 lt_prog_compiler_wl_GCJ='-Wl,'
14544 lt_prog_compiler_pic_GCJ='-KPIC'
14545 lt_prog_compiler_static_GCJ='-static'
14547 pgcc* | pgf77* | pgf90* | pgf95*)
14548 # Portland Group compilers (*not* the Pentium gcc compiler,
14549 # which looks to be a dead project)
14550 lt_prog_compiler_wl_GCJ='-Wl,'
14551 lt_prog_compiler_pic_GCJ='-fpic'
14552 lt_prog_compiler_static_GCJ='-Bstatic'
14554 ccc*)
14555 lt_prog_compiler_wl_GCJ='-Wl,'
14556 # All Alpha code is PIC.
14557 lt_prog_compiler_static_GCJ='-non_shared'
14559 esac
14562 osf3* | osf4* | osf5*)
14563 lt_prog_compiler_wl_GCJ='-Wl,'
14564 # All OSF/1 code is PIC.
14565 lt_prog_compiler_static_GCJ='-non_shared'
14568 sco3.2v5*)
14569 lt_prog_compiler_pic_GCJ='-Kpic'
14570 lt_prog_compiler_static_GCJ='-dn'
14573 solaris*)
14574 lt_prog_compiler_pic_GCJ='-KPIC'
14575 lt_prog_compiler_static_GCJ='-Bstatic'
14576 case $cc_basename in
14577 f77* | f90* | f95*)
14578 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
14580 lt_prog_compiler_wl_GCJ='-Wl,';;
14581 esac
14584 sunos4*)
14585 lt_prog_compiler_wl_GCJ='-Qoption ld '
14586 lt_prog_compiler_pic_GCJ='-PIC'
14587 lt_prog_compiler_static_GCJ='-Bstatic'
14590 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14591 lt_prog_compiler_wl_GCJ='-Wl,'
14592 lt_prog_compiler_pic_GCJ='-KPIC'
14593 lt_prog_compiler_static_GCJ='-Bstatic'
14596 sysv4*MP*)
14597 if test -d /usr/nec ;then
14598 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14599 lt_prog_compiler_static_GCJ='-Bstatic'
14603 unicos*)
14604 lt_prog_compiler_wl_GCJ='-Wl,'
14605 lt_prog_compiler_can_build_shared_GCJ=no
14608 uts4*)
14609 lt_prog_compiler_pic_GCJ='-pic'
14610 lt_prog_compiler_static_GCJ='-Bstatic'
14614 lt_prog_compiler_can_build_shared_GCJ=no
14616 esac
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
14620 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
14623 # Check to make sure the PIC flag actually works.
14625 if test -n "$lt_prog_compiler_pic_GCJ"; then
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14628 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
14629 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then :
14630 $as_echo_n "(cached) " >&6
14631 else
14632 lt_prog_compiler_pic_works_GCJ=no
14633 ac_outfile=conftest.$ac_objext
14634 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14635 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14636 # Insert the option either (1) after the last *FLAGS variable, or
14637 # (2) before a word containing "conftest.", or (3) at the end.
14638 # Note that $ac_compile itself does not contain backslashes and begins
14639 # with a dollar sign (not a hyphen), so the echo should work correctly.
14640 # The option is referenced via a variable to avoid confusing sed.
14641 lt_compile=`echo "$ac_compile" | $SED \
14642 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14643 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14644 -e 's:$: $lt_compiler_flag:'`
14645 (eval echo "\"\$as_me:14645: $lt_compile\"" >&5)
14646 (eval "$lt_compile" 2>conftest.err)
14647 ac_status=$?
14648 cat conftest.err >&5
14649 echo "$as_me:14649: \$? = $ac_status" >&5
14650 if (exit $ac_status) && test -s "$ac_outfile"; then
14651 # The compiler can only warn and ignore the option if not recognized
14652 # So say no if there are warnings other than the usual output.
14653 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
14654 $SED '/^$/d' conftest.err >conftest.er2
14655 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
14656 lt_prog_compiler_pic_works_GCJ=yes
14659 $rm conftest*
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
14663 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
14665 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14666 case $lt_prog_compiler_pic_GCJ in
14667 "" | " "*) ;;
14668 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14669 esac
14670 else
14671 lt_prog_compiler_pic_GCJ=
14672 lt_prog_compiler_can_build_shared_GCJ=no
14676 case $host_os in
14677 # For platforms which do not support PIC, -DPIC is meaningless:
14678 *djgpp*)
14679 lt_prog_compiler_pic_GCJ=
14682 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14684 esac
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14687 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14688 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
14689 $as_echo_n "(cached) " >&6
14690 else
14691 lt_cv_prog_compiler_c_o_GCJ=no
14692 $rm -r conftest 2>/dev/null
14693 mkdir conftest
14694 cd conftest
14695 mkdir out
14696 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14698 lt_compiler_flag="-o out/conftest2.$ac_objext"
14699 # Insert the option either (1) after the last *FLAGS variable, or
14700 # (2) before a word containing "conftest.", or (3) at the end.
14701 # Note that $ac_compile itself does not contain backslashes and begins
14702 # with a dollar sign (not a hyphen), so the echo should work correctly.
14703 lt_compile=`echo "$ac_compile" | $SED \
14704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14706 -e 's:$: $lt_compiler_flag:'`
14707 (eval echo "\"\$as_me:14707: $lt_compile\"" >&5)
14708 (eval "$lt_compile" 2>out/conftest.err)
14709 ac_status=$?
14710 cat out/conftest.err >&5
14711 echo "$as_me:14711: \$? = $ac_status" >&5
14712 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14713 then
14714 # The compiler can only warn and ignore the option if not recognized
14715 # So say no if there are warnings
14716 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
14717 $SED '/^$/d' out/conftest.err >out/conftest.er2
14718 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14719 lt_cv_prog_compiler_c_o_GCJ=yes
14722 chmod u+w . 2>&5
14723 $rm conftest*
14724 # SGI C++ compiler will create directory out/ii_files/ for
14725 # template instantiation
14726 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14727 $rm out/* && rmdir out
14728 cd ..
14729 rmdir conftest
14730 $rm conftest*
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14734 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
14737 hard_links="nottested"
14738 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14739 # do not overwrite the value of need_locks provided by the user
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14741 $as_echo_n "checking if we can lock with hard links... " >&6; }
14742 hard_links=yes
14743 $rm conftest*
14744 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14745 touch conftest.a
14746 ln conftest.a conftest.b 2>&5 || hard_links=no
14747 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14749 $as_echo "$hard_links" >&6; }
14750 if test "$hard_links" = no; then
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14752 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14753 need_locks=warn
14755 else
14756 need_locks=no
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14760 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14762 runpath_var=
14763 allow_undefined_flag_GCJ=
14764 enable_shared_with_static_runtimes_GCJ=no
14765 archive_cmds_GCJ=
14766 archive_expsym_cmds_GCJ=
14767 old_archive_From_new_cmds_GCJ=
14768 old_archive_from_expsyms_cmds_GCJ=
14769 export_dynamic_flag_spec_GCJ=
14770 whole_archive_flag_spec_GCJ=
14771 thread_safe_flag_spec_GCJ=
14772 hardcode_libdir_flag_spec_GCJ=
14773 hardcode_libdir_flag_spec_ld_GCJ=
14774 hardcode_libdir_separator_GCJ=
14775 hardcode_direct_GCJ=no
14776 hardcode_minus_L_GCJ=no
14777 hardcode_shlibpath_var_GCJ=unsupported
14778 link_all_deplibs_GCJ=unknown
14779 hardcode_automatic_GCJ=no
14780 module_cmds_GCJ=
14781 module_expsym_cmds_GCJ=
14782 always_export_symbols_GCJ=no
14783 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14784 # include_expsyms should be a list of space-separated symbols to be *always*
14785 # included in the symbol list
14786 include_expsyms_GCJ=
14787 # exclude_expsyms can be an extended regexp of symbols to exclude
14788 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14789 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14790 # as well as any symbol that contains `d'.
14791 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
14792 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14793 # platforms (ab)use it in PIC code, but their linkers get confused if
14794 # the symbol is explicitly referenced. Since portable code cannot
14795 # rely on this symbol name, it's probably fine to never include it in
14796 # preloaded symbol tables.
14797 extract_expsyms_cmds=
14798 # Just being paranoid about ensuring that cc_basename is set.
14799 for cc_temp in $compiler""; do
14800 case $cc_temp in
14801 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14802 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14803 \-*) ;;
14804 *) break;;
14805 esac
14806 done
14807 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14809 case $host_os in
14810 cygwin* | mingw* | pw32*)
14811 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14812 # When not using gcc, we currently assume that we are using
14813 # Microsoft Visual C++.
14814 if test "$GCC" != yes; then
14815 with_gnu_ld=no
14818 openbsd*)
14819 with_gnu_ld=no
14821 esac
14823 ld_shlibs_GCJ=yes
14824 if test "$with_gnu_ld" = yes; then
14825 # If archive_cmds runs LD, not CC, wlarc should be empty
14826 wlarc='${wl}'
14828 # Set some defaults for GNU ld with shared library support. These
14829 # are reset later if shared libraries are not supported. Putting them
14830 # here allows them to be overridden if necessary.
14831 runpath_var=LD_RUN_PATH
14832 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
14833 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
14834 # ancient GNU ld didn't support --whole-archive et. al.
14835 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14836 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14837 else
14838 whole_archive_flag_spec_GCJ=
14840 supports_anon_versioning=no
14841 case `$LD -v 2>/dev/null` in
14842 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14843 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14844 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14845 *\ 2.11.*) ;; # other 2.11 versions
14846 *) supports_anon_versioning=yes ;;
14847 esac
14849 # See if GNU ld supports shared libraries.
14850 case $host_os in
14851 aix3* | aix4* | aix5*)
14852 # On AIX/PPC, the GNU linker is very broken
14853 if test "$host_cpu" != ia64; then
14854 ld_shlibs_GCJ=no
14855 cat <<EOF 1>&2
14857 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14858 *** to be unable to reliably create shared libraries on AIX.
14859 *** Therefore, libtool is disabling shared libraries support. If you
14860 *** really care for shared libraries, you may want to modify your PATH
14861 *** so that a non-GNU linker is found, and then restart.
14867 amigaos*)
14868 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14869 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14870 hardcode_minus_L_GCJ=yes
14872 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14873 # that the semantics of dynamic libraries on AmigaOS, at least up
14874 # to version 4, is to share data among multiple programs linked
14875 # with the same dynamic library. Since this doesn't match the
14876 # behavior of shared libraries on other platforms, we can't use
14877 # them.
14878 ld_shlibs_GCJ=no
14881 beos*)
14882 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14883 allow_undefined_flag_GCJ=unsupported
14884 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14885 # support --undefined. This deserves some investigation. FIXME
14886 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14887 else
14888 ld_shlibs_GCJ=no
14892 cygwin* | mingw* | pw32*)
14893 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
14894 # as there is no search path for DLLs.
14895 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14896 allow_undefined_flag_GCJ=unsupported
14897 always_export_symbols_GCJ=no
14898 enable_shared_with_static_runtimes_GCJ=yes
14899 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14901 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14902 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14903 # If the export-symbols file already is a .def file (1st line
14904 # is EXPORTS), use it as is; otherwise, prepend...
14905 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14906 cp $export_symbols $output_objdir/$soname.def;
14907 else
14908 echo EXPORTS > $output_objdir/$soname.def;
14909 cat $export_symbols >> $output_objdir/$soname.def;
14911 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14912 else
14913 ld_shlibs_GCJ=no
14917 linux*)
14918 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14919 tmp_addflag=
14920 case $cc_basename,$host_cpu in
14921 pgcc*) # Portland Group C compiler
14922 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14923 tmp_addflag=' $pic_flag'
14925 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14926 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14927 tmp_addflag=' $pic_flag -Mnomain' ;;
14928 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14929 tmp_addflag=' -i_dynamic' ;;
14930 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14931 tmp_addflag=' -i_dynamic -nofor_main' ;;
14932 ifc* | ifort*) # Intel Fortran compiler
14933 tmp_addflag=' -nofor_main' ;;
14934 esac
14935 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14937 if test $supports_anon_versioning = yes; then
14938 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
14939 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14940 $echo "local: *; };" >> $output_objdir/$libname.ver~
14941 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14943 else
14944 ld_shlibs_GCJ=no
14948 netbsd*)
14949 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14950 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14951 wlarc=
14952 else
14953 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14954 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14958 solaris* | sysv5*)
14959 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14960 ld_shlibs_GCJ=no
14961 cat <<EOF 1>&2
14963 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14964 *** create shared libraries on Solaris systems. Therefore, libtool
14965 *** is disabling shared libraries support. We urge you to upgrade GNU
14966 *** binutils to release 2.9.1 or newer. Another option is to modify
14967 *** your PATH or compiler configuration so that the native linker is
14968 *** used, and then restart.
14971 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14972 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14973 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14974 else
14975 ld_shlibs_GCJ=no
14979 sunos4*)
14980 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14981 wlarc=
14982 hardcode_direct_GCJ=yes
14983 hardcode_shlibpath_var_GCJ=no
14987 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14988 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14989 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14990 else
14991 ld_shlibs_GCJ=no
14994 esac
14996 if test "$ld_shlibs_GCJ" = no; then
14997 runpath_var=
14998 hardcode_libdir_flag_spec_GCJ=
14999 export_dynamic_flag_spec_GCJ=
15000 whole_archive_flag_spec_GCJ=
15002 else
15003 # PORTME fill in a description of your system's linker (not GNU ld)
15004 case $host_os in
15005 aix3*)
15006 allow_undefined_flag_GCJ=unsupported
15007 always_export_symbols_GCJ=yes
15008 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15009 # Note: this linker hardcodes the directories in LIBPATH if there
15010 # are no directories specified by -L.
15011 hardcode_minus_L_GCJ=yes
15012 if test "$GCC" = yes && test -z "$link_static_flag"; then
15013 # Neither direct hardcoding nor static linking is supported with a
15014 # broken collect2.
15015 hardcode_direct_GCJ=unsupported
15019 aix4* | aix5*)
15020 if test "$host_cpu" = ia64; then
15021 # On IA64, the linker does run time linking by default, so we don't
15022 # have to do anything special.
15023 aix_use_runtimelinking=no
15024 exp_sym_flag='-Bexport'
15025 no_entry_flag=""
15026 else
15027 # If we're using GNU nm, then we don't want the "-C" option.
15028 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15029 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15030 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15031 else
15032 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15034 aix_use_runtimelinking=no
15036 # Test if we are trying to use run time linking or normal
15037 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15038 # need to do runtime linking.
15039 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15040 for ld_flag in $LDFLAGS; do
15041 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15042 aix_use_runtimelinking=yes
15043 break
15045 done
15046 esac
15048 exp_sym_flag='-bexport'
15049 no_entry_flag='-bnoentry'
15052 # When large executables or shared objects are built, AIX ld can
15053 # have problems creating the table of contents. If linking a library
15054 # or program results in "error TOC overflow" add -mminimal-toc to
15055 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15056 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15058 archive_cmds_GCJ=''
15059 hardcode_direct_GCJ=yes
15060 hardcode_libdir_separator_GCJ=':'
15061 link_all_deplibs_GCJ=yes
15063 if test "$GCC" = yes; then
15064 case $host_os in aix4.[012]|aix4.[012].*)
15065 # We only want to do this on AIX 4.2 and lower, the check
15066 # below for broken collect2 doesn't work under 4.3+
15067 collect2name=`${CC} -print-prog-name=collect2`
15068 if test -f "$collect2name" && \
15069 strings "$collect2name" | grep resolve_lib_name >/dev/null
15070 then
15071 # We have reworked collect2
15072 hardcode_direct_GCJ=yes
15073 else
15074 # We have old collect2
15075 hardcode_direct_GCJ=unsupported
15076 # It fails to find uninstalled libraries when the uninstalled
15077 # path is not listed in the libpath. Setting hardcode_minus_L
15078 # to unsupported forces relinking
15079 hardcode_minus_L_GCJ=yes
15080 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15081 hardcode_libdir_separator_GCJ=
15083 esac
15084 shared_flag='-shared'
15085 if test "$aix_use_runtimelinking" = yes; then
15086 shared_flag="$shared_flag "'${wl}-G'
15088 else
15089 # not using gcc
15090 if test "$host_cpu" = ia64; then
15091 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15092 # chokes on -Wl,-G. The following line is correct:
15093 shared_flag='-G'
15094 else
15095 if test "$aix_use_runtimelinking" = yes; then
15096 shared_flag='${wl}-G'
15097 else
15098 shared_flag='${wl}-bM:SRE'
15103 # It seems that -bexpall does not export symbols beginning with
15104 # underscore (_), so it is better to generate a list of symbols to export.
15105 always_export_symbols_GCJ=yes
15106 if test "$aix_use_runtimelinking" = yes; then
15107 # Warning - without using the other runtime loading flags (-brtl),
15108 # -berok will link without error, but may produce a broken library.
15109 allow_undefined_flag_GCJ='-berok'
15110 # Determine the default libpath from the value encoded in an empty executable.
15111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15112 /* end confdefs.h. */
15115 main ()
15119 return 0;
15121 _ACEOF
15122 if ac_fn_c_try_link "$LINENO"; then :
15124 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15126 # Check for a 64-bit object if we didn't find anything.
15127 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15128 }'`; fi
15130 rm -f core conftest.err conftest.$ac_objext \
15131 conftest$ac_exeext conftest.$ac_ext
15132 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15134 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15135 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15136 else
15137 if test "$host_cpu" = ia64; then
15138 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15139 allow_undefined_flag_GCJ="-z nodefs"
15140 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15141 else
15142 # Determine the default libpath from the value encoded in an empty executable.
15143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15144 /* end confdefs.h. */
15147 main ()
15151 return 0;
15153 _ACEOF
15154 if ac_fn_c_try_link "$LINENO"; then :
15156 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15158 # Check for a 64-bit object if we didn't find anything.
15159 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15160 }'`; fi
15162 rm -f core conftest.err conftest.$ac_objext \
15163 conftest$ac_exeext conftest.$ac_ext
15164 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15166 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15167 # Warning - without using the other run time loading flags,
15168 # -berok will link without error, but may produce a broken library.
15169 no_undefined_flag_GCJ=' ${wl}-bernotok'
15170 allow_undefined_flag_GCJ=' ${wl}-berok'
15171 # -bexpall does not export symbols beginning with underscore (_)
15172 always_export_symbols_GCJ=yes
15173 # Exported symbols can be pulled into shared objects from archives
15174 whole_archive_flag_spec_GCJ=' '
15175 archive_cmds_need_lc_GCJ=yes
15176 # This is similar to how AIX traditionally builds its shared libraries.
15177 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15182 amigaos*)
15183 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15184 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15185 hardcode_minus_L_GCJ=yes
15186 # see comment about different semantics on the GNU ld section
15187 ld_shlibs_GCJ=no
15190 bsdi[45]*)
15191 export_dynamic_flag_spec_GCJ=-rdynamic
15194 cygwin* | mingw* | pw32*)
15195 # When not using gcc, we currently assume that we are using
15196 # Microsoft Visual C++.
15197 # hardcode_libdir_flag_spec is actually meaningless, as there is
15198 # no search path for DLLs.
15199 hardcode_libdir_flag_spec_GCJ=' '
15200 allow_undefined_flag_GCJ=unsupported
15201 # Tell ltmain to make .lib files, not .a files.
15202 libext=lib
15203 # Tell ltmain to make .dll files, not .so files.
15204 shrext_cmds=".dll"
15205 # FIXME: Setting linknames here is a bad hack.
15206 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15207 # The linker will automatically build a .lib file if we build a DLL.
15208 old_archive_From_new_cmds_GCJ='true'
15209 # FIXME: Should let the user specify the lib program.
15210 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15211 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
15212 enable_shared_with_static_runtimes_GCJ=yes
15215 darwin* | rhapsody*)
15216 case $host_os in
15217 rhapsody* | darwin1.[012])
15218 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
15220 *) # Darwin 1.3 on
15221 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15222 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15223 else
15224 case ${MACOSX_DEPLOYMENT_TARGET} in
15225 10.[012])
15226 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15228 10.*)
15229 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
15231 esac
15234 esac
15235 archive_cmds_need_lc_GCJ=no
15236 hardcode_direct_GCJ=no
15237 hardcode_automatic_GCJ=yes
15238 hardcode_shlibpath_var_GCJ=unsupported
15239 whole_archive_flag_spec_GCJ=''
15240 link_all_deplibs_GCJ=yes
15241 if test "$GCC" = yes ; then
15242 output_verbose_link_cmd='echo'
15243 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15244 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15245 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15246 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15247 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15248 else
15249 case $cc_basename in
15250 xlc*)
15251 output_verbose_link_cmd='echo'
15252 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15253 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15254 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15255 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15256 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15259 ld_shlibs_GCJ=no
15261 esac
15265 dgux*)
15266 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15267 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15268 hardcode_shlibpath_var_GCJ=no
15271 freebsd1*)
15272 ld_shlibs_GCJ=no
15275 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15276 # support. Future versions do this automatically, but an explicit c++rt0.o
15277 # does not break anything, and helps significantly (at the cost of a little
15278 # extra space).
15279 freebsd2.2*)
15280 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15281 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15282 hardcode_direct_GCJ=yes
15283 hardcode_shlibpath_var_GCJ=no
15286 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15287 freebsd2*)
15288 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15289 hardcode_direct_GCJ=yes
15290 hardcode_minus_L_GCJ=yes
15291 hardcode_shlibpath_var_GCJ=no
15294 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15295 freebsd* | kfreebsd*-gnu | dragonfly*)
15296 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15297 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15298 hardcode_direct_GCJ=yes
15299 hardcode_shlibpath_var_GCJ=no
15302 hpux9*)
15303 if test "$GCC" = yes; then
15304 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15305 else
15306 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15308 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15309 hardcode_libdir_separator_GCJ=:
15310 hardcode_direct_GCJ=yes
15312 # hardcode_minus_L: Not really in the search PATH,
15313 # but as the default location of the library.
15314 hardcode_minus_L_GCJ=yes
15315 export_dynamic_flag_spec_GCJ='${wl}-E'
15318 hpux10* | hpux11*)
15319 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15320 case $host_cpu in
15321 hppa*64*|ia64*)
15322 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15325 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15327 esac
15328 else
15329 case $host_cpu in
15330 hppa*64*|ia64*)
15331 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15334 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15336 esac
15338 if test "$with_gnu_ld" = no; then
15339 case $host_cpu in
15340 hppa*64*)
15341 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15342 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15343 hardcode_libdir_separator_GCJ=:
15344 hardcode_direct_GCJ=no
15345 hardcode_shlibpath_var_GCJ=no
15347 ia64*)
15348 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15349 hardcode_direct_GCJ=no
15350 hardcode_shlibpath_var_GCJ=no
15352 # hardcode_minus_L: Not really in the search PATH,
15353 # but as the default location of the library.
15354 hardcode_minus_L_GCJ=yes
15357 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15358 hardcode_libdir_separator_GCJ=:
15359 hardcode_direct_GCJ=yes
15360 export_dynamic_flag_spec_GCJ='${wl}-E'
15362 # hardcode_minus_L: Not really in the search PATH,
15363 # but as the default location of the library.
15364 hardcode_minus_L_GCJ=yes
15366 esac
15370 irix5* | irix6* | nonstopux*)
15371 if test "$GCC" = yes; then
15372 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15373 else
15374 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15375 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15377 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15378 hardcode_libdir_separator_GCJ=:
15379 link_all_deplibs_GCJ=yes
15382 netbsd*)
15383 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15384 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15385 else
15386 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15388 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15389 hardcode_direct_GCJ=yes
15390 hardcode_shlibpath_var_GCJ=no
15393 newsos6)
15394 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15395 hardcode_direct_GCJ=yes
15396 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15397 hardcode_libdir_separator_GCJ=:
15398 hardcode_shlibpath_var_GCJ=no
15401 openbsd*)
15402 hardcode_direct_GCJ=yes
15403 hardcode_shlibpath_var_GCJ=no
15404 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15405 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15406 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15407 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15408 export_dynamic_flag_spec_GCJ='${wl}-E'
15409 else
15410 case $host_os in
15411 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15412 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15413 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15416 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15417 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15419 esac
15423 os2*)
15424 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15425 hardcode_minus_L_GCJ=yes
15426 allow_undefined_flag_GCJ=unsupported
15427 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15428 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15431 osf3*)
15432 if test "$GCC" = yes; then
15433 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15434 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15435 else
15436 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15437 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15439 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15440 hardcode_libdir_separator_GCJ=:
15443 osf4* | osf5*) # as osf3* with the addition of -msym flag
15444 if test "$GCC" = yes; then
15445 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15446 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15447 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15448 else
15449 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15450 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15451 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15452 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15454 # Both c and cxx compiler support -rpath directly
15455 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15457 hardcode_libdir_separator_GCJ=:
15460 sco3.2v5*)
15461 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15462 hardcode_shlibpath_var_GCJ=no
15463 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15464 runpath_var=LD_RUN_PATH
15465 hardcode_runpath_var=yes
15468 solaris*)
15469 no_undefined_flag_GCJ=' -z text'
15470 if test "$GCC" = yes; then
15471 wlarc='${wl}'
15472 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15473 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15474 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15475 else
15476 wlarc=''
15477 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15478 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15479 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15481 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15482 hardcode_shlibpath_var_GCJ=no
15483 case $host_os in
15484 solaris2.[0-5] | solaris2.[0-5].*) ;;
15486 # The compiler driver will combine linker options so we
15487 # cannot just pass the convience library names through
15488 # without $wl, iff we do not link with $LD.
15489 # Luckily, gcc supports the same syntax we need for Sun Studio.
15490 # Supported since Solaris 2.6 (maybe 2.5.1?)
15491 case $wlarc in
15493 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15495 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15496 esac ;;
15497 esac
15498 link_all_deplibs_GCJ=yes
15501 sunos4*)
15502 if test "x$host_vendor" = xsequent; then
15503 # Use $CC to link under sequent, because it throws in some extra .o
15504 # files that make .init and .fini sections work.
15505 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15506 else
15507 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15509 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15510 hardcode_direct_GCJ=yes
15511 hardcode_minus_L_GCJ=yes
15512 hardcode_shlibpath_var_GCJ=no
15515 sysv4)
15516 case $host_vendor in
15517 sni)
15518 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15519 hardcode_direct_GCJ=yes # is this really true???
15521 siemens)
15522 ## LD is ld it makes a PLAMLIB
15523 ## CC just makes a GrossModule.
15524 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15525 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15526 hardcode_direct_GCJ=no
15528 motorola)
15529 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15530 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15532 esac
15533 runpath_var='LD_RUN_PATH'
15534 hardcode_shlibpath_var_GCJ=no
15537 sysv4.3*)
15538 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15539 hardcode_shlibpath_var_GCJ=no
15540 export_dynamic_flag_spec_GCJ='-Bexport'
15543 sysv4*MP*)
15544 if test -d /usr/nec; then
15545 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15546 hardcode_shlibpath_var_GCJ=no
15547 runpath_var=LD_RUN_PATH
15548 hardcode_runpath_var=yes
15549 ld_shlibs_GCJ=yes
15553 sysv4.2uw2*)
15554 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15555 hardcode_direct_GCJ=yes
15556 hardcode_minus_L_GCJ=no
15557 hardcode_shlibpath_var_GCJ=no
15558 hardcode_runpath_var=yes
15559 runpath_var=LD_RUN_PATH
15562 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15563 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15564 if test "$GCC" = yes; then
15565 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15566 else
15567 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15569 runpath_var='LD_RUN_PATH'
15570 hardcode_shlibpath_var_GCJ=no
15573 sysv5*)
15574 no_undefined_flag_GCJ=' -z text'
15575 # $CC -shared without GNU ld will not create a library from C++
15576 # object files and a static libstdc++, better avoid it by now
15577 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15578 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15579 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15580 hardcode_libdir_flag_spec_GCJ=
15581 hardcode_shlibpath_var_GCJ=no
15582 runpath_var='LD_RUN_PATH'
15585 uts4*)
15586 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15587 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15588 hardcode_shlibpath_var_GCJ=no
15592 ld_shlibs_GCJ=no
15594 esac
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
15598 $as_echo "$ld_shlibs_GCJ" >&6; }
15599 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15601 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15602 if test "$GCC" = yes; then
15603 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15607 # Do we need to explicitly link libc?
15609 case "x$archive_cmds_need_lc_GCJ" in
15610 x|xyes)
15611 # Assume -lc should be added
15612 archive_cmds_need_lc_GCJ=yes
15614 if test "$enable_shared" = yes && test "$GCC" = yes; then
15615 case $archive_cmds_GCJ in
15616 *'~'*)
15617 # FIXME: we may have to deal with multi-command sequences.
15619 '$CC '*)
15620 # Test whether the compiler implicitly links with -lc since on some
15621 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15622 # to ld, don't add -lc before -lgcc.
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15624 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15625 $rm conftest*
15626 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15629 (eval $ac_compile) 2>&5
15630 ac_status=$?
15631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15632 test $ac_status = 0; } 2>conftest.err; then
15633 soname=conftest
15634 lib=conftest
15635 libobjs=conftest.$ac_objext
15636 deplibs=
15637 wl=$lt_prog_compiler_wl_GCJ
15638 compiler_flags=-v
15639 linker_flags=-v
15640 verstring=
15641 output_objdir=.
15642 libname=conftest
15643 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15644 allow_undefined_flag_GCJ=
15645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15646 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15647 ac_status=$?
15648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15649 test $ac_status = 0; }
15650 then
15651 archive_cmds_need_lc_GCJ=no
15652 else
15653 archive_cmds_need_lc_GCJ=yes
15655 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15656 else
15657 cat conftest.err 1>&5
15659 $rm conftest*
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
15661 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
15663 esac
15666 esac
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15669 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15670 library_names_spec=
15671 libname_spec='lib$name'
15672 soname_spec=
15673 shrext_cmds=".so"
15674 postinstall_cmds=
15675 postuninstall_cmds=
15676 finish_cmds=
15677 finish_eval=
15678 shlibpath_var=
15679 shlibpath_overrides_runpath=unknown
15680 version_type=none
15681 dynamic_linker="$host_os ld.so"
15682 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15683 if test "$GCC" = yes; then
15684 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15685 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15686 # if the path contains ";" then we assume it to be the separator
15687 # otherwise default to the standard path separator (i.e. ":") - it is
15688 # assumed that no part of a normal pathname contains ";" but that should
15689 # okay in the real world where ";" in dirpaths is itself problematic.
15690 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15691 else
15692 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15694 else
15695 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15697 need_lib_prefix=unknown
15698 hardcode_into_libs=no
15700 # when you set need_version to no, make sure it does not cause -set_version
15701 # flags to be left without arguments
15702 need_version=unknown
15704 case $host_os in
15705 aix3*)
15706 version_type=linux
15707 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15708 shlibpath_var=LIBPATH
15710 # AIX 3 has no versioning support, so we append a major version to the name.
15711 soname_spec='${libname}${release}${shared_ext}$major'
15714 aix4* | aix5*)
15715 version_type=linux
15716 need_lib_prefix=no
15717 need_version=no
15718 hardcode_into_libs=yes
15719 if test "$host_cpu" = ia64; then
15720 # AIX 5 supports IA64
15721 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15722 shlibpath_var=LD_LIBRARY_PATH
15723 else
15724 # With GCC up to 2.95.x, collect2 would create an import file
15725 # for dependence libraries. The import file would start with
15726 # the line `#! .'. This would cause the generated library to
15727 # depend on `.', always an invalid library. This was fixed in
15728 # development snapshots of GCC prior to 3.0.
15729 case $host_os in
15730 aix4 | aix4.[01] | aix4.[01].*)
15731 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15732 echo ' yes '
15733 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15735 else
15736 can_build_shared=no
15739 esac
15740 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15741 # soname into executable. Probably we can add versioning support to
15742 # collect2, so additional links can be useful in future.
15743 if test "$aix_use_runtimelinking" = yes; then
15744 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15745 # instead of lib<name>.a to let people know that these are not
15746 # typical AIX shared libraries.
15747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15748 else
15749 # We preserve .a as extension for shared libraries through AIX4.2
15750 # and later when we are not doing run time linking.
15751 library_names_spec='${libname}${release}.a $libname.a'
15752 soname_spec='${libname}${release}${shared_ext}$major'
15754 shlibpath_var=LIBPATH
15758 amigaos*)
15759 library_names_spec='$libname.ixlibrary $libname.a'
15760 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15761 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15764 beos*)
15765 library_names_spec='${libname}${shared_ext}'
15766 dynamic_linker="$host_os ld.so"
15767 shlibpath_var=LIBRARY_PATH
15770 bsdi[45]*)
15771 version_type=linux
15772 need_version=no
15773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15774 soname_spec='${libname}${release}${shared_ext}$major'
15775 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15776 shlibpath_var=LD_LIBRARY_PATH
15777 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15778 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15779 # the default ld.so.conf also contains /usr/contrib/lib and
15780 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15781 # libtool to hard-code these into programs
15784 cygwin* | mingw* | pw32*)
15785 version_type=windows
15786 shrext_cmds=".dll"
15787 need_version=no
15788 need_lib_prefix=no
15790 case $GCC,$host_os in
15791 yes,cygwin* | yes,mingw* | yes,pw32*)
15792 library_names_spec='$libname.dll.a'
15793 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15794 postinstall_cmds='base_file=`basename \${file}`~
15795 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15796 dldir=$destdir/`dirname \$dlpath`~
15797 test -d \$dldir || mkdir -p \$dldir~
15798 $install_prog $dir/$dlname \$dldir/$dlname~
15799 chmod a+x \$dldir/$dlname'
15800 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15801 dlpath=$dir/\$dldll~
15802 $rm \$dlpath'
15803 shlibpath_overrides_runpath=yes
15805 case $host_os in
15806 cygwin*)
15807 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15808 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15809 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15811 mingw*)
15812 # MinGW DLLs use traditional 'lib' prefix
15813 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15814 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15815 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15816 # It is most probably a Windows format PATH printed by
15817 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15818 # path with ; separators, and with drive letters. We can handle the
15819 # drive letters (cygwin fileutils understands them), so leave them,
15820 # especially as we might pass files found there to a mingw objdump,
15821 # which wouldn't understand a cygwinified path. Ahh.
15822 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15823 else
15824 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15827 pw32*)
15828 # pw32 DLLs use 'pw' prefix rather than 'lib'
15829 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15831 esac
15835 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15837 esac
15838 dynamic_linker='Win32 ld.exe'
15839 # FIXME: first we should search . and the directory the executable is in
15840 shlibpath_var=PATH
15843 darwin* | rhapsody*)
15844 dynamic_linker="$host_os dyld"
15845 version_type=darwin
15846 need_lib_prefix=no
15847 need_version=no
15848 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15849 soname_spec='${libname}${release}${major}$shared_ext'
15850 shlibpath_overrides_runpath=yes
15851 shlibpath_var=DYLD_LIBRARY_PATH
15852 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15853 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15854 if test "$GCC" = yes; then
15855 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15856 else
15857 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15859 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15862 dgux*)
15863 version_type=linux
15864 need_lib_prefix=no
15865 need_version=no
15866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15867 soname_spec='${libname}${release}${shared_ext}$major'
15868 shlibpath_var=LD_LIBRARY_PATH
15871 freebsd1*)
15872 dynamic_linker=no
15875 kfreebsd*-gnu)
15876 version_type=linux
15877 need_lib_prefix=no
15878 need_version=no
15879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15880 soname_spec='${libname}${release}${shared_ext}$major'
15881 shlibpath_var=LD_LIBRARY_PATH
15882 shlibpath_overrides_runpath=no
15883 hardcode_into_libs=yes
15884 dynamic_linker='GNU ld.so'
15887 freebsd* | dragonfly*)
15888 # DragonFly does not have aout. When/if they implement a new
15889 # versioning mechanism, adjust this.
15890 if test -x /usr/bin/objformat; then
15891 objformat=`/usr/bin/objformat`
15892 else
15893 case $host_os in
15894 freebsd[123]*) objformat=aout ;;
15895 *) objformat=elf ;;
15896 esac
15898 version_type=freebsd-$objformat
15899 case $version_type in
15900 freebsd-elf*)
15901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15902 need_version=no
15903 need_lib_prefix=no
15905 freebsd-*)
15906 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15907 need_version=yes
15909 esac
15910 shlibpath_var=LD_LIBRARY_PATH
15911 case $host_os in
15912 freebsd2*)
15913 shlibpath_overrides_runpath=yes
15915 freebsd3.[01]* | freebsdelf3.[01]*)
15916 shlibpath_overrides_runpath=yes
15917 hardcode_into_libs=yes
15919 *) # from 3.2 on
15920 shlibpath_overrides_runpath=no
15921 hardcode_into_libs=yes
15923 esac
15926 gnu*)
15927 version_type=linux
15928 need_lib_prefix=no
15929 need_version=no
15930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15931 soname_spec='${libname}${release}${shared_ext}$major'
15932 shlibpath_var=LD_LIBRARY_PATH
15933 hardcode_into_libs=yes
15936 hpux9* | hpux10* | hpux11*)
15937 # Give a soname corresponding to the major version so that dld.sl refuses to
15938 # link against other versions.
15939 version_type=sunos
15940 need_lib_prefix=no
15941 need_version=no
15942 case $host_cpu in
15943 ia64*)
15944 shrext_cmds='.so'
15945 hardcode_into_libs=yes
15946 dynamic_linker="$host_os dld.so"
15947 shlibpath_var=LD_LIBRARY_PATH
15948 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15950 soname_spec='${libname}${release}${shared_ext}$major'
15951 if test "X$HPUX_IA64_MODE" = X32; then
15952 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15953 else
15954 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15956 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15958 hppa*64*)
15959 shrext_cmds='.sl'
15960 hardcode_into_libs=yes
15961 dynamic_linker="$host_os dld.sl"
15962 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15963 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15965 soname_spec='${libname}${release}${shared_ext}$major'
15966 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15967 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15970 shrext_cmds='.sl'
15971 dynamic_linker="$host_os dld.sl"
15972 shlibpath_var=SHLIB_PATH
15973 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15975 soname_spec='${libname}${release}${shared_ext}$major'
15977 esac
15978 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15979 postinstall_cmds='chmod 555 $lib'
15982 irix5* | irix6* | nonstopux*)
15983 case $host_os in
15984 nonstopux*) version_type=nonstopux ;;
15986 if test "$lt_cv_prog_gnu_ld" = yes; then
15987 version_type=linux
15988 else
15989 version_type=irix
15990 fi ;;
15991 esac
15992 need_lib_prefix=no
15993 need_version=no
15994 soname_spec='${libname}${release}${shared_ext}$major'
15995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15996 case $host_os in
15997 irix5* | nonstopux*)
15998 libsuff= shlibsuff=
16001 case $LD in # libtool.m4 will add one of these switches to LD
16002 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16003 libsuff= shlibsuff= libmagic=32-bit;;
16004 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16005 libsuff=32 shlibsuff=N32 libmagic=N32;;
16006 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16007 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16008 *) libsuff= shlibsuff= libmagic=never-match;;
16009 esac
16011 esac
16012 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16013 shlibpath_overrides_runpath=no
16014 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16015 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16016 hardcode_into_libs=yes
16019 # No shared lib support for Linux oldld, aout, or coff.
16020 linux*oldld* | linux*aout* | linux*coff*)
16021 dynamic_linker=no
16024 # This must be Linux ELF.
16025 linux*)
16026 version_type=linux
16027 need_lib_prefix=no
16028 need_version=no
16029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16030 soname_spec='${libname}${release}${shared_ext}$major'
16031 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16032 shlibpath_var=LD_LIBRARY_PATH
16033 shlibpath_overrides_runpath=no
16034 # This implies no fast_install, which is unacceptable.
16035 # Some rework will be needed to allow for fast_install
16036 # before this can be enabled.
16037 hardcode_into_libs=yes
16039 # Append ld.so.conf contents to the search path
16040 if test -f /etc/ld.so.conf; then
16041 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16042 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16045 # We used to test for /lib/ld.so.1 and disable shared libraries on
16046 # powerpc, because MkLinux only supported shared libraries with the
16047 # GNU dynamic linker. Since this was broken with cross compilers,
16048 # most powerpc-linux boxes support dynamic linking these days and
16049 # people can always --disable-shared, the test was removed, and we
16050 # assume the GNU/Linux dynamic linker is in use.
16051 dynamic_linker='GNU/Linux ld.so'
16054 knetbsd*-gnu)
16055 version_type=linux
16056 need_lib_prefix=no
16057 need_version=no
16058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16059 soname_spec='${libname}${release}${shared_ext}$major'
16060 shlibpath_var=LD_LIBRARY_PATH
16061 shlibpath_overrides_runpath=no
16062 hardcode_into_libs=yes
16063 dynamic_linker='GNU ld.so'
16066 netbsd*)
16067 version_type=sunos
16068 need_lib_prefix=no
16069 need_version=no
16070 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16072 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16073 dynamic_linker='NetBSD (a.out) ld.so'
16074 else
16075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16076 soname_spec='${libname}${release}${shared_ext}$major'
16077 dynamic_linker='NetBSD ld.elf_so'
16079 shlibpath_var=LD_LIBRARY_PATH
16080 shlibpath_overrides_runpath=yes
16081 hardcode_into_libs=yes
16084 newsos6)
16085 version_type=linux
16086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16087 shlibpath_var=LD_LIBRARY_PATH
16088 shlibpath_overrides_runpath=yes
16091 nto-qnx*)
16092 version_type=linux
16093 need_lib_prefix=no
16094 need_version=no
16095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16096 soname_spec='${libname}${release}${shared_ext}$major'
16097 shlibpath_var=LD_LIBRARY_PATH
16098 shlibpath_overrides_runpath=yes
16101 openbsd*)
16102 version_type=sunos
16103 need_lib_prefix=no
16104 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16105 case $host_os in
16106 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16107 *) need_version=no ;;
16108 esac
16109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16110 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16111 shlibpath_var=LD_LIBRARY_PATH
16112 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16113 case $host_os in
16114 openbsd2.[89] | openbsd2.[89].*)
16115 shlibpath_overrides_runpath=no
16118 shlibpath_overrides_runpath=yes
16120 esac
16121 else
16122 shlibpath_overrides_runpath=yes
16126 os2*)
16127 libname_spec='$name'
16128 shrext_cmds=".dll"
16129 need_lib_prefix=no
16130 library_names_spec='$libname${shared_ext} $libname.a'
16131 dynamic_linker='OS/2 ld.exe'
16132 shlibpath_var=LIBPATH
16135 osf3* | osf4* | osf5*)
16136 version_type=osf
16137 need_lib_prefix=no
16138 need_version=no
16139 soname_spec='${libname}${release}${shared_ext}$major'
16140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16141 shlibpath_var=LD_LIBRARY_PATH
16142 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16143 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16146 sco3.2v5*)
16147 version_type=osf
16148 soname_spec='${libname}${release}${shared_ext}$major'
16149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16150 shlibpath_var=LD_LIBRARY_PATH
16153 solaris*)
16154 version_type=linux
16155 need_lib_prefix=no
16156 need_version=no
16157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16158 soname_spec='${libname}${release}${shared_ext}$major'
16159 shlibpath_var=LD_LIBRARY_PATH
16160 shlibpath_overrides_runpath=yes
16161 hardcode_into_libs=yes
16162 # ldd complains unless libraries are executable
16163 postinstall_cmds='chmod +x $lib'
16166 sunos4*)
16167 version_type=sunos
16168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16169 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16170 shlibpath_var=LD_LIBRARY_PATH
16171 shlibpath_overrides_runpath=yes
16172 if test "$with_gnu_ld" = yes; then
16173 need_lib_prefix=no
16175 need_version=yes
16178 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16179 version_type=linux
16180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16181 soname_spec='${libname}${release}${shared_ext}$major'
16182 shlibpath_var=LD_LIBRARY_PATH
16183 case $host_vendor in
16184 sni)
16185 shlibpath_overrides_runpath=no
16186 need_lib_prefix=no
16187 export_dynamic_flag_spec='${wl}-Blargedynsym'
16188 runpath_var=LD_RUN_PATH
16190 siemens)
16191 need_lib_prefix=no
16193 motorola)
16194 need_lib_prefix=no
16195 need_version=no
16196 shlibpath_overrides_runpath=no
16197 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16199 esac
16202 sysv4*MP*)
16203 if test -d /usr/nec ;then
16204 version_type=linux
16205 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16206 soname_spec='$libname${shared_ext}.$major'
16207 shlibpath_var=LD_LIBRARY_PATH
16211 uts4*)
16212 version_type=linux
16213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16214 soname_spec='${libname}${release}${shared_ext}$major'
16215 shlibpath_var=LD_LIBRARY_PATH
16219 dynamic_linker=no
16221 esac
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16223 $as_echo "$dynamic_linker" >&6; }
16224 test "$dynamic_linker" = no && can_build_shared=no
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16227 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16228 hardcode_action_GCJ=
16229 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16230 test -n "$runpath_var_GCJ" || \
16231 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
16233 # We can hardcode non-existant directories.
16234 if test "$hardcode_direct_GCJ" != no &&
16235 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16236 # have to relink, otherwise we might link with an installed library
16237 # when we should be linking with a yet-to-be-installed one
16238 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16239 test "$hardcode_minus_L_GCJ" != no; then
16240 # Linking always hardcodes the temporary library directory.
16241 hardcode_action_GCJ=relink
16242 else
16243 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16244 hardcode_action_GCJ=immediate
16246 else
16247 # We cannot hardcode anything, or else we can only hardcode existing
16248 # directories.
16249 hardcode_action_GCJ=unsupported
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
16252 $as_echo "$hardcode_action_GCJ" >&6; }
16254 if test "$hardcode_action_GCJ" = relink; then
16255 # Fast installation is not supported
16256 enable_fast_install=no
16257 elif test "$shlibpath_overrides_runpath" = yes ||
16258 test "$enable_shared" = no; then
16259 # Fast installation is not necessary
16260 enable_fast_install=needless
16263 striplib=
16264 old_striplib=
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16266 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
16267 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16268 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16269 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16271 $as_echo "yes" >&6; }
16272 else
16273 # FIXME - insert some real tests, host_os isn't really good enough
16274 case $host_os in
16275 darwin*)
16276 if test -n "$STRIP" ; then
16277 striplib="$STRIP -x"
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16279 $as_echo "yes" >&6; }
16280 else
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16282 $as_echo "no" >&6; }
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16287 $as_echo "no" >&6; }
16289 esac
16292 if test "x$enable_dlopen" != xyes; then
16293 enable_dlopen=unknown
16294 enable_dlopen_self=unknown
16295 enable_dlopen_self_static=unknown
16296 else
16297 lt_cv_dlopen=no
16298 lt_cv_dlopen_libs=
16300 case $host_os in
16301 beos*)
16302 lt_cv_dlopen="load_add_on"
16303 lt_cv_dlopen_libs=
16304 lt_cv_dlopen_self=yes
16307 mingw* | pw32*)
16308 lt_cv_dlopen="LoadLibrary"
16309 lt_cv_dlopen_libs=
16312 cygwin*)
16313 lt_cv_dlopen="dlopen"
16314 lt_cv_dlopen_libs=
16317 darwin*)
16318 # if libdl is installed we need to link against it
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16320 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16321 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16322 $as_echo_n "(cached) " >&6
16323 else
16324 ac_check_lib_save_LIBS=$LIBS
16325 LIBS="-ldl $LIBS"
16326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16327 /* end confdefs.h. */
16329 /* Override any GCC internal prototype to avoid an error.
16330 Use char because int might match the return type of a GCC
16331 builtin and then its argument prototype would still apply. */
16332 #ifdef __cplusplus
16333 extern "C"
16334 #endif
16335 char dlopen ();
16337 main ()
16339 return dlopen ();
16341 return 0;
16343 _ACEOF
16344 if ac_fn_c_try_link "$LINENO"; then :
16345 ac_cv_lib_dl_dlopen=yes
16346 else
16347 ac_cv_lib_dl_dlopen=no
16349 rm -f core conftest.err conftest.$ac_objext \
16350 conftest$ac_exeext conftest.$ac_ext
16351 LIBS=$ac_check_lib_save_LIBS
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16354 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16355 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16356 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16357 else
16359 lt_cv_dlopen="dyld"
16360 lt_cv_dlopen_libs=
16361 lt_cv_dlopen_self=yes
16368 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16369 if test "x$ac_cv_func_shl_load" = x""yes; then :
16370 lt_cv_dlopen="shl_load"
16371 else
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16373 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16374 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
16375 $as_echo_n "(cached) " >&6
16376 else
16377 ac_check_lib_save_LIBS=$LIBS
16378 LIBS="-ldld $LIBS"
16379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16380 /* end confdefs.h. */
16382 /* Override any GCC internal prototype to avoid an error.
16383 Use char because int might match the return type of a GCC
16384 builtin and then its argument prototype would still apply. */
16385 #ifdef __cplusplus
16386 extern "C"
16387 #endif
16388 char shl_load ();
16390 main ()
16392 return shl_load ();
16394 return 0;
16396 _ACEOF
16397 if ac_fn_c_try_link "$LINENO"; then :
16398 ac_cv_lib_dld_shl_load=yes
16399 else
16400 ac_cv_lib_dld_shl_load=no
16402 rm -f core conftest.err conftest.$ac_objext \
16403 conftest$ac_exeext conftest.$ac_ext
16404 LIBS=$ac_check_lib_save_LIBS
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16407 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16408 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
16409 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16410 else
16411 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16412 if test "x$ac_cv_func_dlopen" = x""yes; then :
16413 lt_cv_dlopen="dlopen"
16414 else
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16416 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16417 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16418 $as_echo_n "(cached) " >&6
16419 else
16420 ac_check_lib_save_LIBS=$LIBS
16421 LIBS="-ldl $LIBS"
16422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16423 /* end confdefs.h. */
16425 /* Override any GCC internal prototype to avoid an error.
16426 Use char because int might match the return type of a GCC
16427 builtin and then its argument prototype would still apply. */
16428 #ifdef __cplusplus
16429 extern "C"
16430 #endif
16431 char dlopen ();
16433 main ()
16435 return dlopen ();
16437 return 0;
16439 _ACEOF
16440 if ac_fn_c_try_link "$LINENO"; then :
16441 ac_cv_lib_dl_dlopen=yes
16442 else
16443 ac_cv_lib_dl_dlopen=no
16445 rm -f core conftest.err conftest.$ac_objext \
16446 conftest$ac_exeext conftest.$ac_ext
16447 LIBS=$ac_check_lib_save_LIBS
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16450 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16451 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16452 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16453 else
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16455 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16456 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
16457 $as_echo_n "(cached) " >&6
16458 else
16459 ac_check_lib_save_LIBS=$LIBS
16460 LIBS="-lsvld $LIBS"
16461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16462 /* end confdefs.h. */
16464 /* Override any GCC internal prototype to avoid an error.
16465 Use char because int might match the return type of a GCC
16466 builtin and then its argument prototype would still apply. */
16467 #ifdef __cplusplus
16468 extern "C"
16469 #endif
16470 char dlopen ();
16472 main ()
16474 return dlopen ();
16476 return 0;
16478 _ACEOF
16479 if ac_fn_c_try_link "$LINENO"; then :
16480 ac_cv_lib_svld_dlopen=yes
16481 else
16482 ac_cv_lib_svld_dlopen=no
16484 rm -f core conftest.err conftest.$ac_objext \
16485 conftest$ac_exeext conftest.$ac_ext
16486 LIBS=$ac_check_lib_save_LIBS
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16489 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16490 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
16491 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16492 else
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16494 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16495 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
16496 $as_echo_n "(cached) " >&6
16497 else
16498 ac_check_lib_save_LIBS=$LIBS
16499 LIBS="-ldld $LIBS"
16500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16501 /* end confdefs.h. */
16503 /* Override any GCC internal prototype to avoid an error.
16504 Use char because int might match the return type of a GCC
16505 builtin and then its argument prototype would still apply. */
16506 #ifdef __cplusplus
16507 extern "C"
16508 #endif
16509 char dld_link ();
16511 main ()
16513 return dld_link ();
16515 return 0;
16517 _ACEOF
16518 if ac_fn_c_try_link "$LINENO"; then :
16519 ac_cv_lib_dld_dld_link=yes
16520 else
16521 ac_cv_lib_dld_dld_link=no
16523 rm -f core conftest.err conftest.$ac_objext \
16524 conftest$ac_exeext conftest.$ac_ext
16525 LIBS=$ac_check_lib_save_LIBS
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16528 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16529 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
16530 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16549 esac
16551 if test "x$lt_cv_dlopen" != xno; then
16552 enable_dlopen=yes
16553 else
16554 enable_dlopen=no
16557 case $lt_cv_dlopen in
16558 dlopen)
16559 save_CPPFLAGS="$CPPFLAGS"
16560 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16562 save_LDFLAGS="$LDFLAGS"
16563 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16565 save_LIBS="$LIBS"
16566 LIBS="$lt_cv_dlopen_libs $LIBS"
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16569 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
16570 if test "${lt_cv_dlopen_self+set}" = set; then :
16571 $as_echo_n "(cached) " >&6
16572 else
16573 if test "$cross_compiling" = yes; then :
16574 lt_cv_dlopen_self=cross
16575 else
16576 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16577 lt_status=$lt_dlunknown
16578 cat > conftest.$ac_ext <<EOF
16579 #line 16579 "configure"
16580 #include "confdefs.h"
16582 #if HAVE_DLFCN_H
16583 #include <dlfcn.h>
16584 #endif
16586 #include <stdio.h>
16588 #ifdef RTLD_GLOBAL
16589 # define LT_DLGLOBAL RTLD_GLOBAL
16590 #else
16591 # ifdef DL_GLOBAL
16592 # define LT_DLGLOBAL DL_GLOBAL
16593 # else
16594 # define LT_DLGLOBAL 0
16595 # endif
16596 #endif
16598 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16599 find out it does not work in some platform. */
16600 #ifndef LT_DLLAZY_OR_NOW
16601 # ifdef RTLD_LAZY
16602 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16603 # else
16604 # ifdef DL_LAZY
16605 # define LT_DLLAZY_OR_NOW DL_LAZY
16606 # else
16607 # ifdef RTLD_NOW
16608 # define LT_DLLAZY_OR_NOW RTLD_NOW
16609 # else
16610 # ifdef DL_NOW
16611 # define LT_DLLAZY_OR_NOW DL_NOW
16612 # else
16613 # define LT_DLLAZY_OR_NOW 0
16614 # endif
16615 # endif
16616 # endif
16617 # endif
16618 #endif
16620 #ifdef __cplusplus
16621 extern "C" void exit (int);
16622 #endif
16624 void fnord() { int i=42;}
16625 int main ()
16627 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16628 int status = $lt_dlunknown;
16630 if (self)
16632 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16633 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16634 /* dlclose (self); */
16637 exit (status);
16640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16641 (eval $ac_link) 2>&5
16642 ac_status=$?
16643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16644 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16645 (./conftest; exit; ) >&5 2>/dev/null
16646 lt_status=$?
16647 case x$lt_status in
16648 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16649 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16650 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16651 esac
16652 else :
16653 # compilation failed
16654 lt_cv_dlopen_self=no
16657 rm -fr conftest*
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16662 $as_echo "$lt_cv_dlopen_self" >&6; }
16664 if test "x$lt_cv_dlopen_self" = xyes; then
16665 LDFLAGS="$LDFLAGS $link_static_flag"
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16667 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16668 if test "${lt_cv_dlopen_self_static+set}" = set; then :
16669 $as_echo_n "(cached) " >&6
16670 else
16671 if test "$cross_compiling" = yes; then :
16672 lt_cv_dlopen_self_static=cross
16673 else
16674 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16675 lt_status=$lt_dlunknown
16676 cat > conftest.$ac_ext <<EOF
16677 #line 16677 "configure"
16678 #include "confdefs.h"
16680 #if HAVE_DLFCN_H
16681 #include <dlfcn.h>
16682 #endif
16684 #include <stdio.h>
16686 #ifdef RTLD_GLOBAL
16687 # define LT_DLGLOBAL RTLD_GLOBAL
16688 #else
16689 # ifdef DL_GLOBAL
16690 # define LT_DLGLOBAL DL_GLOBAL
16691 # else
16692 # define LT_DLGLOBAL 0
16693 # endif
16694 #endif
16696 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16697 find out it does not work in some platform. */
16698 #ifndef LT_DLLAZY_OR_NOW
16699 # ifdef RTLD_LAZY
16700 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16701 # else
16702 # ifdef DL_LAZY
16703 # define LT_DLLAZY_OR_NOW DL_LAZY
16704 # else
16705 # ifdef RTLD_NOW
16706 # define LT_DLLAZY_OR_NOW RTLD_NOW
16707 # else
16708 # ifdef DL_NOW
16709 # define LT_DLLAZY_OR_NOW DL_NOW
16710 # else
16711 # define LT_DLLAZY_OR_NOW 0
16712 # endif
16713 # endif
16714 # endif
16715 # endif
16716 #endif
16718 #ifdef __cplusplus
16719 extern "C" void exit (int);
16720 #endif
16722 void fnord() { int i=42;}
16723 int main ()
16725 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16726 int status = $lt_dlunknown;
16728 if (self)
16730 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16731 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16732 /* dlclose (self); */
16735 exit (status);
16738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16739 (eval $ac_link) 2>&5
16740 ac_status=$?
16741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16742 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16743 (./conftest; exit; ) >&5 2>/dev/null
16744 lt_status=$?
16745 case x$lt_status in
16746 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16747 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16748 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16749 esac
16750 else :
16751 # compilation failed
16752 lt_cv_dlopen_self_static=no
16755 rm -fr conftest*
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16760 $as_echo "$lt_cv_dlopen_self_static" >&6; }
16763 CPPFLAGS="$save_CPPFLAGS"
16764 LDFLAGS="$save_LDFLAGS"
16765 LIBS="$save_LIBS"
16767 esac
16769 case $lt_cv_dlopen_self in
16770 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16771 *) enable_dlopen_self=unknown ;;
16772 esac
16774 case $lt_cv_dlopen_self_static in
16775 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16776 *) enable_dlopen_self_static=unknown ;;
16777 esac
16781 # The else clause should only fire when bootstrapping the
16782 # libtool distribution, otherwise you forgot to ship ltmain.sh
16783 # with your package, and you will get complaints that there are
16784 # no rules to generate ltmain.sh.
16785 if test -f "$ltmain"; then
16786 # See if we are running on zsh, and set the options which allow our commands through
16787 # without removal of \ escapes.
16788 if test -n "${ZSH_VERSION+set}" ; then
16789 setopt NO_GLOB_SUBST
16791 # Now quote all the things that may contain metacharacters while being
16792 # careful not to overquote the AC_SUBSTed values. We take copies of the
16793 # variables and quote the copies for generation of the libtool script.
16794 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16795 SED SHELL STRIP \
16796 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16797 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16798 deplibs_check_method reload_flag reload_cmds need_locks \
16799 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16800 lt_cv_sys_global_symbol_to_c_name_address \
16801 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16802 old_postinstall_cmds old_postuninstall_cmds \
16803 compiler_GCJ \
16804 CC_GCJ \
16805 LD_GCJ \
16806 lt_prog_compiler_wl_GCJ \
16807 lt_prog_compiler_pic_GCJ \
16808 lt_prog_compiler_static_GCJ \
16809 lt_prog_compiler_no_builtin_flag_GCJ \
16810 export_dynamic_flag_spec_GCJ \
16811 thread_safe_flag_spec_GCJ \
16812 whole_archive_flag_spec_GCJ \
16813 enable_shared_with_static_runtimes_GCJ \
16814 old_archive_cmds_GCJ \
16815 old_archive_from_new_cmds_GCJ \
16816 predep_objects_GCJ \
16817 postdep_objects_GCJ \
16818 predeps_GCJ \
16819 postdeps_GCJ \
16820 compiler_lib_search_path_GCJ \
16821 archive_cmds_GCJ \
16822 archive_expsym_cmds_GCJ \
16823 postinstall_cmds_GCJ \
16824 postuninstall_cmds_GCJ \
16825 old_archive_from_expsyms_cmds_GCJ \
16826 allow_undefined_flag_GCJ \
16827 no_undefined_flag_GCJ \
16828 export_symbols_cmds_GCJ \
16829 hardcode_libdir_flag_spec_GCJ \
16830 hardcode_libdir_flag_spec_ld_GCJ \
16831 hardcode_libdir_separator_GCJ \
16832 hardcode_automatic_GCJ \
16833 module_cmds_GCJ \
16834 module_expsym_cmds_GCJ \
16835 lt_cv_prog_compiler_c_o_GCJ \
16836 exclude_expsyms_GCJ \
16837 include_expsyms_GCJ; do
16839 case $var in
16840 old_archive_cmds_GCJ | \
16841 old_archive_from_new_cmds_GCJ | \
16842 archive_cmds_GCJ | \
16843 archive_expsym_cmds_GCJ | \
16844 module_cmds_GCJ | \
16845 module_expsym_cmds_GCJ | \
16846 old_archive_from_expsyms_cmds_GCJ | \
16847 export_symbols_cmds_GCJ | \
16848 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16849 postinstall_cmds | postuninstall_cmds | \
16850 old_postinstall_cmds | old_postuninstall_cmds | \
16851 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16852 # Double-quote double-evaled strings.
16853 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16856 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16858 esac
16859 done
16861 case $lt_echo in
16862 *'\$0 --fallback-echo"')
16863 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16865 esac
16867 cfgfile="$ofile"
16869 cat <<__EOF__ >> "$cfgfile"
16870 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16872 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16874 # Shell to use when invoking shell scripts.
16875 SHELL=$lt_SHELL
16877 # Whether or not to build shared libraries.
16878 build_libtool_libs=$enable_shared
16880 # Whether or not to build static libraries.
16881 build_old_libs=$enable_static
16883 # Whether or not to add -lc for building shared libraries.
16884 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
16886 # Whether or not to disallow shared libs when runtime libs are static
16887 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
16889 # Whether or not to optimize for fast installation.
16890 fast_install=$enable_fast_install
16892 # The host system.
16893 host_alias=$host_alias
16894 host=$host
16895 host_os=$host_os
16897 # The build system.
16898 build_alias=$build_alias
16899 build=$build
16900 build_os=$build_os
16902 # An echo program that does not interpret backslashes.
16903 echo=$lt_echo
16905 # The archiver.
16906 AR=$lt_AR
16907 AR_FLAGS=$lt_AR_FLAGS
16909 # A C compiler.
16910 LTCC=$lt_LTCC
16912 # A language-specific compiler.
16913 CC=$lt_compiler_GCJ
16915 # Is the compiler the GNU C compiler?
16916 with_gcc=$GCC_GCJ
16918 # An ERE matcher.
16919 EGREP=$lt_EGREP
16921 # The linker used to build libraries.
16922 LD=$lt_LD_GCJ
16924 # Whether we need hard or soft links.
16925 LN_S=$lt_LN_S
16927 # A BSD-compatible nm program.
16928 NM=$lt_NM
16930 # A symbol stripping program
16931 STRIP=$lt_STRIP
16933 # Used to examine libraries when file_magic_cmd begins "file"
16934 MAGIC_CMD=$MAGIC_CMD
16936 # Used on cygwin: DLL creation program.
16937 DLLTOOL="$DLLTOOL"
16939 # Used on cygwin: object dumper.
16940 OBJDUMP="$OBJDUMP"
16942 # Used on cygwin: assembler.
16943 AS="$AS"
16945 # The name of the directory that contains temporary libtool files.
16946 objdir=$objdir
16948 # How to create reloadable object files.
16949 reload_flag=$lt_reload_flag
16950 reload_cmds=$lt_reload_cmds
16952 # How to pass a linker flag through the compiler.
16953 wl=$lt_lt_prog_compiler_wl_GCJ
16955 # Object file suffix (normally "o").
16956 objext="$ac_objext"
16958 # Old archive suffix (normally "a").
16959 libext="$libext"
16961 # Shared library suffix (normally ".so").
16962 shrext_cmds='$shrext_cmds'
16964 # Executable file suffix (normally "").
16965 exeext="$exeext"
16967 # Additional compiler flags for building library objects.
16968 pic_flag=$lt_lt_prog_compiler_pic_GCJ
16969 pic_mode=$pic_mode
16971 # What is the maximum length of a command?
16972 max_cmd_len=$lt_cv_sys_max_cmd_len
16974 # Does compiler simultaneously support -c and -o options?
16975 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
16977 # Must we lock files when doing compilation?
16978 need_locks=$lt_need_locks
16980 # Do we need the lib prefix for modules?
16981 need_lib_prefix=$need_lib_prefix
16983 # Do we need a version for libraries?
16984 need_version=$need_version
16986 # Whether dlopen is supported.
16987 dlopen_support=$enable_dlopen
16989 # Whether dlopen of programs is supported.
16990 dlopen_self=$enable_dlopen_self
16992 # Whether dlopen of statically linked programs is supported.
16993 dlopen_self_static=$enable_dlopen_self_static
16995 # Compiler flag to prevent dynamic linking.
16996 link_static_flag=$lt_lt_prog_compiler_static_GCJ
16998 # Compiler flag to turn off builtin functions.
16999 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17001 # Compiler flag to allow reflexive dlopens.
17002 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17004 # Compiler flag to generate shared objects directly from archives.
17005 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17007 # Compiler flag to generate thread-safe objects.
17008 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17010 # Library versioning type.
17011 version_type=$version_type
17013 # Format of library name prefix.
17014 libname_spec=$lt_libname_spec
17016 # List of archive names. First name is the real one, the rest are links.
17017 # The last name is the one that the linker finds with -lNAME.
17018 library_names_spec=$lt_library_names_spec
17020 # The coded name of the library, if different from the real name.
17021 soname_spec=$lt_soname_spec
17023 # Commands used to build and install an old-style archive.
17024 RANLIB=$lt_RANLIB
17025 old_archive_cmds=$lt_old_archive_cmds_GCJ
17026 old_postinstall_cmds=$lt_old_postinstall_cmds
17027 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17029 # Create an old-style archive from a shared archive.
17030 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17032 # Create a temporary old-style archive to link instead of a shared archive.
17033 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17035 # Commands used to build and install a shared archive.
17036 archive_cmds=$lt_archive_cmds_GCJ
17037 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17038 postinstall_cmds=$lt_postinstall_cmds
17039 postuninstall_cmds=$lt_postuninstall_cmds
17041 # Commands used to build a loadable module (assumed same as above if empty)
17042 module_cmds=$lt_module_cmds_GCJ
17043 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17045 # Commands to strip libraries.
17046 old_striplib=$lt_old_striplib
17047 striplib=$lt_striplib
17049 # Dependencies to place before the objects being linked to create a
17050 # shared library.
17051 predep_objects=$lt_predep_objects_GCJ
17053 # Dependencies to place after the objects being linked to create a
17054 # shared library.
17055 postdep_objects=$lt_postdep_objects_GCJ
17057 # Dependencies to place before the objects being linked to create a
17058 # shared library.
17059 predeps=$lt_predeps_GCJ
17061 # Dependencies to place after the objects being linked to create a
17062 # shared library.
17063 postdeps=$lt_postdeps_GCJ
17065 # The library search path used internally by the compiler when linking
17066 # a shared library.
17067 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17069 # Method to check whether dependent libraries are shared objects.
17070 deplibs_check_method=$lt_deplibs_check_method
17072 # Command to use when deplibs_check_method == file_magic.
17073 file_magic_cmd=$lt_file_magic_cmd
17075 # Flag that allows shared libraries with undefined symbols to be built.
17076 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17078 # Flag that forces no undefined symbols.
17079 no_undefined_flag=$lt_no_undefined_flag_GCJ
17081 # Commands used to finish a libtool library installation in a directory.
17082 finish_cmds=$lt_finish_cmds
17084 # Same as above, but a single script fragment to be evaled but not shown.
17085 finish_eval=$lt_finish_eval
17087 # Take the output of nm and produce a listing of raw symbols and C names.
17088 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17090 # Transform the output of nm in a proper C declaration
17091 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17093 # Transform the output of nm in a C name address pair
17094 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17096 # This is the shared library runtime path variable.
17097 runpath_var=$runpath_var
17099 # This is the shared library path variable.
17100 shlibpath_var=$shlibpath_var
17102 # Is shlibpath searched before the hard-coded library search path?
17103 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17105 # How to hardcode a shared library path into an executable.
17106 hardcode_action=$hardcode_action_GCJ
17108 # Whether we should hardcode library paths into libraries.
17109 hardcode_into_libs=$hardcode_into_libs
17111 # Flag to hardcode \$libdir into a binary during linking.
17112 # This must work even if \$libdir does not exist.
17113 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17115 # If ld is used when linking, flag to hardcode \$libdir into
17116 # a binary during linking. This must work even if \$libdir does
17117 # not exist.
17118 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17120 # Whether we need a single -rpath flag with a separated argument.
17121 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17123 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17124 # resulting binary.
17125 hardcode_direct=$hardcode_direct_GCJ
17127 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17128 # resulting binary.
17129 hardcode_minus_L=$hardcode_minus_L_GCJ
17131 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17132 # the resulting binary.
17133 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17135 # Set to yes if building a shared library automatically hardcodes DIR into the library
17136 # and all subsequent libraries and executables linked against it.
17137 hardcode_automatic=$hardcode_automatic_GCJ
17139 # Variables whose values should be saved in libtool wrapper scripts and
17140 # restored at relink time.
17141 variables_saved_for_relink="$variables_saved_for_relink"
17143 # Whether libtool must link a program against all its dependency libraries.
17144 link_all_deplibs=$link_all_deplibs_GCJ
17146 # Compile-time system search path for libraries
17147 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17149 # Run-time system search path for libraries
17150 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17152 # Fix the shell variable \$srcfile for the compiler.
17153 fix_srcfile_path="$fix_srcfile_path_GCJ"
17155 # Set to yes if exported symbols are required.
17156 always_export_symbols=$always_export_symbols_GCJ
17158 # The commands to list exported symbols.
17159 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17161 # The commands to extract the exported symbol list from a shared archive.
17162 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17164 # Symbols that should not be listed in the preloaded symbols.
17165 exclude_expsyms=$lt_exclude_expsyms_GCJ
17167 # Symbols that must always be exported.
17168 include_expsyms=$lt_include_expsyms_GCJ
17170 # ### END LIBTOOL TAG CONFIG: $tagname
17172 __EOF__
17175 else
17176 # If there is no Makefile yet, we rely on a make rule to execute
17177 # `config.status --recheck' to rerun these tests and create the
17178 # libtool script then.
17179 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17180 if test -f "$ltmain_in"; then
17181 test -f Makefile && make "$ltmain"
17186 ac_ext=c
17187 ac_cpp='$CPP $CPPFLAGS'
17188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17192 CC="$lt_save_CC"
17194 else
17195 tagname=""
17202 # Source file extension for RC test sources.
17203 ac_ext=rc
17205 # Object file extension for compiled RC test sources.
17206 objext=o
17207 objext_RC=$objext
17209 # Code to be used in simple compile tests
17210 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17212 # Code to be used in simple link tests
17213 lt_simple_link_test_code="$lt_simple_compile_test_code"
17215 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17217 # If no C compiler was specified, use CC.
17218 LTCC=${LTCC-"$CC"}
17220 # Allow CC to be a program name with arguments.
17221 compiler=$CC
17224 # save warnings/boilerplate of simple test code
17225 ac_outfile=conftest.$ac_objext
17226 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17227 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17228 _lt_compiler_boilerplate=`cat conftest.err`
17229 $rm conftest*
17231 ac_outfile=conftest.$ac_objext
17232 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17233 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17234 _lt_linker_boilerplate=`cat conftest.err`
17235 $rm conftest*
17238 # Allow CC to be a program name with arguments.
17239 lt_save_CC="$CC"
17240 CC=${RC-"windres"}
17241 compiler=$CC
17242 compiler_RC=$CC
17243 for cc_temp in $compiler""; do
17244 case $cc_temp in
17245 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17246 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17247 \-*) ;;
17248 *) break;;
17249 esac
17250 done
17251 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17253 lt_cv_prog_compiler_c_o_RC=yes
17255 # The else clause should only fire when bootstrapping the
17256 # libtool distribution, otherwise you forgot to ship ltmain.sh
17257 # with your package, and you will get complaints that there are
17258 # no rules to generate ltmain.sh.
17259 if test -f "$ltmain"; then
17260 # See if we are running on zsh, and set the options which allow our commands through
17261 # without removal of \ escapes.
17262 if test -n "${ZSH_VERSION+set}" ; then
17263 setopt NO_GLOB_SUBST
17265 # Now quote all the things that may contain metacharacters while being
17266 # careful not to overquote the AC_SUBSTed values. We take copies of the
17267 # variables and quote the copies for generation of the libtool script.
17268 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17269 SED SHELL STRIP \
17270 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17271 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17272 deplibs_check_method reload_flag reload_cmds need_locks \
17273 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17274 lt_cv_sys_global_symbol_to_c_name_address \
17275 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17276 old_postinstall_cmds old_postuninstall_cmds \
17277 compiler_RC \
17278 CC_RC \
17279 LD_RC \
17280 lt_prog_compiler_wl_RC \
17281 lt_prog_compiler_pic_RC \
17282 lt_prog_compiler_static_RC \
17283 lt_prog_compiler_no_builtin_flag_RC \
17284 export_dynamic_flag_spec_RC \
17285 thread_safe_flag_spec_RC \
17286 whole_archive_flag_spec_RC \
17287 enable_shared_with_static_runtimes_RC \
17288 old_archive_cmds_RC \
17289 old_archive_from_new_cmds_RC \
17290 predep_objects_RC \
17291 postdep_objects_RC \
17292 predeps_RC \
17293 postdeps_RC \
17294 compiler_lib_search_path_RC \
17295 archive_cmds_RC \
17296 archive_expsym_cmds_RC \
17297 postinstall_cmds_RC \
17298 postuninstall_cmds_RC \
17299 old_archive_from_expsyms_cmds_RC \
17300 allow_undefined_flag_RC \
17301 no_undefined_flag_RC \
17302 export_symbols_cmds_RC \
17303 hardcode_libdir_flag_spec_RC \
17304 hardcode_libdir_flag_spec_ld_RC \
17305 hardcode_libdir_separator_RC \
17306 hardcode_automatic_RC \
17307 module_cmds_RC \
17308 module_expsym_cmds_RC \
17309 lt_cv_prog_compiler_c_o_RC \
17310 exclude_expsyms_RC \
17311 include_expsyms_RC; do
17313 case $var in
17314 old_archive_cmds_RC | \
17315 old_archive_from_new_cmds_RC | \
17316 archive_cmds_RC | \
17317 archive_expsym_cmds_RC | \
17318 module_cmds_RC | \
17319 module_expsym_cmds_RC | \
17320 old_archive_from_expsyms_cmds_RC | \
17321 export_symbols_cmds_RC | \
17322 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17323 postinstall_cmds | postuninstall_cmds | \
17324 old_postinstall_cmds | old_postuninstall_cmds | \
17325 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17326 # Double-quote double-evaled strings.
17327 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17330 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17332 esac
17333 done
17335 case $lt_echo in
17336 *'\$0 --fallback-echo"')
17337 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17339 esac
17341 cfgfile="$ofile"
17343 cat <<__EOF__ >> "$cfgfile"
17344 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17346 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17348 # Shell to use when invoking shell scripts.
17349 SHELL=$lt_SHELL
17351 # Whether or not to build shared libraries.
17352 build_libtool_libs=$enable_shared
17354 # Whether or not to build static libraries.
17355 build_old_libs=$enable_static
17357 # Whether or not to add -lc for building shared libraries.
17358 build_libtool_need_lc=$archive_cmds_need_lc_RC
17360 # Whether or not to disallow shared libs when runtime libs are static
17361 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17363 # Whether or not to optimize for fast installation.
17364 fast_install=$enable_fast_install
17366 # The host system.
17367 host_alias=$host_alias
17368 host=$host
17369 host_os=$host_os
17371 # The build system.
17372 build_alias=$build_alias
17373 build=$build
17374 build_os=$build_os
17376 # An echo program that does not interpret backslashes.
17377 echo=$lt_echo
17379 # The archiver.
17380 AR=$lt_AR
17381 AR_FLAGS=$lt_AR_FLAGS
17383 # A C compiler.
17384 LTCC=$lt_LTCC
17386 # A language-specific compiler.
17387 CC=$lt_compiler_RC
17389 # Is the compiler the GNU C compiler?
17390 with_gcc=$GCC_RC
17392 # An ERE matcher.
17393 EGREP=$lt_EGREP
17395 # The linker used to build libraries.
17396 LD=$lt_LD_RC
17398 # Whether we need hard or soft links.
17399 LN_S=$lt_LN_S
17401 # A BSD-compatible nm program.
17402 NM=$lt_NM
17404 # A symbol stripping program
17405 STRIP=$lt_STRIP
17407 # Used to examine libraries when file_magic_cmd begins "file"
17408 MAGIC_CMD=$MAGIC_CMD
17410 # Used on cygwin: DLL creation program.
17411 DLLTOOL="$DLLTOOL"
17413 # Used on cygwin: object dumper.
17414 OBJDUMP="$OBJDUMP"
17416 # Used on cygwin: assembler.
17417 AS="$AS"
17419 # The name of the directory that contains temporary libtool files.
17420 objdir=$objdir
17422 # How to create reloadable object files.
17423 reload_flag=$lt_reload_flag
17424 reload_cmds=$lt_reload_cmds
17426 # How to pass a linker flag through the compiler.
17427 wl=$lt_lt_prog_compiler_wl_RC
17429 # Object file suffix (normally "o").
17430 objext="$ac_objext"
17432 # Old archive suffix (normally "a").
17433 libext="$libext"
17435 # Shared library suffix (normally ".so").
17436 shrext_cmds='$shrext_cmds'
17438 # Executable file suffix (normally "").
17439 exeext="$exeext"
17441 # Additional compiler flags for building library objects.
17442 pic_flag=$lt_lt_prog_compiler_pic_RC
17443 pic_mode=$pic_mode
17445 # What is the maximum length of a command?
17446 max_cmd_len=$lt_cv_sys_max_cmd_len
17448 # Does compiler simultaneously support -c and -o options?
17449 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17451 # Must we lock files when doing compilation?
17452 need_locks=$lt_need_locks
17454 # Do we need the lib prefix for modules?
17455 need_lib_prefix=$need_lib_prefix
17457 # Do we need a version for libraries?
17458 need_version=$need_version
17460 # Whether dlopen is supported.
17461 dlopen_support=$enable_dlopen
17463 # Whether dlopen of programs is supported.
17464 dlopen_self=$enable_dlopen_self
17466 # Whether dlopen of statically linked programs is supported.
17467 dlopen_self_static=$enable_dlopen_self_static
17469 # Compiler flag to prevent dynamic linking.
17470 link_static_flag=$lt_lt_prog_compiler_static_RC
17472 # Compiler flag to turn off builtin functions.
17473 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17475 # Compiler flag to allow reflexive dlopens.
17476 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17478 # Compiler flag to generate shared objects directly from archives.
17479 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17481 # Compiler flag to generate thread-safe objects.
17482 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17484 # Library versioning type.
17485 version_type=$version_type
17487 # Format of library name prefix.
17488 libname_spec=$lt_libname_spec
17490 # List of archive names. First name is the real one, the rest are links.
17491 # The last name is the one that the linker finds with -lNAME.
17492 library_names_spec=$lt_library_names_spec
17494 # The coded name of the library, if different from the real name.
17495 soname_spec=$lt_soname_spec
17497 # Commands used to build and install an old-style archive.
17498 RANLIB=$lt_RANLIB
17499 old_archive_cmds=$lt_old_archive_cmds_RC
17500 old_postinstall_cmds=$lt_old_postinstall_cmds
17501 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17503 # Create an old-style archive from a shared archive.
17504 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17506 # Create a temporary old-style archive to link instead of a shared archive.
17507 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17509 # Commands used to build and install a shared archive.
17510 archive_cmds=$lt_archive_cmds_RC
17511 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17512 postinstall_cmds=$lt_postinstall_cmds
17513 postuninstall_cmds=$lt_postuninstall_cmds
17515 # Commands used to build a loadable module (assumed same as above if empty)
17516 module_cmds=$lt_module_cmds_RC
17517 module_expsym_cmds=$lt_module_expsym_cmds_RC
17519 # Commands to strip libraries.
17520 old_striplib=$lt_old_striplib
17521 striplib=$lt_striplib
17523 # Dependencies to place before the objects being linked to create a
17524 # shared library.
17525 predep_objects=$lt_predep_objects_RC
17527 # Dependencies to place after the objects being linked to create a
17528 # shared library.
17529 postdep_objects=$lt_postdep_objects_RC
17531 # Dependencies to place before the objects being linked to create a
17532 # shared library.
17533 predeps=$lt_predeps_RC
17535 # Dependencies to place after the objects being linked to create a
17536 # shared library.
17537 postdeps=$lt_postdeps_RC
17539 # The library search path used internally by the compiler when linking
17540 # a shared library.
17541 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17543 # Method to check whether dependent libraries are shared objects.
17544 deplibs_check_method=$lt_deplibs_check_method
17546 # Command to use when deplibs_check_method == file_magic.
17547 file_magic_cmd=$lt_file_magic_cmd
17549 # Flag that allows shared libraries with undefined symbols to be built.
17550 allow_undefined_flag=$lt_allow_undefined_flag_RC
17552 # Flag that forces no undefined symbols.
17553 no_undefined_flag=$lt_no_undefined_flag_RC
17555 # Commands used to finish a libtool library installation in a directory.
17556 finish_cmds=$lt_finish_cmds
17558 # Same as above, but a single script fragment to be evaled but not shown.
17559 finish_eval=$lt_finish_eval
17561 # Take the output of nm and produce a listing of raw symbols and C names.
17562 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17564 # Transform the output of nm in a proper C declaration
17565 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17567 # Transform the output of nm in a C name address pair
17568 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17570 # This is the shared library runtime path variable.
17571 runpath_var=$runpath_var
17573 # This is the shared library path variable.
17574 shlibpath_var=$shlibpath_var
17576 # Is shlibpath searched before the hard-coded library search path?
17577 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17579 # How to hardcode a shared library path into an executable.
17580 hardcode_action=$hardcode_action_RC
17582 # Whether we should hardcode library paths into libraries.
17583 hardcode_into_libs=$hardcode_into_libs
17585 # Flag to hardcode \$libdir into a binary during linking.
17586 # This must work even if \$libdir does not exist.
17587 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17589 # If ld is used when linking, flag to hardcode \$libdir into
17590 # a binary during linking. This must work even if \$libdir does
17591 # not exist.
17592 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17594 # Whether we need a single -rpath flag with a separated argument.
17595 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17597 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17598 # resulting binary.
17599 hardcode_direct=$hardcode_direct_RC
17601 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17602 # resulting binary.
17603 hardcode_minus_L=$hardcode_minus_L_RC
17605 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17606 # the resulting binary.
17607 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17609 # Set to yes if building a shared library automatically hardcodes DIR into the library
17610 # and all subsequent libraries and executables linked against it.
17611 hardcode_automatic=$hardcode_automatic_RC
17613 # Variables whose values should be saved in libtool wrapper scripts and
17614 # restored at relink time.
17615 variables_saved_for_relink="$variables_saved_for_relink"
17617 # Whether libtool must link a program against all its dependency libraries.
17618 link_all_deplibs=$link_all_deplibs_RC
17620 # Compile-time system search path for libraries
17621 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17623 # Run-time system search path for libraries
17624 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17626 # Fix the shell variable \$srcfile for the compiler.
17627 fix_srcfile_path="$fix_srcfile_path_RC"
17629 # Set to yes if exported symbols are required.
17630 always_export_symbols=$always_export_symbols_RC
17632 # The commands to list exported symbols.
17633 export_symbols_cmds=$lt_export_symbols_cmds_RC
17635 # The commands to extract the exported symbol list from a shared archive.
17636 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17638 # Symbols that should not be listed in the preloaded symbols.
17639 exclude_expsyms=$lt_exclude_expsyms_RC
17641 # Symbols that must always be exported.
17642 include_expsyms=$lt_include_expsyms_RC
17644 # ### END LIBTOOL TAG CONFIG: $tagname
17646 __EOF__
17649 else
17650 # If there is no Makefile yet, we rely on a make rule to execute
17651 # `config.status --recheck' to rerun these tests and create the
17652 # libtool script then.
17653 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17654 if test -f "$ltmain_in"; then
17655 test -f Makefile && make "$ltmain"
17660 ac_ext=c
17661 ac_cpp='$CPP $CPPFLAGS'
17662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17666 CC="$lt_save_CC"
17671 as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5
17673 esac
17675 # Append the new tag name to the list of available tags.
17676 if test -n "$tagname" ; then
17677 available_tags="$available_tags $tagname"
17680 done
17681 IFS="$lt_save_ifs"
17683 # Now substitute the updated list of available tags.
17684 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
17685 mv "${ofile}T" "$ofile"
17686 chmod +x "$ofile"
17687 else
17688 rm -f "${ofile}T"
17689 as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5
17695 # This can be used to rebuild libtool when needed
17696 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
17698 # Always use our own libtool.
17699 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
17701 # Prevent multiple expansion
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
17713 $as_echo_n "checking whether ln -s works... " >&6; }
17714 LN_S=$as_ln_s
17715 if test "$LN_S" = "ln -s"; then
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17717 $as_echo "yes" >&6; }
17718 else
17719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
17720 $as_echo "no, using $LN_S" >&6; }
17723 if test $ac_cv_c_compiler_gnu = yes; then
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
17725 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
17726 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
17727 $as_echo_n "(cached) " >&6
17728 else
17729 ac_pattern="Autoconf.*'x'"
17730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17731 /* end confdefs.h. */
17732 #include <sgtty.h>
17733 Autoconf TIOCGETP
17734 _ACEOF
17735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17736 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
17737 ac_cv_prog_gcc_traditional=yes
17738 else
17739 ac_cv_prog_gcc_traditional=no
17741 rm -f conftest*
17744 if test $ac_cv_prog_gcc_traditional = no; then
17745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17746 /* end confdefs.h. */
17747 #include <termio.h>
17748 Autoconf TCGETA
17749 _ACEOF
17750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17751 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
17752 ac_cv_prog_gcc_traditional=yes
17754 rm -f conftest*
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
17759 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
17760 if test $ac_cv_prog_gcc_traditional = yes; then
17761 CC="$CC -traditional"
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
17766 $as_echo_n "checking for working volatile... " >&6; }
17767 if test "${ac_cv_c_volatile+set}" = set; then :
17768 $as_echo_n "(cached) " >&6
17769 else
17770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17771 /* end confdefs.h. */
17774 main ()
17777 volatile int x;
17778 int * volatile y = (int *) 0;
17779 return !x && !y;
17781 return 0;
17783 _ACEOF
17784 if ac_fn_c_try_compile "$LINENO"; then :
17785 ac_cv_c_volatile=yes
17786 else
17787 ac_cv_c_volatile=no
17789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
17792 $as_echo "$ac_cv_c_volatile" >&6; }
17793 if test $ac_cv_c_volatile = no; then
17795 $as_echo "#define volatile /**/" >>confdefs.h
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
17800 $as_echo_n "checking for library containing strerror... " >&6; }
17801 if test "${ac_cv_search_strerror+set}" = set; then :
17802 $as_echo_n "(cached) " >&6
17803 else
17804 ac_func_search_save_LIBS=$LIBS
17805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17806 /* end confdefs.h. */
17808 /* Override any GCC internal prototype to avoid an error.
17809 Use char because int might match the return type of a GCC
17810 builtin and then its argument prototype would still apply. */
17811 #ifdef __cplusplus
17812 extern "C"
17813 #endif
17814 char strerror ();
17816 main ()
17818 return strerror ();
17820 return 0;
17822 _ACEOF
17823 for ac_lib in '' cposix; do
17824 if test -z "$ac_lib"; then
17825 ac_res="none required"
17826 else
17827 ac_res=-l$ac_lib
17828 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17830 if ac_fn_c_try_link "$LINENO"; then :
17831 ac_cv_search_strerror=$ac_res
17833 rm -f core conftest.err conftest.$ac_objext \
17834 conftest$ac_exeext
17835 if test "${ac_cv_search_strerror+set}" = set; then :
17836 break
17838 done
17839 if test "${ac_cv_search_strerror+set}" = set; then :
17841 else
17842 ac_cv_search_strerror=no
17844 rm conftest.$ac_ext
17845 LIBS=$ac_func_search_save_LIBS
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
17848 $as_echo "$ac_cv_search_strerror" >&6; }
17849 ac_res=$ac_cv_search_strerror
17850 if test "$ac_res" != no; then :
17851 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17855 # Extract the first word of "sh", so it can be a program name with args.
17856 set dummy sh; ac_word=$2
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17858 $as_echo_n "checking for $ac_word... " >&6; }
17859 if test "${ac_cv_path_PATH_SH+set}" = set; then :
17860 $as_echo_n "(cached) " >&6
17861 else
17862 case $PATH_SH in
17863 [\\/]* | ?:[\\/]*)
17864 ac_cv_path_PATH_SH="$PATH_SH" # Let the user override the test with a path.
17867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17868 for as_dir in $PATH
17870 IFS=$as_save_IFS
17871 test -z "$as_dir" && as_dir=.
17872 for ac_exec_ext in '' $ac_executable_extensions; do
17873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17874 ac_cv_path_PATH_SH="$as_dir/$ac_word$ac_exec_ext"
17875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17876 break 2
17878 done
17879 done
17880 IFS=$as_save_IFS
17883 esac
17885 PATH_SH=$ac_cv_path_PATH_SH
17886 if test -n "$PATH_SH"; then
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SH" >&5
17888 $as_echo "$PATH_SH" >&6; }
17889 else
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17891 $as_echo "no" >&6; }
17895 # Extract the first word of "perl", so it can be a program name with args.
17896 set dummy perl; ac_word=$2
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17898 $as_echo_n "checking for $ac_word... " >&6; }
17899 if test "${ac_cv_path_PATH_PERL+set}" = set; then :
17900 $as_echo_n "(cached) " >&6
17901 else
17902 case $PATH_PERL in
17903 [\\/]* | ?:[\\/]*)
17904 ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
17907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17908 for as_dir in $PATH
17910 IFS=$as_save_IFS
17911 test -z "$as_dir" && as_dir=.
17912 for ac_exec_ext in '' $ac_executable_extensions; do
17913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17914 ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
17915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17916 break 2
17918 done
17919 done
17920 IFS=$as_save_IFS
17923 esac
17925 PATH_PERL=$ac_cv_path_PATH_PERL
17926 if test -n "$PATH_PERL"; then
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5
17928 $as_echo "$PATH_PERL" >&6; }
17929 else
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17931 $as_echo "no" >&6; }
17937 # Check whether --with-net-snmp-config was given.
17938 if test "${with_net_snmp_config+set}" = set; then :
17939 withval=$with_net_snmp_config; ans=$withval
17940 else
17941 ans=yes
17944 case "$ans" in
17945 no) ;;
17946 yes)
17947 ans=net-snmp-config
17949 /*) ;;
17950 */*)
17951 as_fn_error "--with-net-snmp-config takes either a name or an absolute path" "$LINENO" 5
17955 esac
17956 PROG_NET_SNMP_CONFIG=$ans
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
17958 $as_echo_n "checking for net-snmp-config path... " >&6; }
17959 case "$PROG_NET_SNMP_CONFIG" in
17960 no) ;;
17962 PATH_NET_SNMP_CONFIG=$PROG_NET_SNMP_CONFIG
17964 *) # Extract the first word of "$PROG_NET_SNMP_CONFIG", so it can be a program name with args.
17965 set dummy $PROG_NET_SNMP_CONFIG; ac_word=$2
17966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17967 $as_echo_n "checking for $ac_word... " >&6; }
17968 if test "${ac_cv_path_PATH_NET_SNMP_CONFIG+set}" = set; then :
17969 $as_echo_n "(cached) " >&6
17970 else
17971 case $PATH_NET_SNMP_CONFIG in
17972 [\\/]* | ?:[\\/]*)
17973 ac_cv_path_PATH_NET_SNMP_CONFIG="$PATH_NET_SNMP_CONFIG" # Let the user override the test with a path.
17976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17977 for as_dir in $PATH
17979 IFS=$as_save_IFS
17980 test -z "$as_dir" && as_dir=.
17981 for ac_exec_ext in '' $ac_executable_extensions; do
17982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17983 ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17985 break 2
17987 done
17988 done
17989 IFS=$as_save_IFS
17992 esac
17994 PATH_NET_SNMP_CONFIG=$ac_cv_path_PATH_NET_SNMP_CONFIG
17995 if test -n "$PATH_NET_SNMP_CONFIG"; then
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
17997 $as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
17998 else
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18000 $as_echo "no" >&6; }
18005 esac
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
18007 $as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
18009 case "$host" in
18010 *-*-vxworks*)
18011 ac_link="$ac_link $VX_KERNEL"
18013 esac
18017 case "$host" in
18018 *-pc-cygwin*)
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ladvapi32" >&5
18020 $as_echo_n "checking for main in -ladvapi32... " >&6; }
18021 if test "${ac_cv_lib_advapi32_main+set}" = set; then :
18022 $as_echo_n "(cached) " >&6
18023 else
18024 ac_check_lib_save_LIBS=$LIBS
18025 LIBS="-ladvapi32 $LIBS"
18026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18027 /* end confdefs.h. */
18031 main ()
18033 return main ();
18035 return 0;
18037 _ACEOF
18038 if ac_fn_c_try_link "$LINENO"; then :
18039 ac_cv_lib_advapi32_main=yes
18040 else
18041 ac_cv_lib_advapi32_main=no
18043 rm -f core conftest.err conftest.$ac_objext \
18044 conftest$ac_exeext conftest.$ac_ext
18045 LIBS=$ac_check_lib_save_LIBS
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_advapi32_main" >&5
18048 $as_echo "$ac_cv_lib_advapi32_main" >&6; }
18049 if test "x$ac_cv_lib_advapi32_main" = x""yes; then :
18050 cat >>confdefs.h <<_ACEOF
18051 #define HAVE_LIBADVAPI32 1
18052 _ACEOF
18054 LIBS="-ladvapi32 $LIBS"
18059 esac
18061 ac_fn_c_check_func "$LINENO" "gethostent" "ac_cv_func_gethostent"
18062 if test "x$ac_cv_func_gethostent" = x""yes; then :
18064 else
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5
18066 $as_echo_n "checking for library containing gethostent... " >&6; }
18067 if test "${ac_cv_search_gethostent+set}" = set; then :
18068 $as_echo_n "(cached) " >&6
18069 else
18070 ac_func_search_save_LIBS=$LIBS
18071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18072 /* end confdefs.h. */
18074 /* Override any GCC internal prototype to avoid an error.
18075 Use char because int might match the return type of a GCC
18076 builtin and then its argument prototype would still apply. */
18077 #ifdef __cplusplus
18078 extern "C"
18079 #endif
18080 char gethostent ();
18082 main ()
18084 return gethostent ();
18086 return 0;
18088 _ACEOF
18089 for ac_lib in '' nsl; do
18090 if test -z "$ac_lib"; then
18091 ac_res="none required"
18092 else
18093 ac_res=-l$ac_lib
18094 LIBS="-l$ac_lib $libxnet -lsocket $ac_func_search_save_LIBS"
18096 if ac_fn_c_try_link "$LINENO"; then :
18097 ac_cv_search_gethostent=$ac_res
18099 rm -f core conftest.err conftest.$ac_objext \
18100 conftest$ac_exeext
18101 if test "${ac_cv_search_gethostent+set}" = set; then :
18102 break
18104 done
18105 if test "${ac_cv_search_gethostent+set}" = set; then :
18107 else
18108 ac_cv_search_gethostent=no
18110 rm conftest.$ac_ext
18111 LIBS=$ac_func_search_save_LIBS
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5
18114 $as_echo "$ac_cv_search_gethostent" >&6; }
18115 ac_res=$ac_cv_search_gethostent
18116 if test "$ac_res" != no; then :
18117 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18123 ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog"
18124 if test "x$ac_cv_func_openlog" = x""yes; then :
18126 else
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
18128 $as_echo_n "checking for library containing openlog... " >&6; }
18129 if test "${ac_cv_search_openlog+set}" = set; then :
18130 $as_echo_n "(cached) " >&6
18131 else
18132 ac_func_search_save_LIBS=$LIBS
18133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18134 /* end confdefs.h. */
18136 /* Override any GCC internal prototype to avoid an error.
18137 Use char because int might match the return type of a GCC
18138 builtin and then its argument prototype would still apply. */
18139 #ifdef __cplusplus
18140 extern "C"
18141 #endif
18142 char openlog ();
18144 main ()
18146 return openlog ();
18148 return 0;
18150 _ACEOF
18151 for ac_lib in '' gen; do
18152 if test -z "$ac_lib"; then
18153 ac_res="none required"
18154 else
18155 ac_res=-l$ac_lib
18156 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18158 if ac_fn_c_try_link "$LINENO"; then :
18159 ac_cv_search_openlog=$ac_res
18161 rm -f core conftest.err conftest.$ac_objext \
18162 conftest$ac_exeext
18163 if test "${ac_cv_search_openlog+set}" = set; then :
18164 break
18166 done
18167 if test "${ac_cv_search_openlog+set}" = set; then :
18169 else
18170 ac_cv_search_openlog=no
18172 rm conftest.$ac_ext
18173 LIBS=$ac_func_search_save_LIBS
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
18176 $as_echo "$ac_cv_search_openlog" >&6; }
18177 ac_res=$ac_cv_search_openlog
18178 if test "$ac_res" != no; then :
18179 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18181 else
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
18183 $as_echo_n "checking for library containing openlog... " >&6; }
18184 if test "${ac_cv_search_openlog+set}" = set; then :
18185 $as_echo_n "(cached) " >&6
18186 else
18187 ac_func_search_save_LIBS=$LIBS
18188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18189 /* end confdefs.h. */
18191 /* Override any GCC internal prototype to avoid an error.
18192 Use char because int might match the return type of a GCC
18193 builtin and then its argument prototype would still apply. */
18194 #ifdef __cplusplus
18195 extern "C"
18196 #endif
18197 char openlog ();
18199 main ()
18201 return openlog ();
18203 return 0;
18205 _ACEOF
18206 for ac_lib in '' syslog; do
18207 if test -z "$ac_lib"; then
18208 ac_res="none required"
18209 else
18210 ac_res=-l$ac_lib
18211 LIBS="-l$ac_lib $libxnet -lsocket $ac_func_search_save_LIBS"
18213 if ac_fn_c_try_link "$LINENO"; then :
18214 ac_cv_search_openlog=$ac_res
18216 rm -f core conftest.err conftest.$ac_objext \
18217 conftest$ac_exeext
18218 if test "${ac_cv_search_openlog+set}" = set; then :
18219 break
18221 done
18222 if test "${ac_cv_search_openlog+set}" = set; then :
18224 else
18225 ac_cv_search_openlog=no
18227 rm conftest.$ac_ext
18228 LIBS=$ac_func_search_save_LIBS
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
18231 $as_echo "$ac_cv_search_openlog" >&6; }
18232 ac_res=$ac_cv_search_openlog
18233 if test "$ac_res" != no; then :
18234 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
18243 $as_echo_n "checking for library containing MD5Init... " >&6; }
18244 if test "${ac_cv_search_MD5Init+set}" = set; then :
18245 $as_echo_n "(cached) " >&6
18246 else
18247 ac_func_search_save_LIBS=$LIBS
18248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18249 /* end confdefs.h. */
18251 /* Override any GCC internal prototype to avoid an error.
18252 Use char because int might match the return type of a GCC
18253 builtin and then its argument prototype would still apply. */
18254 #ifdef __cplusplus
18255 extern "C"
18256 #endif
18257 char MD5Init ();
18259 main ()
18261 return MD5Init ();
18263 return 0;
18265 _ACEOF
18266 for ac_lib in '' md5 md; do
18267 if test -z "$ac_lib"; then
18268 ac_res="none required"
18269 else
18270 ac_res=-l$ac_lib
18271 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18273 if ac_fn_c_try_link "$LINENO"; then :
18274 ac_cv_search_MD5Init=$ac_res
18276 rm -f core conftest.err conftest.$ac_objext \
18277 conftest$ac_exeext
18278 if test "${ac_cv_search_MD5Init+set}" = set; then :
18279 break
18281 done
18282 if test "${ac_cv_search_MD5Init+set}" = set; then :
18284 else
18285 ac_cv_search_MD5Init=no
18287 rm conftest.$ac_ext
18288 LIBS=$ac_func_search_save_LIBS
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
18291 $as_echo "$ac_cv_search_MD5Init" >&6; }
18292 ac_res=$ac_cv_search_MD5Init
18293 if test "$ac_res" != no; then :
18294 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18298 for ac_func in MD5Init
18299 do :
18300 ac_fn_c_check_func "$LINENO" "MD5Init" "ac_cv_func_MD5Init"
18301 if test "x$ac_cv_func_MD5Init" = x""yes; then :
18302 cat >>confdefs.h <<_ACEOF
18303 #define HAVE_MD5INIT 1
18304 _ACEOF
18307 done
18311 NTP_ORIG_LIBS="$LIBS"
18313 # Check whether --with-lineeditlibs was given.
18314 if test "${with_lineeditlibs+set}" = set; then :
18315 withval=$with_lineeditlibs; use_lineeditlibs="$withval"
18316 else
18317 use_lineeditlibs="edit,editline"
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
18322 $as_echo_n "checking line editing libraries... " >&6; }
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
18324 $as_echo "$use_lineeditlibs" >&6; }
18325 case "$use_lineeditlibs" in
18327 ntp_lib_lineedit=no
18330 for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
18331 for term_lib in "" termcap curses ncurses; do
18332 case "$term_lib" in
18334 TRY_LIB="-l$lineedit_lib"
18336 *) TRY_LIB="-l$lineedit_lib -l$term_lib"
18337 esac # $term_lib
18338 LIBS="$NTP_ORIG_LIBS $TRY_LIB"
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
18340 $as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
18341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18342 /* end confdefs.h. */
18344 /* Override any GCC internal prototype to avoid an error.
18345 Use char because int might match the return type of a GCC
18346 builtin and then its argument prototype would still apply. */
18347 #ifdef __cplusplus
18348 extern "C"
18349 #endif
18350 char readline ();
18352 main ()
18354 return readline ();
18356 return 0;
18358 _ACEOF
18359 if ac_fn_c_try_link "$LINENO"; then :
18360 ntp_lib_lineedit="$TRY_LIB"
18362 rm -f core conftest.err conftest.$ac_objext \
18363 conftest$ac_exeext conftest.$ac_ext
18364 case "$ntp_lib_lineedit" in
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18367 $as_echo "no" >&6; }
18370 # Use readline()
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18372 $as_echo "yes" >&6; }
18373 break
18374 esac # $ntp_lib_lineedit
18375 case "$term_lib" in
18377 # do not try el_gets without a terminal library
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
18381 $as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
18382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18383 /* end confdefs.h. */
18385 /* Override any GCC internal prototype to avoid an error.
18386 Use char because int might match the return type of a GCC
18387 builtin and then its argument prototype would still apply. */
18388 #ifdef __cplusplus
18389 extern "C"
18390 #endif
18391 char el_gets ();
18393 main ()
18395 return el_gets ();
18397 return 0;
18399 _ACEOF
18400 if ac_fn_c_try_link "$LINENO"; then :
18401 ntp_lib_lineedit="$TRY_LIB"
18403 rm -f core conftest.err conftest.$ac_objext \
18404 conftest$ac_exeext conftest.$ac_ext
18405 case "$ntp_lib_lineedit" in
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18408 $as_echo "no" >&6; }
18410 *) # Use el_gets()
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18412 $as_echo "yes" >&6; }
18413 break
18415 esac # $ntp_lib_lineedit
18416 esac # $term_lib
18417 done
18418 case "$ntp_lib_lineedit" in
18419 '') ;;
18420 *) break ;;
18421 esac
18422 done
18423 LIBS="$NTP_ORIG_LIBS"
18425 esac # $use_lineeditlibs
18427 case "$ntp_lib_lineedit" in
18429 ntp_lib_lineedit="no"
18434 EDITLINE_LIBS="$ntp_lib_lineedit"
18437 esac # $ntp_lib_lineedit
18439 case "$ntp_lib_lineedit" in
18443 for ac_header in readline.h readline/readline.h histedit.h
18444 do :
18445 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18446 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18447 eval as_val=\$$as_ac_Header
18448 if test "x$as_val" = x""yes; then :
18449 cat >>confdefs.h <<_ACEOF
18450 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18451 _ACEOF
18455 done
18457 for ac_header in history.h readline/history.h
18458 do :
18459 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18460 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18461 eval as_val=\$$as_ac_Header
18462 if test "x$as_val" = x""yes; then :
18463 cat >>confdefs.h <<_ACEOF
18464 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18465 _ACEOF
18469 done
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
18473 $as_echo_n "checking whether readline supports history... " >&6; }
18475 ntp_lib_lineedit_history="no"
18476 ORIG_LIBS="$LIBS"
18477 LIBS="$ORIG_LIBS $ntp_lib_lineedit"
18478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18479 /* end confdefs.h. */
18481 /* Override any GCC internal prototype to avoid an error.
18482 Use char because int might match the return type of a GCC
18483 builtin and then its argument prototype would still apply. */
18484 #ifdef __cplusplus
18485 extern "C"
18486 #endif
18487 char add_history ();
18489 main ()
18491 return add_history ();
18493 return 0;
18495 _ACEOF
18496 if ac_fn_c_try_link "$LINENO"; then :
18497 ntp_lib_lineedit_history="yes"
18499 rm -f core conftest.err conftest.$ac_objext \
18500 conftest$ac_exeext conftest.$ac_ext
18501 LIBS="$ORIG_LIBS"
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
18504 $as_echo "$ntp_lib_lineedit_history" >&6; }
18506 case "$ntp_lib_lineedit_history" in
18507 yes)
18509 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
18511 esac # $ntp_lib_lineedit_history
18512 esac # $ntp_lib_lineedit
18513 $as_unset NTP_ORIG_LIBS TRY_LIB use_lineeditlibs
18517 case "$host" in
18518 *-*-*linux*) ;;
18519 *-*-osf4*) ;;
18520 *-*-osf5*) ;;
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setscheduler in -lrt" >&5
18523 $as_echo_n "checking for sched_setscheduler in -lrt... " >&6; }
18524 if test "${ac_cv_lib_rt_sched_setscheduler+set}" = set; then :
18525 $as_echo_n "(cached) " >&6
18526 else
18527 ac_check_lib_save_LIBS=$LIBS
18528 LIBS="-lrt $LIBS"
18529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18530 /* end confdefs.h. */
18532 /* Override any GCC internal prototype to avoid an error.
18533 Use char because int might match the return type of a GCC
18534 builtin and then its argument prototype would still apply. */
18535 #ifdef __cplusplus
18536 extern "C"
18537 #endif
18538 char sched_setscheduler ();
18540 main ()
18542 return sched_setscheduler ();
18544 return 0;
18546 _ACEOF
18547 if ac_fn_c_try_link "$LINENO"; then :
18548 ac_cv_lib_rt_sched_setscheduler=yes
18549 else
18550 ac_cv_lib_rt_sched_setscheduler=no
18552 rm -f core conftest.err conftest.$ac_objext \
18553 conftest$ac_exeext conftest.$ac_ext
18554 LIBS=$ac_check_lib_save_LIBS
18556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_setscheduler" >&5
18557 $as_echo "$ac_cv_lib_rt_sched_setscheduler" >&6; }
18558 if test "x$ac_cv_lib_rt_sched_setscheduler" = x""yes; then :
18559 cat >>confdefs.h <<_ACEOF
18560 #define HAVE_LIBRT 1
18561 _ACEOF
18563 LIBS="-lrt $LIBS"
18565 else
18566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setscheduler in -lposix4" >&5
18567 $as_echo_n "checking for sched_setscheduler in -lposix4... " >&6; }
18568 if test "${ac_cv_lib_posix4_sched_setscheduler+set}" = set; then :
18569 $as_echo_n "(cached) " >&6
18570 else
18571 ac_check_lib_save_LIBS=$LIBS
18572 LIBS="-lposix4 $LIBS"
18573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18574 /* end confdefs.h. */
18576 /* Override any GCC internal prototype to avoid an error.
18577 Use char because int might match the return type of a GCC
18578 builtin and then its argument prototype would still apply. */
18579 #ifdef __cplusplus
18580 extern "C"
18581 #endif
18582 char sched_setscheduler ();
18584 main ()
18586 return sched_setscheduler ();
18588 return 0;
18590 _ACEOF
18591 if ac_fn_c_try_link "$LINENO"; then :
18592 ac_cv_lib_posix4_sched_setscheduler=yes
18593 else
18594 ac_cv_lib_posix4_sched_setscheduler=no
18596 rm -f core conftest.err conftest.$ac_objext \
18597 conftest$ac_exeext conftest.$ac_ext
18598 LIBS=$ac_check_lib_save_LIBS
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_setscheduler" >&5
18601 $as_echo "$ac_cv_lib_posix4_sched_setscheduler" >&6; }
18602 if test "x$ac_cv_lib_posix4_sched_setscheduler" = x""yes; then :
18603 cat >>confdefs.h <<_ACEOF
18604 #define HAVE_LIBPOSIX4 1
18605 _ACEOF
18607 LIBS="-lposix4 $LIBS"
18614 esac
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
18617 $as_echo_n "checking for library containing setsockopt... " >&6; }
18618 if test "${ac_cv_search_setsockopt+set}" = set; then :
18619 $as_echo_n "(cached) " >&6
18620 else
18621 ac_func_search_save_LIBS=$LIBS
18622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18623 /* end confdefs.h. */
18625 /* Override any GCC internal prototype to avoid an error.
18626 Use char because int might match the return type of a GCC
18627 builtin and then its argument prototype would still apply. */
18628 #ifdef __cplusplus
18629 extern "C"
18630 #endif
18631 char setsockopt ();
18633 main ()
18635 return setsockopt ();
18637 return 0;
18639 _ACEOF
18640 for ac_lib in '' socket xnet; do
18641 if test -z "$ac_lib"; then
18642 ac_res="none required"
18643 else
18644 ac_res=-l$ac_lib
18645 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18647 if ac_fn_c_try_link "$LINENO"; then :
18648 ac_cv_search_setsockopt=$ac_res
18650 rm -f core conftest.err conftest.$ac_objext \
18651 conftest$ac_exeext
18652 if test "${ac_cv_search_setsockopt+set}" = set; then :
18653 break
18655 done
18656 if test "${ac_cv_search_setsockopt+set}" = set; then :
18658 else
18659 ac_cv_search_setsockopt=no
18661 rm conftest.$ac_ext
18662 LIBS=$ac_func_search_save_LIBS
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
18665 $as_echo "$ac_cv_search_setsockopt" >&6; }
18666 ac_res=$ac_cv_search_setsockopt
18667 if test "$ac_res" != no; then :
18668 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
18673 $as_echo_n "checking for library containing res_init... " >&6; }
18674 if test "${ac_cv_search_res_init+set}" = set; then :
18675 $as_echo_n "(cached) " >&6
18676 else
18677 ac_func_search_save_LIBS=$LIBS
18678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18679 /* end confdefs.h. */
18681 /* Override any GCC internal prototype to avoid an error.
18682 Use char because int might match the return type of a GCC
18683 builtin and then its argument prototype would still apply. */
18684 #ifdef __cplusplus
18685 extern "C"
18686 #endif
18687 char res_init ();
18689 main ()
18691 return res_init ();
18693 return 0;
18695 _ACEOF
18696 for ac_lib in '' resolv; do
18697 if test -z "$ac_lib"; then
18698 ac_res="none required"
18699 else
18700 ac_res=-l$ac_lib
18701 LIBS="-l$ac_lib -lsocket -lnsl $ac_func_search_save_LIBS"
18703 if ac_fn_c_try_link "$LINENO"; then :
18704 ac_cv_search_res_init=$ac_res
18706 rm -f core conftest.err conftest.$ac_objext \
18707 conftest$ac_exeext
18708 if test "${ac_cv_search_res_init+set}" = set; then :
18709 break
18711 done
18712 if test "${ac_cv_search_res_init+set}" = set; then :
18714 else
18715 ac_cv_search_res_init=no
18717 rm conftest.$ac_ext
18718 LIBS=$ac_func_search_save_LIBS
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
18721 $as_echo "$ac_cv_search_res_init" >&6; }
18722 ac_res=$ac_cv_search_res_init
18723 if test "$ac_res" != no; then :
18724 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18728 for ac_func in res_init __res_init
18729 do :
18730 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18731 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18732 eval as_val=\$$as_ac_var
18733 if test "x$as_val" = x""yes; then :
18734 cat >>confdefs.h <<_ACEOF
18735 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18736 _ACEOF
18739 done
18742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18743 $as_echo_n "checking for ANSI C header files... " >&6; }
18744 if test "${ac_cv_header_stdc+set}" = set; then :
18745 $as_echo_n "(cached) " >&6
18746 else
18747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18748 /* end confdefs.h. */
18749 #include <stdlib.h>
18750 #include <stdarg.h>
18751 #include <string.h>
18752 #include <float.h>
18755 main ()
18759 return 0;
18761 _ACEOF
18762 if ac_fn_c_try_compile "$LINENO"; then :
18763 ac_cv_header_stdc=yes
18764 else
18765 ac_cv_header_stdc=no
18767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18769 if test $ac_cv_header_stdc = yes; then
18770 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18772 /* end confdefs.h. */
18773 #include <string.h>
18775 _ACEOF
18776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18777 $EGREP "memchr" >/dev/null 2>&1; then :
18779 else
18780 ac_cv_header_stdc=no
18782 rm -f conftest*
18786 if test $ac_cv_header_stdc = yes; then
18787 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18789 /* end confdefs.h. */
18790 #include <stdlib.h>
18792 _ACEOF
18793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18794 $EGREP "free" >/dev/null 2>&1; then :
18796 else
18797 ac_cv_header_stdc=no
18799 rm -f conftest*
18803 if test $ac_cv_header_stdc = yes; then
18804 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18805 if test "$cross_compiling" = yes; then :
18807 else
18808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18809 /* end confdefs.h. */
18810 #include <ctype.h>
18811 #include <stdlib.h>
18812 #if ((' ' & 0x0FF) == 0x020)
18813 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18814 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18815 #else
18816 # define ISLOWER(c) \
18817 (('a' <= (c) && (c) <= 'i') \
18818 || ('j' <= (c) && (c) <= 'r') \
18819 || ('s' <= (c) && (c) <= 'z'))
18820 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18821 #endif
18823 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18825 main ()
18827 int i;
18828 for (i = 0; i < 256; i++)
18829 if (XOR (islower (i), ISLOWER (i))
18830 || toupper (i) != TOUPPER (i))
18831 return 2;
18832 return 0;
18834 _ACEOF
18835 if ac_fn_c_try_run "$LINENO"; then :
18837 else
18838 ac_cv_header_stdc=no
18840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18841 conftest.$ac_objext conftest.beam conftest.$ac_ext
18846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18847 $as_echo "$ac_cv_header_stdc" >&6; }
18848 if test $ac_cv_header_stdc = yes; then
18850 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
18854 for ac_header in bstring.h
18855 do :
18856 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
18857 if test "x$ac_cv_header_bstring_h" = x""yes; then :
18858 cat >>confdefs.h <<_ACEOF
18859 #define HAVE_BSTRING_H 1
18860 _ACEOF
18864 done
18866 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
18867 if test "x$ac_cv_header_dns_sd_h" = x""yes; then :
18868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DNSServiceRegister in -ldns_sd" >&5
18869 $as_echo_n "checking for DNSServiceRegister in -ldns_sd... " >&6; }
18870 if test "${ac_cv_lib_dns_sd_DNSServiceRegister+set}" = set; then :
18871 $as_echo_n "(cached) " >&6
18872 else
18873 ac_check_lib_save_LIBS=$LIBS
18874 LIBS="-ldns_sd $LIBS"
18875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18876 /* end confdefs.h. */
18878 /* Override any GCC internal prototype to avoid an error.
18879 Use char because int might match the return type of a GCC
18880 builtin and then its argument prototype would still apply. */
18881 #ifdef __cplusplus
18882 extern "C"
18883 #endif
18884 char DNSServiceRegister ();
18886 main ()
18888 return DNSServiceRegister ();
18890 return 0;
18892 _ACEOF
18893 if ac_fn_c_try_link "$LINENO"; then :
18894 ac_cv_lib_dns_sd_DNSServiceRegister=yes
18895 else
18896 ac_cv_lib_dns_sd_DNSServiceRegister=no
18898 rm -f core conftest.err conftest.$ac_objext \
18899 conftest$ac_exeext conftest.$ac_ext
18900 LIBS=$ac_check_lib_save_LIBS
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dns_sd_DNSServiceRegister" >&5
18903 $as_echo "$ac_cv_lib_dns_sd_DNSServiceRegister" >&6; }
18904 if test "x$ac_cv_lib_dns_sd_DNSServiceRegister" = x""yes; then :
18906 $as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h
18913 case "$ac_cv_lib_dns_sd_DNSServiceRegister" in
18914 yes) LIBS="-ldns_sd $LIBS" ;;
18915 esac
18916 for ac_header in errno.h fcntl.h ieeefp.h kvm.h math.h
18917 do :
18918 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18919 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18920 eval as_val=\$$as_ac_Header
18921 if test "x$as_val" = x""yes; then :
18922 cat >>confdefs.h <<_ACEOF
18923 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18924 _ACEOF
18928 done
18931 for ac_header in md5.h
18932 do :
18933 ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "#if HAVE_SYS_TYPES_H
18934 #include <sys/types.h>
18935 #endif
18938 if test "x$ac_cv_header_md5_h" = x""yes; then :
18939 cat >>confdefs.h <<_ACEOF
18940 #define HAVE_MD5_H 1
18941 _ACEOF
18945 done
18947 for ac_header in memory.h netdb.h poll.h
18948 do :
18949 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18950 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18951 eval as_val=\$$as_ac_Header
18952 if test "x$as_val" = x""yes; then :
18953 cat >>confdefs.h <<_ACEOF
18954 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18955 _ACEOF
18959 done
18961 for ac_header in sched.h sgtty.h stdlib.h string.h termio.h
18962 do :
18963 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18964 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18965 eval as_val=\$$as_ac_Header
18966 if test "x$as_val" = x""yes; then :
18967 cat >>confdefs.h <<_ACEOF
18968 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18969 _ACEOF
18973 done
18975 for ac_header in termios.h timepps.h timex.h unistd.h
18976 do :
18977 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18978 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18979 eval as_val=\$$as_ac_Header
18980 if test "x$as_val" = x""yes; then :
18981 cat >>confdefs.h <<_ACEOF
18982 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18983 _ACEOF
18987 done
18990 case "$host" in
18991 *-*-aix*)
18992 for ac_header in utmpx.h
18993 do :
18994 ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
18995 if test "x$ac_cv_header_utmpx_h" = x""yes; then :
18996 cat >>confdefs.h <<_ACEOF
18997 #define HAVE_UTMPX_H 1
18998 _ACEOF
19002 done
19004 case "$ac_cv_header_utmpx_h" in
19005 yes) ;;
19006 *) for ac_header in utmp.h
19007 do :
19008 ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
19009 if test "x$ac_cv_header_utmp_h" = x""yes; then :
19010 cat >>confdefs.h <<_ACEOF
19011 #define HAVE_UTMP_H 1
19012 _ACEOF
19016 done
19018 esac
19020 *) for ac_header in utmp.h utmpx.h
19021 do :
19022 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19023 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19024 eval as_val=\$$as_ac_Header
19025 if test "x$as_val" = x""yes; then :
19026 cat >>confdefs.h <<_ACEOF
19027 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19028 _ACEOF
19032 done
19034 esac
19037 # On Suns only (so far) getpass() truncates the typed password to 8
19038 # characters, but getpassphrase() allows up to 257. Most systems'
19039 # getpass() does not truncate, at least not so as to affect ntpq and
19040 # ntpdc password prompts.
19042 # So check for getpassphrase(), but only on Sun operating systems.
19045 case "$host" in
19046 *-*-sunos*|*-*-solaris*)
19047 for ac_func in getpassphrase
19048 do :
19049 ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
19050 if test "x$ac_cv_func_getpassphrase" = x""yes; then :
19051 cat >>confdefs.h <<_ACEOF
19052 #define HAVE_GETPASSPHRASE 1
19053 _ACEOF
19056 done
19058 esac
19060 for ac_header in arpa/nameser.h
19061 do :
19062 ac_fn_c_check_header_mongrel "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "$ac_includes_default"
19063 if test "x$ac_cv_header_arpa_nameser_h" = x""yes; then :
19064 cat >>confdefs.h <<_ACEOF
19065 #define HAVE_ARPA_NAMESER_H 1
19066 _ACEOF
19070 done
19072 for ac_header in sys/socket.h
19073 do :
19074 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
19075 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
19076 cat >>confdefs.h <<_ACEOF
19077 #define HAVE_SYS_SOCKET_H 1
19078 _ACEOF
19082 done
19084 for ac_header in net/if.h
19085 do :
19086 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#if HAVE_SYS_SOCKET_H
19087 #include <sys/socket.h>
19088 #endif
19091 if test "x$ac_cv_header_net_if_h" = x""yes; then :
19092 cat >>confdefs.h <<_ACEOF
19093 #define HAVE_NET_IF_H 1
19094 _ACEOF
19098 done
19100 for ac_header in net/if6.h
19101 do :
19102 ac_fn_c_check_header_mongrel "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default"
19103 if test "x$ac_cv_header_net_if6_h" = x""yes; then :
19104 cat >>confdefs.h <<_ACEOF
19105 #define HAVE_NET_IF6_H 1
19106 _ACEOF
19110 done
19112 for ac_header in net/route.h
19113 do :
19114 ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
19115 #include <sys/types.h>
19116 #include <sys/socket.h>
19117 #include <net/if.h>
19120 if test "x$ac_cv_header_net_route_h" = x""yes; then :
19121 cat >>confdefs.h <<_ACEOF
19122 #define HAVE_NET_ROUTE_H 1
19123 _ACEOF
19127 done
19129 for ac_header in netinet/in_system.h netinet/in_systm.h
19130 do :
19131 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19132 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19133 eval as_val=\$$as_ac_Header
19134 if test "x$as_val" = x""yes; then :
19135 cat >>confdefs.h <<_ACEOF
19136 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19137 _ACEOF
19141 done
19143 for ac_header in netinet/in.h
19144 do :
19145 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
19146 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
19147 cat >>confdefs.h <<_ACEOF
19148 #define HAVE_NETINET_IN_H 1
19149 _ACEOF
19153 done
19155 for ac_header in netinet/ip.h
19156 do :
19157 ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "#if HAVE_SYS_TYPES_H
19158 #include <sys/types.h>
19159 #endif
19160 #if HAVE_NETINET_IN_H
19161 #include <netinet/in.h>
19162 #endif
19163 #if HAVE_NETINET_IN_SYSTM_H
19164 #include <netinet/in_systm.h>
19165 #endif
19168 if test "x$ac_cv_header_netinet_ip_h" = x""yes; then :
19169 cat >>confdefs.h <<_ACEOF
19170 #define HAVE_NETINET_IP_H 1
19171 _ACEOF
19175 done
19178 # Check for IPTOS_PREC
19179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IPPROTO_IP IP_TOS IPTOS_LOWDELAY" >&5
19180 $as_echo_n "checking IPPROTO_IP IP_TOS IPTOS_LOWDELAY... " >&6; }
19181 if test "${ac_cv_ip_tos+set}" = set; then :
19182 $as_echo_n "(cached) " >&6
19183 else
19185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19186 /* end confdefs.h. */
19188 #if HAVE_SYS_TYPES_H
19189 #include <sys/types.h>
19190 #endif
19191 #if HAVE_NETINET_IP_H
19192 #include <netinet/in.h>
19193 #include <netinet/ip.h>
19194 #endif
19195 #if defined(IPPROTO_IP) && defined(IP_TOS) && defined(IPTOS_LOWDELAY)
19197 #endif
19199 _ACEOF
19200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19201 $EGREP "yes" >/dev/null 2>&1; then :
19202 ac_cv_ip_tos=yes
19203 else
19204 ac_cv_ip_tos=no
19207 rm -f conftest*
19212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ip_tos" >&5
19213 $as_echo "$ac_cv_ip_tos" >&6; }
19215 case "$ac_cv_ip_tos" in
19216 yes)
19218 $as_echo "#define HAVE_IPTOS_SUPPORT 1" >>confdefs.h
19220 esac
19222 for ac_header in netinfo/ni.h
19223 do :
19224 ac_fn_c_check_header_mongrel "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default"
19225 if test "x$ac_cv_header_netinfo_ni_h" = x""yes; then :
19226 cat >>confdefs.h <<_ACEOF
19227 #define HAVE_NETINFO_NI_H 1
19228 _ACEOF
19230 $as_echo "#define HAVE_NETINFO 1" >>confdefs.h
19234 done
19236 for ac_header in sun/audioio.h sys/audioio.h
19237 do :
19238 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19239 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19240 eval as_val=\$$as_ac_Header
19241 if test "x$as_val" = x""yes; then :
19242 cat >>confdefs.h <<_ACEOF
19243 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19244 _ACEOF
19248 done
19250 for ac_header in sys/clkdefs.h sys/file.h
19251 do :
19252 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19253 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19254 eval as_val=\$$as_ac_Header
19255 if test "x$as_val" = x""yes; then :
19256 cat >>confdefs.h <<_ACEOF
19257 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19258 _ACEOF
19262 done
19264 case "$host" in
19265 *-*-sunos4*) ;;
19266 *) for ac_header in sys/ioctl.h
19267 do :
19268 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
19269 if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
19270 cat >>confdefs.h <<_ACEOF
19271 #define HAVE_SYS_IOCTL_H 1
19272 _ACEOF
19276 done
19279 esac
19280 for ac_header in sys/ipc.h
19281 do :
19282 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
19283 if test "x$ac_cv_header_sys_ipc_h" = x""yes; then :
19284 cat >>confdefs.h <<_ACEOF
19285 #define HAVE_SYS_IPC_H 1
19286 _ACEOF
19290 done
19292 for ac_header in sys/lock.h sys/mman.h sys/modem.h sys/param.h sys/ppsclock.h
19293 do :
19294 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19295 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19296 eval as_val=\$$as_ac_Header
19297 if test "x$as_val" = x""yes; then :
19298 cat >>confdefs.h <<_ACEOF
19299 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19300 _ACEOF
19304 done
19306 # HMS: Check sys/proc.h and sys/resource.h after some others
19307 for ac_header in sys/ppstime.h
19308 do :
19309 ac_fn_c_check_header_mongrel "$LINENO" "sys/ppstime.h" "ac_cv_header_sys_ppstime_h" "$ac_includes_default"
19310 if test "x$ac_cv_header_sys_ppstime_h" = x""yes; then :
19311 cat >>confdefs.h <<_ACEOF
19312 #define HAVE_SYS_PPSTIME_H 1
19313 _ACEOF
19317 done
19319 case "$ac_cv_header_sched_h" in
19320 yes) ;;
19321 *) for ac_header in sys/sched.h
19322 do :
19323 ac_fn_c_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default"
19324 if test "x$ac_cv_header_sys_sched_h" = x""yes; then :
19325 cat >>confdefs.h <<_ACEOF
19326 #define HAVE_SYS_SCHED_H 1
19327 _ACEOF
19331 done
19333 esac
19334 case "$host" in
19335 *-*-sco*)
19336 for ac_header in sys/sio.h
19337 do :
19338 ac_fn_c_check_header_mongrel "$LINENO" "sys/sio.h" "ac_cv_header_sys_sio_h" "$ac_includes_default"
19339 if test "x$ac_cv_header_sys_sio_h" = x""yes; then :
19340 cat >>confdefs.h <<_ACEOF
19341 #define HAVE_SYS_SIO_H 1
19342 _ACEOF
19346 done
19349 esac
19350 # HMS: Check sys/shm.h after some others
19351 for ac_header in sys/select.h sys/signal.h sys/sockio.h
19352 do :
19353 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19354 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19355 eval as_val=\$$as_ac_Header
19356 if test "x$as_val" = x""yes; then :
19357 cat >>confdefs.h <<_ACEOF
19358 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19359 _ACEOF
19363 done
19365 # HMS: Checked sys/socket.h earlier
19366 case "$host" in
19367 *-*-netbsd*) ;;
19368 *) for ac_header in machine/soundcard.h sys/soundcard.h
19369 do :
19370 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19371 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19372 eval as_val=\$$as_ac_Header
19373 if test "x$as_val" = x""yes; then :
19374 cat >>confdefs.h <<_ACEOF
19375 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19376 _ACEOF
19380 done
19383 esac
19384 for ac_header in sys/stat.h sys/stream.h
19385 do :
19386 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19387 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19388 eval as_val=\$$as_ac_Header
19389 if test "x$as_val" = x""yes; then :
19390 cat >>confdefs.h <<_ACEOF
19391 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19392 _ACEOF
19396 done
19398 for ac_header in sys/stropts.h sys/sysctl.h sys/syssgi.h sys/systune.h
19399 do :
19400 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19401 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19402 eval as_val=\$$as_ac_Header
19403 if test "x$as_val" = x""yes; then :
19404 cat >>confdefs.h <<_ACEOF
19405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19406 _ACEOF
19410 done
19412 for ac_header in sys/termios.h sys/time.h sys/signal.h
19413 do :
19414 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19415 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19416 eval as_val=\$$as_ac_Header
19417 if test "x$as_val" = x""yes; then :
19418 cat >>confdefs.h <<_ACEOF
19419 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19420 _ACEOF
19424 done
19426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19427 /* end confdefs.h. */
19428 #if HAVE_SYS_TIME_H
19429 # include <sys/time.h>
19430 #endif
19431 #if HAVE_ERRNO_H
19432 # include <errno.h>
19433 #endif
19434 #include <sys/timepps.h>
19435 #ifdef PPS_API_VERS_1
19437 #endif
19439 _ACEOF
19440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19441 $EGREP "yes" >/dev/null 2>&1; then :
19442 for ac_header in sys/timepps.h
19443 do :
19444 ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "#if HAVE_SYS_TIME_H
19445 # include <sys/time.h>
19446 #endif
19447 #if HAVE_ERRNO_H
19448 # include <errno.h>
19449 #endif
19452 if test "x$ac_cv_header_sys_timepps_h" = x""yes; then :
19453 cat >>confdefs.h <<_ACEOF
19454 #define HAVE_SYS_TIMEPPS_H 1
19455 _ACEOF
19459 done
19463 rm -f conftest*
19465 for ac_header in sys/timers.h sys/tpro.h sys/types.h sys/wait.h
19466 do :
19467 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19468 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19469 eval as_val=\$$as_ac_Header
19470 if test "x$as_val" = x""yes; then :
19471 cat >>confdefs.h <<_ACEOF
19472 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19473 _ACEOF
19477 done
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
19480 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
19481 if test "${ac_cv_header_time+set}" = set; then :
19482 $as_echo_n "(cached) " >&6
19483 else
19484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19485 /* end confdefs.h. */
19486 #include <sys/types.h>
19487 #include <sys/time.h>
19488 #include <time.h>
19491 main ()
19493 if ((struct tm *) 0)
19494 return 0;
19496 return 0;
19498 _ACEOF
19499 if ac_fn_c_try_compile "$LINENO"; then :
19500 ac_cv_header_time=yes
19501 else
19502 ac_cv_header_time=no
19504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
19507 $as_echo "$ac_cv_header_time" >&6; }
19508 if test $ac_cv_header_time = yes; then
19510 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19514 case "$host" in
19515 *-convex-*)
19516 for ac_header in /sys/sync/queue.h /sys/sync/sema.h
19517 do :
19518 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19519 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19520 eval as_val=\$$as_ac_Header
19521 if test "x$as_val" = x""yes; then :
19522 cat >>confdefs.h <<_ACEOF
19523 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19524 _ACEOF
19528 done
19531 *-*-bsdi*)
19532 for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
19533 do :
19534 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19535 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19536 eval as_val=\$$as_ac_Header
19537 if test "x$as_val" = x""yes; then :
19538 cat >>confdefs.h <<_ACEOF
19539 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19540 _ACEOF
19544 done
19547 esac
19549 case "$host" in
19550 *-*-*linux*)
19551 for ac_func in __adjtimex __ntp_gettime
19552 do :
19553 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19554 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19555 eval as_val=\$$as_ac_var
19556 if test "x$as_val" = x""yes; then :
19557 cat >>confdefs.h <<_ACEOF
19558 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19559 _ACEOF
19562 done
19565 esac
19566 case "$ac_cv_func___adjtimex" in
19567 yes) ;;
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5
19570 $as_echo_n "checking for nlist in -lelf... " >&6; }
19571 if test "${ac_cv_lib_elf_nlist+set}" = set; then :
19572 $as_echo_n "(cached) " >&6
19573 else
19574 ac_check_lib_save_LIBS=$LIBS
19575 LIBS="-lelf $LIBS"
19576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19577 /* end confdefs.h. */
19579 /* Override any GCC internal prototype to avoid an error.
19580 Use char because int might match the return type of a GCC
19581 builtin and then its argument prototype would still apply. */
19582 #ifdef __cplusplus
19583 extern "C"
19584 #endif
19585 char nlist ();
19587 main ()
19589 return nlist ();
19591 return 0;
19593 _ACEOF
19594 if ac_fn_c_try_link "$LINENO"; then :
19595 ac_cv_lib_elf_nlist=yes
19596 else
19597 ac_cv_lib_elf_nlist=no
19599 rm -f core conftest.err conftest.$ac_objext \
19600 conftest$ac_exeext conftest.$ac_ext
19601 LIBS=$ac_check_lib_save_LIBS
19603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5
19604 $as_echo "$ac_cv_lib_elf_nlist" >&6; }
19605 if test "x$ac_cv_lib_elf_nlist" = x""yes; then :
19606 cat >>confdefs.h <<_ACEOF
19607 #define HAVE_LIBELF 1
19608 _ACEOF
19610 LIBS="-lelf $LIBS"
19613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkvm" >&5
19614 $as_echo_n "checking for main in -lkvm... " >&6; }
19615 if test "${ac_cv_lib_kvm_main+set}" = set; then :
19616 $as_echo_n "(cached) " >&6
19617 else
19618 ac_check_lib_save_LIBS=$LIBS
19619 LIBS="-lkvm $LIBS"
19620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19621 /* end confdefs.h. */
19625 main ()
19627 return main ();
19629 return 0;
19631 _ACEOF
19632 if ac_fn_c_try_link "$LINENO"; then :
19633 ac_cv_lib_kvm_main=yes
19634 else
19635 ac_cv_lib_kvm_main=no
19637 rm -f core conftest.err conftest.$ac_objext \
19638 conftest$ac_exeext conftest.$ac_ext
19639 LIBS=$ac_check_lib_save_LIBS
19641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_main" >&5
19642 $as_echo "$ac_cv_lib_kvm_main" >&6; }
19643 if test "x$ac_cv_lib_kvm_main" = x""yes; then :
19644 cat >>confdefs.h <<_ACEOF
19645 #define HAVE_LIBKVM 1
19646 _ACEOF
19648 LIBS="-lkvm $LIBS"
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lld" >&5
19652 $as_echo_n "checking for nlist in -lld... " >&6; }
19653 if test "${ac_cv_lib_ld_nlist+set}" = set; then :
19654 $as_echo_n "(cached) " >&6
19655 else
19656 ac_check_lib_save_LIBS=$LIBS
19657 LIBS="-lld $LIBS"
19658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19659 /* end confdefs.h. */
19661 /* Override any GCC internal prototype to avoid an error.
19662 Use char because int might match the return type of a GCC
19663 builtin and then its argument prototype would still apply. */
19664 #ifdef __cplusplus
19665 extern "C"
19666 #endif
19667 char nlist ();
19669 main ()
19671 return nlist ();
19673 return 0;
19675 _ACEOF
19676 if ac_fn_c_try_link "$LINENO"; then :
19677 ac_cv_lib_ld_nlist=yes
19678 else
19679 ac_cv_lib_ld_nlist=no
19681 rm -f core conftest.err conftest.$ac_objext \
19682 conftest$ac_exeext conftest.$ac_ext
19683 LIBS=$ac_check_lib_save_LIBS
19685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ld_nlist" >&5
19686 $as_echo "$ac_cv_lib_ld_nlist" >&6; }
19687 if test "x$ac_cv_lib_ld_nlist" = x""yes; then :
19688 cat >>confdefs.h <<_ACEOF
19689 #define HAVE_LIBLD 1
19690 _ACEOF
19692 LIBS="-lld $LIBS"
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lmld" >&5
19697 $as_echo_n "checking for nlist in -lmld... " >&6; }
19698 if test "${ac_cv_lib_mld_nlist+set}" = set; then :
19699 $as_echo_n "(cached) " >&6
19700 else
19701 ac_check_lib_save_LIBS=$LIBS
19702 LIBS="-lmld $LIBS"
19703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19704 /* end confdefs.h. */
19706 /* Override any GCC internal prototype to avoid an error.
19707 Use char because int might match the return type of a GCC
19708 builtin and then its argument prototype would still apply. */
19709 #ifdef __cplusplus
19710 extern "C"
19711 #endif
19712 char nlist ();
19714 main ()
19716 return nlist ();
19718 return 0;
19720 _ACEOF
19721 if ac_fn_c_try_link "$LINENO"; then :
19722 ac_cv_lib_mld_nlist=yes
19723 else
19724 ac_cv_lib_mld_nlist=no
19726 rm -f core conftest.err conftest.$ac_objext \
19727 conftest$ac_exeext conftest.$ac_ext
19728 LIBS=$ac_check_lib_save_LIBS
19730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mld_nlist" >&5
19731 $as_echo "$ac_cv_lib_mld_nlist" >&6; }
19732 if test "x$ac_cv_lib_mld_nlist" = x""yes; then :
19733 cat >>confdefs.h <<_ACEOF
19734 #define HAVE_LIBMLD 1
19735 _ACEOF
19737 LIBS="-lmld $LIBS"
19741 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
19742 if test "x$ac_cv_header_nlist_h" = x""yes; then :
19744 $as_echo "#define NLIST_STRUCT 1" >>confdefs.h
19746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5
19747 $as_echo_n "checking for n_un in struct nlist... " >&6; }
19748 if test "${ac_cv_struct_nlist_n_un+set}" = set; then :
19749 $as_echo_n "(cached) " >&6
19750 else
19751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19752 /* end confdefs.h. */
19753 #include <nlist.h>
19755 main ()
19757 struct nlist n; n.n_un.n_name = 0;
19759 return 0;
19761 _ACEOF
19762 if ac_fn_c_try_compile "$LINENO"; then :
19763 ac_cv_struct_nlist_n_un=yes
19764 else
19765 ac_cv_struct_nlist_n_un=no
19767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_nlist_n_un" >&5
19770 $as_echo "$ac_cv_struct_nlist_n_un" >&6; }
19771 if test $ac_cv_struct_nlist_n_un = yes; then
19773 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
19780 esac
19783 for ac_header in sys/proc.h
19784 do :
19785 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_TYPES_H
19786 # include <sys/types.h>
19787 #endif
19788 #if HAVE_SYS_TIME_H
19789 # include <sys/time.h>
19790 #endif
19793 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
19794 cat >>confdefs.h <<_ACEOF
19795 #define HAVE_SYS_PROC_H 1
19796 _ACEOF
19800 done
19803 for ac_header in sys/resource.h
19804 do :
19805 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "#if HAVE_SYS_TIME_H
19806 # include <sys/time.h>
19807 #endif
19810 if test "x$ac_cv_header_sys_resource_h" = x""yes; then :
19811 cat >>confdefs.h <<_ACEOF
19812 #define HAVE_SYS_RESOURCE_H 1
19813 _ACEOF
19817 done
19820 for ac_header in sys/shm.h
19821 do :
19822 ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "#if HAVE_SYS_TYPES_H
19823 # include <sys/types.h>
19824 #endif
19825 #if HAVE_SYS_IPC_H
19826 # include <sys/ipc.h>
19827 #endif
19830 if test "x$ac_cv_header_sys_shm_h" = x""yes; then :
19831 cat >>confdefs.h <<_ACEOF
19832 #define HAVE_SYS_SHM_H 1
19833 _ACEOF
19837 done
19840 for ac_header in sys/timex.h
19841 do :
19842 ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "#if HAVE_SYS_TIME_H
19843 # include <sys/time.h>
19844 #endif
19847 if test "x$ac_cv_header_sys_timex_h" = x""yes; then :
19848 cat >>confdefs.h <<_ACEOF
19849 #define HAVE_SYS_TIMEX_H 1
19850 _ACEOF
19854 done
19857 for ac_header in resolv.h
19858 do :
19859 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#if HAVE_SYS_TYPES_H
19860 #include <sys/types.h>
19861 #endif
19862 #if HAVE_NETINET_IN_H
19863 #include <netinet/in.h>
19864 #endif
19865 #if HAVE_ARPA_NAMESER_H
19866 #include <arpa/nameser.h>
19867 #endif
19870 if test "x$ac_cv_header_resolv_h" = x""yes; then :
19871 cat >>confdefs.h <<_ACEOF
19872 #define HAVE_RESOLV_H 1
19873 _ACEOF
19877 done
19880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic volatile support" >&5
19881 $as_echo_n "checking for basic volatile support... " >&6; }
19882 if test "${ac_cv_c_volatile+set}" = set; then :
19883 $as_echo_n "(cached) " >&6
19884 else
19885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19886 /* end confdefs.h. */
19889 main ()
19892 volatile int x;
19894 return 0;
19896 _ACEOF
19897 if ac_fn_c_try_compile "$LINENO"; then :
19898 ac_cv_c_volatile=yes
19899 else
19900 ac_cv_c_volatile=no
19902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
19906 $as_echo "$ac_cv_c_volatile" >&6; }
19907 case "$ac_cv_c_volatile" in
19908 yes)
19911 $as_echo "#define volatile /**/" >>confdefs.h
19914 esac
19916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19917 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19918 if test "${ac_cv_c_const+set}" = set; then :
19919 $as_echo_n "(cached) " >&6
19920 else
19921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19922 /* end confdefs.h. */
19925 main ()
19927 /* FIXME: Include the comments suggested by Paul. */
19928 #ifndef __cplusplus
19929 /* Ultrix mips cc rejects this. */
19930 typedef int charset[2];
19931 const charset cs;
19932 /* SunOS 4.1.1 cc rejects this. */
19933 char const *const *pcpcc;
19934 char **ppc;
19935 /* NEC SVR4.0.2 mips cc rejects this. */
19936 struct point {int x, y;};
19937 static struct point const zero = {0,0};
19938 /* AIX XL C 1.02.0.0 rejects this.
19939 It does not let you subtract one const X* pointer from another in
19940 an arm of an if-expression whose if-part is not a constant
19941 expression */
19942 const char *g = "string";
19943 pcpcc = &g + (g ? g-g : 0);
19944 /* HPUX 7.0 cc rejects these. */
19945 ++pcpcc;
19946 ppc = (char**) pcpcc;
19947 pcpcc = (char const *const *) ppc;
19948 { /* SCO 3.2v4 cc rejects this. */
19949 char *t;
19950 char const *s = 0 ? (char *) 0 : (char const *) 0;
19952 *t++ = 0;
19953 if (s) return 0;
19955 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19956 int x[] = {25, 17};
19957 const int *foo = &x[0];
19958 ++foo;
19960 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19961 typedef const int *iptr;
19962 iptr p = 0;
19963 ++p;
19965 { /* AIX XL C 1.02.0.0 rejects this saying
19966 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19967 struct s { int j; const int *ap[3]; };
19968 struct s *b; b->j = 5;
19970 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19971 const int foo = 10;
19972 if (!foo) return 0;
19974 return !cs[0] && !zero.x;
19975 #endif
19978 return 0;
19980 _ACEOF
19981 if ac_fn_c_try_compile "$LINENO"; then :
19982 ac_cv_c_const=yes
19983 else
19984 ac_cv_c_const=no
19986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19989 $as_echo "$ac_cv_c_const" >&6; }
19990 if test $ac_cv_c_const = no; then
19992 $as_echo "#define const /**/" >>confdefs.h
19996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
19997 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
19998 if test "${ac_cv_c_bigendian+set}" = set; then :
19999 $as_echo_n "(cached) " >&6
20000 else
20001 ac_cv_c_bigendian=unknown
20002 # See if we're dealing with a universal compiler.
20003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20004 /* end confdefs.h. */
20005 #ifndef __APPLE_CC__
20006 not a universal capable compiler
20007 #endif
20008 typedef int dummy;
20010 _ACEOF
20011 if ac_fn_c_try_compile "$LINENO"; then :
20013 # Check for potential -arch flags. It is not universal unless
20014 # there are at least two -arch flags with different values.
20015 ac_arch=
20016 ac_prev=
20017 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20018 if test -n "$ac_prev"; then
20019 case $ac_word in
20020 i?86 | x86_64 | ppc | ppc64)
20021 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
20022 ac_arch=$ac_word
20023 else
20024 ac_cv_c_bigendian=universal
20025 break
20028 esac
20029 ac_prev=
20030 elif test "x$ac_word" = "x-arch"; then
20031 ac_prev=arch
20033 done
20035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20036 if test $ac_cv_c_bigendian = unknown; then
20037 # See if sys/param.h defines the BYTE_ORDER macro.
20038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20039 /* end confdefs.h. */
20040 #include <sys/types.h>
20041 #include <sys/param.h>
20044 main ()
20046 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20047 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20048 && LITTLE_ENDIAN)
20049 bogus endian macros
20050 #endif
20053 return 0;
20055 _ACEOF
20056 if ac_fn_c_try_compile "$LINENO"; then :
20057 # It does; now see whether it defined to BIG_ENDIAN or not.
20058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20059 /* end confdefs.h. */
20060 #include <sys/types.h>
20061 #include <sys/param.h>
20064 main ()
20066 #if BYTE_ORDER != BIG_ENDIAN
20067 not big endian
20068 #endif
20071 return 0;
20073 _ACEOF
20074 if ac_fn_c_try_compile "$LINENO"; then :
20075 ac_cv_c_bigendian=yes
20076 else
20077 ac_cv_c_bigendian=no
20079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20083 if test $ac_cv_c_bigendian = unknown; then
20084 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20086 /* end confdefs.h. */
20087 #include <limits.h>
20090 main ()
20092 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20093 bogus endian macros
20094 #endif
20097 return 0;
20099 _ACEOF
20100 if ac_fn_c_try_compile "$LINENO"; then :
20101 # It does; now see whether it defined to _BIG_ENDIAN or not.
20102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20103 /* end confdefs.h. */
20104 #include <limits.h>
20107 main ()
20109 #ifndef _BIG_ENDIAN
20110 not big endian
20111 #endif
20114 return 0;
20116 _ACEOF
20117 if ac_fn_c_try_compile "$LINENO"; then :
20118 ac_cv_c_bigendian=yes
20119 else
20120 ac_cv_c_bigendian=no
20122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20126 if test $ac_cv_c_bigendian = unknown; then
20127 # Compile a test program.
20128 if test "$cross_compiling" = yes; then :
20129 # Try to guess by grepping values from an object file.
20130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20131 /* end confdefs.h. */
20132 short int ascii_mm[] =
20133 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20134 short int ascii_ii[] =
20135 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20136 int use_ascii (int i) {
20137 return ascii_mm[i] + ascii_ii[i];
20139 short int ebcdic_ii[] =
20140 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20141 short int ebcdic_mm[] =
20142 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20143 int use_ebcdic (int i) {
20144 return ebcdic_mm[i] + ebcdic_ii[i];
20146 extern int foo;
20149 main ()
20151 return use_ascii (foo) == use_ebcdic (foo);
20153 return 0;
20155 _ACEOF
20156 if ac_fn_c_try_compile "$LINENO"; then :
20157 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20158 ac_cv_c_bigendian=yes
20160 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20161 if test "$ac_cv_c_bigendian" = unknown; then
20162 ac_cv_c_bigendian=no
20163 else
20164 # finding both strings is unlikely to happen, but who knows?
20165 ac_cv_c_bigendian=unknown
20169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20170 else
20171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20172 /* end confdefs.h. */
20173 $ac_includes_default
20175 main ()
20178 /* Are we little or big endian? From Harbison&Steele. */
20179 union
20181 long int l;
20182 char c[sizeof (long int)];
20183 } u;
20184 u.l = 1;
20185 return u.c[sizeof (long int) - 1] == 1;
20188 return 0;
20190 _ACEOF
20191 if ac_fn_c_try_run "$LINENO"; then :
20192 ac_cv_c_bigendian=no
20193 else
20194 ac_cv_c_bigendian=yes
20196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20197 conftest.$ac_objext conftest.beam conftest.$ac_ext
20202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
20203 $as_echo "$ac_cv_c_bigendian" >&6; }
20204 case $ac_cv_c_bigendian in #(
20205 yes)
20206 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
20207 ;; #(
20209 ;; #(
20210 universal)
20212 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
20214 ;; #(
20216 as_fn_error "unknown endianness
20217 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
20218 esac
20220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
20221 $as_echo_n "checking return type of signal handlers... " >&6; }
20222 if test "${ac_cv_type_signal+set}" = set; then :
20223 $as_echo_n "(cached) " >&6
20224 else
20225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20226 /* end confdefs.h. */
20227 #include <sys/types.h>
20228 #include <signal.h>
20231 main ()
20233 return *(signal (0, 0)) (0) == 1;
20235 return 0;
20237 _ACEOF
20238 if ac_fn_c_try_compile "$LINENO"; then :
20239 ac_cv_type_signal=int
20240 else
20241 ac_cv_type_signal=void
20243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
20246 $as_echo "$ac_cv_type_signal" >&6; }
20248 cat >>confdefs.h <<_ACEOF
20249 #define RETSIGTYPE $ac_cv_type_signal
20250 _ACEOF
20253 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
20254 if test "x$ac_cv_type_off_t" = x""yes; then :
20256 else
20258 cat >>confdefs.h <<_ACEOF
20259 #define off_t long int
20260 _ACEOF
20264 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20265 if test "x$ac_cv_type_size_t" = x""yes; then :
20267 else
20269 cat >>confdefs.h <<_ACEOF
20270 #define size_t unsigned int
20271 _ACEOF
20275 ac_fn_c_check_type "$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default"
20276 if test "x$ac_cv_type_time_t" = x""yes; then :
20278 else
20280 cat >>confdefs.h <<_ACEOF
20281 #define time_t long
20282 _ACEOF
20286 # The cast to long int works around a bug in the HP C Compiler
20287 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20288 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20289 # This bug is HP SR number 8606223364.
20290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
20291 $as_echo_n "checking size of time_t... " >&6; }
20292 if test "${ac_cv_sizeof_time_t+set}" = set; then :
20293 $as_echo_n "(cached) " >&6
20294 else
20295 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
20297 else
20298 if test "$ac_cv_type_time_t" = yes; then
20299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20301 { as_fn_set_status 77
20302 as_fn_error "cannot compute sizeof (time_t)
20303 See \`config.log' for more details." "$LINENO" 5; }; }
20304 else
20305 ac_cv_sizeof_time_t=0
20310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
20311 $as_echo "$ac_cv_sizeof_time_t" >&6; }
20315 cat >>confdefs.h <<_ACEOF
20316 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
20317 _ACEOF
20320 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
20321 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
20323 cat >>confdefs.h <<_ACEOF
20324 #define HAVE_UINTPTR_T 1
20325 _ACEOF
20333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
20334 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20335 if test "${ac_cv_struct_tm+set}" = set; then :
20336 $as_echo_n "(cached) " >&6
20337 else
20338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20339 /* end confdefs.h. */
20340 #include <sys/types.h>
20341 #include <time.h>
20344 main ()
20346 struct tm tm;
20347 int *p = &tm.tm_sec;
20348 return !p;
20350 return 0;
20352 _ACEOF
20353 if ac_fn_c_try_compile "$LINENO"; then :
20354 ac_cv_struct_tm=time.h
20355 else
20356 ac_cv_struct_tm=sys/time.h
20358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
20361 $as_echo "$ac_cv_struct_tm" >&6; }
20362 if test $ac_cv_struct_tm = sys/time.h; then
20364 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
20369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int8_t" >&5
20370 $as_echo_n "checking for u_int8_t... " >&6; }
20371 if test "${ac_cv_type_u_int8_t+set}" = set; then :
20372 $as_echo_n "(cached) " >&6
20373 else
20374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20375 /* end confdefs.h. */
20376 #include <sys/types.h>
20378 main ()
20380 u_int8_t len = 42; return 0;
20382 return 0;
20384 _ACEOF
20385 if ac_fn_c_try_compile "$LINENO"; then :
20386 ac_cv_type_u_int8_t=yes
20387 else
20388 ac_cv_type_u_int8_t=no
20390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int8_t" >&5
20394 $as_echo "$ac_cv_type_u_int8_t" >&6; }
20395 if test $ac_cv_type_u_int8_t = yes; then
20397 $as_echo "#define HAVE_TYPE_U_INT8_T 1" >>confdefs.h
20401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t" >&5
20402 $as_echo_n "checking for u_int64_t... " >&6; }
20403 if test "${ac_cv_type_u_int64_t+set}" = set; then :
20404 $as_echo_n "(cached) " >&6
20405 else
20406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20407 /* end confdefs.h. */
20408 #include <sys/types.h>
20410 main ()
20412 u_int64_t len = 42; return 0;
20414 return 0;
20416 _ACEOF
20417 if ac_fn_c_try_compile "$LINENO"; then :
20418 ac_cv_type_u_int64_t=yes
20419 else
20420 ac_cv_type_u_int64_t=no
20422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int64_t" >&5
20426 $as_echo "$ac_cv_type_u_int64_t" >&6; }
20427 if test $ac_cv_type_u_int64_t = yes; then
20429 $as_echo "#define HAVE_TYPE_U_INT64_T 1" >>confdefs.h
20433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5
20434 $as_echo_n "checking for a fallback value for HZ... " >&6; }
20435 if test "${ac_cv_var_default_hz+set}" = set; then :
20436 $as_echo_n "(cached) " >&6
20437 else
20438 ac_cv_var_default_hz=100
20439 case "$host" in
20440 alpha*-dec-osf4*|alpha*-dec-osf5*)
20441 ac_cv_var_default_hz=1024
20443 mips-dec-ultrix4*)
20444 ac_cv_var_default_hz=256
20446 esac
20448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_default_hz" >&5
20449 $as_echo "$ac_cv_var_default_hz" >&6; }
20451 cat >>confdefs.h <<_ACEOF
20452 #define DEFAULT_HZ $ac_cv_var_default_hz
20453 _ACEOF
20456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5
20457 $as_echo_n "checking if we need to override the system's value for HZ... " >&6; }
20458 if test "${ac_cv_var_override_hz+set}" = set; then :
20459 $as_echo_n "(cached) " >&6
20460 else
20461 ac_cv_var_override_hz=no
20462 case "$host" in
20463 alpha*-dec-osf4*|alpha*-dec-osf5*)
20464 ac_cv_var_override_hz=yes
20466 mips-dec-ultrix4*)
20467 ac_cv_var_override_hz=yes
20469 *-*-freebsd*)
20470 ac_cv_var_override_hz=yes
20472 *-*-sunos4*)
20473 ac_cv_var_override_hz=yes
20475 esac
20477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_override_hz" >&5
20478 $as_echo "$ac_cv_var_override_hz" >&6; }
20479 case "$ac_cv_var_override_hz" in
20480 yes)
20482 $as_echo "#define OVERRIDE_HZ 1" >>confdefs.h
20485 esac
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5
20490 $as_echo_n "checking for struct rt_msghdr... " >&6; }
20491 if test "${ac_cv_struct_rt_msghdr+set}" = set; then :
20492 $as_echo_n "(cached) " >&6
20493 else
20494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20495 /* end confdefs.h. */
20497 #include <sys/types.h>
20498 #include <sys/socket.h>
20499 #include <net/if.h>
20500 #include <net/route.h>
20502 main ()
20504 struct rt_msghdr p;
20506 return 0;
20508 _ACEOF
20509 if ac_fn_c_try_compile "$LINENO"; then :
20510 ac_cv_struct_rt_msghdr=yes
20511 else
20512 ac_cv_struct_rt_msghdr=no
20514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_rt_msghdr" >&5
20518 $as_echo "$ac_cv_struct_rt_msghdr" >&6; }
20520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5
20521 $as_echo_n "checking for struct rtattr... " >&6; }
20522 if test "${ac_cv_struct_rtattr+set}" = set; then :
20523 $as_echo_n "(cached) " >&6
20524 else
20525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20526 /* end confdefs.h. */
20528 #include <linux/rtnetlink.h>
20530 main ()
20532 struct rtattr p;
20534 return 0;
20536 _ACEOF
20537 if ac_fn_c_try_compile "$LINENO"; then :
20538 ac_cv_struct_rtattr=yes
20539 else
20540 ac_cv_struct_rtattr=no
20542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_rtattr" >&5
20546 $as_echo "$ac_cv_struct_rtattr" >&6; }
20548 if test $ac_cv_struct_rt_msghdr = yes -o $ac_cv_struct_rtattr = yes; then
20550 $as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h
20552 if test $ac_cv_struct_rtattr = yes; then
20554 $as_echo "#define HAVE_RTNETLINK 1" >>confdefs.h
20559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5
20560 $as_echo_n "checking struct sigaction for sa_sigaction... " >&6; }
20561 if test "${ac_cv_struct_sigaction_has_sa_sigaction+set}" = set; then :
20562 $as_echo_n "(cached) " >&6
20563 else
20565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20566 /* end confdefs.h. */
20567 #include <signal.h>
20569 main ()
20571 struct sigaction act; act.sa_sigaction = 0;
20573 return 0;
20575 _ACEOF
20576 if ac_fn_c_try_compile "$LINENO"; then :
20577 ac_cv_struct_sigaction_has_sa_sigaction=yes
20578 else
20579 ac_cv_struct_sigaction_has_sa_sigaction=no
20582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sigaction_has_sa_sigaction" >&5
20587 $as_echo "$ac_cv_struct_sigaction_has_sa_sigaction" >&6; }
20588 if test $ac_cv_struct_sigaction_has_sa_sigaction = yes; then
20590 $as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h
20594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5
20595 $as_echo_n "checking for struct ppsclockev... " >&6; }
20596 if test "${ac_cv_struct_ppsclockev+set}" = set; then :
20597 $as_echo_n "(cached) " >&6
20598 else
20599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20600 /* end confdefs.h. */
20602 #include <sys/types.h>
20603 #ifdef HAVE_SYS_TERMIOS_H
20604 # include <sys/termios.h>
20605 #endif
20606 #ifdef HAVE_SYS_TIME_H
20607 # include <sys/time.h>
20608 #endif
20609 #ifdef HAVE_SYS_PPSCLOCK_H
20610 # include <sys/ppsclock.h>
20611 #endif
20613 main ()
20616 extern struct ppsclockev *pce;
20617 return pce->serial;
20619 return 0;
20621 _ACEOF
20622 if ac_fn_c_try_compile "$LINENO"; then :
20623 ac_cv_struct_ppsclockev=yes
20624 else
20625 ac_cv_struct_ppsclockev=no
20627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_ppsclockev" >&5
20631 $as_echo "$ac_cv_struct_ppsclockev" >&6; }
20632 if test $ac_cv_struct_ppsclockev = yes; then
20634 $as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h
20638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
20639 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
20640 if test "${ntp_cv_sockaddr_storage+set}" = set; then :
20641 $as_echo_n "(cached) " >&6
20642 else
20644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20645 /* end confdefs.h. */
20647 #ifdef HAVE_SYS_TYPES_H
20648 # include <sys/types.h>
20649 #endif
20650 #ifdef HAVE_SYS_SOCKET_H
20651 # include <sys/socket.h>
20652 #endif
20653 #ifdef HAVE_NETINET_IN_H
20654 # include <netinet/in.h>
20655 #endif
20658 main ()
20661 struct sockaddr_storage n;
20664 return 0;
20666 _ACEOF
20667 if ac_fn_c_try_compile "$LINENO"; then :
20668 ntp_cv_sockaddr_storage="yes"
20669 else
20670 ntp_cv_sockaddr_storage="no"
20673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
20678 $as_echo "$ntp_cv_sockaddr_storage" >&6; }
20679 case "$ntp_cv_sockaddr_storage" in
20680 yes)
20682 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
20684 esac
20686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.ss_family" >&5
20687 $as_echo_n "checking for sockaddr_storage.ss_family... " >&6; }
20688 if test "${ntp_cv_have_ss_family+set}" = set; then :
20689 $as_echo_n "(cached) " >&6
20690 else
20692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20693 /* end confdefs.h. */
20695 #ifdef HAVE_SYS_TYPES_H
20696 # include <sys/types.h>
20697 #endif
20698 #ifdef HAVE_SYS_SOCKET_H
20699 # include <sys/socket.h>
20700 #endif
20701 #ifdef HAVE_NETINET_IN_H
20702 # include <netinet/in.h>
20703 #endif
20706 main ()
20709 struct sockaddr_storage s;
20710 s.ss_family = 1;
20713 return 0;
20715 _ACEOF
20716 if ac_fn_c_try_compile "$LINENO"; then :
20717 ntp_cv_have_ss_family="yes"
20718 else
20719 ntp_cv_have_ss_family="no"
20722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have_ss_family" >&5
20727 $as_echo "$ntp_cv_have_ss_family" >&6; }
20729 case "$ntp_cv_have_ss_family" in
20731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
20732 $as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
20733 if test "${ntp_cv_have___ss_family+set}" = set; then :
20734 $as_echo_n "(cached) " >&6
20735 else
20737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20738 /* end confdefs.h. */
20740 #ifdef HAVE_SYS_TYPES_H
20741 # include <sys/types.h>
20742 #endif
20743 #ifdef HAVE_SYS_SOCKET_H
20744 # include <sys/socket.h>
20745 #endif
20746 #ifdef HAVE_NETINET_IN_H
20747 # include <netinet/in.h>
20748 #endif
20751 main ()
20754 struct sockaddr_storage s;
20755 s.__ss_family = 1;
20758 return 0;
20760 _ACEOF
20761 if ac_fn_c_try_compile "$LINENO"; then :
20762 ntp_cv_have___ss_family="yes"
20763 else
20764 ntp_cv_have___ss_family="no"
20767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
20772 $as_echo "$ntp_cv_have___ss_family" >&6; }
20773 case "$ntp_cv_have___ss_family" in
20774 yes)
20776 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
20778 esac
20779 esac
20783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.ss_len" >&5
20784 $as_echo_n "checking for sockaddr_storage.ss_len... " >&6; }
20785 if test "${ntp_cv_have_ss_len+set}" = set; then :
20786 $as_echo_n "(cached) " >&6
20787 else
20789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20790 /* end confdefs.h. */
20792 #ifdef HAVE_SYS_TYPES_H
20793 # include <sys/types.h>
20794 #endif
20795 #ifdef HAVE_SYS_SOCKET_H
20796 # include <sys/socket.h>
20797 #endif
20798 #ifdef HAVE_NETINET_IN_H
20799 # include <netinet/in.h>
20800 #endif
20803 main ()
20806 struct sockaddr_storage s;
20807 s.ss_len = 1;
20810 return 0;
20812 _ACEOF
20813 if ac_fn_c_try_compile "$LINENO"; then :
20814 ntp_cv_have_ss_len="yes"
20815 else
20816 ntp_cv_have_ss_len="no"
20819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have_ss_len" >&5
20824 $as_echo "$ntp_cv_have_ss_len" >&6; }
20826 case "$ntp_cv_have_ss_len" in
20828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_len" >&5
20829 $as_echo_n "checking for sockaddr_storage.__ss_len... " >&6; }
20830 if test "${ntp_cv_have___ss_len+set}" = set; then :
20831 $as_echo_n "(cached) " >&6
20832 else
20834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20835 /* end confdefs.h. */
20837 #ifdef HAVE_SYS_TYPES_H
20838 # include <sys/types.h>
20839 #endif
20840 #ifdef HAVE_SYS_SOCKET_H
20841 # include <sys/socket.h>
20842 #endif
20843 #ifdef HAVE_NETINET_IN_H
20844 # include <netinet/in.h>
20845 #endif
20848 main ()
20851 struct sockaddr_storage s;
20852 s.__ss_len = 1;
20855 return 0;
20857 _ACEOF
20858 if ac_fn_c_try_compile "$LINENO"; then :
20859 ntp_cv_have___ss_len="yes"
20860 else
20861 ntp_cv_have___ss_len="no"
20864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_len" >&5
20869 $as_echo "$ntp_cv_have___ss_len" >&6; }
20870 case "$ntp_cv_have___ss_len" in
20871 yes)
20873 $as_echo "#define HAVE___SS_LEN_IN_SS 1" >>confdefs.h
20875 esac
20876 esac
20881 # Look for in_port_t.
20883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
20884 $as_echo_n "checking for in_port_t... " >&6; }
20885 if test "${isc_cv_have_in_port_t+set}" = set; then :
20886 $as_echo_n "(cached) " >&6
20887 else
20889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20890 /* end confdefs.h. */
20892 #include <sys/types.h>
20893 #include <netinet/in.h>
20896 main ()
20899 in_port_t port = 25;
20900 return (0);
20903 return 0;
20905 _ACEOF
20906 if ac_fn_c_try_compile "$LINENO"; then :
20907 isc_cv_have_in_port_t=yes
20908 else
20909 isc_cv_have_in_port_t=no
20912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
20917 $as_echo "$isc_cv_have_in_port_t" >&6; }
20918 case "$isc_cv_have_in_port_t" in
20921 $as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
20923 esac
20925 case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
20926 *yes*)
20927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5
20928 $as_echo_n "checking for struct snd_size... " >&6; }
20929 if test "${ac_cv_struct_snd_size+set}" = set; then :
20930 $as_echo_n "(cached) " >&6
20931 else
20932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20933 /* end confdefs.h. */
20935 #ifdef HAVE_MACHINE_SOUNDCARD_H
20936 # include <machine/soundcard.h>
20937 #endif
20938 #ifdef HAVE_SYS_SOUNDCARD_H
20939 # include <sys/soundcard.h>
20940 #endif
20942 main ()
20945 extern struct snd_size *ss;
20946 return ss->rec_size;
20948 return 0;
20950 _ACEOF
20951 if ac_fn_c_try_compile "$LINENO"; then :
20952 ac_cv_struct_snd_size=yes
20953 else
20954 ac_cv_struct_snd_size=no
20956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_snd_size" >&5
20960 $as_echo "$ac_cv_struct_snd_size" >&6; }
20961 case "$ac_cv_struct_snd_size" in
20962 yes)
20963 $as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h
20965 esac
20967 esac
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5
20970 $as_echo_n "checking struct clockinfo for hz... " >&6; }
20971 if test "${ac_cv_struct_clockinfo_has_hz+set}" = set; then :
20972 $as_echo_n "(cached) " >&6
20973 else
20974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20975 /* end confdefs.h. */
20977 #include <sys/time.h>
20979 main ()
20982 extern struct clockinfo *pc;
20983 return pc->hz;
20985 return 0;
20987 _ACEOF
20988 if ac_fn_c_try_compile "$LINENO"; then :
20989 ac_cv_struct_clockinfo_has_hz=yes
20990 else
20991 ac_cv_struct_clockinfo_has_hz=no
20993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_clockinfo_has_hz" >&5
20997 $as_echo "$ac_cv_struct_clockinfo_has_hz" >&6; }
20998 if test $ac_cv_struct_clockinfo_has_hz = yes; then
21000 $as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
21004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5
21005 $as_echo_n "checking struct clockinfo for tickadj... " >&6; }
21006 if test "${ac_cv_struct_clockinfo_has_tickadj+set}" = set; then :
21007 $as_echo_n "(cached) " >&6
21008 else
21009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21010 /* end confdefs.h. */
21012 #include <sys/time.h>
21014 main ()
21017 extern struct clockinfo *pc;
21018 return pc->tickadj;
21020 return 0;
21022 _ACEOF
21023 if ac_fn_c_try_compile "$LINENO"; then :
21024 ac_cv_struct_clockinfo_has_tickadj=yes
21025 else
21026 ac_cv_struct_clockinfo_has_tickadj=no
21028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_clockinfo_has_tickadj" >&5
21032 $as_echo "$ac_cv_struct_clockinfo_has_tickadj" >&6; }
21033 if test $ac_cv_struct_clockinfo_has_tickadj = yes; then
21035 $as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
21039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
21040 $as_echo_n "checking for struct timespec... " >&6; }
21041 if test "${ac_cv_struct_timespec+set}" = set; then :
21042 $as_echo_n "(cached) " >&6
21043 else
21044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21045 /* end confdefs.h. */
21047 #include <sys/time.h>
21048 /* Under SunOS, timespec is in sys/timepps.h, which needs errno.h and FRAC */
21049 #ifdef HAVE_ERRNO_H
21050 # include <errno.h>
21051 #endif
21052 #ifdef HAVE_SYS_TIMEPPS_H
21053 # define FRAC 4294967296
21054 # include <sys/timepps.h>
21055 #endif
21057 main ()
21059 struct timespec n;
21061 return 0;
21063 _ACEOF
21064 if ac_fn_c_try_compile "$LINENO"; then :
21065 ac_cv_struct_timespec=yes
21066 else
21067 ac_cv_struct_timespec=no
21069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timespec" >&5
21072 $as_echo "$ac_cv_struct_timespec" >&6; }
21073 if test $ac_cv_struct_timespec = yes; then
21075 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
21079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
21080 $as_echo_n "checking for struct ntptimeval... " >&6; }
21081 if test "${ac_cv_struct_ntptimeval+set}" = set; then :
21082 $as_echo_n "(cached) " >&6
21083 else
21084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21085 /* end confdefs.h. */
21087 #include <sys/time.h>
21088 #include <sys/timex.h>
21090 main ()
21092 struct ntptimeval n;
21094 return 0;
21096 _ACEOF
21097 if ac_fn_c_try_compile "$LINENO"; then :
21098 ac_cv_struct_ntptimeval=yes
21099 else
21100 ac_cv_struct_ntptimeval=no
21102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_ntptimeval" >&5
21105 $as_echo "$ac_cv_struct_ntptimeval" >&6; }
21106 if test $ac_cv_struct_ntptimeval = yes; then
21108 $as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
21112 ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" "#ifdef HAVE_SYS_TIME_H
21113 #include <sys/time.h>
21114 #else
21115 # ifdef HAVE_TIME_H
21116 # include <time.h>
21117 # endif
21118 #endif
21119 #ifdef HAVE_SYS_TIMEX_H
21120 #include <sys/timex.h>
21121 #else
21122 # ifdef HAVE_TIMEX_H
21123 # include <timex.h>
21124 # endif
21125 #endif
21127 if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = x""yes; then :
21129 cat >>confdefs.h <<_ACEOF
21130 #define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
21131 _ACEOF
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
21138 $as_echo_n "checking for inline... " >&6; }
21139 if test "${ac_cv_c_inline+set}" = set; then :
21140 $as_echo_n "(cached) " >&6
21141 else
21142 ac_cv_c_inline=no
21143 for ac_kw in inline __inline__ __inline; do
21144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21145 /* end confdefs.h. */
21146 #ifndef __cplusplus
21147 typedef int foo_t;
21148 static $ac_kw foo_t static_foo () {return 0; }
21149 $ac_kw foo_t foo () {return 0; }
21150 #endif
21152 _ACEOF
21153 if ac_fn_c_try_compile "$LINENO"; then :
21154 ac_cv_c_inline=$ac_kw
21156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21157 test "$ac_cv_c_inline" != no && break
21158 done
21161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
21162 $as_echo "$ac_cv_c_inline" >&6; }
21164 case $ac_cv_c_inline in
21165 inline | yes) ;;
21167 case $ac_cv_c_inline in
21168 no) ac_val=;;
21169 *) ac_val=$ac_cv_c_inline;;
21170 esac
21171 cat >>confdefs.h <<_ACEOF
21172 #ifndef __cplusplus
21173 #define inline $ac_val
21174 #endif
21175 _ACEOF
21177 esac
21180 case "$ac_cv_c_inline" in
21185 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
21188 esac
21190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
21191 $as_echo_n "checking whether char is unsigned... " >&6; }
21192 if test "${ac_cv_c_char_unsigned+set}" = set; then :
21193 $as_echo_n "(cached) " >&6
21194 else
21195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21196 /* end confdefs.h. */
21197 $ac_includes_default
21199 main ()
21201 static int test_array [1 - 2 * !(((char) -1) < 0)];
21202 test_array [0] = 0
21205 return 0;
21207 _ACEOF
21208 if ac_fn_c_try_compile "$LINENO"; then :
21209 ac_cv_c_char_unsigned=no
21210 else
21211 ac_cv_c_char_unsigned=yes
21213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
21216 $as_echo "$ac_cv_c_char_unsigned" >&6; }
21217 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
21218 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
21221 # The cast to long int works around a bug in the HP C Compiler
21222 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21223 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21224 # This bug is HP SR number 8606223364.
21225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
21226 $as_echo_n "checking size of signed char... " >&6; }
21227 if test "${ac_cv_sizeof_signed_char+set}" = set; then :
21228 $as_echo_n "(cached) " >&6
21229 else
21230 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then :
21232 else
21233 if test "$ac_cv_type_signed_char" = yes; then
21234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21236 { as_fn_set_status 77
21237 as_fn_error "cannot compute sizeof (signed char)
21238 See \`config.log' for more details." "$LINENO" 5; }; }
21239 else
21240 ac_cv_sizeof_signed_char=0
21245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
21246 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
21250 cat >>confdefs.h <<_ACEOF
21251 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
21252 _ACEOF
21255 # The cast to long int works around a bug in the HP C Compiler
21256 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21257 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21258 # This bug is HP SR number 8606223364.
21259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
21260 $as_echo_n "checking size of int... " >&6; }
21261 if test "${ac_cv_sizeof_int+set}" = set; then :
21262 $as_echo_n "(cached) " >&6
21263 else
21264 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
21266 else
21267 if test "$ac_cv_type_int" = yes; then
21268 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21270 { as_fn_set_status 77
21271 as_fn_error "cannot compute sizeof (int)
21272 See \`config.log' for more details." "$LINENO" 5; }; }
21273 else
21274 ac_cv_sizeof_int=0
21279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
21280 $as_echo "$ac_cv_sizeof_int" >&6; }
21284 cat >>confdefs.h <<_ACEOF
21285 #define SIZEOF_INT $ac_cv_sizeof_int
21286 _ACEOF
21289 # The cast to long int works around a bug in the HP C Compiler
21290 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21291 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21292 # This bug is HP SR number 8606223364.
21293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
21294 $as_echo_n "checking size of long... " >&6; }
21295 if test "${ac_cv_sizeof_long+set}" = set; then :
21296 $as_echo_n "(cached) " >&6
21297 else
21298 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
21300 else
21301 if test "$ac_cv_type_long" = yes; then
21302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21304 { as_fn_set_status 77
21305 as_fn_error "cannot compute sizeof (long)
21306 See \`config.log' for more details." "$LINENO" 5; }; }
21307 else
21308 ac_cv_sizeof_long=0
21313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
21314 $as_echo "$ac_cv_sizeof_long" >&6; }
21318 cat >>confdefs.h <<_ACEOF
21319 #define SIZEOF_LONG $ac_cv_sizeof_long
21320 _ACEOF
21324 ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
21325 if test "x$ac_cv_type_s_char" = x""yes; then :
21327 cat >>confdefs.h <<_ACEOF
21328 #define HAVE_S_CHAR 1
21329 _ACEOF
21334 case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
21335 *yes)
21336 # We have a typedef for s_char. Might as well believe it...
21338 no0no)
21339 # We have signed chars, can't say 'signed char', no s_char typedef.
21341 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
21344 no1no)
21345 # We have signed chars, can say 'signed char', no s_char typedef.
21346 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
21349 yes0no)
21350 # We have unsigned chars, can't say 'signed char', no s_char typedef.
21351 as_fn_error "No way to specify a signed character!" "$LINENO" 5
21353 yes1no)
21354 # We have unsigned chars, can say 'signed char', no s_char typedef.
21355 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
21358 esac
21359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
21360 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
21361 if test "${ac_cv_type_uid_t+set}" = set; then :
21362 $as_echo_n "(cached) " >&6
21363 else
21364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21365 /* end confdefs.h. */
21366 #include <sys/types.h>
21368 _ACEOF
21369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21370 $EGREP "uid_t" >/dev/null 2>&1; then :
21371 ac_cv_type_uid_t=yes
21372 else
21373 ac_cv_type_uid_t=no
21375 rm -f conftest*
21378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
21379 $as_echo "$ac_cv_type_uid_t" >&6; }
21380 if test $ac_cv_type_uid_t = no; then
21382 $as_echo "#define uid_t int" >>confdefs.h
21385 $as_echo "#define gid_t int" >>confdefs.h
21390 case "$host" in
21391 *-*-aix[456]*)
21392 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
21393 # (returning ENOSYS). I didn't check 4.2. If, in the future,
21394 # IBM pulls its thumbs out long enough to implement clock_settime,
21395 # this conditional will need to change. Maybe use AC_TRY_RUN
21396 # instead to try to set the time to itself and check errno.
21399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21400 $as_echo_n "checking for library containing clock_gettime... " >&6; }
21401 if test "${ac_cv_search_clock_gettime+set}" = set; then :
21402 $as_echo_n "(cached) " >&6
21403 else
21404 ac_func_search_save_LIBS=$LIBS
21405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21406 /* end confdefs.h. */
21408 /* Override any GCC internal prototype to avoid an error.
21409 Use char because int might match the return type of a GCC
21410 builtin and then its argument prototype would still apply. */
21411 #ifdef __cplusplus
21412 extern "C"
21413 #endif
21414 char clock_gettime ();
21416 main ()
21418 return clock_gettime ();
21420 return 0;
21422 _ACEOF
21423 for ac_lib in '' rt; do
21424 if test -z "$ac_lib"; then
21425 ac_res="none required"
21426 else
21427 ac_res=-l$ac_lib
21428 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21430 if ac_fn_c_try_link "$LINENO"; then :
21431 ac_cv_search_clock_gettime=$ac_res
21433 rm -f core conftest.err conftest.$ac_objext \
21434 conftest$ac_exeext
21435 if test "${ac_cv_search_clock_gettime+set}" = set; then :
21436 break
21438 done
21439 if test "${ac_cv_search_clock_gettime+set}" = set; then :
21441 else
21442 ac_cv_search_clock_gettime=no
21444 rm conftest.$ac_ext
21445 LIBS=$ac_func_search_save_LIBS
21447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21448 $as_echo "$ac_cv_search_clock_gettime" >&6; }
21449 ac_res=$ac_cv_search_clock_gettime
21450 if test "$ac_res" != no; then :
21451 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21455 for ac_func in clock_gettime clock_settime
21456 do :
21457 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21458 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21459 eval as_val=\$$as_ac_var
21460 if test "x$as_val" = x""yes; then :
21461 cat >>confdefs.h <<_ACEOF
21462 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21463 _ACEOF
21466 done
21469 esac
21470 for ac_func in daemon
21471 do :
21472 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
21473 if test "x$ac_cv_func_daemon" = x""yes; then :
21474 cat >>confdefs.h <<_ACEOF
21475 #define HAVE_DAEMON 1
21476 _ACEOF
21479 done
21481 for ac_func in finite
21482 do :
21483 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
21484 if test "x$ac_cv_func_finite" = x""yes; then :
21485 cat >>confdefs.h <<_ACEOF
21486 #define HAVE_FINITE 1
21487 _ACEOF
21489 else
21490 for ac_func in isfinite
21491 do :
21492 ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite"
21493 if test "x$ac_cv_func_isfinite" = x""yes; then :
21494 cat >>confdefs.h <<_ACEOF
21495 #define HAVE_ISFINITE 1
21496 _ACEOF
21498 else
21499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
21500 $as_echo_n "checking for isfinite with <math.h>... " >&6; }
21501 _libs=$LIBS
21502 LIBS="$LIBS -lm"
21503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21504 /* end confdefs.h. */
21505 #include <math.h>
21507 main ()
21509 float f = 0.0; isfinite(f)
21511 return 0;
21513 _ACEOF
21514 if ac_fn_c_try_link "$LINENO"; then :
21515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21516 $as_echo "yes" >&6; }
21517 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
21519 else
21520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21521 $as_echo "no" >&6; }
21523 rm -f core conftest.err conftest.$ac_objext \
21524 conftest$ac_exeext conftest.$ac_ext
21525 LIBS=$_libs
21527 done
21530 done
21532 for ac_func in getbootfile getclock getdtablesize
21533 do :
21534 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21535 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21536 eval as_val=\$$as_ac_var
21537 if test "x$as_val" = x""yes; then :
21538 cat >>confdefs.h <<_ACEOF
21539 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21540 _ACEOF
21543 done
21546 # Check whether --enable-getifaddrs was given.
21547 if test "${enable_getifaddrs+set}" = set; then :
21548 enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
21549 else
21550 want_getifaddrs="yes"
21554 case $want_getifaddrs in
21555 yes|glibc)
21557 # Do we have getifaddrs() ?
21559 case $host in
21560 *-*linux*)
21561 # Some recent versions of glibc support getifaddrs() which does not
21562 # provide AF_INET6 addresses while the function provided by the USAGI
21563 # project handles the AF_INET6 case correctly. We need to avoid
21564 # using the former but prefer the latter unless overridden by
21565 # --enable-getifaddrs=glibc.
21566 if test $want_getifaddrs = glibc
21567 then
21568 for ac_func in getifaddrs
21569 do :
21570 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
21571 if test "x$ac_cv_func_getifaddrs" = x""yes; then :
21572 cat >>confdefs.h <<_ACEOF
21573 #define HAVE_GETIFADDRS 1
21574 _ACEOF
21577 done
21579 else
21580 save_LIBS="$LIBS"
21581 LIBS="-L/usr/local/v6/lib $LIBS"
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getifaddrs in -linet6" >&5
21583 $as_echo_n "checking for getifaddrs in -linet6... " >&6; }
21584 if test "${ac_cv_lib_inet6_getifaddrs+set}" = set; then :
21585 $as_echo_n "(cached) " >&6
21586 else
21587 ac_check_lib_save_LIBS=$LIBS
21588 LIBS="-linet6 $LIBS"
21589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21590 /* end confdefs.h. */
21592 /* Override any GCC internal prototype to avoid an error.
21593 Use char because int might match the return type of a GCC
21594 builtin and then its argument prototype would still apply. */
21595 #ifdef __cplusplus
21596 extern "C"
21597 #endif
21598 char getifaddrs ();
21600 main ()
21602 return getifaddrs ();
21604 return 0;
21606 _ACEOF
21607 if ac_fn_c_try_link "$LINENO"; then :
21608 ac_cv_lib_inet6_getifaddrs=yes
21609 else
21610 ac_cv_lib_inet6_getifaddrs=no
21612 rm -f core conftest.err conftest.$ac_objext \
21613 conftest$ac_exeext conftest.$ac_ext
21614 LIBS=$ac_check_lib_save_LIBS
21616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getifaddrs" >&5
21617 $as_echo "$ac_cv_lib_inet6_getifaddrs" >&6; }
21618 if test "x$ac_cv_lib_inet6_getifaddrs" = x""yes; then :
21619 LIBS="$LIBS -linet6"
21620 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
21622 else
21623 LIBS=${save_LIBS}
21629 for ac_func in getifaddrs
21630 do :
21631 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
21632 if test "x$ac_cv_func_getifaddrs" = x""yes; then :
21633 cat >>confdefs.h <<_ACEOF
21634 #define HAVE_GETIFADDRS 1
21635 _ACEOF
21638 done
21641 esac
21645 esac
21647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
21648 $as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
21649 if test "${ac_cv_func_getsockname_arg2+set}" = set; then :
21650 $as_echo_n "(cached) " >&6
21651 else
21652 if test "${ac_cv_func_getsockname_socklen_type+set}" = set; then :
21653 $as_echo_n "(cached) " >&6
21654 else
21655 for ac_cv_func_getsockname_arg2 in 'struct sockaddr *' 'void *'; do
21656 for ac_cv_func_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
21657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21658 /* end confdefs.h. */
21659 #ifdef HAVE_SYS_TYPES_H
21660 #include <sys/types.h>
21661 #endif
21662 #ifdef HAVE_SYS_SOCKET_H
21663 #include <sys/socket.h>
21664 #endif
21665 extern getsockname (int, $ac_cv_func_getsockname_arg2, $ac_cv_func_getsockname_socklen_type *);
21667 main ()
21671 return 0;
21673 _ACEOF
21674 if ac_fn_c_try_compile "$LINENO"; then :
21675 ac_not_found=no ; break 2
21676 else
21677 ac_not_found=yes
21679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21680 done
21681 done
21686 if test "$ac_not_found" = yes; then
21687 ac_cv_func_getsockname_socklen_type='socklen_t'
21689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getsockname_socklen_type" >&5
21690 $as_echo "$ac_cv_func_getsockname_socklen_type" >&6; }
21692 cat >>confdefs.h <<_ACEOF
21693 #define GETSOCKNAME_SOCKLEN_TYPE $ac_cv_func_getsockname_socklen_type
21694 _ACEOF
21697 for ac_func in getrusage
21698 do :
21699 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
21700 if test "x$ac_cv_func_getrusage" = x""yes; then :
21701 cat >>confdefs.h <<_ACEOF
21702 #define HAVE_GETRUSAGE 1
21703 _ACEOF
21706 done
21708 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
21709 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
21711 else
21713 case "$host" in
21714 *-*-mpeix*) ac_cv_func_gettimeofday=yes
21716 esac
21719 case "$host" in
21720 *-pc-cygwin*)
21722 *) for ac_func in getuid
21723 do :
21724 ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid"
21725 if test "x$ac_cv_func_getuid" = x""yes; then :
21726 cat >>confdefs.h <<_ACEOF
21727 #define HAVE_GETUID 1
21728 _ACEOF
21731 done
21734 esac
21735 for ac_func in hstrerror
21736 do :
21737 ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror"
21738 if test "x$ac_cv_func_hstrerror" = x""yes; then :
21739 cat >>confdefs.h <<_ACEOF
21740 #define HAVE_HSTRERROR 1
21741 _ACEOF
21744 done
21748 # Check for if_nametoindex() for IPv6 scoped addresses support
21750 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
21751 if test "x$ac_cv_func_if_nametoindex" = x""yes; then :
21752 ac_cv_have_if_nametoindex=yes
21753 else
21754 ac_cv_have_if_nametoindex=no
21757 case $ac_cv_have_if_nametoindex in
21759 case "$host" in
21760 *-hp-hpux*)
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for if_nametoindex in -lipv6" >&5
21762 $as_echo_n "checking for if_nametoindex in -lipv6... " >&6; }
21763 if test "${ac_cv_lib_ipv6_if_nametoindex+set}" = set; then :
21764 $as_echo_n "(cached) " >&6
21765 else
21766 ac_check_lib_save_LIBS=$LIBS
21767 LIBS="-lipv6 $LIBS"
21768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21769 /* end confdefs.h. */
21771 /* Override any GCC internal prototype to avoid an error.
21772 Use char because int might match the return type of a GCC
21773 builtin and then its argument prototype would still apply. */
21774 #ifdef __cplusplus
21775 extern "C"
21776 #endif
21777 char if_nametoindex ();
21779 main ()
21781 return if_nametoindex ();
21783 return 0;
21785 _ACEOF
21786 if ac_fn_c_try_link "$LINENO"; then :
21787 ac_cv_lib_ipv6_if_nametoindex=yes
21788 else
21789 ac_cv_lib_ipv6_if_nametoindex=no
21791 rm -f core conftest.err conftest.$ac_objext \
21792 conftest$ac_exeext conftest.$ac_ext
21793 LIBS=$ac_check_lib_save_LIBS
21795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipv6_if_nametoindex" >&5
21796 $as_echo "$ac_cv_lib_ipv6_if_nametoindex" >&6; }
21797 if test "x$ac_cv_lib_ipv6_if_nametoindex" = x""yes; then :
21798 ac_cv_have_if_nametoindex=yes
21799 LIBS="-lipv6 $LIBS"
21803 esac
21804 esac
21805 case $ac_cv_have_if_nametoindex in
21806 yes)
21808 $as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
21811 esac
21813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
21814 $as_echo_n "checking for library containing inet_ntop... " >&6; }
21815 if test "${ac_cv_search_inet_ntop+set}" = set; then :
21816 $as_echo_n "(cached) " >&6
21817 else
21818 ac_func_search_save_LIBS=$LIBS
21819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21820 /* end confdefs.h. */
21822 /* Override any GCC internal prototype to avoid an error.
21823 Use char because int might match the return type of a GCC
21824 builtin and then its argument prototype would still apply. */
21825 #ifdef __cplusplus
21826 extern "C"
21827 #endif
21828 char inet_ntop ();
21830 main ()
21832 return inet_ntop ();
21834 return 0;
21836 _ACEOF
21837 for ac_lib in '' resolv; do
21838 if test -z "$ac_lib"; then
21839 ac_res="none required"
21840 else
21841 ac_res=-l$ac_lib
21842 LIBS="-l$ac_lib -lsocket -lnsl $ac_func_search_save_LIBS"
21844 if ac_fn_c_try_link "$LINENO"; then :
21845 ac_cv_search_inet_ntop=$ac_res
21847 rm -f core conftest.err conftest.$ac_objext \
21848 conftest$ac_exeext
21849 if test "${ac_cv_search_inet_ntop+set}" = set; then :
21850 break
21852 done
21853 if test "${ac_cv_search_inet_ntop+set}" = set; then :
21855 else
21856 ac_cv_search_inet_ntop=no
21858 rm conftest.$ac_ext
21859 LIBS=$ac_func_search_save_LIBS
21861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
21862 $as_echo "$ac_cv_search_inet_ntop" >&6; }
21863 ac_res=$ac_cv_search_inet_ntop
21864 if test "$ac_res" != no; then :
21865 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21869 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
21870 if test "x$ac_cv_func_inet_ntop" = x""yes; then :
21872 else
21874 $as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
21878 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
21879 if test "x$ac_cv_func_inet_pton" = x""yes; then :
21881 else
21883 $as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
21887 case "$ac_cv_header_kvm_h" in
21888 yes)
21889 for ac_func in kvm_open
21890 do :
21891 ac_fn_c_check_func "$LINENO" "kvm_open" "ac_cv_func_kvm_open"
21892 if test "x$ac_cv_func_kvm_open" = x""yes; then :
21893 cat >>confdefs.h <<_ACEOF
21894 #define HAVE_KVM_OPEN 1
21895 _ACEOF
21898 done
21901 esac
21902 for ac_func in memcpy memmove memset
21903 do :
21904 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21905 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21906 eval as_val=\$$as_ac_var
21907 if test "x$as_val" = x""yes; then :
21908 cat >>confdefs.h <<_ACEOF
21909 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21910 _ACEOF
21913 done
21915 case "$host" in
21916 *-*-sco3.2v5.0.*)
21917 # Just stubs. Idiots.
21919 *) for ac_func in mkstemp
21920 do :
21921 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
21922 if test "x$ac_cv_func_mkstemp" = x""yes; then :
21923 cat >>confdefs.h <<_ACEOF
21924 #define HAVE_MKSTEMP 1
21925 _ACEOF
21928 done
21931 esac
21932 for ac_func in mktime
21933 do :
21934 ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
21935 if test "x$ac_cv_func_mktime" = x""yes; then :
21936 cat >>confdefs.h <<_ACEOF
21937 #define HAVE_MKTIME 1
21938 _ACEOF
21941 done
21943 case "$host" in
21944 *-*-aix[456]*)
21945 # Just a stub. Idiots.
21947 *-*-irix[45]*)
21948 # Just a stub in "old" Irix. Idiots.
21950 *-*-*linux*)
21951 # there, but more trouble than it is worth for now (resolver problems)
21953 *-*-qnx*)
21954 # Apparently there but not working in QNX. Idiots?
21956 *-*-sco3.2v5.0.*)
21957 # Just a stub. Idiots.
21959 alpha*-dec-osf4*|alpha*-dec-osf5*)
21960 # mlockall is there, as a #define calling memlk via <sys/mman.h>
21961 # Not easy to test for - cheat.
21962 for ac_func in memlk
21963 do :
21964 ac_fn_c_check_func "$LINENO" "memlk" "ac_cv_func_memlk"
21965 if test "x$ac_cv_func_memlk" = x""yes; then :
21966 cat >>confdefs.h <<_ACEOF
21967 #define HAVE_MEMLK 1
21968 _ACEOF
21969 ac_cv_func_mlockall='yes'
21971 done
21973 for ac_func in mlockall
21974 do :
21975 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
21976 if test "x$ac_cv_func_mlockall" = x""yes; then :
21977 cat >>confdefs.h <<_ACEOF
21978 #define HAVE_MLOCKALL 1
21979 _ACEOF
21982 done
21985 *) for ac_func in mlockall
21986 do :
21987 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
21988 if test "x$ac_cv_func_mlockall" = x""yes; then :
21989 cat >>confdefs.h <<_ACEOF
21990 #define HAVE_MLOCKALL 1
21991 _ACEOF
21994 done
21997 esac
21998 for ac_func in nice nlist
21999 do :
22000 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22001 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22002 eval as_val=\$$as_ac_var
22003 if test "x$as_val" = x""yes; then :
22004 cat >>confdefs.h <<_ACEOF
22005 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22006 _ACEOF
22009 done
22011 case "$host" in
22012 *-*-solaris2.6)
22013 # Broken...
22015 *) for ac_func in ntp_adjtime ntp_gettime
22016 do :
22017 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22018 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22019 eval as_val=\$$as_ac_var
22020 if test "x$as_val" = x""yes; then :
22021 cat >>confdefs.h <<_ACEOF
22022 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22023 _ACEOF
22026 done
22029 esac
22030 for ac_func in plock pututline pututxline readlink recvmsg rtprio
22031 do :
22032 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22033 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22034 eval as_val=\$$as_ac_var
22035 if test "x$as_val" = x""yes; then :
22036 cat >>confdefs.h <<_ACEOF
22037 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22038 _ACEOF
22041 done
22043 case "$host" in
22044 *-*-aix[456]*)
22045 # Just a stub in AIX 4. Idiots.
22047 *-*-solaris2.5*)
22048 # Just stubs in solaris2.5. Idiots.
22050 *) for ac_func in sched_setscheduler
22051 do :
22052 ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
22053 if test "x$ac_cv_func_sched_setscheduler" = x""yes; then :
22054 cat >>confdefs.h <<_ACEOF
22055 #define HAVE_SCHED_SETSCHEDULER 1
22056 _ACEOF
22059 done
22062 esac
22063 for ac_func in setlinebuf setpgid setpriority setsid
22064 do :
22065 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22066 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22067 eval as_val=\$$as_ac_var
22068 if test "x$as_val" = x""yes; then :
22069 cat >>confdefs.h <<_ACEOF
22070 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22071 _ACEOF
22074 done
22076 for ac_func in setrlimit
22077 do :
22078 ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
22079 if test "x$ac_cv_func_setrlimit" = x""yes; then :
22080 cat >>confdefs.h <<_ACEOF
22081 #define HAVE_SETRLIMIT 1
22082 _ACEOF
22085 done
22087 for ac_func in settimeofday
22088 do :
22089 ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
22090 if test "x$ac_cv_func_settimeofday" = x""yes; then :
22091 cat >>confdefs.h <<_ACEOF
22092 #define HAVE_SETTIMEOFDAY 1
22093 _ACEOF
22095 else
22097 case "$host" in
22098 *-*-mpeix*) ac_cv_func_settimeofday=yes
22100 esac
22102 done
22104 for ac_func in setvbuf sigaction
22105 do :
22106 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22107 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22108 eval as_val=\$$as_ac_var
22109 if test "x$as_val" = x""yes; then :
22110 cat >>confdefs.h <<_ACEOF
22111 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22112 _ACEOF
22115 done
22117 for ac_func in sigvec sigset sigsuspend stime strchr sysconf sysctl
22118 do :
22119 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22120 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22121 eval as_val=\$$as_ac_var
22122 if test "x$as_val" = x""yes; then :
22123 cat >>confdefs.h <<_ACEOF
22124 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22125 _ACEOF
22128 done
22130 for ac_func in snprintf strdup strerror strstr
22131 do :
22132 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22133 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22134 eval as_val=\$$as_ac_var
22135 if test "x$as_val" = x""yes; then :
22136 cat >>confdefs.h <<_ACEOF
22137 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22138 _ACEOF
22141 done
22143 for ac_func in timegm
22144 do :
22145 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
22146 if test "x$ac_cv_func_timegm" = x""yes; then :
22147 cat >>confdefs.h <<_ACEOF
22148 #define HAVE_TIMEGM 1
22149 _ACEOF
22152 done
22154 case "$host" in
22155 *-*-aix[456]*)
22156 # Just stubs. Idiots.
22158 *-*-netbsd1*)
22159 # Just stubs. Idiots.
22161 *-*-netbsdelf1*)
22162 # Just stubs. Idiots.
22164 *-*-openbsd*)
22165 # Just stubs. Idiots.
22167 *) for ac_func in timer_create timer_settime
22168 do :
22169 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22170 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22171 eval as_val=\$$as_ac_var
22172 if test "x$as_val" = x""yes; then :
22173 cat >>confdefs.h <<_ACEOF
22174 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22175 _ACEOF
22178 done
22181 esac
22182 case "$host" in
22183 *-pc-cygwin*)
22184 # I have no idea...
22186 *) for ac_func in umask
22187 do :
22188 ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask"
22189 if test "x$ac_cv_func_umask" = x""yes; then :
22190 cat >>confdefs.h <<_ACEOF
22191 #define HAVE_UMASK 1
22192 _ACEOF
22195 done
22198 esac
22199 for ac_func in uname updwtmp updwtmpx vsnprintf vsprintf
22200 do :
22201 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22202 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22203 eval as_val=\$$as_ac_var
22204 if test "x$as_val" = x""yes; then :
22205 cat >>confdefs.h <<_ACEOF
22206 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22207 _ACEOF
22210 done
22215 # http://bugs.ntp.org/737
22216 case "$ac_cv_func_recvmsg" in
22217 yes)
22218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra help to define struct iovec" >&5
22219 $as_echo_n "checking if we need extra help to define struct iovec... " >&6; }
22220 if test "${ac_cv_struct_iovec_help+set}" = set; then :
22221 $as_echo_n "(cached) " >&6
22222 else
22223 for ac_cv_struct_iovec_help in '0' '1'; do
22224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22225 /* end confdefs.h. */
22226 #ifdef HAVE_SYS_TYPES_H
22227 #include <sys/types.h>
22228 #endif
22229 #ifdef HAVE_SYS_SOCKET_H
22230 #include <sys/socket.h>
22231 #endif
22232 #if $ac_cv_struct_iovec_help
22233 #include <sys/uio.h>
22234 #endif
22236 void foo();
22237 void foo() {
22238 ssize_t x;
22239 int s = 0;
22240 struct iovec iov;
22241 struct msghdr mh;
22242 int flags = 0;
22244 mh.msg_iov = &iov;
22245 x = recvmsg(s, &mh, flags);
22248 main ()
22252 return 0;
22254 _ACEOF
22255 if ac_fn_c_try_compile "$LINENO"; then :
22256 ac_worked=yes ; break 1
22257 else
22258 ac_worked=no
22260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22261 done
22264 case "$ac_worked$ac_cv_struct_iovec_help" in
22265 yes1)
22267 $as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h
22269 ans=yes
22271 *) ans=no
22272 esac
22273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
22274 $as_echo "$ans" >&6; }
22276 esac
22278 case "$host" in
22279 *-*-sunos4*)
22281 $as_echo "#define SPRINTF_CHAR 1" >>confdefs.h
22284 esac
22286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
22287 $as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
22288 if test "${ac_cv_func_Xettimeofday_nargs+set}" = set; then :
22289 $as_echo_n "(cached) " >&6
22290 else
22291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22292 /* end confdefs.h. */
22293 #include <sys/time.h>
22295 main ()
22298 gettimeofday((struct timeval*)0,(struct timezone*)0);
22299 settimeofday((struct timeval*)0,(struct timezone*)0);
22302 return 0;
22304 _ACEOF
22305 if ac_fn_c_try_compile "$LINENO"; then :
22306 ac_cv_func_Xettimeofday_nargs=2
22307 else
22308 ac_cv_func_Xettimeofday_nargs=1
22310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_Xettimeofday_nargs" >&5
22314 $as_echo "$ac_cv_func_Xettimeofday_nargs" >&6; }
22315 if test $ac_cv_func_Xettimeofday_nargs = 1; then
22317 $as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h
22321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments taken by setpgrp()" >&5
22322 $as_echo_n "checking number of arguments taken by setpgrp()... " >&6; }
22323 if test "${ac_cv_func_setpgrp_nargs+set}" = set; then :
22324 $as_echo_n "(cached) " >&6
22325 else
22326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22327 /* end confdefs.h. */
22329 #ifdef HAVE_SYS_TYPES_H
22330 # include <sys/types.h>
22331 #endif
22332 #ifdef HAVE_UNISTD_H
22333 # include <unistd.h>
22334 #endif
22337 main ()
22339 setpgrp(0,0);
22341 return 0;
22343 _ACEOF
22344 if ac_fn_c_try_compile "$LINENO"; then :
22345 ac_cv_func_setpgrp_nargs=2
22346 else
22347 ac_cv_func_setpgrp_nargs=0
22349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_nargs" >&5
22353 $as_echo "$ac_cv_func_setpgrp_nargs" >&6; }
22354 if test $ac_cv_func_setpgrp_nargs = 0; then
22356 $as_echo "#define HAVE_SETPGRP_0 1" >>confdefs.h
22360 save_CFLAGS=$CFLAGS
22361 CFLAGS="$CFLAGS -I$srcdir/include"
22363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking argument pointer type of qsort()'s compare function and base" >&5
22364 $as_echo_n "checking argument pointer type of qsort()'s compare function and base... " >&6; }
22365 if test "${ac_cv_func_qsort_argtype+set}" = set; then :
22366 $as_echo_n "(cached) " >&6
22367 else
22368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22369 /* end confdefs.h. */
22371 #include "l_stdlib.h"
22373 extern void *base;
22374 extern sortfunc (const void *, const void *);
22375 int sortfunc(a, b)
22376 const void *a;
22377 const void *b; { return 0; }
22380 main ()
22383 qsort(base, 2, sizeof(char *), sortfunc);
22386 return 0;
22388 _ACEOF
22389 if ac_fn_c_try_compile "$LINENO"; then :
22390 ac_cv_func_qsort_argtype=void
22391 else
22392 ac_cv_func_qsort_argtype=char
22394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_qsort_argtype" >&5
22398 $as_echo "$ac_cv_func_qsort_argtype" >&6; }
22399 case "$ac_cv_func_qsort_argtype" in
22400 void)
22402 $as_echo "#define QSORT_USES_VOID_P 1" >>confdefs.h
22405 esac
22407 CFLAGS=$save_CFLAGS
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to declare 'errno'" >&5
22410 $as_echo_n "checking if we need to declare 'errno'... " >&6; }
22411 if test "${ac_cv_decl_errno+set}" = set; then :
22412 $as_echo_n "(cached) " >&6
22413 else
22414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22415 /* end confdefs.h. */
22416 #ifdef HAVE_ERRNO_H
22417 #include <errno.h>
22418 #endif
22420 main ()
22422 errno = 0;
22424 return 0;
22426 _ACEOF
22427 if ac_fn_c_try_compile "$LINENO"; then :
22428 ac_cv_decl_errno=no
22429 else
22430 ac_cv_decl_errno=yes
22432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_errno" >&5
22435 $as_echo "$ac_cv_decl_errno" >&6; }
22436 case "$ac_cv_decl_errno" in
22437 yes)
22438 $as_echo "#define DECL_ERRNO 1" >>confdefs.h
22440 esac
22442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we may declare 'h_errno'" >&5
22443 $as_echo_n "checking if we may declare 'h_errno'... " >&6; }
22444 if test "${ac_cv_decl_h_errno+set}" = set; then :
22445 $as_echo_n "(cached) " >&6
22446 else
22447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22448 /* end confdefs.h. */
22449 #include <sys/types.h>
22450 #ifdef HAVE_NETINET_IN_H
22451 #include <netinet/in.h>
22452 #endif
22453 #ifdef HAVE_ARPA_NAMESER_H
22454 #include <arpa/nameser.h>
22455 #endif
22456 #ifdef HAVE_NETDB_H
22457 #include <netdb.h>
22458 #endif
22459 #ifdef HAVE_RESOLV_H
22460 #include <resolv.h>
22461 #endif
22463 main ()
22465 extern int h_errno;
22467 return 0;
22469 _ACEOF
22470 if ac_fn_c_try_compile "$LINENO"; then :
22471 ac_cv_decl_h_errno=yes
22472 else
22473 ac_cv_decl_h_errno=no
22475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_h_errno" >&5
22478 $as_echo "$ac_cv_decl_h_errno" >&6; }
22479 case "$ac_cv_decl_h_errno" in
22480 yes)
22481 $as_echo "#define DECL_H_ERRNO 1" >>confdefs.h
22483 esac
22485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'char *sys_errlist[]' is ok" >&5
22486 $as_echo_n "checking if declaring 'char *sys_errlist[]' is ok... " >&6; }
22487 if test "${ac_cv_decl_sys_errlist+set}" = set; then :
22488 $as_echo_n "(cached) " >&6
22489 else
22490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22491 /* end confdefs.h. */
22492 #include <stdio.h>
22493 #ifdef HAVE_ERRNO_H
22494 #include <errno.h>
22495 #endif
22497 main ()
22499 extern char *sys_errlist[];
22502 return 0;
22504 _ACEOF
22505 if ac_fn_c_try_compile "$LINENO"; then :
22506 ac_cv_decl_sys_errlist=yes
22507 else
22508 ac_cv_decl_sys_errlist=no
22510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_sys_errlist" >&5
22513 $as_echo "$ac_cv_decl_sys_errlist" >&6; }
22514 case "$ac_cv_decl_sys_errlist" in
22515 yes)
22516 $as_echo "#define CHAR_SYS_ERRLIST 1" >>confdefs.h
22518 esac
22520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'syscall()' is ok" >&5
22521 $as_echo_n "checking if declaring 'syscall()' is ok... " >&6; }
22522 if test "${ac_cv_decl_syscall+set}" = set; then :
22523 $as_echo_n "(cached) " >&6
22524 else
22525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22526 /* end confdefs.h. */
22528 #ifdef HAVE_SYS_TYPES_H
22529 # include <sys/types.h>
22530 #endif
22531 #ifdef HAVE_UNISTD_H
22532 # include <unistd.h>
22533 #endif
22536 main ()
22538 extern int syscall (int, ...);
22540 return 0;
22542 _ACEOF
22543 if ac_fn_c_try_compile "$LINENO"; then :
22544 ac_cv_decl_syscall=yes
22545 else
22546 ac_cv_decl_syscall=no
22548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_syscall" >&5
22551 $as_echo "$ac_cv_decl_syscall" >&6; }
22552 case "$ac_cv_decl_syscall" in
22553 yes)
22554 $as_echo "#define DECL_SYSCALL 1" >>confdefs.h
22556 esac
22558 case "$host" in
22559 *-*-aix4.3.*)
22561 $as_echo "#define DECL_HSTRERROR_0 1" >>confdefs.h
22562 # Needed for XLC under AIX 4.3.2
22564 *-*-mpeix*)
22566 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
22569 $as_echo "#define DECL_INET_NTOA_0 1" >>confdefs.h
22572 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
22575 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
22578 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
22581 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
22584 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
22587 *-*-osf[45]*)
22589 $as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
22592 $as_echo "#define DECL_STIME_1 1" >>confdefs.h
22595 *-*-qnx*)
22597 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
22600 *-*-riscos4*)
22602 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
22605 $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
22608 $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
22611 $as_echo "#define DECL_IPC_0 1" >>confdefs.h
22614 $as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
22617 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
22620 $as_echo "#define DECL_RENAME_0 1" >>confdefs.h
22623 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
22626 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
22629 $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
22632 $as_echo "#define DECL_STDIO_0 1" >>confdefs.h
22635 $as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
22638 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
22641 $as_echo "#define DECL_TIME_0 1" >>confdefs.h
22644 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
22647 $as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
22650 *-*-solaris2*)
22652 $as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
22655 $as_echo "#define DECL_SETPRIORITY_1 1" >>confdefs.h
22657 case "$host" in
22658 *-*-solaris2.4)
22660 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
22663 esac
22665 *-*-sunos4*)
22667 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
22670 $as_echo "#define DECL_BCOPY_0 1" >>confdefs.h
22673 $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
22676 $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
22679 $as_echo "#define DECL_IPC_0 1" >>confdefs.h
22682 $as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
22685 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
22688 $as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
22691 $as_echo "#define DECL_RENAME_0 1" >>confdefs.h
22694 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
22697 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
22700 $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
22703 $as_echo "#define DECL_SIGVEC_0 1" >>confdefs.h
22705 case "`basename $ac_cv_prog_CC`" in
22706 acc*) ;;
22708 $as_echo "#define DECL_STDIO_0 1" >>confdefs.h
22711 esac
22713 $as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
22716 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
22719 $as_echo "#define DECL_TIME_0 1" >>confdefs.h
22722 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
22725 $as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
22728 $as_echo "#define DECL_TOUPPER_0 1" >>confdefs.h
22731 $as_echo "#define DECL_STRERROR_0 1" >>confdefs.h
22734 *-*-ultrix4*)
22736 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
22739 $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
22742 $as_echo "#define DECL_CFSETISPEED_0 1" >>confdefs.h
22745 $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
22748 $as_echo "#define DECL_IPC_0 1" >>confdefs.h
22751 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
22754 $as_echo "#define DECL_NLIST_0 1" >>confdefs.h
22757 $as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
22760 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
22763 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
22766 $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
22769 $as_echo "#define DECL_STIME_0 1" >>confdefs.h
22772 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
22775 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
22778 esac
22780 case "$host" in
22781 *-*-sco3.2*)
22783 $as_echo "#define TERMIOS_NEEDS__SVID3 1" >>confdefs.h
22786 esac
22788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra room for SO_RCVBUF" >&5
22789 $as_echo_n "checking if we need extra room for SO_RCVBUF... " >&6; }
22790 if test "${ac_cv_var_rcvbuf_slop+set}" = set; then :
22791 $as_echo_n "(cached) " >&6
22792 else
22793 ans=no
22794 case "$host" in
22795 *-*-hpux[567]*)
22796 ans=yes
22798 esac
22799 ac_cv_var_rcvbuf_slop=$ans
22801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_rcvbuf_slop" >&5
22802 $as_echo "$ac_cv_var_rcvbuf_slop" >&6; }
22803 case "$ac_cv_var_rcvbuf_slop" in
22804 yes)
22805 $as_echo "#define NEED_RCVBUF_SLOP 1" >>confdefs.h
22807 esac
22809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will open the broadcast socket" >&5
22810 $as_echo_n "checking if we will open the broadcast socket... " >&6; }
22811 if test "${ac_cv_var_open_bcast_socket+set}" = set; then :
22812 $as_echo_n "(cached) " >&6
22813 else
22814 ans=yes
22815 case "$host" in
22816 *-*-domainos)
22817 ans=no
22819 esac
22820 ac_cv_var_open_bcast_socket=$ans
22822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_open_bcast_socket" >&5
22823 $as_echo "$ac_cv_var_open_bcast_socket" >&6; }
22824 case "$ac_cv_var_open_bcast_socket" in
22825 yes)
22826 $as_echo "#define OPEN_BCAST_SOCKET 1" >>confdefs.h
22828 esac
22830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the HPUX version of FindConfig()" >&5
22831 $as_echo_n "checking if we want the HPUX version of FindConfig()... " >&6; }
22832 if test "${ac_cv_var_hpux_findconfig+set}" = set; then :
22833 $as_echo_n "(cached) " >&6
22834 else
22835 ans=no
22836 case "$host" in
22837 *-*-hpux*)
22838 ans=yes
22840 esac
22841 ac_cv_var_hpux_findconfig=$ans
22843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_hpux_findconfig" >&5
22844 $as_echo "$ac_cv_var_hpux_findconfig" >&6; }
22845 case "$ac_cv_var_hpux_findconfig" in
22846 yes)
22847 $as_echo "#define NEED_HPUX_FINDCONFIG 1" >>confdefs.h
22849 esac
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if process groups are set with -pid" >&5
22852 $as_echo_n "checking if process groups are set with -pid... " >&6; }
22853 if test "${ac_cv_arg_setpgrp_negpid+set}" = set; then :
22854 $as_echo_n "(cached) " >&6
22855 else
22856 case "$host" in
22857 *-*-hpux[567]*)
22858 ans=no
22860 *-*-hpux*)
22861 ans=yes
22863 *-*-*linux*)
22864 ans=yes
22866 *-*-sunos3*)
22867 ans=yes
22869 *-*-ultrix2*)
22870 ans=yes
22873 ans=no
22875 esac
22876 ac_cv_arg_setpgrp_negpid=$ans
22878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_arg_setpgrp_negpid" >&5
22879 $as_echo "$ac_cv_arg_setpgrp_negpid" >&6; }
22880 case "$ac_cv_arg_setpgrp_negpid" in
22881 yes)
22882 $as_echo "#define UDP_BACKWARDS_SETOWN 1" >>confdefs.h
22884 esac
22886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need a ctty for F_SETOWN" >&5
22887 $as_echo_n "checking if we need a ctty for F_SETOWN... " >&6; }
22888 if test "${ntp_cv_func_ctty_for_f_setown+set}" = set; then :
22889 $as_echo_n "(cached) " >&6
22890 else
22892 case "$host" in
22893 *-*-bsdi23*)
22894 ans=yes
22896 *-*-freebsd*)
22897 ans=yes
22899 # NetBSD versions prior to 3.99.8 require a CTTY for F_SETOWN,
22900 # while later versions will fail a ioctl(TIOCSCTTY, 0) call in
22901 # some cases and so should not have USE_FSETOWNCTTY. "netbsd"
22902 # in $host may be followed by "aout", "ecoff", or "elf".
22903 *-*-netbsd*a-z3.0-8*|*-*-netbsd*a-z0-2.*|*-*-netbsd*a-z3.99.0-7)
22904 ans=yes
22906 *-*-netbsd3.0-8*|*-*-netbsd0-2.*|*-*-netbsd3.99.0-7)
22907 ans=yes
22909 *-*-openbsd*)
22910 ans=yes
22912 *-*-osf*)
22913 ans=yes
22915 *-*-darwin*)
22916 ans=yes
22919 ans=no
22920 esac
22921 ntp_cv_func_ctty_for_f_setown=$ans
22925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_ctty_for_f_setown" >&5
22926 $as_echo "$ntp_cv_func_ctty_for_f_setown" >&6; }
22927 case "$ntp_cv_func_ctty_for_f_setown" in
22928 yes)
22930 $as_echo "#define USE_FSETOWNCTTY 1" >>confdefs.h
22932 esac
22934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS fails to clear cached routes when more specific routes become available" >&5
22935 $as_echo_n "checking if the OS fails to clear cached routes when more specific routes become available... " >&6; }
22936 if test "${ac_cv_os_routeupdates+set}" = set; then :
22937 $as_echo_n "(cached) " >&6
22938 else
22939 case "$host" in
22940 *-*-netbsd*)
22941 ans=yes
22943 *) ans=no
22945 esac
22946 ac_cv_os_routeupdates=$ans
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_routeupdates" >&5
22949 $as_echo "$ac_cv_os_routeupdates" >&6; }
22950 case "$ac_cv_os_routeupdates" in
22951 yes)
22952 $as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h
22954 esac
22956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS needs the wildcard socket set to REUSEADDR for binding interface addresses" >&5
22957 $as_echo_n "checking if the OS needs the wildcard socket set to REUSEADDR for binding interface addresses... " >&6; }
22958 if test "${ac_cv_os_wildcardreuse+set}" = set; then :
22959 $as_echo_n "(cached) " >&6
22960 else
22961 case "$host" in
22962 *-*-*linux*)
22963 ans=yes
22965 *) ans=no
22967 esac
22968 ac_cv_os_wildcardreuse=$ans
22970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_wildcardreuse" >&5
22971 $as_echo "$ac_cv_os_wildcardreuse" >&6; }
22972 case "$ac_cv_os_wildcardreuse" in
22973 yes)
22974 $as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h
22976 esac
22978 ntp_warning='GRONK'
22979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
22980 $as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
22981 case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
22982 yes*)
22983 ntp_warning=''
22984 ans='clock_settime()'
22986 noyes*)
22987 ntp_warning='But clock_settime() would be better (if we had it)'
22988 ans='settimeofday()'
22990 nonoyes)
22991 ntp_warning='Which is the worst of the three'
22992 ans='stime()'
22995 case "$build" in
22996 $host) ntp_warning='Which leaves us with nothing to use!'
22997 ans=none
22999 esac
23000 esac
23001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
23002 $as_echo "$ans" >&6; }
23003 case "$ntp_warning" in
23004 '') ;;
23005 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
23006 $as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
23008 esac
23010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have a losing syscall()" >&5
23011 $as_echo_n "checking if we have a losing syscall()... " >&6; }
23012 if test "${ac_cv_var_syscall_bug+set}" = set; then :
23013 $as_echo_n "(cached) " >&6
23014 else
23015 case "$host" in
23016 *-*-solaris2.4*)
23017 ans=yes
23019 *) ans=no
23021 esac
23022 ac_cv_var_syscall_bug=$ans
23024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_syscall_bug" >&5
23025 $as_echo "$ac_cv_var_syscall_bug" >&6; }
23026 case "$ac_cv_var_syscall_bug" in
23027 yes)
23028 $as_echo "#define SYSCALL_BUG 1" >>confdefs.h
23030 esac
23032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
23033 $as_echo_n "checking for SIGIO... " >&6; }
23034 if test "${ac_cv_hdr_def_sigio+set}" = set; then :
23035 $as_echo_n "(cached) " >&6
23036 else
23037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23038 /* end confdefs.h. */
23039 #include <signal.h>
23040 #ifdef SIGIO
23042 #endif
23044 _ACEOF
23045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23046 $EGREP "yes" >/dev/null 2>&1; then :
23047 ac_cv_hdr_def_sigio=yes
23048 else
23049 ac_cv_hdr_def_sigio=no
23051 rm -f conftest*
23054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hdr_def_sigio" >&5
23055 $as_echo "$ac_cv_hdr_def_sigio" >&6; }
23057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use signalled IO" >&5
23058 $as_echo_n "checking if we want to use signalled IO... " >&6; }
23059 if test "${ac_cv_var_signalled_io+set}" = set; then :
23060 $as_echo_n "(cached) " >&6
23061 else
23062 ans=no
23063 case "$ac_cv_hdr_def_sigio" in
23064 yes)
23065 ans=yes
23066 case "$host" in
23067 alpha*-dec-osf4*|alpha*-dec-osf5*)
23068 ans=no
23070 *-convex-*)
23071 ans=no
23073 *-dec-*)
23074 ans=no
23076 *-pc-cygwin*)
23077 ans=no
23079 *-sni-sysv*)
23080 ans=no
23082 *-univel-sysv*)
23083 ans=no
23085 *-*-irix6*)
23086 ans=no
23088 *-*-freebsd*)
23089 ans=no
23091 *-*-*linux*)
23092 ans=no
23094 *-*-unicosmp*)
23095 ans=no
23097 esac
23099 esac
23100 ac_cv_var_signalled_io=$ans
23102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_signalled_io" >&5
23103 $as_echo "$ac_cv_var_signalled_io" >&6; }
23104 case "$ac_cv_var_signalled_io" in
23105 yes)
23106 $as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h
23108 esac
23110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
23111 $as_echo_n "checking for SIGPOLL... " >&6; }
23112 if test "${ac_cv_hdr_def_sigpoll+set}" = set; then :
23113 $as_echo_n "(cached) " >&6
23114 else
23115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23116 /* end confdefs.h. */
23117 #include <signal.h>
23118 #ifdef SIGPOLL
23120 #endif
23122 _ACEOF
23123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23124 $EGREP "yes" >/dev/null 2>&1; then :
23125 ac_cv_hdr_def_sigpoll=yes
23126 else
23127 ac_cv_hdr_def_sigpoll=no
23129 rm -f conftest*
23132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hdr_def_sigpoll" >&5
23133 $as_echo "$ac_cv_hdr_def_sigpoll" >&6; }
23135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGSYS" >&5
23136 $as_echo_n "checking for SIGSYS... " >&6; }
23137 if test "${ac_cv_hdr_def_sigsys+set}" = set; then :
23138 $as_echo_n "(cached) " >&6
23139 else
23140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23141 /* end confdefs.h. */
23142 #include <signal.h>
23143 #ifdef SIGSYS
23145 #endif
23147 _ACEOF
23148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23149 $EGREP "yes" >/dev/null 2>&1; then :
23150 ac_cv_hdr_def_sigsys=yes
23151 else
23152 ac_cv_hdr_def_sigsys=no
23154 rm -f conftest*
23157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hdr_def_sigsys" >&5
23158 $as_echo "$ac_cv_hdr_def_sigsys" >&6; }
23160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
23161 $as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
23162 if test "${ac_cv_var_use_udp_sigpoll+set}" = set; then :
23163 $as_echo_n "(cached) " >&6
23164 else
23165 ans=no
23166 case "$ac_cv_hdr_def_sigpoll" in
23167 yes)
23168 case "$host" in
23169 mips-sgi-irix*)
23170 ans=no
23172 vax-dec-bsd)
23173 ans=no
23175 *-pc-cygwin*)
23176 ans=no
23178 *-sni-sysv*)
23179 ans=no
23181 *-*-aix[456]*)
23182 ans=no
23184 *-*-hpux*)
23185 ans=no
23187 *-*-*linux*)
23188 ans=no
23190 *-*-osf*)
23191 ans=no
23193 *-*-qnx*)
23194 ans=no
23196 *-*-sunos*)
23197 ans=no
23199 *-*-solaris*)
23200 ans=no
23202 *-*-ultrix*)
23203 ans=no
23205 *-*-unicosmp*)
23206 ans=no
23208 *) ans=yes
23210 esac
23212 esac
23213 ac_cv_var_use_udp_sigpoll=$ans
23215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_use_udp_sigpoll" >&5
23216 $as_echo "$ac_cv_var_use_udp_sigpoll" >&6; }
23217 case "$ac_cv_var_use_udp_sigpoll" in
23218 yes)
23219 $as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h
23221 esac
23223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
23224 $as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
23225 if test "${ac_cv_var_use_tty_sigpoll+set}" = set; then :
23226 $as_echo_n "(cached) " >&6
23227 else
23228 ans=no
23229 case "$ac_cv_hdr_def_sigpoll" in
23230 yes)
23231 case "$host" in
23232 mips-sgi-irix*)
23233 ans=no
23235 vax-dec-bsd)
23236 ans=no
23238 *-pc-cygwin*)
23239 ans=no
23241 *-sni-sysv*)
23242 ans=no
23244 *-*-aix[456]*)
23245 ans=no
23247 *-*-hpux*)
23248 ans=no
23250 *-*-*linux*)
23251 ans=no
23253 *-*-osf*)
23254 ans=no
23256 *-*-sunos*)
23257 ans=no
23259 *-*-ultrix*)
23260 ans=no
23262 *-*-qnx*)
23263 ans=no
23265 *-*-unicosmp*)
23266 ans=no
23268 *) ans=yes
23270 esac
23272 esac
23273 ac_cv_var_use_tty_sigpoll=$ans
23275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_use_tty_sigpoll" >&5
23276 $as_echo "$ac_cv_var_use_tty_sigpoll" >&6; }
23277 case "$ac_cv_var_use_tty_sigpoll" in
23278 yes)
23279 $as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
23281 esac
23283 case "$ac_cv_header_sys_sio_h" in
23284 yes)
23285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sio.h for TIOCDCDTIMESTAMP" >&5
23286 $as_echo_n "checking sys/sio.h for TIOCDCDTIMESTAMP... " >&6; }
23287 if test "${ac_cv_hdr_def_tiocdcdtimestamp+set}" = set; then :
23288 $as_echo_n "(cached) " >&6
23289 else
23290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23291 /* end confdefs.h. */
23292 #include <sys/sio.h>
23293 #ifdef TIOCDCDTIMESTAMP
23295 #endif
23297 _ACEOF
23298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23299 $EGREP "yes" >/dev/null 2>&1; then :
23300 ac_cv_hdr_def_tiocdcdtimestamp=yes
23301 else
23302 ac_cv_hdr_def_tiocdcdtimestamp=no
23304 rm -f conftest*
23307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hdr_def_tiocdcdtimestamp" >&5
23308 $as_echo "$ac_cv_hdr_def_tiocdcdtimestamp" >&6; }
23310 esac
23312 case "$ac_cv_hdr_def_tiocdcdtimestamp" in
23313 yes)
23314 ac_cv_var_oncore_ok=yes
23316 esac
23318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nlist() values might require extra indirection" >&5
23319 $as_echo_n "checking if nlist() values might require extra indirection... " >&6; }
23320 if test "${ac_cv_var_nlist_extra_indirection+set}" = set; then :
23321 $as_echo_n "(cached) " >&6
23322 else
23323 ans=no
23324 case "$host" in
23325 *-*-aix*)
23326 ans=yes
23328 esac
23329 ac_cv_var_nlist_extra_indirection=$ans
23331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_extra_indirection" >&5
23332 $as_echo "$ac_cv_var_nlist_extra_indirection" >&6; }
23333 case "$ac_cv_var_nlist_extra_indirection" in
23334 yes)
23335 $as_echo "#define NLIST_EXTRA_INDIRECTION 1" >>confdefs.h
23337 esac
23339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a minimum recommended value of tickadj" >&5
23340 $as_echo_n "checking for a minimum recommended value of tickadj... " >&6; }
23341 if test "${ac_cv_var_min_rec_tickadj+set}" = set; then :
23342 $as_echo_n "(cached) " >&6
23343 else
23344 ans=no
23345 case "$host" in
23346 *-*-aix*)
23347 ans=40
23349 esac
23350 ac_cv_var_min_rec_tickadj=$ans
23352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_min_rec_tickadj" >&5
23353 $as_echo "$ac_cv_var_min_rec_tickadj" >&6; }
23354 case "$ac_cv_var_min_rec_tickadj" in
23355 ''|no) ;;
23357 cat >>confdefs.h <<_ACEOF
23358 #define MIN_REC_TICKADJ $ac_cv_var_min_rec_tickadj
23359 _ACEOF
23361 esac
23363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the TTY code permits PARENB and IGNPAR" >&5
23364 $as_echo_n "checking if the TTY code permits PARENB and IGNPAR... " >&6; }
23365 if test "${ac_cv_var_no_parenb_ignpar+set}" = set; then :
23366 $as_echo_n "(cached) " >&6
23367 else
23368 ans=no
23369 case "$host" in
23370 i?86-*-*linux*)
23371 ans=yes
23373 mips-sgi-irix*)
23374 ans=yes
23376 i?86-*-freebsd[123].*)
23378 i?86-*-freebsd*)
23379 ans=yes
23381 *-*-unicosmp*)
23382 ans=yes
23384 esac
23385 ac_cv_var_no_parenb_ignpar=$ans
23387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_no_parenb_ignpar" >&5
23388 $as_echo "$ac_cv_var_no_parenb_ignpar" >&6; }
23389 case "$ac_cv_var_no_parenb_ignpar" in
23390 yes)
23391 $as_echo "#define NO_PARENB_IGNPAR 1" >>confdefs.h
23393 esac
23395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including ntpd debugging code" >&5
23396 $as_echo_n "checking if we're including ntpd debugging code... " >&6; }
23397 # Check whether --enable-debugging was given.
23398 if test "${enable_debugging+set}" = set; then :
23399 enableval=$enable_debugging; ntp_ok=$enableval
23400 else
23401 ntp_ok=yes
23404 if test "$ntp_ok" = "yes"; then
23406 $as_echo "#define DEBUG 1" >>confdefs.h
23409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23410 $as_echo "$ntp_ok" >&6; }
23412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we including processing time debugging code" >&5
23413 $as_echo_n "checking if we including processing time debugging code... " >&6; }
23414 # Check whether --enable-debug-timing was given.
23415 if test "${enable_debug_timing+set}" = set; then :
23416 enableval=$enable_debug_timing; ntp_ok=$enableval
23417 else
23418 ntp_ok=no
23421 if test "$ntp_ok" = "yes"; then
23423 $as_echo "#define DEBUG_TIMING 1" >>confdefs.h
23426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23427 $as_echo "$ntp_ok" >&6; }
23429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a the number of minutes in a DST adjustment" >&5
23430 $as_echo_n "checking for a the number of minutes in a DST adjustment... " >&6; }
23431 # Check whether --enable-dst_minutes was given.
23432 if test "${enable_dst_minutes+set}" = set; then :
23433 enableval=$enable_dst_minutes; ans=$enableval
23434 else
23435 ans=60
23440 cat >>confdefs.h <<_ACEOF
23441 #define DSTMINUTES $ans
23442 _ACEOF
23444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
23445 $as_echo "$ans" >&6; }
23447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will retry permanent DNS failures" >&5
23448 $as_echo_n "checking if ntpd will retry permanent DNS failures... " >&6; }
23449 # Check whether --enable-ignore-dns-errors was given.
23450 if test "${enable_ignore_dns_errors+set}" = set; then :
23451 enableval=$enable_ignore_dns_errors; ans=$enableval
23452 else
23453 ans=no
23457 case "$ans" in
23458 yes)
23460 $as_echo "#define IGNORE_DNS_ERRORS 1" >>confdefs.h
23462 esac
23463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
23464 $as_echo "$ans" >&6; }
23466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will use the deferred DNS lookup path" >&5
23467 $as_echo_n "checking if ntpd will use the deferred DNS lookup path... " >&6; }
23468 # Check whether --enable-force-defer-DNS was given.
23469 if test "${enable_force_defer_DNS+set}" = set; then :
23470 enableval=$enable_force_defer_DNS; ans=$enableval
23471 else
23472 ans=no
23476 case "$ans" in
23477 yes)
23479 $as_echo "#define FORCE_DEFER_DNS 1" >>confdefs.h
23481 esac
23482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
23483 $as_echo "$ans" >&6; }
23485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have the tty_clk line discipline/streams module" >&5
23486 $as_echo_n "checking if we have the tty_clk line discipline/streams module... " >&6; }
23487 if test "${ac_cv_var_tty_clk+set}" = set; then :
23488 $as_echo_n "(cached) " >&6
23489 else
23490 case "$ac_cv_header_sys_clkdefs_h$ac_cv_hdr_def_tiocdcdtimestamp" in
23491 *yes*) ac_cv_var_tty_clk=yes ;;
23492 *) ac_cv_var_tty_clk=no ;;
23493 esac
23495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tty_clk" >&5
23496 $as_echo "$ac_cv_var_tty_clk" >&6; }
23497 case "$ac_cv_var_tty_clk" in
23498 yes)
23499 $as_echo "#define TTYCLK 1" >>confdefs.h
23501 esac
23503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ppsclock streams module" >&5
23504 $as_echo_n "checking for the ppsclock streams module... " >&6; }
23505 if test "${ac_cv_var_ppsclock+set}" = set; then :
23506 $as_echo_n "(cached) " >&6
23507 else
23508 ac_cv_var_ppsclock=$ac_cv_struct_ppsclockev
23510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_ppsclock" >&5
23511 $as_echo "$ac_cv_var_ppsclock" >&6; }
23512 case "$ac_cv_var_ppsclock" in
23513 yes)
23514 $as_echo "#define PPS 1" >>confdefs.h
23516 esac
23518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel multicast support" >&5
23519 $as_echo_n "checking for kernel multicast support... " >&6; }
23520 if test "${ac_cv_var_mcast+set}" = set; then :
23521 $as_echo_n "(cached) " >&6
23522 else
23523 ac_cv_var_mcast=no
23524 case "$host" in
23525 i386-sequent-sysv4) ;;
23526 *) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23527 /* end confdefs.h. */
23528 #include <netinet/in.h>
23529 #ifdef IP_ADD_MEMBERSHIP
23531 #endif
23533 _ACEOF
23534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23535 $EGREP "yes" >/dev/null 2>&1; then :
23536 ac_cv_var_mcast=yes
23538 rm -f conftest*
23540 esac
23542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_mcast" >&5
23543 $as_echo "$ac_cv_var_mcast" >&6; }
23544 case "$ac_cv_var_mcast" in
23545 yes)
23547 $as_echo "#define MCAST 1" >>confdefs.h
23549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for IP*_MULTICAST_LOOP for setsockopt()" >&5
23550 $as_echo_n "checking arg type needed for IP*_MULTICAST_LOOP for setsockopt()... " >&6; }
23551 if test "${ac_cv_var_typeof_ip_multicast_loop+set}" = set; then :
23552 $as_echo_n "(cached) " >&6
23553 else
23554 case "$host" in
23555 *-*-netbsd*|*-*-*linux*)
23556 ac_cv_var_typeof_ip_multicast_loop=u_int
23558 *-*-winnt*)
23559 ac_cv_var_typeof_ip_multicast_loop=BOOL
23561 *) ac_cv_var_typeof_ip_multicast_loop=u_char
23563 esac
23565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_typeof_ip_multicast_loop" >&5
23566 $as_echo "$ac_cv_var_typeof_ip_multicast_loop" >&6; }
23568 cat >>confdefs.h <<_ACEOF
23569 #define TYPEOF_IP_MULTICAST_LOOP $ac_cv_var_typeof_ip_multicast_loop
23570 _ACEOF
23573 esac
23575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5
23576 $as_echo_n "checking availability of ntp_{adj,get}time()... " >&6; }
23577 if test "${ac_cv_var_ntp_syscalls+set}" = set; then :
23578 $as_echo_n "(cached) " >&6
23579 else
23580 ac_cv_var_ntp_syscalls=no
23581 case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in
23582 yesyes*)
23583 ac_cv_var_ntp_syscalls=libc
23585 *yes)
23586 ac_cv_var_ntp_syscalls=inline
23588 *) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23589 /* end confdefs.h. */
23590 #include <sys/syscall.h>
23591 #if defined(SYS_ntp_gettime) && defined(SYS_ntp_adjtime)
23593 #endif
23595 _ACEOF
23596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23597 $EGREP "yes" >/dev/null 2>&1; then :
23598 ac_cv_var_ntp_syscalls=kernel
23600 rm -f conftest*
23603 esac
23605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_ntp_syscalls" >&5
23606 $as_echo "$ac_cv_var_ntp_syscalls" >&6; }
23607 case "$ac_cv_var_ntp_syscalls" in
23608 libc)
23610 $as_echo "#define NTP_SYSCALLS_LIBC 1" >>confdefs.h
23613 kernel)
23615 $as_echo "#define NTP_SYSCALLS_STD 1" >>confdefs.h
23620 esac
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sys/timex.h has STA_FLL" >&5
23623 $as_echo_n "checking if sys/timex.h has STA_FLL... " >&6; }
23624 if test "${ac_cv_var_sta_fll+set}" = set; then :
23625 $as_echo_n "(cached) " >&6
23626 else
23627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23628 /* end confdefs.h. */
23629 #include <sys/timex.h>
23630 #ifdef STA_FLL
23632 #endif
23634 _ACEOF
23635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23636 $EGREP "yes" >/dev/null 2>&1; then :
23637 ac_cv_var_sta_fll=yes
23638 else
23639 ac_cv_var_sta_fll=no
23641 rm -f conftest*
23644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_sta_fll" >&5
23645 $as_echo "$ac_cv_var_sta_fll" >&6; }
23647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have kernel PLL support" >&5
23648 $as_echo_n "checking if we have kernel PLL support... " >&6; }
23649 if test "${ac_cv_var_kernel_pll+set}" = set; then :
23650 $as_echo_n "(cached) " >&6
23651 else
23652 case "$ac_cv_header_sys_timex_h$ac_cv_struct_ntptimeval$ac_cv_var_sta_fll$ac_cv_var_ntp_syscalls" in
23653 *no*)
23654 ac_cv_var_kernel_pll=no
23656 *) ac_cv_var_kernel_pll=yes
23658 esac
23660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_kernel_pll" >&5
23661 $as_echo "$ac_cv_var_kernel_pll" >&6; }
23662 case "$ac_cv_var_kernel_pll" in
23663 yes)
23665 $as_echo "#define KERNEL_PLL 1" >>confdefs.h
23668 esac
23670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
23671 $as_echo_n "checking if SIOCGIFCONF returns buffer size in the buffer... " >&6; }
23672 if test "${ac_cv_var_size_returned_in_buffer+set}" = set; then :
23673 $as_echo_n "(cached) " >&6
23674 else
23675 ans=no
23676 case "$host" in
23677 *-fujitsu-uxp*)
23678 ans=yes
23680 *-ncr-sysv4*)
23681 ans=yes
23683 *-univel-sysv*)
23684 ans=yes
23686 esac
23687 ac_cv_var_size_returned_in_buffer=$ans
23689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_size_returned_in_buffer" >&5
23690 $as_echo "$ac_cv_var_size_returned_in_buffer" >&6; }
23691 case "$ac_cv_var_size_returned_in_buffer" in
23692 yes)
23693 $as_echo "#define SIZE_RETURNED_IN_BUFFER 1" >>confdefs.h
23695 esac
23698 # Check for ioctls TIOCGPPSEV
23699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGPPSEV" >&5
23700 $as_echo_n "checking ioctl TIOCGPPSEV... " >&6; }
23701 if test "$ac_cv_header_termios_h" = "yes"; then
23702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23703 /* end confdefs.h. */
23704 #include <termios.h>
23705 #ifdef TIOCGPPSEV
23707 #endif
23709 _ACEOF
23710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23711 $EGREP "yes" >/dev/null 2>&1; then :
23712 ntp_ok=yes
23713 else
23714 ntp_ok=no
23716 rm -f conftest*
23718 else
23719 ntp_ok=no
23721 if test "$ntp_ok" = "yes"; then
23723 $as_echo "#define HAVE_TIOCGPPSEV 1" >>confdefs.h
23725 ac_cv_var_oncore_ok=yes
23727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23728 $as_echo "$ntp_ok" >&6; }
23730 # Check for ioctls TIOCSPPS
23731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCSPPS" >&5
23732 $as_echo_n "checking ioctl TIOCSPPS... " >&6; }
23733 if test "$ac_cv_header_termios_h" = "yes"; then
23734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23735 /* end confdefs.h. */
23736 #include <termios.h>
23737 #ifdef TIOCSPPS
23739 #endif
23741 _ACEOF
23742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23743 $EGREP "yes" >/dev/null 2>&1; then :
23744 ntp_ok=yes
23745 else
23746 ntp_ok=no
23748 rm -f conftest*
23750 else
23751 ntp_ok=no
23754 if test "$ntp_ok" = "yes"; then
23756 $as_echo "#define HAVE_TIOCSPPS 1" >>confdefs.h
23759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23760 $as_echo "$ntp_ok" >&6; }
23762 # Check for ioctls CIOGETEV
23763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl CIOGETEV" >&5
23764 $as_echo_n "checking ioctl CIOGETEV... " >&6; }
23765 if test "$ac_cv_header_sys_ppsclock_h" = "yes"; then
23766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23767 /* end confdefs.h. */
23768 #include <sys/ppsclock.h>
23769 #ifdef CIOGETEV
23771 #endif
23773 _ACEOF
23774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23775 $EGREP "yes" >/dev/null 2>&1; then :
23776 ntp_ok=yes
23777 else
23778 ntp_ok=no
23780 rm -f conftest*
23782 else
23783 ntp_ok=no
23785 if test "$ntp_ok" = "yes"; then
23786 ac_cv_var_oncore_ok=yes
23788 $as_echo "#define HAVE_CIOGETEV 1" >>confdefs.h
23791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23792 $as_echo "$ntp_ok" >&6; }
23795 # ATOM/PPSAPI stuff.
23797 # ATOM used to require struct timespec, but that's been fixed now.
23799 # case "$ac_cv_struct_timespec" in
23800 # 'yes')
23801 # ac_cv_var_atom_ok=yes
23802 # ;;
23803 # esac
23804 ac_cv_var_atom_ok=yes
23806 # Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff.
23808 # The PPSAPI headers need "inline" ($ac_cv_c_inline='inline')
23810 # The PPSAPI needs struct timespec.
23812 # The PPSAPI also needs a timepps header.
23814 case "$ac_cv_c_inline$ac_cv_struct_timespec" in
23815 inlineyes)
23816 case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in
23817 *yes* | *sunos* | *solaris* | *sco* | *netbsd* )
23819 $as_echo "#define HAVE_PPSAPI 1" >>confdefs.h
23821 ac_cv_var_jupiter_ok=yes
23822 ac_cv_var_oncore_ok=yes
23823 ac_cv_var_parse_ok=yes
23824 ac_cv_var_ripe_ncc_ok=yes
23826 esac
23828 esac
23830 # Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
23831 ac_fn_c_check_header_mongrel "$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default"
23832 if test "x$ac_cv_header_linux_serial_h" = x""yes; then :
23837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5
23838 $as_echo_n "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... " >&6; }
23839 case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in
23840 yesyes)
23841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23842 /* end confdefs.h. */
23843 #include <sys/time.h>
23844 typedef int u_int;
23846 #include <sys/ppsclock.h>
23847 #include <linux/serial.h>
23849 #ifdef TIOCGSERIAL
23850 #ifdef TIOCSSERIAL
23851 #ifdef ASYNC_PPS_CD_POS
23852 #ifdef ASYNC_PPS_CD_NEG
23853 #ifdef CIOGETEV
23855 #endif
23856 #endif
23857 #endif
23858 #endif
23859 #endif
23861 _ACEOF
23862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23863 $EGREP "yes" >/dev/null 2>&1; then :
23864 ntp_ok=yes
23866 rm -f conftest*
23870 ntp_ok=no
23872 esac
23873 if test "$ntp_ok" = "yes"; then
23875 $as_echo "#define HAVE_TIO_SERIAL_STUFF 1" >>confdefs.h
23878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23879 $as_echo "$ntp_ok" >&6; }
23881 # Check for SHMEM_STATUS support
23882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHMEM_STATUS support" >&5
23883 $as_echo_n "checking SHMEM_STATUS support... " >&6; }
23884 case "$ac_cv_header_sys_mman_h" in
23885 yes) ntp_ok=yes ;;
23886 *) ntp_ok=no ;;
23887 esac
23888 if test "$ntp_ok" = "yes"; then
23890 $as_echo "#define ONCORE_SHMEM_STATUS 1" >>confdefs.h
23893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23894 $as_echo "$ntp_ok" >&6; }
23897 ntp_refclock=no
23899 # HPUX only, and by explicit request
23900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum/Bancomm bc635/VME interface" >&5
23901 $as_echo_n "checking Datum/Bancomm bc635/VME interface... " >&6; }
23902 # Check whether --enable-BANCOMM was given.
23903 if test "${enable_BANCOMM+set}" = set; then :
23904 enableval=$enable_BANCOMM; ntp_ok=$enableval
23905 else
23906 ntp_ok=no
23909 if test "$ntp_ok" = "yes"; then
23910 ntp_refclock=yes
23912 $as_echo "#define CLOCK_BANC 1" >>confdefs.h
23915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23916 $as_echo "$ntp_ok" >&6; }
23917 case "$ntp_ok$host" in
23918 yes*-*-hpux*) ;;
23919 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
23920 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
23921 esac
23923 #HPUX only, and only by explicit request
23924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime GPS receiver/VME interface" >&5
23925 $as_echo_n "checking TrueTime GPS receiver/VME interface... " >&6; }
23926 # Check whether --enable-GPSVME was given.
23927 if test "${enable_GPSVME+set}" = set; then :
23928 enableval=$enable_GPSVME; ntp_ok=$enableval
23929 else
23930 ntp_ok=no
23933 if test "$ntp_ok" = "yes"; then
23934 ntp_refclock=yes
23936 $as_echo "#define CLOCK_GPSVME 1" >>confdefs.h
23939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23940 $as_echo "$ntp_ok" >&6; }
23941 case "$ntp_ok$host" in
23942 yes*-*-hpux*) ;;
23943 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
23944 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
23945 esac
23947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL720 clock support" >&5
23948 $as_echo_n "checking for PCL720 clock support... " >&6; }
23949 case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
23950 yesyesyes)
23952 $as_echo "#define CLOCK_PPS720 1" >>confdefs.h
23954 ans=yes
23957 ans=no
23959 esac
23960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
23961 $as_echo "$ans" >&6; }
23963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable non-PARSE clocks" >&5
23964 $as_echo_n "checking for default inclusion of all suitable non-PARSE clocks... " >&6; }
23965 # Check whether --enable-all-clocks was given.
23966 if test "${enable_all_clocks+set}" = set; then :
23967 enableval=$enable_all_clocks; ntp_eac=$enableval
23968 else
23969 ntp_eac=yes
23972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eac" >&5
23973 $as_echo "$ntp_eac" >&6; }
23975 # HMS: Should we also require ac_cv_var_parse_ok?
23976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for PARSE clocks" >&5
23977 $as_echo_n "checking if we have support for PARSE clocks... " >&6; }
23978 case "$ac_cv_var_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in
23979 yes*yes*)
23980 ntp_canparse=yes
23982 *) ntp_canparse=no
23984 esac
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canparse" >&5
23986 $as_echo "$ntp_canparse" >&6; }
23988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for audio clocks" >&5
23989 $as_echo_n "checking if we have support for audio clocks... " >&6; }
23990 case "$ac_cv_header_sun_audioio_h$ac_cv_header_sys_audioio_h$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
23991 *yes*)
23992 ntp_canaudio=yes
23994 $as_echo "#define HAVE_AUDIO /**/" >>confdefs.h
23997 *) ntp_canaudio=no ;;
23998 esac
23999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canaudio" >&5
24000 $as_echo "$ntp_canaudio" >&6; }
24002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for the SHM refclock interface" >&5
24003 $as_echo_n "checking if we have support for the SHM refclock interface... " >&6; }
24004 case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in
24005 yesyes)
24006 ntp_canshm=yes
24008 *) ntp_canshm=no ;;
24009 esac
24010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canshm" >&5
24011 $as_echo "$ntp_canshm" >&6; }
24013 # Requires modem control
24014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ACTS modem service" >&5
24015 $as_echo_n "checking ACTS modem service... " >&6; }
24016 # Check whether --enable-ACTS was given.
24017 if test "${enable_ACTS+set}" = set; then :
24018 enableval=$enable_ACTS; ntp_ok=$enableval
24019 else
24020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24021 /* end confdefs.h. */
24022 #include <termios.h>
24023 #ifdef HAVE_SYS_IOCTL_H
24024 #include <sys/ioctl.h>
24025 #endif
24026 #ifdef TIOCMBIS
24028 #endif
24030 _ACEOF
24031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24032 $EGREP "yes" >/dev/null 2>&1; then :
24033 ntp_ok=$ntp_eac
24034 else
24035 ntp_ok=no
24037 rm -f conftest*
24041 if test "$ntp_ok" = "yes"; then
24042 ntp_refclock=yes
24044 $as_echo "#define CLOCK_ACTS 1" >>confdefs.h
24047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24048 $as_echo "$ntp_ok" >&6; }
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Arbiter 1088A/B GPS receiver" >&5
24051 $as_echo_n "checking Arbiter 1088A/B GPS receiver... " >&6; }
24052 # Check whether --enable-ARBITER was given.
24053 if test "${enable_ARBITER+set}" = set; then :
24054 enableval=$enable_ARBITER; ntp_ok=$enableval
24055 else
24056 ntp_ok=$ntp_eac
24059 if test "$ntp_ok" = "yes"; then
24060 ntp_refclock=yes
24062 $as_echo "#define CLOCK_ARBITER 1" >>confdefs.h
24065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24066 $as_echo "$ntp_ok" >&6; }
24068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Arcron MSF receiver" >&5
24069 $as_echo_n "checking Arcron MSF receiver... " >&6; }
24070 # Check whether --enable-ARCRON_MSF was given.
24071 if test "${enable_ARCRON_MSF+set}" = set; then :
24072 enableval=$enable_ARCRON_MSF; ntp_ok=$enableval
24073 else
24074 ntp_ok=$ntp_eac
24077 if test "$ntp_ok" = "yes"; then
24078 ntp_refclock=yes
24080 $as_echo "#define CLOCK_ARCRON_MSF 1" >>confdefs.h
24083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24084 $as_echo "$ntp_ok" >&6; }
24086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Austron 2200A/2201A GPS receiver" >&5
24087 $as_echo_n "checking Austron 2200A/2201A GPS receiver... " >&6; }
24088 # Check whether --enable-AS2201 was given.
24089 if test "${enable_AS2201+set}" = set; then :
24090 enableval=$enable_AS2201; ntp_ok=$enableval
24091 else
24092 ntp_ok=$ntp_eac
24095 if test "$ntp_ok" = "yes"; then
24096 ntp_refclock=yes
24098 $as_echo "#define CLOCK_AS2201 1" >>confdefs.h
24101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24102 $as_echo "$ntp_ok" >&6; }
24104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ATOM PPS interface" >&5
24105 $as_echo_n "checking ATOM PPS interface... " >&6; }
24106 # Check whether --enable-ATOM was given.
24107 if test "${enable_ATOM+set}" = set; then :
24108 enableval=$enable_ATOM; ntp_ok=$enableval
24109 else
24110 ntp_ok=$ntp_eac
24113 case "$ac_cv_var_atom_ok" in
24114 no) ntp_ok=no ;;
24115 esac
24116 if test "$ntp_ok" = "yes"; then
24117 ntp_refclock=yes
24119 $as_echo "#define CLOCK_ATOM 1" >>confdefs.h
24122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24123 $as_echo "$ntp_ok" >&6; }
24125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Chrono-log K-series WWVB receiver" >&5
24126 $as_echo_n "checking Chrono-log K-series WWVB receiver... " >&6; }
24127 # Check whether --enable-CHRONOLOG was given.
24128 if test "${enable_CHRONOLOG+set}" = set; then :
24129 enableval=$enable_CHRONOLOG; ntp_ok=$enableval
24130 else
24131 ntp_ok=$ntp_eac
24134 if test "$ntp_ok" = "yes"; then
24135 ntp_refclock=yes
24137 $as_echo "#define CLOCK_CHRONOLOG 1" >>confdefs.h
24140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24141 $as_echo "$ntp_ok" >&6; }
24143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU modem/decoder" >&5
24144 $as_echo_n "checking CHU modem/decoder... " >&6; }
24145 # Check whether --enable-CHU was given.
24146 if test "${enable_CHU+set}" = set; then :
24147 enableval=$enable_CHU; ntp_ok=$enableval
24148 else
24149 ntp_ok=$ntp_eac
24152 if test "$ntp_ok" = "yes"; then
24153 ntp_refclock=yes
24155 $as_echo "#define CLOCK_CHU 1" >>confdefs.h
24158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24159 $as_echo "$ntp_ok" >&6; }
24160 ac_refclock_chu=$ntp_ok
24162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU audio/decoder" >&5
24163 $as_echo_n "checking CHU audio/decoder... " >&6; }
24164 # Check whether --enable-AUDIO-CHU was given.
24165 if test "${enable_AUDIO_CHU+set}" = set; then :
24166 enableval=$enable_AUDIO_CHU; ntp_ok=$enableval
24167 else
24168 case "$ntp_eac$ac_refclock_chu$ntp_canaudio" in
24169 *no*) ntp_ok=no ;;
24170 *) ntp_ok=yes ;;
24171 esac
24174 if test "$ntp_ok" = "yes"; then
24176 $as_echo "#define AUDIO_CHU 1" >>confdefs.h
24179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24180 $as_echo "$ntp_ok" >&6; }
24181 # We used to check for sunos/solaris target...
24182 case "$ntp_ok$ac_refclock_chu$ntp_canaudio" in
24183 yes*no*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is...no ***" >&5
24184 $as_echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;} ;;
24185 esac
24187 # Not under HP-UX
24188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum Programmable Time System" >&5
24189 $as_echo_n "checking Datum Programmable Time System... " >&6; }
24190 # Check whether --enable-DATUM was given.
24191 if test "${enable_DATUM+set}" = set; then :
24192 enableval=$enable_DATUM; ntp_ok=$enableval
24193 else
24194 case "$ac_cv_header_termios_h" in
24195 yes)
24196 ntp_ok=$ntp_eac
24198 *) ntp_ok=no
24200 esac
24203 if test "$ntp_ok" = "yes"; then
24204 ntp_refclock=yes
24206 $as_echo "#define CLOCK_DATUM 1" >>confdefs.h
24209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24210 $as_echo "$ntp_ok" >&6; }
24212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Dumb generic hh:mm:ss local clock" >&5
24213 $as_echo_n "checking Dumb generic hh:mm:ss local clock... " >&6; }
24214 # Check whether --enable-DUMBCLOCK was given.
24215 if test "${enable_DUMBCLOCK+set}" = set; then :
24216 enableval=$enable_DUMBCLOCK; ntp_ok=$enableval
24217 else
24218 ntp_ok=$ntp_eac
24221 if test "$ntp_ok" = "yes"; then
24222 ntp_refclock=yes
24224 $as_echo "#define CLOCK_DUMBCLOCK 1" >>confdefs.h
24227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24228 $as_echo "$ntp_ok" >&6; }
24230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Forum Graphic GPS" >&5
24231 $as_echo_n "checking Forum Graphic GPS... " >&6; }
24232 # Check whether --enable-FG was given.
24233 if test "${enable_FG+set}" = set; then :
24234 enableval=$enable_FG; ntp_ok=$enableval
24235 else
24236 ntp_ok=$ntp_eac
24239 if test "$ntp_ok" = "yes"; then
24240 ntp_refclock=yes
24242 $as_echo "#define CLOCK_FG 1" >>confdefs.h
24245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24246 $as_echo "$ntp_ok" >&6; }
24248 # Requires modem control
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Heath GC-1000 WWV/WWVH receiver" >&5
24250 $as_echo_n "checking Heath GC-1000 WWV/WWVH receiver... " >&6; }
24251 # Check whether --enable-HEATH was given.
24252 if test "${enable_HEATH+set}" = set; then :
24253 enableval=$enable_HEATH; ntp_ok=$enableval
24254 else
24255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24256 /* end confdefs.h. */
24257 #include <termios.h>
24258 #ifdef HAVE_SYS_IOCTL_H
24259 #include <sys/ioctl.h>
24260 #endif
24261 #ifdef TIOCMBIS
24263 #endif
24265 _ACEOF
24266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24267 $EGREP "yes" >/dev/null 2>&1; then :
24268 ntp_ok=$ntp_eac
24269 else
24270 ntp_ok=no
24272 rm -f conftest*
24276 if test "$ntp_ok" = "yes"; then
24277 ntp_refclock=yes
24279 $as_echo "#define CLOCK_HEATH 1" >>confdefs.h
24282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24283 $as_echo "$ntp_ok" >&6; }
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf serial clock device" >&5
24286 $as_echo_n "checking for hopf serial clock device... " >&6; }
24287 # Check whether --enable-HOPFSERIAL was given.
24288 if test "${enable_HOPFSERIAL+set}" = set; then :
24289 enableval=$enable_HOPFSERIAL; ntp_ok=$enableval
24290 else
24291 ntp_ok=$ntp_eac
24294 if test "$ntp_ok" = "yes"; then
24295 ntp_refclock=yes
24297 $as_echo "#define CLOCK_HOPF_SERIAL 1" >>confdefs.h
24300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24301 $as_echo "$ntp_ok" >&6; }
24303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf PCI clock 6039" >&5
24304 $as_echo_n "checking for hopf PCI clock 6039... " >&6; }
24305 # Check whether --enable-HOPFPCI was given.
24306 if test "${enable_HOPFPCI+set}" = set; then :
24307 enableval=$enable_HOPFPCI; ntp_ok=$enableval
24308 else
24309 ntp_ok=$ntp_eac
24312 if test "$ntp_ok" = "yes"; then
24313 ntp_refclock=yes
24315 $as_echo "#define CLOCK_HOPF_PCI 1" >>confdefs.h
24318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24319 $as_echo "$ntp_ok" >&6; }
24321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking HP 58503A GPS receiver" >&5
24322 $as_echo_n "checking HP 58503A GPS receiver... " >&6; }
24323 # Check whether --enable-HPGPS was given.
24324 if test "${enable_HPGPS+set}" = set; then :
24325 enableval=$enable_HPGPS; ntp_ok=$enableval
24326 else
24327 ntp_ok=$ntp_eac
24330 if test "$ntp_ok" = "yes"; then
24331 ntp_refclock=yes
24333 $as_echo "#define CLOCK_HPGPS 1" >>confdefs.h
24336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24337 $as_echo "$ntp_ok" >&6; }
24339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIG audio decoder" >&5
24340 $as_echo_n "checking IRIG audio decoder... " >&6; }
24341 # Check whether --enable-IRIG was given.
24342 if test "${enable_IRIG+set}" = set; then :
24343 enableval=$enable_IRIG; ntp_ok=$enableval
24344 else
24345 case "$ntp_eac$ntp_canaudio" in
24346 *no*) ntp_ok=no ;;
24347 *) ntp_ok=yes ;;
24348 esac
24351 if test "$ntp_ok" = "yes"; then
24352 ntp_refclock=yes
24354 $as_echo "#define CLOCK_IRIG 1" >>confdefs.h
24357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24358 $as_echo "$ntp_ok" >&6; }
24359 case "$ntp_ok$ntp_canaudio" in
24360 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
24361 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
24362 esac
24364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JJY receiver" >&5
24365 $as_echo_n "checking for JJY receiver... " >&6; }
24366 # Check whether --enable-JJY was given.
24367 if test "${enable_JJY+set}" = set; then :
24368 enableval=$enable_JJY; ntp_ok=$enableval
24369 else
24370 ntp_ok=$ntp_eac
24373 if test "$ntp_ok" = "yes"; then
24374 ntp_refclock=yes
24376 $as_echo "#define CLOCK_JJY 1" >>confdefs.h
24379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24380 $as_echo "$ntp_ok" >&6; }
24382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Rockwell Jupiter GPS receiver" >&5
24383 $as_echo_n "checking Rockwell Jupiter GPS receiver... " >&6; }
24384 # Check whether --enable-JUPITER was given.
24385 if test "${enable_JUPITER+set}" = set; then :
24386 enableval=$enable_JUPITER; ntp_ok=$enableval
24387 else
24388 ntp_ok=$ntp_eac
24391 case "$ac_cv_var_jupiter_ok" in
24392 no) ntp_ok=no ;;
24393 esac
24394 if test "$ntp_ok" = "yes"; then
24395 ntp_refclock=yes
24397 $as_echo "#define CLOCK_JUPITER 1" >>confdefs.h
24400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24401 $as_echo "$ntp_ok" >&6; }
24403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Leitch CSD 5300 Master Clock System Driver" >&5
24404 $as_echo_n "checking Leitch CSD 5300 Master Clock System Driver... " >&6; }
24405 # Check whether --enable-LEITCH was given.
24406 if test "${enable_LEITCH+set}" = set; then :
24407 enableval=$enable_LEITCH; ntp_ok=$enableval
24408 else
24409 ntp_ok=$ntp_eac
24412 if test "$ntp_ok" = "yes"; then
24413 ntp_refclock=yes
24415 $as_echo "#define CLOCK_LEITCH 1" >>confdefs.h
24418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24419 $as_echo "$ntp_ok" >&6; }
24421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking local clock reference" >&5
24422 $as_echo_n "checking local clock reference... " >&6; }
24423 # Check whether --enable-LOCAL-CLOCK was given.
24424 if test "${enable_LOCAL_CLOCK+set}" = set; then :
24425 enableval=$enable_LOCAL_CLOCK; ntp_ok=$enableval
24426 else
24427 ntp_ok=$ntp_eac
24430 if test "$ntp_ok" = "yes"; then
24431 ntp_refclock=yes
24433 $as_echo "#define CLOCK_LOCAL 1" >>confdefs.h
24436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24437 $as_echo "$ntp_ok" >&6; }
24440 # Not Ultrix
24441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Magnavox MX4200 GPS receiver" >&5
24442 $as_echo_n "checking Magnavox MX4200 GPS receiver... " >&6; }
24443 # Check whether --enable-MX4200 was given.
24444 if test "${enable_MX4200+set}" = set; then :
24445 enableval=$enable_MX4200; ntp_ok=$enableval
24446 else
24447 case "$ac_cv_var_ppsclock" in
24448 yes) ntp_ok=$ntp_eac
24450 *) ntp_ok=no
24452 esac
24455 if test "$ntp_ok" = "yes"; then
24456 ntp_refclock=yes
24458 $as_echo "#define CLOCK_MX4200 1" >>confdefs.h
24461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24462 $as_echo "$ntp_ok" >&6; }
24463 case "$ntp_ok$host" in
24464 yes*-*-ultrix*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
24465 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
24466 esac
24468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NeoClock4X receiver" >&5
24469 $as_echo_n "checking for NeoClock4X receiver... " >&6; }
24470 # Check whether --enable-NEOCLOCK4X was given.
24471 if test "${enable_NEOCLOCK4X+set}" = set; then :
24472 enableval=$enable_NEOCLOCK4X; ntp_ok=$enableval
24473 else
24474 ntp_ok=$ntp_eac
24477 if test "$ntp_ok" = "yes"; then
24478 ntp_refclock=yes
24480 $as_echo "#define CLOCK_NEOCLOCK4X 1" >>confdefs.h
24483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24484 $as_echo "$ntp_ok" >&6; }
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking NMEA GPS receiver" >&5
24487 $as_echo_n "checking NMEA GPS receiver... " >&6; }
24488 # Check whether --enable-NMEA was given.
24489 if test "${enable_NMEA+set}" = set; then :
24490 enableval=$enable_NMEA; ntp_ok=$enableval
24491 else
24492 ntp_ok=$ntp_eac
24495 if test "$ntp_ok" = "yes"; then
24496 ntp_refclock=yes
24498 $as_echo "#define CLOCK_NMEA 1" >>confdefs.h
24501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24502 $as_echo "$ntp_ok" >&6; }
24504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
24505 $as_echo_n "checking for ONCORE Motorola VP/UT Oncore GPS... " >&6; }
24506 # Check whether --enable-ONCORE was given.
24507 if test "${enable_ONCORE+set}" = set; then :
24508 enableval=$enable_ONCORE; ntp_ok=$enableval
24509 else
24510 ntp_ok=$ntp_eac
24513 case "$ac_cv_var_oncore_ok" in
24514 no) ntp_ok=no ;;
24515 esac
24516 if test "$ntp_ok" = "yes"; then
24517 ntp_refclock=yes
24519 $as_echo "#define CLOCK_ONCORE 1" >>confdefs.h
24522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24523 $as_echo "$ntp_ok" >&6; }
24525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Palisade clock" >&5
24526 $as_echo_n "checking for Palisade clock... " >&6; }
24527 # Check whether --enable-PALISADE was given.
24528 if test "${enable_PALISADE+set}" = set; then :
24529 enableval=$enable_PALISADE; ntp_ok=$enableval
24530 else
24531 case "$ac_cv_header_termios_h" in
24532 yes)
24533 ntp_ok=$ntp_eac
24535 *) ntp_ok=no
24537 esac
24541 if test "$ntp_ok" = "yes"; then
24542 ntp_refclock=yes
24544 $as_echo "#define CLOCK_PALISADE 1" >>confdefs.h
24547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24548 $as_echo "$ntp_ok" >&6; }
24550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Conrad parallel port radio clock" >&5
24551 $as_echo_n "checking Conrad parallel port radio clock... " >&6; }
24552 # Check whether --enable-PCF was given.
24553 if test "${enable_PCF+set}" = set; then :
24554 enableval=$enable_PCF; ntp_ok=$enableval
24555 else
24556 ntp_ok=$ntp_eac
24559 if test "$ntp_ok" = "yes"; then
24560 ntp_refclock=yes
24562 $as_echo "#define CLOCK_PCF 1" >>confdefs.h
24565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24566 $as_echo "$ntp_ok" >&6; }
24568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
24569 $as_echo_n "checking PST/Traconex 1020 WWV/WWVH receiver... " >&6; }
24570 # Check whether --enable-PST was given.
24571 if test "${enable_PST+set}" = set; then :
24572 enableval=$enable_PST; ntp_ok=$enableval
24573 else
24574 ntp_ok=$ntp_eac
24577 if test "$ntp_ok" = "yes"; then
24578 ntp_refclock=yes
24580 $as_echo "#define CLOCK_PST 1" >>confdefs.h
24583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24584 $as_echo "$ntp_ok" >&6; }
24586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RIPENCC specific Trimble driver" >&5
24587 $as_echo_n "checking RIPENCC specific Trimble driver... " >&6; }
24588 # Check whether --enable-RIPENCC was given.
24589 if test "${enable_RIPENCC+set}" = set; then :
24590 enableval=$enable_RIPENCC; ntp_ok=$enableval
24591 else
24592 ntp_ok=no
24595 # 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage
24596 case "$ac_cv_var_ripe_ncc_ok" in
24597 no) ntp_ok=no ;;
24598 esac
24599 if test "$ntp_ok" = "yes"; then
24600 ntp_refclock=yes
24602 $as_echo "#define CLOCK_RIPENCC /**/" >>confdefs.h
24605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24606 $as_echo "$ntp_ok" >&6; }
24608 # Danny Meyer says SHM compiles (with a few warnings) under Win32.
24609 # For *IX, we need sys/ipc.h and sys/shm.h.
24610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHM clock attached thru shared memory" >&5
24611 $as_echo_n "checking for SHM clock attached thru shared memory... " >&6; }
24612 # Check whether --enable-SHM was given.
24613 if test "${enable_SHM+set}" = set; then :
24614 enableval=$enable_SHM; ntp_ok=$enableval
24615 else
24616 case "$ntp_eac$ntp_canshm" in
24617 *no*) ntp_ok=no ;;
24618 *) ntp_ok=yes ;;
24619 esac
24622 if test "$ntp_ok" = "yes"; then
24623 ntp_refclock=yes
24625 $as_echo "#define CLOCK_SHM 1" >>confdefs.h
24628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24629 $as_echo "$ntp_ok" >&6; }
24631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
24632 $as_echo_n "checking Spectracom 8170/Netclock/2 WWVB receiver... " >&6; }
24633 # Check whether --enable-SPECTRACOM was given.
24634 if test "${enable_SPECTRACOM+set}" = set; then :
24635 enableval=$enable_SPECTRACOM; ntp_ok=$enableval
24636 else
24637 ntp_ok=$ntp_eac
24640 if test "$ntp_ok" = "yes"; then
24641 ntp_refclock=yes
24643 $as_echo "#define CLOCK_SPECTRACOM 1" >>confdefs.h
24646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24647 $as_echo "$ntp_ok" >&6; }
24649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
24650 $as_echo_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... " >&6; }
24651 # Check whether --enable-TPRO was given.
24652 if test "${enable_TPRO+set}" = set; then :
24653 enableval=$enable_TPRO; ntp_ok=$enableval
24654 else
24655 case "$ac_cv_header_sys_tpro_h" in
24656 yes)
24657 ntp_ok=$ntp_eac
24659 *) ntp_ok=no
24661 esac
24664 if test "$ntp_ok" = "yes"; then
24665 ntp_refclock=yes
24667 $as_echo "#define CLOCK_TPRO 1" >>confdefs.h
24670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24671 $as_echo "$ntp_ok" >&6; }
24672 case "$ntp_ok$ac_cv_header_sys_tpro" in
24673 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
24674 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
24675 esac
24678 # Not on a vax-dec-bsd
24679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kinemetrics/TrueTime receivers" >&5
24680 $as_echo_n "checking Kinemetrics/TrueTime receivers... " >&6; }
24681 # Check whether --enable-TRUETIME was given.
24682 if test "${enable_TRUETIME+set}" = set; then :
24683 enableval=$enable_TRUETIME; ntp_ok=$enableval
24684 else
24685 case "$host" in
24686 vax-dec-bsd)
24687 ntp_ok=no
24690 ntp_ok=$ntp_eac
24692 esac
24696 if test "$ntp_ok" = "yes"; then
24697 ntp_refclock=yes
24699 $as_echo "#define CLOCK_TRUETIME 1" >>confdefs.h
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24703 $as_echo "$ntp_ok" >&6; }
24704 case "$ntp_ok$host" in
24705 yesvax-dec-bsd) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
24706 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
24707 esac
24709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime 560 IRIG-B decoder" >&5
24710 $as_echo_n "checking TrueTime 560 IRIG-B decoder... " >&6; }
24711 # Check whether --enable-TT560 was given.
24712 if test "${enable_TT560+set}" = set; then :
24713 enableval=$enable_TT560; ntp_ok=$enableval
24714 else
24715 ntp_ok=no
24718 if test "$ntp_ok" = "yes"; then
24719 ntp_refclock=yes
24721 $as_echo "#define CLOCK_TT560 /**/" >>confdefs.h
24724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24725 $as_echo "$ntp_ok" >&6; }
24727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ultralink M320 WWVB receiver" >&5
24728 $as_echo_n "checking Ultralink M320 WWVB receiver... " >&6; }
24729 # Check whether --enable-ULINK was given.
24730 if test "${enable_ULINK+set}" = set; then :
24731 enableval=$enable_ULINK; ntp_ok=$enableval
24732 else
24733 ntp_ok=$ntp_eac
24736 if test "$ntp_ok" = "yes"; then
24737 ntp_refclock=yes
24739 $as_echo "#define CLOCK_ULINK 1" >>confdefs.h
24742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24743 $as_echo "$ntp_ok" >&6; }
24745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking WWV receiver" >&5
24746 $as_echo_n "checking WWV receiver... " >&6; }
24747 # Check whether --enable-WWV was given.
24748 if test "${enable_WWV+set}" = set; then :
24749 enableval=$enable_WWV; ntp_ok=$enableval
24750 else
24751 case "$ntp_eac$ntp_canaudio" in
24752 *no*) ntp_ok=no ;;
24753 *) ntp_ok=yes ;;
24754 esac
24757 if test "$ntp_ok" = "yes"; then
24758 ntp_refclock=yes
24760 $as_echo "#define CLOCK_WWV 1" >>confdefs.h
24763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24764 $as_echo "$ntp_ok" >&6; }
24765 case "$ntp_ok$ntp_canaudio" in
24766 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
24767 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
24768 esac
24770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zyfer receiver" >&5
24771 $as_echo_n "checking for Zyfer receiver... " >&6; }
24772 # Check whether --enable-ZYFER was given.
24773 if test "${enable_ZYFER+set}" = set; then :
24774 enableval=$enable_ZYFER; ntp_ok=$enableval
24775 else
24776 ntp_ok=$ntp_eac
24779 if test "$ntp_ok" = "yes"; then
24780 ntp_refclock=yes
24782 $as_echo "#define CLOCK_ZYFER 1" >>confdefs.h
24785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24786 $as_echo "$ntp_ok" >&6; }
24788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable PARSE clocks" >&5
24789 $as_echo_n "checking for default inclusion of all suitable PARSE clocks... " >&6; }
24790 # Check whether --enable-parse-clocks was given.
24791 if test "${enable_parse_clocks+set}" = set; then :
24792 enableval=$enable_parse_clocks; ntp_eapc=$enableval
24793 else
24794 case "$ntp_eac" in
24795 yes) ntp_eapc=$ntp_canparse ;;
24796 *) ntp_eapc=no ;;
24797 esac
24798 # Delete the next line one of these days
24799 ntp_eapc=no
24802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eapc" >&5
24803 $as_echo "$ntp_eapc" >&6; }
24805 case "$ntp_eac$ntp_eapc$ntp_canparse" in
24806 noyes*)
24807 as_fn_error "\"--enable-parse-clocks\" requires \"--enable-all-clocks\"." "$LINENO" 5
24809 yesyesno)
24810 as_fn_error "You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" "$LINENO" 5
24812 *) ;;
24813 esac
24815 ntp_libparse=no
24816 ntp_parseutil=no
24817 ntp_rawdcf=no
24819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Diem Computime Radio Clock" >&5
24820 $as_echo_n "checking Diem Computime Radio Clock... " >&6; }
24821 # Check whether --enable-COMPUTIME was given.
24822 if test "${enable_COMPUTIME+set}" = set; then :
24823 enableval=$enable_COMPUTIME; ntp_ok=$enableval
24824 else
24825 ntp_ok=$ntp_eapc
24828 if test "$ntp_ok" = "yes"; then
24829 ntp_libparse=yes
24830 ntp_refclock=yes
24832 $as_echo "#define CLOCK_COMPUTIME 1" >>confdefs.h
24835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24836 $as_echo "$ntp_ok" >&6; }
24837 case "$ntp_ok$ntp_canparse" in
24838 yesno)
24839 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
24841 esac
24843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELV/DCF7000 clock" >&5
24844 $as_echo_n "checking ELV/DCF7000 clock... " >&6; }
24845 # Check whether --enable-DCF7000 was given.
24846 if test "${enable_DCF7000+set}" = set; then :
24847 enableval=$enable_DCF7000; ntp_ok=$enableval
24848 else
24849 ntp_ok=$ntp_eapc
24852 if test "$ntp_ok" = "yes"; then
24853 ntp_libparse=yes
24854 ntp_refclock=yes
24856 $as_echo "#define CLOCK_DCF7000 1" >>confdefs.h
24859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24860 $as_echo "$ntp_ok" >&6; }
24861 case "$ntp_ok$ntp_canparse" in
24862 yesno)
24863 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
24865 esac
24867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking HOPF 6021 clock" >&5
24868 $as_echo_n "checking HOPF 6021 clock... " >&6; }
24869 # Check whether --enable-HOPF6021 was given.
24870 if test "${enable_HOPF6021+set}" = set; then :
24871 enableval=$enable_HOPF6021; ntp_ok=$enableval
24872 else
24873 ntp_ok=$ntp_eapc
24876 if test "$ntp_ok" = "yes"; then
24877 ntp_libparse=yes
24878 ntp_refclock=yes
24880 $as_echo "#define CLOCK_HOPF6021 1" >>confdefs.h
24883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24884 $as_echo "$ntp_ok" >&6; }
24885 case "$ntp_ok$ntp_canparse" in
24886 yesno)
24887 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
24889 esac
24891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Meinberg clocks" >&5
24892 $as_echo_n "checking Meinberg clocks... " >&6; }
24893 # Check whether --enable-MEINBERG was given.
24894 if test "${enable_MEINBERG+set}" = set; then :
24895 enableval=$enable_MEINBERG; ntp_ok=$enableval
24896 else
24897 ntp_ok=$ntp_eapc
24900 if test "$ntp_ok" = "yes"; then
24901 ntp_libparse=yes
24902 ntp_refclock=yes
24904 $as_echo "#define CLOCK_MEINBERG 1" >>confdefs.h
24907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24908 $as_echo "$ntp_ok" >&6; }
24909 case "$ntp_ok$ntp_canparse" in
24910 yesno)
24911 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
24913 esac
24915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DCF77 raw time code" >&5
24916 $as_echo_n "checking DCF77 raw time code... " >&6; }
24917 # Check whether --enable-RAWDCF was given.
24918 if test "${enable_RAWDCF+set}" = set; then :
24919 enableval=$enable_RAWDCF; ntp_ok=$enableval
24920 else
24921 ntp_ok=$ntp_eapc
24924 if test "$ntp_ok" = "yes"; then
24925 ntp_libparse=yes
24926 ntp_parseutil=yes
24927 ntp_refclock=yes
24928 ntp_rawdcf=yes
24930 $as_echo "#define CLOCK_RAWDCF 1" >>confdefs.h
24933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24934 $as_echo "$ntp_ok" >&6; }
24935 case "$ntp_ok$ntp_canparse" in
24936 yesno)
24937 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
24939 esac
24941 case "$ntp_rawdcf" in
24942 yes)
24943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we must enable parity for RAWDCF" >&5
24944 $as_echo_n "checking if we must enable parity for RAWDCF... " >&6; }
24945 if test "${ac_cv_var_rawdcf_parity+set}" = set; then :
24946 $as_echo_n "(cached) " >&6
24947 else
24948 ans=no
24949 case "$host" in
24950 *-*-*linux*)
24951 ans=yes
24953 esac
24954 ac_cv_var_rawdcf_parity=$ans
24956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_rawdcf_parity" >&5
24957 $as_echo "$ac_cv_var_rawdcf_parity" >&6; }
24958 case "$ac_cv_var_rawdcf_parity" in
24959 yes)
24960 $as_echo "#define RAWDCF_NO_IGNPAR 1" >>confdefs.h
24962 esac
24965 *) # HMS: Is this a good idea?
24966 ac_cv_var_rawdcf_parity=no
24968 esac
24970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RCC 8000 clock" >&5
24971 $as_echo_n "checking RCC 8000 clock... " >&6; }
24972 # Check whether --enable-RCC8000 was given.
24973 if test "${enable_RCC8000+set}" = set; then :
24974 enableval=$enable_RCC8000; ntp_ok=$enableval
24975 else
24976 ntp_ok=$ntp_eapc
24979 if test "$ntp_ok" = "yes"; then
24980 ntp_libparse=yes
24981 ntp_refclock=yes
24983 $as_echo "#define CLOCK_RCC8000 1" >>confdefs.h
24986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24987 $as_echo "$ntp_ok" >&6; }
24988 case "$ntp_ok$ntp_canparse" in
24989 yesno)
24990 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
24992 esac
24994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Schmid DCF77 clock" >&5
24995 $as_echo_n "checking Schmid DCF77 clock... " >&6; }
24996 # Check whether --enable-SCHMID was given.
24997 if test "${enable_SCHMID+set}" = set; then :
24998 enableval=$enable_SCHMID; ntp_ok=$enableval
24999 else
25000 ntp_ok=$ntp_eapc
25003 if test "$ntp_ok" = "yes"; then
25004 ntp_libparse=yes
25005 ntp_refclock=yes
25007 $as_echo "#define CLOCK_SCHMID 1" >>confdefs.h
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
25011 $as_echo "$ntp_ok" >&6; }
25012 case "$ntp_ok$ntp_canparse" in
25013 yesno)
25014 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
25016 esac
25018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TAIP protocol" >&5
25019 $as_echo_n "checking Trimble GPS receiver/TAIP protocol... " >&6; }
25020 # Check whether --enable-TRIMTAIP was given.
25021 if test "${enable_TRIMTAIP+set}" = set; then :
25022 enableval=$enable_TRIMTAIP; ntp_ok=$enableval
25023 else
25024 ntp_ok=$ntp_eapc
25027 if test "$ntp_ok" = "yes"; then
25028 ntp_libparse=yes
25029 ntp_refclock=yes
25031 $as_echo "#define CLOCK_TRIMTAIP 1" >>confdefs.h
25034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
25035 $as_echo "$ntp_ok" >&6; }
25036 case "$ntp_ok$ntp_canparse" in
25037 yesno)
25038 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
25040 esac
25042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TSIP protocol" >&5
25043 $as_echo_n "checking Trimble GPS receiver/TSIP protocol... " >&6; }
25044 # Check whether --enable-TRIMTSIP was given.
25045 if test "${enable_TRIMTSIP+set}" = set; then :
25046 enableval=$enable_TRIMTSIP; ntp_ok=$enableval
25047 else
25048 ntp_ok=$ntp_eapc
25051 if test "$ntp_ok" = "yes"; then
25052 ntp_libparse=yes
25053 ntp_refclock=yes
25055 $as_echo "#define CLOCK_TRIMTSIP 1" >>confdefs.h
25058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
25059 $as_echo "$ntp_ok" >&6; }
25060 case "$ntp_ok$ntp_canparse" in
25061 yesno)
25062 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
25064 esac
25066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5
25067 $as_echo_n "checking WHARTON 400A Series clock... " >&6; }
25068 # Check whether --enable-WHARTON was given.
25069 if test "${enable_WHARTON+set}" = set; then :
25070 enableval=$enable_WHARTON; ntp_ok=$enableval
25071 else
25072 ntp_ok=$ntp_eapc
25075 if test "$ntp_ok" = "yes"; then
25076 ntp_libparse=yes
25077 ntp_refclock=yes
25079 $as_echo "#define CLOCK_WHARTON_400A 1" >>confdefs.h
25082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
25083 $as_echo "$ntp_ok" >&6; }
25084 case "$ntp_ok$ntp_canparse" in
25085 yesno)
25086 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
25088 esac
25090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5
25091 $as_echo_n "checking VARITEXT clock... " >&6; }
25092 # Check whether --enable-VARITEXT was given.
25093 if test "${enable_VARITEXT+set}" = set; then :
25094 enableval=$enable_VARITEXT; ntp_ok=$enableval
25095 else
25096 ntp_ok=$ntp_eapc
25099 if test "$ntp_ok" = "yes"; then
25100 ntp_libparse=yes
25101 ntp_refclock=yes
25103 $as_echo "#define CLOCK_VARITEXT 1" >>confdefs.h
25106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
25107 $as_echo "$ntp_ok" >&6; }
25108 case "$ntp_ok$ntp_canparse" in
25109 yesno)
25110 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
25112 esac
25117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5
25118 $as_echo_n "checking if we need to make and use the parse libraries... " >&6; }
25119 ans=no
25120 case "$ntp_libparse" in
25121 yes)
25122 ans=yes
25124 $as_echo "#define CLOCK_PARSE 1" >>confdefs.h
25126 LIBPARSE=../libparse/libparse.a
25127 MAKE_LIBPARSE=libparse.a
25128 # HMS: check_y2k trips the 34 year problem now...
25129 false && MAKE_CHECK_Y2K=check_y2k
25131 esac
25132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25133 $as_echo "$ans" >&6; }
25136 # AC_SUBST(RSAOBJS)
25137 # AC_SUBST(RSASRCS)
25138 # AC_SUBST(RSADIR)
25139 # AC_SUBST(RSAREF)
25140 # AC_SUBST(LIBRSAREF)
25141 # AC_SUBST(MAKE_LIBRSAREF)
25147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
25148 $as_echo_n "checking for openssl library directory... " >&6; }
25150 # Check whether --with-openssl-libdir was given.
25151 if test "${with_openssl_libdir+set}" = set; then :
25152 withval=$with_openssl_libdir; ans=$withval
25153 else
25154 case "$build" in
25155 $host) ans=yes ;;
25156 *) ans=no ;;
25157 esac
25160 case "$ans" in
25161 no) ;;
25162 yes) # Look in:
25163 ans="/usr/lib /usr/lib/openssl /usr/sfw/lib /usr/local/lib /usr/local/ssl/lib /lib"
25165 *) # Look where they said
25167 esac
25168 case "$ans" in
25169 no) ;;
25170 *) # Look for libcrypto.a and libssl.a:
25171 for i in $ans no
25173 case "$host" in
25174 *-*-darwin*)
25175 test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
25178 test -f $i/libcrypto.so -a -f $i/libssl.so && break
25179 test -f $i/libcrypto.a -a -f $i/libssl.a && break
25181 esac
25182 done
25183 case "$i" in
25185 ans=no
25186 OPENSSL_LIB=
25188 *) ans=$i
25189 OPENSSL_LIB=$ans
25191 esac
25193 esac
25194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25195 $as_echo "$ans" >&6; }
25197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
25198 $as_echo_n "checking for openssl include directory... " >&6; }
25200 # Check whether --with-openssl-incdir was given.
25201 if test "${with_openssl_incdir+set}" = set; then :
25202 withval=$with_openssl_incdir; ans=$withval
25203 else
25204 case "$build" in
25205 $host) ans=yes ;;
25206 *) ans=no ;;
25207 esac
25210 case "$ans" in
25211 no) ;;
25212 yes) # look in:
25213 ans="/usr/include /usr/sfw/include /usr/local/include /usr/local/ssl/include"
25215 *) # Look where they said
25217 esac
25218 case "$ans" in
25219 no) ;;
25220 *) # look for openssl/opensslconf.h:
25221 for i in $ans no
25223 test -f $i/openssl/opensslconf.h && break
25224 done
25225 case "$i" in
25227 ans=no
25228 OPENSSL_INC=
25230 *) ans=$i
25231 OPENSSL_INC=$ans
25233 esac
25235 esac
25236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25237 $as_echo "$ans" >&6; }
25239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
25240 $as_echo_n "checking if we will use crypto... " >&6; }
25242 # Check whether --with-crypto was given.
25243 if test "${with_crypto+set}" = set; then :
25244 withval=$with_crypto; ans=$withval
25245 else
25246 ans=yes
25249 case "$ans" in
25252 yes|openssl)
25253 if test -z "$OPENSSL_LIB" -o -z "$OPENSSL_INC"
25254 then
25255 ans=no
25256 else
25257 ans=yes
25259 esac
25260 ntp_openssl=$ans
25261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25262 $as_echo "$ans" >&6; }
25264 case "$ntp_openssl" in
25265 yes)
25266 # We have OpenSSL inc/lib - use them.
25267 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INC"
25268 LDFLAGS="$LDFLAGS -L$OPENSSL_LIB"
25269 case "$need_dash_r" in
25270 1) LDFLAGS="$LDFLAGS -R$OPENSSL_LIB"
25271 esac
25272 LCRYPTO=-lcrypto
25275 $as_echo "#define OPENSSL /**/" >>confdefs.h
25277 esac
25280 # OpenSSL has a number of callback prototypes inside other function
25281 # prototypes which trigger copious warnings with -Wstrict-prototypes,
25282 # (which is included in -Wall).
25284 # An example:
25286 # int i2d_RSA_NET(const RSA *a, unsigned char **pp,
25287 # int (*cb)(), int sgckey);
25288 # ^^^^^^^^^^^
25290 # The OpenSSL headers probably haven't been fixed in this regard
25291 # due to the hoops you have to jump through to stay compatible with
25292 # K&R C compilers.
25294 case "$GCC$ntp_openssl" in
25295 yesyes)
25296 CFLAGS="$CFLAGS -Wno-strict-prototypes"
25297 esac
25299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to compile with ElectricFence" >&5
25300 $as_echo_n "checking if we want to compile with ElectricFence... " >&6; }
25302 # Check whether --with-electricfence was given.
25303 if test "${with_electricfence+set}" = set; then :
25304 withval=$with_electricfence; ans=$withval
25305 else
25306 ans=no
25309 case "$ans" in
25310 no) ;;
25312 LIBS="$LIBS \${top_builddir}/ElectricFence/libefence.a"
25313 EF_PROGS="eftest tstheap"
25315 EF_LIBS=libefence.a
25317 ans=yes
25319 esac
25320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25321 $as_echo "$ans" >&6; }
25324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to run check-layout" >&5
25325 $as_echo_n "checking if we want to run check-layout... " >&6; }
25326 case "$cross_compiling$PATH_PERL" in
25327 no/*)
25328 MAKE_CHECK_LAYOUT=check-layout
25329 ans=yes
25332 ans=no
25334 esac
25335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25336 $as_echo "$ans" >&6; }
25341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make dcf parse utilities" >&5
25342 $as_echo_n "checking if we can make dcf parse utilities... " >&6; }
25343 ans=no
25344 if test "$ntp_parseutil" = "yes"; then
25345 case "$host" in
25346 *-*-sunos4*|*-*-solaris2*|*-*-*linux*|*-*-netbsd*)
25347 ans="dcfd testdcf"
25348 DCFD=dcfd
25349 TESTDCF=testdcf
25351 esac
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25354 $as_echo "$ans" >&6; }
25357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build kernel streams modules for parse" >&5
25358 $as_echo_n "checking if we can build kernel streams modules for parse... " >&6; }
25359 ans=no
25360 case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
25361 yesyes)
25362 case "$host" in
25363 sparc-*-sunos4*)
25364 case "$ac_cv_var_kernel_pll" in
25365 yes)
25367 $as_echo "#define PPS_SYNC 1" >>confdefs.h
25370 esac
25371 ans=parsestreams
25372 MAKE_PARSEKMODULE=parsestreams.loadable_module.o
25374 sparc-*-solaris2*)
25375 ans=parsesolaris
25376 MAKE_PARSEKMODULE=parse
25377 for ac_header in strings.h
25378 do :
25379 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
25380 if test "x$ac_cv_header_strings_h" = x""yes; then :
25381 cat >>confdefs.h <<_ACEOF
25382 #define HAVE_STRINGS_H 1
25383 _ACEOF
25387 done
25390 esac
25392 esac
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25394 $as_echo "$ans" >&6; }
25396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need basic refclock support" >&5
25397 $as_echo_n "checking if we need basic refclock support... " >&6; }
25398 if test "$ntp_refclock" = "yes"; then
25400 $as_echo "#define REFCLOCK 1" >>confdefs.h
25403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_refclock" >&5
25404 $as_echo "$ntp_refclock" >&6; }
25408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want HP-UX adjtimed support" >&5
25409 $as_echo_n "checking if we want HP-UX adjtimed support... " >&6; }
25410 case "$host" in
25411 *-*-hpux[56789]*)
25412 ans=yes
25414 *) ans=no
25416 esac
25417 if test "$ans" = "yes"; then
25418 MAKE_ADJTIMED=adjtimed
25420 $as_echo "#define NEED_HPUX_ADJTIME 1" >>confdefs.h
25423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25424 $as_echo "$ans" >&6; }
25426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5
25427 $as_echo_n "checking if we want QNX adjtime support... " >&6; }
25428 case "$host" in
25429 *-*-qnx*)
25430 ans=yes
25432 *) ans=no
25434 esac
25435 if test "$ans" = "yes"; then
25437 $as_echo "#define NEED_QNX_ADJTIME 1" >>confdefs.h
25440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25441 $as_echo "$ans" >&6; }
25443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can read kmem" >&5
25444 $as_echo_n "checking if we can read kmem... " >&6; }
25446 # the default is to enable it if the system has the capability
25448 case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in
25449 *yes*)
25450 ans=yes
25452 *) ans=no
25453 esac
25455 case "$host" in
25456 *-*-domainos) # Won't be found...
25457 ans=no
25459 *-*-hpux*)
25460 #ans=no
25462 *-*-irix[456]*)
25463 ans=no
25465 *-*-*linux*)
25466 ans=no
25468 *-*-winnt3.5)
25469 ans=no
25471 *-*-unicosmp*)
25472 ans=no
25474 esac
25476 # --enable-kmem / --disable-kmem controls if present
25477 # Check whether --enable-kmem was given.
25478 if test "${enable_kmem+set}" = set; then :
25479 enableval=$enable_kmem; ans=$enableval
25484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25485 $as_echo "$ans" >&6; }
25487 case "$ans" in
25488 yes)
25489 can_kmem=yes
25492 can_kmem=no
25494 $as_echo "#define NOKMEM 1" >>confdefs.h
25496 esac
25499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5
25500 $as_echo_n "checking if adjtime is accurate... " >&6; }
25502 # target-dependent defaults
25504 case "$host" in
25505 i386-sequent-ptx*)
25506 ans=no
25508 i386-unknown-osf1*)
25509 ans=yes
25511 mips-sgi-irix[456]*)
25512 ans=yes
25514 *-fujitsu-uxp*)
25515 ans=yes
25517 *-ibm-aix[456]*)
25518 ans=yes
25520 *-*-*linux*)
25521 ans=yes
25523 *-*-solaris2.[01])
25524 ans=no
25526 *-*-solaris2*)
25527 ans=yes
25529 *-*-unicosmp*)
25530 ans=yes
25532 *) ans=no
25533 esac
25535 # --enable-accurate-adjtime / --disable-accurate-adjtime
25536 # override the default
25537 # Check whether --enable-accurate-adjtime was given.
25538 if test "${enable_accurate_adjtime+set}" = set; then :
25539 enableval=$enable_accurate_adjtime; ans=$enableval
25543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25544 $as_echo "$ans" >&6; }
25546 case "$ans" in
25547 yes)
25549 $as_echo "#define ADJTIME_IS_ACCURATE 1" >>confdefs.h
25551 adjtime_is_accurate=yes
25554 adjtime_is_accurate=no
25555 esac
25557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tick' in the kernel" >&5
25558 $as_echo_n "checking the name of 'tick' in the kernel... " >&6; }
25559 if test "${ac_cv_var_nlist_tick+set}" = set; then :
25560 $as_echo_n "(cached) " >&6
25561 else
25562 ans=_tick
25563 case "$host" in
25564 m68*-hp-hpux*) # HP9000/300?
25565 ans=_old_tick
25567 *-apple-aux[23]*)
25568 ans=tick
25570 *-hp-hpux*)
25571 ans=old_tick
25573 *-ibm-aix[3456]*)
25574 ans=no
25576 *-*-mpeix*)
25577 ans=no
25579 *-*-ptx*)
25580 ans=tick
25582 *-*-sco3.2v[45]*)
25583 ans=no
25585 *-*-solaris2*)
25586 ans=nsec_per_tick
25588 *-*-sysv4*)
25589 ans=tick
25591 esac
25592 ac_cv_var_nlist_tick=$ans
25594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_tick" >&5
25595 $as_echo "$ac_cv_var_nlist_tick" >&6; }
25596 case "$ac_cv_var_nlist_tick" in
25597 ''|no) ;; # HMS: I think we can only get 'no' here...
25599 cat >>confdefs.h <<_ACEOF
25600 #define K_TICK_NAME "$ac_cv_var_nlist_tick"
25601 _ACEOF
25603 esac
25605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tick'" >&5
25606 $as_echo_n "checking for the units of 'tick'... " >&6; }
25607 if test "${ac_cv_var_tick_nano+set}" = set; then :
25608 $as_echo_n "(cached) " >&6
25609 else
25610 ans=usec
25611 case "$host" in
25612 *-*-solaris2*)
25613 ans=nsec
25615 esac
25616 ac_cv_var_tick_nano=$ans
25618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tick_nano" >&5
25619 $as_echo "$ac_cv_var_tick_nano" >&6; }
25620 case "$ac_cv_var_tick_nano" in
25621 nsec)
25623 $as_echo "#define TICK_NANO 1" >>confdefs.h
25626 esac
25628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tickadj' in the kernel" >&5
25629 $as_echo_n "checking the name of 'tickadj' in the kernel... " >&6; }
25630 if test "${ac_cv_var_nlist_tickadj+set}" = set; then :
25631 $as_echo_n "(cached) " >&6
25632 else
25633 ans=_tickadj
25634 case "$host" in
25635 m68*-hp-hpux*) # HP9000/300?
25636 ans=_tickadj
25638 *-apple-aux[23]*)
25639 ans=tickadj
25641 *-hp-hpux10*)
25642 ans=no
25644 *-hp-hpux9*)
25645 ans=no
25647 *-hp-hpux*)
25648 ans=tickadj
25650 *-*-aix*)
25651 ans=tickadj
25653 *-*-mpeix*)
25654 ans=no
25656 *-*-ptx*)
25657 ans=tickadj
25659 *-*-sco3.2v4*)
25660 ans=no
25662 *-*-sco3.2v5.0*)
25663 ans=clock_drift
25665 *-*-solaris2*)
25666 ans=no # hrestime_adj
25668 *-*-sysv4*)
25669 ans=tickadj
25671 esac
25672 ac_cv_var_nlist_tickadj=$ans
25674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_tickadj" >&5
25675 $as_echo "$ac_cv_var_nlist_tickadj" >&6; }
25676 case "$ac_cv_var_nlist_tickadj" in
25677 ''|no) ;; # HMS: I think we can only get 'no' here...
25679 cat >>confdefs.h <<_ACEOF
25680 #define K_TICKADJ_NAME "$ac_cv_var_nlist_tickadj"
25681 _ACEOF
25683 esac
25685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tickadj'" >&5
25686 $as_echo_n "checking for the units of 'tickadj'... " >&6; }
25687 if test "${ac_cv_var_tickadj_nano+set}" = set; then :
25688 $as_echo_n "(cached) " >&6
25689 else
25690 ans=usec
25691 case "$host" in
25692 *-*-solaris2*)
25693 ans=nsec
25695 esac
25696 ac_cv_var_tickadj_nano=$ans
25698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tickadj_nano" >&5
25699 $as_echo "$ac_cv_var_tickadj_nano" >&6; }
25700 case "$ac_cv_var_tickadj_nano" in
25701 nsec)
25703 $as_echo "#define TICKADJ_NANO 1" >>confdefs.h
25706 esac
25708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'dosynctodr' in the kernel" >&5
25709 $as_echo_n "checking half-heartedly for 'dosynctodr' in the kernel... " >&6; }
25710 if test "${ac_cv_var_nlist_dosynctodr+set}" = set; then :
25711 $as_echo_n "(cached) " >&6
25712 else
25713 case "$host" in
25714 *-apple-aux[23]*)
25715 ans=no
25717 *-sni-sysv*)
25718 ans=dosynctodr
25720 *-*-aix*)
25721 ans=dosynctodr
25723 *-*-hpux*)
25724 ans=no
25726 *-*-mpeix*)
25727 ans=no
25729 *-*-nextstep*)
25730 ans=_dosynctodr
25732 *-*-ptx*)
25733 ans=doresettodr
25735 *-*-sco3.2v4*)
25736 ans=no
25738 *-*-sco3.2v5*)
25739 ans=track_rtc
25741 *-*-solaris2*)
25742 ans=dosynctodr
25744 *-*-sysv4*)
25745 ans=doresettodr
25748 ans=_dosynctodr
25750 esac
25751 ac_cv_var_nlist_dosynctodr=$ans
25753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_dosynctodr" >&5
25754 $as_echo "$ac_cv_var_nlist_dosynctodr" >&6; }
25755 case "$ac_cv_var_nlist_dosynctodr" in
25756 no) ;;
25758 cat >>confdefs.h <<_ACEOF
25759 #define K_DOSYNCTODR_NAME "$ac_cv_var_nlist_dosynctodr"
25760 _ACEOF
25763 esac
25765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'noprintf' in the kernel" >&5
25766 $as_echo_n "checking half-heartedly for 'noprintf' in the kernel... " >&6; }
25767 if test "${ac_cv_var_nlist_noprintf+set}" = set; then :
25768 $as_echo_n "(cached) " >&6
25769 else
25770 case "$host" in
25771 *-apple-aux[23]*)
25772 ans=no
25774 *-sni-sysv*)
25775 ans=noprintf
25777 *-*-aix*)
25778 ans=noprintf
25780 *-*-hpux*)
25781 ans=no
25783 *-*-mpeix*)
25784 ans=no
25786 *-*-ptx*)
25787 ans=noprintf
25789 *-*-nextstep*)
25790 ans=_noprintf
25792 *-*-solaris2*)
25793 ans=noprintf
25795 *-*-sysv4*)
25796 ans=noprintf
25799 ans=_noprintf
25801 esac
25802 ac_cv_var_nlist_noprintf=$ans
25804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_noprintf" >&5
25805 $as_echo "$ac_cv_var_nlist_noprintf" >&6; }
25806 case "$ac_cv_var_nlist_noprintf" in
25807 no) ;;
25809 cat >>confdefs.h <<_ACEOF
25810 #define K_NOPRINTF_NAME "$ac_cv_var_nlist_noprintf"
25811 _ACEOF
25814 esac
25819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tick'" >&5
25820 $as_echo_n "checking for a default value for 'tick'... " >&6; }
25822 # target-dependent default for tick
25824 case "$host" in
25825 *-*-pc-cygwin*)
25826 as_fn_error "tick needs work for cygwin" "$LINENO" 5
25828 *-univel-sysv*)
25829 ans=10000
25831 *-*-irix*)
25832 ans=10000
25834 *-*-*linux*)
25835 ans=txc.tick
25837 *-*-mpeix*)
25838 ans=no
25840 *-*-winnt3.5)
25841 ans='(every / 10)'
25843 *-*-unicosmp*)
25844 ans=10000
25847 ans='1000000L/hz'
25849 esac
25851 # Check whether --enable-tick was given.
25852 if test "${enable_tick+set}" = set; then :
25853 enableval=$enable_tick; ans=$enableval
25858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25859 $as_echo "$ans" >&6; }
25861 case "$ans" in
25862 ''|no) ;; # HMS: I think we can only get 'no' here...
25864 cat >>confdefs.h <<_ACEOF
25865 #define PRESET_TICK $ans
25866 _ACEOF
25868 esac
25871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tickadj'" >&5
25872 $as_echo_n "checking for a default value for 'tickadj'... " >&6; }
25874 # target-specific default
25876 ans='500/hz'
25878 case "$host" in
25879 *-fujitsu-uxp*)
25880 case "$adjtime_is_accurate" in
25881 yes)
25882 ans='tick/16'
25883 esac
25885 XXX-*-pc-cygwin*)
25886 ans=no
25888 *-univel-sysv*)
25889 ans=80
25891 *-*-aix*)
25892 case "$can_kmem" in
25894 ans=1000
25895 esac
25897 *-*-domainos) # Skippy: won't be found...
25898 case "$can_kmem" in
25900 ans=668
25901 esac
25903 *-*-hpux*)
25904 case "$adjtime_is_accurate" in
25905 yes)
25906 ans='tick/16'
25907 esac
25909 *-*-irix*)
25910 ans=150
25912 *-*-mpeix*)
25913 ans=no
25915 *-*-sco3.2v5.0*)
25916 ans=10000L/hz
25918 *-*-winnt3.5)
25919 ans=50
25921 *-*-unicosmp*)
25922 ans=150
25923 esac
25925 # Check whether --enable-tickadj was given.
25926 if test "${enable_tickadj+set}" = set; then :
25927 enableval=$enable_tickadj; ans=$enableval
25932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25933 $as_echo "$ans" >&6; }
25935 default_tickadj=$ans
25937 case "$default_tickadj" in
25938 ''|no) ;; # HMS: I think we can only get 'no' here...
25940 cat >>confdefs.h <<_ACEOF
25941 #define PRESET_TICKADJ $default_tickadj
25942 _ACEOF
25944 esac
25946 # Newer versions of ReliantUNIX round adjtime() values down to
25947 # 1/100s (system tick). Sigh ...
25948 # Unfortunately, there is no easy way to know if particular release
25949 # has this "feature" or any obvious way to test for it.
25950 case "$host" in
25951 mips-sni-sysv4*)
25952 $as_echo "#define RELIANTUNIX_CLOCK 1" >>confdefs.h
25954 esac
25956 case "$host" in
25957 *-*-sco3.2v5*)
25958 $as_echo "#define SCO5_CLOCK 1" >>confdefs.h
25960 esac
25962 ac_cv_make_tickadj=yes
25963 case "$can_kmem$ac_cv_var_tick$default_tickadj" in
25964 nonono) # Don't read KMEM, no presets. Bogus.
25965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&5
25966 $as_echo "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&2;}
25967 ac_cv_make_tickadj=no
25969 nono*) # Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus.
25970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&5
25971 $as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&2;}
25972 ac_cv_make_tickadj=no
25974 no*no) # Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ. Bogus.
25975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&5
25976 $as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&2;}
25977 ac_cv_make_tickadj=no
25979 no*) # Don't read KMEM, PRESET_TICK and PRESET_TICKADJ. Cool.
25981 yesnono) # Read KMEM, no presets. Cool.
25983 yesno*) # Read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus.
25984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&5
25985 $as_echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&2;}
25987 yes*no) # Read KMEM, PRESET_TICK but no PRESET_TICKADJ. Cool.
25989 yes*) # READ KMEM, PRESET_TICK and PRESET_TICKADJ.
25991 *) # Generally bogus.
25992 as_fn_error "This shouldn't happen." "$LINENO" 5
25994 esac
25997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5
25998 $as_echo_n "checking if we want and can make the ntptime utility... " >&6; }
25999 if test "${ac_cv_make_ntptime+set}" = set; then :
26000 $as_echo_n "(cached) " >&6
26001 else
26002 case "$host" in
26003 *) case "$ac_cv_struct_ntptimeval$ac_cv_var_kernel_pll" in
26004 yesyes)
26005 ans=yes
26008 ans=no
26010 esac
26012 esac
26013 ac_cv_make_ntptime=$ans
26015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_ntptime" >&5
26016 $as_echo "$ac_cv_make_ntptime" >&6; }
26017 case "$ac_cv_make_ntptime" in
26018 yes)
26019 MAKE_NTPTIME=ntptime
26021 esac
26024 case "$host" in
26025 mips-sni-sysv4*)
26026 # tickadj is pretty useless on newer versions of ReliantUNIX
26027 # Do not bother
26028 ac_cv_make_tickadj=no
26030 *-*-irix*)
26031 ac_cv_make_tickadj=no
26033 *-*-solaris2*)
26034 # DLM says tickadj is a no-no starting with solaris2.5
26035 case "$host" in
26036 *-*-solaris2.1[0-9]*)
26037 ac_cv_make_tickadj=no
26039 *-*-solaris2.[0-4]*) ;;
26040 *) ac_cv_make_tickadj=no ;;
26041 esac
26043 *-*-unicosmp*)
26044 ac_cv_make_tickadj=no
26046 esac
26049 # Despite all the above, we always make tickadj. Setting
26050 # ac_cv_make_tickadj before AC_CACHE_CHECK will cause a false
26051 # report that the configuration variable was cached. It may
26052 # be better to simply remove the hunk above, I did not want
26053 # to remove it if there is hope it will be used again.
26055 $as_unset ac_cv_make_tickadj
26057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5
26058 $as_echo_n "checking if we want and can make the tickadj utility... " >&6; }
26059 if test "${ac_cv_make_tickadj+set}" = set; then :
26060 $as_echo_n "(cached) " >&6
26061 else
26062 ac_cv_make_tickadj=yes
26064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_tickadj" >&5
26065 $as_echo "$ac_cv_make_tickadj" >&6; }
26066 case "$ac_cv_make_tickadj" in
26067 yes)
26068 MAKE_TICKADJ=tickadj
26070 esac
26073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the timetrim utility" >&5
26074 $as_echo_n "checking if we want and can make the timetrim utility... " >&6; }
26075 if test "${ac_cv_make_timetrim+set}" = set; then :
26076 $as_echo_n "(cached) " >&6
26077 else
26078 case "$host" in
26079 *-*-irix*)
26080 ac_cv_make_timetrim=yes
26082 *-*-unicosmp*)
26083 ac_cv_make_timetrim=yes
26086 ac_cv_make_timetrim=no
26088 esac
26090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_timetrim" >&5
26091 $as_echo "$ac_cv_make_timetrim" >&6; }
26092 case "$ac_cv_make_timetrim" in
26093 yes)
26094 MAKE_TIMETRIM=timetrim
26096 esac
26101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build the NTPD simulator" >&5
26102 $as_echo_n "checking if we want to build the NTPD simulator... " >&6; }
26104 # Check whether --enable-simulator was given.
26105 if test "${enable_simulator+set}" = set; then :
26106 enableval=$enable_simulator; ans=$enableval
26107 else
26108 ans=no
26113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
26114 $as_echo "$ans" >&6; }
26116 case "$ans" in
26117 yes)
26118 MAKE_NTPDSIM=ntpdsim
26119 MAKE_LIBNTPSIM=libntpsim.a
26121 esac
26123 case "$build" in
26124 $host)
26126 *) case "$host" in
26127 *-*-vxworks*)
26128 LDFLAGS="$LDFLAGS -r"
26130 esac
26132 esac
26135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build ntpsnmpd" >&5
26136 $as_echo_n "checking if we want to build ntpsnmpd... " >&6; }
26138 # Check whether --with-ntpsnmpd was given.
26139 if test "${with_ntpsnmpd+set}" = set; then :
26140 withval=$with_ntpsnmpd; ans=$withval
26141 else
26142 case "$PATH_NET_SNMP_CONFIG" in
26143 /*) ans=yes ;;
26144 *) ans=no ;;
26145 esac
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
26149 $as_echo "$ans" >&6; }
26151 case "$ans" in
26152 yes)
26153 case "$PATH_NET_SNMP_CONFIG" in
26155 SNMP_LIBS=`$PATH_NET_SNMP_CONFIG --agent-libs`
26157 # HMS: we really want to separate CPPFLAGS and CFLAGS
26158 foo=`$PATH_NET_SNMP_CONFIG --cflags`
26159 SNMP_CPPFLAGS=
26160 SNMP_CFLAGS=
26161 for i in $foo; do
26162 case "$i" in
26163 -D*|-U*|-I*)
26164 SNMP_CPPFLAGS="$SNMP_CPPFLAGS $i"
26166 *) SNMP_CFLAGS="$SNMP_CFLAGS $i"
26168 esac
26169 done
26173 save_CFLAGS=$CFLAGS
26174 save_CPPFLAGS=$CPPFLAGS
26175 save_LIBS=$LIBS
26176 CFLAGS=$SNMP_CFLAGS
26177 CPPFLAGS=$SNMP_CPPFLAGS
26179 ac_fn_c_check_header_mongrel "$LINENO" "net-snmp/net-snmp-config.h" "ac_cv_header_net_snmp_net_snmp_config_h" "$ac_includes_default"
26180 if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = x""yes; then :
26181 MAKE_NTPSNMPD=ntpsnmpd
26182 else
26183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: net-snmp-config present but net-snmp headers are not available!" >&5
26184 $as_echo "$as_me: WARNING: net-snmp-config present but net-snmp headers are not available!" >&2;}
26189 # Do this last, as we're messing up LIBS.
26191 # check -lnetsnmp for netsnmp_daemonize
26192 LIBS=`$PATH_NET_SNMP_CONFIG --libs`
26193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netsnmp_daemonize in -lnetsnmp" >&5
26194 $as_echo_n "checking for netsnmp_daemonize in -lnetsnmp... " >&6; }
26195 if test "${ac_cv_lib_netsnmp_netsnmp_daemonize+set}" = set; then :
26196 $as_echo_n "(cached) " >&6
26197 else
26198 ac_check_lib_save_LIBS=$LIBS
26199 LIBS="-lnetsnmp $LIBS"
26200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26201 /* end confdefs.h. */
26203 /* Override any GCC internal prototype to avoid an error.
26204 Use char because int might match the return type of a GCC
26205 builtin and then its argument prototype would still apply. */
26206 #ifdef __cplusplus
26207 extern "C"
26208 #endif
26209 char netsnmp_daemonize ();
26211 main ()
26213 return netsnmp_daemonize ();
26215 return 0;
26217 _ACEOF
26218 if ac_fn_c_try_link "$LINENO"; then :
26219 ac_cv_lib_netsnmp_netsnmp_daemonize=yes
26220 else
26221 ac_cv_lib_netsnmp_netsnmp_daemonize=no
26223 rm -f core conftest.err conftest.$ac_objext \
26224 conftest$ac_exeext conftest.$ac_ext
26225 LIBS=$ac_check_lib_save_LIBS
26227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_netsnmp_daemonize" >&5
26228 $as_echo "$ac_cv_lib_netsnmp_netsnmp_daemonize" >&6; }
26229 if test "x$ac_cv_lib_netsnmp_netsnmp_daemonize" = x""yes; then :
26230 cat >>confdefs.h <<_ACEOF
26231 #define HAVE_LIBNETSNMP 1
26232 _ACEOF
26234 LIBS="-lnetsnmp $LIBS"
26236 else
26238 $as_echo "#define NEED_NETSNMP_DAEMONIZE 1" >>confdefs.h
26243 CFLAGS=$save_CFLAGS
26244 CPPFLAGS=$save_CPPFLAGS
26245 LIBS=$save_LIBS
26248 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build ntpsnmpd as desired - net-snmp-config cannot be found" >&5
26249 $as_echo "$as_me: WARNING: Cannot build ntpsnmpd as desired - net-snmp-config cannot be found" >&2;}
26251 esac
26253 esac
26257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should always slew the time" >&5
26258 $as_echo_n "checking if we should always slew the time... " >&6; }
26260 # target-specific defaults
26262 case "$host" in
26263 *-apple-aux[23]*)
26264 ans=yes
26266 *-*-bsdi[012]*)
26267 ans=no
26269 *-*-bsdi*)
26270 ans=yes
26272 *-*-openvms*) # HMS: won't be found
26273 ans=yes
26275 *) ans=no
26277 esac
26279 # --enable-slew-always / --disable-slew-always overrides default
26281 # Check whether --enable-slew-always was given.
26282 if test "${enable_slew_always+set}" = set; then :
26283 enableval=$enable_slew_always; ans=$enableval
26288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
26289 $as_echo "$ans" >&6; }
26291 case "$ans" in
26292 yes)
26293 $as_echo "#define SLEWALWAYS 1" >>confdefs.h
26295 esac
26297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should step and slew the time" >&5
26298 $as_echo_n "checking if we should step and slew the time... " >&6; }
26300 case "$host" in
26301 *-sni-sysv*)
26302 ans=yes
26304 *-univel-sysv*)
26305 ans=no
26307 *-*-ptx*)
26308 ans=yes
26310 *-*-solaris2.1[0-9]*)
26311 ans=no
26313 *-*-solaris2.[012]*)
26314 ans=yes
26316 *-*-sysv4*) # HMS: Does this catch Fujitsu UXP?
26317 ans=yes
26319 *) ans=no
26321 esac
26324 # Check whether --enable-step-slew was given.
26325 if test "${enable_step_slew+set}" = set; then :
26326 enableval=$enable_step_slew; ans=$enableval
26331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
26332 $as_echo "$ans" >&6; }
26334 case "$ans" in
26335 yes)
26336 $as_echo "#define STEP_SLEW 1" >>confdefs.h
26338 esac
26340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpdate should step the time" >&5
26341 $as_echo_n "checking if ntpdate should step the time... " >&6; }
26343 case "$host" in
26344 *-apple-aux[23]*)
26345 ans=yes
26347 *) ans=no
26348 esac
26350 # Check whether --enable-ntpdate-step was given.
26351 if test "${enable_ntpdate_step+set}" = set; then :
26352 enableval=$enable_ntpdate_step; ans=$enableval
26357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
26358 $as_echo "$ans" >&6; }
26360 case "$ans" in
26361 yes)
26362 $as_echo "#define FORCE_NTPDATE_STEP 1" >>confdefs.h
26364 esac
26367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should sync TODR clock every hour" >&5
26368 $as_echo_n "checking if we should sync TODR clock every hour... " >&6; }
26370 case "$host" in
26371 *-*-nextstep*)
26372 ans=yes
26374 *-*-openvms*) # HMS: won't be found
26375 ans=yes
26378 ans=no
26379 esac
26381 # Check whether --enable-hourly-todr-sync was given.
26382 if test "${enable_hourly_todr_sync+set}" = set; then :
26383 enableval=$enable_hourly_todr_sync; ans=$enableval
26388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
26389 $as_echo "$ans" >&6; }
26391 case "$ac_cv_var_sync_todr" in
26392 yes)
26393 $as_echo "#define DOSYNCTODR 1" >>confdefs.h
26395 esac
26398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should avoid kernel FLL bug" >&5
26399 $as_echo_n "checking if we should avoid kernel FLL bug... " >&6; }
26401 case "$host" in
26402 *-*-solaris2.6)
26403 unamev=`uname -v`
26404 case "$unamev" in
26405 Generic_105181-*)
26406 old_IFS="$IFS"
26407 IFS="-"
26408 set $unamev
26409 IFS="$old_IFS"
26410 if test "$2" -ge 17
26411 then
26412 # Generic_105181-17 and higher
26413 ans=no
26414 else
26415 ans=yes
26419 ans=yes
26420 esac
26422 *-*-solaris2.7)
26423 unamev=`uname -v`
26424 case "$unamev" in
26425 Generic_106541-*)
26426 old_IFS="$IFS"
26427 IFS="-"
26428 set $unamev
26429 IFS="$old_IFS"
26430 if test "$2" -ge 07
26431 then
26432 # Generic_106541-07 and higher
26433 ans=no
26434 else
26435 ans=yes
26439 ans=yes
26440 esac
26443 ans=no
26444 esac
26446 # Check whether --enable-kernel-fll-bug was given.
26447 if test "${enable_kernel_fll_bug+set}" = set; then :
26448 enableval=$enable_kernel_fll_bug; ans=$enableval
26453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
26454 $as_echo "$ans" >&6; }
26456 case "$ans" in
26457 yes)
26458 $as_echo "#define KERNEL_FLL_BUG 1" >>confdefs.h
26460 esac
26463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want new session key behavior" >&5
26464 $as_echo_n "checking if we want new session key behavior... " >&6; }
26466 # Check whether --enable-bug1243-fix was given.
26467 if test "${enable_bug1243_fix+set}" = set; then :
26468 enableval=$enable_bug1243_fix; ans=$enableval
26469 else
26470 ans=yes
26475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
26476 $as_echo "$ans" >&6; }
26478 case "$ans" in
26481 $as_echo "#define DISABLE_BUG1243_FIX 1" >>confdefs.h
26483 esac
26486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the IRIG sawtooth filter" >&5
26487 $as_echo_n "checking if we should use the IRIG sawtooth filter... " >&6; }
26489 case "$host" in
26490 *-*-solaris2.[89])
26491 ans=yes
26493 *-*-solaris2.1[0-9]*)
26494 ans=yes
26496 *) ans=no
26497 esac
26499 # Check whether --enable-irig-sawtooth was given.
26500 if test "${enable_irig_sawtooth+set}" = set; then :
26501 enableval=$enable_irig_sawtooth; ans=$enableval
26506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
26507 $as_echo "$ans" >&6; }
26509 case "$ans" in
26510 yes)
26511 $as_echo "#define IRIG_SUCKS 1" >>confdefs.h
26513 esac
26516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable NIST lockclock scheme" >&5
26517 $as_echo_n "checking if we should enable NIST lockclock scheme... " >&6; }
26519 # Check whether --enable-nist was given.
26520 if test "${enable_nist+set}" = set; then :
26521 enableval=$enable_nist; ans=$enableval
26522 else
26523 ans=no
26528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
26529 $as_echo "$ans" >&6; }
26531 case "$ans" in
26532 yes)
26533 $as_echo "#define LOCKCLOCK 1" >>confdefs.h
26535 esac
26538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want support for Samba's signing daemon" >&5
26539 $as_echo_n "checking if we want support for Samba's signing daemon... " >&6; }
26541 # Check whether --enable-ntp-signd was given.
26542 if test "${enable_ntp_signd+set}" = set; then :
26543 enableval=$enable_ntp_signd; ans=$enableval
26544 else
26545 ans=no
26550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
26551 $as_echo "$ans" >&6; }
26553 case "$ans" in
26555 ntp_signd_path=
26557 yes)
26558 ntp_signd_path=/var/run/ntp_signd
26561 ntp_signd_path="$ans"
26562 esac
26564 case "$ntp_signd_path" in
26569 $as_echo "#define HAVE_NTP_SIGND /**/" >>confdefs.h
26572 cat >>confdefs.h <<_ACEOF
26573 #define NTP_SIGND_PATH "$ntp_signd_path"
26574 _ACEOF
26576 esac
26579 for ac_header in sys/clockctl.h
26580 do :
26581 ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
26582 if test "x$ac_cv_header_sys_clockctl_h" = x""yes; then :
26583 cat >>confdefs.h <<_ACEOF
26584 #define HAVE_SYS_CLOCKCTL_H 1
26585 _ACEOF
26589 done
26592 case "$host" in
26593 *-*-netbsd*)
26594 ans=yes
26596 *) ans=no
26598 esac
26600 # Check whether --enable-clockctl was given.
26601 if test "${enable_clockctl+set}" = set; then :
26602 enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
26603 else
26604 ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h
26609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
26610 $as_echo_n "checking if we should use /dev/clockctl... " >&6; }
26611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
26612 $as_echo "$ntp_use_dev_clockctl" >&6; }
26615 for ac_header in sys/capability.h
26616 do :
26617 ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
26618 if test "x$ac_cv_header_sys_capability_h" = x""yes; then :
26619 cat >>confdefs.h <<_ACEOF
26620 #define HAVE_SYS_CAPABILITY_H 1
26621 _ACEOF
26625 done
26627 for ac_header in sys/prctl.h
26628 do :
26629 ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
26630 if test "x$ac_cv_header_sys_prctl_h" = x""yes; then :
26631 cat >>confdefs.h <<_ACEOF
26632 #define HAVE_SYS_PRCTL_H 1
26633 _ACEOF
26637 done
26640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
26641 $as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }
26643 case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
26644 yesyes)
26645 ntp_have_linuxcaps=yes
26648 ntp_have_linuxcaps=no
26649 esac
26651 # Check whether --enable-linuxcaps was given.
26652 if test "${enable_linuxcaps+set}" = set; then :
26653 enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval
26658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
26659 $as_echo "$ntp_have_linuxcaps" >&6; }
26661 case "$ntp_have_linuxcaps" in
26662 yes)
26664 $as_echo "#define HAVE_LINUX_CAPABILITIES /**/" >>confdefs.h
26666 LIBS="$LIBS -lcap"
26667 esac
26669 case "$ntp_use_dev_clockctl$ntp_have_linuxcaps" in
26670 *yes*)
26672 $as_echo "#define HAVE_DROPROOT /**/" >>confdefs.h
26674 esac
26677 for ac_header in libscf.h
26678 do :
26679 ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default"
26680 if test "x$ac_cv_header_libscf_h" = x""yes; then :
26681 cat >>confdefs.h <<_ACEOF
26682 #define HAVE_LIBSCF_H 1
26683 _ACEOF
26687 done
26690 case "$ac_cv_header_libscf_h" in
26691 yes)
26692 LSCF=-lscf
26694 esac
26696 ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
26697 if test "x$ac_cv_func_setppriv" = x""yes; then :
26699 $as_echo "#define HAVE_SOLARIS_PRIVS /**/" >>confdefs.h
26707 # ISC stuff
26710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
26711 $as_echo_n "checking struct sockaddr for sa_len... " >&6; }
26712 if test "${isc_cv_platform_havesalen+set}" = set; then :
26713 $as_echo_n "(cached) " >&6
26714 else
26716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26717 /* end confdefs.h. */
26719 #include <sys/types.h>
26720 #include <sys/socket.h>
26723 main ()
26726 extern struct sockaddr *ps;
26727 return ps->sa_len;
26730 return 0;
26732 _ACEOF
26733 if ac_fn_c_try_compile "$LINENO"; then :
26734 isc_cv_platform_havesalen=yes
26735 else
26736 isc_cv_platform_havesalen=no
26739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
26744 $as_echo "$isc_cv_platform_havesalen" >&6; }
26745 if test $isc_cv_platform_havesalen = yes; then
26747 $as_echo "#define ISC_PLATFORM_HAVESALEN /**/" >>confdefs.h
26751 # Check whether --enable-ipv6 was given.
26752 if test "${enable_ipv6+set}" = set; then :
26753 enableval=$enable_ipv6;
26757 case "$enable_ipv6" in
26758 yes|''|autodetect)
26759 case "$host" in
26760 powerpc-ibm-aix4*) ;;
26763 $as_echo "#define WANT_IPV6 /**/" >>confdefs.h
26766 esac
26770 esac
26773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
26774 $as_echo_n "checking for IPv6 structures... " >&6; }
26775 if test "${ac_cv_isc_found_ipv6+set}" = set; then :
26776 $as_echo_n "(cached) " >&6
26777 else
26779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26780 /* end confdefs.h. */
26783 #include <sys/types.h>
26784 #include <sys/socket.h>
26785 #include <netinet/in.h>
26788 main ()
26791 struct sockaddr_in6 sin6;
26795 return 0;
26798 _ACEOF
26799 if ac_fn_c_try_compile "$LINENO"; then :
26800 ac_cv_isc_found_ipv6=yes
26801 else
26802 ac_cv_isc_found_ipv6=no
26805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_isc_found_ipv6" >&5
26810 $as_echo "$ac_cv_isc_found_ipv6" >&6; }
26813 # See whether IPv6 support is provided via a Kame add-on.
26814 # This is done before other IPv6 linking tests so LIBS is properly set.
26816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
26817 $as_echo_n "checking for Kame IPv6 support... " >&6; }
26819 # Check whether --with-kame was given.
26820 if test "${with_kame+set}" = set; then :
26821 withval=$with_kame; use_kame="$withval"
26822 else
26823 use_kame="no"
26828 case "$use_kame" in
26831 yes)
26832 kame_path=/usr/local/v6
26835 kame_path="$use_kame"
26837 esac
26839 case "$use_kame" in
26841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26842 $as_echo "no" >&6; }
26845 if test -f $kame_path/lib/libinet6.a; then
26846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
26847 $as_echo "$kame_path/lib/libinet6.a" >&6; }
26848 LIBS="-L$kame_path/lib -linet6 $LIBS"
26849 else
26850 as_fn_error "$kame_path/lib/libinet6.a not found.
26852 Please choose the proper path with the following command:
26854 configure --with-kame=PATH
26855 " "$LINENO" 5
26858 esac
26861 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
26862 # Including it on Kame-using platforms is very bad, though, because
26863 # Kame uses #error against direct inclusion. So include it on only
26864 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
26865 # This is done before the in6_pktinfo check because that's what
26866 # netinet6/in6.h is needed for.
26868 case "$host" in
26869 *-bsdi4.[01]*)
26871 $as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
26873 isc_netinet6in6_hack="#include <netinet6/in6.h>"
26876 isc_netinet6in6_hack=""
26877 esac
26880 # This is similar to the netinet6/in6.h issue.
26882 case "$host" in
26883 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
26885 $as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
26887 isc_netinetin6_hack="#include <netinet/in6.h>"
26890 isc_netinetin6_hack=""
26891 esac
26894 case "$ac_cv_isc_found_ipv6" in
26895 yes)
26897 $as_echo "#define ISC_PLATFORM_HAVEIPV6 /**/" >>confdefs.h
26900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
26901 $as_echo_n "checking for in6_pktinfo... " >&6; }
26902 if test "${ac_cv_have_in6_pktinfo+set}" = set; then :
26903 $as_echo_n "(cached) " >&6
26904 else
26906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26907 /* end confdefs.h. */
26910 #include <sys/types.h>
26911 #include <sys/socket.h>
26912 #include <netinet/in.h>
26913 $isc_netinetin6_hack
26914 $isc_netinet6in6_hack
26917 main ()
26920 struct in6_pktinfo xyzzy;
26924 return 0;
26927 _ACEOF
26928 if ac_fn_c_try_compile "$LINENO"; then :
26929 ac_cv_have_in6_pktinfo=yes
26930 else
26931 ac_cv_have_in6_pktinfo=no
26934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_in6_pktinfo" >&5
26939 $as_echo "$ac_cv_have_in6_pktinfo" >&6; }
26941 case "$ac_cv_have_in6_pktinfo" in
26942 yes)
26944 $as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO /**/" >>confdefs.h
26946 esac
26949 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
26950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
26951 $as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
26952 if test "${ac_cv_have_sin6_scope_id+set}" = set; then :
26953 $as_echo_n "(cached) " >&6
26954 else
26956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26957 /* end confdefs.h. */
26960 #include <sys/types.h>
26961 #include <sys/socket.h>
26962 #include <netinet/in.h>
26963 $isc_netinetin6_hack
26964 $isc_netinet6in6_hack
26967 main ()
26970 struct sockaddr_in6 xyzzy;
26971 xyzzy.sin6_scope_id = 0;
26975 return 0;
26978 _ACEOF
26979 if ac_fn_c_try_compile "$LINENO"; then :
26980 ac_cv_have_sin6_scope_id=yes
26981 else
26982 ac_cv_have_sin6_scope_id=no
26985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sin6_scope_id" >&5
26990 $as_echo "$ac_cv_have_sin6_scope_id" >&6; }
26992 case "$ac_cv_have_sin6_scope_id" in
26993 yes)
26995 $as_echo "#define ISC_PLATFORM_HAVESCOPEID /**/" >>confdefs.h
26997 esac
26998 esac
27001 # We need this check run even without ac_cv_isc_found_ipv6=yes
27003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
27004 $as_echo_n "checking for in6addr_any... " >&6; }
27005 if test "${isc_cv_have_in6addr_any+set}" = set; then :
27006 $as_echo_n "(cached) " >&6
27007 else
27009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27010 /* end confdefs.h. */
27013 #include <sys/types.h>
27014 #include <sys/socket.h>
27015 #include <netinet/in.h>
27016 $isc_netinetin6_hack
27017 $isc_netinet6in6_hack
27020 main ()
27023 struct in6_addr in6;
27024 in6 = in6addr_any;
27028 return 0;
27031 _ACEOF
27032 if ac_fn_c_try_link "$LINENO"; then :
27033 isc_cv_have_in6addr_any=yes
27034 else
27035 isc_cv_have_in6addr_any=no
27038 rm -f core conftest.err conftest.$ac_objext \
27039 conftest$ac_exeext conftest.$ac_ext
27043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6addr_any" >&5
27044 $as_echo "$isc_cv_have_in6addr_any" >&6; }
27046 case "$isc_cv_have_in6addr_any" in
27049 $as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY /**/" >>confdefs.h
27051 esac
27054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
27055 $as_echo_n "checking for struct if_laddrconf... " >&6; }
27056 if test "${ac_cv_isc_struct_if_laddrconf+set}" = set; then :
27057 $as_echo_n "(cached) " >&6
27058 else
27060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27061 /* end confdefs.h. */
27064 #include <sys/types.h>
27065 #include <net/if6.h>
27068 main ()
27071 struct if_laddrconf a;
27075 return 0;
27078 _ACEOF
27079 if ac_fn_c_try_compile "$LINENO"; then :
27080 ac_cv_isc_struct_if_laddrconf=yes
27081 else
27082 ac_cv_isc_struct_if_laddrconf=no
27085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_isc_struct_if_laddrconf" >&5
27090 $as_echo "$ac_cv_isc_struct_if_laddrconf" >&6; }
27092 case "$ac_cv_isc_struct_if_laddrconf" in
27093 yes)
27095 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF /**/" >>confdefs.h
27097 esac
27099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
27100 $as_echo_n "checking for struct if_laddrreq... " >&6; }
27101 if test "${ac_cv_isc_struct_if_laddrreq+set}" = set; then :
27102 $as_echo_n "(cached) " >&6
27103 else
27105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27106 /* end confdefs.h. */
27109 #include <sys/types.h>
27110 #include <net/if6.h>
27113 main ()
27116 struct if_laddrreq a;
27120 return 0;
27123 _ACEOF
27124 if ac_fn_c_try_compile "$LINENO"; then :
27125 ac_cv_isc_struct_if_laddrreq=yes
27126 else
27127 ac_cv_isc_struct_if_laddrreq=no
27130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_isc_struct_if_laddrreq" >&5
27135 $as_echo "$ac_cv_isc_struct_if_laddrreq" >&6; }
27137 case "$ac_cv_isc_struct_if_laddrreq" in
27138 yes)
27140 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ /**/" >>confdefs.h
27142 esac
27145 # Look for a sysctl call to get the list of network interfaces.
27147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5
27148 $as_echo_n "checking for interface list sysctl... " >&6; }
27149 if test "${ac_cv_iflist_sysctl+set}" = set; then :
27150 $as_echo_n "(cached) " >&6
27151 else
27152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27153 /* end confdefs.h. */
27155 #include <sys/param.h>
27156 #include <sys/sysctl.h>
27157 #include <sys/socket.h>
27158 #ifdef NET_RT_IFLIST
27159 found_rt_iflist
27160 #endif
27162 _ACEOF
27163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27164 $EGREP "found_rt_iflist" >/dev/null 2>&1; then :
27165 ac_cv_iflist_sysctl=yes
27166 else
27167 ac_cv_iflist_sysctl=no
27170 rm -f conftest*
27174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_iflist_sysctl" >&5
27175 $as_echo "$ac_cv_iflist_sysctl" >&6; }
27177 case "$ac_cv_iflist_sysctl" in
27178 yes)
27180 $as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h
27182 esac
27186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the saveconfig mechanism" >&5
27187 $as_echo_n "checking if we want the saveconfig mechanism... " >&6; }
27188 # Check whether --enable-saveconfig was given.
27189 if test "${enable_saveconfig+set}" = set; then :
27190 enableval=$enable_saveconfig; ntp_ok=$enableval
27191 else
27192 ntp_ok=yes
27195 ntp_saveconfig_enabled=0
27196 if test "$ntp_ok" = "yes"; then
27197 ntp_saveconfig_enabled=1
27199 $as_echo "#define SAVECONFIG 1" >>confdefs.h
27202 if test x$ntp_saveconfig_enabled = x1; then
27203 SAVECONFIG_ENABLED_TRUE=
27204 SAVECONFIG_ENABLED_FALSE='#'
27205 else
27206 SAVECONFIG_ENABLED_TRUE='#'
27207 SAVECONFIG_ENABLED_FALSE=
27210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
27211 $as_echo "$ntp_ok" >&6; }
27216 ac_expanded=`(
27217 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
27218 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
27219 eval echo \""$sysconfdir"\"
27222 cat >>confdefs.h <<_ACEOF
27223 #define NTP_KEYSDIR "$ac_expanded"
27224 _ACEOF
27228 ac_config_files="$ac_config_files Makefile"
27230 ac_config_files="$ac_config_files ElectricFence/Makefile"
27232 ac_config_files="$ac_config_files adjtimed/Makefile"
27234 ac_config_files="$ac_config_files clockstuff/Makefile"
27236 ac_config_files="$ac_config_files include/Makefile"
27238 ac_config_files="$ac_config_files include/isc/Makefile"
27240 ac_config_files="$ac_config_files kernel/Makefile"
27242 ac_config_files="$ac_config_files kernel/sys/Makefile"
27244 ac_config_files="$ac_config_files libntp/Makefile"
27246 ac_config_files="$ac_config_files libparse/Makefile"
27248 ac_config_files="$ac_config_files ntpd/Makefile"
27250 ac_config_files="$ac_config_files ntpdate/Makefile"
27252 ac_config_files="$ac_config_files ntpdc/Makefile"
27254 ac_config_files="$ac_config_files ntpdc/nl.pl"
27256 ac_config_files="$ac_config_files ntpq/Makefile"
27258 ac_config_files="$ac_config_files ntpsnmpd/Makefile"
27260 ac_config_files="$ac_config_files parseutil/Makefile"
27262 ac_config_files="$ac_config_files scripts/Makefile"
27264 ac_config_files="$ac_config_files scripts/calc_tickadj"
27266 ac_config_files="$ac_config_files scripts/checktime"
27268 ac_config_files="$ac_config_files scripts/freq_adj"
27270 ac_config_files="$ac_config_files scripts/html2man"
27272 ac_config_files="$ac_config_files scripts/mkver"
27274 ac_config_files="$ac_config_files scripts/ntp-wait"
27276 ac_config_files="$ac_config_files scripts/ntpsweep"
27278 ac_config_files="$ac_config_files scripts/ntptrace"
27280 ac_config_files="$ac_config_files scripts/ntpver"
27282 ac_config_files="$ac_config_files scripts/plot_summary"
27284 ac_config_files="$ac_config_files scripts/summary"
27286 ac_config_files="$ac_config_files util/Makefile"
27289 subdirs="$subdirs sntp"
27292 cat >confcache <<\_ACEOF
27293 # This file is a shell script that caches the results of configure
27294 # tests run on this system so they can be shared between configure
27295 # scripts and configure runs, see configure's option --config-cache.
27296 # It is not useful on other systems. If it contains results you don't
27297 # want to keep, you may remove or edit it.
27299 # config.status only pays attention to the cache file if you give it
27300 # the --recheck option to rerun configure.
27302 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27303 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27304 # following values.
27306 _ACEOF
27308 # The following way of writing the cache mishandles newlines in values,
27309 # but we know of no workaround that is simple, portable, and efficient.
27310 # So, we kill variables containing newlines.
27311 # Ultrix sh set writes to stderr and can't be redirected directly,
27312 # and sets the high bit in the cache file unless we assign to the vars.
27314 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27315 eval ac_val=\$$ac_var
27316 case $ac_val in #(
27317 *${as_nl}*)
27318 case $ac_var in #(
27319 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27320 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27321 esac
27322 case $ac_var in #(
27323 _ | IFS | as_nl) ;; #(
27324 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27325 *) { eval $ac_var=; unset $ac_var;} ;;
27326 esac ;;
27327 esac
27328 done
27330 (set) 2>&1 |
27331 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27332 *${as_nl}ac_space=\ *)
27333 # `set' does not quote correctly, so add quotes: double-quote
27334 # substitution turns \\\\ into \\, and sed turns \\ into \.
27335 sed -n \
27336 "s/'/'\\\\''/g;
27337 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27338 ;; #(
27340 # `set' quotes correctly as required by POSIX, so do not add quotes.
27341 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27343 esac |
27344 sort
27346 sed '
27347 /^ac_cv_env_/b end
27348 t clear
27349 :clear
27350 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27351 t end
27352 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27353 :end' >>confcache
27354 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27355 if test -w "$cache_file"; then
27356 test "x$cache_file" != "x/dev/null" &&
27357 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27358 $as_echo "$as_me: updating cache $cache_file" >&6;}
27359 cat confcache >$cache_file
27360 else
27361 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27362 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27365 rm -f confcache
27367 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27368 # Let make expand exec_prefix.
27369 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27371 DEFS=-DHAVE_CONFIG_H
27373 ac_libobjs=
27374 ac_ltlibobjs=
27375 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27376 # 1. Remove the extension, and $U if already installed.
27377 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27378 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27379 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27380 # will be set to the directory where LIBOBJS objects are built.
27381 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27382 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27383 done
27384 LIBOBJS=$ac_libobjs
27386 LTLIBOBJS=$ac_ltlibobjs
27389 if test -n "$EXEEXT"; then
27390 am__EXEEXT_TRUE=
27391 am__EXEEXT_FALSE='#'
27392 else
27393 am__EXEEXT_TRUE='#'
27394 am__EXEEXT_FALSE=
27397 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27398 as_fn_error "conditional \"AMDEP\" was never defined.
27399 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27401 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27402 as_fn_error "conditional \"am__fastdepCC\" was never defined.
27403 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27405 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27406 as_fn_error "conditional \"am__fastdepCC\" was never defined.
27407 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27409 if test -z "${VPATH_HACK_TRUE}" && test -z "${VPATH_HACK_FALSE}"; then
27410 as_fn_error "conditional \"VPATH_HACK\" was never defined.
27411 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27413 if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
27414 as_fn_error "conditional \"INSTALL_LIBOPTS\" was never defined.
27415 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27417 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
27418 as_fn_error "conditional \"NEED_LIBOPTS\" was never defined.
27419 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27421 if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then
27422 as_fn_error "conditional \"NTP_CROSSCOMPILE\" was never defined.
27423 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27426 if test -z "${SAVECONFIG_ENABLED_TRUE}" && test -z "${SAVECONFIG_ENABLED_FALSE}"; then
27427 as_fn_error "conditional \"SAVECONFIG_ENABLED\" was never defined.
27428 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27431 : ${CONFIG_STATUS=./config.status}
27432 ac_write_fail=0
27433 ac_clean_files_save=$ac_clean_files
27434 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27435 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27436 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27437 as_write_fail=0
27438 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27439 #! $SHELL
27440 # Generated by $as_me.
27441 # Run this file to recreate the current configuration.
27442 # Compiler output produced by configure, useful for debugging
27443 # configure, is in config.log if it exists.
27445 debug=false
27446 ac_cs_recheck=false
27447 ac_cs_silent=false
27449 SHELL=\${CONFIG_SHELL-$SHELL}
27450 export SHELL
27451 _ASEOF
27452 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27453 ## -------------------- ##
27454 ## M4sh Initialization. ##
27455 ## -------------------- ##
27457 # Be more Bourne compatible
27458 DUALCASE=1; export DUALCASE # for MKS sh
27459 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27460 emulate sh
27461 NULLCMD=:
27462 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27463 # is contrary to our usage. Disable this feature.
27464 alias -g '${1+"$@"}'='"$@"'
27465 setopt NO_GLOB_SUBST
27466 else
27467 case `(set -o) 2>/dev/null` in #(
27468 *posix*) :
27469 set -o posix ;; #(
27470 *) :
27472 esac
27476 as_nl='
27478 export as_nl
27479 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27480 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27481 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27482 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27483 # Prefer a ksh shell builtin over an external printf program on Solaris,
27484 # but without wasting forks for bash or zsh.
27485 if test -z "$BASH_VERSION$ZSH_VERSION" \
27486 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27487 as_echo='print -r --'
27488 as_echo_n='print -rn --'
27489 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27490 as_echo='printf %s\n'
27491 as_echo_n='printf %s'
27492 else
27493 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27494 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27495 as_echo_n='/usr/ucb/echo -n'
27496 else
27497 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27498 as_echo_n_body='eval
27499 arg=$1;
27500 case $arg in #(
27501 *"$as_nl"*)
27502 expr "X$arg" : "X\\(.*\\)$as_nl";
27503 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27504 esac;
27505 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27507 export as_echo_n_body
27508 as_echo_n='sh -c $as_echo_n_body as_echo'
27510 export as_echo_body
27511 as_echo='sh -c $as_echo_body as_echo'
27514 # The user is always right.
27515 if test "${PATH_SEPARATOR+set}" != set; then
27516 PATH_SEPARATOR=:
27517 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27518 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27519 PATH_SEPARATOR=';'
27524 # IFS
27525 # We need space, tab and new line, in precisely that order. Quoting is
27526 # there to prevent editors from complaining about space-tab.
27527 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27528 # splitting by setting IFS to empty value.)
27529 IFS=" "" $as_nl"
27531 # Find who we are. Look in the path if we contain no directory separator.
27532 case $0 in #((
27533 *[\\/]* ) as_myself=$0 ;;
27534 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27535 for as_dir in $PATH
27537 IFS=$as_save_IFS
27538 test -z "$as_dir" && as_dir=.
27539 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27540 done
27541 IFS=$as_save_IFS
27544 esac
27545 # We did not find ourselves, most probably we were run as `sh COMMAND'
27546 # in which case we are not to be found in the path.
27547 if test "x$as_myself" = x; then
27548 as_myself=$0
27550 if test ! -f "$as_myself"; then
27551 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27552 exit 1
27555 # Unset variables that we do not need and which cause bugs (e.g. in
27556 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27557 # suppresses any "Segmentation fault" message there. '((' could
27558 # trigger a bug in pdksh 5.2.14.
27559 for as_var in BASH_ENV ENV MAIL MAILPATH
27560 do eval test x\${$as_var+set} = xset \
27561 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27562 done
27563 PS1='$ '
27564 PS2='> '
27565 PS4='+ '
27567 # NLS nuisances.
27568 LC_ALL=C
27569 export LC_ALL
27570 LANGUAGE=C
27571 export LANGUAGE
27573 # CDPATH.
27574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27577 # as_fn_error ERROR [LINENO LOG_FD]
27578 # ---------------------------------
27579 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27580 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27581 # script with status $?, using 1 if that was 0.
27582 as_fn_error ()
27584 as_status=$?; test $as_status -eq 0 && as_status=1
27585 if test "$3"; then
27586 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27587 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27589 $as_echo "$as_me: error: $1" >&2
27590 as_fn_exit $as_status
27591 } # as_fn_error
27594 # as_fn_set_status STATUS
27595 # -----------------------
27596 # Set $? to STATUS, without forking.
27597 as_fn_set_status ()
27599 return $1
27600 } # as_fn_set_status
27602 # as_fn_exit STATUS
27603 # -----------------
27604 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27605 as_fn_exit ()
27607 set +e
27608 as_fn_set_status $1
27609 exit $1
27610 } # as_fn_exit
27612 # as_fn_unset VAR
27613 # ---------------
27614 # Portably unset VAR.
27615 as_fn_unset ()
27617 { eval $1=; unset $1;}
27619 as_unset=as_fn_unset
27620 # as_fn_append VAR VALUE
27621 # ----------------------
27622 # Append the text in VALUE to the end of the definition contained in VAR. Take
27623 # advantage of any shell optimizations that allow amortized linear growth over
27624 # repeated appends, instead of the typical quadratic growth present in naive
27625 # implementations.
27626 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27627 eval 'as_fn_append ()
27629 eval $1+=\$2
27631 else
27632 as_fn_append ()
27634 eval $1=\$$1\$2
27636 fi # as_fn_append
27638 # as_fn_arith ARG...
27639 # ------------------
27640 # Perform arithmetic evaluation on the ARGs, and store the result in the
27641 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27642 # must be portable across $(()) and expr.
27643 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27644 eval 'as_fn_arith ()
27646 as_val=$(( $* ))
27648 else
27649 as_fn_arith ()
27651 as_val=`expr "$@" || test $? -eq 1`
27653 fi # as_fn_arith
27656 if expr a : '\(a\)' >/dev/null 2>&1 &&
27657 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27658 as_expr=expr
27659 else
27660 as_expr=false
27663 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27664 as_basename=basename
27665 else
27666 as_basename=false
27669 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27670 as_dirname=dirname
27671 else
27672 as_dirname=false
27675 as_me=`$as_basename -- "$0" ||
27676 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27677 X"$0" : 'X\(//\)$' \| \
27678 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27679 $as_echo X/"$0" |
27680 sed '/^.*\/\([^/][^/]*\)\/*$/{
27681 s//\1/
27684 /^X\/\(\/\/\)$/{
27685 s//\1/
27688 /^X\/\(\/\).*/{
27689 s//\1/
27692 s/.*/./; q'`
27694 # Avoid depending upon Character Ranges.
27695 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27696 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27697 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27698 as_cr_digits='0123456789'
27699 as_cr_alnum=$as_cr_Letters$as_cr_digits
27701 ECHO_C= ECHO_N= ECHO_T=
27702 case `echo -n x` in #(((((
27703 -n*)
27704 case `echo 'xy\c'` in
27705 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27706 xy) ECHO_C='\c';;
27707 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27708 ECHO_T=' ';;
27709 esac;;
27711 ECHO_N='-n';;
27712 esac
27714 rm -f conf$$ conf$$.exe conf$$.file
27715 if test -d conf$$.dir; then
27716 rm -f conf$$.dir/conf$$.file
27717 else
27718 rm -f conf$$.dir
27719 mkdir conf$$.dir 2>/dev/null
27721 if (echo >conf$$.file) 2>/dev/null; then
27722 if ln -s conf$$.file conf$$ 2>/dev/null; then
27723 as_ln_s='ln -s'
27724 # ... but there are two gotchas:
27725 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27726 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27727 # In both cases, we have to default to `cp -p'.
27728 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27729 as_ln_s='cp -p'
27730 elif ln conf$$.file conf$$ 2>/dev/null; then
27731 as_ln_s=ln
27732 else
27733 as_ln_s='cp -p'
27735 else
27736 as_ln_s='cp -p'
27738 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27739 rmdir conf$$.dir 2>/dev/null
27742 # as_fn_mkdir_p
27743 # -------------
27744 # Create "$as_dir" as a directory, including parents if necessary.
27745 as_fn_mkdir_p ()
27748 case $as_dir in #(
27749 -*) as_dir=./$as_dir;;
27750 esac
27751 test -d "$as_dir" || eval $as_mkdir_p || {
27752 as_dirs=
27753 while :; do
27754 case $as_dir in #(
27755 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27756 *) as_qdir=$as_dir;;
27757 esac
27758 as_dirs="'$as_qdir' $as_dirs"
27759 as_dir=`$as_dirname -- "$as_dir" ||
27760 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27761 X"$as_dir" : 'X\(//\)[^/]' \| \
27762 X"$as_dir" : 'X\(//\)$' \| \
27763 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27764 $as_echo X"$as_dir" |
27765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27766 s//\1/
27769 /^X\(\/\/\)[^/].*/{
27770 s//\1/
27773 /^X\(\/\/\)$/{
27774 s//\1/
27777 /^X\(\/\).*/{
27778 s//\1/
27781 s/.*/./; q'`
27782 test -d "$as_dir" && break
27783 done
27784 test -z "$as_dirs" || eval "mkdir $as_dirs"
27785 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27788 } # as_fn_mkdir_p
27789 if mkdir -p . 2>/dev/null; then
27790 as_mkdir_p='mkdir -p "$as_dir"'
27791 else
27792 test -d ./-p && rmdir ./-p
27793 as_mkdir_p=false
27796 if test -x / >/dev/null 2>&1; then
27797 as_test_x='test -x'
27798 else
27799 if ls -dL / >/dev/null 2>&1; then
27800 as_ls_L_option=L
27801 else
27802 as_ls_L_option=
27804 as_test_x='
27805 eval sh -c '\''
27806 if test -d "$1"; then
27807 test -d "$1/.";
27808 else
27809 case $1 in #(
27810 -*)set "./$1";;
27811 esac;
27812 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27813 ???[sx]*):;;*)false;;esac;fi
27814 '\'' sh
27817 as_executable_p=$as_test_x
27819 # Sed expression to map a string onto a valid CPP name.
27820 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27822 # Sed expression to map a string onto a valid variable name.
27823 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27826 exec 6>&1
27827 ## ----------------------------------- ##
27828 ## Main body of $CONFIG_STATUS script. ##
27829 ## ----------------------------------- ##
27830 _ASEOF
27831 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27834 # Save the log message, to keep $0 and so on meaningful, and to
27835 # report actual input values of CONFIG_FILES etc. instead of their
27836 # values after options handling.
27837 ac_log="
27838 This file was extended by ntp $as_me 4.2.6, which was
27839 generated by GNU Autoconf 2.65. Invocation command line was
27841 CONFIG_FILES = $CONFIG_FILES
27842 CONFIG_HEADERS = $CONFIG_HEADERS
27843 CONFIG_LINKS = $CONFIG_LINKS
27844 CONFIG_COMMANDS = $CONFIG_COMMANDS
27845 $ $0 $@
27847 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27850 _ACEOF
27852 case $ac_config_files in *"
27853 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27854 esac
27856 case $ac_config_headers in *"
27857 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27858 esac
27861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27862 # Files that config.status was made for.
27863 config_files="$ac_config_files"
27864 config_headers="$ac_config_headers"
27865 config_commands="$ac_config_commands"
27867 _ACEOF
27869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27870 ac_cs_usage="\
27871 \`$as_me' instantiates files and other configuration actions
27872 from templates according to the current configuration. Unless the files
27873 and actions are specified as TAGs, all are instantiated by default.
27875 Usage: $0 [OPTION]... [TAG]...
27877 -h, --help print this help, then exit
27878 -V, --version print version number and configuration settings, then exit
27879 --config print configuration, then exit
27880 -q, --quiet, --silent
27881 do not print progress messages
27882 -d, --debug don't remove temporary files
27883 --recheck update $as_me by reconfiguring in the same conditions
27884 --file=FILE[:TEMPLATE]
27885 instantiate the configuration file FILE
27886 --header=FILE[:TEMPLATE]
27887 instantiate the configuration header FILE
27889 Configuration files:
27890 $config_files
27892 Configuration headers:
27893 $config_headers
27895 Configuration commands:
27896 $config_commands
27898 Report bugs to the package provider."
27900 _ACEOF
27901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27902 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27903 ac_cs_version="\\
27904 ntp config.status 4.2.6
27905 configured by $0, generated by GNU Autoconf 2.65,
27906 with options \\"\$ac_cs_config\\"
27908 Copyright (C) 2009 Free Software Foundation, Inc.
27909 This config.status script is free software; the Free Software Foundation
27910 gives unlimited permission to copy, distribute and modify it."
27912 ac_pwd='$ac_pwd'
27913 srcdir='$srcdir'
27914 INSTALL='$INSTALL'
27915 MKDIR_P='$MKDIR_P'
27916 AWK='$AWK'
27917 test -n "\$AWK" || AWK=awk
27918 _ACEOF
27920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27921 # The default lists apply if the user does not specify any file.
27922 ac_need_defaults=:
27923 while test $# != 0
27925 case $1 in
27926 --*=*)
27927 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27928 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27929 ac_shift=:
27932 ac_option=$1
27933 ac_optarg=$2
27934 ac_shift=shift
27936 esac
27938 case $ac_option in
27939 # Handling of the options.
27940 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27941 ac_cs_recheck=: ;;
27942 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27943 $as_echo "$ac_cs_version"; exit ;;
27944 --config | --confi | --conf | --con | --co | --c )
27945 $as_echo "$ac_cs_config"; exit ;;
27946 --debug | --debu | --deb | --de | --d | -d )
27947 debug=: ;;
27948 --file | --fil | --fi | --f )
27949 $ac_shift
27950 case $ac_optarg in
27951 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27952 esac
27953 as_fn_append CONFIG_FILES " '$ac_optarg'"
27954 ac_need_defaults=false;;
27955 --header | --heade | --head | --hea )
27956 $ac_shift
27957 case $ac_optarg in
27958 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27959 esac
27960 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27961 ac_need_defaults=false;;
27962 --he | --h)
27963 # Conflict between --help and --header
27964 as_fn_error "ambiguous option: \`$1'
27965 Try \`$0 --help' for more information.";;
27966 --help | --hel | -h )
27967 $as_echo "$ac_cs_usage"; exit ;;
27968 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27969 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27970 ac_cs_silent=: ;;
27972 # This is an error.
27973 -*) as_fn_error "unrecognized option: \`$1'
27974 Try \`$0 --help' for more information." ;;
27976 *) as_fn_append ac_config_targets " $1"
27977 ac_need_defaults=false ;;
27979 esac
27980 shift
27981 done
27983 ac_configure_extra_args=
27985 if $ac_cs_silent; then
27986 exec 6>/dev/null
27987 ac_configure_extra_args="$ac_configure_extra_args --silent"
27990 _ACEOF
27991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27992 if \$ac_cs_recheck; then
27993 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27994 shift
27995 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27996 CONFIG_SHELL='$SHELL'
27997 export CONFIG_SHELL
27998 exec "\$@"
28001 _ACEOF
28002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28003 exec 5>>config.log
28005 echo
28006 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28007 ## Running $as_me. ##
28008 _ASBOX
28009 $as_echo "$ac_log"
28010 } >&5
28012 _ACEOF
28013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28015 # INIT-COMMANDS
28017 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28019 _ACEOF
28021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28023 # Handling of arguments.
28024 for ac_config_target in $ac_config_targets
28026 case $ac_config_target in
28027 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
28028 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28029 "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
28030 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28031 "ElectricFence/Makefile") CONFIG_FILES="$CONFIG_FILES ElectricFence/Makefile" ;;
28032 "adjtimed/Makefile") CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;;
28033 "clockstuff/Makefile") CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;;
28034 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
28035 "include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;;
28036 "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
28037 "kernel/sys/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;;
28038 "libntp/Makefile") CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;;
28039 "libparse/Makefile") CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;;
28040 "ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;;
28041 "ntpdate/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;;
28042 "ntpdc/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;;
28043 "ntpdc/nl.pl") CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;;
28044 "ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;;
28045 "ntpsnmpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpsnmpd/Makefile" ;;
28046 "parseutil/Makefile") CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;;
28047 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
28048 "scripts/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj" ;;
28049 "scripts/checktime") CONFIG_FILES="$CONFIG_FILES scripts/checktime" ;;
28050 "scripts/freq_adj") CONFIG_FILES="$CONFIG_FILES scripts/freq_adj" ;;
28051 "scripts/html2man") CONFIG_FILES="$CONFIG_FILES scripts/html2man" ;;
28052 "scripts/mkver") CONFIG_FILES="$CONFIG_FILES scripts/mkver" ;;
28053 "scripts/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait" ;;
28054 "scripts/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep" ;;
28055 "scripts/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace" ;;
28056 "scripts/ntpver") CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;;
28057 "scripts/plot_summary") CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;;
28058 "scripts/summary") CONFIG_FILES="$CONFIG_FILES scripts/summary" ;;
28059 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
28061 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28062 esac
28063 done
28066 # If the user did not use the arguments to specify the items to instantiate,
28067 # then the envvar interface is used. Set only those that are not.
28068 # We use the long form for the default assignment because of an extremely
28069 # bizarre bug on SunOS 4.1.3.
28070 if $ac_need_defaults; then
28071 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28072 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28073 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28076 # Have a temporary directory for convenience. Make it in the build tree
28077 # simply because there is no reason against having it here, and in addition,
28078 # creating and moving files from /tmp can sometimes cause problems.
28079 # Hook for its removal unless debugging.
28080 # Note that there is a small window in which the directory will not be cleaned:
28081 # after its creation but before its name has been assigned to `$tmp'.
28082 $debug ||
28084 tmp=
28085 trap 'exit_status=$?
28086 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28088 trap 'as_fn_exit 1' 1 2 13 15
28090 # Create a (secure) tmp directory for tmp files.
28093 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28094 test -n "$tmp" && test -d "$tmp"
28095 } ||
28097 tmp=./conf$$-$RANDOM
28098 (umask 077 && mkdir "$tmp")
28099 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28101 # Set up the scripts for CONFIG_FILES section.
28102 # No need to generate them if there are no CONFIG_FILES.
28103 # This happens for instance with `./config.status config.h'.
28104 if test -n "$CONFIG_FILES"; then
28107 ac_cr=`echo X | tr X '\015'`
28108 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28109 # But we know of no other shell where ac_cr would be empty at this
28110 # point, so we can use a bashism as a fallback.
28111 if test "x$ac_cr" = x; then
28112 eval ac_cr=\$\'\\r\'
28114 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28115 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28116 ac_cs_awk_cr='\r'
28117 else
28118 ac_cs_awk_cr=$ac_cr
28121 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28122 _ACEOF
28126 echo "cat >conf$$subs.awk <<_ACEOF" &&
28127 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28128 echo "_ACEOF"
28129 } >conf$$subs.sh ||
28130 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28131 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28132 ac_delim='%!_!# '
28133 for ac_last_try in false false false false false :; do
28134 . ./conf$$subs.sh ||
28135 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28137 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28138 if test $ac_delim_n = $ac_delim_num; then
28139 break
28140 elif $ac_last_try; then
28141 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28142 else
28143 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28145 done
28146 rm -f conf$$subs.sh
28148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28149 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28150 _ACEOF
28151 sed -n '
28153 s/^/S["/; s/!.*/"]=/
28156 s/^[^!]*!//
28157 :repl
28158 t repl
28159 s/'"$ac_delim"'$//
28160 t delim
28163 s/\(.\{148\}\)..*/\1/
28164 t more1
28165 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28168 b repl
28169 :more1
28170 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28173 s/.\{148\}//
28174 t nl
28175 :delim
28177 s/\(.\{148\}\)..*/\1/
28178 t more2
28179 s/["\\]/\\&/g; s/^/"/; s/$/"/
28182 :more2
28183 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28186 s/.\{148\}//
28187 t delim
28188 ' <conf$$subs.awk | sed '
28189 /^[^""]/{
28191 s/\n//
28193 ' >>$CONFIG_STATUS || ac_write_fail=1
28194 rm -f conf$$subs.awk
28195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28196 _ACAWK
28197 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28198 for (key in S) S_is_set[key] = 1
28199 FS = "\a"
28203 line = $ 0
28204 nfields = split(line, field, "@")
28205 substed = 0
28206 len = length(field[1])
28207 for (i = 2; i < nfields; i++) {
28208 key = field[i]
28209 keylen = length(key)
28210 if (S_is_set[key]) {
28211 value = S[key]
28212 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28213 len += length(value) + length(field[++i])
28214 substed = 1
28215 } else
28216 len += 1 + keylen
28219 print line
28222 _ACAWK
28223 _ACEOF
28224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28225 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28226 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28227 else
28229 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28230 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28231 _ACEOF
28233 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28234 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28235 # trailing colons and then remove the whole line if VPATH becomes empty
28236 # (actually we leave an empty line to preserve line numbers).
28237 if test "x$srcdir" = x.; then
28238 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28239 s/:*\$(srcdir):*/:/
28240 s/:*\${srcdir}:*/:/
28241 s/:*@srcdir@:*/:/
28242 s/^\([^=]*=[ ]*\):*/\1/
28243 s/:*$//
28244 s/^[^=]*=[ ]*$//
28248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28249 fi # test -n "$CONFIG_FILES"
28251 # Set up the scripts for CONFIG_HEADERS section.
28252 # No need to generate them if there are no CONFIG_HEADERS.
28253 # This happens for instance with `./config.status Makefile'.
28254 if test -n "$CONFIG_HEADERS"; then
28255 cat >"$tmp/defines.awk" <<\_ACAWK ||
28256 BEGIN {
28257 _ACEOF
28259 # Transform confdefs.h into an awk script `defines.awk', embedded as
28260 # here-document in config.status, that substitutes the proper values into
28261 # config.h.in to produce config.h.
28263 # Create a delimiter string that does not exist in confdefs.h, to ease
28264 # handling of long lines.
28265 ac_delim='%!_!# '
28266 for ac_last_try in false false :; do
28267 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28268 if test -z "$ac_t"; then
28269 break
28270 elif $ac_last_try; then
28271 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28272 else
28273 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28275 done
28277 # For the awk script, D is an array of macro values keyed by name,
28278 # likewise P contains macro parameters if any. Preserve backslash
28279 # newline sequences.
28281 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28282 sed -n '
28283 s/.\{148\}/&'"$ac_delim"'/g
28284 t rset
28285 :rset
28286 s/^[ ]*#[ ]*define[ ][ ]*/ /
28287 t def
28289 :def
28290 s/\\$//
28291 t bsnl
28292 s/["\\]/\\&/g
28293 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28294 D["\1"]=" \3"/p
28295 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28297 :bsnl
28298 s/["\\]/\\&/g
28299 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28300 D["\1"]=" \3\\\\\\n"\\/p
28301 t cont
28302 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28303 t cont
28305 :cont
28307 s/.\{148\}/&'"$ac_delim"'/g
28308 t clear
28309 :clear
28310 s/\\$//
28311 t bsnlc
28312 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28314 :bsnlc
28315 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28316 b cont
28317 ' <confdefs.h | sed '
28318 s/'"$ac_delim"'/"\\\
28319 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28322 for (key in D) D_is_set[key] = 1
28323 FS = "\a"
28325 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28326 line = \$ 0
28327 split(line, arg, " ")
28328 if (arg[1] == "#") {
28329 defundef = arg[2]
28330 mac1 = arg[3]
28331 } else {
28332 defundef = substr(arg[1], 2)
28333 mac1 = arg[2]
28335 split(mac1, mac2, "(") #)
28336 macro = mac2[1]
28337 prefix = substr(line, 1, index(line, defundef) - 1)
28338 if (D_is_set[macro]) {
28339 # Preserve the white space surrounding the "#".
28340 print prefix "define", macro P[macro] D[macro]
28341 next
28342 } else {
28343 # Replace #undef with comments. This is necessary, for example,
28344 # in the case of _POSIX_SOURCE, which is predefined and required
28345 # on some systems where configure will not decide to define it.
28346 if (defundef == "undef") {
28347 print "/*", prefix defundef, macro, "*/"
28348 next
28352 { print }
28353 _ACAWK
28354 _ACEOF
28355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28356 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28357 fi # test -n "$CONFIG_HEADERS"
28360 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28361 shift
28362 for ac_tag
28364 case $ac_tag in
28365 :[FHLC]) ac_mode=$ac_tag; continue;;
28366 esac
28367 case $ac_mode$ac_tag in
28368 :[FHL]*:*);;
28369 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28370 :[FH]-) ac_tag=-:-;;
28371 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28372 esac
28373 ac_save_IFS=$IFS
28374 IFS=:
28375 set x $ac_tag
28376 IFS=$ac_save_IFS
28377 shift
28378 ac_file=$1
28379 shift
28381 case $ac_mode in
28382 :L) ac_source=$1;;
28383 :[FH])
28384 ac_file_inputs=
28385 for ac_f
28387 case $ac_f in
28388 -) ac_f="$tmp/stdin";;
28389 *) # Look for the file first in the build tree, then in the source tree
28390 # (if the path is not absolute). The absolute path cannot be DOS-style,
28391 # because $ac_f cannot contain `:'.
28392 test -f "$ac_f" ||
28393 case $ac_f in
28394 [\\/$]*) false;;
28395 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28396 esac ||
28397 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28398 esac
28399 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28400 as_fn_append ac_file_inputs " '$ac_f'"
28401 done
28403 # Let's still pretend it is `configure' which instantiates (i.e., don't
28404 # use $as_me), people would be surprised to read:
28405 # /* config.h. Generated by config.status. */
28406 configure_input='Generated from '`
28407 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28408 `' by configure.'
28409 if test x"$ac_file" != x-; then
28410 configure_input="$ac_file. $configure_input"
28411 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28412 $as_echo "$as_me: creating $ac_file" >&6;}
28414 # Neutralize special characters interpreted by sed in replacement strings.
28415 case $configure_input in #(
28416 *\&* | *\|* | *\\* )
28417 ac_sed_conf_input=`$as_echo "$configure_input" |
28418 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28419 *) ac_sed_conf_input=$configure_input;;
28420 esac
28422 case $ac_tag in
28423 *:-:* | *:-) cat >"$tmp/stdin" \
28424 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28425 esac
28427 esac
28429 ac_dir=`$as_dirname -- "$ac_file" ||
28430 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28431 X"$ac_file" : 'X\(//\)[^/]' \| \
28432 X"$ac_file" : 'X\(//\)$' \| \
28433 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28434 $as_echo X"$ac_file" |
28435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28436 s//\1/
28439 /^X\(\/\/\)[^/].*/{
28440 s//\1/
28443 /^X\(\/\/\)$/{
28444 s//\1/
28447 /^X\(\/\).*/{
28448 s//\1/
28451 s/.*/./; q'`
28452 as_dir="$ac_dir"; as_fn_mkdir_p
28453 ac_builddir=.
28455 case "$ac_dir" in
28456 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28458 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28459 # A ".." for each directory in $ac_dir_suffix.
28460 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28461 case $ac_top_builddir_sub in
28462 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28463 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28464 esac ;;
28465 esac
28466 ac_abs_top_builddir=$ac_pwd
28467 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28468 # for backward compatibility:
28469 ac_top_builddir=$ac_top_build_prefix
28471 case $srcdir in
28472 .) # We are building in place.
28473 ac_srcdir=.
28474 ac_top_srcdir=$ac_top_builddir_sub
28475 ac_abs_top_srcdir=$ac_pwd ;;
28476 [\\/]* | ?:[\\/]* ) # Absolute name.
28477 ac_srcdir=$srcdir$ac_dir_suffix;
28478 ac_top_srcdir=$srcdir
28479 ac_abs_top_srcdir=$srcdir ;;
28480 *) # Relative name.
28481 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28482 ac_top_srcdir=$ac_top_build_prefix$srcdir
28483 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28484 esac
28485 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28488 case $ac_mode in
28491 # CONFIG_FILE
28494 case $INSTALL in
28495 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28496 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28497 esac
28498 ac_MKDIR_P=$MKDIR_P
28499 case $MKDIR_P in
28500 [\\/$]* | ?:[\\/]* ) ;;
28501 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28502 esac
28503 _ACEOF
28505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28506 # If the template does not know about datarootdir, expand it.
28507 # FIXME: This hack should be removed a few years after 2.60.
28508 ac_datarootdir_hack=; ac_datarootdir_seen=
28509 ac_sed_dataroot='
28510 /datarootdir/ {
28514 /@datadir@/p
28515 /@docdir@/p
28516 /@infodir@/p
28517 /@localedir@/p
28518 /@mandir@/p'
28519 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28520 *datarootdir*) ac_datarootdir_seen=yes;;
28521 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28523 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28524 _ACEOF
28525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28526 ac_datarootdir_hack='
28527 s&@datadir@&$datadir&g
28528 s&@docdir@&$docdir&g
28529 s&@infodir@&$infodir&g
28530 s&@localedir@&$localedir&g
28531 s&@mandir@&$mandir&g
28532 s&\\\${datarootdir}&$datarootdir&g' ;;
28533 esac
28534 _ACEOF
28536 # Neutralize VPATH when `$srcdir' = `.'.
28537 # Shell code in configure.ac might set extrasub.
28538 # FIXME: do we really want to maintain this feature?
28539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28540 ac_sed_extra="$ac_vpsub
28541 $extrasub
28542 _ACEOF
28543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28545 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28546 s|@configure_input@|$ac_sed_conf_input|;t t
28547 s&@top_builddir@&$ac_top_builddir_sub&;t t
28548 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28549 s&@srcdir@&$ac_srcdir&;t t
28550 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28551 s&@top_srcdir@&$ac_top_srcdir&;t t
28552 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28553 s&@builddir@&$ac_builddir&;t t
28554 s&@abs_builddir@&$ac_abs_builddir&;t t
28555 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28556 s&@INSTALL@&$ac_INSTALL&;t t
28557 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28558 $ac_datarootdir_hack
28560 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
28561 || as_fn_error "could not create $ac_file" "$LINENO" 5
28563 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28564 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28565 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28567 which seems to be undefined. Please make sure it is defined." >&5
28568 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28569 which seems to be undefined. Please make sure it is defined." >&2;}
28571 rm -f "$tmp/stdin"
28572 case $ac_file in
28573 -) cat "$tmp/out" && rm -f "$tmp/out";;
28574 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28575 esac \
28576 || as_fn_error "could not create $ac_file" "$LINENO" 5
28580 # CONFIG_HEADER
28582 if test x"$ac_file" != x-; then
28584 $as_echo "/* $configure_input */" \
28585 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28586 } >"$tmp/config.h" \
28587 || as_fn_error "could not create $ac_file" "$LINENO" 5
28588 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28589 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28590 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28591 else
28592 rm -f "$ac_file"
28593 mv "$tmp/config.h" "$ac_file" \
28594 || as_fn_error "could not create $ac_file" "$LINENO" 5
28596 else
28597 $as_echo "/* $configure_input */" \
28598 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28599 || as_fn_error "could not create -" "$LINENO" 5
28601 # Compute "$ac_file"'s index in $config_headers.
28602 _am_arg="$ac_file"
28603 _am_stamp_count=1
28604 for _am_header in $config_headers :; do
28605 case $_am_header in
28606 $_am_arg | $_am_arg:* )
28607 break ;;
28609 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28610 esac
28611 done
28612 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28613 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28614 X"$_am_arg" : 'X\(//\)[^/]' \| \
28615 X"$_am_arg" : 'X\(//\)$' \| \
28616 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28617 $as_echo X"$_am_arg" |
28618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28619 s//\1/
28622 /^X\(\/\/\)[^/].*/{
28623 s//\1/
28626 /^X\(\/\/\)$/{
28627 s//\1/
28630 /^X\(\/\).*/{
28631 s//\1/
28634 s/.*/./; q'`/stamp-h$_am_stamp_count
28637 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28638 $as_echo "$as_me: executing $ac_file commands" >&6;}
28640 esac
28643 case $ac_file$ac_mode in
28644 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28645 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28646 # are listed without --file. Let's play safe and only enable the eval
28647 # if we detect the quoting.
28648 case $CONFIG_FILES in
28649 *\'*) eval set x "$CONFIG_FILES" ;;
28650 *) set x $CONFIG_FILES ;;
28651 esac
28652 shift
28653 for mf
28655 # Strip MF so we end up with the name of the file.
28656 mf=`echo "$mf" | sed -e 's/:.*$//'`
28657 # Check whether this is an Automake generated Makefile or not.
28658 # We used to match only the files named `Makefile.in', but
28659 # some people rename them; so instead we look at the file content.
28660 # Grep'ing the first line is not enough: some people post-process
28661 # each Makefile.in and add a new line on top of each file to say so.
28662 # Grep'ing the whole file is not good either: AIX grep has a line
28663 # limit of 2048, but all sed's we know have understand at least 4000.
28664 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28665 dirpart=`$as_dirname -- "$mf" ||
28666 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28667 X"$mf" : 'X\(//\)[^/]' \| \
28668 X"$mf" : 'X\(//\)$' \| \
28669 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28670 $as_echo X"$mf" |
28671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28672 s//\1/
28675 /^X\(\/\/\)[^/].*/{
28676 s//\1/
28679 /^X\(\/\/\)$/{
28680 s//\1/
28683 /^X\(\/\).*/{
28684 s//\1/
28687 s/.*/./; q'`
28688 else
28689 continue
28691 # Extract the definition of DEPDIR, am__include, and am__quote
28692 # from the Makefile without running `make'.
28693 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28694 test -z "$DEPDIR" && continue
28695 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28696 test -z "am__include" && continue
28697 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28698 # When using ansi2knr, U may be empty or an underscore; expand it
28699 U=`sed -n 's/^U = //p' < "$mf"`
28700 # Find all dependency output files, they are included files with
28701 # $(DEPDIR) in their names. We invoke sed twice because it is the
28702 # simplest approach to changing $(DEPDIR) to its actual value in the
28703 # expansion.
28704 for file in `sed -n "
28705 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28706 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28707 # Make sure the directory exists.
28708 test -f "$dirpart/$file" && continue
28709 fdir=`$as_dirname -- "$file" ||
28710 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28711 X"$file" : 'X\(//\)[^/]' \| \
28712 X"$file" : 'X\(//\)$' \| \
28713 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28714 $as_echo X"$file" |
28715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28716 s//\1/
28719 /^X\(\/\/\)[^/].*/{
28720 s//\1/
28723 /^X\(\/\/\)$/{
28724 s//\1/
28727 /^X\(\/\).*/{
28728 s//\1/
28731 s/.*/./; q'`
28732 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28733 # echo "creating $dirpart/$file"
28734 echo '# dummy' > "$dirpart/$file"
28735 done
28736 done
28739 "ntpdc/nl.pl":F) chmod +x ntpdc/nl.pl ;;
28740 "scripts/calc_tickadj":F) chmod +x scripts/calc_tickadj ;;
28741 "scripts/checktime":F) chmod +x scripts/checktime ;;
28742 "scripts/freq_adj":F) chmod +x scripts/freq_adj ;;
28743 "scripts/html2man":F) chmod +x scripts/html2man ;;
28744 "scripts/mkver":F) chmod +x scripts/mkver ;;
28745 "scripts/ntp-wait":F) chmod +x scripts/ntp-wait ;;
28746 "scripts/ntpsweep":F) chmod +x scripts/ntpsweep ;;
28747 "scripts/ntptrace":F) chmod +x scripts/ntptrace ;;
28748 "scripts/ntpver":F) chmod +x scripts/ntpver ;;
28749 "scripts/plot_summary":F) chmod +x scripts/plot_summary ;;
28750 "scripts/summary":F) chmod +x scripts/summary ;;
28752 esac
28753 done # for ac_tag
28756 as_fn_exit 0
28757 _ACEOF
28758 ac_clean_files=$ac_clean_files_save
28760 test $ac_write_fail = 0 ||
28761 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28764 # configure is writing to config.log, and then calls config.status.
28765 # config.status does its own redirection, appending to config.log.
28766 # Unfortunately, on DOS this fails, as config.log is still kept open
28767 # by configure, so config.status won't be able to write to it; its
28768 # output is simply discarded. So we exec the FD to /dev/null,
28769 # effectively closing config.log, so it can be properly (re)opened and
28770 # appended to by config.status. When coming back to configure, we
28771 # need to make the FD available again.
28772 if test "$no_create" != yes; then
28773 ac_cs_success=:
28774 ac_config_status_args=
28775 test "$silent" = yes &&
28776 ac_config_status_args="$ac_config_status_args --quiet"
28777 exec 5>/dev/null
28778 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28779 exec 5>>config.log
28780 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28781 # would make configure fail if this is the last instruction.
28782 $ac_cs_success || as_fn_exit $?
28786 # CONFIG_SUBDIRS section.
28788 if test "$no_recursion" != yes; then
28790 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
28791 # so they do not pile up.
28792 ac_sub_configure_args=
28793 ac_prev=
28794 eval "set x $ac_configure_args"
28795 shift
28796 for ac_arg
28798 if test -n "$ac_prev"; then
28799 ac_prev=
28800 continue
28802 case $ac_arg in
28803 -cache-file | --cache-file | --cache-fil | --cache-fi \
28804 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
28805 ac_prev=cache_file ;;
28806 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
28807 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
28808 | --c=*)
28810 --config-cache | -C)
28812 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
28813 ac_prev=srcdir ;;
28814 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
28816 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28817 ac_prev=prefix ;;
28818 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28820 --disable-option-checking)
28823 case $ac_arg in
28824 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28825 esac
28826 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
28827 esac
28828 done
28830 # Always prepend --prefix to ensure using the same prefix
28831 # in subdir configurations.
28832 ac_arg="--prefix=$prefix"
28833 case $ac_arg in
28834 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28835 esac
28836 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
28838 # Pass --silent
28839 if test "$silent" = yes; then
28840 ac_sub_configure_args="--silent $ac_sub_configure_args"
28843 # Always prepend --disable-option-checking to silence warnings, since
28844 # different subdirs can have different --enable and --with options.
28845 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
28847 ac_popdir=`pwd`
28848 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28850 # Do not complain, so a configure script can configure whichever
28851 # parts of a large source tree are present.
28852 test -d "$srcdir/$ac_dir" || continue
28854 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
28855 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
28856 $as_echo "$ac_msg" >&6
28857 as_dir="$ac_dir"; as_fn_mkdir_p
28858 ac_builddir=.
28860 case "$ac_dir" in
28861 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28863 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28864 # A ".." for each directory in $ac_dir_suffix.
28865 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28866 case $ac_top_builddir_sub in
28867 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28868 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28869 esac ;;
28870 esac
28871 ac_abs_top_builddir=$ac_pwd
28872 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28873 # for backward compatibility:
28874 ac_top_builddir=$ac_top_build_prefix
28876 case $srcdir in
28877 .) # We are building in place.
28878 ac_srcdir=.
28879 ac_top_srcdir=$ac_top_builddir_sub
28880 ac_abs_top_srcdir=$ac_pwd ;;
28881 [\\/]* | ?:[\\/]* ) # Absolute name.
28882 ac_srcdir=$srcdir$ac_dir_suffix;
28883 ac_top_srcdir=$srcdir
28884 ac_abs_top_srcdir=$srcdir ;;
28885 *) # Relative name.
28886 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28887 ac_top_srcdir=$ac_top_build_prefix$srcdir
28888 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28889 esac
28890 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28893 cd "$ac_dir"
28895 # Check for guested configure; otherwise get Cygnus style configure.
28896 if test -f "$ac_srcdir/configure.gnu"; then
28897 ac_sub_configure=$ac_srcdir/configure.gnu
28898 elif test -f "$ac_srcdir/configure"; then
28899 ac_sub_configure=$ac_srcdir/configure
28900 elif test -f "$ac_srcdir/configure.in"; then
28901 # This should be Cygnus configure.
28902 ac_sub_configure=$ac_aux_dir/configure
28903 else
28904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
28905 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28906 ac_sub_configure=
28909 # The recursion is here.
28910 if test -n "$ac_sub_configure"; then
28911 # Make the cache file name correct relative to the subdirectory.
28912 case $cache_file in
28913 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28914 *) # Relative name.
28915 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
28916 esac
28918 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
28919 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28920 # The eval makes quoting arguments work.
28921 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28922 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
28923 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
28926 cd "$ac_popdir"
28927 done
28929 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28931 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}