1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
3: # Generated by GNU Autoconf 2.68 for ntp 4.2.6p5.
4: #
5: #
6: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8: # Foundation, Inc.
9: #
10: #
11: # This configure script is free software; the Free Software Foundation
12: # gives unlimited permission to copy, distribute and modify it.
13: ## -------------------- ##
14: ## M4sh Initialization. ##
15: ## -------------------- ##
16:
17: # Be more Bourne compatible
18: DUALCASE=1; export DUALCASE # for MKS sh
19: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20: emulate sh
21: NULLCMD=:
22: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23: # is contrary to our usage. Disable this feature.
24: alias -g '${1+"$@"}'='"$@"'
25: setopt NO_GLOB_SUBST
26: else
27: case `(set -o) 2>/dev/null` in #(
28: *posix*) :
29: set -o posix ;; #(
30: *) :
31: ;;
32: esac
33: fi
34:
35:
36: as_nl='
37: '
38: export as_nl
39: # Printing a long string crashes Solaris 7 /usr/bin/printf.
40: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43: # Prefer a ksh shell builtin over an external printf program on Solaris,
44: # but without wasting forks for bash or zsh.
45: if test -z "$BASH_VERSION$ZSH_VERSION" \
46: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47: as_echo='print -r --'
48: as_echo_n='print -rn --'
49: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50: as_echo='printf %s\n'
51: as_echo_n='printf %s'
52: else
53: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55: as_echo_n='/usr/ucb/echo -n'
56: else
57: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58: as_echo_n_body='eval
59: arg=$1;
60: case $arg in #(
61: *"$as_nl"*)
62: expr "X$arg" : "X\\(.*\\)$as_nl";
63: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64: esac;
65: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66: '
67: export as_echo_n_body
68: as_echo_n='sh -c $as_echo_n_body as_echo'
69: fi
70: export as_echo_body
71: as_echo='sh -c $as_echo_body as_echo'
72: fi
73:
74: # The user is always right.
75: if test "${PATH_SEPARATOR+set}" != set; then
76: PATH_SEPARATOR=:
77: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79: PATH_SEPARATOR=';'
80: }
81: fi
82:
83:
84: # IFS
85: # We need space, tab and new line, in precisely that order. Quoting is
86: # there to prevent editors from complaining about space-tab.
87: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88: # splitting by setting IFS to empty value.)
89: IFS=" "" $as_nl"
90:
91: # Find who we are. Look in the path if we contain no directory separator.
92: as_myself=
93: case $0 in #((
94: *[\\/]* ) as_myself=$0 ;;
95: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96: for as_dir in $PATH
97: do
98: IFS=$as_save_IFS
99: test -z "$as_dir" && as_dir=.
100: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101: done
102: IFS=$as_save_IFS
103:
104: ;;
105: esac
106: # We did not find ourselves, most probably we were run as `sh COMMAND'
107: # in which case we are not to be found in the path.
108: if test "x$as_myself" = x; then
109: as_myself=$0
110: fi
111: if test ! -f "$as_myself"; then
112: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113: exit 1
114: fi
115:
116: # Unset variables that we do not need and which cause bugs (e.g. in
117: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118: # suppresses any "Segmentation fault" message there. '((' could
119: # trigger a bug in pdksh 5.2.14.
120: for as_var in BASH_ENV ENV MAIL MAILPATH
121: do eval test x\${$as_var+set} = xset \
122: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123: done
124: PS1='$ '
125: PS2='> '
126: PS4='+ '
127:
128: # NLS nuisances.
129: LC_ALL=C
130: export LC_ALL
131: LANGUAGE=C
132: export LANGUAGE
133:
134: # CDPATH.
135: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136:
137: if test "x$CONFIG_SHELL" = x; then
138: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139: emulate sh
140: NULLCMD=:
141: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142: # is contrary to our usage. Disable this feature.
143: alias -g '\${1+\"\$@\"}'='\"\$@\"'
144: setopt NO_GLOB_SUBST
145: else
146: case \`(set -o) 2>/dev/null\` in #(
147: *posix*) :
148: set -o posix ;; #(
149: *) :
150: ;;
151: esac
152: fi
153: "
154: as_required="as_fn_return () { (exit \$1); }
155: as_fn_success () { as_fn_return 0; }
156: as_fn_failure () { as_fn_return 1; }
157: as_fn_ret_success () { return 0; }
158: as_fn_ret_failure () { return 1; }
159:
160: exitcode=0
161: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166:
167: else
168: exitcode=1; echo positional parameters were not saved.
169: fi
170: test x\$exitcode = x0 || exit 1"
171: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175: test \$(( 1 + 1 )) = 2 || exit 1
176:
177: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181: PATH=/empty FPATH=/empty; export PATH FPATH
182: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184: if (eval "$as_required") 2>/dev/null; then :
185: as_have_required=yes
186: else
187: as_have_required=no
188: fi
189: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190:
191: else
192: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193: as_found=false
194: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195: do
196: IFS=$as_save_IFS
197: test -z "$as_dir" && as_dir=.
198: as_found=:
199: case $as_dir in #(
200: /*)
201: for as_base in sh bash ksh sh5; do
202: # Try only shells that exist, to save several forks.
203: as_shell=$as_dir/$as_base
204: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206: CONFIG_SHELL=$as_shell as_have_required=yes
207: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208: break 2
209: fi
210: fi
211: done;;
212: esac
213: as_found=false
214: done
215: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217: CONFIG_SHELL=$SHELL as_have_required=yes
218: fi; }
219: IFS=$as_save_IFS
220:
221:
222: if test "x$CONFIG_SHELL" != x; then :
223: # We cannot yet assume a decent shell, so we have to provide a
224: # neutralization value for shells without unset; and this also
225: # works around shells that cannot unset nonexistent variables.
226: # Preserve -v and -x to the replacement shell.
227: BASH_ENV=/dev/null
228: ENV=/dev/null
229: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230: export CONFIG_SHELL
231: case $- in # ((((
232: *v*x* | *x*v* ) as_opts=-vx ;;
233: *v* ) as_opts=-v ;;
234: *x* ) as_opts=-x ;;
235: * ) as_opts= ;;
236: esac
237: exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238: fi
239:
240: if test x$as_have_required = xno; then :
241: $as_echo "$0: This script requires a shell more modern than all"
242: $as_echo "$0: the shells that I found on your system."
243: if test x${ZSH_VERSION+set} = xset ; then
244: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246: else
247: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248: $0: including any error possibly output before this
249: $0: message. Then install a modern shell, or manually run
250: $0: the script under such a shell if you do have one."
251: fi
252: exit 1
253: fi
254: fi
255: fi
256: SHELL=${CONFIG_SHELL-/bin/sh}
257: export SHELL
258: # Unset more variables known to interfere with behavior of common tools.
259: CLICOLOR_FORCE= GREP_OPTIONS=
260: unset CLICOLOR_FORCE GREP_OPTIONS
261:
262: ## --------------------- ##
263: ## M4sh Shell Functions. ##
264: ## --------------------- ##
265: # as_fn_unset VAR
266: # ---------------
267: # Portably unset VAR.
268: as_fn_unset ()
269: {
270: { eval $1=; unset $1;}
271: }
272: as_unset=as_fn_unset
273:
274: # as_fn_set_status STATUS
275: # -----------------------
276: # Set $? to STATUS, without forking.
277: as_fn_set_status ()
278: {
279: return $1
280: } # as_fn_set_status
281:
282: # as_fn_exit STATUS
283: # -----------------
284: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285: as_fn_exit ()
286: {
287: set +e
288: as_fn_set_status $1
289: exit $1
290: } # as_fn_exit
291:
292: # as_fn_mkdir_p
293: # -------------
294: # Create "$as_dir" as a directory, including parents if necessary.
295: as_fn_mkdir_p ()
296: {
297:
298: case $as_dir in #(
299: -*) as_dir=./$as_dir;;
300: esac
301: test -d "$as_dir" || eval $as_mkdir_p || {
302: as_dirs=
303: while :; do
304: case $as_dir in #(
305: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306: *) as_qdir=$as_dir;;
307: esac
308: as_dirs="'$as_qdir' $as_dirs"
309: as_dir=`$as_dirname -- "$as_dir" ||
310: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311: X"$as_dir" : 'X\(//\)[^/]' \| \
312: X"$as_dir" : 'X\(//\)$' \| \
313: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314: $as_echo X"$as_dir" |
315: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316: s//\1/
317: q
318: }
319: /^X\(\/\/\)[^/].*/{
320: s//\1/
321: q
322: }
323: /^X\(\/\/\)$/{
324: s//\1/
325: q
326: }
327: /^X\(\/\).*/{
328: s//\1/
329: q
330: }
331: s/.*/./; q'`
332: test -d "$as_dir" && break
333: done
334: test -z "$as_dirs" || eval "mkdir $as_dirs"
335: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336:
337:
338: } # as_fn_mkdir_p
339: # as_fn_append VAR VALUE
340: # ----------------------
341: # Append the text in VALUE to the end of the definition contained in VAR. Take
342: # advantage of any shell optimizations that allow amortized linear growth over
343: # repeated appends, instead of the typical quadratic growth present in naive
344: # implementations.
345: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346: eval 'as_fn_append ()
347: {
348: eval $1+=\$2
349: }'
350: else
351: as_fn_append ()
352: {
353: eval $1=\$$1\$2
354: }
355: fi # as_fn_append
356:
357: # as_fn_arith ARG...
358: # ------------------
359: # Perform arithmetic evaluation on the ARGs, and store the result in the
360: # global $as_val. Take advantage of shells that can avoid forks. The arguments
361: # must be portable across $(()) and expr.
362: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363: eval 'as_fn_arith ()
364: {
365: as_val=$(( $* ))
366: }'
367: else
368: as_fn_arith ()
369: {
370: as_val=`expr "$@" || test $? -eq 1`
371: }
372: fi # as_fn_arith
373:
374:
375: # as_fn_error STATUS ERROR [LINENO LOG_FD]
376: # ----------------------------------------
377: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379: # script with STATUS, using 1 if that was 0.
380: as_fn_error ()
381: {
382: as_status=$1; test $as_status -eq 0 && as_status=1
383: if test "$4"; then
384: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386: fi
387: $as_echo "$as_me: error: $2" >&2
388: as_fn_exit $as_status
389: } # as_fn_error
390:
391: if expr a : '\(a\)' >/dev/null 2>&1 &&
392: test "X`expr 00001 : '.*\(...\)'`" = X001; then
393: as_expr=expr
394: else
395: as_expr=false
396: fi
397:
398: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399: as_basename=basename
400: else
401: as_basename=false
402: fi
403:
404: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405: as_dirname=dirname
406: else
407: as_dirname=false
408: fi
409:
410: as_me=`$as_basename -- "$0" ||
411: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412: X"$0" : 'X\(//\)$' \| \
413: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414: $as_echo X/"$0" |
415: sed '/^.*\/\([^/][^/]*\)\/*$/{
416: s//\1/
417: q
418: }
419: /^X\/\(\/\/\)$/{
420: s//\1/
421: q
422: }
423: /^X\/\(\/\).*/{
424: s//\1/
425: q
426: }
427: s/.*/./; q'`
428:
429: # Avoid depending upon Character Ranges.
430: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433: as_cr_digits='0123456789'
434: as_cr_alnum=$as_cr_Letters$as_cr_digits
435:
436:
437: as_lineno_1=$LINENO as_lineno_1a=$LINENO
438: as_lineno_2=$LINENO as_lineno_2a=$LINENO
439: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
442: sed -n '
443: p
444: /[$]LINENO/=
445: ' <$as_myself |
446: sed '
447: s/[$]LINENO.*/&-/
448: t lineno
449: b
450: :lineno
451: N
452: :loop
453: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454: t loop
455: s/-\n.*//
456: ' >$as_me.lineno &&
457: chmod +x "$as_me.lineno" ||
458: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459:
460: # Don't try to exec as it changes $[0], causing all sort of problems
461: # (the dirname of $[0] is not the place where we might find the
462: # original and so on. Autoconf is especially sensitive to this).
463: . "./$as_me.lineno"
464: # Exit status is that of the last command.
465: exit
466: }
467:
468: ECHO_C= ECHO_N= ECHO_T=
469: case `echo -n x` in #(((((
470: -n*)
471: case `echo 'xy\c'` in
472: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473: xy) ECHO_C='\c';;
474: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
475: ECHO_T=' ';;
476: esac;;
477: *)
478: ECHO_N='-n';;
479: esac
480:
481: rm -f conf$$ conf$$.exe conf$$.file
482: if test -d conf$$.dir; then
483: rm -f conf$$.dir/conf$$.file
484: else
485: rm -f conf$$.dir
486: mkdir conf$$.dir 2>/dev/null
487: fi
488: if (echo >conf$$.file) 2>/dev/null; then
489: if ln -s conf$$.file conf$$ 2>/dev/null; then
490: as_ln_s='ln -s'
491: # ... but there are two gotchas:
492: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494: # In both cases, we have to default to `cp -p'.
495: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496: as_ln_s='cp -p'
497: elif ln conf$$.file conf$$ 2>/dev/null; then
498: as_ln_s=ln
499: else
500: as_ln_s='cp -p'
501: fi
502: else
503: as_ln_s='cp -p'
504: fi
505: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506: rmdir conf$$.dir 2>/dev/null
507:
508: if mkdir -p . 2>/dev/null; then
509: as_mkdir_p='mkdir -p "$as_dir"'
510: else
511: test -d ./-p && rmdir ./-p
512: as_mkdir_p=false
513: fi
514:
515: if test -x / >/dev/null 2>&1; then
516: as_test_x='test -x'
517: else
518: if ls -dL / >/dev/null 2>&1; then
519: as_ls_L_option=L
520: else
521: as_ls_L_option=
522: fi
523: as_test_x='
524: eval sh -c '\''
525: if test -d "$1"; then
526: test -d "$1/.";
527: else
528: case $1 in #(
529: -*)set "./$1";;
530: esac;
531: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532: ???[sx]*):;;*)false;;esac;fi
533: '\'' sh
534: '
535: fi
536: as_executable_p=$as_test_x
537:
538: # Sed expression to map a string onto a valid CPP name.
539: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540:
541: # Sed expression to map a string onto a valid variable name.
542: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543:
544: SHELL=${CONFIG_SHELL-/bin/sh}
545:
546:
547: test -n "$DJDIR" || exec 7<&0 </dev/null
548: exec 6>&1
549:
550: # Name of the host.
551: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552: # so uname gets run too.
553: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554:
555: #
556: # Initializations.
557: #
558: ac_default_prefix=/usr/local
559: ac_clean_files=
560: ac_config_libobj_dir=.
561: LIBOBJS=
562: cross_compiling=no
563: subdirs=
564: MFLAGS=
565: MAKEFLAGS=
566:
567: # Identity of this package.
568: PACKAGE_NAME='ntp'
569: PACKAGE_TARNAME='ntp'
570: PACKAGE_VERSION='4.2.6p5'
571: PACKAGE_STRING='ntp 4.2.6p5'
572: PACKAGE_BUGREPORT=''
573: PACKAGE_URL=''
574:
575: # Factoring default headers for most tests.
576: ac_includes_default="\
577: #include <stdio.h>
578: #ifdef HAVE_SYS_TYPES_H
579: # include <sys/types.h>
580: #endif
581: #ifdef HAVE_SYS_STAT_H
582: # include <sys/stat.h>
583: #endif
584: #ifdef STDC_HEADERS
585: # include <stdlib.h>
586: # include <stddef.h>
587: #else
588: # ifdef HAVE_STDLIB_H
589: # include <stdlib.h>
590: # endif
591: #endif
592: #ifdef HAVE_STRING_H
593: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
594: # include <memory.h>
595: # endif
596: # include <string.h>
597: #endif
598: #ifdef HAVE_STRINGS_H
599: # include <strings.h>
600: #endif
601: #ifdef HAVE_INTTYPES_H
602: # include <inttypes.h>
603: #endif
604: #ifdef HAVE_STDINT_H
605: # include <stdint.h>
606: #endif
607: #ifdef HAVE_UNISTD_H
608: # include <unistd.h>
609: #endif"
610:
611: enable_option_checking=no
612: ac_subst_vars='am__EXEEXT_FALSE
613: am__EXEEXT_TRUE
614: LTLIBOBJS
615: LIBOBJS
616: subdirs
617: SAVECONFIG_ENABLED_FALSE
618: SAVECONFIG_ENABLED_TRUE
619: LSCF
620: MAKE_NTPSNMPD
621: SNMP_CFLAGS
622: SNMP_CPPFLAGS
623: SNMP_LIBS
624: MAKE_NTPDSIM
625: MAKE_LIBNTPSIM
626: MAKE_TIMETRIM
627: MAKE_TICKADJ
628: MAKE_NTPTIME
629: MAKE_ADJTIMED
630: CLKTEST
631: CHUTEST
632: PROPDELAY
633: MAKE_PARSEKMODULE
634: DCFD
635: TESTDCF
636: MAKE_CHECK_LAYOUT
637: EF_LIBS
638: EF_PROGS
639: LCRYPTO
640: OPENSSL_LIB
641: OPENSSL_INC
642: OPENSSL
643: MAKE_CHECK_Y2K
644: MAKE_LIBPARSE_KERNEL
645: MAKE_LIBPARSE
646: LIBPARSE
647: HAVE_INLINE
648: EDITLINE_LIBS
649: PATH_NET_SNMP_CONFIG
650: PATH_TEST
651: PATH_SH
652: PATH_PERL
653: OTOOL64
654: OTOOL
655: LIPO
656: NMEDIT
657: DSYMUTIL
658: MANIFEST_TOOL
659: RANLIB
660: ac_ct_AR
661: AR
662: DLLTOOL
663: OBJDUMP
664: LN_S
665: NM
666: ac_ct_DUMPBIN
667: DUMPBIN
668: LD
669: FGREP
670: LIBTOOL
671: NTP_BINSUBDIR_IS_BIN_FALSE
672: NTP_BINSUBDIR_IS_BIN_TRUE
673: BINSUBDIR
674: NTP_CROSSCOMPILE_FALSE
675: NTP_CROSSCOMPILE_TRUE
676: LIBOPTS_DIR
677: LIBOPTS_CFLAGS
678: LIBOPTS_LDADD
679: NEED_LIBOPTS_FALSE
680: NEED_LIBOPTS_TRUE
681: INSTALL_LIBOPTS_FALSE
682: INSTALL_LIBOPTS_TRUE
683: POSIX_SHELL
684: SED
685: VPATH_HACK_FALSE
686: VPATH_HACK_TRUE
687: YFLAGS
688: YACC
689: EGREP
690: GREP
691: CPP
692: am__fastdepCC_FALSE
693: am__fastdepCC_TRUE
694: CCDEPMODE
695: AMDEPBACKSLASH
696: AMDEP_FALSE
697: AMDEP_TRUE
698: am__quote
699: am__include
700: DEPDIR
701: OBJEXT
702: EXEEXT
703: ac_ct_CC
704: CPPFLAGS
705: LDFLAGS
706: CFLAGS
707: CC
708: host_os
709: host_vendor
710: host_cpu
711: host
712: build_os
713: build_vendor
714: build_cpu
715: build
716: am__untar
717: am__tar
718: AMTAR
719: am__leading_dot
720: SET_MAKE
721: AWK
722: mkdir_p
723: MKDIR_P
724: INSTALL_STRIP_PROGRAM
725: STRIP
726: install_sh
727: MAKEINFO
728: AUTOHEADER
729: AUTOMAKE
730: AUTOCONF
731: ACLOCAL
732: VERSION
733: PACKAGE
734: CYGPATH_W
735: am__isrc
736: INSTALL_DATA
737: INSTALL_SCRIPT
738: INSTALL_PROGRAM
739: target_alias
740: host_alias
741: build_alias
742: LIBS
743: ECHO_T
744: ECHO_N
745: ECHO_C
746: DEFS
747: mandir
748: localedir
749: libdir
750: psdir
751: pdfdir
752: dvidir
753: htmldir
754: infodir
755: docdir
756: oldincludedir
757: includedir
758: localstatedir
759: sharedstatedir
760: sysconfdir
761: datadir
762: datarootdir
763: libexecdir
764: sbindir
765: bindir
766: program_transform_name
767: prefix
768: exec_prefix
769: PACKAGE_URL
770: PACKAGE_BUGREPORT
771: PACKAGE_STRING
772: PACKAGE_VERSION
773: PACKAGE_TARNAME
774: PACKAGE_NAME
775: PATH_SEPARATOR
776: SHELL'
777: ac_subst_files=''
778: ac_user_opts='
779: enable_option_checking
780: enable_dependency_tracking
781: enable_shared
782: enable_local_libopts
783: enable_libopts_install
784: with_autoopts_config
785: with_binsubdir
786: with_arlib
787: with_rpath
788: enable_static
789: with_pic
790: enable_fast_install
791: with_gnu_ld
792: with_sysroot
793: enable_libtool_lock
794: with_net_snmp_config
795: with_lineeditlibs
796: enable_getifaddrs
797: enable_debugging
798: enable_debug_timing
799: enable_dst_minutes
800: enable_ignore_dns_errors
801: enable_force_defer_DNS
802: enable_BANCOMM
803: enable_GPSVME
804: enable_all_clocks
805: enable_ACTS
806: enable_ARBITER
807: enable_ARCRON_MSF
808: enable_AS2201
809: enable_ATOM
810: enable_CHRONOLOG
811: enable_CHU
812: enable_AUDIO_CHU
813: enable_DATUM
814: enable_DUMBCLOCK
815: enable_FG
816: enable_HEATH
817: enable_HOPFSERIAL
818: enable_HOPFPCI
819: enable_HPGPS
820: enable_IRIG
821: enable_JJY
822: enable_JUPITER
823: enable_LEITCH
824: enable_LOCAL_CLOCK
825: enable_MX4200
826: enable_NEOCLOCK4X
827: enable_NMEA
828: enable_ONCORE
829: enable_PALISADE
830: enable_PCF
831: enable_PST
832: enable_RIPENCC
833: enable_SHM
834: enable_SPECTRACOM
835: enable_TPRO
836: enable_TRUETIME
837: enable_TT560
838: enable_ULINK
839: enable_WWV
840: enable_ZYFER
841: enable_parse_clocks
842: enable_COMPUTIME
843: enable_DCF7000
844: enable_HOPF6021
845: enable_MEINBERG
846: enable_RAWDCF
847: enable_RCC8000
848: enable_SCHMID
849: enable_TRIMTAIP
850: enable_TRIMTSIP
851: enable_WHARTON
852: enable_VARITEXT
853: with_openssl_libdir
854: with_openssl_incdir
855: with_crypto
856: with_electricfence
857: enable_kmem
858: enable_accurate_adjtime
859: enable_tick
860: enable_tickadj
861: enable_simulator
862: with_ntpsnmpd
863: enable_slew_always
864: enable_step_slew
865: enable_ntpdate_step
866: enable_hourly_todr_sync
867: enable_kernel_fll_bug
868: enable_bug1243_fix
869: enable_irig_sawtooth
870: enable_nist
871: enable_ntp_signd
872: enable_clockctl
873: enable_linuxcaps
874: enable_ipv6
875: with_kame
876: enable_saveconfig
877: '
878: ac_precious_vars='build_alias
879: host_alias
880: target_alias
881: CC
882: CFLAGS
883: LDFLAGS
884: LIBS
885: CPPFLAGS
886: CPP
887: YACC
888: YFLAGS'
889: ac_subdirs_all='sntp'
890:
891: # Initialize some variables set by options.
892: ac_init_help=
893: ac_init_version=false
894: ac_unrecognized_opts=
895: ac_unrecognized_sep=
896: # The variables have the same names as the options, with
897: # dashes changed to underlines.
898: cache_file=/dev/null
899: exec_prefix=NONE
900: no_create=
901: no_recursion=
902: prefix=NONE
903: program_prefix=NONE
904: program_suffix=NONE
905: program_transform_name=s,x,x,
906: silent=
907: site=
908: srcdir=
909: verbose=
910: x_includes=NONE
911: x_libraries=NONE
912:
913: # Installation directory options.
914: # These are left unexpanded so users can "make install exec_prefix=/foo"
915: # and all the variables that are supposed to be based on exec_prefix
916: # by default will actually change.
917: # Use braces instead of parens because sh, perl, etc. also accept them.
918: # (The list follows the same order as the GNU Coding Standards.)
919: bindir='${exec_prefix}/bin'
920: sbindir='${exec_prefix}/sbin'
921: libexecdir='${exec_prefix}/libexec'
922: datarootdir='${prefix}/share'
923: datadir='${datarootdir}'
924: sysconfdir='${prefix}/etc'
925: sharedstatedir='${prefix}/com'
926: localstatedir='${prefix}/var'
927: includedir='${prefix}/include'
928: oldincludedir='/usr/include'
929: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
930: infodir='${datarootdir}/info'
931: htmldir='${docdir}'
932: dvidir='${docdir}'
933: pdfdir='${docdir}'
934: psdir='${docdir}'
935: libdir='${exec_prefix}/lib'
936: localedir='${datarootdir}/locale'
937: mandir='${datarootdir}/man'
938:
939: ac_prev=
940: ac_dashdash=
941: for ac_option
942: do
943: # If the previous option needs an argument, assign it.
944: if test -n "$ac_prev"; then
945: eval $ac_prev=\$ac_option
946: ac_prev=
947: continue
948: fi
949:
950: case $ac_option in
951: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
952: *=) ac_optarg= ;;
953: *) ac_optarg=yes ;;
954: esac
955:
956: # Accept the important Cygnus configure options, so we can diagnose typos.
957:
958: case $ac_dashdash$ac_option in
959: --)
960: ac_dashdash=yes ;;
961:
962: -bindir | --bindir | --bindi | --bind | --bin | --bi)
963: ac_prev=bindir ;;
964: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
965: bindir=$ac_optarg ;;
966:
967: -build | --build | --buil | --bui | --bu)
968: ac_prev=build_alias ;;
969: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
970: build_alias=$ac_optarg ;;
971:
972: -cache-file | --cache-file | --cache-fil | --cache-fi \
973: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
974: ac_prev=cache_file ;;
975: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
976: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
977: cache_file=$ac_optarg ;;
978:
979: --config-cache | -C)
980: cache_file=config.cache ;;
981:
982: -datadir | --datadir | --datadi | --datad)
983: ac_prev=datadir ;;
984: -datadir=* | --datadir=* | --datadi=* | --datad=*)
985: datadir=$ac_optarg ;;
986:
987: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
988: | --dataroo | --dataro | --datar)
989: ac_prev=datarootdir ;;
990: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
991: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
992: datarootdir=$ac_optarg ;;
993:
994: -disable-* | --disable-*)
995: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
996: # Reject names that are not valid shell variable names.
997: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
998: as_fn_error $? "invalid feature name: $ac_useropt"
999: ac_useropt_orig=$ac_useropt
1000: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001: case $ac_user_opts in
1002: *"
1003: "enable_$ac_useropt"
1004: "*) ;;
1005: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1006: ac_unrecognized_sep=', ';;
1007: esac
1008: eval enable_$ac_useropt=no ;;
1009:
1010: -docdir | --docdir | --docdi | --doc | --do)
1011: ac_prev=docdir ;;
1012: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1013: docdir=$ac_optarg ;;
1014:
1015: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1016: ac_prev=dvidir ;;
1017: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1018: dvidir=$ac_optarg ;;
1019:
1020: -enable-* | --enable-*)
1021: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1022: # Reject names that are not valid shell variable names.
1023: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1024: as_fn_error $? "invalid feature name: $ac_useropt"
1025: ac_useropt_orig=$ac_useropt
1026: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027: case $ac_user_opts in
1028: *"
1029: "enable_$ac_useropt"
1030: "*) ;;
1031: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1032: ac_unrecognized_sep=', ';;
1033: esac
1034: eval enable_$ac_useropt=\$ac_optarg ;;
1035:
1036: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1037: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1038: | --exec | --exe | --ex)
1039: ac_prev=exec_prefix ;;
1040: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1041: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1042: | --exec=* | --exe=* | --ex=*)
1043: exec_prefix=$ac_optarg ;;
1044:
1045: -gas | --gas | --ga | --g)
1046: # Obsolete; use --with-gas.
1047: with_gas=yes ;;
1048:
1049: -help | --help | --hel | --he | -h)
1050: ac_init_help=long ;;
1051: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1052: ac_init_help=recursive ;;
1053: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1054: ac_init_help=short ;;
1055:
1056: -host | --host | --hos | --ho)
1057: ac_prev=host_alias ;;
1058: -host=* | --host=* | --hos=* | --ho=*)
1059: host_alias=$ac_optarg ;;
1060:
1061: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1062: ac_prev=htmldir ;;
1063: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1064: | --ht=*)
1065: htmldir=$ac_optarg ;;
1066:
1067: -includedir | --includedir | --includedi | --included | --include \
1068: | --includ | --inclu | --incl | --inc)
1069: ac_prev=includedir ;;
1070: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1071: | --includ=* | --inclu=* | --incl=* | --inc=*)
1072: includedir=$ac_optarg ;;
1073:
1074: -infodir | --infodir | --infodi | --infod | --info | --inf)
1075: ac_prev=infodir ;;
1076: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1077: infodir=$ac_optarg ;;
1078:
1079: -libdir | --libdir | --libdi | --libd)
1080: ac_prev=libdir ;;
1081: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1082: libdir=$ac_optarg ;;
1083:
1084: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1085: | --libexe | --libex | --libe)
1086: ac_prev=libexecdir ;;
1087: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1088: | --libexe=* | --libex=* | --libe=*)
1089: libexecdir=$ac_optarg ;;
1090:
1091: -localedir | --localedir | --localedi | --localed | --locale)
1092: ac_prev=localedir ;;
1093: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1094: localedir=$ac_optarg ;;
1095:
1096: -localstatedir | --localstatedir | --localstatedi | --localstated \
1097: | --localstate | --localstat | --localsta | --localst | --locals)
1098: ac_prev=localstatedir ;;
1099: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1100: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1101: localstatedir=$ac_optarg ;;
1102:
1103: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1104: ac_prev=mandir ;;
1105: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1106: mandir=$ac_optarg ;;
1107:
1108: -nfp | --nfp | --nf)
1109: # Obsolete; use --without-fp.
1110: with_fp=no ;;
1111:
1112: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1113: | --no-cr | --no-c | -n)
1114: no_create=yes ;;
1115:
1116: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1117: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1118: no_recursion=yes ;;
1119:
1120: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1121: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1122: | --oldin | --oldi | --old | --ol | --o)
1123: ac_prev=oldincludedir ;;
1124: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1125: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1126: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1127: oldincludedir=$ac_optarg ;;
1128:
1129: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1130: ac_prev=prefix ;;
1131: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1132: prefix=$ac_optarg ;;
1133:
1134: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1135: | --program-pre | --program-pr | --program-p)
1136: ac_prev=program_prefix ;;
1137: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1138: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1139: program_prefix=$ac_optarg ;;
1140:
1141: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1142: | --program-suf | --program-su | --program-s)
1143: ac_prev=program_suffix ;;
1144: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1145: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1146: program_suffix=$ac_optarg ;;
1147:
1148: -program-transform-name | --program-transform-name \
1149: | --program-transform-nam | --program-transform-na \
1150: | --program-transform-n | --program-transform- \
1151: | --program-transform | --program-transfor \
1152: | --program-transfo | --program-transf \
1153: | --program-trans | --program-tran \
1154: | --progr-tra | --program-tr | --program-t)
1155: ac_prev=program_transform_name ;;
1156: -program-transform-name=* | --program-transform-name=* \
1157: | --program-transform-nam=* | --program-transform-na=* \
1158: | --program-transform-n=* | --program-transform-=* \
1159: | --program-transform=* | --program-transfor=* \
1160: | --program-transfo=* | --program-transf=* \
1161: | --program-trans=* | --program-tran=* \
1162: | --progr-tra=* | --program-tr=* | --program-t=*)
1163: program_transform_name=$ac_optarg ;;
1164:
1165: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1166: ac_prev=pdfdir ;;
1167: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1168: pdfdir=$ac_optarg ;;
1169:
1170: -psdir | --psdir | --psdi | --psd | --ps)
1171: ac_prev=psdir ;;
1172: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1173: psdir=$ac_optarg ;;
1174:
1175: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1176: | -silent | --silent | --silen | --sile | --sil)
1177: silent=yes ;;
1178:
1179: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1180: ac_prev=sbindir ;;
1181: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1182: | --sbi=* | --sb=*)
1183: sbindir=$ac_optarg ;;
1184:
1185: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1186: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1187: | --sharedst | --shareds | --shared | --share | --shar \
1188: | --sha | --sh)
1189: ac_prev=sharedstatedir ;;
1190: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1191: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1192: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1193: | --sha=* | --sh=*)
1194: sharedstatedir=$ac_optarg ;;
1195:
1196: -site | --site | --sit)
1197: ac_prev=site ;;
1198: -site=* | --site=* | --sit=*)
1199: site=$ac_optarg ;;
1200:
1201: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1202: ac_prev=srcdir ;;
1203: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1204: srcdir=$ac_optarg ;;
1205:
1206: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1207: | --syscon | --sysco | --sysc | --sys | --sy)
1208: ac_prev=sysconfdir ;;
1209: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1210: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1211: sysconfdir=$ac_optarg ;;
1212:
1213: -target | --target | --targe | --targ | --tar | --ta | --t)
1214: ac_prev=target_alias ;;
1215: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1216: target_alias=$ac_optarg ;;
1217:
1218: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1219: verbose=yes ;;
1220:
1221: -version | --version | --versio | --versi | --vers | -V)
1222: ac_init_version=: ;;
1223:
1224: -with-* | --with-*)
1225: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1226: # Reject names that are not valid shell variable names.
1227: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1228: as_fn_error $? "invalid package name: $ac_useropt"
1229: ac_useropt_orig=$ac_useropt
1230: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1231: case $ac_user_opts in
1232: *"
1233: "with_$ac_useropt"
1234: "*) ;;
1235: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1236: ac_unrecognized_sep=', ';;
1237: esac
1238: eval with_$ac_useropt=\$ac_optarg ;;
1239:
1240: -without-* | --without-*)
1241: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1242: # Reject names that are not valid shell variable names.
1243: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1244: as_fn_error $? "invalid package name: $ac_useropt"
1245: ac_useropt_orig=$ac_useropt
1246: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247: case $ac_user_opts in
1248: *"
1249: "with_$ac_useropt"
1250: "*) ;;
1251: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1252: ac_unrecognized_sep=', ';;
1253: esac
1254: eval with_$ac_useropt=no ;;
1255:
1256: --x)
1257: # Obsolete; use --with-x.
1258: with_x=yes ;;
1259:
1260: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1261: | --x-incl | --x-inc | --x-in | --x-i)
1262: ac_prev=x_includes ;;
1263: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1264: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1265: x_includes=$ac_optarg ;;
1266:
1267: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1268: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1269: ac_prev=x_libraries ;;
1270: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1271: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1272: x_libraries=$ac_optarg ;;
1273:
1274: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1275: Try \`$0 --help' for more information"
1276: ;;
1277:
1278: *=*)
1279: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1280: # Reject names that are not valid shell variable names.
1281: case $ac_envvar in #(
1282: '' | [0-9]* | *[!_$as_cr_alnum]* )
1283: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1284: esac
1285: eval $ac_envvar=\$ac_optarg
1286: export $ac_envvar ;;
1287:
1288: *)
1289: # FIXME: should be removed in autoconf 3.0.
1290: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1291: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1292: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1293: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1294: ;;
1295:
1296: esac
1297: done
1298:
1299: if test -n "$ac_prev"; then
1300: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1301: as_fn_error $? "missing argument to $ac_option"
1302: fi
1303:
1304: if test -n "$ac_unrecognized_opts"; then
1305: case $enable_option_checking in
1306: no) ;;
1307: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1308: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1309: esac
1310: fi
1311:
1312: # Check all directory arguments for consistency.
1313: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1314: datadir sysconfdir sharedstatedir localstatedir includedir \
1315: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1316: libdir localedir mandir
1317: do
1318: eval ac_val=\$$ac_var
1319: # Remove trailing slashes.
1320: case $ac_val in
1321: */ )
1322: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1323: eval $ac_var=\$ac_val;;
1324: esac
1325: # Be sure to have absolute directory names.
1326: case $ac_val in
1327: [\\/$]* | ?:[\\/]* ) continue;;
1328: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1329: esac
1330: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1331: done
1332:
1333: # There might be people who depend on the old broken behavior: `$host'
1334: # used to hold the argument of --host etc.
1335: # FIXME: To remove some day.
1336: build=$build_alias
1337: host=$host_alias
1338: target=$target_alias
1339:
1340: # FIXME: To remove some day.
1341: if test "x$host_alias" != x; then
1342: if test "x$build_alias" = x; then
1343: cross_compiling=maybe
1344: $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1345: If a cross compiler is detected then cross compile mode will be used" >&2
1346: elif test "x$build_alias" != "x$host_alias"; then
1347: cross_compiling=yes
1348: fi
1349: fi
1350:
1351: ac_tool_prefix=
1352: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1353:
1354: test "$silent" = yes && exec 6>/dev/null
1355:
1356:
1357: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1358: ac_ls_di=`ls -di .` &&
1359: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1360: as_fn_error $? "working directory cannot be determined"
1361: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1362: as_fn_error $? "pwd does not report name of working directory"
1363:
1364:
1365: # Find the source files, if location was not specified.
1366: if test -z "$srcdir"; then
1367: ac_srcdir_defaulted=yes
1368: # Try the directory containing this script, then the parent directory.
1369: ac_confdir=`$as_dirname -- "$as_myself" ||
1370: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1371: X"$as_myself" : 'X\(//\)[^/]' \| \
1372: X"$as_myself" : 'X\(//\)$' \| \
1373: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1374: $as_echo X"$as_myself" |
1375: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1376: s//\1/
1377: q
1378: }
1379: /^X\(\/\/\)[^/].*/{
1380: s//\1/
1381: q
1382: }
1383: /^X\(\/\/\)$/{
1384: s//\1/
1385: q
1386: }
1387: /^X\(\/\).*/{
1388: s//\1/
1389: q
1390: }
1391: s/.*/./; q'`
1392: srcdir=$ac_confdir
1393: if test ! -r "$srcdir/$ac_unique_file"; then
1394: srcdir=..
1395: fi
1396: else
1397: ac_srcdir_defaulted=no
1398: fi
1399: if test ! -r "$srcdir/$ac_unique_file"; then
1400: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1401: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1402: fi
1403: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1404: ac_abs_confdir=`(
1405: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1406: pwd)`
1407: # When building in place, set srcdir=.
1408: if test "$ac_abs_confdir" = "$ac_pwd"; then
1409: srcdir=.
1410: fi
1411: # Remove unnecessary trailing slashes from srcdir.
1412: # Double slashes in file names in object file debugging info
1413: # mess up M-x gdb in Emacs.
1414: case $srcdir in
1415: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1416: esac
1417: for ac_var in $ac_precious_vars; do
1418: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1419: eval ac_env_${ac_var}_value=\$${ac_var}
1420: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1421: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1422: done
1423:
1424: #
1425: # Report the --help message.
1426: #
1427: if test "$ac_init_help" = "long"; then
1428: # Omit some internal or obsolete options to make the list less imposing.
1429: # This message is too long to be a string in the A/UX 3.1 sh.
1430: cat <<_ACEOF
1431: \`configure' configures ntp 4.2.6p5 to adapt to many kinds of systems.
1432:
1433: Usage: $0 [OPTION]... [VAR=VALUE]...
1434:
1435: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1436: VAR=VALUE. See below for descriptions of some of the useful variables.
1437:
1438: Defaults for the options are specified in brackets.
1439:
1440: Configuration:
1441: -h, --help display this help and exit
1442: --help=short display options specific to this package
1443: --help=recursive display the short help of all the included packages
1444: -V, --version display version information and exit
1445: -q, --quiet, --silent do not print \`checking ...' messages
1446: --cache-file=FILE cache test results in FILE [disabled]
1447: -C, --config-cache alias for \`--cache-file=config.cache'
1448: -n, --no-create do not create output files
1449: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1450:
1451: Installation directories:
1452: --prefix=PREFIX install architecture-independent files in PREFIX
1453: [$ac_default_prefix]
1454: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1455: [PREFIX]
1456:
1457: By default, \`make install' will install all the files in
1458: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1459: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1460: for instance \`--prefix=\$HOME'.
1461:
1462: For better control, use the options below.
1463:
1464: Fine tuning of the installation directories:
1465: --bindir=DIR user executables [EPREFIX/bin]
1466: --sbindir=DIR system admin executables [EPREFIX/sbin]
1467: --libexecdir=DIR program executables [EPREFIX/libexec]
1468: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1469: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1470: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1471: --libdir=DIR object code libraries [EPREFIX/lib]
1472: --includedir=DIR C header files [PREFIX/include]
1473: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1474: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1475: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1476: --infodir=DIR info documentation [DATAROOTDIR/info]
1477: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1478: --mandir=DIR man documentation [DATAROOTDIR/man]
1479: --docdir=DIR documentation root [DATAROOTDIR/doc/ntp]
1480: --htmldir=DIR html documentation [DOCDIR]
1481: --dvidir=DIR dvi documentation [DOCDIR]
1482: --pdfdir=DIR pdf documentation [DOCDIR]
1483: --psdir=DIR ps documentation [DOCDIR]
1484: _ACEOF
1485:
1486: cat <<\_ACEOF
1487:
1488: Program names:
1489: --program-prefix=PREFIX prepend PREFIX to installed program names
1490: --program-suffix=SUFFIX append SUFFIX to installed program names
1491: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1492:
1493: System types:
1494: --build=BUILD configure for building on BUILD [guessed]
1495: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1496: _ACEOF
1497: fi
1498:
1499: if test -n "$ac_init_help"; then
1500: case $ac_init_help in
1501: short | recursive ) echo "Configuration of ntp 4.2.6p5:";;
1502: esac
1503: cat <<\_ACEOF
1504:
1505: Optional Features:
1506: --disable-option-checking ignore unrecognized --enable/--with options
1507: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1508: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1509: --disable-dependency-tracking speeds up one-time build
1510: --enable-dependency-tracking do not reject slow dependency extractors
1511: --enable-shared[=PKGS] build shared libraries [default=no]
1512: --enable-local-libopts Force using the supplied libopts tearoff code
1513: --disable-libopts-install
1514: Do not install libopts with client installation
1515: --enable-static[=PKGS] build static libraries [default=yes]
1516: --enable-fast-install[=PKGS]
1517: optimize for fast installation [default=yes]
1518: --disable-libtool-lock avoid locking (might break parallel builds)
1519: --enable-getifaddrs s Enable the use of getifaddrs() [[yes|no|glibc]].
1520: glibc: Use getifaddrs() in glibc if you know it
1521: supports IPv6.
1522: --enable-debugging + include ntpd debugging code
1523: --enable-debug-timing - include processing time debugging code (costs
1524: performance)
1525: --enable-dst-minutes n minutes per DST adjustment [60]
1526: --enable-ignore-dns-errors
1527: - retry DNS queries on any error
1528: --enable-force-defer-DNS
1529: - force all DNS lookups to take the deferred path
1530: --enable-BANCOMM - Datum/Bancomm bc635/VME interface
1531: --enable-GPSVME - TrueTime GPS receiver/VME interface
1532: --enable-all-clocks + include all suitable non-PARSE clocks:
1533: --enable-ACTS s ACTS modem service
1534: --enable-ARBITER + Arbiter 1088A/B GPS receiver
1535: --enable-ARCRON-MSF + Arcron MSF receiver
1536: --enable-AS2201 + Austron 2200A/2201A GPS receiver
1537: --enable-ATOM s ATOM PPS interface
1538: --enable-CHRONOLOG + Chrono-log K-series WWVB receiver
1539: --enable-CHU + CHU modem/decoder
1540: --enable-AUDIO-CHU s CHU audio/decoder
1541: --enable-DATUM s Datum Programmable Time System
1542: --enable-DUMBCLOCK + Dumb generic hh:mm:ss local clock
1543: --enable-FG + Forum Graphic GPS
1544: --enable-HEATH s Heath GC-1000 WWV/WWVH receiver
1545: --enable-HOPFSERIAL + hopf serial clock device
1546: --enable-HOPFPCI + hopf 6039 PCI board
1547: --enable-HPGPS + HP 58503A GPS receiver
1548: --enable-IRIG s IRIG audio decoder
1549: --enable-JJY + JJY receiver
1550: --enable-JUPITER s Rockwell Jupiter GPS receiver
1551: --enable-LEITCH + Leitch CSD 5300 Master Clock System Driver
1552: --enable-LOCAL-CLOCK + local clock reference
1553: --enable-MX4200 s Magnavox MX4200 GPS receiver
1554: --enable-NEOCLOCK4X + NeoClock4X DCF77 / TDF receiver
1555: --enable-NMEA + NMEA GPS receiver
1556: --enable-ONCORE s Motorola VP/UT Oncore GPS receiver
1557: --enable-PALISADE s Palisade clock
1558: --enable-PCF + Conrad parallel port radio clock
1559: --enable-PST + PST/Traconex 1020 WWV/WWVH receiver
1560: --enable-RIPENCC - RIPENCC specific Trimble driver
1561: --enable-SHM s SHM clock attached thru shared memory
1562: --enable-SPECTRACOM + Spectracom 8170/Netclock/2 WWVB receiver
1563: --enable-TPRO s KSI/Odetics TPRO/S GPS receiver/IRIG interface
1564: --enable-TRUETIME s Kinemetrics/TrueTime receivers
1565: --enable-TT560 - TrueTime 560 IRIG-B decoder
1566: --enable-ULINK + Ultralink WWVB receiver
1567: --enable-WWV s WWV Audio receiver
1568: --enable-ZYFER + Zyfer GPStarplus receiver
1569: --enable-parse-clocks - include all suitable PARSE clocks:
1570: --enable-COMPUTIME s Diem Computime Radio Clock
1571: --enable-DCF7000 s ELV/DCF7000 clock
1572: --enable-HOPF6021 s HOPF 6021 clock
1573: --enable-MEINBERG s Meinberg clocks
1574: --enable-RAWDCF s DCF77 raw time code
1575: --enable-RCC8000 s RCC 8000 clock
1576: --enable-SCHMID s Schmid DCF77 clock
1577: --enable-TRIMTAIP s Trimble GPS receiver/TAIP protocol
1578: --enable-TRIMTSIP s Trimble GPS receiver/TSIP protocol
1579: --enable-WHARTON s WHARTON 400A Series clock
1580: --enable-VARITEXT s VARITEXT clock
1581: --enable-kmem s read /dev/kmem for tick and/or tickadj
1582: --enable-accurate-adjtime
1583: s the adjtime() call is accurate
1584: --enable-tick=VALUE s force a value for 'tick'
1585: --enable-tickadj=VALUE s force a value for 'tickadj'
1586: --enable-simulator - build/install the NTPD simulator?
1587: --enable-slew-always s always slew the time
1588: --enable-step-slew s step and slew the time
1589: --enable-ntpdate-step s if ntpdate should step the time
1590: --enable-hourly-todr-sync
1591: s if we should sync TODR hourly
1592: --enable-kernel-fll-bug s if we should avoid a kernel FLL bug
1593: --enable-bug1243-fix + use unmodified autokey session keys
1594: --enable-irig-sawtooth s if we should enable the IRIG sawtooth filter
1595: --enable-nist - if we should enable the NIST lockclock scheme
1596: --enable-ntp-signd - Provide support for Samba's signing daemon,
1597: =/var/run/ntp_signd
1598: --enable-clockctl s Use /dev/clockctl for non-root clock control
1599: --enable-linuxcaps + Use Linux capabilities for non-root clock control
1600: --enable-ipv6 s use IPv6?
1601:
1602: --enable-saveconfig + saveconfig mechanism
1603:
1604: Optional Packages:
1605: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1606: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1607: --with-autoopts-config specify the config-info script
1608: --with-binsubdir bin ={bin,sbin}
1609: --with-arlib - deprecated, arlib not distributed
1610: --without-rpath s Disable auto-added -R linker paths
1611: --with-pic try to use only PIC/non-PIC objects [default=use
1612: both]
1613: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1614: --with-sysroot=DIR Search for dependent libraries within DIR
1615: (or the compiler's sysroot if not specified).
1616: --with-net-snmp-config + =net-snmp-config
1617: --with-lineeditlibs edit,editline (readline may be specified if desired)
1618: --with-openssl-libdir + =/something/reasonable
1619: --with-openssl-incdir + =/something/reasonable
1620: --with-crypto + =openssl
1621: --with-electricfence - compile with ElectricFence malloc debugger
1622: --with-ntpsnmpd s Build ntpsnmpd MIB agent?
1623: --with-kame - =/usr/local/v6
1624:
1625: Some influential environment variables:
1626: CC C compiler command
1627: CFLAGS C compiler flags
1628: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1629: nonstandard directory <lib dir>
1630: LIBS libraries to pass to the linker, e.g. -l<library>
1631: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1632: you have headers in a nonstandard directory <include dir>
1633: CPP C preprocessor
1634: YACC The `Yet Another Compiler Compiler' implementation to use.
1635: Defaults to the first program found out of: `bison -y', `byacc',
1636: `yacc'.
1637: YFLAGS The list of arguments that will be passed by default to $YACC.
1638: This script will default YFLAGS to the empty string to avoid a
1639: default value of `-d' given by some make applications.
1640:
1641: Use these variables to override the choices made by `configure' or to help
1642: it to find libraries and programs with nonstandard names/locations.
1643:
1644: Report bugs to the package provider.
1645: _ACEOF
1646: ac_status=$?
1647: fi
1648:
1649: if test "$ac_init_help" = "recursive"; then
1650: # If there are subdirs, report their specific --help.
1651: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1652: test -d "$ac_dir" ||
1653: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1654: continue
1655: ac_builddir=.
1656:
1657: case "$ac_dir" in
1658: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1659: *)
1660: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1661: # A ".." for each directory in $ac_dir_suffix.
1662: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1663: case $ac_top_builddir_sub in
1664: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1665: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1666: esac ;;
1667: esac
1668: ac_abs_top_builddir=$ac_pwd
1669: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1670: # for backward compatibility:
1671: ac_top_builddir=$ac_top_build_prefix
1672:
1673: case $srcdir in
1674: .) # We are building in place.
1675: ac_srcdir=.
1676: ac_top_srcdir=$ac_top_builddir_sub
1677: ac_abs_top_srcdir=$ac_pwd ;;
1678: [\\/]* | ?:[\\/]* ) # Absolute name.
1679: ac_srcdir=$srcdir$ac_dir_suffix;
1680: ac_top_srcdir=$srcdir
1681: ac_abs_top_srcdir=$srcdir ;;
1682: *) # Relative name.
1683: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1684: ac_top_srcdir=$ac_top_build_prefix$srcdir
1685: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1686: esac
1687: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1688:
1689: cd "$ac_dir" || { ac_status=$?; continue; }
1690: # Check for guested configure.
1691: if test -f "$ac_srcdir/configure.gnu"; then
1692: echo &&
1693: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1694: elif test -f "$ac_srcdir/configure"; then
1695: echo &&
1696: $SHELL "$ac_srcdir/configure" --help=recursive
1697: else
1698: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1699: fi || ac_status=$?
1700: cd "$ac_pwd" || { ac_status=$?; break; }
1701: done
1702: fi
1703:
1704: test -n "$ac_init_help" && exit $ac_status
1705: if $ac_init_version; then
1706: cat <<\_ACEOF
1707: ntp configure 4.2.6p5
1708: generated by GNU Autoconf 2.68
1709:
1710: Copyright (C) 2010 Free Software Foundation, Inc.
1711: This configure script is free software; the Free Software Foundation
1712: gives unlimited permission to copy, distribute and modify it.
1713: _ACEOF
1714: exit
1715: fi
1716:
1717: ## ------------------------ ##
1718: ## Autoconf initialization. ##
1719: ## ------------------------ ##
1720:
1721: # ac_fn_c_try_compile LINENO
1722: # --------------------------
1723: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1724: ac_fn_c_try_compile ()
1725: {
1726: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727: rm -f conftest.$ac_objext
1728: if { { ac_try="$ac_compile"
1729: case "(($ac_try" in
1730: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731: *) ac_try_echo=$ac_try;;
1732: esac
1733: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734: $as_echo "$ac_try_echo"; } >&5
1735: (eval "$ac_compile") 2>conftest.err
1736: ac_status=$?
1737: if test -s conftest.err; then
1738: grep -v '^ *+' conftest.err >conftest.er1
1739: cat conftest.er1 >&5
1740: mv -f conftest.er1 conftest.err
1741: fi
1742: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743: test $ac_status = 0; } && {
1744: test -z "$ac_c_werror_flag" ||
1745: test ! -s conftest.err
1746: } && test -s conftest.$ac_objext; then :
1747: ac_retval=0
1748: else
1749: $as_echo "$as_me: failed program was:" >&5
1750: sed 's/^/| /' conftest.$ac_ext >&5
1751:
1752: ac_retval=1
1753: fi
1754: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755: as_fn_set_status $ac_retval
1756:
1757: } # ac_fn_c_try_compile
1758:
1759: # ac_fn_c_try_cpp LINENO
1760: # ----------------------
1761: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1762: ac_fn_c_try_cpp ()
1763: {
1764: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765: if { { ac_try="$ac_cpp conftest.$ac_ext"
1766: case "(($ac_try" in
1767: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768: *) ac_try_echo=$ac_try;;
1769: esac
1770: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771: $as_echo "$ac_try_echo"; } >&5
1772: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1773: ac_status=$?
1774: if test -s conftest.err; then
1775: grep -v '^ *+' conftest.err >conftest.er1
1776: cat conftest.er1 >&5
1777: mv -f conftest.er1 conftest.err
1778: fi
1779: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780: test $ac_status = 0; } > conftest.i && {
1781: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1782: test ! -s conftest.err
1783: }; then :
1784: ac_retval=0
1785: else
1786: $as_echo "$as_me: failed program was:" >&5
1787: sed 's/^/| /' conftest.$ac_ext >&5
1788:
1789: ac_retval=1
1790: fi
1791: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792: as_fn_set_status $ac_retval
1793:
1794: } # ac_fn_c_try_cpp
1795:
1796: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1797: # -------------------------------------------------------
1798: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1799: # the include files in INCLUDES and setting the cache variable VAR
1800: # accordingly.
1801: ac_fn_c_check_header_mongrel ()
1802: {
1803: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804: if eval \${$3+:} false; then :
1805: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806: $as_echo_n "checking for $2... " >&6; }
1807: if eval \${$3+:} false; then :
1808: $as_echo_n "(cached) " >&6
1809: fi
1810: eval ac_res=\$$3
1811: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812: $as_echo "$ac_res" >&6; }
1813: else
1814: # Is the header compilable?
1815: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1816: $as_echo_n "checking $2 usability... " >&6; }
1817: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818: /* end confdefs.h. */
1819: $4
1820: #include <$2>
1821: _ACEOF
1822: if ac_fn_c_try_compile "$LINENO"; then :
1823: ac_header_compiler=yes
1824: else
1825: ac_header_compiler=no
1826: fi
1827: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1828: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1829: $as_echo "$ac_header_compiler" >&6; }
1830:
1831: # Is the header present?
1832: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1833: $as_echo_n "checking $2 presence... " >&6; }
1834: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835: /* end confdefs.h. */
1836: #include <$2>
1837: _ACEOF
1838: if ac_fn_c_try_cpp "$LINENO"; then :
1839: ac_header_preproc=yes
1840: else
1841: ac_header_preproc=no
1842: fi
1843: rm -f conftest.err conftest.i conftest.$ac_ext
1844: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1845: $as_echo "$ac_header_preproc" >&6; }
1846:
1847: # So? What about this header?
1848: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1849: yes:no: )
1850: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1851: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1852: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1853: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1854: ;;
1855: no:yes:* )
1856: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1857: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1858: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1859: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1860: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1861: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1862: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1863: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1864: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1865: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1866: ;;
1867: esac
1868: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869: $as_echo_n "checking for $2... " >&6; }
1870: if eval \${$3+:} false; then :
1871: $as_echo_n "(cached) " >&6
1872: else
1873: eval "$3=\$ac_header_compiler"
1874: fi
1875: eval ac_res=\$$3
1876: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877: $as_echo "$ac_res" >&6; }
1878: fi
1879: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880:
1881: } # ac_fn_c_check_header_mongrel
1882:
1883: # ac_fn_c_try_run LINENO
1884: # ----------------------
1885: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1886: # that executables *can* be run.
1887: ac_fn_c_try_run ()
1888: {
1889: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890: if { { ac_try="$ac_link"
1891: case "(($ac_try" in
1892: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893: *) ac_try_echo=$ac_try;;
1894: esac
1895: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896: $as_echo "$ac_try_echo"; } >&5
1897: (eval "$ac_link") 2>&5
1898: ac_status=$?
1899: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1901: { { case "(($ac_try" in
1902: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903: *) ac_try_echo=$ac_try;;
1904: esac
1905: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906: $as_echo "$ac_try_echo"; } >&5
1907: (eval "$ac_try") 2>&5
1908: ac_status=$?
1909: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1910: test $ac_status = 0; }; }; then :
1911: ac_retval=0
1912: else
1913: $as_echo "$as_me: program exited with status $ac_status" >&5
1914: $as_echo "$as_me: failed program was:" >&5
1915: sed 's/^/| /' conftest.$ac_ext >&5
1916:
1917: ac_retval=$ac_status
1918: fi
1919: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1920: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921: as_fn_set_status $ac_retval
1922:
1923: } # ac_fn_c_try_run
1924:
1925: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1926: # -------------------------------------------------------
1927: # Tests whether HEADER exists and can be compiled using the include files in
1928: # INCLUDES, setting the cache variable VAR accordingly.
1929: ac_fn_c_check_header_compile ()
1930: {
1931: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1933: $as_echo_n "checking for $2... " >&6; }
1934: if eval \${$3+:} false; then :
1935: $as_echo_n "(cached) " >&6
1936: else
1937: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938: /* end confdefs.h. */
1939: $4
1940: #include <$2>
1941: _ACEOF
1942: if ac_fn_c_try_compile "$LINENO"; then :
1943: eval "$3=yes"
1944: else
1945: eval "$3=no"
1946: fi
1947: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948: fi
1949: eval ac_res=\$$3
1950: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951: $as_echo "$ac_res" >&6; }
1952: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953:
1954: } # ac_fn_c_check_header_compile
1955:
1956: # ac_fn_c_try_link LINENO
1957: # -----------------------
1958: # Try to link conftest.$ac_ext, and return whether this succeeded.
1959: ac_fn_c_try_link ()
1960: {
1961: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962: rm -f conftest.$ac_objext conftest$ac_exeext
1963: if { { ac_try="$ac_link"
1964: case "(($ac_try" in
1965: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1966: *) ac_try_echo=$ac_try;;
1967: esac
1968: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1969: $as_echo "$ac_try_echo"; } >&5
1970: (eval "$ac_link") 2>conftest.err
1971: ac_status=$?
1972: if test -s conftest.err; then
1973: grep -v '^ *+' conftest.err >conftest.er1
1974: cat conftest.er1 >&5
1975: mv -f conftest.er1 conftest.err
1976: fi
1977: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1978: test $ac_status = 0; } && {
1979: test -z "$ac_c_werror_flag" ||
1980: test ! -s conftest.err
1981: } && test -s conftest$ac_exeext && {
1982: test "$cross_compiling" = yes ||
1983: $as_test_x conftest$ac_exeext
1984: }; then :
1985: ac_retval=0
1986: else
1987: $as_echo "$as_me: failed program was:" >&5
1988: sed 's/^/| /' conftest.$ac_ext >&5
1989:
1990: ac_retval=1
1991: fi
1992: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1993: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1994: # interfere with the next link command; also delete a directory that is
1995: # left behind by Apple's compiler. We do this before executing the actions.
1996: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1997: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998: as_fn_set_status $ac_retval
1999:
2000: } # ac_fn_c_try_link
2001:
2002: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2003: # -------------------------------------------
2004: # Tests whether TYPE exists after having included INCLUDES, setting cache
2005: # variable VAR accordingly.
2006: ac_fn_c_check_type ()
2007: {
2008: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010: $as_echo_n "checking for $2... " >&6; }
2011: if eval \${$3+:} false; then :
2012: $as_echo_n "(cached) " >&6
2013: else
2014: eval "$3=no"
2015: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016: /* end confdefs.h. */
2017: $4
2018: int
2019: main ()
2020: {
2021: if (sizeof ($2))
2022: return 0;
2023: ;
2024: return 0;
2025: }
2026: _ACEOF
2027: if ac_fn_c_try_compile "$LINENO"; then :
2028: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029: /* end confdefs.h. */
2030: $4
2031: int
2032: main ()
2033: {
2034: if (sizeof (($2)))
2035: return 0;
2036: ;
2037: return 0;
2038: }
2039: _ACEOF
2040: if ac_fn_c_try_compile "$LINENO"; then :
2041:
2042: else
2043: eval "$3=yes"
2044: fi
2045: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046: fi
2047: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048: fi
2049: eval ac_res=\$$3
2050: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051: $as_echo "$ac_res" >&6; }
2052: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053:
2054: } # ac_fn_c_check_type
2055:
2056: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2057: # --------------------------------------------
2058: # Tries to find the compile-time value of EXPR in a program that includes
2059: # INCLUDES, setting VAR accordingly. Returns whether the value could be
2060: # computed
2061: ac_fn_c_compute_int ()
2062: {
2063: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064: if test "$cross_compiling" = yes; then
2065: # Depending upon the size, compute the lo and hi bounds.
2066: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067: /* end confdefs.h. */
2068: $4
2069: int
2070: main ()
2071: {
2072: static int test_array [1 - 2 * !(($2) >= 0)];
2073: test_array [0] = 0
2074:
2075: ;
2076: return 0;
2077: }
2078: _ACEOF
2079: if ac_fn_c_try_compile "$LINENO"; then :
2080: ac_lo=0 ac_mid=0
2081: while :; do
2082: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083: /* end confdefs.h. */
2084: $4
2085: int
2086: main ()
2087: {
2088: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2089: test_array [0] = 0
2090:
2091: ;
2092: return 0;
2093: }
2094: _ACEOF
2095: if ac_fn_c_try_compile "$LINENO"; then :
2096: ac_hi=$ac_mid; break
2097: else
2098: as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2099: if test $ac_lo -le $ac_mid; then
2100: ac_lo= ac_hi=
2101: break
2102: fi
2103: as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2104: fi
2105: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106: done
2107: else
2108: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109: /* end confdefs.h. */
2110: $4
2111: int
2112: main ()
2113: {
2114: static int test_array [1 - 2 * !(($2) < 0)];
2115: test_array [0] = 0
2116:
2117: ;
2118: return 0;
2119: }
2120: _ACEOF
2121: if ac_fn_c_try_compile "$LINENO"; then :
2122: ac_hi=-1 ac_mid=-1
2123: while :; do
2124: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125: /* end confdefs.h. */
2126: $4
2127: int
2128: main ()
2129: {
2130: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2131: test_array [0] = 0
2132:
2133: ;
2134: return 0;
2135: }
2136: _ACEOF
2137: if ac_fn_c_try_compile "$LINENO"; then :
2138: ac_lo=$ac_mid; break
2139: else
2140: as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2141: if test $ac_mid -le $ac_hi; then
2142: ac_lo= ac_hi=
2143: break
2144: fi
2145: as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2146: fi
2147: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148: done
2149: else
2150: ac_lo= ac_hi=
2151: fi
2152: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153: fi
2154: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155: # Binary search between lo and hi bounds.
2156: while test "x$ac_lo" != "x$ac_hi"; do
2157: as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2158: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159: /* end confdefs.h. */
2160: $4
2161: int
2162: main ()
2163: {
2164: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2165: test_array [0] = 0
2166:
2167: ;
2168: return 0;
2169: }
2170: _ACEOF
2171: if ac_fn_c_try_compile "$LINENO"; then :
2172: ac_hi=$ac_mid
2173: else
2174: as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2175: fi
2176: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177: done
2178: case $ac_lo in #((
2179: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2180: '') ac_retval=1 ;;
2181: esac
2182: else
2183: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184: /* end confdefs.h. */
2185: $4
2186: static long int longval () { return $2; }
2187: static unsigned long int ulongval () { return $2; }
2188: #include <stdio.h>
2189: #include <stdlib.h>
2190: int
2191: main ()
2192: {
2193:
2194: FILE *f = fopen ("conftest.val", "w");
2195: if (! f)
2196: return 1;
2197: if (($2) < 0)
2198: {
2199: long int i = longval ();
2200: if (i != ($2))
2201: return 1;
2202: fprintf (f, "%ld", i);
2203: }
2204: else
2205: {
2206: unsigned long int i = ulongval ();
2207: if (i != ($2))
2208: return 1;
2209: fprintf (f, "%lu", i);
2210: }
2211: /* Do not output a trailing newline, as this causes \r\n confusion
2212: on some platforms. */
2213: return ferror (f) || fclose (f) != 0;
2214:
2215: ;
2216: return 0;
2217: }
2218: _ACEOF
2219: if ac_fn_c_try_run "$LINENO"; then :
2220: echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2221: else
2222: ac_retval=1
2223: fi
2224: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2225: conftest.$ac_objext conftest.beam conftest.$ac_ext
2226: rm -f conftest.val
2227:
2228: fi
2229: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2230: as_fn_set_status $ac_retval
2231:
2232: } # ac_fn_c_compute_int
2233:
2234: # ac_fn_c_check_func LINENO FUNC VAR
2235: # ----------------------------------
2236: # Tests whether FUNC exists, setting the cache variable VAR accordingly
2237: ac_fn_c_check_func ()
2238: {
2239: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2240: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2241: $as_echo_n "checking for $2... " >&6; }
2242: if eval \${$3+:} false; then :
2243: $as_echo_n "(cached) " >&6
2244: else
2245: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246: /* end confdefs.h. */
2247: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2248: For example, HP-UX 11i <limits.h> declares gettimeofday. */
2249: #define $2 innocuous_$2
2250:
2251: /* System header to define __stub macros and hopefully few prototypes,
2252: which can conflict with char $2 (); below.
2253: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2254: <limits.h> exists even on freestanding compilers. */
2255:
2256: #ifdef __STDC__
2257: # include <limits.h>
2258: #else
2259: # include <assert.h>
2260: #endif
2261:
2262: #undef $2
2263:
2264: /* Override any GCC internal prototype to avoid an error.
2265: Use char because int might match the return type of a GCC
2266: builtin and then its argument prototype would still apply. */
2267: #ifdef __cplusplus
2268: extern "C"
2269: #endif
2270: char $2 ();
2271: /* The GNU C library defines this for functions which it implements
2272: to always fail with ENOSYS. Some functions are actually named
2273: something starting with __ and the normal name is an alias. */
2274: #if defined __stub_$2 || defined __stub___$2
2275: choke me
2276: #endif
2277:
2278: int
2279: main ()
2280: {
2281: return $2 ();
2282: ;
2283: return 0;
2284: }
2285: _ACEOF
2286: if ac_fn_c_try_link "$LINENO"; then :
2287: eval "$3=yes"
2288: else
2289: eval "$3=no"
2290: fi
2291: rm -f core conftest.err conftest.$ac_objext \
2292: conftest$ac_exeext conftest.$ac_ext
2293: fi
2294: eval ac_res=\$$3
2295: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2296: $as_echo "$ac_res" >&6; }
2297: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2298:
2299: } # ac_fn_c_check_func
2300:
2301: # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2302: # ----------------------------------------------------
2303: # Tries to find if the field MEMBER exists in type AGGR, after including
2304: # INCLUDES, setting cache variable VAR accordingly.
2305: ac_fn_c_check_member ()
2306: {
2307: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2308: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2309: $as_echo_n "checking for $2.$3... " >&6; }
2310: if eval \${$4+:} false; then :
2311: $as_echo_n "(cached) " >&6
2312: else
2313: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2314: /* end confdefs.h. */
2315: $5
2316: int
2317: main ()
2318: {
2319: static $2 ac_aggr;
2320: if (ac_aggr.$3)
2321: return 0;
2322: ;
2323: return 0;
2324: }
2325: _ACEOF
2326: if ac_fn_c_try_compile "$LINENO"; then :
2327: eval "$4=yes"
2328: else
2329: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2330: /* end confdefs.h. */
2331: $5
2332: int
2333: main ()
2334: {
2335: static $2 ac_aggr;
2336: if (sizeof ac_aggr.$3)
2337: return 0;
2338: ;
2339: return 0;
2340: }
2341: _ACEOF
2342: if ac_fn_c_try_compile "$LINENO"; then :
2343: eval "$4=yes"
2344: else
2345: eval "$4=no"
2346: fi
2347: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2348: fi
2349: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2350: fi
2351: eval ac_res=\$$4
2352: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2353: $as_echo "$ac_res" >&6; }
2354: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2355:
2356: } # ac_fn_c_check_member
2357: cat >config.log <<_ACEOF
2358: This file contains any messages produced by compilers while
2359: running configure, to aid debugging if configure makes a mistake.
2360:
2361: It was created by ntp $as_me 4.2.6p5, which was
2362: generated by GNU Autoconf 2.68. Invocation command line was
2363:
2364: $ $0 $@
2365:
2366: _ACEOF
2367: exec 5>>config.log
2368: {
2369: cat <<_ASUNAME
2370: ## --------- ##
2371: ## Platform. ##
2372: ## --------- ##
2373:
2374: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2375: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2376: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2377: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2378: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2379:
2380: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2381: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2382:
2383: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2384: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2385: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2386: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2387: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2388: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2389: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2390:
2391: _ASUNAME
2392:
2393: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394: for as_dir in $PATH
2395: do
2396: IFS=$as_save_IFS
2397: test -z "$as_dir" && as_dir=.
2398: $as_echo "PATH: $as_dir"
2399: done
2400: IFS=$as_save_IFS
2401:
2402: } >&5
2403:
2404: cat >&5 <<_ACEOF
2405:
2406:
2407: ## ----------- ##
2408: ## Core tests. ##
2409: ## ----------- ##
2410:
2411: _ACEOF
2412:
2413:
2414: # Keep a trace of the command line.
2415: # Strip out --no-create and --no-recursion so they do not pile up.
2416: # Strip out --silent because we don't want to record it for future runs.
2417: # Also quote any args containing shell meta-characters.
2418: # Make two passes to allow for proper duplicate-argument suppression.
2419: ac_configure_args=
2420: ac_configure_args0=
2421: ac_configure_args1=
2422: ac_must_keep_next=false
2423: for ac_pass in 1 2
2424: do
2425: for ac_arg
2426: do
2427: case $ac_arg in
2428: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2429: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2430: | -silent | --silent | --silen | --sile | --sil)
2431: continue ;;
2432: *\'*)
2433: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2434: esac
2435: case $ac_pass in
2436: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2437: 2)
2438: as_fn_append ac_configure_args1 " '$ac_arg'"
2439: if test $ac_must_keep_next = true; then
2440: ac_must_keep_next=false # Got value, back to normal.
2441: else
2442: case $ac_arg in
2443: *=* | --config-cache | -C | -disable-* | --disable-* \
2444: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2445: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2446: | -with-* | --with-* | -without-* | --without-* | --x)
2447: case "$ac_configure_args0 " in
2448: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2449: esac
2450: ;;
2451: -* ) ac_must_keep_next=true ;;
2452: esac
2453: fi
2454: as_fn_append ac_configure_args " '$ac_arg'"
2455: ;;
2456: esac
2457: done
2458: done
2459: { ac_configure_args0=; unset ac_configure_args0;}
2460: { ac_configure_args1=; unset ac_configure_args1;}
2461:
2462: # When interrupted or exit'd, cleanup temporary files, and complete
2463: # config.log. We remove comments because anyway the quotes in there
2464: # would cause problems or look ugly.
2465: # WARNING: Use '\'' to represent an apostrophe within the trap.
2466: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2467: trap 'exit_status=$?
2468: # Save into config.log some information that might help in debugging.
2469: {
2470: echo
2471:
2472: $as_echo "## ---------------- ##
2473: ## Cache variables. ##
2474: ## ---------------- ##"
2475: echo
2476: # The following way of writing the cache mishandles newlines in values,
2477: (
2478: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2479: eval ac_val=\$$ac_var
2480: case $ac_val in #(
2481: *${as_nl}*)
2482: case $ac_var in #(
2483: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2484: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2485: esac
2486: case $ac_var in #(
2487: _ | IFS | as_nl) ;; #(
2488: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2489: *) { eval $ac_var=; unset $ac_var;} ;;
2490: esac ;;
2491: esac
2492: done
2493: (set) 2>&1 |
2494: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2495: *${as_nl}ac_space=\ *)
2496: sed -n \
2497: "s/'\''/'\''\\\\'\'''\''/g;
2498: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2499: ;; #(
2500: *)
2501: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2502: ;;
2503: esac |
2504: sort
2505: )
2506: echo
2507:
2508: $as_echo "## ----------------- ##
2509: ## Output variables. ##
2510: ## ----------------- ##"
2511: echo
2512: for ac_var in $ac_subst_vars
2513: do
2514: eval ac_val=\$$ac_var
2515: case $ac_val in
2516: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2517: esac
2518: $as_echo "$ac_var='\''$ac_val'\''"
2519: done | sort
2520: echo
2521:
2522: if test -n "$ac_subst_files"; then
2523: $as_echo "## ------------------- ##
2524: ## File substitutions. ##
2525: ## ------------------- ##"
2526: echo
2527: for ac_var in $ac_subst_files
2528: do
2529: eval ac_val=\$$ac_var
2530: case $ac_val in
2531: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2532: esac
2533: $as_echo "$ac_var='\''$ac_val'\''"
2534: done | sort
2535: echo
2536: fi
2537:
2538: if test -s confdefs.h; then
2539: $as_echo "## ----------- ##
2540: ## confdefs.h. ##
2541: ## ----------- ##"
2542: echo
2543: cat confdefs.h
2544: echo
2545: fi
2546: test "$ac_signal" != 0 &&
2547: $as_echo "$as_me: caught signal $ac_signal"
2548: $as_echo "$as_me: exit $exit_status"
2549: } >&5
2550: rm -f core *.core core.conftest.* &&
2551: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2552: exit $exit_status
2553: ' 0
2554: for ac_signal in 1 2 13 15; do
2555: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2556: done
2557: ac_signal=0
2558:
2559: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2560: rm -f -r conftest* confdefs.h
2561:
2562: $as_echo "/* confdefs.h */" > confdefs.h
2563:
2564: # Predefined preprocessor variables.
2565:
2566: cat >>confdefs.h <<_ACEOF
2567: #define PACKAGE_NAME "$PACKAGE_NAME"
2568: _ACEOF
2569:
2570: cat >>confdefs.h <<_ACEOF
2571: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2572: _ACEOF
2573:
2574: cat >>confdefs.h <<_ACEOF
2575: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2576: _ACEOF
2577:
2578: cat >>confdefs.h <<_ACEOF
2579: #define PACKAGE_STRING "$PACKAGE_STRING"
2580: _ACEOF
2581:
2582: cat >>confdefs.h <<_ACEOF
2583: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2584: _ACEOF
2585:
2586: cat >>confdefs.h <<_ACEOF
2587: #define PACKAGE_URL "$PACKAGE_URL"
2588: _ACEOF
2589:
2590:
2591: # Let the site file select an alternate cache file if it wants to.
2592: # Prefer an explicitly selected file to automatically selected ones.
2593: ac_site_file1=NONE
2594: ac_site_file2=NONE
2595: if test -n "$CONFIG_SITE"; then
2596: # We do not want a PATH search for config.site.
2597: case $CONFIG_SITE in #((
2598: -*) ac_site_file1=./$CONFIG_SITE;;
2599: */*) ac_site_file1=$CONFIG_SITE;;
2600: *) ac_site_file1=./$CONFIG_SITE;;
2601: esac
2602: elif test "x$prefix" != xNONE; then
2603: ac_site_file1=$prefix/share/config.site
2604: ac_site_file2=$prefix/etc/config.site
2605: else
2606: ac_site_file1=$ac_default_prefix/share/config.site
2607: ac_site_file2=$ac_default_prefix/etc/config.site
2608: fi
2609: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2610: do
2611: test "x$ac_site_file" = xNONE && continue
2612: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2613: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2614: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2615: sed 's/^/| /' "$ac_site_file" >&5
2616: . "$ac_site_file" \
2617: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2618: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2619: as_fn_error $? "failed to load site script $ac_site_file
2620: See \`config.log' for more details" "$LINENO" 5; }
2621: fi
2622: done
2623:
2624: if test -r "$cache_file"; then
2625: # Some versions of bash will fail to source /dev/null (special files
2626: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2627: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2628: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2629: $as_echo "$as_me: loading cache $cache_file" >&6;}
2630: case $cache_file in
2631: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2632: *) . "./$cache_file";;
2633: esac
2634: fi
2635: else
2636: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2637: $as_echo "$as_me: creating cache $cache_file" >&6;}
2638: >$cache_file
2639: fi
2640:
2641: # Check that the precious variables saved in the cache have kept the same
2642: # value.
2643: ac_cache_corrupted=false
2644: for ac_var in $ac_precious_vars; do
2645: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2646: eval ac_new_set=\$ac_env_${ac_var}_set
2647: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2648: eval ac_new_val=\$ac_env_${ac_var}_value
2649: case $ac_old_set,$ac_new_set in
2650: set,)
2651: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2652: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2653: ac_cache_corrupted=: ;;
2654: ,set)
2655: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2656: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2657: ac_cache_corrupted=: ;;
2658: ,);;
2659: *)
2660: if test "x$ac_old_val" != "x$ac_new_val"; then
2661: # differences in whitespace do not lead to failure.
2662: ac_old_val_w=`echo x $ac_old_val`
2663: ac_new_val_w=`echo x $ac_new_val`
2664: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2665: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2666: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2667: ac_cache_corrupted=:
2668: else
2669: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2670: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2671: eval $ac_var=\$ac_old_val
2672: fi
2673: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2674: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2675: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2676: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2677: fi;;
2678: esac
2679: # Pass precious variables to config.status.
2680: if test "$ac_new_set" = set; then
2681: case $ac_new_val in
2682: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2683: *) ac_arg=$ac_var=$ac_new_val ;;
2684: esac
2685: case " $ac_configure_args " in
2686: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2687: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2688: esac
2689: fi
2690: done
2691: if $ac_cache_corrupted; then
2692: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2693: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2694: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2695: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2696: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2697: fi
2698: ## -------------------- ##
2699: ## Main body of script. ##
2700: ## -------------------- ##
2701:
2702: ac_ext=c
2703: ac_cpp='$CPP $CPPFLAGS'
2704: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2705: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2706: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2707:
2708:
2709:
2710: ac_aux_dir=
2711: for ac_dir in . "$srcdir"/.; do
2712: if test -f "$ac_dir/install-sh"; then
2713: ac_aux_dir=$ac_dir
2714: ac_install_sh="$ac_aux_dir/install-sh -c"
2715: break
2716: elif test -f "$ac_dir/install.sh"; then
2717: ac_aux_dir=$ac_dir
2718: ac_install_sh="$ac_aux_dir/install.sh -c"
2719: break
2720: elif test -f "$ac_dir/shtool"; then
2721: ac_aux_dir=$ac_dir
2722: ac_install_sh="$ac_aux_dir/shtool install -c"
2723: break
2724: fi
2725: done
2726: if test -z "$ac_aux_dir"; then
2727: as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2728: fi
2729:
2730: # These three variables are undocumented and unsupported,
2731: # and are intended to be withdrawn in a future Autoconf release.
2732: # They can cause serious problems if a builder's source tree is in a directory
2733: # whose full name contains unusual characters.
2734: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2735: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2736: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2737:
2738:
2739:
2740: # Increment ntp_configure_cache_version by one for each change to
2741: # configure.ac or .m4 files which invalidates cached values from
2742: # previous versions.
2743: #
2744: # If the change affects cache variables used only by the main NTP
2745: # configure.ac, then only its version number should be bumped, while
2746: # the subdir configure.ac version numbers should be unchanged. The
2747: # same is true for a test/variable that is used only by one subdir
2748: # being changed incompatibly; only that subdir's cache version needs
2749: # bumping.
2750: #
2751: # If a change affects variables shared by all NTP configure scripts,
2752: # please bump the version numbers of all three. If you are not sure,
2753: # the safe choice is to bump all three on any cache-invalidating change.
2754: #
2755: # In order to avoid the risk of version stamp collision between -stable
2756: # and -dev branches, do not simply increment the version, instead use
2757: # the date YYYYMMDD optionally with -HHMM if there is more than one
2758: # bump in a day.
2759:
2760: ntp_configure_cache_version=20091117
2761:
2762: # When the cache version of config.cache and configure do not
2763: # match, NTP_CACHEVERSION will flush the cache.
2764:
2765:
2766:
2767: ntp_cache_flush=1
2768:
2769: case "$ntp_cv_main_cache_version" in
2770: $ntp_configure_cache_version)
2771: # same version, good
2772: ntp_cache_flush=0
2773: ;;
2774: '')
2775: # No cache, predates ntp_cv_main_cache_version, or is empty.
2776: case "$cache_file" in
2777: /dev/null)
2778: ntp_cache_flush=0
2779: ;;
2780: *)
2781: case "$NTP_CACHEVERSION_PARENT" in
2782: '')
2783: # Do not clear the cache immediately after it is created
2784: # empty as it is noisy. Differentiate a newly-created
2785: # config.cache from one predating the cache version
2786: # mechanism by looking for the first cached variable set
2787: # by Autoconf
2788: case "$ac_cv_path_install" in
2789: '')
2790: # empty config.cache file
2791: ntp_cache_flush=0
2792: esac
2793: ;;
2794: *)
2795: # Parent configure just created cache from empty,
2796: # flushing would be counterproductive.
2797: ntp_cache_flush=0;
2798: esac
2799: esac
2800: ;;
2801: *)
2802: # configure cache version mismatches config.cache version
2803: esac
2804:
2805: case "$ntp_cache_flush" in
2806: 1)
2807: c_version="${ntp_cv_main_cache_version:-(no version found)}"
2808:
2809: # Do we flush all variables or exclude others' version stamps?
2810:
2811: case "$NTP_CACHEVERSION_PARENT" in
2812: '')
2813: # Clear all *_cv_* variables including our child subdirs'
2814: # ntp_cv_*_cache_version variables. This prevents subdir
2815: # configure scripts from noticing a version mismatch just
2816: # after the top configure in the invocation cleared and
2817: # recreated the cache.
2818:
2819: c_varname_list=`set |
2820: sed -n -e 's/=.*$//' \
2821: -e '/_cv_/p'
2822: `
2823: ;;
2824: *)
2825: # This is not the top configure this particular invocation.
2826: # Clear all *_cv_* variables sparing the version stamps
2827: # of other configure scripts, so we don't trigger
2828: # useless repeated clearings.
2829:
2830: c_varname_list=`set |
2831: sed -n -e 's/=.*$//' \
2832: -e '/ntp_cv_.*_cache_version/d' \
2833: -e '/_cv_/p'
2834: `
2835: esac
2836:
2837: for c_varname in $c_varname_list
2838: do
2839: { eval $c_varname=; unset $c_varname;}
2840: done
2841:
2842: { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
2843: $as_echo "$as_me: $cache_file saved by another version, ignored." >&6;}
2844: { $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $ntp_configure_cache_version" >&5
2845: $as_echo "$as_me: configure script cache version: $ntp_configure_cache_version" >&6;}
2846: { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
2847: $as_echo "$as_me: $cache_file version: $c_version" >&6;}
2848: { c_varname=; unset c_varname;}
2849: { c_varname_list=; unset c_varname_list;}
2850: { c_version=; unset c_version;}
2851: esac
2852:
2853: { ntp_cache_flush=; unset ntp_cache_flush;}
2854:
2855: # save configure version in config.cache for next time
2856: ntp_cv_main_cache_version="$ntp_configure_cache_version"
2857:
2858: # let any subdir configure.ac NTP_CACHEVERSION invocations
2859: # know they are not the top level.
2860: NTP_CACHEVERSION_PARENT='main' ; export NTP_CACHEVERSION_PARENT
2861:
2862:
2863: am__api_version='1.11'
2864:
2865: # Find a good install program. We prefer a C program (faster),
2866: # so one script is as good as another. But avoid the broken or
2867: # incompatible versions:
2868: # SysV /etc/install, /usr/sbin/install
2869: # SunOS /usr/etc/install
2870: # IRIX /sbin/install
2871: # AIX /bin/install
2872: # AmigaOS /C/install, which installs bootblocks on floppy discs
2873: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2874: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2875: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2876: # OS/2's system install, which has a completely different semantic
2877: # ./install, which can be erroneously created by make from ./install.sh.
2878: # Reject install programs that cannot install multiple files.
2879: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2880: $as_echo_n "checking for a BSD-compatible install... " >&6; }
2881: if test -z "$INSTALL"; then
2882: if ${ac_cv_path_install+:} false; then :
2883: $as_echo_n "(cached) " >&6
2884: else
2885: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886: for as_dir in $PATH
2887: do
2888: IFS=$as_save_IFS
2889: test -z "$as_dir" && as_dir=.
2890: # Account for people who put trailing slashes in PATH elements.
2891: case $as_dir/ in #((
2892: ./ | .// | /[cC]/* | \
2893: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2894: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2895: /usr/ucb/* ) ;;
2896: *)
2897: # OSF1 and SCO ODT 3.0 have their own names for install.
2898: # Don't use installbsd from OSF since it installs stuff as root
2899: # by default.
2900: for ac_prog in ginstall scoinst install; do
2901: for ac_exec_ext in '' $ac_executable_extensions; do
2902: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2903: if test $ac_prog = install &&
2904: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2905: # AIX install. It has an incompatible calling convention.
2906: :
2907: elif test $ac_prog = install &&
2908: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2909: # program-specific install script used by HP pwplus--don't use.
2910: :
2911: else
2912: rm -rf conftest.one conftest.two conftest.dir
2913: echo one > conftest.one
2914: echo two > conftest.two
2915: mkdir conftest.dir
2916: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2917: test -s conftest.one && test -s conftest.two &&
2918: test -s conftest.dir/conftest.one &&
2919: test -s conftest.dir/conftest.two
2920: then
2921: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2922: break 3
2923: fi
2924: fi
2925: fi
2926: done
2927: done
2928: ;;
2929: esac
2930:
2931: done
2932: IFS=$as_save_IFS
2933:
2934: rm -rf conftest.one conftest.two conftest.dir
2935:
2936: fi
2937: if test "${ac_cv_path_install+set}" = set; then
2938: INSTALL=$ac_cv_path_install
2939: else
2940: # As a last resort, use the slow shell script. Don't cache a
2941: # value for INSTALL within a source directory, because that will
2942: # break other packages using the cache if that directory is
2943: # removed, or if the value is a relative name.
2944: INSTALL=$ac_install_sh
2945: fi
2946: fi
2947: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2948: $as_echo "$INSTALL" >&6; }
2949:
2950: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2951: # It thinks the first close brace ends the variable substitution.
2952: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2953:
2954: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2955:
2956: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2957:
2958: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2959: $as_echo_n "checking whether build environment is sane... " >&6; }
2960: # Just in case
2961: sleep 1
2962: echo timestamp > conftest.file
2963: # Reject unsafe characters in $srcdir or the absolute working directory
2964: # name. Accept space and tab only in the latter.
2965: am_lf='
2966: '
2967: case `pwd` in
2968: *[\\\"\#\$\&\'\`$am_lf]*)
2969: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2970: esac
2971: case $srcdir in
2972: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2973: as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2974: esac
2975:
2976: # Do `set' in a subshell so we don't clobber the current shell's
2977: # arguments. Must try -L first in case configure is actually a
2978: # symlink; some systems play weird games with the mod time of symlinks
2979: # (eg FreeBSD returns the mod time of the symlink's containing
2980: # directory).
2981: if (
2982: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2983: if test "$*" = "X"; then
2984: # -L didn't work.
2985: set X `ls -t "$srcdir/configure" conftest.file`
2986: fi
2987: rm -f conftest.file
2988: if test "$*" != "X $srcdir/configure conftest.file" \
2989: && test "$*" != "X conftest.file $srcdir/configure"; then
2990:
2991: # If neither matched, then we have a broken ls. This can happen
2992: # if, for instance, CONFIG_SHELL is bash and it inherits a
2993: # broken ls alias from the environment. This has actually
2994: # happened. Such a system could not be considered "sane".
2995: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2996: alias in your environment" "$LINENO" 5
2997: fi
2998:
2999: test "$2" = conftest.file
3000: )
3001: then
3002: # Ok.
3003: :
3004: else
3005: as_fn_error $? "newly created file is older than distributed files!
3006: Check your system clock" "$LINENO" 5
3007: fi
3008: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3009: $as_echo "yes" >&6; }
3010: test "$program_prefix" != NONE &&
3011: program_transform_name="s&^&$program_prefix&;$program_transform_name"
3012: # Use a double $ so make ignores it.
3013: test "$program_suffix" != NONE &&
3014: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3015: # Double any \ or $.
3016: # By default was `s,x,x', remove it if useless.
3017: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3018: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3019:
3020: # expand $ac_aux_dir to an absolute path
3021: am_aux_dir=`cd $ac_aux_dir && pwd`
3022:
3023: if test x"${MISSING+set}" != xset; then
3024: case $am_aux_dir in
3025: *\ * | *\ *)
3026: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3027: *)
3028: MISSING="\${SHELL} $am_aux_dir/missing" ;;
3029: esac
3030: fi
3031: # Use eval to expand $SHELL
3032: if eval "$MISSING --run true"; then
3033: am_missing_run="$MISSING --run "
3034: else
3035: am_missing_run=
3036: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3037: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3038: fi
3039:
3040: if test x"${install_sh}" != xset; then
3041: case $am_aux_dir in
3042: *\ * | *\ *)
3043: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3044: *)
3045: install_sh="\${SHELL} $am_aux_dir/install-sh"
3046: esac
3047: fi
3048:
3049: # Installed binaries are usually stripped using `strip' when the user
3050: # run `make install-strip'. However `strip' might not be the right
3051: # tool to use in cross-compilation environments, therefore Automake
3052: # will honor the `STRIP' environment variable to overrule this program.
3053: if test "$cross_compiling" != no; then
3054: if test -n "$ac_tool_prefix"; then
3055: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3056: set dummy ${ac_tool_prefix}strip; ac_word=$2
3057: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3058: $as_echo_n "checking for $ac_word... " >&6; }
3059: if ${ac_cv_prog_STRIP+:} false; then :
3060: $as_echo_n "(cached) " >&6
3061: else
3062: if test -n "$STRIP"; then
3063: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3064: else
3065: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066: for as_dir in $PATH
3067: do
3068: IFS=$as_save_IFS
3069: test -z "$as_dir" && as_dir=.
3070: for ac_exec_ext in '' $ac_executable_extensions; do
3071: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3072: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3073: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3074: break 2
3075: fi
3076: done
3077: done
3078: IFS=$as_save_IFS
3079:
3080: fi
3081: fi
3082: STRIP=$ac_cv_prog_STRIP
3083: if test -n "$STRIP"; then
3084: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3085: $as_echo "$STRIP" >&6; }
3086: else
3087: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088: $as_echo "no" >&6; }
3089: fi
3090:
3091:
3092: fi
3093: if test -z "$ac_cv_prog_STRIP"; then
3094: ac_ct_STRIP=$STRIP
3095: # Extract the first word of "strip", so it can be a program name with args.
3096: set dummy strip; ac_word=$2
3097: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098: $as_echo_n "checking for $ac_word... " >&6; }
3099: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3100: $as_echo_n "(cached) " >&6
3101: else
3102: if test -n "$ac_ct_STRIP"; then
3103: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3104: else
3105: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106: for as_dir in $PATH
3107: do
3108: IFS=$as_save_IFS
3109: test -z "$as_dir" && as_dir=.
3110: for ac_exec_ext in '' $ac_executable_extensions; do
3111: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3112: ac_cv_prog_ac_ct_STRIP="strip"
3113: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3114: break 2
3115: fi
3116: done
3117: done
3118: IFS=$as_save_IFS
3119:
3120: fi
3121: fi
3122: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3123: if test -n "$ac_ct_STRIP"; then
3124: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3125: $as_echo "$ac_ct_STRIP" >&6; }
3126: else
3127: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128: $as_echo "no" >&6; }
3129: fi
3130:
3131: if test "x$ac_ct_STRIP" = x; then
3132: STRIP=":"
3133: else
3134: case $cross_compiling:$ac_tool_warned in
3135: yes:)
3136: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3137: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3138: ac_tool_warned=yes ;;
3139: esac
3140: STRIP=$ac_ct_STRIP
3141: fi
3142: else
3143: STRIP="$ac_cv_prog_STRIP"
3144: fi
3145:
3146: fi
3147: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3148:
3149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3150: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3151: if test -z "$MKDIR_P"; then
3152: if ${ac_cv_path_mkdir+:} false; then :
3153: $as_echo_n "(cached) " >&6
3154: else
3155: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3157: do
3158: IFS=$as_save_IFS
3159: test -z "$as_dir" && as_dir=.
3160: for ac_prog in mkdir gmkdir; do
3161: for ac_exec_ext in '' $ac_executable_extensions; do
3162: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3163: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3164: 'mkdir (GNU coreutils) '* | \
3165: 'mkdir (coreutils) '* | \
3166: 'mkdir (fileutils) '4.1*)
3167: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3168: break 3;;
3169: esac
3170: done
3171: done
3172: done
3173: IFS=$as_save_IFS
3174:
3175: fi
3176:
3177: test -d ./--version && rmdir ./--version
3178: if test "${ac_cv_path_mkdir+set}" = set; then
3179: MKDIR_P="$ac_cv_path_mkdir -p"
3180: else
3181: # As a last resort, use the slow shell script. Don't cache a
3182: # value for MKDIR_P within a source directory, because that will
3183: # break other packages using the cache if that directory is
3184: # removed, or if the value is a relative name.
3185: MKDIR_P="$ac_install_sh -d"
3186: fi
3187: fi
3188: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3189: $as_echo "$MKDIR_P" >&6; }
3190:
3191: mkdir_p="$MKDIR_P"
3192: case $mkdir_p in
3193: [\\/$]* | ?:[\\/]*) ;;
3194: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3195: esac
3196:
3197: for ac_prog in gawk mawk nawk awk
3198: do
3199: # Extract the first word of "$ac_prog", so it can be a program name with args.
3200: set dummy $ac_prog; ac_word=$2
3201: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202: $as_echo_n "checking for $ac_word... " >&6; }
3203: if ${ac_cv_prog_AWK+:} false; then :
3204: $as_echo_n "(cached) " >&6
3205: else
3206: if test -n "$AWK"; then
3207: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3208: else
3209: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210: for as_dir in $PATH
3211: do
3212: IFS=$as_save_IFS
3213: test -z "$as_dir" && as_dir=.
3214: for ac_exec_ext in '' $ac_executable_extensions; do
3215: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3216: ac_cv_prog_AWK="$ac_prog"
3217: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218: break 2
3219: fi
3220: done
3221: done
3222: IFS=$as_save_IFS
3223:
3224: fi
3225: fi
3226: AWK=$ac_cv_prog_AWK
3227: if test -n "$AWK"; then
3228: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3229: $as_echo "$AWK" >&6; }
3230: else
3231: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232: $as_echo "no" >&6; }
3233: fi
3234:
3235:
3236: test -n "$AWK" && break
3237: done
3238:
3239: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3240: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3241: set x ${MAKE-make}
3242: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3243: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3244: $as_echo_n "(cached) " >&6
3245: else
3246: cat >conftest.make <<\_ACEOF
3247: SHELL = /bin/sh
3248: all:
3249: @echo '@@@%%%=$(MAKE)=@@@%%%'
3250: _ACEOF
3251: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3252: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3253: *@@@%%%=?*=@@@%%%*)
3254: eval ac_cv_prog_make_${ac_make}_set=yes;;
3255: *)
3256: eval ac_cv_prog_make_${ac_make}_set=no;;
3257: esac
3258: rm -f conftest.make
3259: fi
3260: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3261: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3262: $as_echo "yes" >&6; }
3263: SET_MAKE=
3264: else
3265: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266: $as_echo "no" >&6; }
3267: SET_MAKE="MAKE=${MAKE-make}"
3268: fi
3269:
3270: rm -rf .tst 2>/dev/null
3271: mkdir .tst 2>/dev/null
3272: if test -d .tst; then
3273: am__leading_dot=.
3274: else
3275: am__leading_dot=_
3276: fi
3277: rmdir .tst 2>/dev/null
3278:
3279: if test "`cd $srcdir && pwd`" != "`pwd`"; then
3280: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3281: # is not polluted with repeated "-I."
3282: am__isrc=' -I$(srcdir)'
3283: # test to see if srcdir already configured
3284: if test -f $srcdir/config.status; then
3285: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3286: fi
3287: fi
3288:
3289: # test whether we have cygpath
3290: if test -z "$CYGPATH_W"; then
3291: if (cygpath --version) >/dev/null 2>/dev/null; then
3292: CYGPATH_W='cygpath -w'
3293: else
3294: CYGPATH_W=echo
3295: fi
3296: fi
3297:
3298:
3299: # Define the identity of the package.
3300: PACKAGE='ntp'
3301: VERSION='4.2.6p5'
3302:
3303:
3304: cat >>confdefs.h <<_ACEOF
3305: #define PACKAGE "$PACKAGE"
3306: _ACEOF
3307:
3308:
3309: cat >>confdefs.h <<_ACEOF
3310: #define VERSION "$VERSION"
3311: _ACEOF
3312:
3313: # Some tools Automake needs.
3314:
3315: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3316:
3317:
3318: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3319:
3320:
3321: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3322:
3323:
3324: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3325:
3326:
3327: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3328:
3329: # We need awk for the "check" target. The system "awk" is bad on
3330: # some platforms.
3331: # Always define AMTAR for backward compatibility.
3332:
3333: AMTAR=${AMTAR-"${am_missing_run}tar"}
3334:
3335: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3336:
3337:
3338:
3339:
3340:
3341: # Make sure we can run config.sub.
3342: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3343: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3344:
3345: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3346: $as_echo_n "checking build system type... " >&6; }
3347: if ${ac_cv_build+:} false; then :
3348: $as_echo_n "(cached) " >&6
3349: else
3350: ac_build_alias=$build_alias
3351: test "x$ac_build_alias" = x &&
3352: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3353: test "x$ac_build_alias" = x &&
3354: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3355: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3356: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3357:
3358: fi
3359: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3360: $as_echo "$ac_cv_build" >&6; }
3361: case $ac_cv_build in
3362: *-*-*) ;;
3363: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3364: esac
3365: build=$ac_cv_build
3366: ac_save_IFS=$IFS; IFS='-'
3367: set x $ac_cv_build
3368: shift
3369: build_cpu=$1
3370: build_vendor=$2
3371: shift; shift
3372: # Remember, the first character of IFS is used to create $*,
3373: # except with old shells:
3374: build_os=$*
3375: IFS=$ac_save_IFS
3376: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3377:
3378:
3379: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3380: $as_echo_n "checking host system type... " >&6; }
3381: if ${ac_cv_host+:} false; then :
3382: $as_echo_n "(cached) " >&6
3383: else
3384: if test "x$host_alias" = x; then
3385: ac_cv_host=$ac_cv_build
3386: else
3387: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3388: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3389: fi
3390:
3391: fi
3392: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3393: $as_echo "$ac_cv_host" >&6; }
3394: case $ac_cv_host in
3395: *-*-*) ;;
3396: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3397: esac
3398: host=$ac_cv_host
3399: ac_save_IFS=$IFS; IFS='-'
3400: set x $ac_cv_host
3401: shift
3402: host_cpu=$1
3403: host_vendor=$2
3404: shift; shift
3405: # Remember, the first character of IFS is used to create $*,
3406: # except with old shells:
3407: host_os=$*
3408: IFS=$ac_save_IFS
3409: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3410:
3411:
3412:
3413: cat >>confdefs.h <<_ACEOF
3414: #define STR_SYSTEM "$host"
3415: _ACEOF
3416:
3417: ac_config_headers="$ac_config_headers config.h"
3418:
3419:
3420: ntp_atom_ok=${ntp_atom_ok=no}
3421: ntp_oncore_ok=${ntp_oncore_ok=no}
3422: ntp_parse_ok=${ntp_parse_ok=no}
3423: ntp_ripe_ncc_ok=${ntp_parse_ok=no}
3424: ntp_jupiter_ok=${ntp_jupiter_ok=no}
3425:
3426: DEPDIR="${am__leading_dot}deps"
3427:
3428: ac_config_commands="$ac_config_commands depfiles"
3429:
3430:
3431: am_make=${MAKE-make}
3432: cat > confinc << 'END'
3433: am__doit:
3434: @echo this is the am__doit target
3435: .PHONY: am__doit
3436: END
3437: # If we don't find an include directive, just comment out the code.
3438: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3439: $as_echo_n "checking for style of include used by $am_make... " >&6; }
3440: am__include="#"
3441: am__quote=
3442: _am_result=none
3443: # First try GNU make style include.
3444: echo "include confinc" > confmf
3445: # Ignore all kinds of additional output from `make'.
3446: case `$am_make -s -f confmf 2> /dev/null` in #(
3447: *the\ am__doit\ target*)
3448: am__include=include
3449: am__quote=
3450: _am_result=GNU
3451: ;;
3452: esac
3453: # Now try BSD make style include.
3454: if test "$am__include" = "#"; then
3455: echo '.include "confinc"' > confmf
3456: case `$am_make -s -f confmf 2> /dev/null` in #(
3457: *the\ am__doit\ target*)
3458: am__include=.include
3459: am__quote="\""
3460: _am_result=BSD
3461: ;;
3462: esac
3463: fi
3464:
3465:
3466: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3467: $as_echo "$_am_result" >&6; }
3468: rm -f confinc confmf
3469:
3470: # Check whether --enable-dependency-tracking was given.
3471: if test "${enable_dependency_tracking+set}" = set; then :
3472: enableval=$enable_dependency_tracking;
3473: fi
3474:
3475: if test "x$enable_dependency_tracking" != xno; then
3476: am_depcomp="$ac_aux_dir/depcomp"
3477: AMDEPBACKSLASH='\'
3478: fi
3479: if test "x$enable_dependency_tracking" != xno; then
3480: AMDEP_TRUE=
3481: AMDEP_FALSE='#'
3482: else
3483: AMDEP_TRUE='#'
3484: AMDEP_FALSE=
3485: fi
3486:
3487:
3488: ac_ext=c
3489: ac_cpp='$CPP $CPPFLAGS'
3490: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3493: if test -n "$ac_tool_prefix"; then
3494: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3495: set dummy ${ac_tool_prefix}gcc; ac_word=$2
3496: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3497: $as_echo_n "checking for $ac_word... " >&6; }
3498: if ${ac_cv_prog_CC+:} false; then :
3499: $as_echo_n "(cached) " >&6
3500: else
3501: if test -n "$CC"; then
3502: ac_cv_prog_CC="$CC" # Let the user override the test.
3503: else
3504: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505: for as_dir in $PATH
3506: do
3507: IFS=$as_save_IFS
3508: test -z "$as_dir" && as_dir=.
3509: for ac_exec_ext in '' $ac_executable_extensions; do
3510: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3511: ac_cv_prog_CC="${ac_tool_prefix}gcc"
3512: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3513: break 2
3514: fi
3515: done
3516: done
3517: IFS=$as_save_IFS
3518:
3519: fi
3520: fi
3521: CC=$ac_cv_prog_CC
3522: if test -n "$CC"; then
3523: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3524: $as_echo "$CC" >&6; }
3525: else
3526: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527: $as_echo "no" >&6; }
3528: fi
3529:
3530:
3531: fi
3532: if test -z "$ac_cv_prog_CC"; then
3533: ac_ct_CC=$CC
3534: # Extract the first word of "gcc", so it can be a program name with args.
3535: set dummy gcc; ac_word=$2
3536: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3537: $as_echo_n "checking for $ac_word... " >&6; }
3538: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3539: $as_echo_n "(cached) " >&6
3540: else
3541: if test -n "$ac_ct_CC"; then
3542: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3543: else
3544: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545: for as_dir in $PATH
3546: do
3547: IFS=$as_save_IFS
3548: test -z "$as_dir" && as_dir=.
3549: for ac_exec_ext in '' $ac_executable_extensions; do
3550: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3551: ac_cv_prog_ac_ct_CC="gcc"
3552: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3553: break 2
3554: fi
3555: done
3556: done
3557: IFS=$as_save_IFS
3558:
3559: fi
3560: fi
3561: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3562: if test -n "$ac_ct_CC"; then
3563: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3564: $as_echo "$ac_ct_CC" >&6; }
3565: else
3566: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567: $as_echo "no" >&6; }
3568: fi
3569:
3570: if test "x$ac_ct_CC" = x; then
3571: CC=""
3572: else
3573: case $cross_compiling:$ac_tool_warned in
3574: yes:)
3575: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3576: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3577: ac_tool_warned=yes ;;
3578: esac
3579: CC=$ac_ct_CC
3580: fi
3581: else
3582: CC="$ac_cv_prog_CC"
3583: fi
3584:
3585: if test -z "$CC"; then
3586: if test -n "$ac_tool_prefix"; then
3587: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3588: set dummy ${ac_tool_prefix}cc; ac_word=$2
3589: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590: $as_echo_n "checking for $ac_word... " >&6; }
3591: if ${ac_cv_prog_CC+:} false; then :
3592: $as_echo_n "(cached) " >&6
3593: else
3594: if test -n "$CC"; then
3595: ac_cv_prog_CC="$CC" # Let the user override the test.
3596: else
3597: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598: for as_dir in $PATH
3599: do
3600: IFS=$as_save_IFS
3601: test -z "$as_dir" && as_dir=.
3602: for ac_exec_ext in '' $ac_executable_extensions; do
3603: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3604: ac_cv_prog_CC="${ac_tool_prefix}cc"
3605: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3606: break 2
3607: fi
3608: done
3609: done
3610: IFS=$as_save_IFS
3611:
3612: fi
3613: fi
3614: CC=$ac_cv_prog_CC
3615: if test -n "$CC"; then
3616: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3617: $as_echo "$CC" >&6; }
3618: else
3619: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620: $as_echo "no" >&6; }
3621: fi
3622:
3623:
3624: fi
3625: fi
3626: if test -z "$CC"; then
3627: # Extract the first word of "cc", so it can be a program name with args.
3628: set dummy cc; ac_word=$2
3629: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630: $as_echo_n "checking for $ac_word... " >&6; }
3631: if ${ac_cv_prog_CC+:} false; then :
3632: $as_echo_n "(cached) " >&6
3633: else
3634: if test -n "$CC"; then
3635: ac_cv_prog_CC="$CC" # Let the user override the test.
3636: else
3637: ac_prog_rejected=no
3638: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639: for as_dir in $PATH
3640: do
3641: IFS=$as_save_IFS
3642: test -z "$as_dir" && as_dir=.
3643: for ac_exec_ext in '' $ac_executable_extensions; do
3644: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3645: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3646: ac_prog_rejected=yes
3647: continue
3648: fi
3649: ac_cv_prog_CC="cc"
3650: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651: break 2
3652: fi
3653: done
3654: done
3655: IFS=$as_save_IFS
3656:
3657: if test $ac_prog_rejected = yes; then
3658: # We found a bogon in the path, so make sure we never use it.
3659: set dummy $ac_cv_prog_CC
3660: shift
3661: if test $# != 0; then
3662: # We chose a different compiler from the bogus one.
3663: # However, it has the same basename, so the bogon will be chosen
3664: # first if we set CC to just the basename; use the full file name.
3665: shift
3666: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3667: fi
3668: fi
3669: fi
3670: fi
3671: CC=$ac_cv_prog_CC
3672: if test -n "$CC"; then
3673: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3674: $as_echo "$CC" >&6; }
3675: else
3676: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677: $as_echo "no" >&6; }
3678: fi
3679:
3680:
3681: fi
3682: if test -z "$CC"; then
3683: if test -n "$ac_tool_prefix"; then
3684: for ac_prog in cl.exe
3685: do
3686: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3687: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3688: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3689: $as_echo_n "checking for $ac_word... " >&6; }
3690: if ${ac_cv_prog_CC+:} false; then :
3691: $as_echo_n "(cached) " >&6
3692: else
3693: if test -n "$CC"; then
3694: ac_cv_prog_CC="$CC" # Let the user override the test.
3695: else
3696: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697: for as_dir in $PATH
3698: do
3699: IFS=$as_save_IFS
3700: test -z "$as_dir" && as_dir=.
3701: for ac_exec_ext in '' $ac_executable_extensions; do
3702: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3703: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3704: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3705: break 2
3706: fi
3707: done
3708: done
3709: IFS=$as_save_IFS
3710:
3711: fi
3712: fi
3713: CC=$ac_cv_prog_CC
3714: if test -n "$CC"; then
3715: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3716: $as_echo "$CC" >&6; }
3717: else
3718: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3719: $as_echo "no" >&6; }
3720: fi
3721:
3722:
3723: test -n "$CC" && break
3724: done
3725: fi
3726: if test -z "$CC"; then
3727: ac_ct_CC=$CC
3728: for ac_prog in cl.exe
3729: do
3730: # Extract the first word of "$ac_prog", so it can be a program name with args.
3731: set dummy $ac_prog; ac_word=$2
3732: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3733: $as_echo_n "checking for $ac_word... " >&6; }
3734: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3735: $as_echo_n "(cached) " >&6
3736: else
3737: if test -n "$ac_ct_CC"; then
3738: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3739: else
3740: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741: for as_dir in $PATH
3742: do
3743: IFS=$as_save_IFS
3744: test -z "$as_dir" && as_dir=.
3745: for ac_exec_ext in '' $ac_executable_extensions; do
3746: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3747: ac_cv_prog_ac_ct_CC="$ac_prog"
3748: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3749: break 2
3750: fi
3751: done
3752: done
3753: IFS=$as_save_IFS
3754:
3755: fi
3756: fi
3757: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3758: if test -n "$ac_ct_CC"; then
3759: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3760: $as_echo "$ac_ct_CC" >&6; }
3761: else
3762: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763: $as_echo "no" >&6; }
3764: fi
3765:
3766:
3767: test -n "$ac_ct_CC" && break
3768: done
3769:
3770: if test "x$ac_ct_CC" = x; then
3771: CC=""
3772: else
3773: case $cross_compiling:$ac_tool_warned in
3774: yes:)
3775: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3776: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3777: ac_tool_warned=yes ;;
3778: esac
3779: CC=$ac_ct_CC
3780: fi
3781: fi
3782:
3783: fi
3784:
3785:
3786: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3787: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3788: as_fn_error $? "no acceptable C compiler found in \$PATH
3789: See \`config.log' for more details" "$LINENO" 5; }
3790:
3791: # Provide some information about the compiler.
3792: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3793: set X $ac_compile
3794: ac_compiler=$2
3795: for ac_option in --version -v -V -qversion; do
3796: { { ac_try="$ac_compiler $ac_option >&5"
3797: case "(($ac_try" in
3798: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799: *) ac_try_echo=$ac_try;;
3800: esac
3801: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802: $as_echo "$ac_try_echo"; } >&5
3803: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3804: ac_status=$?
3805: if test -s conftest.err; then
3806: sed '10a\
3807: ... rest of stderr output deleted ...
3808: 10q' conftest.err >conftest.er1
3809: cat conftest.er1 >&5
3810: fi
3811: rm -f conftest.er1 conftest.err
3812: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813: test $ac_status = 0; }
3814: done
3815:
3816: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817: /* end confdefs.h. */
3818:
3819: int
3820: main ()
3821: {
3822:
3823: ;
3824: return 0;
3825: }
3826: _ACEOF
3827: ac_clean_files_save=$ac_clean_files
3828: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3829: # Try to create an executable without -o first, disregard a.out.
3830: # It will help us diagnose broken compilers, and finding out an intuition
3831: # of exeext.
3832: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3833: $as_echo_n "checking whether the C compiler works... " >&6; }
3834: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3835:
3836: # The possible output files:
3837: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3838:
3839: ac_rmfiles=
3840: for ac_file in $ac_files
3841: do
3842: case $ac_file in
3843: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3844: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3845: esac
3846: done
3847: rm -f $ac_rmfiles
3848:
3849: if { { ac_try="$ac_link_default"
3850: case "(($ac_try" in
3851: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852: *) ac_try_echo=$ac_try;;
3853: esac
3854: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855: $as_echo "$ac_try_echo"; } >&5
3856: (eval "$ac_link_default") 2>&5
3857: ac_status=$?
3858: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859: test $ac_status = 0; }; then :
3860: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3861: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3862: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3863: # so that the user can short-circuit this test for compilers unknown to
3864: # Autoconf.
3865: for ac_file in $ac_files ''
3866: do
3867: test -f "$ac_file" || continue
3868: case $ac_file in
3869: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3870: ;;
3871: [ab].out )
3872: # We found the default executable, but exeext='' is most
3873: # certainly right.
3874: break;;
3875: *.* )
3876: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3877: then :; else
3878: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3879: fi
3880: # We set ac_cv_exeext here because the later test for it is not
3881: # safe: cross compilers may not add the suffix if given an `-o'
3882: # argument, so we may need to know it at that point already.
3883: # Even if this section looks crufty: it has the advantage of
3884: # actually working.
3885: break;;
3886: * )
3887: break;;
3888: esac
3889: done
3890: test "$ac_cv_exeext" = no && ac_cv_exeext=
3891:
3892: else
3893: ac_file=''
3894: fi
3895: if test -z "$ac_file"; then :
3896: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3897: $as_echo "no" >&6; }
3898: $as_echo "$as_me: failed program was:" >&5
3899: sed 's/^/| /' conftest.$ac_ext >&5
3900:
3901: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3902: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3903: as_fn_error 77 "C compiler cannot create executables
3904: See \`config.log' for more details" "$LINENO" 5; }
3905: else
3906: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3907: $as_echo "yes" >&6; }
3908: fi
3909: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3910: $as_echo_n "checking for C compiler default output file name... " >&6; }
3911: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3912: $as_echo "$ac_file" >&6; }
3913: ac_exeext=$ac_cv_exeext
3914:
3915: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3916: ac_clean_files=$ac_clean_files_save
3917: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3918: $as_echo_n "checking for suffix of executables... " >&6; }
3919: if { { ac_try="$ac_link"
3920: case "(($ac_try" in
3921: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922: *) ac_try_echo=$ac_try;;
3923: esac
3924: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3925: $as_echo "$ac_try_echo"; } >&5
3926: (eval "$ac_link") 2>&5
3927: ac_status=$?
3928: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3929: test $ac_status = 0; }; then :
3930: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3931: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3932: # work properly (i.e., refer to `conftest.exe'), while it won't with
3933: # `rm'.
3934: for ac_file in conftest.exe conftest conftest.*; do
3935: test -f "$ac_file" || continue
3936: case $ac_file in
3937: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3938: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3939: break;;
3940: * ) break;;
3941: esac
3942: done
3943: else
3944: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3945: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3946: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3947: See \`config.log' for more details" "$LINENO" 5; }
3948: fi
3949: rm -f conftest conftest$ac_cv_exeext
3950: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3951: $as_echo "$ac_cv_exeext" >&6; }
3952:
3953: rm -f conftest.$ac_ext
3954: EXEEXT=$ac_cv_exeext
3955: ac_exeext=$EXEEXT
3956: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957: /* end confdefs.h. */
3958: #include <stdio.h>
3959: int
3960: main ()
3961: {
3962: FILE *f = fopen ("conftest.out", "w");
3963: return ferror (f) || fclose (f) != 0;
3964:
3965: ;
3966: return 0;
3967: }
3968: _ACEOF
3969: ac_clean_files="$ac_clean_files conftest.out"
3970: # Check that the compiler produces executables we can run. If not, either
3971: # the compiler is broken, or we cross compile.
3972: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3973: $as_echo_n "checking whether we are cross compiling... " >&6; }
3974: if test "$cross_compiling" != yes; then
3975: { { ac_try="$ac_link"
3976: case "(($ac_try" in
3977: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978: *) ac_try_echo=$ac_try;;
3979: esac
3980: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3981: $as_echo "$ac_try_echo"; } >&5
3982: (eval "$ac_link") 2>&5
3983: ac_status=$?
3984: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3985: test $ac_status = 0; }
3986: if { ac_try='./conftest$ac_cv_exeext'
3987: { { case "(($ac_try" in
3988: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989: *) ac_try_echo=$ac_try;;
3990: esac
3991: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3992: $as_echo "$ac_try_echo"; } >&5
3993: (eval "$ac_try") 2>&5
3994: ac_status=$?
3995: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3996: test $ac_status = 0; }; }; then
3997: cross_compiling=no
3998: else
3999: if test "$cross_compiling" = maybe; then
4000: cross_compiling=yes
4001: else
4002: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4003: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4004: as_fn_error $? "cannot run C compiled programs.
4005: If you meant to cross compile, use \`--host'.
4006: See \`config.log' for more details" "$LINENO" 5; }
4007: fi
4008: fi
4009: fi
4010: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4011: $as_echo "$cross_compiling" >&6; }
4012:
4013: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4014: ac_clean_files=$ac_clean_files_save
4015: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4016: $as_echo_n "checking for suffix of object files... " >&6; }
4017: if ${ac_cv_objext+:} false; then :
4018: $as_echo_n "(cached) " >&6
4019: else
4020: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021: /* end confdefs.h. */
4022:
4023: int
4024: main ()
4025: {
4026:
4027: ;
4028: return 0;
4029: }
4030: _ACEOF
4031: rm -f conftest.o conftest.obj
4032: if { { ac_try="$ac_compile"
4033: case "(($ac_try" in
4034: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035: *) ac_try_echo=$ac_try;;
4036: esac
4037: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4038: $as_echo "$ac_try_echo"; } >&5
4039: (eval "$ac_compile") 2>&5
4040: ac_status=$?
4041: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4042: test $ac_status = 0; }; then :
4043: for ac_file in conftest.o conftest.obj conftest.*; do
4044: test -f "$ac_file" || continue;
4045: case $ac_file in
4046: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4047: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4048: break;;
4049: esac
4050: done
4051: else
4052: $as_echo "$as_me: failed program was:" >&5
4053: sed 's/^/| /' conftest.$ac_ext >&5
4054:
4055: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4056: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4057: as_fn_error $? "cannot compute suffix of object files: cannot compile
4058: See \`config.log' for more details" "$LINENO" 5; }
4059: fi
4060: rm -f conftest.$ac_cv_objext conftest.$ac_ext
4061: fi
4062: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4063: $as_echo "$ac_cv_objext" >&6; }
4064: OBJEXT=$ac_cv_objext
4065: ac_objext=$OBJEXT
4066: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4067: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4068: if ${ac_cv_c_compiler_gnu+:} false; then :
4069: $as_echo_n "(cached) " >&6
4070: else
4071: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072: /* end confdefs.h. */
4073:
4074: int
4075: main ()
4076: {
4077: #ifndef __GNUC__
4078: choke me
4079: #endif
4080:
4081: ;
4082: return 0;
4083: }
4084: _ACEOF
4085: if ac_fn_c_try_compile "$LINENO"; then :
4086: ac_compiler_gnu=yes
4087: else
4088: ac_compiler_gnu=no
4089: fi
4090: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4091: ac_cv_c_compiler_gnu=$ac_compiler_gnu
4092:
4093: fi
4094: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4095: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4096: if test $ac_compiler_gnu = yes; then
4097: GCC=yes
4098: else
4099: GCC=
4100: fi
4101: ac_test_CFLAGS=${CFLAGS+set}
4102: ac_save_CFLAGS=$CFLAGS
4103: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4104: $as_echo_n "checking whether $CC accepts -g... " >&6; }
4105: if ${ac_cv_prog_cc_g+:} false; then :
4106: $as_echo_n "(cached) " >&6
4107: else
4108: ac_save_c_werror_flag=$ac_c_werror_flag
4109: ac_c_werror_flag=yes
4110: ac_cv_prog_cc_g=no
4111: CFLAGS="-g"
4112: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113: /* end confdefs.h. */
4114:
4115: int
4116: main ()
4117: {
4118:
4119: ;
4120: return 0;
4121: }
4122: _ACEOF
4123: if ac_fn_c_try_compile "$LINENO"; then :
4124: ac_cv_prog_cc_g=yes
4125: else
4126: CFLAGS=""
4127: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128: /* end confdefs.h. */
4129:
4130: int
4131: main ()
4132: {
4133:
4134: ;
4135: return 0;
4136: }
4137: _ACEOF
4138: if ac_fn_c_try_compile "$LINENO"; then :
4139:
4140: else
4141: ac_c_werror_flag=$ac_save_c_werror_flag
4142: CFLAGS="-g"
4143: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144: /* end confdefs.h. */
4145:
4146: int
4147: main ()
4148: {
4149:
4150: ;
4151: return 0;
4152: }
4153: _ACEOF
4154: if ac_fn_c_try_compile "$LINENO"; then :
4155: ac_cv_prog_cc_g=yes
4156: fi
4157: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158: fi
4159: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4160: fi
4161: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4162: ac_c_werror_flag=$ac_save_c_werror_flag
4163: fi
4164: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4165: $as_echo "$ac_cv_prog_cc_g" >&6; }
4166: if test "$ac_test_CFLAGS" = set; then
4167: CFLAGS=$ac_save_CFLAGS
4168: elif test $ac_cv_prog_cc_g = yes; then
4169: if test "$GCC" = yes; then
4170: CFLAGS="-g -O2"
4171: else
4172: CFLAGS="-g"
4173: fi
4174: else
4175: if test "$GCC" = yes; then
4176: CFLAGS="-O2"
4177: else
4178: CFLAGS=
4179: fi
4180: fi
4181: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4182: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4183: if ${ac_cv_prog_cc_c89+:} false; then :
4184: $as_echo_n "(cached) " >&6
4185: else
4186: ac_cv_prog_cc_c89=no
4187: ac_save_CC=$CC
4188: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189: /* end confdefs.h. */
4190: #include <stdarg.h>
4191: #include <stdio.h>
4192: #include <sys/types.h>
4193: #include <sys/stat.h>
4194: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4195: struct buf { int x; };
4196: FILE * (*rcsopen) (struct buf *, struct stat *, int);
4197: static char *e (p, i)
4198: char **p;
4199: int i;
4200: {
4201: return p[i];
4202: }
4203: static char *f (char * (*g) (char **, int), char **p, ...)
4204: {
4205: char *s;
4206: va_list v;
4207: va_start (v,p);
4208: s = g (p, va_arg (v,int));
4209: va_end (v);
4210: return s;
4211: }
4212:
4213: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4214: function prototypes and stuff, but not '\xHH' hex character constants.
4215: These don't provoke an error unfortunately, instead are silently treated
4216: as 'x'. The following induces an error, until -std is added to get
4217: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4218: array size at least. It's necessary to write '\x00'==0 to get something
4219: that's true only with -std. */
4220: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4221:
4222: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4223: inside strings and character constants. */
4224: #define FOO(x) 'x'
4225: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4226:
4227: int test (int i, double x);
4228: struct s1 {int (*f) (int a);};
4229: struct s2 {int (*f) (double a);};
4230: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4231: int argc;
4232: char **argv;
4233: int
4234: main ()
4235: {
4236: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4237: ;
4238: return 0;
4239: }
4240: _ACEOF
4241: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4242: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4243: do
4244: CC="$ac_save_CC $ac_arg"
4245: if ac_fn_c_try_compile "$LINENO"; then :
4246: ac_cv_prog_cc_c89=$ac_arg
4247: fi
4248: rm -f core conftest.err conftest.$ac_objext
4249: test "x$ac_cv_prog_cc_c89" != "xno" && break
4250: done
4251: rm -f conftest.$ac_ext
4252: CC=$ac_save_CC
4253:
4254: fi
4255: # AC_CACHE_VAL
4256: case "x$ac_cv_prog_cc_c89" in
4257: x)
4258: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4259: $as_echo "none needed" >&6; } ;;
4260: xno)
4261: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4262: $as_echo "unsupported" >&6; } ;;
4263: *)
4264: CC="$CC $ac_cv_prog_cc_c89"
4265: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4266: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4267: esac
4268: if test "x$ac_cv_prog_cc_c89" != xno; then :
4269:
4270: fi
4271:
4272: ac_ext=c
4273: ac_cpp='$CPP $CPPFLAGS'
4274: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4275: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4276: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4277:
4278: depcc="$CC" am_compiler_list=
4279:
4280: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4281: $as_echo_n "checking dependency style of $depcc... " >&6; }
4282: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4283: $as_echo_n "(cached) " >&6
4284: else
4285: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4286: # We make a subdir and do the tests there. Otherwise we can end up
4287: # making bogus files that we don't know about and never remove. For
4288: # instance it was reported that on HP-UX the gcc test will end up
4289: # making a dummy file named `D' -- because `-MD' means `put the output
4290: # in D'.
4291: mkdir conftest.dir
4292: # Copy depcomp to subdir because otherwise we won't find it if we're
4293: # using a relative directory.
4294: cp "$am_depcomp" conftest.dir
4295: cd conftest.dir
4296: # We will build objects and dependencies in a subdirectory because
4297: # it helps to detect inapplicable dependency modes. For instance
4298: # both Tru64's cc and ICC support -MD to output dependencies as a
4299: # side effect of compilation, but ICC will put the dependencies in
4300: # the current directory while Tru64 will put them in the object
4301: # directory.
4302: mkdir sub
4303:
4304: am_cv_CC_dependencies_compiler_type=none
4305: if test "$am_compiler_list" = ""; then
4306: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4307: fi
4308: am__universal=false
4309: case " $depcc " in #(
4310: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4311: esac
4312:
4313: for depmode in $am_compiler_list; do
4314: # Setup a source with many dependencies, because some compilers
4315: # like to wrap large dependency lists on column 80 (with \), and
4316: # we should not choose a depcomp mode which is confused by this.
4317: #
4318: # We need to recreate these files for each test, as the compiler may
4319: # overwrite some of them when testing with obscure command lines.
4320: # This happens at least with the AIX C compiler.
4321: : > sub/conftest.c
4322: for i in 1 2 3 4 5 6; do
4323: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4324: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4325: # Solaris 8's {/usr,}/bin/sh.
4326: touch sub/conftst$i.h
4327: done
4328: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4329:
4330: # We check with `-c' and `-o' for the sake of the "dashmstdout"
4331: # mode. It turns out that the SunPro C++ compiler does not properly
4332: # handle `-M -o', and we need to detect this. Also, some Intel
4333: # versions had trouble with output in subdirs
4334: am__obj=sub/conftest.${OBJEXT-o}
4335: am__minus_obj="-o $am__obj"
4336: case $depmode in
4337: gcc)
4338: # This depmode causes a compiler race in universal mode.
4339: test "$am__universal" = false || continue
4340: ;;
4341: nosideeffect)
4342: # after this tag, mechanisms are not by side-effect, so they'll
4343: # only be used when explicitly requested
4344: if test "x$enable_dependency_tracking" = xyes; then
4345: continue
4346: else
4347: break
4348: fi
4349: ;;
4350: msvisualcpp | msvcmsys)
4351: # This compiler won't grok `-c -o', but also, the minuso test has
4352: # not run yet. These depmodes are late enough in the game, and
4353: # so weak that their functioning should not be impacted.
4354: am__obj=conftest.${OBJEXT-o}
4355: am__minus_obj=
4356: ;;
4357: none) break ;;
4358: esac
4359: if depmode=$depmode \
4360: source=sub/conftest.c object=$am__obj \
4361: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4362: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4363: >/dev/null 2>conftest.err &&
4364: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4365: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4366: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4367: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4368: # icc doesn't choke on unknown options, it will just issue warnings
4369: # or remarks (even with -Werror). So we grep stderr for any message
4370: # that says an option was ignored or not supported.
4371: # When given -MP, icc 7.0 and 7.1 complain thusly:
4372: # icc: Command line warning: ignoring option '-M'; no argument required
4373: # The diagnosis changed in icc 8.0:
4374: # icc: Command line remark: option '-MP' not supported
4375: if (grep 'ignoring option' conftest.err ||
4376: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4377: am_cv_CC_dependencies_compiler_type=$depmode
4378: break
4379: fi
4380: fi
4381: done
4382:
4383: cd ..
4384: rm -rf conftest.dir
4385: else
4386: am_cv_CC_dependencies_compiler_type=none
4387: fi
4388:
4389: fi
4390: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4391: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4392: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4393:
4394: if
4395: test "x$enable_dependency_tracking" != xno \
4396: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4397: am__fastdepCC_TRUE=
4398: am__fastdepCC_FALSE='#'
4399: else
4400: am__fastdepCC_TRUE='#'
4401: am__fastdepCC_FALSE=
4402: fi
4403:
4404:
4405:
4406: ac_ext=c
4407: ac_cpp='$CPP $CPPFLAGS'
4408: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4409: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4410: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4411: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4412: $as_echo_n "checking how to run the C preprocessor... " >&6; }
4413: # On Suns, sometimes $CPP names a directory.
4414: if test -n "$CPP" && test -d "$CPP"; then
4415: CPP=
4416: fi
4417: if test -z "$CPP"; then
4418: if ${ac_cv_prog_CPP+:} false; then :
4419: $as_echo_n "(cached) " >&6
4420: else
4421: # Double quotes because CPP needs to be expanded
4422: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4423: do
4424: ac_preproc_ok=false
4425: for ac_c_preproc_warn_flag in '' yes
4426: do
4427: # Use a header file that comes with gcc, so configuring glibc
4428: # with a fresh cross-compiler works.
4429: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4430: # <limits.h> exists even on freestanding compilers.
4431: # On the NeXT, cc -E runs the code through the compiler's parser,
4432: # not just through cpp. "Syntax error" is here to catch this case.
4433: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434: /* end confdefs.h. */
4435: #ifdef __STDC__
4436: # include <limits.h>
4437: #else
4438: # include <assert.h>
4439: #endif
4440: Syntax error
4441: _ACEOF
4442: if ac_fn_c_try_cpp "$LINENO"; then :
4443:
4444: else
4445: # Broken: fails on valid input.
4446: continue
4447: fi
4448: rm -f conftest.err conftest.i conftest.$ac_ext
4449:
4450: # OK, works on sane cases. Now check whether nonexistent headers
4451: # can be detected and how.
4452: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453: /* end confdefs.h. */
4454: #include <ac_nonexistent.h>
4455: _ACEOF
4456: if ac_fn_c_try_cpp "$LINENO"; then :
4457: # Broken: success on invalid input.
4458: continue
4459: else
4460: # Passes both tests.
4461: ac_preproc_ok=:
4462: break
4463: fi
4464: rm -f conftest.err conftest.i conftest.$ac_ext
4465:
4466: done
4467: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4468: rm -f conftest.i conftest.err conftest.$ac_ext
4469: if $ac_preproc_ok; then :
4470: break
4471: fi
4472:
4473: done
4474: ac_cv_prog_CPP=$CPP
4475:
4476: fi
4477: CPP=$ac_cv_prog_CPP
4478: else
4479: ac_cv_prog_CPP=$CPP
4480: fi
4481: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4482: $as_echo "$CPP" >&6; }
4483: ac_preproc_ok=false
4484: for ac_c_preproc_warn_flag in '' yes
4485: do
4486: # Use a header file that comes with gcc, so configuring glibc
4487: # with a fresh cross-compiler works.
4488: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4489: # <limits.h> exists even on freestanding compilers.
4490: # On the NeXT, cc -E runs the code through the compiler's parser,
4491: # not just through cpp. "Syntax error" is here to catch this case.
4492: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493: /* end confdefs.h. */
4494: #ifdef __STDC__
4495: # include <limits.h>
4496: #else
4497: # include <assert.h>
4498: #endif
4499: Syntax error
4500: _ACEOF
4501: if ac_fn_c_try_cpp "$LINENO"; then :
4502:
4503: else
4504: # Broken: fails on valid input.
4505: continue
4506: fi
4507: rm -f conftest.err conftest.i conftest.$ac_ext
4508:
4509: # OK, works on sane cases. Now check whether nonexistent headers
4510: # can be detected and how.
4511: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512: /* end confdefs.h. */
4513: #include <ac_nonexistent.h>
4514: _ACEOF
4515: if ac_fn_c_try_cpp "$LINENO"; then :
4516: # Broken: success on invalid input.
4517: continue
4518: else
4519: # Passes both tests.
4520: ac_preproc_ok=:
4521: break
4522: fi
4523: rm -f conftest.err conftest.i conftest.$ac_ext
4524:
4525: done
4526: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4527: rm -f conftest.i conftest.err conftest.$ac_ext
4528: if $ac_preproc_ok; then :
4529:
4530: else
4531: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4532: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4533: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4534: See \`config.log' for more details" "$LINENO" 5; }
4535: fi
4536:
4537: ac_ext=c
4538: ac_cpp='$CPP $CPPFLAGS'
4539: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4540: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4541: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4542:
4543:
4544: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4545: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4546: if ${ac_cv_path_GREP+:} false; then :
4547: $as_echo_n "(cached) " >&6
4548: else
4549: if test -z "$GREP"; then
4550: ac_path_GREP_found=false
4551: # Loop through the user's path and test for each of PROGNAME-LIST
4552: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4554: do
4555: IFS=$as_save_IFS
4556: test -z "$as_dir" && as_dir=.
4557: for ac_prog in grep ggrep; do
4558: for ac_exec_ext in '' $ac_executable_extensions; do
4559: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4560: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4561: # Check for GNU ac_path_GREP and select it if it is found.
4562: # Check for GNU $ac_path_GREP
4563: case `"$ac_path_GREP" --version 2>&1` in
4564: *GNU*)
4565: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4566: *)
4567: ac_count=0
4568: $as_echo_n 0123456789 >"conftest.in"
4569: while :
4570: do
4571: cat "conftest.in" "conftest.in" >"conftest.tmp"
4572: mv "conftest.tmp" "conftest.in"
4573: cp "conftest.in" "conftest.nl"
4574: $as_echo 'GREP' >> "conftest.nl"
4575: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4576: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4577: as_fn_arith $ac_count + 1 && ac_count=$as_val
4578: if test $ac_count -gt ${ac_path_GREP_max-0}; then
4579: # Best one so far, save it but keep looking for a better one
4580: ac_cv_path_GREP="$ac_path_GREP"
4581: ac_path_GREP_max=$ac_count
4582: fi
4583: # 10*(2^10) chars as input seems more than enough
4584: test $ac_count -gt 10 && break
4585: done
4586: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4587: esac
4588:
4589: $ac_path_GREP_found && break 3
4590: done
4591: done
4592: done
4593: IFS=$as_save_IFS
4594: if test -z "$ac_cv_path_GREP"; then
4595: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4596: fi
4597: else
4598: ac_cv_path_GREP=$GREP
4599: fi
4600:
4601: fi
4602: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4603: $as_echo "$ac_cv_path_GREP" >&6; }
4604: GREP="$ac_cv_path_GREP"
4605:
4606:
4607: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4608: $as_echo_n "checking for egrep... " >&6; }
4609: if ${ac_cv_path_EGREP+:} false; then :
4610: $as_echo_n "(cached) " >&6
4611: else
4612: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4613: then ac_cv_path_EGREP="$GREP -E"
4614: else
4615: if test -z "$EGREP"; then
4616: ac_path_EGREP_found=false
4617: # Loop through the user's path and test for each of PROGNAME-LIST
4618: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4620: do
4621: IFS=$as_save_IFS
4622: test -z "$as_dir" && as_dir=.
4623: for ac_prog in egrep; do
4624: for ac_exec_ext in '' $ac_executable_extensions; do
4625: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4626: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4627: # Check for GNU ac_path_EGREP and select it if it is found.
4628: # Check for GNU $ac_path_EGREP
4629: case `"$ac_path_EGREP" --version 2>&1` in
4630: *GNU*)
4631: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4632: *)
4633: ac_count=0
4634: $as_echo_n 0123456789 >"conftest.in"
4635: while :
4636: do
4637: cat "conftest.in" "conftest.in" >"conftest.tmp"
4638: mv "conftest.tmp" "conftest.in"
4639: cp "conftest.in" "conftest.nl"
4640: $as_echo 'EGREP' >> "conftest.nl"
4641: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4642: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4643: as_fn_arith $ac_count + 1 && ac_count=$as_val
4644: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4645: # Best one so far, save it but keep looking for a better one
4646: ac_cv_path_EGREP="$ac_path_EGREP"
4647: ac_path_EGREP_max=$ac_count
4648: fi
4649: # 10*(2^10) chars as input seems more than enough
4650: test $ac_count -gt 10 && break
4651: done
4652: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4653: esac
4654:
4655: $ac_path_EGREP_found && break 3
4656: done
4657: done
4658: done
4659: IFS=$as_save_IFS
4660: if test -z "$ac_cv_path_EGREP"; then
4661: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4662: fi
4663: else
4664: ac_cv_path_EGREP=$EGREP
4665: fi
4666:
4667: fi
4668: fi
4669: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4670: $as_echo "$ac_cv_path_EGREP" >&6; }
4671: EGREP="$ac_cv_path_EGREP"
4672:
4673:
4674: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4675: $as_echo_n "checking for ANSI C header files... " >&6; }
4676: if ${ac_cv_header_stdc+:} false; then :
4677: $as_echo_n "(cached) " >&6
4678: else
4679: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680: /* end confdefs.h. */
4681: #include <stdlib.h>
4682: #include <stdarg.h>
4683: #include <string.h>
4684: #include <float.h>
4685:
4686: int
4687: main ()
4688: {
4689:
4690: ;
4691: return 0;
4692: }
4693: _ACEOF
4694: if ac_fn_c_try_compile "$LINENO"; then :
4695: ac_cv_header_stdc=yes
4696: else
4697: ac_cv_header_stdc=no
4698: fi
4699: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4700:
4701: if test $ac_cv_header_stdc = yes; then
4702: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4703: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704: /* end confdefs.h. */
4705: #include <string.h>
4706:
4707: _ACEOF
4708: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4709: $EGREP "memchr" >/dev/null 2>&1; then :
4710:
4711: else
4712: ac_cv_header_stdc=no
4713: fi
4714: rm -f conftest*
4715:
4716: fi
4717:
4718: if test $ac_cv_header_stdc = yes; then
4719: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4720: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721: /* end confdefs.h. */
4722: #include <stdlib.h>
4723:
4724: _ACEOF
4725: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4726: $EGREP "free" >/dev/null 2>&1; then :
4727:
4728: else
4729: ac_cv_header_stdc=no
4730: fi
4731: rm -f conftest*
4732:
4733: fi
4734:
4735: if test $ac_cv_header_stdc = yes; then
4736: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4737: if test "$cross_compiling" = yes; then :
4738: :
4739: else
4740: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741: /* end confdefs.h. */
4742: #include <ctype.h>
4743: #include <stdlib.h>
4744: #if ((' ' & 0x0FF) == 0x020)
4745: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4746: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4747: #else
4748: # define ISLOWER(c) \
4749: (('a' <= (c) && (c) <= 'i') \
4750: || ('j' <= (c) && (c) <= 'r') \
4751: || ('s' <= (c) && (c) <= 'z'))
4752: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4753: #endif
4754:
4755: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4756: int
4757: main ()
4758: {
4759: int i;
4760: for (i = 0; i < 256; i++)
4761: if (XOR (islower (i), ISLOWER (i))
4762: || toupper (i) != TOUPPER (i))
4763: return 2;
4764: return 0;
4765: }
4766: _ACEOF
4767: if ac_fn_c_try_run "$LINENO"; then :
4768:
4769: else
4770: ac_cv_header_stdc=no
4771: fi
4772: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4773: conftest.$ac_objext conftest.beam conftest.$ac_ext
4774: fi
4775:
4776: fi
4777: fi
4778: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4779: $as_echo "$ac_cv_header_stdc" >&6; }
4780: if test $ac_cv_header_stdc = yes; then
4781:
4782: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4783:
4784: fi
4785:
4786: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4787: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4788: inttypes.h stdint.h unistd.h
4789: do :
4790: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4791: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4792: "
4793: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4794: cat >>confdefs.h <<_ACEOF
4795: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4796: _ACEOF
4797:
4798: fi
4799:
4800: done
4801:
4802:
4803:
4804: ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4805: if test "x$ac_cv_header_minix_config_h" = xyes; then :
4806: MINIX=yes
4807: else
4808: MINIX=
4809: fi
4810:
4811:
4812: if test "$MINIX" = yes; then
4813:
4814: $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4815:
4816:
4817: $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4818:
4819:
4820: $as_echo "#define _MINIX 1" >>confdefs.h
4821:
4822: fi
4823:
4824:
4825: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4826: $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4827: if ${ac_cv_safe_to_define___extensions__+:} false; then :
4828: $as_echo_n "(cached) " >&6
4829: else
4830: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831: /* end confdefs.h. */
4832:
4833: # define __EXTENSIONS__ 1
4834: $ac_includes_default
4835: int
4836: main ()
4837: {
4838:
4839: ;
4840: return 0;
4841: }
4842: _ACEOF
4843: if ac_fn_c_try_compile "$LINENO"; then :
4844: ac_cv_safe_to_define___extensions__=yes
4845: else
4846: ac_cv_safe_to_define___extensions__=no
4847: fi
4848: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4849: fi
4850: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4851: $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4852: test $ac_cv_safe_to_define___extensions__ = yes &&
4853: $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4854:
4855: $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4856:
4857: $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4858:
4859: $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4860:
4861: $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4862:
4863:
4864:
4865:
4866:
4867: # So far, the only shared library we might use is libopts.
4868: # It's a small library - we might as well use a static version of it.
4869: # Check whether --enable-shared was given.
4870: if test "${enable_shared+set}" = set; then :
4871: enableval=$enable_shared; p=${PACKAGE-default}
4872: case $enableval in
4873: yes) enable_shared=yes ;;
4874: no) enable_shared=no ;;
4875: *)
4876: enable_shared=no
4877: # Look at the argument we got. We use all the common list separators.
4878: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4879: for pkg in $enableval; do
4880: IFS="$lt_save_ifs"
4881: if test "X$pkg" = "X$p"; then
4882: enable_shared=yes
4883: fi
4884: done
4885: IFS="$lt_save_ifs"
4886: ;;
4887: esac
4888: else
4889: enable_shared=no
4890: fi
4891:
4892:
4893:
4894:
4895:
4896:
4897:
4898:
4899:
4900:
4901: ac_ext=c
4902: ac_cpp='$CPP $CPPFLAGS'
4903: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4904: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4905: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4906: if test -n "$ac_tool_prefix"; then
4907: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4908: set dummy ${ac_tool_prefix}gcc; ac_word=$2
4909: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910: $as_echo_n "checking for $ac_word... " >&6; }
4911: if ${ac_cv_prog_CC+:} false; then :
4912: $as_echo_n "(cached) " >&6
4913: else
4914: if test -n "$CC"; then
4915: ac_cv_prog_CC="$CC" # Let the user override the test.
4916: else
4917: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918: for as_dir in $PATH
4919: do
4920: IFS=$as_save_IFS
4921: test -z "$as_dir" && as_dir=.
4922: for ac_exec_ext in '' $ac_executable_extensions; do
4923: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4924: ac_cv_prog_CC="${ac_tool_prefix}gcc"
4925: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4926: break 2
4927: fi
4928: done
4929: done
4930: IFS=$as_save_IFS
4931:
4932: fi
4933: fi
4934: CC=$ac_cv_prog_CC
4935: if test -n "$CC"; then
4936: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4937: $as_echo "$CC" >&6; }
4938: else
4939: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940: $as_echo "no" >&6; }
4941: fi
4942:
4943:
4944: fi
4945: if test -z "$ac_cv_prog_CC"; then
4946: ac_ct_CC=$CC
4947: # Extract the first word of "gcc", so it can be a program name with args.
4948: set dummy gcc; ac_word=$2
4949: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950: $as_echo_n "checking for $ac_word... " >&6; }
4951: if ${ac_cv_prog_ac_ct_CC+:} false; then :
4952: $as_echo_n "(cached) " >&6
4953: else
4954: if test -n "$ac_ct_CC"; then
4955: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4956: else
4957: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958: for as_dir in $PATH
4959: do
4960: IFS=$as_save_IFS
4961: test -z "$as_dir" && as_dir=.
4962: for ac_exec_ext in '' $ac_executable_extensions; do
4963: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4964: ac_cv_prog_ac_ct_CC="gcc"
4965: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4966: break 2
4967: fi
4968: done
4969: done
4970: IFS=$as_save_IFS
4971:
4972: fi
4973: fi
4974: ac_ct_CC=$ac_cv_prog_ac_ct_CC
4975: if test -n "$ac_ct_CC"; then
4976: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4977: $as_echo "$ac_ct_CC" >&6; }
4978: else
4979: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4980: $as_echo "no" >&6; }
4981: fi
4982:
4983: if test "x$ac_ct_CC" = x; then
4984: CC=""
4985: else
4986: case $cross_compiling:$ac_tool_warned in
4987: yes:)
4988: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4989: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4990: ac_tool_warned=yes ;;
4991: esac
4992: CC=$ac_ct_CC
4993: fi
4994: else
4995: CC="$ac_cv_prog_CC"
4996: fi
4997:
4998: if test -z "$CC"; then
4999: if test -n "$ac_tool_prefix"; then
5000: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5001: set dummy ${ac_tool_prefix}cc; ac_word=$2
5002: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003: $as_echo_n "checking for $ac_word... " >&6; }
5004: if ${ac_cv_prog_CC+:} false; then :
5005: $as_echo_n "(cached) " >&6
5006: else
5007: if test -n "$CC"; then
5008: ac_cv_prog_CC="$CC" # Let the user override the test.
5009: else
5010: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011: for as_dir in $PATH
5012: do
5013: IFS=$as_save_IFS
5014: test -z "$as_dir" && as_dir=.
5015: for ac_exec_ext in '' $ac_executable_extensions; do
5016: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5017: ac_cv_prog_CC="${ac_tool_prefix}cc"
5018: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5019: break 2
5020: fi
5021: done
5022: done
5023: IFS=$as_save_IFS
5024:
5025: fi
5026: fi
5027: CC=$ac_cv_prog_CC
5028: if test -n "$CC"; then
5029: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5030: $as_echo "$CC" >&6; }
5031: else
5032: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033: $as_echo "no" >&6; }
5034: fi
5035:
5036:
5037: fi
5038: fi
5039: if test -z "$CC"; then
5040: # Extract the first word of "cc", so it can be a program name with args.
5041: set dummy cc; ac_word=$2
5042: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043: $as_echo_n "checking for $ac_word... " >&6; }
5044: if ${ac_cv_prog_CC+:} false; then :
5045: $as_echo_n "(cached) " >&6
5046: else
5047: if test -n "$CC"; then
5048: ac_cv_prog_CC="$CC" # Let the user override the test.
5049: else
5050: ac_prog_rejected=no
5051: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052: for as_dir in $PATH
5053: do
5054: IFS=$as_save_IFS
5055: test -z "$as_dir" && as_dir=.
5056: for ac_exec_ext in '' $ac_executable_extensions; do
5057: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5058: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5059: ac_prog_rejected=yes
5060: continue
5061: fi
5062: ac_cv_prog_CC="cc"
5063: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5064: break 2
5065: fi
5066: done
5067: done
5068: IFS=$as_save_IFS
5069:
5070: if test $ac_prog_rejected = yes; then
5071: # We found a bogon in the path, so make sure we never use it.
5072: set dummy $ac_cv_prog_CC
5073: shift
5074: if test $# != 0; then
5075: # We chose a different compiler from the bogus one.
5076: # However, it has the same basename, so the bogon will be chosen
5077: # first if we set CC to just the basename; use the full file name.
5078: shift
5079: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5080: fi
5081: fi
5082: fi
5083: fi
5084: CC=$ac_cv_prog_CC
5085: if test -n "$CC"; then
5086: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5087: $as_echo "$CC" >&6; }
5088: else
5089: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5090: $as_echo "no" >&6; }
5091: fi
5092:
5093:
5094: fi
5095: if test -z "$CC"; then
5096: if test -n "$ac_tool_prefix"; then
5097: for ac_prog in cl.exe
5098: do
5099: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5100: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5101: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5102: $as_echo_n "checking for $ac_word... " >&6; }
5103: if ${ac_cv_prog_CC+:} false; then :
5104: $as_echo_n "(cached) " >&6
5105: else
5106: if test -n "$CC"; then
5107: ac_cv_prog_CC="$CC" # Let the user override the test.
5108: else
5109: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110: for as_dir in $PATH
5111: do
5112: IFS=$as_save_IFS
5113: test -z "$as_dir" && as_dir=.
5114: for ac_exec_ext in '' $ac_executable_extensions; do
5115: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5116: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5117: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5118: break 2
5119: fi
5120: done
5121: done
5122: IFS=$as_save_IFS
5123:
5124: fi
5125: fi
5126: CC=$ac_cv_prog_CC
5127: if test -n "$CC"; then
5128: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5129: $as_echo "$CC" >&6; }
5130: else
5131: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132: $as_echo "no" >&6; }
5133: fi
5134:
5135:
5136: test -n "$CC" && break
5137: done
5138: fi
5139: if test -z "$CC"; then
5140: ac_ct_CC=$CC
5141: for ac_prog in cl.exe
5142: do
5143: # Extract the first word of "$ac_prog", so it can be a program name with args.
5144: set dummy $ac_prog; ac_word=$2
5145: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5146: $as_echo_n "checking for $ac_word... " >&6; }
5147: if ${ac_cv_prog_ac_ct_CC+:} false; then :
5148: $as_echo_n "(cached) " >&6
5149: else
5150: if test -n "$ac_ct_CC"; then
5151: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5152: else
5153: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154: for as_dir in $PATH
5155: do
5156: IFS=$as_save_IFS
5157: test -z "$as_dir" && as_dir=.
5158: for ac_exec_ext in '' $ac_executable_extensions; do
5159: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5160: ac_cv_prog_ac_ct_CC="$ac_prog"
5161: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5162: break 2
5163: fi
5164: done
5165: done
5166: IFS=$as_save_IFS
5167:
5168: fi
5169: fi
5170: ac_ct_CC=$ac_cv_prog_ac_ct_CC
5171: if test -n "$ac_ct_CC"; then
5172: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5173: $as_echo "$ac_ct_CC" >&6; }
5174: else
5175: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176: $as_echo "no" >&6; }
5177: fi
5178:
5179:
5180: test -n "$ac_ct_CC" && break
5181: done
5182:
5183: if test "x$ac_ct_CC" = x; then
5184: CC=""
5185: else
5186: case $cross_compiling:$ac_tool_warned in
5187: yes:)
5188: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5189: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5190: ac_tool_warned=yes ;;
5191: esac
5192: CC=$ac_ct_CC
5193: fi
5194: fi
5195:
5196: fi
5197:
5198:
5199: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5200: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5201: as_fn_error $? "no acceptable C compiler found in \$PATH
5202: See \`config.log' for more details" "$LINENO" 5; }
5203:
5204: # Provide some information about the compiler.
5205: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5206: set X $ac_compile
5207: ac_compiler=$2
5208: for ac_option in --version -v -V -qversion; do
5209: { { ac_try="$ac_compiler $ac_option >&5"
5210: case "(($ac_try" in
5211: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5212: *) ac_try_echo=$ac_try;;
5213: esac
5214: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5215: $as_echo "$ac_try_echo"; } >&5
5216: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5217: ac_status=$?
5218: if test -s conftest.err; then
5219: sed '10a\
5220: ... rest of stderr output deleted ...
5221: 10q' conftest.err >conftest.er1
5222: cat conftest.er1 >&5
5223: fi
5224: rm -f conftest.er1 conftest.err
5225: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5226: test $ac_status = 0; }
5227: done
5228:
5229: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5230: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5231: if ${ac_cv_c_compiler_gnu+:} false; then :
5232: $as_echo_n "(cached) " >&6
5233: else
5234: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5235: /* end confdefs.h. */
5236:
5237: int
5238: main ()
5239: {
5240: #ifndef __GNUC__
5241: choke me
5242: #endif
5243:
5244: ;
5245: return 0;
5246: }
5247: _ACEOF
5248: if ac_fn_c_try_compile "$LINENO"; then :
5249: ac_compiler_gnu=yes
5250: else
5251: ac_compiler_gnu=no
5252: fi
5253: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5254: ac_cv_c_compiler_gnu=$ac_compiler_gnu
5255:
5256: fi
5257: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5258: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5259: if test $ac_compiler_gnu = yes; then
5260: GCC=yes
5261: else
5262: GCC=
5263: fi
5264: ac_test_CFLAGS=${CFLAGS+set}
5265: ac_save_CFLAGS=$CFLAGS
5266: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5267: $as_echo_n "checking whether $CC accepts -g... " >&6; }
5268: if ${ac_cv_prog_cc_g+:} false; then :
5269: $as_echo_n "(cached) " >&6
5270: else
5271: ac_save_c_werror_flag=$ac_c_werror_flag
5272: ac_c_werror_flag=yes
5273: ac_cv_prog_cc_g=no
5274: CFLAGS="-g"
5275: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276: /* end confdefs.h. */
5277:
5278: int
5279: main ()
5280: {
5281:
5282: ;
5283: return 0;
5284: }
5285: _ACEOF
5286: if ac_fn_c_try_compile "$LINENO"; then :
5287: ac_cv_prog_cc_g=yes
5288: else
5289: CFLAGS=""
5290: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291: /* end confdefs.h. */
5292:
5293: int
5294: main ()
5295: {
5296:
5297: ;
5298: return 0;
5299: }
5300: _ACEOF
5301: if ac_fn_c_try_compile "$LINENO"; then :
5302:
5303: else
5304: ac_c_werror_flag=$ac_save_c_werror_flag
5305: CFLAGS="-g"
5306: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307: /* end confdefs.h. */
5308:
5309: int
5310: main ()
5311: {
5312:
5313: ;
5314: return 0;
5315: }
5316: _ACEOF
5317: if ac_fn_c_try_compile "$LINENO"; then :
5318: ac_cv_prog_cc_g=yes
5319: fi
5320: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5321: fi
5322: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5323: fi
5324: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5325: ac_c_werror_flag=$ac_save_c_werror_flag
5326: fi
5327: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5328: $as_echo "$ac_cv_prog_cc_g" >&6; }
5329: if test "$ac_test_CFLAGS" = set; then
5330: CFLAGS=$ac_save_CFLAGS
5331: elif test $ac_cv_prog_cc_g = yes; then
5332: if test "$GCC" = yes; then
5333: CFLAGS="-g -O2"
5334: else
5335: CFLAGS="-g"
5336: fi
5337: else
5338: if test "$GCC" = yes; then
5339: CFLAGS="-O2"
5340: else
5341: CFLAGS=
5342: fi
5343: fi
5344: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5345: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5346: if ${ac_cv_prog_cc_c89+:} false; then :
5347: $as_echo_n "(cached) " >&6
5348: else
5349: ac_cv_prog_cc_c89=no
5350: ac_save_CC=$CC
5351: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5352: /* end confdefs.h. */
5353: #include <stdarg.h>
5354: #include <stdio.h>
5355: #include <sys/types.h>
5356: #include <sys/stat.h>
5357: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5358: struct buf { int x; };
5359: FILE * (*rcsopen) (struct buf *, struct stat *, int);
5360: static char *e (p, i)
5361: char **p;
5362: int i;
5363: {
5364: return p[i];
5365: }
5366: static char *f (char * (*g) (char **, int), char **p, ...)
5367: {
5368: char *s;
5369: va_list v;
5370: va_start (v,p);
5371: s = g (p, va_arg (v,int));
5372: va_end (v);
5373: return s;
5374: }
5375:
5376: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5377: function prototypes and stuff, but not '\xHH' hex character constants.
5378: These don't provoke an error unfortunately, instead are silently treated
5379: as 'x'. The following induces an error, until -std is added to get
5380: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5381: array size at least. It's necessary to write '\x00'==0 to get something
5382: that's true only with -std. */
5383: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5384:
5385: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5386: inside strings and character constants. */
5387: #define FOO(x) 'x'
5388: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5389:
5390: int test (int i, double x);
5391: struct s1 {int (*f) (int a);};
5392: struct s2 {int (*f) (double a);};
5393: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5394: int argc;
5395: char **argv;
5396: int
5397: main ()
5398: {
5399: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5400: ;
5401: return 0;
5402: }
5403: _ACEOF
5404: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5405: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5406: do
5407: CC="$ac_save_CC $ac_arg"
5408: if ac_fn_c_try_compile "$LINENO"; then :
5409: ac_cv_prog_cc_c89=$ac_arg
5410: fi
5411: rm -f core conftest.err conftest.$ac_objext
5412: test "x$ac_cv_prog_cc_c89" != "xno" && break
5413: done
5414: rm -f conftest.$ac_ext
5415: CC=$ac_save_CC
5416:
5417: fi
5418: # AC_CACHE_VAL
5419: case "x$ac_cv_prog_cc_c89" in
5420: x)
5421: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5422: $as_echo "none needed" >&6; } ;;
5423: xno)
5424: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5425: $as_echo "unsupported" >&6; } ;;
5426: *)
5427: CC="$CC $ac_cv_prog_cc_c89"
5428: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5429: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5430: esac
5431: if test "x$ac_cv_prog_cc_c89" != xno; then :
5432:
5433: fi
5434:
5435: ac_ext=c
5436: ac_cpp='$CPP $CPPFLAGS'
5437: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5438: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5439: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5440:
5441: depcc="$CC" am_compiler_list=
5442:
5443: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5444: $as_echo_n "checking dependency style of $depcc... " >&6; }
5445: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5446: $as_echo_n "(cached) " >&6
5447: else
5448: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5449: # We make a subdir and do the tests there. Otherwise we can end up
5450: # making bogus files that we don't know about and never remove. For
5451: # instance it was reported that on HP-UX the gcc test will end up
5452: # making a dummy file named `D' -- because `-MD' means `put the output
5453: # in D'.
5454: mkdir conftest.dir
5455: # Copy depcomp to subdir because otherwise we won't find it if we're
5456: # using a relative directory.
5457: cp "$am_depcomp" conftest.dir
5458: cd conftest.dir
5459: # We will build objects and dependencies in a subdirectory because
5460: # it helps to detect inapplicable dependency modes. For instance
5461: # both Tru64's cc and ICC support -MD to output dependencies as a
5462: # side effect of compilation, but ICC will put the dependencies in
5463: # the current directory while Tru64 will put them in the object
5464: # directory.
5465: mkdir sub
5466:
5467: am_cv_CC_dependencies_compiler_type=none
5468: if test "$am_compiler_list" = ""; then
5469: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5470: fi
5471: am__universal=false
5472: case " $depcc " in #(
5473: *\ -arch\ *\ -arch\ *) am__universal=true ;;
5474: esac
5475:
5476: for depmode in $am_compiler_list; do
5477: # Setup a source with many dependencies, because some compilers
5478: # like to wrap large dependency lists on column 80 (with \), and
5479: # we should not choose a depcomp mode which is confused by this.
5480: #
5481: # We need to recreate these files for each test, as the compiler may
5482: # overwrite some of them when testing with obscure command lines.
5483: # This happens at least with the AIX C compiler.
5484: : > sub/conftest.c
5485: for i in 1 2 3 4 5 6; do
5486: echo '#include "conftst'$i'.h"' >> sub/conftest.c
5487: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5488: # Solaris 8's {/usr,}/bin/sh.
5489: touch sub/conftst$i.h
5490: done
5491: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5492:
5493: # We check with `-c' and `-o' for the sake of the "dashmstdout"
5494: # mode. It turns out that the SunPro C++ compiler does not properly
5495: # handle `-M -o', and we need to detect this. Also, some Intel
5496: # versions had trouble with output in subdirs
5497: am__obj=sub/conftest.${OBJEXT-o}
5498: am__minus_obj="-o $am__obj"
5499: case $depmode in
5500: gcc)
5501: # This depmode causes a compiler race in universal mode.
5502: test "$am__universal" = false || continue
5503: ;;
5504: nosideeffect)
5505: # after this tag, mechanisms are not by side-effect, so they'll
5506: # only be used when explicitly requested
5507: if test "x$enable_dependency_tracking" = xyes; then
5508: continue
5509: else
5510: break
5511: fi
5512: ;;
5513: msvisualcpp | msvcmsys)
5514: # This compiler won't grok `-c -o', but also, the minuso test has
5515: # not run yet. These depmodes are late enough in the game, and
5516: # so weak that their functioning should not be impacted.
5517: am__obj=conftest.${OBJEXT-o}
5518: am__minus_obj=
5519: ;;
5520: none) break ;;
5521: esac
5522: if depmode=$depmode \
5523: source=sub/conftest.c object=$am__obj \
5524: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5525: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5526: >/dev/null 2>conftest.err &&
5527: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5528: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5529: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5530: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5531: # icc doesn't choke on unknown options, it will just issue warnings
5532: # or remarks (even with -Werror). So we grep stderr for any message
5533: # that says an option was ignored or not supported.
5534: # When given -MP, icc 7.0 and 7.1 complain thusly:
5535: # icc: Command line warning: ignoring option '-M'; no argument required
5536: # The diagnosis changed in icc 8.0:
5537: # icc: Command line remark: option '-MP' not supported
5538: if (grep 'ignoring option' conftest.err ||
5539: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5540: am_cv_CC_dependencies_compiler_type=$depmode
5541: break
5542: fi
5543: fi
5544: done
5545:
5546: cd ..
5547: rm -rf conftest.dir
5548: else
5549: am_cv_CC_dependencies_compiler_type=none
5550: fi
5551:
5552: fi
5553: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5554: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5555: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5556:
5557: if
5558: test "x$enable_dependency_tracking" != xno \
5559: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5560: am__fastdepCC_TRUE=
5561: am__fastdepCC_FALSE='#'
5562: else
5563: am__fastdepCC_TRUE='#'
5564: am__fastdepCC_FALSE=
5565: fi
5566:
5567:
5568: # Ralf Wildenhues: With per-target flags we need CC_C_O
5569: # AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
5570: if test "x$CC" != xcc; then
5571: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5572: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5573: else
5574: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5575: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5576: fi
5577: set dummy $CC; ac_cc=`$as_echo "$2" |
5578: sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5579: if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5580: $as_echo_n "(cached) " >&6
5581: else
5582: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583: /* end confdefs.h. */
5584:
5585: int
5586: main ()
5587: {
5588:
5589: ;
5590: return 0;
5591: }
5592: _ACEOF
5593: # Make sure it works both with $CC and with simple cc.
5594: # We do the test twice because some compilers refuse to overwrite an
5595: # existing .o file with -o, though they will create one.
5596: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5597: rm -f conftest2.*
5598: if { { case "(($ac_try" in
5599: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5600: *) ac_try_echo=$ac_try;;
5601: esac
5602: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5603: $as_echo "$ac_try_echo"; } >&5
5604: (eval "$ac_try") 2>&5
5605: ac_status=$?
5606: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5607: test $ac_status = 0; } &&
5608: test -f conftest2.$ac_objext && { { case "(($ac_try" in
5609: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5610: *) ac_try_echo=$ac_try;;
5611: esac
5612: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5613: $as_echo "$ac_try_echo"; } >&5
5614: (eval "$ac_try") 2>&5
5615: ac_status=$?
5616: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5617: test $ac_status = 0; };
5618: then
5619: eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5620: if test "x$CC" != xcc; then
5621: # Test first that cc exists at all.
5622: if { ac_try='cc -c conftest.$ac_ext >&5'
5623: { { case "(($ac_try" in
5624: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625: *) ac_try_echo=$ac_try;;
5626: esac
5627: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5628: $as_echo "$ac_try_echo"; } >&5
5629: (eval "$ac_try") 2>&5
5630: ac_status=$?
5631: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5632: test $ac_status = 0; }; }; then
5633: ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5634: rm -f conftest2.*
5635: if { { case "(($ac_try" in
5636: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5637: *) ac_try_echo=$ac_try;;
5638: esac
5639: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5640: $as_echo "$ac_try_echo"; } >&5
5641: (eval "$ac_try") 2>&5
5642: ac_status=$?
5643: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5644: test $ac_status = 0; } &&
5645: test -f conftest2.$ac_objext && { { case "(($ac_try" in
5646: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5647: *) ac_try_echo=$ac_try;;
5648: esac
5649: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5650: $as_echo "$ac_try_echo"; } >&5
5651: (eval "$ac_try") 2>&5
5652: ac_status=$?
5653: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5654: test $ac_status = 0; };
5655: then
5656: # cc works too.
5657: :
5658: else
5659: # cc exists but doesn't like -o.
5660: eval ac_cv_prog_cc_${ac_cc}_c_o=no
5661: fi
5662: fi
5663: fi
5664: else
5665: eval ac_cv_prog_cc_${ac_cc}_c_o=no
5666: fi
5667: rm -f core conftest*
5668:
5669: fi
5670: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5671: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5672: $as_echo "yes" >&6; }
5673: else
5674: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675: $as_echo "no" >&6; }
5676:
5677: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5678:
5679: fi
5680:
5681: # FIXME: we rely on the cache variable name because
5682: # there is no other way.
5683: set dummy $CC
5684: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5685: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5686: if test "$am_t" != yes; then
5687: # Losing compiler, so override with the script.
5688: # FIXME: It is wrong to rewrite CC.
5689: # But if we don't then we get into trouble of one sort or another.
5690: # A longer-term fix would be to have automake use am__CC in this case,
5691: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5692: CC="$am_aux_dir/compile $CC"
5693: fi
5694:
5695:
5696: ac_ext=c
5697: ac_cpp='$CPP $CPPFLAGS'
5698: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5699: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5700: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5701: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5702: $as_echo_n "checking how to run the C preprocessor... " >&6; }
5703: # On Suns, sometimes $CPP names a directory.
5704: if test -n "$CPP" && test -d "$CPP"; then
5705: CPP=
5706: fi
5707: if test -z "$CPP"; then
5708: if ${ac_cv_prog_CPP+:} false; then :
5709: $as_echo_n "(cached) " >&6
5710: else
5711: # Double quotes because CPP needs to be expanded
5712: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5713: do
5714: ac_preproc_ok=false
5715: for ac_c_preproc_warn_flag in '' yes
5716: do
5717: # Use a header file that comes with gcc, so configuring glibc
5718: # with a fresh cross-compiler works.
5719: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5720: # <limits.h> exists even on freestanding compilers.
5721: # On the NeXT, cc -E runs the code through the compiler's parser,
5722: # not just through cpp. "Syntax error" is here to catch this case.
5723: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724: /* end confdefs.h. */
5725: #ifdef __STDC__
5726: # include <limits.h>
5727: #else
5728: # include <assert.h>
5729: #endif
5730: Syntax error
5731: _ACEOF
5732: if ac_fn_c_try_cpp "$LINENO"; then :
5733:
5734: else
5735: # Broken: fails on valid input.
5736: continue
5737: fi
5738: rm -f conftest.err conftest.i conftest.$ac_ext
5739:
5740: # OK, works on sane cases. Now check whether nonexistent headers
5741: # can be detected and how.
5742: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743: /* end confdefs.h. */
5744: #include <ac_nonexistent.h>
5745: _ACEOF
5746: if ac_fn_c_try_cpp "$LINENO"; then :
5747: # Broken: success on invalid input.
5748: continue
5749: else
5750: # Passes both tests.
5751: ac_preproc_ok=:
5752: break
5753: fi
5754: rm -f conftest.err conftest.i conftest.$ac_ext
5755:
5756: done
5757: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5758: rm -f conftest.i conftest.err conftest.$ac_ext
5759: if $ac_preproc_ok; then :
5760: break
5761: fi
5762:
5763: done
5764: ac_cv_prog_CPP=$CPP
5765:
5766: fi
5767: CPP=$ac_cv_prog_CPP
5768: else
5769: ac_cv_prog_CPP=$CPP
5770: fi
5771: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5772: $as_echo "$CPP" >&6; }
5773: ac_preproc_ok=false
5774: for ac_c_preproc_warn_flag in '' yes
5775: do
5776: # Use a header file that comes with gcc, so configuring glibc
5777: # with a fresh cross-compiler works.
5778: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5779: # <limits.h> exists even on freestanding compilers.
5780: # On the NeXT, cc -E runs the code through the compiler's parser,
5781: # not just through cpp. "Syntax error" is here to catch this case.
5782: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783: /* end confdefs.h. */
5784: #ifdef __STDC__
5785: # include <limits.h>
5786: #else
5787: # include <assert.h>
5788: #endif
5789: Syntax error
5790: _ACEOF
5791: if ac_fn_c_try_cpp "$LINENO"; then :
5792:
5793: else
5794: # Broken: fails on valid input.
5795: continue
5796: fi
5797: rm -f conftest.err conftest.i conftest.$ac_ext
5798:
5799: # OK, works on sane cases. Now check whether nonexistent headers
5800: # can be detected and how.
5801: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802: /* end confdefs.h. */
5803: #include <ac_nonexistent.h>
5804: _ACEOF
5805: if ac_fn_c_try_cpp "$LINENO"; then :
5806: # Broken: success on invalid input.
5807: continue
5808: else
5809: # Passes both tests.
5810: ac_preproc_ok=:
5811: break
5812: fi
5813: rm -f conftest.err conftest.i conftest.$ac_ext
5814:
5815: done
5816: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5817: rm -f conftest.i conftest.err conftest.$ac_ext
5818: if $ac_preproc_ok; then :
5819:
5820: else
5821: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5822: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5823: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5824: See \`config.log' for more details" "$LINENO" 5; }
5825: fi
5826:
5827: ac_ext=c
5828: ac_cpp='$CPP $CPPFLAGS'
5829: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5830: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5831: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5832:
5833: for ac_prog in 'bison -y' byacc
5834: do
5835: # Extract the first word of "$ac_prog", so it can be a program name with args.
5836: set dummy $ac_prog; ac_word=$2
5837: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5838: $as_echo_n "checking for $ac_word... " >&6; }
5839: if ${ac_cv_prog_YACC+:} false; then :
5840: $as_echo_n "(cached) " >&6
5841: else
5842: if test -n "$YACC"; then
5843: ac_cv_prog_YACC="$YACC" # Let the user override the test.
5844: else
5845: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846: for as_dir in $PATH
5847: do
5848: IFS=$as_save_IFS
5849: test -z "$as_dir" && as_dir=.
5850: for ac_exec_ext in '' $ac_executable_extensions; do
5851: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5852: ac_cv_prog_YACC="$ac_prog"
5853: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5854: break 2
5855: fi
5856: done
5857: done
5858: IFS=$as_save_IFS
5859:
5860: fi
5861: fi
5862: YACC=$ac_cv_prog_YACC
5863: if test -n "$YACC"; then
5864: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5865: $as_echo "$YACC" >&6; }
5866: else
5867: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868: $as_echo "no" >&6; }
5869: fi
5870:
5871:
5872: test -n "$YACC" && break
5873: done
5874: test -n "$YACC" || YACC="yacc"
5875:
5876:
5877: # AC_PROG_CC_STDC has two functions. It attempts to find a compiler
5878: # capable of C99, or failing that, for C89. CC is set afterward with
5879: # the selected invocation, such as "gcc --std=gnu99". Also, the
5880: # ac_cv_prog_cc_stdc variable is no if the compiler selected for CC
5881: # does not accept C89.
5882:
5883: case $ac_cv_prog_cc_stdc in #(
5884: no) :
5885: ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5886: *) :
5887: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5888: $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5889: if ${ac_cv_prog_cc_c99+:} false; then :
5890: $as_echo_n "(cached) " >&6
5891: else
5892: ac_cv_prog_cc_c99=no
5893: ac_save_CC=$CC
5894: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895: /* end confdefs.h. */
5896: #include <stdarg.h>
5897: #include <stdbool.h>
5898: #include <stdlib.h>
5899: #include <wchar.h>
5900: #include <stdio.h>
5901:
5902: // Check varargs macros. These examples are taken from C99 6.10.3.5.
5903: #define debug(...) fprintf (stderr, __VA_ARGS__)
5904: #define showlist(...) puts (#__VA_ARGS__)
5905: #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5906: static void
5907: test_varargs_macros (void)
5908: {
5909: int x = 1234;
5910: int y = 5678;
5911: debug ("Flag");
5912: debug ("X = %d\n", x);
5913: showlist (The first, second, and third items.);
5914: report (x>y, "x is %d but y is %d", x, y);
5915: }
5916:
5917: // Check long long types.
5918: #define BIG64 18446744073709551615ull
5919: #define BIG32 4294967295ul
5920: #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5921: #if !BIG_OK
5922: your preprocessor is broken;
5923: #endif
5924: #if BIG_OK
5925: #else
5926: your preprocessor is broken;
5927: #endif
5928: static long long int bignum = -9223372036854775807LL;
5929: static unsigned long long int ubignum = BIG64;
5930:
5931: struct incomplete_array
5932: {
5933: int datasize;
5934: double data[];
5935: };
5936:
5937: struct named_init {
5938: int number;
5939: const wchar_t *name;
5940: double average;
5941: };
5942:
5943: typedef const char *ccp;
5944:
5945: static inline int
5946: test_restrict (ccp restrict text)
5947: {
5948: // See if C++-style comments work.
5949: // Iterate through items via the restricted pointer.
5950: // Also check for declarations in for loops.
5951: for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5952: continue;
5953: return 0;
5954: }
5955:
5956: // Check varargs and va_copy.
5957: static void
5958: test_varargs (const char *format, ...)
5959: {
5960: va_list args;
5961: va_start (args, format);
5962: va_list args_copy;
5963: va_copy (args_copy, args);
5964:
5965: const char *str;
5966: int number;
5967: float fnumber;
5968:
5969: while (*format)
5970: {
5971: switch (*format++)
5972: {
5973: case 's': // string
5974: str = va_arg (args_copy, const char *);
5975: break;
5976: case 'd': // int
5977: number = va_arg (args_copy, int);
5978: break;
5979: case 'f': // float
5980: fnumber = va_arg (args_copy, double);
5981: break;
5982: default:
5983: break;
5984: }
5985: }
5986: va_end (args_copy);
5987: va_end (args);
5988: }
5989:
5990: int
5991: main ()
5992: {
5993:
5994: // Check bool.
5995: _Bool success = false;
5996:
5997: // Check restrict.
5998: if (test_restrict ("String literal") == 0)
5999: success = true;
6000: char *restrict newvar = "Another string";
6001:
6002: // Check varargs.
6003: test_varargs ("s, d' f .", "string", 65, 34.234);
6004: test_varargs_macros ();
6005:
6006: // Check flexible array members.
6007: struct incomplete_array *ia =
6008: malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6009: ia->datasize = 10;
6010: for (int i = 0; i < ia->datasize; ++i)
6011: ia->data[i] = i * 1.234;
6012:
6013: // Check named initializers.
6014: struct named_init ni = {
6015: .number = 34,
6016: .name = L"Test wide string",
6017: .average = 543.34343,
6018: };
6019:
6020: ni.number = 58;
6021:
6022: int dynamic_array[ni.number];
6023: dynamic_array[ni.number - 1] = 543;
6024:
6025: // work around unused variable warnings
6026: return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6027: || dynamic_array[ni.number - 1] != 543);
6028:
6029: ;
6030: return 0;
6031: }
6032: _ACEOF
6033: for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6034: do
6035: CC="$ac_save_CC $ac_arg"
6036: if ac_fn_c_try_compile "$LINENO"; then :
6037: ac_cv_prog_cc_c99=$ac_arg
6038: fi
6039: rm -f core conftest.err conftest.$ac_objext
6040: test "x$ac_cv_prog_cc_c99" != "xno" && break
6041: done
6042: rm -f conftest.$ac_ext
6043: CC=$ac_save_CC
6044:
6045: fi
6046: # AC_CACHE_VAL
6047: case "x$ac_cv_prog_cc_c99" in
6048: x)
6049: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6050: $as_echo "none needed" >&6; } ;;
6051: xno)
6052: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6053: $as_echo "unsupported" >&6; } ;;
6054: *)
6055: CC="$CC $ac_cv_prog_cc_c99"
6056: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6057: $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6058: esac
6059: if test "x$ac_cv_prog_cc_c99" != xno; then :
6060: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6061: else
6062: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6063: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6064: if ${ac_cv_prog_cc_c89+:} false; then :
6065: $as_echo_n "(cached) " >&6
6066: else
6067: ac_cv_prog_cc_c89=no
6068: ac_save_CC=$CC
6069: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070: /* end confdefs.h. */
6071: #include <stdarg.h>
6072: #include <stdio.h>
6073: #include <sys/types.h>
6074: #include <sys/stat.h>
6075: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6076: struct buf { int x; };
6077: FILE * (*rcsopen) (struct buf *, struct stat *, int);
6078: static char *e (p, i)
6079: char **p;
6080: int i;
6081: {
6082: return p[i];
6083: }
6084: static char *f (char * (*g) (char **, int), char **p, ...)
6085: {
6086: char *s;
6087: va_list v;
6088: va_start (v,p);
6089: s = g (p, va_arg (v,int));
6090: va_end (v);
6091: return s;
6092: }
6093:
6094: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6095: function prototypes and stuff, but not '\xHH' hex character constants.
6096: These don't provoke an error unfortunately, instead are silently treated
6097: as 'x'. The following induces an error, until -std is added to get
6098: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6099: array size at least. It's necessary to write '\x00'==0 to get something
6100: that's true only with -std. */
6101: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6102:
6103: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6104: inside strings and character constants. */
6105: #define FOO(x) 'x'
6106: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6107:
6108: int test (int i, double x);
6109: struct s1 {int (*f) (int a);};
6110: struct s2 {int (*f) (double a);};
6111: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6112: int argc;
6113: char **argv;
6114: int
6115: main ()
6116: {
6117: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6118: ;
6119: return 0;
6120: }
6121: _ACEOF
6122: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6123: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6124: do
6125: CC="$ac_save_CC $ac_arg"
6126: if ac_fn_c_try_compile "$LINENO"; then :
6127: ac_cv_prog_cc_c89=$ac_arg
6128: fi
6129: rm -f core conftest.err conftest.$ac_objext
6130: test "x$ac_cv_prog_cc_c89" != "xno" && break
6131: done
6132: rm -f conftest.$ac_ext
6133: CC=$ac_save_CC
6134:
6135: fi
6136: # AC_CACHE_VAL
6137: case "x$ac_cv_prog_cc_c89" in
6138: x)
6139: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6140: $as_echo "none needed" >&6; } ;;
6141: xno)
6142: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6143: $as_echo "unsupported" >&6; } ;;
6144: *)
6145: CC="$CC $ac_cv_prog_cc_c89"
6146: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6147: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6148: esac
6149: if test "x$ac_cv_prog_cc_c89" != xno; then :
6150: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6151: else
6152: ac_cv_prog_cc_stdc=no
6153: fi
6154:
6155: fi
6156: ;;
6157: esac
6158: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6159: $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6160: if ${ac_cv_prog_cc_stdc+:} false; then :
6161: $as_echo_n "(cached) " >&6
6162: fi
6163:
6164: case $ac_cv_prog_cc_stdc in #(
6165: no) :
6166: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6167: $as_echo "unsupported" >&6; } ;; #(
6168: '') :
6169: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6170: $as_echo "none needed" >&6; } ;; #(
6171: *) :
6172: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6173: $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6174: esac
6175:
6176:
6177: case "$ac_cv_prog_cc_stdc" in
6178: no)
6179: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
6180: version 4.2.5 and higher." >&5
6181: $as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
6182: version 4.2.5 and higher." >&2;}
6183: esac
6184:
6185: # HMS: These need to be moved to AM_CPPFLAGS and/or AM_CFLAGS
6186: case "$host" in
6187: *-pc-cygwin*)
6188: CFLAGS="$CFLAGS -DSYS_CYGWIN32"
6189: ;;
6190: i386-sequent-sysv4)
6191: case "$CC" in
6192: cc)
6193: CFLAGS="$CFLAGS -Wc,+abi-socket"
6194: ;;
6195: esac
6196: ;;
6197: *-*-mpeix*)
6198: CPPFLAGS="$CPPFLAGS -DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE -I/SYSLOG/PUB"
6199: LDFLAGS="$LDFLAGS -L/SYSLOG/PUB"
6200: LIBS="$LIBS -lcurses"
6201: ;;
6202: *-*-solaris*)
6203: # see "man standards".
6204: # -D_XOPEN_SOURCE=500 is probably OK for c89 and before
6205: # -D_XOPEN_SOURCE=600 seems OK for c99
6206: #CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500 -D__EXTENSIONS__"
6207: CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
6208: libxnet=-lxnet
6209: ;;
6210: esac
6211:
6212:
6213: { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
6214: $as_echo_n "checking additional compiler flags... " >&6; }
6215: # allow ntp_os_flags to be preset to skip this stuff
6216: case "${ntp_os_cflags+set}" in
6217: set)
6218: ;;
6219: *)
6220: ntp_os_cflags=""
6221: case "$host_os" in
6222: aix[1-3]*)
6223: ;;
6224: aix4.[0-2]*)
6225: # turn on additional headers
6226: ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
6227: ;;
6228: aix5.3*)
6229: # avoid circular dependencies in yp headers, and more
6230: ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
6231: ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT"
6232: ;;
6233: aix*)
6234: # avoid circular dependencies in yp headers
6235: ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
6236: ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS"
6237: ;;
6238: amigaos)
6239: ntp_os_cflags="-DSYS_AMIGA"
6240: ;;
6241: darwin*|macosx*|rhapsody*)
6242: ntp_os_cflags="-D_P1003_1B_VISIBLE"
6243: ;;
6244: hpux10.*) # at least for hppa2.0-hp-hpux10.20
6245: case "$GCC" in
6246: yes)
6247: ;;
6248: *)
6249: # use Ansi compiler on HPUX, and some -Wp magic
6250: ntp_os_cflags="-Ae -Wp,-H18816"
6251: ;;
6252: esac
6253: ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE"
6254: ;;
6255: hpux*)
6256: case "$GCC" in
6257: yes)
6258: ;;
6259: *)
6260: # use Ansi compiler on HPUX
6261: ntp_os_cflags="-Ae"
6262: esac
6263: ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE"
6264: ;;
6265: irix6*)
6266: case "$CC" in
6267: cc)
6268: # do not use 64-bit compiler
6269: ntp_os_cflags="-n32 -mips3 -Wl,-woff,84"
6270: esac
6271: ;;
6272: nextstep3)
6273: ntp_os_cflags="-posix"
6274: ;;
6275: solaris1*|solaris2.[0-5]|solaris2.5.*)
6276: ;;
6277: sunos[34]*|sunos5.[0-5]|sunos5.5.*)
6278: ;;
6279: solaris2*|sunos5*)
6280: # turn on 64-bit file offset interface
6281: ntp_os_cflags="-D_LARGEFILE64_SOURCE"
6282: ;;
6283: vxworks*)
6284: case "$build" in
6285: $host)
6286: ;;
6287: *)
6288: # Quick and dirty sanity check
6289: case "$VX_KERNEL" in
6290: '')
6291: as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5
6292: esac
6293: ntp_os_cflags="-DSYS_VXWORKS"
6294: esac
6295: ;;
6296: esac
6297: esac
6298: case "$ntp_os_flags" in
6299: '')
6300: ntp_os_cflags_msg="none needed"
6301: ;;
6302: *)
6303: ntp_os_cflags_msg="$ntp_os_cflags"
6304: CFLAGS="$CFLAGS $ntp_os_cflags"
6305: esac
6306: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5
6307: $as_echo "$ntp_os_cflags_msg" >&6; }
6308: { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;}
6309:
6310:
6311: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
6312: $as_echo_n "checking for directory path separator... " >&6; }
6313: if ${ntp_cv_dir_sep+:} false; then :
6314: $as_echo_n "(cached) " >&6
6315: else
6316:
6317: case "$ntp_cv_dir_sep" in
6318: '')
6319: case "$target_os" in
6320: *djgpp | *mingw32* | *emx*)
6321: ntp_cv_dir_sep="'\\'"
6322: ;;
6323: *)
6324: ntp_cv_dir_sep="'/'"
6325: ;;
6326: esac
6327: esac
6328:
6329:
6330: fi
6331: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
6332: $as_echo "$ntp_cv_dir_sep" >&6; }
6333:
6334: cat >>confdefs.h <<_ACEOF
6335: #define DIR_SEP $ntp_cv_dir_sep
6336: _ACEOF
6337:
6338:
6339:
6340: { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we need a VPATH hack" >&5
6341: $as_echo_n "checking to see if we need a VPATH hack... " >&6; }
6342: ntp_vpath_hack="no"
6343: case "$srcdir::$build_os::${force_ntp_vpath_hack+set}" in
6344: .::*::*)
6345: ;;
6346: *::*::set)
6347: ntp_vpath_hack="yes"
6348: ;;
6349: *::freebsd*::)
6350: case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
6351: '')
6352: ntp_vpath_hack="yes"
6353: esac
6354: esac
6355: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_vpath_hack" >&5
6356: $as_echo "$ntp_vpath_hack" >&6; }
6357: if test x$ntp_vpath_hack = xyes; then
6358: VPATH_HACK_TRUE=
6359: VPATH_HACK_FALSE='#'
6360: else
6361: VPATH_HACK_TRUE='#'
6362: VPATH_HACK_FALSE=
6363: fi
6364:
6365:
6366:
6367: # NTP has (so far) been relying on leading-edge autogen.
6368: # Therefore, by default:
6369: # - use the version we ship with
6370: # - do not install it
6371: # - build a static copy (AC_DISABLE_SHARED - done earlier)
6372: case "${enable_local_libopts+set}" in
6373: set) ;;
6374: *) enable_local_libopts=yes ;;
6375: esac
6376: case "${enable_libopts_install+set}" in
6377: set) ;;
6378: *) enable_libopts_install=no ;;
6379: esac
6380: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6381: if test "x$ac_cv_type_pid_t" = xyes; then :
6382:
6383: else
6384:
6385: cat >>confdefs.h <<_ACEOF
6386: #define pid_t int
6387: _ACEOF
6388:
6389: fi
6390:
6391:
6392:
6393: ac_header_dirent=no
6394: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6395: as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6396: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6397: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6398: if eval \${$as_ac_Header+:} false; then :
6399: $as_echo_n "(cached) " >&6
6400: else
6401: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6402: /* end confdefs.h. */
6403: #include <sys/types.h>
6404: #include <$ac_hdr>
6405:
6406: int
6407: main ()
6408: {
6409: if ((DIR *) 0)
6410: return 0;
6411: ;
6412: return 0;
6413: }
6414: _ACEOF
6415: if ac_fn_c_try_compile "$LINENO"; then :
6416: eval "$as_ac_Header=yes"
6417: else
6418: eval "$as_ac_Header=no"
6419: fi
6420: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6421: fi
6422: eval ac_res=\$$as_ac_Header
6423: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6424: $as_echo "$ac_res" >&6; }
6425: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6426: cat >>confdefs.h <<_ACEOF
6427: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6428: _ACEOF
6429:
6430: ac_header_dirent=$ac_hdr; break
6431: fi
6432:
6433: done
6434: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6435: if test $ac_header_dirent = dirent.h; then
6436: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6437: $as_echo_n "checking for library containing opendir... " >&6; }
6438: if ${ac_cv_search_opendir+:} false; then :
6439: $as_echo_n "(cached) " >&6
6440: else
6441: ac_func_search_save_LIBS=$LIBS
6442: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443: /* end confdefs.h. */
6444:
6445: /* Override any GCC internal prototype to avoid an error.
6446: Use char because int might match the return type of a GCC
6447: builtin and then its argument prototype would still apply. */
6448: #ifdef __cplusplus
6449: extern "C"
6450: #endif
6451: char opendir ();
6452: int
6453: main ()
6454: {
6455: return opendir ();
6456: ;
6457: return 0;
6458: }
6459: _ACEOF
6460: for ac_lib in '' dir; do
6461: if test -z "$ac_lib"; then
6462: ac_res="none required"
6463: else
6464: ac_res=-l$ac_lib
6465: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6466: fi
6467: if ac_fn_c_try_link "$LINENO"; then :
6468: ac_cv_search_opendir=$ac_res
6469: fi
6470: rm -f core conftest.err conftest.$ac_objext \
6471: conftest$ac_exeext
6472: if ${ac_cv_search_opendir+:} false; then :
6473: break
6474: fi
6475: done
6476: if ${ac_cv_search_opendir+:} false; then :
6477:
6478: else
6479: ac_cv_search_opendir=no
6480: fi
6481: rm conftest.$ac_ext
6482: LIBS=$ac_func_search_save_LIBS
6483: fi
6484: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6485: $as_echo "$ac_cv_search_opendir" >&6; }
6486: ac_res=$ac_cv_search_opendir
6487: if test "$ac_res" != no; then :
6488: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6489:
6490: fi
6491:
6492: else
6493: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6494: $as_echo_n "checking for library containing opendir... " >&6; }
6495: if ${ac_cv_search_opendir+:} false; then :
6496: $as_echo_n "(cached) " >&6
6497: else
6498: ac_func_search_save_LIBS=$LIBS
6499: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500: /* end confdefs.h. */
6501:
6502: /* Override any GCC internal prototype to avoid an error.
6503: Use char because int might match the return type of a GCC
6504: builtin and then its argument prototype would still apply. */
6505: #ifdef __cplusplus
6506: extern "C"
6507: #endif
6508: char opendir ();
6509: int
6510: main ()
6511: {
6512: return opendir ();
6513: ;
6514: return 0;
6515: }
6516: _ACEOF
6517: for ac_lib in '' x; do
6518: if test -z "$ac_lib"; then
6519: ac_res="none required"
6520: else
6521: ac_res=-l$ac_lib
6522: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6523: fi
6524: if ac_fn_c_try_link "$LINENO"; then :
6525: ac_cv_search_opendir=$ac_res
6526: fi
6527: rm -f core conftest.err conftest.$ac_objext \
6528: conftest$ac_exeext
6529: if ${ac_cv_search_opendir+:} false; then :
6530: break
6531: fi
6532: done
6533: if ${ac_cv_search_opendir+:} false; then :
6534:
6535: else
6536: ac_cv_search_opendir=no
6537: fi
6538: rm conftest.$ac_ext
6539: LIBS=$ac_func_search_save_LIBS
6540: fi
6541: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6542: $as_echo "$ac_cv_search_opendir" >&6; }
6543: ac_res=$ac_cv_search_opendir
6544: if test "$ac_res" != no; then :
6545: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6546:
6547: fi
6548:
6549: fi
6550:
6551:
6552: # =================
6553: # AC_CHECK_HEADERS
6554: # =================
6555: for ac_header in \
6556: dlfcn.h errno.h fcntl.h libgen.h \
6557: memory.h netinet/in.h setjmp.h sys/mman.h \
6558: sys/param.h sys/poll.h sys/procset.h sys/select.h \
6559: sys/socket.h sys/stropts.h sys/time.h sys/un.h \
6560: sys/wait.h unistd.h utime.h sysexits.h
6561: do :
6562: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6563: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6564: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6565: cat >>confdefs.h <<_ACEOF
6566: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6567: _ACEOF
6568:
6569: fi
6570:
6571: done
6572:
6573:
6574: for ac_header in stdarg.h varargs.h
6575: do :
6576: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6577: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6578: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6579: cat >>confdefs.h <<_ACEOF
6580: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6581: _ACEOF
6582: lo_have_arg_hdr=true;break
6583: else
6584: lo_have_arg_hdr=false
6585: fi
6586:
6587: done
6588:
6589:
6590: for ac_header in string.h strings.h
6591: do :
6592: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6593: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6594: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6595: cat >>confdefs.h <<_ACEOF
6596: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6597: _ACEOF
6598: lo_have_str_hdr=true;break
6599: else
6600: lo_have_str_hdr=false
6601: fi
6602:
6603: done
6604:
6605:
6606: for ac_header in limits.h sys/limits.h values.h
6607: do :
6608: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6609: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6610: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6611: cat >>confdefs.h <<_ACEOF
6612: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6613: _ACEOF
6614: lo_have_lim_hdr=true;break
6615: else
6616: lo_have_lim_hdr=false
6617: fi
6618:
6619: done
6620:
6621:
6622: for ac_header in inttypes.h stdint.h
6623: do :
6624: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6625: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6626: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6627: cat >>confdefs.h <<_ACEOF
6628: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6629: _ACEOF
6630: lo_have_typ_hdr=true;break
6631: else
6632: lo_have_typ_hdr=false
6633: fi
6634:
6635: done
6636:
6637:
6638: # ----------------------------------------------------------------------
6639: # check for various programs used during the build.
6640: # On OS/X, "wchar.h" needs "runetype.h" to work properly.
6641: # ----------------------------------------------------------------------
6642: for ac_header in runetype.h wchar.h
6643: do :
6644: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6645: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
6646: $ac_includes_default
6647: #if HAVE_RUNETYPE_H
6648: # include <runetype.h>
6649: #endif
6650:
6651: "
6652: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6653: cat >>confdefs.h <<_ACEOF
6654: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6655: _ACEOF
6656:
6657: fi
6658:
6659: done
6660:
6661:
6662: # --------------------------------------------
6663: # Verify certain entries from AC_CHECK_HEADERS
6664: # --------------------------------------------
6665: for f in sys_types sys_mman sys_param sys_stat sys_wait \
6666: string errno stdlib memory setjmp
6667: do eval as_ac_var=\${ac_cv_header_${f}_h+set}
6668: test "${as_ac_var}" = set || {
6669: as_fn_error $? "You must have ${f}.h on your system" "$LINENO" 5
6670: }
6671: done
6672:
6673: ${lo_have_arg_hdr} || \
6674: as_fn_error $? "You must have stdarg.h or varargs.h on your system" "$LINENO" 5
6675:
6676: ${lo_have_str_hdr} || \
6677: as_fn_error $? "You must have string.h or strings.h on your system" "$LINENO" 5
6678:
6679: ${lo_have_lim_hdr} || \
6680: as_fn_error $? "You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
6681:
6682: ${lo_have_typ_hdr} || \
6683: as_fn_error $? "You must have inttypes.h or stdint.h on your system" "$LINENO" 5
6684:
6685: # ----------------------------------------------------------------------
6686: # Checks for typedefs
6687: # ----------------------------------------------------------------------
6688: ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
6689: if test "x$ac_cv_type_wchar_t" = xyes; then :
6690:
6691: cat >>confdefs.h <<_ACEOF
6692: #define HAVE_WCHAR_T 1
6693: _ACEOF
6694:
6695:
6696: fi
6697:
6698: ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
6699: $ac_includes_default
6700: #if HAVE_RUNETYPE_H
6701: # include <runetype.h>
6702: #endif
6703: #if HAVE_WCHAR_H
6704: # include <wchar.h>
6705: #endif
6706:
6707: "
6708: if test "x$ac_cv_type_wint_t" = xyes; then :
6709:
6710: cat >>confdefs.h <<_ACEOF
6711: #define HAVE_WINT_T 1
6712: _ACEOF
6713:
6714:
6715: fi
6716:
6717: ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
6718: if test "x$ac_cv_type_int8_t" = xyes; then :
6719:
6720: cat >>confdefs.h <<_ACEOF
6721: #define HAVE_INT8_T 1
6722: _ACEOF
6723:
6724:
6725: fi
6726: ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
6727: if test "x$ac_cv_type_uint8_t" = xyes; then :
6728:
6729: cat >>confdefs.h <<_ACEOF
6730: #define HAVE_UINT8_T 1
6731: _ACEOF
6732:
6733:
6734: fi
6735: ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
6736: if test "x$ac_cv_type_int16_t" = xyes; then :
6737:
6738: cat >>confdefs.h <<_ACEOF
6739: #define HAVE_INT16_T 1
6740: _ACEOF
6741:
6742:
6743: fi
6744: ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
6745: if test "x$ac_cv_type_uint16_t" = xyes; then :
6746:
6747: cat >>confdefs.h <<_ACEOF
6748: #define HAVE_UINT16_T 1
6749: _ACEOF
6750:
6751:
6752: fi
6753: ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
6754: if test "x$ac_cv_type_int32_t" = xyes; then :
6755:
6756: cat >>confdefs.h <<_ACEOF
6757: #define HAVE_INT32_T 1
6758: _ACEOF
6759:
6760:
6761: fi
6762: ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
6763: if test "x$ac_cv_type_uint32_t" = xyes; then :
6764:
6765: cat >>confdefs.h <<_ACEOF
6766: #define HAVE_UINT32_T 1
6767: _ACEOF
6768:
6769:
6770: fi
6771: ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6772: if test "x$ac_cv_type_intptr_t" = xyes; then :
6773:
6774: cat >>confdefs.h <<_ACEOF
6775: #define HAVE_INTPTR_T 1
6776: _ACEOF
6777:
6778:
6779: fi
6780: ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6781: if test "x$ac_cv_type_uintptr_t" = xyes; then :
6782:
6783: cat >>confdefs.h <<_ACEOF
6784: #define HAVE_UINTPTR_T 1
6785: _ACEOF
6786:
6787:
6788: fi
6789: ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
6790: if test "x$ac_cv_type_uint_t" = xyes; then :
6791:
6792: cat >>confdefs.h <<_ACEOF
6793: #define HAVE_UINT_T 1
6794: _ACEOF
6795:
6796:
6797: fi
6798: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6799: if test "x$ac_cv_type_pid_t" = xyes; then :
6800:
6801: cat >>confdefs.h <<_ACEOF
6802: #define HAVE_PID_T 1
6803: _ACEOF
6804:
6805:
6806: fi
6807: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6808: if test "x$ac_cv_type_size_t" = xyes; then :
6809:
6810: cat >>confdefs.h <<_ACEOF
6811: #define HAVE_SIZE_T 1
6812: _ACEOF
6813:
6814:
6815: fi
6816:
6817:
6818: # =====
6819: # sizes
6820: # =====
6821: # The cast to long int works around a bug in the HP C Compiler
6822: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6823: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6824: # This bug is HP SR number 8606223364.
6825: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
6826: $as_echo_n "checking size of char*... " >&6; }
6827: if ${ac_cv_sizeof_charp+:} false; then :
6828: $as_echo_n "(cached) " >&6
6829: else
6830: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then :
6831:
6832: else
6833: if test "$ac_cv_type_charp" = yes; then
6834: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6835: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6836: as_fn_error 77 "cannot compute sizeof (char*)
6837: See \`config.log' for more details" "$LINENO" 5; }
6838: else
6839: ac_cv_sizeof_charp=0
6840: fi
6841: fi
6842:
6843: fi
6844: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
6845: $as_echo "$ac_cv_sizeof_charp" >&6; }
6846:
6847:
6848:
6849: cat >>confdefs.h <<_ACEOF
6850: #define SIZEOF_CHARP $ac_cv_sizeof_charp
6851: _ACEOF
6852:
6853:
6854: # The cast to long int works around a bug in the HP C Compiler
6855: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6856: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6857: # This bug is HP SR number 8606223364.
6858: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6859: $as_echo_n "checking size of int... " >&6; }
6860: if ${ac_cv_sizeof_int+:} false; then :
6861: $as_echo_n "(cached) " >&6
6862: else
6863: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6864:
6865: else
6866: if test "$ac_cv_type_int" = yes; then
6867: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6868: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6869: as_fn_error 77 "cannot compute sizeof (int)
6870: See \`config.log' for more details" "$LINENO" 5; }
6871: else
6872: ac_cv_sizeof_int=0
6873: fi
6874: fi
6875:
6876: fi
6877: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6878: $as_echo "$ac_cv_sizeof_int" >&6; }
6879:
6880:
6881:
6882: cat >>confdefs.h <<_ACEOF
6883: #define SIZEOF_INT $ac_cv_sizeof_int
6884: _ACEOF
6885:
6886:
6887: # The cast to long int works around a bug in the HP C Compiler
6888: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6889: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6890: # This bug is HP SR number 8606223364.
6891: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6892: $as_echo_n "checking size of long... " >&6; }
6893: if ${ac_cv_sizeof_long+:} false; then :
6894: $as_echo_n "(cached) " >&6
6895: else
6896: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6897:
6898: else
6899: if test "$ac_cv_type_long" = yes; then
6900: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6901: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6902: as_fn_error 77 "cannot compute sizeof (long)
6903: See \`config.log' for more details" "$LINENO" 5; }
6904: else
6905: ac_cv_sizeof_long=0
6906: fi
6907: fi
6908:
6909: fi
6910: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6911: $as_echo "$ac_cv_sizeof_long" >&6; }
6912:
6913:
6914:
6915: cat >>confdefs.h <<_ACEOF
6916: #define SIZEOF_LONG $ac_cv_sizeof_long
6917: _ACEOF
6918:
6919:
6920: # The cast to long int works around a bug in the HP C Compiler
6921: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6922: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6923: # This bug is HP SR number 8606223364.
6924: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6925: $as_echo_n "checking size of short... " >&6; }
6926: if ${ac_cv_sizeof_short+:} false; then :
6927: $as_echo_n "(cached) " >&6
6928: else
6929: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6930:
6931: else
6932: if test "$ac_cv_type_short" = yes; then
6933: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6934: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6935: as_fn_error 77 "cannot compute sizeof (short)
6936: See \`config.log' for more details" "$LINENO" 5; }
6937: else
6938: ac_cv_sizeof_short=0
6939: fi
6940: fi
6941:
6942: fi
6943: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6944: $as_echo "$ac_cv_sizeof_short" >&6; }
6945:
6946:
6947:
6948: cat >>confdefs.h <<_ACEOF
6949: #define SIZEOF_SHORT $ac_cv_sizeof_short
6950: _ACEOF
6951:
6952:
6953:
6954: # ----------------------------------------------------------------------
6955: # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
6956: # ----------------------------------------------------------------------
6957: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
6958: $as_echo_n "checking for pathfind in -lgen... " >&6; }
6959: if ${ac_cv_lib_gen_pathfind+:} false; then :
6960: $as_echo_n "(cached) " >&6
6961: else
6962: ac_check_lib_save_LIBS=$LIBS
6963: LIBS="-lgen $LIBS"
6964: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965: /* end confdefs.h. */
6966:
6967: /* Override any GCC internal prototype to avoid an error.
6968: Use char because int might match the return type of a GCC
6969: builtin and then its argument prototype would still apply. */
6970: #ifdef __cplusplus
6971: extern "C"
6972: #endif
6973: char pathfind ();
6974: int
6975: main ()
6976: {
6977: return pathfind ();
6978: ;
6979: return 0;
6980: }
6981: _ACEOF
6982: if ac_fn_c_try_link "$LINENO"; then :
6983: ac_cv_lib_gen_pathfind=yes
6984: else
6985: ac_cv_lib_gen_pathfind=no
6986: fi
6987: rm -f core conftest.err conftest.$ac_objext \
6988: conftest$ac_exeext conftest.$ac_ext
6989: LIBS=$ac_check_lib_save_LIBS
6990: fi
6991: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
6992: $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
6993: if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
6994: cat >>confdefs.h <<_ACEOF
6995: #define HAVE_LIBGEN 1
6996: _ACEOF
6997:
6998: LIBS="-lgen $LIBS"
6999:
7000: fi
7001:
7002: for ac_func in vprintf
7003: do :
7004: ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
7005: if test "x$ac_cv_func_vprintf" = xyes; then :
7006: cat >>confdefs.h <<_ACEOF
7007: #define HAVE_VPRINTF 1
7008: _ACEOF
7009:
7010: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
7011: if test "x$ac_cv_func__doprnt" = xyes; then :
7012:
7013: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
7014:
7015: fi
7016:
7017: fi
7018: done
7019:
7020:
7021: for ac_header in vfork.h
7022: do :
7023: ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
7024: if test "x$ac_cv_header_vfork_h" = xyes; then :
7025: cat >>confdefs.h <<_ACEOF
7026: #define HAVE_VFORK_H 1
7027: _ACEOF
7028:
7029: fi
7030:
7031: done
7032:
7033: for ac_func in fork vfork
7034: do :
7035: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7036: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7037: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7038: cat >>confdefs.h <<_ACEOF
7039: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7040: _ACEOF
7041:
7042: fi
7043: done
7044:
7045: if test "x$ac_cv_func_fork" = xyes; then
7046: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
7047: $as_echo_n "checking for working fork... " >&6; }
7048: if ${ac_cv_func_fork_works+:} false; then :
7049: $as_echo_n "(cached) " >&6
7050: else
7051: if test "$cross_compiling" = yes; then :
7052: ac_cv_func_fork_works=cross
7053: else
7054: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055: /* end confdefs.h. */
7056: $ac_includes_default
7057: int
7058: main ()
7059: {
7060:
7061: /* By Ruediger Kuhlmann. */
7062: return fork () < 0;
7063:
7064: ;
7065: return 0;
7066: }
7067: _ACEOF
7068: if ac_fn_c_try_run "$LINENO"; then :
7069: ac_cv_func_fork_works=yes
7070: else
7071: ac_cv_func_fork_works=no
7072: fi
7073: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7074: conftest.$ac_objext conftest.beam conftest.$ac_ext
7075: fi
7076:
7077: fi
7078: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
7079: $as_echo "$ac_cv_func_fork_works" >&6; }
7080:
7081: else
7082: ac_cv_func_fork_works=$ac_cv_func_fork
7083: fi
7084: if test "x$ac_cv_func_fork_works" = xcross; then
7085: case $host in
7086: *-*-amigaos* | *-*-msdosdjgpp*)
7087: # Override, as these systems have only a dummy fork() stub
7088: ac_cv_func_fork_works=no
7089: ;;
7090: *)
7091: ac_cv_func_fork_works=yes
7092: ;;
7093: esac
7094: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7095: $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7096: fi
7097: ac_cv_func_vfork_works=$ac_cv_func_vfork
7098: if test "x$ac_cv_func_vfork" = xyes; then
7099: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
7100: $as_echo_n "checking for working vfork... " >&6; }
7101: if ${ac_cv_func_vfork_works+:} false; then :
7102: $as_echo_n "(cached) " >&6
7103: else
7104: if test "$cross_compiling" = yes; then :
7105: ac_cv_func_vfork_works=cross
7106: else
7107: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108: /* end confdefs.h. */
7109: /* Thanks to Paul Eggert for this test. */
7110: $ac_includes_default
7111: #include <sys/wait.h>
7112: #ifdef HAVE_VFORK_H
7113: # include <vfork.h>
7114: #endif
7115: /* On some sparc systems, changes by the child to local and incoming
7116: argument registers are propagated back to the parent. The compiler
7117: is told about this with #include <vfork.h>, but some compilers
7118: (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7119: static variable whose address is put into a register that is
7120: clobbered by the vfork. */
7121: static void
7122: #ifdef __cplusplus
7123: sparc_address_test (int arg)
7124: # else
7125: sparc_address_test (arg) int arg;
7126: #endif
7127: {
7128: static pid_t child;
7129: if (!child) {
7130: child = vfork ();
7131: if (child < 0) {
7132: perror ("vfork");
7133: _exit(2);
7134: }
7135: if (!child) {
7136: arg = getpid();
7137: write(-1, "", 0);
7138: _exit (arg);
7139: }
7140: }
7141: }
7142:
7143: int
7144: main ()
7145: {
7146: pid_t parent = getpid ();
7147: pid_t child;
7148:
7149: sparc_address_test (0);
7150:
7151: child = vfork ();
7152:
7153: if (child == 0) {
7154: /* Here is another test for sparc vfork register problems. This
7155: test uses lots of local variables, at least as many local
7156: variables as main has allocated so far including compiler
7157: temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7158: 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7159: reuse the register of parent for one of the local variables,
7160: since it will think that parent can't possibly be used any more
7161: in this routine. Assigning to the local variable will thus
7162: munge parent in the parent process. */
7163: pid_t
7164: p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7165: p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7166: /* Convince the compiler that p..p7 are live; otherwise, it might
7167: use the same hardware register for all 8 local variables. */
7168: if (p != p1 || p != p2 || p != p3 || p != p4
7169: || p != p5 || p != p6 || p != p7)
7170: _exit(1);
7171:
7172: /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7173: from child file descriptors. If the child closes a descriptor
7174: before it execs or exits, this munges the parent's descriptor
7175: as well. Test for this by closing stdout in the child. */
7176: _exit(close(fileno(stdout)) != 0);
7177: } else {
7178: int status;
7179: struct stat st;
7180:
7181: while (wait(&status) != child)
7182: ;
7183: return (
7184: /* Was there some problem with vforking? */
7185: child < 0
7186:
7187: /* Did the child fail? (This shouldn't happen.) */
7188: || status
7189:
7190: /* Did the vfork/compiler bug occur? */
7191: || parent != getpid()
7192:
7193: /* Did the file descriptor bug occur? */
7194: || fstat(fileno(stdout), &st) != 0
7195: );
7196: }
7197: }
7198: _ACEOF
7199: if ac_fn_c_try_run "$LINENO"; then :
7200: ac_cv_func_vfork_works=yes
7201: else
7202: ac_cv_func_vfork_works=no
7203: fi
7204: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7205: conftest.$ac_objext conftest.beam conftest.$ac_ext
7206: fi
7207:
7208: fi
7209: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
7210: $as_echo "$ac_cv_func_vfork_works" >&6; }
7211:
7212: fi;
7213: if test "x$ac_cv_func_fork_works" = xcross; then
7214: ac_cv_func_vfork_works=$ac_cv_func_vfork
7215: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7216: $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7217: fi
7218:
7219: if test "x$ac_cv_func_vfork_works" = xyes; then
7220:
7221: $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
7222:
7223: else
7224:
7225: $as_echo "#define vfork fork" >>confdefs.h
7226:
7227: fi
7228: if test "x$ac_cv_func_fork_works" = xyes; then
7229:
7230: $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
7231:
7232: fi
7233:
7234: for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
7235: strrchr strsignal
7236: do :
7237: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7238: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7239: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7240: cat >>confdefs.h <<_ACEOF
7241: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7242: _ACEOF
7243:
7244: fi
7245: done
7246:
7247: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7248: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7249: if ${ac_cv_path_SED+:} false; then :
7250: $as_echo_n "(cached) " >&6
7251: else
7252: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7253: for ac_i in 1 2 3 4 5 6 7; do
7254: ac_script="$ac_script$as_nl$ac_script"
7255: done
7256: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7257: { ac_script=; unset ac_script;}
7258: if test -z "$SED"; then
7259: ac_path_SED_found=false
7260: # Loop through the user's path and test for each of PROGNAME-LIST
7261: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262: for as_dir in $PATH
7263: do
7264: IFS=$as_save_IFS
7265: test -z "$as_dir" && as_dir=.
7266: for ac_prog in sed gsed; do
7267: for ac_exec_ext in '' $ac_executable_extensions; do
7268: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7269: { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7270: # Check for GNU ac_path_SED and select it if it is found.
7271: # Check for GNU $ac_path_SED
7272: case `"$ac_path_SED" --version 2>&1` in
7273: *GNU*)
7274: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7275: *)
7276: ac_count=0
7277: $as_echo_n 0123456789 >"conftest.in"
7278: while :
7279: do
7280: cat "conftest.in" "conftest.in" >"conftest.tmp"
7281: mv "conftest.tmp" "conftest.in"
7282: cp "conftest.in" "conftest.nl"
7283: $as_echo '' >> "conftest.nl"
7284: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7285: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7286: as_fn_arith $ac_count + 1 && ac_count=$as_val
7287: if test $ac_count -gt ${ac_path_SED_max-0}; then
7288: # Best one so far, save it but keep looking for a better one
7289: ac_cv_path_SED="$ac_path_SED"
7290: ac_path_SED_max=$ac_count
7291: fi
7292: # 10*(2^10) chars as input seems more than enough
7293: test $ac_count -gt 10 && break
7294: done
7295: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7296: esac
7297:
7298: $ac_path_SED_found && break 3
7299: done
7300: done
7301: done
7302: IFS=$as_save_IFS
7303: if test -z "$ac_cv_path_SED"; then
7304: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7305: fi
7306: else
7307: ac_cv_path_SED=$SED
7308: fi
7309:
7310: fi
7311: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7312: $as_echo "$ac_cv_path_SED" >&6; }
7313: SED="$ac_cv_path_SED"
7314: rm -f conftest.sed
7315:
7316: while :
7317: do
7318: POSIX_SHELL=`which bash`
7319: test -x "$POSIX_SHELL" && break
7320: POSIX_SHELL=`which dash`
7321: test -x "$POSIX_SHELL" && break
7322: POSIX_SHELL=/usr/xpg4/bin/sh
7323: test -x "$POSIX_SHELL" && break
7324: POSIX_SHELL=`/bin/sh -c '
7325: exec 2>/dev/null
7326: if ! true ; then exit 1 ; fi
7327: echo /bin/sh'`
7328: test -x "$POSIX_SHELL" && break
7329: as_fn_error $? "Cannot locate a working POSIX shell" "$LINENO" 5
7330: done
7331:
7332: cat >>confdefs.h <<_ACEOF
7333: #define POSIX_SHELL "${POSIX_SHELL}"
7334: _ACEOF
7335:
7336:
7337:
7338:
7339:
7340: LIBOPTS_BUILD_BLOCKED=true
7341:
7342:
7343: NEED_LIBOPTS_DIR=''
7344:
7345: # Check whether --enable-local-libopts was given.
7346: if test "${enable_local_libopts+set}" = set; then :
7347: enableval=$enable_local_libopts;
7348: if test x$enableval = xyes ; then
7349: { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
7350: $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
7351: LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
7352: LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
7353: NEED_LIBOPTS_DIR=true
7354: fi
7355: fi
7356:
7357:
7358: # Check whether --enable-libopts-install was given.
7359: if test "${enable_libopts_install+set}" = set; then :
7360: enableval=$enable_libopts_install;
7361: fi
7362:
7363: if test "X${enable_libopts_install}" != Xno; then
7364: INSTALL_LIBOPTS_TRUE=
7365: INSTALL_LIBOPTS_FALSE='#'
7366: else
7367: INSTALL_LIBOPTS_TRUE='#'
7368: INSTALL_LIBOPTS_FALSE=
7369: fi
7370:
7371:
7372: if test -z "${NEED_LIBOPTS_DIR}" ; then
7373: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
7374: $as_echo_n "checking whether autoopts-config can be found... " >&6; }
7375:
7376: # Check whether --with-autoopts-config was given.
7377: if test "${with_autoopts_config+set}" = set; then :
7378: withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
7379: else
7380: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
7381: $as_echo_n "checking whether autoopts-config is specified... " >&6; }
7382: if ${lo_cv_with_autoopts_config+:} false; then :
7383: $as_echo_n "(cached) " >&6
7384: else
7385: if autoopts-config --help 2>/dev/null 1>&2
7386: then lo_cv_with_autoopts_config=autoopts-config
7387: elif libopts-config --help 2>/dev/null 1>&2
7388: then lo_cv_with_autoopts_config=libopts-config
7389: else lo_cv_with_autoopts_config=no ; fi
7390: fi
7391: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
7392: $as_echo "$lo_cv_with_autoopts_config" >&6; }
7393:
7394: fi
7395: # end of AC_ARG_WITH
7396:
7397: if ${lo_cv_test_autoopts+:} false; then :
7398: $as_echo_n "(cached) " >&6
7399: else
7400:
7401: if test -z "${lo_cv_with_autoopts_config}" \
7402: -o X"${lo_cv_with_autoopts_config}" = Xno
7403: then
7404: if autoopts-config --help 2>/dev/null 1>&2
7405: then lo_cv_with_autoopts_config=autoopts-config
7406: elif libopts-config --help 2>/dev/null 1>&2
7407: then lo_cv_with_autoopts_config=libopts-config
7408: else lo_cv_with_autoopts_config=false ; fi
7409: fi
7410: lo_cv_test_autoopts=`
7411: ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
7412: if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
7413: then lo_cv_test_autoopts=no ; fi
7414:
7415: fi
7416: # end of CACHE_VAL
7417: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
7418: $as_echo "${lo_cv_test_autoopts}" >&6; }
7419:
7420: if test "X${lo_cv_test_autoopts}" != Xno
7421: then
7422: LIBOPTS_LDADD="${lo_cv_test_autoopts}"
7423: LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
7424: else
7425: LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
7426: LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
7427: NEED_LIBOPTS_DIR=true
7428: fi
7429: fi # end of if test -z "${NEED_LIBOPTS_DIR}"
7430: if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
7431: NEED_LIBOPTS_DIR=''
7432: fi
7433: if test -n "${NEED_LIBOPTS_DIR}"; then
7434: NEED_LIBOPTS_TRUE=
7435: NEED_LIBOPTS_FALSE='#'
7436: else
7437: NEED_LIBOPTS_TRUE='#'
7438: NEED_LIBOPTS_FALSE=
7439: fi
7440:
7441:
7442:
7443: LIBOPTS_DIR=sntp/libopts
7444:
7445:
7446: # end of AC_DEFUN of LIBOPTS_CHECK_COMMON
7447:
7448: # end of AC_DEFUN of LIBOPTS_CHECK_NOBUILD
7449:
7450:
7451: for ac_header in vfork.h
7452: do :
7453: ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
7454: if test "x$ac_cv_header_vfork_h" = xyes; then :
7455: cat >>confdefs.h <<_ACEOF
7456: #define HAVE_VFORK_H 1
7457: _ACEOF
7458:
7459: fi
7460:
7461: done
7462:
7463: for ac_func in fork vfork
7464: do :
7465: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7466: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7467: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7468: cat >>confdefs.h <<_ACEOF
7469: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7470: _ACEOF
7471:
7472: fi
7473: done
7474:
7475: if test "x$ac_cv_func_fork" = xyes; then
7476: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
7477: $as_echo_n "checking for working fork... " >&6; }
7478: if ${ac_cv_func_fork_works+:} false; then :
7479: $as_echo_n "(cached) " >&6
7480: else
7481: if test "$cross_compiling" = yes; then :
7482: ac_cv_func_fork_works=cross
7483: else
7484: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7485: /* end confdefs.h. */
7486: $ac_includes_default
7487: int
7488: main ()
7489: {
7490:
7491: /* By Ruediger Kuhlmann. */
7492: return fork () < 0;
7493:
7494: ;
7495: return 0;
7496: }
7497: _ACEOF
7498: if ac_fn_c_try_run "$LINENO"; then :
7499: ac_cv_func_fork_works=yes
7500: else
7501: ac_cv_func_fork_works=no
7502: fi
7503: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7504: conftest.$ac_objext conftest.beam conftest.$ac_ext
7505: fi
7506:
7507: fi
7508: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
7509: $as_echo "$ac_cv_func_fork_works" >&6; }
7510:
7511: else
7512: ac_cv_func_fork_works=$ac_cv_func_fork
7513: fi
7514: if test "x$ac_cv_func_fork_works" = xcross; then
7515: case $host in
7516: *-*-amigaos* | *-*-msdosdjgpp*)
7517: # Override, as these systems have only a dummy fork() stub
7518: ac_cv_func_fork_works=no
7519: ;;
7520: *)
7521: ac_cv_func_fork_works=yes
7522: ;;
7523: esac
7524: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7525: $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7526: fi
7527: ac_cv_func_vfork_works=$ac_cv_func_vfork
7528: if test "x$ac_cv_func_vfork" = xyes; then
7529: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
7530: $as_echo_n "checking for working vfork... " >&6; }
7531: if ${ac_cv_func_vfork_works+:} false; then :
7532: $as_echo_n "(cached) " >&6
7533: else
7534: if test "$cross_compiling" = yes; then :
7535: ac_cv_func_vfork_works=cross
7536: else
7537: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7538: /* end confdefs.h. */
7539: /* Thanks to Paul Eggert for this test. */
7540: $ac_includes_default
7541: #include <sys/wait.h>
7542: #ifdef HAVE_VFORK_H
7543: # include <vfork.h>
7544: #endif
7545: /* On some sparc systems, changes by the child to local and incoming
7546: argument registers are propagated back to the parent. The compiler
7547: is told about this with #include <vfork.h>, but some compilers
7548: (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7549: static variable whose address is put into a register that is
7550: clobbered by the vfork. */
7551: static void
7552: #ifdef __cplusplus
7553: sparc_address_test (int arg)
7554: # else
7555: sparc_address_test (arg) int arg;
7556: #endif
7557: {
7558: static pid_t child;
7559: if (!child) {
7560: child = vfork ();
7561: if (child < 0) {
7562: perror ("vfork");
7563: _exit(2);
7564: }
7565: if (!child) {
7566: arg = getpid();
7567: write(-1, "", 0);
7568: _exit (arg);
7569: }
7570: }
7571: }
7572:
7573: int
7574: main ()
7575: {
7576: pid_t parent = getpid ();
7577: pid_t child;
7578:
7579: sparc_address_test (0);
7580:
7581: child = vfork ();
7582:
7583: if (child == 0) {
7584: /* Here is another test for sparc vfork register problems. This
7585: test uses lots of local variables, at least as many local
7586: variables as main has allocated so far including compiler
7587: temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7588: 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7589: reuse the register of parent for one of the local variables,
7590: since it will think that parent can't possibly be used any more
7591: in this routine. Assigning to the local variable will thus
7592: munge parent in the parent process. */
7593: pid_t
7594: p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7595: p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7596: /* Convince the compiler that p..p7 are live; otherwise, it might
7597: use the same hardware register for all 8 local variables. */
7598: if (p != p1 || p != p2 || p != p3 || p != p4
7599: || p != p5 || p != p6 || p != p7)
7600: _exit(1);
7601:
7602: /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7603: from child file descriptors. If the child closes a descriptor
7604: before it execs or exits, this munges the parent's descriptor
7605: as well. Test for this by closing stdout in the child. */
7606: _exit(close(fileno(stdout)) != 0);
7607: } else {
7608: int status;
7609: struct stat st;
7610:
7611: while (wait(&status) != child)
7612: ;
7613: return (
7614: /* Was there some problem with vforking? */
7615: child < 0
7616:
7617: /* Did the child fail? (This shouldn't happen.) */
7618: || status
7619:
7620: /* Did the vfork/compiler bug occur? */
7621: || parent != getpid()
7622:
7623: /* Did the file descriptor bug occur? */
7624: || fstat(fileno(stdout), &st) != 0
7625: );
7626: }
7627: }
7628: _ACEOF
7629: if ac_fn_c_try_run "$LINENO"; then :
7630: ac_cv_func_vfork_works=yes
7631: else
7632: ac_cv_func_vfork_works=no
7633: fi
7634: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7635: conftest.$ac_objext conftest.beam conftest.$ac_ext
7636: fi
7637:
7638: fi
7639: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
7640: $as_echo "$ac_cv_func_vfork_works" >&6; }
7641:
7642: fi;
7643: if test "x$ac_cv_func_fork_works" = xcross; then
7644: ac_cv_func_vfork_works=$ac_cv_func_vfork
7645: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7646: $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7647: fi
7648:
7649: if test "x$ac_cv_func_vfork_works" = xyes; then
7650:
7651: $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
7652:
7653: else
7654:
7655: $as_echo "#define vfork fork" >>confdefs.h
7656:
7657: fi
7658: if test "x$ac_cv_func_fork_works" = xyes; then
7659:
7660: $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
7661:
7662: fi
7663:
7664:
7665: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
7666: $as_echo_n "checking if $CC can handle #warning... " >&6; }
7667: if ${ntp_cv_cpp_warning+:} false; then :
7668: $as_echo_n "(cached) " >&6
7669: else
7670: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671: /* end confdefs.h. */
7672:
7673: int
7674: main ()
7675: {
7676: #warning foo
7677: ;
7678: return 0;
7679: }
7680: _ACEOF
7681: if ac_fn_c_try_compile "$LINENO"; then :
7682: ntp_cv_cpp_warning=yes
7683: else
7684: ntp_cv_cpp_warning=no
7685:
7686: fi
7687: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7688:
7689: fi
7690: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
7691: $as_echo "$ntp_cv_cpp_warning" >&6; }
7692: case "$ntp_cv_cpp_warning" in
7693: no)
7694:
7695: $as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
7696:
7697: esac
7698:
7699: case "$GCC" in
7700: yes)
7701: SAVED_CFLAGS_NTP="$CFLAGS"
7702: CFLAGS="$CFLAGS -Wstrict-overflow"
7703: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
7704: $as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
7705: if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
7706: $as_echo_n "(cached) " >&6
7707: else
7708: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709: /* end confdefs.h. */
7710:
7711: int
7712: main ()
7713: {
7714:
7715: ;
7716: return 0;
7717: }
7718: _ACEOF
7719: if ac_fn_c_try_compile "$LINENO"; then :
7720: ntp_cv_gcc_Wstrict_overflow=yes
7721: else
7722: ntp_cv_gcc_Wstrict_overflow=no
7723:
7724: fi
7725: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7726:
7727: fi
7728: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
7729: $as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
7730: #
7731: # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
7732: # flag to CFLAGS.
7733: #
7734: CFLAGS="$SAVED_CFLAGS_NTP -Winit-self"
7735: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
7736: $as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
7737: if ${ntp_cv_gcc_Winit_self+:} false; then :
7738: $as_echo_n "(cached) " >&6
7739: else
7740:
7741: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742: /* end confdefs.h. */
7743:
7744: int
7745: main ()
7746: {
7747:
7748: ;
7749: return 0;
7750: }
7751: _ACEOF
7752: if ac_fn_c_try_compile "$LINENO"; then :
7753: ntp_cv_gcc_Winit_self=yes
7754: else
7755: ntp_cv_gcc_Winit_self=no
7756:
7757: fi
7758: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7759:
7760:
7761: fi
7762: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
7763: $as_echo "$ntp_cv_gcc_Winit_self" >&6; }
7764: CFLAGS="$SAVED_CFLAGS_NTP"
7765: { SAVED_CFLAGS_NTP=; unset SAVED_CFLAGS_NTP;}
7766: #
7767: # $ntp_cv_gcc_Winit_self is tested later to add the
7768: # flag to CFLAGS.
7769: #
7770: esac
7771:
7772: # Expose a cross-compilation indicator to makefiles
7773: if test $build != $host; then
7774: NTP_CROSSCOMPILE_TRUE=
7775: NTP_CROSSCOMPILE_FALSE='#'
7776: else
7777: NTP_CROSSCOMPILE_TRUE='#'
7778: NTP_CROSSCOMPILE_FALSE=
7779: fi
7780:
7781:
7782: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bin subdirectory" >&5
7783: $as_echo_n "checking for bin subdirectory... " >&6; }
7784:
7785: # Check whether --with-binsubdir was given.
7786: if test "${with_binsubdir+set}" = set; then :
7787: withval=$with_binsubdir; use_binsubdir="$withval"
7788: else
7789: use_binsubdir="bin"
7790:
7791: fi
7792:
7793: case "$use_binsubdir" in
7794: bin)
7795: ;;
7796: sbin)
7797: ;;
7798: *)
7799: as_fn_error $? "<$use_binsubdir> is illegal - must be \"bin\" or \"sbin\"" "$LINENO" 5
7800: ;;
7801: esac
7802: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_binsubdir" >&5
7803: $as_echo "$use_binsubdir" >&6; }
7804:
7805: BINSUBDIR=$use_binsubdir
7806:
7807: if test "bin" = "$BINSUBDIR"; then
7808: NTP_BINSUBDIR_IS_BIN_TRUE=
7809: NTP_BINSUBDIR_IS_BIN_FALSE='#'
7810: else
7811: NTP_BINSUBDIR_IS_BIN_TRUE='#'
7812: NTP_BINSUBDIR_IS_BIN_FALSE=
7813: fi
7814:
7815:
7816: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deprecated --with-arlib" >&5
7817: $as_echo_n "checking for deprecated --with-arlib... " >&6; }
7818:
7819: # Check whether --with-arlib was given.
7820: if test "${with_arlib+set}" = set; then :
7821: withval=$with_arlib; ans=$withval
7822: else
7823: ans=no
7824: fi
7825:
7826: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
7827: $as_echo "$ans" >&6; }
7828:
7829: case "$ans" in
7830: yes)
7831: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please do not use --with-arlib, arlib is no longer included. In the future, --with-arlib will not be recognized." >&5
7832: $as_echo "$as_me: WARNING: Please do not use --with-arlib, arlib is no longer included. In the future, --with-arlib will not be recognized." >&2;}
7833: esac
7834:
7835:
7836: # Check whether --with-rpath was given.
7837: if test "${with_rpath+set}" = set; then :
7838: withval=$with_rpath; ans=$withval
7839: else
7840: ans=x
7841: fi
7842:
7843: case "$ans" in
7844: no)
7845: need_dash_r=
7846: ;;
7847: yes)
7848: need_dash_r=1
7849: ;;
7850: esac
7851: # HMS: Why isn't this $build?
7852: # Well, that depends on if we need this for the build toolchain or
7853: # for info in the host executable...
7854: # I still have no idea which way this should go, but nobody has complained.
7855: case "$host" in
7856: *-*-netbsd*)
7857: case "$need_dash_r" in
7858: no) ;;
7859: *) need_dash_r=1
7860: ;;
7861: esac
7862: ;;
7863: *-*-solaris*)
7864: case "$need_dash_r" in
7865: no) ;;
7866: *) need_dash_r=1
7867: ;;
7868: esac
7869: ;;
7870: esac
7871:
7872: for ac_prog in gawk mawk nawk awk
7873: do
7874: # Extract the first word of "$ac_prog", so it can be a program name with args.
7875: set dummy $ac_prog; ac_word=$2
7876: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877: $as_echo_n "checking for $ac_word... " >&6; }
7878: if ${ac_cv_prog_AWK+:} false; then :
7879: $as_echo_n "(cached) " >&6
7880: else
7881: if test -n "$AWK"; then
7882: ac_cv_prog_AWK="$AWK" # Let the user override the test.
7883: else
7884: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885: for as_dir in $PATH
7886: do
7887: IFS=$as_save_IFS
7888: test -z "$as_dir" && as_dir=.
7889: for ac_exec_ext in '' $ac_executable_extensions; do
7890: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7891: ac_cv_prog_AWK="$ac_prog"
7892: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7893: break 2
7894: fi
7895: done
7896: done
7897: IFS=$as_save_IFS
7898:
7899: fi
7900: fi
7901: AWK=$ac_cv_prog_AWK
7902: if test -n "$AWK"; then
7903: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7904: $as_echo "$AWK" >&6; }
7905: else
7906: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907: $as_echo "no" >&6; }
7908: fi
7909:
7910:
7911: test -n "$AWK" && break
7912: done
7913:
7914: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7915: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7916: set x ${MAKE-make}
7917: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7918: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7919: $as_echo_n "(cached) " >&6
7920: else
7921: cat >conftest.make <<\_ACEOF
7922: SHELL = /bin/sh
7923: all:
7924: @echo '@@@%%%=$(MAKE)=@@@%%%'
7925: _ACEOF
7926: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7927: case `${MAKE-make} -f conftest.make 2>/dev/null` in
7928: *@@@%%%=?*=@@@%%%*)
7929: eval ac_cv_prog_make_${ac_make}_set=yes;;
7930: *)
7931: eval ac_cv_prog_make_${ac_make}_set=no;;
7932: esac
7933: rm -f conftest.make
7934: fi
7935: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7936: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7937: $as_echo "yes" >&6; }
7938: SET_MAKE=
7939: else
7940: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7941: $as_echo "no" >&6; }
7942: SET_MAKE="MAKE=${MAKE-make}"
7943: fi
7944:
7945:
7946: rm -f conftest*
7947:
7948: case "$GCC" in
7949: yes)
7950: CFLAGS="$CFLAGS -Wall"
7951: # CFLAGS="$CFLAGS -Wcast-align"
7952: CFLAGS="$CFLAGS -Wcast-qual"
7953: # CFLAGS="$CFLAGS -Wconversion"
7954: # CFLAGS="$CFLAGS -Werror"
7955: # CFLAGS="$CFLAGS -Wextra"
7956: # CFLAGS="$CFLAGS -Wfloat-equal"
7957: CFLAGS="$CFLAGS -Wmissing-prototypes"
7958: CFLAGS="$CFLAGS -Wpointer-arith"
7959: CFLAGS="$CFLAGS -Wshadow"
7960: # CFLAGS="$CFLAGS -Wtraditional"
7961: # CFLAGS="$CFLAGS -Wwrite-strings"
7962: case "$ntp_cv_gcc_Winit_self" in
7963: yes)
7964: CFLAGS="$CFLAGS -Winit-self"
7965: esac
7966: case "$ntp_cv_gcc_Wstrict_overflow" in
7967: yes)
7968: CFLAGS="$CFLAGS -Wstrict-overflow"
7969: esac
7970: # -W[no-]strict-prototypes is added later depending on OpenSSL
7971: esac
7972:
7973: ac_busted_vpath_in_make=no
7974:
7975: case "$build" in
7976: *-*-irix6.1*) # 64 bit only
7977: # busted vpath?
7978: ;;
7979: *-*-irix6*) # 6.2 (and later?)
7980: ac_busted_vpath_in_make=yes
7981: ;;
7982: *-*-solaris2.5.1)
7983: ac_busted_vpath_in_make=yes
7984: ;;
7985: *-*-unicosmp*)
7986: ac_busted_vpath_in_make=yes
7987: ;;
7988: esac
7989:
7990: case "$ac_busted_vpath_in_make$srcdir" in
7991: no*) ;;
7992: yes.) ;;
7993: *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | sed -e 's/GNU Make version \(1-9.]*\).*/\1/' -e q`" in
7994: '')
7995: as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
7996: ;;
7997: *) ;;
7998: esac
7999: ;;
8000: esac
8001:
8002:
8003:
8004:
8005: case `pwd` in
8006: *\ * | *\ *)
8007: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8008: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8009: esac
8010:
8011:
8012:
8013: macro_version='2.4'
8014: macro_revision='1.3293'
8015:
8016:
8017:
8018:
8019:
8020:
8021:
8022:
8023:
8024:
8025:
8026:
8027:
8028: ltmain="$ac_aux_dir/ltmain.sh"
8029:
8030: # Backslashify metacharacters that are still active within
8031: # double-quoted strings.
8032: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8033:
8034: # Same as above, but do not quote variable references.
8035: double_quote_subst='s/\(["`\\]\)/\\\1/g'
8036:
8037: # Sed substitution to delay expansion of an escaped shell variable in a
8038: # double_quote_subst'ed string.
8039: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8040:
8041: # Sed substitution to delay expansion of an escaped single quote.
8042: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8043:
8044: # Sed substitution to avoid accidental globbing in evaled expressions
8045: no_glob_subst='s/\*/\\\*/g'
8046:
8047: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8048: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8049: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8050:
8051: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8052: $as_echo_n "checking how to print strings... " >&6; }
8053: # Test print first, because it will be a builtin if present.
8054: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8055: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8056: ECHO='print -r --'
8057: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8058: ECHO='printf %s\n'
8059: else
8060: # Use this function as a fallback that always works.
8061: func_fallback_echo ()
8062: {
8063: eval 'cat <<_LTECHO_EOF
8064: $1
8065: _LTECHO_EOF'
8066: }
8067: ECHO='func_fallback_echo'
8068: fi
8069:
8070: # func_echo_all arg...
8071: # Invoke $ECHO with all args, space-separated.
8072: func_echo_all ()
8073: {
8074: $ECHO ""
8075: }
8076:
8077: case "$ECHO" in
8078: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8079: $as_echo "printf" >&6; } ;;
8080: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8081: $as_echo "print -r" >&6; } ;;
8082: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8083: $as_echo "cat" >&6; } ;;
8084: esac
8085:
8086:
8087:
8088:
8089:
8090:
8091:
8092:
8093:
8094:
8095:
8096:
8097:
8098:
8099: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8100: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
8101: if ${ac_cv_path_SED+:} false; then :
8102: $as_echo_n "(cached) " >&6
8103: else
8104: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8105: for ac_i in 1 2 3 4 5 6 7; do
8106: ac_script="$ac_script$as_nl$ac_script"
8107: done
8108: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8109: { ac_script=; unset ac_script;}
8110: if test -z "$SED"; then
8111: ac_path_SED_found=false
8112: # Loop through the user's path and test for each of PROGNAME-LIST
8113: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8114: for as_dir in $PATH
8115: do
8116: IFS=$as_save_IFS
8117: test -z "$as_dir" && as_dir=.
8118: for ac_prog in sed gsed; do
8119: for ac_exec_ext in '' $ac_executable_extensions; do
8120: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8121: { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
8122: # Check for GNU ac_path_SED and select it if it is found.
8123: # Check for GNU $ac_path_SED
8124: case `"$ac_path_SED" --version 2>&1` in
8125: *GNU*)
8126: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8127: *)
8128: ac_count=0
8129: $as_echo_n 0123456789 >"conftest.in"
8130: while :
8131: do
8132: cat "conftest.in" "conftest.in" >"conftest.tmp"
8133: mv "conftest.tmp" "conftest.in"
8134: cp "conftest.in" "conftest.nl"
8135: $as_echo '' >> "conftest.nl"
8136: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8137: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8138: as_fn_arith $ac_count + 1 && ac_count=$as_val
8139: if test $ac_count -gt ${ac_path_SED_max-0}; then
8140: # Best one so far, save it but keep looking for a better one
8141: ac_cv_path_SED="$ac_path_SED"
8142: ac_path_SED_max=$ac_count
8143: fi
8144: # 10*(2^10) chars as input seems more than enough
8145: test $ac_count -gt 10 && break
8146: done
8147: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8148: esac
8149:
8150: $ac_path_SED_found && break 3
8151: done
8152: done
8153: done
8154: IFS=$as_save_IFS
8155: if test -z "$ac_cv_path_SED"; then
8156: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8157: fi
8158: else
8159: ac_cv_path_SED=$SED
8160: fi
8161:
8162: fi
8163: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8164: $as_echo "$ac_cv_path_SED" >&6; }
8165: SED="$ac_cv_path_SED"
8166: rm -f conftest.sed
8167:
8168: test -z "$SED" && SED=sed
8169: Xsed="$SED -e 1s/^X//"
8170:
8171:
8172:
8173:
8174:
8175:
8176:
8177:
8178:
8179:
8180:
8181: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8182: $as_echo_n "checking for fgrep... " >&6; }
8183: if ${ac_cv_path_FGREP+:} false; then :
8184: $as_echo_n "(cached) " >&6
8185: else
8186: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8187: then ac_cv_path_FGREP="$GREP -F"
8188: else
8189: if test -z "$FGREP"; then
8190: ac_path_FGREP_found=false
8191: # Loop through the user's path and test for each of PROGNAME-LIST
8192: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8194: do
8195: IFS=$as_save_IFS
8196: test -z "$as_dir" && as_dir=.
8197: for ac_prog in fgrep; do
8198: for ac_exec_ext in '' $ac_executable_extensions; do
8199: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8200: { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
8201: # Check for GNU ac_path_FGREP and select it if it is found.
8202: # Check for GNU $ac_path_FGREP
8203: case `"$ac_path_FGREP" --version 2>&1` in
8204: *GNU*)
8205: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8206: *)
8207: ac_count=0
8208: $as_echo_n 0123456789 >"conftest.in"
8209: while :
8210: do
8211: cat "conftest.in" "conftest.in" >"conftest.tmp"
8212: mv "conftest.tmp" "conftest.in"
8213: cp "conftest.in" "conftest.nl"
8214: $as_echo 'FGREP' >> "conftest.nl"
8215: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8216: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8217: as_fn_arith $ac_count + 1 && ac_count=$as_val
8218: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8219: # Best one so far, save it but keep looking for a better one
8220: ac_cv_path_FGREP="$ac_path_FGREP"
8221: ac_path_FGREP_max=$ac_count
8222: fi
8223: # 10*(2^10) chars as input seems more than enough
8224: test $ac_count -gt 10 && break
8225: done
8226: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8227: esac
8228:
8229: $ac_path_FGREP_found && break 3
8230: done
8231: done
8232: done
8233: IFS=$as_save_IFS
8234: if test -z "$ac_cv_path_FGREP"; then
8235: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8236: fi
8237: else
8238: ac_cv_path_FGREP=$FGREP
8239: fi
8240:
8241: fi
8242: fi
8243: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8244: $as_echo "$ac_cv_path_FGREP" >&6; }
8245: FGREP="$ac_cv_path_FGREP"
8246:
8247:
8248: test -z "$GREP" && GREP=grep
8249:
8250:
8251:
8252:
8253:
8254:
8255:
8256:
8257:
8258:
8259:
8260:
8261:
8262:
8263:
8264:
8265:
8266:
8267:
8268: # Check whether --with-gnu-ld was given.
8269: if test "${with_gnu_ld+set}" = set; then :
8270: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8271: else
8272: with_gnu_ld=no
8273: fi
8274:
8275: ac_prog=ld
8276: if test "$GCC" = yes; then
8277: # Check if gcc -print-prog-name=ld gives a path.
8278: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8279: $as_echo_n "checking for ld used by $CC... " >&6; }
8280: case $host in
8281: *-*-mingw*)
8282: # gcc leaves a trailing carriage return which upsets mingw
8283: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8284: *)
8285: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8286: esac
8287: case $ac_prog in
8288: # Accept absolute paths.
8289: [\\/]* | ?:[\\/]*)
8290: re_direlt='/[^/][^/]*/\.\./'
8291: # Canonicalize the pathname of ld
8292: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8293: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8294: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8295: done
8296: test -z "$LD" && LD="$ac_prog"
8297: ;;
8298: "")
8299: # If it fails, then pretend we aren't using GCC.
8300: ac_prog=ld
8301: ;;
8302: *)
8303: # If it is relative, then search for the first ld in PATH.
8304: with_gnu_ld=unknown
8305: ;;
8306: esac
8307: elif test "$with_gnu_ld" = yes; then
8308: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8309: $as_echo_n "checking for GNU ld... " >&6; }
8310: else
8311: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8312: $as_echo_n "checking for non-GNU ld... " >&6; }
8313: fi
8314: if ${lt_cv_path_LD+:} false; then :
8315: $as_echo_n "(cached) " >&6
8316: else
8317: if test -z "$LD"; then
8318: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8319: for ac_dir in $PATH; do
8320: IFS="$lt_save_ifs"
8321: test -z "$ac_dir" && ac_dir=.
8322: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8323: lt_cv_path_LD="$ac_dir/$ac_prog"
8324: # Check to see if the program is GNU ld. I'd rather use --version,
8325: # but apparently some variants of GNU ld only accept -v.
8326: # Break only if it was the GNU/non-GNU ld that we prefer.
8327: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8328: *GNU* | *'with BFD'*)
8329: test "$with_gnu_ld" != no && break
8330: ;;
8331: *)
8332: test "$with_gnu_ld" != yes && break
8333: ;;
8334: esac
8335: fi
8336: done
8337: IFS="$lt_save_ifs"
8338: else
8339: lt_cv_path_LD="$LD" # Let the user override the test with a path.
8340: fi
8341: fi
8342:
8343: LD="$lt_cv_path_LD"
8344: if test -n "$LD"; then
8345: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8346: $as_echo "$LD" >&6; }
8347: else
8348: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8349: $as_echo "no" >&6; }
8350: fi
8351: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8352: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8353: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8354: if ${lt_cv_prog_gnu_ld+:} false; then :
8355: $as_echo_n "(cached) " >&6
8356: else
8357: # I'd rather use --version here, but apparently some GNU lds only accept -v.
8358: case `$LD -v 2>&1 </dev/null` in
8359: *GNU* | *'with BFD'*)
8360: lt_cv_prog_gnu_ld=yes
8361: ;;
8362: *)
8363: lt_cv_prog_gnu_ld=no
8364: ;;
8365: esac
8366: fi
8367: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8368: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8369: with_gnu_ld=$lt_cv_prog_gnu_ld
8370:
8371:
8372:
8373:
8374:
8375:
8376:
8377:
8378:
8379: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8380: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8381: if ${lt_cv_path_NM+:} false; then :
8382: $as_echo_n "(cached) " >&6
8383: else
8384: if test -n "$NM"; then
8385: # Let the user override the test.
8386: lt_cv_path_NM="$NM"
8387: else
8388: lt_nm_to_check="${ac_tool_prefix}nm"
8389: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8390: lt_nm_to_check="$lt_nm_to_check nm"
8391: fi
8392: for lt_tmp_nm in $lt_nm_to_check; do
8393: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8394: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8395: IFS="$lt_save_ifs"
8396: test -z "$ac_dir" && ac_dir=.
8397: tmp_nm="$ac_dir/$lt_tmp_nm"
8398: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8399: # Check to see if the nm accepts a BSD-compat flag.
8400: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8401: # nm: unknown option "B" ignored
8402: # Tru64's nm complains that /dev/null is an invalid object file
8403: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8404: */dev/null* | *'Invalid file or object type'*)
8405: lt_cv_path_NM="$tmp_nm -B"
8406: break
8407: ;;
8408: *)
8409: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8410: */dev/null*)
8411: lt_cv_path_NM="$tmp_nm -p"
8412: break
8413: ;;
8414: *)
8415: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8416: continue # so that we can try to find one that supports BSD flags
8417: ;;
8418: esac
8419: ;;
8420: esac
8421: fi
8422: done
8423: IFS="$lt_save_ifs"
8424: done
8425: : ${lt_cv_path_NM=no}
8426: fi
8427: fi
8428: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8429: $as_echo "$lt_cv_path_NM" >&6; }
8430: if test "$lt_cv_path_NM" != "no"; then
8431: NM="$lt_cv_path_NM"
8432: else
8433: # Didn't find any BSD compatible name lister, look for dumpbin.
8434: if test -n "$DUMPBIN"; then :
8435: # Let the user override the test.
8436: else
8437: if test -n "$ac_tool_prefix"; then
8438: for ac_prog in dumpbin "link -dump"
8439: do
8440: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8441: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8442: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8443: $as_echo_n "checking for $ac_word... " >&6; }
8444: if ${ac_cv_prog_DUMPBIN+:} false; then :
8445: $as_echo_n "(cached) " >&6
8446: else
8447: if test -n "$DUMPBIN"; then
8448: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8449: else
8450: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8451: for as_dir in $PATH
8452: do
8453: IFS=$as_save_IFS
8454: test -z "$as_dir" && as_dir=.
8455: for ac_exec_ext in '' $ac_executable_extensions; do
8456: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8457: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8458: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8459: break 2
8460: fi
8461: done
8462: done
8463: IFS=$as_save_IFS
8464:
8465: fi
8466: fi
8467: DUMPBIN=$ac_cv_prog_DUMPBIN
8468: if test -n "$DUMPBIN"; then
8469: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8470: $as_echo "$DUMPBIN" >&6; }
8471: else
8472: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8473: $as_echo "no" >&6; }
8474: fi
8475:
8476:
8477: test -n "$DUMPBIN" && break
8478: done
8479: fi
8480: if test -z "$DUMPBIN"; then
8481: ac_ct_DUMPBIN=$DUMPBIN
8482: for ac_prog in dumpbin "link -dump"
8483: do
8484: # Extract the first word of "$ac_prog", so it can be a program name with args.
8485: set dummy $ac_prog; ac_word=$2
8486: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8487: $as_echo_n "checking for $ac_word... " >&6; }
8488: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8489: $as_echo_n "(cached) " >&6
8490: else
8491: if test -n "$ac_ct_DUMPBIN"; then
8492: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8493: else
8494: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8495: for as_dir in $PATH
8496: do
8497: IFS=$as_save_IFS
8498: test -z "$as_dir" && as_dir=.
8499: for ac_exec_ext in '' $ac_executable_extensions; do
8500: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8501: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8502: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8503: break 2
8504: fi
8505: done
8506: done
8507: IFS=$as_save_IFS
8508:
8509: fi
8510: fi
8511: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8512: if test -n "$ac_ct_DUMPBIN"; then
8513: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8514: $as_echo "$ac_ct_DUMPBIN" >&6; }
8515: else
8516: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8517: $as_echo "no" >&6; }
8518: fi
8519:
8520:
8521: test -n "$ac_ct_DUMPBIN" && break
8522: done
8523:
8524: if test "x$ac_ct_DUMPBIN" = x; then
8525: DUMPBIN=":"
8526: else
8527: case $cross_compiling:$ac_tool_warned in
8528: yes:)
8529: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8530: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8531: ac_tool_warned=yes ;;
8532: esac
8533: DUMPBIN=$ac_ct_DUMPBIN
8534: fi
8535: fi
8536:
8537: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
8538: *COFF*)
8539: DUMPBIN="$DUMPBIN -symbols"
8540: ;;
8541: *)
8542: DUMPBIN=:
8543: ;;
8544: esac
8545: fi
8546:
8547: if test "$DUMPBIN" != ":"; then
8548: NM="$DUMPBIN"
8549: fi
8550: fi
8551: test -z "$NM" && NM=nm
8552:
8553:
8554:
8555:
8556:
8557:
8558: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8559: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8560: if ${lt_cv_nm_interface+:} false; then :
8561: $as_echo_n "(cached) " >&6
8562: else
8563: lt_cv_nm_interface="BSD nm"
8564: echo "int some_variable = 0;" > conftest.$ac_ext
8565: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8566: (eval "$ac_compile" 2>conftest.err)
8567: cat conftest.err >&5
8568: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8569: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8570: cat conftest.err >&5
8571: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8572: cat conftest.out >&5
8573: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8574: lt_cv_nm_interface="MS dumpbin"
8575: fi
8576: rm -f conftest*
8577: fi
8578: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8579: $as_echo "$lt_cv_nm_interface" >&6; }
8580:
8581: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8582: $as_echo_n "checking whether ln -s works... " >&6; }
8583: LN_S=$as_ln_s
8584: if test "$LN_S" = "ln -s"; then
8585: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8586: $as_echo "yes" >&6; }
8587: else
8588: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8589: $as_echo "no, using $LN_S" >&6; }
8590: fi
8591:
8592: # find the maximum length of command line arguments
8593: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8594: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8595: if ${lt_cv_sys_max_cmd_len+:} false; then :
8596: $as_echo_n "(cached) " >&6
8597: else
8598: i=0
8599: teststring="ABCD"
8600:
8601: case $build_os in
8602: msdosdjgpp*)
8603: # On DJGPP, this test can blow up pretty badly due to problems in libc
8604: # (any single argument exceeding 2000 bytes causes a buffer overrun
8605: # during glob expansion). Even if it were fixed, the result of this
8606: # check would be larger than it should be.
8607: lt_cv_sys_max_cmd_len=12288; # 12K is about right
8608: ;;
8609:
8610: gnu*)
8611: # Under GNU Hurd, this test is not required because there is
8612: # no limit to the length of command line arguments.
8613: # Libtool will interpret -1 as no limit whatsoever
8614: lt_cv_sys_max_cmd_len=-1;
8615: ;;
8616:
8617: cygwin* | mingw* | cegcc*)
8618: # On Win9x/ME, this test blows up -- it succeeds, but takes
8619: # about 5 minutes as the teststring grows exponentially.
8620: # Worse, since 9x/ME are not pre-emptively multitasking,
8621: # you end up with a "frozen" computer, even though with patience
8622: # the test eventually succeeds (with a max line length of 256k).
8623: # Instead, let's just punt: use the minimum linelength reported by
8624: # all of the supported platforms: 8192 (on NT/2K/XP).
8625: lt_cv_sys_max_cmd_len=8192;
8626: ;;
8627:
8628: mint*)
8629: # On MiNT this can take a long time and run out of memory.
8630: lt_cv_sys_max_cmd_len=8192;
8631: ;;
8632:
8633: amigaos*)
8634: # On AmigaOS with pdksh, this test takes hours, literally.
8635: # So we just punt and use a minimum line length of 8192.
8636: lt_cv_sys_max_cmd_len=8192;
8637: ;;
8638:
8639: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8640: # This has been around since 386BSD, at least. Likely further.
8641: if test -x /sbin/sysctl; then
8642: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8643: elif test -x /usr/sbin/sysctl; then
8644: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8645: else
8646: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8647: fi
8648: # And add a safety zone
8649: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8650: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8651: ;;
8652:
8653: interix*)
8654: # We know the value 262144 and hardcode it with a safety zone (like BSD)
8655: lt_cv_sys_max_cmd_len=196608
8656: ;;
8657:
8658: osf*)
8659: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8660: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8661: # nice to cause kernel panics so lets avoid the loop below.
8662: # First set a reasonable default.
8663: lt_cv_sys_max_cmd_len=16384
8664: #
8665: if test -x /sbin/sysconfig; then
8666: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8667: *1*) lt_cv_sys_max_cmd_len=-1 ;;
8668: esac
8669: fi
8670: ;;
8671: sco3.2v5*)
8672: lt_cv_sys_max_cmd_len=102400
8673: ;;
8674: sysv5* | sco5v6* | sysv4.2uw2*)
8675: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8676: if test -n "$kargmax"; then
8677: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8678: else
8679: lt_cv_sys_max_cmd_len=32768
8680: fi
8681: ;;
8682: *)
8683: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8684: if test -n "$lt_cv_sys_max_cmd_len"; then
8685: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8686: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8687: else
8688: # Make teststring a little bigger before we do anything with it.
8689: # a 1K string should be a reasonable start.
8690: for i in 1 2 3 4 5 6 7 8 ; do
8691: teststring=$teststring$teststring
8692: done
8693: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8694: # If test is not a shell built-in, we'll probably end up computing a
8695: # maximum length that is only half of the actual maximum length, but
8696: # we can't tell.
8697: while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
8698: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8699: test $i != 17 # 1/2 MB should be enough
8700: do
8701: i=`expr $i + 1`
8702: teststring=$teststring$teststring
8703: done
8704: # Only check the string length outside the loop.
8705: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8706: teststring=
8707: # Add a significant safety factor because C++ compilers can tack on
8708: # massive amounts of additional arguments before passing them to the
8709: # linker. It appears as though 1/2 is a usable value.
8710: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8711: fi
8712: ;;
8713: esac
8714:
8715: fi
8716:
8717: if test -n $lt_cv_sys_max_cmd_len ; then
8718: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8719: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8720: else
8721: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8722: $as_echo "none" >&6; }
8723: fi
8724: max_cmd_len=$lt_cv_sys_max_cmd_len
8725:
8726:
8727:
8728:
8729:
8730:
8731: : ${CP="cp -f"}
8732: : ${MV="mv -f"}
8733: : ${RM="rm -f"}
8734:
8735: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8736: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8737: # Try some XSI features
8738: xsi_shell=no
8739: ( _lt_dummy="a/b/c"
8740: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
8741: = c,a/b,b/c, \
8742: && eval 'test $(( 1 + 1 )) -eq 2 \
8743: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8744: && xsi_shell=yes
8745: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8746: $as_echo "$xsi_shell" >&6; }
8747:
8748:
8749: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8750: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8751: lt_shell_append=no
8752: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8753: >/dev/null 2>&1 \
8754: && lt_shell_append=yes
8755: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8756: $as_echo "$lt_shell_append" >&6; }
8757:
8758:
8759: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8760: lt_unset=unset
8761: else
8762: lt_unset=false
8763: fi
8764:
8765:
8766:
8767:
8768:
8769: # test EBCDIC or ASCII
8770: case `echo X|tr X '\101'` in
8771: A) # ASCII based system
8772: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8773: lt_SP2NL='tr \040 \012'
8774: lt_NL2SP='tr \015\012 \040\040'
8775: ;;
8776: *) # EBCDIC based system
8777: lt_SP2NL='tr \100 \n'
8778: lt_NL2SP='tr \r\n \100\100'
8779: ;;
8780: esac
8781:
8782:
8783:
8784:
8785:
8786:
8787:
8788:
8789:
8790: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8791: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8792: if ${lt_cv_to_host_file_cmd+:} false; then :
8793: $as_echo_n "(cached) " >&6
8794: else
8795: case $host in
8796: *-*-mingw* )
8797: case $build in
8798: *-*-mingw* ) # actually msys
8799: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8800: ;;
8801: *-*-cygwin* )
8802: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8803: ;;
8804: * ) # otherwise, assume *nix
8805: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8806: ;;
8807: esac
8808: ;;
8809: *-*-cygwin* )
8810: case $build in
8811: *-*-mingw* ) # actually msys
8812: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8813: ;;
8814: *-*-cygwin* )
8815: lt_cv_to_host_file_cmd=func_convert_file_noop
8816: ;;
8817: * ) # otherwise, assume *nix
8818: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8819: ;;
8820: esac
8821: ;;
8822: * ) # unhandled hosts (and "normal" native builds)
8823: lt_cv_to_host_file_cmd=func_convert_file_noop
8824: ;;
8825: esac
8826:
8827: fi
8828:
8829: to_host_file_cmd=$lt_cv_to_host_file_cmd
8830: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8831: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8832:
8833:
8834:
8835:
8836:
8837: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8838: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8839: if ${lt_cv_to_tool_file_cmd+:} false; then :
8840: $as_echo_n "(cached) " >&6
8841: else
8842: #assume ordinary cross tools, or native build.
8843: lt_cv_to_tool_file_cmd=func_convert_file_noop
8844: case $host in
8845: *-*-mingw* )
8846: case $build in
8847: *-*-mingw* ) # actually msys
8848: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8849: ;;
8850: esac
8851: ;;
8852: esac
8853:
8854: fi
8855:
8856: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8857: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8858: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8859:
8860:
8861:
8862:
8863:
8864: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8865: $as_echo_n "checking for $LD option to reload object files... " >&6; }
8866: if ${lt_cv_ld_reload_flag+:} false; then :
8867: $as_echo_n "(cached) " >&6
8868: else
8869: lt_cv_ld_reload_flag='-r'
8870: fi
8871: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8872: $as_echo "$lt_cv_ld_reload_flag" >&6; }
8873: reload_flag=$lt_cv_ld_reload_flag
8874: case $reload_flag in
8875: "" | " "*) ;;
8876: *) reload_flag=" $reload_flag" ;;
8877: esac
8878: reload_cmds='$LD$reload_flag -o $output$reload_objs'
8879: case $host_os in
8880: cygwin* | mingw* | pw32* | cegcc*)
8881: if test "$GCC" != yes; then
8882: reload_cmds=false
8883: fi
8884: ;;
8885: darwin*)
8886: if test "$GCC" = yes; then
8887: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8888: else
8889: reload_cmds='$LD$reload_flag -o $output$reload_objs'
8890: fi
8891: ;;
8892: esac
8893:
8894:
8895:
8896:
8897:
8898:
8899:
8900:
8901:
8902: if test -n "$ac_tool_prefix"; then
8903: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8904: set dummy ${ac_tool_prefix}objdump; ac_word=$2
8905: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8906: $as_echo_n "checking for $ac_word... " >&6; }
8907: if ${ac_cv_prog_OBJDUMP+:} false; then :
8908: $as_echo_n "(cached) " >&6
8909: else
8910: if test -n "$OBJDUMP"; then
8911: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8912: else
8913: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8914: for as_dir in $PATH
8915: do
8916: IFS=$as_save_IFS
8917: test -z "$as_dir" && as_dir=.
8918: for ac_exec_ext in '' $ac_executable_extensions; do
8919: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8920: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8921: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8922: break 2
8923: fi
8924: done
8925: done
8926: IFS=$as_save_IFS
8927:
8928: fi
8929: fi
8930: OBJDUMP=$ac_cv_prog_OBJDUMP
8931: if test -n "$OBJDUMP"; then
8932: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8933: $as_echo "$OBJDUMP" >&6; }
8934: else
8935: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8936: $as_echo "no" >&6; }
8937: fi
8938:
8939:
8940: fi
8941: if test -z "$ac_cv_prog_OBJDUMP"; then
8942: ac_ct_OBJDUMP=$OBJDUMP
8943: # Extract the first word of "objdump", so it can be a program name with args.
8944: set dummy objdump; ac_word=$2
8945: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8946: $as_echo_n "checking for $ac_word... " >&6; }
8947: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8948: $as_echo_n "(cached) " >&6
8949: else
8950: if test -n "$ac_ct_OBJDUMP"; then
8951: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8952: else
8953: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8954: for as_dir in $PATH
8955: do
8956: IFS=$as_save_IFS
8957: test -z "$as_dir" && as_dir=.
8958: for ac_exec_ext in '' $ac_executable_extensions; do
8959: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8960: ac_cv_prog_ac_ct_OBJDUMP="objdump"
8961: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8962: break 2
8963: fi
8964: done
8965: done
8966: IFS=$as_save_IFS
8967:
8968: fi
8969: fi
8970: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8971: if test -n "$ac_ct_OBJDUMP"; then
8972: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8973: $as_echo "$ac_ct_OBJDUMP" >&6; }
8974: else
8975: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8976: $as_echo "no" >&6; }
8977: fi
8978:
8979: if test "x$ac_ct_OBJDUMP" = x; then
8980: OBJDUMP="false"
8981: else
8982: case $cross_compiling:$ac_tool_warned in
8983: yes:)
8984: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8985: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8986: ac_tool_warned=yes ;;
8987: esac
8988: OBJDUMP=$ac_ct_OBJDUMP
8989: fi
8990: else
8991: OBJDUMP="$ac_cv_prog_OBJDUMP"
8992: fi
8993:
8994: test -z "$OBJDUMP" && OBJDUMP=objdump
8995:
8996:
8997:
8998:
8999:
9000:
9001:
9002:
9003:
9004: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9005: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
9006: if ${lt_cv_deplibs_check_method+:} false; then :
9007: $as_echo_n "(cached) " >&6
9008: else
9009: lt_cv_file_magic_cmd='$MAGIC_CMD'
9010: lt_cv_file_magic_test_file=
9011: lt_cv_deplibs_check_method='unknown'
9012: # Need to set the preceding variable on all platforms that support
9013: # interlibrary dependencies.
9014: # 'none' -- dependencies not supported.
9015: # `unknown' -- same as none, but documents that we really don't know.
9016: # 'pass_all' -- all dependencies passed with no checks.
9017: # 'test_compile' -- check by making test program.
9018: # 'file_magic [[regex]]' -- check by looking for files in library path
9019: # which responds to the $file_magic_cmd with a given extended regex.
9020: # If you have `file' or equivalent on your system and you're not sure
9021: # whether `pass_all' will *always* work, you probably want this one.
9022:
9023: case $host_os in
9024: aix[4-9]*)
9025: lt_cv_deplibs_check_method=pass_all
9026: ;;
9027:
9028: beos*)
9029: lt_cv_deplibs_check_method=pass_all
9030: ;;
9031:
9032: bsdi[45]*)
9033: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9034: lt_cv_file_magic_cmd='/usr/bin/file -L'
9035: lt_cv_file_magic_test_file=/shlib/libc.so
9036: ;;
9037:
9038: cygwin*)
9039: # func_win32_libid is a shell function defined in ltmain.sh
9040: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9041: lt_cv_file_magic_cmd='func_win32_libid'
9042: ;;
9043:
9044: mingw* | pw32*)
9045: # Base MSYS/MinGW do not provide the 'file' command needed by
9046: # func_win32_libid shell function, so use a weaker test based on 'objdump',
9047: # unless we find 'file', for example because we are cross-compiling.
9048: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
9049: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
9050: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9051: lt_cv_file_magic_cmd='func_win32_libid'
9052: else
9053: # Keep this pattern in sync with the one in func_win32_libid.
9054: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9055: lt_cv_file_magic_cmd='$OBJDUMP -f'
9056: fi
9057: ;;
9058:
9059: cegcc*)
9060: # use the weaker test based on 'objdump'. See mingw*.
9061: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9062: lt_cv_file_magic_cmd='$OBJDUMP -f'
9063: ;;
9064:
9065: darwin* | rhapsody*)
9066: lt_cv_deplibs_check_method=pass_all
9067: ;;
9068:
9069: freebsd* | dragonfly*)
9070: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9071: case $host_cpu in
9072: i*86 )
9073: # Not sure whether the presence of OpenBSD here was a mistake.
9074: # Let's accept both of them until this is cleared up.
9075: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9076: lt_cv_file_magic_cmd=/usr/bin/file
9077: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9078: ;;
9079: esac
9080: else
9081: lt_cv_deplibs_check_method=pass_all
9082: fi
9083: ;;
9084:
9085: gnu*)
9086: lt_cv_deplibs_check_method=pass_all
9087: ;;
9088:
9089: haiku*)
9090: lt_cv_deplibs_check_method=pass_all
9091: ;;
9092:
9093: hpux10.20* | hpux11*)
9094: lt_cv_file_magic_cmd=/usr/bin/file
9095: case $host_cpu in
9096: ia64*)
9097: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9098: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9099: ;;
9100: hppa*64*)
9101: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
9102: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9103: ;;
9104: *)
9105: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9106: lt_cv_file_magic_test_file=/usr/lib/libc.sl
9107: ;;
9108: esac
9109: ;;
9110:
9111: interix[3-9]*)
9112: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9113: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9114: ;;
9115:
9116: irix5* | irix6* | nonstopux*)
9117: case $LD in
9118: *-32|*"-32 ") libmagic=32-bit;;
9119: *-n32|*"-n32 ") libmagic=N32;;
9120: *-64|*"-64 ") libmagic=64-bit;;
9121: *) libmagic=never-match;;
9122: esac
9123: lt_cv_deplibs_check_method=pass_all
9124: ;;
9125:
9126: # This must be Linux ELF.
9127: linux* | k*bsd*-gnu | kopensolaris*-gnu)
9128: lt_cv_deplibs_check_method=pass_all
9129: ;;
9130:
9131: netbsd*)
9132: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9133: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9134: else
9135: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9136: fi
9137: ;;
9138:
9139: newos6*)
9140: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9141: lt_cv_file_magic_cmd=/usr/bin/file
9142: lt_cv_file_magic_test_file=/usr/lib/libnls.so
9143: ;;
9144:
9145: *nto* | *qnx*)
9146: lt_cv_deplibs_check_method=pass_all
9147: ;;
9148:
9149: openbsd*)
9150: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9151: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9152: else
9153: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9154: fi
9155: ;;
9156:
9157: osf3* | osf4* | osf5*)
9158: lt_cv_deplibs_check_method=pass_all
9159: ;;
9160:
9161: rdos*)
9162: lt_cv_deplibs_check_method=pass_all
9163: ;;
9164:
9165: solaris*)
9166: lt_cv_deplibs_check_method=pass_all
9167: ;;
9168:
9169: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9170: lt_cv_deplibs_check_method=pass_all
9171: ;;
9172:
9173: sysv4 | sysv4.3*)
9174: case $host_vendor in
9175: motorola)
9176: 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]'
9177: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9178: ;;
9179: ncr)
9180: lt_cv_deplibs_check_method=pass_all
9181: ;;
9182: sequent)
9183: lt_cv_file_magic_cmd='/bin/file'
9184: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9185: ;;
9186: sni)
9187: lt_cv_file_magic_cmd='/bin/file'
9188: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9189: lt_cv_file_magic_test_file=/lib/libc.so
9190: ;;
9191: siemens)
9192: lt_cv_deplibs_check_method=pass_all
9193: ;;
9194: pc)
9195: lt_cv_deplibs_check_method=pass_all
9196: ;;
9197: esac
9198: ;;
9199:
9200: tpf*)
9201: lt_cv_deplibs_check_method=pass_all
9202: ;;
9203: esac
9204:
9205: fi
9206: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9207: $as_echo "$lt_cv_deplibs_check_method" >&6; }
9208:
9209: file_magic_glob=
9210: want_nocaseglob=no
9211: if test "$build" = "$host"; then
9212: case $host_os in
9213: mingw* | pw32*)
9214: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9215: want_nocaseglob=yes
9216: else
9217: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9218: fi
9219: ;;
9220: esac
9221: fi
9222:
9223: file_magic_cmd=$lt_cv_file_magic_cmd
9224: deplibs_check_method=$lt_cv_deplibs_check_method
9225: test -z "$deplibs_check_method" && deplibs_check_method=unknown
9226:
9227:
9228:
9229:
9230:
9231:
9232:
9233:
9234:
9235:
9236:
9237:
9238:
9239:
9240:
9241:
9242:
9243:
9244:
9245:
9246:
9247:
9248: if test -n "$ac_tool_prefix"; then
9249: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9250: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9251: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9252: $as_echo_n "checking for $ac_word... " >&6; }
9253: if ${ac_cv_prog_DLLTOOL+:} false; then :
9254: $as_echo_n "(cached) " >&6
9255: else
9256: if test -n "$DLLTOOL"; then
9257: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9258: else
9259: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9260: for as_dir in $PATH
9261: do
9262: IFS=$as_save_IFS
9263: test -z "$as_dir" && as_dir=.
9264: for ac_exec_ext in '' $ac_executable_extensions; do
9265: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9266: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9267: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9268: break 2
9269: fi
9270: done
9271: done
9272: IFS=$as_save_IFS
9273:
9274: fi
9275: fi
9276: DLLTOOL=$ac_cv_prog_DLLTOOL
9277: if test -n "$DLLTOOL"; then
9278: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9279: $as_echo "$DLLTOOL" >&6; }
9280: else
9281: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9282: $as_echo "no" >&6; }
9283: fi
9284:
9285:
9286: fi
9287: if test -z "$ac_cv_prog_DLLTOOL"; then
9288: ac_ct_DLLTOOL=$DLLTOOL
9289: # Extract the first word of "dlltool", so it can be a program name with args.
9290: set dummy dlltool; ac_word=$2
9291: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9292: $as_echo_n "checking for $ac_word... " >&6; }
9293: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9294: $as_echo_n "(cached) " >&6
9295: else
9296: if test -n "$ac_ct_DLLTOOL"; then
9297: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9298: else
9299: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9300: for as_dir in $PATH
9301: do
9302: IFS=$as_save_IFS
9303: test -z "$as_dir" && as_dir=.
9304: for ac_exec_ext in '' $ac_executable_extensions; do
9305: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9306: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9307: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9308: break 2
9309: fi
9310: done
9311: done
9312: IFS=$as_save_IFS
9313:
9314: fi
9315: fi
9316: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9317: if test -n "$ac_ct_DLLTOOL"; then
9318: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9319: $as_echo "$ac_ct_DLLTOOL" >&6; }
9320: else
9321: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9322: $as_echo "no" >&6; }
9323: fi
9324:
9325: if test "x$ac_ct_DLLTOOL" = x; then
9326: DLLTOOL="false"
9327: else
9328: case $cross_compiling:$ac_tool_warned in
9329: yes:)
9330: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9331: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9332: ac_tool_warned=yes ;;
9333: esac
9334: DLLTOOL=$ac_ct_DLLTOOL
9335: fi
9336: else
9337: DLLTOOL="$ac_cv_prog_DLLTOOL"
9338: fi
9339:
9340: test -z "$DLLTOOL" && DLLTOOL=dlltool
9341:
9342:
9343:
9344:
9345:
9346:
9347:
9348:
9349:
9350:
9351: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9352: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9353: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9354: $as_echo_n "(cached) " >&6
9355: else
9356: lt_cv_sharedlib_from_linklib_cmd='unknown'
9357:
9358: case $host_os in
9359: cygwin* | mingw* | pw32* | cegcc*)
9360: # two different shell functions defined in ltmain.sh
9361: # decide which to use based on capabilities of $DLLTOOL
9362: case `$DLLTOOL --help 2>&1` in
9363: *--identify-strict*)
9364: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9365: ;;
9366: *)
9367: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9368: ;;
9369: esac
9370: ;;
9371: *)
9372: # fallback: assume linklib IS sharedlib
9373: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
9374: ;;
9375: esac
9376:
9377: fi
9378: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9379: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9380: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9381: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9382:
9383:
9384:
9385:
9386:
9387:
9388:
9389: if test -n "$ac_tool_prefix"; then
9390: for ac_prog in ar
9391: do
9392: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9393: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9394: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9395: $as_echo_n "checking for $ac_word... " >&6; }
9396: if ${ac_cv_prog_AR+:} false; then :
9397: $as_echo_n "(cached) " >&6
9398: else
9399: if test -n "$AR"; then
9400: ac_cv_prog_AR="$AR" # Let the user override the test.
9401: else
9402: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9403: for as_dir in $PATH
9404: do
9405: IFS=$as_save_IFS
9406: test -z "$as_dir" && as_dir=.
9407: for ac_exec_ext in '' $ac_executable_extensions; do
9408: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9409: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9410: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9411: break 2
9412: fi
9413: done
9414: done
9415: IFS=$as_save_IFS
9416:
9417: fi
9418: fi
9419: AR=$ac_cv_prog_AR
9420: if test -n "$AR"; then
9421: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9422: $as_echo "$AR" >&6; }
9423: else
9424: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9425: $as_echo "no" >&6; }
9426: fi
9427:
9428:
9429: test -n "$AR" && break
9430: done
9431: fi
9432: if test -z "$AR"; then
9433: ac_ct_AR=$AR
9434: for ac_prog in ar
9435: do
9436: # Extract the first word of "$ac_prog", so it can be a program name with args.
9437: set dummy $ac_prog; ac_word=$2
9438: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9439: $as_echo_n "checking for $ac_word... " >&6; }
9440: if ${ac_cv_prog_ac_ct_AR+:} false; then :
9441: $as_echo_n "(cached) " >&6
9442: else
9443: if test -n "$ac_ct_AR"; then
9444: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9445: else
9446: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9447: for as_dir in $PATH
9448: do
9449: IFS=$as_save_IFS
9450: test -z "$as_dir" && as_dir=.
9451: for ac_exec_ext in '' $ac_executable_extensions; do
9452: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9453: ac_cv_prog_ac_ct_AR="$ac_prog"
9454: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9455: break 2
9456: fi
9457: done
9458: done
9459: IFS=$as_save_IFS
9460:
9461: fi
9462: fi
9463: ac_ct_AR=$ac_cv_prog_ac_ct_AR
9464: if test -n "$ac_ct_AR"; then
9465: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9466: $as_echo "$ac_ct_AR" >&6; }
9467: else
9468: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9469: $as_echo "no" >&6; }
9470: fi
9471:
9472:
9473: test -n "$ac_ct_AR" && break
9474: done
9475:
9476: if test "x$ac_ct_AR" = x; then
9477: AR="false"
9478: else
9479: case $cross_compiling:$ac_tool_warned in
9480: yes:)
9481: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9482: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9483: ac_tool_warned=yes ;;
9484: esac
9485: AR=$ac_ct_AR
9486: fi
9487: fi
9488:
9489: : ${AR=ar}
9490: : ${AR_FLAGS=cru}
9491:
9492:
9493:
9494:
9495:
9496:
9497:
9498:
9499:
9500:
9501:
9502: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9503: $as_echo_n "checking for archiver @FILE support... " >&6; }
9504: if ${lt_cv_ar_at_file+:} false; then :
9505: $as_echo_n "(cached) " >&6
9506: else
9507: lt_cv_ar_at_file=no
9508: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9509: /* end confdefs.h. */
9510:
9511: int
9512: main ()
9513: {
9514:
9515: ;
9516: return 0;
9517: }
9518: _ACEOF
9519: if ac_fn_c_try_compile "$LINENO"; then :
9520: echo conftest.$ac_objext > conftest.lst
9521: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9522: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9523: (eval $lt_ar_try) 2>&5
9524: ac_status=$?
9525: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9526: test $ac_status = 0; }
9527: if test "$ac_status" -eq 0; then
9528: # Ensure the archiver fails upon bogus file names.
9529: rm -f conftest.$ac_objext libconftest.a
9530: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9531: (eval $lt_ar_try) 2>&5
9532: ac_status=$?
9533: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9534: test $ac_status = 0; }
9535: if test "$ac_status" -ne 0; then
9536: lt_cv_ar_at_file=@
9537: fi
9538: fi
9539: rm -f conftest.* libconftest.a
9540:
9541: fi
9542: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9543:
9544: fi
9545: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9546: $as_echo "$lt_cv_ar_at_file" >&6; }
9547:
9548: if test "x$lt_cv_ar_at_file" = xno; then
9549: archiver_list_spec=
9550: else
9551: archiver_list_spec=$lt_cv_ar_at_file
9552: fi
9553:
9554:
9555:
9556:
9557:
9558:
9559:
9560: if test -n "$ac_tool_prefix"; then
9561: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9562: set dummy ${ac_tool_prefix}strip; ac_word=$2
9563: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9564: $as_echo_n "checking for $ac_word... " >&6; }
9565: if ${ac_cv_prog_STRIP+:} false; then :
9566: $as_echo_n "(cached) " >&6
9567: else
9568: if test -n "$STRIP"; then
9569: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9570: else
9571: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9572: for as_dir in $PATH
9573: do
9574: IFS=$as_save_IFS
9575: test -z "$as_dir" && as_dir=.
9576: for ac_exec_ext in '' $ac_executable_extensions; do
9577: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9578: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9579: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9580: break 2
9581: fi
9582: done
9583: done
9584: IFS=$as_save_IFS
9585:
9586: fi
9587: fi
9588: STRIP=$ac_cv_prog_STRIP
9589: if test -n "$STRIP"; then
9590: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9591: $as_echo "$STRIP" >&6; }
9592: else
9593: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9594: $as_echo "no" >&6; }
9595: fi
9596:
9597:
9598: fi
9599: if test -z "$ac_cv_prog_STRIP"; then
9600: ac_ct_STRIP=$STRIP
9601: # Extract the first word of "strip", so it can be a program name with args.
9602: set dummy strip; ac_word=$2
9603: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9604: $as_echo_n "checking for $ac_word... " >&6; }
9605: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9606: $as_echo_n "(cached) " >&6
9607: else
9608: if test -n "$ac_ct_STRIP"; then
9609: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9610: else
9611: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9612: for as_dir in $PATH
9613: do
9614: IFS=$as_save_IFS
9615: test -z "$as_dir" && as_dir=.
9616: for ac_exec_ext in '' $ac_executable_extensions; do
9617: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9618: ac_cv_prog_ac_ct_STRIP="strip"
9619: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9620: break 2
9621: fi
9622: done
9623: done
9624: IFS=$as_save_IFS
9625:
9626: fi
9627: fi
9628: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9629: if test -n "$ac_ct_STRIP"; then
9630: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9631: $as_echo "$ac_ct_STRIP" >&6; }
9632: else
9633: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9634: $as_echo "no" >&6; }
9635: fi
9636:
9637: if test "x$ac_ct_STRIP" = x; then
9638: STRIP=":"
9639: else
9640: case $cross_compiling:$ac_tool_warned in
9641: yes:)
9642: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9643: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9644: ac_tool_warned=yes ;;
9645: esac
9646: STRIP=$ac_ct_STRIP
9647: fi
9648: else
9649: STRIP="$ac_cv_prog_STRIP"
9650: fi
9651:
9652: test -z "$STRIP" && STRIP=:
9653:
9654:
9655:
9656:
9657:
9658:
9659: if test -n "$ac_tool_prefix"; then
9660: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9661: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9662: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9663: $as_echo_n "checking for $ac_word... " >&6; }
9664: if ${ac_cv_prog_RANLIB+:} false; then :
9665: $as_echo_n "(cached) " >&6
9666: else
9667: if test -n "$RANLIB"; then
9668: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9669: else
9670: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9671: for as_dir in $PATH
9672: do
9673: IFS=$as_save_IFS
9674: test -z "$as_dir" && as_dir=.
9675: for ac_exec_ext in '' $ac_executable_extensions; do
9676: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9677: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9678: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9679: break 2
9680: fi
9681: done
9682: done
9683: IFS=$as_save_IFS
9684:
9685: fi
9686: fi
9687: RANLIB=$ac_cv_prog_RANLIB
9688: if test -n "$RANLIB"; then
9689: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9690: $as_echo "$RANLIB" >&6; }
9691: else
9692: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9693: $as_echo "no" >&6; }
9694: fi
9695:
9696:
9697: fi
9698: if test -z "$ac_cv_prog_RANLIB"; then
9699: ac_ct_RANLIB=$RANLIB
9700: # Extract the first word of "ranlib", so it can be a program name with args.
9701: set dummy ranlib; ac_word=$2
9702: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9703: $as_echo_n "checking for $ac_word... " >&6; }
9704: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9705: $as_echo_n "(cached) " >&6
9706: else
9707: if test -n "$ac_ct_RANLIB"; then
9708: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9709: else
9710: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9711: for as_dir in $PATH
9712: do
9713: IFS=$as_save_IFS
9714: test -z "$as_dir" && as_dir=.
9715: for ac_exec_ext in '' $ac_executable_extensions; do
9716: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9717: ac_cv_prog_ac_ct_RANLIB="ranlib"
9718: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9719: break 2
9720: fi
9721: done
9722: done
9723: IFS=$as_save_IFS
9724:
9725: fi
9726: fi
9727: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9728: if test -n "$ac_ct_RANLIB"; then
9729: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9730: $as_echo "$ac_ct_RANLIB" >&6; }
9731: else
9732: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9733: $as_echo "no" >&6; }
9734: fi
9735:
9736: if test "x$ac_ct_RANLIB" = x; then
9737: RANLIB=":"
9738: else
9739: case $cross_compiling:$ac_tool_warned in
9740: yes:)
9741: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9742: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9743: ac_tool_warned=yes ;;
9744: esac
9745: RANLIB=$ac_ct_RANLIB
9746: fi
9747: else
9748: RANLIB="$ac_cv_prog_RANLIB"
9749: fi
9750:
9751: test -z "$RANLIB" && RANLIB=:
9752:
9753:
9754:
9755:
9756:
9757:
9758: # Determine commands to create old-style static archives.
9759: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9760: old_postinstall_cmds='chmod 644 $oldlib'
9761: old_postuninstall_cmds=
9762:
9763: if test -n "$RANLIB"; then
9764: case $host_os in
9765: openbsd*)
9766: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9767: ;;
9768: *)
9769: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9770: ;;
9771: esac
9772: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9773: fi
9774:
9775: case $host_os in
9776: darwin*)
9777: lock_old_archive_extraction=yes ;;
9778: *)
9779: lock_old_archive_extraction=no ;;
9780: esac
9781:
9782:
9783:
9784:
9785:
9786:
9787:
9788:
9789:
9790:
9791:
9792:
9793:
9794:
9795:
9796:
9797:
9798:
9799:
9800:
9801:
9802:
9803:
9804:
9805:
9806:
9807:
9808:
9809:
9810:
9811:
9812:
9813:
9814:
9815:
9816:
9817:
9818:
9819:
9820: # If no C compiler was specified, use CC.
9821: LTCC=${LTCC-"$CC"}
9822:
9823: # If no C compiler flags were specified, use CFLAGS.
9824: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9825:
9826: # Allow CC to be a program name with arguments.
9827: compiler=$CC
9828:
9829:
9830: # Check for command to grab the raw symbol name followed by C symbol from nm.
9831: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9832: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9833: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9834: $as_echo_n "(cached) " >&6
9835: else
9836:
9837: # These are sane defaults that work on at least a few old systems.
9838: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9839:
9840: # Character class describing NM global symbol codes.
9841: symcode='[BCDEGRST]'
9842:
9843: # Regexp to match symbols that can be accessed directly from C.
9844: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9845:
9846: # Define system-specific variables.
9847: case $host_os in
9848: aix*)
9849: symcode='[BCDT]'
9850: ;;
9851: cygwin* | mingw* | pw32* | cegcc*)
9852: symcode='[ABCDGISTW]'
9853: ;;
9854: hpux*)
9855: if test "$host_cpu" = ia64; then
9856: symcode='[ABCDEGRST]'
9857: fi
9858: ;;
9859: irix* | nonstopux*)
9860: symcode='[BCDEGRST]'
9861: ;;
9862: osf*)
9863: symcode='[BCDEGQRST]'
9864: ;;
9865: solaris*)
9866: symcode='[BDRT]'
9867: ;;
9868: sco3.2v5*)
9869: symcode='[DT]'
9870: ;;
9871: sysv4.2uw2*)
9872: symcode='[DT]'
9873: ;;
9874: sysv5* | sco5v6* | unixware* | OpenUNIX*)
9875: symcode='[ABDT]'
9876: ;;
9877: sysv4)
9878: symcode='[DFNSTU]'
9879: ;;
9880: esac
9881:
9882: # If we're using GNU nm, then use its standard symbol codes.
9883: case `$NM -V 2>&1` in
9884: *GNU* | *'with BFD'*)
9885: symcode='[ABCDGIRSTW]' ;;
9886: esac
9887:
9888: # Transform an extracted symbol line into a proper C declaration.
9889: # Some systems (esp. on ia64) link data and code symbols differently,
9890: # so use this general approach.
9891: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9892:
9893: # Transform an extracted symbol line into symbol name and symbol address
9894: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9895: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
9896:
9897: # Handle CRLF in mingw tool chain
9898: opt_cr=
9899: case $build_os in
9900: mingw*)
9901: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9902: ;;
9903: esac
9904:
9905: # Try without a prefix underscore, then with it.
9906: for ac_symprfx in "" "_"; do
9907:
9908: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9909: symxfrm="\\1 $ac_symprfx\\2 \\2"
9910:
9911: # Write the raw and C identifiers.
9912: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9913: # Fake it for dumpbin and say T for any non-static function
9914: # and D for any global variable.
9915: # Also find C++ and __fastcall symbols from MSVC++,
9916: # which start with @ or ?.
9917: lt_cv_sys_global_symbol_pipe="$AWK '"\
9918: " {last_section=section; section=\$ 3};"\
9919: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9920: " \$ 0!~/External *\|/{next};"\
9921: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9922: " {if(hide[section]) next};"\
9923: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9924: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9925: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
9926: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9927: " ' prfx=^$ac_symprfx"
9928: else
9929: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9930: fi
9931: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9932:
9933: # Check to see that the pipe works correctly.
9934: pipe_works=no
9935:
9936: rm -f conftest*
9937: cat > conftest.$ac_ext <<_LT_EOF
9938: #ifdef __cplusplus
9939: extern "C" {
9940: #endif
9941: char nm_test_var;
9942: void nm_test_func(void);
9943: void nm_test_func(void){}
9944: #ifdef __cplusplus
9945: }
9946: #endif
9947: int main(){nm_test_var='a';nm_test_func();return(0);}
9948: _LT_EOF
9949:
9950: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9951: (eval $ac_compile) 2>&5
9952: ac_status=$?
9953: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9954: test $ac_status = 0; }; then
9955: # Now try to grab the symbols.
9956: nlist=conftest.nm
9957: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9958: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9959: ac_status=$?
9960: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9961: test $ac_status = 0; } && test -s "$nlist"; then
9962: # Try sorting and uniquifying the output.
9963: if sort "$nlist" | uniq > "$nlist"T; then
9964: mv -f "$nlist"T "$nlist"
9965: else
9966: rm -f "$nlist"T
9967: fi
9968:
9969: # Make sure that we snagged all the symbols we need.
9970: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9971: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9972: cat <<_LT_EOF > conftest.$ac_ext
9973: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9974: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
9975: /* DATA imports from DLLs on WIN32 con't be const, because runtime
9976: relocations are performed -- see ld's documentation on pseudo-relocs. */
9977: # define LT_DLSYM_CONST
9978: #elif defined(__osf__)
9979: /* This system does not cope well with relocations in const data. */
9980: # define LT_DLSYM_CONST
9981: #else
9982: # define LT_DLSYM_CONST const
9983: #endif
9984:
9985: #ifdef __cplusplus
9986: extern "C" {
9987: #endif
9988:
9989: _LT_EOF
9990: # Now generate the symbol file.
9991: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9992:
9993: cat <<_LT_EOF >> conftest.$ac_ext
9994:
9995: /* The mapping between symbol names and symbols. */
9996: LT_DLSYM_CONST struct {
9997: const char *name;
9998: void *address;
9999: }
10000: lt__PROGRAM__LTX_preloaded_symbols[] =
10001: {
10002: { "@PROGRAM@", (void *) 0 },
10003: _LT_EOF
10004: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10005: cat <<\_LT_EOF >> conftest.$ac_ext
10006: {0, (void *) 0}
10007: };
10008:
10009: /* This works around a problem in FreeBSD linker */
10010: #ifdef FREEBSD_WORKAROUND
10011: static const void *lt_preloaded_setup() {
10012: return lt__PROGRAM__LTX_preloaded_symbols;
10013: }
10014: #endif
10015:
10016: #ifdef __cplusplus
10017: }
10018: #endif
10019: _LT_EOF
10020: # Now try linking the two files.
10021: mv conftest.$ac_objext conftstm.$ac_objext
10022: lt_globsym_save_LIBS=$LIBS
10023: lt_globsym_save_CFLAGS=$CFLAGS
10024: LIBS="conftstm.$ac_objext"
10025: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10026: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10027: (eval $ac_link) 2>&5
10028: ac_status=$?
10029: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10030: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10031: pipe_works=yes
10032: fi
10033: LIBS=$lt_globsym_save_LIBS
10034: CFLAGS=$lt_globsym_save_CFLAGS
10035: else
10036: echo "cannot find nm_test_func in $nlist" >&5
10037: fi
10038: else
10039: echo "cannot find nm_test_var in $nlist" >&5
10040: fi
10041: else
10042: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10043: fi
10044: else
10045: echo "$progname: failed program was:" >&5
10046: cat conftest.$ac_ext >&5
10047: fi
10048: rm -rf conftest* conftst*
10049:
10050: # Do not use the global_symbol_pipe unless it works.
10051: if test "$pipe_works" = yes; then
10052: break
10053: else
10054: lt_cv_sys_global_symbol_pipe=
10055: fi
10056: done
10057:
10058: fi
10059:
10060: if test -z "$lt_cv_sys_global_symbol_pipe"; then
10061: lt_cv_sys_global_symbol_to_cdecl=
10062: fi
10063: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10064: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10065: $as_echo "failed" >&6; }
10066: else
10067: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10068: $as_echo "ok" >&6; }
10069: fi
10070:
10071: # Response file support.
10072: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10073: nm_file_list_spec='@'
10074: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10075: nm_file_list_spec='@'
10076: fi
10077:
10078:
10079:
10080:
10081:
10082:
10083:
10084:
10085:
10086:
10087:
10088:
10089:
10090:
10091:
10092:
10093:
10094:
10095:
10096:
10097:
10098:
10099:
10100:
10101:
10102:
10103:
10104: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10105: $as_echo_n "checking for sysroot... " >&6; }
10106:
10107: # Check whether --with-sysroot was given.
10108: if test "${with_sysroot+set}" = set; then :
10109: withval=$with_sysroot;
10110: else
10111: with_sysroot=no
10112: fi
10113:
10114:
10115: lt_sysroot=
10116: case ${with_sysroot} in #(
10117: yes)
10118: if test "$GCC" = yes; then
10119: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10120: fi
10121: ;; #(
10122: /*)
10123: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
10124: ;; #(
10125: no|'')
10126: ;; #(
10127: *)
10128: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
10129: $as_echo "${with_sysroot}" >&6; }
10130: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10131: ;;
10132: esac
10133:
10134: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10135: $as_echo "${lt_sysroot:-no}" >&6; }
10136:
10137:
10138:
10139:
10140:
10141: # Check whether --enable-libtool-lock was given.
10142: if test "${enable_libtool_lock+set}" = set; then :
10143: enableval=$enable_libtool_lock;
10144: fi
10145:
10146: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10147:
10148: # Some flags need to be propagated to the compiler or linker for good
10149: # libtool support.
10150: case $host in
10151: ia64-*-hpux*)
10152: # Find out which ABI we are using.
10153: echo 'int i;' > conftest.$ac_ext
10154: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10155: (eval $ac_compile) 2>&5
10156: ac_status=$?
10157: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10158: test $ac_status = 0; }; then
10159: case `/usr/bin/file conftest.$ac_objext` in
10160: *ELF-32*)
10161: HPUX_IA64_MODE="32"
10162: ;;
10163: *ELF-64*)
10164: HPUX_IA64_MODE="64"
10165: ;;
10166: esac
10167: fi
10168: rm -rf conftest*
10169: ;;
10170: *-*-irix6*)
10171: # Find out which ABI we are using.
10172: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10173: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10174: (eval $ac_compile) 2>&5
10175: ac_status=$?
10176: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10177: test $ac_status = 0; }; then
10178: if test "$lt_cv_prog_gnu_ld" = yes; then
10179: case `/usr/bin/file conftest.$ac_objext` in
10180: *32-bit*)
10181: LD="${LD-ld} -melf32bsmip"
10182: ;;
10183: *N32*)
10184: LD="${LD-ld} -melf32bmipn32"
10185: ;;
10186: *64-bit*)
10187: LD="${LD-ld} -melf64bmip"
10188: ;;
10189: esac
10190: else
10191: case `/usr/bin/file conftest.$ac_objext` in
10192: *32-bit*)
10193: LD="${LD-ld} -32"
10194: ;;
10195: *N32*)
10196: LD="${LD-ld} -n32"
10197: ;;
10198: *64-bit*)
10199: LD="${LD-ld} -64"
10200: ;;
10201: esac
10202: fi
10203: fi
10204: rm -rf conftest*
10205: ;;
10206:
10207: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10208: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10209: # Find out which ABI we are using.
10210: echo 'int i;' > conftest.$ac_ext
10211: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10212: (eval $ac_compile) 2>&5
10213: ac_status=$?
10214: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10215: test $ac_status = 0; }; then
10216: case `/usr/bin/file conftest.o` in
10217: *32-bit*)
10218: case $host in
10219: x86_64-*kfreebsd*-gnu)
10220: LD="${LD-ld} -m elf_i386_fbsd"
10221: ;;
10222: x86_64-*linux*)
10223: LD="${LD-ld} -m elf_i386"
10224: ;;
10225: ppc64-*linux*|powerpc64-*linux*)
10226: LD="${LD-ld} -m elf32ppclinux"
10227: ;;
10228: s390x-*linux*)
10229: LD="${LD-ld} -m elf_s390"
10230: ;;
10231: sparc64-*linux*)
10232: LD="${LD-ld} -m elf32_sparc"
10233: ;;
10234: esac
10235: ;;
10236: *64-bit*)
10237: case $host in
10238: x86_64-*kfreebsd*-gnu)
10239: LD="${LD-ld} -m elf_x86_64_fbsd"
10240: ;;
10241: x86_64-*linux*)
10242: LD="${LD-ld} -m elf_x86_64"
10243: ;;
10244: ppc*-*linux*|powerpc*-*linux*)
10245: LD="${LD-ld} -m elf64ppc"
10246: ;;
10247: s390*-*linux*|s390*-*tpf*)
10248: LD="${LD-ld} -m elf64_s390"
10249: ;;
10250: sparc*-*linux*)
10251: LD="${LD-ld} -m elf64_sparc"
10252: ;;
10253: esac
10254: ;;
10255: esac
10256: fi
10257: rm -rf conftest*
10258: ;;
10259:
10260: *-*-sco3.2v5*)
10261: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10262: SAVE_CFLAGS="$CFLAGS"
10263: CFLAGS="$CFLAGS -belf"
10264: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10265: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10266: if ${lt_cv_cc_needs_belf+:} false; then :
10267: $as_echo_n "(cached) " >&6
10268: else
10269: ac_ext=c
10270: ac_cpp='$CPP $CPPFLAGS'
10271: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10272: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10273: ac_compiler_gnu=$ac_cv_c_compiler_gnu
10274:
10275: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10276: /* end confdefs.h. */
10277:
10278: int
10279: main ()
10280: {
10281:
10282: ;
10283: return 0;
10284: }
10285: _ACEOF
10286: if ac_fn_c_try_link "$LINENO"; then :
10287: lt_cv_cc_needs_belf=yes
10288: else
10289: lt_cv_cc_needs_belf=no
10290: fi
10291: rm -f core conftest.err conftest.$ac_objext \
10292: conftest$ac_exeext conftest.$ac_ext
10293: ac_ext=c
10294: ac_cpp='$CPP $CPPFLAGS'
10295: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10296: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10297: ac_compiler_gnu=$ac_cv_c_compiler_gnu
10298:
10299: fi
10300: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10301: $as_echo "$lt_cv_cc_needs_belf" >&6; }
10302: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10303: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10304: CFLAGS="$SAVE_CFLAGS"
10305: fi
10306: ;;
10307: sparc*-*solaris*)
10308: # Find out which ABI we are using.
10309: echo 'int i;' > conftest.$ac_ext
10310: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10311: (eval $ac_compile) 2>&5
10312: ac_status=$?
10313: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10314: test $ac_status = 0; }; then
10315: case `/usr/bin/file conftest.o` in
10316: *64-bit*)
10317: case $lt_cv_prog_gnu_ld in
10318: yes*) LD="${LD-ld} -m elf64_sparc" ;;
10319: *)
10320: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10321: LD="${LD-ld} -64"
10322: fi
10323: ;;
10324: esac
10325: ;;
10326: esac
10327: fi
10328: rm -rf conftest*
10329: ;;
10330: esac
10331:
10332: need_locks="$enable_libtool_lock"
10333:
10334: if test -n "$ac_tool_prefix"; then
10335: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10336: set dummy ${ac_tool_prefix}mt; ac_word=$2
10337: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10338: $as_echo_n "checking for $ac_word... " >&6; }
10339: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10340: $as_echo_n "(cached) " >&6
10341: else
10342: if test -n "$MANIFEST_TOOL"; then
10343: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10344: else
10345: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10346: for as_dir in $PATH
10347: do
10348: IFS=$as_save_IFS
10349: test -z "$as_dir" && as_dir=.
10350: for ac_exec_ext in '' $ac_executable_extensions; do
10351: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10352: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10353: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10354: break 2
10355: fi
10356: done
10357: done
10358: IFS=$as_save_IFS
10359:
10360: fi
10361: fi
10362: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10363: if test -n "$MANIFEST_TOOL"; then
10364: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10365: $as_echo "$MANIFEST_TOOL" >&6; }
10366: else
10367: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10368: $as_echo "no" >&6; }
10369: fi
10370:
10371:
10372: fi
10373: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10374: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10375: # Extract the first word of "mt", so it can be a program name with args.
10376: set dummy mt; ac_word=$2
10377: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10378: $as_echo_n "checking for $ac_word... " >&6; }
10379: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10380: $as_echo_n "(cached) " >&6
10381: else
10382: if test -n "$ac_ct_MANIFEST_TOOL"; then
10383: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10384: else
10385: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10386: for as_dir in $PATH
10387: do
10388: IFS=$as_save_IFS
10389: test -z "$as_dir" && as_dir=.
10390: for ac_exec_ext in '' $ac_executable_extensions; do
10391: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10392: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10393: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10394: break 2
10395: fi
10396: done
10397: done
10398: IFS=$as_save_IFS
10399:
10400: fi
10401: fi
10402: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10403: if test -n "$ac_ct_MANIFEST_TOOL"; then
10404: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10405: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10406: else
10407: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10408: $as_echo "no" >&6; }
10409: fi
10410:
10411: if test "x$ac_ct_MANIFEST_TOOL" = x; then
10412: MANIFEST_TOOL=":"
10413: else
10414: case $cross_compiling:$ac_tool_warned in
10415: yes:)
10416: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10417: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10418: ac_tool_warned=yes ;;
10419: esac
10420: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10421: fi
10422: else
10423: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10424: fi
10425:
10426: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10427: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10428: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10429: if ${lt_cv_path_mainfest_tool+:} false; then :
10430: $as_echo_n "(cached) " >&6
10431: else
10432: lt_cv_path_mainfest_tool=no
10433: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10434: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10435: cat conftest.err >&5
10436: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10437: lt_cv_path_mainfest_tool=yes
10438: fi
10439: rm -f conftest*
10440: fi
10441: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10442: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10443: if test "x$lt_cv_path_mainfest_tool" != xyes; then
10444: MANIFEST_TOOL=:
10445: fi
10446:
10447:
10448:
10449:
10450:
10451:
10452: case $host_os in
10453: rhapsody* | darwin*)
10454: if test -n "$ac_tool_prefix"; then
10455: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10456: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10457: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10458: $as_echo_n "checking for $ac_word... " >&6; }
10459: if ${ac_cv_prog_DSYMUTIL+:} false; then :
10460: $as_echo_n "(cached) " >&6
10461: else
10462: if test -n "$DSYMUTIL"; then
10463: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10464: else
10465: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10466: for as_dir in $PATH
10467: do
10468: IFS=$as_save_IFS
10469: test -z "$as_dir" && as_dir=.
10470: for ac_exec_ext in '' $ac_executable_extensions; do
10471: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10472: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10473: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10474: break 2
10475: fi
10476: done
10477: done
10478: IFS=$as_save_IFS
10479:
10480: fi
10481: fi
10482: DSYMUTIL=$ac_cv_prog_DSYMUTIL
10483: if test -n "$DSYMUTIL"; then
10484: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10485: $as_echo "$DSYMUTIL" >&6; }
10486: else
10487: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10488: $as_echo "no" >&6; }
10489: fi
10490:
10491:
10492: fi
10493: if test -z "$ac_cv_prog_DSYMUTIL"; then
10494: ac_ct_DSYMUTIL=$DSYMUTIL
10495: # Extract the first word of "dsymutil", so it can be a program name with args.
10496: set dummy dsymutil; ac_word=$2
10497: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10498: $as_echo_n "checking for $ac_word... " >&6; }
10499: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10500: $as_echo_n "(cached) " >&6
10501: else
10502: if test -n "$ac_ct_DSYMUTIL"; then
10503: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10504: else
10505: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10506: for as_dir in $PATH
10507: do
10508: IFS=$as_save_IFS
10509: test -z "$as_dir" && as_dir=.
10510: for ac_exec_ext in '' $ac_executable_extensions; do
10511: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10512: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10513: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10514: break 2
10515: fi
10516: done
10517: done
10518: IFS=$as_save_IFS
10519:
10520: fi
10521: fi
10522: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10523: if test -n "$ac_ct_DSYMUTIL"; then
10524: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10525: $as_echo "$ac_ct_DSYMUTIL" >&6; }
10526: else
10527: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10528: $as_echo "no" >&6; }
10529: fi
10530:
10531: if test "x$ac_ct_DSYMUTIL" = x; then
10532: DSYMUTIL=":"
10533: else
10534: case $cross_compiling:$ac_tool_warned in
10535: yes:)
10536: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10537: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10538: ac_tool_warned=yes ;;
10539: esac
10540: DSYMUTIL=$ac_ct_DSYMUTIL
10541: fi
10542: else
10543: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10544: fi
10545:
10546: if test -n "$ac_tool_prefix"; then
10547: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10548: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10549: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10550: $as_echo_n "checking for $ac_word... " >&6; }
10551: if ${ac_cv_prog_NMEDIT+:} false; then :
10552: $as_echo_n "(cached) " >&6
10553: else
10554: if test -n "$NMEDIT"; then
10555: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10556: else
10557: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10558: for as_dir in $PATH
10559: do
10560: IFS=$as_save_IFS
10561: test -z "$as_dir" && as_dir=.
10562: for ac_exec_ext in '' $ac_executable_extensions; do
10563: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10564: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10565: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10566: break 2
10567: fi
10568: done
10569: done
10570: IFS=$as_save_IFS
10571:
10572: fi
10573: fi
10574: NMEDIT=$ac_cv_prog_NMEDIT
10575: if test -n "$NMEDIT"; then
10576: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10577: $as_echo "$NMEDIT" >&6; }
10578: else
10579: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10580: $as_echo "no" >&6; }
10581: fi
10582:
10583:
10584: fi
10585: if test -z "$ac_cv_prog_NMEDIT"; then
10586: ac_ct_NMEDIT=$NMEDIT
10587: # Extract the first word of "nmedit", so it can be a program name with args.
10588: set dummy nmedit; ac_word=$2
10589: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10590: $as_echo_n "checking for $ac_word... " >&6; }
10591: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10592: $as_echo_n "(cached) " >&6
10593: else
10594: if test -n "$ac_ct_NMEDIT"; then
10595: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10596: else
10597: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10598: for as_dir in $PATH
10599: do
10600: IFS=$as_save_IFS
10601: test -z "$as_dir" && as_dir=.
10602: for ac_exec_ext in '' $ac_executable_extensions; do
10603: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10604: ac_cv_prog_ac_ct_NMEDIT="nmedit"
10605: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10606: break 2
10607: fi
10608: done
10609: done
10610: IFS=$as_save_IFS
10611:
10612: fi
10613: fi
10614: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10615: if test -n "$ac_ct_NMEDIT"; then
10616: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10617: $as_echo "$ac_ct_NMEDIT" >&6; }
10618: else
10619: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10620: $as_echo "no" >&6; }
10621: fi
10622:
10623: if test "x$ac_ct_NMEDIT" = x; then
10624: NMEDIT=":"
10625: else
10626: case $cross_compiling:$ac_tool_warned in
10627: yes:)
10628: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10629: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10630: ac_tool_warned=yes ;;
10631: esac
10632: NMEDIT=$ac_ct_NMEDIT
10633: fi
10634: else
10635: NMEDIT="$ac_cv_prog_NMEDIT"
10636: fi
10637:
10638: if test -n "$ac_tool_prefix"; then
10639: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10640: set dummy ${ac_tool_prefix}lipo; ac_word=$2
10641: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10642: $as_echo_n "checking for $ac_word... " >&6; }
10643: if ${ac_cv_prog_LIPO+:} false; then :
10644: $as_echo_n "(cached) " >&6
10645: else
10646: if test -n "$LIPO"; then
10647: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10648: else
10649: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10650: for as_dir in $PATH
10651: do
10652: IFS=$as_save_IFS
10653: test -z "$as_dir" && as_dir=.
10654: for ac_exec_ext in '' $ac_executable_extensions; do
10655: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10656: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10657: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10658: break 2
10659: fi
10660: done
10661: done
10662: IFS=$as_save_IFS
10663:
10664: fi
10665: fi
10666: LIPO=$ac_cv_prog_LIPO
10667: if test -n "$LIPO"; then
10668: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10669: $as_echo "$LIPO" >&6; }
10670: else
10671: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10672: $as_echo "no" >&6; }
10673: fi
10674:
10675:
10676: fi
10677: if test -z "$ac_cv_prog_LIPO"; then
10678: ac_ct_LIPO=$LIPO
10679: # Extract the first word of "lipo", so it can be a program name with args.
10680: set dummy lipo; ac_word=$2
10681: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10682: $as_echo_n "checking for $ac_word... " >&6; }
10683: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10684: $as_echo_n "(cached) " >&6
10685: else
10686: if test -n "$ac_ct_LIPO"; then
10687: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10688: else
10689: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10690: for as_dir in $PATH
10691: do
10692: IFS=$as_save_IFS
10693: test -z "$as_dir" && as_dir=.
10694: for ac_exec_ext in '' $ac_executable_extensions; do
10695: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10696: ac_cv_prog_ac_ct_LIPO="lipo"
10697: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10698: break 2
10699: fi
10700: done
10701: done
10702: IFS=$as_save_IFS
10703:
10704: fi
10705: fi
10706: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10707: if test -n "$ac_ct_LIPO"; then
10708: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10709: $as_echo "$ac_ct_LIPO" >&6; }
10710: else
10711: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10712: $as_echo "no" >&6; }
10713: fi
10714:
10715: if test "x$ac_ct_LIPO" = x; then
10716: LIPO=":"
10717: else
10718: case $cross_compiling:$ac_tool_warned in
10719: yes:)
10720: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10721: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10722: ac_tool_warned=yes ;;
10723: esac
10724: LIPO=$ac_ct_LIPO
10725: fi
10726: else
10727: LIPO="$ac_cv_prog_LIPO"
10728: fi
10729:
10730: if test -n "$ac_tool_prefix"; then
10731: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10732: set dummy ${ac_tool_prefix}otool; ac_word=$2
10733: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10734: $as_echo_n "checking for $ac_word... " >&6; }
10735: if ${ac_cv_prog_OTOOL+:} false; then :
10736: $as_echo_n "(cached) " >&6
10737: else
10738: if test -n "$OTOOL"; then
10739: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10740: else
10741: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10742: for as_dir in $PATH
10743: do
10744: IFS=$as_save_IFS
10745: test -z "$as_dir" && as_dir=.
10746: for ac_exec_ext in '' $ac_executable_extensions; do
10747: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10748: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10749: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10750: break 2
10751: fi
10752: done
10753: done
10754: IFS=$as_save_IFS
10755:
10756: fi
10757: fi
10758: OTOOL=$ac_cv_prog_OTOOL
10759: if test -n "$OTOOL"; then
10760: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10761: $as_echo "$OTOOL" >&6; }
10762: else
10763: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10764: $as_echo "no" >&6; }
10765: fi
10766:
10767:
10768: fi
10769: if test -z "$ac_cv_prog_OTOOL"; then
10770: ac_ct_OTOOL=$OTOOL
10771: # Extract the first word of "otool", so it can be a program name with args.
10772: set dummy otool; ac_word=$2
10773: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10774: $as_echo_n "checking for $ac_word... " >&6; }
10775: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10776: $as_echo_n "(cached) " >&6
10777: else
10778: if test -n "$ac_ct_OTOOL"; then
10779: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10780: else
10781: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10782: for as_dir in $PATH
10783: do
10784: IFS=$as_save_IFS
10785: test -z "$as_dir" && as_dir=.
10786: for ac_exec_ext in '' $ac_executable_extensions; do
10787: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10788: ac_cv_prog_ac_ct_OTOOL="otool"
10789: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10790: break 2
10791: fi
10792: done
10793: done
10794: IFS=$as_save_IFS
10795:
10796: fi
10797: fi
10798: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10799: if test -n "$ac_ct_OTOOL"; then
10800: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10801: $as_echo "$ac_ct_OTOOL" >&6; }
10802: else
10803: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10804: $as_echo "no" >&6; }
10805: fi
10806:
10807: if test "x$ac_ct_OTOOL" = x; then
10808: OTOOL=":"
10809: else
10810: case $cross_compiling:$ac_tool_warned in
10811: yes:)
10812: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10813: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10814: ac_tool_warned=yes ;;
10815: esac
10816: OTOOL=$ac_ct_OTOOL
10817: fi
10818: else
10819: OTOOL="$ac_cv_prog_OTOOL"
10820: fi
10821:
10822: if test -n "$ac_tool_prefix"; then
10823: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10824: set dummy ${ac_tool_prefix}otool64; ac_word=$2
10825: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10826: $as_echo_n "checking for $ac_word... " >&6; }
10827: if ${ac_cv_prog_OTOOL64+:} false; then :
10828: $as_echo_n "(cached) " >&6
10829: else
10830: if test -n "$OTOOL64"; then
10831: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10832: else
10833: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10834: for as_dir in $PATH
10835: do
10836: IFS=$as_save_IFS
10837: test -z "$as_dir" && as_dir=.
10838: for ac_exec_ext in '' $ac_executable_extensions; do
10839: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10840: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10841: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10842: break 2
10843: fi
10844: done
10845: done
10846: IFS=$as_save_IFS
10847:
10848: fi
10849: fi
10850: OTOOL64=$ac_cv_prog_OTOOL64
10851: if test -n "$OTOOL64"; then
10852: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10853: $as_echo "$OTOOL64" >&6; }
10854: else
10855: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10856: $as_echo "no" >&6; }
10857: fi
10858:
10859:
10860: fi
10861: if test -z "$ac_cv_prog_OTOOL64"; then
10862: ac_ct_OTOOL64=$OTOOL64
10863: # Extract the first word of "otool64", so it can be a program name with args.
10864: set dummy otool64; ac_word=$2
10865: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10866: $as_echo_n "checking for $ac_word... " >&6; }
10867: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10868: $as_echo_n "(cached) " >&6
10869: else
10870: if test -n "$ac_ct_OTOOL64"; then
10871: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10872: else
10873: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10874: for as_dir in $PATH
10875: do
10876: IFS=$as_save_IFS
10877: test -z "$as_dir" && as_dir=.
10878: for ac_exec_ext in '' $ac_executable_extensions; do
10879: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10880: ac_cv_prog_ac_ct_OTOOL64="otool64"
10881: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10882: break 2
10883: fi
10884: done
10885: done
10886: IFS=$as_save_IFS
10887:
10888: fi
10889: fi
10890: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10891: if test -n "$ac_ct_OTOOL64"; then
10892: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10893: $as_echo "$ac_ct_OTOOL64" >&6; }
10894: else
10895: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10896: $as_echo "no" >&6; }
10897: fi
10898:
10899: if test "x$ac_ct_OTOOL64" = x; then
10900: OTOOL64=":"
10901: else
10902: case $cross_compiling:$ac_tool_warned in
10903: yes:)
10904: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10905: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10906: ac_tool_warned=yes ;;
10907: esac
10908: OTOOL64=$ac_ct_OTOOL64
10909: fi
10910: else
10911: OTOOL64="$ac_cv_prog_OTOOL64"
10912: fi
10913:
10914:
10915:
10916:
10917:
10918:
10919:
10920:
10921:
10922:
10923:
10924:
10925:
10926:
10927:
10928:
10929:
10930:
10931:
10932:
10933:
10934:
10935:
10936:
10937:
10938:
10939:
10940: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10941: $as_echo_n "checking for -single_module linker flag... " >&6; }
10942: if ${lt_cv_apple_cc_single_mod+:} false; then :
10943: $as_echo_n "(cached) " >&6
10944: else
10945: lt_cv_apple_cc_single_mod=no
10946: if test -z "${LT_MULTI_MODULE}"; then
10947: # By default we will add the -single_module flag. You can override
10948: # by either setting the environment variable LT_MULTI_MODULE
10949: # non-empty at configure time, or by adding -multi_module to the
10950: # link flags.
10951: rm -rf libconftest.dylib*
10952: echo "int foo(void){return 1;}" > conftest.c
10953: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10954: -dynamiclib -Wl,-single_module conftest.c" >&5
10955: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10956: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10957: _lt_result=$?
10958: if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10959: lt_cv_apple_cc_single_mod=yes
10960: else
10961: cat conftest.err >&5
10962: fi
10963: rm -rf libconftest.dylib*
10964: rm -f conftest.*
10965: fi
10966: fi
10967: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10968: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10969: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10970: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10971: if ${lt_cv_ld_exported_symbols_list+:} false; then :
10972: $as_echo_n "(cached) " >&6
10973: else
10974: lt_cv_ld_exported_symbols_list=no
10975: save_LDFLAGS=$LDFLAGS
10976: echo "_main" > conftest.sym
10977: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10978: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10979: /* end confdefs.h. */
10980:
10981: int
10982: main ()
10983: {
10984:
10985: ;
10986: return 0;
10987: }
10988: _ACEOF
10989: if ac_fn_c_try_link "$LINENO"; then :
10990: lt_cv_ld_exported_symbols_list=yes
10991: else
10992: lt_cv_ld_exported_symbols_list=no
10993: fi
10994: rm -f core conftest.err conftest.$ac_objext \
10995: conftest$ac_exeext conftest.$ac_ext
10996: LDFLAGS="$save_LDFLAGS"
10997:
10998: fi
10999: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11000: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11001: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11002: $as_echo_n "checking for -force_load linker flag... " >&6; }
11003: if ${lt_cv_ld_force_load+:} false; then :
11004: $as_echo_n "(cached) " >&6
11005: else
11006: lt_cv_ld_force_load=no
11007: cat > conftest.c << _LT_EOF
11008: int forced_loaded() { return 2;}
11009: _LT_EOF
11010: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11011: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11012: echo "$AR cru libconftest.a conftest.o" >&5
11013: $AR cru libconftest.a conftest.o 2>&5
11014: echo "$RANLIB libconftest.a" >&5
11015: $RANLIB libconftest.a 2>&5
11016: cat > conftest.c << _LT_EOF
11017: int main() { return 0;}
11018: _LT_EOF
11019: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11020: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11021: _lt_result=$?
11022: if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
11023: lt_cv_ld_force_load=yes
11024: else
11025: cat conftest.err >&5
11026: fi
11027: rm -f conftest.err libconftest.a conftest conftest.c
11028: rm -rf conftest.dSYM
11029:
11030: fi
11031: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11032: $as_echo "$lt_cv_ld_force_load" >&6; }
11033: case $host_os in
11034: rhapsody* | darwin1.[012])
11035: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11036: darwin1.*)
11037: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11038: darwin*) # darwin 5.x on
11039: # if running on 10.5 or later, the deployment target defaults
11040: # to the OS version, if on x86, and 10.4, the deployment
11041: # target defaults to 10.4. Don't you love it?
11042: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11043: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11044: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11045: 10.[012]*)
11046: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11047: 10.*)
11048: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11049: esac
11050: ;;
11051: esac
11052: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11053: _lt_dar_single_mod='$single_module'
11054: fi
11055: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11056: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11057: else
11058: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11059: fi
11060: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
11061: _lt_dsymutil='~$DSYMUTIL $lib || :'
11062: else
11063: _lt_dsymutil=
11064: fi
11065: ;;
11066: esac
11067:
11068: for ac_header in dlfcn.h
11069: do :
11070: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11071: "
11072: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11073: cat >>confdefs.h <<_ACEOF
11074: #define HAVE_DLFCN_H 1
11075: _ACEOF
11076:
11077: fi
11078:
11079: done
11080:
11081:
11082:
11083:
11084:
11085: # Set options
11086:
11087:
11088:
11089: enable_dlopen=no
11090:
11091:
11092: enable_win32_dll=no
11093:
11094:
11095:
11096: # Check whether --enable-static was given.
11097: if test "${enable_static+set}" = set; then :
11098: enableval=$enable_static; p=${PACKAGE-default}
11099: case $enableval in
11100: yes) enable_static=yes ;;
11101: no) enable_static=no ;;
11102: *)
11103: enable_static=no
11104: # Look at the argument we got. We use all the common list separators.
11105: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11106: for pkg in $enableval; do
11107: IFS="$lt_save_ifs"
11108: if test "X$pkg" = "X$p"; then
11109: enable_static=yes
11110: fi
11111: done
11112: IFS="$lt_save_ifs"
11113: ;;
11114: esac
11115: else
11116: enable_static=yes
11117: fi
11118:
11119:
11120:
11121:
11122:
11123:
11124:
11125:
11126:
11127:
11128: # Check whether --with-pic was given.
11129: if test "${with_pic+set}" = set; then :
11130: withval=$with_pic; pic_mode="$withval"
11131: else
11132: pic_mode=default
11133: fi
11134:
11135:
11136: test -z "$pic_mode" && pic_mode=default
11137:
11138:
11139:
11140:
11141:
11142:
11143:
11144: # Check whether --enable-fast-install was given.
11145: if test "${enable_fast_install+set}" = set; then :
11146: enableval=$enable_fast_install; p=${PACKAGE-default}
11147: case $enableval in
11148: yes) enable_fast_install=yes ;;
11149: no) enable_fast_install=no ;;
11150: *)
11151: enable_fast_install=no
11152: # Look at the argument we got. We use all the common list separators.
11153: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11154: for pkg in $enableval; do
11155: IFS="$lt_save_ifs"
11156: if test "X$pkg" = "X$p"; then
11157: enable_fast_install=yes
11158: fi
11159: done
11160: IFS="$lt_save_ifs"
11161: ;;
11162: esac
11163: else
11164: enable_fast_install=yes
11165: fi
11166:
11167:
11168:
11169:
11170:
11171:
11172:
11173:
11174:
11175:
11176:
11177: # This can be used to rebuild libtool when needed
11178: LIBTOOL_DEPS="$ltmain"
11179:
11180: # Always use our own libtool.
11181: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11182:
11183:
11184:
11185:
11186:
11187:
11188:
11189:
11190:
11191:
11192:
11193:
11194:
11195:
11196:
11197:
11198:
11199:
11200:
11201:
11202:
11203:
11204:
11205:
11206:
11207:
11208: test -z "$LN_S" && LN_S="ln -s"
11209:
11210:
11211:
11212:
11213:
11214:
11215:
11216:
11217:
11218:
11219:
11220:
11221:
11222:
11223: if test -n "${ZSH_VERSION+set}" ; then
11224: setopt NO_GLOB_SUBST
11225: fi
11226:
11227: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11228: $as_echo_n "checking for objdir... " >&6; }
11229: if ${lt_cv_objdir+:} false; then :
11230: $as_echo_n "(cached) " >&6
11231: else
11232: rm -f .libs 2>/dev/null
11233: mkdir .libs 2>/dev/null
11234: if test -d .libs; then
11235: lt_cv_objdir=.libs
11236: else
11237: # MS-DOS does not allow filenames that begin with a dot.
11238: lt_cv_objdir=_libs
11239: fi
11240: rmdir .libs 2>/dev/null
11241: fi
11242: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11243: $as_echo "$lt_cv_objdir" >&6; }
11244: objdir=$lt_cv_objdir
11245:
11246:
11247:
11248:
11249:
11250: cat >>confdefs.h <<_ACEOF
11251: #define LT_OBJDIR "$lt_cv_objdir/"
11252: _ACEOF
11253:
11254:
11255:
11256:
11257: case $host_os in
11258: aix3*)
11259: # AIX sometimes has problems with the GCC collect2 program. For some
11260: # reason, if we set the COLLECT_NAMES environment variable, the problems
11261: # vanish in a puff of smoke.
11262: if test "X${COLLECT_NAMES+set}" != Xset; then
11263: COLLECT_NAMES=
11264: export COLLECT_NAMES
11265: fi
11266: ;;
11267: esac
11268:
11269: # Global variables:
11270: ofile=libtool
11271: can_build_shared=yes
11272:
11273: # All known linkers require a `.a' archive for static linking (except MSVC,
11274: # which needs '.lib').
11275: libext=a
11276:
11277: with_gnu_ld="$lt_cv_prog_gnu_ld"
11278:
11279: old_CC="$CC"
11280: old_CFLAGS="$CFLAGS"
11281:
11282: # Set sane defaults for various variables
11283: test -z "$CC" && CC=cc
11284: test -z "$LTCC" && LTCC=$CC
11285: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11286: test -z "$LD" && LD=ld
11287: test -z "$ac_objext" && ac_objext=o
11288:
11289: for cc_temp in $compiler""; do
11290: case $cc_temp in
11291: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11292: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11293: \-*) ;;
11294: *) break;;
11295: esac
11296: done
11297: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11298:
11299:
11300: # Only perform the check for file, if the check method requires it
11301: test -z "$MAGIC_CMD" && MAGIC_CMD=file
11302: case $deplibs_check_method in
11303: file_magic*)
11304: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11305: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11306: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11307: if ${lt_cv_path_MAGIC_CMD+:} false; then :
11308: $as_echo_n "(cached) " >&6
11309: else
11310: case $MAGIC_CMD in
11311: [\\/*] | ?:[\\/]*)
11312: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11313: ;;
11314: *)
11315: lt_save_MAGIC_CMD="$MAGIC_CMD"
11316: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11317: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11318: for ac_dir in $ac_dummy; do
11319: IFS="$lt_save_ifs"
11320: test -z "$ac_dir" && ac_dir=.
11321: if test -f $ac_dir/${ac_tool_prefix}file; then
11322: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11323: if test -n "$file_magic_test_file"; then
11324: case $deplibs_check_method in
11325: "file_magic "*)
11326: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11327: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11328: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11329: $EGREP "$file_magic_regex" > /dev/null; then
11330: :
11331: else
11332: cat <<_LT_EOF 1>&2
11333:
11334: *** Warning: the command libtool uses to detect shared libraries,
11335: *** $file_magic_cmd, produces output that libtool cannot recognize.
11336: *** The result is that libtool may fail to recognize shared libraries
11337: *** as such. This will affect the creation of libtool libraries that
11338: *** depend on shared libraries, but programs linked with such libtool
11339: *** libraries will work regardless of this problem. Nevertheless, you
11340: *** may want to report the problem to your system manager and/or to
11341: *** bug-libtool@gnu.org
11342:
11343: _LT_EOF
11344: fi ;;
11345: esac
11346: fi
11347: break
11348: fi
11349: done
11350: IFS="$lt_save_ifs"
11351: MAGIC_CMD="$lt_save_MAGIC_CMD"
11352: ;;
11353: esac
11354: fi
11355:
11356: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11357: if test -n "$MAGIC_CMD"; then
11358: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11359: $as_echo "$MAGIC_CMD" >&6; }
11360: else
11361: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11362: $as_echo "no" >&6; }
11363: fi
11364:
11365:
11366:
11367:
11368:
11369: if test -z "$lt_cv_path_MAGIC_CMD"; then
11370: if test -n "$ac_tool_prefix"; then
11371: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11372: $as_echo_n "checking for file... " >&6; }
11373: if ${lt_cv_path_MAGIC_CMD+:} false; then :
11374: $as_echo_n "(cached) " >&6
11375: else
11376: case $MAGIC_CMD in
11377: [\\/*] | ?:[\\/]*)
11378: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11379: ;;
11380: *)
11381: lt_save_MAGIC_CMD="$MAGIC_CMD"
11382: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11383: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11384: for ac_dir in $ac_dummy; do
11385: IFS="$lt_save_ifs"
11386: test -z "$ac_dir" && ac_dir=.
11387: if test -f $ac_dir/file; then
11388: lt_cv_path_MAGIC_CMD="$ac_dir/file"
11389: if test -n "$file_magic_test_file"; then
11390: case $deplibs_check_method in
11391: "file_magic "*)
11392: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11393: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11394: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11395: $EGREP "$file_magic_regex" > /dev/null; then
11396: :
11397: else
11398: cat <<_LT_EOF 1>&2
11399:
11400: *** Warning: the command libtool uses to detect shared libraries,
11401: *** $file_magic_cmd, produces output that libtool cannot recognize.
11402: *** The result is that libtool may fail to recognize shared libraries
11403: *** as such. This will affect the creation of libtool libraries that
11404: *** depend on shared libraries, but programs linked with such libtool
11405: *** libraries will work regardless of this problem. Nevertheless, you
11406: *** may want to report the problem to your system manager and/or to
11407: *** bug-libtool@gnu.org
11408:
11409: _LT_EOF
11410: fi ;;
11411: esac
11412: fi
11413: break
11414: fi
11415: done
11416: IFS="$lt_save_ifs"
11417: MAGIC_CMD="$lt_save_MAGIC_CMD"
11418: ;;
11419: esac
11420: fi
11421:
11422: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11423: if test -n "$MAGIC_CMD"; then
11424: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11425: $as_echo "$MAGIC_CMD" >&6; }
11426: else
11427: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11428: $as_echo "no" >&6; }
11429: fi
11430:
11431:
11432: else
11433: MAGIC_CMD=:
11434: fi
11435: fi
11436:
11437: fi
11438: ;;
11439: esac
11440:
11441: # Use C for the default configuration in the libtool script
11442:
11443: lt_save_CC="$CC"
11444: ac_ext=c
11445: ac_cpp='$CPP $CPPFLAGS'
11446: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11447: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11448: ac_compiler_gnu=$ac_cv_c_compiler_gnu
11449:
11450:
11451: # Source file extension for C test sources.
11452: ac_ext=c
11453:
11454: # Object file extension for compiled C test sources.
11455: objext=o
11456: objext=$objext
11457:
11458: # Code to be used in simple compile tests
11459: lt_simple_compile_test_code="int some_variable = 0;"
11460:
11461: # Code to be used in simple link tests
11462: lt_simple_link_test_code='int main(){return(0);}'
11463:
11464:
11465:
11466:
11467:
11468:
11469:
11470: # If no C compiler was specified, use CC.
11471: LTCC=${LTCC-"$CC"}
11472:
11473: # If no C compiler flags were specified, use CFLAGS.
11474: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11475:
11476: # Allow CC to be a program name with arguments.
11477: compiler=$CC
11478:
11479: # Save the default compiler, since it gets overwritten when the other
11480: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11481: compiler_DEFAULT=$CC
11482:
11483: # save warnings/boilerplate of simple test code
11484: ac_outfile=conftest.$ac_objext
11485: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11486: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11487: _lt_compiler_boilerplate=`cat conftest.err`
11488: $RM conftest*
11489:
11490: ac_outfile=conftest.$ac_objext
11491: echo "$lt_simple_link_test_code" >conftest.$ac_ext
11492: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11493: _lt_linker_boilerplate=`cat conftest.err`
11494: $RM -r conftest*
11495:
11496:
11497: ## CAVEAT EMPTOR:
11498: ## There is no encapsulation within the following macros, do not change
11499: ## the running order or otherwise move them around unless you know exactly
11500: ## what you are doing...
11501: if test -n "$compiler"; then
11502:
11503: lt_prog_compiler_no_builtin_flag=
11504:
11505: if test "$GCC" = yes; then
11506: case $cc_basename in
11507: nvcc*)
11508: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11509: *)
11510: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11511: esac
11512:
11513: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11514: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11515: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11516: $as_echo_n "(cached) " >&6
11517: else
11518: lt_cv_prog_compiler_rtti_exceptions=no
11519: ac_outfile=conftest.$ac_objext
11520: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11521: lt_compiler_flag="-fno-rtti -fno-exceptions"
11522: # Insert the option either (1) after the last *FLAGS variable, or
11523: # (2) before a word containing "conftest.", or (3) at the end.
11524: # Note that $ac_compile itself does not contain backslashes and begins
11525: # with a dollar sign (not a hyphen), so the echo should work correctly.
11526: # The option is referenced via a variable to avoid confusing sed.
11527: lt_compile=`echo "$ac_compile" | $SED \
11528: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11529: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11530: -e 's:$: $lt_compiler_flag:'`
11531: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11532: (eval "$lt_compile" 2>conftest.err)
11533: ac_status=$?
11534: cat conftest.err >&5
11535: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536: if (exit $ac_status) && test -s "$ac_outfile"; then
11537: # The compiler can only warn and ignore the option if not recognized
11538: # So say no if there are warnings other than the usual output.
11539: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11540: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11541: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11542: lt_cv_prog_compiler_rtti_exceptions=yes
11543: fi
11544: fi
11545: $RM conftest*
11546:
11547: fi
11548: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11549: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11550:
11551: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11552: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11553: else
11554: :
11555: fi
11556:
11557: fi
11558:
11559:
11560:
11561:
11562:
11563:
11564: lt_prog_compiler_wl=
11565: lt_prog_compiler_pic=
11566: lt_prog_compiler_static=
11567:
11568:
11569: if test "$GCC" = yes; then
11570: lt_prog_compiler_wl='-Wl,'
11571: lt_prog_compiler_static='-static'
11572:
11573: case $host_os in
11574: aix*)
11575: # All AIX code is PIC.
11576: if test "$host_cpu" = ia64; then
11577: # AIX 5 now supports IA64 processor
11578: lt_prog_compiler_static='-Bstatic'
11579: fi
11580: ;;
11581:
11582: amigaos*)
11583: case $host_cpu in
11584: powerpc)
11585: # see comment about AmigaOS4 .so support
11586: lt_prog_compiler_pic='-fPIC'
11587: ;;
11588: m68k)
11589: # FIXME: we need at least 68020 code to build shared libraries, but
11590: # adding the `-m68020' flag to GCC prevents building anything better,
11591: # like `-m68040'.
11592: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11593: ;;
11594: esac
11595: ;;
11596:
11597: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11598: # PIC is the default for these OSes.
11599: ;;
11600:
11601: mingw* | cygwin* | pw32* | os2* | cegcc*)
11602: # This hack is so that the source file can tell whether it is being
11603: # built for inclusion in a dll (and should export symbols for example).
11604: # Although the cygwin gcc ignores -fPIC, still need this for old-style
11605: # (--disable-auto-import) libraries
11606: lt_prog_compiler_pic='-DDLL_EXPORT'
11607: ;;
11608:
11609: darwin* | rhapsody*)
11610: # PIC is the default on this platform
11611: # Common symbols not allowed in MH_DYLIB files
11612: lt_prog_compiler_pic='-fno-common'
11613: ;;
11614:
11615: haiku*)
11616: # PIC is the default for Haiku.
11617: # The "-static" flag exists, but is broken.
11618: lt_prog_compiler_static=
11619: ;;
11620:
11621: hpux*)
11622: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11623: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11624: # sets the default TLS model and affects inlining.
11625: case $host_cpu in
11626: hppa*64*)
11627: # +Z the default
11628: ;;
11629: *)
11630: lt_prog_compiler_pic='-fPIC'
11631: ;;
11632: esac
11633: ;;
11634:
11635: interix[3-9]*)
11636: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11637: # Instead, we relocate shared libraries at runtime.
11638: ;;
11639:
11640: msdosdjgpp*)
11641: # Just because we use GCC doesn't mean we suddenly get shared libraries
11642: # on systems that don't support them.
11643: lt_prog_compiler_can_build_shared=no
11644: enable_shared=no
11645: ;;
11646:
11647: *nto* | *qnx*)
11648: # QNX uses GNU C++, but need to define -shared option too, otherwise
11649: # it will coredump.
11650: lt_prog_compiler_pic='-fPIC -shared'
11651: ;;
11652:
11653: sysv4*MP*)
11654: if test -d /usr/nec; then
11655: lt_prog_compiler_pic=-Kconform_pic
11656: fi
11657: ;;
11658:
11659: *)
11660: lt_prog_compiler_pic='-fPIC'
11661: ;;
11662: esac
11663:
11664: case $cc_basename in
11665: nvcc*) # Cuda Compiler Driver 2.2
11666: lt_prog_compiler_wl='-Xlinker '
11667: lt_prog_compiler_pic='-Xcompiler -fPIC'
11668: ;;
11669: esac
11670: else
11671: # PORTME Check for flag to pass linker flags through the system compiler.
11672: case $host_os in
11673: aix*)
11674: lt_prog_compiler_wl='-Wl,'
11675: if test "$host_cpu" = ia64; then
11676: # AIX 5 now supports IA64 processor
11677: lt_prog_compiler_static='-Bstatic'
11678: else
11679: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11680: fi
11681: ;;
11682:
11683: mingw* | cygwin* | pw32* | os2* | cegcc*)
11684: # This hack is so that the source file can tell whether it is being
11685: # built for inclusion in a dll (and should export symbols for example).
11686: lt_prog_compiler_pic='-DDLL_EXPORT'
11687: ;;
11688:
11689: hpux9* | hpux10* | hpux11*)
11690: lt_prog_compiler_wl='-Wl,'
11691: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11692: # not for PA HP-UX.
11693: case $host_cpu in
11694: hppa*64*|ia64*)
11695: # +Z the default
11696: ;;
11697: *)
11698: lt_prog_compiler_pic='+Z'
11699: ;;
11700: esac
11701: # Is there a better lt_prog_compiler_static that works with the bundled CC?
11702: lt_prog_compiler_static='${wl}-a ${wl}archive'
11703: ;;
11704:
11705: irix5* | irix6* | nonstopux*)
11706: lt_prog_compiler_wl='-Wl,'
11707: # PIC (with -KPIC) is the default.
11708: lt_prog_compiler_static='-non_shared'
11709: ;;
11710:
11711: linux* | k*bsd*-gnu | kopensolaris*-gnu)
11712: case $cc_basename in
11713: # old Intel for x86_64 which still supported -KPIC.
11714: ecc*)
11715: lt_prog_compiler_wl='-Wl,'
11716: lt_prog_compiler_pic='-KPIC'
11717: lt_prog_compiler_static='-static'
11718: ;;
11719: # icc used to be incompatible with GCC.
11720: # ICC 10 doesn't accept -KPIC any more.
11721: icc* | ifort*)
11722: lt_prog_compiler_wl='-Wl,'
11723: lt_prog_compiler_pic='-fPIC'
11724: lt_prog_compiler_static='-static'
11725: ;;
11726: # Lahey Fortran 8.1.
11727: lf95*)
11728: lt_prog_compiler_wl='-Wl,'
11729: lt_prog_compiler_pic='--shared'
11730: lt_prog_compiler_static='--static'
11731: ;;
11732: nagfor*)
11733: # NAG Fortran compiler
11734: lt_prog_compiler_wl='-Wl,-Wl,,'
11735: lt_prog_compiler_pic='-PIC'
11736: lt_prog_compiler_static='-Bstatic'
11737: ;;
11738: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11739: # Portland Group compilers (*not* the Pentium gcc compiler,
11740: # which looks to be a dead project)
11741: lt_prog_compiler_wl='-Wl,'
11742: lt_prog_compiler_pic='-fpic'
11743: lt_prog_compiler_static='-Bstatic'
11744: ;;
11745: ccc*)
11746: lt_prog_compiler_wl='-Wl,'
11747: # All Alpha code is PIC.
11748: lt_prog_compiler_static='-non_shared'
11749: ;;
11750: xl* | bgxl* | bgf* | mpixl*)
11751: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11752: lt_prog_compiler_wl='-Wl,'
11753: lt_prog_compiler_pic='-qpic'
11754: lt_prog_compiler_static='-qstaticlink'
11755: ;;
11756: *)
11757: case `$CC -V 2>&1 | sed 5q` in
11758: *Sun\ F* | *Sun*Fortran*)
11759: # Sun Fortran 8.3 passes all unrecognized flags to the linker
11760: lt_prog_compiler_pic='-KPIC'
11761: lt_prog_compiler_static='-Bstatic'
11762: lt_prog_compiler_wl=''
11763: ;;
11764: *Sun\ C*)
11765: # Sun C 5.9
11766: lt_prog_compiler_pic='-KPIC'
11767: lt_prog_compiler_static='-Bstatic'
11768: lt_prog_compiler_wl='-Wl,'
11769: ;;
11770: esac
11771: ;;
11772: esac
11773: ;;
11774:
11775: newsos6)
11776: lt_prog_compiler_pic='-KPIC'
11777: lt_prog_compiler_static='-Bstatic'
11778: ;;
11779:
11780: *nto* | *qnx*)
11781: # QNX uses GNU C++, but need to define -shared option too, otherwise
11782: # it will coredump.
11783: lt_prog_compiler_pic='-fPIC -shared'
11784: ;;
11785:
11786: osf3* | osf4* | osf5*)
11787: lt_prog_compiler_wl='-Wl,'
11788: # All OSF/1 code is PIC.
11789: lt_prog_compiler_static='-non_shared'
11790: ;;
11791:
11792: rdos*)
11793: lt_prog_compiler_static='-non_shared'
11794: ;;
11795:
11796: solaris*)
11797: lt_prog_compiler_pic='-KPIC'
11798: lt_prog_compiler_static='-Bstatic'
11799: case $cc_basename in
11800: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11801: lt_prog_compiler_wl='-Qoption ld ';;
11802: *)
11803: lt_prog_compiler_wl='-Wl,';;
11804: esac
11805: ;;
11806:
11807: sunos4*)
11808: lt_prog_compiler_wl='-Qoption ld '
11809: lt_prog_compiler_pic='-PIC'
11810: lt_prog_compiler_static='-Bstatic'
11811: ;;
11812:
11813: sysv4 | sysv4.2uw2* | sysv4.3*)
11814: lt_prog_compiler_wl='-Wl,'
11815: lt_prog_compiler_pic='-KPIC'
11816: lt_prog_compiler_static='-Bstatic'
11817: ;;
11818:
11819: sysv4*MP*)
11820: if test -d /usr/nec ;then
11821: lt_prog_compiler_pic='-Kconform_pic'
11822: lt_prog_compiler_static='-Bstatic'
11823: fi
11824: ;;
11825:
11826: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11827: lt_prog_compiler_wl='-Wl,'
11828: lt_prog_compiler_pic='-KPIC'
11829: lt_prog_compiler_static='-Bstatic'
11830: ;;
11831:
11832: unicos*)
11833: lt_prog_compiler_wl='-Wl,'
11834: lt_prog_compiler_can_build_shared=no
11835: ;;
11836:
11837: uts4*)
11838: lt_prog_compiler_pic='-pic'
11839: lt_prog_compiler_static='-Bstatic'
11840: ;;
11841:
11842: *)
11843: lt_prog_compiler_can_build_shared=no
11844: ;;
11845: esac
11846: fi
11847:
11848: case $host_os in
11849: # For platforms which do not support PIC, -DPIC is meaningless:
11850: *djgpp*)
11851: lt_prog_compiler_pic=
11852: ;;
11853: *)
11854: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11855: ;;
11856: esac
11857:
11858: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11859: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11860: if ${lt_cv_prog_compiler_pic+:} false; then :
11861: $as_echo_n "(cached) " >&6
11862: else
11863: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11864: fi
11865: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11866: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11867: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11868:
11869: #
11870: # Check to make sure the PIC flag actually works.
11871: #
11872: if test -n "$lt_prog_compiler_pic"; then
11873: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11874: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11875: if ${lt_cv_prog_compiler_pic_works+:} false; then :
11876: $as_echo_n "(cached) " >&6
11877: else
11878: lt_cv_prog_compiler_pic_works=no
11879: ac_outfile=conftest.$ac_objext
11880: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11881: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11882: # Insert the option either (1) after the last *FLAGS variable, or
11883: # (2) before a word containing "conftest.", or (3) at the end.
11884: # Note that $ac_compile itself does not contain backslashes and begins
11885: # with a dollar sign (not a hyphen), so the echo should work correctly.
11886: # The option is referenced via a variable to avoid confusing sed.
11887: lt_compile=`echo "$ac_compile" | $SED \
11888: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11889: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11890: -e 's:$: $lt_compiler_flag:'`
11891: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11892: (eval "$lt_compile" 2>conftest.err)
11893: ac_status=$?
11894: cat conftest.err >&5
11895: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896: if (exit $ac_status) && test -s "$ac_outfile"; then
11897: # The compiler can only warn and ignore the option if not recognized
11898: # So say no if there are warnings other than the usual output.
11899: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11900: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11901: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11902: lt_cv_prog_compiler_pic_works=yes
11903: fi
11904: fi
11905: $RM conftest*
11906:
11907: fi
11908: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11909: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11910:
11911: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11912: case $lt_prog_compiler_pic in
11913: "" | " "*) ;;
11914: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11915: esac
11916: else
11917: lt_prog_compiler_pic=
11918: lt_prog_compiler_can_build_shared=no
11919: fi
11920:
11921: fi
11922:
11923:
11924:
11925:
11926:
11927:
11928:
11929:
11930:
11931:
11932:
11933: #
11934: # Check to make sure the static flag actually works.
11935: #
11936: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11937: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11938: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11939: if ${lt_cv_prog_compiler_static_works+:} false; then :
11940: $as_echo_n "(cached) " >&6
11941: else
11942: lt_cv_prog_compiler_static_works=no
11943: save_LDFLAGS="$LDFLAGS"
11944: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11945: echo "$lt_simple_link_test_code" > conftest.$ac_ext
11946: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11947: # The linker can only warn and ignore the option if not recognized
11948: # So say no if there are warnings
11949: if test -s conftest.err; then
11950: # Append any errors to the config.log.
11951: cat conftest.err 1>&5
11952: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11953: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11954: if diff conftest.exp conftest.er2 >/dev/null; then
11955: lt_cv_prog_compiler_static_works=yes
11956: fi
11957: else
11958: lt_cv_prog_compiler_static_works=yes
11959: fi
11960: fi
11961: $RM -r conftest*
11962: LDFLAGS="$save_LDFLAGS"
11963:
11964: fi
11965: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11966: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11967:
11968: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11969: :
11970: else
11971: lt_prog_compiler_static=
11972: fi
11973:
11974:
11975:
11976:
11977:
11978:
11979:
11980: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11981: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11982: if ${lt_cv_prog_compiler_c_o+:} false; then :
11983: $as_echo_n "(cached) " >&6
11984: else
11985: lt_cv_prog_compiler_c_o=no
11986: $RM -r conftest 2>/dev/null
11987: mkdir conftest
11988: cd conftest
11989: mkdir out
11990: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11991:
11992: lt_compiler_flag="-o out/conftest2.$ac_objext"
11993: # Insert the option either (1) after the last *FLAGS variable, or
11994: # (2) before a word containing "conftest.", or (3) at the end.
11995: # Note that $ac_compile itself does not contain backslashes and begins
11996: # with a dollar sign (not a hyphen), so the echo should work correctly.
11997: lt_compile=`echo "$ac_compile" | $SED \
11998: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11999: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12000: -e 's:$: $lt_compiler_flag:'`
12001: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12002: (eval "$lt_compile" 2>out/conftest.err)
12003: ac_status=$?
12004: cat out/conftest.err >&5
12005: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006: if (exit $ac_status) && test -s out/conftest2.$ac_objext
12007: then
12008: # The compiler can only warn and ignore the option if not recognized
12009: # So say no if there are warnings
12010: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12011: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12012: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12013: lt_cv_prog_compiler_c_o=yes
12014: fi
12015: fi
12016: chmod u+w . 2>&5
12017: $RM conftest*
12018: # SGI C++ compiler will create directory out/ii_files/ for
12019: # template instantiation
12020: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12021: $RM out/* && rmdir out
12022: cd ..
12023: $RM -r conftest
12024: $RM conftest*
12025:
12026: fi
12027: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12028: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12029:
12030:
12031:
12032:
12033:
12034:
12035: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12036: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12037: if ${lt_cv_prog_compiler_c_o+:} false; then :
12038: $as_echo_n "(cached) " >&6
12039: else
12040: lt_cv_prog_compiler_c_o=no
12041: $RM -r conftest 2>/dev/null
12042: mkdir conftest
12043: cd conftest
12044: mkdir out
12045: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12046:
12047: lt_compiler_flag="-o out/conftest2.$ac_objext"
12048: # Insert the option either (1) after the last *FLAGS variable, or
12049: # (2) before a word containing "conftest.", or (3) at the end.
12050: # Note that $ac_compile itself does not contain backslashes and begins
12051: # with a dollar sign (not a hyphen), so the echo should work correctly.
12052: lt_compile=`echo "$ac_compile" | $SED \
12053: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12054: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12055: -e 's:$: $lt_compiler_flag:'`
12056: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12057: (eval "$lt_compile" 2>out/conftest.err)
12058: ac_status=$?
12059: cat out/conftest.err >&5
12060: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061: if (exit $ac_status) && test -s out/conftest2.$ac_objext
12062: then
12063: # The compiler can only warn and ignore the option if not recognized
12064: # So say no if there are warnings
12065: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12066: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12067: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12068: lt_cv_prog_compiler_c_o=yes
12069: fi
12070: fi
12071: chmod u+w . 2>&5
12072: $RM conftest*
12073: # SGI C++ compiler will create directory out/ii_files/ for
12074: # template instantiation
12075: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12076: $RM out/* && rmdir out
12077: cd ..
12078: $RM -r conftest
12079: $RM conftest*
12080:
12081: fi
12082: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12083: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12084:
12085:
12086:
12087:
12088: hard_links="nottested"
12089: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12090: # do not overwrite the value of need_locks provided by the user
12091: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12092: $as_echo_n "checking if we can lock with hard links... " >&6; }
12093: hard_links=yes
12094: $RM conftest*
12095: ln conftest.a conftest.b 2>/dev/null && hard_links=no
12096: touch conftest.a
12097: ln conftest.a conftest.b 2>&5 || hard_links=no
12098: ln conftest.a conftest.b 2>/dev/null && hard_links=no
12099: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12100: $as_echo "$hard_links" >&6; }
12101: if test "$hard_links" = no; then
12102: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12103: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12104: need_locks=warn
12105: fi
12106: else
12107: need_locks=no
12108: fi
12109:
12110:
12111:
12112:
12113:
12114:
12115: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12116: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12117:
12118: runpath_var=
12119: allow_undefined_flag=
12120: always_export_symbols=no
12121: archive_cmds=
12122: archive_expsym_cmds=
12123: compiler_needs_object=no
12124: enable_shared_with_static_runtimes=no
12125: export_dynamic_flag_spec=
12126: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12127: hardcode_automatic=no
12128: hardcode_direct=no
12129: hardcode_direct_absolute=no
12130: hardcode_libdir_flag_spec=
12131: hardcode_libdir_flag_spec_ld=
12132: hardcode_libdir_separator=
12133: hardcode_minus_L=no
12134: hardcode_shlibpath_var=unsupported
12135: inherit_rpath=no
12136: link_all_deplibs=unknown
12137: module_cmds=
12138: module_expsym_cmds=
12139: old_archive_from_new_cmds=
12140: old_archive_from_expsyms_cmds=
12141: thread_safe_flag_spec=
12142: whole_archive_flag_spec=
12143: # include_expsyms should be a list of space-separated symbols to be *always*
12144: # included in the symbol list
12145: include_expsyms=
12146: # exclude_expsyms can be an extended regexp of symbols to exclude
12147: # it will be wrapped by ` (' and `)$', so one must not match beginning or
12148: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12149: # as well as any symbol that contains `d'.
12150: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12151: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12152: # platforms (ab)use it in PIC code, but their linkers get confused if
12153: # the symbol is explicitly referenced. Since portable code cannot
12154: # rely on this symbol name, it's probably fine to never include it in
12155: # preloaded symbol tables.
12156: # Exclude shared library initialization/finalization symbols.
12157: extract_expsyms_cmds=
12158:
12159: case $host_os in
12160: cygwin* | mingw* | pw32* | cegcc*)
12161: # FIXME: the MSVC++ port hasn't been tested in a loooong time
12162: # When not using gcc, we currently assume that we are using
12163: # Microsoft Visual C++.
12164: if test "$GCC" != yes; then
12165: with_gnu_ld=no
12166: fi
12167: ;;
12168: interix*)
12169: # we just hope/assume this is gcc and not c89 (= MSVC++)
12170: with_gnu_ld=yes
12171: ;;
12172: openbsd*)
12173: with_gnu_ld=no
12174: ;;
12175: esac
12176:
12177: ld_shlibs=yes
12178:
12179: # On some targets, GNU ld is compatible enough with the native linker
12180: # that we're better off using the native interface for both.
12181: lt_use_gnu_ld_interface=no
12182: if test "$with_gnu_ld" = yes; then
12183: case $host_os in
12184: aix*)
12185: # The AIX port of GNU ld has always aspired to compatibility
12186: # with the native linker. However, as the warning in the GNU ld
12187: # block says, versions before 2.19.5* couldn't really create working
12188: # shared libraries, regardless of the interface used.
12189: case `$LD -v 2>&1` in
12190: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12191: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12192: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12193: *)
12194: lt_use_gnu_ld_interface=yes
12195: ;;
12196: esac
12197: ;;
12198: *)
12199: lt_use_gnu_ld_interface=yes
12200: ;;
12201: esac
12202: fi
12203:
12204: if test "$lt_use_gnu_ld_interface" = yes; then
12205: # If archive_cmds runs LD, not CC, wlarc should be empty
12206: wlarc='${wl}'
12207:
12208: # Set some defaults for GNU ld with shared library support. These
12209: # are reset later if shared libraries are not supported. Putting them
12210: # here allows them to be overridden if necessary.
12211: runpath_var=LD_RUN_PATH
12212: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12213: export_dynamic_flag_spec='${wl}--export-dynamic'
12214: # ancient GNU ld didn't support --whole-archive et. al.
12215: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12216: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12217: else
12218: whole_archive_flag_spec=
12219: fi
12220: supports_anon_versioning=no
12221: case `$LD -v 2>&1` in
12222: *GNU\ gold*) supports_anon_versioning=yes ;;
12223: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12224: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12225: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12226: *\ 2.11.*) ;; # other 2.11 versions
12227: *) supports_anon_versioning=yes ;;
12228: esac
12229:
12230: # See if GNU ld supports shared libraries.
12231: case $host_os in
12232: aix[3-9]*)
12233: # On AIX/PPC, the GNU linker is very broken
12234: if test "$host_cpu" != ia64; then
12235: ld_shlibs=no
12236: cat <<_LT_EOF 1>&2
12237:
12238: *** Warning: the GNU linker, at least up to release 2.19, is reported
12239: *** to be unable to reliably create shared libraries on AIX.
12240: *** Therefore, libtool is disabling shared libraries support. If you
12241: *** really care for shared libraries, you may want to install binutils
12242: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12243: *** You will then need to restart the configuration process.
12244:
12245: _LT_EOF
12246: fi
12247: ;;
12248:
12249: amigaos*)
12250: case $host_cpu in
12251: powerpc)
12252: # see comment about AmigaOS4 .so support
12253: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12254: archive_expsym_cmds=''
12255: ;;
12256: m68k)
12257: 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)'
12258: hardcode_libdir_flag_spec='-L$libdir'
12259: hardcode_minus_L=yes
12260: ;;
12261: esac
12262: ;;
12263:
12264: beos*)
12265: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12266: allow_undefined_flag=unsupported
12267: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12268: # support --undefined. This deserves some investigation. FIXME
12269: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12270: else
12271: ld_shlibs=no
12272: fi
12273: ;;
12274:
12275: cygwin* | mingw* | pw32* | cegcc*)
12276: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12277: # as there is no search path for DLLs.
12278: hardcode_libdir_flag_spec='-L$libdir'
12279: export_dynamic_flag_spec='${wl}--export-all-symbols'
12280: allow_undefined_flag=unsupported
12281: always_export_symbols=no
12282: enable_shared_with_static_runtimes=yes
12283: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
12284: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12285:
12286: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12287: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12288: # If the export-symbols file already is a .def file (1st line
12289: # is EXPORTS), use it as is; otherwise, prepend...
12290: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12291: cp $export_symbols $output_objdir/$soname.def;
12292: else
12293: echo EXPORTS > $output_objdir/$soname.def;
12294: cat $export_symbols >> $output_objdir/$soname.def;
12295: fi~
12296: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12297: else
12298: ld_shlibs=no
12299: fi
12300: ;;
12301:
12302: haiku*)
12303: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12304: link_all_deplibs=yes
12305: ;;
12306:
12307: interix[3-9]*)
12308: hardcode_direct=no
12309: hardcode_shlibpath_var=no
12310: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12311: export_dynamic_flag_spec='${wl}-E'
12312: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12313: # Instead, shared libraries are loaded at an image base (0x10000000 by
12314: # default) and relocated if they conflict, which is a slow very memory
12315: # consuming and fragmenting process. To avoid this, we pick a random,
12316: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12317: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12318: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12319: archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12320: ;;
12321:
12322: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12323: tmp_diet=no
12324: if test "$host_os" = linux-dietlibc; then
12325: case $cc_basename in
12326: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12327: esac
12328: fi
12329: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12330: && test "$tmp_diet" = no
12331: then
12332: tmp_addflag=' $pic_flag'
12333: tmp_sharedflag='-shared'
12334: case $cc_basename,$host_cpu in
12335: pgcc*) # Portland Group C compiler
12336: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12337: tmp_addflag=' $pic_flag'
12338: ;;
12339: pgf77* | pgf90* | pgf95* | pgfortran*)
12340: # Portland Group f77 and f90 compilers
12341: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12342: tmp_addflag=' $pic_flag -Mnomain' ;;
12343: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12344: tmp_addflag=' -i_dynamic' ;;
12345: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12346: tmp_addflag=' -i_dynamic -nofor_main' ;;
12347: ifc* | ifort*) # Intel Fortran compiler
12348: tmp_addflag=' -nofor_main' ;;
12349: lf95*) # Lahey Fortran 8.1
12350: whole_archive_flag_spec=
12351: tmp_sharedflag='--shared' ;;
12352: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12353: tmp_sharedflag='-qmkshrobj'
12354: tmp_addflag= ;;
12355: nvcc*) # Cuda Compiler Driver 2.2
12356: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12357: compiler_needs_object=yes
12358: ;;
12359: esac
12360: case `$CC -V 2>&1 | sed 5q` in
12361: *Sun\ C*) # Sun C 5.9
12362: whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12363: compiler_needs_object=yes
12364: tmp_sharedflag='-G' ;;
12365: *Sun\ F*) # Sun Fortran 8.3
12366: tmp_sharedflag='-G' ;;
12367: esac
12368: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12369:
12370: if test "x$supports_anon_versioning" = xyes; then
12371: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12372: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12373: echo "local: *; };" >> $output_objdir/$libname.ver~
12374: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12375: fi
12376:
12377: case $cc_basename in
12378: xlf* | bgf* | bgxlf* | mpixlf*)
12379: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12380: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12381: hardcode_libdir_flag_spec=
12382: hardcode_libdir_flag_spec_ld='-rpath $libdir'
12383: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12384: if test "x$supports_anon_versioning" = xyes; then
12385: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12386: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12387: echo "local: *; };" >> $output_objdir/$libname.ver~
12388: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12389: fi
12390: ;;
12391: esac
12392: else
12393: ld_shlibs=no
12394: fi
12395: ;;
12396:
12397: netbsd*)
12398: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12399: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12400: wlarc=
12401: else
12402: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12403: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12404: fi
12405: ;;
12406:
12407: solaris*)
12408: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12409: ld_shlibs=no
12410: cat <<_LT_EOF 1>&2
12411:
12412: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12413: *** create shared libraries on Solaris systems. Therefore, libtool
12414: *** is disabling shared libraries support. We urge you to upgrade GNU
12415: *** binutils to release 2.9.1 or newer. Another option is to modify
12416: *** your PATH or compiler configuration so that the native linker is
12417: *** used, and then restart.
12418:
12419: _LT_EOF
12420: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12421: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12422: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12423: else
12424: ld_shlibs=no
12425: fi
12426: ;;
12427:
12428: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12429: case `$LD -v 2>&1` in
12430: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12431: ld_shlibs=no
12432: cat <<_LT_EOF 1>&2
12433:
12434: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12435: *** reliably create shared libraries on SCO systems. Therefore, libtool
12436: *** is disabling shared libraries support. We urge you to upgrade GNU
12437: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12438: *** your PATH or compiler configuration so that the native linker is
12439: *** used, and then restart.
12440:
12441: _LT_EOF
12442: ;;
12443: *)
12444: # For security reasons, it is highly recommended that you always
12445: # use absolute paths for naming shared libraries, and exclude the
12446: # DT_RUNPATH tag from executables and libraries. But doing so
12447: # requires that you compile everything twice, which is a pain.
12448: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12449: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12450: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12451: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12452: else
12453: ld_shlibs=no
12454: fi
12455: ;;
12456: esac
12457: ;;
12458:
12459: sunos4*)
12460: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12461: wlarc=
12462: hardcode_direct=yes
12463: hardcode_shlibpath_var=no
12464: ;;
12465:
12466: *)
12467: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12468: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12469: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12470: else
12471: ld_shlibs=no
12472: fi
12473: ;;
12474: esac
12475:
12476: if test "$ld_shlibs" = no; then
12477: runpath_var=
12478: hardcode_libdir_flag_spec=
12479: export_dynamic_flag_spec=
12480: whole_archive_flag_spec=
12481: fi
12482: else
12483: # PORTME fill in a description of your system's linker (not GNU ld)
12484: case $host_os in
12485: aix3*)
12486: allow_undefined_flag=unsupported
12487: always_export_symbols=yes
12488: 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'
12489: # Note: this linker hardcodes the directories in LIBPATH if there
12490: # are no directories specified by -L.
12491: hardcode_minus_L=yes
12492: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12493: # Neither direct hardcoding nor static linking is supported with a
12494: # broken collect2.
12495: hardcode_direct=unsupported
12496: fi
12497: ;;
12498:
12499: aix[4-9]*)
12500: if test "$host_cpu" = ia64; then
12501: # On IA64, the linker does run time linking by default, so we don't
12502: # have to do anything special.
12503: aix_use_runtimelinking=no
12504: exp_sym_flag='-Bexport'
12505: no_entry_flag=""
12506: else
12507: # If we're using GNU nm, then we don't want the "-C" option.
12508: # -C means demangle to AIX nm, but means don't demangle with GNU nm
12509: # Also, AIX nm treats weak defined symbols like other global
12510: # defined symbols, whereas GNU nm marks them as "W".
12511: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12512: export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12513: else
12514: 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'
12515: fi
12516: aix_use_runtimelinking=no
12517:
12518: # Test if we are trying to use run time linking or normal
12519: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12520: # need to do runtime linking.
12521: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12522: for ld_flag in $LDFLAGS; do
12523: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12524: aix_use_runtimelinking=yes
12525: break
12526: fi
12527: done
12528: ;;
12529: esac
12530:
12531: exp_sym_flag='-bexport'
12532: no_entry_flag='-bnoentry'
12533: fi
12534:
12535: # When large executables or shared objects are built, AIX ld can
12536: # have problems creating the table of contents. If linking a library
12537: # or program results in "error TOC overflow" add -mminimal-toc to
12538: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12539: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12540:
12541: archive_cmds=''
12542: hardcode_direct=yes
12543: hardcode_direct_absolute=yes
12544: hardcode_libdir_separator=':'
12545: link_all_deplibs=yes
12546: file_list_spec='${wl}-f,'
12547:
12548: if test "$GCC" = yes; then
12549: case $host_os in aix4.[012]|aix4.[012].*)
12550: # We only want to do this on AIX 4.2 and lower, the check
12551: # below for broken collect2 doesn't work under 4.3+
12552: collect2name=`${CC} -print-prog-name=collect2`
12553: if test -f "$collect2name" &&
12554: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12555: then
12556: # We have reworked collect2
12557: :
12558: else
12559: # We have old collect2
12560: hardcode_direct=unsupported
12561: # It fails to find uninstalled libraries when the uninstalled
12562: # path is not listed in the libpath. Setting hardcode_minus_L
12563: # to unsupported forces relinking
12564: hardcode_minus_L=yes
12565: hardcode_libdir_flag_spec='-L$libdir'
12566: hardcode_libdir_separator=
12567: fi
12568: ;;
12569: esac
12570: shared_flag='-shared'
12571: if test "$aix_use_runtimelinking" = yes; then
12572: shared_flag="$shared_flag "'${wl}-G'
12573: fi
12574: else
12575: # not using gcc
12576: if test "$host_cpu" = ia64; then
12577: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12578: # chokes on -Wl,-G. The following line is correct:
12579: shared_flag='-G'
12580: else
12581: if test "$aix_use_runtimelinking" = yes; then
12582: shared_flag='${wl}-G'
12583: else
12584: shared_flag='${wl}-bM:SRE'
12585: fi
12586: fi
12587: fi
12588:
12589: export_dynamic_flag_spec='${wl}-bexpall'
12590: # It seems that -bexpall does not export symbols beginning with
12591: # underscore (_), so it is better to generate a list of symbols to export.
12592: always_export_symbols=yes
12593: if test "$aix_use_runtimelinking" = yes; then
12594: # Warning - without using the other runtime loading flags (-brtl),
12595: # -berok will link without error, but may produce a broken library.
12596: allow_undefined_flag='-berok'
12597: # Determine the default libpath from the value encoded in an
12598: # empty executable.
12599: if test "${lt_cv_aix_libpath+set}" = set; then
12600: aix_libpath=$lt_cv_aix_libpath
12601: else
12602: if ${lt_cv_aix_libpath_+:} false; then :
12603: $as_echo_n "(cached) " >&6
12604: else
12605: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12606: /* end confdefs.h. */
12607:
12608: int
12609: main ()
12610: {
12611:
12612: ;
12613: return 0;
12614: }
12615: _ACEOF
12616: if ac_fn_c_try_link "$LINENO"; then :
12617:
12618: lt_aix_libpath_sed='
12619: /Import File Strings/,/^$/ {
12620: /^0/ {
12621: s/^0 *\([^ ]*\) *$/\1/
12622: p
12623: }
12624: }'
12625: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12626: # Check for a 64-bit object if we didn't find anything.
12627: if test -z "$lt_cv_aix_libpath_"; then
12628: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12629: fi
12630: fi
12631: rm -f core conftest.err conftest.$ac_objext \
12632: conftest$ac_exeext conftest.$ac_ext
12633: if test -z "$lt_cv_aix_libpath_"; then
12634: lt_cv_aix_libpath_="/usr/lib:/lib"
12635: fi
12636:
12637: fi
12638:
12639: aix_libpath=$lt_cv_aix_libpath_
12640: fi
12641:
12642: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12643: archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12644: else
12645: if test "$host_cpu" = ia64; then
12646: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12647: allow_undefined_flag="-z nodefs"
12648: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12649: else
12650: # Determine the default libpath from the value encoded in an
12651: # empty executable.
12652: if test "${lt_cv_aix_libpath+set}" = set; then
12653: aix_libpath=$lt_cv_aix_libpath
12654: else
12655: if ${lt_cv_aix_libpath_+:} false; then :
12656: $as_echo_n "(cached) " >&6
12657: else
12658: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12659: /* end confdefs.h. */
12660:
12661: int
12662: main ()
12663: {
12664:
12665: ;
12666: return 0;
12667: }
12668: _ACEOF
12669: if ac_fn_c_try_link "$LINENO"; then :
12670:
12671: lt_aix_libpath_sed='
12672: /Import File Strings/,/^$/ {
12673: /^0/ {
12674: s/^0 *\([^ ]*\) *$/\1/
12675: p
12676: }
12677: }'
12678: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12679: # Check for a 64-bit object if we didn't find anything.
12680: if test -z "$lt_cv_aix_libpath_"; then
12681: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12682: fi
12683: fi
12684: rm -f core conftest.err conftest.$ac_objext \
12685: conftest$ac_exeext conftest.$ac_ext
12686: if test -z "$lt_cv_aix_libpath_"; then
12687: lt_cv_aix_libpath_="/usr/lib:/lib"
12688: fi
12689:
12690: fi
12691:
12692: aix_libpath=$lt_cv_aix_libpath_
12693: fi
12694:
12695: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12696: # Warning - without using the other run time loading flags,
12697: # -berok will link without error, but may produce a broken library.
12698: no_undefined_flag=' ${wl}-bernotok'
12699: allow_undefined_flag=' ${wl}-berok'
12700: if test "$with_gnu_ld" = yes; then
12701: # We only use this code for GNU lds that support --whole-archive.
12702: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12703: else
12704: # Exported symbols can be pulled into shared objects from archives
12705: whole_archive_flag_spec='$convenience'
12706: fi
12707: archive_cmds_need_lc=yes
12708: # This is similar to how AIX traditionally builds its shared libraries.
12709: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12710: fi
12711: fi
12712: ;;
12713:
12714: amigaos*)
12715: case $host_cpu in
12716: powerpc)
12717: # see comment about AmigaOS4 .so support
12718: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12719: archive_expsym_cmds=''
12720: ;;
12721: m68k)
12722: 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)'
12723: hardcode_libdir_flag_spec='-L$libdir'
12724: hardcode_minus_L=yes
12725: ;;
12726: esac
12727: ;;
12728:
12729: bsdi[45]*)
12730: export_dynamic_flag_spec=-rdynamic
12731: ;;
12732:
12733: cygwin* | mingw* | pw32* | cegcc*)
12734: # When not using gcc, we currently assume that we are using
12735: # Microsoft Visual C++.
12736: # hardcode_libdir_flag_spec is actually meaningless, as there is
12737: # no search path for DLLs.
12738: case $cc_basename in
12739: cl*)
12740: # Native MSVC
12741: hardcode_libdir_flag_spec=' '
12742: allow_undefined_flag=unsupported
12743: always_export_symbols=yes
12744: file_list_spec='@'
12745: # Tell ltmain to make .lib files, not .a files.
12746: libext=lib
12747: # Tell ltmain to make .dll files, not .so files.
12748: shrext_cmds=".dll"
12749: # FIXME: Setting linknames here is a bad hack.
12750: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12751: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12752: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12753: else
12754: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12755: fi~
12756: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12757: linknames='
12758: # The linker will not automatically build a static lib if we build a DLL.
12759: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12760: enable_shared_with_static_runtimes=yes
12761: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12762: # Don't use ranlib
12763: old_postinstall_cmds='chmod 644 $oldlib'
12764: postlink_cmds='lt_outputfile="@OUTPUT@"~
12765: lt_tool_outputfile="@TOOL_OUTPUT@"~
12766: case $lt_outputfile in
12767: *.exe|*.EXE) ;;
12768: *)
12769: lt_outputfile="$lt_outputfile.exe"
12770: lt_tool_outputfile="$lt_tool_outputfile.exe"
12771: ;;
12772: esac~
12773: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12774: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12775: $RM "$lt_outputfile.manifest";
12776: fi'
12777: ;;
12778: *)
12779: # Assume MSVC wrapper
12780: hardcode_libdir_flag_spec=' '
12781: allow_undefined_flag=unsupported
12782: # Tell ltmain to make .lib files, not .a files.
12783: libext=lib
12784: # Tell ltmain to make .dll files, not .so files.
12785: shrext_cmds=".dll"
12786: # FIXME: Setting linknames here is a bad hack.
12787: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12788: # The linker will automatically build a .lib file if we build a DLL.
12789: old_archive_from_new_cmds='true'
12790: # FIXME: Should let the user specify the lib program.
12791: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12792: enable_shared_with_static_runtimes=yes
12793: ;;
12794: esac
12795: ;;
12796:
12797: darwin* | rhapsody*)
12798:
12799:
12800: archive_cmds_need_lc=no
12801: hardcode_direct=no
12802: hardcode_automatic=yes
12803: hardcode_shlibpath_var=unsupported
12804: if test "$lt_cv_ld_force_load" = "yes"; then
12805: whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12806: else
12807: whole_archive_flag_spec=''
12808: fi
12809: link_all_deplibs=yes
12810: allow_undefined_flag="$_lt_dar_allow_undefined"
12811: case $cc_basename in
12812: ifort*) _lt_dar_can_shared=yes ;;
12813: *) _lt_dar_can_shared=$GCC ;;
12814: esac
12815: if test "$_lt_dar_can_shared" = "yes"; then
12816: output_verbose_link_cmd=func_echo_all
12817: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12818: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12819: archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12820: module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12821:
12822: else
12823: ld_shlibs=no
12824: fi
12825:
12826: ;;
12827:
12828: dgux*)
12829: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12830: hardcode_libdir_flag_spec='-L$libdir'
12831: hardcode_shlibpath_var=no
12832: ;;
12833:
12834: freebsd1*)
12835: ld_shlibs=no
12836: ;;
12837:
12838: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12839: # support. Future versions do this automatically, but an explicit c++rt0.o
12840: # does not break anything, and helps significantly (at the cost of a little
12841: # extra space).
12842: freebsd2.2*)
12843: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12844: hardcode_libdir_flag_spec='-R$libdir'
12845: hardcode_direct=yes
12846: hardcode_shlibpath_var=no
12847: ;;
12848:
12849: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12850: freebsd2*)
12851: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12852: hardcode_direct=yes
12853: hardcode_minus_L=yes
12854: hardcode_shlibpath_var=no
12855: ;;
12856:
12857: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12858: freebsd* | dragonfly*)
12859: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12860: hardcode_libdir_flag_spec='-R$libdir'
12861: hardcode_direct=yes
12862: hardcode_shlibpath_var=no
12863: ;;
12864:
12865: hpux9*)
12866: if test "$GCC" = yes; then
12867: archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12868: else
12869: 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'
12870: fi
12871: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12872: hardcode_libdir_separator=:
12873: hardcode_direct=yes
12874:
12875: # hardcode_minus_L: Not really in the search PATH,
12876: # but as the default location of the library.
12877: hardcode_minus_L=yes
12878: export_dynamic_flag_spec='${wl}-E'
12879: ;;
12880:
12881: hpux10*)
12882: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12883: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12884: else
12885: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12886: fi
12887: if test "$with_gnu_ld" = no; then
12888: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12889: hardcode_libdir_flag_spec_ld='+b $libdir'
12890: hardcode_libdir_separator=:
12891: hardcode_direct=yes
12892: hardcode_direct_absolute=yes
12893: export_dynamic_flag_spec='${wl}-E'
12894: # hardcode_minus_L: Not really in the search PATH,
12895: # but as the default location of the library.
12896: hardcode_minus_L=yes
12897: fi
12898: ;;
12899:
12900: hpux11*)
12901: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12902: case $host_cpu in
12903: hppa*64*)
12904: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12905: ;;
12906: ia64*)
12907: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12908: ;;
12909: *)
12910: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12911: ;;
12912: esac
12913: else
12914: case $host_cpu in
12915: hppa*64*)
12916: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12917: ;;
12918: ia64*)
12919: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12920: ;;
12921: *)
12922:
12923: # Older versions of the 11.00 compiler do not understand -b yet
12924: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12925: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12926: $as_echo_n "checking if $CC understands -b... " >&6; }
12927: if ${lt_cv_prog_compiler__b+:} false; then :
12928: $as_echo_n "(cached) " >&6
12929: else
12930: lt_cv_prog_compiler__b=no
12931: save_LDFLAGS="$LDFLAGS"
12932: LDFLAGS="$LDFLAGS -b"
12933: echo "$lt_simple_link_test_code" > conftest.$ac_ext
12934: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12935: # The linker can only warn and ignore the option if not recognized
12936: # So say no if there are warnings
12937: if test -s conftest.err; then
12938: # Append any errors to the config.log.
12939: cat conftest.err 1>&5
12940: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12941: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12942: if diff conftest.exp conftest.er2 >/dev/null; then
12943: lt_cv_prog_compiler__b=yes
12944: fi
12945: else
12946: lt_cv_prog_compiler__b=yes
12947: fi
12948: fi
12949: $RM -r conftest*
12950: LDFLAGS="$save_LDFLAGS"
12951:
12952: fi
12953: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12954: $as_echo "$lt_cv_prog_compiler__b" >&6; }
12955:
12956: if test x"$lt_cv_prog_compiler__b" = xyes; then
12957: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12958: else
12959: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12960: fi
12961:
12962: ;;
12963: esac
12964: fi
12965: if test "$with_gnu_ld" = no; then
12966: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12967: hardcode_libdir_separator=:
12968:
12969: case $host_cpu in
12970: hppa*64*|ia64*)
12971: hardcode_direct=no
12972: hardcode_shlibpath_var=no
12973: ;;
12974: *)
12975: hardcode_direct=yes
12976: hardcode_direct_absolute=yes
12977: export_dynamic_flag_spec='${wl}-E'
12978:
12979: # hardcode_minus_L: Not really in the search PATH,
12980: # but as the default location of the library.
12981: hardcode_minus_L=yes
12982: ;;
12983: esac
12984: fi
12985: ;;
12986:
12987: irix5* | irix6* | nonstopux*)
12988: if test "$GCC" = yes; then
12989: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12990: # Try to use the -exported_symbol ld option, if it does not
12991: # work, assume that -exports_file does not work either and
12992: # implicitly export all symbols.
12993: # This should be the same for all languages, so no per-tag cache variable.
12994: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12995: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12996: if ${lt_cv_irix_exported_symbol+:} false; then :
12997: $as_echo_n "(cached) " >&6
12998: else
12999: save_LDFLAGS="$LDFLAGS"
13000: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13001: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13002: /* end confdefs.h. */
13003: int foo (void) { return 0; }
13004: _ACEOF
13005: if ac_fn_c_try_link "$LINENO"; then :
13006: lt_cv_irix_exported_symbol=yes
13007: else
13008: lt_cv_irix_exported_symbol=no
13009: fi
13010: rm -f core conftest.err conftest.$ac_objext \
13011: conftest$ac_exeext conftest.$ac_ext
13012: LDFLAGS="$save_LDFLAGS"
13013: fi
13014: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13015: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13016: if test "$lt_cv_irix_exported_symbol" = yes; then
13017: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
13018: fi
13019: else
13020: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13021: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
13022: fi
13023: archive_cmds_need_lc='no'
13024: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13025: hardcode_libdir_separator=:
13026: inherit_rpath=yes
13027: link_all_deplibs=yes
13028: ;;
13029:
13030: netbsd*)
13031: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13032: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13033: else
13034: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13035: fi
13036: hardcode_libdir_flag_spec='-R$libdir'
13037: hardcode_direct=yes
13038: hardcode_shlibpath_var=no
13039: ;;
13040:
13041: newsos6)
13042: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13043: hardcode_direct=yes
13044: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13045: hardcode_libdir_separator=:
13046: hardcode_shlibpath_var=no
13047: ;;
13048:
13049: *nto* | *qnx*)
13050: ;;
13051:
13052: openbsd*)
13053: if test -f /usr/libexec/ld.so; then
13054: hardcode_direct=yes
13055: hardcode_shlibpath_var=no
13056: hardcode_direct_absolute=yes
13057: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13058: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13059: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13060: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13061: export_dynamic_flag_spec='${wl}-E'
13062: else
13063: case $host_os in
13064: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13065: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13066: hardcode_libdir_flag_spec='-R$libdir'
13067: ;;
13068: *)
13069: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13070: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13071: ;;
13072: esac
13073: fi
13074: else
13075: ld_shlibs=no
13076: fi
13077: ;;
13078:
13079: os2*)
13080: hardcode_libdir_flag_spec='-L$libdir'
13081: hardcode_minus_L=yes
13082: allow_undefined_flag=unsupported
13083: 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'
13084: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13085: ;;
13086:
13087: osf3*)
13088: if test "$GCC" = yes; then
13089: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13090: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13091: else
13092: allow_undefined_flag=' -expect_unresolved \*'
13093: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13094: fi
13095: archive_cmds_need_lc='no'
13096: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13097: hardcode_libdir_separator=:
13098: ;;
13099:
13100: osf4* | osf5*) # as osf3* with the addition of -msym flag
13101: if test "$GCC" = yes; then
13102: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13103: archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13104: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13105: else
13106: allow_undefined_flag=' -expect_unresolved \*'
13107: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13108: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13109: $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
13110:
13111: # Both c and cxx compiler support -rpath directly
13112: hardcode_libdir_flag_spec='-rpath $libdir'
13113: fi
13114: archive_cmds_need_lc='no'
13115: hardcode_libdir_separator=:
13116: ;;
13117:
13118: solaris*)
13119: no_undefined_flag=' -z defs'
13120: if test "$GCC" = yes; then
13121: wlarc='${wl}'
13122: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13123: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13124: $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13125: else
13126: case `$CC -V 2>&1` in
13127: *"Compilers 5.0"*)
13128: wlarc=''
13129: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13130: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13131: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13132: ;;
13133: *)
13134: wlarc='${wl}'
13135: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13136: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13137: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13138: ;;
13139: esac
13140: fi
13141: hardcode_libdir_flag_spec='-R$libdir'
13142: hardcode_shlibpath_var=no
13143: case $host_os in
13144: solaris2.[0-5] | solaris2.[0-5].*) ;;
13145: *)
13146: # The compiler driver will combine and reorder linker options,
13147: # but understands `-z linker_flag'. GCC discards it without `$wl',
13148: # but is careful enough not to reorder.
13149: # Supported since Solaris 2.6 (maybe 2.5.1?)
13150: if test "$GCC" = yes; then
13151: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13152: else
13153: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13154: fi
13155: ;;
13156: esac
13157: link_all_deplibs=yes
13158: ;;
13159:
13160: sunos4*)
13161: if test "x$host_vendor" = xsequent; then
13162: # Use $CC to link under sequent, because it throws in some extra .o
13163: # files that make .init and .fini sections work.
13164: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13165: else
13166: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13167: fi
13168: hardcode_libdir_flag_spec='-L$libdir'
13169: hardcode_direct=yes
13170: hardcode_minus_L=yes
13171: hardcode_shlibpath_var=no
13172: ;;
13173:
13174: sysv4)
13175: case $host_vendor in
13176: sni)
13177: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13178: hardcode_direct=yes # is this really true???
13179: ;;
13180: siemens)
13181: ## LD is ld it makes a PLAMLIB
13182: ## CC just makes a GrossModule.
13183: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13184: reload_cmds='$CC -r -o $output$reload_objs'
13185: hardcode_direct=no
13186: ;;
13187: motorola)
13188: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13189: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13190: ;;
13191: esac
13192: runpath_var='LD_RUN_PATH'
13193: hardcode_shlibpath_var=no
13194: ;;
13195:
13196: sysv4.3*)
13197: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13198: hardcode_shlibpath_var=no
13199: export_dynamic_flag_spec='-Bexport'
13200: ;;
13201:
13202: sysv4*MP*)
13203: if test -d /usr/nec; then
13204: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13205: hardcode_shlibpath_var=no
13206: runpath_var=LD_RUN_PATH
13207: hardcode_runpath_var=yes
13208: ld_shlibs=yes
13209: fi
13210: ;;
13211:
13212: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13213: no_undefined_flag='${wl}-z,text'
13214: archive_cmds_need_lc=no
13215: hardcode_shlibpath_var=no
13216: runpath_var='LD_RUN_PATH'
13217:
13218: if test "$GCC" = yes; then
13219: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13220: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13221: else
13222: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13223: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13224: fi
13225: ;;
13226:
13227: sysv5* | sco3.2v5* | sco5v6*)
13228: # Note: We can NOT use -z defs as we might desire, because we do not
13229: # link with -lc, and that would cause any symbols used from libc to
13230: # always be unresolved, which means just about no library would
13231: # ever link correctly. If we're not using GNU ld we use -z text
13232: # though, which does catch some bad symbols but isn't as heavy-handed
13233: # as -z defs.
13234: no_undefined_flag='${wl}-z,text'
13235: allow_undefined_flag='${wl}-z,nodefs'
13236: archive_cmds_need_lc=no
13237: hardcode_shlibpath_var=no
13238: hardcode_libdir_flag_spec='${wl}-R,$libdir'
13239: hardcode_libdir_separator=':'
13240: link_all_deplibs=yes
13241: export_dynamic_flag_spec='${wl}-Bexport'
13242: runpath_var='LD_RUN_PATH'
13243:
13244: if test "$GCC" = yes; then
13245: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13246: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13247: else
13248: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13249: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13250: fi
13251: ;;
13252:
13253: uts4*)
13254: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13255: hardcode_libdir_flag_spec='-L$libdir'
13256: hardcode_shlibpath_var=no
13257: ;;
13258:
13259: *)
13260: ld_shlibs=no
13261: ;;
13262: esac
13263:
13264: if test x$host_vendor = xsni; then
13265: case $host in
13266: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13267: export_dynamic_flag_spec='${wl}-Blargedynsym'
13268: ;;
13269: esac
13270: fi
13271: fi
13272:
13273: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13274: $as_echo "$ld_shlibs" >&6; }
13275: test "$ld_shlibs" = no && can_build_shared=no
13276:
13277: with_gnu_ld=$with_gnu_ld
13278:
13279:
13280:
13281:
13282:
13283:
13284:
13285:
13286:
13287:
13288:
13289:
13290:
13291:
13292:
13293: #
13294: # Do we need to explicitly link libc?
13295: #
13296: case "x$archive_cmds_need_lc" in
13297: x|xyes)
13298: # Assume -lc should be added
13299: archive_cmds_need_lc=yes
13300:
13301: if test "$enable_shared" = yes && test "$GCC" = yes; then
13302: case $archive_cmds in
13303: *'~'*)
13304: # FIXME: we may have to deal with multi-command sequences.
13305: ;;
13306: '$CC '*)
13307: # Test whether the compiler implicitly links with -lc since on some
13308: # systems, -lgcc has to come before -lc. If gcc already passes -lc
13309: # to ld, don't add -lc before -lgcc.
13310: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13311: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13312: if ${lt_cv_archive_cmds_need_lc+:} false; then :
13313: $as_echo_n "(cached) " >&6
13314: else
13315: $RM conftest*
13316: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13317:
13318: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13319: (eval $ac_compile) 2>&5
13320: ac_status=$?
13321: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13322: test $ac_status = 0; } 2>conftest.err; then
13323: soname=conftest
13324: lib=conftest
13325: libobjs=conftest.$ac_objext
13326: deplibs=
13327: wl=$lt_prog_compiler_wl
13328: pic_flag=$lt_prog_compiler_pic
13329: compiler_flags=-v
13330: linker_flags=-v
13331: verstring=
13332: output_objdir=.
13333: libname=conftest
13334: lt_save_allow_undefined_flag=$allow_undefined_flag
13335: allow_undefined_flag=
13336: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13337: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13338: ac_status=$?
13339: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13340: test $ac_status = 0; }
13341: then
13342: lt_cv_archive_cmds_need_lc=no
13343: else
13344: lt_cv_archive_cmds_need_lc=yes
13345: fi
13346: allow_undefined_flag=$lt_save_allow_undefined_flag
13347: else
13348: cat conftest.err 1>&5
13349: fi
13350: $RM conftest*
13351:
13352: fi
13353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13354: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13355: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13356: ;;
13357: esac
13358: fi
13359: ;;
13360: esac
13361:
13362:
13363:
13364:
13365:
13366:
13367:
13368:
13369:
13370:
13371:
13372:
13373:
13374:
13375:
13376:
13377:
13378:
13379:
13380:
13381:
13382:
13383:
13384:
13385:
13386:
13387:
13388:
13389:
13390:
13391:
13392:
13393:
13394:
13395:
13396:
13397:
13398:
13399:
13400:
13401:
13402:
13403:
13404:
13405:
13406:
13407:
13408:
13409:
13410:
13411:
13412:
13413:
13414:
13415:
13416:
13417:
13418:
13419:
13420:
13421:
13422:
13423:
13424:
13425:
13426:
13427:
13428:
13429:
13430:
13431:
13432:
13433:
13434:
13435:
13436:
13437:
13438:
13439:
13440:
13441:
13442:
13443:
13444:
13445:
13446:
13447:
13448:
13449:
13450:
13451:
13452:
13453:
13454:
13455:
13456:
13457:
13458:
13459:
13460:
13461:
13462:
13463:
13464:
13465:
13466:
13467:
13468:
13469:
13470:
13471:
13472:
13473:
13474:
13475:
13476:
13477:
13478:
13479:
13480:
13481:
13482:
13483:
13484:
13485:
13486:
13487:
13488:
13489:
13490:
13491:
13492:
13493:
13494:
13495:
13496:
13497:
13498:
13499:
13500:
13501:
13502:
13503:
13504:
13505:
13506:
13507:
13508:
13509:
13510:
13511:
13512:
13513:
13514:
13515:
13516:
13517:
13518: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13519: $as_echo_n "checking dynamic linker characteristics... " >&6; }
13520:
13521: if test "$GCC" = yes; then
13522: case $host_os in
13523: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13524: *) lt_awk_arg="/^libraries:/" ;;
13525: esac
13526: case $host_os in
13527: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
13528: *) lt_sed_strip_eq="s,=/,/,g" ;;
13529: esac
13530: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13531: case $lt_search_path_spec in
13532: *\;*)
13533: # if the path contains ";" then we assume it to be the separator
13534: # otherwise default to the standard path separator (i.e. ":") - it is
13535: # assumed that no part of a normal pathname contains ";" but that should
13536: # okay in the real world where ";" in dirpaths is itself problematic.
13537: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13538: ;;
13539: *)
13540: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13541: ;;
13542: esac
13543: # Ok, now we have the path, separated by spaces, we can step through it
13544: # and add multilib dir if necessary.
13545: lt_tmp_lt_search_path_spec=
13546: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13547: for lt_sys_path in $lt_search_path_spec; do
13548: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13549: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13550: else
13551: test -d "$lt_sys_path" && \
13552: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13553: fi
13554: done
13555: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13556: BEGIN {RS=" "; FS="/|\n";} {
13557: lt_foo="";
13558: lt_count=0;
13559: for (lt_i = NF; lt_i > 0; lt_i--) {
13560: if ($lt_i != "" && $lt_i != ".") {
13561: if ($lt_i == "..") {
13562: lt_count++;
13563: } else {
13564: if (lt_count == 0) {
13565: lt_foo="/" $lt_i lt_foo;
13566: } else {
13567: lt_count--;
13568: }
13569: }
13570: }
13571: }
13572: if (lt_foo != "") { lt_freq[lt_foo]++; }
13573: if (lt_freq[lt_foo] == 1) { print lt_foo; }
13574: }'`
13575: # AWK program above erroneously prepends '/' to C:/dos/paths
13576: # for these hosts.
13577: case $host_os in
13578: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13579: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
13580: esac
13581: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13582: else
13583: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13584: fi
13585: library_names_spec=
13586: libname_spec='lib$name'
13587: soname_spec=
13588: shrext_cmds=".so"
13589: postinstall_cmds=
13590: postuninstall_cmds=
13591: finish_cmds=
13592: finish_eval=
13593: shlibpath_var=
13594: shlibpath_overrides_runpath=unknown
13595: version_type=none
13596: dynamic_linker="$host_os ld.so"
13597: sys_lib_dlsearch_path_spec="/lib /usr/lib"
13598: need_lib_prefix=unknown
13599: hardcode_into_libs=no
13600:
13601: # when you set need_version to no, make sure it does not cause -set_version
13602: # flags to be left without arguments
13603: need_version=unknown
13604:
13605: case $host_os in
13606: aix3*)
13607: version_type=linux
13608: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13609: shlibpath_var=LIBPATH
13610:
13611: # AIX 3 has no versioning support, so we append a major version to the name.
13612: soname_spec='${libname}${release}${shared_ext}$major'
13613: ;;
13614:
13615: aix[4-9]*)
13616: version_type=linux
13617: need_lib_prefix=no
13618: need_version=no
13619: hardcode_into_libs=yes
13620: if test "$host_cpu" = ia64; then
13621: # AIX 5 supports IA64
13622: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13623: shlibpath_var=LD_LIBRARY_PATH
13624: else
13625: # With GCC up to 2.95.x, collect2 would create an import file
13626: # for dependence libraries. The import file would start with
13627: # the line `#! .'. This would cause the generated library to
13628: # depend on `.', always an invalid library. This was fixed in
13629: # development snapshots of GCC prior to 3.0.
13630: case $host_os in
13631: aix4 | aix4.[01] | aix4.[01].*)
13632: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13633: echo ' yes '
13634: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13635: :
13636: else
13637: can_build_shared=no
13638: fi
13639: ;;
13640: esac
13641: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13642: # soname into executable. Probably we can add versioning support to
13643: # collect2, so additional links can be useful in future.
13644: if test "$aix_use_runtimelinking" = yes; then
13645: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13646: # instead of lib<name>.a to let people know that these are not
13647: # typical AIX shared libraries.
13648: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13649: else
13650: # We preserve .a as extension for shared libraries through AIX4.2
13651: # and later when we are not doing run time linking.
13652: library_names_spec='${libname}${release}.a $libname.a'
13653: soname_spec='${libname}${release}${shared_ext}$major'
13654: fi
13655: shlibpath_var=LIBPATH
13656: fi
13657: ;;
13658:
13659: amigaos*)
13660: case $host_cpu in
13661: powerpc)
13662: # Since July 2007 AmigaOS4 officially supports .so libraries.
13663: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13664: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13665: ;;
13666: m68k)
13667: library_names_spec='$libname.ixlibrary $libname.a'
13668: # Create ${libname}_ixlibrary.a entries in /sys/libs.
13669: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
13670: ;;
13671: esac
13672: ;;
13673:
13674: beos*)
13675: library_names_spec='${libname}${shared_ext}'
13676: dynamic_linker="$host_os ld.so"
13677: shlibpath_var=LIBRARY_PATH
13678: ;;
13679:
13680: bsdi[45]*)
13681: version_type=linux
13682: need_version=no
13683: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13684: soname_spec='${libname}${release}${shared_ext}$major'
13685: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13686: shlibpath_var=LD_LIBRARY_PATH
13687: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13688: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13689: # the default ld.so.conf also contains /usr/contrib/lib and
13690: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13691: # libtool to hard-code these into programs
13692: ;;
13693:
13694: cygwin* | mingw* | pw32* | cegcc*)
13695: version_type=windows
13696: shrext_cmds=".dll"
13697: need_version=no
13698: need_lib_prefix=no
13699:
13700: case $GCC,$cc_basename in
13701: yes,*)
13702: # gcc
13703: library_names_spec='$libname.dll.a'
13704: # DLL is installed to $(libdir)/../bin by postinstall_cmds
13705: postinstall_cmds='base_file=`basename \${file}`~
13706: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13707: dldir=$destdir/`dirname \$dlpath`~
13708: test -d \$dldir || mkdir -p \$dldir~
13709: $install_prog $dir/$dlname \$dldir/$dlname~
13710: chmod a+x \$dldir/$dlname~
13711: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13712: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13713: fi'
13714: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13715: dlpath=$dir/\$dldll~
13716: $RM \$dlpath'
13717: shlibpath_overrides_runpath=yes
13718:
13719: case $host_os in
13720: cygwin*)
13721: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13722: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13723:
13724: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13725: ;;
13726: mingw* | cegcc*)
13727: # MinGW DLLs use traditional 'lib' prefix
13728: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13729: ;;
13730: pw32*)
13731: # pw32 DLLs use 'pw' prefix rather than 'lib'
13732: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13733: ;;
13734: esac
13735: dynamic_linker='Win32 ld.exe'
13736: ;;
13737:
13738: *,cl*)
13739: # Native MSVC
13740: libname_spec='$name'
13741: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13742: library_names_spec='${libname}.dll.lib'
13743:
13744: case $build_os in
13745: mingw*)
13746: sys_lib_search_path_spec=
13747: lt_save_ifs=$IFS
13748: IFS=';'
13749: for lt_path in $LIB
13750: do
13751: IFS=$lt_save_ifs
13752: # Let DOS variable expansion print the short 8.3 style file name.
13753: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13754: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13755: done
13756: IFS=$lt_save_ifs
13757: # Convert to MSYS style.
13758: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13759: ;;
13760: cygwin*)
13761: # Convert to unix form, then to dos form, then back to unix form
13762: # but this time dos style (no spaces!) so that the unix form looks
13763: # like /cygdrive/c/PROGRA~1:/cygdr...
13764: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13765: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13766: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13767: ;;
13768: *)
13769: sys_lib_search_path_spec="$LIB"
13770: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13771: # It is most probably a Windows format PATH.
13772: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13773: else
13774: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13775: fi
13776: # FIXME: find the short name or the path components, as spaces are
13777: # common. (e.g. "Program Files" -> "PROGRA~1")
13778: ;;
13779: esac
13780:
13781: # DLL is installed to $(libdir)/../bin by postinstall_cmds
13782: postinstall_cmds='base_file=`basename \${file}`~
13783: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13784: dldir=$destdir/`dirname \$dlpath`~
13785: test -d \$dldir || mkdir -p \$dldir~
13786: $install_prog $dir/$dlname \$dldir/$dlname'
13787: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13788: dlpath=$dir/\$dldll~
13789: $RM \$dlpath'
13790: shlibpath_overrides_runpath=yes
13791: dynamic_linker='Win32 link.exe'
13792: ;;
13793:
13794: *)
13795: # Assume MSVC wrapper
13796: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13797: dynamic_linker='Win32 ld.exe'
13798: ;;
13799: esac
13800: # FIXME: first we should search . and the directory the executable is in
13801: shlibpath_var=PATH
13802: ;;
13803:
13804: darwin* | rhapsody*)
13805: dynamic_linker="$host_os dyld"
13806: version_type=darwin
13807: need_lib_prefix=no
13808: need_version=no
13809: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13810: soname_spec='${libname}${release}${major}$shared_ext'
13811: shlibpath_overrides_runpath=yes
13812: shlibpath_var=DYLD_LIBRARY_PATH
13813: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13814:
13815: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13816: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13817: ;;
13818:
13819: dgux*)
13820: version_type=linux
13821: need_lib_prefix=no
13822: need_version=no
13823: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13824: soname_spec='${libname}${release}${shared_ext}$major'
13825: shlibpath_var=LD_LIBRARY_PATH
13826: ;;
13827:
13828: freebsd1*)
13829: dynamic_linker=no
13830: ;;
13831:
13832: freebsd* | dragonfly*)
13833: # DragonFly does not have aout. When/if they implement a new
13834: # versioning mechanism, adjust this.
13835: if test -x /usr/bin/objformat; then
13836: objformat=`/usr/bin/objformat`
13837: else
13838: case $host_os in
13839: freebsd[123]*) objformat=aout ;;
13840: *) objformat=elf ;;
13841: esac
13842: fi
13843: version_type=freebsd-$objformat
13844: case $version_type in
13845: freebsd-elf*)
13846: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13847: need_version=no
13848: need_lib_prefix=no
13849: ;;
13850: freebsd-*)
13851: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13852: need_version=yes
13853: ;;
13854: esac
13855: shlibpath_var=LD_LIBRARY_PATH
13856: case $host_os in
13857: freebsd2*)
13858: shlibpath_overrides_runpath=yes
13859: ;;
13860: freebsd3.[01]* | freebsdelf3.[01]*)
13861: shlibpath_overrides_runpath=yes
13862: hardcode_into_libs=yes
13863: ;;
13864: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13865: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13866: shlibpath_overrides_runpath=no
13867: hardcode_into_libs=yes
13868: ;;
13869: *) # from 4.6 on, and DragonFly
13870: shlibpath_overrides_runpath=yes
13871: hardcode_into_libs=yes
13872: ;;
13873: esac
13874: ;;
13875:
13876: gnu*)
13877: version_type=linux
13878: need_lib_prefix=no
13879: need_version=no
13880: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13881: soname_spec='${libname}${release}${shared_ext}$major'
13882: shlibpath_var=LD_LIBRARY_PATH
13883: hardcode_into_libs=yes
13884: ;;
13885:
13886: haiku*)
13887: version_type=linux
13888: need_lib_prefix=no
13889: need_version=no
13890: dynamic_linker="$host_os runtime_loader"
13891: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13892: soname_spec='${libname}${release}${shared_ext}$major'
13893: shlibpath_var=LIBRARY_PATH
13894: shlibpath_overrides_runpath=yes
13895: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13896: hardcode_into_libs=yes
13897: ;;
13898:
13899: hpux9* | hpux10* | hpux11*)
13900: # Give a soname corresponding to the major version so that dld.sl refuses to
13901: # link against other versions.
13902: version_type=sunos
13903: need_lib_prefix=no
13904: need_version=no
13905: case $host_cpu in
13906: ia64*)
13907: shrext_cmds='.so'
13908: hardcode_into_libs=yes
13909: dynamic_linker="$host_os dld.so"
13910: shlibpath_var=LD_LIBRARY_PATH
13911: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13912: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13913: soname_spec='${libname}${release}${shared_ext}$major'
13914: if test "X$HPUX_IA64_MODE" = X32; then
13915: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13916: else
13917: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13918: fi
13919: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13920: ;;
13921: hppa*64*)
13922: shrext_cmds='.sl'
13923: hardcode_into_libs=yes
13924: dynamic_linker="$host_os dld.sl"
13925: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13926: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13927: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13928: soname_spec='${libname}${release}${shared_ext}$major'
13929: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13930: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13931: ;;
13932: *)
13933: shrext_cmds='.sl'
13934: dynamic_linker="$host_os dld.sl"
13935: shlibpath_var=SHLIB_PATH
13936: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13937: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13938: soname_spec='${libname}${release}${shared_ext}$major'
13939: ;;
13940: esac
13941: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13942: postinstall_cmds='chmod 555 $lib'
13943: # or fails outright, so override atomically:
13944: install_override_mode=555
13945: ;;
13946:
13947: interix[3-9]*)
13948: version_type=linux
13949: need_lib_prefix=no
13950: need_version=no
13951: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13952: soname_spec='${libname}${release}${shared_ext}$major'
13953: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13954: shlibpath_var=LD_LIBRARY_PATH
13955: shlibpath_overrides_runpath=no
13956: hardcode_into_libs=yes
13957: ;;
13958:
13959: irix5* | irix6* | nonstopux*)
13960: case $host_os in
13961: nonstopux*) version_type=nonstopux ;;
13962: *)
13963: if test "$lt_cv_prog_gnu_ld" = yes; then
13964: version_type=linux
13965: else
13966: version_type=irix
13967: fi ;;
13968: esac
13969: need_lib_prefix=no
13970: need_version=no
13971: soname_spec='${libname}${release}${shared_ext}$major'
13972: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13973: case $host_os in
13974: irix5* | nonstopux*)
13975: libsuff= shlibsuff=
13976: ;;
13977: *)
13978: case $LD in # libtool.m4 will add one of these switches to LD
13979: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13980: libsuff= shlibsuff= libmagic=32-bit;;
13981: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13982: libsuff=32 shlibsuff=N32 libmagic=N32;;
13983: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13984: libsuff=64 shlibsuff=64 libmagic=64-bit;;
13985: *) libsuff= shlibsuff= libmagic=never-match;;
13986: esac
13987: ;;
13988: esac
13989: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13990: shlibpath_overrides_runpath=no
13991: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13992: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13993: hardcode_into_libs=yes
13994: ;;
13995:
13996: # No shared lib support for Linux oldld, aout, or coff.
13997: linux*oldld* | linux*aout* | linux*coff*)
13998: dynamic_linker=no
13999: ;;
14000:
14001: # This must be Linux ELF.
14002: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14003: version_type=linux
14004: need_lib_prefix=no
14005: need_version=no
14006: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14007: soname_spec='${libname}${release}${shared_ext}$major'
14008: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14009: shlibpath_var=LD_LIBRARY_PATH
14010: shlibpath_overrides_runpath=no
14011:
14012: # Some binutils ld are patched to set DT_RUNPATH
14013: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14014: $as_echo_n "(cached) " >&6
14015: else
14016: lt_cv_shlibpath_overrides_runpath=no
14017: save_LDFLAGS=$LDFLAGS
14018: save_libdir=$libdir
14019: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14020: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14021: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14022: /* end confdefs.h. */
14023:
14024: int
14025: main ()
14026: {
14027:
14028: ;
14029: return 0;
14030: }
14031: _ACEOF
14032: if ac_fn_c_try_link "$LINENO"; then :
14033: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14034: lt_cv_shlibpath_overrides_runpath=yes
14035: fi
14036: fi
14037: rm -f core conftest.err conftest.$ac_objext \
14038: conftest$ac_exeext conftest.$ac_ext
14039: LDFLAGS=$save_LDFLAGS
14040: libdir=$save_libdir
14041:
14042: fi
14043:
14044: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14045:
14046: # This implies no fast_install, which is unacceptable.
14047: # Some rework will be needed to allow for fast_install
14048: # before this can be enabled.
14049: hardcode_into_libs=yes
14050:
14051: # Append ld.so.conf contents to the search path
14052: if test -f /etc/ld.so.conf; then
14053: lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
14054: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14055: fi
14056:
14057: # We used to test for /lib/ld.so.1 and disable shared libraries on
14058: # powerpc, because MkLinux only supported shared libraries with the
14059: # GNU dynamic linker. Since this was broken with cross compilers,
14060: # most powerpc-linux boxes support dynamic linking these days and
14061: # people can always --disable-shared, the test was removed, and we
14062: # assume the GNU/Linux dynamic linker is in use.
14063: dynamic_linker='GNU/Linux ld.so'
14064: ;;
14065:
14066: netbsd*)
14067: version_type=sunos
14068: need_lib_prefix=no
14069: need_version=no
14070: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14071: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14072: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14073: dynamic_linker='NetBSD (a.out) ld.so'
14074: else
14075: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14076: soname_spec='${libname}${release}${shared_ext}$major'
14077: dynamic_linker='NetBSD ld.elf_so'
14078: fi
14079: shlibpath_var=LD_LIBRARY_PATH
14080: shlibpath_overrides_runpath=yes
14081: hardcode_into_libs=yes
14082: ;;
14083:
14084: newsos6)
14085: version_type=linux
14086: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14087: shlibpath_var=LD_LIBRARY_PATH
14088: shlibpath_overrides_runpath=yes
14089: ;;
14090:
14091: *nto* | *qnx*)
14092: version_type=qnx
14093: need_lib_prefix=no
14094: need_version=no
14095: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14096: soname_spec='${libname}${release}${shared_ext}$major'
14097: shlibpath_var=LD_LIBRARY_PATH
14098: shlibpath_overrides_runpath=no
14099: hardcode_into_libs=yes
14100: dynamic_linker='ldqnx.so'
14101: ;;
14102:
14103: openbsd*)
14104: version_type=sunos
14105: sys_lib_dlsearch_path_spec="/usr/lib"
14106: need_lib_prefix=no
14107: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14108: case $host_os in
14109: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14110: *) need_version=no ;;
14111: esac
14112: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14113: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14114: shlibpath_var=LD_LIBRARY_PATH
14115: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14116: case $host_os in
14117: openbsd2.[89] | openbsd2.[89].*)
14118: shlibpath_overrides_runpath=no
14119: ;;
14120: *)
14121: shlibpath_overrides_runpath=yes
14122: ;;
14123: esac
14124: else
14125: shlibpath_overrides_runpath=yes
14126: fi
14127: ;;
14128:
14129: os2*)
14130: libname_spec='$name'
14131: shrext_cmds=".dll"
14132: need_lib_prefix=no
14133: library_names_spec='$libname${shared_ext} $libname.a'
14134: dynamic_linker='OS/2 ld.exe'
14135: shlibpath_var=LIBPATH
14136: ;;
14137:
14138: osf3* | osf4* | osf5*)
14139: version_type=osf
14140: need_lib_prefix=no
14141: need_version=no
14142: soname_spec='${libname}${release}${shared_ext}$major'
14143: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14144: shlibpath_var=LD_LIBRARY_PATH
14145: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14146: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14147: ;;
14148:
14149: rdos*)
14150: dynamic_linker=no
14151: ;;
14152:
14153: solaris*)
14154: version_type=linux
14155: need_lib_prefix=no
14156: need_version=no
14157: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14158: soname_spec='${libname}${release}${shared_ext}$major'
14159: shlibpath_var=LD_LIBRARY_PATH
14160: shlibpath_overrides_runpath=yes
14161: hardcode_into_libs=yes
14162: # ldd complains unless libraries are executable
14163: postinstall_cmds='chmod +x $lib'
14164: ;;
14165:
14166: sunos4*)
14167: version_type=sunos
14168: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14169: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14170: shlibpath_var=LD_LIBRARY_PATH
14171: shlibpath_overrides_runpath=yes
14172: if test "$with_gnu_ld" = yes; then
14173: need_lib_prefix=no
14174: fi
14175: need_version=yes
14176: ;;
14177:
14178: sysv4 | sysv4.3*)
14179: version_type=linux
14180: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14181: soname_spec='${libname}${release}${shared_ext}$major'
14182: shlibpath_var=LD_LIBRARY_PATH
14183: case $host_vendor in
14184: sni)
14185: shlibpath_overrides_runpath=no
14186: need_lib_prefix=no
14187: runpath_var=LD_RUN_PATH
14188: ;;
14189: siemens)
14190: need_lib_prefix=no
14191: ;;
14192: motorola)
14193: need_lib_prefix=no
14194: need_version=no
14195: shlibpath_overrides_runpath=no
14196: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14197: ;;
14198: esac
14199: ;;
14200:
14201: sysv4*MP*)
14202: if test -d /usr/nec ;then
14203: version_type=linux
14204: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14205: soname_spec='$libname${shared_ext}.$major'
14206: shlibpath_var=LD_LIBRARY_PATH
14207: fi
14208: ;;
14209:
14210: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14211: version_type=freebsd-elf
14212: need_lib_prefix=no
14213: need_version=no
14214: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14215: soname_spec='${libname}${release}${shared_ext}$major'
14216: shlibpath_var=LD_LIBRARY_PATH
14217: shlibpath_overrides_runpath=yes
14218: hardcode_into_libs=yes
14219: if test "$with_gnu_ld" = yes; then
14220: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14221: else
14222: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14223: case $host_os in
14224: sco3.2v5*)
14225: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14226: ;;
14227: esac
14228: fi
14229: sys_lib_dlsearch_path_spec='/usr/lib'
14230: ;;
14231:
14232: tpf*)
14233: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14234: version_type=linux
14235: need_lib_prefix=no
14236: need_version=no
14237: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14238: shlibpath_var=LD_LIBRARY_PATH
14239: shlibpath_overrides_runpath=no
14240: hardcode_into_libs=yes
14241: ;;
14242:
14243: uts4*)
14244: version_type=linux
14245: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14246: soname_spec='${libname}${release}${shared_ext}$major'
14247: shlibpath_var=LD_LIBRARY_PATH
14248: ;;
14249:
14250: *)
14251: dynamic_linker=no
14252: ;;
14253: esac
14254: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14255: $as_echo "$dynamic_linker" >&6; }
14256: test "$dynamic_linker" = no && can_build_shared=no
14257:
14258: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14259: if test "$GCC" = yes; then
14260: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14261: fi
14262:
14263: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14264: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14265: fi
14266: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14267: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14268: fi
14269:
14270:
14271:
14272:
14273:
14274:
14275:
14276:
14277:
14278:
14279:
14280:
14281:
14282:
14283:
14284:
14285:
14286:
14287:
14288:
14289:
14290:
14291:
14292:
14293:
14294:
14295:
14296:
14297:
14298:
14299:
14300:
14301:
14302:
14303:
14304:
14305:
14306:
14307:
14308:
14309:
14310:
14311:
14312:
14313:
14314:
14315:
14316:
14317:
14318:
14319:
14320:
14321:
14322:
14323:
14324:
14325:
14326:
14327:
14328:
14329:
14330:
14331:
14332:
14333:
14334:
14335:
14336:
14337:
14338:
14339:
14340:
14341:
14342:
14343:
14344:
14345:
14346:
14347:
14348:
14349:
14350:
14351:
14352:
14353:
14354:
14355:
14356:
14357:
14358:
14359:
14360:
14361: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14362: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14363: hardcode_action=
14364: if test -n "$hardcode_libdir_flag_spec" ||
14365: test -n "$runpath_var" ||
14366: test "X$hardcode_automatic" = "Xyes" ; then
14367:
14368: # We can hardcode non-existent directories.
14369: if test "$hardcode_direct" != no &&
14370: # If the only mechanism to avoid hardcoding is shlibpath_var, we
14371: # have to relink, otherwise we might link with an installed library
14372: # when we should be linking with a yet-to-be-installed one
14373: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14374: test "$hardcode_minus_L" != no; then
14375: # Linking always hardcodes the temporary library directory.
14376: hardcode_action=relink
14377: else
14378: # We can link without hardcoding, and we can hardcode nonexisting dirs.
14379: hardcode_action=immediate
14380: fi
14381: else
14382: # We cannot hardcode anything, or else we can only hardcode existing
14383: # directories.
14384: hardcode_action=unsupported
14385: fi
14386: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14387: $as_echo "$hardcode_action" >&6; }
14388:
14389: if test "$hardcode_action" = relink ||
14390: test "$inherit_rpath" = yes; then
14391: # Fast installation is not supported
14392: enable_fast_install=no
14393: elif test "$shlibpath_overrides_runpath" = yes ||
14394: test "$enable_shared" = no; then
14395: # Fast installation is not necessary
14396: enable_fast_install=needless
14397: fi
14398:
14399:
14400:
14401:
14402:
14403:
14404: if test "x$enable_dlopen" != xyes; then
14405: enable_dlopen=unknown
14406: enable_dlopen_self=unknown
14407: enable_dlopen_self_static=unknown
14408: else
14409: lt_cv_dlopen=no
14410: lt_cv_dlopen_libs=
14411:
14412: case $host_os in
14413: beos*)
14414: lt_cv_dlopen="load_add_on"
14415: lt_cv_dlopen_libs=
14416: lt_cv_dlopen_self=yes
14417: ;;
14418:
14419: mingw* | pw32* | cegcc*)
14420: lt_cv_dlopen="LoadLibrary"
14421: lt_cv_dlopen_libs=
14422: ;;
14423:
14424: cygwin*)
14425: lt_cv_dlopen="dlopen"
14426: lt_cv_dlopen_libs=
14427: ;;
14428:
14429: darwin*)
14430: # if libdl is installed we need to link against it
14431: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14432: $as_echo_n "checking for dlopen in -ldl... " >&6; }
14433: if ${ac_cv_lib_dl_dlopen+:} false; then :
14434: $as_echo_n "(cached) " >&6
14435: else
14436: ac_check_lib_save_LIBS=$LIBS
14437: LIBS="-ldl $LIBS"
14438: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14439: /* end confdefs.h. */
14440:
14441: /* Override any GCC internal prototype to avoid an error.
14442: Use char because int might match the return type of a GCC
14443: builtin and then its argument prototype would still apply. */
14444: #ifdef __cplusplus
14445: extern "C"
14446: #endif
14447: char dlopen ();
14448: int
14449: main ()
14450: {
14451: return dlopen ();
14452: ;
14453: return 0;
14454: }
14455: _ACEOF
14456: if ac_fn_c_try_link "$LINENO"; then :
14457: ac_cv_lib_dl_dlopen=yes
14458: else
14459: ac_cv_lib_dl_dlopen=no
14460: fi
14461: rm -f core conftest.err conftest.$ac_objext \
14462: conftest$ac_exeext conftest.$ac_ext
14463: LIBS=$ac_check_lib_save_LIBS
14464: fi
14465: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14466: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14467: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14468: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14469: else
14470:
14471: lt_cv_dlopen="dyld"
14472: lt_cv_dlopen_libs=
14473: lt_cv_dlopen_self=yes
14474:
14475: fi
14476:
14477: ;;
14478:
14479: *)
14480: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14481: if test "x$ac_cv_func_shl_load" = xyes; then :
14482: lt_cv_dlopen="shl_load"
14483: else
14484: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14485: $as_echo_n "checking for shl_load in -ldld... " >&6; }
14486: if ${ac_cv_lib_dld_shl_load+:} false; then :
14487: $as_echo_n "(cached) " >&6
14488: else
14489: ac_check_lib_save_LIBS=$LIBS
14490: LIBS="-ldld $LIBS"
14491: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14492: /* end confdefs.h. */
14493:
14494: /* Override any GCC internal prototype to avoid an error.
14495: Use char because int might match the return type of a GCC
14496: builtin and then its argument prototype would still apply. */
14497: #ifdef __cplusplus
14498: extern "C"
14499: #endif
14500: char shl_load ();
14501: int
14502: main ()
14503: {
14504: return shl_load ();
14505: ;
14506: return 0;
14507: }
14508: _ACEOF
14509: if ac_fn_c_try_link "$LINENO"; then :
14510: ac_cv_lib_dld_shl_load=yes
14511: else
14512: ac_cv_lib_dld_shl_load=no
14513: fi
14514: rm -f core conftest.err conftest.$ac_objext \
14515: conftest$ac_exeext conftest.$ac_ext
14516: LIBS=$ac_check_lib_save_LIBS
14517: fi
14518: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14519: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14520: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14521: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14522: else
14523: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14524: if test "x$ac_cv_func_dlopen" = xyes; then :
14525: lt_cv_dlopen="dlopen"
14526: else
14527: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14528: $as_echo_n "checking for dlopen in -ldl... " >&6; }
14529: if ${ac_cv_lib_dl_dlopen+:} false; then :
14530: $as_echo_n "(cached) " >&6
14531: else
14532: ac_check_lib_save_LIBS=$LIBS
14533: LIBS="-ldl $LIBS"
14534: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14535: /* end confdefs.h. */
14536:
14537: /* Override any GCC internal prototype to avoid an error.
14538: Use char because int might match the return type of a GCC
14539: builtin and then its argument prototype would still apply. */
14540: #ifdef __cplusplus
14541: extern "C"
14542: #endif
14543: char dlopen ();
14544: int
14545: main ()
14546: {
14547: return dlopen ();
14548: ;
14549: return 0;
14550: }
14551: _ACEOF
14552: if ac_fn_c_try_link "$LINENO"; then :
14553: ac_cv_lib_dl_dlopen=yes
14554: else
14555: ac_cv_lib_dl_dlopen=no
14556: fi
14557: rm -f core conftest.err conftest.$ac_objext \
14558: conftest$ac_exeext conftest.$ac_ext
14559: LIBS=$ac_check_lib_save_LIBS
14560: fi
14561: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14562: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14563: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14564: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14565: else
14566: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14567: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14568: if ${ac_cv_lib_svld_dlopen+:} false; then :
14569: $as_echo_n "(cached) " >&6
14570: else
14571: ac_check_lib_save_LIBS=$LIBS
14572: LIBS="-lsvld $LIBS"
14573: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14574: /* end confdefs.h. */
14575:
14576: /* Override any GCC internal prototype to avoid an error.
14577: Use char because int might match the return type of a GCC
14578: builtin and then its argument prototype would still apply. */
14579: #ifdef __cplusplus
14580: extern "C"
14581: #endif
14582: char dlopen ();
14583: int
14584: main ()
14585: {
14586: return dlopen ();
14587: ;
14588: return 0;
14589: }
14590: _ACEOF
14591: if ac_fn_c_try_link "$LINENO"; then :
14592: ac_cv_lib_svld_dlopen=yes
14593: else
14594: ac_cv_lib_svld_dlopen=no
14595: fi
14596: rm -f core conftest.err conftest.$ac_objext \
14597: conftest$ac_exeext conftest.$ac_ext
14598: LIBS=$ac_check_lib_save_LIBS
14599: fi
14600: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14601: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14602: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14603: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14604: else
14605: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14606: $as_echo_n "checking for dld_link in -ldld... " >&6; }
14607: if ${ac_cv_lib_dld_dld_link+:} false; then :
14608: $as_echo_n "(cached) " >&6
14609: else
14610: ac_check_lib_save_LIBS=$LIBS
14611: LIBS="-ldld $LIBS"
14612: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14613: /* end confdefs.h. */
14614:
14615: /* Override any GCC internal prototype to avoid an error.
14616: Use char because int might match the return type of a GCC
14617: builtin and then its argument prototype would still apply. */
14618: #ifdef __cplusplus
14619: extern "C"
14620: #endif
14621: char dld_link ();
14622: int
14623: main ()
14624: {
14625: return dld_link ();
14626: ;
14627: return 0;
14628: }
14629: _ACEOF
14630: if ac_fn_c_try_link "$LINENO"; then :
14631: ac_cv_lib_dld_dld_link=yes
14632: else
14633: ac_cv_lib_dld_dld_link=no
14634: fi
14635: rm -f core conftest.err conftest.$ac_objext \
14636: conftest$ac_exeext conftest.$ac_ext
14637: LIBS=$ac_check_lib_save_LIBS
14638: fi
14639: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14640: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14641: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14642: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14643: fi
14644:
14645:
14646: fi
14647:
14648:
14649: fi
14650:
14651:
14652: fi
14653:
14654:
14655: fi
14656:
14657:
14658: fi
14659:
14660: ;;
14661: esac
14662:
14663: if test "x$lt_cv_dlopen" != xno; then
14664: enable_dlopen=yes
14665: else
14666: enable_dlopen=no
14667: fi
14668:
14669: case $lt_cv_dlopen in
14670: dlopen)
14671: save_CPPFLAGS="$CPPFLAGS"
14672: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14673:
14674: save_LDFLAGS="$LDFLAGS"
14675: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14676:
14677: save_LIBS="$LIBS"
14678: LIBS="$lt_cv_dlopen_libs $LIBS"
14679:
14680: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14681: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14682: if ${lt_cv_dlopen_self+:} false; then :
14683: $as_echo_n "(cached) " >&6
14684: else
14685: if test "$cross_compiling" = yes; then :
14686: lt_cv_dlopen_self=cross
14687: else
14688: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14689: lt_status=$lt_dlunknown
14690: cat > conftest.$ac_ext <<_LT_EOF
14691: #line $LINENO "configure"
14692: #include "confdefs.h"
14693:
14694: #if HAVE_DLFCN_H
14695: #include <dlfcn.h>
14696: #endif
14697:
14698: #include <stdio.h>
14699:
14700: #ifdef RTLD_GLOBAL
14701: # define LT_DLGLOBAL RTLD_GLOBAL
14702: #else
14703: # ifdef DL_GLOBAL
14704: # define LT_DLGLOBAL DL_GLOBAL
14705: # else
14706: # define LT_DLGLOBAL 0
14707: # endif
14708: #endif
14709:
14710: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14711: find out it does not work in some platform. */
14712: #ifndef LT_DLLAZY_OR_NOW
14713: # ifdef RTLD_LAZY
14714: # define LT_DLLAZY_OR_NOW RTLD_LAZY
14715: # else
14716: # ifdef DL_LAZY
14717: # define LT_DLLAZY_OR_NOW DL_LAZY
14718: # else
14719: # ifdef RTLD_NOW
14720: # define LT_DLLAZY_OR_NOW RTLD_NOW
14721: # else
14722: # ifdef DL_NOW
14723: # define LT_DLLAZY_OR_NOW DL_NOW
14724: # else
14725: # define LT_DLLAZY_OR_NOW 0
14726: # endif
14727: # endif
14728: # endif
14729: # endif
14730: #endif
14731:
14732: /* When -fvisbility=hidden is used, assume the code has been annotated
14733: correspondingly for the symbols needed. */
14734: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14735: int fnord () __attribute__((visibility("default")));
14736: #endif
14737:
14738: int fnord () { return 42; }
14739: int main ()
14740: {
14741: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14742: int status = $lt_dlunknown;
14743:
14744: if (self)
14745: {
14746: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14747: else
14748: {
14749: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14750: else puts (dlerror ());
14751: }
14752: /* dlclose (self); */
14753: }
14754: else
14755: puts (dlerror ());
14756:
14757: return status;
14758: }
14759: _LT_EOF
14760: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14761: (eval $ac_link) 2>&5
14762: ac_status=$?
14763: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14764: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14765: (./conftest; exit; ) >&5 2>/dev/null
14766: lt_status=$?
14767: case x$lt_status in
14768: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14769: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14770: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14771: esac
14772: else :
14773: # compilation failed
14774: lt_cv_dlopen_self=no
14775: fi
14776: fi
14777: rm -fr conftest*
14778:
14779:
14780: fi
14781: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14782: $as_echo "$lt_cv_dlopen_self" >&6; }
14783:
14784: if test "x$lt_cv_dlopen_self" = xyes; then
14785: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14786: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14787: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14788: if ${lt_cv_dlopen_self_static+:} false; then :
14789: $as_echo_n "(cached) " >&6
14790: else
14791: if test "$cross_compiling" = yes; then :
14792: lt_cv_dlopen_self_static=cross
14793: else
14794: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14795: lt_status=$lt_dlunknown
14796: cat > conftest.$ac_ext <<_LT_EOF
14797: #line $LINENO "configure"
14798: #include "confdefs.h"
14799:
14800: #if HAVE_DLFCN_H
14801: #include <dlfcn.h>
14802: #endif
14803:
14804: #include <stdio.h>
14805:
14806: #ifdef RTLD_GLOBAL
14807: # define LT_DLGLOBAL RTLD_GLOBAL
14808: #else
14809: # ifdef DL_GLOBAL
14810: # define LT_DLGLOBAL DL_GLOBAL
14811: # else
14812: # define LT_DLGLOBAL 0
14813: # endif
14814: #endif
14815:
14816: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14817: find out it does not work in some platform. */
14818: #ifndef LT_DLLAZY_OR_NOW
14819: # ifdef RTLD_LAZY
14820: # define LT_DLLAZY_OR_NOW RTLD_LAZY
14821: # else
14822: # ifdef DL_LAZY
14823: # define LT_DLLAZY_OR_NOW DL_LAZY
14824: # else
14825: # ifdef RTLD_NOW
14826: # define LT_DLLAZY_OR_NOW RTLD_NOW
14827: # else
14828: # ifdef DL_NOW
14829: # define LT_DLLAZY_OR_NOW DL_NOW
14830: # else
14831: # define LT_DLLAZY_OR_NOW 0
14832: # endif
14833: # endif
14834: # endif
14835: # endif
14836: #endif
14837:
14838: /* When -fvisbility=hidden is used, assume the code has been annotated
14839: correspondingly for the symbols needed. */
14840: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14841: int fnord () __attribute__((visibility("default")));
14842: #endif
14843:
14844: int fnord () { return 42; }
14845: int main ()
14846: {
14847: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14848: int status = $lt_dlunknown;
14849:
14850: if (self)
14851: {
14852: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14853: else
14854: {
14855: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14856: else puts (dlerror ());
14857: }
14858: /* dlclose (self); */
14859: }
14860: else
14861: puts (dlerror ());
14862:
14863: return status;
14864: }
14865: _LT_EOF
14866: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14867: (eval $ac_link) 2>&5
14868: ac_status=$?
14869: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14870: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14871: (./conftest; exit; ) >&5 2>/dev/null
14872: lt_status=$?
14873: case x$lt_status in
14874: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14875: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14876: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14877: esac
14878: else :
14879: # compilation failed
14880: lt_cv_dlopen_self_static=no
14881: fi
14882: fi
14883: rm -fr conftest*
14884:
14885:
14886: fi
14887: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14888: $as_echo "$lt_cv_dlopen_self_static" >&6; }
14889: fi
14890:
14891: CPPFLAGS="$save_CPPFLAGS"
14892: LDFLAGS="$save_LDFLAGS"
14893: LIBS="$save_LIBS"
14894: ;;
14895: esac
14896:
14897: case $lt_cv_dlopen_self in
14898: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14899: *) enable_dlopen_self=unknown ;;
14900: esac
14901:
14902: case $lt_cv_dlopen_self_static in
14903: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14904: *) enable_dlopen_self_static=unknown ;;
14905: esac
14906: fi
14907:
14908:
14909:
14910:
14911:
14912:
14913:
14914:
14915:
14916:
14917:
14918:
14919:
14920:
14921:
14922:
14923:
14924: striplib=
14925: old_striplib=
14926: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14927: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14928: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14929: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14930: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14931: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14932: $as_echo "yes" >&6; }
14933: else
14934: # FIXME - insert some real tests, host_os isn't really good enough
14935: case $host_os in
14936: darwin*)
14937: if test -n "$STRIP" ; then
14938: striplib="$STRIP -x"
14939: old_striplib="$STRIP -S"
14940: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14941: $as_echo "yes" >&6; }
14942: else
14943: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14944: $as_echo "no" >&6; }
14945: fi
14946: ;;
14947: *)
14948: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14949: $as_echo "no" >&6; }
14950: ;;
14951: esac
14952: fi
14953:
14954:
14955:
14956:
14957:
14958:
14959:
14960:
14961:
14962:
14963:
14964:
14965: # Report which library types will actually be built
14966: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14967: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14968: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14969: $as_echo "$can_build_shared" >&6; }
14970:
14971: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14972: $as_echo_n "checking whether to build shared libraries... " >&6; }
14973: test "$can_build_shared" = "no" && enable_shared=no
14974:
14975: # On AIX, shared libraries and static libraries use the same namespace, and
14976: # are all built from PIC.
14977: case $host_os in
14978: aix3*)
14979: test "$enable_shared" = yes && enable_static=no
14980: if test -n "$RANLIB"; then
14981: archive_cmds="$archive_cmds~\$RANLIB \$lib"
14982: postinstall_cmds='$RANLIB $lib'
14983: fi
14984: ;;
14985:
14986: aix[4-9]*)
14987: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14988: test "$enable_shared" = yes && enable_static=no
14989: fi
14990: ;;
14991: esac
14992: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14993: $as_echo "$enable_shared" >&6; }
14994:
14995: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14996: $as_echo_n "checking whether to build static libraries... " >&6; }
14997: # Make sure either enable_shared or enable_static is yes.
14998: test "$enable_shared" = yes || enable_static=yes
14999: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15000: $as_echo "$enable_static" >&6; }
15001:
15002:
15003:
15004:
15005: fi
15006: ac_ext=c
15007: ac_cpp='$CPP $CPPFLAGS'
15008: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15009: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15010: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15011:
15012: CC="$lt_save_CC"
15013:
15014:
15015:
15016:
15017:
15018:
15019:
15020:
15021:
15022:
15023:
15024:
15025:
15026: ac_config_commands="$ac_config_commands libtool"
15027:
15028:
15029:
15030:
15031: # Only expand once:
15032:
15033:
15034:
15035: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15036: $as_echo_n "checking whether ln -s works... " >&6; }
15037: LN_S=$as_ln_s
15038: if test "$LN_S" = "ln -s"; then
15039: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15040: $as_echo "yes" >&6; }
15041: else
15042: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15043: $as_echo "no, using $LN_S" >&6; }
15044: fi
15045:
15046: if test $ac_cv_c_compiler_gnu = yes; then
15047: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
15048: $as_echo_n "checking whether $CC needs -traditional... " >&6; }
15049: if ${ac_cv_prog_gcc_traditional+:} false; then :
15050: $as_echo_n "(cached) " >&6
15051: else
15052: ac_pattern="Autoconf.*'x'"
15053: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15054: /* end confdefs.h. */
15055: #include <sgtty.h>
15056: Autoconf TIOCGETP
15057: _ACEOF
15058: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15059: $EGREP "$ac_pattern" >/dev/null 2>&1; then :
15060: ac_cv_prog_gcc_traditional=yes
15061: else
15062: ac_cv_prog_gcc_traditional=no
15063: fi
15064: rm -f conftest*
15065:
15066:
15067: if test $ac_cv_prog_gcc_traditional = no; then
15068: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15069: /* end confdefs.h. */
15070: #include <termio.h>
15071: Autoconf TCGETA
15072: _ACEOF
15073: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15074: $EGREP "$ac_pattern" >/dev/null 2>&1; then :
15075: ac_cv_prog_gcc_traditional=yes
15076: fi
15077: rm -f conftest*
15078:
15079: fi
15080: fi
15081: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
15082: $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
15083: if test $ac_cv_prog_gcc_traditional = yes; then
15084: CC="$CC -traditional"
15085: fi
15086: fi
15087:
15088: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
15089: $as_echo_n "checking for working volatile... " >&6; }
15090: if ${ac_cv_c_volatile+:} false; then :
15091: $as_echo_n "(cached) " >&6
15092: else
15093: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15094: /* end confdefs.h. */
15095:
15096: int
15097: main ()
15098: {
15099:
15100: volatile int x;
15101: int * volatile y = (int *) 0;
15102: return !x && !y;
15103: ;
15104: return 0;
15105: }
15106: _ACEOF
15107: if ac_fn_c_try_compile "$LINENO"; then :
15108: ac_cv_c_volatile=yes
15109: else
15110: ac_cv_c_volatile=no
15111: fi
15112: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15113: fi
15114: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
15115: $as_echo "$ac_cv_c_volatile" >&6; }
15116: if test $ac_cv_c_volatile = no; then
15117:
15118: $as_echo "#define volatile /**/" >>confdefs.h
15119:
15120: fi
15121:
15122: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
15123: $as_echo_n "checking for library containing strerror... " >&6; }
15124: if ${ac_cv_search_strerror+:} false; then :
15125: $as_echo_n "(cached) " >&6
15126: else
15127: ac_func_search_save_LIBS=$LIBS
15128: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15129: /* end confdefs.h. */
15130:
15131: /* Override any GCC internal prototype to avoid an error.
15132: Use char because int might match the return type of a GCC
15133: builtin and then its argument prototype would still apply. */
15134: #ifdef __cplusplus
15135: extern "C"
15136: #endif
15137: char strerror ();
15138: int
15139: main ()
15140: {
15141: return strerror ();
15142: ;
15143: return 0;
15144: }
15145: _ACEOF
15146: for ac_lib in '' cposix; do
15147: if test -z "$ac_lib"; then
15148: ac_res="none required"
15149: else
15150: ac_res=-l$ac_lib
15151: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15152: fi
15153: if ac_fn_c_try_link "$LINENO"; then :
15154: ac_cv_search_strerror=$ac_res
15155: fi
15156: rm -f core conftest.err conftest.$ac_objext \
15157: conftest$ac_exeext
15158: if ${ac_cv_search_strerror+:} false; then :
15159: break
15160: fi
15161: done
15162: if ${ac_cv_search_strerror+:} false; then :
15163:
15164: else
15165: ac_cv_search_strerror=no
15166: fi
15167: rm conftest.$ac_ext
15168: LIBS=$ac_func_search_save_LIBS
15169: fi
15170: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
15171: $as_echo "$ac_cv_search_strerror" >&6; }
15172: ac_res=$ac_cv_search_strerror
15173: if test "$ac_res" != no; then :
15174: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15175:
15176: fi
15177:
15178:
15179: # Extract the first word of "perl", so it can be a program name with args.
15180: set dummy perl; ac_word=$2
15181: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15182: $as_echo_n "checking for $ac_word... " >&6; }
15183: if ${ac_cv_path_PATH_PERL+:} false; then :
15184: $as_echo_n "(cached) " >&6
15185: else
15186: case $PATH_PERL in
15187: [\\/]* | ?:[\\/]*)
15188: ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
15189: ;;
15190: *)
15191: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15192: for as_dir in $PATH
15193: do
15194: IFS=$as_save_IFS
15195: test -z "$as_dir" && as_dir=.
15196: for ac_exec_ext in '' $ac_executable_extensions; do
15197: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15198: ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
15199: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15200: break 2
15201: fi
15202: done
15203: done
15204: IFS=$as_save_IFS
15205:
15206: ;;
15207: esac
15208: fi
15209: PATH_PERL=$ac_cv_path_PATH_PERL
15210: if test -n "$PATH_PERL"; then
15211: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5
15212: $as_echo "$PATH_PERL" >&6; }
15213: else
15214: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15215: $as_echo "no" >&6; }
15216: fi
15217:
15218:
15219: # Extract the first word of "sh", so it can be a program name with args.
15220: set dummy sh; ac_word=$2
15221: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15222: $as_echo_n "checking for $ac_word... " >&6; }
15223: if ${ac_cv_path_PATH_SH+:} false; then :
15224: $as_echo_n "(cached) " >&6
15225: else
15226: case $PATH_SH in
15227: [\\/]* | ?:[\\/]*)
15228: ac_cv_path_PATH_SH="$PATH_SH" # Let the user override the test with a path.
15229: ;;
15230: *)
15231: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15232: for as_dir in $PATH
15233: do
15234: IFS=$as_save_IFS
15235: test -z "$as_dir" && as_dir=.
15236: for ac_exec_ext in '' $ac_executable_extensions; do
15237: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15238: ac_cv_path_PATH_SH="$as_dir/$ac_word$ac_exec_ext"
15239: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15240: break 2
15241: fi
15242: done
15243: done
15244: IFS=$as_save_IFS
15245:
15246: ;;
15247: esac
15248: fi
15249: PATH_SH=$ac_cv_path_PATH_SH
15250: if test -n "$PATH_SH"; then
15251: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SH" >&5
15252: $as_echo "$PATH_SH" >&6; }
15253: else
15254: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15255: $as_echo "no" >&6; }
15256: fi
15257:
15258:
15259: # Extract the first word of "test", so it can be a program name with args.
15260: set dummy test; ac_word=$2
15261: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15262: $as_echo_n "checking for $ac_word... " >&6; }
15263: if ${ac_cv_path_PATH_TEST+:} false; then :
15264: $as_echo_n "(cached) " >&6
15265: else
15266: case $PATH_TEST in
15267: [\\/]* | ?:[\\/]*)
15268: ac_cv_path_PATH_TEST="$PATH_TEST" # Let the user override the test with a path.
15269: ;;
15270: *)
15271: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15272: for as_dir in $PATH
15273: do
15274: IFS=$as_save_IFS
15275: test -z "$as_dir" && as_dir=.
15276: for ac_exec_ext in '' $ac_executable_extensions; do
15277: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15278: ac_cv_path_PATH_TEST="$as_dir/$ac_word$ac_exec_ext"
15279: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15280: break 2
15281: fi
15282: done
15283: done
15284: IFS=$as_save_IFS
15285:
15286: ;;
15287: esac
15288: fi
15289: PATH_TEST=$ac_cv_path_PATH_TEST
15290: if test -n "$PATH_TEST"; then
15291: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TEST" >&5
15292: $as_echo "$PATH_TEST" >&6; }
15293: else
15294: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15295: $as_echo "no" >&6; }
15296: fi
15297:
15298:
15299:
15300:
15301: # Check whether --with-net-snmp-config was given.
15302: if test "${with_net_snmp_config+set}" = set; then :
15303: withval=$with_net_snmp_config; ans=$withval
15304: else
15305: ans=yes
15306:
15307: fi
15308:
15309: case "$ans" in
15310: no)
15311: ;;
15312: yes)
15313: ans=net-snmp-config
15314: ;;
15315: /*)
15316: ;;
15317: */*)
15318: as_fn_error $? "--with-net-snmp-config takes either a name or an absolute path" "$LINENO" 5
15319: ;;
15320: *)
15321: ;;
15322: esac
15323: PROG_NET_SNMP_CONFIG=$ans
15324: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
15325: $as_echo_n "checking for net-snmp-config path... " >&6; }
15326: case "$PROG_NET_SNMP_CONFIG" in
15327: no) ;;
15328: /*)
15329: PATH_NET_SNMP_CONFIG=$PROG_NET_SNMP_CONFIG
15330: ;;
15331: *)
15332: # Extract the first word of "$PROG_NET_SNMP_CONFIG", so it can be a program name with args.
15333: set dummy $PROG_NET_SNMP_CONFIG; ac_word=$2
15334: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15335: $as_echo_n "checking for $ac_word... " >&6; }
15336: if ${ac_cv_path_PATH_NET_SNMP_CONFIG+:} false; then :
15337: $as_echo_n "(cached) " >&6
15338: else
15339: case $PATH_NET_SNMP_CONFIG in
15340: [\\/]* | ?:[\\/]*)
15341: ac_cv_path_PATH_NET_SNMP_CONFIG="$PATH_NET_SNMP_CONFIG" # Let the user override the test with a path.
15342: ;;
15343: *)
15344: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15345: for as_dir in $PATH
15346: do
15347: IFS=$as_save_IFS
15348: test -z "$as_dir" && as_dir=.
15349: for ac_exec_ext in '' $ac_executable_extensions; do
15350: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15351: ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15352: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15353: break 2
15354: fi
15355: done
15356: done
15357: IFS=$as_save_IFS
15358:
15359: ;;
15360: esac
15361: fi
15362: PATH_NET_SNMP_CONFIG=$ac_cv_path_PATH_NET_SNMP_CONFIG
15363: if test -n "$PATH_NET_SNMP_CONFIG"; then
15364: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
15365: $as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
15366: else
15367: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15368: $as_echo "no" >&6; }
15369: fi
15370:
15371:
15372: ;;
15373: esac
15374: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
15375: $as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
15376:
15377: case "$host" in
15378: *-*-vxworks*)
15379: ac_link="$ac_link $VX_KERNEL"
15380: ;;
15381: esac
15382:
15383:
15384:
15385: ac_fn_c_check_func "$LINENO" "gethostent" "ac_cv_func_gethostent"
15386: if test "x$ac_cv_func_gethostent" = xyes; then :
15387:
15388: else
15389: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5
15390: $as_echo_n "checking for library containing gethostent... " >&6; }
15391: if ${ac_cv_search_gethostent+:} false; then :
15392: $as_echo_n "(cached) " >&6
15393: else
15394: ac_func_search_save_LIBS=$LIBS
15395: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15396: /* end confdefs.h. */
15397:
15398: /* Override any GCC internal prototype to avoid an error.
15399: Use char because int might match the return type of a GCC
15400: builtin and then its argument prototype would still apply. */
15401: #ifdef __cplusplus
15402: extern "C"
15403: #endif
15404: char gethostent ();
15405: int
15406: main ()
15407: {
15408: return gethostent ();
15409: ;
15410: return 0;
15411: }
15412: _ACEOF
15413: for ac_lib in '' nsl; do
15414: if test -z "$ac_lib"; then
15415: ac_res="none required"
15416: else
15417: ac_res=-l$ac_lib
15418: LIBS="-l$ac_lib $libxnet -lsocket $ac_func_search_save_LIBS"
15419: fi
15420: if ac_fn_c_try_link "$LINENO"; then :
15421: ac_cv_search_gethostent=$ac_res
15422: fi
15423: rm -f core conftest.err conftest.$ac_objext \
15424: conftest$ac_exeext
15425: if ${ac_cv_search_gethostent+:} false; then :
15426: break
15427: fi
15428: done
15429: if ${ac_cv_search_gethostent+:} false; then :
15430:
15431: else
15432: ac_cv_search_gethostent=no
15433: fi
15434: rm conftest.$ac_ext
15435: LIBS=$ac_func_search_save_LIBS
15436: fi
15437: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5
15438: $as_echo "$ac_cv_search_gethostent" >&6; }
15439: ac_res=$ac_cv_search_gethostent
15440: if test "$ac_res" != no; then :
15441: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15442:
15443: fi
15444:
15445: fi
15446:
15447: ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog"
15448: if test "x$ac_cv_func_openlog" = xyes; then :
15449:
15450: else
15451: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
15452: $as_echo_n "checking for library containing openlog... " >&6; }
15453: if ${ac_cv_search_openlog+:} false; then :
15454: $as_echo_n "(cached) " >&6
15455: else
15456: ac_func_search_save_LIBS=$LIBS
15457: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15458: /* end confdefs.h. */
15459:
15460: /* Override any GCC internal prototype to avoid an error.
15461: Use char because int might match the return type of a GCC
15462: builtin and then its argument prototype would still apply. */
15463: #ifdef __cplusplus
15464: extern "C"
15465: #endif
15466: char openlog ();
15467: int
15468: main ()
15469: {
15470: return openlog ();
15471: ;
15472: return 0;
15473: }
15474: _ACEOF
15475: for ac_lib in '' gen; do
15476: if test -z "$ac_lib"; then
15477: ac_res="none required"
15478: else
15479: ac_res=-l$ac_lib
15480: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15481: fi
15482: if ac_fn_c_try_link "$LINENO"; then :
15483: ac_cv_search_openlog=$ac_res
15484: fi
15485: rm -f core conftest.err conftest.$ac_objext \
15486: conftest$ac_exeext
15487: if ${ac_cv_search_openlog+:} false; then :
15488: break
15489: fi
15490: done
15491: if ${ac_cv_search_openlog+:} false; then :
15492:
15493: else
15494: ac_cv_search_openlog=no
15495: fi
15496: rm conftest.$ac_ext
15497: LIBS=$ac_func_search_save_LIBS
15498: fi
15499: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
15500: $as_echo "$ac_cv_search_openlog" >&6; }
15501: ac_res=$ac_cv_search_openlog
15502: if test "$ac_res" != no; then :
15503: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15504:
15505: else
15506: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
15507: $as_echo_n "checking for library containing openlog... " >&6; }
15508: if ${ac_cv_search_openlog+:} false; then :
15509: $as_echo_n "(cached) " >&6
15510: else
15511: ac_func_search_save_LIBS=$LIBS
15512: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15513: /* end confdefs.h. */
15514:
15515: /* Override any GCC internal prototype to avoid an error.
15516: Use char because int might match the return type of a GCC
15517: builtin and then its argument prototype would still apply. */
15518: #ifdef __cplusplus
15519: extern "C"
15520: #endif
15521: char openlog ();
15522: int
15523: main ()
15524: {
15525: return openlog ();
15526: ;
15527: return 0;
15528: }
15529: _ACEOF
15530: for ac_lib in '' syslog; do
15531: if test -z "$ac_lib"; then
15532: ac_res="none required"
15533: else
15534: ac_res=-l$ac_lib
15535: LIBS="-l$ac_lib $libxnet -lsocket $ac_func_search_save_LIBS"
15536: fi
15537: if ac_fn_c_try_link "$LINENO"; then :
15538: ac_cv_search_openlog=$ac_res
15539: fi
15540: rm -f core conftest.err conftest.$ac_objext \
15541: conftest$ac_exeext
15542: if ${ac_cv_search_openlog+:} false; then :
15543: break
15544: fi
15545: done
15546: if ${ac_cv_search_openlog+:} false; then :
15547:
15548: else
15549: ac_cv_search_openlog=no
15550: fi
15551: rm conftest.$ac_ext
15552: LIBS=$ac_func_search_save_LIBS
15553: fi
15554: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
15555: $as_echo "$ac_cv_search_openlog" >&6; }
15556: ac_res=$ac_cv_search_openlog
15557: if test "$ac_res" != no; then :
15558: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15559:
15560: fi
15561:
15562: fi
15563:
15564: fi
15565:
15566: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
15567: $as_echo_n "checking for library containing MD5Init... " >&6; }
15568: if ${ac_cv_search_MD5Init+:} false; then :
15569: $as_echo_n "(cached) " >&6
15570: else
15571: ac_func_search_save_LIBS=$LIBS
15572: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15573: /* end confdefs.h. */
15574:
15575: /* Override any GCC internal prototype to avoid an error.
15576: Use char because int might match the return type of a GCC
15577: builtin and then its argument prototype would still apply. */
15578: #ifdef __cplusplus
15579: extern "C"
15580: #endif
15581: char MD5Init ();
15582: int
15583: main ()
15584: {
15585: return MD5Init ();
15586: ;
15587: return 0;
15588: }
15589: _ACEOF
15590: for ac_lib in '' md5 md; do
15591: if test -z "$ac_lib"; then
15592: ac_res="none required"
15593: else
15594: ac_res=-l$ac_lib
15595: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15596: fi
15597: if ac_fn_c_try_link "$LINENO"; then :
15598: ac_cv_search_MD5Init=$ac_res
15599: fi
15600: rm -f core conftest.err conftest.$ac_objext \
15601: conftest$ac_exeext
15602: if ${ac_cv_search_MD5Init+:} false; then :
15603: break
15604: fi
15605: done
15606: if ${ac_cv_search_MD5Init+:} false; then :
15607:
15608: else
15609: ac_cv_search_MD5Init=no
15610: fi
15611: rm conftest.$ac_ext
15612: LIBS=$ac_func_search_save_LIBS
15613: fi
15614: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
15615: $as_echo "$ac_cv_search_MD5Init" >&6; }
15616: ac_res=$ac_cv_search_MD5Init
15617: if test "$ac_res" != no; then :
15618: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15619:
15620: fi
15621:
15622: for ac_func in MD5Init
15623: do :
15624: ac_fn_c_check_func "$LINENO" "MD5Init" "ac_cv_func_MD5Init"
15625: if test "x$ac_cv_func_MD5Init" = xyes; then :
15626: cat >>confdefs.h <<_ACEOF
15627: #define HAVE_MD5INIT 1
15628: _ACEOF
15629:
15630: fi
15631: done
15632:
15633:
15634:
15635: NTP_ORIG_LIBS="$LIBS"
15636:
15637: # Check whether --with-lineeditlibs was given.
15638: if test "${with_lineeditlibs+set}" = set; then :
15639: withval=$with_lineeditlibs; use_lineeditlibs="$withval"
15640: else
15641: use_lineeditlibs="edit,editline"
15642:
15643: fi
15644:
15645: { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
15646: $as_echo_n "checking line editing libraries... " >&6; }
15647: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
15648: $as_echo "$use_lineeditlibs" >&6; }
15649: case "$use_lineeditlibs" in
15650: no)
15651: ntp_lib_lineedit=no
15652: ;;
15653: *)
15654: for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
15655: for term_lib in "" termcap curses ncurses; do
15656: case "$term_lib" in
15657: '')
15658: TRY_LIB="-l$lineedit_lib"
15659: ;;
15660: *)
15661: TRY_LIB="-l$lineedit_lib -l$term_lib"
15662: ;;
15663: esac
15664: LIBS="$NTP_ORIG_LIBS $TRY_LIB"
15665: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
15666: $as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
15667: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15668: /* end confdefs.h. */
15669:
15670: /* Override any GCC internal prototype to avoid an error.
15671: Use char because int might match the return type of a GCC
15672: builtin and then its argument prototype would still apply. */
15673: #ifdef __cplusplus
15674: extern "C"
15675: #endif
15676: char readline ();
15677: int
15678: main ()
15679: {
15680: return readline ();
15681: ;
15682: return 0;
15683: }
15684: _ACEOF
15685: if ac_fn_c_try_link "$LINENO"; then :
15686: ntp_lib_lineedit="$TRY_LIB"
15687: fi
15688: rm -f core conftest.err conftest.$ac_objext \
15689: conftest$ac_exeext conftest.$ac_ext
15690: case "$ntp_lib_lineedit" in
15691: '')
15692: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15693: $as_echo "no" >&6; }
15694: ;;
15695: *)
15696: # Use readline()
15697: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15698: $as_echo "yes" >&6; }
15699: break
15700: esac
15701: case "$term_lib" in
15702: '')
15703: # do not try el_gets without a terminal library
15704: ;;
15705: *)
15706: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
15707: $as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
15708: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15709: /* end confdefs.h. */
15710:
15711: /* Override any GCC internal prototype to avoid an error.
15712: Use char because int might match the return type of a GCC
15713: builtin and then its argument prototype would still apply. */
15714: #ifdef __cplusplus
15715: extern "C"
15716: #endif
15717: char el_gets ();
15718: int
15719: main ()
15720: {
15721: return el_gets ();
15722: ;
15723: return 0;
15724: }
15725: _ACEOF
15726: if ac_fn_c_try_link "$LINENO"; then :
15727: ntp_lib_lineedit="$TRY_LIB"
15728: fi
15729: rm -f core conftest.err conftest.$ac_objext \
15730: conftest$ac_exeext conftest.$ac_ext
15731: case "$ntp_lib_lineedit" in
15732: '')
15733: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15734: $as_echo "no" >&6; }
15735: ;;
15736: *) # Use el_gets()
15737: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15738: $as_echo "yes" >&6; }
15739: break
15740: ;;
15741: esac # $ntp_lib_lineedit
15742: esac # $term_lib
15743: done
15744: case "$ntp_lib_lineedit" in
15745: '')
15746: ;;
15747: *)
15748: break
15749: ;;
15750: esac
15751: done
15752: LIBS="$NTP_ORIG_LIBS"
15753: ;;
15754: esac # $use_lineeditlibs
15755:
15756: case "$ntp_lib_lineedit" in
15757: '')
15758: ntp_lib_lineedit="no"
15759: ;;
15760: no)
15761: ;;
15762: *)
15763: EDITLINE_LIBS="$ntp_lib_lineedit"
15764:
15765: ;;
15766: esac # $ntp_lib_lineedit
15767:
15768: case "$ntp_lib_lineedit" in
15769: no)
15770: ;;
15771: *)
15772: for ac_header in readline.h readline/readline.h histedit.h
15773: do :
15774: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15775: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15776: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15777: cat >>confdefs.h <<_ACEOF
15778: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15779: _ACEOF
15780:
15781: fi
15782:
15783: done
15784:
15785: for ac_header in history.h readline/history.h
15786: do :
15787: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15788: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15789: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15790: cat >>confdefs.h <<_ACEOF
15791: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15792: _ACEOF
15793:
15794: fi
15795:
15796: done
15797:
15798:
15799: case "$ac_cv_header_histedit_h" in
15800: yes)
15801: { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
15802: $as_echo_n "checking number of arguments to el_init()... " >&6; }
15803: if ${ntp_cv_el_init_args+:} false; then :
15804: $as_echo_n "(cached) " >&6
15805: else
15806: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15807: /* end confdefs.h. */
15808:
15809: #include <stdio.h>
15810: #include <histedit.h>
15811:
15812: int
15813: main ()
15814: {
15815:
15816: el_init("conftest", stdin, stdout, stderr);
15817:
15818:
15819: ;
15820: return 0;
15821: }
15822: _ACEOF
15823: if ac_fn_c_try_compile "$LINENO"; then :
15824: ntp_cv_el_init_args=4
15825: else
15826: ntp_cv_el_init_args=3
15827:
15828: fi
15829: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15830:
15831: fi
15832: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
15833: $as_echo "$ntp_cv_el_init_args" >&6; }
15834:
15835: cat >>confdefs.h <<_ACEOF
15836: #define EL_INIT_ARGS $ntp_cv_el_init_args
15837: _ACEOF
15838:
15839: esac
15840:
15841: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
15842: $as_echo_n "checking whether readline supports history... " >&6; }
15843:
15844: ntp_lib_lineedit_history="no"
15845: ORIG_LIBS="$LIBS"
15846: LIBS="$ORIG_LIBS $ntp_lib_lineedit"
15847: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15848: /* end confdefs.h. */
15849:
15850: /* Override any GCC internal prototype to avoid an error.
15851: Use char because int might match the return type of a GCC
15852: builtin and then its argument prototype would still apply. */
15853: #ifdef __cplusplus
15854: extern "C"
15855: #endif
15856: char add_history ();
15857: int
15858: main ()
15859: {
15860: return add_history ();
15861: ;
15862: return 0;
15863: }
15864: _ACEOF
15865: if ac_fn_c_try_link "$LINENO"; then :
15866: ntp_lib_lineedit_history="yes"
15867: fi
15868: rm -f core conftest.err conftest.$ac_objext \
15869: conftest$ac_exeext conftest.$ac_ext
15870: LIBS="$ORIG_LIBS"
15871:
15872: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
15873: $as_echo "$ntp_lib_lineedit_history" >&6; }
15874:
15875: case "$ntp_lib_lineedit_history" in
15876: yes)
15877:
15878: $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
15879:
15880: esac
15881: esac # $ntp_lib_lineedit
15882: { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
15883: { ORIG_LIBS=; unset ORIG_LIBS;}
15884: { TRY_LIB=; unset TRY_LIB;}
15885: { use_lineeditlibs=; unset use_lineeditlibs;}
15886:
15887:
15888:
15889: case "$host" in
15890: *-*-*linux*) ;;
15891: *-*-osf4*) ;;
15892: *-*-osf5*) ;;
15893: *)
15894: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setscheduler in -lrt" >&5
15895: $as_echo_n "checking for sched_setscheduler in -lrt... " >&6; }
15896: if ${ac_cv_lib_rt_sched_setscheduler+:} false; then :
15897: $as_echo_n "(cached) " >&6
15898: else
15899: ac_check_lib_save_LIBS=$LIBS
15900: LIBS="-lrt $LIBS"
15901: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15902: /* end confdefs.h. */
15903:
15904: /* Override any GCC internal prototype to avoid an error.
15905: Use char because int might match the return type of a GCC
15906: builtin and then its argument prototype would still apply. */
15907: #ifdef __cplusplus
15908: extern "C"
15909: #endif
15910: char sched_setscheduler ();
15911: int
15912: main ()
15913: {
15914: return sched_setscheduler ();
15915: ;
15916: return 0;
15917: }
15918: _ACEOF
15919: if ac_fn_c_try_link "$LINENO"; then :
15920: ac_cv_lib_rt_sched_setscheduler=yes
15921: else
15922: ac_cv_lib_rt_sched_setscheduler=no
15923: fi
15924: rm -f core conftest.err conftest.$ac_objext \
15925: conftest$ac_exeext conftest.$ac_ext
15926: LIBS=$ac_check_lib_save_LIBS
15927: fi
15928: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_setscheduler" >&5
15929: $as_echo "$ac_cv_lib_rt_sched_setscheduler" >&6; }
15930: if test "x$ac_cv_lib_rt_sched_setscheduler" = xyes; then :
15931: cat >>confdefs.h <<_ACEOF
15932: #define HAVE_LIBRT 1
15933: _ACEOF
15934:
15935: LIBS="-lrt $LIBS"
15936:
15937: else
15938: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setscheduler in -lposix4" >&5
15939: $as_echo_n "checking for sched_setscheduler in -lposix4... " >&6; }
15940: if ${ac_cv_lib_posix4_sched_setscheduler+:} false; then :
15941: $as_echo_n "(cached) " >&6
15942: else
15943: ac_check_lib_save_LIBS=$LIBS
15944: LIBS="-lposix4 $LIBS"
15945: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15946: /* end confdefs.h. */
15947:
15948: /* Override any GCC internal prototype to avoid an error.
15949: Use char because int might match the return type of a GCC
15950: builtin and then its argument prototype would still apply. */
15951: #ifdef __cplusplus
15952: extern "C"
15953: #endif
15954: char sched_setscheduler ();
15955: int
15956: main ()
15957: {
15958: return sched_setscheduler ();
15959: ;
15960: return 0;
15961: }
15962: _ACEOF
15963: if ac_fn_c_try_link "$LINENO"; then :
15964: ac_cv_lib_posix4_sched_setscheduler=yes
15965: else
15966: ac_cv_lib_posix4_sched_setscheduler=no
15967: fi
15968: rm -f core conftest.err conftest.$ac_objext \
15969: conftest$ac_exeext conftest.$ac_ext
15970: LIBS=$ac_check_lib_save_LIBS
15971: fi
15972: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_setscheduler" >&5
15973: $as_echo "$ac_cv_lib_posix4_sched_setscheduler" >&6; }
15974: if test "x$ac_cv_lib_posix4_sched_setscheduler" = xyes; then :
15975: cat >>confdefs.h <<_ACEOF
15976: #define HAVE_LIBPOSIX4 1
15977: _ACEOF
15978:
15979: LIBS="-lposix4 $LIBS"
15980:
15981: fi
15982:
15983: fi
15984:
15985: ;;
15986: esac
15987:
15988: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
15989: $as_echo_n "checking for library containing setsockopt... " >&6; }
15990: if ${ac_cv_search_setsockopt+:} false; then :
15991: $as_echo_n "(cached) " >&6
15992: else
15993: ac_func_search_save_LIBS=$LIBS
15994: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15995: /* end confdefs.h. */
15996:
15997: /* Override any GCC internal prototype to avoid an error.
15998: Use char because int might match the return type of a GCC
15999: builtin and then its argument prototype would still apply. */
16000: #ifdef __cplusplus
16001: extern "C"
16002: #endif
16003: char setsockopt ();
16004: int
16005: main ()
16006: {
16007: return setsockopt ();
16008: ;
16009: return 0;
16010: }
16011: _ACEOF
16012: for ac_lib in '' socket xnet; do
16013: if test -z "$ac_lib"; then
16014: ac_res="none required"
16015: else
16016: ac_res=-l$ac_lib
16017: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16018: fi
16019: if ac_fn_c_try_link "$LINENO"; then :
16020: ac_cv_search_setsockopt=$ac_res
16021: fi
16022: rm -f core conftest.err conftest.$ac_objext \
16023: conftest$ac_exeext
16024: if ${ac_cv_search_setsockopt+:} false; then :
16025: break
16026: fi
16027: done
16028: if ${ac_cv_search_setsockopt+:} false; then :
16029:
16030: else
16031: ac_cv_search_setsockopt=no
16032: fi
16033: rm conftest.$ac_ext
16034: LIBS=$ac_func_search_save_LIBS
16035: fi
16036: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
16037: $as_echo "$ac_cv_search_setsockopt" >&6; }
16038: ac_res=$ac_cv_search_setsockopt
16039: if test "$ac_res" != no; then :
16040: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16041:
16042: fi
16043:
16044: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
16045: $as_echo_n "checking for library containing res_init... " >&6; }
16046: if ${ac_cv_search_res_init+:} false; then :
16047: $as_echo_n "(cached) " >&6
16048: else
16049: ac_func_search_save_LIBS=$LIBS
16050: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16051: /* end confdefs.h. */
16052:
16053: /* Override any GCC internal prototype to avoid an error.
16054: Use char because int might match the return type of a GCC
16055: builtin and then its argument prototype would still apply. */
16056: #ifdef __cplusplus
16057: extern "C"
16058: #endif
16059: char res_init ();
16060: int
16061: main ()
16062: {
16063: return res_init ();
16064: ;
16065: return 0;
16066: }
16067: _ACEOF
16068: for ac_lib in '' resolv; do
16069: if test -z "$ac_lib"; then
16070: ac_res="none required"
16071: else
16072: ac_res=-l$ac_lib
16073: LIBS="-l$ac_lib -lsocket -lnsl $ac_func_search_save_LIBS"
16074: fi
16075: if ac_fn_c_try_link "$LINENO"; then :
16076: ac_cv_search_res_init=$ac_res
16077: fi
16078: rm -f core conftest.err conftest.$ac_objext \
16079: conftest$ac_exeext
16080: if ${ac_cv_search_res_init+:} false; then :
16081: break
16082: fi
16083: done
16084: if ${ac_cv_search_res_init+:} false; then :
16085:
16086: else
16087: ac_cv_search_res_init=no
16088: fi
16089: rm conftest.$ac_ext
16090: LIBS=$ac_func_search_save_LIBS
16091: fi
16092: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
16093: $as_echo "$ac_cv_search_res_init" >&6; }
16094: ac_res=$ac_cv_search_res_init
16095: if test "$ac_res" != no; then :
16096: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16097:
16098: fi
16099:
16100: case "$host" in
16101: *-*-darwin*)
16102: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_9_init in -lresolv" >&5
16103: $as_echo_n "checking for res_9_init in -lresolv... " >&6; }
16104: if ${ac_cv_lib_resolv_res_9_init+:} false; then :
16105: $as_echo_n "(cached) " >&6
16106: else
16107: ac_check_lib_save_LIBS=$LIBS
16108: LIBS="-lresolv $LIBS"
16109: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16110: /* end confdefs.h. */
16111:
16112: /* Override any GCC internal prototype to avoid an error.
16113: Use char because int might match the return type of a GCC
16114: builtin and then its argument prototype would still apply. */
16115: #ifdef __cplusplus
16116: extern "C"
16117: #endif
16118: char res_9_init ();
16119: int
16120: main ()
16121: {
16122: return res_9_init ();
16123: ;
16124: return 0;
16125: }
16126: _ACEOF
16127: if ac_fn_c_try_link "$LINENO"; then :
16128: ac_cv_lib_resolv_res_9_init=yes
16129: else
16130: ac_cv_lib_resolv_res_9_init=no
16131: fi
16132: rm -f core conftest.err conftest.$ac_objext \
16133: conftest$ac_exeext conftest.$ac_ext
16134: LIBS=$ac_check_lib_save_LIBS
16135: fi
16136: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_9_init" >&5
16137: $as_echo "$ac_cv_lib_resolv_res_9_init" >&6; }
16138: if test "x$ac_cv_lib_resolv_res_9_init" = xyes; then :
16139: cat >>confdefs.h <<_ACEOF
16140: #define HAVE_LIBRESOLV 1
16141: _ACEOF
16142:
16143: LIBS="-lresolv $LIBS"
16144:
16145: fi
16146:
16147: ;;
16148: esac
16149: for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
16150: do :
16151: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16152: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
16153: # include <sys/types.h>
16154: #endif
16155: #ifdef HAVE_NETINET_IN_H
16156: # include <netinet/in.h> /* inet_ functions / structs */
16157: #endif
16158: #ifdef HAVE_ARPA_NAMESER_H
16159: # include <arpa/nameser.h> /* DNS HEADER struct */
16160: #endif
16161: #ifdef HAVE_NETDB_H
16162: # include <netdb.h>
16163: #endif
16164: "
16165: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16166: cat >>confdefs.h <<_ACEOF
16167: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16168: _ACEOF
16169:
16170: fi
16171:
16172: done
16173:
16174:
16175: for ac_func in res_init __res_init
16176: do :
16177: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16178: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16179: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16180: cat >>confdefs.h <<_ACEOF
16181: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16182: _ACEOF
16183:
16184: fi
16185: done
16186:
16187:
16188: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16189: $as_echo_n "checking for ANSI C header files... " >&6; }
16190: if ${ac_cv_header_stdc+:} false; then :
16191: $as_echo_n "(cached) " >&6
16192: else
16193: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16194: /* end confdefs.h. */
16195: #include <stdlib.h>
16196: #include <stdarg.h>
16197: #include <string.h>
16198: #include <float.h>
16199:
16200: int
16201: main ()
16202: {
16203:
16204: ;
16205: return 0;
16206: }
16207: _ACEOF
16208: if ac_fn_c_try_compile "$LINENO"; then :
16209: ac_cv_header_stdc=yes
16210: else
16211: ac_cv_header_stdc=no
16212: fi
16213: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16214:
16215: if test $ac_cv_header_stdc = yes; then
16216: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16217: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16218: /* end confdefs.h. */
16219: #include <string.h>
16220:
16221: _ACEOF
16222: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16223: $EGREP "memchr" >/dev/null 2>&1; then :
16224:
16225: else
16226: ac_cv_header_stdc=no
16227: fi
16228: rm -f conftest*
16229:
16230: fi
16231:
16232: if test $ac_cv_header_stdc = yes; then
16233: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16234: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16235: /* end confdefs.h. */
16236: #include <stdlib.h>
16237:
16238: _ACEOF
16239: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16240: $EGREP "free" >/dev/null 2>&1; then :
16241:
16242: else
16243: ac_cv_header_stdc=no
16244: fi
16245: rm -f conftest*
16246:
16247: fi
16248:
16249: if test $ac_cv_header_stdc = yes; then
16250: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16251: if test "$cross_compiling" = yes; then :
16252: :
16253: else
16254: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16255: /* end confdefs.h. */
16256: #include <ctype.h>
16257: #include <stdlib.h>
16258: #if ((' ' & 0x0FF) == 0x020)
16259: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16260: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16261: #else
16262: # define ISLOWER(c) \
16263: (('a' <= (c) && (c) <= 'i') \
16264: || ('j' <= (c) && (c) <= 'r') \
16265: || ('s' <= (c) && (c) <= 'z'))
16266: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16267: #endif
16268:
16269: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16270: int
16271: main ()
16272: {
16273: int i;
16274: for (i = 0; i < 256; i++)
16275: if (XOR (islower (i), ISLOWER (i))
16276: || toupper (i) != TOUPPER (i))
16277: return 2;
16278: return 0;
16279: }
16280: _ACEOF
16281: if ac_fn_c_try_run "$LINENO"; then :
16282:
16283: else
16284: ac_cv_header_stdc=no
16285: fi
16286: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16287: conftest.$ac_objext conftest.beam conftest.$ac_ext
16288: fi
16289:
16290: fi
16291: fi
16292: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16293: $as_echo "$ac_cv_header_stdc" >&6; }
16294: if test $ac_cv_header_stdc = yes; then
16295:
16296: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16297:
16298: fi
16299:
16300: for ac_header in bstring.h
16301: do :
16302: ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
16303: if test "x$ac_cv_header_bstring_h" = xyes; then :
16304: cat >>confdefs.h <<_ACEOF
16305: #define HAVE_BSTRING_H 1
16306: _ACEOF
16307:
16308: fi
16309:
16310: done
16311:
16312: ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
16313: if test "x$ac_cv_header_dns_sd_h" = xyes; then :
16314: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DNSServiceRegister in -ldns_sd" >&5
16315: $as_echo_n "checking for DNSServiceRegister in -ldns_sd... " >&6; }
16316: if ${ac_cv_lib_dns_sd_DNSServiceRegister+:} false; then :
16317: $as_echo_n "(cached) " >&6
16318: else
16319: ac_check_lib_save_LIBS=$LIBS
16320: LIBS="-ldns_sd $LIBS"
16321: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16322: /* end confdefs.h. */
16323:
16324: /* Override any GCC internal prototype to avoid an error.
16325: Use char because int might match the return type of a GCC
16326: builtin and then its argument prototype would still apply. */
16327: #ifdef __cplusplus
16328: extern "C"
16329: #endif
16330: char DNSServiceRegister ();
16331: int
16332: main ()
16333: {
16334: return DNSServiceRegister ();
16335: ;
16336: return 0;
16337: }
16338: _ACEOF
16339: if ac_fn_c_try_link "$LINENO"; then :
16340: ac_cv_lib_dns_sd_DNSServiceRegister=yes
16341: else
16342: ac_cv_lib_dns_sd_DNSServiceRegister=no
16343: fi
16344: rm -f core conftest.err conftest.$ac_objext \
16345: conftest$ac_exeext conftest.$ac_ext
16346: LIBS=$ac_check_lib_save_LIBS
16347: fi
16348: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dns_sd_DNSServiceRegister" >&5
16349: $as_echo "$ac_cv_lib_dns_sd_DNSServiceRegister" >&6; }
16350: if test "x$ac_cv_lib_dns_sd_DNSServiceRegister" = xyes; then :
16351:
16352: $as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h
16353:
16354:
16355: fi
16356:
16357:
16358: fi
16359:
16360:
16361: case "$ac_cv_lib_dns_sd_DNSServiceRegister" in
16362: yes)
16363: LIBS="-ldns_sd $LIBS"
16364: esac
16365: for ac_header in errno.h fcntl.h ieeefp.h kvm.h math.h
16366: do :
16367: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16368: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16369: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16370: cat >>confdefs.h <<_ACEOF
16371: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16372: _ACEOF
16373:
16374: fi
16375:
16376: done
16377:
16378:
16379: for ac_header in md5.h
16380: do :
16381: ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
16382: #ifdef HAVE_SYS_TYPES_H
16383: # include <sys/types.h>
16384: #endif
16385:
16386:
16387: "
16388: if test "x$ac_cv_header_md5_h" = xyes; then :
16389: cat >>confdefs.h <<_ACEOF
16390: #define HAVE_MD5_H 1
16391: _ACEOF
16392:
16393: fi
16394:
16395: done
16396:
16397: for ac_header in memory.h netdb.h poll.h
16398: do :
16399: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16400: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16401: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16402: cat >>confdefs.h <<_ACEOF
16403: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16404: _ACEOF
16405:
16406: fi
16407:
16408: done
16409:
16410: for ac_header in sgtty.h stdlib.h string.h termio.h
16411: do :
16412: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16413: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16414: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16415: cat >>confdefs.h <<_ACEOF
16416: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16417: _ACEOF
16418:
16419: fi
16420:
16421: done
16422:
16423: for ac_header in termios.h timepps.h timex.h unistd.h
16424: do :
16425: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16426: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16427: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16428: cat >>confdefs.h <<_ACEOF
16429: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16430: _ACEOF
16431:
16432: fi
16433:
16434: done
16435:
16436:
16437: case "$host" in
16438: *-*-aix*)
16439: for ac_header in utmpx.h
16440: do :
16441: ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
16442: if test "x$ac_cv_header_utmpx_h" = xyes; then :
16443: cat >>confdefs.h <<_ACEOF
16444: #define HAVE_UTMPX_H 1
16445: _ACEOF
16446:
16447: fi
16448:
16449: done
16450:
16451: case "$ac_cv_header_utmpx_h" in
16452: yes)
16453: ;;
16454: *)
16455: for ac_header in utmp.h
16456: do :
16457: ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
16458: if test "x$ac_cv_header_utmp_h" = xyes; then :
16459: cat >>confdefs.h <<_ACEOF
16460: #define HAVE_UTMP_H 1
16461: _ACEOF
16462:
16463: fi
16464:
16465: done
16466:
16467: ;;
16468: esac
16469: ;;
16470: *)
16471: for ac_header in utmp.h utmpx.h
16472: do :
16473: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16474: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16475: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16476: cat >>confdefs.h <<_ACEOF
16477: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16478: _ACEOF
16479:
16480: fi
16481:
16482: done
16483:
16484: ;;
16485: esac
16486:
16487: #
16488: # On Suns only (so far) getpass() truncates the typed password to 8
16489: # characters, but getpassphrase() allows up to 257. Most systems'
16490: # getpass() does not truncate, at least not so as to affect ntpq and
16491: # ntpdc password prompts.
16492: #
16493: # So check for getpassphrase(), but only on Sun operating systems.
16494: #
16495: case "$host" in
16496: *-*-sunos*|*-*-solaris*)
16497: for ac_func in getpassphrase
16498: do :
16499: ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
16500: if test "x$ac_cv_func_getpassphrase" = xyes; then :
16501: cat >>confdefs.h <<_ACEOF
16502: #define HAVE_GETPASSPHRASE 1
16503: _ACEOF
16504:
16505: fi
16506: done
16507:
16508: esac
16509:
16510: for ac_header in arpa/nameser.h
16511: do :
16512: ac_fn_c_check_header_mongrel "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "$ac_includes_default"
16513: if test "x$ac_cv_header_arpa_nameser_h" = xyes; then :
16514: cat >>confdefs.h <<_ACEOF
16515: #define HAVE_ARPA_NAMESER_H 1
16516: _ACEOF
16517:
16518: fi
16519:
16520: done
16521:
16522: for ac_header in sys/socket.h
16523: do :
16524: ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
16525: if test "x$ac_cv_header_sys_socket_h" = xyes; then :
16526: cat >>confdefs.h <<_ACEOF
16527: #define HAVE_SYS_SOCKET_H 1
16528: _ACEOF
16529:
16530: fi
16531:
16532: done
16533:
16534:
16535: #
16536: case "$host" in
16537: *-hp-hpux*)
16538: for ac_header in net/netmp.h
16539: do :
16540: ac_fn_c_check_header_mongrel "$LINENO" "net/netmp.h" "ac_cv_header_net_netmp_h" "$ac_includes_default"
16541: if test "x$ac_cv_header_net_netmp_h" = xyes; then :
16542: cat >>confdefs.h <<_ACEOF
16543: #define HAVE_NET_NETMP_H 1
16544: _ACEOF
16545: netmp_h_works=yes
16546: else
16547: netmp_h_works=no
16548:
16549: fi
16550:
16551: done
16552:
16553: case "$netmp_h_works" in
16554: no)
16555: cat >>confdefs.h <<_ACEOF
16556: #ifndef MPINFOU_PREDECLARED
16557: # define MPINFOU_PREDECLARED
16558: typedef union mpinfou { /* For lint */
16559: struct pdk_mpinfo *pdkptr;
16560: struct mpinfo *pikptr;
16561: } mpinfou_t;
16562: #endif
16563: _ACEOF
16564:
16565: ;;
16566: esac
16567: ;;
16568: esac
16569:
16570: case "$host" in
16571: *-linux*)
16572: for ac_header in linux/if_addr.h
16573: do :
16574: ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
16575: #ifdef HAVE_SYS_SOCKET_H
16576: # include <sys/socket.h>
16577: #endif
16578:
16579: "
16580: if test "x$ac_cv_header_linux_if_addr_h" = xyes; then :
16581: cat >>confdefs.h <<_ACEOF
16582: #define HAVE_LINUX_IF_ADDR_H 1
16583: _ACEOF
16584:
16585: fi
16586:
16587: done
16588:
16589: esac
16590:
16591: for ac_header in net/if.h
16592: do :
16593: ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
16594: #include <sys/socket.h>
16595: #endif
16596:
16597: "
16598: if test "x$ac_cv_header_net_if_h" = xyes; then :
16599: cat >>confdefs.h <<_ACEOF
16600: #define HAVE_NET_IF_H 1
16601: _ACEOF
16602:
16603: fi
16604:
16605: done
16606:
16607: for ac_header in net/if6.h
16608: do :
16609: ac_fn_c_check_header_mongrel "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default"
16610: if test "x$ac_cv_header_net_if6_h" = xyes; then :
16611: cat >>confdefs.h <<_ACEOF
16612: #define HAVE_NET_IF6_H 1
16613: _ACEOF
16614:
16615: fi
16616:
16617: done
16618:
16619: for ac_header in net/route.h
16620: do :
16621: ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
16622: #include <sys/types.h>
16623: #include <sys/socket.h>
16624: #include <net/if.h>
16625:
16626: "
16627: if test "x$ac_cv_header_net_route_h" = xyes; then :
16628: cat >>confdefs.h <<_ACEOF
16629: #define HAVE_NET_ROUTE_H 1
16630: _ACEOF
16631:
16632: fi
16633:
16634: done
16635:
16636: for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h
16637: do :
16638: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16639: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16640: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16641: cat >>confdefs.h <<_ACEOF
16642: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16643: _ACEOF
16644:
16645: fi
16646:
16647: done
16648:
16649: for ac_header in net/if_var.h
16650: do :
16651: ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "#if HAVE_SYS_TYPES_H
16652: #include <sys/types.h>
16653: #endif
16654: #ifdef HAVE_SYS_SOCKET_H
16655: #include <sys/socket.h>
16656: #endif
16657: #ifdef HAVE_NETINET_IN_H
16658: #include <netinet/in.h>
16659: #endif
16660: #ifdef HAVE_NET_IF_H
16661: #include <net/if.h>
16662: #endif
16663:
16664: "
16665: if test "x$ac_cv_header_net_if_var_h" = xyes; then :
16666: cat >>confdefs.h <<_ACEOF
16667: #define HAVE_NET_IF_VAR_H 1
16668: _ACEOF
16669:
16670: fi
16671:
16672: done
16673:
16674: for ac_header in netinet/ip.h netinet/in_var.h
16675: do :
16676: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16677: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
16678: #include <sys/types.h>
16679: #endif
16680: #ifdef HAVE_SYS_SOCKET_H
16681: #include <sys/socket.h>
16682: #endif
16683: #ifdef HAVE_NET_IF_H
16684: #include <net/if.h>
16685: #endif
16686: #ifdef HAVE_NETINET_IN_H
16687: #include <netinet/in.h>
16688: #endif
16689: #ifdef HAVE_NET_IF_VAR_H
16690: #include <net/if_var.h>
16691: #endif
16692: #ifdef HAVE_NETINET_IN_SYSTM_H
16693: #include <netinet/in_systm.h>
16694: #endif
16695:
16696: "
16697: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16698: cat >>confdefs.h <<_ACEOF
16699: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16700: _ACEOF
16701:
16702: fi
16703:
16704: done
16705:
16706:
16707: # Check for IPTOS_PREC
16708: { $as_echo "$as_me:${as_lineno-$LINENO}: checking IPPROTO_IP IP_TOS IPTOS_LOWDELAY" >&5
16709: $as_echo_n "checking IPPROTO_IP IP_TOS IPTOS_LOWDELAY... " >&6; }
16710: if ${ntp_cv_ip_tos+:} false; then :
16711: $as_echo_n "(cached) " >&6
16712: else
16713: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16714: /* end confdefs.h. */
16715:
16716: #ifdef HAVE_SYS_TYPES_H
16717: # include <sys/types.h>
16718: #endif
16719: #ifdef HAVE_NETINET_IP_H
16720: # include <netinet/in.h>
16721: # include <netinet/ip.h>
16722: #endif
16723: #if defined(IPPROTO_IP) && defined(IP_TOS) && defined(IPTOS_LOWDELAY)
16724: yes
16725: #endif
16726:
16727: _ACEOF
16728: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16729: $EGREP "yes" >/dev/null 2>&1; then :
16730: ntp_cv_ip_tos=yes
16731: else
16732: ntp_cv_ip_tos=no
16733:
16734: fi
16735: rm -f conftest*
16736:
16737:
16738: fi
16739: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_ip_tos" >&5
16740: $as_echo "$ntp_cv_ip_tos" >&6; }
16741: case "$ntp_cv_ip_tos" in
16742: yes)
16743:
16744: $as_echo "#define HAVE_IPTOS_SUPPORT 1" >>confdefs.h
16745:
16746: esac
16747:
16748: for ac_header in netinfo/ni.h
16749: do :
16750: ac_fn_c_check_header_mongrel "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default"
16751: if test "x$ac_cv_header_netinfo_ni_h" = xyes; then :
16752: cat >>confdefs.h <<_ACEOF
16753: #define HAVE_NETINFO_NI_H 1
16754: _ACEOF
16755:
16756: fi
16757:
16758: done
16759:
16760: case "$ac_cv_header_netinfo_ni_h" in
16761: yes)
16762:
16763: $as_echo "#define HAVE_NETINFO 1" >>confdefs.h
16764:
16765: esac
16766: for ac_header in sun/audioio.h sys/audioio.h
16767: do :
16768: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16769: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16770: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16771: cat >>confdefs.h <<_ACEOF
16772: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16773: _ACEOF
16774:
16775: fi
16776:
16777: done
16778:
16779: for ac_header in sys/clkdefs.h sys/file.h
16780: do :
16781: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16782: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16783: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16784: cat >>confdefs.h <<_ACEOF
16785: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16786: _ACEOF
16787:
16788: fi
16789:
16790: done
16791:
16792: case "$host" in
16793: *-*-sunos4*)
16794: ;;
16795: *)
16796: for ac_header in sys/ioctl.h
16797: do :
16798: ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
16799: if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
16800: cat >>confdefs.h <<_ACEOF
16801: #define HAVE_SYS_IOCTL_H 1
16802: _ACEOF
16803:
16804: fi
16805:
16806: done
16807:
16808: ;;
16809: esac
16810: for ac_header in sys/ipc.h sys/lock.h sys/mman.h
16811: do :
16812: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16813: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16814: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16815: cat >>confdefs.h <<_ACEOF
16816: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16817: _ACEOF
16818:
16819: fi
16820:
16821: done
16822:
16823: for ac_header in sys/modem.h sys/param.h sys/ppsclock.h
16824: do :
16825: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16826: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16827: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16828: cat >>confdefs.h <<_ACEOF
16829: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16830: _ACEOF
16831:
16832: fi
16833:
16834: done
16835:
16836: # HMS: Check sys/proc.h and sys/resource.h after some others
16837: for ac_header in sys/ppstime.h sched.h
16838: do :
16839: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16840: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16841: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16842: cat >>confdefs.h <<_ACEOF
16843: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16844: _ACEOF
16845:
16846: fi
16847:
16848: done
16849:
16850: case "$ac_cv_header_sched_h" in
16851: yes)
16852: ;;
16853: *)
16854: for ac_header in sys/sched.h
16855: do :
16856: ac_fn_c_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default"
16857: if test "x$ac_cv_header_sys_sched_h" = xyes; then :
16858: cat >>confdefs.h <<_ACEOF
16859: #define HAVE_SYS_SCHED_H 1
16860: _ACEOF
16861:
16862: fi
16863:
16864: done
16865:
16866: ;;
16867: esac
16868: case "$host" in
16869: *-*-sco*)
16870: for ac_header in sys/sio.h
16871: do :
16872: ac_fn_c_check_header_mongrel "$LINENO" "sys/sio.h" "ac_cv_header_sys_sio_h" "$ac_includes_default"
16873: if test "x$ac_cv_header_sys_sio_h" = xyes; then :
16874: cat >>confdefs.h <<_ACEOF
16875: #define HAVE_SYS_SIO_H 1
16876: _ACEOF
16877:
16878: fi
16879:
16880: done
16881:
16882: ;;
16883: esac
16884: # HMS: Check sys/shm.h after some others
16885: for ac_header in sys/select.h sys/signal.h sys/sockio.h
16886: do :
16887: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16888: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16889: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16890: cat >>confdefs.h <<_ACEOF
16891: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16892: _ACEOF
16893:
16894: fi
16895:
16896: done
16897:
16898: # HMS: Checked sys/socket.h earlier
16899: case "$host" in
16900: *-*-netbsd*)
16901: ;;
16902: *)
16903: for ac_header in machine/soundcard.h sys/soundcard.h
16904: do :
16905: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16906: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16907: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16908: cat >>confdefs.h <<_ACEOF
16909: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16910: _ACEOF
16911:
16912: fi
16913:
16914: done
16915:
16916: ;;
16917: esac
16918: for ac_header in sys/stat.h sys/stream.h sys/stropts.h
16919: do :
16920: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16921: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16922: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16923: cat >>confdefs.h <<_ACEOF
16924: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16925: _ACEOF
16926:
16927: fi
16928:
16929: done
16930:
16931: # sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
16932: for ac_header in sys/sysctl.h
16933: do :
16934: ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H
16935: # include <sys/param.h>
16936: #endif
16937: "
16938: if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
16939: cat >>confdefs.h <<_ACEOF
16940: #define HAVE_SYS_SYSCTL_H 1
16941: _ACEOF
16942:
16943: fi
16944:
16945: done
16946:
16947: for ac_header in sys/syssgi.h sys/systune.h
16948: do :
16949: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16950: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16951: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16952: cat >>confdefs.h <<_ACEOF
16953: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16954: _ACEOF
16955:
16956: fi
16957:
16958: done
16959:
16960: for ac_header in sys/termios.h sys/time.h sys/signal.h
16961: do :
16962: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16963: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16964: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16965: cat >>confdefs.h <<_ACEOF
16966: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16967: _ACEOF
16968:
16969: fi
16970:
16971: done
16972:
16973: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16974: /* end confdefs.h. */
16975:
16976: #ifdef HAVE_SYS_TIME_H
16977: # include <sys/time.h>
16978: #endif
16979: #ifdef HAVE_ERRNO_H
16980: # include <errno.h>
16981: #endif
16982: #include <sys/timepps.h>
16983: #ifdef PPS_API_VERS_1
16984: yes
16985: #endif
16986:
16987: _ACEOF
16988: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16989: $EGREP "yes" >/dev/null 2>&1; then :
16990: for ac_header in sys/timepps.h
16991: do :
16992: ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
16993: #ifdef HAVE_SYS_TIME_H
16994: # include <sys/time.h>
16995: #endif
16996: #ifdef HAVE_ERRNO_H
16997: # include <errno.h>
16998: #endif
16999:
17000:
17001: "
17002: if test "x$ac_cv_header_sys_timepps_h" = xyes; then :
17003: cat >>confdefs.h <<_ACEOF
17004: #define HAVE_SYS_TIMEPPS_H 1
17005: _ACEOF
17006:
17007: fi
17008:
17009: done
17010:
17011:
17012: fi
17013: rm -f conftest*
17014:
17015: for ac_header in sys/timers.h sys/tpro.h sys/types.h sys/wait.h
17016: do :
17017: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17018: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17019: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17020: cat >>confdefs.h <<_ACEOF
17021: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17022: _ACEOF
17023:
17024: fi
17025:
17026: done
17027:
17028: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
17029: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
17030: if ${ac_cv_header_time+:} false; then :
17031: $as_echo_n "(cached) " >&6
17032: else
17033: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17034: /* end confdefs.h. */
17035: #include <sys/types.h>
17036: #include <sys/time.h>
17037: #include <time.h>
17038:
17039: int
17040: main ()
17041: {
17042: if ((struct tm *) 0)
17043: return 0;
17044: ;
17045: return 0;
17046: }
17047: _ACEOF
17048: if ac_fn_c_try_compile "$LINENO"; then :
17049: ac_cv_header_time=yes
17050: else
17051: ac_cv_header_time=no
17052: fi
17053: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17054: fi
17055: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
17056: $as_echo "$ac_cv_header_time" >&6; }
17057: if test $ac_cv_header_time = yes; then
17058:
17059: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
17060:
17061: fi
17062:
17063: case "$host" in
17064: *-convex-*)
17065: for ac_header in /sys/sync/queue.h /sys/sync/sema.h
17066: do :
17067: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17068: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17069: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17070: cat >>confdefs.h <<_ACEOF
17071: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17072: _ACEOF
17073:
17074: fi
17075:
17076: done
17077:
17078: ;;
17079: *-*-bsdi*)
17080: for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
17081: do :
17082: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17083: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17084: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17085: cat >>confdefs.h <<_ACEOF
17086: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17087: _ACEOF
17088:
17089: fi
17090:
17091: done
17092:
17093: ;;
17094: esac
17095:
17096: case "$host" in
17097: *-*-*linux*)
17098: for ac_func in __adjtimex __ntp_gettime
17099: do :
17100: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17101: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17102: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17103: cat >>confdefs.h <<_ACEOF
17104: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17105: _ACEOF
17106:
17107: fi
17108: done
17109:
17110: ;;
17111: esac
17112: case "$ac_cv_func___adjtimex" in
17113: yes)
17114: ;;
17115: *)
17116: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5
17117: $as_echo_n "checking for nlist in -lelf... " >&6; }
17118: if ${ac_cv_lib_elf_nlist+:} false; then :
17119: $as_echo_n "(cached) " >&6
17120: else
17121: ac_check_lib_save_LIBS=$LIBS
17122: LIBS="-lelf $LIBS"
17123: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17124: /* end confdefs.h. */
17125:
17126: /* Override any GCC internal prototype to avoid an error.
17127: Use char because int might match the return type of a GCC
17128: builtin and then its argument prototype would still apply. */
17129: #ifdef __cplusplus
17130: extern "C"
17131: #endif
17132: char nlist ();
17133: int
17134: main ()
17135: {
17136: return nlist ();
17137: ;
17138: return 0;
17139: }
17140: _ACEOF
17141: if ac_fn_c_try_link "$LINENO"; then :
17142: ac_cv_lib_elf_nlist=yes
17143: else
17144: ac_cv_lib_elf_nlist=no
17145: fi
17146: rm -f core conftest.err conftest.$ac_objext \
17147: conftest$ac_exeext conftest.$ac_ext
17148: LIBS=$ac_check_lib_save_LIBS
17149: fi
17150: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5
17151: $as_echo "$ac_cv_lib_elf_nlist" >&6; }
17152: if test "x$ac_cv_lib_elf_nlist" = xyes; then :
17153: cat >>confdefs.h <<_ACEOF
17154: #define HAVE_LIBELF 1
17155: _ACEOF
17156:
17157: LIBS="-lelf $LIBS"
17158:
17159: fi
17160: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkvm" >&5
17161: $as_echo_n "checking for main in -lkvm... " >&6; }
17162: if ${ac_cv_lib_kvm_main+:} false; then :
17163: $as_echo_n "(cached) " >&6
17164: else
17165: ac_check_lib_save_LIBS=$LIBS
17166: LIBS="-lkvm $LIBS"
17167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17168: /* end confdefs.h. */
17169:
17170:
17171: int
17172: main ()
17173: {
17174: return main ();
17175: ;
17176: return 0;
17177: }
17178: _ACEOF
17179: if ac_fn_c_try_link "$LINENO"; then :
17180: ac_cv_lib_kvm_main=yes
17181: else
17182: ac_cv_lib_kvm_main=no
17183: fi
17184: rm -f core conftest.err conftest.$ac_objext \
17185: conftest$ac_exeext conftest.$ac_ext
17186: LIBS=$ac_check_lib_save_LIBS
17187: fi
17188: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_main" >&5
17189: $as_echo "$ac_cv_lib_kvm_main" >&6; }
17190: if test "x$ac_cv_lib_kvm_main" = xyes; then :
17191: cat >>confdefs.h <<_ACEOF
17192: #define HAVE_LIBKVM 1
17193: _ACEOF
17194:
17195: LIBS="-lkvm $LIBS"
17196:
17197: fi
17198: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lld" >&5
17199: $as_echo_n "checking for nlist in -lld... " >&6; }
17200: if ${ac_cv_lib_ld_nlist+:} false; then :
17201: $as_echo_n "(cached) " >&6
17202: else
17203: ac_check_lib_save_LIBS=$LIBS
17204: LIBS="-lld $LIBS"
17205: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17206: /* end confdefs.h. */
17207:
17208: /* Override any GCC internal prototype to avoid an error.
17209: Use char because int might match the return type of a GCC
17210: builtin and then its argument prototype would still apply. */
17211: #ifdef __cplusplus
17212: extern "C"
17213: #endif
17214: char nlist ();
17215: int
17216: main ()
17217: {
17218: return nlist ();
17219: ;
17220: return 0;
17221: }
17222: _ACEOF
17223: if ac_fn_c_try_link "$LINENO"; then :
17224: ac_cv_lib_ld_nlist=yes
17225: else
17226: ac_cv_lib_ld_nlist=no
17227: fi
17228: rm -f core conftest.err conftest.$ac_objext \
17229: conftest$ac_exeext conftest.$ac_ext
17230: LIBS=$ac_check_lib_save_LIBS
17231: fi
17232: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ld_nlist" >&5
17233: $as_echo "$ac_cv_lib_ld_nlist" >&6; }
17234: if test "x$ac_cv_lib_ld_nlist" = xyes; then :
17235: cat >>confdefs.h <<_ACEOF
17236: #define HAVE_LIBLD 1
17237: _ACEOF
17238:
17239: LIBS="-lld $LIBS"
17240:
17241: fi
17242:
17243: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lmld" >&5
17244: $as_echo_n "checking for nlist in -lmld... " >&6; }
17245: if ${ac_cv_lib_mld_nlist+:} false; then :
17246: $as_echo_n "(cached) " >&6
17247: else
17248: ac_check_lib_save_LIBS=$LIBS
17249: LIBS="-lmld $LIBS"
17250: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17251: /* end confdefs.h. */
17252:
17253: /* Override any GCC internal prototype to avoid an error.
17254: Use char because int might match the return type of a GCC
17255: builtin and then its argument prototype would still apply. */
17256: #ifdef __cplusplus
17257: extern "C"
17258: #endif
17259: char nlist ();
17260: int
17261: main ()
17262: {
17263: return nlist ();
17264: ;
17265: return 0;
17266: }
17267: _ACEOF
17268: if ac_fn_c_try_link "$LINENO"; then :
17269: ac_cv_lib_mld_nlist=yes
17270: else
17271: ac_cv_lib_mld_nlist=no
17272: fi
17273: rm -f core conftest.err conftest.$ac_objext \
17274: conftest$ac_exeext conftest.$ac_ext
17275: LIBS=$ac_check_lib_save_LIBS
17276: fi
17277: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mld_nlist" >&5
17278: $as_echo "$ac_cv_lib_mld_nlist" >&6; }
17279: if test "x$ac_cv_lib_mld_nlist" = xyes; then :
17280: cat >>confdefs.h <<_ACEOF
17281: #define HAVE_LIBMLD 1
17282: _ACEOF
17283:
17284: LIBS="-lmld $LIBS"
17285:
17286: fi
17287:
17288: for ac_header in nlist.h sys/var.h
17289: do :
17290: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17291: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17292: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17293: cat >>confdefs.h <<_ACEOF
17294: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17295: _ACEOF
17296:
17297: fi
17298:
17299: done
17300:
17301: case "$ac_cv_header_nlist_h" in
17302: yes)
17303:
17304: $as_echo "#define NLIST_STRUCT 1" >>confdefs.h
17305:
17306: esac
17307: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5
17308: $as_echo_n "checking for n_un in struct nlist... " >&6; }
17309: if ${ntp_cv_struct_nlist_n_un+:} false; then :
17310: $as_echo_n "(cached) " >&6
17311: else
17312: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17313: /* end confdefs.h. */
17314:
17315: #include <nlist.h>
17316:
17317: int
17318: main ()
17319: {
17320:
17321: struct nlist n;
17322: n.n_un.n_name = 0;
17323:
17324:
17325: ;
17326: return 0;
17327: }
17328: ntp_cv_struct_nlist_n_un=yes
17329: _ACEOF
17330: if ac_fn_c_try_compile "$LINENO"; then :
17331: ntp_cv_struct_nlist_n_un=no
17332:
17333: fi
17334: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17335:
17336: fi
17337: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_nlist_n_un" >&5
17338: $as_echo "$ntp_cv_struct_nlist_n_un" >&6; }
17339: case "$ntp_cv_struct_nlist_n_un" in
17340: yes)
17341:
17342: $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
17343:
17344: esac
17345: ;;
17346: esac
17347:
17348: for ac_header in sys/proc.h
17349: do :
17350: ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#ifdef HAVE_SYS_TYPES_H
17351: # include <sys/types.h>
17352: #endif
17353: #ifdef HAVE_SYS_TIME_H
17354: # include <sys/time.h>
17355: #endif
17356:
17357: "
17358: if test "x$ac_cv_header_sys_proc_h" = xyes; then :
17359: cat >>confdefs.h <<_ACEOF
17360: #define HAVE_SYS_PROC_H 1
17361: _ACEOF
17362:
17363: fi
17364:
17365: done
17366:
17367:
17368: for ac_header in sys/resource.h
17369: do :
17370: ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "#ifdef HAVE_SYS_TIME_H
17371: # include <sys/time.h>
17372: #endif
17373:
17374: "
17375: if test "x$ac_cv_header_sys_resource_h" = xyes; then :
17376: cat >>confdefs.h <<_ACEOF
17377: #define HAVE_SYS_RESOURCE_H 1
17378: _ACEOF
17379:
17380: fi
17381:
17382: done
17383:
17384:
17385: for ac_header in sys/shm.h
17386: do :
17387: ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "#ifdef HAVE_SYS_TYPES_H
17388: # include <sys/types.h>
17389: #endif
17390: #ifdef HAVE_SYS_IPC_H
17391: # include <sys/ipc.h>
17392: #endif
17393:
17394: "
17395: if test "x$ac_cv_header_sys_shm_h" = xyes; then :
17396: cat >>confdefs.h <<_ACEOF
17397: #define HAVE_SYS_SHM_H 1
17398: _ACEOF
17399:
17400: fi
17401:
17402: done
17403:
17404:
17405: for ac_header in sys/timex.h
17406: do :
17407: ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "#if HAVE_SYS_TIME_H
17408: # include <sys/time.h>
17409: #endif
17410:
17411: "
17412: if test "x$ac_cv_header_sys_timex_h" = xyes; then :
17413: cat >>confdefs.h <<_ACEOF
17414: #define HAVE_SYS_TIMEX_H 1
17415: _ACEOF
17416:
17417: fi
17418:
17419: done
17420:
17421:
17422: for ac_header in resolv.h
17423: do :
17424: ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#ifdef HAVE_SYS_TYPES_H
17425: #include <sys/types.h>
17426: #endif
17427: #ifdef HAVE_NETINET_IN_H
17428: #include <netinet/in.h>
17429: #endif
17430: #ifdef HAVE_ARPA_NAMESER_H
17431: #include <arpa/nameser.h>
17432: #endif
17433:
17434: "
17435: if test "x$ac_cv_header_resolv_h" = xyes; then :
17436: cat >>confdefs.h <<_ACEOF
17437: #define HAVE_RESOLV_H 1
17438: _ACEOF
17439:
17440: fi
17441:
17442: done
17443:
17444:
17445: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic volatile support" >&5
17446: $as_echo_n "checking for basic volatile support... " >&6; }
17447: if ${ntp_cv_c_volatile+:} false; then :
17448: $as_echo_n "(cached) " >&6
17449: else
17450: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17451: /* end confdefs.h. */
17452:
17453:
17454: int
17455: main ()
17456: {
17457:
17458: volatile int x;
17459:
17460:
17461: ;
17462: return 0;
17463: }
17464: ntp_cv_c_volatile=yes
17465: _ACEOF
17466: if ac_fn_c_try_compile "$LINENO"; then :
17467: ntp_cv_c_volatile=no
17468:
17469: fi
17470: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17471:
17472: fi
17473: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_c_volatile" >&5
17474: $as_echo "$ntp_cv_c_volatile" >&6; }
17475: case "$ntp_cv_c_volatile" in
17476: yes)
17477: ;;
17478: *)
17479:
17480: $as_echo "#define volatile /**/" >>confdefs.h
17481:
17482: ;;
17483: esac
17484:
17485: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17486: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17487: if ${ac_cv_c_const+:} false; then :
17488: $as_echo_n "(cached) " >&6
17489: else
17490: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17491: /* end confdefs.h. */
17492:
17493: int
17494: main ()
17495: {
17496: /* FIXME: Include the comments suggested by Paul. */
17497: #ifndef __cplusplus
17498: /* Ultrix mips cc rejects this. */
17499: typedef int charset[2];
17500: const charset cs;
17501: /* SunOS 4.1.1 cc rejects this. */
17502: char const *const *pcpcc;
17503: char **ppc;
17504: /* NEC SVR4.0.2 mips cc rejects this. */
17505: struct point {int x, y;};
17506: static struct point const zero = {0,0};
17507: /* AIX XL C 1.02.0.0 rejects this.
17508: It does not let you subtract one const X* pointer from another in
17509: an arm of an if-expression whose if-part is not a constant
17510: expression */
17511: const char *g = "string";
17512: pcpcc = &g + (g ? g-g : 0);
17513: /* HPUX 7.0 cc rejects these. */
17514: ++pcpcc;
17515: ppc = (char**) pcpcc;
17516: pcpcc = (char const *const *) ppc;
17517: { /* SCO 3.2v4 cc rejects this. */
17518: char *t;
17519: char const *s = 0 ? (char *) 0 : (char const *) 0;
17520:
17521: *t++ = 0;
17522: if (s) return 0;
17523: }
17524: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17525: int x[] = {25, 17};
17526: const int *foo = &x[0];
17527: ++foo;
17528: }
17529: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17530: typedef const int *iptr;
17531: iptr p = 0;
17532: ++p;
17533: }
17534: { /* AIX XL C 1.02.0.0 rejects this saying
17535: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17536: struct s { int j; const int *ap[3]; };
17537: struct s *b; b->j = 5;
17538: }
17539: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17540: const int foo = 10;
17541: if (!foo) return 0;
17542: }
17543: return !cs[0] && !zero.x;
17544: #endif
17545:
17546: ;
17547: return 0;
17548: }
17549: _ACEOF
17550: if ac_fn_c_try_compile "$LINENO"; then :
17551: ac_cv_c_const=yes
17552: else
17553: ac_cv_c_const=no
17554: fi
17555: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17556: fi
17557: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17558: $as_echo "$ac_cv_c_const" >&6; }
17559: if test $ac_cv_c_const = no; then
17560:
17561: $as_echo "#define const /**/" >>confdefs.h
17562:
17563: fi
17564:
17565: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17566: $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17567: if ${ac_cv_c_bigendian+:} false; then :
17568: $as_echo_n "(cached) " >&6
17569: else
17570: ac_cv_c_bigendian=unknown
17571: # See if we're dealing with a universal compiler.
17572: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17573: /* end confdefs.h. */
17574: #ifndef __APPLE_CC__
17575: not a universal capable compiler
17576: #endif
17577: typedef int dummy;
17578:
17579: _ACEOF
17580: if ac_fn_c_try_compile "$LINENO"; then :
17581:
17582: # Check for potential -arch flags. It is not universal unless
17583: # there are at least two -arch flags with different values.
17584: ac_arch=
17585: ac_prev=
17586: for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17587: if test -n "$ac_prev"; then
17588: case $ac_word in
17589: i?86 | x86_64 | ppc | ppc64)
17590: if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17591: ac_arch=$ac_word
17592: else
17593: ac_cv_c_bigendian=universal
17594: break
17595: fi
17596: ;;
17597: esac
17598: ac_prev=
17599: elif test "x$ac_word" = "x-arch"; then
17600: ac_prev=arch
17601: fi
17602: done
17603: fi
17604: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17605: if test $ac_cv_c_bigendian = unknown; then
17606: # See if sys/param.h defines the BYTE_ORDER macro.
17607: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17608: /* end confdefs.h. */
17609: #include <sys/types.h>
17610: #include <sys/param.h>
17611:
17612: int
17613: main ()
17614: {
17615: #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17616: && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17617: && LITTLE_ENDIAN)
17618: bogus endian macros
17619: #endif
17620:
17621: ;
17622: return 0;
17623: }
17624: _ACEOF
17625: if ac_fn_c_try_compile "$LINENO"; then :
17626: # It does; now see whether it defined to BIG_ENDIAN or not.
17627: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17628: /* end confdefs.h. */
17629: #include <sys/types.h>
17630: #include <sys/param.h>
17631:
17632: int
17633: main ()
17634: {
17635: #if BYTE_ORDER != BIG_ENDIAN
17636: not big endian
17637: #endif
17638:
17639: ;
17640: return 0;
17641: }
17642: _ACEOF
17643: if ac_fn_c_try_compile "$LINENO"; then :
17644: ac_cv_c_bigendian=yes
17645: else
17646: ac_cv_c_bigendian=no
17647: fi
17648: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17649: fi
17650: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17651: fi
17652: if test $ac_cv_c_bigendian = unknown; then
17653: # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17654: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17655: /* end confdefs.h. */
17656: #include <limits.h>
17657:
17658: int
17659: main ()
17660: {
17661: #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17662: bogus endian macros
17663: #endif
17664:
17665: ;
17666: return 0;
17667: }
17668: _ACEOF
17669: if ac_fn_c_try_compile "$LINENO"; then :
17670: # It does; now see whether it defined to _BIG_ENDIAN or not.
17671: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17672: /* end confdefs.h. */
17673: #include <limits.h>
17674:
17675: int
17676: main ()
17677: {
17678: #ifndef _BIG_ENDIAN
17679: not big endian
17680: #endif
17681:
17682: ;
17683: return 0;
17684: }
17685: _ACEOF
17686: if ac_fn_c_try_compile "$LINENO"; then :
17687: ac_cv_c_bigendian=yes
17688: else
17689: ac_cv_c_bigendian=no
17690: fi
17691: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17692: fi
17693: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17694: fi
17695: if test $ac_cv_c_bigendian = unknown; then
17696: # Compile a test program.
17697: if test "$cross_compiling" = yes; then :
17698: # Try to guess by grepping values from an object file.
17699: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17700: /* end confdefs.h. */
17701: short int ascii_mm[] =
17702: { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17703: short int ascii_ii[] =
17704: { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17705: int use_ascii (int i) {
17706: return ascii_mm[i] + ascii_ii[i];
17707: }
17708: short int ebcdic_ii[] =
17709: { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17710: short int ebcdic_mm[] =
17711: { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17712: int use_ebcdic (int i) {
17713: return ebcdic_mm[i] + ebcdic_ii[i];
17714: }
17715: extern int foo;
17716:
17717: int
17718: main ()
17719: {
17720: return use_ascii (foo) == use_ebcdic (foo);
17721: ;
17722: return 0;
17723: }
17724: _ACEOF
17725: if ac_fn_c_try_compile "$LINENO"; then :
17726: if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17727: ac_cv_c_bigendian=yes
17728: fi
17729: if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17730: if test "$ac_cv_c_bigendian" = unknown; then
17731: ac_cv_c_bigendian=no
17732: else
17733: # finding both strings is unlikely to happen, but who knows?
17734: ac_cv_c_bigendian=unknown
17735: fi
17736: fi
17737: fi
17738: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17739: else
17740: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17741: /* end confdefs.h. */
17742: $ac_includes_default
17743: int
17744: main ()
17745: {
17746:
17747: /* Are we little or big endian? From Harbison&Steele. */
17748: union
17749: {
17750: long int l;
17751: char c[sizeof (long int)];
17752: } u;
17753: u.l = 1;
17754: return u.c[sizeof (long int) - 1] == 1;
17755:
17756: ;
17757: return 0;
17758: }
17759: _ACEOF
17760: if ac_fn_c_try_run "$LINENO"; then :
17761: ac_cv_c_bigendian=no
17762: else
17763: ac_cv_c_bigendian=yes
17764: fi
17765: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17766: conftest.$ac_objext conftest.beam conftest.$ac_ext
17767: fi
17768:
17769: fi
17770: fi
17771: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17772: $as_echo "$ac_cv_c_bigendian" >&6; }
17773: case $ac_cv_c_bigendian in #(
17774: yes)
17775: $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
17776: ;; #(
17777: no)
17778: ;; #(
17779: universal)
17780:
17781: $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17782:
17783: ;; #(
17784: *)
17785: as_fn_error $? "unknown endianness
17786: presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17787: esac
17788:
17789: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
17790: $as_echo_n "checking return type of signal handlers... " >&6; }
17791: if ${ac_cv_type_signal+:} false; then :
17792: $as_echo_n "(cached) " >&6
17793: else
17794: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17795: /* end confdefs.h. */
17796: #include <sys/types.h>
17797: #include <signal.h>
17798:
17799: int
17800: main ()
17801: {
17802: return *(signal (0, 0)) (0) == 1;
17803: ;
17804: return 0;
17805: }
17806: _ACEOF
17807: if ac_fn_c_try_compile "$LINENO"; then :
17808: ac_cv_type_signal=int
17809: else
17810: ac_cv_type_signal=void
17811: fi
17812: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17813: fi
17814: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
17815: $as_echo "$ac_cv_type_signal" >&6; }
17816:
17817: cat >>confdefs.h <<_ACEOF
17818: #define RETSIGTYPE $ac_cv_type_signal
17819: _ACEOF
17820:
17821:
17822: ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17823: if test "x$ac_cv_type_off_t" = xyes; then :
17824:
17825: else
17826:
17827: cat >>confdefs.h <<_ACEOF
17828: #define off_t long int
17829: _ACEOF
17830:
17831: fi
17832:
17833: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17834: if test "x$ac_cv_type_size_t" = xyes; then :
17835:
17836: else
17837:
17838: cat >>confdefs.h <<_ACEOF
17839: #define size_t unsigned int
17840: _ACEOF
17841:
17842: fi
17843:
17844: ac_fn_c_check_type "$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default"
17845: if test "x$ac_cv_type_time_t" = xyes; then :
17846:
17847: cat >>confdefs.h <<_ACEOF
17848: #define HAVE_TIME_T 1
17849: _ACEOF
17850:
17851:
17852: fi
17853: ac_fn_c_check_type "$LINENO" "long" "ac_cv_type_long" "$ac_includes_default"
17854: if test "x$ac_cv_type_long" = xyes; then :
17855:
17856: cat >>confdefs.h <<_ACEOF
17857: #define HAVE_LONG 1
17858: _ACEOF
17859:
17860:
17861: fi
17862: ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
17863: if test "x$ac_cv_type_uintptr_t" = xyes; then :
17864:
17865: cat >>confdefs.h <<_ACEOF
17866: #define HAVE_UINTPTR_T 1
17867: _ACEOF
17868:
17869:
17870: fi
17871:
17872: # The cast to long int works around a bug in the HP C Compiler
17873: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17874: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17875: # This bug is HP SR number 8606223364.
17876: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
17877: $as_echo_n "checking size of time_t... " >&6; }
17878: if ${ac_cv_sizeof_time_t+:} false; then :
17879: $as_echo_n "(cached) " >&6
17880: else
17881: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
17882:
17883: else
17884: if test "$ac_cv_type_time_t" = yes; then
17885: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17886: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17887: as_fn_error 77 "cannot compute sizeof (time_t)
17888: See \`config.log' for more details" "$LINENO" 5; }
17889: else
17890: ac_cv_sizeof_time_t=0
17891: fi
17892: fi
17893:
17894: fi
17895: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
17896: $as_echo "$ac_cv_sizeof_time_t" >&6; }
17897:
17898:
17899:
17900: cat >>confdefs.h <<_ACEOF
17901: #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
17902: _ACEOF
17903:
17904:
17905:
17906:
17907:
17908: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
17909: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
17910: if ${ac_cv_struct_tm+:} false; then :
17911: $as_echo_n "(cached) " >&6
17912: else
17913: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17914: /* end confdefs.h. */
17915: #include <sys/types.h>
17916: #include <time.h>
17917:
17918: int
17919: main ()
17920: {
17921: struct tm tm;
17922: int *p = &tm.tm_sec;
17923: return !p;
17924: ;
17925: return 0;
17926: }
17927: _ACEOF
17928: if ac_fn_c_try_compile "$LINENO"; then :
17929: ac_cv_struct_tm=time.h
17930: else
17931: ac_cv_struct_tm=sys/time.h
17932: fi
17933: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17934: fi
17935: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
17936: $as_echo "$ac_cv_struct_tm" >&6; }
17937: if test $ac_cv_struct_tm = sys/time.h; then
17938:
17939: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
17940:
17941: fi
17942:
17943:
17944: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int8_t" >&5
17945: $as_echo_n "checking for u_int8_t... " >&6; }
17946: if ${ntp_cv_type_u_int8_t+:} false; then :
17947: $as_echo_n "(cached) " >&6
17948: else
17949: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17950: /* end confdefs.h. */
17951:
17952: #ifdef HAVE_SYS_TYPES_H
17953: # include <sys/types.h>
17954: #endif
17955:
17956: int
17957: main ()
17958: {
17959:
17960: u_int8_t len = 42;
17961:
17962:
17963: ;
17964: return 0;
17965: }
17966: _ACEOF
17967: if ac_fn_c_try_compile "$LINENO"; then :
17968: ntp_cv_type_u_int8_t=yes
17969: else
17970: ntp_cv_type_u_int8_t=no
17971:
17972: fi
17973: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17974:
17975: fi
17976: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int8_t" >&5
17977: $as_echo "$ntp_cv_type_u_int8_t" >&6; }
17978: case "$ntp_cv_type_u_int8_t" in
17979: yes)
17980:
17981: $as_echo "#define HAVE_TYPE_U_INT8_T 1" >>confdefs.h
17982:
17983: esac
17984:
17985: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t" >&5
17986: $as_echo_n "checking for u_int64_t... " >&6; }
17987: if ${ntp_cv_type_u_int64_t+:} false; then :
17988: $as_echo_n "(cached) " >&6
17989: else
17990: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17991: /* end confdefs.h. */
17992:
17993: #ifdef HAVE_SYS_TYPES_H
17994: # include <sys/types.h>
17995: #endif
17996:
17997: int
17998: main ()
17999: {
18000:
18001: u_int64_t len = 42;
18002:
18003:
18004: ;
18005: return 0;
18006: }
18007: _ACEOF
18008: if ac_fn_c_try_compile "$LINENO"; then :
18009: ntp_cv_type_u_int64_t=yes
18010: else
18011: ntp_cv_type_u_int64_t=no
18012:
18013: fi
18014: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18015:
18016: fi
18017: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int64_t" >&5
18018: $as_echo "$ntp_cv_type_u_int64_t" >&6; }
18019: case "$ntp_cv_type_u_int64_t" in
18020: yes)
18021:
18022: $as_echo "#define HAVE_TYPE_U_INT64_T 1" >>confdefs.h
18023:
18024: esac
18025:
18026: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5
18027: $as_echo_n "checking for a fallback value for HZ... " >&6; }
18028: if ${ntp_cv_default_hz+:} false; then :
18029: $as_echo_n "(cached) " >&6
18030: else
18031:
18032: ntp_cv_default_hz=100
18033: case "$host" in
18034: alpha*-dec-osf4*|alpha*-dec-osf5*)
18035: ntp_cv_default_hz=1024
18036: ;;
18037: mips-dec-ultrix4*)
18038: ntp_cv_default_hz=256
18039: ;;
18040: esac
18041:
18042:
18043: fi
18044: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_default_hz" >&5
18045: $as_echo "$ntp_cv_default_hz" >&6; }
18046:
18047: cat >>confdefs.h <<_ACEOF
18048: #define DEFAULT_HZ $ntp_cv_default_hz
18049: _ACEOF
18050:
18051:
18052: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5
18053: $as_echo_n "checking if we need to override the system's value for HZ... " >&6; }
18054: if ${ntp_cv_override_hz+:} false; then :
18055: $as_echo_n "(cached) " >&6
18056: else
18057:
18058: ntp_cv_override_hz=no
18059: case "$host" in
18060: alpha*-dec-osf4*|alpha*-dec-osf5*)
18061: ntp_cv_override_hz=yes
18062: ;;
18063: mips-dec-ultrix4*)
18064: ntp_cv_override_hz=yes
18065: ;;
18066: *-*-freebsd*)
18067: ntp_cv_override_hz=yes
18068: ;;
18069: *-*-sunos4*)
18070: ntp_cv_override_hz=yes
18071: ;;
18072: *-*-kfreebsd*)
18073: ntp_cv_override_hz=yes
18074: ;;
18075: esac
18076:
18077:
18078: fi
18079: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_override_hz" >&5
18080: $as_echo "$ntp_cv_override_hz" >&6; }
18081: case "$ntp_cv_override_hz" in
18082: yes)
18083:
18084: $as_echo "#define OVERRIDE_HZ 1" >>confdefs.h
18085:
18086: esac
18087:
18088:
18089:
18090: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5
18091: $as_echo_n "checking for struct rt_msghdr... " >&6; }
18092: if ${ntp_cv_struct_rt_msghdr+:} false; then :
18093: $as_echo_n "(cached) " >&6
18094: else
18095: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18096: /* end confdefs.h. */
18097:
18098: #include <sys/types.h>
18099: #include <sys/socket.h>
18100: #include <net/if.h>
18101: #include <net/route.h>
18102:
18103: int
18104: main ()
18105: {
18106:
18107: struct rt_msghdr p;
18108:
18109:
18110: ;
18111: return 0;
18112: }
18113: _ACEOF
18114: if ac_fn_c_try_compile "$LINENO"; then :
18115: ntp_cv_struct_rt_msghdr=yes
18116: else
18117: ntp_cv_struct_rt_msghdr=no
18118:
18119: fi
18120: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18121:
18122: fi
18123: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_rt_msghdr" >&5
18124: $as_echo "$ntp_cv_struct_rt_msghdr" >&6; }
18125:
18126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5
18127: $as_echo_n "checking for struct rtattr... " >&6; }
18128: if ${ntp_cv_rtattr+:} false; then :
18129: $as_echo_n "(cached) " >&6
18130: else
18131: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18132: /* end confdefs.h. */
18133:
18134: #include <stddef.h>
18135: #include <sys/socket.h>
18136: #include <linux/rtnetlink.h>
18137:
18138: int
18139: main ()
18140: {
18141:
18142: struct rtattr p;
18143:
18144:
18145: ;
18146: return 0;
18147: }
18148: _ACEOF
18149: if ac_fn_c_try_compile "$LINENO"; then :
18150: ntp_cv_rtattr=yes
18151: else
18152: ntp_cv_rtattr=no
18153:
18154: fi
18155: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18156:
18157: fi
18158: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rtattr" >&5
18159: $as_echo "$ntp_cv_rtattr" >&6; }
18160:
18161: case "$ntp_cv_struct_rt_msghdr$ntp_cv_rtattr" in
18162: *yes*)
18163:
18164: $as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h
18165:
18166: case "$ntp_cv_rtattr" in
18167: yes)
18168:
18169: $as_echo "#define HAVE_RTNETLINK 1" >>confdefs.h
18170:
18171: esac
18172: esac
18173:
18174: { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5
18175: $as_echo_n "checking struct sigaction for sa_sigaction... " >&6; }
18176: if ${ntp_cv_struct_sigaction_has_sa_sigaction+:} false; then :
18177: $as_echo_n "(cached) " >&6
18178: else
18179: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18180: /* end confdefs.h. */
18181:
18182: #include <signal.h>
18183:
18184: int
18185: main ()
18186: {
18187:
18188: struct sigaction act;
18189: act.sa_sigaction = 0;
18190:
18191:
18192: ;
18193: return 0;
18194: }
18195: _ACEOF
18196: if ac_fn_c_try_compile "$LINENO"; then :
18197: ntp_cv_struct_sigaction_has_sa_sigaction=yes
18198: else
18199: ntp_cv_struct_sigaction_has_sa_sigaction=no
18200:
18201: fi
18202: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18203:
18204: fi
18205: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_sigaction_has_sa_sigaction" >&5
18206: $as_echo "$ntp_cv_struct_sigaction_has_sa_sigaction" >&6; }
18207: case "$ntp_cv_struct_sigaction_has_sa_sigaction" in
18208: yes)
18209:
18210: $as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h
18211:
18212: esac
18213:
18214: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5
18215: $as_echo_n "checking for struct ppsclockev... " >&6; }
18216: if ${ntp_cv_struct_ppsclockev+:} false; then :
18217: $as_echo_n "(cached) " >&6
18218: else
18219: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18220: /* end confdefs.h. */
18221:
18222: #ifdef HAVE_SYS_TYPES_H
18223: # include <sys/types.h>
18224: #endif
18225: #ifdef HAVE_SYS_TERMIOS_H
18226: # include <sys/termios.h>
18227: #endif
18228: #ifdef HAVE_SYS_TIME_H
18229: # include <sys/time.h>
18230: #endif
18231: #ifdef HAVE_SYS_PPSCLOCK_H
18232: # include <sys/ppsclock.h>
18233: #endif
18234:
18235: int
18236: main ()
18237: {
18238:
18239: extern struct ppsclockev *pce;
18240: return pce->serial;
18241:
18242:
18243: ;
18244: return 0;
18245: }
18246: _ACEOF
18247: if ac_fn_c_try_compile "$LINENO"; then :
18248: ntp_cv_struct_ppsclockev=yes
18249: else
18250: ntp_cv_struct_ppsclockev=no
18251:
18252: fi
18253: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18254:
18255: fi
18256: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ppsclockev" >&5
18257: $as_echo "$ntp_cv_struct_ppsclockev" >&6; }
18258: case "$ntp_cv_struct_ppsclockev" in
18259: yes)
18260:
18261: $as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h
18262:
18263: esac
18264:
18265: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
18266: $as_echo_n "checking for struct sockaddr_storage... " >&6; }
18267: if ${ntp_cv_sockaddr_storage+:} false; then :
18268: $as_echo_n "(cached) " >&6
18269: else
18270: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18271: /* end confdefs.h. */
18272:
18273: #ifdef HAVE_SYS_TYPES_H
18274: # include <sys/types.h>
18275: #endif
18276: #ifdef HAVE_SYS_SOCKET_H
18277: # include <sys/socket.h>
18278: #endif
18279: #ifdef HAVE_NETINET_IN_H
18280: # include <netinet/in.h>
18281: #endif
18282:
18283: int
18284: main ()
18285: {
18286:
18287: struct sockaddr_storage n;
18288:
18289:
18290: ;
18291: return 0;
18292: }
18293: _ACEOF
18294: if ac_fn_c_try_compile "$LINENO"; then :
18295: ntp_cv_sockaddr_storage=yes
18296: else
18297: ntp_cv_sockaddr_storage=no
18298:
18299: fi
18300: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18301:
18302: fi
18303: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
18304: $as_echo "$ntp_cv_sockaddr_storage" >&6; }
18305: case "$ntp_cv_sockaddr_storage" in
18306: yes)
18307:
18308: $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
18309:
18310: esac
18311:
18312: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.ss_family" >&5
18313: $as_echo_n "checking for sockaddr_storage.ss_family... " >&6; }
18314: if ${ntp_cv_have_ss_family+:} false; then :
18315: $as_echo_n "(cached) " >&6
18316: else
18317: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18318: /* end confdefs.h. */
18319:
18320: #ifdef HAVE_SYS_TYPES_H
18321: # include <sys/types.h>
18322: #endif
18323: #ifdef HAVE_SYS_SOCKET_H
18324: # include <sys/socket.h>
18325: #endif
18326: #ifdef HAVE_NETINET_IN_H
18327: # include <netinet/in.h>
18328: #endif
18329:
18330: int
18331: main ()
18332: {
18333:
18334: struct sockaddr_storage s;
18335: s.ss_family = 1;
18336:
18337:
18338: ;
18339: return 0;
18340: }
18341: _ACEOF
18342: if ac_fn_c_try_compile "$LINENO"; then :
18343: ntp_cv_have_ss_family=yes
18344: else
18345: ntp_cv_have_ss_family=no
18346:
18347: fi
18348: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18349:
18350: fi
18351: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have_ss_family" >&5
18352: $as_echo "$ntp_cv_have_ss_family" >&6; }
18353:
18354: case "$ntp_cv_have_ss_family" in
18355: no)
18356: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
18357: $as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
18358: if ${ntp_cv_have___ss_family+:} false; then :
18359: $as_echo_n "(cached) " >&6
18360: else
18361: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18362: /* end confdefs.h. */
18363:
18364: #ifdef HAVE_SYS_TYPES_H
18365: # include <sys/types.h>
18366: #endif
18367: #ifdef HAVE_SYS_SOCKET_H
18368: # include <sys/socket.h>
18369: #endif
18370: #ifdef HAVE_NETINET_IN_H
18371: # include <netinet/in.h>
18372: #endif
18373:
18374: int
18375: main ()
18376: {
18377:
18378: struct sockaddr_storage s;
18379: s.__ss_family = 1;
18380:
18381:
18382: ;
18383: return 0;
18384: }
18385: _ACEOF
18386: if ac_fn_c_try_compile "$LINENO"; then :
18387: ntp_cv_have___ss_family=yes
18388: else
18389: ntp_cv_have___ss_family=no
18390:
18391: fi
18392: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18393:
18394: fi
18395: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
18396: $as_echo "$ntp_cv_have___ss_family" >&6; }
18397: case "$ntp_cv_have___ss_family" in
18398: yes)
18399:
18400: $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
18401:
18402: esac
18403: esac
18404:
18405:
18406:
18407: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.ss_len" >&5
18408: $as_echo_n "checking for sockaddr_storage.ss_len... " >&6; }
18409: if ${ntp_cv_have_ss_len+:} false; then :
18410: $as_echo_n "(cached) " >&6
18411: else
18412: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18413: /* end confdefs.h. */
18414:
18415: #ifdef HAVE_SYS_TYPES_H
18416: # include <sys/types.h>
18417: #endif
18418: #ifdef HAVE_SYS_SOCKET_H
18419: # include <sys/socket.h>
18420: #endif
18421: #ifdef HAVE_NETINET_IN_H
18422: # include <netinet/in.h>
18423: #endif
18424:
18425: int
18426: main ()
18427: {
18428:
18429: struct sockaddr_storage s;
18430: s.ss_len = 1;
18431:
18432:
18433: ;
18434: return 0;
18435: }
18436: _ACEOF
18437: if ac_fn_c_try_compile "$LINENO"; then :
18438: ntp_cv_have_ss_len=yes
18439: else
18440: ntp_cv_have_ss_len=no
18441:
18442: fi
18443: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18444:
18445: fi
18446: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have_ss_len" >&5
18447: $as_echo "$ntp_cv_have_ss_len" >&6; }
18448:
18449: case "$ntp_cv_have_ss_len" in
18450: no)
18451: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_len" >&5
18452: $as_echo_n "checking for sockaddr_storage.__ss_len... " >&6; }
18453: if ${ntp_cv_have___ss_len+:} false; then :
18454: $as_echo_n "(cached) " >&6
18455: else
18456: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18457: /* end confdefs.h. */
18458:
18459: #ifdef HAVE_SYS_TYPES_H
18460: # include <sys/types.h>
18461: #endif
18462: #ifdef HAVE_SYS_SOCKET_H
18463: # include <sys/socket.h>
18464: #endif
18465: #ifdef HAVE_NETINET_IN_H
18466: # include <netinet/in.h>
18467: #endif
18468:
18469: int
18470: main ()
18471: {
18472:
18473: struct sockaddr_storage s;
18474: s.__ss_len = 1;
18475:
18476:
18477: ;
18478: return 0;
18479: }
18480: _ACEOF
18481: if ac_fn_c_try_compile "$LINENO"; then :
18482: ntp_cv_have___ss_len=yes
18483: else
18484: ntp_cv_have___ss_len=no
18485:
18486: fi
18487: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18488:
18489: fi
18490: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_len" >&5
18491: $as_echo "$ntp_cv_have___ss_len" >&6; }
18492: case "$ntp_cv_have___ss_len" in
18493: yes)
18494:
18495: $as_echo "#define HAVE___SS_LEN_IN_SS 1" >>confdefs.h
18496:
18497: esac
18498: esac
18499:
18500:
18501:
18502: #
18503: # Look for in_port_t.
18504: #
18505: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
18506: $as_echo_n "checking for in_port_t... " >&6; }
18507: if ${isc_cv_have_in_port_t+:} false; then :
18508: $as_echo_n "(cached) " >&6
18509: else
18510: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18511: /* end confdefs.h. */
18512:
18513: #include <sys/types.h>
18514: #include <netinet/in.h>
18515:
18516: int
18517: main ()
18518: {
18519:
18520: in_port_t port = 25;
18521: return (0);
18522:
18523:
18524: ;
18525: return 0;
18526: }
18527: _ACEOF
18528: if ac_fn_c_try_compile "$LINENO"; then :
18529: isc_cv_have_in_port_t=yes
18530: else
18531: isc_cv_have_in_port_t=no
18532:
18533: fi
18534: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18535:
18536: fi
18537: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
18538: $as_echo "$isc_cv_have_in_port_t" >&6; }
18539: case "$isc_cv_have_in_port_t" in
18540: no)
18541:
18542: $as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
18543:
18544: esac
18545:
18546: case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
18547: *yes*)
18548: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5
18549: $as_echo_n "checking for struct snd_size... " >&6; }
18550: if ${ntp_cv_struct_snd_size+:} false; then :
18551: $as_echo_n "(cached) " >&6
18552: else
18553: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18554: /* end confdefs.h. */
18555:
18556: #ifdef HAVE_MACHINE_SOUNDCARD_H
18557: # include <machine/soundcard.h>
18558: #endif
18559: #ifdef HAVE_SYS_SOUNDCARD_H
18560: # include <sys/soundcard.h>
18561: #endif
18562:
18563: int
18564: main ()
18565: {
18566:
18567: extern struct snd_size *ss;
18568: return ss->rec_size;
18569:
18570:
18571: ;
18572: return 0;
18573: }
18574: _ACEOF
18575: if ac_fn_c_try_compile "$LINENO"; then :
18576: ntp_cv_struct_snd_size=yes
18577: else
18578: ntp_cv_struct_snd_size=no
18579:
18580: fi
18581: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18582:
18583: fi
18584: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_snd_size" >&5
18585: $as_echo "$ntp_cv_struct_snd_size" >&6; }
18586: case "$ntp_cv_struct_snd_size" in
18587: yes)
18588:
18589: $as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h
18590:
18591: esac
18592: esac
18593:
18594: { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5
18595: $as_echo_n "checking struct clockinfo for hz... " >&6; }
18596: if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
18597: $as_echo_n "(cached) " >&6
18598: else
18599: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18600: /* end confdefs.h. */
18601:
18602: #include <sys/time.h>
18603:
18604: int
18605: main ()
18606: {
18607:
18608: extern struct clockinfo *pc;
18609: return pc->hz;
18610:
18611:
18612: ;
18613: return 0;
18614: }
18615: _ACEOF
18616: if ac_fn_c_try_compile "$LINENO"; then :
18617: ntp_cv_struct_clockinfo_has_hz=yes
18618: else
18619: ntp_cv_struct_clockinfo_has_hz=no
18620:
18621: fi
18622: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18623:
18624: fi
18625: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
18626: $as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
18627: case "$ntp_cv_struct_clockinfo_has_hz" in
18628: yes)
18629:
18630: $as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
18631:
18632: esac
18633:
18634: { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5
18635: $as_echo_n "checking struct clockinfo for tickadj... " >&6; }
18636: if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
18637: $as_echo_n "(cached) " >&6
18638: else
18639: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18640: /* end confdefs.h. */
18641:
18642: #include <sys/time.h>
18643:
18644: int
18645: main ()
18646: {
18647:
18648: extern struct clockinfo *pc;
18649: return pc->tickadj;
18650:
18651:
18652: ;
18653: return 0;
18654: }
18655: _ACEOF
18656: if ac_fn_c_try_compile "$LINENO"; then :
18657: ntp_cv_struct_clockinfo_has_hz=yes
18658: else
18659: ntp_cv_struct_clockinfo_has_hz=no
18660:
18661: fi
18662: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18663:
18664: fi
18665: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
18666: $as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
18667: case "$ntp_cv_struct_clockinfo_has_hz" in
18668: yes)
18669:
18670: $as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
18671:
18672: esac
18673:
18674: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
18675: $as_echo_n "checking for struct timespec... " >&6; }
18676: if ${ntp_cv_struct_timespec+:} false; then :
18677: $as_echo_n "(cached) " >&6
18678: else
18679: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18680: /* end confdefs.h. */
18681:
18682: #include <sys/time.h>
18683: /* Under SunOS, timespec is in sys/timepps.h,
18684: which needs errno.h and FRAC */
18685: #ifdef HAVE_ERRNO_H
18686: # include <errno.h>
18687: #endif
18688: #ifdef HAVE_SYS_TIMEPPS_H
18689: # define FRAC 4294967296
18690: # include <sys/timepps.h>
18691: #endif
18692:
18693: int
18694: main ()
18695: {
18696:
18697: struct timespec n;
18698:
18699:
18700: ;
18701: return 0;
18702: }
18703: _ACEOF
18704: if ac_fn_c_try_compile "$LINENO"; then :
18705: ntp_cv_struct_timespec=yes
18706: else
18707: ntp_cv_struct_timespec=no
18708:
18709: fi
18710: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18711:
18712: fi
18713: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
18714: $as_echo "$ntp_cv_struct_timespec" >&6; }
18715: case "$ntp_cv_struct_timespec" in
18716: yes)
18717:
18718: $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
18719:
18720: esac
18721:
18722: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
18723: $as_echo_n "checking for struct ntptimeval... " >&6; }
18724: if ${ntp_cv_struct_ntptimeval+:} false; then :
18725: $as_echo_n "(cached) " >&6
18726: else
18727: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18728: /* end confdefs.h. */
18729:
18730: #include <sys/time.h>
18731: #include <sys/timex.h>
18732:
18733: int
18734: main ()
18735: {
18736:
18737: struct ntptimeval n;
18738:
18739:
18740: ;
18741: return 0;
18742: }
18743: _ACEOF
18744: if ac_fn_c_try_compile "$LINENO"; then :
18745: ntp_cv_struct_ntptimeval=yes
18746: else
18747: ntp_cv_struct_ntptimeval=no
18748:
18749: fi
18750: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18751:
18752: fi
18753: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
18754: $as_echo "$ntp_cv_struct_ntptimeval" >&6; }
18755: case "$ntp_cv_struct_ntptimeval" in
18756: yes)
18757:
18758: $as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
18759:
18760: esac
18761:
18762: ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" "
18763: #ifdef HAVE_SYS_TIME_H
18764: #include <sys/time.h>
18765: #else
18766: # ifdef HAVE_TIME_H
18767: # include <time.h>
18768: # endif
18769: #endif
18770: #ifdef HAVE_SYS_TIMEX_H
18771: # include <sys/timex.h>
18772: #else
18773: # ifdef HAVE_TIMEX_H
18774: # include <timex.h>
18775: # endif
18776: #endif
18777:
18778:
18779: "
18780: if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = xyes; then :
18781:
18782: cat >>confdefs.h <<_ACEOF
18783: #define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
18784: _ACEOF
18785:
18786:
18787: fi
18788:
18789:
18790: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18791: $as_echo_n "checking for inline... " >&6; }
18792: if ${ac_cv_c_inline+:} false; then :
18793: $as_echo_n "(cached) " >&6
18794: else
18795: ac_cv_c_inline=no
18796: for ac_kw in inline __inline__ __inline; do
18797: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18798: /* end confdefs.h. */
18799: #ifndef __cplusplus
18800: typedef int foo_t;
18801: static $ac_kw foo_t static_foo () {return 0; }
18802: $ac_kw foo_t foo () {return 0; }
18803: #endif
18804:
18805: _ACEOF
18806: if ac_fn_c_try_compile "$LINENO"; then :
18807: ac_cv_c_inline=$ac_kw
18808: fi
18809: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18810: test "$ac_cv_c_inline" != no && break
18811: done
18812:
18813: fi
18814: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18815: $as_echo "$ac_cv_c_inline" >&6; }
18816:
18817: case $ac_cv_c_inline in
18818: inline | yes) ;;
18819: *)
18820: case $ac_cv_c_inline in
18821: no) ac_val=;;
18822: *) ac_val=$ac_cv_c_inline;;
18823: esac
18824: cat >>confdefs.h <<_ACEOF
18825: #ifndef __cplusplus
18826: #define inline $ac_val
18827: #endif
18828: _ACEOF
18829: ;;
18830: esac
18831:
18832:
18833: case "$ac_cv_c_inline" in
18834: '')
18835: ;;
18836: *)
18837:
18838: $as_echo "#define HAVE_INLINE 1" >>confdefs.h
18839:
18840:
18841: esac
18842:
18843: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
18844: $as_echo_n "checking whether char is unsigned... " >&6; }
18845: if ${ac_cv_c_char_unsigned+:} false; then :
18846: $as_echo_n "(cached) " >&6
18847: else
18848: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18849: /* end confdefs.h. */
18850: $ac_includes_default
18851: int
18852: main ()
18853: {
18854: static int test_array [1 - 2 * !(((char) -1) < 0)];
18855: test_array [0] = 0
18856:
18857: ;
18858: return 0;
18859: }
18860: _ACEOF
18861: if ac_fn_c_try_compile "$LINENO"; then :
18862: ac_cv_c_char_unsigned=no
18863: else
18864: ac_cv_c_char_unsigned=yes
18865: fi
18866: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18867: fi
18868: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
18869: $as_echo "$ac_cv_c_char_unsigned" >&6; }
18870: if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18871: $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
18872:
18873: fi
18874: # The cast to long int works around a bug in the HP C Compiler
18875: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18876: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18877: # This bug is HP SR number 8606223364.
18878: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
18879: $as_echo_n "checking size of signed char... " >&6; }
18880: if ${ac_cv_sizeof_signed_char+:} false; then :
18881: $as_echo_n "(cached) " >&6
18882: else
18883: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then :
18884:
18885: else
18886: if test "$ac_cv_type_signed_char" = yes; then
18887: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18888: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18889: as_fn_error 77 "cannot compute sizeof (signed char)
18890: See \`config.log' for more details" "$LINENO" 5; }
18891: else
18892: ac_cv_sizeof_signed_char=0
18893: fi
18894: fi
18895:
18896: fi
18897: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
18898: $as_echo "$ac_cv_sizeof_signed_char" >&6; }
18899:
18900:
18901:
18902: cat >>confdefs.h <<_ACEOF
18903: #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
18904: _ACEOF
18905:
18906:
18907: ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
18908: if test "x$ac_cv_type_s_char" = xyes; then :
18909:
18910: cat >>confdefs.h <<_ACEOF
18911: #define HAVE_S_CHAR 1
18912: _ACEOF
18913:
18914:
18915: fi
18916:
18917: # The cast to long int works around a bug in the HP C Compiler
18918: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18919: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18920: # This bug is HP SR number 8606223364.
18921: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
18922: $as_echo_n "checking size of int... " >&6; }
18923: if ${ac_cv_sizeof_int+:} false; then :
18924: $as_echo_n "(cached) " >&6
18925: else
18926: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
18927:
18928: else
18929: if test "$ac_cv_type_int" = yes; then
18930: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18931: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18932: as_fn_error 77 "cannot compute sizeof (int)
18933: See \`config.log' for more details" "$LINENO" 5; }
18934: else
18935: ac_cv_sizeof_int=0
18936: fi
18937: fi
18938:
18939: fi
18940: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
18941: $as_echo "$ac_cv_sizeof_int" >&6; }
18942:
18943:
18944:
18945: cat >>confdefs.h <<_ACEOF
18946: #define SIZEOF_INT $ac_cv_sizeof_int
18947: _ACEOF
18948:
18949:
18950: # The cast to long int works around a bug in the HP C Compiler
18951: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18952: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18953: # This bug is HP SR number 8606223364.
18954: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
18955: $as_echo_n "checking size of long... " >&6; }
18956: if ${ac_cv_sizeof_long+:} false; then :
18957: $as_echo_n "(cached) " >&6
18958: else
18959: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
18960:
18961: else
18962: if test "$ac_cv_type_long" = yes; then
18963: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18964: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18965: as_fn_error 77 "cannot compute sizeof (long)
18966: See \`config.log' for more details" "$LINENO" 5; }
18967: else
18968: ac_cv_sizeof_long=0
18969: fi
18970: fi
18971:
18972: fi
18973: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
18974: $as_echo "$ac_cv_sizeof_long" >&6; }
18975:
18976:
18977:
18978: cat >>confdefs.h <<_ACEOF
18979: #define SIZEOF_LONG $ac_cv_sizeof_long
18980: _ACEOF
18981:
18982:
18983:
18984: case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
18985: *yes)
18986: # We have a typedef for s_char. Might as well believe it...
18987: ;;
18988: no0no)
18989: # We have signed chars, can't say 'signed char', no s_char typedef.
18990:
18991: $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
18992:
18993: ;;
18994: no1no)
18995: # We have signed chars, can say 'signed char', no s_char typedef.
18996:
18997: $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
18998:
18999: ;;
19000: yes0no)
19001: # We have unsigned chars, can't say 'signed char', no s_char typedef.
19002: as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
19003: ;;
19004: yes1no)
19005: # We have unsigned chars, can say 'signed char', no s_char typedef.
19006:
19007: $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
19008:
19009: ;;
19010: esac
19011: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
19012: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19013: if ${ac_cv_type_uid_t+:} false; then :
19014: $as_echo_n "(cached) " >&6
19015: else
19016: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19017: /* end confdefs.h. */
19018: #include <sys/types.h>
19019:
19020: _ACEOF
19021: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19022: $EGREP "uid_t" >/dev/null 2>&1; then :
19023: ac_cv_type_uid_t=yes
19024: else
19025: ac_cv_type_uid_t=no
19026: fi
19027: rm -f conftest*
19028:
19029: fi
19030: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
19031: $as_echo "$ac_cv_type_uid_t" >&6; }
19032: if test $ac_cv_type_uid_t = no; then
19033:
19034: $as_echo "#define uid_t int" >>confdefs.h
19035:
19036:
19037: $as_echo "#define gid_t int" >>confdefs.h
19038:
19039: fi
19040:
19041:
19042: case "$host" in
19043: *-*-aix[456]*)
19044: # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
19045: # (returning ENOSYS). I didn't check 4.2. If, in the future,
19046: # IBM pulls its thumbs out long enough to implement clock_settime,
19047: # this conditional will need to change. Maybe use AC_TRY_RUN
19048: # instead to try to set the time to itself and check errno.
19049: ;;
19050: *)
19051: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
19052: $as_echo_n "checking for library containing clock_gettime... " >&6; }
19053: if ${ac_cv_search_clock_gettime+:} false; then :
19054: $as_echo_n "(cached) " >&6
19055: else
19056: ac_func_search_save_LIBS=$LIBS
19057: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19058: /* end confdefs.h. */
19059:
19060: /* Override any GCC internal prototype to avoid an error.
19061: Use char because int might match the return type of a GCC
19062: builtin and then its argument prototype would still apply. */
19063: #ifdef __cplusplus
19064: extern "C"
19065: #endif
19066: char clock_gettime ();
19067: int
19068: main ()
19069: {
19070: return clock_gettime ();
19071: ;
19072: return 0;
19073: }
19074: _ACEOF
19075: for ac_lib in '' rt; do
19076: if test -z "$ac_lib"; then
19077: ac_res="none required"
19078: else
19079: ac_res=-l$ac_lib
19080: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19081: fi
19082: if ac_fn_c_try_link "$LINENO"; then :
19083: ac_cv_search_clock_gettime=$ac_res
19084: fi
19085: rm -f core conftest.err conftest.$ac_objext \
19086: conftest$ac_exeext
19087: if ${ac_cv_search_clock_gettime+:} false; then :
19088: break
19089: fi
19090: done
19091: if ${ac_cv_search_clock_gettime+:} false; then :
19092:
19093: else
19094: ac_cv_search_clock_gettime=no
19095: fi
19096: rm conftest.$ac_ext
19097: LIBS=$ac_func_search_save_LIBS
19098: fi
19099: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
19100: $as_echo "$ac_cv_search_clock_gettime" >&6; }
19101: ac_res=$ac_cv_search_clock_gettime
19102: if test "$ac_res" != no; then :
19103: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19104:
19105: fi
19106:
19107: for ac_func in clock_gettime clock_settime
19108: do :
19109: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19110: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19111: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19112: cat >>confdefs.h <<_ACEOF
19113: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19114: _ACEOF
19115:
19116: fi
19117: done
19118:
19119: ;;
19120: esac
19121: for ac_func in daemon
19122: do :
19123: ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
19124: if test "x$ac_cv_func_daemon" = xyes; then :
19125: cat >>confdefs.h <<_ACEOF
19126: #define HAVE_DAEMON 1
19127: _ACEOF
19128:
19129: fi
19130: done
19131:
19132: for ac_func in finite
19133: do :
19134: ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
19135: if test "x$ac_cv_func_finite" = xyes; then :
19136: cat >>confdefs.h <<_ACEOF
19137: #define HAVE_FINITE 1
19138: _ACEOF
19139:
19140: else
19141: for ac_func in isfinite
19142: do :
19143: ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite"
19144: if test "x$ac_cv_func_isfinite" = xyes; then :
19145: cat >>confdefs.h <<_ACEOF
19146: #define HAVE_ISFINITE 1
19147: _ACEOF
19148:
19149: else
19150:
19151: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
19152: $as_echo_n "checking for isfinite with <math.h>... " >&6; }
19153: _libs=$LIBS
19154: LIBS="$LIBS -lm"
19155: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19156: /* end confdefs.h. */
19157:
19158: #include <math.h>
19159:
19160: int
19161: main ()
19162: {
19163:
19164: float f = 0.0;
19165: isfinite(f);
19166:
19167:
19168: ;
19169: return 0;
19170: }
19171: _ACEOF
19172: if ac_fn_c_try_link "$LINENO"; then :
19173: ans=yes
19174: else
19175: ans=no
19176:
19177: fi
19178: rm -f core conftest.err conftest.$ac_objext \
19179: conftest$ac_exeext conftest.$ac_ext
19180: LIBS=$_libs
19181: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
19182: $as_echo "$ans" >&6; }
19183: case "$ans" in
19184: yes)
19185: $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
19186:
19187: esac
19188:
19189:
19190: fi
19191: done
19192:
19193:
19194: fi
19195: done
19196:
19197:
19198: for ac_func in getbootfile getclock getdtablesize
19199: do :
19200: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19201: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19202: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19203: cat >>confdefs.h <<_ACEOF
19204: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19205: _ACEOF
19206:
19207: fi
19208: done
19209:
19210:
19211: # Check whether --enable-getifaddrs was given.
19212: if test "${enable_getifaddrs+set}" = set; then :
19213: enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
19214: else
19215: want_getifaddrs="yes"
19216:
19217: fi
19218:
19219:
19220: case $want_getifaddrs in
19221: yes|glibc)
19222: #
19223: # Do we have getifaddrs() ?
19224: #
19225: case $host in
19226: *-*linux*)
19227: # Some recent versions of glibc support getifaddrs() which does not
19228: # provide AF_INET6 addresses while the function provided by the USAGI
19229: # project handles the AF_INET6 case correctly. We need to avoid
19230: # using the former but prefer the latter unless overridden by
19231: # --enable-getifaddrs=glibc.
19232: case "$want_getifaddrs" in
19233: glibc)
19234: for ac_func in getifaddrs
19235: do :
19236: ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
19237: if test "x$ac_cv_func_getifaddrs" = xyes; then :
19238: cat >>confdefs.h <<_ACEOF
19239: #define HAVE_GETIFADDRS 1
19240: _ACEOF
19241:
19242: fi
19243: done
19244:
19245: ;;
19246: *)
19247: save_LIBS="$LIBS"
19248: LIBS="-L/usr/local/v6/lib $LIBS"
19249: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getifaddrs in -linet6" >&5
19250: $as_echo_n "checking for getifaddrs in -linet6... " >&6; }
19251: if ${ac_cv_lib_inet6_getifaddrs+:} false; then :
19252: $as_echo_n "(cached) " >&6
19253: else
19254: ac_check_lib_save_LIBS=$LIBS
19255: LIBS="-linet6 $LIBS"
19256: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19257: /* end confdefs.h. */
19258:
19259: /* Override any GCC internal prototype to avoid an error.
19260: Use char because int might match the return type of a GCC
19261: builtin and then its argument prototype would still apply. */
19262: #ifdef __cplusplus
19263: extern "C"
19264: #endif
19265: char getifaddrs ();
19266: int
19267: main ()
19268: {
19269: return getifaddrs ();
19270: ;
19271: return 0;
19272: }
19273: _ACEOF
19274: if ac_fn_c_try_link "$LINENO"; then :
19275: ac_cv_lib_inet6_getifaddrs=yes
19276: else
19277: ac_cv_lib_inet6_getifaddrs=no
19278: fi
19279: rm -f core conftest.err conftest.$ac_objext \
19280: conftest$ac_exeext conftest.$ac_ext
19281: LIBS=$ac_check_lib_save_LIBS
19282: fi
19283: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getifaddrs" >&5
19284: $as_echo "$ac_cv_lib_inet6_getifaddrs" >&6; }
19285: if test "x$ac_cv_lib_inet6_getifaddrs" = xyes; then :
19286: ans=yes
19287: else
19288: ans=no
19289:
19290: fi
19291:
19292: case "$ans" in
19293: yes)
19294: LIBS="$LIBS -linet6"
19295: $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
19296:
19297: ;;
19298: *)
19299: LIBS=${save_LIBS}
19300: ;;
19301: esac
19302: ;;
19303: esac
19304: ;;
19305: esac
19306: ;;
19307: *)
19308: for ac_func in getifaddrs
19309: do :
19310: ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
19311: if test "x$ac_cv_func_getifaddrs" = xyes; then :
19312: cat >>confdefs.h <<_ACEOF
19313: #define HAVE_GETIFADDRS 1
19314: _ACEOF
19315:
19316: fi
19317: done
19318:
19319: ;;
19320: esac
19321:
19322: { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
19323: $as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
19324: if ${ntp_cv_getsockname_socklen_type+:} false; then :
19325: $as_echo_n "(cached) " >&6
19326: else
19327:
19328: getsockname_socklen_type_found=no
19329: for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
19330: for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
19331: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19332: /* end confdefs.h. */
19333:
19334: #ifdef HAVE_SYS_TYPES_H
19335: # include <sys/types.h>
19336: #endif
19337: #ifdef HAVE_SYS_SOCKET_H
19338: # include <sys/socket.h>
19339: #endif
19340:
19341: int
19342: main ()
19343: {
19344:
19345: extern
19346: getsockname(int, $getsockname_arg2,
19347: $ntp_cv_getsockname_socklen_type *);
19348:
19349:
19350: ;
19351: return 0;
19352: }
19353: _ACEOF
19354: if ac_fn_c_try_compile "$LINENO"; then :
19355: getsockname_socklen_type_found=yes ; break 2
19356: fi
19357: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19358: done
19359: done
19360: case "$getsockname_socklen_type_found" in
19361: no)
19362: ntp_cv_getsockname_socklen_type='socklen_t'
19363: esac
19364: { getsockname_arg2=; unset getsockname_arg2;}
19365: { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}
19366:
19367:
19368: fi
19369: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
19370: $as_echo "$ntp_cv_getsockname_socklen_type" >&6; }
19371:
19372: cat >>confdefs.h <<_ACEOF
19373: #define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
19374: _ACEOF
19375:
19376:
19377: for ac_func in getuid getrusage hstrerror
19378: do :
19379: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19380: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19381: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19382: cat >>confdefs.h <<_ACEOF
19383: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19384: _ACEOF
19385:
19386: fi
19387: done
19388:
19389: ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
19390: if test "x$ac_cv_func_gettimeofday" = xyes; then :
19391:
19392: else
19393:
19394: case "$host" in
19395: *-*-mpeix*) ac_cv_func_gettimeofday=yes
19396: ;;
19397: esac
19398: fi
19399:
19400:
19401: #
19402: # Check for if_nametoindex() for IPv6 scoped addresses support
19403: #
19404: case "$host" in
19405: *-hp-hpux*)
19406: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
19407: $as_echo_n "checking for library containing if_nametoindex... " >&6; }
19408: if ${ac_cv_search_if_nametoindex+:} false; then :
19409: $as_echo_n "(cached) " >&6
19410: else
19411: ac_func_search_save_LIBS=$LIBS
19412: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19413: /* end confdefs.h. */
19414:
19415: /* Override any GCC internal prototype to avoid an error.
19416: Use char because int might match the return type of a GCC
19417: builtin and then its argument prototype would still apply. */
19418: #ifdef __cplusplus
19419: extern "C"
19420: #endif
19421: char if_nametoindex ();
19422: int
19423: main ()
19424: {
19425: return if_nametoindex ();
19426: ;
19427: return 0;
19428: }
19429: _ACEOF
19430: for ac_lib in '' ipv6; do
19431: if test -z "$ac_lib"; then
19432: ac_res="none required"
19433: else
19434: ac_res=-l$ac_lib
19435: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19436: fi
19437: if ac_fn_c_try_link "$LINENO"; then :
19438: ac_cv_search_if_nametoindex=$ac_res
19439: fi
19440: rm -f core conftest.err conftest.$ac_objext \
19441: conftest$ac_exeext
19442: if ${ac_cv_search_if_nametoindex+:} false; then :
19443: break
19444: fi
19445: done
19446: if ${ac_cv_search_if_nametoindex+:} false; then :
19447:
19448: else
19449: ac_cv_search_if_nametoindex=no
19450: fi
19451: rm conftest.$ac_ext
19452: LIBS=$ac_func_search_save_LIBS
19453: fi
19454: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
19455: $as_echo "$ac_cv_search_if_nametoindex" >&6; }
19456: ac_res=$ac_cv_search_if_nametoindex
19457: if test "$ac_res" != no; then :
19458: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19459:
19460: fi
19461:
19462: esac
19463: for ac_func in if_nametoindex
19464: do :
19465: ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
19466: if test "x$ac_cv_func_if_nametoindex" = xyes; then :
19467: cat >>confdefs.h <<_ACEOF
19468: #define HAVE_IF_NAMETOINDEX 1
19469: _ACEOF
19470:
19471: fi
19472: done
19473:
19474: case "$ac_cv_func_if_nametoindex" in
19475: yes)
19476:
19477: $as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
19478:
19479: esac
19480:
19481: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
19482: $as_echo_n "checking for library containing inet_ntop... " >&6; }
19483: if ${ac_cv_search_inet_ntop+:} false; then :
19484: $as_echo_n "(cached) " >&6
19485: else
19486: ac_func_search_save_LIBS=$LIBS
19487: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19488: /* end confdefs.h. */
19489:
19490: /* Override any GCC internal prototype to avoid an error.
19491: Use char because int might match the return type of a GCC
19492: builtin and then its argument prototype would still apply. */
19493: #ifdef __cplusplus
19494: extern "C"
19495: #endif
19496: char inet_ntop ();
19497: int
19498: main ()
19499: {
19500: return inet_ntop ();
19501: ;
19502: return 0;
19503: }
19504: _ACEOF
19505: for ac_lib in '' resolv; do
19506: if test -z "$ac_lib"; then
19507: ac_res="none required"
19508: else
19509: ac_res=-l$ac_lib
19510: LIBS="-l$ac_lib -lsocket -lnsl $ac_func_search_save_LIBS"
19511: fi
19512: if ac_fn_c_try_link "$LINENO"; then :
19513: ac_cv_search_inet_ntop=$ac_res
19514: fi
19515: rm -f core conftest.err conftest.$ac_objext \
19516: conftest$ac_exeext
19517: if ${ac_cv_search_inet_ntop+:} false; then :
19518: break
19519: fi
19520: done
19521: if ${ac_cv_search_inet_ntop+:} false; then :
19522:
19523: else
19524: ac_cv_search_inet_ntop=no
19525: fi
19526: rm conftest.$ac_ext
19527: LIBS=$ac_func_search_save_LIBS
19528: fi
19529: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
19530: $as_echo "$ac_cv_search_inet_ntop" >&6; }
19531: ac_res=$ac_cv_search_inet_ntop
19532: if test "$ac_res" != no; then :
19533: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19534:
19535: fi
19536:
19537: ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
19538: if test "x$ac_cv_func_inet_ntop" = xyes; then :
19539:
19540: else
19541:
19542: $as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
19543:
19544: fi
19545:
19546: ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
19547: if test "x$ac_cv_func_inet_pton" = xyes; then :
19548:
19549: else
19550:
19551: $as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
19552:
19553: fi
19554:
19555:
19556: case "$ac_cv_header_kvm_h" in
19557: yes)
19558: for ac_func in kvm_open
19559: do :
19560: ac_fn_c_check_func "$LINENO" "kvm_open" "ac_cv_func_kvm_open"
19561: if test "x$ac_cv_func_kvm_open" = xyes; then :
19562: cat >>confdefs.h <<_ACEOF
19563: #define HAVE_KVM_OPEN 1
19564: _ACEOF
19565:
19566: fi
19567: done
19568:
19569: ;;
19570: esac
19571:
19572: for ac_func in memcpy memmove memset
19573: do :
19574: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19575: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19576: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19577: cat >>confdefs.h <<_ACEOF
19578: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19579: _ACEOF
19580:
19581: fi
19582: done
19583:
19584: case "$host" in
19585: *-*-sco3.2v5.0.*)
19586: # Just stubs. Idiots.
19587: ;;
19588: *) for ac_func in mkstemp
19589: do :
19590: ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
19591: if test "x$ac_cv_func_mkstemp" = xyes; then :
19592: cat >>confdefs.h <<_ACEOF
19593: #define HAVE_MKSTEMP 1
19594: _ACEOF
19595:
19596: fi
19597: done
19598:
19599: ;;
19600: esac
19601: for ac_func in mktime
19602: do :
19603: ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
19604: if test "x$ac_cv_func_mktime" = xyes; then :
19605: cat >>confdefs.h <<_ACEOF
19606: #define HAVE_MKTIME 1
19607: _ACEOF
19608:
19609: fi
19610: done
19611:
19612: case "$host" in
19613: *-*-aix[456]*)
19614: # Just a stub. Idiots.
19615: ;;
19616: *-*-irix[45]*)
19617: # Just a stub in "old" Irix. Idiots.
19618: ;;
19619: *-*-*linux*)
19620: # there, but more trouble than it is worth for now (resolver problems)
19621: ;;
19622: *-*-qnx*)
19623: # Apparently there but not working in QNX. Idiots?
19624: ;;
19625: *-*-sco3.2v5.0.*)
19626: # Just a stub. Idiots.
19627: ;;
19628: alpha*-dec-osf4*|alpha*-dec-osf5*)
19629: # mlockall is there, as a #define calling memlk via <sys/mman.h>
19630: # Not easy to test for - cheat.
19631: for ac_func in memlk
19632: do :
19633: ac_fn_c_check_func "$LINENO" "memlk" "ac_cv_func_memlk"
19634: if test "x$ac_cv_func_memlk" = xyes; then :
19635: cat >>confdefs.h <<_ACEOF
19636: #define HAVE_MEMLK 1
19637: _ACEOF
19638: ac_cv_func_mlockall=yes
19639: fi
19640: done
19641:
19642: for ac_func in mlockall
19643: do :
19644: ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
19645: if test "x$ac_cv_func_mlockall" = xyes; then :
19646: cat >>confdefs.h <<_ACEOF
19647: #define HAVE_MLOCKALL 1
19648: _ACEOF
19649:
19650: fi
19651: done
19652:
19653: ;;
19654: *) for ac_func in mlockall
19655: do :
19656: ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
19657: if test "x$ac_cv_func_mlockall" = xyes; then :
19658: cat >>confdefs.h <<_ACEOF
19659: #define HAVE_MLOCKALL 1
19660: _ACEOF
19661:
19662: fi
19663: done
19664:
19665: ;;
19666: esac
19667: for ac_func in nice nlist
19668: do :
19669: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19670: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19671: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19672: cat >>confdefs.h <<_ACEOF
19673: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19674: _ACEOF
19675:
19676: fi
19677: done
19678:
19679: case "$host" in
19680: *-*-solaris2.6)
19681: # Broken...
19682: ;;
19683: *) for ac_func in ntp_adjtime ntp_gettime
19684: do :
19685: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19686: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19687: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19688: cat >>confdefs.h <<_ACEOF
19689: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19690: _ACEOF
19691:
19692: fi
19693: done
19694:
19695: ;;
19696: esac
19697: for ac_func in plock pututline pututxline readlink recvmsg rtprio
19698: do :
19699: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19700: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19701: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19702: cat >>confdefs.h <<_ACEOF
19703: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19704: _ACEOF
19705:
19706: fi
19707: done
19708:
19709: case "$host" in
19710: *-*-aix[456]*)
19711: # Just a stub in AIX 4. Idiots.
19712: ;;
19713: *-*-solaris2.5*)
19714: # Just stubs in solaris2.5. Idiots.
19715: ;;
19716: *) for ac_func in sched_setscheduler
19717: do :
19718: ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
19719: if test "x$ac_cv_func_sched_setscheduler" = xyes; then :
19720: cat >>confdefs.h <<_ACEOF
19721: #define HAVE_SCHED_SETSCHEDULER 1
19722: _ACEOF
19723:
19724: fi
19725: done
19726:
19727: ;;
19728: esac
19729: for ac_func in setlinebuf setpgid setpriority setsid
19730: do :
19731: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19732: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19733: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19734: cat >>confdefs.h <<_ACEOF
19735: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19736: _ACEOF
19737:
19738: fi
19739: done
19740:
19741: for ac_func in setrlimit
19742: do :
19743: ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
19744: if test "x$ac_cv_func_setrlimit" = xyes; then :
19745: cat >>confdefs.h <<_ACEOF
19746: #define HAVE_SETRLIMIT 1
19747: _ACEOF
19748:
19749: fi
19750: done
19751:
19752: for ac_func in settimeofday
19753: do :
19754: ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
19755: if test "x$ac_cv_func_settimeofday" = xyes; then :
19756: cat >>confdefs.h <<_ACEOF
19757: #define HAVE_SETTIMEOFDAY 1
19758: _ACEOF
19759:
19760: else
19761:
19762: case "$host" in
19763: *-*-mpeix*) ac_cv_func_settimeofday=yes
19764: ;;
19765: esac
19766: fi
19767: done
19768:
19769: for ac_func in setvbuf sigaction sigvec sigset sigsuspend stime strchr
19770: do :
19771: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19772: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19773: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19774: cat >>confdefs.h <<_ACEOF
19775: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19776: _ACEOF
19777:
19778: fi
19779: done
19780:
19781: for ac_func in sysconf sysctl snprintf strdup strerror strstr timegm
19782: do :
19783: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19784: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19785: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19786: cat >>confdefs.h <<_ACEOF
19787: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19788: _ACEOF
19789:
19790: fi
19791: done
19792:
19793: case "$host" in
19794: *-*-aix[456]*)
19795: # Just stubs. Idiots.
19796: ;;
19797: *-*-netbsd1*)
19798: # Just stubs. Idiots.
19799: ;;
19800: *-*-netbsdelf1*)
19801: # Just stubs. Idiots.
19802: ;;
19803: *-*-openbsd*)
19804: # Just stubs. Idiots.
19805: ;;
19806: *) for ac_func in timer_create timer_settime
19807: do :
19808: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19809: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19810: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19811: cat >>confdefs.h <<_ACEOF
19812: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19813: _ACEOF
19814:
19815: fi
19816: done
19817:
19818: ;;
19819: esac
19820: for ac_func in umask uname updwtmp updwtmpx vsnprintf vsprintf
19821: do :
19822: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19823: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19824: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19825: cat >>confdefs.h <<_ACEOF
19826: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19827: _ACEOF
19828:
19829: fi
19830: done
19831:
19832:
19833: ###
19834:
19835: # http://bugs.ntp.org/737
19836: case "$ac_cv_func_recvmsg" in
19837: yes)
19838: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra help to define struct iovec" >&5
19839: $as_echo_n "checking if we need extra help to define struct iovec... " >&6; }
19840: if ${ntp_cv_struct_iovec_help+:} false; then :
19841: $as_echo_n "(cached) " >&6
19842: else
19843:
19844: compiled=no
19845: for ntp_cv_struct_iovec_help in '0' '1'; do
19846: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19847: /* end confdefs.h. */
19848:
19849: #ifdef HAVE_SYS_TYPES_H
19850: # include <sys/types.h>
19851: #endif
19852: #ifdef HAVE_SYS_SOCKET_H
19853: # include <sys/socket.h>
19854: #endif
19855: #if $ntp_cv_struct_iovec_help
19856: # include <sys/uio.h>
19857: #endif
19858:
19859: int
19860: main ()
19861: {
19862:
19863: void foo(void) {
19864: ssize_t x;
19865: int s = 0;
19866: struct iovec iov;
19867: struct msghdr mh;
19868: int flags = 0;
19869:
19870: mh.msg_iov = &iov;
19871: x = recvmsg(s, &mh, flags);
19872: }
19873:
19874:
19875: ;
19876: return 0;
19877: }
19878: _ACEOF
19879: if ac_fn_c_try_compile "$LINENO"; then :
19880: compiled=yes ; break 1
19881: fi
19882: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19883: done
19884: case "$compiled" in
19885: no)
19886: ntp_cv_struct_iovec_help=0
19887: esac
19888: { compiled=; unset compiled;}
19889:
19890:
19891: fi
19892: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_iovec_help" >&5
19893: $as_echo "$ntp_cv_struct_iovec_help" >&6; }
19894: case "$ntp_cv_struct_iovec_help" in
19895: 1)
19896:
19897: $as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h
19898:
19899: esac
19900: esac
19901:
19902: case "$host" in
19903: *-*-sunos4*)
19904:
19905: $as_echo "#define SPRINTF_CHAR 1" >>confdefs.h
19906:
19907: ;;
19908: esac
19909:
19910: { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
19911: $as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
19912: if ${ntp_cv_func_Xettimeofday_nargs+:} false; then :
19913: $as_echo_n "(cached) " >&6
19914: else
19915: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19916: /* end confdefs.h. */
19917:
19918: #include <sys/time.h>
19919:
19920: int
19921: main ()
19922: {
19923:
19924: gettimeofday(0, 0);
19925: settimeofday(0, 0);
19926:
19927:
19928: ;
19929: return 0;
19930: }
19931: _ACEOF
19932: if ac_fn_c_try_compile "$LINENO"; then :
19933: ntp_cv_func_Xettimeofday_nargs=2
19934: else
19935: ntp_cv_func_Xettimeofday_nargs=1
19936:
19937: fi
19938: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19939:
19940: fi
19941: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
19942: $as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; }
19943: case "$ntp_cv_func_Xettimeofday_nargs" in
19944: 1)
19945:
19946: $as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h
19947:
19948: esac
19949:
19950: { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments taken by setpgrp()" >&5
19951: $as_echo_n "checking number of arguments taken by setpgrp()... " >&6; }
19952: if ${ntp_cv_func_setpgrp_nargs+:} false; then :
19953: $as_echo_n "(cached) " >&6
19954: else
19955: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19956: /* end confdefs.h. */
19957:
19958: #ifdef HAVE_SYS_TYPES_H
19959: # include <sys/types.h>
19960: #endif
19961: #ifdef HAVE_UNISTD_H
19962: # include <unistd.h>
19963: #endif
19964:
19965: int
19966: main ()
19967: {
19968:
19969: setpgrp(0, 0);
19970:
19971:
19972: ;
19973: return 0;
19974: }
19975: _ACEOF
19976: if ac_fn_c_try_compile "$LINENO"; then :
19977: ntp_cv_func_setpgrp_nargs=2
19978: else
19979: ntp_cv_func_setpgrp_nargs=0
19980:
19981: fi
19982: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19983:
19984: fi
19985: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_setpgrp_nargs" >&5
19986: $as_echo "$ntp_cv_func_setpgrp_nargs" >&6; }
19987: case "$ntp_cv_func_setpgrp_nargs" in
19988: 0)
19989:
19990: $as_echo "#define HAVE_SETPGRP_0 1" >>confdefs.h
19991:
19992: esac
19993:
19994:
19995: $as_echo "#define QSORT_USES_VOID_P 1" >>confdefs.h
19996:
19997:
19998: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to declare 'errno'" >&5
19999: $as_echo_n "checking if we need to declare 'errno'... " >&6; }
20000: if ${ntp_cv_decl_errno+:} false; then :
20001: $as_echo_n "(cached) " >&6
20002: else
20003: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20004: /* end confdefs.h. */
20005:
20006: #ifdef HAVE_ERRNO_H
20007: # include <errno.h>
20008: #endif
20009:
20010: int
20011: main ()
20012: {
20013:
20014: errno = 0;
20015:
20016:
20017: ;
20018: return 0;
20019: }
20020: _ACEOF
20021: if ac_fn_c_try_compile "$LINENO"; then :
20022: ntp_cv_decl_errno=no
20023: else
20024: ntp_cv_decl_errno=yes
20025:
20026: fi
20027: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20028:
20029: fi
20030: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_errno" >&5
20031: $as_echo "$ntp_cv_decl_errno" >&6; }
20032: case "$ntp_cv_decl_errno" in
20033: yes)
20034:
20035: $as_echo "#define DECL_ERRNO 1" >>confdefs.h
20036:
20037: esac
20038:
20039: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we may declare 'h_errno'" >&5
20040: $as_echo_n "checking if we may declare 'h_errno'... " >&6; }
20041: if ${ntp_cv_decl_h_errno+:} false; then :
20042: $as_echo_n "(cached) " >&6
20043: else
20044: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20045: /* end confdefs.h. */
20046:
20047: #include <sys/types.h>
20048: #ifdef HAVE_NETINET_IN_H
20049: # include <netinet/in.h>
20050: #endif
20051: #ifdef HAVE_ARPA_NAMESER_H
20052: # include <arpa/nameser.h>
20053: #endif
20054: #ifdef HAVE_NETDB_H
20055: # include <netdb.h>
20056: #endif
20057: #ifdef HAVE_RESOLV_H
20058: # include <resolv.h>
20059: #endif
20060:
20061: int
20062: main ()
20063: {
20064:
20065: extern int h_errno;
20066:
20067:
20068: ;
20069: return 0;
20070: }
20071: _ACEOF
20072: if ac_fn_c_try_compile "$LINENO"; then :
20073: ntp_cv_decl_h_errno=yes
20074: else
20075: ntp_cv_decl_h_errno=no
20076:
20077: fi
20078: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20079:
20080: fi
20081: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_h_errno" >&5
20082: $as_echo "$ntp_cv_decl_h_errno" >&6; }
20083: case "$ntp_cv_decl_h_errno" in
20084: yes)
20085:
20086: $as_echo "#define DECL_H_ERRNO 1" >>confdefs.h
20087:
20088: esac
20089:
20090: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'syscall()' is ok" >&5
20091: $as_echo_n "checking if declaring 'syscall()' is ok... " >&6; }
20092: if ${ntp_cv_decl_syscall+:} false; then :
20093: $as_echo_n "(cached) " >&6
20094: else
20095: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20096: /* end confdefs.h. */
20097:
20098: #ifdef HAVE_SYS_TYPES_H
20099: # include <sys/types.h>
20100: #endif
20101: #ifdef HAVE_UNISTD_H
20102: # include <unistd.h>
20103: #endif
20104:
20105: int
20106: main ()
20107: {
20108:
20109: extern int syscall (int, ...);
20110:
20111:
20112: ;
20113: return 0;
20114: }
20115: ntp_cv_decl_syscall=yes
20116: _ACEOF
20117: if ac_fn_c_try_compile "$LINENO"; then :
20118: ntp_cv_decl_syscall=no
20119:
20120: fi
20121: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20122:
20123: fi
20124: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_syscall" >&5
20125: $as_echo "$ntp_cv_decl_syscall" >&6; }
20126: case "$ntp_cv_decl_syscall" in
20127: yes)
20128:
20129: $as_echo "#define DECL_SYSCALL 1" >>confdefs.h
20130:
20131: esac
20132:
20133: case "$host" in
20134: *-*-aix4.3.*)
20135:
20136: $as_echo "#define DECL_HSTRERROR_0 1" >>confdefs.h
20137: # Needed for XLC under AIX 4.3.2
20138: ;;
20139: *-*-mpeix*)
20140:
20141: $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
20142:
20143:
20144: $as_echo "#define DECL_INET_NTOA_0 1" >>confdefs.h
20145:
20146:
20147: $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
20148:
20149:
20150: $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
20151:
20152:
20153: $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
20154:
20155:
20156: $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
20157:
20158:
20159: $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
20160:
20161: ;;
20162: *-*-osf[45]*)
20163:
20164: $as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
20165:
20166:
20167: $as_echo "#define DECL_STIME_1 1" >>confdefs.h
20168:
20169: ;;
20170: *-*-qnx*)
20171:
20172: $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
20173:
20174: ;;
20175: *-*-riscos4*)
20176:
20177: $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
20178:
20179:
20180: $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
20181:
20182:
20183: $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
20184:
20185:
20186: $as_echo "#define DECL_IPC_0 1" >>confdefs.h
20187:
20188:
20189: $as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
20190:
20191:
20192: $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
20193:
20194:
20195: $as_echo "#define DECL_RENAME_0 1" >>confdefs.h
20196:
20197:
20198: $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
20199:
20200:
20201: $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
20202:
20203:
20204: $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
20205:
20206:
20207: $as_echo "#define DECL_STDIO_0 1" >>confdefs.h
20208:
20209:
20210: $as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
20211:
20212:
20213: $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
20214:
20215:
20216: $as_echo "#define DECL_TIME_0 1" >>confdefs.h
20217:
20218:
20219: $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
20220:
20221:
20222: $as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
20223:
20224: ;;
20225: *-*-solaris2*)
20226:
20227: $as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
20228:
20229:
20230: $as_echo "#define DECL_SETPRIORITY_1 1" >>confdefs.h
20231:
20232: case "$host" in
20233: *-*-solaris2.4)
20234:
20235: $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
20236:
20237: ;;
20238: esac
20239: ;;
20240: *-*-sunos4*)
20241:
20242: $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
20243:
20244:
20245: $as_echo "#define DECL_BCOPY_0 1" >>confdefs.h
20246:
20247:
20248: $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
20249:
20250:
20251: $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
20252:
20253:
20254: $as_echo "#define DECL_IPC_0 1" >>confdefs.h
20255:
20256:
20257: $as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
20258:
20259:
20260: $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
20261:
20262:
20263: $as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
20264:
20265:
20266: $as_echo "#define DECL_RENAME_0 1" >>confdefs.h
20267:
20268:
20269: $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
20270:
20271:
20272: $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
20273:
20274:
20275: $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
20276:
20277:
20278: $as_echo "#define DECL_SIGVEC_0 1" >>confdefs.h
20279:
20280: case "`basename $ac_cv_prog_CC`" in
20281: acc*) ;;
20282: *)
20283: $as_echo "#define DECL_STDIO_0 1" >>confdefs.h
20284:
20285: ;;
20286: esac
20287:
20288: $as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
20289:
20290:
20291: $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
20292:
20293:
20294: $as_echo "#define DECL_TIME_0 1" >>confdefs.h
20295:
20296:
20297: $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
20298:
20299:
20300: $as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
20301:
20302:
20303: $as_echo "#define DECL_TOUPPER_0 1" >>confdefs.h
20304:
20305:
20306: $as_echo "#define DECL_STRERROR_0 1" >>confdefs.h
20307:
20308: ;;
20309: *-*-ultrix4*)
20310:
20311: $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
20312:
20313:
20314: $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
20315:
20316:
20317: $as_echo "#define DECL_CFSETISPEED_0 1" >>confdefs.h
20318:
20319:
20320: $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
20321:
20322:
20323: $as_echo "#define DECL_IPC_0 1" >>confdefs.h
20324:
20325:
20326: $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
20327:
20328:
20329: $as_echo "#define DECL_NLIST_0 1" >>confdefs.h
20330:
20331:
20332: $as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
20333:
20334:
20335: $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
20336:
20337:
20338: $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
20339:
20340:
20341: $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
20342:
20343:
20344: $as_echo "#define DECL_STIME_0 1" >>confdefs.h
20345:
20346:
20347: $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
20348:
20349:
20350: $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
20351:
20352: ;;
20353: esac
20354:
20355: case "$host" in
20356: *-*-sco3.2*)
20357:
20358: $as_echo "#define TERMIOS_NEEDS__SVID3 1" >>confdefs.h
20359:
20360: ;;
20361: esac
20362:
20363: case "$host" in
20364: *-*-hpux[567]*)
20365:
20366: $as_echo "#define NEED_RCVBUF_SLOP 1" >>confdefs.h
20367:
20368: esac
20369:
20370: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will open the broadcast socket" >&5
20371: $as_echo_n "checking if we will open the broadcast socket... " >&6; }
20372: if ${ntp_cv_var_open_bcast_socket+:} false; then :
20373: $as_echo_n "(cached) " >&6
20374: else
20375:
20376: ans=yes
20377: case "$host" in
20378: *-*-domainos)
20379: ans=no
20380: esac
20381: ntp_cv_var_open_bcast_socket=$ans
20382:
20383:
20384: fi
20385: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_open_bcast_socket" >&5
20386: $as_echo "$ntp_cv_var_open_bcast_socket" >&6; }
20387: case "$ntp_cv_var_open_bcast_socket" in
20388: yes)
20389:
20390: $as_echo "#define OPEN_BCAST_SOCKET 1" >>confdefs.h
20391:
20392: esac
20393:
20394: case "$host" in
20395: *-*-hpux*)
20396:
20397: $as_echo "#define NEED_HPUX_FINDCONFIG 1" >>confdefs.h
20398:
20399: esac
20400:
20401: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if process groups are set with -pid" >&5
20402: $as_echo_n "checking if process groups are set with -pid... " >&6; }
20403: if ${ntp_cv_arg_setpgrp_negpid+:} false; then :
20404: $as_echo_n "(cached) " >&6
20405: else
20406:
20407: case "$host" in
20408: *-*-hpux[567]*)
20409: ans=no
20410: ;;
20411: *-*-hpux*)
20412: ans=yes
20413: ;;
20414: *-*-*linux*)
20415: ans=yes
20416: ;;
20417: *-*-sunos3*)
20418: ans=yes
20419: ;;
20420: *-*-ultrix2*)
20421: ans=yes
20422: ;;
20423: *)
20424: ans=no
20425: ;;
20426: esac
20427: ntp_cv_arg_setpgrp_negpid=$ans
20428:
20429:
20430: fi
20431: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_arg_setpgrp_negpid" >&5
20432: $as_echo "$ntp_cv_arg_setpgrp_negpid" >&6; }
20433: case "$ntp_cv_arg_setpgrp_negpid" in
20434: yes)
20435:
20436: $as_echo "#define UDP_BACKWARDS_SETOWN 1" >>confdefs.h
20437:
20438: esac
20439:
20440: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need a ctty for F_SETOWN" >&5
20441: $as_echo_n "checking if we need a ctty for F_SETOWN... " >&6; }
20442: if ${ntp_cv_func_ctty_for_f_setown+:} false; then :
20443: $as_echo_n "(cached) " >&6
20444: else
20445:
20446: case "$host" in
20447: *-*-bsdi23*)
20448: ans=yes
20449: ;;
20450: *-*-freebsd*)
20451: ans=yes
20452: ;;
20453: # NetBSD versions prior to 3.99.8 require a CTTY for F_SETOWN,
20454: # while later versions will fail a ioctl(TIOCSCTTY, 0) call in
20455: # some cases and so should not have USE_FSETOWNCTTY. "netbsd"
20456: # in $host may be followed by "aout", "ecoff", or "elf".
20457: *-*-netbsd*a-z3.0-8*|*-*-netbsd*a-z0-2.*|*-*-netbsd*a-z3.99.0-7)
20458: ans=yes
20459: ;;
20460: *-*-netbsd3.0-8*|*-*-netbsd0-2.*|*-*-netbsd3.99.0-7)
20461: ans=yes
20462: ;;
20463: *-*-openbsd*)
20464: ans=yes
20465: ;;
20466: *-*-osf*)
20467: ans=yes
20468: ;;
20469: *-*-darwin*)
20470: ans=yes
20471: ;;
20472: *)
20473: ans=no
20474: ;;
20475: esac
20476: ntp_cv_func_ctty_for_f_setown=$ans
20477:
20478:
20479: fi
20480: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_ctty_for_f_setown" >&5
20481: $as_echo "$ntp_cv_func_ctty_for_f_setown" >&6; }
20482: case "$ntp_cv_func_ctty_for_f_setown" in
20483: yes)
20484:
20485: $as_echo "#define USE_FSETOWNCTTY 1" >>confdefs.h
20486:
20487: esac
20488:
20489: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS clears cached routes when more specifics become available" >&5
20490: $as_echo_n "checking if the OS clears cached routes when more specifics become available... " >&6; }
20491: if ${ntp_cv_os_routeupdates+:} false; then :
20492: $as_echo_n "(cached) " >&6
20493: else
20494:
20495: case "$host" in
20496: *-*-netbsd*)
20497: ans=yes
20498: ;;
20499: *)
20500: ans=no
20501: ;;
20502: esac
20503: ntp_cv_os_routeupdates=$ans
20504:
20505:
20506: fi
20507: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_routeupdates" >&5
20508: $as_echo "$ntp_cv_os_routeupdates" >&6; }
20509: case "$ntp_cv_os_routeupdates" in
20510: yes)
20511:
20512: $as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h
20513:
20514: esac
20515:
20516: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the wildcard socket needs REUSEADDR to bind other addresses" >&5
20517: $as_echo_n "checking if the wildcard socket needs REUSEADDR to bind other addresses... " >&6; }
20518: if ${ntp_cv_os_wildcardreuse+:} false; then :
20519: $as_echo_n "(cached) " >&6
20520: else
20521:
20522: case "$host" in
20523: *-*-*linux*)
20524: ans=yes
20525: ;;
20526: *) ans=no
20527: ;;
20528: esac
20529: ntp_cv_os_wildcardreuse=$ans
20530:
20531:
20532: fi
20533: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_wildcardreuse" >&5
20534: $as_echo "$ntp_cv_os_wildcardreuse" >&6; }
20535: case "$ntp_cv_os_wildcardreuse" in
20536: yes)
20537:
20538: $as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h
20539:
20540: esac
20541:
20542: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
20543: $as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
20544: ntp_warning='GRONK'
20545: ans=none
20546: case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
20547: yes*)
20548: ntp_warning=''
20549: ans='clock_settime()'
20550: ;;
20551: noyes*)
20552: ntp_warning='But clock_settime() would be better (if we had it)'
20553: ans='settimeofday()'
20554: ;;
20555: nonoyes)
20556: ntp_warning='Which is the worst of the three'
20557: ans='stime()'
20558: ;;
20559: *)
20560: case "$build" in
20561: $host)
20562: ntp_warning='Which leaves us with nothing to use!'
20563: esac
20564: esac
20565: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
20566: $as_echo "$ans" >&6; }
20567: case "$ntp_warning" in
20568: '')
20569: ;;
20570: *)
20571: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
20572: $as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
20573: ;;
20574: esac
20575:
20576: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
20577: $as_echo_n "checking for SIGIO... " >&6; }
20578: if ${ntp_cv_hdr_def_sigio+:} false; then :
20579: $as_echo_n "(cached) " >&6
20580: else
20581: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20582: /* end confdefs.h. */
20583:
20584: #include <signal.h>
20585:
20586: #ifdef SIGIO
20587: yes
20588: #endif
20589:
20590: _ACEOF
20591: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20592: $EGREP "yes" >/dev/null 2>&1; then :
20593: ntp_cv_hdr_def_sigio=yes
20594: else
20595: ntp_cv_hdr_def_sigio=no
20596:
20597: fi
20598: rm -f conftest*
20599:
20600:
20601: fi
20602: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
20603: $as_echo "$ntp_cv_hdr_def_sigio" >&6; }
20604:
20605: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use signalled IO" >&5
20606: $as_echo_n "checking if we want to use signalled IO... " >&6; }
20607: if ${ntp_cv_var_signalled_io+:} false; then :
20608: $as_echo_n "(cached) " >&6
20609: else
20610:
20611: ans=no
20612: case "$ntp_cv_hdr_def_sigio" in
20613: yes)
20614: ans=yes
20615: case "$host" in
20616: alpha*-dec-osf4*|alpha*-dec-osf5*)
20617: ans=no
20618: ;;
20619: *-convex-*)
20620: ans=no
20621: ;;
20622: *-dec-*)
20623: ans=no
20624: ;;
20625: *-pc-cygwin*)
20626: ans=no
20627: ;;
20628: *-sni-sysv*)
20629: ans=no
20630: ;;
20631: *-univel-sysv*)
20632: ans=no
20633: ;;
20634: *-*-irix6*)
20635: ans=no
20636: ;;
20637: *-*-freebsd*)
20638: ans=no
20639: ;;
20640: *-*-*linux*)
20641: ans=no
20642: ;;
20643: *-*-unicosmp*)
20644: ans=no
20645: ;;
20646: *-*-kfreebsd*)
20647: ans=no
20648: ;;
20649: m68k-*-mint*)
20650: ans=no
20651: ;;
20652: esac
20653: ;;
20654: esac
20655: ntp_cv_var_signalled_io=$ans
20656:
20657:
20658: fi
20659: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_signalled_io" >&5
20660: $as_echo "$ntp_cv_var_signalled_io" >&6; }
20661: case "$ntp_cv_var_signalled_io" in
20662: yes)
20663:
20664: $as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h
20665:
20666: esac
20667:
20668: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
20669: $as_echo_n "checking for SIGPOLL... " >&6; }
20670: if ${ntp_cv_hdr_def_sigpoll+:} false; then :
20671: $as_echo_n "(cached) " >&6
20672: else
20673: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20674: /* end confdefs.h. */
20675:
20676: #include <signal.h>
20677:
20678: #ifdef SIGPOLL
20679: yes
20680: #endif
20681:
20682: _ACEOF
20683: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20684: $EGREP "yes" >/dev/null 2>&1; then :
20685: ntp_cv_hdr_def_sigpoll=yes
20686: else
20687: ntp_cv_hdr_def_sigpoll=no
20688:
20689: fi
20690: rm -f conftest*
20691:
20692:
20693: fi
20694: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
20695: $as_echo "$ntp_cv_hdr_def_sigpoll" >&6; }
20696:
20697: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGSYS" >&5
20698: $as_echo_n "checking for SIGSYS... " >&6; }
20699: if ${ntp_cv_hdr_def_sigsys+:} false; then :
20700: $as_echo_n "(cached) " >&6
20701: else
20702: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20703: /* end confdefs.h. */
20704:
20705: #include <signal.h>
20706:
20707: #ifdef SIGSYS
20708: yes
20709: #endif
20710:
20711: _ACEOF
20712: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20713: $EGREP "yes" >/dev/null 2>&1; then :
20714: ntp_cv_hdr_def_sigsys=yes
20715: else
20716: ntp_cv_hdr_def_sigsys=no
20717:
20718: fi
20719: rm -f conftest*
20720:
20721:
20722: fi
20723: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigsys" >&5
20724: $as_echo "$ntp_cv_hdr_def_sigsys" >&6; }
20725:
20726: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
20727: $as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
20728: if ${ntp_cv_var_use_udp_sigpoll+:} false; then :
20729: $as_echo_n "(cached) " >&6
20730: else
20731:
20732: ans=no
20733: case "$ntp_cv_hdr_def_sigpoll" in
20734: yes)
20735: case "$host" in
20736: mips-sgi-irix*)
20737: ans=no
20738: ;;
20739: vax-dec-bsd)
20740: ans=no
20741: ;;
20742: *-pc-cygwin*)
20743: ans=no
20744: ;;
20745: *-sni-sysv*)
20746: ans=no
20747: ;;
20748: *-*-aix[456]*)
20749: ans=no
20750: ;;
20751: *-*-hpux*)
20752: ans=no
20753: ;;
20754: *-*-*linux*)
20755: ans=no
20756: ;;
20757: *-*-osf*)
20758: ans=no
20759: ;;
20760: *-*-qnx*)
20761: ans=no
20762: ;;
20763: *-*-sunos*)
20764: ans=no
20765: ;;
20766: *-*-solaris*)
20767: ans=no
20768: ;;
20769: *-*-ultrix*)
20770: ans=no
20771: ;;
20772: *-*-unicosmp*)
20773: ans=no
20774: ;;
20775: *-*-kfreebsd*)
20776: ans=no
20777: ;;
20778: *) ans=yes
20779: ;;
20780: esac
20781: ;;
20782: esac
20783: ntp_cv_var_use_udp_sigpoll=$ans
20784:
20785:
20786: fi
20787: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_use_udp_sigpoll" >&5
20788: $as_echo "$ntp_cv_var_use_udp_sigpoll" >&6; }
20789: case "$ntp_cv_var_use_udp_sigpoll" in
20790: yes)
20791:
20792: $as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h
20793:
20794: esac
20795:
20796: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
20797: $as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
20798: if ${ntp_cv_var_use_tty_sigpoll+:} false; then :
20799: $as_echo_n "(cached) " >&6
20800: else
20801:
20802: ans=no
20803: case "$ntp_cv_hdr_def_sigpoll" in
20804: yes)
20805: case "$host" in
20806: mips-sgi-irix*)
20807: ans=no
20808: ;;
20809: vax-dec-bsd)
20810: ans=no
20811: ;;
20812: *-pc-cygwin*)
20813: ans=no
20814: ;;
20815: *-sni-sysv*)
20816: ans=no
20817: ;;
20818: *-*-aix[456]*)
20819: ans=no
20820: ;;
20821: *-*-hpux*)
20822: ans=no
20823: ;;
20824: *-*-*linux*)
20825: ans=no
20826: ;;
20827: *-*-osf*)
20828: ans=no
20829: ;;
20830: *-*-sunos*)
20831: ans=no
20832: ;;
20833: *-*-ultrix*)
20834: ans=no
20835: ;;
20836: *-*-qnx*)
20837: ans=no
20838: ;;
20839: *-*-unicosmp*)
20840: ans=no
20841: ;;
20842: *-*-kfreebsd*)
20843: ans=no
20844: ;;
20845: *) ans=yes
20846: ;;
20847: esac
20848: ;;
20849: esac
20850: ntp_cv_var_use_tty_sigpoll=$ans
20851:
20852:
20853: fi
20854: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_use_tty_sigpoll" >&5
20855: $as_echo "$ntp_cv_var_use_tty_sigpoll" >&6; }
20856: case "$ntp_cv_var_use_tty_sigpoll" in
20857: yes)
20858:
20859: $as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
20860:
20861: esac
20862:
20863: case "$host" in
20864: *-*-aix*)
20865:
20866: $as_echo "#define NLIST_EXTRA_INDIRECTION 1" >>confdefs.h
20867:
20868: esac
20869:
20870: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a minimum recommended value of tickadj" >&5
20871: $as_echo_n "checking for a minimum recommended value of tickadj... " >&6; }
20872: if ${ntp_cv_var_min_rec_tickadj+:} false; then :
20873: $as_echo_n "(cached) " >&6
20874: else
20875:
20876: ans=no
20877: case "$host" in
20878: *-*-aix*)
20879: ans=40
20880: ;;
20881: esac
20882: ntp_cv_var_min_rec_tickadj=$ans
20883:
20884:
20885: fi
20886: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_min_rec_tickadj" >&5
20887: $as_echo "$ntp_cv_var_min_rec_tickadj" >&6; }
20888: case "$ntp_cv_var_min_rec_tickadj" in
20889: ''|no)
20890: ;;
20891: *)
20892:
20893: cat >>confdefs.h <<_ACEOF
20894: #define MIN_REC_TICKADJ $ntp_cv_var_min_rec_tickadj
20895: _ACEOF
20896:
20897: esac
20898:
20899: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the TTY code permits PARENB and IGNPAR" >&5
20900: $as_echo_n "checking if the TTY code permits PARENB and IGNPAR... " >&6; }
20901: if ${ntp_cv_no_parenb_ignpar+:} false; then :
20902: $as_echo_n "(cached) " >&6
20903: else
20904:
20905: ans=no
20906: case "$host" in
20907: i?86-*-*linux*)
20908: ans=yes
20909: ;;
20910: mips-sgi-irix*)
20911: ans=yes
20912: ;;
20913: i?86-*-freebsd[123].*)
20914: ;;
20915: i?86-*-freebsd*)
20916: ans=yes
20917: ;;
20918: *-*-unicosmp*)
20919: ans=yes
20920: ;;
20921: esac
20922: ntp_cv_no_parenb_ignpar=$ans
20923:
20924:
20925: fi
20926: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_no_parenb_ignpar" >&5
20927: $as_echo "$ntp_cv_no_parenb_ignpar" >&6; }
20928: case "$ntp_cv_no_parenb_ignpar" in
20929: yes)
20930:
20931: $as_echo "#define NO_PARENB_IGNPAR 1" >>confdefs.h
20932:
20933: esac
20934:
20935: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including ntpd debugging code" >&5
20936: $as_echo_n "checking if we're including ntpd debugging code... " >&6; }
20937: # Check whether --enable-debugging was given.
20938: if test "${enable_debugging+set}" = set; then :
20939: enableval=$enable_debugging; ntp_ok=$enableval
20940: else
20941: ntp_ok=yes
20942:
20943: fi
20944:
20945: case "$ntp_ok" in
20946: yes)
20947:
20948: $as_echo "#define DEBUG 1" >>confdefs.h
20949:
20950: esac
20951: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
20952: $as_echo "$ntp_ok" >&6; }
20953:
20954: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including processing time debugging code" >&5
20955: $as_echo_n "checking if we're including processing time debugging code... " >&6; }
20956: # Check whether --enable-debug-timing was given.
20957: if test "${enable_debug_timing+set}" = set; then :
20958: enableval=$enable_debug_timing; ntp_ok=$enableval
20959: else
20960: ntp_ok=no
20961:
20962: fi
20963:
20964: case "$ntp_ok" in
20965: yes)
20966:
20967: $as_echo "#define DEBUG_TIMING 1" >>confdefs.h
20968:
20969: esac
20970: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
20971: $as_echo "$ntp_ok" >&6; }
20972:
20973: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a the number of minutes in a DST adjustment" >&5
20974: $as_echo_n "checking for a the number of minutes in a DST adjustment... " >&6; }
20975: # Check whether --enable-dst-minutes was given.
20976: if test "${enable_dst_minutes+set}" = set; then :
20977: enableval=$enable_dst_minutes; ans=$enableval
20978: else
20979: ans=60
20980:
20981: fi
20982:
20983:
20984: cat >>confdefs.h <<_ACEOF
20985: #define DSTMINUTES $ans
20986: _ACEOF
20987:
20988: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
20989: $as_echo "$ans" >&6; }
20990:
20991: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will retry permanent DNS failures" >&5
20992: $as_echo_n "checking if ntpd will retry permanent DNS failures... " >&6; }
20993: # Check whether --enable-ignore-dns-errors was given.
20994: if test "${enable_ignore_dns_errors+set}" = set; then :
20995: enableval=$enable_ignore_dns_errors; ans=$enableval
20996: else
20997: ans=no
20998:
20999: fi
21000:
21001: case "$ans" in
21002: yes)
21003:
21004: $as_echo "#define IGNORE_DNS_ERRORS 1" >>confdefs.h
21005:
21006: esac
21007: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
21008: $as_echo "$ans" >&6; }
21009:
21010: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will use the deferred DNS lookup path" >&5
21011: $as_echo_n "checking if ntpd will use the deferred DNS lookup path... " >&6; }
21012: # Check whether --enable-force-defer-DNS was given.
21013: if test "${enable_force_defer_DNS+set}" = set; then :
21014: enableval=$enable_force_defer_DNS; ans=$enableval
21015: else
21016: ans=no
21017:
21018: fi
21019:
21020: case "$ans" in
21021: yes)
21022:
21023: $as_echo "#define FORCE_DEFER_DNS 1" >>confdefs.h
21024:
21025: esac
21026: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
21027: $as_echo "$ans" >&6; }
21028:
21029: case "$ac_cv_header_sys_sio_h" in
21030: yes)
21031: { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sio.h for TIOCDCDTIMESTAMP" >&5
21032: $as_echo_n "checking sys/sio.h for TIOCDCDTIMESTAMP... " >&6; }
21033: if ${ntp_cv_hdr_def_tiocdcdtimestamp+:} false; then :
21034: $as_echo_n "(cached) " >&6
21035: else
21036: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21037: /* end confdefs.h. */
21038:
21039: #include <sys/sio.h>
21040:
21041: #ifdef TIOCDCDTIMESTAMP
21042: yes
21043: #endif
21044:
21045: _ACEOF
21046: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21047: $EGREP "yes" >/dev/null 2>&1; then :
21048: ntp_cv_hdr_def_tiocdcdtimestamp=yes
21049: else
21050: ntp_cv_hdr_def_tiocdcdtimestamp=no
21051:
21052: fi
21053: rm -f conftest*
21054:
21055:
21056: fi
21057: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_tiocdcdtimestamp" >&5
21058: $as_echo "$ntp_cv_hdr_def_tiocdcdtimestamp" >&6; }
21059: esac
21060:
21061: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have the tty_clk line discipline/streams module" >&5
21062: $as_echo_n "checking if we have the tty_clk line discipline/streams module... " >&6; }
21063: if ${ntp_cv_tty_clk+:} false; then :
21064: $as_echo_n "(cached) " >&6
21065: else
21066:
21067: case "$ac_cv_header_sys_clkdefs_h$ntp_cv_hdr_def_tiocdcdtimestamp" in
21068: *yes*)
21069: ntp_cv_tty_clk=yes
21070: ;;
21071: *)
21072: ntp_cv_tty_clk=no
21073: ;;
21074: esac
21075:
21076:
21077: fi
21078: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tty_clk" >&5
21079: $as_echo "$ntp_cv_tty_clk" >&6; }
21080: case "$ntp_cv_tty_clk" in
21081: yes)
21082:
21083: $as_echo "#define TTYCLK 1" >>confdefs.h
21084:
21085: esac
21086:
21087: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ppsclock streams module" >&5
21088: $as_echo_n "checking for the ppsclock streams module... " >&6; }
21089: case "$ntp_cv_struct_ppsclockev" in
21090: yes)
21091: ans=yes
21092:
21093: $as_echo "#define PPS 1" >>confdefs.h
21094:
21095: ;;
21096: *)
21097: ans=no
21098: esac
21099: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
21100: $as_echo "$ans" >&6; }
21101:
21102: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
21103: $as_echo_n "checking for multicast IP support... " >&6; }
21104: if ${ntp_cv_multicast+:} false; then :
21105: $as_echo_n "(cached) " >&6
21106: else
21107:
21108: ntp_cv_multicast=no
21109: case "$host" in
21110: i386-sequent-sysv4)
21111: ;;
21112: *)
21113: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21114: /* end confdefs.h. */
21115:
21116: #ifdef HAVE_NETINET_IN_H
21117: #include <netinet/in.h>
21118: #endif
21119:
21120: int
21121: main ()
21122: {
21123:
21124: struct ip_mreq ipmr;
21125: ipmr.imr_interface.s_addr = 0;
21126:
21127:
21128: ;
21129: return 0;
21130: }
21131: _ACEOF
21132: if ac_fn_c_try_compile "$LINENO"; then :
21133: ntp_cv_multicast=yes
21134: fi
21135: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21136: esac
21137:
21138:
21139: fi
21140: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
21141: $as_echo "$ntp_cv_multicast" >&6; }
21142: case "$ntp_cv_multicast" in
21143: yes)
21144:
21145: $as_echo "#define MCAST 1" >>confdefs.h
21146:
21147: { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
21148: $as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
21149: if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
21150: $as_echo_n "(cached) " >&6
21151: else
21152:
21153: case "$host" in
21154: *-*-netbsd*|*-*-*linux*)
21155: ntp_cv_typeof_ip_multicast_loop=u_int
21156: ;;
21157: *)
21158: ntp_cv_typeof_ip_multicast_loop=u_char
21159: esac
21160:
21161:
21162: fi
21163: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
21164: $as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }
21165:
21166: cat >>confdefs.h <<_ACEOF
21167: #define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
21168: _ACEOF
21169:
21170: esac
21171:
21172: { $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5
21173: $as_echo_n "checking availability of ntp_{adj,get}time()... " >&6; }
21174: if ${ntp_cv_var_ntp_syscalls+:} false; then :
21175: $as_echo_n "(cached) " >&6
21176: else
21177:
21178: ntp_cv_var_ntp_syscalls=no
21179: case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in
21180: yesyes*)
21181: ntp_cv_var_ntp_syscalls=libc
21182: ;;
21183: *yes)
21184: ntp_cv_var_ntp_syscalls=inline
21185: ;;
21186: *)
21187: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21188: /* end confdefs.h. */
21189:
21190: #include <sys/syscall.h>
21191:
21192: #if defined(SYS_ntp_gettime) && defined(SYS_ntp_adjtime)
21193: yes
21194: #endif
21195:
21196: _ACEOF
21197: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21198: $EGREP "yes" >/dev/null 2>&1; then :
21199: ntp_cv_var_ntp_syscalls=kernel
21200:
21201: fi
21202: rm -f conftest*
21203:
21204: ;;
21205: esac
21206:
21207:
21208: fi
21209: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_ntp_syscalls" >&5
21210: $as_echo "$ntp_cv_var_ntp_syscalls" >&6; }
21211: case "$ntp_cv_var_ntp_syscalls" in
21212: libc)
21213:
21214: $as_echo "#define NTP_SYSCALLS_LIBC 1" >>confdefs.h
21215:
21216: ;;
21217: kernel)
21218:
21219: $as_echo "#define NTP_SYSCALLS_STD 1" >>confdefs.h
21220:
21221: ;;
21222: esac
21223:
21224: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sys/timex.h has STA_FLL" >&5
21225: $as_echo_n "checking if sys/timex.h has STA_FLL... " >&6; }
21226: if ${ntp_cv_var_sta_fll+:} false; then :
21227: $as_echo_n "(cached) " >&6
21228: else
21229: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21230: /* end confdefs.h. */
21231:
21232: #include <sys/timex.h>
21233:
21234: #ifdef STA_FLL
21235: yes
21236: #endif
21237:
21238: _ACEOF
21239: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21240: $EGREP "yes" >/dev/null 2>&1; then :
21241: ntp_cv_var_sta_fll=yes
21242: else
21243: ntp_cv_var_sta_fll=no
21244:
21245: fi
21246: rm -f conftest*
21247:
21248:
21249: fi
21250: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_sta_fll" >&5
21251: $as_echo "$ntp_cv_var_sta_fll" >&6; }
21252:
21253: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have kernel PLL support" >&5
21254: $as_echo_n "checking if we have kernel PLL support... " >&6; }
21255: if ${ntp_cv_var_kernel_pll+:} false; then :
21256: $as_echo_n "(cached) " >&6
21257: else
21258: case "$ac_cv_header_sys_timex_h$ntp_cv_struct_ntptimeval$ntp_cv_var_sta_fll$ntp_cv_var_ntp_syscalls" in
21259: *no*)
21260: ntp_cv_var_kernel_pll=no
21261: ;;
21262: *) ntp_cv_var_kernel_pll=yes
21263: ;;
21264: esac
21265:
21266:
21267: fi
21268: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_kernel_pll" >&5
21269: $as_echo "$ntp_cv_var_kernel_pll" >&6; }
21270: case "$ntp_cv_var_kernel_pll" in
21271: yes)
21272:
21273: $as_echo "#define KERNEL_PLL 1" >>confdefs.h
21274:
21275: esac
21276:
21277: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
21278: $as_echo_n "checking if SIOCGIFCONF returns buffer size in the buffer... " >&6; }
21279: if ${ntp_cv_size_returned_in_buffer+:} false; then :
21280: $as_echo_n "(cached) " >&6
21281: else
21282:
21283: ans=no
21284: case "$host" in
21285: *-fujitsu-uxp*)
21286: ans=yes
21287: ;;
21288: *-ncr-sysv4*)
21289: ans=yes
21290: ;;
21291: *-univel-sysv*)
21292: ans=yes
21293: ;;
21294: esac
21295: ntp_cv_size_returned_in_buffer=$ans
21296:
21297:
21298: fi
21299: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_size_returned_in_buffer" >&5
21300: $as_echo "$ntp_cv_size_returned_in_buffer" >&6; }
21301: case "$ntp_cv_size_returned_in_buffer" in
21302: yes)
21303:
21304: $as_echo "#define SIZE_RETURNED_IN_BUFFER 1" >>confdefs.h
21305:
21306: esac
21307:
21308: # Check for ioctls TIOCGPPSEV
21309: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCGPPSEV" >&5
21310: $as_echo_n "checking for TTY PPS ioctl TIOCGPPSEV... " >&6; }
21311: case "$ac_cv_header_termios_h" in
21312: yes)
21313: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21314: /* end confdefs.h. */
21315:
21316: #include <termios.h>
21317:
21318: #ifdef TIOCGPPSEV
21319: yes
21320: #endif
21321:
21322: _ACEOF
21323: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21324: $EGREP "yes" >/dev/null 2>&1; then :
21325: ntp_ok=yes
21326: else
21327: ntp_ok=no
21328:
21329: fi
21330: rm -f conftest*
21331:
21332: ;;
21333: *)
21334: ntp_ok=no
21335: ;;
21336: esac
21337: case "$ntp_ok" in
21338: yes)
21339:
21340: $as_echo "#define HAVE_TIOCGPPSEV 1" >>confdefs.h
21341:
21342: esac
21343: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
21344: $as_echo "$ntp_ok" >&6; }
21345:
21346: # Check for ioctls TIOCSPPS
21347: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCSPPS" >&5
21348: $as_echo_n "checking for TTY PPS ioctl TIOCSPPS... " >&6; }
21349: case "$ac_cv_header_termios_h" in
21350: yes)
21351: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21352: /* end confdefs.h. */
21353:
21354: #include <termios.h>
21355:
21356: #ifdef TIOCSPPS
21357: yes
21358: #endif
21359:
21360: _ACEOF
21361: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21362: $EGREP "yes" >/dev/null 2>&1; then :
21363: ntp_ok=yes
21364: else
21365: ntp_ok=no
21366:
21367: fi
21368: rm -f conftest*
21369:
21370: ;;
21371: *)
21372: ntp_ok=no
21373: ;;
21374: esac
21375: case "$ntp_ok" in
21376: yes)
21377:
21378: $as_echo "#define HAVE_TIOCSPPS 1" >>confdefs.h
21379:
21380: esac
21381: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
21382: $as_echo "$ntp_ok" >&6; }
21383:
21384: # Check for ioctls CIOGETEV
21385: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl CIOGETEV" >&5
21386: $as_echo_n "checking for TTY PPS ioctl CIOGETEV... " >&6; }
21387: case "$ac_cv_header_sys_ppsclock_h" in
21388: yes)
21389: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21390: /* end confdefs.h. */
21391:
21392: #include <sys/ppsclock.h>
21393:
21394: #ifdef CIOGETEV
21395: yes
21396: #endif
21397:
21398: _ACEOF
21399: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21400: $EGREP "yes" >/dev/null 2>&1; then :
21401: ntp_ok=yes
21402: else
21403: ntp_ok=no
21404:
21405: fi
21406: rm -f conftest*
21407:
21408: ;;
21409: *)
21410: ntp_ok=no
21411: ;;
21412: esac
21413: case "$ntp_ok" in
21414: yes)
21415:
21416: $as_echo "#define HAVE_CIOGETEV 1" >>confdefs.h
21417:
21418: esac
21419: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
21420: $as_echo "$ntp_ok" >&6; }
21421:
21422: # ATOM/PPSAPI stuff.
21423:
21424: ntp_atom_ok=yes
21425:
21426: # Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff.
21427:
21428: # The PPSAPI headers need "inline" ($ac_cv_c_inline='inline')
21429: # The PPSAPI needs struct timespec.
21430: # The PPSAPI also needs a timepps header.
21431:
21432: case "$ac_cv_c_inline$ntp_cv_struct_timespec" in
21433: inlineyes)
21434: case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in
21435: *yes* | *sunos* | *solaris* | *sco* | *netbsd* )
21436:
21437: $as_echo "#define HAVE_PPSAPI 1" >>confdefs.h
21438:
21439: ntp_jupiter_ok=yes
21440: ntp_oncore_ok=yes
21441: ntp_parse_ok=yes
21442: ntp_ripe_ncc_ok=yes
21443: ;;
21444: esac
21445: ;;
21446: esac
21447:
21448: # Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
21449: ac_fn_c_check_header_mongrel "$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default"
21450: if test "x$ac_cv_header_linux_serial_h" = xyes; then :
21451:
21452: fi
21453:
21454:
21455: case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in
21456: yesyes)
21457: { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5
21458: $as_echo_n "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... " >&6; }
21459: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21460: /* end confdefs.h. */
21461:
21462: #include <sys/time.h>
21463: typedef int u_int;
21464: #include <sys/ppsclock.h>
21465: #include <linux/serial.h>
21466:
21467: #ifdef TIOCGSERIAL
21468: #ifdef TIOCSSERIAL
21469: #ifdef ASYNC_PPS_CD_POS
21470: #ifdef ASYNC_PPS_CD_NEG
21471: #ifdef CIOGETEV
21472: yes
21473: #endif
21474: #endif
21475: #endif
21476: #endif
21477: #endif
21478:
21479: _ACEOF
21480: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21481: $EGREP "yes" >/dev/null 2>&1; then :
21482: ntp_ok=yes
21483: else
21484: ntp_ok=no
21485:
21486: fi
21487: rm -f conftest*
21488:
21489: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
21490: $as_echo "$ntp_ok" >&6; }
21491: ;;
21492: *)
21493: ntp_ok=no
21494: ;;
21495: esac
21496: case "$ntp_ok" in
21497: yes)
21498:
21499: $as_echo "#define HAVE_TIO_SERIAL_STUFF 1" >>confdefs.h
21500:
21501: esac
21502:
21503: # Check for SHMEM_STATUS support
21504: { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHMEM_STATUS support" >&5
21505: $as_echo_n "checking SHMEM_STATUS support... " >&6; }
21506: case "$ac_cv_header_sys_mman_h" in
21507: yes)
21508: ntp_ok=yes
21509: ;;
21510: *)
21511: ntp_ok=no
21512: ;;
21513: esac
21514: case "$ntp_ok" in
21515: yes)
21516:
21517: $as_echo "#define ONCORE_SHMEM_STATUS 1" >>confdefs.h
21518:
21519: esac
21520: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
21521: $as_echo "$ntp_ok" >&6; }
21522:
21523: ntp_refclock=no
21524:
21525: # HPUX only, and by explicit request
21526: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum/Bancomm bc635/VME interface" >&5
21527: $as_echo_n "checking Datum/Bancomm bc635/VME interface... " >&6; }
21528: # Check whether --enable-BANCOMM was given.
21529: if test "${enable_BANCOMM+set}" = set; then :
21530: enableval=$enable_BANCOMM; ntp_ok=$enableval
21531: else
21532: ntp_ok=no
21533:
21534: fi
21535:
21536: if test "$ntp_ok" = "yes"; then
21537: ntp_refclock=yes
21538:
21539: $as_echo "#define CLOCK_BANC 1" >>confdefs.h
21540:
21541: fi
21542: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
21543: $as_echo "$ntp_ok" >&6; }
21544: case "$ntp_ok$host" in
21545: yes*-*-hpux*) ;;
21546: yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
21547: $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
21548: esac
21549:
21550: #HPUX only, and only by explicit request
21551: { $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime GPS receiver/VME interface" >&5
21552: $as_echo_n "checking TrueTime GPS receiver/VME interface... " >&6; }
21553: # Check whether --enable-GPSVME was given.
21554: if test "${enable_GPSVME+set}" = set; then :
21555: enableval=$enable_GPSVME; ntp_ok=$enableval
21556: else
21557: ntp_ok=no
21558:
21559: fi
21560:
21561: if test "$ntp_ok" = "yes"; then
21562: ntp_refclock=yes
21563:
21564: $as_echo "#define CLOCK_GPSVME 1" >>confdefs.h
21565:
21566: fi
21567: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
21568: $as_echo "$ntp_ok" >&6; }
21569: case "$ntp_ok$host" in
21570: yes*-*-hpux*) ;;
21571: yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
21572: $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
21573: esac
21574:
21575: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL720 clock support" >&5
21576: $as_echo_n "checking for PCL720 clock support... " >&6; }
21577: case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
21578: yesyesyes)
21579:
21580: $as_echo "#define CLOCK_PPS720 1" >>confdefs.h
21581:
21582: ans=yes
21583: ;;
21584: *)
21585: ans=no
21586: ;;
21587: esac
21588: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
21589: $as_echo "$ans" >&6; }
21590:
21591: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable non-PARSE clocks" >&5
21592: $as_echo_n "checking for default inclusion of all suitable non-PARSE clocks... " >&6; }
21593: # Check whether --enable-all-clocks was given.
21594: if test "${enable_all_clocks+set}" = set; then :
21595: enableval=$enable_all_clocks; ntp_eac=$enableval
21596: else
21597: ntp_eac=yes
21598:
21599: fi
21600:
21601: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eac" >&5
21602: $as_echo "$ntp_eac" >&6; }
21603:
21604: # HMS: Should we also require ntp_parse_ok?
21605: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for PARSE clocks" >&5
21606: $as_echo_n "checking if we have support for PARSE clocks... " >&6; }
21607: case "$ntp_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in
21608: yes*yes*)
21609: ntp_canparse=yes
21610: ;;
21611: *) ntp_canparse=no
21612: ;;
21613: esac
21614: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canparse" >&5
21615: $as_echo "$ntp_canparse" >&6; }
21616:
21617: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for audio clocks" >&5
21618: $as_echo_n "checking if we have support for audio clocks... " >&6; }
21619: 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
21620: *yes*)
21621: ntp_canaudio=yes
21622:
21623: $as_echo "#define HAVE_AUDIO /**/" >>confdefs.h
21624:
21625: ;;
21626: *) ntp_canaudio=no ;;
21627: esac
21628: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canaudio" >&5
21629: $as_echo "$ntp_canaudio" >&6; }
21630:
21631: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for the SHM refclock interface" >&5
21632: $as_echo_n "checking if we have support for the SHM refclock interface... " >&6; }
21633: case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in
21634: yesyes)
21635: ntp_canshm=yes
21636: ;;
21637: *) ntp_canshm=no ;;
21638: esac
21639: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canshm" >&5
21640: $as_echo "$ntp_canshm" >&6; }
21641:
21642: # Test for termios TIOCMBIS modem control (ACTS, Heath, Palisade)
21643: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for termios modem control" >&5
21644: $as_echo_n "checking for termios modem control... " >&6; }
21645: if ${ntp_cv_modem_control+:} false; then :
21646: $as_echo_n "(cached) " >&6
21647: else
21648: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21649: /* end confdefs.h. */
21650:
21651: #ifdef HAVE_UNISTD_H
21652: # include <unistd.h>
21653: #endif
21654: #ifdef HAVE_TERMIOS_H
21655: # include <termios.h>
21656: #endif
21657: #ifdef HAVE_SYS_IOCTL_H
21658: # include <sys/ioctl.h>
21659: #endif
21660:
21661: int
21662: main ()
21663: {
21664:
21665: int dtr = TIOCM_DTR;
21666:
21667: ioctl(1, TIOCMBIS, (char *)&dtr);
21668:
21669:
21670: ;
21671: return 0;
21672: }
21673: _ACEOF
21674: if ac_fn_c_try_compile "$LINENO"; then :
21675: ntp_cv_modem_control=yes
21676: else
21677: ntp_cv_modem_control=no
21678:
21679: fi
21680: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21681:
21682: fi
21683: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_modem_control" >&5
21684: $as_echo "$ntp_cv_modem_control" >&6; }
21685: case "$ntp_eac::$ntp_cv_modem_control" in
21686: yes::yes)
21687: ntp_enable_all_modem_control_clocks=yes
21688: ;;
21689: *)
21690: ntp_enable_all_modem_control_clocks=no
21691: ;;
21692: esac
21693:
21694: # Requires modem control
21695: { $as_echo "$as_me:${as_lineno-$LINENO}: checking ACTS modem service" >&5
21696: $as_echo_n "checking ACTS modem service... " >&6; }
21697: # Check whether --enable-ACTS was given.
21698: if test "${enable_ACTS+set}" = set; then :
21699: enableval=$enable_ACTS; ntp_ok=$enableval
21700: else
21701: ntp_ok=$ntp_enable_all_modem_control_clocks
21702:
21703: fi
21704:
21705: if test "$ntp_ok" = "yes"; then
21706: ntp_refclock=yes
21707:
21708: $as_echo "#define CLOCK_ACTS 1" >>confdefs.h
21709:
21710: fi
21711: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
21712: $as_echo "$ntp_ok" >&6; }
21713:
21714: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Arbiter 1088A/B GPS receiver" >&5
21715: $as_echo_n "checking Arbiter 1088A/B GPS receiver... " >&6; }
21716: # Check whether --enable-ARBITER was given.
21717: if test "${enable_ARBITER+set}" = set; then :
21718: enableval=$enable_ARBITER; ntp_ok=$enableval
21719: else
21720: ntp_ok=$ntp_eac
21721:
21722: fi
21723:
21724: if test "$ntp_ok" = "yes"; then
21725: ntp_refclock=yes
21726:
21727: $as_echo "#define CLOCK_ARBITER 1" >>confdefs.h
21728:
21729: fi
21730: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
21731: $as_echo "$ntp_ok" >&6; }
21732:
21733: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Arcron MSF receiver" >&5
21734: $as_echo_n "checking Arcron MSF receiver... " >&6; }
21735: # Check whether --enable-ARCRON_MSF was given.
21736: if test "${enable_ARCRON_MSF+set}" = set; then :
21737: enableval=$enable_ARCRON_MSF; ntp_ok=$enableval
21738: else
21739: ntp_ok=$ntp_eac
21740:
21741: fi
21742:
21743: if test "$ntp_ok" = "yes"; then
21744: ntp_refclock=yes
21745:
21746: $as_echo "#define CLOCK_ARCRON_MSF 1" >>confdefs.h
21747:
21748: fi
21749: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
21750: $as_echo "$ntp_ok" >&6; }
21751:
21752: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Austron 2200A/2201A GPS receiver" >&5
21753: $as_echo_n "checking Austron 2200A/2201A GPS receiver... " >&6; }
21754: # Check whether --enable-AS2201 was given.
21755: if test "${enable_AS2201+set}" = set; then :
21756: enableval=$enable_AS2201; ntp_ok=$enableval
21757: else
21758: ntp_ok=$ntp_eac
21759:
21760: fi
21761:
21762: if test "$ntp_ok" = "yes"; then
21763: ntp_refclock=yes
21764:
21765: $as_echo "#define CLOCK_AS2201 1" >>confdefs.h
21766:
21767: fi
21768: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
21769: $as_echo "$ntp_ok" >&6; }
21770:
21771: { $as_echo "$as_me:${as_lineno-$LINENO}: checking ATOM PPS interface" >&5
21772: $as_echo_n "checking ATOM PPS interface... " >&6; }
21773: # Check whether --enable-ATOM was given.
21774: if test "${enable_ATOM+set}" = set; then :
21775: enableval=$enable_ATOM; ntp_ok=$enableval
21776: else
21777: ntp_ok=$ntp_eac
21778:
21779: fi
21780:
21781: case "$ntp_atom_ok" in
21782: no) ntp_ok=no ;;
21783: esac
21784: if test "$ntp_ok" = "yes"; then
21785: ntp_refclock=yes
21786:
21787: $as_echo "#define CLOCK_ATOM 1" >>confdefs.h
21788:
21789: fi
21790: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
21791: $as_echo "$ntp_ok" >&6; }
21792:
21793: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Chrono-log K-series WWVB receiver" >&5
21794: $as_echo_n "checking Chrono-log K-series WWVB receiver... " >&6; }
21795: # Check whether --enable-CHRONOLOG was given.
21796: if test "${enable_CHRONOLOG+set}" = set; then :
21797: enableval=$enable_CHRONOLOG; ntp_ok=$enableval
21798: else
21799: ntp_ok=$ntp_eac
21800:
21801: fi
21802:
21803: if test "$ntp_ok" = "yes"; then
21804: ntp_refclock=yes
21805:
21806: $as_echo "#define CLOCK_CHRONOLOG 1" >>confdefs.h
21807:
21808: fi
21809: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
21810: $as_echo "$ntp_ok" >&6; }
21811:
21812: { $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU modem/decoder" >&5
21813: $as_echo_n "checking CHU modem/decoder... " >&6; }
21814: # Check whether --enable-CHU was given.
21815: if test "${enable_CHU+set}" = set; then :
21816: enableval=$enable_CHU; ntp_ok=$enableval
21817: else
21818: ntp_ok=$ntp_eac
21819:
21820: fi
21821:
21822: if test "$ntp_ok" = "yes"; then
21823: ntp_refclock=yes
21824:
21825: $as_echo "#define CLOCK_CHU 1" >>confdefs.h
21826:
21827: fi
21828: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
21829: $as_echo "$ntp_ok" >&6; }
21830: ntp_refclock_chu=$ntp_ok
21831:
21832: { $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU audio/decoder" >&5
21833: $as_echo_n "checking CHU audio/decoder... " >&6; }
21834: # Check whether --enable-AUDIO-CHU was given.
21835: if test "${enable_AUDIO_CHU+set}" = set; then :
21836: enableval=$enable_AUDIO_CHU; ntp_ok=$enableval
21837: else
21838:
21839: case "$ntp_eac$ntp_refclock_chu$ntp_canaudio" in
21840: *no*) ntp_ok=no ;;
21841: *) ntp_ok=yes ;;
21842: esac
21843:
21844:
21845: fi
21846:
21847: if test "$ntp_ok" = "yes"; then
21848:
21849: $as_echo "#define AUDIO_CHU 1" >>confdefs.h
21850:
21851: fi
21852: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
21853: $as_echo "$ntp_ok" >&6; }
21854: # We used to check for sunos/solaris target...
21855: case "$ntp_ok$ntp_refclock_chu$ntp_canaudio" in
21856: yes*no*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is...no ***" >&5
21857: $as_echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;}
21858: esac
21859:
21860: # Not under HP-UX
21861: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum Programmable Time System" >&5
21862: $as_echo_n "checking Datum Programmable Time System... " >&6; }
21863: # Check whether --enable-DATUM was given.
21864: if test "${enable_DATUM+set}" = set; then :
21865: enableval=$enable_DATUM; ntp_ok=$enableval
21866: else
21867:
21868: case "$ac_cv_header_termios_h" in
21869: yes)
21870: ntp_ok=$ntp_eac
21871: ;;
21872: *) ntp_ok=no
21873: ;;
21874: esac
21875:
21876:
21877: fi
21878:
21879: if test "$ntp_ok" = "yes"; then
21880: ntp_refclock=yes
21881:
21882: $as_echo "#define CLOCK_DATUM 1" >>confdefs.h
21883:
21884: fi
21885: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
21886: $as_echo "$ntp_ok" >&6; }
21887:
21888: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Dumb generic hh:mm:ss local clock" >&5
21889: $as_echo_n "checking Dumb generic hh:mm:ss local clock... " >&6; }
21890: # Check whether --enable-DUMBCLOCK was given.
21891: if test "${enable_DUMBCLOCK+set}" = set; then :
21892: enableval=$enable_DUMBCLOCK; ntp_ok=$enableval
21893: else
21894: ntp_ok=$ntp_eac
21895:
21896: fi
21897:
21898: if test "$ntp_ok" = "yes"; then
21899: ntp_refclock=yes
21900:
21901: $as_echo "#define CLOCK_DUMBCLOCK 1" >>confdefs.h
21902:
21903: fi
21904: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
21905: $as_echo "$ntp_ok" >&6; }
21906:
21907: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Forum Graphic GPS" >&5
21908: $as_echo_n "checking Forum Graphic GPS... " >&6; }
21909: # Check whether --enable-FG was given.
21910: if test "${enable_FG+set}" = set; then :
21911: enableval=$enable_FG; ntp_ok=$enableval
21912: else
21913: ntp_ok=$ntp_eac
21914:
21915: fi
21916:
21917: if test "$ntp_ok" = "yes"; then
21918: ntp_refclock=yes
21919:
21920: $as_echo "#define CLOCK_FG 1" >>confdefs.h
21921:
21922: fi
21923: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
21924: $as_echo "$ntp_ok" >&6; }
21925:
21926: # Requires modem control
21927: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Heath GC-1000 WWV/WWVH receiver" >&5
21928: $as_echo_n "checking Heath GC-1000 WWV/WWVH receiver... " >&6; }
21929: # Check whether --enable-HEATH was given.
21930: if test "${enable_HEATH+set}" = set; then :
21931: enableval=$enable_HEATH; ntp_ok=$enableval
21932: else
21933: ntp_ok=$ntp_enable_all_modem_control_clocks
21934:
21935: fi
21936:
21937: if test "$ntp_ok" = "yes"; then
21938: ntp_refclock=yes
21939:
21940: $as_echo "#define CLOCK_HEATH 1" >>confdefs.h
21941:
21942: fi
21943: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
21944: $as_echo "$ntp_ok" >&6; }
21945:
21946: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf serial clock device" >&5
21947: $as_echo_n "checking for hopf serial clock device... " >&6; }
21948: # Check whether --enable-HOPFSERIAL was given.
21949: if test "${enable_HOPFSERIAL+set}" = set; then :
21950: enableval=$enable_HOPFSERIAL; ntp_ok=$enableval
21951: else
21952: ntp_ok=$ntp_eac
21953:
21954: fi
21955:
21956: if test "$ntp_ok" = "yes"; then
21957: ntp_refclock=yes
21958:
21959: $as_echo "#define CLOCK_HOPF_SERIAL 1" >>confdefs.h
21960:
21961: fi
21962: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
21963: $as_echo "$ntp_ok" >&6; }
21964:
21965: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf PCI clock 6039" >&5
21966: $as_echo_n "checking for hopf PCI clock 6039... " >&6; }
21967: # Check whether --enable-HOPFPCI was given.
21968: if test "${enable_HOPFPCI+set}" = set; then :
21969: enableval=$enable_HOPFPCI; ntp_ok=$enableval
21970: else
21971: ntp_ok=$ntp_eac
21972:
21973: fi
21974:
21975: if test "$ntp_ok" = "yes"; then
21976: ntp_refclock=yes
21977:
21978: $as_echo "#define CLOCK_HOPF_PCI 1" >>confdefs.h
21979:
21980: fi
21981: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
21982: $as_echo "$ntp_ok" >&6; }
21983:
21984: { $as_echo "$as_me:${as_lineno-$LINENO}: checking HP 58503A GPS receiver" >&5
21985: $as_echo_n "checking HP 58503A GPS receiver... " >&6; }
21986: # Check whether --enable-HPGPS was given.
21987: if test "${enable_HPGPS+set}" = set; then :
21988: enableval=$enable_HPGPS; ntp_ok=$enableval
21989: else
21990: ntp_ok=$ntp_eac
21991:
21992: fi
21993:
21994: if test "$ntp_ok" = "yes"; then
21995: ntp_refclock=yes
21996:
21997: $as_echo "#define CLOCK_HPGPS 1" >>confdefs.h
21998:
21999: fi
22000: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22001: $as_echo "$ntp_ok" >&6; }
22002:
22003: { $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIG audio decoder" >&5
22004: $as_echo_n "checking IRIG audio decoder... " >&6; }
22005: # Check whether --enable-IRIG was given.
22006: if test "${enable_IRIG+set}" = set; then :
22007: enableval=$enable_IRIG; ntp_ok=$enableval
22008: else
22009:
22010: case "$ntp_eac$ntp_canaudio" in
22011: *no*) ntp_ok=no ;;
22012: *) ntp_ok=yes ;;
22013: esac
22014:
22015:
22016: fi
22017:
22018: if test "$ntp_ok" = "yes"; then
22019: ntp_refclock=yes
22020:
22021: $as_echo "#define CLOCK_IRIG 1" >>confdefs.h
22022:
22023: fi
22024: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22025: $as_echo "$ntp_ok" >&6; }
22026: case "$ntp_ok$ntp_canaudio" in
22027: yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
22028: $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
22029: esac
22030:
22031: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JJY receiver" >&5
22032: $as_echo_n "checking for JJY receiver... " >&6; }
22033: # Check whether --enable-JJY was given.
22034: if test "${enable_JJY+set}" = set; then :
22035: enableval=$enable_JJY; ntp_ok=$enableval
22036: else
22037: ntp_ok=$ntp_eac
22038:
22039: fi
22040:
22041: if test "$ntp_ok" = "yes"; then
22042: ntp_refclock=yes
22043:
22044: $as_echo "#define CLOCK_JJY 1" >>confdefs.h
22045:
22046: fi
22047: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22048: $as_echo "$ntp_ok" >&6; }
22049:
22050: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Rockwell Jupiter GPS receiver" >&5
22051: $as_echo_n "checking Rockwell Jupiter GPS receiver... " >&6; }
22052: # Check whether --enable-JUPITER was given.
22053: if test "${enable_JUPITER+set}" = set; then :
22054: enableval=$enable_JUPITER; ntp_ok=$enableval
22055: else
22056: ntp_ok=$ntp_eac
22057: fi
22058:
22059: case "$ntp_jupiter_ok" in
22060: no) ntp_ok=no ;;
22061: esac
22062: if test "$ntp_ok" = "yes"; then
22063: ntp_refclock=yes
22064:
22065: $as_echo "#define CLOCK_JUPITER 1" >>confdefs.h
22066:
22067: fi
22068: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22069: $as_echo "$ntp_ok" >&6; }
22070:
22071: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Leitch CSD 5300 Master Clock System Driver" >&5
22072: $as_echo_n "checking Leitch CSD 5300 Master Clock System Driver... " >&6; }
22073: # Check whether --enable-LEITCH was given.
22074: if test "${enable_LEITCH+set}" = set; then :
22075: enableval=$enable_LEITCH; ntp_ok=$enableval
22076: else
22077: ntp_ok=$ntp_eac
22078:
22079: fi
22080:
22081: if test "$ntp_ok" = "yes"; then
22082: ntp_refclock=yes
22083:
22084: $as_echo "#define CLOCK_LEITCH 1" >>confdefs.h
22085:
22086: fi
22087: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22088: $as_echo "$ntp_ok" >&6; }
22089:
22090: { $as_echo "$as_me:${as_lineno-$LINENO}: checking local clock reference" >&5
22091: $as_echo_n "checking local clock reference... " >&6; }
22092: # Check whether --enable-LOCAL-CLOCK was given.
22093: if test "${enable_LOCAL_CLOCK+set}" = set; then :
22094: enableval=$enable_LOCAL_CLOCK; ntp_ok=$enableval
22095: else
22096: ntp_ok=$ntp_eac
22097:
22098: fi
22099:
22100: if test "$ntp_ok" = "yes"; then
22101: ntp_refclock=yes
22102:
22103: $as_echo "#define CLOCK_LOCAL 1" >>confdefs.h
22104:
22105: fi
22106: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22107: $as_echo "$ntp_ok" >&6; }
22108:
22109:
22110: # Not Ultrix
22111: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Magnavox MX4200 GPS receiver" >&5
22112: $as_echo_n "checking Magnavox MX4200 GPS receiver... " >&6; }
22113: # Check whether --enable-MX4200 was given.
22114: if test "${enable_MX4200+set}" = set; then :
22115: enableval=$enable_MX4200; ntp_ok=$enableval
22116: else
22117:
22118: case "$ac_cv_var_ppsclock" in
22119: yes)
22120: ntp_ok=$ntp_eac
22121: ;;
22122: *)
22123: ntp_ok=no
22124: ;;
22125: esac
22126:
22127:
22128: fi
22129:
22130: if test "$ntp_ok" = "yes"; then
22131: ntp_refclock=yes
22132:
22133: $as_echo "#define CLOCK_MX4200 1" >>confdefs.h
22134:
22135: fi
22136: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22137: $as_echo "$ntp_ok" >&6; }
22138: case "$ntp_ok$host" in
22139: yes*-*-ultrix*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
22140: $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
22141: esac
22142:
22143: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NeoClock4X receiver" >&5
22144: $as_echo_n "checking for NeoClock4X receiver... " >&6; }
22145: # Check whether --enable-NEOCLOCK4X was given.
22146: if test "${enable_NEOCLOCK4X+set}" = set; then :
22147: enableval=$enable_NEOCLOCK4X; ntp_ok=$enableval
22148: else
22149: ntp_ok=$ntp_eac
22150:
22151: fi
22152:
22153: if test "$ntp_ok" = "yes"; then
22154: ntp_refclock=yes
22155:
22156: $as_echo "#define CLOCK_NEOCLOCK4X 1" >>confdefs.h
22157:
22158: fi
22159: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22160: $as_echo "$ntp_ok" >&6; }
22161:
22162: { $as_echo "$as_me:${as_lineno-$LINENO}: checking NMEA GPS receiver" >&5
22163: $as_echo_n "checking NMEA GPS receiver... " >&6; }
22164: # Check whether --enable-NMEA was given.
22165: if test "${enable_NMEA+set}" = set; then :
22166: enableval=$enable_NMEA; ntp_ok=$enableval
22167: else
22168: ntp_ok=$ntp_eac
22169:
22170: fi
22171:
22172: if test "$ntp_ok" = "yes"; then
22173: ntp_refclock=yes
22174:
22175: $as_echo "#define CLOCK_NMEA 1" >>confdefs.h
22176:
22177: fi
22178: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22179: $as_echo "$ntp_ok" >&6; }
22180:
22181: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
22182: $as_echo_n "checking for ONCORE Motorola VP/UT Oncore GPS... " >&6; }
22183: # Check whether --enable-ONCORE was given.
22184: if test "${enable_ONCORE+set}" = set; then :
22185: enableval=$enable_ONCORE; ntp_ok=$enableval
22186: else
22187: ntp_ok=$ntp_eac
22188:
22189: fi
22190:
22191: case "$ntp_oncore_ok" in
22192: no) ntp_ok=no ;;
22193: esac
22194: if test "$ntp_ok" = "yes"; then
22195: ntp_refclock=yes
22196:
22197: $as_echo "#define CLOCK_ONCORE 1" >>confdefs.h
22198:
22199: fi
22200: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22201: $as_echo "$ntp_ok" >&6; }
22202:
22203: # Requires modem control
22204: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Palisade clock" >&5
22205: $as_echo_n "checking for Palisade clock... " >&6; }
22206: # Check whether --enable-PALISADE was given.
22207: if test "${enable_PALISADE+set}" = set; then :
22208: enableval=$enable_PALISADE; ntp_ok=$enableval
22209: else
22210: ntp_ok=$ntp_enable_all_modem_control_clocks
22211:
22212: fi
22213:
22214: if test "$ntp_ok" = "yes"; then
22215: ntp_refclock=yes
22216:
22217: $as_echo "#define CLOCK_PALISADE 1" >>confdefs.h
22218:
22219: fi
22220: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22221: $as_echo "$ntp_ok" >&6; }
22222:
22223: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Conrad parallel port radio clock" >&5
22224: $as_echo_n "checking Conrad parallel port radio clock... " >&6; }
22225: # Check whether --enable-PCF was given.
22226: if test "${enable_PCF+set}" = set; then :
22227: enableval=$enable_PCF; ntp_ok=$enableval
22228: else
22229: ntp_ok=$ntp_eac
22230:
22231: fi
22232:
22233: if test "$ntp_ok" = "yes"; then
22234: ntp_refclock=yes
22235:
22236: $as_echo "#define CLOCK_PCF 1" >>confdefs.h
22237:
22238: fi
22239: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22240: $as_echo "$ntp_ok" >&6; }
22241:
22242: { $as_echo "$as_me:${as_lineno-$LINENO}: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
22243: $as_echo_n "checking PST/Traconex 1020 WWV/WWVH receiver... " >&6; }
22244: # Check whether --enable-PST was given.
22245: if test "${enable_PST+set}" = set; then :
22246: enableval=$enable_PST; ntp_ok=$enableval
22247: else
22248: ntp_ok=$ntp_eac
22249:
22250: fi
22251:
22252: if test "$ntp_ok" = "yes"; then
22253: ntp_refclock=yes
22254:
22255: $as_echo "#define CLOCK_PST 1" >>confdefs.h
22256:
22257: fi
22258: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22259: $as_echo "$ntp_ok" >&6; }
22260:
22261: { $as_echo "$as_me:${as_lineno-$LINENO}: checking RIPENCC specific Trimble driver" >&5
22262: $as_echo_n "checking RIPENCC specific Trimble driver... " >&6; }
22263: # Check whether --enable-RIPENCC was given.
22264: if test "${enable_RIPENCC+set}" = set; then :
22265: enableval=$enable_RIPENCC; ntp_ok=$enableval
22266: else
22267: ntp_ok=no
22268:
22269: fi
22270:
22271: # 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage
22272: case "$ntp_ripe_ncc_ok" in
22273: no) ntp_ok=no ;;
22274: esac
22275: if test "$ntp_ok" = "yes"; then
22276: ntp_refclock=yes
22277:
22278: $as_echo "#define CLOCK_RIPENCC /**/" >>confdefs.h
22279:
22280: fi
22281: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22282: $as_echo "$ntp_ok" >&6; }
22283:
22284: # Danny Meyer says SHM compiles (with a few warnings) under Win32.
22285: # For *IX, we need sys/ipc.h and sys/shm.h.
22286: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHM clock attached thru shared memory" >&5
22287: $as_echo_n "checking for SHM clock attached thru shared memory... " >&6; }
22288: # Check whether --enable-SHM was given.
22289: if test "${enable_SHM+set}" = set; then :
22290: enableval=$enable_SHM; ntp_ok=$enableval
22291: else
22292:
22293: case "$ntp_eac$ntp_canshm" in
22294: *no*) ntp_ok=no ;;
22295: *) ntp_ok=yes ;;
22296: esac
22297:
22298:
22299: fi
22300:
22301: if test "$ntp_ok" = "yes"; then
22302: ntp_refclock=yes
22303:
22304: $as_echo "#define CLOCK_SHM 1" >>confdefs.h
22305:
22306: fi
22307: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22308: $as_echo "$ntp_ok" >&6; }
22309:
22310: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
22311: $as_echo_n "checking Spectracom 8170/Netclock/2 WWVB receiver... " >&6; }
22312: # Check whether --enable-SPECTRACOM was given.
22313: if test "${enable_SPECTRACOM+set}" = set; then :
22314: enableval=$enable_SPECTRACOM; ntp_ok=$enableval
22315: else
22316: ntp_ok=$ntp_eac
22317:
22318: fi
22319:
22320: if test "$ntp_ok" = "yes"; then
22321: ntp_refclock=yes
22322:
22323: $as_echo "#define CLOCK_SPECTRACOM 1" >>confdefs.h
22324:
22325: fi
22326: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22327: $as_echo "$ntp_ok" >&6; }
22328:
22329: { $as_echo "$as_me:${as_lineno-$LINENO}: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
22330: $as_echo_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... " >&6; }
22331: # Check whether --enable-TPRO was given.
22332: if test "${enable_TPRO+set}" = set; then :
22333: enableval=$enable_TPRO; ntp_ok=$enableval
22334: else
22335:
22336: case "$ac_cv_header_sys_tpro_h" in
22337: yes)
22338: ntp_ok=$ntp_eac
22339: ;;
22340: *)
22341: ntp_ok=no
22342: ;;
22343: esac
22344:
22345:
22346: fi
22347:
22348: if test "$ntp_ok" = "yes"; then
22349: ntp_refclock=yes
22350:
22351: $as_echo "#define CLOCK_TPRO 1" >>confdefs.h
22352:
22353: fi
22354: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22355: $as_echo "$ntp_ok" >&6; }
22356: case "$ntp_ok$ac_cv_header_sys_tpro" in
22357: yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
22358: $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
22359: esac
22360:
22361:
22362: # Not on a vax-dec-bsd
22363: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kinemetrics/TrueTime receivers" >&5
22364: $as_echo_n "checking Kinemetrics/TrueTime receivers... " >&6; }
22365: # Check whether --enable-TRUETIME was given.
22366: if test "${enable_TRUETIME+set}" = set; then :
22367: enableval=$enable_TRUETIME; ntp_ok=$enableval
22368: else
22369:
22370: case "$host" in
22371: vax-dec-bsd)
22372: ntp_ok=no
22373: ;;
22374: *)
22375: ntp_ok=$ntp_eac
22376: ;;
22377: esac
22378:
22379:
22380: fi
22381:
22382: if test "$ntp_ok" = "yes"; then
22383: ntp_refclock=yes
22384:
22385: $as_echo "#define CLOCK_TRUETIME 1" >>confdefs.h
22386:
22387: fi
22388: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22389: $as_echo "$ntp_ok" >&6; }
22390: case "$ntp_ok$host" in
22391: yesvax-dec-bsd) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
22392: $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
22393: esac
22394:
22395: { $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime 560 IRIG-B decoder" >&5
22396: $as_echo_n "checking TrueTime 560 IRIG-B decoder... " >&6; }
22397: # Check whether --enable-TT560 was given.
22398: if test "${enable_TT560+set}" = set; then :
22399: enableval=$enable_TT560; ntp_ok=$enableval
22400: else
22401: ntp_ok=no
22402:
22403: fi
22404:
22405: if test "$ntp_ok" = "yes"; then
22406: ntp_refclock=yes
22407:
22408: $as_echo "#define CLOCK_TT560 /**/" >>confdefs.h
22409:
22410: fi
22411: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22412: $as_echo "$ntp_ok" >&6; }
22413:
22414: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ultralink M320 WWVB receiver" >&5
22415: $as_echo_n "checking Ultralink M320 WWVB receiver... " >&6; }
22416: # Check whether --enable-ULINK was given.
22417: if test "${enable_ULINK+set}" = set; then :
22418: enableval=$enable_ULINK; ntp_ok=$enableval
22419: else
22420: ntp_ok=$ntp_eac
22421:
22422: fi
22423:
22424: if test "$ntp_ok" = "yes"; then
22425: ntp_refclock=yes
22426:
22427: $as_echo "#define CLOCK_ULINK 1" >>confdefs.h
22428:
22429: fi
22430: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22431: $as_echo "$ntp_ok" >&6; }
22432:
22433: { $as_echo "$as_me:${as_lineno-$LINENO}: checking WWV receiver" >&5
22434: $as_echo_n "checking WWV receiver... " >&6; }
22435: # Check whether --enable-WWV was given.
22436: if test "${enable_WWV+set}" = set; then :
22437: enableval=$enable_WWV; ntp_ok=$enableval
22438: else
22439:
22440: case "$ntp_eac$ntp_canaudio" in
22441: *no*) ntp_ok=no ;;
22442: *) ntp_ok=yes ;;
22443: esac
22444:
22445:
22446: fi
22447:
22448: if test "$ntp_ok" = "yes"; then
22449: ntp_refclock=yes
22450:
22451: $as_echo "#define CLOCK_WWV 1" >>confdefs.h
22452:
22453: fi
22454: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22455: $as_echo "$ntp_ok" >&6; }
22456: case "$ntp_ok$ntp_canaudio" in
22457: yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
22458: $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
22459: esac
22460:
22461: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zyfer receiver" >&5
22462: $as_echo_n "checking for Zyfer receiver... " >&6; }
22463: # Check whether --enable-ZYFER was given.
22464: if test "${enable_ZYFER+set}" = set; then :
22465: enableval=$enable_ZYFER; ntp_ok=$enableval
22466: else
22467: ntp_ok=$ntp_eac
22468:
22469: fi
22470:
22471: if test "$ntp_ok" = "yes"; then
22472: ntp_refclock=yes
22473:
22474: $as_echo "#define CLOCK_ZYFER 1" >>confdefs.h
22475:
22476: fi
22477: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22478: $as_echo "$ntp_ok" >&6; }
22479:
22480: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable PARSE clocks" >&5
22481: $as_echo_n "checking for default inclusion of all suitable PARSE clocks... " >&6; }
22482: # Check whether --enable-parse-clocks was given.
22483: if test "${enable_parse_clocks+set}" = set; then :
22484: enableval=$enable_parse_clocks; ntp_eapc=$enableval
22485: else
22486:
22487: case "$ntp_eac" in
22488: yes) ntp_eapc=$ntp_canparse ;;
22489: *) ntp_eapc=no ;;
22490: esac
22491: # Delete the next line one of these days
22492: ntp_eapc=no
22493:
22494:
22495: fi
22496:
22497: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eapc" >&5
22498: $as_echo "$ntp_eapc" >&6; }
22499:
22500: case "$ntp_eac$ntp_eapc$ntp_canparse" in
22501: noyes*)
22502: as_fn_error $? "\"--enable-parse-clocks\" requires \"--enable-all-clocks\"." "$LINENO" 5
22503: ;;
22504: yesyesno)
22505: as_fn_error $? "You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" "$LINENO" 5
22506: ;;
22507: esac
22508:
22509: ntp_libparse=no
22510: ntp_parseutil=no
22511: ntp_rawdcf=no
22512:
22513: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Diem Computime Radio Clock" >&5
22514: $as_echo_n "checking Diem Computime Radio Clock... " >&6; }
22515: # Check whether --enable-COMPUTIME was given.
22516: if test "${enable_COMPUTIME+set}" = set; then :
22517: enableval=$enable_COMPUTIME; ntp_ok=$enableval
22518: else
22519: ntp_ok=$ntp_eapc
22520:
22521: fi
22522:
22523: if test "$ntp_ok" = "yes"; then
22524: ntp_libparse=yes
22525: ntp_refclock=yes
22526:
22527: $as_echo "#define CLOCK_COMPUTIME 1" >>confdefs.h
22528:
22529: fi
22530: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22531: $as_echo "$ntp_ok" >&6; }
22532: case "$ntp_ok$ntp_canparse" in
22533: yesno)
22534: as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
22535: esac
22536:
22537: { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELV/DCF7000 clock" >&5
22538: $as_echo_n "checking ELV/DCF7000 clock... " >&6; }
22539: # Check whether --enable-DCF7000 was given.
22540: if test "${enable_DCF7000+set}" = set; then :
22541: enableval=$enable_DCF7000; ntp_ok=$enableval
22542: else
22543: ntp_ok=$ntp_eapc
22544:
22545: fi
22546:
22547: if test "$ntp_ok" = "yes"; then
22548: ntp_libparse=yes
22549: ntp_refclock=yes
22550:
22551: $as_echo "#define CLOCK_DCF7000 1" >>confdefs.h
22552:
22553: fi
22554: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22555: $as_echo "$ntp_ok" >&6; }
22556: case "$ntp_ok$ntp_canparse" in
22557: yesno)
22558: as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
22559: esac
22560:
22561: { $as_echo "$as_me:${as_lineno-$LINENO}: checking HOPF 6021 clock" >&5
22562: $as_echo_n "checking HOPF 6021 clock... " >&6; }
22563: # Check whether --enable-HOPF6021 was given.
22564: if test "${enable_HOPF6021+set}" = set; then :
22565: enableval=$enable_HOPF6021; ntp_ok=$enableval
22566: else
22567: ntp_ok=$ntp_eapc
22568:
22569: fi
22570:
22571: if test "$ntp_ok" = "yes"; then
22572: ntp_libparse=yes
22573: ntp_refclock=yes
22574:
22575: $as_echo "#define CLOCK_HOPF6021 1" >>confdefs.h
22576:
22577: fi
22578: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22579: $as_echo "$ntp_ok" >&6; }
22580: case "$ntp_ok$ntp_canparse" in
22581: yesno)
22582: as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
22583: esac
22584:
22585: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Meinberg clocks" >&5
22586: $as_echo_n "checking Meinberg clocks... " >&6; }
22587: # Check whether --enable-MEINBERG was given.
22588: if test "${enable_MEINBERG+set}" = set; then :
22589: enableval=$enable_MEINBERG; ntp_ok=$enableval
22590: else
22591: ntp_ok=$ntp_eapc
22592:
22593: fi
22594:
22595: if test "$ntp_ok" = "yes"; then
22596: ntp_libparse=yes
22597: ntp_refclock=yes
22598:
22599: $as_echo "#define CLOCK_MEINBERG 1" >>confdefs.h
22600:
22601: fi
22602: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22603: $as_echo "$ntp_ok" >&6; }
22604: case "$ntp_ok$ntp_canparse" in
22605: yesno)
22606: as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
22607: esac
22608:
22609: { $as_echo "$as_me:${as_lineno-$LINENO}: checking DCF77 raw time code" >&5
22610: $as_echo_n "checking DCF77 raw time code... " >&6; }
22611: # Check whether --enable-RAWDCF was given.
22612: if test "${enable_RAWDCF+set}" = set; then :
22613: enableval=$enable_RAWDCF; ntp_ok=$enableval
22614: else
22615: ntp_ok=$ntp_eapc
22616:
22617: fi
22618:
22619: if test "$ntp_ok" = "yes"; then
22620: ntp_libparse=yes
22621: ntp_parseutil=yes
22622: ntp_refclock=yes
22623: ntp_rawdcf=yes
22624:
22625: $as_echo "#define CLOCK_RAWDCF 1" >>confdefs.h
22626:
22627: fi
22628: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22629: $as_echo "$ntp_ok" >&6; }
22630: case "$ntp_ok$ntp_canparse" in
22631: yesno)
22632: as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
22633: esac
22634:
22635: case "$ntp_rawdcf" in
22636: yes)
22637: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we must enable parity for RAWDCF" >&5
22638: $as_echo_n "checking if we must enable parity for RAWDCF... " >&6; }
22639: if ${ntp_cv_rawdcf_parity+:} false; then :
22640: $as_echo_n "(cached) " >&6
22641: else
22642:
22643: ans=no
22644: case "$host" in
22645: *-*-*linux*)
22646: ans=yes
22647: ;;
22648: esac
22649: ntp_cv_rawdcf_parity=$ans
22650:
22651:
22652: fi
22653: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rawdcf_parity" >&5
22654: $as_echo "$ntp_cv_rawdcf_parity" >&6; }
22655: case "$ntp_cv_rawdcf_parity" in
22656: yes)
22657:
22658: $as_echo "#define RAWDCF_NO_IGNPAR 1" >>confdefs.h
22659: ;;
22660: esac
22661: esac
22662:
22663: { $as_echo "$as_me:${as_lineno-$LINENO}: checking RCC 8000 clock" >&5
22664: $as_echo_n "checking RCC 8000 clock... " >&6; }
22665: # Check whether --enable-RCC8000 was given.
22666: if test "${enable_RCC8000+set}" = set; then :
22667: enableval=$enable_RCC8000; ntp_ok=$enableval
22668: else
22669: ntp_ok=$ntp_eapc
22670:
22671: fi
22672:
22673: if test "$ntp_ok" = "yes"; then
22674: ntp_libparse=yes
22675: ntp_refclock=yes
22676:
22677: $as_echo "#define CLOCK_RCC8000 1" >>confdefs.h
22678:
22679: fi
22680: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22681: $as_echo "$ntp_ok" >&6; }
22682: case "$ntp_ok$ntp_canparse" in
22683: yesno)
22684: as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
22685: esac
22686:
22687: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Schmid DCF77 clock" >&5
22688: $as_echo_n "checking Schmid DCF77 clock... " >&6; }
22689: # Check whether --enable-SCHMID was given.
22690: if test "${enable_SCHMID+set}" = set; then :
22691: enableval=$enable_SCHMID; ntp_ok=$enableval
22692: else
22693: ntp_ok=$ntp_eapc
22694:
22695: fi
22696:
22697: if test "$ntp_ok" = "yes"; then
22698: ntp_libparse=yes
22699: ntp_refclock=yes
22700:
22701: $as_echo "#define CLOCK_SCHMID 1" >>confdefs.h
22702:
22703: fi
22704: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22705: $as_echo "$ntp_ok" >&6; }
22706: case "$ntp_ok$ntp_canparse" in
22707: yesno)
22708: as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
22709: esac
22710:
22711: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TAIP protocol" >&5
22712: $as_echo_n "checking Trimble GPS receiver/TAIP protocol... " >&6; }
22713: # Check whether --enable-TRIMTAIP was given.
22714: if test "${enable_TRIMTAIP+set}" = set; then :
22715: enableval=$enable_TRIMTAIP; ntp_ok=$enableval
22716: else
22717: ntp_ok=$ntp_eapc
22718:
22719: fi
22720:
22721: if test "$ntp_ok" = "yes"; then
22722: ntp_libparse=yes
22723: ntp_refclock=yes
22724:
22725: $as_echo "#define CLOCK_TRIMTAIP 1" >>confdefs.h
22726:
22727: fi
22728: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22729: $as_echo "$ntp_ok" >&6; }
22730: case "$ntp_ok$ntp_canparse" in
22731: yesno)
22732: as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
22733: esac
22734:
22735: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TSIP protocol" >&5
22736: $as_echo_n "checking Trimble GPS receiver/TSIP protocol... " >&6; }
22737: # Check whether --enable-TRIMTSIP was given.
22738: if test "${enable_TRIMTSIP+set}" = set; then :
22739: enableval=$enable_TRIMTSIP; ntp_ok=$enableval
22740: else
22741: ntp_ok=$ntp_eapc
22742:
22743: fi
22744:
22745: if test "$ntp_ok" = "yes"; then
22746: ntp_libparse=yes
22747: ntp_refclock=yes
22748:
22749: $as_echo "#define CLOCK_TRIMTSIP 1" >>confdefs.h
22750:
22751: fi
22752: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22753: $as_echo "$ntp_ok" >&6; }
22754: case "$ntp_ok$ntp_canparse" in
22755: yesno)
22756: as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
22757: esac
22758:
22759: { $as_echo "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5
22760: $as_echo_n "checking WHARTON 400A Series clock... " >&6; }
22761: # Check whether --enable-WHARTON was given.
22762: if test "${enable_WHARTON+set}" = set; then :
22763: enableval=$enable_WHARTON; ntp_ok=$enableval
22764: else
22765: ntp_ok=$ntp_eapc
22766:
22767: fi
22768:
22769: if test "$ntp_ok" = "yes"; then
22770: ntp_libparse=yes
22771: ntp_refclock=yes
22772:
22773: $as_echo "#define CLOCK_WHARTON_400A 1" >>confdefs.h
22774:
22775: fi
22776: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22777: $as_echo "$ntp_ok" >&6; }
22778: case "$ntp_ok$ntp_canparse" in
22779: yesno)
22780: as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
22781: esac
22782:
22783: { $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5
22784: $as_echo_n "checking VARITEXT clock... " >&6; }
22785: # Check whether --enable-VARITEXT was given.
22786: if test "${enable_VARITEXT+set}" = set; then :
22787: enableval=$enable_VARITEXT; ntp_ok=$enableval
22788: else
22789: ntp_ok=$ntp_eapc
22790:
22791: fi
22792:
22793: if test "$ntp_ok" = "yes"; then
22794: ntp_libparse=yes
22795: ntp_refclock=yes
22796:
22797: $as_echo "#define CLOCK_VARITEXT 1" >>confdefs.h
22798:
22799: fi
22800: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22801: $as_echo "$ntp_ok" >&6; }
22802: case "$ntp_ok$ntp_canparse" in
22803: yesno)
22804: as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
22805: esac
22806:
22807:
22808:
22809:
22810:
22811:
22812: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5
22813: $as_echo_n "checking if we need to make and use the parse libraries... " >&6; }
22814: ans=no
22815: case "$ntp_libparse" in
22816: yes)
22817: ans=yes
22818:
22819: $as_echo "#define CLOCK_PARSE 1" >>confdefs.h
22820:
22821: LIBPARSE=../libparse/libparse.a
22822: MAKE_LIBPARSE=libparse.a
22823: # HMS: check_y2k trips the 34 year problem now...
22824: false && MAKE_CHECK_Y2K=check_y2k
22825: esac
22826: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
22827: $as_echo "$ans" >&6; }
22828:
22829:
22830:
22831:
22832:
22833:
22834:
22835: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
22836: $as_echo_n "checking for openssl library directory... " >&6; }
22837:
22838: # Check whether --with-openssl-libdir was given.
22839: if test "${with_openssl_libdir+set}" = set; then :
22840: withval=$with_openssl_libdir; ans=$withval
22841: else
22842:
22843: case "$build" in
22844: $host) ans=yes ;;
22845: *) ans=no ;;
22846: esac
22847:
22848:
22849: fi
22850:
22851: case "$ans" in
22852: no)
22853: ;;
22854: yes) # Look in:
22855: ans="/usr/lib /usr/lib/openssl /usr/sfw/lib /usr/local/lib /usr/local/ssl/lib /lib"
22856: ;;
22857: *) # Look where they said
22858: ;;
22859: esac
22860: case "$ans" in
22861: no)
22862: ;;
22863: *) # Look for libcrypto.a and libssl.a:
22864: for i in $ans no
22865: do
22866: case "$host" in
22867: *-*-darwin*)
22868: test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
22869: ;;
22870: *)
22871: test -f $i/libcrypto.so -a -f $i/libssl.so && break
22872: test -f $i/libcrypto.a -a -f $i/libssl.a && break
22873: ;;
22874: esac
22875: done
22876: case "$i" in
22877: no)
22878: ans=no
22879: OPENSSL_LIB=
22880: ;;
22881: *) ans=$i
22882: OPENSSL_LIB=$ans
22883: ;;
22884: esac
22885: ;;
22886: esac
22887: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
22888: $as_echo "$ans" >&6; }
22889:
22890: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
22891: $as_echo_n "checking for openssl include directory... " >&6; }
22892:
22893: # Check whether --with-openssl-incdir was given.
22894: if test "${with_openssl_incdir+set}" = set; then :
22895: withval=$with_openssl_incdir; ans=$withval
22896: else
22897:
22898: case "$build" in
22899: $host) ans=yes ;;
22900: *) ans=no ;;
22901: esac
22902:
22903:
22904: fi
22905:
22906: case "$ans" in
22907: no)
22908: ;;
22909: yes) # look in:
22910: ans="/usr/include /usr/sfw/include /usr/local/include /usr/local/ssl/include"
22911: ;;
22912: *) # Look where they said
22913: ;;
22914: esac
22915: case "$ans" in
22916: no)
22917: ;;
22918: *) # look for openssl/opensslconf.h:
22919: for i in $ans no
22920: do
22921: test -f $i/openssl/opensslconf.h && break
22922: done
22923: case "$i" in
22924: no)
22925: ans=no
22926: OPENSSL_INC=
22927: ;;
22928: *) ans=$i
22929: OPENSSL_INC=$ans
22930: ;;
22931: esac
22932: ;;
22933: esac
22934: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
22935: $as_echo "$ans" >&6; }
22936:
22937: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
22938: $as_echo_n "checking if we will use crypto... " >&6; }
22939:
22940: # Check whether --with-crypto was given.
22941: if test "${with_crypto+set}" = set; then :
22942: withval=$with_crypto; ans=$withval
22943: else
22944: ans=yes
22945:
22946: fi
22947:
22948: case "$ans" in
22949: no)
22950: ;;
22951: yes|openssl)
22952: if test -z "$OPENSSL_LIB" -o -z "$OPENSSL_INC"
22953: then
22954: ans=no
22955: else
22956: ans=yes
22957: fi
22958: esac
22959: ntp_openssl=$ans
22960: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
22961: $as_echo "$ans" >&6; }
22962:
22963: case "$ntp_openssl" in
22964: yes)
22965: # We have OpenSSL inc/lib - use them.
22966: case "$OPENSSL_INC" in
22967: /usr/include)
22968: ;;
22969: *)
22970: CPPFLAGS="$CPPFLAGS -I$OPENSSL_INC"
22971: ;;
22972: esac
22973: case "$OPENSSL_LIB" in
22974: /usr/lib)
22975: ;;
22976: *)
22977: LDFLAGS="$LDFLAGS -L$OPENSSL_LIB"
22978: case "$need_dash_r" in
22979: 1)
22980: LDFLAGS="$LDFLAGS -R$OPENSSL_LIB"
22981: esac
22982: ;;
22983: esac
22984: LCRYPTO=-lcrypto
22985:
22986:
22987: $as_echo "#define OPENSSL 1" >>confdefs.h
22988:
22989: esac
22990:
22991: #
22992: # check for linking with -lcrypto failure, and try -lz -lcrypto.
22993: # Helps m68k-atari-mint
22994: #
22995: case "$ntp_openssl" in
22996: yes)
22997: NTPO_SAVED_LIBS="$LIBS"
22998: LIBS="$NTPO_SAVED_LIBS $LCRYPTO"
22999: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with $LCRYPTO alone works" >&5
23000: $as_echo_n "checking if linking with $LCRYPTO alone works... " >&6; }
23001: if ${ntp_cv_bare_lcrypto+:} false; then :
23002: $as_echo_n "(cached) " >&6
23003: else
23004: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23005: /* end confdefs.h. */
23006:
23007: #include "openssl/err.h"
23008: #include "openssl/evp.h"
23009:
23010: int
23011: main ()
23012: {
23013:
23014: ERR_load_crypto_strings();
23015: OpenSSL_add_all_algorithms();
23016:
23017:
23018: ;
23019: return 0;
23020: }
23021: _ACEOF
23022: if ac_fn_c_try_link "$LINENO"; then :
23023: ntp_cv_bare_lcrypto=yes
23024: else
23025: ntp_cv_bare_lcrypto=no
23026:
23027: fi
23028: rm -f core conftest.err conftest.$ac_objext \
23029: conftest$ac_exeext conftest.$ac_ext
23030:
23031: fi
23032: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5
23033: $as_echo "$ntp_cv_bare_lcrypto" >&6; }
23034: case "$ntp_cv_bare_lcrypto" in
23035: no)
23036: LIBS="$NTPO_SAVED_LIBS $LCRYPTO -lz"
23037: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with $LCRYPTO -lz works" >&5
23038: $as_echo_n "checking if linking with $LCRYPTO -lz works... " >&6; }
23039: if ${ntp_cv_lcrypto_lz+:} false; then :
23040: $as_echo_n "(cached) " >&6
23041: else
23042: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23043: /* end confdefs.h. */
23044:
23045: #include "openssl/err.h"
23046: #include "openssl/evp.h"
23047:
23048: int
23049: main ()
23050: {
23051:
23052: ERR_load_crypto_strings();
23053: OpenSSL_add_all_algorithms();
23054:
23055:
23056: ;
23057: return 0;
23058: }
23059: _ACEOF
23060: if ac_fn_c_try_link "$LINENO"; then :
23061: ntp_cv_lcrypto_lz=yes
23062: else
23063: ntp_cv_lcrypto_lz=no
23064:
23065: fi
23066: rm -f core conftest.err conftest.$ac_objext \
23067: conftest$ac_exeext conftest.$ac_ext
23068:
23069: fi
23070: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5
23071: $as_echo "$ntp_cv_lcrypto_lz" >&6; }
23072: case "$ntp_cv_lcrypto_lz" in
23073: yes)
23074: LCRYPTO="$LCRYPTO -lz"
23075: esac
23076: esac
23077: LIBS="$NTPO_SAVED_LIBS"
23078: { NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
23079: esac
23080:
23081: #
23082: # Older OpenSSL headers have a number of callback prototypes inside
23083: # other function prototypes which trigger copious warnings with gcc's
23084: # -Wstrict-prototypes, which is included in -Wall.
23085: #
23086: # An example:
23087: #
23088: # int i2d_RSA_NET(const RSA *a, unsigned char **pp,
23089: # int (*cb)(), int sgckey);
23090: # ^^^^^^^^^^^
23091: #
23092: #
23093: #
23094: openssl_triggers_warnings=unknown
23095: SAVED_CFLAGS="$CFLAGS"
23096:
23097: case "$GCC$ntp_openssl" in
23098: yesyes)
23099: CFLAGS="$CFLAGS -Werror"
23100: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23101: /* end confdefs.h. */
23102:
23103:
23104: int
23105: main ()
23106: {
23107:
23108: /* see if -Werror breaks gcc */
23109:
23110:
23111: ;
23112: return 0;
23113: }
23114: _ACEOF
23115: if ac_fn_c_try_compile "$LINENO"; then :
23116: gcc_handles_Werror=yes
23117: else
23118: gcc_handles_Werror=no
23119:
23120: fi
23121: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23122: case "$gcc_handles_Werror" in
23123: no)
23124: # if this gcc doesn't do -Werror go ahead and use
23125: # -Wstrict-prototypes.
23126: openssl_triggers_warnings=yes
23127: ;;
23128: yes)
23129: CFLAGS="$CFLAGS -Wstrict-prototypes"
23130: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23131: /* end confdefs.h. */
23132:
23133: #include "openssl/asn1_mac.h"
23134: #include "openssl/bn.h"
23135: #include "openssl/err.h"
23136: #include "openssl/evp.h"
23137: #include "openssl/pem.h"
23138: #include "openssl/rand.h"
23139: #include "openssl/x509v3.h"
23140:
23141: int
23142: main ()
23143: {
23144:
23145: /* empty body */
23146:
23147:
23148: ;
23149: return 0;
23150: }
23151: _ACEOF
23152: if ac_fn_c_try_compile "$LINENO"; then :
23153: openssl_triggers_warnings=no
23154: else
23155: openssl_triggers_warnings=yes
23156:
23157: fi
23158: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23159: esac
23160: case "$openssl_triggers_warnings" in
23161: yes)
23162: CFLAGS="$SAVED_CFLAGS -Wno-strict-prototypes"
23163: ;;
23164: *)
23165: CFLAGS="$SAVED_CFLAGS -Wstrict-prototypes"
23166: esac
23167: ;;
23168: yesno)
23169: # gcc without OpenSSL
23170: CFLAGS="$SAVED_CFLAGS -Wstrict-prototypes"
23171: esac
23172:
23173:
23174:
23175: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to compile with ElectricFence" >&5
23176: $as_echo_n "checking if we want to compile with ElectricFence... " >&6; }
23177:
23178: # Check whether --with-electricfence was given.
23179: if test "${with_electricfence+set}" = set; then :
23180: withval=$with_electricfence; ans=$withval
23181: else
23182: ans=no
23183:
23184: fi
23185:
23186: case "$ans" in
23187: no) ;;
23188: *)
23189: LIBS="$LIBS \${top_builddir}/ElectricFence/libefence.a"
23190: EF_PROGS="eftest tstheap"
23191:
23192: EF_LIBS=libefence.a
23193:
23194: ans=yes
23195: ;;
23196: esac
23197: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
23198: $as_echo "$ans" >&6; }
23199:
23200:
23201: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to run check-layout" >&5
23202: $as_echo_n "checking if we want to run check-layout... " >&6; }
23203: case "$cross_compiling$PATH_PERL" in
23204: no/*)
23205: MAKE_CHECK_LAYOUT=check-layout
23206: ans=yes
23207: ;;
23208: *)
23209: ans=no
23210: ;;
23211: esac
23212: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
23213: $as_echo "$ans" >&6; }
23214:
23215:
23216:
23217: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make dcf parse utilities" >&5
23218: $as_echo_n "checking if we can make dcf parse utilities... " >&6; }
23219: ans=no
23220: if test "$ntp_parseutil" = "yes"; then
23221: case "$host" in
23222: *-*-sunos4*|*-*-solaris2*|*-*-*linux*|*-*-netbsd*)
23223: ans="dcfd testdcf"
23224: DCFD=dcfd
23225: TESTDCF=testdcf
23226: esac
23227: fi
23228: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
23229: $as_echo "$ans" >&6; }
23230:
23231:
23232: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build kernel streams modules for parse" >&5
23233: $as_echo_n "checking if we can build kernel streams modules for parse... " >&6; }
23234: ans=no
23235: case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
23236: yesyes)
23237: case "$host" in
23238: sparc-*-sunos4*)
23239: case "$ntp_cv_var_kernel_pll" in
23240: yes)
23241:
23242: $as_echo "#define PPS_SYNC 1" >>confdefs.h
23243:
23244: ;;
23245: esac
23246: ans=parsestreams
23247: MAKE_PARSEKMODULE=parsestreams.loadable_module.o
23248: ;;
23249: sparc-*-solaris2*)
23250: ans=parsesolaris
23251: MAKE_PARSEKMODULE=parse
23252: for ac_header in strings.h
23253: do :
23254: ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
23255: if test "x$ac_cv_header_strings_h" = xyes; then :
23256: cat >>confdefs.h <<_ACEOF
23257: #define HAVE_STRINGS_H 1
23258: _ACEOF
23259:
23260: fi
23261:
23262: done
23263:
23264: ;;
23265: esac
23266: ;;
23267: esac
23268: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
23269: $as_echo "$ans" >&6; }
23270:
23271: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need basic refclock support" >&5
23272: $as_echo_n "checking if we need basic refclock support... " >&6; }
23273: if test "$ntp_refclock" = "yes"; then
23274:
23275: $as_echo "#define REFCLOCK 1" >>confdefs.h
23276:
23277: fi
23278: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_refclock" >&5
23279: $as_echo "$ntp_refclock" >&6; }
23280:
23281:
23282:
23283: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want HP-UX adjtimed support" >&5
23284: $as_echo_n "checking if we want HP-UX adjtimed support... " >&6; }
23285: case "$host" in
23286: *-*-hpux[56789]*)
23287: ans=yes
23288: ;;
23289: *) ans=no
23290: ;;
23291: esac
23292: if test "$ans" = "yes"; then
23293: MAKE_ADJTIMED=adjtimed
23294:
23295: $as_echo "#define NEED_HPUX_ADJTIME 1" >>confdefs.h
23296:
23297: fi
23298: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
23299: $as_echo "$ans" >&6; }
23300:
23301: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5
23302: $as_echo_n "checking if we want QNX adjtime support... " >&6; }
23303: case "$host" in
23304: *-*-qnx*)
23305: ans=yes
23306: ;;
23307: *) ans=no
23308: ;;
23309: esac
23310: if test "$ans" = "yes"; then
23311:
23312: $as_echo "#define NEED_QNX_ADJTIME 1" >>confdefs.h
23313:
23314: fi
23315: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
23316: $as_echo "$ans" >&6; }
23317:
23318: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can read kmem" >&5
23319: $as_echo_n "checking if we can read kmem... " >&6; }
23320:
23321: # the default is to enable it if the system has the capability
23322:
23323: case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in
23324: *yes*)
23325: ans=yes
23326: ;;
23327: *) ans=no
23328: esac
23329:
23330: case "$host" in
23331: *-*-domainos) # Won't be found...
23332: ans=no
23333: ;;
23334: *-*-hpux*)
23335: #ans=no
23336: ;;
23337: *-*-irix[456]*)
23338: ans=no
23339: ;;
23340: *-*-*linux*)
23341: ans=no
23342: ;;
23343: *-*-winnt3.5)
23344: ans=no
23345: ;;
23346: *-*-unicosmp*)
23347: ans=no
23348: ;;
23349: esac
23350:
23351: # --enable-kmem / --disable-kmem controls if present
23352: # Check whether --enable-kmem was given.
23353: if test "${enable_kmem+set}" = set; then :
23354: enableval=$enable_kmem; ans=$enableval
23355:
23356: fi
23357:
23358:
23359: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
23360: $as_echo "$ans" >&6; }
23361:
23362: case "$ans" in
23363: yes)
23364: can_kmem=yes
23365: ;;
23366: *)
23367: can_kmem=no
23368:
23369: $as_echo "#define NOKMEM 1" >>confdefs.h
23370:
23371: esac
23372:
23373:
23374: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5
23375: $as_echo_n "checking if adjtime is accurate... " >&6; }
23376:
23377: # target-dependent defaults
23378:
23379: case "$host" in
23380: i386-sequent-ptx*)
23381: ans=no
23382: ;;
23383: i386-unknown-osf1*)
23384: ans=yes
23385: ;;
23386: mips-sgi-irix[456]*)
23387: ans=yes
23388: ;;
23389: *-fujitsu-uxp*)
23390: ans=yes
23391: ;;
23392: *-ibm-aix[456]*)
23393: ans=yes
23394: ;;
23395: *-*-*linux*)
23396: ans=yes
23397: ;;
23398: *-*-solaris2.[01])
23399: ans=no
23400: ;;
23401: *-*-solaris2*)
23402: ans=yes
23403: ;;
23404: *-*-unicosmp*)
23405: ans=yes
23406: ;;
23407: *) ans=no
23408: esac
23409:
23410: # --enable-accurate-adjtime / --disable-accurate-adjtime
23411: # override the default
23412: # Check whether --enable-accurate-adjtime was given.
23413: if test "${enable_accurate_adjtime+set}" = set; then :
23414: enableval=$enable_accurate_adjtime; ans=$enableval
23415:
23416: fi
23417:
23418:
23419: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
23420: $as_echo "$ans" >&6; }
23421:
23422: case "$ans" in
23423: yes)
23424:
23425: $as_echo "#define ADJTIME_IS_ACCURATE 1" >>confdefs.h
23426:
23427: adjtime_is_accurate=yes
23428: ;;
23429: *)
23430: adjtime_is_accurate=no
23431: ;;
23432: esac
23433:
23434: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tick' in the kernel" >&5
23435: $as_echo_n "checking the name of 'tick' in the kernel... " >&6; }
23436: if ${ntp_cv_nlist_tick+:} false; then :
23437: $as_echo_n "(cached) " >&6
23438: else
23439:
23440: ans=_tick
23441: case "$host" in
23442: m68*-hp-hpux*) # HP9000/300?
23443: ans=_old_tick
23444: ;;
23445: *-apple-aux[23]*)
23446: ans=tick
23447: ;;
23448: *-hp-hpux*)
23449: ans=old_tick
23450: ;;
23451: *-ibm-aix[3456]*)
23452: ans=no
23453: ;;
23454: *-*-mpeix*)
23455: ans=no
23456: ;;
23457: *-*-ptx*)
23458: ans=tick
23459: ;;
23460: *-*-sco3.2v[45]*)
23461: ans=no
23462: ;;
23463: *-*-solaris2*)
23464: ans=nsec_per_tick
23465: ;;
23466: *-*-sysv4*)
23467: ans=tick
23468: ;;
23469: esac
23470: ntp_cv_nlist_tick=$ans
23471:
23472:
23473: fi
23474: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tick" >&5
23475: $as_echo "$ntp_cv_nlist_tick" >&6; }
23476: case "$ntp_cv_nlist_tick" in
23477: ''|no)
23478: ;; # HMS: I think we can only get 'no' here...
23479: *)
23480:
23481: cat >>confdefs.h <<_ACEOF
23482: #define K_TICK_NAME "$ntp_cv_nlist_tick"
23483: _ACEOF
23484:
23485: esac
23486:
23487: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tick'" >&5
23488: $as_echo_n "checking for the units of 'tick'... " >&6; }
23489: if ${ntp_cv_tick_nano+:} false; then :
23490: $as_echo_n "(cached) " >&6
23491: else
23492:
23493: ans=usec
23494: case "$host" in
23495: *-*-solaris2*)
23496: ans=nsec
23497: ;;
23498: esac
23499: ntp_cv_tick_nano=$ans
23500:
23501:
23502: fi
23503: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tick_nano" >&5
23504: $as_echo "$ntp_cv_tick_nano" >&6; }
23505: case "$ntp_cv_tick_nano" in
23506: nsec)
23507:
23508: $as_echo "#define TICK_NANO 1" >>confdefs.h
23509:
23510: esac
23511:
23512: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tickadj' in the kernel" >&5
23513: $as_echo_n "checking the name of 'tickadj' in the kernel... " >&6; }
23514: if ${ntp_cv_nlist_tickadj+:} false; then :
23515: $as_echo_n "(cached) " >&6
23516: else
23517:
23518: ans=_tickadj
23519: case "$host" in
23520: m68*-hp-hpux*) # HP9000/300?
23521: ans=_tickadj
23522: ;;
23523: *-apple-aux[23]*)
23524: ans=tickadj
23525: ;;
23526: *-hp-hpux10*)
23527: ans=no
23528: ;;
23529: *-hp-hpux9*)
23530: ans=no
23531: ;;
23532: *-hp-hpux*)
23533: ans=tickadj
23534: ;;
23535: *-*-aix*)
23536: ans=tickadj
23537: ;;
23538: *-*-mpeix*)
23539: ans=no
23540: ;;
23541: *-*-ptx*)
23542: ans=tickadj
23543: ;;
23544: *-*-sco3.2v4*)
23545: ans=no
23546: ;;
23547: *-*-sco3.2v5.0*)
23548: ans=clock_drift
23549: ;;
23550: *-*-solaris2*)
23551: ans=no # hrestime_adj
23552: ;;
23553: *-*-sysv4*)
23554: ans=tickadj
23555: ;;
23556: esac
23557: ntp_cv_nlist_tickadj=$ans
23558:
23559:
23560: fi
23561: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tickadj" >&5
23562: $as_echo "$ntp_cv_nlist_tickadj" >&6; }
23563: case "$ntp_cv_nlist_tickadj" in
23564: ''|no)
23565: ;; # HMS: I think we can only get 'no' here...
23566: *)
23567:
23568: cat >>confdefs.h <<_ACEOF
23569: #define K_TICKADJ_NAME "$ntp_cv_nlist_tickadj"
23570: _ACEOF
23571:
23572: esac
23573:
23574: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tickadj'" >&5
23575: $as_echo_n "checking for the units of 'tickadj'... " >&6; }
23576: if ${ntp_cv_tickadj_nano+:} false; then :
23577: $as_echo_n "(cached) " >&6
23578: else
23579:
23580: ans=usec
23581: case "$host" in
23582: *-*-solaris2*)
23583: ans=nsec
23584: ;;
23585: esac
23586: ntp_cv_tickadj_nano=$ans
23587:
23588:
23589: fi
23590: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tickadj_nano" >&5
23591: $as_echo "$ntp_cv_tickadj_nano" >&6; }
23592: case "$ntp_cv_tickadj_nano" in
23593: nsec)
23594:
23595: $as_echo "#define TICKADJ_NANO 1" >>confdefs.h
23596:
23597: esac
23598:
23599: { $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'dosynctodr' in the kernel" >&5
23600: $as_echo_n "checking half-heartedly for 'dosynctodr' in the kernel... " >&6; }
23601: if ${ntp_cv_nlist_dosynctodr+:} false; then :
23602: $as_echo_n "(cached) " >&6
23603: else
23604:
23605: case "$host" in
23606: *-apple-aux[23]*)
23607: ans=no
23608: ;;
23609: *-sni-sysv*)
23610: ans=dosynctodr
23611: ;;
23612: *-*-aix*)
23613: ans=dosynctodr
23614: ;;
23615: *-*-hpux*)
23616: ans=no
23617: ;;
23618: *-*-mpeix*)
23619: ans=no
23620: ;;
23621: *-*-nextstep*)
23622: ans=_dosynctodr
23623: ;;
23624: *-*-ptx*)
23625: ans=doresettodr
23626: ;;
23627: *-*-sco3.2v4*)
23628: ans=no
23629: ;;
23630: *-*-sco3.2v5*)
23631: ans=track_rtc
23632: ;;
23633: *-*-solaris2*)
23634: ans=dosynctodr
23635: ;;
23636: *-*-sysv4*)
23637: ans=doresettodr
23638: ;;
23639: *)
23640: ans=_dosynctodr
23641: ;;
23642: esac
23643: ntp_cv_nlist_dosynctodr=$ans
23644:
23645:
23646: fi
23647: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_dosynctodr" >&5
23648: $as_echo "$ntp_cv_nlist_dosynctodr" >&6; }
23649: case "$ntp_cv_nlist_dosynctodr" in
23650: no)
23651: ;;
23652: *)
23653:
23654: cat >>confdefs.h <<_ACEOF
23655: #define K_DOSYNCTODR_NAME "$ntp_cv_nlist_dosynctodr"
23656: _ACEOF
23657:
23658: ;;
23659: esac
23660:
23661: { $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'noprintf' in the kernel" >&5
23662: $as_echo_n "checking half-heartedly for 'noprintf' in the kernel... " >&6; }
23663: if ${ntp_cv_nlist_noprintf+:} false; then :
23664: $as_echo_n "(cached) " >&6
23665: else
23666:
23667: case "$host" in
23668: *-apple-aux[23]*)
23669: ans=no
23670: ;;
23671: *-sni-sysv*)
23672: ans=noprintf
23673: ;;
23674: *-*-aix*)
23675: ans=noprintf
23676: ;;
23677: *-*-hpux*)
23678: ans=no
23679: ;;
23680: *-*-mpeix*)
23681: ans=no
23682: ;;
23683: *-*-ptx*)
23684: ans=noprintf
23685: ;;
23686: *-*-nextstep*)
23687: ans=_noprintf
23688: ;;
23689: *-*-solaris2*)
23690: ans=noprintf
23691: ;;
23692: *-*-sysv4*)
23693: ans=noprintf
23694: ;;
23695: *)
23696: ans=_noprintf
23697: ;;
23698: esac
23699: ntp_cv_nlist_noprintf=$ans
23700:
23701:
23702: fi
23703: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_noprintf" >&5
23704: $as_echo "$ntp_cv_nlist_noprintf" >&6; }
23705: case "$ntp_cv_nlist_noprintf" in
23706: no)
23707: ;;
23708: *)
23709:
23710: cat >>confdefs.h <<_ACEOF
23711: #define K_NOPRINTF_NAME "$ntp_cv_nlist_noprintf"
23712: _ACEOF
23713:
23714: ;;
23715: esac
23716:
23717:
23718:
23719:
23720: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tick'" >&5
23721: $as_echo_n "checking for a default value for 'tick'... " >&6; }
23722:
23723: # target-dependent default for tick
23724:
23725: case "$host" in
23726: *-*-pc-cygwin*)
23727: as_fn_error $? "tick needs work for cygwin" "$LINENO" 5
23728: ;;
23729: *-univel-sysv*)
23730: ans=10000
23731: ;;
23732: *-*-irix*)
23733: ans=10000
23734: ;;
23735: *-*-*linux*)
23736: ans=txc.tick
23737: ;;
23738: *-*-mpeix*)
23739: ans=no
23740: ;;
23741: *-*-winnt3.5)
23742: ans='(every / 10)'
23743: ;;
23744: *-*-unicosmp*)
23745: ans=10000
23746: ;;
23747: *)
23748: ans='1000000L/hz'
23749: ;;
23750: esac
23751:
23752: # Check whether --enable-tick was given.
23753: if test "${enable_tick+set}" = set; then :
23754: enableval=$enable_tick; ans=$enableval
23755:
23756: fi
23757:
23758:
23759: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
23760: $as_echo "$ans" >&6; }
23761:
23762: case "$ans" in
23763: ''|no)
23764: ;; # HMS: I think we can only get 'no' here...
23765: *)
23766:
23767: cat >>confdefs.h <<_ACEOF
23768: #define PRESET_TICK $ans
23769: _ACEOF
23770:
23771: esac
23772:
23773: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tickadj'" >&5
23774: $as_echo_n "checking for a default value for 'tickadj'... " >&6; }
23775:
23776: # target-specific default
23777: ans='500/hz'
23778: case "$host" in
23779: *-fujitsu-uxp*)
23780: case "$adjtime_is_accurate" in
23781: yes)
23782: ans='tick/16'
23783: esac
23784: ;;
23785: *-univel-sysv*)
23786: ans=80
23787: ;;
23788: *-*-aix*)
23789: case "$can_kmem" in
23790: no)
23791: ans=1000
23792: esac
23793: ;;
23794: *-*-domainos) # Skippy: won't be found...
23795: case "$can_kmem" in
23796: no)
23797: ans=668
23798: esac
23799: ;;
23800: *-*-hpux*)
23801: case "$adjtime_is_accurate" in
23802: yes)
23803: ans='tick/16'
23804: esac
23805: ;;
23806: *-*-irix*)
23807: ans=150
23808: ;;
23809: *-*-mpeix*)
23810: ans=no
23811: ;;
23812: *-*-sco3.2v5.0*)
23813: ans=10000L/hz
23814: ;;
23815: *-*-winnt3.5)
23816: ans=50
23817: ;;
23818: *-*-unicosmp*)
23819: ans=150
23820: esac
23821:
23822: # Check whether --enable-tickadj was given.
23823: if test "${enable_tickadj+set}" = set; then :
23824: enableval=$enable_tickadj; ans=$enableval
23825:
23826: fi
23827:
23828:
23829: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
23830: $as_echo "$ans" >&6; }
23831:
23832: default_tickadj=$ans
23833:
23834: case "$default_tickadj" in
23835: ''|no)
23836: ;; # HMS: I think we can only get 'no' here...
23837: *)
23838:
23839: cat >>confdefs.h <<_ACEOF
23840: #define PRESET_TICKADJ $default_tickadj
23841: _ACEOF
23842: ;;
23843: esac
23844:
23845: # Newer versions of ReliantUNIX round adjtime() values down to
23846: # 1/100s (system tick). Sigh ...
23847: # Unfortunately, there is no easy way to know if particular release
23848: # has this "feature" or any obvious way to test for it.
23849: case "$host" in
23850: mips-sni-sysv4*)
23851:
23852: $as_echo "#define RELIANTUNIX_CLOCK 1" >>confdefs.h
23853:
23854: esac
23855:
23856: case "$host" in
23857: *-*-sco3.2v5*)
23858:
23859: $as_echo "#define SCO5_CLOCK 1" >>confdefs.h
23860:
23861: esac
23862:
23863: ntp_cv_make_tickadj=yes
23864: case "$can_kmem$ac_cv_var_tick$default_tickadj" in
23865: nonono) # Don't read KMEM, no presets. Bogus.
23866: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&5
23867: $as_echo "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&2;}
23868: ntp_cv_make_tickadj=no
23869: ;;
23870: nono*) # Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus.
23871: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&5
23872: $as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&2;}
23873: ntp_cv_make_tickadj=no
23874: ;;
23875: no*no) # Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ. Bogus.
23876: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&5
23877: $as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&2;}
23878: ntp_cv_make_tickadj=no
23879: ;;
23880: no*) # Don't read KMEM, PRESET_TICK and PRESET_TICKADJ. Cool.
23881: ;;
23882: yesnono) # Read KMEM, no presets. Cool.
23883: ;;
23884: yesno*) # Read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus.
23885: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&5
23886: $as_echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&2;}
23887: ;;
23888: yes*no) # Read KMEM, PRESET_TICK but no PRESET_TICKADJ. Cool.
23889: ;;
23890: yes*) # READ KMEM, PRESET_TICK and PRESET_TICKADJ.
23891: ;;
23892: *) # Generally bogus.
23893: as_fn_error $? "This shouldn't happen." "$LINENO" 5
23894: ;;
23895: esac
23896:
23897:
23898: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5
23899: $as_echo_n "checking if we want and can make the ntptime utility... " >&6; }
23900: if ${ac_cv_make_ntptime+:} false; then :
23901: $as_echo_n "(cached) " >&6
23902: else
23903: case "$host" in
23904: *) case "$ntp_cv_struct_ntptimeval$ntp_cv_var_kernel_pll" in
23905: yesyes)
23906: ans=yes
23907: ;;
23908: *)
23909: ans=no
23910: ;;
23911: esac
23912: ;;
23913: esac
23914: ac_cv_make_ntptime=$ans
23915: fi
23916: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_ntptime" >&5
23917: $as_echo "$ac_cv_make_ntptime" >&6; }
23918: case "$ac_cv_make_ntptime" in
23919: yes)
23920: MAKE_NTPTIME=ntptime
23921: ;;
23922: esac
23923:
23924:
23925: case "$host" in
23926: mips-sni-sysv4*)
23927: # tickadj is pretty useless on newer versions of ReliantUNIX
23928: # Do not bother
23929: ntp_cv_make_tickadj=no
23930: ;;
23931: *-*-irix*)
23932: ntp_cv_make_tickadj=no
23933: ;;
23934: *-*-solaris2*)
23935: # DLM says tickadj is a no-no starting with solaris2.5
23936: case "$host" in
23937: *-*-solaris2.1[0-9]*)
23938: ntp_cv_make_tickadj=no
23939: ;;
23940: *-*-solaris2.[0-4]*) ;;
23941: *) ntp_cv_make_tickadj=no ;;
23942: esac
23943: ;;
23944: *-*-unicosmp*)
23945: ntp_cv_make_tickadj=no
23946: ;;
23947: esac
23948:
23949: #
23950: # Despite all the above, we always make tickadj. Setting
23951: # ntp_cv_make_tickadj before AC_CACHE_CHECK will cause a false
23952: # report that the configuration variable was cached. It may
23953: # be better to simply remove the hunk above, I did not want
23954: # to remove it if there is hope it will be used again.
23955: #
23956: { ntp_cv_make_tickadj=; unset ntp_cv_make_tickadj;}
23957:
23958: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5
23959: $as_echo_n "checking if we want and can make the tickadj utility... " >&6; }
23960: if ${ntp_cv_make_tickadj+:} false; then :
23961: $as_echo_n "(cached) " >&6
23962: else
23963: ntp_cv_make_tickadj=yes
23964:
23965: fi
23966: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_tickadj" >&5
23967: $as_echo "$ntp_cv_make_tickadj" >&6; }
23968: case "$ntp_cv_make_tickadj" in
23969: yes)
23970: MAKE_TICKADJ=tickadj
23971: esac
23972:
23973:
23974: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the timetrim utility" >&5
23975: $as_echo_n "checking if we want and can make the timetrim utility... " >&6; }
23976: if ${ntp_cv_make_timetrim+:} false; then :
23977: $as_echo_n "(cached) " >&6
23978: else
23979:
23980: case "$host" in
23981: *-*-irix*)
23982: ntp_cv_make_timetrim=yes
23983: ;;
23984: *-*-unicosmp*)
23985: ntp_cv_make_timetrim=yes
23986: ;;
23987: *)
23988: ntp_cv_make_timetrim=no
23989: ;;
23990: esac
23991:
23992:
23993: fi
23994: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_timetrim" >&5
23995: $as_echo "$ntp_cv_make_timetrim" >&6; }
23996: case "$ntp_cv_make_timetrim" in
23997: yes)
23998: MAKE_TIMETRIM=timetrim
23999: esac
24000:
24001:
24002:
24003:
24004: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build the NTPD simulator" >&5
24005: $as_echo_n "checking if we want to build the NTPD simulator... " >&6; }
24006: # Check whether --enable-simulator was given.
24007: if test "${enable_simulator+set}" = set; then :
24008: enableval=$enable_simulator; ans=$enableval
24009: else
24010: ans=no
24011:
24012: fi
24013:
24014: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24015: $as_echo "$ans" >&6; }
24016: case "$ans" in
24017: yes)
24018: MAKE_NTPDSIM=ntpdsim
24019: MAKE_LIBNTPSIM=libntpsim.a
24020: esac
24021:
24022: case "$build" in
24023: $host)
24024: ;;
24025: *) case "$host" in
24026: *-*-vxworks*)
24027: LDFLAGS="$LDFLAGS -r"
24028: ;;
24029: esac
24030: ;;
24031: esac
24032:
24033:
24034: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build ntpsnmpd" >&5
24035: $as_echo_n "checking if we want to build ntpsnmpd... " >&6; }
24036:
24037: # Check whether --with-ntpsnmpd was given.
24038: if test "${with_ntpsnmpd+set}" = set; then :
24039: withval=$with_ntpsnmpd; ans=$withval
24040: else
24041:
24042: case "$PATH_NET_SNMP_CONFIG" in
24043: /*) ans=yes ;;
24044: *) ans=no ;;
24045: esac
24046:
24047:
24048: fi
24049:
24050: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24051: $as_echo "$ans" >&6; }
24052: case "$ans" in
24053: yes)
24054: case "$PATH_NET_SNMP_CONFIG" in
24055: /*)
24056: SNMP_LIBS=`$PATH_NET_SNMP_CONFIG --agent-libs`
24057:
24058: # HMS: we really want to separate CPPFLAGS and CFLAGS
24059: foo=`$PATH_NET_SNMP_CONFIG --cflags`
24060: SNMP_CPPFLAGS=
24061: SNMP_CFLAGS=
24062: for i in $foo; do
24063: case "$i" in
24064: -D*|-U*|-I*)
24065: SNMP_CPPFLAGS="$SNMP_CPPFLAGS $i"
24066: ;;
24067: *) SNMP_CFLAGS="$SNMP_CFLAGS $i"
24068: ;;
24069: esac
24070: done
24071:
24072:
24073:
24074: save_CFLAGS=$CFLAGS
24075: save_CPPFLAGS=$CPPFLAGS
24076: save_LIBS=$LIBS
24077: CFLAGS=$SNMP_CFLAGS
24078: CPPFLAGS=$SNMP_CPPFLAGS
24079:
24080: 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"
24081: if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = xyes; then :
24082: MAKE_NTPSNMPD=ntpsnmpd
24083: else
24084: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: net-snmp-config present but net-snmp headers are not available!" >&5
24085: $as_echo "$as_me: WARNING: net-snmp-config present but net-snmp headers are not available!" >&2;}
24086:
24087: fi
24088:
24089:
24090:
24091: # Do this last, as we're messing up LIBS.
24092: # check -lnetsnmp for netsnmp_daemonize
24093: LIBS=`$PATH_NET_SNMP_CONFIG --libs`
24094: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netsnmp_daemonize in -lnetsnmp" >&5
24095: $as_echo_n "checking for netsnmp_daemonize in -lnetsnmp... " >&6; }
24096: if ${ac_cv_lib_netsnmp_netsnmp_daemonize+:} false; then :
24097: $as_echo_n "(cached) " >&6
24098: else
24099: ac_check_lib_save_LIBS=$LIBS
24100: LIBS="-lnetsnmp $LIBS"
24101: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24102: /* end confdefs.h. */
24103:
24104: /* Override any GCC internal prototype to avoid an error.
24105: Use char because int might match the return type of a GCC
24106: builtin and then its argument prototype would still apply. */
24107: #ifdef __cplusplus
24108: extern "C"
24109: #endif
24110: char netsnmp_daemonize ();
24111: int
24112: main ()
24113: {
24114: return netsnmp_daemonize ();
24115: ;
24116: return 0;
24117: }
24118: _ACEOF
24119: if ac_fn_c_try_link "$LINENO"; then :
24120: ac_cv_lib_netsnmp_netsnmp_daemonize=yes
24121: else
24122: ac_cv_lib_netsnmp_netsnmp_daemonize=no
24123: fi
24124: rm -f core conftest.err conftest.$ac_objext \
24125: conftest$ac_exeext conftest.$ac_ext
24126: LIBS=$ac_check_lib_save_LIBS
24127: fi
24128: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_netsnmp_daemonize" >&5
24129: $as_echo "$ac_cv_lib_netsnmp_netsnmp_daemonize" >&6; }
24130: if test "x$ac_cv_lib_netsnmp_netsnmp_daemonize" = xyes; then :
24131: ans=yes
24132: else
24133: ans=no
24134:
24135: fi
24136:
24137: case "$ans" in
24138: no)
24139:
24140: $as_echo "#define NEED_NETSNMP_DAEMONIZE 1" >>confdefs.h
24141:
24142: esac
24143:
24144: CFLAGS=$save_CFLAGS
24145: CPPFLAGS=$save_CPPFLAGS
24146: LIBS=$save_LIBS
24147: ;;
24148: *)
24149: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&5
24150: $as_echo "$as_me: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&2;}
24151: ;;
24152: esac
24153: ;;
24154: esac
24155:
24156:
24157:
24158: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should always slew the time" >&5
24159: $as_echo_n "checking if we should always slew the time... " >&6; }
24160:
24161: # target-specific defaults
24162:
24163: case "$host" in
24164: *-apple-aux[23]*)
24165: ans=yes
24166: ;;
24167: *-*-bsdi[012]*)
24168: ans=no
24169: ;;
24170: *-*-bsdi*)
24171: ans=yes
24172: ;;
24173: *-*-openvms*) # HMS: won't be found
24174: ans=yes
24175: ;;
24176: *) ans=no
24177: ;;
24178: esac
24179:
24180: # --enable-slew-always / --disable-slew-always overrides default
24181:
24182: # Check whether --enable-slew-always was given.
24183: if test "${enable_slew_always+set}" = set; then :
24184: enableval=$enable_slew_always; ans=$enableval
24185:
24186: fi
24187:
24188:
24189: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24190: $as_echo "$ans" >&6; }
24191:
24192: case "$ans" in
24193: yes)
24194:
24195: $as_echo "#define SLEWALWAYS 1" >>confdefs.h
24196:
24197: esac
24198:
24199: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should step and slew the time" >&5
24200: $as_echo_n "checking if we should step and slew the time... " >&6; }
24201:
24202: case "$host" in
24203: *-sni-sysv*)
24204: ans=yes
24205: ;;
24206: *-univel-sysv*)
24207: ans=no
24208: ;;
24209: *-*-ptx*)
24210: ans=yes
24211: ;;
24212: *-*-solaris2.1[0-9]*)
24213: ans=no
24214: ;;
24215: *-*-solaris2.[012]*)
24216: ans=yes
24217: ;;
24218: *-*-sysv4*) # HMS: Does this catch Fujitsu UXP?
24219: ans=yes
24220: ;;
24221: *) ans=no
24222: ;;
24223: esac
24224:
24225: # Check whether --enable-step-slew was given.
24226: if test "${enable_step_slew+set}" = set; then :
24227: enableval=$enable_step_slew; ans=$enableval
24228:
24229: fi
24230:
24231:
24232: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24233: $as_echo "$ans" >&6; }
24234:
24235: case "$ans" in
24236: yes)
24237:
24238: $as_echo "#define STEP_SLEW 1" >>confdefs.h
24239:
24240: esac
24241:
24242: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpdate should step the time" >&5
24243: $as_echo_n "checking if ntpdate should step the time... " >&6; }
24244:
24245: case "$host" in
24246: *-apple-aux[23]*)
24247: ans=yes
24248: ;;
24249: *) ans=no
24250: esac
24251:
24252: # Check whether --enable-ntpdate-step was given.
24253: if test "${enable_ntpdate_step+set}" = set; then :
24254: enableval=$enable_ntpdate_step; ans=$enableval
24255:
24256: fi
24257:
24258:
24259: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24260: $as_echo "$ans" >&6; }
24261:
24262: case "$ans" in
24263: yes)
24264:
24265: $as_echo "#define FORCE_NTPDATE_STEP 1" >>confdefs.h
24266:
24267: esac
24268:
24269:
24270: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should sync TODR clock every hour" >&5
24271: $as_echo_n "checking if we should sync TODR clock every hour... " >&6; }
24272:
24273: case "$host" in
24274: *-*-nextstep*)
24275: ans=yes
24276: ;;
24277: *-*-openvms*) # HMS: won't be found
24278: ans=yes
24279: ;;
24280: *)
24281: ans=no
24282: esac
24283:
24284: # Check whether --enable-hourly-todr-sync was given.
24285: if test "${enable_hourly_todr_sync+set}" = set; then :
24286: enableval=$enable_hourly_todr_sync; ans=$enableval
24287:
24288: fi
24289:
24290:
24291: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24292: $as_echo "$ans" >&6; }
24293:
24294: case "$ac_cv_var_sync_todr" in
24295: yes)
24296:
24297: $as_echo "#define DOSYNCTODR 1" >>confdefs.h
24298: ;;
24299: esac
24300:
24301:
24302: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should avoid kernel FLL bug" >&5
24303: $as_echo_n "checking if we should avoid kernel FLL bug... " >&6; }
24304:
24305: case "$host" in
24306: *-*-solaris2.6)
24307: unamev=`uname -v`
24308: case "$unamev" in
24309: Generic_105181-*)
24310: old_IFS="$IFS"
24311: IFS="-"
24312: set $unamev
24313: IFS="$old_IFS"
24314: if test "$2" -ge 17
24315: then
24316: # Generic_105181-17 and higher
24317: ans=no
24318: else
24319: ans=yes
24320: fi
24321: ;;
24322: *)
24323: ans=yes
24324: esac
24325: ;;
24326: *-*-solaris2.7)
24327: unamev=`uname -v`
24328: case "$unamev" in
24329: Generic_106541-*)
24330: old_IFS="$IFS"
24331: IFS="-"
24332: set $unamev
24333: IFS="$old_IFS"
24334: if test "$2" -ge 07
24335: then
24336: # Generic_106541-07 and higher
24337: ans=no
24338: else
24339: ans=yes
24340: fi
24341: ;;
24342: *)
24343: ans=yes
24344: esac
24345: ;;
24346: *)
24347: ans=no
24348: esac
24349:
24350: # Check whether --enable-kernel-fll-bug was given.
24351: if test "${enable_kernel_fll_bug+set}" = set; then :
24352: enableval=$enable_kernel_fll_bug; ans=$enableval
24353:
24354: fi
24355:
24356:
24357: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24358: $as_echo "$ans" >&6; }
24359:
24360: case "$ans" in
24361: yes)
24362:
24363: $as_echo "#define KERNEL_FLL_BUG 1" >>confdefs.h
24364:
24365: esac
24366:
24367:
24368: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want new session key behavior" >&5
24369: $as_echo_n "checking if we want new session key behavior... " >&6; }
24370: # Check whether --enable-bug1243-fix was given.
24371: if test "${enable_bug1243_fix+set}" = set; then :
24372: enableval=$enable_bug1243_fix; ans=$enableval
24373: else
24374: ans=yes
24375:
24376: fi
24377:
24378: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24379: $as_echo "$ans" >&6; }
24380: case "$ans" in
24381: no)
24382:
24383: $as_echo "#define DISABLE_BUG1243_FIX 1" >>confdefs.h
24384:
24385: esac
24386:
24387:
24388: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the IRIG sawtooth filter" >&5
24389: $as_echo_n "checking if we should use the IRIG sawtooth filter... " >&6; }
24390:
24391: case "$host" in
24392: *-*-solaris2.[89])
24393: ans=yes
24394: ;;
24395: *-*-solaris2.1[0-9]*)
24396: ans=yes
24397: ;;
24398: *) ans=no
24399: esac
24400:
24401: # Check whether --enable-irig-sawtooth was given.
24402: if test "${enable_irig_sawtooth+set}" = set; then :
24403: enableval=$enable_irig_sawtooth; ans=$enableval
24404:
24405: fi
24406:
24407:
24408: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24409: $as_echo "$ans" >&6; }
24410:
24411: case "$ans" in
24412: yes)
24413:
24414: $as_echo "#define IRIG_SUCKS 1" >>confdefs.h
24415:
24416: esac
24417:
24418:
24419: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable NIST lockclock scheme" >&5
24420: $as_echo_n "checking if we should enable NIST lockclock scheme... " >&6; }
24421:
24422: # Check whether --enable-nist was given.
24423: if test "${enable_nist+set}" = set; then :
24424: enableval=$enable_nist; ans=$enableval
24425: else
24426: ans=no
24427:
24428: fi
24429:
24430:
24431: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24432: $as_echo "$ans" >&6; }
24433:
24434: case "$ans" in
24435: yes)
24436:
24437: $as_echo "#define LOCKCLOCK 1" >>confdefs.h
24438: ;;
24439: esac
24440:
24441:
24442: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want support for Samba's signing daemon" >&5
24443: $as_echo_n "checking if we want support for Samba's signing daemon... " >&6; }
24444:
24445: # Check whether --enable-ntp-signd was given.
24446: if test "${enable_ntp_signd+set}" = set; then :
24447: enableval=$enable_ntp_signd; ans=$enableval
24448: else
24449: ans=no
24450:
24451: fi
24452:
24453:
24454: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24455: $as_echo "$ans" >&6; }
24456:
24457: case "$ans" in
24458: no)
24459: ntp_signd_path=
24460: ;;
24461: yes)
24462: ntp_signd_path=/var/run/ntp_signd
24463: ;;
24464: *)
24465: ntp_signd_path="$ans"
24466: esac
24467:
24468: case "$ntp_signd_path" in
24469: '')
24470: ;;
24471: *)
24472:
24473: $as_echo "#define HAVE_NTP_SIGND 1" >>confdefs.h
24474:
24475:
24476: cat >>confdefs.h <<_ACEOF
24477: #define NTP_SIGND_PATH "$ntp_signd_path"
24478: _ACEOF
24479:
24480: esac
24481:
24482:
24483: for ac_header in sys/clockctl.h
24484: do :
24485: ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
24486: if test "x$ac_cv_header_sys_clockctl_h" = xyes; then :
24487: cat >>confdefs.h <<_ACEOF
24488: #define HAVE_SYS_CLOCKCTL_H 1
24489: _ACEOF
24490:
24491: fi
24492:
24493: done
24494:
24495:
24496: case "$host" in
24497: *-*-netbsd*)
24498: ans=yes
24499: ;;
24500: *) ans=no
24501: ;;
24502: esac
24503:
24504: # Check whether --enable-clockctl was given.
24505: if test "${enable_clockctl+set}" = set; then :
24506: enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
24507: else
24508: ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h
24509:
24510: fi
24511:
24512:
24513: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
24514: $as_echo_n "checking if we should use /dev/clockctl... " >&6; }
24515: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
24516: $as_echo "$ntp_use_dev_clockctl" >&6; }
24517:
24518:
24519: for ac_header in sys/capability.h sys/prctl.h
24520: do :
24521: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24522: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24523: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24524: cat >>confdefs.h <<_ACEOF
24525: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24526: _ACEOF
24527:
24528: fi
24529:
24530: done
24531:
24532:
24533: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
24534: $as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }
24535:
24536: case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
24537: yesyes)
24538: case "$host" in
24539: mips-sgi-irix*)
24540: ntp_have_linuxcaps=no
24541: ;;
24542: *) ntp_have_linuxcaps=yes
24543: ;;
24544: esac
24545: ;;
24546: *)
24547: ntp_have_linuxcaps=no
24548: ;;
24549: esac
24550:
24551: # Check whether --enable-linuxcaps was given.
24552: if test "${enable_linuxcaps+set}" = set; then :
24553: enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval
24554:
24555: fi
24556:
24557:
24558: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
24559: $as_echo "$ntp_have_linuxcaps" >&6; }
24560:
24561: case "$ntp_have_linuxcaps" in
24562: yes)
24563:
24564: $as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h
24565:
24566: LIBS="$LIBS -lcap"
24567: esac
24568:
24569: case "$ntp_use_dev_clockctl$ntp_have_linuxcaps" in
24570: *yes*)
24571:
24572: $as_echo "#define HAVE_DROPROOT 1" >>confdefs.h
24573:
24574: esac
24575:
24576:
24577: for ac_header in libscf.h
24578: do :
24579: ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default"
24580: if test "x$ac_cv_header_libscf_h" = xyes; then :
24581: cat >>confdefs.h <<_ACEOF
24582: #define HAVE_LIBSCF_H 1
24583: _ACEOF
24584:
24585: fi
24586:
24587: done
24588:
24589: LSCF=
24590: case "$ac_cv_header_libscf_h" in
24591: yes)
24592: LSCF='-lscf'
24593: esac
24594:
24595:
24596: ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
24597: if test "x$ac_cv_func_setppriv" = xyes; then :
24598: ans=yes
24599: else
24600: ans=no
24601:
24602: fi
24603:
24604: case "$ans" in
24605: yes)
24606:
24607: $as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h
24608:
24609: esac
24610:
24611:
24612: { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
24613: $as_echo_n "checking struct sockaddr for sa_len... " >&6; }
24614: if ${isc_cv_platform_havesalen+:} false; then :
24615: $as_echo_n "(cached) " >&6
24616: else
24617: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24618: /* end confdefs.h. */
24619:
24620: #include <sys/types.h>
24621: #include <sys/socket.h>
24622:
24623: int
24624: main ()
24625: {
24626:
24627: extern struct sockaddr *ps;
24628: return ps->sa_len;
24629:
24630:
24631: ;
24632: return 0;
24633: }
24634: _ACEOF
24635: if ac_fn_c_try_compile "$LINENO"; then :
24636: isc_cv_platform_havesalen=yes
24637: else
24638: isc_cv_platform_havesalen=no
24639:
24640: fi
24641: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24642:
24643: fi
24644: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
24645: $as_echo "$isc_cv_platform_havesalen" >&6; }
24646: case "$isc_cv_platform_havesalen" in
24647: yes)
24648:
24649: $as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h
24650:
24651: esac
24652:
24653: # Check whether --enable-ipv6 was given.
24654: if test "${enable_ipv6+set}" = set; then :
24655: enableval=$enable_ipv6;
24656: fi
24657:
24658:
24659: case "$enable_ipv6" in
24660: yes|''|autodetect)
24661: case "$host" in
24662: powerpc-ibm-aix4*)
24663: ;;
24664: *)
24665:
24666: $as_echo "#define WANT_IPV6 1" >>confdefs.h
24667:
24668: ;;
24669: esac
24670: ;;
24671: no)
24672: ;;
24673: esac
24674:
24675:
24676: case "$host" in
24677: *-*-darwin*)
24678:
24679: $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
24680:
24681: esac
24682:
24683:
24684: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
24685: $as_echo_n "checking for IPv6 structures... " >&6; }
24686: if ${isc_cv_found_ipv6+:} false; then :
24687: $as_echo_n "(cached) " >&6
24688: else
24689: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24690: /* end confdefs.h. */
24691:
24692: #include <sys/types.h>
24693: #include <sys/socket.h>
24694: #include <netinet/in.h>
24695:
24696: int
24697: main ()
24698: {
24699:
24700: struct sockaddr_in6 sin6;
24701:
24702:
24703: ;
24704: return 0;
24705: }
24706: _ACEOF
24707: if ac_fn_c_try_compile "$LINENO"; then :
24708: isc_cv_found_ipv6=yes
24709: else
24710: isc_cv_found_ipv6=no
24711:
24712: fi
24713: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24714:
24715: fi
24716: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5
24717: $as_echo "$isc_cv_found_ipv6" >&6; }
24718:
24719: #
24720: # See whether IPv6 support is provided via a Kame add-on.
24721: # This is done before other IPv6 linking tests so LIBS is properly set.
24722: #
24723: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
24724: $as_echo_n "checking for Kame IPv6 support... " >&6; }
24725:
24726: # Check whether --with-kame was given.
24727: if test "${with_kame+set}" = set; then :
24728: withval=$with_kame; use_kame="$withval"
24729: else
24730: use_kame="no"
24731:
24732: fi
24733:
24734: case "$use_kame" in
24735: no)
24736: ;;
24737: yes)
24738: kame_path=/usr/local/v6
24739: ;;
24740: *)
24741: kame_path="$use_kame"
24742: ;;
24743: esac
24744: case "$use_kame" in
24745: no)
24746: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24747: $as_echo "no" >&6; }
24748: ;;
24749: *)
24750: if test -f $kame_path/lib/libinet6.a; then
24751: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
24752: $as_echo "$kame_path/lib/libinet6.a" >&6; }
24753: LIBS="-L$kame_path/lib -linet6 $LIBS"
24754: else
24755: as_fn_error $? "$kame_path/lib/libinet6.a not found.
24756:
24757: Please choose the proper path with the following command:
24758:
24759: configure --with-kame=PATH
24760: " "$LINENO" 5
24761: fi
24762: ;;
24763: esac
24764:
24765: #
24766: # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
24767: # Including it on Kame-using platforms is very bad, though, because
24768: # Kame uses #error against direct inclusion. So include it on only
24769: # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
24770: # This is done before the in6_pktinfo check because that's what
24771: # netinet6/in6.h is needed for.
24772: #
24773: case "$host" in
24774: *-bsdi4.[01]*)
24775:
24776: $as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
24777:
24778: isc_netinet6in6_hack="#include <netinet6/in6.h>"
24779: ;;
24780: *)
24781: isc_netinet6in6_hack=""
24782: ;;
24783: esac
24784:
24785: #
24786: # This is similar to the netinet6/in6.h issue.
24787: #
24788: case "$host" in
24789: *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
24790:
24791: $as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
24792:
24793: isc_netinetin6_hack="#include <netinet/in6.h>"
24794: ;;
24795: *)
24796: isc_netinetin6_hack=""
24797: ;;
24798: esac
24799:
24800:
24801: case "$isc_cv_found_ipv6" in
24802: yes)
24803:
24804: $as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h
24805:
24806: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
24807: $as_echo_n "checking for in6_pktinfo... " >&6; }
24808: if ${isc_cv_have_in6_pktinfo+:} false; then :
24809: $as_echo_n "(cached) " >&6
24810: else
24811: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24812: /* end confdefs.h. */
24813:
24814: #include <sys/types.h>
24815: #include <sys/socket.h>
24816: #include <netinet/in.h>
24817: $isc_netinetin6_hack
24818: $isc_netinet6in6_hack
24819:
24820: int
24821: main ()
24822: {
24823:
24824: struct in6_pktinfo xyzzy;
24825:
24826:
24827: ;
24828: return 0;
24829: }
24830: _ACEOF
24831: if ac_fn_c_try_compile "$LINENO"; then :
24832: isc_cv_have_in6_pktinfo=yes
24833: else
24834: isc_cv_have_in6_pktinfo=no
24835:
24836: fi
24837: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24838:
24839: fi
24840: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5
24841: $as_echo "$isc_cv_have_in6_pktinfo" >&6; }
24842: case "$isc_cv_have_in6_pktinfo" in
24843: yes)
24844:
24845: $as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h
24846:
24847: esac
24848:
24849:
24850: # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
24851: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
24852: $as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
24853: if ${isc_cv_have_sin6_scope_id+:} false; then :
24854: $as_echo_n "(cached) " >&6
24855: else
24856: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24857: /* end confdefs.h. */
24858:
24859: #include <sys/types.h>
24860: #include <sys/socket.h>
24861: #include <netinet/in.h>
24862: $isc_netinetin6_hack
24863: $isc_netinet6in6_hack
24864:
24865: int
24866: main ()
24867: {
24868:
24869: struct sockaddr_in6 xyzzy;
24870: xyzzy.sin6_scope_id = 0;
24871:
24872:
24873: ;
24874: return 0;
24875: }
24876: _ACEOF
24877: if ac_fn_c_try_compile "$LINENO"; then :
24878: isc_cv_have_sin6_scope_id=yes
24879: else
24880: isc_cv_have_sin6_scope_id=no
24881:
24882: fi
24883: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24884:
24885: fi
24886: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5
24887: $as_echo "$isc_cv_have_sin6_scope_id" >&6; }
24888:
24889: case "$isc_cv_have_sin6_scope_id" in
24890: yes)
24891:
24892: $as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h
24893:
24894: esac
24895: esac
24896:
24897:
24898: # We need this check run even without isc_cv_found_ipv6=yes
24899:
24900: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
24901: $as_echo_n "checking for in6addr_any... " >&6; }
24902: if ${isc_cv_have_in6addr_any+:} false; then :
24903: $as_echo_n "(cached) " >&6
24904: else
24905: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24906: /* end confdefs.h. */
24907:
24908: #include <sys/types.h>
24909: #include <sys/socket.h>
24910: #include <netinet/in.h>
24911: $isc_netinetin6_hack
24912: $isc_netinet6in6_hack
24913:
24914: int
24915: main ()
24916: {
24917:
24918: struct in6_addr in6;
24919: in6 = in6addr_any;
24920:
24921:
24922: ;
24923: return 0;
24924: }
24925: _ACEOF
24926: if ac_fn_c_try_link "$LINENO"; then :
24927: isc_cv_have_in6addr_any=yes
24928: else
24929: isc_cv_have_in6addr_any=no
24930:
24931: fi
24932: rm -f core conftest.err conftest.$ac_objext \
24933: conftest$ac_exeext conftest.$ac_ext
24934:
24935: fi
24936: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6addr_any" >&5
24937: $as_echo "$isc_cv_have_in6addr_any" >&6; }
24938:
24939: case "$isc_cv_have_in6addr_any" in
24940: no)
24941:
24942: $as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h
24943:
24944: esac
24945:
24946:
24947: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
24948: $as_echo_n "checking for struct if_laddrconf... " >&6; }
24949: if ${isc_cv_struct_if_laddrconf+:} false; then :
24950: $as_echo_n "(cached) " >&6
24951: else
24952: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24953: /* end confdefs.h. */
24954:
24955: #include <sys/types.h>
24956: #include <net/if6.h>
24957:
24958: int
24959: main ()
24960: {
24961:
24962: struct if_laddrconf a;
24963:
24964:
24965: ;
24966: return 0;
24967: }
24968: _ACEOF
24969: if ac_fn_c_try_compile "$LINENO"; then :
24970: isc_cv_struct_if_laddrconf=yes
24971: else
24972: isc_cv_struct_if_laddrconf=no
24973:
24974: fi
24975: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24976:
24977: fi
24978: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5
24979: $as_echo "$isc_cv_struct_if_laddrconf" >&6; }
24980:
24981: case "$isc_cv_struct_if_laddrconf" in
24982: yes)
24983:
24984: $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
24985:
24986: esac
24987:
24988: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
24989: $as_echo_n "checking for struct if_laddrreq... " >&6; }
24990: if ${isc_cv_struct_if_laddrreq+:} false; then :
24991: $as_echo_n "(cached) " >&6
24992: else
24993: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24994: /* end confdefs.h. */
24995:
24996: #include <sys/types.h>
24997: #include <net/if6.h>
24998:
24999: int
25000: main ()
25001: {
25002:
25003: struct if_laddrreq a;
25004:
25005:
25006: ;
25007: return 0;
25008: }
25009: _ACEOF
25010: if ac_fn_c_try_compile "$LINENO"; then :
25011: isc_cv_struct_if_laddrreq=yes
25012: else
25013: isc_cv_struct_if_laddrreq=no
25014:
25015: fi
25016: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25017:
25018: fi
25019: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
25020: $as_echo "$isc_cv_struct_if_laddrreq" >&6; }
25021:
25022: case "$isc_cv_struct_if_laddrreq" in
25023: yes)
25024:
25025: $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
25026:
25027: esac
25028:
25029: #
25030: # Look for a sysctl call to get the list of network interfaces.
25031: #
25032: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5
25033: $as_echo_n "checking for interface list sysctl... " >&6; }
25034: if ${ntp_cv_iflist_sysctl+:} false; then :
25035: $as_echo_n "(cached) " >&6
25036: else
25037: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25038: /* end confdefs.h. */
25039:
25040: #include <sys/param.h>
25041: #include <sys/sysctl.h>
25042: #include <sys/socket.h>
25043: #ifdef NET_RT_IFLIST
25044: found_rt_iflist
25045: #endif
25046:
25047: _ACEOF
25048: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25049: $EGREP "found_rt_iflist" >/dev/null 2>&1; then :
25050: ntp_cv_iflist_sysctl=yes
25051: else
25052: ntp_cv_iflist_sysctl=no
25053:
25054: fi
25055: rm -f conftest*
25056:
25057:
25058: fi
25059: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_iflist_sysctl" >&5
25060: $as_echo "$ntp_cv_iflist_sysctl" >&6; }
25061: case "$ntp_cv_iflist_sysctl" in
25062: yes)
25063:
25064: $as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h
25065:
25066: esac
25067:
25068: ###
25069:
25070: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the saveconfig mechanism" >&5
25071: $as_echo_n "checking if we want the saveconfig mechanism... " >&6; }
25072: # Check whether --enable-saveconfig was given.
25073: if test "${enable_saveconfig+set}" = set; then :
25074: enableval=$enable_saveconfig; ntp_ok=$enableval
25075: else
25076: ntp_ok=yes
25077:
25078: fi
25079:
25080: ntp_saveconfig_enabled=0
25081: if test "$ntp_ok" = "yes"; then
25082: ntp_saveconfig_enabled=1
25083:
25084: $as_echo "#define SAVECONFIG 1" >>confdefs.h
25085:
25086: fi
25087: if test x$ntp_saveconfig_enabled = x1; then
25088: SAVECONFIG_ENABLED_TRUE=
25089: SAVECONFIG_ENABLED_FALSE='#'
25090: else
25091: SAVECONFIG_ENABLED_TRUE='#'
25092: SAVECONFIG_ENABLED_FALSE=
25093: fi
25094:
25095: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
25096: $as_echo "$ntp_ok" >&6; }
25097:
25098: ###
25099:
25100:
25101: ac_expanded=`(
25102: test "x$prefix" = xNONE && prefix="$ac_default_prefix"
25103: test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
25104: eval echo \""$sysconfdir"\"
25105: )`
25106:
25107: cat >>confdefs.h <<_ACEOF
25108: #define NTP_KEYSDIR "$ac_expanded"
25109: _ACEOF
25110:
25111:
25112:
25113: ac_config_files="$ac_config_files Makefile"
25114:
25115: ac_config_files="$ac_config_files ElectricFence/Makefile"
25116:
25117: ac_config_files="$ac_config_files adjtimed/Makefile"
25118:
25119: ac_config_files="$ac_config_files clockstuff/Makefile"
25120:
25121: ac_config_files="$ac_config_files include/Makefile"
25122:
25123: ac_config_files="$ac_config_files include/isc/Makefile"
25124:
25125: ac_config_files="$ac_config_files kernel/Makefile"
25126:
25127: ac_config_files="$ac_config_files kernel/sys/Makefile"
25128:
25129: ac_config_files="$ac_config_files libntp/Makefile"
25130:
25131: ac_config_files="$ac_config_files libparse/Makefile"
25132:
25133: ac_config_files="$ac_config_files ntpd/Makefile"
25134:
25135: ac_config_files="$ac_config_files ntpdate/Makefile"
25136:
25137: ac_config_files="$ac_config_files ntpdc/Makefile"
25138:
25139: ac_config_files="$ac_config_files ntpdc/nl.pl"
25140:
25141: ac_config_files="$ac_config_files ntpq/Makefile"
25142:
25143: ac_config_files="$ac_config_files ntpsnmpd/Makefile"
25144:
25145: ac_config_files="$ac_config_files parseutil/Makefile"
25146:
25147: ac_config_files="$ac_config_files scripts/Makefile"
25148:
25149: ac_config_files="$ac_config_files scripts/calc_tickadj"
25150:
25151: ac_config_files="$ac_config_files scripts/checktime"
25152:
25153: ac_config_files="$ac_config_files scripts/freq_adj"
25154:
25155: ac_config_files="$ac_config_files scripts/html2man"
25156:
25157: ac_config_files="$ac_config_files scripts/mkver"
25158:
25159: ac_config_files="$ac_config_files scripts/ntp-wait"
25160:
25161: ac_config_files="$ac_config_files scripts/ntpsweep"
25162:
25163: ac_config_files="$ac_config_files scripts/ntptrace"
25164:
25165: ac_config_files="$ac_config_files scripts/ntpver"
25166:
25167: ac_config_files="$ac_config_files scripts/plot_summary"
25168:
25169: ac_config_files="$ac_config_files scripts/summary"
25170:
25171: ac_config_files="$ac_config_files util/Makefile"
25172:
25173:
25174:
25175:
25176: subdirs="$subdirs sntp"
25177:
25178:
25179: cat >confcache <<\_ACEOF
25180: # This file is a shell script that caches the results of configure
25181: # tests run on this system so they can be shared between configure
25182: # scripts and configure runs, see configure's option --config-cache.
25183: # It is not useful on other systems. If it contains results you don't
25184: # want to keep, you may remove or edit it.
25185: #
25186: # config.status only pays attention to the cache file if you give it
25187: # the --recheck option to rerun configure.
25188: #
25189: # `ac_cv_env_foo' variables (set or unset) will be overridden when
25190: # loading this file, other *unset* `ac_cv_foo' will be assigned the
25191: # following values.
25192:
25193: _ACEOF
25194:
25195: # The following way of writing the cache mishandles newlines in values,
25196: # but we know of no workaround that is simple, portable, and efficient.
25197: # So, we kill variables containing newlines.
25198: # Ultrix sh set writes to stderr and can't be redirected directly,
25199: # and sets the high bit in the cache file unless we assign to the vars.
25200: (
25201: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25202: eval ac_val=\$$ac_var
25203: case $ac_val in #(
25204: *${as_nl}*)
25205: case $ac_var in #(
25206: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25207: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25208: esac
25209: case $ac_var in #(
25210: _ | IFS | as_nl) ;; #(
25211: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25212: *) { eval $ac_var=; unset $ac_var;} ;;
25213: esac ;;
25214: esac
25215: done
25216:
25217: (set) 2>&1 |
25218: case $as_nl`(ac_space=' '; set) 2>&1` in #(
25219: *${as_nl}ac_space=\ *)
25220: # `set' does not quote correctly, so add quotes: double-quote
25221: # substitution turns \\\\ into \\, and sed turns \\ into \.
25222: sed -n \
25223: "s/'/'\\\\''/g;
25224: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25225: ;; #(
25226: *)
25227: # `set' quotes correctly as required by POSIX, so do not add quotes.
25228: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25229: ;;
25230: esac |
25231: sort
25232: ) |
25233: sed '
25234: /^ac_cv_env_/b end
25235: t clear
25236: :clear
25237: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25238: t end
25239: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25240: :end' >>confcache
25241: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25242: if test -w "$cache_file"; then
25243: if test "x$cache_file" != "x/dev/null"; then
25244: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25245: $as_echo "$as_me: updating cache $cache_file" >&6;}
25246: if test ! -f "$cache_file" || test -h "$cache_file"; then
25247: cat confcache >"$cache_file"
25248: else
25249: case $cache_file in #(
25250: */* | ?:*)
25251: mv -f confcache "$cache_file"$$ &&
25252: mv -f "$cache_file"$$ "$cache_file" ;; #(
25253: *)
25254: mv -f confcache "$cache_file" ;;
25255: esac
25256: fi
25257: fi
25258: else
25259: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25260: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25261: fi
25262: fi
25263: rm -f confcache
25264:
25265: test "x$prefix" = xNONE && prefix=$ac_default_prefix
25266: # Let make expand exec_prefix.
25267: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25268:
25269: DEFS=-DHAVE_CONFIG_H
25270:
25271: ac_libobjs=
25272: ac_ltlibobjs=
25273: U=
25274: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25275: # 1. Remove the extension, and $U if already installed.
25276: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25277: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25278: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25279: # will be set to the directory where LIBOBJS objects are built.
25280: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25281: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25282: done
25283: LIBOBJS=$ac_libobjs
25284:
25285: LTLIBOBJS=$ac_ltlibobjs
25286:
25287:
25288: if test -n "$EXEEXT"; then
25289: am__EXEEXT_TRUE=
25290: am__EXEEXT_FALSE='#'
25291: else
25292: am__EXEEXT_TRUE='#'
25293: am__EXEEXT_FALSE=
25294: fi
25295:
25296: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25297: as_fn_error $? "conditional \"AMDEP\" was never defined.
25298: Usually this means the macro was only invoked conditionally." "$LINENO" 5
25299: fi
25300: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25301: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25302: Usually this means the macro was only invoked conditionally." "$LINENO" 5
25303: fi
25304: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25305: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25306: Usually this means the macro was only invoked conditionally." "$LINENO" 5
25307: fi
25308: if test -z "${VPATH_HACK_TRUE}" && test -z "${VPATH_HACK_FALSE}"; then
25309: as_fn_error $? "conditional \"VPATH_HACK\" was never defined.
25310: Usually this means the macro was only invoked conditionally." "$LINENO" 5
25311: fi
25312: if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
25313: as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
25314: Usually this means the macro was only invoked conditionally." "$LINENO" 5
25315: fi
25316: if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
25317: as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
25318: Usually this means the macro was only invoked conditionally." "$LINENO" 5
25319: fi
25320: if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then
25321: as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined.
25322: Usually this means the macro was only invoked conditionally." "$LINENO" 5
25323: fi
25324: if test -z "${NTP_BINSUBDIR_IS_BIN_TRUE}" && test -z "${NTP_BINSUBDIR_IS_BIN_FALSE}"; then
25325: as_fn_error $? "conditional \"NTP_BINSUBDIR_IS_BIN\" was never defined.
25326: Usually this means the macro was only invoked conditionally." "$LINENO" 5
25327: fi
25328:
25329: if test -z "${SAVECONFIG_ENABLED_TRUE}" && test -z "${SAVECONFIG_ENABLED_FALSE}"; then
25330: as_fn_error $? "conditional \"SAVECONFIG_ENABLED\" was never defined.
25331: Usually this means the macro was only invoked conditionally." "$LINENO" 5
25332: fi
25333:
25334: : "${CONFIG_STATUS=./config.status}"
25335: ac_write_fail=0
25336: ac_clean_files_save=$ac_clean_files
25337: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25338: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25339: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25340: as_write_fail=0
25341: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25342: #! $SHELL
25343: # Generated by $as_me.
25344: # Run this file to recreate the current configuration.
25345: # Compiler output produced by configure, useful for debugging
25346: # configure, is in config.log if it exists.
25347:
25348: debug=false
25349: ac_cs_recheck=false
25350: ac_cs_silent=false
25351:
25352: SHELL=\${CONFIG_SHELL-$SHELL}
25353: export SHELL
25354: _ASEOF
25355: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25356: ## -------------------- ##
25357: ## M4sh Initialization. ##
25358: ## -------------------- ##
25359:
25360: # Be more Bourne compatible
25361: DUALCASE=1; export DUALCASE # for MKS sh
25362: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25363: emulate sh
25364: NULLCMD=:
25365: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25366: # is contrary to our usage. Disable this feature.
25367: alias -g '${1+"$@"}'='"$@"'
25368: setopt NO_GLOB_SUBST
25369: else
25370: case `(set -o) 2>/dev/null` in #(
25371: *posix*) :
25372: set -o posix ;; #(
25373: *) :
25374: ;;
25375: esac
25376: fi
25377:
25378:
25379: as_nl='
25380: '
25381: export as_nl
25382: # Printing a long string crashes Solaris 7 /usr/bin/printf.
25383: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25384: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25385: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25386: # Prefer a ksh shell builtin over an external printf program on Solaris,
25387: # but without wasting forks for bash or zsh.
25388: if test -z "$BASH_VERSION$ZSH_VERSION" \
25389: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25390: as_echo='print -r --'
25391: as_echo_n='print -rn --'
25392: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25393: as_echo='printf %s\n'
25394: as_echo_n='printf %s'
25395: else
25396: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25397: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25398: as_echo_n='/usr/ucb/echo -n'
25399: else
25400: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25401: as_echo_n_body='eval
25402: arg=$1;
25403: case $arg in #(
25404: *"$as_nl"*)
25405: expr "X$arg" : "X\\(.*\\)$as_nl";
25406: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25407: esac;
25408: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25409: '
25410: export as_echo_n_body
25411: as_echo_n='sh -c $as_echo_n_body as_echo'
25412: fi
25413: export as_echo_body
25414: as_echo='sh -c $as_echo_body as_echo'
25415: fi
25416:
25417: # The user is always right.
25418: if test "${PATH_SEPARATOR+set}" != set; then
25419: PATH_SEPARATOR=:
25420: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25421: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25422: PATH_SEPARATOR=';'
25423: }
25424: fi
25425:
25426:
25427: # IFS
25428: # We need space, tab and new line, in precisely that order. Quoting is
25429: # there to prevent editors from complaining about space-tab.
25430: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25431: # splitting by setting IFS to empty value.)
25432: IFS=" "" $as_nl"
25433:
25434: # Find who we are. Look in the path if we contain no directory separator.
25435: as_myself=
25436: case $0 in #((
25437: *[\\/]* ) as_myself=$0 ;;
25438: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25439: for as_dir in $PATH
25440: do
25441: IFS=$as_save_IFS
25442: test -z "$as_dir" && as_dir=.
25443: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25444: done
25445: IFS=$as_save_IFS
25446:
25447: ;;
25448: esac
25449: # We did not find ourselves, most probably we were run as `sh COMMAND'
25450: # in which case we are not to be found in the path.
25451: if test "x$as_myself" = x; then
25452: as_myself=$0
25453: fi
25454: if test ! -f "$as_myself"; then
25455: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25456: exit 1
25457: fi
25458:
25459: # Unset variables that we do not need and which cause bugs (e.g. in
25460: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25461: # suppresses any "Segmentation fault" message there. '((' could
25462: # trigger a bug in pdksh 5.2.14.
25463: for as_var in BASH_ENV ENV MAIL MAILPATH
25464: do eval test x\${$as_var+set} = xset \
25465: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25466: done
25467: PS1='$ '
25468: PS2='> '
25469: PS4='+ '
25470:
25471: # NLS nuisances.
25472: LC_ALL=C
25473: export LC_ALL
25474: LANGUAGE=C
25475: export LANGUAGE
25476:
25477: # CDPATH.
25478: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25479:
25480:
25481: # as_fn_error STATUS ERROR [LINENO LOG_FD]
25482: # ----------------------------------------
25483: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25484: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25485: # script with STATUS, using 1 if that was 0.
25486: as_fn_error ()
25487: {
25488: as_status=$1; test $as_status -eq 0 && as_status=1
25489: if test "$4"; then
25490: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25491: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25492: fi
25493: $as_echo "$as_me: error: $2" >&2
25494: as_fn_exit $as_status
25495: } # as_fn_error
25496:
25497:
25498: # as_fn_set_status STATUS
25499: # -----------------------
25500: # Set $? to STATUS, without forking.
25501: as_fn_set_status ()
25502: {
25503: return $1
25504: } # as_fn_set_status
25505:
25506: # as_fn_exit STATUS
25507: # -----------------
25508: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25509: as_fn_exit ()
25510: {
25511: set +e
25512: as_fn_set_status $1
25513: exit $1
25514: } # as_fn_exit
25515:
25516: # as_fn_unset VAR
25517: # ---------------
25518: # Portably unset VAR.
25519: as_fn_unset ()
25520: {
25521: { eval $1=; unset $1;}
25522: }
25523: as_unset=as_fn_unset
25524: # as_fn_append VAR VALUE
25525: # ----------------------
25526: # Append the text in VALUE to the end of the definition contained in VAR. Take
25527: # advantage of any shell optimizations that allow amortized linear growth over
25528: # repeated appends, instead of the typical quadratic growth present in naive
25529: # implementations.
25530: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25531: eval 'as_fn_append ()
25532: {
25533: eval $1+=\$2
25534: }'
25535: else
25536: as_fn_append ()
25537: {
25538: eval $1=\$$1\$2
25539: }
25540: fi # as_fn_append
25541:
25542: # as_fn_arith ARG...
25543: # ------------------
25544: # Perform arithmetic evaluation on the ARGs, and store the result in the
25545: # global $as_val. Take advantage of shells that can avoid forks. The arguments
25546: # must be portable across $(()) and expr.
25547: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25548: eval 'as_fn_arith ()
25549: {
25550: as_val=$(( $* ))
25551: }'
25552: else
25553: as_fn_arith ()
25554: {
25555: as_val=`expr "$@" || test $? -eq 1`
25556: }
25557: fi # as_fn_arith
25558:
25559:
25560: if expr a : '\(a\)' >/dev/null 2>&1 &&
25561: test "X`expr 00001 : '.*\(...\)'`" = X001; then
25562: as_expr=expr
25563: else
25564: as_expr=false
25565: fi
25566:
25567: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25568: as_basename=basename
25569: else
25570: as_basename=false
25571: fi
25572:
25573: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25574: as_dirname=dirname
25575: else
25576: as_dirname=false
25577: fi
25578:
25579: as_me=`$as_basename -- "$0" ||
25580: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25581: X"$0" : 'X\(//\)$' \| \
25582: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25583: $as_echo X/"$0" |
25584: sed '/^.*\/\([^/][^/]*\)\/*$/{
25585: s//\1/
25586: q
25587: }
25588: /^X\/\(\/\/\)$/{
25589: s//\1/
25590: q
25591: }
25592: /^X\/\(\/\).*/{
25593: s//\1/
25594: q
25595: }
25596: s/.*/./; q'`
25597:
25598: # Avoid depending upon Character Ranges.
25599: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25600: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25601: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25602: as_cr_digits='0123456789'
25603: as_cr_alnum=$as_cr_Letters$as_cr_digits
25604:
25605: ECHO_C= ECHO_N= ECHO_T=
25606: case `echo -n x` in #(((((
25607: -n*)
25608: case `echo 'xy\c'` in
25609: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25610: xy) ECHO_C='\c';;
25611: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25612: ECHO_T=' ';;
25613: esac;;
25614: *)
25615: ECHO_N='-n';;
25616: esac
25617:
25618: rm -f conf$$ conf$$.exe conf$$.file
25619: if test -d conf$$.dir; then
25620: rm -f conf$$.dir/conf$$.file
25621: else
25622: rm -f conf$$.dir
25623: mkdir conf$$.dir 2>/dev/null
25624: fi
25625: if (echo >conf$$.file) 2>/dev/null; then
25626: if ln -s conf$$.file conf$$ 2>/dev/null; then
25627: as_ln_s='ln -s'
25628: # ... but there are two gotchas:
25629: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25630: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25631: # In both cases, we have to default to `cp -p'.
25632: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25633: as_ln_s='cp -p'
25634: elif ln conf$$.file conf$$ 2>/dev/null; then
25635: as_ln_s=ln
25636: else
25637: as_ln_s='cp -p'
25638: fi
25639: else
25640: as_ln_s='cp -p'
25641: fi
25642: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25643: rmdir conf$$.dir 2>/dev/null
25644:
25645:
25646: # as_fn_mkdir_p
25647: # -------------
25648: # Create "$as_dir" as a directory, including parents if necessary.
25649: as_fn_mkdir_p ()
25650: {
25651:
25652: case $as_dir in #(
25653: -*) as_dir=./$as_dir;;
25654: esac
25655: test -d "$as_dir" || eval $as_mkdir_p || {
25656: as_dirs=
25657: while :; do
25658: case $as_dir in #(
25659: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25660: *) as_qdir=$as_dir;;
25661: esac
25662: as_dirs="'$as_qdir' $as_dirs"
25663: as_dir=`$as_dirname -- "$as_dir" ||
25664: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25665: X"$as_dir" : 'X\(//\)[^/]' \| \
25666: X"$as_dir" : 'X\(//\)$' \| \
25667: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25668: $as_echo X"$as_dir" |
25669: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25670: s//\1/
25671: q
25672: }
25673: /^X\(\/\/\)[^/].*/{
25674: s//\1/
25675: q
25676: }
25677: /^X\(\/\/\)$/{
25678: s//\1/
25679: q
25680: }
25681: /^X\(\/\).*/{
25682: s//\1/
25683: q
25684: }
25685: s/.*/./; q'`
25686: test -d "$as_dir" && break
25687: done
25688: test -z "$as_dirs" || eval "mkdir $as_dirs"
25689: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25690:
25691:
25692: } # as_fn_mkdir_p
25693: if mkdir -p . 2>/dev/null; then
25694: as_mkdir_p='mkdir -p "$as_dir"'
25695: else
25696: test -d ./-p && rmdir ./-p
25697: as_mkdir_p=false
25698: fi
25699:
25700: if test -x / >/dev/null 2>&1; then
25701: as_test_x='test -x'
25702: else
25703: if ls -dL / >/dev/null 2>&1; then
25704: as_ls_L_option=L
25705: else
25706: as_ls_L_option=
25707: fi
25708: as_test_x='
25709: eval sh -c '\''
25710: if test -d "$1"; then
25711: test -d "$1/.";
25712: else
25713: case $1 in #(
25714: -*)set "./$1";;
25715: esac;
25716: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25717: ???[sx]*):;;*)false;;esac;fi
25718: '\'' sh
25719: '
25720: fi
25721: as_executable_p=$as_test_x
25722:
25723: # Sed expression to map a string onto a valid CPP name.
25724: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25725:
25726: # Sed expression to map a string onto a valid variable name.
25727: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25728:
25729:
25730: exec 6>&1
25731: ## ----------------------------------- ##
25732: ## Main body of $CONFIG_STATUS script. ##
25733: ## ----------------------------------- ##
25734: _ASEOF
25735: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25736:
25737: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25738: # Save the log message, to keep $0 and so on meaningful, and to
25739: # report actual input values of CONFIG_FILES etc. instead of their
25740: # values after options handling.
25741: ac_log="
25742: This file was extended by ntp $as_me 4.2.6p5, which was
25743: generated by GNU Autoconf 2.68. Invocation command line was
25744:
25745: CONFIG_FILES = $CONFIG_FILES
25746: CONFIG_HEADERS = $CONFIG_HEADERS
25747: CONFIG_LINKS = $CONFIG_LINKS
25748: CONFIG_COMMANDS = $CONFIG_COMMANDS
25749: $ $0 $@
25750:
25751: on `(hostname || uname -n) 2>/dev/null | sed 1q`
25752: "
25753:
25754: _ACEOF
25755:
25756: case $ac_config_files in *"
25757: "*) set x $ac_config_files; shift; ac_config_files=$*;;
25758: esac
25759:
25760: case $ac_config_headers in *"
25761: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25762: esac
25763:
25764:
25765: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25766: # Files that config.status was made for.
25767: config_files="$ac_config_files"
25768: config_headers="$ac_config_headers"
25769: config_commands="$ac_config_commands"
25770:
25771: _ACEOF
25772:
25773: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25774: ac_cs_usage="\
25775: \`$as_me' instantiates files and other configuration actions
25776: from templates according to the current configuration. Unless the files
25777: and actions are specified as TAGs, all are instantiated by default.
25778:
25779: Usage: $0 [OPTION]... [TAG]...
25780:
25781: -h, --help print this help, then exit
25782: -V, --version print version number and configuration settings, then exit
25783: --config print configuration, then exit
25784: -q, --quiet, --silent
25785: do not print progress messages
25786: -d, --debug don't remove temporary files
25787: --recheck update $as_me by reconfiguring in the same conditions
25788: --file=FILE[:TEMPLATE]
25789: instantiate the configuration file FILE
25790: --header=FILE[:TEMPLATE]
25791: instantiate the configuration header FILE
25792:
25793: Configuration files:
25794: $config_files
25795:
25796: Configuration headers:
25797: $config_headers
25798:
25799: Configuration commands:
25800: $config_commands
25801:
25802: Report bugs to the package provider."
25803:
25804: _ACEOF
25805: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25806: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25807: ac_cs_version="\\
25808: ntp config.status 4.2.6p5
25809: configured by $0, generated by GNU Autoconf 2.68,
25810: with options \\"\$ac_cs_config\\"
25811:
25812: Copyright (C) 2010 Free Software Foundation, Inc.
25813: This config.status script is free software; the Free Software Foundation
25814: gives unlimited permission to copy, distribute and modify it."
25815:
25816: ac_pwd='$ac_pwd'
25817: srcdir='$srcdir'
25818: INSTALL='$INSTALL'
25819: MKDIR_P='$MKDIR_P'
25820: AWK='$AWK'
25821: test -n "\$AWK" || AWK=awk
25822: _ACEOF
25823:
25824: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25825: # The default lists apply if the user does not specify any file.
25826: ac_need_defaults=:
25827: while test $# != 0
25828: do
25829: case $1 in
25830: --*=?*)
25831: ac_option=`expr "X$1" : 'X\([^=]*\)='`
25832: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25833: ac_shift=:
25834: ;;
25835: --*=)
25836: ac_option=`expr "X$1" : 'X\([^=]*\)='`
25837: ac_optarg=
25838: ac_shift=:
25839: ;;
25840: *)
25841: ac_option=$1
25842: ac_optarg=$2
25843: ac_shift=shift
25844: ;;
25845: esac
25846:
25847: case $ac_option in
25848: # Handling of the options.
25849: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25850: ac_cs_recheck=: ;;
25851: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25852: $as_echo "$ac_cs_version"; exit ;;
25853: --config | --confi | --conf | --con | --co | --c )
25854: $as_echo "$ac_cs_config"; exit ;;
25855: --debug | --debu | --deb | --de | --d | -d )
25856: debug=: ;;
25857: --file | --fil | --fi | --f )
25858: $ac_shift
25859: case $ac_optarg in
25860: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25861: '') as_fn_error $? "missing file argument" ;;
25862: esac
25863: as_fn_append CONFIG_FILES " '$ac_optarg'"
25864: ac_need_defaults=false;;
25865: --header | --heade | --head | --hea )
25866: $ac_shift
25867: case $ac_optarg in
25868: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25869: esac
25870: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25871: ac_need_defaults=false;;
25872: --he | --h)
25873: # Conflict between --help and --header
25874: as_fn_error $? "ambiguous option: \`$1'
25875: Try \`$0 --help' for more information.";;
25876: --help | --hel | -h )
25877: $as_echo "$ac_cs_usage"; exit ;;
25878: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25879: | -silent | --silent | --silen | --sile | --sil | --si | --s)
25880: ac_cs_silent=: ;;
25881:
25882: # This is an error.
25883: -*) as_fn_error $? "unrecognized option: \`$1'
25884: Try \`$0 --help' for more information." ;;
25885:
25886: *) as_fn_append ac_config_targets " $1"
25887: ac_need_defaults=false ;;
25888:
25889: esac
25890: shift
25891: done
25892:
25893: ac_configure_extra_args=
25894:
25895: if $ac_cs_silent; then
25896: exec 6>/dev/null
25897: ac_configure_extra_args="$ac_configure_extra_args --silent"
25898: fi
25899:
25900: _ACEOF
25901: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25902: if \$ac_cs_recheck; then
25903: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25904: shift
25905: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25906: CONFIG_SHELL='$SHELL'
25907: export CONFIG_SHELL
25908: exec "\$@"
25909: fi
25910:
25911: _ACEOF
25912: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25913: exec 5>>config.log
25914: {
25915: echo
25916: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25917: ## Running $as_me. ##
25918: _ASBOX
25919: $as_echo "$ac_log"
25920: } >&5
25921:
25922: _ACEOF
25923: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25924: #
25925: # INIT-COMMANDS
25926: #
25927: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25928:
25929:
25930: # The HP-UX ksh and POSIX shell print the target directory to stdout
25931: # if CDPATH is set.
25932: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25933:
25934: sed_quote_subst='$sed_quote_subst'
25935: double_quote_subst='$double_quote_subst'
25936: delay_variable_subst='$delay_variable_subst'
25937: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25938: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25939: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25940: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25941: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25942: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25943: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25944: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25945: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25946: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25947: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25948: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25949: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25950: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25951: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25952: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25953: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25954: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25955: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25956: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25957: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25958: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25959: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25960: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25961: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25962: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25963: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25964: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25965: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
25966: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
25967: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25968: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25969: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25970: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25971: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25972: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
25973: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
25974: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
25975: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
25976: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25977: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25978: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
25979: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25980: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25981: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25982: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25983: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25984: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25985: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25986: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25987: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25988: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25989: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25990: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25991: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25992: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
25993: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
25994: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
25995: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25996: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25997: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25998: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25999: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26000: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26001: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26002: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26003: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
26004: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26005: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26006: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26007: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26008: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26009: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26010: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26011: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26012: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26013: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26014: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26015: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26016: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26017: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26018: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26019: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
26020: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26021: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
26022: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26023: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
26024: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
26025: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
26026: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
26027: hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
26028: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
26029: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
26030: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
26031: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
26032: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
26033: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
26034: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
26035: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
26036: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
26037: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
26038: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
26039: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
26040: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
26041: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
26042: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
26043: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
26044: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
26045: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
26046: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
26047: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
26048: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
26049: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
26050: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
26051: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
26052: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
26053: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
26054: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26055: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26056: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
26057: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
26058: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
26059: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
26060: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
26061: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
26062: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
26063: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
26064: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
26065: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
26066: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26067:
26068: LTCC='$LTCC'
26069: LTCFLAGS='$LTCFLAGS'
26070: compiler='$compiler_DEFAULT'
26071:
26072: # A function that is used when there is no print builtin or printf.
26073: func_fallback_echo ()
26074: {
26075: eval 'cat <<_LTECHO_EOF
26076: \$1
26077: _LTECHO_EOF'
26078: }
26079:
26080: # Quote evaled strings.
26081: for var in SHELL \
26082: ECHO \
26083: SED \
26084: GREP \
26085: EGREP \
26086: FGREP \
26087: LD \
26088: NM \
26089: LN_S \
26090: lt_SP2NL \
26091: lt_NL2SP \
26092: reload_flag \
26093: OBJDUMP \
26094: deplibs_check_method \
26095: file_magic_cmd \
26096: file_magic_glob \
26097: want_nocaseglob \
26098: DLLTOOL \
26099: sharedlib_from_linklib_cmd \
26100: AR \
26101: AR_FLAGS \
26102: archiver_list_spec \
26103: STRIP \
26104: RANLIB \
26105: CC \
26106: CFLAGS \
26107: compiler \
26108: lt_cv_sys_global_symbol_pipe \
26109: lt_cv_sys_global_symbol_to_cdecl \
26110: lt_cv_sys_global_symbol_to_c_name_address \
26111: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26112: nm_file_list_spec \
26113: lt_prog_compiler_no_builtin_flag \
26114: lt_prog_compiler_pic \
26115: lt_prog_compiler_wl \
26116: lt_prog_compiler_static \
26117: lt_cv_prog_compiler_c_o \
26118: need_locks \
26119: MANIFEST_TOOL \
26120: DSYMUTIL \
26121: NMEDIT \
26122: LIPO \
26123: OTOOL \
26124: OTOOL64 \
26125: shrext_cmds \
26126: export_dynamic_flag_spec \
26127: whole_archive_flag_spec \
26128: compiler_needs_object \
26129: with_gnu_ld \
26130: allow_undefined_flag \
26131: no_undefined_flag \
26132: hardcode_libdir_flag_spec \
26133: hardcode_libdir_flag_spec_ld \
26134: hardcode_libdir_separator \
26135: exclude_expsyms \
26136: include_expsyms \
26137: file_list_spec \
26138: variables_saved_for_relink \
26139: libname_spec \
26140: library_names_spec \
26141: soname_spec \
26142: install_override_mode \
26143: finish_eval \
26144: old_striplib \
26145: striplib; do
26146: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26147: *[\\\\\\\`\\"\\\$]*)
26148: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26149: ;;
26150: *)
26151: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26152: ;;
26153: esac
26154: done
26155:
26156: # Double-quote double-evaled strings.
26157: for var in reload_cmds \
26158: old_postinstall_cmds \
26159: old_postuninstall_cmds \
26160: old_archive_cmds \
26161: extract_expsyms_cmds \
26162: old_archive_from_new_cmds \
26163: old_archive_from_expsyms_cmds \
26164: archive_cmds \
26165: archive_expsym_cmds \
26166: module_cmds \
26167: module_expsym_cmds \
26168: export_symbols_cmds \
26169: prelink_cmds \
26170: postlink_cmds \
26171: postinstall_cmds \
26172: postuninstall_cmds \
26173: finish_cmds \
26174: sys_lib_search_path_spec \
26175: sys_lib_dlsearch_path_spec; do
26176: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26177: *[\\\\\\\`\\"\\\$]*)
26178: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26179: ;;
26180: *)
26181: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26182: ;;
26183: esac
26184: done
26185:
26186: ac_aux_dir='$ac_aux_dir'
26187: xsi_shell='$xsi_shell'
26188: lt_shell_append='$lt_shell_append'
26189:
26190: # See if we are running on zsh, and set the options which allow our
26191: # commands through without removal of \ escapes INIT.
26192: if test -n "\${ZSH_VERSION+set}" ; then
26193: setopt NO_GLOB_SUBST
26194: fi
26195:
26196:
26197: PACKAGE='$PACKAGE'
26198: VERSION='$VERSION'
26199: TIMESTAMP='$TIMESTAMP'
26200: RM='$RM'
26201: ofile='$ofile'
26202:
26203:
26204:
26205:
26206: _ACEOF
26207:
26208: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26209:
26210: # Handling of arguments.
26211: for ac_config_target in $ac_config_targets
26212: do
26213: case $ac_config_target in
26214: "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
26215: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26216: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26217: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26218: "ElectricFence/Makefile") CONFIG_FILES="$CONFIG_FILES ElectricFence/Makefile" ;;
26219: "adjtimed/Makefile") CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;;
26220: "clockstuff/Makefile") CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;;
26221: "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26222: "include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;;
26223: "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
26224: "kernel/sys/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;;
26225: "libntp/Makefile") CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;;
26226: "libparse/Makefile") CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;;
26227: "ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;;
26228: "ntpdate/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;;
26229: "ntpdc/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;;
26230: "ntpdc/nl.pl") CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;;
26231: "ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;;
26232: "ntpsnmpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpsnmpd/Makefile" ;;
26233: "parseutil/Makefile") CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;;
26234: "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
26235: "scripts/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj" ;;
26236: "scripts/checktime") CONFIG_FILES="$CONFIG_FILES scripts/checktime" ;;
26237: "scripts/freq_adj") CONFIG_FILES="$CONFIG_FILES scripts/freq_adj" ;;
26238: "scripts/html2man") CONFIG_FILES="$CONFIG_FILES scripts/html2man" ;;
26239: "scripts/mkver") CONFIG_FILES="$CONFIG_FILES scripts/mkver" ;;
26240: "scripts/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait" ;;
26241: "scripts/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep" ;;
26242: "scripts/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace" ;;
26243: "scripts/ntpver") CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;;
26244: "scripts/plot_summary") CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;;
26245: "scripts/summary") CONFIG_FILES="$CONFIG_FILES scripts/summary" ;;
26246: "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
26247:
26248: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26249: esac
26250: done
26251:
26252:
26253: # If the user did not use the arguments to specify the items to instantiate,
26254: # then the envvar interface is used. Set only those that are not.
26255: # We use the long form for the default assignment because of an extremely
26256: # bizarre bug on SunOS 4.1.3.
26257: if $ac_need_defaults; then
26258: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26259: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26260: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26261: fi
26262:
26263: # Have a temporary directory for convenience. Make it in the build tree
26264: # simply because there is no reason against having it here, and in addition,
26265: # creating and moving files from /tmp can sometimes cause problems.
26266: # Hook for its removal unless debugging.
26267: # Note that there is a small window in which the directory will not be cleaned:
26268: # after its creation but before its name has been assigned to `$tmp'.
26269: $debug ||
26270: {
26271: tmp= ac_tmp=
26272: trap 'exit_status=$?
26273: : "${ac_tmp:=$tmp}"
26274: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26275: ' 0
26276: trap 'as_fn_exit 1' 1 2 13 15
26277: }
26278: # Create a (secure) tmp directory for tmp files.
26279:
26280: {
26281: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26282: test -d "$tmp"
26283: } ||
26284: {
26285: tmp=./conf$$-$RANDOM
26286: (umask 077 && mkdir "$tmp")
26287: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
26288: ac_tmp=$tmp
26289:
26290: # Set up the scripts for CONFIG_FILES section.
26291: # No need to generate them if there are no CONFIG_FILES.
26292: # This happens for instance with `./config.status config.h'.
26293: if test -n "$CONFIG_FILES"; then
26294:
26295:
26296: ac_cr=`echo X | tr X '\015'`
26297: # On cygwin, bash can eat \r inside `` if the user requested igncr.
26298: # But we know of no other shell where ac_cr would be empty at this
26299: # point, so we can use a bashism as a fallback.
26300: if test "x$ac_cr" = x; then
26301: eval ac_cr=\$\'\\r\'
26302: fi
26303: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26304: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26305: ac_cs_awk_cr='\\r'
26306: else
26307: ac_cs_awk_cr=$ac_cr
26308: fi
26309:
26310: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26311: _ACEOF
26312:
26313:
26314: {
26315: echo "cat >conf$$subs.awk <<_ACEOF" &&
26316: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26317: echo "_ACEOF"
26318: } >conf$$subs.sh ||
26319: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26320: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26321: ac_delim='%!_!# '
26322: for ac_last_try in false false false false false :; do
26323: . ./conf$$subs.sh ||
26324: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26325:
26326: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26327: if test $ac_delim_n = $ac_delim_num; then
26328: break
26329: elif $ac_last_try; then
26330: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26331: else
26332: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26333: fi
26334: done
26335: rm -f conf$$subs.sh
26336:
26337: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26338: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
26339: _ACEOF
26340: sed -n '
26341: h
26342: s/^/S["/; s/!.*/"]=/
26343: p
26344: g
26345: s/^[^!]*!//
26346: :repl
26347: t repl
26348: s/'"$ac_delim"'$//
26349: t delim
26350: :nl
26351: h
26352: s/\(.\{148\}\)..*/\1/
26353: t more1
26354: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26355: p
26356: n
26357: b repl
26358: :more1
26359: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26360: p
26361: g
26362: s/.\{148\}//
26363: t nl
26364: :delim
26365: h
26366: s/\(.\{148\}\)..*/\1/
26367: t more2
26368: s/["\\]/\\&/g; s/^/"/; s/$/"/
26369: p
26370: b
26371: :more2
26372: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26373: p
26374: g
26375: s/.\{148\}//
26376: t delim
26377: ' <conf$$subs.awk | sed '
26378: /^[^""]/{
26379: N
26380: s/\n//
26381: }
26382: ' >>$CONFIG_STATUS || ac_write_fail=1
26383: rm -f conf$$subs.awk
26384: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26385: _ACAWK
26386: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
26387: for (key in S) S_is_set[key] = 1
26388: FS = ""
26389:
26390: }
26391: {
26392: line = $ 0
26393: nfields = split(line, field, "@")
26394: substed = 0
26395: len = length(field[1])
26396: for (i = 2; i < nfields; i++) {
26397: key = field[i]
26398: keylen = length(key)
26399: if (S_is_set[key]) {
26400: value = S[key]
26401: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26402: len += length(value) + length(field[++i])
26403: substed = 1
26404: } else
26405: len += 1 + keylen
26406: }
26407:
26408: print line
26409: }
26410:
26411: _ACAWK
26412: _ACEOF
26413: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26414: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26415: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26416: else
26417: cat
26418: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
26419: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
26420: _ACEOF
26421:
26422: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26423: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
26424: # trailing colons and then remove the whole line if VPATH becomes empty
26425: # (actually we leave an empty line to preserve line numbers).
26426: if test "x$srcdir" = x.; then
26427: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
26428: h
26429: s///
26430: s/^/:/
26431: s/[ ]*$/:/
26432: s/:\$(srcdir):/:/g
26433: s/:\${srcdir}:/:/g
26434: s/:@srcdir@:/:/g
26435: s/^:*//
26436: s/:*$//
26437: x
26438: s/\(=[ ]*\).*/\1/
26439: G
26440: s/\n//
26441: s/^[^=]*=[ ]*$//
26442: }'
26443: fi
26444:
26445: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26446: fi # test -n "$CONFIG_FILES"
26447:
26448: # Set up the scripts for CONFIG_HEADERS section.
26449: # No need to generate them if there are no CONFIG_HEADERS.
26450: # This happens for instance with `./config.status Makefile'.
26451: if test -n "$CONFIG_HEADERS"; then
26452: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26453: BEGIN {
26454: _ACEOF
26455:
26456: # Transform confdefs.h into an awk script `defines.awk', embedded as
26457: # here-document in config.status, that substitutes the proper values into
26458: # config.h.in to produce config.h.
26459:
26460: # Create a delimiter string that does not exist in confdefs.h, to ease
26461: # handling of long lines.
26462: ac_delim='%!_!# '
26463: for ac_last_try in false false :; do
26464: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26465: if test -z "$ac_tt"; then
26466: break
26467: elif $ac_last_try; then
26468: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26469: else
26470: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26471: fi
26472: done
26473:
26474: # For the awk script, D is an array of macro values keyed by name,
26475: # likewise P contains macro parameters if any. Preserve backslash
26476: # newline sequences.
26477:
26478: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26479: sed -n '
26480: s/.\{148\}/&'"$ac_delim"'/g
26481: t rset
26482: :rset
26483: s/^[ ]*#[ ]*define[ ][ ]*/ /
26484: t def
26485: d
26486: :def
26487: s/\\$//
26488: t bsnl
26489: s/["\\]/\\&/g
26490: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26491: D["\1"]=" \3"/p
26492: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26493: d
26494: :bsnl
26495: s/["\\]/\\&/g
26496: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26497: D["\1"]=" \3\\\\\\n"\\/p
26498: t cont
26499: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26500: t cont
26501: d
26502: :cont
26503: n
26504: s/.\{148\}/&'"$ac_delim"'/g
26505: t clear
26506: :clear
26507: s/\\$//
26508: t bsnlc
26509: s/["\\]/\\&/g; s/^/"/; s/$/"/p
26510: d
26511: :bsnlc
26512: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26513: b cont
26514: ' <confdefs.h | sed '
26515: s/'"$ac_delim"'/"\\\
26516: "/g' >>$CONFIG_STATUS || ac_write_fail=1
26517:
26518: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26519: for (key in D) D_is_set[key] = 1
26520: FS = ""
26521: }
26522: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26523: line = \$ 0
26524: split(line, arg, " ")
26525: if (arg[1] == "#") {
26526: defundef = arg[2]
26527: mac1 = arg[3]
26528: } else {
26529: defundef = substr(arg[1], 2)
26530: mac1 = arg[2]
26531: }
26532: split(mac1, mac2, "(") #)
26533: macro = mac2[1]
26534: prefix = substr(line, 1, index(line, defundef) - 1)
26535: if (D_is_set[macro]) {
26536: # Preserve the white space surrounding the "#".
26537: print prefix "define", macro P[macro] D[macro]
26538: next
26539: } else {
26540: # Replace #undef with comments. This is necessary, for example,
26541: # in the case of _POSIX_SOURCE, which is predefined and required
26542: # on some systems where configure will not decide to define it.
26543: if (defundef == "undef") {
26544: print "/*", prefix defundef, macro, "*/"
26545: next
26546: }
26547: }
26548: }
26549: { print }
26550: _ACAWK
26551: _ACEOF
26552: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26553: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26554: fi # test -n "$CONFIG_HEADERS"
26555:
26556:
26557: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26558: shift
26559: for ac_tag
26560: do
26561: case $ac_tag in
26562: :[FHLC]) ac_mode=$ac_tag; continue;;
26563: esac
26564: case $ac_mode$ac_tag in
26565: :[FHL]*:*);;
26566: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
26567: :[FH]-) ac_tag=-:-;;
26568: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26569: esac
26570: ac_save_IFS=$IFS
26571: IFS=:
26572: set x $ac_tag
26573: IFS=$ac_save_IFS
26574: shift
26575: ac_file=$1
26576: shift
26577:
26578: case $ac_mode in
26579: :L) ac_source=$1;;
26580: :[FH])
26581: ac_file_inputs=
26582: for ac_f
26583: do
26584: case $ac_f in
26585: -) ac_f="$ac_tmp/stdin";;
26586: *) # Look for the file first in the build tree, then in the source tree
26587: # (if the path is not absolute). The absolute path cannot be DOS-style,
26588: # because $ac_f cannot contain `:'.
26589: test -f "$ac_f" ||
26590: case $ac_f in
26591: [\\/$]*) false;;
26592: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26593: esac ||
26594: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26595: esac
26596: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26597: as_fn_append ac_file_inputs " '$ac_f'"
26598: done
26599:
26600: # Let's still pretend it is `configure' which instantiates (i.e., don't
26601: # use $as_me), people would be surprised to read:
26602: # /* config.h. Generated by config.status. */
26603: configure_input='Generated from '`
26604: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26605: `' by configure.'
26606: if test x"$ac_file" != x-; then
26607: configure_input="$ac_file. $configure_input"
26608: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26609: $as_echo "$as_me: creating $ac_file" >&6;}
26610: fi
26611: # Neutralize special characters interpreted by sed in replacement strings.
26612: case $configure_input in #(
26613: *\&* | *\|* | *\\* )
26614: ac_sed_conf_input=`$as_echo "$configure_input" |
26615: sed 's/[\\\\&|]/\\\\&/g'`;; #(
26616: *) ac_sed_conf_input=$configure_input;;
26617: esac
26618:
26619: case $ac_tag in
26620: *:-:* | *:-) cat >"$ac_tmp/stdin" \
26621: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26622: esac
26623: ;;
26624: esac
26625:
26626: ac_dir=`$as_dirname -- "$ac_file" ||
26627: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26628: X"$ac_file" : 'X\(//\)[^/]' \| \
26629: X"$ac_file" : 'X\(//\)$' \| \
26630: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26631: $as_echo X"$ac_file" |
26632: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26633: s//\1/
26634: q
26635: }
26636: /^X\(\/\/\)[^/].*/{
26637: s//\1/
26638: q
26639: }
26640: /^X\(\/\/\)$/{
26641: s//\1/
26642: q
26643: }
26644: /^X\(\/\).*/{
26645: s//\1/
26646: q
26647: }
26648: s/.*/./; q'`
26649: as_dir="$ac_dir"; as_fn_mkdir_p
26650: ac_builddir=.
26651:
26652: case "$ac_dir" in
26653: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26654: *)
26655: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26656: # A ".." for each directory in $ac_dir_suffix.
26657: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26658: case $ac_top_builddir_sub in
26659: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26660: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26661: esac ;;
26662: esac
26663: ac_abs_top_builddir=$ac_pwd
26664: ac_abs_builddir=$ac_pwd$ac_dir_suffix
26665: # for backward compatibility:
26666: ac_top_builddir=$ac_top_build_prefix
26667:
26668: case $srcdir in
26669: .) # We are building in place.
26670: ac_srcdir=.
26671: ac_top_srcdir=$ac_top_builddir_sub
26672: ac_abs_top_srcdir=$ac_pwd ;;
26673: [\\/]* | ?:[\\/]* ) # Absolute name.
26674: ac_srcdir=$srcdir$ac_dir_suffix;
26675: ac_top_srcdir=$srcdir
26676: ac_abs_top_srcdir=$srcdir ;;
26677: *) # Relative name.
26678: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26679: ac_top_srcdir=$ac_top_build_prefix$srcdir
26680: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26681: esac
26682: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26683:
26684:
26685: case $ac_mode in
26686: :F)
26687: #
26688: # CONFIG_FILE
26689: #
26690:
26691: case $INSTALL in
26692: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26693: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26694: esac
26695: ac_MKDIR_P=$MKDIR_P
26696: case $MKDIR_P in
26697: [\\/$]* | ?:[\\/]* ) ;;
26698: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26699: esac
26700: _ACEOF
26701:
26702: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26703: # If the template does not know about datarootdir, expand it.
26704: # FIXME: This hack should be removed a few years after 2.60.
26705: ac_datarootdir_hack=; ac_datarootdir_seen=
26706: ac_sed_dataroot='
26707: /datarootdir/ {
26708: p
26709: q
26710: }
26711: /@datadir@/p
26712: /@docdir@/p
26713: /@infodir@/p
26714: /@localedir@/p
26715: /@mandir@/p'
26716: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26717: *datarootdir*) ac_datarootdir_seen=yes;;
26718: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26719: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26720: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26721: _ACEOF
26722: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26723: ac_datarootdir_hack='
26724: s&@datadir@&$datadir&g
26725: s&@docdir@&$docdir&g
26726: s&@infodir@&$infodir&g
26727: s&@localedir@&$localedir&g
26728: s&@mandir@&$mandir&g
26729: s&\\\${datarootdir}&$datarootdir&g' ;;
26730: esac
26731: _ACEOF
26732:
26733: # Neutralize VPATH when `$srcdir' = `.'.
26734: # Shell code in configure.ac might set extrasub.
26735: # FIXME: do we really want to maintain this feature?
26736: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26737: ac_sed_extra="$ac_vpsub
26738: $extrasub
26739: _ACEOF
26740: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26741: :t
26742: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26743: s|@configure_input@|$ac_sed_conf_input|;t t
26744: s&@top_builddir@&$ac_top_builddir_sub&;t t
26745: s&@top_build_prefix@&$ac_top_build_prefix&;t t
26746: s&@srcdir@&$ac_srcdir&;t t
26747: s&@abs_srcdir@&$ac_abs_srcdir&;t t
26748: s&@top_srcdir@&$ac_top_srcdir&;t t
26749: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26750: s&@builddir@&$ac_builddir&;t t
26751: s&@abs_builddir@&$ac_abs_builddir&;t t
26752: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26753: s&@INSTALL@&$ac_INSTALL&;t t
26754: s&@MKDIR_P@&$ac_MKDIR_P&;t t
26755: $ac_datarootdir_hack
26756: "
26757: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26758: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26759:
26760: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26761: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26762: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
26763: "$ac_tmp/out"`; test -z "$ac_out"; } &&
26764: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26765: which seems to be undefined. Please make sure it is defined" >&5
26766: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26767: which seems to be undefined. Please make sure it is defined" >&2;}
26768:
26769: rm -f "$ac_tmp/stdin"
26770: case $ac_file in
26771: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26772: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26773: esac \
26774: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26775: ;;
26776: :H)
26777: #
26778: # CONFIG_HEADER
26779: #
26780: if test x"$ac_file" != x-; then
26781: {
26782: $as_echo "/* $configure_input */" \
26783: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26784: } >"$ac_tmp/config.h" \
26785: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26786: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26787: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26788: $as_echo "$as_me: $ac_file is unchanged" >&6;}
26789: else
26790: rm -f "$ac_file"
26791: mv "$ac_tmp/config.h" "$ac_file" \
26792: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26793: fi
26794: else
26795: $as_echo "/* $configure_input */" \
26796: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26797: || as_fn_error $? "could not create -" "$LINENO" 5
26798: fi
26799: # Compute "$ac_file"'s index in $config_headers.
26800: _am_arg="$ac_file"
26801: _am_stamp_count=1
26802: for _am_header in $config_headers :; do
26803: case $_am_header in
26804: $_am_arg | $_am_arg:* )
26805: break ;;
26806: * )
26807: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26808: esac
26809: done
26810: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26811: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26812: X"$_am_arg" : 'X\(//\)[^/]' \| \
26813: X"$_am_arg" : 'X\(//\)$' \| \
26814: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26815: $as_echo X"$_am_arg" |
26816: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26817: s//\1/
26818: q
26819: }
26820: /^X\(\/\/\)[^/].*/{
26821: s//\1/
26822: q
26823: }
26824: /^X\(\/\/\)$/{
26825: s//\1/
26826: q
26827: }
26828: /^X\(\/\).*/{
26829: s//\1/
26830: q
26831: }
26832: s/.*/./; q'`/stamp-h$_am_stamp_count
26833: ;;
26834:
26835: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26836: $as_echo "$as_me: executing $ac_file commands" >&6;}
26837: ;;
26838: esac
26839:
26840:
26841: case $ac_file$ac_mode in
26842: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26843: # Autoconf 2.62 quotes --file arguments for eval, but not when files
26844: # are listed without --file. Let's play safe and only enable the eval
26845: # if we detect the quoting.
26846: case $CONFIG_FILES in
26847: *\'*) eval set x "$CONFIG_FILES" ;;
26848: *) set x $CONFIG_FILES ;;
26849: esac
26850: shift
26851: for mf
26852: do
26853: # Strip MF so we end up with the name of the file.
26854: mf=`echo "$mf" | sed -e 's/:.*$//'`
26855: # Check whether this is an Automake generated Makefile or not.
26856: # We used to match only the files named `Makefile.in', but
26857: # some people rename them; so instead we look at the file content.
26858: # Grep'ing the first line is not enough: some people post-process
26859: # each Makefile.in and add a new line on top of each file to say so.
26860: # Grep'ing the whole file is not good either: AIX grep has a line
26861: # limit of 2048, but all sed's we know have understand at least 4000.
26862: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26863: dirpart=`$as_dirname -- "$mf" ||
26864: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26865: X"$mf" : 'X\(//\)[^/]' \| \
26866: X"$mf" : 'X\(//\)$' \| \
26867: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26868: $as_echo X"$mf" |
26869: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26870: s//\1/
26871: q
26872: }
26873: /^X\(\/\/\)[^/].*/{
26874: s//\1/
26875: q
26876: }
26877: /^X\(\/\/\)$/{
26878: s//\1/
26879: q
26880: }
26881: /^X\(\/\).*/{
26882: s//\1/
26883: q
26884: }
26885: s/.*/./; q'`
26886: else
26887: continue
26888: fi
26889: # Extract the definition of DEPDIR, am__include, and am__quote
26890: # from the Makefile without running `make'.
26891: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26892: test -z "$DEPDIR" && continue
26893: am__include=`sed -n 's/^am__include = //p' < "$mf"`
26894: test -z "am__include" && continue
26895: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26896: # When using ansi2knr, U may be empty or an underscore; expand it
26897: U=`sed -n 's/^U = //p' < "$mf"`
26898: # Find all dependency output files, they are included files with
26899: # $(DEPDIR) in their names. We invoke sed twice because it is the
26900: # simplest approach to changing $(DEPDIR) to its actual value in the
26901: # expansion.
26902: for file in `sed -n "
26903: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26904: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26905: # Make sure the directory exists.
26906: test -f "$dirpart/$file" && continue
26907: fdir=`$as_dirname -- "$file" ||
26908: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26909: X"$file" : 'X\(//\)[^/]' \| \
26910: X"$file" : 'X\(//\)$' \| \
26911: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26912: $as_echo X"$file" |
26913: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26914: s//\1/
26915: q
26916: }
26917: /^X\(\/\/\)[^/].*/{
26918: s//\1/
26919: q
26920: }
26921: /^X\(\/\/\)$/{
26922: s//\1/
26923: q
26924: }
26925: /^X\(\/\).*/{
26926: s//\1/
26927: q
26928: }
26929: s/.*/./; q'`
26930: as_dir=$dirpart/$fdir; as_fn_mkdir_p
26931: # echo "creating $dirpart/$file"
26932: echo '# dummy' > "$dirpart/$file"
26933: done
26934: done
26935: }
26936: ;;
26937: "libtool":C)
26938:
26939: # See if we are running on zsh, and set the options which allow our
26940: # commands through without removal of \ escapes.
26941: if test -n "${ZSH_VERSION+set}" ; then
26942: setopt NO_GLOB_SUBST
26943: fi
26944:
26945: cfgfile="${ofile}T"
26946: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26947: $RM "$cfgfile"
26948:
26949: cat <<_LT_EOF >> "$cfgfile"
26950: #! $SHELL
26951:
26952: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26953: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26954: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26955: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26956: #
26957: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26958: # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
26959: # Inc.
26960: # Written by Gordon Matzigkeit, 1996
26961: #
26962: # This file is part of GNU Libtool.
26963: #
26964: # GNU Libtool is free software; you can redistribute it and/or
26965: # modify it under the terms of the GNU General Public License as
26966: # published by the Free Software Foundation; either version 2 of
26967: # the License, or (at your option) any later version.
26968: #
26969: # As a special exception to the GNU General Public License,
26970: # if you distribute this file as part of a program or library that
26971: # is built using GNU Libtool, you may include this file under the
26972: # same distribution terms that you use for the rest of that program.
26973: #
26974: # GNU Libtool is distributed in the hope that it will be useful,
26975: # but WITHOUT ANY WARRANTY; without even the implied warranty of
26976: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26977: # GNU General Public License for more details.
26978: #
26979: # You should have received a copy of the GNU General Public License
26980: # along with GNU Libtool; see the file COPYING. If not, a copy
26981: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26982: # obtained by writing to the Free Software Foundation, Inc.,
26983: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26984:
26985:
26986: # The names of the tagged configurations supported by this script.
26987: available_tags=""
26988:
26989: # ### BEGIN LIBTOOL CONFIG
26990:
26991: # Whether or not to build shared libraries.
26992: build_libtool_libs=$enable_shared
26993:
26994: # Which release of libtool.m4 was used?
26995: macro_version=$macro_version
26996: macro_revision=$macro_revision
26997:
26998: # Whether or not to build static libraries.
26999: build_old_libs=$enable_static
27000:
27001: # What type of objects to build.
27002: pic_mode=$pic_mode
27003:
27004: # Whether or not to optimize for fast installation.
27005: fast_install=$enable_fast_install
27006:
27007: # Shell to use when invoking shell scripts.
27008: SHELL=$lt_SHELL
27009:
27010: # An echo program that protects backslashes.
27011: ECHO=$lt_ECHO
27012:
27013: # The host system.
27014: host_alias=$host_alias
27015: host=$host
27016: host_os=$host_os
27017:
27018: # The build system.
27019: build_alias=$build_alias
27020: build=$build
27021: build_os=$build_os
27022:
27023: # A sed program that does not truncate output.
27024: SED=$lt_SED
27025:
27026: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27027: Xsed="\$SED -e 1s/^X//"
27028:
27029: # A grep program that handles long lines.
27030: GREP=$lt_GREP
27031:
27032: # An ERE matcher.
27033: EGREP=$lt_EGREP
27034:
27035: # A literal string matcher.
27036: FGREP=$lt_FGREP
27037:
27038: # A BSD- or MS-compatible name lister.
27039: NM=$lt_NM
27040:
27041: # Whether we need soft or hard links.
27042: LN_S=$lt_LN_S
27043:
27044: # What is the maximum length of a command?
27045: max_cmd_len=$max_cmd_len
27046:
27047: # Object file suffix (normally "o").
27048: objext=$ac_objext
27049:
27050: # Executable file suffix (normally "").
27051: exeext=$exeext
27052:
27053: # whether the shell understands "unset".
27054: lt_unset=$lt_unset
27055:
27056: # turn spaces into newlines.
27057: SP2NL=$lt_lt_SP2NL
27058:
27059: # turn newlines into spaces.
27060: NL2SP=$lt_lt_NL2SP
27061:
27062: # convert \$build file names to \$host format.
27063: to_host_file_cmd=$lt_cv_to_host_file_cmd
27064:
27065: # convert \$build files to toolchain format.
27066: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
27067:
27068: # An object symbol dumper.
27069: OBJDUMP=$lt_OBJDUMP
27070:
27071: # Method to check whether dependent libraries are shared objects.
27072: deplibs_check_method=$lt_deplibs_check_method
27073:
27074: # Command to use when deplibs_check_method = "file_magic".
27075: file_magic_cmd=$lt_file_magic_cmd
27076:
27077: # How to find potential files when deplibs_check_method = "file_magic".
27078: file_magic_glob=$lt_file_magic_glob
27079:
27080: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
27081: want_nocaseglob=$lt_want_nocaseglob
27082:
27083: # DLL creation program.
27084: DLLTOOL=$lt_DLLTOOL
27085:
27086: # Command to associate shared and link libraries.
27087: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
27088:
27089: # The archiver.
27090: AR=$lt_AR
27091:
27092: # Flags to create an archive.
27093: AR_FLAGS=$lt_AR_FLAGS
27094:
27095: # How to feed a file listing to the archiver.
27096: archiver_list_spec=$lt_archiver_list_spec
27097:
27098: # A symbol stripping program.
27099: STRIP=$lt_STRIP
27100:
27101: # Commands used to install an old-style archive.
27102: RANLIB=$lt_RANLIB
27103: old_postinstall_cmds=$lt_old_postinstall_cmds
27104: old_postuninstall_cmds=$lt_old_postuninstall_cmds
27105:
27106: # Whether to use a lock for old archive extraction.
27107: lock_old_archive_extraction=$lock_old_archive_extraction
27108:
27109: # A C compiler.
27110: LTCC=$lt_CC
27111:
27112: # LTCC compiler flags.
27113: LTCFLAGS=$lt_CFLAGS
27114:
27115: # Take the output of nm and produce a listing of raw symbols and C names.
27116: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27117:
27118: # Transform the output of nm in a proper C declaration.
27119: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27120:
27121: # Transform the output of nm in a C name address pair.
27122: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27123:
27124: # Transform the output of nm in a C name address pair when lib prefix is needed.
27125: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27126:
27127: # Specify filename containing input files for \$NM.
27128: nm_file_list_spec=$lt_nm_file_list_spec
27129:
27130: # The root where to search for dependent libraries,and in which our libraries should be installed.
27131: lt_sysroot=$lt_sysroot
27132:
27133: # The name of the directory that contains temporary libtool files.
27134: objdir=$objdir
27135:
27136: # Used to examine libraries when file_magic_cmd begins with "file".
27137: MAGIC_CMD=$MAGIC_CMD
27138:
27139: # Must we lock files when doing compilation?
27140: need_locks=$lt_need_locks
27141:
27142: # Manifest tool.
27143: MANIFEST_TOOL=$lt_MANIFEST_TOOL
27144:
27145: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27146: DSYMUTIL=$lt_DSYMUTIL
27147:
27148: # Tool to change global to local symbols on Mac OS X.
27149: NMEDIT=$lt_NMEDIT
27150:
27151: # Tool to manipulate fat objects and archives on Mac OS X.
27152: LIPO=$lt_LIPO
27153:
27154: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27155: OTOOL=$lt_OTOOL
27156:
27157: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27158: OTOOL64=$lt_OTOOL64
27159:
27160: # Old archive suffix (normally "a").
27161: libext=$libext
27162:
27163: # Shared library suffix (normally ".so").
27164: shrext_cmds=$lt_shrext_cmds
27165:
27166: # The commands to extract the exported symbol list from a shared archive.
27167: extract_expsyms_cmds=$lt_extract_expsyms_cmds
27168:
27169: # Variables whose values should be saved in libtool wrapper scripts and
27170: # restored at link time.
27171: variables_saved_for_relink=$lt_variables_saved_for_relink
27172:
27173: # Do we need the "lib" prefix for modules?
27174: need_lib_prefix=$need_lib_prefix
27175:
27176: # Do we need a version for libraries?
27177: need_version=$need_version
27178:
27179: # Library versioning type.
27180: version_type=$version_type
27181:
27182: # Shared library runtime path variable.
27183: runpath_var=$runpath_var
27184:
27185: # Shared library path variable.
27186: shlibpath_var=$shlibpath_var
27187:
27188: # Is shlibpath searched before the hard-coded library search path?
27189: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27190:
27191: # Format of library name prefix.
27192: libname_spec=$lt_libname_spec
27193:
27194: # List of archive names. First name is the real one, the rest are links.
27195: # The last name is the one that the linker finds with -lNAME
27196: library_names_spec=$lt_library_names_spec
27197:
27198: # The coded name of the library, if different from the real name.
27199: soname_spec=$lt_soname_spec
27200:
27201: # Permission mode override for installation of shared libraries.
27202: install_override_mode=$lt_install_override_mode
27203:
27204: # Command to use after installation of a shared archive.
27205: postinstall_cmds=$lt_postinstall_cmds
27206:
27207: # Command to use after uninstallation of a shared archive.
27208: postuninstall_cmds=$lt_postuninstall_cmds
27209:
27210: # Commands used to finish a libtool library installation in a directory.
27211: finish_cmds=$lt_finish_cmds
27212:
27213: # As "finish_cmds", except a single script fragment to be evaled but
27214: # not shown.
27215: finish_eval=$lt_finish_eval
27216:
27217: # Whether we should hardcode library paths into libraries.
27218: hardcode_into_libs=$hardcode_into_libs
27219:
27220: # Compile-time system search path for libraries.
27221: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27222:
27223: # Run-time system search path for libraries.
27224: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27225:
27226: # Whether dlopen is supported.
27227: dlopen_support=$enable_dlopen
27228:
27229: # Whether dlopen of programs is supported.
27230: dlopen_self=$enable_dlopen_self
27231:
27232: # Whether dlopen of statically linked programs is supported.
27233: dlopen_self_static=$enable_dlopen_self_static
27234:
27235: # Commands to strip libraries.
27236: old_striplib=$lt_old_striplib
27237: striplib=$lt_striplib
27238:
27239:
27240: # The linker used to build libraries.
27241: LD=$lt_LD
27242:
27243: # How to create reloadable object files.
27244: reload_flag=$lt_reload_flag
27245: reload_cmds=$lt_reload_cmds
27246:
27247: # Commands used to build an old-style archive.
27248: old_archive_cmds=$lt_old_archive_cmds
27249:
27250: # A language specific compiler.
27251: CC=$lt_compiler
27252:
27253: # Is the compiler the GNU compiler?
27254: with_gcc=$GCC
27255:
27256: # Compiler flag to turn off builtin functions.
27257: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27258:
27259: # Additional compiler flags for building library objects.
27260: pic_flag=$lt_lt_prog_compiler_pic
27261:
27262: # How to pass a linker flag through the compiler.
27263: wl=$lt_lt_prog_compiler_wl
27264:
27265: # Compiler flag to prevent dynamic linking.
27266: link_static_flag=$lt_lt_prog_compiler_static
27267:
27268: # Does compiler simultaneously support -c and -o options?
27269: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27270:
27271: # Whether or not to add -lc for building shared libraries.
27272: build_libtool_need_lc=$archive_cmds_need_lc
27273:
27274: # Whether or not to disallow shared libs when runtime libs are static.
27275: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27276:
27277: # Compiler flag to allow reflexive dlopens.
27278: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27279:
27280: # Compiler flag to generate shared objects directly from archives.
27281: whole_archive_flag_spec=$lt_whole_archive_flag_spec
27282:
27283: # Whether the compiler copes with passing no objects directly.
27284: compiler_needs_object=$lt_compiler_needs_object
27285:
27286: # Create an old-style archive from a shared archive.
27287: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27288:
27289: # Create a temporary old-style archive to link instead of a shared archive.
27290: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27291:
27292: # Commands used to build a shared archive.
27293: archive_cmds=$lt_archive_cmds
27294: archive_expsym_cmds=$lt_archive_expsym_cmds
27295:
27296: # Commands used to build a loadable module if different from building
27297: # a shared archive.
27298: module_cmds=$lt_module_cmds
27299: module_expsym_cmds=$lt_module_expsym_cmds
27300:
27301: # Whether we are building with GNU ld or not.
27302: with_gnu_ld=$lt_with_gnu_ld
27303:
27304: # Flag that allows shared libraries with undefined symbols to be built.
27305: allow_undefined_flag=$lt_allow_undefined_flag
27306:
27307: # Flag that enforces no undefined symbols.
27308: no_undefined_flag=$lt_no_undefined_flag
27309:
27310: # Flag to hardcode \$libdir into a binary during linking.
27311: # This must work even if \$libdir does not exist
27312: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27313:
27314: # If ld is used when linking, flag to hardcode \$libdir into a binary
27315: # during linking. This must work even if \$libdir does not exist.
27316: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27317:
27318: # Whether we need a single "-rpath" flag with a separated argument.
27319: hardcode_libdir_separator=$lt_hardcode_libdir_separator
27320:
27321: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27322: # DIR into the resulting binary.
27323: hardcode_direct=$hardcode_direct
27324:
27325: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27326: # DIR into the resulting binary and the resulting library dependency is
27327: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27328: # library is relocated.
27329: hardcode_direct_absolute=$hardcode_direct_absolute
27330:
27331: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27332: # into the resulting binary.
27333: hardcode_minus_L=$hardcode_minus_L
27334:
27335: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27336: # into the resulting binary.
27337: hardcode_shlibpath_var=$hardcode_shlibpath_var
27338:
27339: # Set to "yes" if building a shared library automatically hardcodes DIR
27340: # into the library and all subsequent libraries and executables linked
27341: # against it.
27342: hardcode_automatic=$hardcode_automatic
27343:
27344: # Set to yes if linker adds runtime paths of dependent libraries
27345: # to runtime path list.
27346: inherit_rpath=$inherit_rpath
27347:
27348: # Whether libtool must link a program against all its dependency libraries.
27349: link_all_deplibs=$link_all_deplibs
27350:
27351: # Set to "yes" if exported symbols are required.
27352: always_export_symbols=$always_export_symbols
27353:
27354: # The commands to list exported symbols.
27355: export_symbols_cmds=$lt_export_symbols_cmds
27356:
27357: # Symbols that should not be listed in the preloaded symbols.
27358: exclude_expsyms=$lt_exclude_expsyms
27359:
27360: # Symbols that must always be exported.
27361: include_expsyms=$lt_include_expsyms
27362:
27363: # Commands necessary for linking programs (against libraries) with templates.
27364: prelink_cmds=$lt_prelink_cmds
27365:
27366: # Commands necessary for finishing linking programs.
27367: postlink_cmds=$lt_postlink_cmds
27368:
27369: # Specify filename containing input files.
27370: file_list_spec=$lt_file_list_spec
27371:
27372: # How to hardcode a shared library path into an executable.
27373: hardcode_action=$hardcode_action
27374:
27375: # ### END LIBTOOL CONFIG
27376:
27377: _LT_EOF
27378:
27379: case $host_os in
27380: aix3*)
27381: cat <<\_LT_EOF >> "$cfgfile"
27382: # AIX sometimes has problems with the GCC collect2 program. For some
27383: # reason, if we set the COLLECT_NAMES environment variable, the problems
27384: # vanish in a puff of smoke.
27385: if test "X${COLLECT_NAMES+set}" != Xset; then
27386: COLLECT_NAMES=
27387: export COLLECT_NAMES
27388: fi
27389: _LT_EOF
27390: ;;
27391: esac
27392:
27393:
27394: ltmain="$ac_aux_dir/ltmain.sh"
27395:
27396:
27397: # We use sed instead of cat because bash on DJGPP gets confused if
27398: # if finds mixed CR/LF and LF-only lines. Since sed operates in
27399: # text mode, it properly converts lines to CR/LF. This bash problem
27400: # is reportedly fixed, but why not run on old versions too?
27401: sed '$q' "$ltmain" >> "$cfgfile" \
27402: || (rm -f "$cfgfile"; exit 1)
27403:
27404: if test x"$xsi_shell" = xyes; then
27405: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
27406: func_dirname ()\
27407: {\
27408: \ case ${1} in\
27409: \ */*) func_dirname_result="${1%/*}${2}" ;;\
27410: \ * ) func_dirname_result="${3}" ;;\
27411: \ esac\
27412: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
27413: && mv -f "$cfgfile.tmp" "$cfgfile" \
27414: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27415: test 0 -eq $? || _lt_function_replace_fail=:
27416:
27417:
27418: sed -e '/^func_basename ()$/,/^} # func_basename /c\
27419: func_basename ()\
27420: {\
27421: \ func_basename_result="${1##*/}"\
27422: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
27423: && mv -f "$cfgfile.tmp" "$cfgfile" \
27424: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27425: test 0 -eq $? || _lt_function_replace_fail=:
27426:
27427:
27428: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
27429: func_dirname_and_basename ()\
27430: {\
27431: \ case ${1} in\
27432: \ */*) func_dirname_result="${1%/*}${2}" ;;\
27433: \ * ) func_dirname_result="${3}" ;;\
27434: \ esac\
27435: \ func_basename_result="${1##*/}"\
27436: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
27437: && mv -f "$cfgfile.tmp" "$cfgfile" \
27438: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27439: test 0 -eq $? || _lt_function_replace_fail=:
27440:
27441:
27442: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
27443: func_stripname ()\
27444: {\
27445: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
27446: \ # positional parameters, so assign one to ordinary parameter first.\
27447: \ func_stripname_result=${3}\
27448: \ func_stripname_result=${func_stripname_result#"${1}"}\
27449: \ func_stripname_result=${func_stripname_result%"${2}"}\
27450: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
27451: && mv -f "$cfgfile.tmp" "$cfgfile" \
27452: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27453: test 0 -eq $? || _lt_function_replace_fail=:
27454:
27455:
27456: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
27457: func_split_long_opt ()\
27458: {\
27459: \ func_split_long_opt_name=${1%%=*}\
27460: \ func_split_long_opt_arg=${1#*=}\
27461: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
27462: && mv -f "$cfgfile.tmp" "$cfgfile" \
27463: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27464: test 0 -eq $? || _lt_function_replace_fail=:
27465:
27466:
27467: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
27468: func_split_short_opt ()\
27469: {\
27470: \ func_split_short_opt_arg=${1#??}\
27471: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
27472: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
27473: && mv -f "$cfgfile.tmp" "$cfgfile" \
27474: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27475: test 0 -eq $? || _lt_function_replace_fail=:
27476:
27477:
27478: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
27479: func_lo2o ()\
27480: {\
27481: \ case ${1} in\
27482: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
27483: \ *) func_lo2o_result=${1} ;;\
27484: \ esac\
27485: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
27486: && mv -f "$cfgfile.tmp" "$cfgfile" \
27487: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27488: test 0 -eq $? || _lt_function_replace_fail=:
27489:
27490:
27491: sed -e '/^func_xform ()$/,/^} # func_xform /c\
27492: func_xform ()\
27493: {\
27494: func_xform_result=${1%.*}.lo\
27495: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
27496: && mv -f "$cfgfile.tmp" "$cfgfile" \
27497: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27498: test 0 -eq $? || _lt_function_replace_fail=:
27499:
27500:
27501: sed -e '/^func_arith ()$/,/^} # func_arith /c\
27502: func_arith ()\
27503: {\
27504: func_arith_result=$(( $* ))\
27505: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
27506: && mv -f "$cfgfile.tmp" "$cfgfile" \
27507: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27508: test 0 -eq $? || _lt_function_replace_fail=:
27509:
27510:
27511: sed -e '/^func_len ()$/,/^} # func_len /c\
27512: func_len ()\
27513: {\
27514: func_len_result=${#1}\
27515: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
27516: && mv -f "$cfgfile.tmp" "$cfgfile" \
27517: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27518: test 0 -eq $? || _lt_function_replace_fail=:
27519:
27520: fi
27521:
27522: if test x"$lt_shell_append" = xyes; then
27523: sed -e '/^func_append ()$/,/^} # func_append /c\
27524: func_append ()\
27525: {\
27526: eval "${1}+=\\${2}"\
27527: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
27528: && mv -f "$cfgfile.tmp" "$cfgfile" \
27529: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27530: test 0 -eq $? || _lt_function_replace_fail=:
27531:
27532:
27533: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
27534: func_append_quoted ()\
27535: {\
27536: \ func_quote_for_eval "${2}"\
27537: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
27538: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
27539: && mv -f "$cfgfile.tmp" "$cfgfile" \
27540: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27541: test 0 -eq $? || _lt_function_replace_fail=:
27542:
27543:
27544: # Save a `func_append' function call where possible by direct use of '+='
27545: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
27546: && mv -f "$cfgfile.tmp" "$cfgfile" \
27547: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27548: test 0 -eq $? || _lt_function_replace_fail=:
27549: else
27550: # Save a `func_append' function call even when '+=' is not available
27551: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
27552: && mv -f "$cfgfile.tmp" "$cfgfile" \
27553: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27554: test 0 -eq $? || _lt_function_replace_fail=:
27555: fi
27556:
27557: if test x"$_lt_function_replace_fail" = x":"; then
27558: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
27559: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
27560: fi
27561:
27562:
27563: mv -f "$cfgfile" "$ofile" ||
27564: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27565: chmod +x "$ofile"
27566:
27567: ;;
27568: "ntpdc/nl.pl":F) chmod +x ntpdc/nl.pl ;;
27569: "scripts/calc_tickadj":F) chmod +x scripts/calc_tickadj ;;
27570: "scripts/checktime":F) chmod +x scripts/checktime ;;
27571: "scripts/freq_adj":F) chmod +x scripts/freq_adj ;;
27572: "scripts/html2man":F) chmod +x scripts/html2man ;;
27573: "scripts/mkver":F) chmod +x scripts/mkver ;;
27574: "scripts/ntp-wait":F) chmod +x scripts/ntp-wait ;;
27575: "scripts/ntpsweep":F) chmod +x scripts/ntpsweep ;;
27576: "scripts/ntptrace":F) chmod +x scripts/ntptrace ;;
27577: "scripts/ntpver":F) chmod +x scripts/ntpver ;;
27578: "scripts/plot_summary":F) chmod +x scripts/plot_summary ;;
27579: "scripts/summary":F) chmod +x scripts/summary ;;
27580:
27581: esac
27582: done # for ac_tag
27583:
27584:
27585: as_fn_exit 0
27586: _ACEOF
27587: ac_clean_files=$ac_clean_files_save
27588:
27589: test $ac_write_fail = 0 ||
27590: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27591:
27592:
27593: # configure is writing to config.log, and then calls config.status.
27594: # config.status does its own redirection, appending to config.log.
27595: # Unfortunately, on DOS this fails, as config.log is still kept open
27596: # by configure, so config.status won't be able to write to it; its
27597: # output is simply discarded. So we exec the FD to /dev/null,
27598: # effectively closing config.log, so it can be properly (re)opened and
27599: # appended to by config.status. When coming back to configure, we
27600: # need to make the FD available again.
27601: if test "$no_create" != yes; then
27602: ac_cs_success=:
27603: ac_config_status_args=
27604: test "$silent" = yes &&
27605: ac_config_status_args="$ac_config_status_args --quiet"
27606: exec 5>/dev/null
27607: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27608: exec 5>>config.log
27609: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27610: # would make configure fail if this is the last instruction.
27611: $ac_cs_success || as_fn_exit 1
27612: fi
27613:
27614: #
27615: # CONFIG_SUBDIRS section.
27616: #
27617: if test "$no_recursion" != yes; then
27618:
27619: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
27620: # so they do not pile up.
27621: ac_sub_configure_args=
27622: ac_prev=
27623: eval "set x $ac_configure_args"
27624: shift
27625: for ac_arg
27626: do
27627: if test -n "$ac_prev"; then
27628: ac_prev=
27629: continue
27630: fi
27631: case $ac_arg in
27632: -cache-file | --cache-file | --cache-fil | --cache-fi \
27633: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27634: ac_prev=cache_file ;;
27635: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27636: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27637: | --c=*)
27638: ;;
27639: --config-cache | -C)
27640: ;;
27641: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27642: ac_prev=srcdir ;;
27643: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27644: ;;
27645: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27646: ac_prev=prefix ;;
27647: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27648: ;;
27649: --disable-option-checking)
27650: ;;
27651: *)
27652: case $ac_arg in
27653: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27654: esac
27655: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
27656: esac
27657: done
27658:
27659: # Always prepend --prefix to ensure using the same prefix
27660: # in subdir configurations.
27661: ac_arg="--prefix=$prefix"
27662: case $ac_arg in
27663: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27664: esac
27665: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27666:
27667: # Pass --silent
27668: if test "$silent" = yes; then
27669: ac_sub_configure_args="--silent $ac_sub_configure_args"
27670: fi
27671:
27672: # Always prepend --disable-option-checking to silence warnings, since
27673: # different subdirs can have different --enable and --with options.
27674: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
27675:
27676: ac_popdir=`pwd`
27677: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27678:
27679: # Do not complain, so a configure script can configure whichever
27680: # parts of a large source tree are present.
27681: test -d "$srcdir/$ac_dir" || continue
27682:
27683: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27684: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
27685: $as_echo "$ac_msg" >&6
27686: as_dir="$ac_dir"; as_fn_mkdir_p
27687: ac_builddir=.
27688:
27689: case "$ac_dir" in
27690: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27691: *)
27692: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27693: # A ".." for each directory in $ac_dir_suffix.
27694: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27695: case $ac_top_builddir_sub in
27696: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27697: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27698: esac ;;
27699: esac
27700: ac_abs_top_builddir=$ac_pwd
27701: ac_abs_builddir=$ac_pwd$ac_dir_suffix
27702: # for backward compatibility:
27703: ac_top_builddir=$ac_top_build_prefix
27704:
27705: case $srcdir in
27706: .) # We are building in place.
27707: ac_srcdir=.
27708: ac_top_srcdir=$ac_top_builddir_sub
27709: ac_abs_top_srcdir=$ac_pwd ;;
27710: [\\/]* | ?:[\\/]* ) # Absolute name.
27711: ac_srcdir=$srcdir$ac_dir_suffix;
27712: ac_top_srcdir=$srcdir
27713: ac_abs_top_srcdir=$srcdir ;;
27714: *) # Relative name.
27715: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27716: ac_top_srcdir=$ac_top_build_prefix$srcdir
27717: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27718: esac
27719: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27720:
27721:
27722: cd "$ac_dir"
27723:
27724: # Check for guested configure; otherwise get Cygnus style configure.
27725: if test -f "$ac_srcdir/configure.gnu"; then
27726: ac_sub_configure=$ac_srcdir/configure.gnu
27727: elif test -f "$ac_srcdir/configure"; then
27728: ac_sub_configure=$ac_srcdir/configure
27729: elif test -f "$ac_srcdir/configure.in"; then
27730: # This should be Cygnus configure.
27731: ac_sub_configure=$ac_aux_dir/configure
27732: else
27733: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
27734: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27735: ac_sub_configure=
27736: fi
27737:
27738: # The recursion is here.
27739: if test -n "$ac_sub_configure"; then
27740: # Make the cache file name correct relative to the subdirectory.
27741: case $cache_file in
27742: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27743: *) # Relative name.
27744: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
27745: esac
27746:
27747: { $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
27748: $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27749: # The eval makes quoting arguments work.
27750: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27751: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27752: as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
27753: fi
27754:
27755: cd "$ac_popdir"
27756: done
27757: fi
27758: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27759: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27760: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27761: fi
27762:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>