Annotation of embedaddon/bird/configure, revision 1.1.1.2
1.1 misho 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
3: # Generated by GNU Autoconf 2.69.
4: #
5: #
6: # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7: #
8: #
9: # This configure script is free software; the Free Software Foundation
10: # gives unlimited permission to copy, distribute and modify it.
11: ## -------------------- ##
12: ## M4sh Initialization. ##
13: ## -------------------- ##
14:
15: # Be more Bourne compatible
16: DUALCASE=1; export DUALCASE # for MKS sh
17: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18: emulate sh
19: NULLCMD=:
20: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21: # is contrary to our usage. Disable this feature.
22: alias -g '${1+"$@"}'='"$@"'
23: setopt NO_GLOB_SUBST
24: else
25: case `(set -o) 2>/dev/null` in #(
26: *posix*) :
27: set -o posix ;; #(
28: *) :
29: ;;
30: esac
31: fi
32:
33:
34: as_nl='
35: '
36: export as_nl
37: # Printing a long string crashes Solaris 7 /usr/bin/printf.
38: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41: # Prefer a ksh shell builtin over an external printf program on Solaris,
42: # but without wasting forks for bash or zsh.
43: if test -z "$BASH_VERSION$ZSH_VERSION" \
44: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45: as_echo='print -r --'
46: as_echo_n='print -rn --'
47: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48: as_echo='printf %s\n'
49: as_echo_n='printf %s'
50: else
51: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53: as_echo_n='/usr/ucb/echo -n'
54: else
55: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56: as_echo_n_body='eval
57: arg=$1;
58: case $arg in #(
59: *"$as_nl"*)
60: expr "X$arg" : "X\\(.*\\)$as_nl";
61: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62: esac;
63: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64: '
65: export as_echo_n_body
66: as_echo_n='sh -c $as_echo_n_body as_echo'
67: fi
68: export as_echo_body
69: as_echo='sh -c $as_echo_body as_echo'
70: fi
71:
72: # The user is always right.
73: if test "${PATH_SEPARATOR+set}" != set; then
74: PATH_SEPARATOR=:
75: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77: PATH_SEPARATOR=';'
78: }
79: fi
80:
81:
82: # IFS
83: # We need space, tab and new line, in precisely that order. Quoting is
84: # there to prevent editors from complaining about space-tab.
85: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86: # splitting by setting IFS to empty value.)
87: IFS=" "" $as_nl"
88:
89: # Find who we are. Look in the path if we contain no directory separator.
90: as_myself=
91: case $0 in #((
92: *[\\/]* ) as_myself=$0 ;;
93: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94: for as_dir in $PATH
95: do
96: IFS=$as_save_IFS
97: test -z "$as_dir" && as_dir=.
98: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99: done
100: IFS=$as_save_IFS
101:
102: ;;
103: esac
104: # We did not find ourselves, most probably we were run as `sh COMMAND'
105: # in which case we are not to be found in the path.
106: if test "x$as_myself" = x; then
107: as_myself=$0
108: fi
109: if test ! -f "$as_myself"; then
110: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111: exit 1
112: fi
113:
114: # Unset variables that we do not need and which cause bugs (e.g. in
115: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116: # suppresses any "Segmentation fault" message there. '((' could
117: # trigger a bug in pdksh 5.2.14.
118: for as_var in BASH_ENV ENV MAIL MAILPATH
119: do eval test x\${$as_var+set} = xset \
120: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121: done
122: PS1='$ '
123: PS2='> '
124: PS4='+ '
125:
126: # NLS nuisances.
127: LC_ALL=C
128: export LC_ALL
129: LANGUAGE=C
130: export LANGUAGE
131:
132: # CDPATH.
133: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134:
135: # Use a proper internal environment variable to ensure we don't fall
136: # into an infinite loop, continuously re-executing ourselves.
137: if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138: _as_can_reexec=no; export _as_can_reexec;
139: # We cannot yet assume a decent shell, so we have to provide a
140: # neutralization value for shells without unset; and this also
141: # works around shells that cannot unset nonexistent variables.
142: # Preserve -v and -x to the replacement shell.
143: BASH_ENV=/dev/null
144: ENV=/dev/null
145: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146: case $- in # ((((
147: *v*x* | *x*v* ) as_opts=-vx ;;
148: *v* ) as_opts=-v ;;
149: *x* ) as_opts=-x ;;
150: * ) as_opts= ;;
151: esac
152: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153: # Admittedly, this is quite paranoid, since all the known shells bail
154: # out after a failed `exec'.
155: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156: as_fn_exit 255
157: fi
158: # We don't want this to propagate to other subprocesses.
159: { _as_can_reexec=; unset _as_can_reexec;}
160: if test "x$CONFIG_SHELL" = x; then
161: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162: emulate sh
163: NULLCMD=:
164: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165: # is contrary to our usage. Disable this feature.
166: alias -g '\${1+\"\$@\"}'='\"\$@\"'
167: setopt NO_GLOB_SUBST
168: else
169: case \`(set -o) 2>/dev/null\` in #(
170: *posix*) :
171: set -o posix ;; #(
172: *) :
173: ;;
174: esac
175: fi
176: "
177: as_required="as_fn_return () { (exit \$1); }
178: as_fn_success () { as_fn_return 0; }
179: as_fn_failure () { as_fn_return 1; }
180: as_fn_ret_success () { return 0; }
181: as_fn_ret_failure () { return 1; }
182:
183: exitcode=0
184: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189:
190: else
191: exitcode=1; echo positional parameters were not saved.
192: fi
193: test x\$exitcode = x0 || exit 1
194: test -x / || exit 1"
195: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199: test \$(( 1 + 1 )) = 2 || exit 1"
200: if (eval "$as_required") 2>/dev/null; then :
201: as_have_required=yes
202: else
203: as_have_required=no
204: fi
205: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206:
207: else
208: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209: as_found=false
210: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211: do
212: IFS=$as_save_IFS
213: test -z "$as_dir" && as_dir=.
214: as_found=:
215: case $as_dir in #(
216: /*)
217: for as_base in sh bash ksh sh5; do
218: # Try only shells that exist, to save several forks.
219: as_shell=$as_dir/$as_base
220: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222: CONFIG_SHELL=$as_shell as_have_required=yes
223: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224: break 2
225: fi
226: fi
227: done;;
228: esac
229: as_found=false
230: done
231: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233: CONFIG_SHELL=$SHELL as_have_required=yes
234: fi; }
235: IFS=$as_save_IFS
236:
237:
238: if test "x$CONFIG_SHELL" != x; then :
239: export CONFIG_SHELL
240: # We cannot yet assume a decent shell, so we have to provide a
241: # neutralization value for shells without unset; and this also
242: # works around shells that cannot unset nonexistent variables.
243: # Preserve -v and -x to the replacement shell.
244: BASH_ENV=/dev/null
245: ENV=/dev/null
246: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247: case $- in # ((((
248: *v*x* | *x*v* ) as_opts=-vx ;;
249: *v* ) as_opts=-v ;;
250: *x* ) as_opts=-x ;;
251: * ) as_opts= ;;
252: esac
253: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254: # Admittedly, this is quite paranoid, since all the known shells bail
255: # out after a failed `exec'.
256: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257: exit 255
258: fi
259:
260: if test x$as_have_required = xno; then :
261: $as_echo "$0: This script requires a shell more modern than all"
262: $as_echo "$0: the shells that I found on your system."
263: if test x${ZSH_VERSION+set} = xset ; then
264: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266: else
267: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268: $0: including any error possibly output before this
269: $0: message. Then install a modern shell, or manually run
270: $0: the script under such a shell if you do have one."
271: fi
272: exit 1
273: fi
274: fi
275: fi
276: SHELL=${CONFIG_SHELL-/bin/sh}
277: export SHELL
278: # Unset more variables known to interfere with behavior of common tools.
279: CLICOLOR_FORCE= GREP_OPTIONS=
280: unset CLICOLOR_FORCE GREP_OPTIONS
281:
282: ## --------------------- ##
283: ## M4sh Shell Functions. ##
284: ## --------------------- ##
285: # as_fn_unset VAR
286: # ---------------
287: # Portably unset VAR.
288: as_fn_unset ()
289: {
290: { eval $1=; unset $1;}
291: }
292: as_unset=as_fn_unset
293:
294: # as_fn_set_status STATUS
295: # -----------------------
296: # Set $? to STATUS, without forking.
297: as_fn_set_status ()
298: {
299: return $1
300: } # as_fn_set_status
301:
302: # as_fn_exit STATUS
303: # -----------------
304: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305: as_fn_exit ()
306: {
307: set +e
308: as_fn_set_status $1
309: exit $1
310: } # as_fn_exit
311:
312: # as_fn_mkdir_p
313: # -------------
314: # Create "$as_dir" as a directory, including parents if necessary.
315: as_fn_mkdir_p ()
316: {
317:
318: case $as_dir in #(
319: -*) as_dir=./$as_dir;;
320: esac
321: test -d "$as_dir" || eval $as_mkdir_p || {
322: as_dirs=
323: while :; do
324: case $as_dir in #(
325: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326: *) as_qdir=$as_dir;;
327: esac
328: as_dirs="'$as_qdir' $as_dirs"
329: as_dir=`$as_dirname -- "$as_dir" ||
330: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331: X"$as_dir" : 'X\(//\)[^/]' \| \
332: X"$as_dir" : 'X\(//\)$' \| \
333: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334: $as_echo X"$as_dir" |
335: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336: s//\1/
337: q
338: }
339: /^X\(\/\/\)[^/].*/{
340: s//\1/
341: q
342: }
343: /^X\(\/\/\)$/{
344: s//\1/
345: q
346: }
347: /^X\(\/\).*/{
348: s//\1/
349: q
350: }
351: s/.*/./; q'`
352: test -d "$as_dir" && break
353: done
354: test -z "$as_dirs" || eval "mkdir $as_dirs"
355: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356:
357:
358: } # as_fn_mkdir_p
359:
360: # as_fn_executable_p FILE
361: # -----------------------
362: # Test if FILE is an executable regular file.
363: as_fn_executable_p ()
364: {
365: test -f "$1" && test -x "$1"
366: } # as_fn_executable_p
367: # as_fn_append VAR VALUE
368: # ----------------------
369: # Append the text in VALUE to the end of the definition contained in VAR. Take
370: # advantage of any shell optimizations that allow amortized linear growth over
371: # repeated appends, instead of the typical quadratic growth present in naive
372: # implementations.
373: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374: eval 'as_fn_append ()
375: {
376: eval $1+=\$2
377: }'
378: else
379: as_fn_append ()
380: {
381: eval $1=\$$1\$2
382: }
383: fi # as_fn_append
384:
385: # as_fn_arith ARG...
386: # ------------------
387: # Perform arithmetic evaluation on the ARGs, and store the result in the
388: # global $as_val. Take advantage of shells that can avoid forks. The arguments
389: # must be portable across $(()) and expr.
390: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391: eval 'as_fn_arith ()
392: {
393: as_val=$(( $* ))
394: }'
395: else
396: as_fn_arith ()
397: {
398: as_val=`expr "$@" || test $? -eq 1`
399: }
400: fi # as_fn_arith
401:
402:
403: # as_fn_error STATUS ERROR [LINENO LOG_FD]
404: # ----------------------------------------
405: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407: # script with STATUS, using 1 if that was 0.
408: as_fn_error ()
409: {
410: as_status=$1; test $as_status -eq 0 && as_status=1
411: if test "$4"; then
412: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414: fi
415: $as_echo "$as_me: error: $2" >&2
416: as_fn_exit $as_status
417: } # as_fn_error
418:
419: if expr a : '\(a\)' >/dev/null 2>&1 &&
420: test "X`expr 00001 : '.*\(...\)'`" = X001; then
421: as_expr=expr
422: else
423: as_expr=false
424: fi
425:
426: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427: as_basename=basename
428: else
429: as_basename=false
430: fi
431:
432: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433: as_dirname=dirname
434: else
435: as_dirname=false
436: fi
437:
438: as_me=`$as_basename -- "$0" ||
439: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440: X"$0" : 'X\(//\)$' \| \
441: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442: $as_echo X/"$0" |
443: sed '/^.*\/\([^/][^/]*\)\/*$/{
444: s//\1/
445: q
446: }
447: /^X\/\(\/\/\)$/{
448: s//\1/
449: q
450: }
451: /^X\/\(\/\).*/{
452: s//\1/
453: q
454: }
455: s/.*/./; q'`
456:
457: # Avoid depending upon Character Ranges.
458: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461: as_cr_digits='0123456789'
462: as_cr_alnum=$as_cr_Letters$as_cr_digits
463:
464:
465: as_lineno_1=$LINENO as_lineno_1a=$LINENO
466: as_lineno_2=$LINENO as_lineno_2a=$LINENO
467: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470: sed -n '
471: p
472: /[$]LINENO/=
473: ' <$as_myself |
474: sed '
475: s/[$]LINENO.*/&-/
476: t lineno
477: b
478: :lineno
479: N
480: :loop
481: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482: t loop
483: s/-\n.*//
484: ' >$as_me.lineno &&
485: chmod +x "$as_me.lineno" ||
486: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487:
488: # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489: # already done that, so ensure we don't try to do so again and fall
490: # in an infinite loop. This has already happened in practice.
491: _as_can_reexec=no; export _as_can_reexec
492: # Don't try to exec as it changes $[0], causing all sort of problems
493: # (the dirname of $[0] is not the place where we might find the
494: # original and so on. Autoconf is especially sensitive to this).
495: . "./$as_me.lineno"
496: # Exit status is that of the last command.
497: exit
498: }
499:
500: ECHO_C= ECHO_N= ECHO_T=
501: case `echo -n x` in #(((((
502: -n*)
503: case `echo 'xy\c'` in
504: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505: xy) ECHO_C='\c';;
506: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507: ECHO_T=' ';;
508: esac;;
509: *)
510: ECHO_N='-n';;
511: esac
512:
513: rm -f conf$$ conf$$.exe conf$$.file
514: if test -d conf$$.dir; then
515: rm -f conf$$.dir/conf$$.file
516: else
517: rm -f conf$$.dir
518: mkdir conf$$.dir 2>/dev/null
519: fi
520: if (echo >conf$$.file) 2>/dev/null; then
521: if ln -s conf$$.file conf$$ 2>/dev/null; then
522: as_ln_s='ln -s'
523: # ... but there are two gotchas:
524: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526: # In both cases, we have to default to `cp -pR'.
527: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528: as_ln_s='cp -pR'
529: elif ln conf$$.file conf$$ 2>/dev/null; then
530: as_ln_s=ln
531: else
532: as_ln_s='cp -pR'
533: fi
534: else
535: as_ln_s='cp -pR'
536: fi
537: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538: rmdir conf$$.dir 2>/dev/null
539:
540: if mkdir -p . 2>/dev/null; then
541: as_mkdir_p='mkdir -p "$as_dir"'
542: else
543: test -d ./-p && rmdir ./-p
544: as_mkdir_p=false
545: fi
546:
547: as_test_x='test -x'
548: as_executable_p=as_fn_executable_p
549:
550: # Sed expression to map a string onto a valid CPP name.
551: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552:
553: # Sed expression to map a string onto a valid variable name.
554: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555:
556:
557: test -n "$DJDIR" || exec 7<&0 </dev/null
558: exec 6>&1
559:
560: # Name of the host.
561: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562: # so uname gets run too.
563: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564:
565: #
566: # Initializations.
567: #
568: ac_default_prefix=/usr/local
569: ac_clean_files=
570: ac_config_libobj_dir=.
571: LIBOBJS=
572: cross_compiling=no
573: subdirs=
574: MFLAGS=
575: MAKEFLAGS=
576:
577: # Identity of this package.
578: PACKAGE_NAME=
579: PACKAGE_TARNAME=
580: PACKAGE_VERSION=
581: PACKAGE_STRING=
582: PACKAGE_BUGREPORT=
583: PACKAGE_URL=
584:
585: ac_unique_file="conf/confbase.Y"
1.1.1.2 ! misho 586: ac_header_list=
1.1 misho 587: # Factoring default headers for most tests.
588: ac_includes_default="\
589: #include <stdio.h>
590: #ifdef HAVE_SYS_TYPES_H
591: # include <sys/types.h>
592: #endif
593: #ifdef HAVE_SYS_STAT_H
594: # include <sys/stat.h>
595: #endif
596: #ifdef STDC_HEADERS
597: # include <stdlib.h>
598: # include <stddef.h>
599: #else
600: # ifdef HAVE_STDLIB_H
601: # include <stdlib.h>
602: # endif
603: #endif
604: #ifdef HAVE_STRING_H
605: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
606: # include <memory.h>
607: # endif
608: # include <string.h>
609: #endif
610: #ifdef HAVE_STRINGS_H
611: # include <strings.h>
612: #endif
613: #ifdef HAVE_INTTYPES_H
614: # include <inttypes.h>
615: #endif
616: #ifdef HAVE_STDINT_H
617: # include <stdint.h>
618: #endif
619: #ifdef HAVE_UNISTD_H
620: # include <unistd.h>
621: #endif"
622:
623: ac_subst_vars='LTLIBOBJS
624: LIBOBJS
625: CLIENT_LIBS
626: CLIENT
627: EGREP
628: GREP
629: protocols
630: iproutedir
631: sysdep_dirs
632: RANLIB
633: INSTALL_DATA
634: INSTALL_SCRIPT
635: INSTALL_PROGRAM
636: CPP
637: host_os
638: host_vendor
639: host_cpu
640: host
641: build_os
642: build_vendor
643: build_cpu
644: build
645: OBJEXT
646: EXEEXT
647: ac_ct_CC
648: CPPFLAGS
649: LDFLAGS
650: CFLAGS
651: CC
652: CONTROL_SOCKET
653: CONFIG_FILE
654: SUFFIX
655: srcdir_rel_mf
656: exedir
657: objdir
658: M4
659: BISON
660: FLEX
661: target_alias
662: host_alias
663: build_alias
664: LIBS
665: ECHO_T
666: ECHO_N
667: ECHO_C
668: DEFS
669: mandir
670: localedir
671: libdir
672: psdir
673: pdfdir
674: dvidir
675: htmldir
676: infodir
677: docdir
678: oldincludedir
679: includedir
1.1.1.2 ! misho 680: runstatedir
1.1 misho 681: localstatedir
682: sharedstatedir
683: sysconfdir
684: datadir
685: datarootdir
686: libexecdir
687: sbindir
688: bindir
689: program_transform_name
690: prefix
691: exec_prefix
692: PACKAGE_URL
693: PACKAGE_BUGREPORT
694: PACKAGE_STRING
695: PACKAGE_VERSION
696: PACKAGE_TARNAME
697: PACKAGE_NAME
698: PATH_SEPARATOR
699: SHELL'
700: ac_subst_files=''
701: ac_user_opts='
702: enable_option_checking
703: enable_client
1.1.1.2 ! misho 704: enable_debug
1.1 misho 705: enable_ipv6
1.1.1.2 ! misho 706: enable_memcheck
1.1 misho 707: enable_pthreads
1.1.1.2 ! misho 708: with_protocols
1.1 misho 709: with_suffix
710: with_sysconfig
711: with_runtimedir
712: with_iproutedir
713: '
714: ac_precious_vars='build_alias
715: host_alias
716: target_alias
717: FLEX
718: BISON
719: M4
720: CC
721: CFLAGS
722: LDFLAGS
723: LIBS
724: CPPFLAGS
725: CPP'
726:
727:
728: # Initialize some variables set by options.
729: ac_init_help=
730: ac_init_version=false
731: ac_unrecognized_opts=
732: ac_unrecognized_sep=
733: # The variables have the same names as the options, with
734: # dashes changed to underlines.
735: cache_file=/dev/null
736: exec_prefix=NONE
737: no_create=
738: no_recursion=
739: prefix=NONE
740: program_prefix=NONE
741: program_suffix=NONE
742: program_transform_name=s,x,x,
743: silent=
744: site=
745: srcdir=
746: verbose=
747: x_includes=NONE
748: x_libraries=NONE
749:
750: # Installation directory options.
751: # These are left unexpanded so users can "make install exec_prefix=/foo"
752: # and all the variables that are supposed to be based on exec_prefix
753: # by default will actually change.
754: # Use braces instead of parens because sh, perl, etc. also accept them.
755: # (The list follows the same order as the GNU Coding Standards.)
756: bindir='${exec_prefix}/bin'
757: sbindir='${exec_prefix}/sbin'
758: libexecdir='${exec_prefix}/libexec'
759: datarootdir='${prefix}/share'
760: datadir='${datarootdir}'
761: sysconfdir='${prefix}/etc'
762: sharedstatedir='${prefix}/com'
763: localstatedir='${prefix}/var'
1.1.1.2 ! misho 764: runstatedir='${localstatedir}/run'
1.1 misho 765: includedir='${prefix}/include'
766: oldincludedir='/usr/include'
767: docdir='${datarootdir}/doc/${PACKAGE}'
768: infodir='${datarootdir}/info'
769: htmldir='${docdir}'
770: dvidir='${docdir}'
771: pdfdir='${docdir}'
772: psdir='${docdir}'
773: libdir='${exec_prefix}/lib'
774: localedir='${datarootdir}/locale'
775: mandir='${datarootdir}/man'
776:
777: ac_prev=
778: ac_dashdash=
779: for ac_option
780: do
781: # If the previous option needs an argument, assign it.
782: if test -n "$ac_prev"; then
783: eval $ac_prev=\$ac_option
784: ac_prev=
785: continue
786: fi
787:
788: case $ac_option in
789: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
790: *=) ac_optarg= ;;
791: *) ac_optarg=yes ;;
792: esac
793:
794: # Accept the important Cygnus configure options, so we can diagnose typos.
795:
796: case $ac_dashdash$ac_option in
797: --)
798: ac_dashdash=yes ;;
799:
800: -bindir | --bindir | --bindi | --bind | --bin | --bi)
801: ac_prev=bindir ;;
802: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
803: bindir=$ac_optarg ;;
804:
805: -build | --build | --buil | --bui | --bu)
806: ac_prev=build_alias ;;
807: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
808: build_alias=$ac_optarg ;;
809:
810: -cache-file | --cache-file | --cache-fil | --cache-fi \
811: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
812: ac_prev=cache_file ;;
813: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
814: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
815: cache_file=$ac_optarg ;;
816:
817: --config-cache | -C)
818: cache_file=config.cache ;;
819:
820: -datadir | --datadir | --datadi | --datad)
821: ac_prev=datadir ;;
822: -datadir=* | --datadir=* | --datadi=* | --datad=*)
823: datadir=$ac_optarg ;;
824:
825: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
826: | --dataroo | --dataro | --datar)
827: ac_prev=datarootdir ;;
828: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
829: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
830: datarootdir=$ac_optarg ;;
831:
832: -disable-* | --disable-*)
833: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
834: # Reject names that are not valid shell variable names.
835: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
836: as_fn_error $? "invalid feature name: $ac_useropt"
837: ac_useropt_orig=$ac_useropt
838: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
839: case $ac_user_opts in
840: *"
841: "enable_$ac_useropt"
842: "*) ;;
843: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
844: ac_unrecognized_sep=', ';;
845: esac
846: eval enable_$ac_useropt=no ;;
847:
848: -docdir | --docdir | --docdi | --doc | --do)
849: ac_prev=docdir ;;
850: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
851: docdir=$ac_optarg ;;
852:
853: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
854: ac_prev=dvidir ;;
855: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
856: dvidir=$ac_optarg ;;
857:
858: -enable-* | --enable-*)
859: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
860: # Reject names that are not valid shell variable names.
861: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
862: as_fn_error $? "invalid feature name: $ac_useropt"
863: ac_useropt_orig=$ac_useropt
864: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
865: case $ac_user_opts in
866: *"
867: "enable_$ac_useropt"
868: "*) ;;
869: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
870: ac_unrecognized_sep=', ';;
871: esac
872: eval enable_$ac_useropt=\$ac_optarg ;;
873:
874: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
875: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
876: | --exec | --exe | --ex)
877: ac_prev=exec_prefix ;;
878: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
879: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
880: | --exec=* | --exe=* | --ex=*)
881: exec_prefix=$ac_optarg ;;
882:
883: -gas | --gas | --ga | --g)
884: # Obsolete; use --with-gas.
885: with_gas=yes ;;
886:
887: -help | --help | --hel | --he | -h)
888: ac_init_help=long ;;
889: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
890: ac_init_help=recursive ;;
891: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
892: ac_init_help=short ;;
893:
894: -host | --host | --hos | --ho)
895: ac_prev=host_alias ;;
896: -host=* | --host=* | --hos=* | --ho=*)
897: host_alias=$ac_optarg ;;
898:
899: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
900: ac_prev=htmldir ;;
901: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
902: | --ht=*)
903: htmldir=$ac_optarg ;;
904:
905: -includedir | --includedir | --includedi | --included | --include \
906: | --includ | --inclu | --incl | --inc)
907: ac_prev=includedir ;;
908: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
909: | --includ=* | --inclu=* | --incl=* | --inc=*)
910: includedir=$ac_optarg ;;
911:
912: -infodir | --infodir | --infodi | --infod | --info | --inf)
913: ac_prev=infodir ;;
914: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
915: infodir=$ac_optarg ;;
916:
917: -libdir | --libdir | --libdi | --libd)
918: ac_prev=libdir ;;
919: -libdir=* | --libdir=* | --libdi=* | --libd=*)
920: libdir=$ac_optarg ;;
921:
922: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
923: | --libexe | --libex | --libe)
924: ac_prev=libexecdir ;;
925: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
926: | --libexe=* | --libex=* | --libe=*)
927: libexecdir=$ac_optarg ;;
928:
929: -localedir | --localedir | --localedi | --localed | --locale)
930: ac_prev=localedir ;;
931: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
932: localedir=$ac_optarg ;;
933:
934: -localstatedir | --localstatedir | --localstatedi | --localstated \
935: | --localstate | --localstat | --localsta | --localst | --locals)
936: ac_prev=localstatedir ;;
937: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
938: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
939: localstatedir=$ac_optarg ;;
940:
941: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
942: ac_prev=mandir ;;
943: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
944: mandir=$ac_optarg ;;
945:
946: -nfp | --nfp | --nf)
947: # Obsolete; use --without-fp.
948: with_fp=no ;;
949:
950: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
951: | --no-cr | --no-c | -n)
952: no_create=yes ;;
953:
954: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
955: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
956: no_recursion=yes ;;
957:
958: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
959: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
960: | --oldin | --oldi | --old | --ol | --o)
961: ac_prev=oldincludedir ;;
962: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
963: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
964: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
965: oldincludedir=$ac_optarg ;;
966:
967: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
968: ac_prev=prefix ;;
969: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
970: prefix=$ac_optarg ;;
971:
972: -program-prefix | --program-prefix | --program-prefi | --program-pref \
973: | --program-pre | --program-pr | --program-p)
974: ac_prev=program_prefix ;;
975: -program-prefix=* | --program-prefix=* | --program-prefi=* \
976: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
977: program_prefix=$ac_optarg ;;
978:
979: -program-suffix | --program-suffix | --program-suffi | --program-suff \
980: | --program-suf | --program-su | --program-s)
981: ac_prev=program_suffix ;;
982: -program-suffix=* | --program-suffix=* | --program-suffi=* \
983: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
984: program_suffix=$ac_optarg ;;
985:
986: -program-transform-name | --program-transform-name \
987: | --program-transform-nam | --program-transform-na \
988: | --program-transform-n | --program-transform- \
989: | --program-transform | --program-transfor \
990: | --program-transfo | --program-transf \
991: | --program-trans | --program-tran \
992: | --progr-tra | --program-tr | --program-t)
993: ac_prev=program_transform_name ;;
994: -program-transform-name=* | --program-transform-name=* \
995: | --program-transform-nam=* | --program-transform-na=* \
996: | --program-transform-n=* | --program-transform-=* \
997: | --program-transform=* | --program-transfor=* \
998: | --program-transfo=* | --program-transf=* \
999: | --program-trans=* | --program-tran=* \
1000: | --progr-tra=* | --program-tr=* | --program-t=*)
1001: program_transform_name=$ac_optarg ;;
1002:
1003: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1004: ac_prev=pdfdir ;;
1005: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1006: pdfdir=$ac_optarg ;;
1007:
1008: -psdir | --psdir | --psdi | --psd | --ps)
1009: ac_prev=psdir ;;
1010: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1011: psdir=$ac_optarg ;;
1012:
1013: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1014: | -silent | --silent | --silen | --sile | --sil)
1015: silent=yes ;;
1016:
1.1.1.2 ! misho 1017: -runstatedir | --runstatedir | --runstatedi | --runstated \
! 1018: | --runstate | --runstat | --runsta | --runst | --runs \
! 1019: | --run | --ru | --r)
! 1020: ac_prev=runstatedir ;;
! 1021: -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
! 1022: | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
! 1023: | --run=* | --ru=* | --r=*)
! 1024: runstatedir=$ac_optarg ;;
! 1025:
1.1 misho 1026: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1027: ac_prev=sbindir ;;
1028: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1029: | --sbi=* | --sb=*)
1030: sbindir=$ac_optarg ;;
1031:
1032: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1033: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1034: | --sharedst | --shareds | --shared | --share | --shar \
1035: | --sha | --sh)
1036: ac_prev=sharedstatedir ;;
1037: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1038: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1039: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1040: | --sha=* | --sh=*)
1041: sharedstatedir=$ac_optarg ;;
1042:
1043: -site | --site | --sit)
1044: ac_prev=site ;;
1045: -site=* | --site=* | --sit=*)
1046: site=$ac_optarg ;;
1047:
1048: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1049: ac_prev=srcdir ;;
1050: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1051: srcdir=$ac_optarg ;;
1052:
1053: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1054: | --syscon | --sysco | --sysc | --sys | --sy)
1055: ac_prev=sysconfdir ;;
1056: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1057: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1058: sysconfdir=$ac_optarg ;;
1059:
1060: -target | --target | --targe | --targ | --tar | --ta | --t)
1061: ac_prev=target_alias ;;
1062: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1063: target_alias=$ac_optarg ;;
1064:
1065: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1066: verbose=yes ;;
1067:
1068: -version | --version | --versio | --versi | --vers | -V)
1069: ac_init_version=: ;;
1070:
1071: -with-* | --with-*)
1072: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1073: # Reject names that are not valid shell variable names.
1074: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075: as_fn_error $? "invalid package name: $ac_useropt"
1076: ac_useropt_orig=$ac_useropt
1077: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078: case $ac_user_opts in
1079: *"
1080: "with_$ac_useropt"
1081: "*) ;;
1082: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1083: ac_unrecognized_sep=', ';;
1084: esac
1085: eval with_$ac_useropt=\$ac_optarg ;;
1086:
1087: -without-* | --without-*)
1088: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1089: # Reject names that are not valid shell variable names.
1090: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091: as_fn_error $? "invalid package name: $ac_useropt"
1092: ac_useropt_orig=$ac_useropt
1093: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094: case $ac_user_opts in
1095: *"
1096: "with_$ac_useropt"
1097: "*) ;;
1098: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1099: ac_unrecognized_sep=', ';;
1100: esac
1101: eval with_$ac_useropt=no ;;
1102:
1103: --x)
1104: # Obsolete; use --with-x.
1105: with_x=yes ;;
1106:
1107: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1108: | --x-incl | --x-inc | --x-in | --x-i)
1109: ac_prev=x_includes ;;
1110: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1111: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1112: x_includes=$ac_optarg ;;
1113:
1114: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1115: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1116: ac_prev=x_libraries ;;
1117: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1118: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1119: x_libraries=$ac_optarg ;;
1120:
1121: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1122: Try \`$0 --help' for more information"
1123: ;;
1124:
1125: *=*)
1126: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1127: # Reject names that are not valid shell variable names.
1128: case $ac_envvar in #(
1129: '' | [0-9]* | *[!_$as_cr_alnum]* )
1130: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1131: esac
1132: eval $ac_envvar=\$ac_optarg
1133: export $ac_envvar ;;
1134:
1135: *)
1136: # FIXME: should be removed in autoconf 3.0.
1137: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1138: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1139: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1140: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1141: ;;
1142:
1143: esac
1144: done
1145:
1146: if test -n "$ac_prev"; then
1147: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1148: as_fn_error $? "missing argument to $ac_option"
1149: fi
1150:
1151: if test -n "$ac_unrecognized_opts"; then
1152: case $enable_option_checking in
1153: no) ;;
1154: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1155: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1156: esac
1157: fi
1158:
1159: # Check all directory arguments for consistency.
1160: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1161: datadir sysconfdir sharedstatedir localstatedir includedir \
1162: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1.1.1.2 ! misho 1163: libdir localedir mandir runstatedir
1.1 misho 1164: do
1165: eval ac_val=\$$ac_var
1166: # Remove trailing slashes.
1167: case $ac_val in
1168: */ )
1169: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1170: eval $ac_var=\$ac_val;;
1171: esac
1172: # Be sure to have absolute directory names.
1173: case $ac_val in
1174: [\\/$]* | ?:[\\/]* ) continue;;
1175: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1176: esac
1177: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1178: done
1179:
1180: # There might be people who depend on the old broken behavior: `$host'
1181: # used to hold the argument of --host etc.
1182: # FIXME: To remove some day.
1183: build=$build_alias
1184: host=$host_alias
1185: target=$target_alias
1186:
1187: # FIXME: To remove some day.
1188: if test "x$host_alias" != x; then
1189: if test "x$build_alias" = x; then
1190: cross_compiling=maybe
1191: elif test "x$build_alias" != "x$host_alias"; then
1192: cross_compiling=yes
1193: fi
1194: fi
1195:
1196: ac_tool_prefix=
1197: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1198:
1199: test "$silent" = yes && exec 6>/dev/null
1200:
1201:
1202: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1203: ac_ls_di=`ls -di .` &&
1204: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1205: as_fn_error $? "working directory cannot be determined"
1206: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1207: as_fn_error $? "pwd does not report name of working directory"
1208:
1209:
1210: # Find the source files, if location was not specified.
1211: if test -z "$srcdir"; then
1212: ac_srcdir_defaulted=yes
1213: # Try the directory containing this script, then the parent directory.
1214: ac_confdir=`$as_dirname -- "$as_myself" ||
1215: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1216: X"$as_myself" : 'X\(//\)[^/]' \| \
1217: X"$as_myself" : 'X\(//\)$' \| \
1218: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1219: $as_echo X"$as_myself" |
1220: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1221: s//\1/
1222: q
1223: }
1224: /^X\(\/\/\)[^/].*/{
1225: s//\1/
1226: q
1227: }
1228: /^X\(\/\/\)$/{
1229: s//\1/
1230: q
1231: }
1232: /^X\(\/\).*/{
1233: s//\1/
1234: q
1235: }
1236: s/.*/./; q'`
1237: srcdir=$ac_confdir
1238: if test ! -r "$srcdir/$ac_unique_file"; then
1239: srcdir=..
1240: fi
1241: else
1242: ac_srcdir_defaulted=no
1243: fi
1244: if test ! -r "$srcdir/$ac_unique_file"; then
1245: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1246: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1247: fi
1248: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1249: ac_abs_confdir=`(
1250: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1251: pwd)`
1252: # When building in place, set srcdir=.
1253: if test "$ac_abs_confdir" = "$ac_pwd"; then
1254: srcdir=.
1255: fi
1256: # Remove unnecessary trailing slashes from srcdir.
1257: # Double slashes in file names in object file debugging info
1258: # mess up M-x gdb in Emacs.
1259: case $srcdir in
1260: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1261: esac
1262: for ac_var in $ac_precious_vars; do
1263: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1264: eval ac_env_${ac_var}_value=\$${ac_var}
1265: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1266: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1267: done
1268:
1269: #
1270: # Report the --help message.
1271: #
1272: if test "$ac_init_help" = "long"; then
1273: # Omit some internal or obsolete options to make the list less imposing.
1274: # This message is too long to be a string in the A/UX 3.1 sh.
1275: cat <<_ACEOF
1276: \`configure' configures this package to adapt to many kinds of systems.
1277:
1278: Usage: $0 [OPTION]... [VAR=VALUE]...
1279:
1280: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1281: VAR=VALUE. See below for descriptions of some of the useful variables.
1282:
1283: Defaults for the options are specified in brackets.
1284:
1285: Configuration:
1286: -h, --help display this help and exit
1287: --help=short display options specific to this package
1288: --help=recursive display the short help of all the included packages
1289: -V, --version display version information and exit
1290: -q, --quiet, --silent do not print \`checking ...' messages
1291: --cache-file=FILE cache test results in FILE [disabled]
1292: -C, --config-cache alias for \`--cache-file=config.cache'
1293: -n, --no-create do not create output files
1294: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1295:
1296: Installation directories:
1297: --prefix=PREFIX install architecture-independent files in PREFIX
1298: [$ac_default_prefix]
1299: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1300: [PREFIX]
1301:
1302: By default, \`make install' will install all the files in
1303: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1304: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1305: for instance \`--prefix=\$HOME'.
1306:
1307: For better control, use the options below.
1308:
1309: Fine tuning of the installation directories:
1310: --bindir=DIR user executables [EPREFIX/bin]
1311: --sbindir=DIR system admin executables [EPREFIX/sbin]
1312: --libexecdir=DIR program executables [EPREFIX/libexec]
1313: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1314: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1315: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1.1.1.2 ! misho 1316: --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1.1 misho 1317: --libdir=DIR object code libraries [EPREFIX/lib]
1318: --includedir=DIR C header files [PREFIX/include]
1319: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1320: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1321: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1322: --infodir=DIR info documentation [DATAROOTDIR/info]
1323: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1324: --mandir=DIR man documentation [DATAROOTDIR/man]
1325: --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1326: --htmldir=DIR html documentation [DOCDIR]
1327: --dvidir=DIR dvi documentation [DOCDIR]
1328: --pdfdir=DIR pdf documentation [DOCDIR]
1329: --psdir=DIR ps documentation [DOCDIR]
1330: _ACEOF
1331:
1332: cat <<\_ACEOF
1333:
1334: System types:
1335: --build=BUILD configure for building on BUILD [guessed]
1336: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1337: _ACEOF
1338: fi
1339:
1340: if test -n "$ac_init_help"; then
1341:
1342: cat <<\_ACEOF
1343:
1344: Optional Features:
1345: --disable-option-checking ignore unrecognized --enable/--with options
1346: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1347: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.1.1.2 ! misho 1348: --enable-client enable building of BIRD client [yes]
! 1349: --enable-debug enable internal debugging routines [no]
! 1350: --enable-ipv6 enable building of IPv6 version [no]
! 1351: --enable-memcheck check memory allocations when debugging [yes]
! 1352: --enable-pthreads enable POSIX threads support [try]
1.1 misho 1353:
1354: Optional Packages:
1355: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1356: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.1.1.2 ! misho 1357: --with-protocols=LIST include specified routing protocols [all]
! 1358: --with-suffix=STRING use specified suffix for BIRD files [6 for IPv6]
1.1 misho 1359: --with-sysconfig=FILE use specified BIRD system configuration file
1.1.1.2 ! misho 1360:
! 1361: --with-runtimedir=PATH run-state data, obsolete variant of --runstatedir
! 1362: --with-iproutedir=PATH path to iproute2 config files [/etc/iproute2]
1.1 misho 1363:
1364: Some influential environment variables:
1365: FLEX location of the Flex program
1366: BISON location of the Bison program
1367: M4 location of the M4 program
1368: CC C compiler command
1369: CFLAGS C compiler flags
1370: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1371: nonstandard directory <lib dir>
1372: LIBS libraries to pass to the linker, e.g. -l<library>
1373: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1374: you have headers in a nonstandard directory <include dir>
1375: CPP C preprocessor
1376:
1377: Use these variables to override the choices made by `configure' or to help
1378: it to find libraries and programs with nonstandard names/locations.
1379:
1380: Report bugs to the package provider.
1381: _ACEOF
1382: ac_status=$?
1383: fi
1384:
1385: if test "$ac_init_help" = "recursive"; then
1386: # If there are subdirs, report their specific --help.
1387: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1388: test -d "$ac_dir" ||
1389: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1390: continue
1391: ac_builddir=.
1392:
1393: case "$ac_dir" in
1394: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1395: *)
1396: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1397: # A ".." for each directory in $ac_dir_suffix.
1398: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1399: case $ac_top_builddir_sub in
1400: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1401: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1402: esac ;;
1403: esac
1404: ac_abs_top_builddir=$ac_pwd
1405: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1406: # for backward compatibility:
1407: ac_top_builddir=$ac_top_build_prefix
1408:
1409: case $srcdir in
1410: .) # We are building in place.
1411: ac_srcdir=.
1412: ac_top_srcdir=$ac_top_builddir_sub
1413: ac_abs_top_srcdir=$ac_pwd ;;
1414: [\\/]* | ?:[\\/]* ) # Absolute name.
1415: ac_srcdir=$srcdir$ac_dir_suffix;
1416: ac_top_srcdir=$srcdir
1417: ac_abs_top_srcdir=$srcdir ;;
1418: *) # Relative name.
1419: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1420: ac_top_srcdir=$ac_top_build_prefix$srcdir
1421: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1422: esac
1423: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1424:
1425: cd "$ac_dir" || { ac_status=$?; continue; }
1426: # Check for guested configure.
1427: if test -f "$ac_srcdir/configure.gnu"; then
1428: echo &&
1429: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1430: elif test -f "$ac_srcdir/configure"; then
1431: echo &&
1432: $SHELL "$ac_srcdir/configure" --help=recursive
1433: else
1434: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1435: fi || ac_status=$?
1436: cd "$ac_pwd" || { ac_status=$?; break; }
1437: done
1438: fi
1439:
1440: test -n "$ac_init_help" && exit $ac_status
1441: if $ac_init_version; then
1442: cat <<\_ACEOF
1443: configure
1444: generated by GNU Autoconf 2.69
1445:
1446: Copyright (C) 2012 Free Software Foundation, Inc.
1447: This configure script is free software; the Free Software Foundation
1448: gives unlimited permission to copy, distribute and modify it.
1449: _ACEOF
1450: exit
1451: fi
1452:
1453: ## ------------------------ ##
1454: ## Autoconf initialization. ##
1455: ## ------------------------ ##
1456:
1457: # ac_fn_c_try_compile LINENO
1458: # --------------------------
1459: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1460: ac_fn_c_try_compile ()
1461: {
1462: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1463: rm -f conftest.$ac_objext
1464: if { { ac_try="$ac_compile"
1465: case "(($ac_try" in
1466: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1467: *) ac_try_echo=$ac_try;;
1468: esac
1469: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1470: $as_echo "$ac_try_echo"; } >&5
1471: (eval "$ac_compile") 2>conftest.err
1472: ac_status=$?
1473: if test -s conftest.err; then
1474: grep -v '^ *+' conftest.err >conftest.er1
1475: cat conftest.er1 >&5
1476: mv -f conftest.er1 conftest.err
1477: fi
1478: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1479: test $ac_status = 0; } && {
1480: test -z "$ac_c_werror_flag" ||
1481: test ! -s conftest.err
1482: } && test -s conftest.$ac_objext; then :
1483: ac_retval=0
1484: else
1485: $as_echo "$as_me: failed program was:" >&5
1486: sed 's/^/| /' conftest.$ac_ext >&5
1487:
1488: ac_retval=1
1489: fi
1490: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1491: as_fn_set_status $ac_retval
1492:
1493: } # ac_fn_c_try_compile
1494:
1495: # ac_fn_c_try_link LINENO
1496: # -----------------------
1497: # Try to link conftest.$ac_ext, and return whether this succeeded.
1498: ac_fn_c_try_link ()
1499: {
1500: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1501: rm -f conftest.$ac_objext conftest$ac_exeext
1502: if { { ac_try="$ac_link"
1503: case "(($ac_try" in
1504: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1505: *) ac_try_echo=$ac_try;;
1506: esac
1507: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1508: $as_echo "$ac_try_echo"; } >&5
1509: (eval "$ac_link") 2>conftest.err
1510: ac_status=$?
1511: if test -s conftest.err; then
1512: grep -v '^ *+' conftest.err >conftest.er1
1513: cat conftest.er1 >&5
1514: mv -f conftest.er1 conftest.err
1515: fi
1516: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1517: test $ac_status = 0; } && {
1518: test -z "$ac_c_werror_flag" ||
1519: test ! -s conftest.err
1520: } && test -s conftest$ac_exeext && {
1521: test "$cross_compiling" = yes ||
1522: test -x conftest$ac_exeext
1523: }; then :
1524: ac_retval=0
1525: else
1526: $as_echo "$as_me: failed program was:" >&5
1527: sed 's/^/| /' conftest.$ac_ext >&5
1528:
1529: ac_retval=1
1530: fi
1531: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1532: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1533: # interfere with the next link command; also delete a directory that is
1534: # left behind by Apple's compiler. We do this before executing the actions.
1535: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1536: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1537: as_fn_set_status $ac_retval
1538:
1539: } # ac_fn_c_try_link
1540:
1541: # ac_fn_c_try_cpp LINENO
1542: # ----------------------
1543: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1544: ac_fn_c_try_cpp ()
1545: {
1546: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547: if { { ac_try="$ac_cpp conftest.$ac_ext"
1548: case "(($ac_try" in
1549: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1550: *) ac_try_echo=$ac_try;;
1551: esac
1552: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1553: $as_echo "$ac_try_echo"; } >&5
1554: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1555: ac_status=$?
1556: if test -s conftest.err; then
1557: grep -v '^ *+' conftest.err >conftest.er1
1558: cat conftest.er1 >&5
1559: mv -f conftest.er1 conftest.err
1560: fi
1561: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562: test $ac_status = 0; } > conftest.i && {
1563: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1564: test ! -s conftest.err
1565: }; then :
1566: ac_retval=0
1567: else
1568: $as_echo "$as_me: failed program was:" >&5
1569: sed 's/^/| /' conftest.$ac_ext >&5
1570:
1571: ac_retval=1
1572: fi
1573: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1574: as_fn_set_status $ac_retval
1575:
1576: } # ac_fn_c_try_cpp
1577:
1578: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1579: # -------------------------------------------------------
1580: # Tests whether HEADER exists and can be compiled using the include files in
1581: # INCLUDES, setting the cache variable VAR accordingly.
1582: ac_fn_c_check_header_compile ()
1583: {
1584: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1586: $as_echo_n "checking for $2... " >&6; }
1587: if eval \${$3+:} false; then :
1588: $as_echo_n "(cached) " >&6
1589: else
1590: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1591: /* end confdefs.h. */
1592: $4
1593: #include <$2>
1594: _ACEOF
1595: if ac_fn_c_try_compile "$LINENO"; then :
1596: eval "$3=yes"
1597: else
1598: eval "$3=no"
1599: fi
1600: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1601: fi
1602: eval ac_res=\$$3
1603: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1604: $as_echo "$ac_res" >&6; }
1605: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606:
1607: } # ac_fn_c_check_header_compile
1608:
1609: # ac_fn_c_try_run LINENO
1610: # ----------------------
1611: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1612: # that executables *can* be run.
1613: ac_fn_c_try_run ()
1614: {
1615: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616: if { { ac_try="$ac_link"
1617: case "(($ac_try" in
1618: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619: *) ac_try_echo=$ac_try;;
1620: esac
1621: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622: $as_echo "$ac_try_echo"; } >&5
1623: (eval "$ac_link") 2>&5
1624: ac_status=$?
1625: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1627: { { case "(($ac_try" in
1628: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629: *) ac_try_echo=$ac_try;;
1630: esac
1631: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632: $as_echo "$ac_try_echo"; } >&5
1633: (eval "$ac_try") 2>&5
1634: ac_status=$?
1635: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636: test $ac_status = 0; }; }; then :
1637: ac_retval=0
1638: else
1639: $as_echo "$as_me: program exited with status $ac_status" >&5
1640: $as_echo "$as_me: failed program was:" >&5
1641: sed 's/^/| /' conftest.$ac_ext >&5
1642:
1643: ac_retval=$ac_status
1644: fi
1645: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1646: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647: as_fn_set_status $ac_retval
1648:
1649: } # ac_fn_c_try_run
1650:
1.1.1.2 ! misho 1651: # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
! 1652: # ----------------------------------------------------
! 1653: # Tries to find if the field MEMBER exists in type AGGR, after including
! 1654: # INCLUDES, setting cache variable VAR accordingly.
! 1655: ac_fn_c_check_member ()
1.1 misho 1656: {
1657: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.1.1.2 ! misho 1658: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
! 1659: $as_echo_n "checking for $2.$3... " >&6; }
! 1660: if eval \${$4+:} false; then :
! 1661: $as_echo_n "(cached) " >&6
1.1 misho 1662: else
1663: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1664: /* end confdefs.h. */
1.1.1.2 ! misho 1665: $5
1.1 misho 1666: int
1667: main ()
1668: {
1.1.1.2 ! misho 1669: static $2 ac_aggr;
! 1670: if (ac_aggr.$3)
! 1671: return 0;
1.1 misho 1672: ;
1673: return 0;
1674: }
1675: _ACEOF
1676: if ac_fn_c_try_compile "$LINENO"; then :
1.1.1.2 ! misho 1677: eval "$4=yes"
1.1 misho 1678: else
1679: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1680: /* end confdefs.h. */
1.1.1.2 ! misho 1681: $5
1.1 misho 1682: int
1683: main ()
1684: {
1.1.1.2 ! misho 1685: static $2 ac_aggr;
! 1686: if (sizeof ac_aggr.$3)
! 1687: return 0;
1.1 misho 1688: ;
1689: return 0;
1690: }
1691: _ACEOF
1692: if ac_fn_c_try_compile "$LINENO"; then :
1.1.1.2 ! misho 1693: eval "$4=yes"
1.1 misho 1694: else
1.1.1.2 ! misho 1695: eval "$4=no"
1.1 misho 1696: fi
1697: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1698: fi
1.1.1.2 ! misho 1699: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 1700: fi
! 1701: eval ac_res=\$$4
! 1702: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 1703: $as_echo "$ac_res" >&6; }
1.1 misho 1704: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705:
1.1.1.2 ! misho 1706: } # ac_fn_c_check_member
1.1 misho 1707: cat >config.log <<_ACEOF
1708: This file contains any messages produced by compilers while
1709: running configure, to aid debugging if configure makes a mistake.
1710:
1711: It was created by $as_me, which was
1712: generated by GNU Autoconf 2.69. Invocation command line was
1713:
1714: $ $0 $@
1715:
1716: _ACEOF
1717: exec 5>>config.log
1718: {
1719: cat <<_ASUNAME
1720: ## --------- ##
1721: ## Platform. ##
1722: ## --------- ##
1723:
1724: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1725: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1726: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1727: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1728: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1729:
1730: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1731: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1732:
1733: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1734: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1735: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1736: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1737: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1738: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1739: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1740:
1741: _ASUNAME
1742:
1743: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744: for as_dir in $PATH
1745: do
1746: IFS=$as_save_IFS
1747: test -z "$as_dir" && as_dir=.
1748: $as_echo "PATH: $as_dir"
1749: done
1750: IFS=$as_save_IFS
1751:
1752: } >&5
1753:
1754: cat >&5 <<_ACEOF
1755:
1756:
1757: ## ----------- ##
1758: ## Core tests. ##
1759: ## ----------- ##
1760:
1761: _ACEOF
1762:
1763:
1764: # Keep a trace of the command line.
1765: # Strip out --no-create and --no-recursion so they do not pile up.
1766: # Strip out --silent because we don't want to record it for future runs.
1767: # Also quote any args containing shell meta-characters.
1768: # Make two passes to allow for proper duplicate-argument suppression.
1769: ac_configure_args=
1770: ac_configure_args0=
1771: ac_configure_args1=
1772: ac_must_keep_next=false
1773: for ac_pass in 1 2
1774: do
1775: for ac_arg
1776: do
1777: case $ac_arg in
1778: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1779: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1780: | -silent | --silent | --silen | --sile | --sil)
1781: continue ;;
1782: *\'*)
1783: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1784: esac
1785: case $ac_pass in
1786: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1787: 2)
1788: as_fn_append ac_configure_args1 " '$ac_arg'"
1789: if test $ac_must_keep_next = true; then
1790: ac_must_keep_next=false # Got value, back to normal.
1791: else
1792: case $ac_arg in
1793: *=* | --config-cache | -C | -disable-* | --disable-* \
1794: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1795: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1796: | -with-* | --with-* | -without-* | --without-* | --x)
1797: case "$ac_configure_args0 " in
1798: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1799: esac
1800: ;;
1801: -* ) ac_must_keep_next=true ;;
1802: esac
1803: fi
1804: as_fn_append ac_configure_args " '$ac_arg'"
1805: ;;
1806: esac
1807: done
1808: done
1809: { ac_configure_args0=; unset ac_configure_args0;}
1810: { ac_configure_args1=; unset ac_configure_args1;}
1811:
1812: # When interrupted or exit'd, cleanup temporary files, and complete
1813: # config.log. We remove comments because anyway the quotes in there
1814: # would cause problems or look ugly.
1815: # WARNING: Use '\'' to represent an apostrophe within the trap.
1816: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1817: trap 'exit_status=$?
1818: # Save into config.log some information that might help in debugging.
1819: {
1820: echo
1821:
1822: $as_echo "## ---------------- ##
1823: ## Cache variables. ##
1824: ## ---------------- ##"
1825: echo
1826: # The following way of writing the cache mishandles newlines in values,
1827: (
1828: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1829: eval ac_val=\$$ac_var
1830: case $ac_val in #(
1831: *${as_nl}*)
1832: case $ac_var in #(
1833: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1834: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1835: esac
1836: case $ac_var in #(
1837: _ | IFS | as_nl) ;; #(
1838: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1839: *) { eval $ac_var=; unset $ac_var;} ;;
1840: esac ;;
1841: esac
1842: done
1843: (set) 2>&1 |
1844: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1845: *${as_nl}ac_space=\ *)
1846: sed -n \
1847: "s/'\''/'\''\\\\'\'''\''/g;
1848: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1849: ;; #(
1850: *)
1851: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1852: ;;
1853: esac |
1854: sort
1855: )
1856: echo
1857:
1858: $as_echo "## ----------------- ##
1859: ## Output variables. ##
1860: ## ----------------- ##"
1861: echo
1862: for ac_var in $ac_subst_vars
1863: do
1864: eval ac_val=\$$ac_var
1865: case $ac_val in
1866: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1867: esac
1868: $as_echo "$ac_var='\''$ac_val'\''"
1869: done | sort
1870: echo
1871:
1872: if test -n "$ac_subst_files"; then
1873: $as_echo "## ------------------- ##
1874: ## File substitutions. ##
1875: ## ------------------- ##"
1876: echo
1877: for ac_var in $ac_subst_files
1878: do
1879: eval ac_val=\$$ac_var
1880: case $ac_val in
1881: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1882: esac
1883: $as_echo "$ac_var='\''$ac_val'\''"
1884: done | sort
1885: echo
1886: fi
1887:
1888: if test -s confdefs.h; then
1889: $as_echo "## ----------- ##
1890: ## confdefs.h. ##
1891: ## ----------- ##"
1892: echo
1893: cat confdefs.h
1894: echo
1895: fi
1896: test "$ac_signal" != 0 &&
1897: $as_echo "$as_me: caught signal $ac_signal"
1898: $as_echo "$as_me: exit $exit_status"
1899: } >&5
1900: rm -f core *.core core.conftest.* &&
1901: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1902: exit $exit_status
1903: ' 0
1904: for ac_signal in 1 2 13 15; do
1905: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1906: done
1907: ac_signal=0
1908:
1909: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1910: rm -f -r conftest* confdefs.h
1911:
1912: $as_echo "/* confdefs.h */" > confdefs.h
1913:
1914: # Predefined preprocessor variables.
1915:
1916: cat >>confdefs.h <<_ACEOF
1917: #define PACKAGE_NAME "$PACKAGE_NAME"
1918: _ACEOF
1919:
1920: cat >>confdefs.h <<_ACEOF
1921: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1922: _ACEOF
1923:
1924: cat >>confdefs.h <<_ACEOF
1925: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1926: _ACEOF
1927:
1928: cat >>confdefs.h <<_ACEOF
1929: #define PACKAGE_STRING "$PACKAGE_STRING"
1930: _ACEOF
1931:
1932: cat >>confdefs.h <<_ACEOF
1933: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1934: _ACEOF
1935:
1936: cat >>confdefs.h <<_ACEOF
1937: #define PACKAGE_URL "$PACKAGE_URL"
1938: _ACEOF
1939:
1940:
1941: # Let the site file select an alternate cache file if it wants to.
1942: # Prefer an explicitly selected file to automatically selected ones.
1943: ac_site_file1=NONE
1944: ac_site_file2=NONE
1945: if test -n "$CONFIG_SITE"; then
1946: # We do not want a PATH search for config.site.
1947: case $CONFIG_SITE in #((
1948: -*) ac_site_file1=./$CONFIG_SITE;;
1949: */*) ac_site_file1=$CONFIG_SITE;;
1950: *) ac_site_file1=./$CONFIG_SITE;;
1951: esac
1952: elif test "x$prefix" != xNONE; then
1953: ac_site_file1=$prefix/share/config.site
1954: ac_site_file2=$prefix/etc/config.site
1955: else
1956: ac_site_file1=$ac_default_prefix/share/config.site
1957: ac_site_file2=$ac_default_prefix/etc/config.site
1958: fi
1959: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1960: do
1961: test "x$ac_site_file" = xNONE && continue
1962: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1963: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1964: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1965: sed 's/^/| /' "$ac_site_file" >&5
1966: . "$ac_site_file" \
1967: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1968: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1969: as_fn_error $? "failed to load site script $ac_site_file
1970: See \`config.log' for more details" "$LINENO" 5; }
1971: fi
1972: done
1973:
1974: if test -r "$cache_file"; then
1975: # Some versions of bash will fail to source /dev/null (special files
1976: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1977: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1978: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1979: $as_echo "$as_me: loading cache $cache_file" >&6;}
1980: case $cache_file in
1981: [\\/]* | ?:[\\/]* ) . "$cache_file";;
1982: *) . "./$cache_file";;
1983: esac
1984: fi
1985: else
1986: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1987: $as_echo "$as_me: creating cache $cache_file" >&6;}
1988: >$cache_file
1989: fi
1990:
1.1.1.2 ! misho 1991: as_fn_append ac_header_list " alloca.h"
! 1992: as_fn_append ac_header_list " syslog.h"
1.1 misho 1993: # Check that the precious variables saved in the cache have kept the same
1994: # value.
1995: ac_cache_corrupted=false
1996: for ac_var in $ac_precious_vars; do
1997: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1998: eval ac_new_set=\$ac_env_${ac_var}_set
1999: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2000: eval ac_new_val=\$ac_env_${ac_var}_value
2001: case $ac_old_set,$ac_new_set in
2002: set,)
2003: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2004: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2005: ac_cache_corrupted=: ;;
2006: ,set)
2007: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2008: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2009: ac_cache_corrupted=: ;;
2010: ,);;
2011: *)
2012: if test "x$ac_old_val" != "x$ac_new_val"; then
2013: # differences in whitespace do not lead to failure.
2014: ac_old_val_w=`echo x $ac_old_val`
2015: ac_new_val_w=`echo x $ac_new_val`
2016: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2017: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2018: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2019: ac_cache_corrupted=:
2020: else
2021: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2022: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2023: eval $ac_var=\$ac_old_val
2024: fi
2025: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2026: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2027: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2028: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2029: fi;;
2030: esac
2031: # Pass precious variables to config.status.
2032: if test "$ac_new_set" = set; then
2033: case $ac_new_val in
2034: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2035: *) ac_arg=$ac_var=$ac_new_val ;;
2036: esac
2037: case " $ac_configure_args " in
2038: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2039: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2040: esac
2041: fi
2042: done
2043: if $ac_cache_corrupted; then
2044: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2045: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2046: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2047: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2048: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2049: fi
2050: ## -------------------- ##
2051: ## Main body of script. ##
2052: ## -------------------- ##
2053:
2054: ac_ext=c
2055: ac_cpp='$CPP $CPPFLAGS'
2056: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2057: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2058: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2059:
2060:
1.1.1.2 ! misho 2061:
1.1 misho 2062: ac_aux_dir=
2063: for ac_dir in tools "$srcdir"/tools; do
2064: if test -f "$ac_dir/install-sh"; then
2065: ac_aux_dir=$ac_dir
2066: ac_install_sh="$ac_aux_dir/install-sh -c"
2067: break
2068: elif test -f "$ac_dir/install.sh"; then
2069: ac_aux_dir=$ac_dir
2070: ac_install_sh="$ac_aux_dir/install.sh -c"
2071: break
2072: elif test -f "$ac_dir/shtool"; then
2073: ac_aux_dir=$ac_dir
2074: ac_install_sh="$ac_aux_dir/shtool install -c"
2075: break
2076: fi
2077: done
2078: if test -z "$ac_aux_dir"; then
2079: as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2080: fi
2081:
2082: # These three variables are undocumented and unsupported,
2083: # and are intended to be withdrawn in a future Autoconf release.
2084: # They can cause serious problems if a builder's source tree is in a directory
2085: # whose full name contains unusual characters.
2086: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2087: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2088: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2089:
2090:
2091:
1.1.1.2 ! misho 2092: # Check whether --enable-client was given.
! 2093: if test "${enable_client+set}" = set; then :
! 2094: enableval=$enable_client;
! 2095: else
! 2096: enable_client=yes
! 2097:
! 2098: fi
! 2099:
! 2100:
1.1 misho 2101: # Check whether --enable-debug was given.
2102: if test "${enable_debug+set}" = set; then :
2103: enableval=$enable_debug;
2104: else
2105: enable_debug=no
2106:
2107: fi
2108:
2109:
2110: # Check whether --enable-ipv6 was given.
2111: if test "${enable_ipv6+set}" = set; then :
2112: enableval=$enable_ipv6;
2113: else
2114: enable_ipv6=no
1.1.1.2 ! misho 2115:
! 2116: fi
! 2117:
! 2118:
! 2119: # Check whether --enable-memcheck was given.
! 2120: if test "${enable_memcheck+set}" = set; then :
! 2121: enableval=$enable_memcheck;
! 2122: else
! 2123: enable_memcheck=yes
! 2124:
1.1 misho 2125: fi
2126:
1.1.1.2 ! misho 2127:
1.1 misho 2128: # Check whether --enable-pthreads was given.
2129: if test "${enable_pthreads+set}" = set; then :
2130: enableval=$enable_pthreads;
2131: else
2132: enable_pthreads=try
2133:
2134: fi
2135:
2136:
2137:
2138: # Check whether --with-protocols was given.
2139: if test "${with_protocols+set}" = set; then :
2140: withval=$with_protocols;
2141: else
2142: with_protocols="all"
1.1.1.2 ! misho 2143:
! 2144: fi
! 2145:
! 2146:
! 2147:
! 2148: # Check whether --with-suffix was given.
! 2149: if test "${with_suffix+set}" = set; then :
! 2150: withval=$with_suffix; given_suffix="yes"
! 2151:
1.1 misho 2152: fi
2153:
2154:
1.1.1.2 ! misho 2155:
! 2156: # Check whether --with-sysconfig was given.
! 2157: if test "${with_sysconfig+set}" = set; then :
! 2158: withval=$with_sysconfig;
1.1 misho 2159: fi
2160:
2161:
1.1.1.2 ! misho 2162:
1.1 misho 2163: # Check whether --with-runtimedir was given.
2164: if test "${with_runtimedir+set}" = set; then :
1.1.1.2 ! misho 2165: withval=$with_runtimedir; runstatedir="$with_runtimedir"
! 2166:
1.1 misho 2167: fi
2168:
2169:
1.1.1.2 ! misho 2170:
1.1 misho 2171: # Check whether --with-iproutedir was given.
2172: if test "${with_iproutedir+set}" = set; then :
2173: withval=$with_iproutedir; given_iproutedir="yes"
1.1.1.2 ! misho 2174:
1.1 misho 2175: fi
2176:
2177:
2178:
2179:
2180:
2181:
1.1.1.2 ! misho 2182:
1.1 misho 2183: if test "$srcdir" = . ; then
1.1.1.2 ! misho 2184: # Building in current directory => create obj directory holding all objects
! 2185: objdir=obj
! 2186: mkdir -p obj
! 2187: srcdir_rel=..
! 2188: makefiles="Makefile:tools/Makefile-top.in obj/Makefile:tools/Makefile.in obj/Rules:tools/Rules.in"
! 2189: exedir=..
! 2190: else
! 2191: # Building in separate directory
! 2192: objdir=.
! 2193: srcdir_rel=$srcdir
! 2194: makefiles="Makefile:tools/Makefile.in Rules:tools/Rules.in"
! 2195: exedir=.
1.1 misho 2196: fi
1.1.1.2 ! misho 2197:
1.1 misho 2198: case $srcdir_rel in
1.1.1.2 ! misho 2199: /*) srcdir_rel_mf=$srcdir_rel ;;
! 2200: *) srcdir_rel_mf="\$(root-rel)$srcdir_rel" ;;
1.1 misho 2201: esac
2202:
2203:
2204:
2205:
2206:
1.1.1.2 ! misho 2207: # Workaround for older Autoconfs that do not define runstatedir
! 2208: if test -z "${runstatedir}"; then :
! 2209: runstatedir='${localstatedir}/run'
! 2210: fi
! 2211:
! 2212:
! 2213:
1.1 misho 2214: if test "$enable_ipv6" = yes ; then
1.1.1.2 ! misho 2215: ip=ipv6
! 2216: SUFFIX=6
! 2217: proto_radv=radv
1.1 misho 2218: else
1.1.1.2 ! misho 2219: ip=ipv4
! 2220: SUFFIX=""
1.1 misho 2221: fi
2222:
2223: if test "$given_suffix" = yes ; then
1.1.1.2 ! misho 2224: SUFFIX="$with_suffix"
1.1 misho 2225: fi
2226:
2227:
2228: if test "$enable_debug" = yes ; then
1.1.1.2 ! misho 2229: CONFIG_FILE="bird$SUFFIX.conf"
! 2230: CONTROL_SOCKET="bird$SUFFIX.ctl"
1.1 misho 2231: else
1.1.1.2 ! misho 2232: CONFIG_FILE="\$(sysconfdir)/bird$SUFFIX.conf"
! 2233: CONTROL_SOCKET="\$(runstatedir)/bird$SUFFIX.ctl"
1.1 misho 2234: fi
2235:
2236:
2237:
2238: ac_ext=c
2239: ac_cpp='$CPP $CPPFLAGS'
2240: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2241: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2242: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2243: if test -n "$ac_tool_prefix"; then
2244: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2245: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2246: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2247: $as_echo_n "checking for $ac_word... " >&6; }
2248: if ${ac_cv_prog_CC+:} false; then :
2249: $as_echo_n "(cached) " >&6
2250: else
2251: if test -n "$CC"; then
2252: ac_cv_prog_CC="$CC" # Let the user override the test.
2253: else
2254: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255: for as_dir in $PATH
2256: do
2257: IFS=$as_save_IFS
2258: test -z "$as_dir" && as_dir=.
2259: for ac_exec_ext in '' $ac_executable_extensions; do
2260: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2261: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2262: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2263: break 2
2264: fi
2265: done
2266: done
2267: IFS=$as_save_IFS
2268:
2269: fi
2270: fi
2271: CC=$ac_cv_prog_CC
2272: if test -n "$CC"; then
2273: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2274: $as_echo "$CC" >&6; }
2275: else
2276: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2277: $as_echo "no" >&6; }
2278: fi
2279:
2280:
2281: fi
2282: if test -z "$ac_cv_prog_CC"; then
2283: ac_ct_CC=$CC
2284: # Extract the first word of "gcc", so it can be a program name with args.
2285: set dummy gcc; ac_word=$2
2286: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2287: $as_echo_n "checking for $ac_word... " >&6; }
2288: if ${ac_cv_prog_ac_ct_CC+:} false; then :
2289: $as_echo_n "(cached) " >&6
2290: else
2291: if test -n "$ac_ct_CC"; then
2292: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2293: else
2294: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295: for as_dir in $PATH
2296: do
2297: IFS=$as_save_IFS
2298: test -z "$as_dir" && as_dir=.
2299: for ac_exec_ext in '' $ac_executable_extensions; do
2300: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2301: ac_cv_prog_ac_ct_CC="gcc"
2302: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2303: break 2
2304: fi
2305: done
2306: done
2307: IFS=$as_save_IFS
2308:
2309: fi
2310: fi
2311: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2312: if test -n "$ac_ct_CC"; then
2313: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2314: $as_echo "$ac_ct_CC" >&6; }
2315: else
2316: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2317: $as_echo "no" >&6; }
2318: fi
2319:
2320: if test "x$ac_ct_CC" = x; then
2321: CC=""
2322: else
2323: case $cross_compiling:$ac_tool_warned in
2324: yes:)
2325: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2326: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2327: ac_tool_warned=yes ;;
2328: esac
2329: CC=$ac_ct_CC
2330: fi
2331: else
2332: CC="$ac_cv_prog_CC"
2333: fi
2334:
2335: if test -z "$CC"; then
2336: if test -n "$ac_tool_prefix"; then
2337: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2338: set dummy ${ac_tool_prefix}cc; ac_word=$2
2339: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2340: $as_echo_n "checking for $ac_word... " >&6; }
2341: if ${ac_cv_prog_CC+:} false; then :
2342: $as_echo_n "(cached) " >&6
2343: else
2344: if test -n "$CC"; then
2345: ac_cv_prog_CC="$CC" # Let the user override the test.
2346: else
2347: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348: for as_dir in $PATH
2349: do
2350: IFS=$as_save_IFS
2351: test -z "$as_dir" && as_dir=.
2352: for ac_exec_ext in '' $ac_executable_extensions; do
2353: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2354: ac_cv_prog_CC="${ac_tool_prefix}cc"
2355: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2356: break 2
2357: fi
2358: done
2359: done
2360: IFS=$as_save_IFS
2361:
2362: fi
2363: fi
2364: CC=$ac_cv_prog_CC
2365: if test -n "$CC"; then
2366: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2367: $as_echo "$CC" >&6; }
2368: else
2369: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2370: $as_echo "no" >&6; }
2371: fi
2372:
2373:
2374: fi
2375: fi
2376: if test -z "$CC"; then
2377: # Extract the first word of "cc", so it can be a program name with args.
2378: set dummy cc; ac_word=$2
2379: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2380: $as_echo_n "checking for $ac_word... " >&6; }
2381: if ${ac_cv_prog_CC+:} false; then :
2382: $as_echo_n "(cached) " >&6
2383: else
2384: if test -n "$CC"; then
2385: ac_cv_prog_CC="$CC" # Let the user override the test.
2386: else
2387: ac_prog_rejected=no
2388: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389: for as_dir in $PATH
2390: do
2391: IFS=$as_save_IFS
2392: test -z "$as_dir" && as_dir=.
2393: for ac_exec_ext in '' $ac_executable_extensions; do
2394: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2395: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2396: ac_prog_rejected=yes
2397: continue
2398: fi
2399: ac_cv_prog_CC="cc"
2400: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2401: break 2
2402: fi
2403: done
2404: done
2405: IFS=$as_save_IFS
2406:
2407: if test $ac_prog_rejected = yes; then
2408: # We found a bogon in the path, so make sure we never use it.
2409: set dummy $ac_cv_prog_CC
2410: shift
2411: if test $# != 0; then
2412: # We chose a different compiler from the bogus one.
2413: # However, it has the same basename, so the bogon will be chosen
2414: # first if we set CC to just the basename; use the full file name.
2415: shift
2416: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2417: fi
2418: fi
2419: fi
2420: fi
2421: CC=$ac_cv_prog_CC
2422: if test -n "$CC"; then
2423: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2424: $as_echo "$CC" >&6; }
2425: else
2426: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2427: $as_echo "no" >&6; }
2428: fi
2429:
2430:
2431: fi
2432: if test -z "$CC"; then
2433: if test -n "$ac_tool_prefix"; then
2434: for ac_prog in cl.exe
2435: do
2436: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2437: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2438: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2439: $as_echo_n "checking for $ac_word... " >&6; }
2440: if ${ac_cv_prog_CC+:} false; then :
2441: $as_echo_n "(cached) " >&6
2442: else
2443: if test -n "$CC"; then
2444: ac_cv_prog_CC="$CC" # Let the user override the test.
2445: else
2446: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447: for as_dir in $PATH
2448: do
2449: IFS=$as_save_IFS
2450: test -z "$as_dir" && as_dir=.
2451: for ac_exec_ext in '' $ac_executable_extensions; do
2452: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2453: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2454: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2455: break 2
2456: fi
2457: done
2458: done
2459: IFS=$as_save_IFS
2460:
2461: fi
2462: fi
2463: CC=$ac_cv_prog_CC
2464: if test -n "$CC"; then
2465: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2466: $as_echo "$CC" >&6; }
2467: else
2468: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2469: $as_echo "no" >&6; }
2470: fi
2471:
2472:
2473: test -n "$CC" && break
2474: done
2475: fi
2476: if test -z "$CC"; then
2477: ac_ct_CC=$CC
2478: for ac_prog in cl.exe
2479: do
2480: # Extract the first word of "$ac_prog", so it can be a program name with args.
2481: set dummy $ac_prog; ac_word=$2
2482: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2483: $as_echo_n "checking for $ac_word... " >&6; }
2484: if ${ac_cv_prog_ac_ct_CC+:} false; then :
2485: $as_echo_n "(cached) " >&6
2486: else
2487: if test -n "$ac_ct_CC"; then
2488: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2489: else
2490: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491: for as_dir in $PATH
2492: do
2493: IFS=$as_save_IFS
2494: test -z "$as_dir" && as_dir=.
2495: for ac_exec_ext in '' $ac_executable_extensions; do
2496: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2497: ac_cv_prog_ac_ct_CC="$ac_prog"
2498: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2499: break 2
2500: fi
2501: done
2502: done
2503: IFS=$as_save_IFS
2504:
2505: fi
2506: fi
2507: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2508: if test -n "$ac_ct_CC"; then
2509: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2510: $as_echo "$ac_ct_CC" >&6; }
2511: else
2512: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2513: $as_echo "no" >&6; }
2514: fi
2515:
2516:
2517: test -n "$ac_ct_CC" && break
2518: done
2519:
2520: if test "x$ac_ct_CC" = x; then
2521: CC=""
2522: else
2523: case $cross_compiling:$ac_tool_warned in
2524: yes:)
2525: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2526: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2527: ac_tool_warned=yes ;;
2528: esac
2529: CC=$ac_ct_CC
2530: fi
2531: fi
2532:
2533: fi
2534:
2535:
2536: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2537: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2538: as_fn_error $? "no acceptable C compiler found in \$PATH
2539: See \`config.log' for more details" "$LINENO" 5; }
2540:
2541: # Provide some information about the compiler.
2542: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2543: set X $ac_compile
2544: ac_compiler=$2
2545: for ac_option in --version -v -V -qversion; do
2546: { { ac_try="$ac_compiler $ac_option >&5"
2547: case "(($ac_try" in
2548: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2549: *) ac_try_echo=$ac_try;;
2550: esac
2551: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2552: $as_echo "$ac_try_echo"; } >&5
2553: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2554: ac_status=$?
2555: if test -s conftest.err; then
2556: sed '10a\
2557: ... rest of stderr output deleted ...
2558: 10q' conftest.err >conftest.er1
2559: cat conftest.er1 >&5
2560: fi
2561: rm -f conftest.er1 conftest.err
2562: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2563: test $ac_status = 0; }
2564: done
2565:
2566: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2567: /* end confdefs.h. */
2568:
2569: int
2570: main ()
2571: {
2572:
2573: ;
2574: return 0;
2575: }
2576: _ACEOF
2577: ac_clean_files_save=$ac_clean_files
2578: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2579: # Try to create an executable without -o first, disregard a.out.
2580: # It will help us diagnose broken compilers, and finding out an intuition
2581: # of exeext.
2582: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2583: $as_echo_n "checking whether the C compiler works... " >&6; }
2584: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2585:
2586: # The possible output files:
2587: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2588:
2589: ac_rmfiles=
2590: for ac_file in $ac_files
2591: do
2592: case $ac_file in
2593: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2594: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2595: esac
2596: done
2597: rm -f $ac_rmfiles
2598:
2599: if { { ac_try="$ac_link_default"
2600: case "(($ac_try" in
2601: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2602: *) ac_try_echo=$ac_try;;
2603: esac
2604: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2605: $as_echo "$ac_try_echo"; } >&5
2606: (eval "$ac_link_default") 2>&5
2607: ac_status=$?
2608: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2609: test $ac_status = 0; }; then :
2610: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2611: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2612: # in a Makefile. We should not override ac_cv_exeext if it was cached,
2613: # so that the user can short-circuit this test for compilers unknown to
2614: # Autoconf.
2615: for ac_file in $ac_files ''
2616: do
2617: test -f "$ac_file" || continue
2618: case $ac_file in
2619: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2620: ;;
2621: [ab].out )
2622: # We found the default executable, but exeext='' is most
2623: # certainly right.
2624: break;;
2625: *.* )
2626: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2627: then :; else
2628: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2629: fi
2630: # We set ac_cv_exeext here because the later test for it is not
2631: # safe: cross compilers may not add the suffix if given an `-o'
2632: # argument, so we may need to know it at that point already.
2633: # Even if this section looks crufty: it has the advantage of
2634: # actually working.
2635: break;;
2636: * )
2637: break;;
2638: esac
2639: done
2640: test "$ac_cv_exeext" = no && ac_cv_exeext=
2641:
2642: else
2643: ac_file=''
2644: fi
2645: if test -z "$ac_file"; then :
2646: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2647: $as_echo "no" >&6; }
2648: $as_echo "$as_me: failed program was:" >&5
2649: sed 's/^/| /' conftest.$ac_ext >&5
2650:
2651: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2652: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2653: as_fn_error 77 "C compiler cannot create executables
2654: See \`config.log' for more details" "$LINENO" 5; }
2655: else
2656: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2657: $as_echo "yes" >&6; }
2658: fi
2659: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2660: $as_echo_n "checking for C compiler default output file name... " >&6; }
2661: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2662: $as_echo "$ac_file" >&6; }
2663: ac_exeext=$ac_cv_exeext
2664:
2665: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2666: ac_clean_files=$ac_clean_files_save
2667: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2668: $as_echo_n "checking for suffix of executables... " >&6; }
2669: if { { ac_try="$ac_link"
2670: case "(($ac_try" in
2671: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672: *) ac_try_echo=$ac_try;;
2673: esac
2674: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2675: $as_echo "$ac_try_echo"; } >&5
2676: (eval "$ac_link") 2>&5
2677: ac_status=$?
2678: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2679: test $ac_status = 0; }; then :
2680: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2681: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2682: # work properly (i.e., refer to `conftest.exe'), while it won't with
2683: # `rm'.
2684: for ac_file in conftest.exe conftest conftest.*; do
2685: test -f "$ac_file" || continue
2686: case $ac_file in
2687: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2688: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2689: break;;
2690: * ) break;;
2691: esac
2692: done
2693: else
2694: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2695: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2696: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2697: See \`config.log' for more details" "$LINENO" 5; }
2698: fi
2699: rm -f conftest conftest$ac_cv_exeext
2700: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2701: $as_echo "$ac_cv_exeext" >&6; }
2702:
2703: rm -f conftest.$ac_ext
2704: EXEEXT=$ac_cv_exeext
2705: ac_exeext=$EXEEXT
2706: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2707: /* end confdefs.h. */
2708: #include <stdio.h>
2709: int
2710: main ()
2711: {
2712: FILE *f = fopen ("conftest.out", "w");
2713: return ferror (f) || fclose (f) != 0;
2714:
2715: ;
2716: return 0;
2717: }
2718: _ACEOF
2719: ac_clean_files="$ac_clean_files conftest.out"
2720: # Check that the compiler produces executables we can run. If not, either
2721: # the compiler is broken, or we cross compile.
2722: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2723: $as_echo_n "checking whether we are cross compiling... " >&6; }
2724: if test "$cross_compiling" != yes; then
2725: { { ac_try="$ac_link"
2726: case "(($ac_try" in
2727: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728: *) ac_try_echo=$ac_try;;
2729: esac
2730: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2731: $as_echo "$ac_try_echo"; } >&5
2732: (eval "$ac_link") 2>&5
2733: ac_status=$?
2734: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2735: test $ac_status = 0; }
2736: if { ac_try='./conftest$ac_cv_exeext'
2737: { { case "(($ac_try" in
2738: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739: *) ac_try_echo=$ac_try;;
2740: esac
2741: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2742: $as_echo "$ac_try_echo"; } >&5
2743: (eval "$ac_try") 2>&5
2744: ac_status=$?
2745: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2746: test $ac_status = 0; }; }; then
2747: cross_compiling=no
2748: else
2749: if test "$cross_compiling" = maybe; then
2750: cross_compiling=yes
2751: else
2752: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2753: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2754: as_fn_error $? "cannot run C compiled programs.
2755: If you meant to cross compile, use \`--host'.
2756: See \`config.log' for more details" "$LINENO" 5; }
2757: fi
2758: fi
2759: fi
2760: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2761: $as_echo "$cross_compiling" >&6; }
2762:
2763: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2764: ac_clean_files=$ac_clean_files_save
2765: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2766: $as_echo_n "checking for suffix of object files... " >&6; }
2767: if ${ac_cv_objext+:} false; then :
2768: $as_echo_n "(cached) " >&6
2769: else
2770: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2771: /* end confdefs.h. */
2772:
2773: int
2774: main ()
2775: {
2776:
2777: ;
2778: return 0;
2779: }
2780: _ACEOF
2781: rm -f conftest.o conftest.obj
2782: if { { ac_try="$ac_compile"
2783: case "(($ac_try" in
2784: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785: *) ac_try_echo=$ac_try;;
2786: esac
2787: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2788: $as_echo "$ac_try_echo"; } >&5
2789: (eval "$ac_compile") 2>&5
2790: ac_status=$?
2791: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2792: test $ac_status = 0; }; then :
2793: for ac_file in conftest.o conftest.obj conftest.*; do
2794: test -f "$ac_file" || continue;
2795: case $ac_file in
2796: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2797: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2798: break;;
2799: esac
2800: done
2801: else
2802: $as_echo "$as_me: failed program was:" >&5
2803: sed 's/^/| /' conftest.$ac_ext >&5
2804:
2805: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2806: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2807: as_fn_error $? "cannot compute suffix of object files: cannot compile
2808: See \`config.log' for more details" "$LINENO" 5; }
2809: fi
2810: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2811: fi
2812: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2813: $as_echo "$ac_cv_objext" >&6; }
2814: OBJEXT=$ac_cv_objext
2815: ac_objext=$OBJEXT
2816: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2817: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2818: if ${ac_cv_c_compiler_gnu+:} false; then :
2819: $as_echo_n "(cached) " >&6
2820: else
2821: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2822: /* end confdefs.h. */
2823:
2824: int
2825: main ()
2826: {
2827: #ifndef __GNUC__
2828: choke me
2829: #endif
2830:
2831: ;
2832: return 0;
2833: }
2834: _ACEOF
2835: if ac_fn_c_try_compile "$LINENO"; then :
2836: ac_compiler_gnu=yes
2837: else
2838: ac_compiler_gnu=no
2839: fi
2840: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2841: ac_cv_c_compiler_gnu=$ac_compiler_gnu
2842:
2843: fi
2844: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2845: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2846: if test $ac_compiler_gnu = yes; then
2847: GCC=yes
2848: else
2849: GCC=
2850: fi
2851: ac_test_CFLAGS=${CFLAGS+set}
2852: ac_save_CFLAGS=$CFLAGS
2853: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2854: $as_echo_n "checking whether $CC accepts -g... " >&6; }
2855: if ${ac_cv_prog_cc_g+:} false; then :
2856: $as_echo_n "(cached) " >&6
2857: else
2858: ac_save_c_werror_flag=$ac_c_werror_flag
2859: ac_c_werror_flag=yes
2860: ac_cv_prog_cc_g=no
2861: CFLAGS="-g"
2862: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2863: /* end confdefs.h. */
2864:
2865: int
2866: main ()
2867: {
2868:
2869: ;
2870: return 0;
2871: }
2872: _ACEOF
2873: if ac_fn_c_try_compile "$LINENO"; then :
2874: ac_cv_prog_cc_g=yes
2875: else
2876: CFLAGS=""
2877: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2878: /* end confdefs.h. */
2879:
2880: int
2881: main ()
2882: {
2883:
2884: ;
2885: return 0;
2886: }
2887: _ACEOF
2888: if ac_fn_c_try_compile "$LINENO"; then :
2889:
2890: else
2891: ac_c_werror_flag=$ac_save_c_werror_flag
2892: CFLAGS="-g"
2893: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2894: /* end confdefs.h. */
2895:
2896: int
2897: main ()
2898: {
2899:
2900: ;
2901: return 0;
2902: }
2903: _ACEOF
2904: if ac_fn_c_try_compile "$LINENO"; then :
2905: ac_cv_prog_cc_g=yes
2906: fi
2907: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2908: fi
2909: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2910: fi
2911: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912: ac_c_werror_flag=$ac_save_c_werror_flag
2913: fi
2914: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2915: $as_echo "$ac_cv_prog_cc_g" >&6; }
2916: if test "$ac_test_CFLAGS" = set; then
2917: CFLAGS=$ac_save_CFLAGS
2918: elif test $ac_cv_prog_cc_g = yes; then
2919: if test "$GCC" = yes; then
2920: CFLAGS="-g -O2"
2921: else
2922: CFLAGS="-g"
2923: fi
2924: else
2925: if test "$GCC" = yes; then
2926: CFLAGS="-O2"
2927: else
2928: CFLAGS=
2929: fi
2930: fi
2931: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2932: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2933: if ${ac_cv_prog_cc_c89+:} false; then :
2934: $as_echo_n "(cached) " >&6
2935: else
2936: ac_cv_prog_cc_c89=no
2937: ac_save_CC=$CC
2938: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2939: /* end confdefs.h. */
2940: #include <stdarg.h>
2941: #include <stdio.h>
2942: struct stat;
2943: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2944: struct buf { int x; };
2945: FILE * (*rcsopen) (struct buf *, struct stat *, int);
2946: static char *e (p, i)
2947: char **p;
2948: int i;
2949: {
2950: return p[i];
2951: }
2952: static char *f (char * (*g) (char **, int), char **p, ...)
2953: {
2954: char *s;
2955: va_list v;
2956: va_start (v,p);
2957: s = g (p, va_arg (v,int));
2958: va_end (v);
2959: return s;
2960: }
2961:
2962: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2963: function prototypes and stuff, but not '\xHH' hex character constants.
2964: These don't provoke an error unfortunately, instead are silently treated
2965: as 'x'. The following induces an error, until -std is added to get
2966: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2967: array size at least. It's necessary to write '\x00'==0 to get something
2968: that's true only with -std. */
2969: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2970:
2971: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2972: inside strings and character constants. */
2973: #define FOO(x) 'x'
2974: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2975:
2976: int test (int i, double x);
2977: struct s1 {int (*f) (int a);};
2978: struct s2 {int (*f) (double a);};
2979: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2980: int argc;
2981: char **argv;
2982: int
2983: main ()
2984: {
2985: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2986: ;
2987: return 0;
2988: }
2989: _ACEOF
2990: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2991: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2992: do
2993: CC="$ac_save_CC $ac_arg"
2994: if ac_fn_c_try_compile "$LINENO"; then :
2995: ac_cv_prog_cc_c89=$ac_arg
2996: fi
2997: rm -f core conftest.err conftest.$ac_objext
2998: test "x$ac_cv_prog_cc_c89" != "xno" && break
2999: done
3000: rm -f conftest.$ac_ext
3001: CC=$ac_save_CC
3002:
3003: fi
3004: # AC_CACHE_VAL
3005: case "x$ac_cv_prog_cc_c89" in
3006: x)
3007: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3008: $as_echo "none needed" >&6; } ;;
3009: xno)
3010: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3011: $as_echo "unsupported" >&6; } ;;
3012: *)
3013: CC="$CC $ac_cv_prog_cc_c89"
3014: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3015: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3016: esac
3017: if test "x$ac_cv_prog_cc_c89" != xno; then :
3018:
3019: fi
3020:
3021: ac_ext=c
3022: ac_cpp='$CPP $CPPFLAGS'
3023: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3024: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3025: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3026:
3027:
3028: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
3029: $as_echo_n "checking for library containing clock_gettime... " >&6; }
3030: if ${ac_cv_search_clock_gettime+:} false; then :
3031: $as_echo_n "(cached) " >&6
3032: else
3033: ac_func_search_save_LIBS=$LIBS
3034: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3035: /* end confdefs.h. */
3036:
3037: /* Override any GCC internal prototype to avoid an error.
3038: Use char because int might match the return type of a GCC
3039: builtin and then its argument prototype would still apply. */
3040: #ifdef __cplusplus
3041: extern "C"
3042: #endif
3043: char clock_gettime ();
3044: int
3045: main ()
3046: {
3047: return clock_gettime ();
3048: ;
3049: return 0;
3050: }
3051: _ACEOF
1.1.1.2 ! misho 3052: for ac_lib in '' rt posix4; do
1.1 misho 3053: if test -z "$ac_lib"; then
3054: ac_res="none required"
3055: else
3056: ac_res=-l$ac_lib
3057: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3058: fi
3059: if ac_fn_c_try_link "$LINENO"; then :
3060: ac_cv_search_clock_gettime=$ac_res
3061: fi
3062: rm -f core conftest.err conftest.$ac_objext \
3063: conftest$ac_exeext
3064: if ${ac_cv_search_clock_gettime+:} false; then :
3065: break
3066: fi
3067: done
3068: if ${ac_cv_search_clock_gettime+:} false; then :
3069:
3070: else
3071: ac_cv_search_clock_gettime=no
3072: fi
3073: rm conftest.$ac_ext
3074: LIBS=$ac_func_search_save_LIBS
3075: fi
3076: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
3077: $as_echo "$ac_cv_search_clock_gettime" >&6; }
3078: ac_res=$ac_cv_search_clock_gettime
3079: if test "$ac_res" != no; then :
3080: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3081:
3082: else
3083: as_fn_error $? "Function clock_gettime not available." "$LINENO" 5
1.1.1.2 ! misho 3084:
1.1 misho 3085: fi
3086:
3087:
3088: # Make sure we can run config.sub.
3089: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3090: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3091:
3092: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3093: $as_echo_n "checking build system type... " >&6; }
3094: if ${ac_cv_build+:} false; then :
3095: $as_echo_n "(cached) " >&6
3096: else
3097: ac_build_alias=$build_alias
3098: test "x$ac_build_alias" = x &&
3099: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3100: test "x$ac_build_alias" = x &&
3101: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3102: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3103: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3104:
3105: fi
3106: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3107: $as_echo "$ac_cv_build" >&6; }
3108: case $ac_cv_build in
3109: *-*-*) ;;
3110: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3111: esac
3112: build=$ac_cv_build
3113: ac_save_IFS=$IFS; IFS='-'
3114: set x $ac_cv_build
3115: shift
3116: build_cpu=$1
3117: build_vendor=$2
3118: shift; shift
3119: # Remember, the first character of IFS is used to create $*,
3120: # except with old shells:
3121: build_os=$*
3122: IFS=$ac_save_IFS
3123: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3124:
3125:
3126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3127: $as_echo_n "checking host system type... " >&6; }
3128: if ${ac_cv_host+:} false; then :
3129: $as_echo_n "(cached) " >&6
3130: else
3131: if test "x$host_alias" = x; then
3132: ac_cv_host=$ac_cv_build
3133: else
3134: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3135: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3136: fi
3137:
3138: fi
3139: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3140: $as_echo "$ac_cv_host" >&6; }
3141: case $ac_cv_host in
3142: *-*-*) ;;
3143: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3144: esac
3145: host=$ac_cv_host
3146: ac_save_IFS=$IFS; IFS='-'
3147: set x $ac_cv_host
3148: shift
3149: host_cpu=$1
3150: host_vendor=$2
3151: shift; shift
3152: # Remember, the first character of IFS is used to create $*,
3153: # except with old shells:
3154: host_os=$*
3155: IFS=$ac_save_IFS
3156: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3157:
3158:
3159:
3160: # Store this value because ac_test_CFLAGS is overwritten by AC_PROG_CC
3161: if test "$ac_test_CFLAGS" != set ; then
1.1.1.2 ! misho 3162: bird_cflags_default=yes
1.1 misho 3163: fi
3164:
3165: ac_ext=c
3166: ac_cpp='$CPP $CPPFLAGS'
3167: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3168: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3169: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3170: if test -n "$ac_tool_prefix"; then
3171: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3172: set dummy ${ac_tool_prefix}gcc; ac_word=$2
3173: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174: $as_echo_n "checking for $ac_word... " >&6; }
3175: if ${ac_cv_prog_CC+:} false; then :
3176: $as_echo_n "(cached) " >&6
3177: else
3178: if test -n "$CC"; then
3179: ac_cv_prog_CC="$CC" # Let the user override the test.
3180: else
3181: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182: for as_dir in $PATH
3183: do
3184: IFS=$as_save_IFS
3185: test -z "$as_dir" && as_dir=.
3186: for ac_exec_ext in '' $ac_executable_extensions; do
3187: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188: ac_cv_prog_CC="${ac_tool_prefix}gcc"
3189: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190: break 2
3191: fi
3192: done
3193: done
3194: IFS=$as_save_IFS
3195:
3196: fi
3197: fi
3198: CC=$ac_cv_prog_CC
3199: if test -n "$CC"; then
3200: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3201: $as_echo "$CC" >&6; }
3202: else
3203: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204: $as_echo "no" >&6; }
3205: fi
3206:
3207:
3208: fi
3209: if test -z "$ac_cv_prog_CC"; then
3210: ac_ct_CC=$CC
3211: # Extract the first word of "gcc", so it can be a program name with args.
3212: set dummy gcc; ac_word=$2
3213: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3214: $as_echo_n "checking for $ac_word... " >&6; }
3215: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3216: $as_echo_n "(cached) " >&6
3217: else
3218: if test -n "$ac_ct_CC"; then
3219: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3220: else
3221: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222: for as_dir in $PATH
3223: do
3224: IFS=$as_save_IFS
3225: test -z "$as_dir" && as_dir=.
3226: for ac_exec_ext in '' $ac_executable_extensions; do
3227: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3228: ac_cv_prog_ac_ct_CC="gcc"
3229: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3230: break 2
3231: fi
3232: done
3233: done
3234: IFS=$as_save_IFS
3235:
3236: fi
3237: fi
3238: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3239: if test -n "$ac_ct_CC"; then
3240: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3241: $as_echo "$ac_ct_CC" >&6; }
3242: else
3243: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244: $as_echo "no" >&6; }
3245: fi
3246:
3247: if test "x$ac_ct_CC" = x; then
3248: CC=""
3249: else
3250: case $cross_compiling:$ac_tool_warned in
3251: yes:)
3252: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3253: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3254: ac_tool_warned=yes ;;
3255: esac
3256: CC=$ac_ct_CC
3257: fi
3258: else
3259: CC="$ac_cv_prog_CC"
3260: fi
3261:
3262: if test -z "$CC"; then
3263: if test -n "$ac_tool_prefix"; then
3264: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3265: set dummy ${ac_tool_prefix}cc; ac_word=$2
3266: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267: $as_echo_n "checking for $ac_word... " >&6; }
3268: if ${ac_cv_prog_CC+:} false; then :
3269: $as_echo_n "(cached) " >&6
3270: else
3271: if test -n "$CC"; then
3272: ac_cv_prog_CC="$CC" # Let the user override the test.
3273: else
3274: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275: for as_dir in $PATH
3276: do
3277: IFS=$as_save_IFS
3278: test -z "$as_dir" && as_dir=.
3279: for ac_exec_ext in '' $ac_executable_extensions; do
3280: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3281: ac_cv_prog_CC="${ac_tool_prefix}cc"
3282: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3283: break 2
3284: fi
3285: done
3286: done
3287: IFS=$as_save_IFS
3288:
3289: fi
3290: fi
3291: CC=$ac_cv_prog_CC
3292: if test -n "$CC"; then
3293: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3294: $as_echo "$CC" >&6; }
3295: else
3296: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297: $as_echo "no" >&6; }
3298: fi
3299:
3300:
3301: fi
3302: fi
3303: if test -z "$CC"; then
3304: # Extract the first word of "cc", so it can be a program name with args.
3305: set dummy cc; ac_word=$2
3306: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307: $as_echo_n "checking for $ac_word... " >&6; }
3308: if ${ac_cv_prog_CC+:} false; then :
3309: $as_echo_n "(cached) " >&6
3310: else
3311: if test -n "$CC"; then
3312: ac_cv_prog_CC="$CC" # Let the user override the test.
3313: else
3314: ac_prog_rejected=no
3315: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316: for as_dir in $PATH
3317: do
3318: IFS=$as_save_IFS
3319: test -z "$as_dir" && as_dir=.
3320: for ac_exec_ext in '' $ac_executable_extensions; do
3321: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3322: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3323: ac_prog_rejected=yes
3324: continue
3325: fi
3326: ac_cv_prog_CC="cc"
3327: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3328: break 2
3329: fi
3330: done
3331: done
3332: IFS=$as_save_IFS
3333:
3334: if test $ac_prog_rejected = yes; then
3335: # We found a bogon in the path, so make sure we never use it.
3336: set dummy $ac_cv_prog_CC
3337: shift
3338: if test $# != 0; then
3339: # We chose a different compiler from the bogus one.
3340: # However, it has the same basename, so the bogon will be chosen
3341: # first if we set CC to just the basename; use the full file name.
3342: shift
3343: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3344: fi
3345: fi
3346: fi
3347: fi
3348: CC=$ac_cv_prog_CC
3349: if test -n "$CC"; then
3350: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3351: $as_echo "$CC" >&6; }
3352: else
3353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354: $as_echo "no" >&6; }
3355: fi
3356:
3357:
3358: fi
3359: if test -z "$CC"; then
3360: if test -n "$ac_tool_prefix"; then
3361: for ac_prog in cl.exe
3362: do
3363: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3364: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3365: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3366: $as_echo_n "checking for $ac_word... " >&6; }
3367: if ${ac_cv_prog_CC+:} false; then :
3368: $as_echo_n "(cached) " >&6
3369: else
3370: if test -n "$CC"; then
3371: ac_cv_prog_CC="$CC" # Let the user override the test.
3372: else
3373: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374: for as_dir in $PATH
3375: do
3376: IFS=$as_save_IFS
3377: test -z "$as_dir" && as_dir=.
3378: for ac_exec_ext in '' $ac_executable_extensions; do
3379: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3380: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3381: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3382: break 2
3383: fi
3384: done
3385: done
3386: IFS=$as_save_IFS
3387:
3388: fi
3389: fi
3390: CC=$ac_cv_prog_CC
3391: if test -n "$CC"; then
3392: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3393: $as_echo "$CC" >&6; }
3394: else
3395: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396: $as_echo "no" >&6; }
3397: fi
3398:
3399:
3400: test -n "$CC" && break
3401: done
3402: fi
3403: if test -z "$CC"; then
3404: ac_ct_CC=$CC
3405: for ac_prog in cl.exe
3406: do
3407: # Extract the first word of "$ac_prog", so it can be a program name with args.
3408: set dummy $ac_prog; ac_word=$2
3409: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3410: $as_echo_n "checking for $ac_word... " >&6; }
3411: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3412: $as_echo_n "(cached) " >&6
3413: else
3414: if test -n "$ac_ct_CC"; then
3415: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3416: else
3417: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418: for as_dir in $PATH
3419: do
3420: IFS=$as_save_IFS
3421: test -z "$as_dir" && as_dir=.
3422: for ac_exec_ext in '' $ac_executable_extensions; do
3423: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3424: ac_cv_prog_ac_ct_CC="$ac_prog"
3425: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3426: break 2
3427: fi
3428: done
3429: done
3430: IFS=$as_save_IFS
3431:
3432: fi
3433: fi
3434: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3435: if test -n "$ac_ct_CC"; then
3436: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3437: $as_echo "$ac_ct_CC" >&6; }
3438: else
3439: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3440: $as_echo "no" >&6; }
3441: fi
3442:
3443:
3444: test -n "$ac_ct_CC" && break
3445: done
3446:
3447: if test "x$ac_ct_CC" = x; then
3448: CC=""
3449: else
3450: case $cross_compiling:$ac_tool_warned in
3451: yes:)
3452: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3453: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3454: ac_tool_warned=yes ;;
3455: esac
3456: CC=$ac_ct_CC
3457: fi
3458: fi
3459:
3460: fi
3461:
3462:
3463: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3464: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3465: as_fn_error $? "no acceptable C compiler found in \$PATH
3466: See \`config.log' for more details" "$LINENO" 5; }
3467:
3468: # Provide some information about the compiler.
3469: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3470: set X $ac_compile
3471: ac_compiler=$2
3472: for ac_option in --version -v -V -qversion; do
3473: { { ac_try="$ac_compiler $ac_option >&5"
3474: case "(($ac_try" in
3475: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476: *) ac_try_echo=$ac_try;;
3477: esac
3478: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3479: $as_echo "$ac_try_echo"; } >&5
3480: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3481: ac_status=$?
3482: if test -s conftest.err; then
3483: sed '10a\
3484: ... rest of stderr output deleted ...
3485: 10q' conftest.err >conftest.er1
3486: cat conftest.er1 >&5
3487: fi
3488: rm -f conftest.er1 conftest.err
3489: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3490: test $ac_status = 0; }
3491: done
3492:
3493: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3494: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3495: if ${ac_cv_c_compiler_gnu+:} false; then :
3496: $as_echo_n "(cached) " >&6
3497: else
3498: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499: /* end confdefs.h. */
3500:
3501: int
3502: main ()
3503: {
3504: #ifndef __GNUC__
3505: choke me
3506: #endif
3507:
3508: ;
3509: return 0;
3510: }
3511: _ACEOF
3512: if ac_fn_c_try_compile "$LINENO"; then :
3513: ac_compiler_gnu=yes
3514: else
3515: ac_compiler_gnu=no
3516: fi
3517: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3518: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3519:
3520: fi
3521: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3522: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3523: if test $ac_compiler_gnu = yes; then
3524: GCC=yes
3525: else
3526: GCC=
3527: fi
3528: ac_test_CFLAGS=${CFLAGS+set}
3529: ac_save_CFLAGS=$CFLAGS
3530: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3531: $as_echo_n "checking whether $CC accepts -g... " >&6; }
3532: if ${ac_cv_prog_cc_g+:} false; then :
3533: $as_echo_n "(cached) " >&6
3534: else
3535: ac_save_c_werror_flag=$ac_c_werror_flag
3536: ac_c_werror_flag=yes
3537: ac_cv_prog_cc_g=no
3538: CFLAGS="-g"
3539: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540: /* end confdefs.h. */
3541:
3542: int
3543: main ()
3544: {
3545:
3546: ;
3547: return 0;
3548: }
3549: _ACEOF
3550: if ac_fn_c_try_compile "$LINENO"; then :
3551: ac_cv_prog_cc_g=yes
3552: else
3553: CFLAGS=""
3554: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555: /* end confdefs.h. */
3556:
3557: int
3558: main ()
3559: {
3560:
3561: ;
3562: return 0;
3563: }
3564: _ACEOF
3565: if ac_fn_c_try_compile "$LINENO"; then :
3566:
3567: else
3568: ac_c_werror_flag=$ac_save_c_werror_flag
3569: CFLAGS="-g"
3570: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571: /* end confdefs.h. */
3572:
3573: int
3574: main ()
3575: {
3576:
3577: ;
3578: return 0;
3579: }
3580: _ACEOF
3581: if ac_fn_c_try_compile "$LINENO"; then :
3582: ac_cv_prog_cc_g=yes
3583: fi
3584: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585: fi
3586: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587: fi
3588: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589: ac_c_werror_flag=$ac_save_c_werror_flag
3590: fi
3591: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3592: $as_echo "$ac_cv_prog_cc_g" >&6; }
3593: if test "$ac_test_CFLAGS" = set; then
3594: CFLAGS=$ac_save_CFLAGS
3595: elif test $ac_cv_prog_cc_g = yes; then
3596: if test "$GCC" = yes; then
3597: CFLAGS="-g -O2"
3598: else
3599: CFLAGS="-g"
3600: fi
3601: else
3602: if test "$GCC" = yes; then
3603: CFLAGS="-O2"
3604: else
3605: CFLAGS=
3606: fi
3607: fi
3608: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3609: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3610: if ${ac_cv_prog_cc_c89+:} false; then :
3611: $as_echo_n "(cached) " >&6
3612: else
3613: ac_cv_prog_cc_c89=no
3614: ac_save_CC=$CC
3615: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616: /* end confdefs.h. */
3617: #include <stdarg.h>
3618: #include <stdio.h>
3619: struct stat;
3620: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3621: struct buf { int x; };
3622: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3623: static char *e (p, i)
3624: char **p;
3625: int i;
3626: {
3627: return p[i];
3628: }
3629: static char *f (char * (*g) (char **, int), char **p, ...)
3630: {
3631: char *s;
3632: va_list v;
3633: va_start (v,p);
3634: s = g (p, va_arg (v,int));
3635: va_end (v);
3636: return s;
3637: }
3638:
3639: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3640: function prototypes and stuff, but not '\xHH' hex character constants.
3641: These don't provoke an error unfortunately, instead are silently treated
3642: as 'x'. The following induces an error, until -std is added to get
3643: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3644: array size at least. It's necessary to write '\x00'==0 to get something
3645: that's true only with -std. */
3646: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3647:
3648: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3649: inside strings and character constants. */
3650: #define FOO(x) 'x'
3651: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3652:
3653: int test (int i, double x);
3654: struct s1 {int (*f) (int a);};
3655: struct s2 {int (*f) (double a);};
3656: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3657: int argc;
3658: char **argv;
3659: int
3660: main ()
3661: {
3662: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3663: ;
3664: return 0;
3665: }
3666: _ACEOF
3667: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3668: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3669: do
3670: CC="$ac_save_CC $ac_arg"
3671: if ac_fn_c_try_compile "$LINENO"; then :
3672: ac_cv_prog_cc_c89=$ac_arg
3673: fi
3674: rm -f core conftest.err conftest.$ac_objext
3675: test "x$ac_cv_prog_cc_c89" != "xno" && break
3676: done
3677: rm -f conftest.$ac_ext
3678: CC=$ac_save_CC
3679:
3680: fi
3681: # AC_CACHE_VAL
3682: case "x$ac_cv_prog_cc_c89" in
3683: x)
3684: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3685: $as_echo "none needed" >&6; } ;;
3686: xno)
3687: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3688: $as_echo "unsupported" >&6; } ;;
3689: *)
3690: CC="$CC $ac_cv_prog_cc_c89"
3691: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3692: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3693: esac
3694: if test "x$ac_cv_prog_cc_c89" != xno; then :
3695:
3696: fi
3697:
3698: ac_ext=c
3699: ac_cpp='$CPP $CPPFLAGS'
3700: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3701: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3702: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3703:
3704: if test -z "$GCC" ; then
1.1.1.2 ! misho 3705: as_fn_error $? "This program requires the GNU C Compiler." "$LINENO" 5
1.1 misho 3706: fi
3707:
3708: if test "$enable_pthreads" != no ; then
3709:
3710: bird_tmp_cflags="$CFLAGS"
3711: CFLAGS="$CFLAGS -pthread"
1.1.1.2 ! misho 3712:
1.1 misho 3713: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads are available" >&5
3714: $as_echo_n "checking whether POSIX threads are available... " >&6; }
3715: if ${bird_cv_lib_pthreads+:} false; then :
3716: $as_echo_n "(cached) " >&6
3717: else
1.1.1.2 ! misho 3718:
! 3719: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 3720: /* end confdefs.h. */
1.1.1.2 ! misho 3721:
! 3722: #include <pthread.h>
1.1 misho 3723: int
3724: main ()
3725: {
1.1.1.2 ! misho 3726:
! 3727: pthread_t pt;
! 3728: pthread_create(&pt, NULL, NULL, NULL);
! 3729: pthread_spinlock_t lock;
! 3730: pthread_spin_lock(&lock);
! 3731:
! 3732:
1.1 misho 3733: ;
3734: return 0;
3735: }
1.1.1.2 ! misho 3736:
1.1 misho 3737: _ACEOF
3738: if ac_fn_c_try_link "$LINENO"; then :
3739: bird_cv_lib_pthreads=yes
3740: else
3741: bird_cv_lib_pthreads=no
1.1.1.2 ! misho 3742:
1.1 misho 3743: fi
3744: rm -f core conftest.err conftest.$ac_objext \
3745: conftest$ac_exeext conftest.$ac_ext
1.1.1.2 ! misho 3746:
! 3747:
1.1 misho 3748: fi
3749: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bird_cv_lib_pthreads" >&5
3750: $as_echo "$bird_cv_lib_pthreads" >&6; }
3751:
3752: CFLAGS="$bird_tmp_cflags"
3753:
3754:
1.1.1.2 ! misho 3755: if test "$bird_cv_lib_pthreads" = yes ; then
1.1 misho 3756:
1.1.1.2 ! misho 3757: $as_echo "#define USE_PTHREADS 1" >>confdefs.h
1.1 misho 3758:
1.1.1.2 ! misho 3759: CFLAGS="$CFLAGS -pthread"
! 3760: LDFLAGS="$LDFLAGS -pthread"
! 3761: proto_bfd=bfd
! 3762: elif test "$enable_pthreads" = yes ; then
! 3763: as_fn_error $? "POSIX threads not available." "$LINENO" 5
! 3764: fi
! 3765:
! 3766: if test "$enable_pthreads" = try ; then
! 3767: enable_pthreads="$bird_cv_lib_pthreads"
! 3768: fi
1.1 misho 3769: fi
3770:
3771: if test "$bird_cflags_default" = yes ; then
3772:
3773: bird_tmp_cflags="$CFLAGS"
3774: CFLAGS="-Wall -Wno-pointer-sign"
1.1.1.2 ! misho 3775:
1.1 misho 3776: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -Wno-pointer-sign" >&5
3777: $as_echo_n "checking whether CC supports -Wno-pointer-sign... " >&6; }
3778: if ${bird_cv_c_option_wno_pointer_sign+:} false; then :
3779: $as_echo_n "(cached) " >&6
3780: else
1.1.1.2 ! misho 3781:
! 3782: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 3783: /* end confdefs.h. */
3784:
3785: int
3786: main ()
3787: {
3788:
3789: ;
3790: return 0;
3791: }
3792: _ACEOF
3793: if ac_fn_c_try_compile "$LINENO"; then :
3794: bird_cv_c_option_wno_pointer_sign=yes
3795: else
3796: bird_cv_c_option_wno_pointer_sign=no
1.1.1.2 ! misho 3797:
1.1 misho 3798: fi
3799: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.2 ! misho 3800:
! 3801:
1.1 misho 3802: fi
3803: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bird_cv_c_option_wno_pointer_sign" >&5
3804: $as_echo "$bird_cv_c_option_wno_pointer_sign" >&6; }
3805:
3806: CFLAGS="$bird_tmp_cflags"
3807:
3808:
3809: bird_tmp_cflags="$CFLAGS"
3810: CFLAGS="-Wall -Wextra -Wno-missing-field-initializers"
1.1.1.2 ! misho 3811:
1.1 misho 3812: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -Wno-missing-field-initializers" >&5
3813: $as_echo_n "checking whether CC supports -Wno-missing-field-initializers... " >&6; }
3814: if ${bird_cv_c_option_wno_missing_init+:} false; then :
3815: $as_echo_n "(cached) " >&6
3816: else
1.1.1.2 ! misho 3817:
! 3818: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 3819: /* end confdefs.h. */
3820:
3821: int
3822: main ()
3823: {
3824:
3825: ;
3826: return 0;
3827: }
3828: _ACEOF
3829: if ac_fn_c_try_compile "$LINENO"; then :
3830: bird_cv_c_option_wno_missing_init=yes
3831: else
3832: bird_cv_c_option_wno_missing_init=no
1.1.1.2 ! misho 3833:
1.1 misho 3834: fi
3835: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.2 ! misho 3836:
! 3837:
1.1 misho 3838: fi
3839: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bird_cv_c_option_wno_missing_init" >&5
3840: $as_echo "$bird_cv_c_option_wno_missing_init" >&6; }
3841:
3842: CFLAGS="$bird_tmp_cflags"
3843:
3844:
3845: bird_tmp_cflags="$CFLAGS"
3846: CFLAGS=" -fno-strict-aliasing"
1.1.1.2 ! misho 3847:
1.1 misho 3848: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -fno-strict-aliasing" >&5
3849: $as_echo_n "checking whether CC supports -fno-strict-aliasing... " >&6; }
3850: if ${bird_cv_c_option_fno_strict_aliasing+:} false; then :
3851: $as_echo_n "(cached) " >&6
3852: else
1.1.1.2 ! misho 3853:
! 3854: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 3855: /* end confdefs.h. */
3856:
3857: int
3858: main ()
3859: {
3860:
3861: ;
3862: return 0;
3863: }
3864: _ACEOF
3865: if ac_fn_c_try_compile "$LINENO"; then :
3866: bird_cv_c_option_fno_strict_aliasing=yes
3867: else
3868: bird_cv_c_option_fno_strict_aliasing=no
1.1.1.2 ! misho 3869:
1.1 misho 3870: fi
3871: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.2 ! misho 3872:
! 3873:
1.1 misho 3874: fi
3875: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bird_cv_c_option_fno_strict_aliasing" >&5
3876: $as_echo "$bird_cv_c_option_fno_strict_aliasing" >&6; }
3877:
3878: CFLAGS="$bird_tmp_cflags"
3879:
3880:
3881: bird_tmp_cflags="$CFLAGS"
3882: CFLAGS=" -fno-strict-overflow"
1.1.1.2 ! misho 3883:
1.1 misho 3884: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -fno-strict-overflow" >&5
3885: $as_echo_n "checking whether CC supports -fno-strict-overflow... " >&6; }
3886: if ${bird_cv_c_option_fno_strict_overflow+:} false; then :
3887: $as_echo_n "(cached) " >&6
3888: else
1.1.1.2 ! misho 3889:
! 3890: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 3891: /* end confdefs.h. */
1.1 misho 3892:
3893: int
3894: main ()
3895: {
3896:
3897: ;
3898: return 0;
3899: }
3900: _ACEOF
3901: if ac_fn_c_try_compile "$LINENO"; then :
3902: bird_cv_c_option_fno_strict_overflow=yes
3903: else
3904: bird_cv_c_option_fno_strict_overflow=no
1.1.1.2 ! misho 3905:
1.1 misho 3906: fi
3907: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.2 ! misho 3908:
! 3909:
1.1 misho 3910: fi
3911: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bird_cv_c_option_fno_strict_overflow" >&5
3912: $as_echo "$bird_cv_c_option_fno_strict_overflow" >&6; }
3913:
3914: CFLAGS="$bird_tmp_cflags"
3915:
3916:
1.1.1.2 ! misho 3917: CFLAGS="$CFLAGS -Wall -Wextra -Wstrict-prototypes -Wno-parentheses"
1.1 misho 3918:
3919: if test "$bird_cv_c_option_wno_pointer_sign" = yes ; then
3920: CFLAGS="$CFLAGS -Wno-pointer-sign"
3921: fi
3922:
3923:
3924: if test "$bird_cv_c_option_wno_missing_init" = yes ; then
3925: CFLAGS="$CFLAGS -Wno-missing-field-initializers"
3926: fi
3927:
3928:
3929: if test "$bird_cv_c_option_fno_strict_aliasing" = yes ; then
3930: CFLAGS="$CFLAGS -fno-strict-aliasing"
3931: fi
3932:
3933:
3934: if test "$bird_cv_c_option_fno_strict_overflow" = yes ; then
3935: CFLAGS="$CFLAGS -fno-strict-overflow"
3936: fi
3937:
3938: fi
3939: { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS" >&5
3940: $as_echo_n "checking CFLAGS... " >&6; }
3941: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGS" >&5
3942: $as_echo "$CFLAGS" >&6; }
3943:
3944:
3945: ac_ext=c
3946: ac_cpp='$CPP $CPPFLAGS'
3947: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3948: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3949: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3950: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3951: $as_echo_n "checking how to run the C preprocessor... " >&6; }
3952: # On Suns, sometimes $CPP names a directory.
3953: if test -n "$CPP" && test -d "$CPP"; then
3954: CPP=
3955: fi
3956: if test -z "$CPP"; then
3957: if ${ac_cv_prog_CPP+:} false; then :
3958: $as_echo_n "(cached) " >&6
3959: else
3960: # Double quotes because CPP needs to be expanded
3961: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3962: do
3963: ac_preproc_ok=false
3964: for ac_c_preproc_warn_flag in '' yes
3965: do
3966: # Use a header file that comes with gcc, so configuring glibc
3967: # with a fresh cross-compiler works.
3968: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3969: # <limits.h> exists even on freestanding compilers.
3970: # On the NeXT, cc -E runs the code through the compiler's parser,
3971: # not just through cpp. "Syntax error" is here to catch this case.
3972: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973: /* end confdefs.h. */
3974: #ifdef __STDC__
3975: # include <limits.h>
3976: #else
3977: # include <assert.h>
3978: #endif
3979: Syntax error
3980: _ACEOF
3981: if ac_fn_c_try_cpp "$LINENO"; then :
3982:
3983: else
3984: # Broken: fails on valid input.
3985: continue
3986: fi
3987: rm -f conftest.err conftest.i conftest.$ac_ext
3988:
3989: # OK, works on sane cases. Now check whether nonexistent headers
3990: # can be detected and how.
3991: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992: /* end confdefs.h. */
3993: #include <ac_nonexistent.h>
3994: _ACEOF
3995: if ac_fn_c_try_cpp "$LINENO"; then :
3996: # Broken: success on invalid input.
3997: continue
3998: else
3999: # Passes both tests.
4000: ac_preproc_ok=:
4001: break
4002: fi
4003: rm -f conftest.err conftest.i conftest.$ac_ext
4004:
4005: done
4006: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4007: rm -f conftest.i conftest.err conftest.$ac_ext
4008: if $ac_preproc_ok; then :
4009: break
4010: fi
4011:
4012: done
4013: ac_cv_prog_CPP=$CPP
4014:
4015: fi
4016: CPP=$ac_cv_prog_CPP
4017: else
4018: ac_cv_prog_CPP=$CPP
4019: fi
4020: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4021: $as_echo "$CPP" >&6; }
4022: ac_preproc_ok=false
4023: for ac_c_preproc_warn_flag in '' yes
4024: do
4025: # Use a header file that comes with gcc, so configuring glibc
4026: # with a fresh cross-compiler works.
4027: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4028: # <limits.h> exists even on freestanding compilers.
4029: # On the NeXT, cc -E runs the code through the compiler's parser,
4030: # not just through cpp. "Syntax error" is here to catch this case.
4031: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4032: /* end confdefs.h. */
4033: #ifdef __STDC__
4034: # include <limits.h>
4035: #else
4036: # include <assert.h>
4037: #endif
4038: Syntax error
4039: _ACEOF
4040: if ac_fn_c_try_cpp "$LINENO"; then :
4041:
4042: else
4043: # Broken: fails on valid input.
4044: continue
4045: fi
4046: rm -f conftest.err conftest.i conftest.$ac_ext
4047:
4048: # OK, works on sane cases. Now check whether nonexistent headers
4049: # can be detected and how.
4050: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051: /* end confdefs.h. */
4052: #include <ac_nonexistent.h>
4053: _ACEOF
4054: if ac_fn_c_try_cpp "$LINENO"; then :
4055: # Broken: success on invalid input.
4056: continue
4057: else
4058: # Passes both tests.
4059: ac_preproc_ok=:
4060: break
4061: fi
4062: rm -f conftest.err conftest.i conftest.$ac_ext
4063:
4064: done
4065: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4066: rm -f conftest.i conftest.err conftest.$ac_ext
4067: if $ac_preproc_ok; then :
4068:
4069: else
4070: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4071: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4072: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4073: See \`config.log' for more details" "$LINENO" 5; }
4074: fi
4075:
4076: ac_ext=c
4077: ac_cpp='$CPP $CPPFLAGS'
4078: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4079: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4080: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4081:
4082: # Find a good install program. We prefer a C program (faster),
4083: # so one script is as good as another. But avoid the broken or
4084: # incompatible versions:
4085: # SysV /etc/install, /usr/sbin/install
4086: # SunOS /usr/etc/install
4087: # IRIX /sbin/install
4088: # AIX /bin/install
4089: # AmigaOS /C/install, which installs bootblocks on floppy discs
4090: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4091: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4092: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4093: # OS/2's system install, which has a completely different semantic
4094: # ./install, which can be erroneously created by make from ./install.sh.
4095: # Reject install programs that cannot install multiple files.
4096: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4097: $as_echo_n "checking for a BSD-compatible install... " >&6; }
4098: if test -z "$INSTALL"; then
4099: if ${ac_cv_path_install+:} false; then :
4100: $as_echo_n "(cached) " >&6
4101: else
4102: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103: for as_dir in $PATH
4104: do
4105: IFS=$as_save_IFS
4106: test -z "$as_dir" && as_dir=.
4107: # Account for people who put trailing slashes in PATH elements.
4108: case $as_dir/ in #((
4109: ./ | .// | /[cC]/* | \
4110: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4111: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4112: /usr/ucb/* ) ;;
4113: *)
4114: # OSF1 and SCO ODT 3.0 have their own names for install.
4115: # Don't use installbsd from OSF since it installs stuff as root
4116: # by default.
4117: for ac_prog in ginstall scoinst install; do
4118: for ac_exec_ext in '' $ac_executable_extensions; do
4119: if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4120: if test $ac_prog = install &&
4121: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4122: # AIX install. It has an incompatible calling convention.
4123: :
4124: elif test $ac_prog = install &&
4125: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4126: # program-specific install script used by HP pwplus--don't use.
4127: :
4128: else
4129: rm -rf conftest.one conftest.two conftest.dir
4130: echo one > conftest.one
4131: echo two > conftest.two
4132: mkdir conftest.dir
4133: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4134: test -s conftest.one && test -s conftest.two &&
4135: test -s conftest.dir/conftest.one &&
4136: test -s conftest.dir/conftest.two
4137: then
4138: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4139: break 3
4140: fi
4141: fi
4142: fi
4143: done
4144: done
4145: ;;
4146: esac
4147:
4148: done
4149: IFS=$as_save_IFS
4150:
4151: rm -rf conftest.one conftest.two conftest.dir
4152:
4153: fi
4154: if test "${ac_cv_path_install+set}" = set; then
4155: INSTALL=$ac_cv_path_install
4156: else
4157: # As a last resort, use the slow shell script. Don't cache a
4158: # value for INSTALL within a source directory, because that will
4159: # break other packages using the cache if that directory is
4160: # removed, or if the value is a relative name.
4161: INSTALL=$ac_install_sh
4162: fi
4163: fi
4164: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4165: $as_echo "$INSTALL" >&6; }
4166:
4167: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4168: # It thinks the first close brace ends the variable substitution.
4169: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4170:
4171: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4172:
4173: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4174:
4175: if test -n "$ac_tool_prefix"; then
4176: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4177: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4178: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4179: $as_echo_n "checking for $ac_word... " >&6; }
4180: if ${ac_cv_prog_RANLIB+:} false; then :
4181: $as_echo_n "(cached) " >&6
4182: else
4183: if test -n "$RANLIB"; then
4184: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4185: else
4186: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187: for as_dir in $PATH
4188: do
4189: IFS=$as_save_IFS
4190: test -z "$as_dir" && as_dir=.
4191: for ac_exec_ext in '' $ac_executable_extensions; do
4192: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4193: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4194: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4195: break 2
4196: fi
4197: done
4198: done
4199: IFS=$as_save_IFS
4200:
4201: fi
4202: fi
4203: RANLIB=$ac_cv_prog_RANLIB
4204: if test -n "$RANLIB"; then
4205: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4206: $as_echo "$RANLIB" >&6; }
4207: else
4208: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4209: $as_echo "no" >&6; }
4210: fi
4211:
4212:
4213: fi
4214: if test -z "$ac_cv_prog_RANLIB"; then
4215: ac_ct_RANLIB=$RANLIB
4216: # Extract the first word of "ranlib", so it can be a program name with args.
4217: set dummy ranlib; ac_word=$2
4218: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4219: $as_echo_n "checking for $ac_word... " >&6; }
4220: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4221: $as_echo_n "(cached) " >&6
4222: else
4223: if test -n "$ac_ct_RANLIB"; then
4224: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4225: else
4226: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227: for as_dir in $PATH
4228: do
4229: IFS=$as_save_IFS
4230: test -z "$as_dir" && as_dir=.
4231: for ac_exec_ext in '' $ac_executable_extensions; do
4232: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4233: ac_cv_prog_ac_ct_RANLIB="ranlib"
4234: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4235: break 2
4236: fi
4237: done
4238: done
4239: IFS=$as_save_IFS
4240:
4241: fi
4242: fi
4243: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4244: if test -n "$ac_ct_RANLIB"; then
4245: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4246: $as_echo "$ac_ct_RANLIB" >&6; }
4247: else
4248: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4249: $as_echo "no" >&6; }
4250: fi
4251:
4252: if test "x$ac_ct_RANLIB" = x; then
4253: RANLIB=":"
4254: else
4255: case $cross_compiling:$ac_tool_warned in
4256: yes:)
4257: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4258: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4259: ac_tool_warned=yes ;;
4260: esac
4261: RANLIB=$ac_ct_RANLIB
4262: fi
4263: else
4264: RANLIB="$ac_cv_prog_RANLIB"
4265: fi
4266:
4267: # Extract the first word of "flex", so it can be a program name with args.
4268: set dummy flex; ac_word=$2
4269: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4270: $as_echo_n "checking for $ac_word... " >&6; }
4271: if ${ac_cv_prog_FLEX+:} false; then :
4272: $as_echo_n "(cached) " >&6
4273: else
4274: if test -n "$FLEX"; then
4275: ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4276: else
4277: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278: for as_dir in $PATH
4279: do
4280: IFS=$as_save_IFS
4281: test -z "$as_dir" && as_dir=.
4282: for ac_exec_ext in '' $ac_executable_extensions; do
4283: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4284: ac_cv_prog_FLEX="flex"
4285: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4286: break 2
4287: fi
4288: done
4289: done
4290: IFS=$as_save_IFS
4291:
4292: fi
4293: fi
4294: FLEX=$ac_cv_prog_FLEX
4295: if test -n "$FLEX"; then
4296: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4297: $as_echo "$FLEX" >&6; }
4298: else
4299: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4300: $as_echo "no" >&6; }
4301: fi
4302:
4303:
4304: # Extract the first word of "bison", so it can be a program name with args.
4305: set dummy bison; ac_word=$2
4306: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4307: $as_echo_n "checking for $ac_word... " >&6; }
4308: if ${ac_cv_prog_BISON+:} false; then :
4309: $as_echo_n "(cached) " >&6
4310: else
4311: if test -n "$BISON"; then
4312: ac_cv_prog_BISON="$BISON" # Let the user override the test.
4313: else
4314: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315: for as_dir in $PATH
4316: do
4317: IFS=$as_save_IFS
4318: test -z "$as_dir" && as_dir=.
4319: for ac_exec_ext in '' $ac_executable_extensions; do
4320: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4321: ac_cv_prog_BISON="bison"
4322: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4323: break 2
4324: fi
4325: done
4326: done
4327: IFS=$as_save_IFS
4328:
4329: fi
4330: fi
4331: BISON=$ac_cv_prog_BISON
4332: if test -n "$BISON"; then
4333: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4334: $as_echo "$BISON" >&6; }
4335: else
4336: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337: $as_echo "no" >&6; }
4338: fi
4339:
4340:
4341: for ac_prog in gm4 m4
4342: do
4343: # Extract the first word of "$ac_prog", so it can be a program name with args.
4344: set dummy $ac_prog; ac_word=$2
4345: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4346: $as_echo_n "checking for $ac_word... " >&6; }
4347: if ${ac_cv_prog_M4+:} false; then :
4348: $as_echo_n "(cached) " >&6
4349: else
4350: if test -n "$M4"; then
4351: ac_cv_prog_M4="$M4" # Let the user override the test.
4352: else
4353: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354: for as_dir in $PATH
4355: do
4356: IFS=$as_save_IFS
4357: test -z "$as_dir" && as_dir=.
4358: for ac_exec_ext in '' $ac_executable_extensions; do
4359: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4360: ac_cv_prog_M4="$ac_prog"
4361: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4362: break 2
4363: fi
4364: done
4365: done
4366: IFS=$as_save_IFS
4367:
4368: fi
4369: fi
4370: M4=$ac_cv_prog_M4
4371: if test -n "$M4"; then
4372: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
4373: $as_echo "$M4" >&6; }
4374: else
4375: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4376: $as_echo "no" >&6; }
4377: fi
4378:
4379:
4380: test -n "$M4" && break
4381: done
4382:
4383:
4384: test -z "$FLEX" && as_fn_error $? "Flex is missing." "$LINENO" 5
4385: test -z "$BISON" && as_fn_error $? "Bison is missing." "$LINENO" 5
4386: test -z "$M4" && as_fn_error $? "M4 is missing." "$LINENO" 5
1.1.1.2 ! misho 4387:
! 4388:
! 4389: # Check for GNU $M4
! 4390: case `"$M4" --version 2>&1` in
! 4391: *GNU*)
! 4392:
! 4393: ;;
! 4394: *)
! 4395: as_fn_error $? "Provided M4 is not GNU M4." "$LINENO" 5
! 4396:
! 4397: ;;
! 4398:
! 4399:
! 4400: esac
1.1 misho 4401:
4402:
4403: if test -n "$with_sysconfig" -a "$with_sysconfig" != no ; then
1.1.1.2 ! misho 4404: if test -f $with_sysconfig ; then
! 4405: sysdesc=$with_sysconfig
! 4406: else
! 4407: sysdesc=$srcdir/sysdep/cf/$with_sysconfig
! 4408: if ! test -f $sysdesc ; then
! 4409: sysdesc=$sysdesc.h
! 4410: fi
! 4411: fi
1.1 misho 4412: elif test -f sysconfig.h ; then
1.1.1.2 ! misho 4413: sysdesc=sysconfig
1.1 misho 4414: else
1.1.1.2 ! misho 4415: case "$ip:$host_os" in
! 4416: ipv6:linux*)
! 4417: sysdesc=linux-v6
! 4418: default_iproutedir="/etc/iproute2"
! 4419: ;;
! 4420: ipv4:linux*)
! 4421: sysdesc=linux
! 4422: default_iproutedir="/etc/iproute2"
! 4423: ;;
! 4424: ipv6:netbsd*)
! 4425: sysdesc=bsd-v6
! 4426: CPPFLAGS="$CPPFLAGS -I/usr/pkg/include"
! 4427: LDFLAGS="$LDFLAGS -L/usr/pkg/lib -R/usr/pkg/lib"
! 4428: ;;
! 4429: ipv4:netbsd*)
! 4430: sysdesc=bsd
! 4431: CPPFLAGS="$CPPFLAGS -I/usr/pkg/include"
! 4432: LDFLAGS="$LDFLAGS -L/usr/pkg/lib -R/usr/pkg/lib"
! 4433: ;;
! 4434: ipv6:freebsd*)
! 4435: sysdesc=bsd-v6
! 4436: CPPFLAGS="$CPPFLAGS -I/usr/local/include"
! 4437: LDFLAGS="$LDFLAGS -L/usr/local/lib"
! 4438: ;;
! 4439: ipv4:freebsd*)
! 4440: sysdesc=bsd
! 4441: CPPFLAGS="$CPPFLAGS -I/usr/local/include"
! 4442: LDFLAGS="$LDFLAGS -L/usr/local/lib"
! 4443: ;;
! 4444: ipv6:dragonfly*)
! 4445: sysdesc=bsd-v6
! 4446: ;;
! 4447: ipv4:dragonfly*)
! 4448: sysdesc=bsd
! 4449: ;;
! 4450: ipv6:kfreebsd*)
! 4451: sysdesc=bsd-v6
! 4452: ;;
! 4453: ipv4:kfreebsd*)
! 4454: sysdesc=bsd
! 4455: ;;
! 4456: ipv6:openbsd*)
! 4457: sysdesc=bsd-v6
! 4458: ;;
! 4459: ipv4:openbsd*)
! 4460: sysdesc=bsd
! 4461: ;;
! 4462: *)
! 4463: as_fn_error $? "Cannot determine correct system configuration. Please use --with-sysconfig to set it manually." "$LINENO" 5
! 4464: ;;
! 4465: esac
! 4466: sysdesc=$srcdir/sysdep/cf/$sysdesc.h
1.1 misho 4467: fi
4468: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which OS configuration should we use" >&5
4469: $as_echo_n "checking which OS configuration should we use... " >&6; }
4470: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sysdesc" >&5
4471: $as_echo "$sysdesc" >&6; }
4472: if ! test -f $sysdesc ; then
1.1.1.2 ! misho 4473: as_fn_error $? "The system configuration file is missing." "$LINENO" 5
1.1 misho 4474: fi
4475: sysname=`echo $sysdesc | sed 's/\.h$//'`
1.1.1.2 ! misho 4476:
1.1 misho 4477: cat >>confdefs.h <<_ACEOF
4478: #define SYSCONF_INCLUDE "$sysdesc"
4479: _ACEOF
4480:
4481:
4482: { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-dependent directories" >&5
4483: $as_echo_n "checking system-dependent directories... " >&6; }
4484: sysdep_dirs="`sed <$sysdesc '/^Link: /!d;s/^Link: \(.*\)$/\1/' | tr '\012' ' '` lib"
4485: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sysdep_dirs" >&5
4486: $as_echo "$sysdep_dirs" >&6; }
4487:
4488:
4489: if test "$with_iproutedir" = no ; then with_iproutedir= ; fi
4490:
4491: if test -n "$given_iproutedir"
4492: then iproutedir=$with_iproutedir
4493: else iproutedir=$default_iproutedir
4494: fi
4495:
4496:
4497:
1.1.1.2 ! misho 4498: all_protocols="$proto_bfd bgp mrt ospf pipe $proto_radv rip static"
1.1 misho 4499: if test "$ip" = ipv6 ; then
4500: all_protocols="$all_protocols babel"
4501: fi
4502: all_protocols=`echo $all_protocols | sed 's/ /,/g'`
4503:
4504: if test "$with_protocols" = all ; then
1.1.1.2 ! misho 4505: with_protocols="$all_protocols"
1.1 misho 4506: fi
4507:
1.1.1.2 ! misho 4508:
! 4509:
! 4510:
! 4511:
! 4512:
! 4513:
! 4514:
! 4515:
! 4516:
! 4517:
1.1 misho 4518: { $as_echo "$as_me:${as_lineno-$LINENO}: checking protocols" >&5
4519: $as_echo_n "checking protocols... " >&6; }
4520: protocols=`echo "$with_protocols" | sed 's/,/ /g'`
4521: if test "$protocols" = no ; then protocols= ; fi
4522: for a in $protocols ; do
1.1.1.2 ! misho 4523: if ! test -f $srcdir/proto/$a/Makefile ; then
! 4524: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
1.1 misho 4525: $as_echo "failed" >&6; }
1.1.1.2 ! misho 4526: as_fn_error $? "Requested protocol $a not found" "$LINENO" 5
! 4527: fi
! 4528: cat >>confdefs.h <<_ACEOF
1.1 misho 4529: #define CONFIG_`echo $a | tr 'a-z' 'A-Z'` 1
4530: _ACEOF
4531:
1.1.1.2 ! misho 4532: done
1.1 misho 4533: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4534: $as_echo "ok" >&6; }
4535:
4536:
4537: case $sysdesc in
1.1.1.2 ! misho 4538: */linux*|*/linux-v6*)
! 4539: ac_fn_c_check_header_compile "$LINENO" "linux/rtnetlink.h" "ac_cv_header_linux_rtnetlink_h" "
! 4540: #include <asm/types.h>
! 4541: #include <sys/socket.h>
! 4542:
1.1 misho 4543:
4544: "
4545: if test "x$ac_cv_header_linux_rtnetlink_h" = xyes; then :
4546:
4547: else
4548: as_fn_error $? "Appropriate version of Linux kernel headers not found." "$LINENO" 5
4549: fi
4550:
4551:
1.1.1.2 ! misho 4552: ;;
1.1 misho 4553: esac
4554:
4555:
4556: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4557: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4558: if ${ac_cv_path_GREP+:} false; then :
4559: $as_echo_n "(cached) " >&6
4560: else
4561: if test -z "$GREP"; then
4562: ac_path_GREP_found=false
4563: # Loop through the user's path and test for each of PROGNAME-LIST
4564: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4566: do
4567: IFS=$as_save_IFS
4568: test -z "$as_dir" && as_dir=.
4569: for ac_prog in grep ggrep; do
4570: for ac_exec_ext in '' $ac_executable_extensions; do
4571: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4572: as_fn_executable_p "$ac_path_GREP" || continue
4573: # Check for GNU ac_path_GREP and select it if it is found.
4574: # Check for GNU $ac_path_GREP
4575: case `"$ac_path_GREP" --version 2>&1` in
4576: *GNU*)
4577: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4578: *)
4579: ac_count=0
4580: $as_echo_n 0123456789 >"conftest.in"
4581: while :
4582: do
4583: cat "conftest.in" "conftest.in" >"conftest.tmp"
4584: mv "conftest.tmp" "conftest.in"
4585: cp "conftest.in" "conftest.nl"
4586: $as_echo 'GREP' >> "conftest.nl"
4587: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4588: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4589: as_fn_arith $ac_count + 1 && ac_count=$as_val
4590: if test $ac_count -gt ${ac_path_GREP_max-0}; then
4591: # Best one so far, save it but keep looking for a better one
4592: ac_cv_path_GREP="$ac_path_GREP"
4593: ac_path_GREP_max=$ac_count
4594: fi
4595: # 10*(2^10) chars as input seems more than enough
4596: test $ac_count -gt 10 && break
4597: done
4598: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4599: esac
4600:
4601: $ac_path_GREP_found && break 3
4602: done
4603: done
4604: done
4605: IFS=$as_save_IFS
4606: if test -z "$ac_cv_path_GREP"; then
4607: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4608: fi
4609: else
4610: ac_cv_path_GREP=$GREP
4611: fi
4612:
4613: fi
4614: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4615: $as_echo "$ac_cv_path_GREP" >&6; }
4616: GREP="$ac_cv_path_GREP"
4617:
4618:
4619: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4620: $as_echo_n "checking for egrep... " >&6; }
4621: if ${ac_cv_path_EGREP+:} false; then :
4622: $as_echo_n "(cached) " >&6
4623: else
4624: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4625: then ac_cv_path_EGREP="$GREP -E"
4626: else
4627: if test -z "$EGREP"; then
4628: ac_path_EGREP_found=false
4629: # Loop through the user's path and test for each of PROGNAME-LIST
4630: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4632: do
4633: IFS=$as_save_IFS
4634: test -z "$as_dir" && as_dir=.
4635: for ac_prog in egrep; do
4636: for ac_exec_ext in '' $ac_executable_extensions; do
4637: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4638: as_fn_executable_p "$ac_path_EGREP" || continue
4639: # Check for GNU ac_path_EGREP and select it if it is found.
4640: # Check for GNU $ac_path_EGREP
4641: case `"$ac_path_EGREP" --version 2>&1` in
4642: *GNU*)
4643: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4644: *)
4645: ac_count=0
4646: $as_echo_n 0123456789 >"conftest.in"
4647: while :
4648: do
4649: cat "conftest.in" "conftest.in" >"conftest.tmp"
4650: mv "conftest.tmp" "conftest.in"
4651: cp "conftest.in" "conftest.nl"
4652: $as_echo 'EGREP' >> "conftest.nl"
4653: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4654: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4655: as_fn_arith $ac_count + 1 && ac_count=$as_val
4656: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4657: # Best one so far, save it but keep looking for a better one
4658: ac_cv_path_EGREP="$ac_path_EGREP"
4659: ac_path_EGREP_max=$ac_count
4660: fi
4661: # 10*(2^10) chars as input seems more than enough
4662: test $ac_count -gt 10 && break
4663: done
4664: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4665: esac
4666:
4667: $ac_path_EGREP_found && break 3
4668: done
4669: done
4670: done
4671: IFS=$as_save_IFS
4672: if test -z "$ac_cv_path_EGREP"; then
4673: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4674: fi
4675: else
4676: ac_cv_path_EGREP=$EGREP
4677: fi
4678:
4679: fi
4680: fi
4681: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4682: $as_echo "$ac_cv_path_EGREP" >&6; }
4683: EGREP="$ac_cv_path_EGREP"
4684:
4685:
4686: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4687: $as_echo_n "checking for ANSI C header files... " >&6; }
4688: if ${ac_cv_header_stdc+:} false; then :
4689: $as_echo_n "(cached) " >&6
4690: else
4691: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692: /* end confdefs.h. */
4693: #include <stdlib.h>
4694: #include <stdarg.h>
4695: #include <string.h>
4696: #include <float.h>
4697:
4698: int
4699: main ()
4700: {
4701:
4702: ;
4703: return 0;
4704: }
4705: _ACEOF
4706: if ac_fn_c_try_compile "$LINENO"; then :
4707: ac_cv_header_stdc=yes
4708: else
4709: ac_cv_header_stdc=no
4710: fi
4711: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4712:
4713: if test $ac_cv_header_stdc = yes; then
4714: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4715: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716: /* end confdefs.h. */
4717: #include <string.h>
4718:
4719: _ACEOF
4720: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4721: $EGREP "memchr" >/dev/null 2>&1; then :
4722:
4723: else
4724: ac_cv_header_stdc=no
4725: fi
4726: rm -f conftest*
4727:
4728: fi
4729:
4730: if test $ac_cv_header_stdc = yes; then
4731: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4732: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733: /* end confdefs.h. */
4734: #include <stdlib.h>
4735:
4736: _ACEOF
4737: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4738: $EGREP "free" >/dev/null 2>&1; then :
4739:
4740: else
4741: ac_cv_header_stdc=no
4742: fi
4743: rm -f conftest*
4744:
4745: fi
4746:
4747: if test $ac_cv_header_stdc = yes; then
4748: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4749: if test "$cross_compiling" = yes; then :
4750: :
4751: else
4752: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753: /* end confdefs.h. */
4754: #include <ctype.h>
4755: #include <stdlib.h>
4756: #if ((' ' & 0x0FF) == 0x020)
4757: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4758: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4759: #else
4760: # define ISLOWER(c) \
4761: (('a' <= (c) && (c) <= 'i') \
4762: || ('j' <= (c) && (c) <= 'r') \
4763: || ('s' <= (c) && (c) <= 'z'))
4764: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4765: #endif
4766:
4767: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4768: int
4769: main ()
4770: {
4771: int i;
4772: for (i = 0; i < 256; i++)
4773: if (XOR (islower (i), ISLOWER (i))
4774: || toupper (i) != TOUPPER (i))
4775: return 2;
4776: return 0;
4777: }
4778: _ACEOF
4779: if ac_fn_c_try_run "$LINENO"; then :
4780:
4781: else
4782: ac_cv_header_stdc=no
4783: fi
4784: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4785: conftest.$ac_objext conftest.beam conftest.$ac_ext
4786: fi
4787:
4788: fi
4789: fi
4790: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4791: $as_echo "$ac_cv_header_stdc" >&6; }
4792: if test $ac_cv_header_stdc = yes; then
4793:
4794: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4795:
4796: fi
4797:
4798: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4799: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4800: inttypes.h stdint.h unistd.h
4801: do :
4802: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4803: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4804: "
4805: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4806: cat >>confdefs.h <<_ACEOF
4807: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4808: _ACEOF
4809:
4810: fi
4811:
4812: done
4813:
4814:
4815:
4816:
4817:
1.1.1.2 ! misho 4818: for ac_header in $ac_header_list
! 4819: do :
! 4820: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 4821: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
! 4822: "
! 4823: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
! 4824: cat >>confdefs.h <<_ACEOF
! 4825: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 4826: _ACEOF
1.1 misho 4827:
4828: fi
4829:
1.1.1.2 ! misho 4830: done
1.1 misho 4831:
4832:
1.1.1.2 ! misho 4833:
! 4834:
! 4835:
! 4836:
! 4837: ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
! 4838: "
! 4839: if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
! 4840:
! 4841: cat >>confdefs.h <<_ACEOF
! 4842: #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
1.1 misho 4843: _ACEOF
4844:
4845:
4846: fi
1.1.1.2 ! misho 4847:
1.1 misho 4848:
4849: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4850: $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4851: if ${ac_cv_c_bigendian+:} false; then :
4852: $as_echo_n "(cached) " >&6
4853: else
4854: ac_cv_c_bigendian=unknown
4855: # See if we're dealing with a universal compiler.
4856: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4857: /* end confdefs.h. */
4858: #ifndef __APPLE_CC__
4859: not a universal capable compiler
4860: #endif
4861: typedef int dummy;
4862:
4863: _ACEOF
4864: if ac_fn_c_try_compile "$LINENO"; then :
4865:
4866: # Check for potential -arch flags. It is not universal unless
4867: # there are at least two -arch flags with different values.
4868: ac_arch=
4869: ac_prev=
4870: for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4871: if test -n "$ac_prev"; then
4872: case $ac_word in
4873: i?86 | x86_64 | ppc | ppc64)
4874: if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4875: ac_arch=$ac_word
4876: else
4877: ac_cv_c_bigendian=universal
4878: break
4879: fi
4880: ;;
4881: esac
4882: ac_prev=
4883: elif test "x$ac_word" = "x-arch"; then
4884: ac_prev=arch
4885: fi
4886: done
4887: fi
4888: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889: if test $ac_cv_c_bigendian = unknown; then
4890: # See if sys/param.h defines the BYTE_ORDER macro.
4891: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892: /* end confdefs.h. */
4893: #include <sys/types.h>
4894: #include <sys/param.h>
4895:
4896: int
4897: main ()
4898: {
4899: #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4900: && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4901: && LITTLE_ENDIAN)
4902: bogus endian macros
4903: #endif
4904:
4905: ;
4906: return 0;
4907: }
4908: _ACEOF
4909: if ac_fn_c_try_compile "$LINENO"; then :
4910: # It does; now see whether it defined to BIG_ENDIAN or not.
4911: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912: /* end confdefs.h. */
4913: #include <sys/types.h>
4914: #include <sys/param.h>
4915:
4916: int
4917: main ()
4918: {
4919: #if BYTE_ORDER != BIG_ENDIAN
4920: not big endian
4921: #endif
4922:
4923: ;
4924: return 0;
4925: }
4926: _ACEOF
4927: if ac_fn_c_try_compile "$LINENO"; then :
4928: ac_cv_c_bigendian=yes
4929: else
4930: ac_cv_c_bigendian=no
4931: fi
4932: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4933: fi
4934: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4935: fi
4936: if test $ac_cv_c_bigendian = unknown; then
4937: # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4938: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939: /* end confdefs.h. */
4940: #include <limits.h>
4941:
4942: int
4943: main ()
4944: {
4945: #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4946: bogus endian macros
4947: #endif
4948:
4949: ;
4950: return 0;
4951: }
4952: _ACEOF
4953: if ac_fn_c_try_compile "$LINENO"; then :
4954: # It does; now see whether it defined to _BIG_ENDIAN or not.
4955: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956: /* end confdefs.h. */
4957: #include <limits.h>
4958:
4959: int
4960: main ()
4961: {
4962: #ifndef _BIG_ENDIAN
4963: not big endian
4964: #endif
4965:
4966: ;
4967: return 0;
4968: }
4969: _ACEOF
4970: if ac_fn_c_try_compile "$LINENO"; then :
4971: ac_cv_c_bigendian=yes
4972: else
4973: ac_cv_c_bigendian=no
4974: fi
4975: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4976: fi
4977: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4978: fi
4979: if test $ac_cv_c_bigendian = unknown; then
4980: # Compile a test program.
4981: if test "$cross_compiling" = yes; then :
4982: # Try to guess by grepping values from an object file.
4983: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984: /* end confdefs.h. */
4985: short int ascii_mm[] =
4986: { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4987: short int ascii_ii[] =
4988: { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4989: int use_ascii (int i) {
4990: return ascii_mm[i] + ascii_ii[i];
4991: }
4992: short int ebcdic_ii[] =
4993: { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4994: short int ebcdic_mm[] =
4995: { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4996: int use_ebcdic (int i) {
4997: return ebcdic_mm[i] + ebcdic_ii[i];
4998: }
4999: extern int foo;
5000:
5001: int
5002: main ()
5003: {
5004: return use_ascii (foo) == use_ebcdic (foo);
5005: ;
5006: return 0;
5007: }
5008: _ACEOF
5009: if ac_fn_c_try_compile "$LINENO"; then :
5010: if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5011: ac_cv_c_bigendian=yes
5012: fi
5013: if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5014: if test "$ac_cv_c_bigendian" = unknown; then
5015: ac_cv_c_bigendian=no
5016: else
5017: # finding both strings is unlikely to happen, but who knows?
5018: ac_cv_c_bigendian=unknown
5019: fi
5020: fi
5021: fi
5022: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023: else
5024: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5025: /* end confdefs.h. */
5026: $ac_includes_default
5027: int
5028: main ()
5029: {
5030:
5031: /* Are we little or big endian? From Harbison&Steele. */
5032: union
5033: {
5034: long int l;
5035: char c[sizeof (long int)];
5036: } u;
5037: u.l = 1;
5038: return u.c[sizeof (long int) - 1] == 1;
5039:
5040: ;
5041: return 0;
5042: }
5043: _ACEOF
5044: if ac_fn_c_try_run "$LINENO"; then :
5045: ac_cv_c_bigendian=no
5046: else
5047: ac_cv_c_bigendian=yes
5048: fi
5049: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5050: conftest.$ac_objext conftest.beam conftest.$ac_ext
5051: fi
5052:
5053: fi
5054: fi
5055: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5056: $as_echo "$ac_cv_c_bigendian" >&6; }
5057: case $ac_cv_c_bigendian in #(
5058: yes)
1.1.1.2 ! misho 5059:
! 5060: $as_echo "#define CPU_BIG_ENDIAN 1" >>confdefs.h
1.1 misho 5061: ;; #(
5062: no)
1.1.1.2 ! misho 5063:
! 5064: $as_echo "#define CPU_LITTLE_ENDIAN 1" >>confdefs.h
1.1 misho 5065: ;; #(
5066: universal)
5067:
5068: $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5069:
5070: ;; #(
5071: *)
1.1.1.2 ! misho 5072: as_fn_error $? "Cannot determine CPU endianity." "$LINENO" 5
! 5073: ;;
1.1 misho 5074: esac
5075:
5076:
5077:
1.1.1.2 ! misho 5078: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glob.h" >&5
! 5079: $as_echo_n "checking for glob.h... " >&6; }
! 5080: if ${bird_cv_lib_glob+:} false; then :
1.1 misho 5081: $as_echo_n "(cached) " >&6
5082: else
1.1.1.2 ! misho 5083: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 5084: /* end confdefs.h. */
1.1 misho 5085:
5086:
1.1.1.2 ! misho 5087: #include <glob.h>
! 5088: #include <stdlib.h>
1.1 misho 5089:
1.1.1.2 ! misho 5090: int
! 5091: main ()
! 5092: {
! 5093: glob(NULL, 0, NULL, NULL);
1.1 misho 5094:
1.1.1.2 ! misho 5095: ;
! 5096: return 0;
! 5097: }
1.1 misho 5098:
5099: _ACEOF
1.1.1.2 ! misho 5100: if ac_fn_c_try_link "$LINENO"; then :
! 5101: bird_cv_lib_glob=yes
1.1 misho 5102: else
5103:
1.1.1.2 ! misho 5104: bird_tmp_libs="$LIBS"
! 5105: LIBS="$LIBS -landroid-glob"
! 5106: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 5107: /* end confdefs.h. */
5108:
5109:
1.1.1.2 ! misho 5110: #include <glob.h>
! 5111: #include <stdlib.h>
1.1 misho 5112:
1.1.1.2 ! misho 5113: int
! 5114: main ()
1.1 misho 5115: {
1.1.1.2 ! misho 5116: glob(NULL, 0, NULL, NULL);
! 5117:
! 5118: ;
! 5119: return 0;
1.1 misho 5120: }
5121:
5122: _ACEOF
1.1.1.2 ! misho 5123: if ac_fn_c_try_link "$LINENO"; then :
! 5124: bird_cv_lib_glob=-landroid-glob
1.1 misho 5125: else
1.1.1.2 ! misho 5126: bird_cv_lib_glob=no
1.1 misho 5127:
5128: fi
1.1.1.2 ! misho 5129: rm -f core conftest.err conftest.$ac_objext \
! 5130: conftest$ac_exeext conftest.$ac_ext
! 5131: LIBS="$bird_tmp_libs"
! 5132:
! 5133:
1.1 misho 5134: fi
1.1.1.2 ! misho 5135: rm -f core conftest.err conftest.$ac_objext \
! 5136: conftest$ac_exeext conftest.$ac_ext
1.1 misho 5137:
1.1.1.2 ! misho 5138: fi
! 5139: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bird_cv_lib_glob" >&5
! 5140: $as_echo "$bird_cv_lib_glob" >&6; }
1.1 misho 5141:
1.1.1.2 ! misho 5142: if test "$bird_cv_lib_glob" = no ; then
! 5143: as_fn_error $? "glob.h not found." "$LINENO" 5
! 5144: elif test "$bird_cv_lib_glob" != yes ; then
! 5145: LIBS="$LIBS $bird_cv_lib_glob"
1.1 misho 5146: fi
5147:
5148:
1.1.1.2 ! misho 5149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog lib flags" >&5
! 5150: $as_echo_n "checking for syslog lib flags... " >&6; }
! 5151: if ${bird_cv_lib_log+:} false; then :
1.1 misho 5152: $as_echo_n "(cached) " >&6
5153: else
5154: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5155: /* end confdefs.h. */
5156:
1.1.1.2 ! misho 5157: #include <sys/syslog.h>
! 5158: int
! 5159: main ()
1.1 misho 5160: {
1.1.1.2 ! misho 5161: syslog(0, "");
! 5162:
! 5163: ;
! 5164: return 0;
1.1 misho 5165: }
5166:
5167: _ACEOF
1.1.1.2 ! misho 5168: if ac_fn_c_try_link "$LINENO"; then :
! 5169: bird_cv_lib_log=yes
1.1 misho 5170: else
5171:
1.1.1.2 ! misho 5172: bird_tmp_libs="$LIBS"
! 5173: LIBS="$LIBS -llog"
! 5174: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 5175: /* end confdefs.h. */
5176:
1.1.1.2 ! misho 5177: #include <sys/syslog.h>
1.1 misho 5178: int
5179: main ()
5180: {
1.1.1.2 ! misho 5181: syslog(0, "");
1.1 misho 5182:
5183: ;
5184: return 0;
5185: }
5186:
1.1.1.2 ! misho 5187: _ACEOF
! 5188: if ac_fn_c_try_link "$LINENO"; then :
! 5189: bird_cv_lib_log=-llog
1.1 misho 5190: else
1.1.1.2 ! misho 5191: bird_cv_lib_log=no
1.1 misho 5192:
5193: fi
1.1.1.2 ! misho 5194: rm -f core conftest.err conftest.$ac_objext \
! 5195: conftest$ac_exeext conftest.$ac_ext
! 5196: LIBS="$bird_tmp_libs"
! 5197:
! 5198:
1.1 misho 5199: fi
1.1.1.2 ! misho 5200: rm -f core conftest.err conftest.$ac_objext \
! 5201: conftest$ac_exeext conftest.$ac_ext
1.1 misho 5202:
5203: fi
1.1.1.2 ! misho 5204: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bird_cv_lib_log" >&5
! 5205: $as_echo "$bird_cv_lib_log" >&6; }
1.1 misho 5206:
1.1.1.2 ! misho 5207: if test "$bird_cv_lib_log" = no ; then
! 5208: as_fn_error $? "don't know how to link syslog." "$LINENO" 5
! 5209: elif test "$bird_cv_lib_log" != yes ; then
! 5210: LIBS="$LIBS $bird_cv_lib_log"
! 5211: fi
1.1 misho 5212:
5213: if test "$enable_debug" = yes ; then
5214:
1.1.1.2 ! misho 5215: $as_echo "#define DEBUGGING 1" >>confdefs.h
! 5216:
! 5217: if test "$enable_memcheck" = yes ; then
! 5218: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_debug in -ldmalloc" >&5
1.1 misho 5219: $as_echo_n "checking for dmalloc_debug in -ldmalloc... " >&6; }
5220: if ${ac_cv_lib_dmalloc_dmalloc_debug+:} false; then :
5221: $as_echo_n "(cached) " >&6
5222: else
5223: ac_check_lib_save_LIBS=$LIBS
5224: LIBS="-ldmalloc $LIBS"
5225: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226: /* end confdefs.h. */
5227:
5228: /* Override any GCC internal prototype to avoid an error.
5229: Use char because int might match the return type of a GCC
5230: builtin and then its argument prototype would still apply. */
5231: #ifdef __cplusplus
5232: extern "C"
5233: #endif
5234: char dmalloc_debug ();
5235: int
5236: main ()
5237: {
5238: return dmalloc_debug ();
5239: ;
5240: return 0;
5241: }
5242: _ACEOF
5243: if ac_fn_c_try_link "$LINENO"; then :
5244: ac_cv_lib_dmalloc_dmalloc_debug=yes
5245: else
5246: ac_cv_lib_dmalloc_dmalloc_debug=no
5247: fi
5248: rm -f core conftest.err conftest.$ac_objext \
5249: conftest$ac_exeext conftest.$ac_ext
5250: LIBS=$ac_check_lib_save_LIBS
5251: fi
5252: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
5253: $as_echo "$ac_cv_lib_dmalloc_dmalloc_debug" >&6; }
5254: if test "x$ac_cv_lib_dmalloc_dmalloc_debug" = xyes; then :
5255: cat >>confdefs.h <<_ACEOF
5256: #define HAVE_LIBDMALLOC 1
5257: _ACEOF
5258:
5259: LIBS="-ldmalloc $LIBS"
5260:
5261: fi
5262:
1.1.1.2 ! misho 5263: if test $ac_cv_lib_dmalloc_dmalloc_debug != yes ; then
! 5264: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -lefence" >&5
1.1 misho 5265: $as_echo_n "checking for malloc in -lefence... " >&6; }
5266: if ${ac_cv_lib_efence_malloc+:} false; then :
5267: $as_echo_n "(cached) " >&6
5268: else
5269: ac_check_lib_save_LIBS=$LIBS
5270: LIBS="-lefence $LIBS"
5271: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272: /* end confdefs.h. */
5273:
5274: /* Override any GCC internal prototype to avoid an error.
5275: Use char because int might match the return type of a GCC
5276: builtin and then its argument prototype would still apply. */
5277: #ifdef __cplusplus
5278: extern "C"
5279: #endif
5280: char malloc ();
5281: int
5282: main ()
5283: {
5284: return malloc ();
5285: ;
5286: return 0;
5287: }
5288: _ACEOF
5289: if ac_fn_c_try_link "$LINENO"; then :
5290: ac_cv_lib_efence_malloc=yes
5291: else
5292: ac_cv_lib_efence_malloc=no
5293: fi
5294: rm -f core conftest.err conftest.$ac_objext \
5295: conftest$ac_exeext conftest.$ac_ext
5296: LIBS=$ac_check_lib_save_LIBS
5297: fi
5298: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_malloc" >&5
5299: $as_echo "$ac_cv_lib_efence_malloc" >&6; }
5300: if test "x$ac_cv_lib_efence_malloc" = xyes; then :
5301: cat >>confdefs.h <<_ACEOF
5302: #define HAVE_LIBEFENCE 1
5303: _ACEOF
5304:
5305: LIBS="-lefence $LIBS"
5306:
5307: fi
5308:
1.1.1.2 ! misho 5309: fi
! 5310: fi
1.1 misho 5311: fi
5312:
5313: CLIENT=
5314: CLIENT_LIBS=
5315: if test "$enable_client" = yes ; then
1.1.1.2 ! misho 5316: CLIENT=birdc
! 5317: BASE_LIBS="$LIBS"
! 5318: LIBS=""
1.1 misho 5319:
1.1.1.2 ! misho 5320: for ac_header in curses.h
! 5321: do :
! 5322: ac_fn_c_check_header_compile "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default
1.1 misho 5323:
1.1.1.2 ! misho 5324: "
! 5325: if test "x$ac_cv_header_curses_h" = xyes; then :
! 5326: cat >>confdefs.h <<_ACEOF
! 5327: #define HAVE_CURSES_H 1
1.1 misho 5328: _ACEOF
5329:
5330: else
1.1.1.2 ! misho 5331: as_fn_error $? "The client requires ncurses library. Either install the library or use --disable-client to compile without the client." "$LINENO" 5
1.1 misho 5332: fi
5333:
1.1.1.2 ! misho 5334: done
! 5335:
! 5336:
! 5337: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
! 5338: $as_echo_n "checking for library containing tgetent... " >&6; }
! 5339: if ${ac_cv_search_tgetent+:} false; then :
1.1 misho 5340: $as_echo_n "(cached) " >&6
5341: else
1.1.1.2 ! misho 5342: ac_func_search_save_LIBS=$LIBS
1.1 misho 5343: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344: /* end confdefs.h. */
5345:
5346: /* Override any GCC internal prototype to avoid an error.
5347: Use char because int might match the return type of a GCC
5348: builtin and then its argument prototype would still apply. */
5349: #ifdef __cplusplus
5350: extern "C"
5351: #endif
5352: char tgetent ();
5353: int
5354: main ()
5355: {
5356: return tgetent ();
5357: ;
5358: return 0;
5359: }
5360: _ACEOF
1.1.1.2 ! misho 5361: for ac_lib in '' tinfo tinfow ncurses curses termcap; do
! 5362: if test -z "$ac_lib"; then
! 5363: ac_res="none required"
! 5364: else
! 5365: ac_res=-l$ac_lib
! 5366: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
! 5367: fi
! 5368: if ac_fn_c_try_link "$LINENO"; then :
! 5369: ac_cv_search_tgetent=$ac_res
1.1 misho 5370: fi
5371: rm -f core conftest.err conftest.$ac_objext \
1.1.1.2 ! misho 5372: conftest$ac_exeext
! 5373: if ${ac_cv_search_tgetent+:} false; then :
! 5374: break
1.1 misho 5375: fi
1.1.1.2 ! misho 5376: done
! 5377: if ${ac_cv_search_tgetent+:} false; then :
1.1 misho 5378:
5379: else
1.1.1.2 ! misho 5380: ac_cv_search_tgetent=no
1.1 misho 5381: fi
1.1.1.2 ! misho 5382: rm conftest.$ac_ext
! 5383: LIBS=$ac_func_search_save_LIBS
1.1 misho 5384: fi
1.1.1.2 ! misho 5385: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
! 5386: $as_echo "$ac_cv_search_tgetent" >&6; }
! 5387: ac_res=$ac_cv_search_tgetent
! 5388: if test "$ac_res" != no; then :
! 5389: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
! 5390: TINFO_LIBS="$LIBS"; LIBS=""
1.1 misho 5391: else
5392: as_fn_error $? "The client requires ncurses library. Either install the library or use --disable-client to compile without the client." "$LINENO" 5
5393: fi
5394:
5395:
1.1.1.2 ! misho 5396: for ac_header in readline/readline.h readline/history.h
! 5397: do :
! 5398: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 5399: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
1.1 misho 5400:
1.1.1.2 ! misho 5401: "
! 5402: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
! 5403: cat >>confdefs.h <<_ACEOF
! 5404: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 5405: _ACEOF
1.1 misho 5406:
1.1.1.2 ! misho 5407: else
! 5408: as_fn_error $? "The client requires GNU Readline library. Either install the library or use --disable-client to compile without the client." "$LINENO" 5
1.1 misho 5409: fi
5410:
1.1.1.2 ! misho 5411: done
! 5412:
! 5413:
! 5414: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rl_callback_read_char" >&5
! 5415: $as_echo_n "checking for library containing rl_callback_read_char... " >&6; }
! 5416: if ${ac_cv_search_rl_callback_read_char+:} false; then :
1.1 misho 5417: $as_echo_n "(cached) " >&6
5418: else
1.1.1.2 ! misho 5419: ac_func_search_save_LIBS=$LIBS
1.1 misho 5420: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421: /* end confdefs.h. */
5422:
5423: /* Override any GCC internal prototype to avoid an error.
5424: Use char because int might match the return type of a GCC
5425: builtin and then its argument prototype would still apply. */
5426: #ifdef __cplusplus
5427: extern "C"
5428: #endif
5429: char rl_callback_read_char ();
5430: int
5431: main ()
5432: {
5433: return rl_callback_read_char ();
5434: ;
5435: return 0;
5436: }
5437: _ACEOF
1.1.1.2 ! misho 5438: for ac_lib in '' readline; do
! 5439: if test -z "$ac_lib"; then
! 5440: ac_res="none required"
! 5441: else
! 5442: ac_res=-l$ac_lib
! 5443: LIBS="-l$ac_lib $TINFO_LIBS
! 5444: $ac_func_search_save_LIBS"
! 5445: fi
! 5446: if ac_fn_c_try_link "$LINENO"; then :
! 5447: ac_cv_search_rl_callback_read_char=$ac_res
1.1 misho 5448: fi
5449: rm -f core conftest.err conftest.$ac_objext \
1.1.1.2 ! misho 5450: conftest$ac_exeext
! 5451: if ${ac_cv_search_rl_callback_read_char+:} false; then :
! 5452: break
! 5453: fi
! 5454: done
! 5455: if ${ac_cv_search_rl_callback_read_char+:} false; then :
! 5456:
! 5457: else
! 5458: ac_cv_search_rl_callback_read_char=no
! 5459: fi
! 5460: rm conftest.$ac_ext
! 5461: LIBS=$ac_func_search_save_LIBS
1.1 misho 5462: fi
1.1.1.2 ! misho 5463: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rl_callback_read_char" >&5
! 5464: $as_echo "$ac_cv_search_rl_callback_read_char" >&6; }
! 5465: ac_res=$ac_cv_search_rl_callback_read_char
! 5466: if test "$ac_res" != no; then :
! 5467: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
! 5468: READLINE_LIBS="$LIBS"; LIBS=""
1.1 misho 5469: else
1.1.1.2 ! misho 5470: as_fn_error $? "The client requires GNU Readline library. Either install the library or use --disable-client to compile without the client." "$LINENO" 5
1.1 misho 5471: fi
5472:
1.1.1.2 ! misho 5473:
! 5474: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_crlf in -lreadline" >&5
1.1 misho 5475: $as_echo_n "checking for rl_crlf in -lreadline... " >&6; }
5476: if ${ac_cv_lib_readline_rl_crlf+:} false; then :
5477: $as_echo_n "(cached) " >&6
5478: else
5479: ac_check_lib_save_LIBS=$LIBS
1.1.1.2 ! misho 5480: LIBS="-lreadline $TINFO_LIBS
! 5481: $LIBS"
1.1 misho 5482: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483: /* end confdefs.h. */
5484:
5485: /* Override any GCC internal prototype to avoid an error.
5486: Use char because int might match the return type of a GCC
5487: builtin and then its argument prototype would still apply. */
5488: #ifdef __cplusplus
5489: extern "C"
5490: #endif
5491: char rl_crlf ();
5492: int
5493: main ()
5494: {
5495: return rl_crlf ();
5496: ;
5497: return 0;
5498: }
5499: _ACEOF
5500: if ac_fn_c_try_link "$LINENO"; then :
5501: ac_cv_lib_readline_rl_crlf=yes
5502: else
5503: ac_cv_lib_readline_rl_crlf=no
5504: fi
5505: rm -f core conftest.err conftest.$ac_objext \
5506: conftest$ac_exeext conftest.$ac_ext
5507: LIBS=$ac_check_lib_save_LIBS
5508: fi
5509: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_crlf" >&5
5510: $as_echo "$ac_cv_lib_readline_rl_crlf" >&6; }
5511: if test "x$ac_cv_lib_readline_rl_crlf" = xyes; then :
1.1.1.2 ! misho 5512:
! 5513: $as_echo "#define HAVE_RL_CRLF 1" >>confdefs.h
1.1 misho 5514:
5515: fi
5516:
1.1.1.2 ! misho 5517:
! 5518: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_ding in -lreadline" >&5
1.1 misho 5519: $as_echo_n "checking for rl_ding in -lreadline... " >&6; }
5520: if ${ac_cv_lib_readline_rl_ding+:} false; then :
5521: $as_echo_n "(cached) " >&6
5522: else
5523: ac_check_lib_save_LIBS=$LIBS
1.1.1.2 ! misho 5524: LIBS="-lreadline $TINFO_LIBS
! 5525: $LIBS"
1.1 misho 5526: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5527: /* end confdefs.h. */
5528:
5529: /* Override any GCC internal prototype to avoid an error.
5530: Use char because int might match the return type of a GCC
5531: builtin and then its argument prototype would still apply. */
5532: #ifdef __cplusplus
5533: extern "C"
5534: #endif
5535: char rl_ding ();
5536: int
5537: main ()
5538: {
5539: return rl_ding ();
5540: ;
5541: return 0;
5542: }
5543: _ACEOF
5544: if ac_fn_c_try_link "$LINENO"; then :
5545: ac_cv_lib_readline_rl_ding=yes
5546: else
5547: ac_cv_lib_readline_rl_ding=no
5548: fi
5549: rm -f core conftest.err conftest.$ac_objext \
5550: conftest$ac_exeext conftest.$ac_ext
5551: LIBS=$ac_check_lib_save_LIBS
5552: fi
5553: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_ding" >&5
5554: $as_echo "$ac_cv_lib_readline_rl_ding" >&6; }
5555: if test "x$ac_cv_lib_readline_rl_ding" = xyes; then :
1.1.1.2 ! misho 5556:
! 5557: $as_echo "#define HAVE_RL_DING 1" >>confdefs.h
1.1 misho 5558:
5559: fi
5560:
1.1.1.2 ! misho 5561:
! 5562: LIBS="$BASE_LIBS"
! 5563: CLIENT_LIBS="$READLINE_LIBS $TINFO_LIBS"
1.1 misho 5564: fi
5565:
5566:
5567:
5568: mkdir -p $objdir/sysdep
5569: ac_config_headers="$ac_config_headers $objdir/sysdep/autoconf.h:sysdep/autoconf.h.in"
5570:
5571: ac_config_commands="$ac_config_commands merge"
5572:
5573: ac_config_files="$ac_config_files $makefiles"
5574:
5575: cat >confcache <<\_ACEOF
5576: # This file is a shell script that caches the results of configure
5577: # tests run on this system so they can be shared between configure
5578: # scripts and configure runs, see configure's option --config-cache.
5579: # It is not useful on other systems. If it contains results you don't
5580: # want to keep, you may remove or edit it.
5581: #
5582: # config.status only pays attention to the cache file if you give it
5583: # the --recheck option to rerun configure.
5584: #
5585: # `ac_cv_env_foo' variables (set or unset) will be overridden when
5586: # loading this file, other *unset* `ac_cv_foo' will be assigned the
5587: # following values.
5588:
5589: _ACEOF
5590:
5591: # The following way of writing the cache mishandles newlines in values,
5592: # but we know of no workaround that is simple, portable, and efficient.
5593: # So, we kill variables containing newlines.
5594: # Ultrix sh set writes to stderr and can't be redirected directly,
5595: # and sets the high bit in the cache file unless we assign to the vars.
5596: (
5597: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5598: eval ac_val=\$$ac_var
5599: case $ac_val in #(
5600: *${as_nl}*)
5601: case $ac_var in #(
5602: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5603: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5604: esac
5605: case $ac_var in #(
5606: _ | IFS | as_nl) ;; #(
5607: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5608: *) { eval $ac_var=; unset $ac_var;} ;;
5609: esac ;;
5610: esac
5611: done
5612:
5613: (set) 2>&1 |
5614: case $as_nl`(ac_space=' '; set) 2>&1` in #(
5615: *${as_nl}ac_space=\ *)
5616: # `set' does not quote correctly, so add quotes: double-quote
5617: # substitution turns \\\\ into \\, and sed turns \\ into \.
5618: sed -n \
5619: "s/'/'\\\\''/g;
5620: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5621: ;; #(
5622: *)
5623: # `set' quotes correctly as required by POSIX, so do not add quotes.
5624: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5625: ;;
5626: esac |
5627: sort
5628: ) |
5629: sed '
5630: /^ac_cv_env_/b end
5631: t clear
5632: :clear
5633: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5634: t end
5635: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5636: :end' >>confcache
5637: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5638: if test -w "$cache_file"; then
5639: if test "x$cache_file" != "x/dev/null"; then
5640: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5641: $as_echo "$as_me: updating cache $cache_file" >&6;}
5642: if test ! -f "$cache_file" || test -h "$cache_file"; then
5643: cat confcache >"$cache_file"
5644: else
5645: case $cache_file in #(
5646: */* | ?:*)
5647: mv -f confcache "$cache_file"$$ &&
5648: mv -f "$cache_file"$$ "$cache_file" ;; #(
5649: *)
5650: mv -f confcache "$cache_file" ;;
5651: esac
5652: fi
5653: fi
5654: else
5655: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5656: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5657: fi
5658: fi
5659: rm -f confcache
5660:
5661: test "x$prefix" = xNONE && prefix=$ac_default_prefix
5662: # Let make expand exec_prefix.
5663: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5664:
5665: DEFS=-DHAVE_CONFIG_H
5666:
5667: ac_libobjs=
5668: ac_ltlibobjs=
5669: U=
5670: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5671: # 1. Remove the extension, and $U if already installed.
5672: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5673: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5674: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5675: # will be set to the directory where LIBOBJS objects are built.
5676: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5677: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5678: done
5679: LIBOBJS=$ac_libobjs
5680:
5681: LTLIBOBJS=$ac_ltlibobjs
5682:
5683:
5684:
5685:
5686: : "${CONFIG_STATUS=./config.status}"
5687: ac_write_fail=0
5688: ac_clean_files_save=$ac_clean_files
5689: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5690: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5691: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5692: as_write_fail=0
5693: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5694: #! $SHELL
5695: # Generated by $as_me.
5696: # Run this file to recreate the current configuration.
5697: # Compiler output produced by configure, useful for debugging
5698: # configure, is in config.log if it exists.
5699:
5700: debug=false
5701: ac_cs_recheck=false
5702: ac_cs_silent=false
5703:
5704: SHELL=\${CONFIG_SHELL-$SHELL}
5705: export SHELL
5706: _ASEOF
5707: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5708: ## -------------------- ##
5709: ## M4sh Initialization. ##
5710: ## -------------------- ##
5711:
5712: # Be more Bourne compatible
5713: DUALCASE=1; export DUALCASE # for MKS sh
5714: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5715: emulate sh
5716: NULLCMD=:
5717: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5718: # is contrary to our usage. Disable this feature.
5719: alias -g '${1+"$@"}'='"$@"'
5720: setopt NO_GLOB_SUBST
5721: else
5722: case `(set -o) 2>/dev/null` in #(
5723: *posix*) :
5724: set -o posix ;; #(
5725: *) :
5726: ;;
5727: esac
5728: fi
5729:
5730:
5731: as_nl='
5732: '
5733: export as_nl
5734: # Printing a long string crashes Solaris 7 /usr/bin/printf.
5735: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5736: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5737: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5738: # Prefer a ksh shell builtin over an external printf program on Solaris,
5739: # but without wasting forks for bash or zsh.
5740: if test -z "$BASH_VERSION$ZSH_VERSION" \
5741: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5742: as_echo='print -r --'
5743: as_echo_n='print -rn --'
5744: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5745: as_echo='printf %s\n'
5746: as_echo_n='printf %s'
5747: else
5748: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5749: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5750: as_echo_n='/usr/ucb/echo -n'
5751: else
5752: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5753: as_echo_n_body='eval
5754: arg=$1;
5755: case $arg in #(
5756: *"$as_nl"*)
5757: expr "X$arg" : "X\\(.*\\)$as_nl";
5758: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5759: esac;
5760: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5761: '
5762: export as_echo_n_body
5763: as_echo_n='sh -c $as_echo_n_body as_echo'
5764: fi
5765: export as_echo_body
5766: as_echo='sh -c $as_echo_body as_echo'
5767: fi
5768:
5769: # The user is always right.
5770: if test "${PATH_SEPARATOR+set}" != set; then
5771: PATH_SEPARATOR=:
5772: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5773: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5774: PATH_SEPARATOR=';'
5775: }
5776: fi
5777:
5778:
5779: # IFS
5780: # We need space, tab and new line, in precisely that order. Quoting is
5781: # there to prevent editors from complaining about space-tab.
5782: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5783: # splitting by setting IFS to empty value.)
5784: IFS=" "" $as_nl"
5785:
5786: # Find who we are. Look in the path if we contain no directory separator.
5787: as_myself=
5788: case $0 in #((
5789: *[\\/]* ) as_myself=$0 ;;
5790: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791: for as_dir in $PATH
5792: do
5793: IFS=$as_save_IFS
5794: test -z "$as_dir" && as_dir=.
5795: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5796: done
5797: IFS=$as_save_IFS
5798:
5799: ;;
5800: esac
5801: # We did not find ourselves, most probably we were run as `sh COMMAND'
5802: # in which case we are not to be found in the path.
5803: if test "x$as_myself" = x; then
5804: as_myself=$0
5805: fi
5806: if test ! -f "$as_myself"; then
5807: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5808: exit 1
5809: fi
5810:
5811: # Unset variables that we do not need and which cause bugs (e.g. in
5812: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5813: # suppresses any "Segmentation fault" message there. '((' could
5814: # trigger a bug in pdksh 5.2.14.
5815: for as_var in BASH_ENV ENV MAIL MAILPATH
5816: do eval test x\${$as_var+set} = xset \
5817: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5818: done
5819: PS1='$ '
5820: PS2='> '
5821: PS4='+ '
5822:
5823: # NLS nuisances.
5824: LC_ALL=C
5825: export LC_ALL
5826: LANGUAGE=C
5827: export LANGUAGE
5828:
5829: # CDPATH.
5830: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5831:
5832:
5833: # as_fn_error STATUS ERROR [LINENO LOG_FD]
5834: # ----------------------------------------
5835: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5836: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5837: # script with STATUS, using 1 if that was 0.
5838: as_fn_error ()
5839: {
5840: as_status=$1; test $as_status -eq 0 && as_status=1
5841: if test "$4"; then
5842: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5843: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5844: fi
5845: $as_echo "$as_me: error: $2" >&2
5846: as_fn_exit $as_status
5847: } # as_fn_error
5848:
5849:
5850: # as_fn_set_status STATUS
5851: # -----------------------
5852: # Set $? to STATUS, without forking.
5853: as_fn_set_status ()
5854: {
5855: return $1
5856: } # as_fn_set_status
5857:
5858: # as_fn_exit STATUS
5859: # -----------------
5860: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5861: as_fn_exit ()
5862: {
5863: set +e
5864: as_fn_set_status $1
5865: exit $1
5866: } # as_fn_exit
5867:
5868: # as_fn_unset VAR
5869: # ---------------
5870: # Portably unset VAR.
5871: as_fn_unset ()
5872: {
5873: { eval $1=; unset $1;}
5874: }
5875: as_unset=as_fn_unset
5876: # as_fn_append VAR VALUE
5877: # ----------------------
5878: # Append the text in VALUE to the end of the definition contained in VAR. Take
5879: # advantage of any shell optimizations that allow amortized linear growth over
5880: # repeated appends, instead of the typical quadratic growth present in naive
5881: # implementations.
5882: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5883: eval 'as_fn_append ()
5884: {
5885: eval $1+=\$2
5886: }'
5887: else
5888: as_fn_append ()
5889: {
5890: eval $1=\$$1\$2
5891: }
5892: fi # as_fn_append
5893:
5894: # as_fn_arith ARG...
5895: # ------------------
5896: # Perform arithmetic evaluation on the ARGs, and store the result in the
5897: # global $as_val. Take advantage of shells that can avoid forks. The arguments
5898: # must be portable across $(()) and expr.
5899: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5900: eval 'as_fn_arith ()
5901: {
5902: as_val=$(( $* ))
5903: }'
5904: else
5905: as_fn_arith ()
5906: {
5907: as_val=`expr "$@" || test $? -eq 1`
5908: }
5909: fi # as_fn_arith
5910:
5911:
5912: if expr a : '\(a\)' >/dev/null 2>&1 &&
5913: test "X`expr 00001 : '.*\(...\)'`" = X001; then
5914: as_expr=expr
5915: else
5916: as_expr=false
5917: fi
5918:
5919: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5920: as_basename=basename
5921: else
5922: as_basename=false
5923: fi
5924:
5925: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5926: as_dirname=dirname
5927: else
5928: as_dirname=false
5929: fi
5930:
5931: as_me=`$as_basename -- "$0" ||
5932: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5933: X"$0" : 'X\(//\)$' \| \
5934: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5935: $as_echo X/"$0" |
5936: sed '/^.*\/\([^/][^/]*\)\/*$/{
5937: s//\1/
5938: q
5939: }
5940: /^X\/\(\/\/\)$/{
5941: s//\1/
5942: q
5943: }
5944: /^X\/\(\/\).*/{
5945: s//\1/
5946: q
5947: }
5948: s/.*/./; q'`
5949:
5950: # Avoid depending upon Character Ranges.
5951: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5952: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5953: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5954: as_cr_digits='0123456789'
5955: as_cr_alnum=$as_cr_Letters$as_cr_digits
5956:
5957: ECHO_C= ECHO_N= ECHO_T=
5958: case `echo -n x` in #(((((
5959: -n*)
5960: case `echo 'xy\c'` in
5961: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5962: xy) ECHO_C='\c';;
5963: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5964: ECHO_T=' ';;
5965: esac;;
5966: *)
5967: ECHO_N='-n';;
5968: esac
5969:
5970: rm -f conf$$ conf$$.exe conf$$.file
5971: if test -d conf$$.dir; then
5972: rm -f conf$$.dir/conf$$.file
5973: else
5974: rm -f conf$$.dir
5975: mkdir conf$$.dir 2>/dev/null
5976: fi
5977: if (echo >conf$$.file) 2>/dev/null; then
5978: if ln -s conf$$.file conf$$ 2>/dev/null; then
5979: as_ln_s='ln -s'
5980: # ... but there are two gotchas:
5981: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5982: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5983: # In both cases, we have to default to `cp -pR'.
5984: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5985: as_ln_s='cp -pR'
5986: elif ln conf$$.file conf$$ 2>/dev/null; then
5987: as_ln_s=ln
5988: else
5989: as_ln_s='cp -pR'
5990: fi
5991: else
5992: as_ln_s='cp -pR'
5993: fi
5994: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5995: rmdir conf$$.dir 2>/dev/null
5996:
5997:
5998: # as_fn_mkdir_p
5999: # -------------
6000: # Create "$as_dir" as a directory, including parents if necessary.
6001: as_fn_mkdir_p ()
6002: {
6003:
6004: case $as_dir in #(
6005: -*) as_dir=./$as_dir;;
6006: esac
6007: test -d "$as_dir" || eval $as_mkdir_p || {
6008: as_dirs=
6009: while :; do
6010: case $as_dir in #(
6011: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6012: *) as_qdir=$as_dir;;
6013: esac
6014: as_dirs="'$as_qdir' $as_dirs"
6015: as_dir=`$as_dirname -- "$as_dir" ||
6016: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6017: X"$as_dir" : 'X\(//\)[^/]' \| \
6018: X"$as_dir" : 'X\(//\)$' \| \
6019: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6020: $as_echo X"$as_dir" |
6021: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6022: s//\1/
6023: q
6024: }
6025: /^X\(\/\/\)[^/].*/{
6026: s//\1/
6027: q
6028: }
6029: /^X\(\/\/\)$/{
6030: s//\1/
6031: q
6032: }
6033: /^X\(\/\).*/{
6034: s//\1/
6035: q
6036: }
6037: s/.*/./; q'`
6038: test -d "$as_dir" && break
6039: done
6040: test -z "$as_dirs" || eval "mkdir $as_dirs"
6041: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6042:
6043:
6044: } # as_fn_mkdir_p
6045: if mkdir -p . 2>/dev/null; then
6046: as_mkdir_p='mkdir -p "$as_dir"'
6047: else
6048: test -d ./-p && rmdir ./-p
6049: as_mkdir_p=false
6050: fi
6051:
6052:
6053: # as_fn_executable_p FILE
6054: # -----------------------
6055: # Test if FILE is an executable regular file.
6056: as_fn_executable_p ()
6057: {
6058: test -f "$1" && test -x "$1"
6059: } # as_fn_executable_p
6060: as_test_x='test -x'
6061: as_executable_p=as_fn_executable_p
6062:
6063: # Sed expression to map a string onto a valid CPP name.
6064: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6065:
6066: # Sed expression to map a string onto a valid variable name.
6067: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6068:
6069:
6070: exec 6>&1
6071: ## ----------------------------------- ##
6072: ## Main body of $CONFIG_STATUS script. ##
6073: ## ----------------------------------- ##
6074: _ASEOF
6075: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6076:
6077: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6078: # Save the log message, to keep $0 and so on meaningful, and to
6079: # report actual input values of CONFIG_FILES etc. instead of their
6080: # values after options handling.
6081: ac_log="
6082: This file was extended by $as_me, which was
6083: generated by GNU Autoconf 2.69. Invocation command line was
6084:
6085: CONFIG_FILES = $CONFIG_FILES
6086: CONFIG_HEADERS = $CONFIG_HEADERS
6087: CONFIG_LINKS = $CONFIG_LINKS
6088: CONFIG_COMMANDS = $CONFIG_COMMANDS
6089: $ $0 $@
6090:
6091: on `(hostname || uname -n) 2>/dev/null | sed 1q`
6092: "
6093:
6094: _ACEOF
6095:
6096: case $ac_config_files in *"
6097: "*) set x $ac_config_files; shift; ac_config_files=$*;;
6098: esac
6099:
6100: case $ac_config_headers in *"
6101: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6102: esac
6103:
6104:
6105: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6106: # Files that config.status was made for.
6107: config_files="$ac_config_files"
6108: config_headers="$ac_config_headers"
6109: config_commands="$ac_config_commands"
6110:
6111: _ACEOF
6112:
6113: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6114: ac_cs_usage="\
6115: \`$as_me' instantiates files and other configuration actions
6116: from templates according to the current configuration. Unless the files
6117: and actions are specified as TAGs, all are instantiated by default.
6118:
6119: Usage: $0 [OPTION]... [TAG]...
6120:
6121: -h, --help print this help, then exit
6122: -V, --version print version number and configuration settings, then exit
6123: --config print configuration, then exit
6124: -q, --quiet, --silent
6125: do not print progress messages
6126: -d, --debug don't remove temporary files
6127: --recheck update $as_me by reconfiguring in the same conditions
6128: --file=FILE[:TEMPLATE]
6129: instantiate the configuration file FILE
6130: --header=FILE[:TEMPLATE]
6131: instantiate the configuration header FILE
6132:
6133: Configuration files:
6134: $config_files
6135:
6136: Configuration headers:
6137: $config_headers
6138:
6139: Configuration commands:
6140: $config_commands
6141:
6142: Report bugs to the package provider."
6143:
6144: _ACEOF
6145: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6146: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6147: ac_cs_version="\\
6148: config.status
6149: configured by $0, generated by GNU Autoconf 2.69,
6150: with options \\"\$ac_cs_config\\"
6151:
6152: Copyright (C) 2012 Free Software Foundation, Inc.
6153: This config.status script is free software; the Free Software Foundation
6154: gives unlimited permission to copy, distribute and modify it."
6155:
6156: ac_pwd='$ac_pwd'
6157: srcdir='$srcdir'
6158: INSTALL='$INSTALL'
6159: test -n "\$AWK" || AWK=awk
6160: _ACEOF
6161:
6162: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6163: # The default lists apply if the user does not specify any file.
6164: ac_need_defaults=:
6165: while test $# != 0
6166: do
6167: case $1 in
6168: --*=?*)
6169: ac_option=`expr "X$1" : 'X\([^=]*\)='`
6170: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6171: ac_shift=:
6172: ;;
6173: --*=)
6174: ac_option=`expr "X$1" : 'X\([^=]*\)='`
6175: ac_optarg=
6176: ac_shift=:
6177: ;;
6178: *)
6179: ac_option=$1
6180: ac_optarg=$2
6181: ac_shift=shift
6182: ;;
6183: esac
6184:
6185: case $ac_option in
6186: # Handling of the options.
6187: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6188: ac_cs_recheck=: ;;
6189: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6190: $as_echo "$ac_cs_version"; exit ;;
6191: --config | --confi | --conf | --con | --co | --c )
6192: $as_echo "$ac_cs_config"; exit ;;
6193: --debug | --debu | --deb | --de | --d | -d )
6194: debug=: ;;
6195: --file | --fil | --fi | --f )
6196: $ac_shift
6197: case $ac_optarg in
6198: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6199: '') as_fn_error $? "missing file argument" ;;
6200: esac
6201: as_fn_append CONFIG_FILES " '$ac_optarg'"
6202: ac_need_defaults=false;;
6203: --header | --heade | --head | --hea )
6204: $ac_shift
6205: case $ac_optarg in
6206: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6207: esac
6208: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6209: ac_need_defaults=false;;
6210: --he | --h)
6211: # Conflict between --help and --header
6212: as_fn_error $? "ambiguous option: \`$1'
6213: Try \`$0 --help' for more information.";;
6214: --help | --hel | -h )
6215: $as_echo "$ac_cs_usage"; exit ;;
6216: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6217: | -silent | --silent | --silen | --sile | --sil | --si | --s)
6218: ac_cs_silent=: ;;
6219:
6220: # This is an error.
6221: -*) as_fn_error $? "unrecognized option: \`$1'
6222: Try \`$0 --help' for more information." ;;
6223:
6224: *) as_fn_append ac_config_targets " $1"
6225: ac_need_defaults=false ;;
6226:
6227: esac
6228: shift
6229: done
6230:
6231: ac_configure_extra_args=
6232:
6233: if $ac_cs_silent; then
6234: exec 6>/dev/null
6235: ac_configure_extra_args="$ac_configure_extra_args --silent"
6236: fi
6237:
6238: _ACEOF
6239: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6240: if \$ac_cs_recheck; then
6241: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6242: shift
6243: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6244: CONFIG_SHELL='$SHELL'
6245: export CONFIG_SHELL
6246: exec "\$@"
6247: fi
6248:
6249: _ACEOF
6250: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6251: exec 5>>config.log
6252: {
6253: echo
6254: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6255: ## Running $as_me. ##
6256: _ASBOX
6257: $as_echo "$ac_log"
6258: } >&5
6259:
6260: _ACEOF
6261: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6262: #
6263: # INIT-COMMANDS
6264: #
1.1.1.2 ! misho 6265:
! 6266: srcdir=$srcdir
! 6267: srcdir_rel=$srcdir_rel
! 6268: objdir=$objdir
! 6269: sysdep_dirs="$sysdep_dirs"
! 6270:
! 6271:
1.1 misho 6272:
6273: _ACEOF
6274:
6275: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6276:
6277: # Handling of arguments.
6278: for ac_config_target in $ac_config_targets
6279: do
6280: case $ac_config_target in
6281: "$objdir/sysdep/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS $objdir/sysdep/autoconf.h:sysdep/autoconf.h.in" ;;
6282: "merge") CONFIG_COMMANDS="$CONFIG_COMMANDS merge" ;;
6283: "$makefiles") CONFIG_FILES="$CONFIG_FILES $makefiles" ;;
6284:
6285: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6286: esac
6287: done
6288:
6289:
6290: # If the user did not use the arguments to specify the items to instantiate,
6291: # then the envvar interface is used. Set only those that are not.
6292: # We use the long form for the default assignment because of an extremely
6293: # bizarre bug on SunOS 4.1.3.
6294: if $ac_need_defaults; then
6295: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6296: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6297: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6298: fi
6299:
6300: # Have a temporary directory for convenience. Make it in the build tree
6301: # simply because there is no reason against having it here, and in addition,
6302: # creating and moving files from /tmp can sometimes cause problems.
6303: # Hook for its removal unless debugging.
6304: # Note that there is a small window in which the directory will not be cleaned:
6305: # after its creation but before its name has been assigned to `$tmp'.
6306: $debug ||
6307: {
6308: tmp= ac_tmp=
6309: trap 'exit_status=$?
6310: : "${ac_tmp:=$tmp}"
6311: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6312: ' 0
6313: trap 'as_fn_exit 1' 1 2 13 15
6314: }
6315: # Create a (secure) tmp directory for tmp files.
6316:
6317: {
6318: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6319: test -d "$tmp"
6320: } ||
6321: {
6322: tmp=./conf$$-$RANDOM
6323: (umask 077 && mkdir "$tmp")
6324: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6325: ac_tmp=$tmp
6326:
6327: # Set up the scripts for CONFIG_FILES section.
6328: # No need to generate them if there are no CONFIG_FILES.
6329: # This happens for instance with `./config.status config.h'.
6330: if test -n "$CONFIG_FILES"; then
6331:
6332:
6333: ac_cr=`echo X | tr X '\015'`
6334: # On cygwin, bash can eat \r inside `` if the user requested igncr.
6335: # But we know of no other shell where ac_cr would be empty at this
6336: # point, so we can use a bashism as a fallback.
6337: if test "x$ac_cr" = x; then
6338: eval ac_cr=\$\'\\r\'
6339: fi
6340: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6341: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6342: ac_cs_awk_cr='\\r'
6343: else
6344: ac_cs_awk_cr=$ac_cr
6345: fi
6346:
6347: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6348: _ACEOF
6349:
6350:
6351: {
6352: echo "cat >conf$$subs.awk <<_ACEOF" &&
6353: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6354: echo "_ACEOF"
6355: } >conf$$subs.sh ||
6356: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6357: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6358: ac_delim='%!_!# '
6359: for ac_last_try in false false false false false :; do
6360: . ./conf$$subs.sh ||
6361: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6362:
6363: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6364: if test $ac_delim_n = $ac_delim_num; then
6365: break
6366: elif $ac_last_try; then
6367: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6368: else
6369: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6370: fi
6371: done
6372: rm -f conf$$subs.sh
6373:
6374: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6375: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6376: _ACEOF
6377: sed -n '
6378: h
6379: s/^/S["/; s/!.*/"]=/
6380: p
6381: g
6382: s/^[^!]*!//
6383: :repl
6384: t repl
6385: s/'"$ac_delim"'$//
6386: t delim
6387: :nl
6388: h
6389: s/\(.\{148\}\)..*/\1/
6390: t more1
6391: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6392: p
6393: n
6394: b repl
6395: :more1
6396: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6397: p
6398: g
6399: s/.\{148\}//
6400: t nl
6401: :delim
6402: h
6403: s/\(.\{148\}\)..*/\1/
6404: t more2
6405: s/["\\]/\\&/g; s/^/"/; s/$/"/
6406: p
6407: b
6408: :more2
6409: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6410: p
6411: g
6412: s/.\{148\}//
6413: t delim
6414: ' <conf$$subs.awk | sed '
6415: /^[^""]/{
6416: N
6417: s/\n//
6418: }
6419: ' >>$CONFIG_STATUS || ac_write_fail=1
6420: rm -f conf$$subs.awk
6421: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6422: _ACAWK
6423: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6424: for (key in S) S_is_set[key] = 1
6425: FS = ""
6426:
6427: }
6428: {
6429: line = $ 0
6430: nfields = split(line, field, "@")
6431: substed = 0
6432: len = length(field[1])
6433: for (i = 2; i < nfields; i++) {
6434: key = field[i]
6435: keylen = length(key)
6436: if (S_is_set[key]) {
6437: value = S[key]
6438: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6439: len += length(value) + length(field[++i])
6440: substed = 1
6441: } else
6442: len += 1 + keylen
6443: }
6444:
6445: print line
6446: }
6447:
6448: _ACAWK
6449: _ACEOF
6450: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6451: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6452: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6453: else
6454: cat
6455: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6456: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6457: _ACEOF
6458:
6459: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6460: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6461: # trailing colons and then remove the whole line if VPATH becomes empty
6462: # (actually we leave an empty line to preserve line numbers).
6463: if test "x$srcdir" = x.; then
6464: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6465: h
6466: s///
6467: s/^/:/
6468: s/[ ]*$/:/
6469: s/:\$(srcdir):/:/g
6470: s/:\${srcdir}:/:/g
6471: s/:@srcdir@:/:/g
6472: s/^:*//
6473: s/:*$//
6474: x
6475: s/\(=[ ]*\).*/\1/
6476: G
6477: s/\n//
6478: s/^[^=]*=[ ]*$//
6479: }'
6480: fi
6481:
6482: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6483: fi # test -n "$CONFIG_FILES"
6484:
6485: # Set up the scripts for CONFIG_HEADERS section.
6486: # No need to generate them if there are no CONFIG_HEADERS.
6487: # This happens for instance with `./config.status Makefile'.
6488: if test -n "$CONFIG_HEADERS"; then
6489: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6490: BEGIN {
6491: _ACEOF
6492:
6493: # Transform confdefs.h into an awk script `defines.awk', embedded as
6494: # here-document in config.status, that substitutes the proper values into
6495: # config.h.in to produce config.h.
6496:
6497: # Create a delimiter string that does not exist in confdefs.h, to ease
6498: # handling of long lines.
6499: ac_delim='%!_!# '
6500: for ac_last_try in false false :; do
6501: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6502: if test -z "$ac_tt"; then
6503: break
6504: elif $ac_last_try; then
6505: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6506: else
6507: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6508: fi
6509: done
6510:
6511: # For the awk script, D is an array of macro values keyed by name,
6512: # likewise P contains macro parameters if any. Preserve backslash
6513: # newline sequences.
6514:
6515: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6516: sed -n '
6517: s/.\{148\}/&'"$ac_delim"'/g
6518: t rset
6519: :rset
6520: s/^[ ]*#[ ]*define[ ][ ]*/ /
6521: t def
6522: d
6523: :def
6524: s/\\$//
6525: t bsnl
6526: s/["\\]/\\&/g
6527: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6528: D["\1"]=" \3"/p
6529: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6530: d
6531: :bsnl
6532: s/["\\]/\\&/g
6533: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6534: D["\1"]=" \3\\\\\\n"\\/p
6535: t cont
6536: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6537: t cont
6538: d
6539: :cont
6540: n
6541: s/.\{148\}/&'"$ac_delim"'/g
6542: t clear
6543: :clear
6544: s/\\$//
6545: t bsnlc
6546: s/["\\]/\\&/g; s/^/"/; s/$/"/p
6547: d
6548: :bsnlc
6549: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6550: b cont
6551: ' <confdefs.h | sed '
6552: s/'"$ac_delim"'/"\\\
6553: "/g' >>$CONFIG_STATUS || ac_write_fail=1
6554:
6555: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6556: for (key in D) D_is_set[key] = 1
6557: FS = ""
6558: }
6559: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6560: line = \$ 0
6561: split(line, arg, " ")
6562: if (arg[1] == "#") {
6563: defundef = arg[2]
6564: mac1 = arg[3]
6565: } else {
6566: defundef = substr(arg[1], 2)
6567: mac1 = arg[2]
6568: }
6569: split(mac1, mac2, "(") #)
6570: macro = mac2[1]
6571: prefix = substr(line, 1, index(line, defundef) - 1)
6572: if (D_is_set[macro]) {
6573: # Preserve the white space surrounding the "#".
6574: print prefix "define", macro P[macro] D[macro]
6575: next
6576: } else {
6577: # Replace #undef with comments. This is necessary, for example,
6578: # in the case of _POSIX_SOURCE, which is predefined and required
6579: # on some systems where configure will not decide to define it.
6580: if (defundef == "undef") {
6581: print "/*", prefix defundef, macro, "*/"
6582: next
6583: }
6584: }
6585: }
6586: { print }
6587: _ACAWK
6588: _ACEOF
6589: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6590: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6591: fi # test -n "$CONFIG_HEADERS"
6592:
6593:
6594: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6595: shift
6596: for ac_tag
6597: do
6598: case $ac_tag in
6599: :[FHLC]) ac_mode=$ac_tag; continue;;
6600: esac
6601: case $ac_mode$ac_tag in
6602: :[FHL]*:*);;
6603: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6604: :[FH]-) ac_tag=-:-;;
6605: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6606: esac
6607: ac_save_IFS=$IFS
6608: IFS=:
6609: set x $ac_tag
6610: IFS=$ac_save_IFS
6611: shift
6612: ac_file=$1
6613: shift
6614:
6615: case $ac_mode in
6616: :L) ac_source=$1;;
6617: :[FH])
6618: ac_file_inputs=
6619: for ac_f
6620: do
6621: case $ac_f in
6622: -) ac_f="$ac_tmp/stdin";;
6623: *) # Look for the file first in the build tree, then in the source tree
6624: # (if the path is not absolute). The absolute path cannot be DOS-style,
6625: # because $ac_f cannot contain `:'.
6626: test -f "$ac_f" ||
6627: case $ac_f in
6628: [\\/$]*) false;;
6629: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6630: esac ||
6631: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6632: esac
6633: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6634: as_fn_append ac_file_inputs " '$ac_f'"
6635: done
6636:
6637: # Let's still pretend it is `configure' which instantiates (i.e., don't
6638: # use $as_me), people would be surprised to read:
6639: # /* config.h. Generated by config.status. */
6640: configure_input='Generated from '`
6641: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6642: `' by configure.'
6643: if test x"$ac_file" != x-; then
6644: configure_input="$ac_file. $configure_input"
6645: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6646: $as_echo "$as_me: creating $ac_file" >&6;}
6647: fi
6648: # Neutralize special characters interpreted by sed in replacement strings.
6649: case $configure_input in #(
6650: *\&* | *\|* | *\\* )
6651: ac_sed_conf_input=`$as_echo "$configure_input" |
6652: sed 's/[\\\\&|]/\\\\&/g'`;; #(
6653: *) ac_sed_conf_input=$configure_input;;
6654: esac
6655:
6656: case $ac_tag in
6657: *:-:* | *:-) cat >"$ac_tmp/stdin" \
6658: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6659: esac
6660: ;;
6661: esac
6662:
6663: ac_dir=`$as_dirname -- "$ac_file" ||
6664: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6665: X"$ac_file" : 'X\(//\)[^/]' \| \
6666: X"$ac_file" : 'X\(//\)$' \| \
6667: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6668: $as_echo X"$ac_file" |
6669: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6670: s//\1/
6671: q
6672: }
6673: /^X\(\/\/\)[^/].*/{
6674: s//\1/
6675: q
6676: }
6677: /^X\(\/\/\)$/{
6678: s//\1/
6679: q
6680: }
6681: /^X\(\/\).*/{
6682: s//\1/
6683: q
6684: }
6685: s/.*/./; q'`
6686: as_dir="$ac_dir"; as_fn_mkdir_p
6687: ac_builddir=.
6688:
6689: case "$ac_dir" in
6690: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6691: *)
6692: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6693: # A ".." for each directory in $ac_dir_suffix.
6694: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6695: case $ac_top_builddir_sub in
6696: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6697: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6698: esac ;;
6699: esac
6700: ac_abs_top_builddir=$ac_pwd
6701: ac_abs_builddir=$ac_pwd$ac_dir_suffix
6702: # for backward compatibility:
6703: ac_top_builddir=$ac_top_build_prefix
6704:
6705: case $srcdir in
6706: .) # We are building in place.
6707: ac_srcdir=.
6708: ac_top_srcdir=$ac_top_builddir_sub
6709: ac_abs_top_srcdir=$ac_pwd ;;
6710: [\\/]* | ?:[\\/]* ) # Absolute name.
6711: ac_srcdir=$srcdir$ac_dir_suffix;
6712: ac_top_srcdir=$srcdir
6713: ac_abs_top_srcdir=$srcdir ;;
6714: *) # Relative name.
6715: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6716: ac_top_srcdir=$ac_top_build_prefix$srcdir
6717: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6718: esac
6719: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6720:
6721:
6722: case $ac_mode in
6723: :F)
6724: #
6725: # CONFIG_FILE
6726: #
6727:
6728: case $INSTALL in
6729: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6730: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6731: esac
6732: _ACEOF
6733:
6734: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6735: # If the template does not know about datarootdir, expand it.
6736: # FIXME: This hack should be removed a few years after 2.60.
6737: ac_datarootdir_hack=; ac_datarootdir_seen=
6738: ac_sed_dataroot='
6739: /datarootdir/ {
6740: p
6741: q
6742: }
6743: /@datadir@/p
6744: /@docdir@/p
6745: /@infodir@/p
6746: /@localedir@/p
6747: /@mandir@/p'
6748: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6749: *datarootdir*) ac_datarootdir_seen=yes;;
6750: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6751: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6752: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6753: _ACEOF
6754: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6755: ac_datarootdir_hack='
6756: s&@datadir@&$datadir&g
6757: s&@docdir@&$docdir&g
6758: s&@infodir@&$infodir&g
6759: s&@localedir@&$localedir&g
6760: s&@mandir@&$mandir&g
6761: s&\\\${datarootdir}&$datarootdir&g' ;;
6762: esac
6763: _ACEOF
6764:
6765: # Neutralize VPATH when `$srcdir' = `.'.
6766: # Shell code in configure.ac might set extrasub.
6767: # FIXME: do we really want to maintain this feature?
6768: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6769: ac_sed_extra="$ac_vpsub
6770: $extrasub
6771: _ACEOF
6772: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6773: :t
6774: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6775: s|@configure_input@|$ac_sed_conf_input|;t t
6776: s&@top_builddir@&$ac_top_builddir_sub&;t t
6777: s&@top_build_prefix@&$ac_top_build_prefix&;t t
6778: s&@srcdir@&$ac_srcdir&;t t
6779: s&@abs_srcdir@&$ac_abs_srcdir&;t t
6780: s&@top_srcdir@&$ac_top_srcdir&;t t
6781: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6782: s&@builddir@&$ac_builddir&;t t
6783: s&@abs_builddir@&$ac_abs_builddir&;t t
6784: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6785: s&@INSTALL@&$ac_INSTALL&;t t
6786: $ac_datarootdir_hack
6787: "
6788: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6789: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6790:
6791: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6792: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6793: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6794: "$ac_tmp/out"`; test -z "$ac_out"; } &&
6795: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6796: which seems to be undefined. Please make sure it is defined" >&5
6797: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6798: which seems to be undefined. Please make sure it is defined" >&2;}
6799:
6800: rm -f "$ac_tmp/stdin"
6801: case $ac_file in
6802: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6803: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6804: esac \
6805: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6806: ;;
6807: :H)
6808: #
6809: # CONFIG_HEADER
6810: #
6811: if test x"$ac_file" != x-; then
6812: {
6813: $as_echo "/* $configure_input */" \
6814: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6815: } >"$ac_tmp/config.h" \
6816: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6817: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6818: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6819: $as_echo "$as_me: $ac_file is unchanged" >&6;}
6820: else
6821: rm -f "$ac_file"
6822: mv "$ac_tmp/config.h" "$ac_file" \
6823: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6824: fi
6825: else
6826: $as_echo "/* $configure_input */" \
6827: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6828: || as_fn_error $? "could not create -" "$LINENO" 5
6829: fi
6830: ;;
6831:
6832: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6833: $as_echo "$as_me: executing $ac_file commands" >&6;}
6834: ;;
6835: esac
6836:
6837:
6838: case $ac_file$ac_mode in
1.1.1.2 ! misho 6839: "merge":C) export CPP="$CPP"; sh $srcdir/tools/mergedirs $srcdir $srcdir_rel $objdir $sysdep_dirs ;;
1.1 misho 6840:
6841: esac
6842: done # for ac_tag
6843:
6844:
6845: as_fn_exit 0
6846: _ACEOF
6847: ac_clean_files=$ac_clean_files_save
6848:
6849: test $ac_write_fail = 0 ||
6850: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6851:
6852:
6853: # configure is writing to config.log, and then calls config.status.
6854: # config.status does its own redirection, appending to config.log.
6855: # Unfortunately, on DOS this fails, as config.log is still kept open
6856: # by configure, so config.status won't be able to write to it; its
6857: # output is simply discarded. So we exec the FD to /dev/null,
6858: # effectively closing config.log, so it can be properly (re)opened and
6859: # appended to by config.status. When coming back to configure, we
6860: # need to make the FD available again.
6861: if test "$no_create" != yes; then
6862: ac_cs_success=:
6863: ac_config_status_args=
6864: test "$silent" = yes &&
6865: ac_config_status_args="$ac_config_status_args --quiet"
6866: exec 5>/dev/null
6867: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6868: exec 5>>config.log
6869: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6870: # would make configure fail if this is the last instruction.
6871: $ac_cs_success || as_fn_exit 1
6872: fi
6873: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6874: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6875: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6876: fi
6877:
6878:
6879: rm -f $objdir/sysdep/paths.h
6880:
1.1.1.2 ! misho 6881: { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
! 6882: $as_echo "" >&6; }
! 6883: { $as_echo "$as_me:${as_lineno-$LINENO}: result: BIRD was configured with the following options:" >&5
! 6884: $as_echo "BIRD was configured with the following options:" >&6; }
! 6885: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Source directory: $srcdir" >&5
! 6886: $as_echo " Source directory: $srcdir" >&6; }
! 6887: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Object directory: $objdir" >&5
! 6888: $as_echo " Object directory: $objdir" >&6; }
! 6889: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Iproute2 directory: $iproutedir" >&5
! 6890: $as_echo " Iproute2 directory: $iproutedir" >&6; }
! 6891: { $as_echo "$as_me:${as_lineno-$LINENO}: result: System configuration: $sysdesc" >&5
! 6892: $as_echo " System configuration: $sysdesc" >&6; }
! 6893: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Debugging: $enable_debug" >&5
! 6894: $as_echo " Debugging: $enable_debug" >&6; }
! 6895: { $as_echo "$as_me:${as_lineno-$LINENO}: result: POSIX threads: $enable_pthreads" >&5
! 6896: $as_echo " POSIX threads: $enable_pthreads" >&6; }
! 6897: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Routing protocols: $protocols" >&5
! 6898: $as_echo " Routing protocols: $protocols" >&6; }
! 6899: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Client: $enable_client" >&5
! 6900: $as_echo " Client: $enable_client" >&6; }
1.1 misho 6901:
6902: rm -f $objdir/.*-stamp
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>