configure revision 1.1.1.5.2.1 1 1.1 christos #! /bin/sh
2 1.1 christos # Guess values for system-dependent variables and create Makefiles.
3 1.1.1.3 christos # Generated by GNU Autoconf 2.69.
4 1.1.1.2 christos #
5 1.1 christos #
6 1.1.1.3 christos # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 1.1.1.2 christos #
8 1.1.1.2 christos #
9 1.1 christos # This configure script is free software; the Free Software Foundation
10 1.1 christos # gives unlimited permission to copy, distribute and modify it.
11 1.1.1.2 christos ## -------------------- ##
12 1.1.1.2 christos ## M4sh Initialization. ##
13 1.1.1.2 christos ## -------------------- ##
14 1.1 christos
15 1.1 christos # Be more Bourne compatible
16 1.1 christos DUALCASE=1; export DUALCASE # for MKS sh
17 1.1.1.2 christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 1.1 christos emulate sh
19 1.1 christos NULLCMD=:
20 1.1.1.2 christos # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 1.1 christos # is contrary to our usage. Disable this feature.
22 1.1 christos alias -g '${1+"$@"}'='"$@"'
23 1.1 christos setopt NO_GLOB_SUBST
24 1.1 christos else
25 1.1.1.2 christos case `(set -o) 2>/dev/null` in #(
26 1.1.1.2 christos *posix*) :
27 1.1.1.2 christos set -o posix ;; #(
28 1.1.1.2 christos *) :
29 1.1.1.2 christos ;;
30 1.1 christos esac
31 1.1 christos fi
32 1.1 christos
33 1.1 christos
34 1.1.1.2 christos as_nl='
35 1.1.1.2 christos '
36 1.1.1.2 christos export as_nl
37 1.1.1.2 christos # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 1.1.1.2 christos as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 1.1.1.2 christos as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 1.1.1.2 christos as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 1.1.1.2 christos # Prefer a ksh shell builtin over an external printf program on Solaris,
42 1.1.1.2 christos # but without wasting forks for bash or zsh.
43 1.1.1.2 christos if test -z "$BASH_VERSION$ZSH_VERSION" \
44 1.1.1.2 christos && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 1.1.1.2 christos as_echo='print -r --'
46 1.1.1.2 christos as_echo_n='print -rn --'
47 1.1.1.2 christos elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 1.1.1.2 christos as_echo='printf %s\n'
49 1.1.1.2 christos as_echo_n='printf %s'
50 1.1.1.2 christos else
51 1.1.1.2 christos if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 1.1.1.2 christos as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 1.1.1.2 christos as_echo_n='/usr/ucb/echo -n'
54 1.1 christos else
55 1.1.1.2 christos as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 1.1.1.2 christos as_echo_n_body='eval
57 1.1.1.2 christos arg=$1;
58 1.1.1.2 christos case $arg in #(
59 1.1.1.2 christos *"$as_nl"*)
60 1.1.1.2 christos expr "X$arg" : "X\\(.*\\)$as_nl";
61 1.1.1.2 christos arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 1.1.1.2 christos esac;
63 1.1.1.2 christos expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 1.1.1.2 christos '
65 1.1.1.2 christos export as_echo_n_body
66 1.1.1.2 christos as_echo_n='sh -c $as_echo_n_body as_echo'
67 1.1 christos fi
68 1.1.1.2 christos export as_echo_body
69 1.1.1.2 christos as_echo='sh -c $as_echo_body as_echo'
70 1.1 christos fi
71 1.1 christos
72 1.1.1.2 christos # The user is always right.
73 1.1.1.2 christos if test "${PATH_SEPARATOR+set}" != set; then
74 1.1.1.2 christos PATH_SEPARATOR=:
75 1.1.1.2 christos (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 1.1.1.2 christos (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 1.1.1.2 christos PATH_SEPARATOR=';'
78 1.1.1.2 christos }
79 1.1 christos fi
80 1.1 christos
81 1.1 christos
82 1.1 christos # IFS
83 1.1 christos # We need space, tab and new line, in precisely that order. Quoting is
84 1.1 christos # there to prevent editors from complaining about space-tab.
85 1.1 christos # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 1.1 christos # splitting by setting IFS to empty value.)
87 1.1 christos IFS=" "" $as_nl"
88 1.1 christos
89 1.1 christos # Find who we are. Look in the path if we contain no directory separator.
90 1.1.1.3 christos as_myself=
91 1.1.1.2 christos case $0 in #((
92 1.1 christos *[\\/]* ) as_myself=$0 ;;
93 1.1 christos *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 1.1 christos for as_dir in $PATH
95 1.1 christos do
96 1.1 christos IFS=$as_save_IFS
97 1.1 christos test -z "$as_dir" && as_dir=.
98 1.1.1.2 christos test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 1.1.1.2 christos done
100 1.1 christos IFS=$as_save_IFS
101 1.1 christos
102 1.1 christos ;;
103 1.1 christos esac
104 1.1 christos # We did not find ourselves, most probably we were run as `sh COMMAND'
105 1.1 christos # in which case we are not to be found in the path.
106 1.1 christos if test "x$as_myself" = x; then
107 1.1 christos as_myself=$0
108 1.1 christos fi
109 1.1 christos if test ! -f "$as_myself"; then
110 1.1.1.2 christos $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 1.1.1.2 christos exit 1
112 1.1 christos fi
113 1.1 christos
114 1.1.1.2 christos # Unset variables that we do not need and which cause bugs (e.g. in
115 1.1.1.2 christos # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 1.1.1.2 christos # suppresses any "Segmentation fault" message there. '((' could
117 1.1.1.2 christos # trigger a bug in pdksh 5.2.14.
118 1.1.1.2 christos for as_var in BASH_ENV ENV MAIL MAILPATH
119 1.1.1.2 christos do eval test x\${$as_var+set} = xset \
120 1.1.1.2 christos && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 1.1 christos done
122 1.1 christos PS1='$ '
123 1.1 christos PS2='> '
124 1.1 christos PS4='+ '
125 1.1 christos
126 1.1 christos # NLS nuisances.
127 1.1.1.2 christos LC_ALL=C
128 1.1.1.2 christos export LC_ALL
129 1.1.1.2 christos LANGUAGE=C
130 1.1.1.2 christos export LANGUAGE
131 1.1 christos
132 1.1 christos # CDPATH.
133 1.1.1.2 christos (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 1.1 christos
135 1.1.1.3 christos # Use a proper internal environment variable to ensure we don't fall
136 1.1.1.3 christos # into an infinite loop, continuously re-executing ourselves.
137 1.1.1.3 christos if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 1.1.1.3 christos _as_can_reexec=no; export _as_can_reexec;
139 1.1.1.3 christos # We cannot yet assume a decent shell, so we have to provide a
140 1.1.1.3 christos # neutralization value for shells without unset; and this also
141 1.1.1.3 christos # works around shells that cannot unset nonexistent variables.
142 1.1.1.3 christos # Preserve -v and -x to the replacement shell.
143 1.1.1.3 christos BASH_ENV=/dev/null
144 1.1.1.3 christos ENV=/dev/null
145 1.1.1.3 christos (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 1.1.1.3 christos case $- in # ((((
147 1.1.1.3 christos *v*x* | *x*v* ) as_opts=-vx ;;
148 1.1.1.3 christos *v* ) as_opts=-v ;;
149 1.1.1.3 christos *x* ) as_opts=-x ;;
150 1.1.1.3 christos * ) as_opts= ;;
151 1.1.1.3 christos esac
152 1.1.1.3 christos exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 1.1.1.3 christos # Admittedly, this is quite paranoid, since all the known shells bail
154 1.1.1.3 christos # out after a failed `exec'.
155 1.1.1.3 christos $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 1.1.1.3 christos as_fn_exit 255
157 1.1.1.3 christos fi
158 1.1.1.3 christos # We don't want this to propagate to other subprocesses.
159 1.1.1.3 christos { _as_can_reexec=; unset _as_can_reexec;}
160 1.1 christos if test "x$CONFIG_SHELL" = x; then
161 1.1.1.2 christos as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 1.1.1.2 christos emulate sh
163 1.1.1.2 christos NULLCMD=:
164 1.1.1.2 christos # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 1.1.1.2 christos # is contrary to our usage. Disable this feature.
166 1.1.1.2 christos alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 1.1.1.2 christos setopt NO_GLOB_SUBST
168 1.1 christos else
169 1.1.1.2 christos case \`(set -o) 2>/dev/null\` in #(
170 1.1.1.2 christos *posix*) :
171 1.1.1.2 christos set -o posix ;; #(
172 1.1.1.2 christos *) :
173 1.1.1.2 christos ;;
174 1.1.1.2 christos esac
175 1.1 christos fi
176 1.1.1.2 christos "
177 1.1.1.2 christos as_required="as_fn_return () { (exit \$1); }
178 1.1.1.2 christos as_fn_success () { as_fn_return 0; }
179 1.1.1.2 christos as_fn_failure () { as_fn_return 1; }
180 1.1.1.2 christos as_fn_ret_success () { return 0; }
181 1.1.1.2 christos as_fn_ret_failure () { return 1; }
182 1.1 christos
183 1.1 christos exitcode=0
184 1.1.1.2 christos as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 1.1.1.2 christos as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 1.1.1.2 christos as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 1.1.1.2 christos as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 1.1.1.2 christos if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189 1.1.1.2 christos
190 1.1.1.2 christos else
191 1.1.1.2 christos exitcode=1; echo positional parameters were not saved.
192 1.1.1.2 christos fi
193 1.1.1.3 christos test x\$exitcode = x0 || exit 1
194 1.1.1.3 christos test -x / || exit 1"
195 1.1.1.2 christos as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 1.1.1.2 christos as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 1.1.1.2 christos eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 1.1.1.2 christos test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 1.1.1.2 christos test \$(( 1 + 1 )) = 2 || exit 1"
200 1.1.1.2 christos if (eval "$as_required") 2>/dev/null; then :
201 1.1.1.2 christos as_have_required=yes
202 1.1 christos else
203 1.1.1.2 christos as_have_required=no
204 1.1 christos fi
205 1.1.1.2 christos if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206 1.1 christos
207 1.1 christos else
208 1.1.1.2 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 1.1.1.2 christos as_found=false
210 1.1 christos for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 1.1 christos do
212 1.1 christos IFS=$as_save_IFS
213 1.1 christos test -z "$as_dir" && as_dir=.
214 1.1.1.2 christos as_found=:
215 1.1.1.2 christos case $as_dir in #(
216 1.1 christos /*)
217 1.1 christos for as_base in sh bash ksh sh5; do
218 1.1.1.2 christos # Try only shells that exist, to save several forks.
219 1.1.1.2 christos as_shell=$as_dir/$as_base
220 1.1.1.2 christos if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 1.1.1.2 christos { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 1.1.1.2 christos CONFIG_SHELL=$as_shell as_have_required=yes
223 1.1.1.2 christos if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 1.1.1.2 christos break 2
225 1.1.1.2 christos fi
226 1.1.1.2 christos fi
227 1.1 christos done;;
228 1.1 christos esac
229 1.1.1.2 christos as_found=false
230 1.1 christos done
231 1.1.1.2 christos $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 1.1.1.2 christos { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 1.1.1.2 christos CONFIG_SHELL=$SHELL as_have_required=yes
234 1.1.1.2 christos fi; }
235 1.1 christos IFS=$as_save_IFS
236 1.1 christos
237 1.1 christos
238 1.1.1.2 christos if test "x$CONFIG_SHELL" != x; then :
239 1.1.1.3 christos export CONFIG_SHELL
240 1.1.1.3 christos # We cannot yet assume a decent shell, so we have to provide a
241 1.1.1.3 christos # neutralization value for shells without unset; and this also
242 1.1.1.3 christos # works around shells that cannot unset nonexistent variables.
243 1.1.1.3 christos # Preserve -v and -x to the replacement shell.
244 1.1.1.3 christos BASH_ENV=/dev/null
245 1.1.1.3 christos ENV=/dev/null
246 1.1.1.3 christos (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 1.1.1.3 christos case $- in # ((((
248 1.1.1.3 christos *v*x* | *x*v* ) as_opts=-vx ;;
249 1.1.1.3 christos *v* ) as_opts=-v ;;
250 1.1.1.3 christos *x* ) as_opts=-x ;;
251 1.1.1.3 christos * ) as_opts= ;;
252 1.1.1.3 christos esac
253 1.1.1.3 christos exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 1.1.1.3 christos # Admittedly, this is quite paranoid, since all the known shells bail
255 1.1.1.3 christos # out after a failed `exec'.
256 1.1.1.3 christos $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 1.1.1.3 christos exit 255
258 1.1.1.2 christos fi
259 1.1.1.2 christos
260 1.1.1.2 christos if test x$as_have_required = xno; then :
261 1.1.1.2 christos $as_echo "$0: This script requires a shell more modern than all"
262 1.1.1.2 christos $as_echo "$0: the shells that I found on your system."
263 1.1.1.2 christos if test x${ZSH_VERSION+set} = xset ; then
264 1.1.1.2 christos $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 1.1.1.2 christos $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 1.1.1.2 christos else
267 1.1.1.2 christos $as_echo "$0: Please tell bug-autoconf (at] gnu.org about your system,
268 1.1.1.2 christos $0: including any error possibly output before this
269 1.1.1.2 christos $0: message. Then install a modern shell, or manually run
270 1.1.1.2 christos $0: the script under such a shell if you do have one."
271 1.1.1.2 christos fi
272 1.1.1.2 christos exit 1
273 1.1 christos fi
274 1.1 christos fi
275 1.1 christos fi
276 1.1.1.2 christos SHELL=${CONFIG_SHELL-/bin/sh}
277 1.1.1.2 christos export SHELL
278 1.1.1.2 christos # Unset more variables known to interfere with behavior of common tools.
279 1.1.1.2 christos CLICOLOR_FORCE= GREP_OPTIONS=
280 1.1.1.2 christos unset CLICOLOR_FORCE GREP_OPTIONS
281 1.1 christos
282 1.1.1.2 christos ## --------------------- ##
283 1.1.1.2 christos ## M4sh Shell Functions. ##
284 1.1.1.2 christos ## --------------------- ##
285 1.1.1.2 christos # as_fn_unset VAR
286 1.1.1.2 christos # ---------------
287 1.1.1.2 christos # Portably unset VAR.
288 1.1.1.2 christos as_fn_unset ()
289 1.1.1.2 christos {
290 1.1.1.2 christos { eval $1=; unset $1;}
291 1.1.1.2 christos }
292 1.1.1.2 christos as_unset=as_fn_unset
293 1.1.1.2 christos
294 1.1.1.2 christos # as_fn_set_status STATUS
295 1.1.1.2 christos # -----------------------
296 1.1.1.2 christos # Set $? to STATUS, without forking.
297 1.1.1.2 christos as_fn_set_status ()
298 1.1.1.2 christos {
299 1.1.1.2 christos return $1
300 1.1.1.2 christos } # as_fn_set_status
301 1.1.1.2 christos
302 1.1.1.2 christos # as_fn_exit STATUS
303 1.1.1.2 christos # -----------------
304 1.1.1.2 christos # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 1.1.1.2 christos as_fn_exit ()
306 1.1.1.2 christos {
307 1.1.1.2 christos set +e
308 1.1.1.2 christos as_fn_set_status $1
309 1.1.1.2 christos exit $1
310 1.1.1.2 christos } # as_fn_exit
311 1.1.1.2 christos
312 1.1.1.2 christos # as_fn_mkdir_p
313 1.1.1.2 christos # -------------
314 1.1.1.2 christos # Create "$as_dir" as a directory, including parents if necessary.
315 1.1.1.2 christos as_fn_mkdir_p ()
316 1.1.1.2 christos {
317 1.1 christos
318 1.1.1.2 christos case $as_dir in #(
319 1.1.1.2 christos -*) as_dir=./$as_dir;;
320 1.1.1.2 christos esac
321 1.1.1.2 christos test -d "$as_dir" || eval $as_mkdir_p || {
322 1.1.1.2 christos as_dirs=
323 1.1.1.2 christos while :; do
324 1.1.1.2 christos case $as_dir in #(
325 1.1.1.2 christos *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 1.1.1.2 christos *) as_qdir=$as_dir;;
327 1.1.1.2 christos esac
328 1.1.1.2 christos as_dirs="'$as_qdir' $as_dirs"
329 1.1.1.2 christos as_dir=`$as_dirname -- "$as_dir" ||
330 1.1.1.2 christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 1.1.1.2 christos X"$as_dir" : 'X\(//\)[^/]' \| \
332 1.1.1.2 christos X"$as_dir" : 'X\(//\)$' \| \
333 1.1.1.2 christos X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 1.1.1.2 christos $as_echo X"$as_dir" |
335 1.1.1.2 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 1.1.1.2 christos s//\1/
337 1.1.1.2 christos q
338 1.1.1.2 christos }
339 1.1.1.2 christos /^X\(\/\/\)[^/].*/{
340 1.1.1.2 christos s//\1/
341 1.1.1.2 christos q
342 1.1.1.2 christos }
343 1.1.1.2 christos /^X\(\/\/\)$/{
344 1.1.1.2 christos s//\1/
345 1.1.1.2 christos q
346 1.1.1.2 christos }
347 1.1.1.2 christos /^X\(\/\).*/{
348 1.1.1.2 christos s//\1/
349 1.1.1.2 christos q
350 1.1.1.2 christos }
351 1.1.1.2 christos s/.*/./; q'`
352 1.1.1.2 christos test -d "$as_dir" && break
353 1.1.1.2 christos done
354 1.1.1.2 christos test -z "$as_dirs" || eval "mkdir $as_dirs"
355 1.1.1.2 christos } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356 1.1 christos
357 1.1 christos
358 1.1.1.2 christos } # as_fn_mkdir_p
359 1.1.1.3 christos
360 1.1.1.3 christos # as_fn_executable_p FILE
361 1.1.1.3 christos # -----------------------
362 1.1.1.3 christos # Test if FILE is an executable regular file.
363 1.1.1.3 christos as_fn_executable_p ()
364 1.1.1.3 christos {
365 1.1.1.3 christos test -f "$1" && test -x "$1"
366 1.1.1.3 christos } # as_fn_executable_p
367 1.1.1.2 christos # as_fn_append VAR VALUE
368 1.1.1.2 christos # ----------------------
369 1.1.1.2 christos # Append the text in VALUE to the end of the definition contained in VAR. Take
370 1.1.1.2 christos # advantage of any shell optimizations that allow amortized linear growth over
371 1.1.1.2 christos # repeated appends, instead of the typical quadratic growth present in naive
372 1.1.1.2 christos # implementations.
373 1.1.1.2 christos if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 1.1.1.2 christos eval 'as_fn_append ()
375 1.1.1.2 christos {
376 1.1.1.2 christos eval $1+=\$2
377 1.1.1.2 christos }'
378 1.1 christos else
379 1.1.1.2 christos as_fn_append ()
380 1.1.1.2 christos {
381 1.1.1.2 christos eval $1=\$$1\$2
382 1.1.1.2 christos }
383 1.1.1.2 christos fi # as_fn_append
384 1.1.1.2 christos
385 1.1.1.2 christos # as_fn_arith ARG...
386 1.1.1.2 christos # ------------------
387 1.1.1.2 christos # Perform arithmetic evaluation on the ARGs, and store the result in the
388 1.1.1.2 christos # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 1.1.1.2 christos # must be portable across $(()) and expr.
390 1.1.1.2 christos if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 1.1.1.2 christos eval 'as_fn_arith ()
392 1.1.1.2 christos {
393 1.1.1.2 christos as_val=$(( $* ))
394 1.1.1.2 christos }'
395 1.1 christos else
396 1.1.1.2 christos as_fn_arith ()
397 1.1.1.2 christos {
398 1.1.1.2 christos as_val=`expr "$@" || test $? -eq 1`
399 1.1.1.2 christos }
400 1.1.1.2 christos fi # as_fn_arith
401 1.1.1.2 christos
402 1.1.1.2 christos
403 1.1.1.2 christos # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 1.1.1.2 christos # ----------------------------------------
405 1.1.1.2 christos # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 1.1.1.2 christos # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 1.1.1.2 christos # script with STATUS, using 1 if that was 0.
408 1.1.1.2 christos as_fn_error ()
409 1.1.1.2 christos {
410 1.1.1.2 christos as_status=$1; test $as_status -eq 0 && as_status=1
411 1.1.1.2 christos if test "$4"; then
412 1.1.1.2 christos as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 1.1.1.2 christos fi
415 1.1.1.2 christos $as_echo "$as_me: error: $2" >&2
416 1.1.1.2 christos as_fn_exit $as_status
417 1.1.1.2 christos } # as_fn_error
418 1.1 christos
419 1.1.1.2 christos if expr a : '\(a\)' >/dev/null 2>&1 &&
420 1.1.1.2 christos test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 1.1.1.2 christos as_expr=expr
422 1.1 christos else
423 1.1.1.2 christos as_expr=false
424 1.1 christos fi
425 1.1 christos
426 1.1.1.2 christos if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 1.1.1.2 christos as_basename=basename
428 1.1.1.2 christos else
429 1.1.1.2 christos as_basename=false
430 1.1 christos fi
431 1.1 christos
432 1.1.1.2 christos if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 1.1.1.2 christos as_dirname=dirname
434 1.1 christos else
435 1.1.1.2 christos as_dirname=false
436 1.1 christos fi
437 1.1 christos
438 1.1.1.2 christos as_me=`$as_basename -- "$0" ||
439 1.1.1.2 christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 1.1.1.2 christos X"$0" : 'X\(//\)$' \| \
441 1.1.1.2 christos X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 1.1.1.2 christos $as_echo X/"$0" |
443 1.1.1.2 christos sed '/^.*\/\([^/][^/]*\)\/*$/{
444 1.1.1.2 christos s//\1/
445 1.1.1.2 christos q
446 1.1.1.2 christos }
447 1.1.1.2 christos /^X\/\(\/\/\)$/{
448 1.1.1.2 christos s//\1/
449 1.1.1.2 christos q
450 1.1.1.2 christos }
451 1.1.1.2 christos /^X\/\(\/\).*/{
452 1.1.1.2 christos s//\1/
453 1.1.1.2 christos q
454 1.1.1.2 christos }
455 1.1.1.2 christos s/.*/./; q'`
456 1.1 christos
457 1.1.1.2 christos # Avoid depending upon Character Ranges.
458 1.1.1.2 christos as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 1.1.1.2 christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 1.1.1.2 christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 1.1.1.2 christos as_cr_digits='0123456789'
462 1.1.1.2 christos as_cr_alnum=$as_cr_Letters$as_cr_digits
463 1.1 christos
464 1.1 christos
465 1.1.1.2 christos as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 1.1.1.2 christos as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 1.1.1.2 christos eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 1.1.1.2 christos test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 1.1.1.2 christos # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 1.1 christos sed -n '
471 1.1 christos p
472 1.1 christos /[$]LINENO/=
473 1.1 christos ' <$as_myself |
474 1.1 christos sed '
475 1.1 christos s/[$]LINENO.*/&-/
476 1.1 christos t lineno
477 1.1 christos b
478 1.1 christos :lineno
479 1.1 christos N
480 1.1 christos :loop
481 1.1 christos s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 1.1 christos t loop
483 1.1 christos s/-\n.*//
484 1.1 christos ' >$as_me.lineno &&
485 1.1 christos chmod +x "$as_me.lineno" ||
486 1.1.1.2 christos { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487 1.1 christos
488 1.1.1.3 christos # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 1.1.1.3 christos # already done that, so ensure we don't try to do so again and fall
490 1.1.1.3 christos # in an infinite loop. This has already happened in practice.
491 1.1.1.3 christos _as_can_reexec=no; export _as_can_reexec
492 1.1 christos # Don't try to exec as it changes $[0], causing all sort of problems
493 1.1 christos # (the dirname of $[0] is not the place where we might find the
494 1.1 christos # original and so on. Autoconf is especially sensitive to this).
495 1.1 christos . "./$as_me.lineno"
496 1.1 christos # Exit status is that of the last command.
497 1.1 christos exit
498 1.1 christos }
499 1.1 christos
500 1.1 christos ECHO_C= ECHO_N= ECHO_T=
501 1.1.1.2 christos case `echo -n x` in #(((((
502 1.1 christos -n*)
503 1.1.1.2 christos case `echo 'xy\c'` in
504 1.1 christos *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 1.1.1.2 christos xy) ECHO_C='\c';;
506 1.1.1.2 christos *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 1.1.1.2 christos ECHO_T=' ';;
508 1.1 christos esac;;
509 1.1 christos *)
510 1.1 christos ECHO_N='-n';;
511 1.1 christos esac
512 1.1 christos
513 1.1 christos rm -f conf$$ conf$$.exe conf$$.file
514 1.1 christos if test -d conf$$.dir; then
515 1.1 christos rm -f conf$$.dir/conf$$.file
516 1.1 christos else
517 1.1 christos rm -f conf$$.dir
518 1.1.1.2 christos mkdir conf$$.dir 2>/dev/null
519 1.1 christos fi
520 1.1.1.2 christos if (echo >conf$$.file) 2>/dev/null; then
521 1.1.1.2 christos if ln -s conf$$.file conf$$ 2>/dev/null; then
522 1.1.1.2 christos as_ln_s='ln -s'
523 1.1.1.2 christos # ... but there are two gotchas:
524 1.1.1.2 christos # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 1.1.1.2 christos # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 1.1.1.3 christos # In both cases, we have to default to `cp -pR'.
527 1.1.1.2 christos ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 1.1.1.3 christos as_ln_s='cp -pR'
529 1.1.1.2 christos elif ln conf$$.file conf$$ 2>/dev/null; then
530 1.1.1.2 christos as_ln_s=ln
531 1.1.1.2 christos else
532 1.1.1.3 christos as_ln_s='cp -pR'
533 1.1.1.2 christos fi
534 1.1 christos else
535 1.1.1.3 christos as_ln_s='cp -pR'
536 1.1 christos fi
537 1.1 christos rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 1.1 christos rmdir conf$$.dir 2>/dev/null
539 1.1 christos
540 1.1 christos if mkdir -p . 2>/dev/null; then
541 1.1.1.2 christos as_mkdir_p='mkdir -p "$as_dir"'
542 1.1 christos else
543 1.1 christos test -d ./-p && rmdir ./-p
544 1.1 christos as_mkdir_p=false
545 1.1 christos fi
546 1.1 christos
547 1.1.1.3 christos as_test_x='test -x'
548 1.1.1.3 christos as_executable_p=as_fn_executable_p
549 1.1 christos
550 1.1 christos # Sed expression to map a string onto a valid CPP name.
551 1.1 christos as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552 1.1 christos
553 1.1 christos # Sed expression to map a string onto a valid variable name.
554 1.1 christos as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 1.1 christos
556 1.1 christos
557 1.1.1.2 christos test -n "$DJDIR" || exec 7<&0 </dev/null
558 1.1.1.2 christos exec 6>&1
559 1.1 christos
560 1.1 christos # Name of the host.
561 1.1.1.2 christos # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 1.1 christos # so uname gets run too.
563 1.1 christos ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564 1.1 christos
565 1.1 christos #
566 1.1 christos # Initializations.
567 1.1 christos #
568 1.1 christos ac_default_prefix=/usr/local
569 1.1 christos ac_clean_files=
570 1.1 christos ac_config_libobj_dir=.
571 1.1 christos LIBOBJS=
572 1.1 christos cross_compiling=no
573 1.1 christos subdirs=
574 1.1 christos MFLAGS=
575 1.1 christos MAKEFLAGS=
576 1.1 christos
577 1.1 christos # Identity of this package.
578 1.1 christos PACKAGE_NAME=
579 1.1 christos PACKAGE_TARNAME=
580 1.1 christos PACKAGE_VERSION=
581 1.1 christos PACKAGE_STRING=
582 1.1 christos PACKAGE_BUGREPORT=
583 1.1.1.2 christos PACKAGE_URL=
584 1.1 christos
585 1.1 christos ac_unique_file="pcap.c"
586 1.1 christos # Factoring default headers for most tests.
587 1.1 christos ac_includes_default="\
588 1.1 christos #include <stdio.h>
589 1.1 christos #ifdef HAVE_SYS_TYPES_H
590 1.1 christos # include <sys/types.h>
591 1.1 christos #endif
592 1.1 christos #ifdef HAVE_SYS_STAT_H
593 1.1 christos # include <sys/stat.h>
594 1.1 christos #endif
595 1.1 christos #ifdef STDC_HEADERS
596 1.1 christos # include <stdlib.h>
597 1.1 christos # include <stddef.h>
598 1.1 christos #else
599 1.1 christos # ifdef HAVE_STDLIB_H
600 1.1 christos # include <stdlib.h>
601 1.1 christos # endif
602 1.1 christos #endif
603 1.1 christos #ifdef HAVE_STRING_H
604 1.1 christos # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 1.1 christos # include <memory.h>
606 1.1 christos # endif
607 1.1 christos # include <string.h>
608 1.1 christos #endif
609 1.1 christos #ifdef HAVE_STRINGS_H
610 1.1 christos # include <strings.h>
611 1.1 christos #endif
612 1.1 christos #ifdef HAVE_INTTYPES_H
613 1.1 christos # include <inttypes.h>
614 1.1 christos #endif
615 1.1 christos #ifdef HAVE_STDINT_H
616 1.1 christos # include <stdint.h>
617 1.1 christos #endif
618 1.1 christos #ifdef HAVE_UNISTD_H
619 1.1 christos # include <unistd.h>
620 1.1 christos #endif"
621 1.1 christos
622 1.1.1.2 christos ac_subst_vars='LTLIBOBJS
623 1.1 christos INSTALL_DATA
624 1.1.1.2 christos INSTALL_SCRIPT
625 1.1.1.2 christos INSTALL_PROGRAM
626 1.1.1.5 christos PCAP_SUPPORT_PACKET_RING
627 1.1.1.3 christos DBUS_SRC
628 1.1.1.3 christos PCAP_SUPPORT_DBUS
629 1.1.1.3 christos PKGCONFIG
630 1.1.1.4 christos BT_MONITOR_SRC
631 1.1.1.2 christos BT_SRC
632 1.1.1.2 christos PCAP_SUPPORT_BT
633 1.1.1.2 christos NETFILTER_SRC
634 1.1.1.2 christos PCAP_SUPPORT_NETFILTER
635 1.1.1.2 christos USB_SRC
636 1.1.1.2 christos PCAP_SUPPORT_USB
637 1.1.1.2 christos MAN_MISC_INFO
638 1.1.1.2 christos MAN_FILE_FORMATS
639 1.1.1.2 christos DYEXT
640 1.1.1.2 christos SSRC
641 1.1.1.2 christos ADDLARCHIVEOBJS
642 1.1.1.2 christos ADDLOBJS
643 1.1.1.5.2.1 pgoyette V_YACC
644 1.1.1.2 christos V_RPATH_OPT
645 1.1.1.2 christos V_SONAME_OPT
646 1.1.1.2 christos V_SHLIB_OPT
647 1.1.1.2 christos V_SHLIB_CMD
648 1.1.1.2 christos V_PCAP
649 1.1.1.5.2.1 pgoyette V_LEX
650 1.1.1.2 christos V_INCLS
651 1.1.1.2 christos V_FINDALLDEVS
652 1.1.1.2 christos V_DEFS
653 1.1.1.2 christos V_CCOPT
654 1.1.1.3 christos MKDEP
655 1.1.1.3 christos DEPENDENCY_CFLAG
656 1.1.1.3 christos LN_S
657 1.1.1.2 christos AR
658 1.1.1.2 christos RANLIB
659 1.1.1.5.2.1 pgoyette YFLAGS
660 1.1.1.5.2.1 pgoyette YACC
661 1.1.1.5.2.1 pgoyette LEXLIB
662 1.1.1.5.2.1 pgoyette LEX_OUTPUT_ROOT
663 1.1.1.5.2.1 pgoyette LEX
664 1.1.1.2 christos HAVE_LINUX_TPACKET_AUXDATA
665 1.1.1.5.2.1 pgoyette VALGRINDTEST
666 1.1.1.2 christos LIBOBJS
667 1.1.1.2 christos EGREP
668 1.1.1.2 christos GREP
669 1.1.1.2 christos CPP
670 1.1.1.2 christos OBJEXT
671 1.1.1.2 christos EXEEXT
672 1.1.1.2 christos ac_ct_CC
673 1.1.1.2 christos CPPFLAGS
674 1.1.1.2 christos LDFLAGS
675 1.1.1.2 christos CFLAGS
676 1.1.1.2 christos CC
677 1.1.1.2 christos SHLICC2
678 1.1.1.2 christos target_os
679 1.1.1.2 christos target_vendor
680 1.1.1.2 christos target_cpu
681 1.1.1.2 christos target
682 1.1.1.2 christos host_os
683 1.1.1.2 christos host_vendor
684 1.1.1.2 christos host_cpu
685 1.1.1.2 christos host
686 1.1.1.2 christos build_os
687 1.1.1.2 christos build_vendor
688 1.1.1.2 christos build_cpu
689 1.1.1.2 christos build
690 1.1.1.2 christos target_alias
691 1.1.1.2 christos host_alias
692 1.1.1.2 christos build_alias
693 1.1.1.2 christos LIBS
694 1.1.1.2 christos ECHO_T
695 1.1.1.2 christos ECHO_N
696 1.1.1.2 christos ECHO_C
697 1.1.1.2 christos DEFS
698 1.1.1.2 christos mandir
699 1.1.1.2 christos localedir
700 1.1.1.2 christos libdir
701 1.1.1.2 christos psdir
702 1.1.1.2 christos pdfdir
703 1.1.1.2 christos dvidir
704 1.1.1.2 christos htmldir
705 1.1.1.2 christos infodir
706 1.1.1.2 christos docdir
707 1.1.1.2 christos oldincludedir
708 1.1.1.2 christos includedir
709 1.1.1.2 christos localstatedir
710 1.1.1.2 christos sharedstatedir
711 1.1.1.2 christos sysconfdir
712 1.1.1.2 christos datadir
713 1.1.1.2 christos datarootdir
714 1.1.1.2 christos libexecdir
715 1.1.1.2 christos sbindir
716 1.1.1.2 christos bindir
717 1.1.1.2 christos program_transform_name
718 1.1.1.2 christos prefix
719 1.1.1.2 christos exec_prefix
720 1.1.1.2 christos PACKAGE_URL
721 1.1.1.2 christos PACKAGE_BUGREPORT
722 1.1.1.2 christos PACKAGE_STRING
723 1.1.1.2 christos PACKAGE_VERSION
724 1.1.1.2 christos PACKAGE_TARNAME
725 1.1.1.2 christos PACKAGE_NAME
726 1.1.1.2 christos PATH_SEPARATOR
727 1.1.1.2 christos SHELL'
728 1.1 christos ac_subst_files=''
729 1.1.1.2 christos ac_user_opts='
730 1.1.1.2 christos enable_option_checking
731 1.1.1.2 christos with_gcc
732 1.1.1.2 christos enable_largefile
733 1.1.1.2 christos enable_protochain
734 1.1.1.2 christos with_sita
735 1.1.1.2 christos with_pcap
736 1.1.1.2 christos with_libnl
737 1.1.1.2 christos enable_ipv6
738 1.1.1.2 christos enable_optimizer_dbg
739 1.1.1.2 christos enable_yydebug
740 1.1.1.2 christos with_dag
741 1.1.1.2 christos with_dag_includes
742 1.1.1.2 christos with_dag_libraries
743 1.1.1.2 christos with_septel
744 1.1.1.2 christos with_snf
745 1.1.1.2 christos with_snf_includes
746 1.1.1.2 christos with_snf_libraries
747 1.1.1.5.2.1 pgoyette with_turbocap
748 1.1.1.2 christos enable_universal
749 1.1.1.3 christos enable_shared
750 1.1.1.5 christos enable_usb
751 1.1.1.2 christos enable_bluetooth
752 1.1.1.3 christos enable_dbus
753 1.1.1.5 christos enable_packet_ring
754 1.1.1.2 christos '
755 1.1 christos ac_precious_vars='build_alias
756 1.1 christos host_alias
757 1.1 christos target_alias
758 1.1 christos CC
759 1.1 christos CFLAGS
760 1.1 christos LDFLAGS
761 1.1 christos LIBS
762 1.1 christos CPPFLAGS
763 1.1.1.5.2.1 pgoyette CPP
764 1.1.1.5.2.1 pgoyette YACC
765 1.1.1.5.2.1 pgoyette YFLAGS'
766 1.1 christos
767 1.1 christos
768 1.1 christos # Initialize some variables set by options.
769 1.1 christos ac_init_help=
770 1.1 christos ac_init_version=false
771 1.1.1.2 christos ac_unrecognized_opts=
772 1.1.1.2 christos ac_unrecognized_sep=
773 1.1 christos # The variables have the same names as the options, with
774 1.1 christos # dashes changed to underlines.
775 1.1 christos cache_file=/dev/null
776 1.1 christos exec_prefix=NONE
777 1.1 christos no_create=
778 1.1 christos no_recursion=
779 1.1 christos prefix=NONE
780 1.1 christos program_prefix=NONE
781 1.1 christos program_suffix=NONE
782 1.1 christos program_transform_name=s,x,x,
783 1.1 christos silent=
784 1.1 christos site=
785 1.1 christos srcdir=
786 1.1 christos verbose=
787 1.1 christos x_includes=NONE
788 1.1 christos x_libraries=NONE
789 1.1 christos
790 1.1 christos # Installation directory options.
791 1.1 christos # These are left unexpanded so users can "make install exec_prefix=/foo"
792 1.1 christos # and all the variables that are supposed to be based on exec_prefix
793 1.1 christos # by default will actually change.
794 1.1 christos # Use braces instead of parens because sh, perl, etc. also accept them.
795 1.1 christos # (The list follows the same order as the GNU Coding Standards.)
796 1.1 christos bindir='${exec_prefix}/bin'
797 1.1 christos sbindir='${exec_prefix}/sbin'
798 1.1 christos libexecdir='${exec_prefix}/libexec'
799 1.1 christos datarootdir='${prefix}/share'
800 1.1 christos datadir='${datarootdir}'
801 1.1 christos sysconfdir='${prefix}/etc'
802 1.1 christos sharedstatedir='${prefix}/com'
803 1.1 christos localstatedir='${prefix}/var'
804 1.1 christos includedir='${prefix}/include'
805 1.1 christos oldincludedir='/usr/include'
806 1.1 christos docdir='${datarootdir}/doc/${PACKAGE}'
807 1.1 christos infodir='${datarootdir}/info'
808 1.1 christos htmldir='${docdir}'
809 1.1 christos dvidir='${docdir}'
810 1.1 christos pdfdir='${docdir}'
811 1.1 christos psdir='${docdir}'
812 1.1 christos libdir='${exec_prefix}/lib'
813 1.1 christos localedir='${datarootdir}/locale'
814 1.1 christos mandir='${datarootdir}/man'
815 1.1 christos
816 1.1 christos ac_prev=
817 1.1 christos ac_dashdash=
818 1.1 christos for ac_option
819 1.1 christos do
820 1.1 christos # If the previous option needs an argument, assign it.
821 1.1 christos if test -n "$ac_prev"; then
822 1.1 christos eval $ac_prev=\$ac_option
823 1.1 christos ac_prev=
824 1.1 christos continue
825 1.1 christos fi
826 1.1 christos
827 1.1 christos case $ac_option in
828 1.1.1.2 christos *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
829 1.1.1.2 christos *=) ac_optarg= ;;
830 1.1.1.2 christos *) ac_optarg=yes ;;
831 1.1 christos esac
832 1.1 christos
833 1.1 christos # Accept the important Cygnus configure options, so we can diagnose typos.
834 1.1 christos
835 1.1 christos case $ac_dashdash$ac_option in
836 1.1 christos --)
837 1.1 christos ac_dashdash=yes ;;
838 1.1 christos
839 1.1 christos -bindir | --bindir | --bindi | --bind | --bin | --bi)
840 1.1 christos ac_prev=bindir ;;
841 1.1 christos -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
842 1.1 christos bindir=$ac_optarg ;;
843 1.1 christos
844 1.1 christos -build | --build | --buil | --bui | --bu)
845 1.1 christos ac_prev=build_alias ;;
846 1.1 christos -build=* | --build=* | --buil=* | --bui=* | --bu=*)
847 1.1 christos build_alias=$ac_optarg ;;
848 1.1 christos
849 1.1 christos -cache-file | --cache-file | --cache-fil | --cache-fi \
850 1.1 christos | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
851 1.1 christos ac_prev=cache_file ;;
852 1.1 christos -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
853 1.1 christos | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
854 1.1 christos cache_file=$ac_optarg ;;
855 1.1 christos
856 1.1 christos --config-cache | -C)
857 1.1 christos cache_file=config.cache ;;
858 1.1 christos
859 1.1 christos -datadir | --datadir | --datadi | --datad)
860 1.1 christos ac_prev=datadir ;;
861 1.1 christos -datadir=* | --datadir=* | --datadi=* | --datad=*)
862 1.1 christos datadir=$ac_optarg ;;
863 1.1 christos
864 1.1 christos -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
865 1.1 christos | --dataroo | --dataro | --datar)
866 1.1 christos ac_prev=datarootdir ;;
867 1.1 christos -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
868 1.1 christos | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
869 1.1 christos datarootdir=$ac_optarg ;;
870 1.1 christos
871 1.1 christos -disable-* | --disable-*)
872 1.1.1.2 christos ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
873 1.1 christos # Reject names that are not valid shell variable names.
874 1.1.1.2 christos expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
875 1.1.1.2 christos as_fn_error $? "invalid feature name: $ac_useropt"
876 1.1.1.2 christos ac_useropt_orig=$ac_useropt
877 1.1.1.2 christos ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
878 1.1.1.2 christos case $ac_user_opts in
879 1.1.1.2 christos *"
880 1.1.1.2 christos "enable_$ac_useropt"
881 1.1.1.2 christos "*) ;;
882 1.1.1.2 christos *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
883 1.1.1.2 christos ac_unrecognized_sep=', ';;
884 1.1.1.2 christos esac
885 1.1.1.2 christos eval enable_$ac_useropt=no ;;
886 1.1 christos
887 1.1 christos -docdir | --docdir | --docdi | --doc | --do)
888 1.1 christos ac_prev=docdir ;;
889 1.1 christos -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
890 1.1 christos docdir=$ac_optarg ;;
891 1.1 christos
892 1.1 christos -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
893 1.1 christos ac_prev=dvidir ;;
894 1.1 christos -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
895 1.1 christos dvidir=$ac_optarg ;;
896 1.1 christos
897 1.1 christos -enable-* | --enable-*)
898 1.1.1.2 christos ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
899 1.1 christos # Reject names that are not valid shell variable names.
900 1.1.1.2 christos expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901 1.1.1.2 christos as_fn_error $? "invalid feature name: $ac_useropt"
902 1.1.1.2 christos ac_useropt_orig=$ac_useropt
903 1.1.1.2 christos ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904 1.1.1.2 christos case $ac_user_opts in
905 1.1.1.2 christos *"
906 1.1.1.2 christos "enable_$ac_useropt"
907 1.1.1.2 christos "*) ;;
908 1.1.1.2 christos *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
909 1.1.1.2 christos ac_unrecognized_sep=', ';;
910 1.1.1.2 christos esac
911 1.1.1.2 christos eval enable_$ac_useropt=\$ac_optarg ;;
912 1.1 christos
913 1.1 christos -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
914 1.1 christos | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
915 1.1 christos | --exec | --exe | --ex)
916 1.1 christos ac_prev=exec_prefix ;;
917 1.1 christos -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
918 1.1 christos | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
919 1.1 christos | --exec=* | --exe=* | --ex=*)
920 1.1 christos exec_prefix=$ac_optarg ;;
921 1.1 christos
922 1.1 christos -gas | --gas | --ga | --g)
923 1.1 christos # Obsolete; use --with-gas.
924 1.1 christos with_gas=yes ;;
925 1.1 christos
926 1.1 christos -help | --help | --hel | --he | -h)
927 1.1 christos ac_init_help=long ;;
928 1.1 christos -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
929 1.1 christos ac_init_help=recursive ;;
930 1.1 christos -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
931 1.1 christos ac_init_help=short ;;
932 1.1 christos
933 1.1 christos -host | --host | --hos | --ho)
934 1.1 christos ac_prev=host_alias ;;
935 1.1 christos -host=* | --host=* | --hos=* | --ho=*)
936 1.1 christos host_alias=$ac_optarg ;;
937 1.1 christos
938 1.1 christos -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
939 1.1 christos ac_prev=htmldir ;;
940 1.1 christos -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
941 1.1 christos | --ht=*)
942 1.1 christos htmldir=$ac_optarg ;;
943 1.1 christos
944 1.1 christos -includedir | --includedir | --includedi | --included | --include \
945 1.1 christos | --includ | --inclu | --incl | --inc)
946 1.1 christos ac_prev=includedir ;;
947 1.1 christos -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
948 1.1 christos | --includ=* | --inclu=* | --incl=* | --inc=*)
949 1.1 christos includedir=$ac_optarg ;;
950 1.1 christos
951 1.1 christos -infodir | --infodir | --infodi | --infod | --info | --inf)
952 1.1 christos ac_prev=infodir ;;
953 1.1 christos -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
954 1.1 christos infodir=$ac_optarg ;;
955 1.1 christos
956 1.1 christos -libdir | --libdir | --libdi | --libd)
957 1.1 christos ac_prev=libdir ;;
958 1.1 christos -libdir=* | --libdir=* | --libdi=* | --libd=*)
959 1.1 christos libdir=$ac_optarg ;;
960 1.1 christos
961 1.1 christos -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
962 1.1 christos | --libexe | --libex | --libe)
963 1.1 christos ac_prev=libexecdir ;;
964 1.1 christos -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
965 1.1 christos | --libexe=* | --libex=* | --libe=*)
966 1.1 christos libexecdir=$ac_optarg ;;
967 1.1 christos
968 1.1 christos -localedir | --localedir | --localedi | --localed | --locale)
969 1.1 christos ac_prev=localedir ;;
970 1.1 christos -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
971 1.1 christos localedir=$ac_optarg ;;
972 1.1 christos
973 1.1 christos -localstatedir | --localstatedir | --localstatedi | --localstated \
974 1.1 christos | --localstate | --localstat | --localsta | --localst | --locals)
975 1.1 christos ac_prev=localstatedir ;;
976 1.1 christos -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
977 1.1 christos | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
978 1.1 christos localstatedir=$ac_optarg ;;
979 1.1 christos
980 1.1 christos -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
981 1.1 christos ac_prev=mandir ;;
982 1.1 christos -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
983 1.1 christos mandir=$ac_optarg ;;
984 1.1 christos
985 1.1 christos -nfp | --nfp | --nf)
986 1.1 christos # Obsolete; use --without-fp.
987 1.1 christos with_fp=no ;;
988 1.1 christos
989 1.1 christos -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990 1.1 christos | --no-cr | --no-c | -n)
991 1.1 christos no_create=yes ;;
992 1.1 christos
993 1.1 christos -no-recursion | --no-recursion | --no-recursio | --no-recursi \
994 1.1 christos | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
995 1.1 christos no_recursion=yes ;;
996 1.1 christos
997 1.1 christos -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
998 1.1 christos | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
999 1.1 christos | --oldin | --oldi | --old | --ol | --o)
1000 1.1 christos ac_prev=oldincludedir ;;
1001 1.1 christos -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1002 1.1 christos | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1003 1.1 christos | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1004 1.1 christos oldincludedir=$ac_optarg ;;
1005 1.1 christos
1006 1.1 christos -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1007 1.1 christos ac_prev=prefix ;;
1008 1.1 christos -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1009 1.1 christos prefix=$ac_optarg ;;
1010 1.1 christos
1011 1.1 christos -program-prefix | --program-prefix | --program-prefi | --program-pref \
1012 1.1 christos | --program-pre | --program-pr | --program-p)
1013 1.1 christos ac_prev=program_prefix ;;
1014 1.1 christos -program-prefix=* | --program-prefix=* | --program-prefi=* \
1015 1.1 christos | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1016 1.1 christos program_prefix=$ac_optarg ;;
1017 1.1 christos
1018 1.1 christos -program-suffix | --program-suffix | --program-suffi | --program-suff \
1019 1.1 christos | --program-suf | --program-su | --program-s)
1020 1.1 christos ac_prev=program_suffix ;;
1021 1.1 christos -program-suffix=* | --program-suffix=* | --program-suffi=* \
1022 1.1 christos | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1023 1.1 christos program_suffix=$ac_optarg ;;
1024 1.1 christos
1025 1.1 christos -program-transform-name | --program-transform-name \
1026 1.1 christos | --program-transform-nam | --program-transform-na \
1027 1.1 christos | --program-transform-n | --program-transform- \
1028 1.1 christos | --program-transform | --program-transfor \
1029 1.1 christos | --program-transfo | --program-transf \
1030 1.1 christos | --program-trans | --program-tran \
1031 1.1 christos | --progr-tra | --program-tr | --program-t)
1032 1.1 christos ac_prev=program_transform_name ;;
1033 1.1 christos -program-transform-name=* | --program-transform-name=* \
1034 1.1 christos | --program-transform-nam=* | --program-transform-na=* \
1035 1.1 christos | --program-transform-n=* | --program-transform-=* \
1036 1.1 christos | --program-transform=* | --program-transfor=* \
1037 1.1 christos | --program-transfo=* | --program-transf=* \
1038 1.1 christos | --program-trans=* | --program-tran=* \
1039 1.1 christos | --progr-tra=* | --program-tr=* | --program-t=*)
1040 1.1 christos program_transform_name=$ac_optarg ;;
1041 1.1 christos
1042 1.1 christos -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1043 1.1 christos ac_prev=pdfdir ;;
1044 1.1 christos -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1045 1.1 christos pdfdir=$ac_optarg ;;
1046 1.1 christos
1047 1.1 christos -psdir | --psdir | --psdi | --psd | --ps)
1048 1.1 christos ac_prev=psdir ;;
1049 1.1 christos -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1050 1.1 christos psdir=$ac_optarg ;;
1051 1.1 christos
1052 1.1 christos -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053 1.1 christos | -silent | --silent | --silen | --sile | --sil)
1054 1.1 christos silent=yes ;;
1055 1.1 christos
1056 1.1 christos -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1057 1.1 christos ac_prev=sbindir ;;
1058 1.1 christos -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1059 1.1 christos | --sbi=* | --sb=*)
1060 1.1 christos sbindir=$ac_optarg ;;
1061 1.1 christos
1062 1.1 christos -sharedstatedir | --sharedstatedir | --sharedstatedi \
1063 1.1 christos | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1064 1.1 christos | --sharedst | --shareds | --shared | --share | --shar \
1065 1.1 christos | --sha | --sh)
1066 1.1 christos ac_prev=sharedstatedir ;;
1067 1.1 christos -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1068 1.1 christos | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1069 1.1 christos | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1070 1.1 christos | --sha=* | --sh=*)
1071 1.1 christos sharedstatedir=$ac_optarg ;;
1072 1.1 christos
1073 1.1 christos -site | --site | --sit)
1074 1.1 christos ac_prev=site ;;
1075 1.1 christos -site=* | --site=* | --sit=*)
1076 1.1 christos site=$ac_optarg ;;
1077 1.1 christos
1078 1.1 christos -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1079 1.1 christos ac_prev=srcdir ;;
1080 1.1 christos -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1081 1.1 christos srcdir=$ac_optarg ;;
1082 1.1 christos
1083 1.1 christos -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1084 1.1 christos | --syscon | --sysco | --sysc | --sys | --sy)
1085 1.1 christos ac_prev=sysconfdir ;;
1086 1.1 christos -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1087 1.1 christos | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1088 1.1 christos sysconfdir=$ac_optarg ;;
1089 1.1 christos
1090 1.1 christos -target | --target | --targe | --targ | --tar | --ta | --t)
1091 1.1 christos ac_prev=target_alias ;;
1092 1.1 christos -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1093 1.1 christos target_alias=$ac_optarg ;;
1094 1.1 christos
1095 1.1 christos -v | -verbose | --verbose | --verbos | --verbo | --verb)
1096 1.1 christos verbose=yes ;;
1097 1.1 christos
1098 1.1 christos -version | --version | --versio | --versi | --vers | -V)
1099 1.1 christos ac_init_version=: ;;
1100 1.1 christos
1101 1.1 christos -with-* | --with-*)
1102 1.1.1.2 christos ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1103 1.1 christos # Reject names that are not valid shell variable names.
1104 1.1.1.2 christos expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 1.1.1.2 christos as_fn_error $? "invalid package name: $ac_useropt"
1106 1.1.1.2 christos ac_useropt_orig=$ac_useropt
1107 1.1.1.2 christos ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 1.1.1.2 christos case $ac_user_opts in
1109 1.1.1.2 christos *"
1110 1.1.1.2 christos "with_$ac_useropt"
1111 1.1.1.2 christos "*) ;;
1112 1.1.1.2 christos *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1113 1.1.1.2 christos ac_unrecognized_sep=', ';;
1114 1.1.1.2 christos esac
1115 1.1.1.2 christos eval with_$ac_useropt=\$ac_optarg ;;
1116 1.1 christos
1117 1.1 christos -without-* | --without-*)
1118 1.1.1.2 christos ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119 1.1 christos # Reject names that are not valid shell variable names.
1120 1.1.1.2 christos expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 1.1.1.2 christos as_fn_error $? "invalid package name: $ac_useropt"
1122 1.1.1.2 christos ac_useropt_orig=$ac_useropt
1123 1.1.1.2 christos ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 1.1.1.2 christos case $ac_user_opts in
1125 1.1.1.2 christos *"
1126 1.1.1.2 christos "with_$ac_useropt"
1127 1.1.1.2 christos "*) ;;
1128 1.1.1.2 christos *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1129 1.1.1.2 christos ac_unrecognized_sep=', ';;
1130 1.1.1.2 christos esac
1131 1.1.1.2 christos eval with_$ac_useropt=no ;;
1132 1.1 christos
1133 1.1 christos --x)
1134 1.1 christos # Obsolete; use --with-x.
1135 1.1 christos with_x=yes ;;
1136 1.1 christos
1137 1.1 christos -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1138 1.1 christos | --x-incl | --x-inc | --x-in | --x-i)
1139 1.1 christos ac_prev=x_includes ;;
1140 1.1 christos -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1141 1.1 christos | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1142 1.1 christos x_includes=$ac_optarg ;;
1143 1.1 christos
1144 1.1 christos -x-libraries | --x-libraries | --x-librarie | --x-librari \
1145 1.1 christos | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1146 1.1 christos ac_prev=x_libraries ;;
1147 1.1 christos -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1148 1.1 christos | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1149 1.1 christos x_libraries=$ac_optarg ;;
1150 1.1 christos
1151 1.1.1.2 christos -*) as_fn_error $? "unrecognized option: \`$ac_option'
1152 1.1.1.2 christos Try \`$0 --help' for more information"
1153 1.1 christos ;;
1154 1.1 christos
1155 1.1 christos *=*)
1156 1.1 christos ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1157 1.1 christos # Reject names that are not valid shell variable names.
1158 1.1.1.2 christos case $ac_envvar in #(
1159 1.1.1.2 christos '' | [0-9]* | *[!_$as_cr_alnum]* )
1160 1.1.1.2 christos as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1161 1.1.1.2 christos esac
1162 1.1 christos eval $ac_envvar=\$ac_optarg
1163 1.1 christos export $ac_envvar ;;
1164 1.1 christos
1165 1.1 christos *)
1166 1.1 christos # FIXME: should be removed in autoconf 3.0.
1167 1.1.1.2 christos $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1168 1.1 christos expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1169 1.1.1.2 christos $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1170 1.1.1.3 christos : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1171 1.1 christos ;;
1172 1.1 christos
1173 1.1 christos esac
1174 1.1 christos done
1175 1.1 christos
1176 1.1 christos if test -n "$ac_prev"; then
1177 1.1 christos ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1178 1.1.1.2 christos as_fn_error $? "missing argument to $ac_option"
1179 1.1.1.2 christos fi
1180 1.1.1.2 christos
1181 1.1.1.2 christos if test -n "$ac_unrecognized_opts"; then
1182 1.1.1.2 christos case $enable_option_checking in
1183 1.1.1.2 christos no) ;;
1184 1.1.1.2 christos fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1185 1.1.1.2 christos *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1186 1.1.1.2 christos esac
1187 1.1 christos fi
1188 1.1 christos
1189 1.1.1.2 christos # Check all directory arguments for consistency.
1190 1.1 christos for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1191 1.1 christos datadir sysconfdir sharedstatedir localstatedir includedir \
1192 1.1 christos oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1193 1.1 christos libdir localedir mandir
1194 1.1 christos do
1195 1.1 christos eval ac_val=\$$ac_var
1196 1.1.1.2 christos # Remove trailing slashes.
1197 1.1.1.2 christos case $ac_val in
1198 1.1.1.2 christos */ )
1199 1.1.1.2 christos ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1200 1.1.1.2 christos eval $ac_var=\$ac_val;;
1201 1.1.1.2 christos esac
1202 1.1.1.2 christos # Be sure to have absolute directory names.
1203 1.1 christos case $ac_val in
1204 1.1 christos [\\/$]* | ?:[\\/]* ) continue;;
1205 1.1 christos NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1206 1.1 christos esac
1207 1.1.1.2 christos as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1208 1.1 christos done
1209 1.1 christos
1210 1.1 christos # There might be people who depend on the old broken behavior: `$host'
1211 1.1 christos # used to hold the argument of --host etc.
1212 1.1 christos # FIXME: To remove some day.
1213 1.1 christos build=$build_alias
1214 1.1 christos host=$host_alias
1215 1.1 christos target=$target_alias
1216 1.1 christos
1217 1.1 christos # FIXME: To remove some day.
1218 1.1 christos if test "x$host_alias" != x; then
1219 1.1 christos if test "x$build_alias" = x; then
1220 1.1 christos cross_compiling=maybe
1221 1.1 christos elif test "x$build_alias" != "x$host_alias"; then
1222 1.1 christos cross_compiling=yes
1223 1.1 christos fi
1224 1.1 christos fi
1225 1.1 christos
1226 1.1 christos ac_tool_prefix=
1227 1.1 christos test -n "$host_alias" && ac_tool_prefix=$host_alias-
1228 1.1 christos
1229 1.1 christos test "$silent" = yes && exec 6>/dev/null
1230 1.1 christos
1231 1.1 christos
1232 1.1 christos ac_pwd=`pwd` && test -n "$ac_pwd" &&
1233 1.1 christos ac_ls_di=`ls -di .` &&
1234 1.1 christos ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1235 1.1.1.2 christos as_fn_error $? "working directory cannot be determined"
1236 1.1 christos test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1237 1.1.1.2 christos as_fn_error $? "pwd does not report name of working directory"
1238 1.1 christos
1239 1.1 christos
1240 1.1 christos # Find the source files, if location was not specified.
1241 1.1 christos if test -z "$srcdir"; then
1242 1.1 christos ac_srcdir_defaulted=yes
1243 1.1 christos # Try the directory containing this script, then the parent directory.
1244 1.1.1.2 christos ac_confdir=`$as_dirname -- "$as_myself" ||
1245 1.1.1.2 christos $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1246 1.1.1.2 christos X"$as_myself" : 'X\(//\)[^/]' \| \
1247 1.1.1.2 christos X"$as_myself" : 'X\(//\)$' \| \
1248 1.1.1.2 christos X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1249 1.1.1.2 christos $as_echo X"$as_myself" |
1250 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1251 1.1 christos s//\1/
1252 1.1 christos q
1253 1.1 christos }
1254 1.1 christos /^X\(\/\/\)[^/].*/{
1255 1.1 christos s//\1/
1256 1.1 christos q
1257 1.1 christos }
1258 1.1 christos /^X\(\/\/\)$/{
1259 1.1 christos s//\1/
1260 1.1 christos q
1261 1.1 christos }
1262 1.1 christos /^X\(\/\).*/{
1263 1.1 christos s//\1/
1264 1.1 christos q
1265 1.1 christos }
1266 1.1 christos s/.*/./; q'`
1267 1.1 christos srcdir=$ac_confdir
1268 1.1 christos if test ! -r "$srcdir/$ac_unique_file"; then
1269 1.1 christos srcdir=..
1270 1.1 christos fi
1271 1.1 christos else
1272 1.1 christos ac_srcdir_defaulted=no
1273 1.1 christos fi
1274 1.1 christos if test ! -r "$srcdir/$ac_unique_file"; then
1275 1.1 christos test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1276 1.1.1.2 christos as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1277 1.1 christos fi
1278 1.1 christos ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1279 1.1 christos ac_abs_confdir=`(
1280 1.1.1.2 christos cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1281 1.1 christos pwd)`
1282 1.1 christos # When building in place, set srcdir=.
1283 1.1 christos if test "$ac_abs_confdir" = "$ac_pwd"; then
1284 1.1 christos srcdir=.
1285 1.1 christos fi
1286 1.1 christos # Remove unnecessary trailing slashes from srcdir.
1287 1.1 christos # Double slashes in file names in object file debugging info
1288 1.1 christos # mess up M-x gdb in Emacs.
1289 1.1 christos case $srcdir in
1290 1.1 christos */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1291 1.1 christos esac
1292 1.1 christos for ac_var in $ac_precious_vars; do
1293 1.1 christos eval ac_env_${ac_var}_set=\${${ac_var}+set}
1294 1.1 christos eval ac_env_${ac_var}_value=\$${ac_var}
1295 1.1 christos eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1296 1.1 christos eval ac_cv_env_${ac_var}_value=\$${ac_var}
1297 1.1 christos done
1298 1.1 christos
1299 1.1 christos #
1300 1.1 christos # Report the --help message.
1301 1.1 christos #
1302 1.1 christos if test "$ac_init_help" = "long"; then
1303 1.1 christos # Omit some internal or obsolete options to make the list less imposing.
1304 1.1 christos # This message is too long to be a string in the A/UX 3.1 sh.
1305 1.1 christos cat <<_ACEOF
1306 1.1 christos \`configure' configures this package to adapt to many kinds of systems.
1307 1.1 christos
1308 1.1 christos Usage: $0 [OPTION]... [VAR=VALUE]...
1309 1.1 christos
1310 1.1 christos To assign environment variables (e.g., CC, CFLAGS...), specify them as
1311 1.1 christos VAR=VALUE. See below for descriptions of some of the useful variables.
1312 1.1 christos
1313 1.1 christos Defaults for the options are specified in brackets.
1314 1.1 christos
1315 1.1 christos Configuration:
1316 1.1 christos -h, --help display this help and exit
1317 1.1 christos --help=short display options specific to this package
1318 1.1 christos --help=recursive display the short help of all the included packages
1319 1.1 christos -V, --version display version information and exit
1320 1.1.1.2 christos -q, --quiet, --silent do not print \`checking ...' messages
1321 1.1 christos --cache-file=FILE cache test results in FILE [disabled]
1322 1.1 christos -C, --config-cache alias for \`--cache-file=config.cache'
1323 1.1 christos -n, --no-create do not create output files
1324 1.1 christos --srcdir=DIR find the sources in DIR [configure dir or \`..']
1325 1.1 christos
1326 1.1 christos Installation directories:
1327 1.1 christos --prefix=PREFIX install architecture-independent files in PREFIX
1328 1.1.1.2 christos [$ac_default_prefix]
1329 1.1 christos --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1330 1.1.1.2 christos [PREFIX]
1331 1.1 christos
1332 1.1 christos By default, \`make install' will install all the files in
1333 1.1 christos \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1334 1.1 christos an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1335 1.1 christos for instance \`--prefix=\$HOME'.
1336 1.1 christos
1337 1.1 christos For better control, use the options below.
1338 1.1 christos
1339 1.1 christos Fine tuning of the installation directories:
1340 1.1.1.2 christos --bindir=DIR user executables [EPREFIX/bin]
1341 1.1.1.2 christos --sbindir=DIR system admin executables [EPREFIX/sbin]
1342 1.1.1.2 christos --libexecdir=DIR program executables [EPREFIX/libexec]
1343 1.1.1.2 christos --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1344 1.1.1.2 christos --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1345 1.1.1.2 christos --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1346 1.1.1.2 christos --libdir=DIR object code libraries [EPREFIX/lib]
1347 1.1.1.2 christos --includedir=DIR C header files [PREFIX/include]
1348 1.1.1.2 christos --oldincludedir=DIR C header files for non-gcc [/usr/include]
1349 1.1.1.2 christos --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1350 1.1.1.2 christos --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1351 1.1.1.2 christos --infodir=DIR info documentation [DATAROOTDIR/info]
1352 1.1.1.2 christos --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1353 1.1.1.2 christos --mandir=DIR man documentation [DATAROOTDIR/man]
1354 1.1.1.2 christos --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1355 1.1.1.2 christos --htmldir=DIR html documentation [DOCDIR]
1356 1.1.1.2 christos --dvidir=DIR dvi documentation [DOCDIR]
1357 1.1.1.2 christos --pdfdir=DIR pdf documentation [DOCDIR]
1358 1.1.1.2 christos --psdir=DIR ps documentation [DOCDIR]
1359 1.1 christos _ACEOF
1360 1.1 christos
1361 1.1 christos cat <<\_ACEOF
1362 1.1 christos
1363 1.1 christos System types:
1364 1.1 christos --build=BUILD configure for building on BUILD [guessed]
1365 1.1 christos --host=HOST cross-compile to build programs to run on HOST [BUILD]
1366 1.1 christos --target=TARGET configure for building compilers for TARGET [HOST]
1367 1.1 christos _ACEOF
1368 1.1 christos fi
1369 1.1 christos
1370 1.1 christos if test -n "$ac_init_help"; then
1371 1.1 christos
1372 1.1 christos cat <<\_ACEOF
1373 1.1 christos
1374 1.1 christos Optional Features:
1375 1.1.1.2 christos --disable-option-checking ignore unrecognized --enable/--with options
1376 1.1 christos --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1377 1.1 christos --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1378 1.1 christos --disable-largefile omit support for large files
1379 1.1 christos --disable-protochain disable \"protochain\" insn
1380 1.1 christos --enable-ipv6 build IPv6-capable version [default=yes, if
1381 1.1 christos getaddrinfo available]
1382 1.1 christos --enable-optimizer-dbg build optimizer debugging code
1383 1.1 christos --enable-yydebug build parser debugging code
1384 1.1.1.2 christos --disable-universal don't build universal on OS X
1385 1.1.1.3 christos --enable-shared build shared libraries [default=yes, if support
1386 1.1.1.3 christos available]
1387 1.1.1.5 christos --enable-usb enable nusb support [default=yes, if support
1388 1.1.1.5 christos available]
1389 1.1 christos --enable-bluetooth enable Bluetooth support [default=yes, if support
1390 1.1 christos available]
1391 1.1.1.3 christos --enable-dbus enable D-Bus capture support [default=yes, if
1392 1.1.1.3 christos support available]
1393 1.1.1.5 christos --enable-packet-ring enable Linux packet ring support [default=yes]
1394 1.1 christos
1395 1.1 christos Optional Packages:
1396 1.1 christos --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1397 1.1 christos --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1398 1.1 christos --without-gcc don't use gcc
1399 1.1 christos --with-sita include SITA support
1400 1.1 christos --with-pcap=TYPE use packet capture TYPE
1401 1.1 christos --without-libnl disable libnl support [default=yes, on Linux, if
1402 1.1 christos present]
1403 1.1.1.5.2.1 pgoyette --with-dag[=DIR] include Endace DAG support (located in directory
1404 1.1.1.5.2.1 pgoyette DIR, if supplied). [default=yes, if present]
1405 1.1.1.5.2.1 pgoyette --with-dag-includes=IDIR
1406 1.1.1.5.2.1 pgoyette Endace DAG include directory, if not DIR/include
1407 1.1.1.5.2.1 pgoyette --with-dag-libraries=LDIR
1408 1.1.1.5.2.1 pgoyette Endace DAG library directory, if not DIR/lib
1409 1.1 christos --with-septel[=DIR] include Septel support (located in directory DIR, if
1410 1.1.1.5.2.1 pgoyette supplied). [default=yes, if present]
1411 1.1.1.5.2.1 pgoyette --with-snf[=DIR] include Myricom SNF support (located in directory
1412 1.1.1.5.2.1 pgoyette DIR, if supplied). [default=yes, if present]
1413 1.1.1.5.2.1 pgoyette --with-snf-includes=IDIR
1414 1.1.1.5.2.1 pgoyette Myricom SNF include directory, if not DIR/include
1415 1.1.1.5.2.1 pgoyette --with-snf-libraries=LDIR
1416 1.1.1.5.2.1 pgoyette Myricom SNF library directory, if not DIR/lib
1417 1.1.1.5.2.1 pgoyette --with-turbocap[=DIR] include Riverbed TurboCap support (located in
1418 1.1.1.5.2.1 pgoyette directory DIR, if supplied). [default=yes, if
1419 1.1.1.5.2.1 pgoyette present]
1420 1.1 christos
1421 1.1 christos Some influential environment variables:
1422 1.1 christos CC C compiler command
1423 1.1 christos CFLAGS C compiler flags
1424 1.1 christos LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1425 1.1 christos nonstandard directory <lib dir>
1426 1.1 christos LIBS libraries to pass to the linker, e.g. -l<library>
1427 1.1.1.2 christos CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1428 1.1 christos you have headers in a nonstandard directory <include dir>
1429 1.1 christos CPP C preprocessor
1430 1.1.1.5.2.1 pgoyette YACC The `Yet Another Compiler Compiler' implementation to use.
1431 1.1.1.5.2.1 pgoyette Defaults to the first program found out of: `bison -y', `byacc',
1432 1.1.1.5.2.1 pgoyette `yacc'.
1433 1.1.1.5.2.1 pgoyette YFLAGS The list of arguments that will be passed by default to $YACC.
1434 1.1.1.5.2.1 pgoyette This script will default YFLAGS to the empty string to avoid a
1435 1.1.1.5.2.1 pgoyette default value of `-d' given by some make applications.
1436 1.1 christos
1437 1.1 christos Use these variables to override the choices made by `configure' or to help
1438 1.1 christos it to find libraries and programs with nonstandard names/locations.
1439 1.1 christos
1440 1.1.1.2 christos Report bugs to the package provider.
1441 1.1 christos _ACEOF
1442 1.1 christos ac_status=$?
1443 1.1 christos fi
1444 1.1 christos
1445 1.1 christos if test "$ac_init_help" = "recursive"; then
1446 1.1 christos # If there are subdirs, report their specific --help.
1447 1.1 christos for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1448 1.1.1.2 christos test -d "$ac_dir" ||
1449 1.1.1.2 christos { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1450 1.1.1.2 christos continue
1451 1.1 christos ac_builddir=.
1452 1.1 christos
1453 1.1 christos case "$ac_dir" in
1454 1.1 christos .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455 1.1 christos *)
1456 1.1.1.2 christos ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1457 1.1 christos # A ".." for each directory in $ac_dir_suffix.
1458 1.1.1.2 christos ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1459 1.1 christos case $ac_top_builddir_sub in
1460 1.1 christos "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461 1.1 christos *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1462 1.1 christos esac ;;
1463 1.1 christos esac
1464 1.1 christos ac_abs_top_builddir=$ac_pwd
1465 1.1 christos ac_abs_builddir=$ac_pwd$ac_dir_suffix
1466 1.1 christos # for backward compatibility:
1467 1.1 christos ac_top_builddir=$ac_top_build_prefix
1468 1.1 christos
1469 1.1 christos case $srcdir in
1470 1.1 christos .) # We are building in place.
1471 1.1 christos ac_srcdir=.
1472 1.1 christos ac_top_srcdir=$ac_top_builddir_sub
1473 1.1 christos ac_abs_top_srcdir=$ac_pwd ;;
1474 1.1 christos [\\/]* | ?:[\\/]* ) # Absolute name.
1475 1.1 christos ac_srcdir=$srcdir$ac_dir_suffix;
1476 1.1 christos ac_top_srcdir=$srcdir
1477 1.1 christos ac_abs_top_srcdir=$srcdir ;;
1478 1.1 christos *) # Relative name.
1479 1.1 christos ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1480 1.1 christos ac_top_srcdir=$ac_top_build_prefix$srcdir
1481 1.1 christos ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1482 1.1 christos esac
1483 1.1 christos ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1484 1.1 christos
1485 1.1 christos cd "$ac_dir" || { ac_status=$?; continue; }
1486 1.1 christos # Check for guested configure.
1487 1.1 christos if test -f "$ac_srcdir/configure.gnu"; then
1488 1.1 christos echo &&
1489 1.1 christos $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1490 1.1 christos elif test -f "$ac_srcdir/configure"; then
1491 1.1 christos echo &&
1492 1.1 christos $SHELL "$ac_srcdir/configure" --help=recursive
1493 1.1 christos else
1494 1.1.1.2 christos $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1495 1.1 christos fi || ac_status=$?
1496 1.1 christos cd "$ac_pwd" || { ac_status=$?; break; }
1497 1.1 christos done
1498 1.1 christos fi
1499 1.1 christos
1500 1.1 christos test -n "$ac_init_help" && exit $ac_status
1501 1.1 christos if $ac_init_version; then
1502 1.1 christos cat <<\_ACEOF
1503 1.1 christos configure
1504 1.1.1.3 christos generated by GNU Autoconf 2.69
1505 1.1 christos
1506 1.1.1.3 christos Copyright (C) 2012 Free Software Foundation, Inc.
1507 1.1 christos This configure script is free software; the Free Software Foundation
1508 1.1 christos gives unlimited permission to copy, distribute and modify it.
1509 1.1 christos _ACEOF
1510 1.1 christos exit
1511 1.1 christos fi
1512 1.1 christos
1513 1.1.1.2 christos ## ------------------------ ##
1514 1.1.1.2 christos ## Autoconf initialization. ##
1515 1.1.1.2 christos ## ------------------------ ##
1516 1.1.1.2 christos
1517 1.1.1.2 christos # ac_fn_c_try_compile LINENO
1518 1.1.1.2 christos # --------------------------
1519 1.1.1.2 christos # Try to compile conftest.$ac_ext, and return whether this succeeded.
1520 1.1.1.2 christos ac_fn_c_try_compile ()
1521 1.1.1.2 christos {
1522 1.1.1.2 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1523 1.1.1.2 christos rm -f conftest.$ac_objext
1524 1.1.1.2 christos if { { ac_try="$ac_compile"
1525 1.1.1.2 christos case "(($ac_try" in
1526 1.1.1.2 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1527 1.1.1.2 christos *) ac_try_echo=$ac_try;;
1528 1.1.1.2 christos esac
1529 1.1.1.2 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530 1.1.1.2 christos $as_echo "$ac_try_echo"; } >&5
1531 1.1.1.2 christos (eval "$ac_compile") 2>conftest.err
1532 1.1.1.2 christos ac_status=$?
1533 1.1.1.2 christos if test -s conftest.err; then
1534 1.1.1.2 christos grep -v '^ *+' conftest.err >conftest.er1
1535 1.1.1.2 christos cat conftest.er1 >&5
1536 1.1.1.2 christos mv -f conftest.er1 conftest.err
1537 1.1.1.2 christos fi
1538 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1539 1.1.1.2 christos test $ac_status = 0; } && {
1540 1.1.1.2 christos test -z "$ac_c_werror_flag" ||
1541 1.1.1.2 christos test ! -s conftest.err
1542 1.1.1.2 christos } && test -s conftest.$ac_objext; then :
1543 1.1.1.2 christos ac_retval=0
1544 1.1.1.2 christos else
1545 1.1.1.2 christos $as_echo "$as_me: failed program was:" >&5
1546 1.1.1.2 christos sed 's/^/| /' conftest.$ac_ext >&5
1547 1.1 christos
1548 1.1.1.2 christos ac_retval=1
1549 1.1.1.2 christos fi
1550 1.1.1.3 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1551 1.1.1.2 christos as_fn_set_status $ac_retval
1552 1.1 christos
1553 1.1.1.2 christos } # ac_fn_c_try_compile
1554 1.1.1.2 christos
1555 1.1.1.2 christos # ac_fn_c_try_cpp LINENO
1556 1.1.1.2 christos # ----------------------
1557 1.1.1.2 christos # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1558 1.1.1.2 christos ac_fn_c_try_cpp ()
1559 1.1 christos {
1560 1.1.1.2 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561 1.1.1.2 christos if { { ac_try="$ac_cpp conftest.$ac_ext"
1562 1.1.1.2 christos case "(($ac_try" in
1563 1.1.1.2 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564 1.1.1.2 christos *) ac_try_echo=$ac_try;;
1565 1.1.1.2 christos esac
1566 1.1.1.2 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567 1.1.1.2 christos $as_echo "$ac_try_echo"; } >&5
1568 1.1.1.2 christos (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1569 1.1.1.2 christos ac_status=$?
1570 1.1.1.2 christos if test -s conftest.err; then
1571 1.1.1.2 christos grep -v '^ *+' conftest.err >conftest.er1
1572 1.1.1.2 christos cat conftest.er1 >&5
1573 1.1.1.2 christos mv -f conftest.er1 conftest.err
1574 1.1.1.2 christos fi
1575 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 1.1.1.2 christos test $ac_status = 0; } > conftest.i && {
1577 1.1.1.2 christos test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1578 1.1.1.2 christos test ! -s conftest.err
1579 1.1.1.2 christos }; then :
1580 1.1.1.2 christos ac_retval=0
1581 1.1.1.2 christos else
1582 1.1.1.2 christos $as_echo "$as_me: failed program was:" >&5
1583 1.1.1.2 christos sed 's/^/| /' conftest.$ac_ext >&5
1584 1.1 christos
1585 1.1.1.2 christos ac_retval=1
1586 1.1.1.2 christos fi
1587 1.1.1.3 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588 1.1.1.2 christos as_fn_set_status $ac_retval
1589 1.1 christos
1590 1.1.1.2 christos } # ac_fn_c_try_cpp
1591 1.1 christos
1592 1.1.1.2 christos # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1593 1.1.1.2 christos # -------------------------------------------------------
1594 1.1.1.2 christos # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1595 1.1.1.2 christos # the include files in INCLUDES and setting the cache variable VAR
1596 1.1.1.2 christos # accordingly.
1597 1.1.1.2 christos ac_fn_c_check_header_mongrel ()
1598 1.1.1.2 christos {
1599 1.1.1.2 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 1.1.1.3 christos if eval \${$3+:} false; then :
1601 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1602 1.1.1.2 christos $as_echo_n "checking for $2... " >&6; }
1603 1.1.1.3 christos if eval \${$3+:} false; then :
1604 1.1.1.2 christos $as_echo_n "(cached) " >&6
1605 1.1.1.2 christos fi
1606 1.1.1.2 christos eval ac_res=\$$3
1607 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1608 1.1.1.2 christos $as_echo "$ac_res" >&6; }
1609 1.1.1.2 christos else
1610 1.1.1.2 christos # Is the header compilable?
1611 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1612 1.1.1.2 christos $as_echo_n "checking $2 usability... " >&6; }
1613 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1614 1.1.1.2 christos /* end confdefs.h. */
1615 1.1.1.2 christos $4
1616 1.1.1.2 christos #include <$2>
1617 1.1.1.2 christos _ACEOF
1618 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
1619 1.1.1.2 christos ac_header_compiler=yes
1620 1.1.1.2 christos else
1621 1.1.1.2 christos ac_header_compiler=no
1622 1.1.1.2 christos fi
1623 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1624 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1625 1.1.1.2 christos $as_echo "$ac_header_compiler" >&6; }
1626 1.1.1.2 christos
1627 1.1.1.2 christos # Is the header present?
1628 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1629 1.1.1.2 christos $as_echo_n "checking $2 presence... " >&6; }
1630 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1631 1.1.1.2 christos /* end confdefs.h. */
1632 1.1.1.2 christos #include <$2>
1633 1.1.1.2 christos _ACEOF
1634 1.1.1.2 christos if ac_fn_c_try_cpp "$LINENO"; then :
1635 1.1.1.2 christos ac_header_preproc=yes
1636 1.1.1.2 christos else
1637 1.1.1.2 christos ac_header_preproc=no
1638 1.1.1.2 christos fi
1639 1.1.1.2 christos rm -f conftest.err conftest.i conftest.$ac_ext
1640 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1641 1.1.1.2 christos $as_echo "$ac_header_preproc" >&6; }
1642 1.1.1.2 christos
1643 1.1.1.2 christos # So? What about this header?
1644 1.1.1.2 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1645 1.1.1.2 christos yes:no: )
1646 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1647 1.1.1.2 christos $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1648 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1649 1.1.1.2 christos $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1650 1.1.1.2 christos ;;
1651 1.1.1.2 christos no:yes:* )
1652 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1653 1.1.1.2 christos $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1654 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1655 1.1.1.2 christos $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1656 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1657 1.1.1.2 christos $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1658 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1659 1.1.1.2 christos $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1660 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1661 1.1.1.2 christos $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1662 1.1.1.2 christos ;;
1663 1.1.1.2 christos esac
1664 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1665 1.1.1.2 christos $as_echo_n "checking for $2... " >&6; }
1666 1.1.1.3 christos if eval \${$3+:} false; then :
1667 1.1.1.2 christos $as_echo_n "(cached) " >&6
1668 1.1.1.2 christos else
1669 1.1.1.2 christos eval "$3=\$ac_header_compiler"
1670 1.1.1.2 christos fi
1671 1.1.1.2 christos eval ac_res=\$$3
1672 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1673 1.1.1.2 christos $as_echo "$ac_res" >&6; }
1674 1.1.1.2 christos fi
1675 1.1.1.3 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676 1.1.1.2 christos
1677 1.1.1.2 christos } # ac_fn_c_check_header_mongrel
1678 1.1.1.2 christos
1679 1.1.1.2 christos # ac_fn_c_try_run LINENO
1680 1.1.1.2 christos # ----------------------
1681 1.1.1.2 christos # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1682 1.1.1.2 christos # that executables *can* be run.
1683 1.1.1.2 christos ac_fn_c_try_run ()
1684 1.1.1.2 christos {
1685 1.1.1.2 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 1.1.1.2 christos if { { ac_try="$ac_link"
1687 1.1.1.2 christos case "(($ac_try" in
1688 1.1.1.2 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 1.1.1.2 christos *) ac_try_echo=$ac_try;;
1690 1.1.1.2 christos esac
1691 1.1.1.2 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 1.1.1.2 christos $as_echo "$ac_try_echo"; } >&5
1693 1.1.1.2 christos (eval "$ac_link") 2>&5
1694 1.1.1.2 christos ac_status=$?
1695 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 1.1.1.2 christos test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1697 1.1.1.2 christos { { case "(($ac_try" in
1698 1.1.1.2 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 1.1.1.2 christos *) ac_try_echo=$ac_try;;
1700 1.1.1.2 christos esac
1701 1.1.1.2 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 1.1.1.2 christos $as_echo "$ac_try_echo"; } >&5
1703 1.1.1.2 christos (eval "$ac_try") 2>&5
1704 1.1.1.2 christos ac_status=$?
1705 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 1.1.1.2 christos test $ac_status = 0; }; }; then :
1707 1.1.1.2 christos ac_retval=0
1708 1.1.1.2 christos else
1709 1.1.1.2 christos $as_echo "$as_me: program exited with status $ac_status" >&5
1710 1.1.1.2 christos $as_echo "$as_me: failed program was:" >&5
1711 1.1.1.2 christos sed 's/^/| /' conftest.$ac_ext >&5
1712 1.1.1.2 christos
1713 1.1.1.2 christos ac_retval=$ac_status
1714 1.1.1.2 christos fi
1715 1.1.1.2 christos rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1716 1.1.1.3 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717 1.1.1.2 christos as_fn_set_status $ac_retval
1718 1.1.1.2 christos
1719 1.1.1.2 christos } # ac_fn_c_try_run
1720 1.1.1.2 christos
1721 1.1.1.2 christos # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1722 1.1.1.2 christos # -------------------------------------------------------
1723 1.1.1.2 christos # Tests whether HEADER exists and can be compiled using the include files in
1724 1.1.1.2 christos # INCLUDES, setting the cache variable VAR accordingly.
1725 1.1.1.2 christos ac_fn_c_check_header_compile ()
1726 1.1.1.2 christos {
1727 1.1.1.2 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729 1.1.1.2 christos $as_echo_n "checking for $2... " >&6; }
1730 1.1.1.3 christos if eval \${$3+:} false; then :
1731 1.1.1.2 christos $as_echo_n "(cached) " >&6
1732 1.1.1.2 christos else
1733 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734 1.1.1.2 christos /* end confdefs.h. */
1735 1.1.1.2 christos $4
1736 1.1.1.2 christos #include <$2>
1737 1.1.1.2 christos _ACEOF
1738 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
1739 1.1.1.2 christos eval "$3=yes"
1740 1.1.1.2 christos else
1741 1.1.1.2 christos eval "$3=no"
1742 1.1.1.2 christos fi
1743 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1744 1.1.1.2 christos fi
1745 1.1.1.2 christos eval ac_res=\$$3
1746 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1747 1.1.1.2 christos $as_echo "$ac_res" >&6; }
1748 1.1.1.3 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749 1.1.1.2 christos
1750 1.1.1.2 christos } # ac_fn_c_check_header_compile
1751 1.1.1.2 christos
1752 1.1.1.2 christos # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1753 1.1.1.2 christos # -------------------------------------------
1754 1.1.1.2 christos # Tests whether TYPE exists after having included INCLUDES, setting cache
1755 1.1.1.2 christos # variable VAR accordingly.
1756 1.1.1.2 christos ac_fn_c_check_type ()
1757 1.1.1.2 christos {
1758 1.1.1.2 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760 1.1.1.2 christos $as_echo_n "checking for $2... " >&6; }
1761 1.1.1.3 christos if eval \${$3+:} false; then :
1762 1.1.1.2 christos $as_echo_n "(cached) " >&6
1763 1.1.1.2 christos else
1764 1.1.1.2 christos eval "$3=no"
1765 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766 1.1.1.2 christos /* end confdefs.h. */
1767 1.1.1.2 christos $4
1768 1.1.1.2 christos int
1769 1.1.1.2 christos main ()
1770 1.1.1.2 christos {
1771 1.1.1.2 christos if (sizeof ($2))
1772 1.1.1.2 christos return 0;
1773 1.1.1.2 christos ;
1774 1.1.1.2 christos return 0;
1775 1.1.1.2 christos }
1776 1.1.1.2 christos _ACEOF
1777 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
1778 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779 1.1.1.2 christos /* end confdefs.h. */
1780 1.1.1.2 christos $4
1781 1.1.1.2 christos int
1782 1.1.1.2 christos main ()
1783 1.1.1.2 christos {
1784 1.1.1.2 christos if (sizeof (($2)))
1785 1.1.1.2 christos return 0;
1786 1.1.1.2 christos ;
1787 1.1.1.2 christos return 0;
1788 1.1.1.2 christos }
1789 1.1.1.2 christos _ACEOF
1790 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
1791 1.1.1.2 christos
1792 1.1.1.2 christos else
1793 1.1.1.2 christos eval "$3=yes"
1794 1.1.1.2 christos fi
1795 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796 1.1.1.2 christos fi
1797 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1798 1.1.1.2 christos fi
1799 1.1.1.2 christos eval ac_res=\$$3
1800 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801 1.1.1.2 christos $as_echo "$ac_res" >&6; }
1802 1.1.1.3 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803 1.1.1.2 christos
1804 1.1.1.2 christos } # ac_fn_c_check_type
1805 1.1.1.2 christos
1806 1.1.1.2 christos # ac_fn_c_try_link LINENO
1807 1.1.1.2 christos # -----------------------
1808 1.1.1.2 christos # Try to link conftest.$ac_ext, and return whether this succeeded.
1809 1.1.1.2 christos ac_fn_c_try_link ()
1810 1.1.1.2 christos {
1811 1.1.1.2 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 1.1.1.2 christos rm -f conftest.$ac_objext conftest$ac_exeext
1813 1.1.1.2 christos if { { ac_try="$ac_link"
1814 1.1.1.2 christos case "(($ac_try" in
1815 1.1.1.2 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816 1.1.1.2 christos *) ac_try_echo=$ac_try;;
1817 1.1.1.2 christos esac
1818 1.1.1.2 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 1.1.1.2 christos $as_echo "$ac_try_echo"; } >&5
1820 1.1.1.2 christos (eval "$ac_link") 2>conftest.err
1821 1.1.1.2 christos ac_status=$?
1822 1.1.1.2 christos if test -s conftest.err; then
1823 1.1.1.2 christos grep -v '^ *+' conftest.err >conftest.er1
1824 1.1.1.2 christos cat conftest.er1 >&5
1825 1.1.1.2 christos mv -f conftest.er1 conftest.err
1826 1.1.1.2 christos fi
1827 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 1.1.1.2 christos test $ac_status = 0; } && {
1829 1.1.1.2 christos test -z "$ac_c_werror_flag" ||
1830 1.1.1.2 christos test ! -s conftest.err
1831 1.1.1.2 christos } && test -s conftest$ac_exeext && {
1832 1.1.1.2 christos test "$cross_compiling" = yes ||
1833 1.1.1.3 christos test -x conftest$ac_exeext
1834 1.1.1.2 christos }; then :
1835 1.1.1.2 christos ac_retval=0
1836 1.1.1.2 christos else
1837 1.1.1.2 christos $as_echo "$as_me: failed program was:" >&5
1838 1.1.1.2 christos sed 's/^/| /' conftest.$ac_ext >&5
1839 1.1.1.2 christos
1840 1.1.1.2 christos ac_retval=1
1841 1.1.1.2 christos fi
1842 1.1.1.2 christos # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1843 1.1.1.2 christos # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1844 1.1.1.2 christos # interfere with the next link command; also delete a directory that is
1845 1.1.1.2 christos # left behind by Apple's compiler. We do this before executing the actions.
1846 1.1.1.2 christos rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1847 1.1.1.3 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848 1.1.1.2 christos as_fn_set_status $ac_retval
1849 1.1.1.2 christos
1850 1.1.1.2 christos } # ac_fn_c_try_link
1851 1.1.1.2 christos
1852 1.1.1.2 christos # ac_fn_c_check_func LINENO FUNC VAR
1853 1.1.1.2 christos # ----------------------------------
1854 1.1.1.2 christos # Tests whether FUNC exists, setting the cache variable VAR accordingly
1855 1.1.1.2 christos ac_fn_c_check_func ()
1856 1.1.1.2 christos {
1857 1.1.1.2 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 1.1.1.2 christos $as_echo_n "checking for $2... " >&6; }
1860 1.1.1.3 christos if eval \${$3+:} false; then :
1861 1.1.1.2 christos $as_echo_n "(cached) " >&6
1862 1.1.1.2 christos else
1863 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 1.1.1.2 christos /* end confdefs.h. */
1865 1.1.1.2 christos /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1866 1.1.1.2 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */
1867 1.1.1.2 christos #define $2 innocuous_$2
1868 1.1.1.2 christos
1869 1.1.1.2 christos /* System header to define __stub macros and hopefully few prototypes,
1870 1.1.1.2 christos which can conflict with char $2 (); below.
1871 1.1.1.2 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1872 1.1.1.2 christos <limits.h> exists even on freestanding compilers. */
1873 1.1.1.2 christos
1874 1.1.1.2 christos #ifdef __STDC__
1875 1.1.1.2 christos # include <limits.h>
1876 1.1.1.2 christos #else
1877 1.1.1.2 christos # include <assert.h>
1878 1.1.1.2 christos #endif
1879 1.1.1.2 christos
1880 1.1.1.2 christos #undef $2
1881 1.1.1.2 christos
1882 1.1.1.2 christos /* Override any GCC internal prototype to avoid an error.
1883 1.1.1.2 christos Use char because int might match the return type of a GCC
1884 1.1.1.2 christos builtin and then its argument prototype would still apply. */
1885 1.1.1.2 christos #ifdef __cplusplus
1886 1.1.1.2 christos extern "C"
1887 1.1.1.2 christos #endif
1888 1.1.1.2 christos char $2 ();
1889 1.1.1.2 christos /* The GNU C library defines this for functions which it implements
1890 1.1.1.2 christos to always fail with ENOSYS. Some functions are actually named
1891 1.1.1.2 christos something starting with __ and the normal name is an alias. */
1892 1.1.1.2 christos #if defined __stub_$2 || defined __stub___$2
1893 1.1.1.2 christos choke me
1894 1.1.1.2 christos #endif
1895 1.1.1.2 christos
1896 1.1.1.2 christos int
1897 1.1.1.2 christos main ()
1898 1.1.1.2 christos {
1899 1.1.1.2 christos return $2 ();
1900 1.1.1.2 christos ;
1901 1.1.1.2 christos return 0;
1902 1.1.1.2 christos }
1903 1.1.1.2 christos _ACEOF
1904 1.1.1.2 christos if ac_fn_c_try_link "$LINENO"; then :
1905 1.1.1.2 christos eval "$3=yes"
1906 1.1.1.2 christos else
1907 1.1.1.2 christos eval "$3=no"
1908 1.1.1.2 christos fi
1909 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext \
1910 1.1.1.2 christos conftest$ac_exeext conftest.$ac_ext
1911 1.1.1.2 christos fi
1912 1.1.1.2 christos eval ac_res=\$$3
1913 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 1.1.1.2 christos $as_echo "$ac_res" >&6; }
1915 1.1.1.3 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916 1.1.1.2 christos
1917 1.1.1.2 christos } # ac_fn_c_check_func
1918 1.1.1.2 christos
1919 1.1.1.2 christos # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1920 1.1.1.2 christos # ---------------------------------------------
1921 1.1.1.2 christos # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1922 1.1.1.2 christos # accordingly.
1923 1.1.1.2 christos ac_fn_c_check_decl ()
1924 1.1.1.2 christos {
1925 1.1.1.2 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 1.1.1.2 christos as_decl_name=`echo $2|sed 's/ *(.*//'`
1927 1.1.1.2 christos as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1928 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1929 1.1.1.2 christos $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1930 1.1.1.3 christos if eval \${$3+:} false; then :
1931 1.1.1.2 christos $as_echo_n "(cached) " >&6
1932 1.1.1.2 christos else
1933 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 1.1.1.2 christos /* end confdefs.h. */
1935 1.1.1.2 christos $4
1936 1.1.1.2 christos int
1937 1.1.1.2 christos main ()
1938 1.1.1.2 christos {
1939 1.1.1.2 christos #ifndef $as_decl_name
1940 1.1.1.2 christos #ifdef __cplusplus
1941 1.1.1.2 christos (void) $as_decl_use;
1942 1.1.1.2 christos #else
1943 1.1.1.2 christos (void) $as_decl_name;
1944 1.1.1.2 christos #endif
1945 1.1.1.2 christos #endif
1946 1.1.1.2 christos
1947 1.1.1.2 christos ;
1948 1.1.1.2 christos return 0;
1949 1.1.1.2 christos }
1950 1.1.1.2 christos _ACEOF
1951 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
1952 1.1.1.2 christos eval "$3=yes"
1953 1.1.1.2 christos else
1954 1.1.1.2 christos eval "$3=no"
1955 1.1.1.2 christos fi
1956 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957 1.1.1.2 christos fi
1958 1.1.1.2 christos eval ac_res=\$$3
1959 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960 1.1.1.2 christos $as_echo "$ac_res" >&6; }
1961 1.1.1.3 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962 1.1.1.2 christos
1963 1.1.1.2 christos } # ac_fn_c_check_decl
1964 1.1.1.2 christos cat >config.log <<_ACEOF
1965 1.1.1.2 christos This file contains any messages produced by compilers while
1966 1.1.1.2 christos running configure, to aid debugging if configure makes a mistake.
1967 1.1.1.2 christos
1968 1.1.1.2 christos It was created by $as_me, which was
1969 1.1.1.3 christos generated by GNU Autoconf 2.69. Invocation command line was
1970 1.1.1.2 christos
1971 1.1.1.2 christos $ $0 $@
1972 1.1.1.2 christos
1973 1.1.1.2 christos _ACEOF
1974 1.1.1.2 christos exec 5>>config.log
1975 1.1.1.2 christos {
1976 1.1.1.2 christos cat <<_ASUNAME
1977 1.1.1.2 christos ## --------- ##
1978 1.1.1.2 christos ## Platform. ##
1979 1.1.1.2 christos ## --------- ##
1980 1.1.1.2 christos
1981 1.1.1.2 christos hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1982 1.1.1.2 christos uname -m = `(uname -m) 2>/dev/null || echo unknown`
1983 1.1.1.2 christos uname -r = `(uname -r) 2>/dev/null || echo unknown`
1984 1.1.1.2 christos uname -s = `(uname -s) 2>/dev/null || echo unknown`
1985 1.1.1.2 christos uname -v = `(uname -v) 2>/dev/null || echo unknown`
1986 1.1.1.2 christos
1987 1.1.1.2 christos /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1988 1.1.1.2 christos /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1989 1.1.1.2 christos
1990 1.1.1.2 christos /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1991 1.1.1.2 christos /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1992 1.1.1.2 christos /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1993 1.1.1.2 christos /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1994 1.1.1.2 christos /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1995 1.1.1.2 christos /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1996 1.1.1.2 christos /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1997 1.1 christos
1998 1.1 christos _ASUNAME
1999 1.1 christos
2000 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001 1.1 christos for as_dir in $PATH
2002 1.1 christos do
2003 1.1 christos IFS=$as_save_IFS
2004 1.1 christos test -z "$as_dir" && as_dir=.
2005 1.1.1.2 christos $as_echo "PATH: $as_dir"
2006 1.1.1.2 christos done
2007 1.1 christos IFS=$as_save_IFS
2008 1.1 christos
2009 1.1 christos } >&5
2010 1.1 christos
2011 1.1 christos cat >&5 <<_ACEOF
2012 1.1 christos
2013 1.1 christos
2014 1.1 christos ## ----------- ##
2015 1.1 christos ## Core tests. ##
2016 1.1 christos ## ----------- ##
2017 1.1 christos
2018 1.1 christos _ACEOF
2019 1.1 christos
2020 1.1 christos
2021 1.1 christos # Keep a trace of the command line.
2022 1.1 christos # Strip out --no-create and --no-recursion so they do not pile up.
2023 1.1 christos # Strip out --silent because we don't want to record it for future runs.
2024 1.1 christos # Also quote any args containing shell meta-characters.
2025 1.1 christos # Make two passes to allow for proper duplicate-argument suppression.
2026 1.1 christos ac_configure_args=
2027 1.1 christos ac_configure_args0=
2028 1.1 christos ac_configure_args1=
2029 1.1 christos ac_must_keep_next=false
2030 1.1 christos for ac_pass in 1 2
2031 1.1 christos do
2032 1.1 christos for ac_arg
2033 1.1 christos do
2034 1.1 christos case $ac_arg in
2035 1.1 christos -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2036 1.1 christos -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2037 1.1 christos | -silent | --silent | --silen | --sile | --sil)
2038 1.1 christos continue ;;
2039 1.1 christos *\'*)
2040 1.1.1.2 christos ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2041 1.1 christos esac
2042 1.1 christos case $ac_pass in
2043 1.1.1.2 christos 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2044 1.1 christos 2)
2045 1.1.1.2 christos as_fn_append ac_configure_args1 " '$ac_arg'"
2046 1.1 christos if test $ac_must_keep_next = true; then
2047 1.1 christos ac_must_keep_next=false # Got value, back to normal.
2048 1.1 christos else
2049 1.1 christos case $ac_arg in
2050 1.1 christos *=* | --config-cache | -C | -disable-* | --disable-* \
2051 1.1 christos | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2052 1.1 christos | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2053 1.1 christos | -with-* | --with-* | -without-* | --without-* | --x)
2054 1.1 christos case "$ac_configure_args0 " in
2055 1.1 christos "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2056 1.1 christos esac
2057 1.1 christos ;;
2058 1.1 christos -* ) ac_must_keep_next=true ;;
2059 1.1 christos esac
2060 1.1 christos fi
2061 1.1.1.2 christos as_fn_append ac_configure_args " '$ac_arg'"
2062 1.1 christos ;;
2063 1.1 christos esac
2064 1.1 christos done
2065 1.1 christos done
2066 1.1.1.2 christos { ac_configure_args0=; unset ac_configure_args0;}
2067 1.1.1.2 christos { ac_configure_args1=; unset ac_configure_args1;}
2068 1.1 christos
2069 1.1 christos # When interrupted or exit'd, cleanup temporary files, and complete
2070 1.1 christos # config.log. We remove comments because anyway the quotes in there
2071 1.1 christos # would cause problems or look ugly.
2072 1.1 christos # WARNING: Use '\'' to represent an apostrophe within the trap.
2073 1.1 christos # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2074 1.1 christos trap 'exit_status=$?
2075 1.1 christos # Save into config.log some information that might help in debugging.
2076 1.1 christos {
2077 1.1 christos echo
2078 1.1 christos
2079 1.1.1.2 christos $as_echo "## ---------------- ##
2080 1.1 christos ## Cache variables. ##
2081 1.1.1.2 christos ## ---------------- ##"
2082 1.1 christos echo
2083 1.1 christos # The following way of writing the cache mishandles newlines in values,
2084 1.1 christos (
2085 1.1 christos for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2086 1.1 christos eval ac_val=\$$ac_var
2087 1.1 christos case $ac_val in #(
2088 1.1 christos *${as_nl}*)
2089 1.1 christos case $ac_var in #(
2090 1.1.1.2 christos *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2091 1.1.1.2 christos $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2092 1.1 christos esac
2093 1.1 christos case $ac_var in #(
2094 1.1 christos _ | IFS | as_nl) ;; #(
2095 1.1.1.2 christos BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2096 1.1.1.2 christos *) { eval $ac_var=; unset $ac_var;} ;;
2097 1.1 christos esac ;;
2098 1.1 christos esac
2099 1.1 christos done
2100 1.1 christos (set) 2>&1 |
2101 1.1 christos case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2102 1.1 christos *${as_nl}ac_space=\ *)
2103 1.1 christos sed -n \
2104 1.1 christos "s/'\''/'\''\\\\'\'''\''/g;
2105 1.1 christos s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2106 1.1 christos ;; #(
2107 1.1 christos *)
2108 1.1 christos sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2109 1.1 christos ;;
2110 1.1 christos esac |
2111 1.1 christos sort
2112 1.1 christos )
2113 1.1 christos echo
2114 1.1 christos
2115 1.1.1.2 christos $as_echo "## ----------------- ##
2116 1.1 christos ## Output variables. ##
2117 1.1.1.2 christos ## ----------------- ##"
2118 1.1 christos echo
2119 1.1 christos for ac_var in $ac_subst_vars
2120 1.1 christos do
2121 1.1 christos eval ac_val=\$$ac_var
2122 1.1 christos case $ac_val in
2123 1.1.1.2 christos *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2124 1.1 christos esac
2125 1.1.1.2 christos $as_echo "$ac_var='\''$ac_val'\''"
2126 1.1 christos done | sort
2127 1.1 christos echo
2128 1.1 christos
2129 1.1 christos if test -n "$ac_subst_files"; then
2130 1.1.1.2 christos $as_echo "## ------------------- ##
2131 1.1 christos ## File substitutions. ##
2132 1.1.1.2 christos ## ------------------- ##"
2133 1.1 christos echo
2134 1.1 christos for ac_var in $ac_subst_files
2135 1.1 christos do
2136 1.1 christos eval ac_val=\$$ac_var
2137 1.1 christos case $ac_val in
2138 1.1.1.2 christos *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2139 1.1 christos esac
2140 1.1.1.2 christos $as_echo "$ac_var='\''$ac_val'\''"
2141 1.1 christos done | sort
2142 1.1 christos echo
2143 1.1 christos fi
2144 1.1 christos
2145 1.1 christos if test -s confdefs.h; then
2146 1.1.1.2 christos $as_echo "## ----------- ##
2147 1.1 christos ## confdefs.h. ##
2148 1.1.1.2 christos ## ----------- ##"
2149 1.1 christos echo
2150 1.1 christos cat confdefs.h
2151 1.1 christos echo
2152 1.1 christos fi
2153 1.1 christos test "$ac_signal" != 0 &&
2154 1.1.1.2 christos $as_echo "$as_me: caught signal $ac_signal"
2155 1.1.1.2 christos $as_echo "$as_me: exit $exit_status"
2156 1.1 christos } >&5
2157 1.1 christos rm -f core *.core core.conftest.* &&
2158 1.1 christos rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2159 1.1 christos exit $exit_status
2160 1.1 christos ' 0
2161 1.1 christos for ac_signal in 1 2 13 15; do
2162 1.1.1.2 christos trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2163 1.1 christos done
2164 1.1 christos ac_signal=0
2165 1.1 christos
2166 1.1 christos # confdefs.h avoids OS command line length limits that DEFS can exceed.
2167 1.1 christos rm -f -r conftest* confdefs.h
2168 1.1 christos
2169 1.1.1.2 christos $as_echo "/* confdefs.h */" > confdefs.h
2170 1.1.1.2 christos
2171 1.1 christos # Predefined preprocessor variables.
2172 1.1 christos
2173 1.1 christos cat >>confdefs.h <<_ACEOF
2174 1.1 christos #define PACKAGE_NAME "$PACKAGE_NAME"
2175 1.1 christos _ACEOF
2176 1.1 christos
2177 1.1 christos cat >>confdefs.h <<_ACEOF
2178 1.1 christos #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2179 1.1 christos _ACEOF
2180 1.1 christos
2181 1.1 christos cat >>confdefs.h <<_ACEOF
2182 1.1 christos #define PACKAGE_VERSION "$PACKAGE_VERSION"
2183 1.1 christos _ACEOF
2184 1.1 christos
2185 1.1 christos cat >>confdefs.h <<_ACEOF
2186 1.1 christos #define PACKAGE_STRING "$PACKAGE_STRING"
2187 1.1 christos _ACEOF
2188 1.1 christos
2189 1.1 christos cat >>confdefs.h <<_ACEOF
2190 1.1 christos #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2191 1.1 christos _ACEOF
2192 1.1 christos
2193 1.1.1.2 christos cat >>confdefs.h <<_ACEOF
2194 1.1.1.2 christos #define PACKAGE_URL "$PACKAGE_URL"
2195 1.1.1.2 christos _ACEOF
2196 1.1.1.2 christos
2197 1.1 christos
2198 1.1 christos # Let the site file select an alternate cache file if it wants to.
2199 1.1.1.2 christos # Prefer an explicitly selected file to automatically selected ones.
2200 1.1.1.2 christos ac_site_file1=NONE
2201 1.1.1.2 christos ac_site_file2=NONE
2202 1.1 christos if test -n "$CONFIG_SITE"; then
2203 1.1.1.2 christos # We do not want a PATH search for config.site.
2204 1.1.1.2 christos case $CONFIG_SITE in #((
2205 1.1.1.2 christos -*) ac_site_file1=./$CONFIG_SITE;;
2206 1.1.1.2 christos */*) ac_site_file1=$CONFIG_SITE;;
2207 1.1.1.2 christos *) ac_site_file1=./$CONFIG_SITE;;
2208 1.1.1.2 christos esac
2209 1.1 christos elif test "x$prefix" != xNONE; then
2210 1.1.1.2 christos ac_site_file1=$prefix/share/config.site
2211 1.1.1.2 christos ac_site_file2=$prefix/etc/config.site
2212 1.1 christos else
2213 1.1.1.2 christos ac_site_file1=$ac_default_prefix/share/config.site
2214 1.1.1.2 christos ac_site_file2=$ac_default_prefix/etc/config.site
2215 1.1 christos fi
2216 1.1.1.2 christos for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2217 1.1 christos do
2218 1.1.1.2 christos test "x$ac_site_file" = xNONE && continue
2219 1.1.1.2 christos if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2220 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2221 1.1.1.2 christos $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2222 1.1 christos sed 's/^/| /' "$ac_site_file" >&5
2223 1.1.1.2 christos . "$ac_site_file" \
2224 1.1.1.2 christos || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2225 1.1.1.2 christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2226 1.1.1.2 christos as_fn_error $? "failed to load site script $ac_site_file
2227 1.1.1.3 christos See \`config.log' for more details" "$LINENO" 5; }
2228 1.1 christos fi
2229 1.1 christos done
2230 1.1 christos
2231 1.1 christos if test -r "$cache_file"; then
2232 1.1.1.2 christos # Some versions of bash will fail to source /dev/null (special files
2233 1.1.1.2 christos # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2234 1.1.1.2 christos if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2235 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2236 1.1.1.2 christos $as_echo "$as_me: loading cache $cache_file" >&6;}
2237 1.1 christos case $cache_file in
2238 1.1 christos [\\/]* | ?:[\\/]* ) . "$cache_file";;
2239 1.1 christos *) . "./$cache_file";;
2240 1.1 christos esac
2241 1.1 christos fi
2242 1.1 christos else
2243 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2244 1.1.1.2 christos $as_echo "$as_me: creating cache $cache_file" >&6;}
2245 1.1 christos >$cache_file
2246 1.1 christos fi
2247 1.1 christos
2248 1.1 christos # Check that the precious variables saved in the cache have kept the same
2249 1.1 christos # value.
2250 1.1 christos ac_cache_corrupted=false
2251 1.1 christos for ac_var in $ac_precious_vars; do
2252 1.1 christos eval ac_old_set=\$ac_cv_env_${ac_var}_set
2253 1.1 christos eval ac_new_set=\$ac_env_${ac_var}_set
2254 1.1 christos eval ac_old_val=\$ac_cv_env_${ac_var}_value
2255 1.1 christos eval ac_new_val=\$ac_env_${ac_var}_value
2256 1.1 christos case $ac_old_set,$ac_new_set in
2257 1.1 christos set,)
2258 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2259 1.1.1.2 christos $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2260 1.1 christos ac_cache_corrupted=: ;;
2261 1.1 christos ,set)
2262 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2263 1.1.1.2 christos $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2264 1.1 christos ac_cache_corrupted=: ;;
2265 1.1 christos ,);;
2266 1.1 christos *)
2267 1.1 christos if test "x$ac_old_val" != "x$ac_new_val"; then
2268 1.1.1.2 christos # differences in whitespace do not lead to failure.
2269 1.1.1.2 christos ac_old_val_w=`echo x $ac_old_val`
2270 1.1.1.2 christos ac_new_val_w=`echo x $ac_new_val`
2271 1.1.1.2 christos if test "$ac_old_val_w" != "$ac_new_val_w"; then
2272 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2273 1.1.1.2 christos $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2274 1.1.1.2 christos ac_cache_corrupted=:
2275 1.1.1.2 christos else
2276 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2277 1.1.1.2 christos $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2278 1.1.1.2 christos eval $ac_var=\$ac_old_val
2279 1.1.1.2 christos fi
2280 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2281 1.1.1.2 christos $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2282 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2283 1.1.1.2 christos $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2284 1.1 christos fi;;
2285 1.1 christos esac
2286 1.1 christos # Pass precious variables to config.status.
2287 1.1 christos if test "$ac_new_set" = set; then
2288 1.1 christos case $ac_new_val in
2289 1.1.1.2 christos *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2290 1.1 christos *) ac_arg=$ac_var=$ac_new_val ;;
2291 1.1 christos esac
2292 1.1 christos case " $ac_configure_args " in
2293 1.1 christos *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2294 1.1.1.2 christos *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2295 1.1 christos esac
2296 1.1 christos fi
2297 1.1 christos done
2298 1.1 christos if $ac_cache_corrupted; then
2299 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2300 1.1.1.2 christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2301 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2302 1.1.1.2 christos $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2303 1.1.1.2 christos as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2304 1.1.1.2 christos fi
2305 1.1.1.2 christos ## -------------------- ##
2306 1.1.1.2 christos ## Main body of script. ##
2307 1.1.1.2 christos ## -------------------- ##
2308 1.1 christos
2309 1.1 christos ac_ext=c
2310 1.1 christos ac_cpp='$CPP $CPPFLAGS'
2311 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2312 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2313 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
2314 1.1 christos
2315 1.1 christos
2316 1.1 christos
2317 1.1 christos ac_aux_dir=
2318 1.1 christos for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2319 1.1 christos if test -f "$ac_dir/install-sh"; then
2320 1.1 christos ac_aux_dir=$ac_dir
2321 1.1 christos ac_install_sh="$ac_aux_dir/install-sh -c"
2322 1.1 christos break
2323 1.1 christos elif test -f "$ac_dir/install.sh"; then
2324 1.1 christos ac_aux_dir=$ac_dir
2325 1.1 christos ac_install_sh="$ac_aux_dir/install.sh -c"
2326 1.1 christos break
2327 1.1 christos elif test -f "$ac_dir/shtool"; then
2328 1.1 christos ac_aux_dir=$ac_dir
2329 1.1 christos ac_install_sh="$ac_aux_dir/shtool install -c"
2330 1.1 christos break
2331 1.1 christos fi
2332 1.1 christos done
2333 1.1 christos if test -z "$ac_aux_dir"; then
2334 1.1.1.2 christos as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2335 1.1 christos fi
2336 1.1 christos
2337 1.1 christos # These three variables are undocumented and unsupported,
2338 1.1 christos # and are intended to be withdrawn in a future Autoconf release.
2339 1.1 christos # They can cause serious problems if a builder's source tree is in a directory
2340 1.1 christos # whose full name contains unusual characters.
2341 1.1 christos ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2342 1.1 christos ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2343 1.1 christos ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2344 1.1 christos
2345 1.1 christos
2346 1.1 christos # Make sure we can run config.sub.
2347 1.1 christos $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2348 1.1.1.2 christos as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2349 1.1.1.2 christos
2350 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2351 1.1.1.2 christos $as_echo_n "checking build system type... " >&6; }
2352 1.1.1.3 christos if ${ac_cv_build+:} false; then :
2353 1.1.1.2 christos $as_echo_n "(cached) " >&6
2354 1.1 christos else
2355 1.1 christos ac_build_alias=$build_alias
2356 1.1 christos test "x$ac_build_alias" = x &&
2357 1.1 christos ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2358 1.1 christos test "x$ac_build_alias" = x &&
2359 1.1.1.2 christos as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2360 1.1 christos ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2361 1.1.1.2 christos as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2362 1.1 christos
2363 1.1 christos fi
2364 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2365 1.1.1.2 christos $as_echo "$ac_cv_build" >&6; }
2366 1.1 christos case $ac_cv_build in
2367 1.1 christos *-*-*) ;;
2368 1.1.1.3 christos *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2369 1.1 christos esac
2370 1.1 christos build=$ac_cv_build
2371 1.1 christos ac_save_IFS=$IFS; IFS='-'
2372 1.1 christos set x $ac_cv_build
2373 1.1 christos shift
2374 1.1 christos build_cpu=$1
2375 1.1 christos build_vendor=$2
2376 1.1 christos shift; shift
2377 1.1 christos # Remember, the first character of IFS is used to create $*,
2378 1.1 christos # except with old shells:
2379 1.1 christos build_os=$*
2380 1.1 christos IFS=$ac_save_IFS
2381 1.1 christos case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2382 1.1 christos
2383 1.1 christos
2384 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2385 1.1.1.2 christos $as_echo_n "checking host system type... " >&6; }
2386 1.1.1.3 christos if ${ac_cv_host+:} false; then :
2387 1.1.1.2 christos $as_echo_n "(cached) " >&6
2388 1.1 christos else
2389 1.1 christos if test "x$host_alias" = x; then
2390 1.1 christos ac_cv_host=$ac_cv_build
2391 1.1 christos else
2392 1.1 christos ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2393 1.1.1.2 christos as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2394 1.1 christos fi
2395 1.1 christos
2396 1.1 christos fi
2397 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2398 1.1.1.2 christos $as_echo "$ac_cv_host" >&6; }
2399 1.1 christos case $ac_cv_host in
2400 1.1 christos *-*-*) ;;
2401 1.1.1.3 christos *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2402 1.1 christos esac
2403 1.1 christos host=$ac_cv_host
2404 1.1 christos ac_save_IFS=$IFS; IFS='-'
2405 1.1 christos set x $ac_cv_host
2406 1.1 christos shift
2407 1.1 christos host_cpu=$1
2408 1.1 christos host_vendor=$2
2409 1.1 christos shift; shift
2410 1.1 christos # Remember, the first character of IFS is used to create $*,
2411 1.1 christos # except with old shells:
2412 1.1 christos host_os=$*
2413 1.1 christos IFS=$ac_save_IFS
2414 1.1 christos case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2415 1.1 christos
2416 1.1 christos
2417 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2418 1.1.1.2 christos $as_echo_n "checking target system type... " >&6; }
2419 1.1.1.3 christos if ${ac_cv_target+:} false; then :
2420 1.1.1.2 christos $as_echo_n "(cached) " >&6
2421 1.1 christos else
2422 1.1 christos if test "x$target_alias" = x; then
2423 1.1 christos ac_cv_target=$ac_cv_host
2424 1.1 christos else
2425 1.1 christos ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2426 1.1.1.2 christos as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2427 1.1 christos fi
2428 1.1 christos
2429 1.1 christos fi
2430 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2431 1.1.1.2 christos $as_echo "$ac_cv_target" >&6; }
2432 1.1 christos case $ac_cv_target in
2433 1.1 christos *-*-*) ;;
2434 1.1.1.3 christos *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2435 1.1 christos esac
2436 1.1 christos target=$ac_cv_target
2437 1.1 christos ac_save_IFS=$IFS; IFS='-'
2438 1.1 christos set x $ac_cv_target
2439 1.1 christos shift
2440 1.1 christos target_cpu=$1
2441 1.1 christos target_vendor=$2
2442 1.1 christos shift; shift
2443 1.1 christos # Remember, the first character of IFS is used to create $*,
2444 1.1 christos # except with old shells:
2445 1.1 christos target_os=$*
2446 1.1 christos IFS=$ac_save_IFS
2447 1.1 christos case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2448 1.1 christos
2449 1.1 christos
2450 1.1 christos # The aliases save the names the user supplied, while $host etc.
2451 1.1 christos # will get canonicalized.
2452 1.1 christos test -n "$target_alias" &&
2453 1.1 christos test "$program_prefix$program_suffix$program_transform_name" = \
2454 1.1 christos NONENONEs,x,x, &&
2455 1.1 christos program_prefix=${target_alias}-
2456 1.1 christos
2457 1.1 christos
2458 1.1 christos
2459 1.1 christos
2460 1.1 christos
2461 1.1 christos
2462 1.1 christos
2463 1.1.1.2 christos
2464 1.1 christos # Check whether --with-gcc was given.
2465 1.1.1.2 christos if test "${with_gcc+set}" = set; then :
2466 1.1 christos withval=$with_gcc;
2467 1.1 christos fi
2468 1.1 christos
2469 1.1.1.3 christos V_CCOPT=""
2470 1.1 christos if test "${srcdir}" != "." ; then
2471 1.1.1.3 christos V_CCOPT="-I\$(srcdir)"
2472 1.1 christos fi
2473 1.1 christos if test "${CFLAGS+set}" = set; then
2474 1.1 christos LBL_CFLAGS="$CFLAGS"
2475 1.1 christos fi
2476 1.1 christos if test -z "$CC" ; then
2477 1.1 christos case "$host_os" in
2478 1.1 christos
2479 1.1 christos bsdi*)
2480 1.1 christos # Extract the first word of "shlicc2", so it can be a program name with args.
2481 1.1 christos set dummy shlicc2; ac_word=$2
2482 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2483 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
2484 1.1.1.3 christos if ${ac_cv_prog_SHLICC2+:} false; then :
2485 1.1.1.2 christos $as_echo_n "(cached) " >&6
2486 1.1 christos else
2487 1.1 christos if test -n "$SHLICC2"; then
2488 1.1 christos ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
2489 1.1 christos else
2490 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 1.1 christos for as_dir in $PATH
2492 1.1 christos do
2493 1.1 christos IFS=$as_save_IFS
2494 1.1 christos test -z "$as_dir" && as_dir=.
2495 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
2496 1.1.1.3 christos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2497 1.1 christos ac_cv_prog_SHLICC2="yes"
2498 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 1.1 christos break 2
2500 1.1 christos fi
2501 1.1 christos done
2502 1.1.1.2 christos done
2503 1.1 christos IFS=$as_save_IFS
2504 1.1 christos
2505 1.1 christos test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
2506 1.1 christos fi
2507 1.1 christos fi
2508 1.1 christos SHLICC2=$ac_cv_prog_SHLICC2
2509 1.1 christos if test -n "$SHLICC2"; then
2510 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5
2511 1.1.1.2 christos $as_echo "$SHLICC2" >&6; }
2512 1.1 christos else
2513 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2514 1.1.1.2 christos $as_echo "no" >&6; }
2515 1.1 christos fi
2516 1.1 christos
2517 1.1 christos
2518 1.1 christos if test $SHLICC2 = yes ; then
2519 1.1 christos CC=shlicc2
2520 1.1 christos export CC
2521 1.1 christos fi
2522 1.1 christos ;;
2523 1.1 christos esac
2524 1.1 christos fi
2525 1.1 christos if test -z "$CC" -a "$with_gcc" = no ; then
2526 1.1 christos CC=cc
2527 1.1 christos export CC
2528 1.1 christos fi
2529 1.1 christos
2530 1.1 christos ac_ext=c
2531 1.1 christos ac_cpp='$CPP $CPPFLAGS'
2532 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2533 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2534 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
2535 1.1 christos if test -n "$ac_tool_prefix"; then
2536 1.1 christos # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2537 1.1 christos set dummy ${ac_tool_prefix}gcc; ac_word=$2
2538 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2539 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
2540 1.1.1.3 christos if ${ac_cv_prog_CC+:} false; then :
2541 1.1.1.2 christos $as_echo_n "(cached) " >&6
2542 1.1 christos else
2543 1.1 christos if test -n "$CC"; then
2544 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test.
2545 1.1 christos else
2546 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 1.1 christos for as_dir in $PATH
2548 1.1 christos do
2549 1.1 christos IFS=$as_save_IFS
2550 1.1 christos test -z "$as_dir" && as_dir=.
2551 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
2552 1.1.1.3 christos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2553 1.1 christos ac_cv_prog_CC="${ac_tool_prefix}gcc"
2554 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2555 1.1 christos break 2
2556 1.1 christos fi
2557 1.1 christos done
2558 1.1.1.2 christos done
2559 1.1 christos IFS=$as_save_IFS
2560 1.1 christos
2561 1.1 christos fi
2562 1.1 christos fi
2563 1.1 christos CC=$ac_cv_prog_CC
2564 1.1 christos if test -n "$CC"; then
2565 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2566 1.1.1.2 christos $as_echo "$CC" >&6; }
2567 1.1 christos else
2568 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2569 1.1.1.2 christos $as_echo "no" >&6; }
2570 1.1 christos fi
2571 1.1 christos
2572 1.1 christos
2573 1.1 christos fi
2574 1.1 christos if test -z "$ac_cv_prog_CC"; then
2575 1.1 christos ac_ct_CC=$CC
2576 1.1 christos # Extract the first word of "gcc", so it can be a program name with args.
2577 1.1 christos set dummy gcc; ac_word=$2
2578 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2579 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
2580 1.1.1.3 christos if ${ac_cv_prog_ac_ct_CC+:} false; then :
2581 1.1.1.2 christos $as_echo_n "(cached) " >&6
2582 1.1 christos else
2583 1.1 christos if test -n "$ac_ct_CC"; then
2584 1.1 christos ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2585 1.1 christos else
2586 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 1.1 christos for as_dir in $PATH
2588 1.1 christos do
2589 1.1 christos IFS=$as_save_IFS
2590 1.1 christos test -z "$as_dir" && as_dir=.
2591 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
2592 1.1.1.3 christos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2593 1.1 christos ac_cv_prog_ac_ct_CC="gcc"
2594 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2595 1.1 christos break 2
2596 1.1 christos fi
2597 1.1 christos done
2598 1.1.1.2 christos done
2599 1.1 christos IFS=$as_save_IFS
2600 1.1 christos
2601 1.1 christos fi
2602 1.1 christos fi
2603 1.1 christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
2604 1.1 christos if test -n "$ac_ct_CC"; then
2605 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2606 1.1.1.2 christos $as_echo "$ac_ct_CC" >&6; }
2607 1.1 christos else
2608 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2609 1.1.1.2 christos $as_echo "no" >&6; }
2610 1.1 christos fi
2611 1.1 christos
2612 1.1 christos if test "x$ac_ct_CC" = x; then
2613 1.1 christos CC=""
2614 1.1 christos else
2615 1.1 christos case $cross_compiling:$ac_tool_warned in
2616 1.1 christos yes:)
2617 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2618 1.1.1.2 christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2619 1.1 christos ac_tool_warned=yes ;;
2620 1.1 christos esac
2621 1.1 christos CC=$ac_ct_CC
2622 1.1 christos fi
2623 1.1 christos else
2624 1.1 christos CC="$ac_cv_prog_CC"
2625 1.1 christos fi
2626 1.1 christos
2627 1.1 christos if test -z "$CC"; then
2628 1.1 christos if test -n "$ac_tool_prefix"; then
2629 1.1 christos # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2630 1.1 christos set dummy ${ac_tool_prefix}cc; ac_word=$2
2631 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2632 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
2633 1.1.1.3 christos if ${ac_cv_prog_CC+:} false; then :
2634 1.1.1.2 christos $as_echo_n "(cached) " >&6
2635 1.1 christos else
2636 1.1 christos if test -n "$CC"; then
2637 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test.
2638 1.1 christos else
2639 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 1.1 christos for as_dir in $PATH
2641 1.1 christos do
2642 1.1 christos IFS=$as_save_IFS
2643 1.1 christos test -z "$as_dir" && as_dir=.
2644 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
2645 1.1.1.3 christos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2646 1.1 christos ac_cv_prog_CC="${ac_tool_prefix}cc"
2647 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2648 1.1 christos break 2
2649 1.1 christos fi
2650 1.1 christos done
2651 1.1.1.2 christos done
2652 1.1 christos IFS=$as_save_IFS
2653 1.1 christos
2654 1.1 christos fi
2655 1.1 christos fi
2656 1.1 christos CC=$ac_cv_prog_CC
2657 1.1 christos if test -n "$CC"; then
2658 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2659 1.1.1.2 christos $as_echo "$CC" >&6; }
2660 1.1 christos else
2661 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2662 1.1.1.2 christos $as_echo "no" >&6; }
2663 1.1 christos fi
2664 1.1 christos
2665 1.1 christos
2666 1.1 christos fi
2667 1.1 christos fi
2668 1.1 christos if test -z "$CC"; then
2669 1.1 christos # Extract the first word of "cc", so it can be a program name with args.
2670 1.1 christos set dummy cc; ac_word=$2
2671 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2672 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
2673 1.1.1.3 christos if ${ac_cv_prog_CC+:} false; then :
2674 1.1.1.2 christos $as_echo_n "(cached) " >&6
2675 1.1 christos else
2676 1.1 christos if test -n "$CC"; then
2677 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test.
2678 1.1 christos else
2679 1.1 christos ac_prog_rejected=no
2680 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 1.1 christos for as_dir in $PATH
2682 1.1 christos do
2683 1.1 christos IFS=$as_save_IFS
2684 1.1 christos test -z "$as_dir" && as_dir=.
2685 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
2686 1.1.1.3 christos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2687 1.1 christos if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2688 1.1 christos ac_prog_rejected=yes
2689 1.1 christos continue
2690 1.1 christos fi
2691 1.1 christos ac_cv_prog_CC="cc"
2692 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 1.1 christos break 2
2694 1.1 christos fi
2695 1.1 christos done
2696 1.1.1.2 christos done
2697 1.1 christos IFS=$as_save_IFS
2698 1.1 christos
2699 1.1 christos if test $ac_prog_rejected = yes; then
2700 1.1 christos # We found a bogon in the path, so make sure we never use it.
2701 1.1 christos set dummy $ac_cv_prog_CC
2702 1.1 christos shift
2703 1.1 christos if test $# != 0; then
2704 1.1 christos # We chose a different compiler from the bogus one.
2705 1.1 christos # However, it has the same basename, so the bogon will be chosen
2706 1.1 christos # first if we set CC to just the basename; use the full file name.
2707 1.1 christos shift
2708 1.1 christos ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2709 1.1 christos fi
2710 1.1 christos fi
2711 1.1 christos fi
2712 1.1 christos fi
2713 1.1 christos CC=$ac_cv_prog_CC
2714 1.1 christos if test -n "$CC"; then
2715 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2716 1.1.1.2 christos $as_echo "$CC" >&6; }
2717 1.1 christos else
2718 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719 1.1.1.2 christos $as_echo "no" >&6; }
2720 1.1 christos fi
2721 1.1 christos
2722 1.1 christos
2723 1.1 christos fi
2724 1.1 christos if test -z "$CC"; then
2725 1.1 christos if test -n "$ac_tool_prefix"; then
2726 1.1 christos for ac_prog in cl.exe
2727 1.1 christos do
2728 1.1 christos # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2729 1.1 christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2730 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2731 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
2732 1.1.1.3 christos if ${ac_cv_prog_CC+:} false; then :
2733 1.1.1.2 christos $as_echo_n "(cached) " >&6
2734 1.1 christos else
2735 1.1 christos if test -n "$CC"; then
2736 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test.
2737 1.1 christos else
2738 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 1.1 christos for as_dir in $PATH
2740 1.1 christos do
2741 1.1 christos IFS=$as_save_IFS
2742 1.1 christos test -z "$as_dir" && as_dir=.
2743 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
2744 1.1.1.3 christos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2745 1.1 christos ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2746 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 1.1 christos break 2
2748 1.1 christos fi
2749 1.1 christos done
2750 1.1.1.2 christos done
2751 1.1 christos IFS=$as_save_IFS
2752 1.1 christos
2753 1.1 christos fi
2754 1.1 christos fi
2755 1.1 christos CC=$ac_cv_prog_CC
2756 1.1 christos if test -n "$CC"; then
2757 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2758 1.1.1.2 christos $as_echo "$CC" >&6; }
2759 1.1 christos else
2760 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2761 1.1.1.2 christos $as_echo "no" >&6; }
2762 1.1 christos fi
2763 1.1 christos
2764 1.1 christos
2765 1.1 christos test -n "$CC" && break
2766 1.1 christos done
2767 1.1 christos fi
2768 1.1 christos if test -z "$CC"; then
2769 1.1 christos ac_ct_CC=$CC
2770 1.1 christos for ac_prog in cl.exe
2771 1.1 christos do
2772 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args.
2773 1.1 christos set dummy $ac_prog; ac_word=$2
2774 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2775 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
2776 1.1.1.3 christos if ${ac_cv_prog_ac_ct_CC+:} false; then :
2777 1.1.1.2 christos $as_echo_n "(cached) " >&6
2778 1.1 christos else
2779 1.1 christos if test -n "$ac_ct_CC"; then
2780 1.1 christos ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2781 1.1 christos else
2782 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 1.1 christos for as_dir in $PATH
2784 1.1 christos do
2785 1.1 christos IFS=$as_save_IFS
2786 1.1 christos test -z "$as_dir" && as_dir=.
2787 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
2788 1.1.1.3 christos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2789 1.1 christos ac_cv_prog_ac_ct_CC="$ac_prog"
2790 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2791 1.1 christos break 2
2792 1.1 christos fi
2793 1.1 christos done
2794 1.1.1.2 christos done
2795 1.1 christos IFS=$as_save_IFS
2796 1.1 christos
2797 1.1 christos fi
2798 1.1 christos fi
2799 1.1 christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
2800 1.1 christos if test -n "$ac_ct_CC"; then
2801 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2802 1.1.1.2 christos $as_echo "$ac_ct_CC" >&6; }
2803 1.1 christos else
2804 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805 1.1.1.2 christos $as_echo "no" >&6; }
2806 1.1 christos fi
2807 1.1 christos
2808 1.1 christos
2809 1.1 christos test -n "$ac_ct_CC" && break
2810 1.1 christos done
2811 1.1 christos
2812 1.1 christos if test "x$ac_ct_CC" = x; then
2813 1.1 christos CC=""
2814 1.1 christos else
2815 1.1 christos case $cross_compiling:$ac_tool_warned in
2816 1.1 christos yes:)
2817 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2818 1.1.1.2 christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2819 1.1 christos ac_tool_warned=yes ;;
2820 1.1 christos esac
2821 1.1 christos CC=$ac_ct_CC
2822 1.1 christos fi
2823 1.1 christos fi
2824 1.1 christos
2825 1.1 christos fi
2826 1.1 christos
2827 1.1 christos
2828 1.1.1.2 christos test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2829 1.1.1.2 christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2830 1.1.1.2 christos as_fn_error $? "no acceptable C compiler found in \$PATH
2831 1.1.1.3 christos See \`config.log' for more details" "$LINENO" 5; }
2832 1.1 christos
2833 1.1 christos # Provide some information about the compiler.
2834 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2835 1.1.1.2 christos set X $ac_compile
2836 1.1.1.2 christos ac_compiler=$2
2837 1.1.1.2 christos for ac_option in --version -v -V -qversion; do
2838 1.1.1.2 christos { { ac_try="$ac_compiler $ac_option >&5"
2839 1.1 christos case "(($ac_try" in
2840 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841 1.1 christos *) ac_try_echo=$ac_try;;
2842 1.1 christos esac
2843 1.1.1.2 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2844 1.1.1.2 christos $as_echo "$ac_try_echo"; } >&5
2845 1.1.1.2 christos (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2846 1.1 christos ac_status=$?
2847 1.1.1.2 christos if test -s conftest.err; then
2848 1.1.1.2 christos sed '10a\
2849 1.1.1.2 christos ... rest of stderr output deleted ...
2850 1.1.1.2 christos 10q' conftest.err >conftest.er1
2851 1.1.1.2 christos cat conftest.er1 >&5
2852 1.1.1.2 christos fi
2853 1.1.1.2 christos rm -f conftest.er1 conftest.err
2854 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2855 1.1.1.2 christos test $ac_status = 0; }
2856 1.1.1.2 christos done
2857 1.1.1.2 christos
2858 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2859 1.1 christos /* end confdefs.h. */
2860 1.1 christos
2861 1.1 christos int
2862 1.1 christos main ()
2863 1.1 christos {
2864 1.1 christos
2865 1.1 christos ;
2866 1.1 christos return 0;
2867 1.1 christos }
2868 1.1 christos _ACEOF
2869 1.1 christos ac_clean_files_save=$ac_clean_files
2870 1.1.1.2 christos ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2871 1.1 christos # Try to create an executable without -o first, disregard a.out.
2872 1.1 christos # It will help us diagnose broken compilers, and finding out an intuition
2873 1.1 christos # of exeext.
2874 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2875 1.1.1.2 christos $as_echo_n "checking whether the C compiler works... " >&6; }
2876 1.1.1.2 christos ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2877 1.1.1.2 christos
2878 1.1.1.2 christos # The possible output files:
2879 1.1.1.2 christos ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2880 1.1.1.2 christos
2881 1.1 christos ac_rmfiles=
2882 1.1 christos for ac_file in $ac_files
2883 1.1 christos do
2884 1.1 christos case $ac_file in
2885 1.1.1.2 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2886 1.1 christos * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2887 1.1 christos esac
2888 1.1 christos done
2889 1.1 christos rm -f $ac_rmfiles
2890 1.1 christos
2891 1.1.1.2 christos if { { ac_try="$ac_link_default"
2892 1.1 christos case "(($ac_try" in
2893 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 1.1 christos *) ac_try_echo=$ac_try;;
2895 1.1 christos esac
2896 1.1.1.2 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2897 1.1.1.2 christos $as_echo "$ac_try_echo"; } >&5
2898 1.1 christos (eval "$ac_link_default") 2>&5
2899 1.1 christos ac_status=$?
2900 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2901 1.1.1.2 christos test $ac_status = 0; }; then :
2902 1.1 christos # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2903 1.1 christos # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2904 1.1 christos # in a Makefile. We should not override ac_cv_exeext if it was cached,
2905 1.1 christos # so that the user can short-circuit this test for compilers unknown to
2906 1.1 christos # Autoconf.
2907 1.1 christos for ac_file in $ac_files ''
2908 1.1 christos do
2909 1.1 christos test -f "$ac_file" || continue
2910 1.1 christos case $ac_file in
2911 1.1.1.2 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2912 1.1 christos ;;
2913 1.1 christos [ab].out )
2914 1.1 christos # We found the default executable, but exeext='' is most
2915 1.1 christos # certainly right.
2916 1.1 christos break;;
2917 1.1 christos *.* )
2918 1.1.1.2 christos if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2919 1.1 christos then :; else
2920 1.1 christos ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2921 1.1 christos fi
2922 1.1 christos # We set ac_cv_exeext here because the later test for it is not
2923 1.1 christos # safe: cross compilers may not add the suffix if given an `-o'
2924 1.1 christos # argument, so we may need to know it at that point already.
2925 1.1 christos # Even if this section looks crufty: it has the advantage of
2926 1.1 christos # actually working.
2927 1.1 christos break;;
2928 1.1 christos * )
2929 1.1 christos break;;
2930 1.1 christos esac
2931 1.1 christos done
2932 1.1 christos test "$ac_cv_exeext" = no && ac_cv_exeext=
2933 1.1 christos
2934 1.1 christos else
2935 1.1 christos ac_file=''
2936 1.1 christos fi
2937 1.1.1.2 christos if test -z "$ac_file"; then :
2938 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939 1.1.1.2 christos $as_echo "no" >&6; }
2940 1.1.1.2 christos $as_echo "$as_me: failed program was:" >&5
2941 1.1.1.2 christos sed 's/^/| /' conftest.$ac_ext >&5
2942 1.1.1.2 christos
2943 1.1.1.2 christos { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2944 1.1.1.2 christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2945 1.1.1.2 christos as_fn_error 77 "C compiler cannot create executables
2946 1.1.1.3 christos See \`config.log' for more details" "$LINENO" 5; }
2947 1.1.1.2 christos else
2948 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2949 1.1.1.2 christos $as_echo "yes" >&6; }
2950 1.1.1.2 christos fi
2951 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2952 1.1.1.2 christos $as_echo_n "checking for C compiler default output file name... " >&6; }
2953 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2954 1.1.1.2 christos $as_echo "$ac_file" >&6; }
2955 1.1 christos ac_exeext=$ac_cv_exeext
2956 1.1 christos
2957 1.1.1.2 christos rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2958 1.1 christos ac_clean_files=$ac_clean_files_save
2959 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2960 1.1.1.2 christos $as_echo_n "checking for suffix of executables... " >&6; }
2961 1.1.1.2 christos if { { ac_try="$ac_link"
2962 1.1 christos case "(($ac_try" in
2963 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 1.1 christos *) ac_try_echo=$ac_try;;
2965 1.1 christos esac
2966 1.1.1.2 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2967 1.1.1.2 christos $as_echo "$ac_try_echo"; } >&5
2968 1.1 christos (eval "$ac_link") 2>&5
2969 1.1 christos ac_status=$?
2970 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2971 1.1.1.2 christos test $ac_status = 0; }; then :
2972 1.1 christos # If both `conftest.exe' and `conftest' are `present' (well, observable)
2973 1.1 christos # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2974 1.1 christos # work properly (i.e., refer to `conftest.exe'), while it won't with
2975 1.1 christos # `rm'.
2976 1.1 christos for ac_file in conftest.exe conftest conftest.*; do
2977 1.1 christos test -f "$ac_file" || continue
2978 1.1 christos case $ac_file in
2979 1.1.1.2 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2980 1.1 christos *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2981 1.1 christos break;;
2982 1.1 christos * ) break;;
2983 1.1 christos esac
2984 1.1 christos done
2985 1.1 christos else
2986 1.1.1.2 christos { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2987 1.1.1.2 christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2988 1.1.1.2 christos as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2989 1.1.1.3 christos See \`config.log' for more details" "$LINENO" 5; }
2990 1.1.1.2 christos fi
2991 1.1.1.2 christos rm -f conftest conftest$ac_cv_exeext
2992 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2993 1.1.1.2 christos $as_echo "$ac_cv_exeext" >&6; }
2994 1.1 christos
2995 1.1 christos rm -f conftest.$ac_ext
2996 1.1 christos EXEEXT=$ac_cv_exeext
2997 1.1 christos ac_exeext=$EXEEXT
2998 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2999 1.1.1.2 christos /* end confdefs.h. */
3000 1.1.1.2 christos #include <stdio.h>
3001 1.1.1.2 christos int
3002 1.1.1.2 christos main ()
3003 1.1.1.2 christos {
3004 1.1.1.2 christos FILE *f = fopen ("conftest.out", "w");
3005 1.1.1.2 christos return ferror (f) || fclose (f) != 0;
3006 1.1.1.2 christos
3007 1.1.1.2 christos ;
3008 1.1.1.2 christos return 0;
3009 1.1.1.2 christos }
3010 1.1 christos _ACEOF
3011 1.1.1.2 christos ac_clean_files="$ac_clean_files conftest.out"
3012 1.1.1.2 christos # Check that the compiler produces executables we can run. If not, either
3013 1.1.1.2 christos # the compiler is broken, or we cross compile.
3014 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3015 1.1.1.2 christos $as_echo_n "checking whether we are cross compiling... " >&6; }
3016 1.1.1.2 christos if test "$cross_compiling" != yes; then
3017 1.1.1.2 christos { { ac_try="$ac_link"
3018 1.1.1.2 christos case "(($ac_try" in
3019 1.1.1.2 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 1.1.1.2 christos *) ac_try_echo=$ac_try;;
3021 1.1.1.2 christos esac
3022 1.1.1.2 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3023 1.1.1.2 christos $as_echo "$ac_try_echo"; } >&5
3024 1.1.1.2 christos (eval "$ac_link") 2>&5
3025 1.1.1.2 christos ac_status=$?
3026 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3027 1.1.1.2 christos test $ac_status = 0; }
3028 1.1.1.2 christos if { ac_try='./conftest$ac_cv_exeext'
3029 1.1.1.2 christos { { case "(($ac_try" in
3030 1.1.1.2 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 1.1.1.2 christos *) ac_try_echo=$ac_try;;
3032 1.1.1.2 christos esac
3033 1.1.1.2 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3034 1.1.1.2 christos $as_echo "$ac_try_echo"; } >&5
3035 1.1.1.2 christos (eval "$ac_try") 2>&5
3036 1.1.1.2 christos ac_status=$?
3037 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3038 1.1.1.2 christos test $ac_status = 0; }; }; then
3039 1.1.1.2 christos cross_compiling=no
3040 1.1.1.2 christos else
3041 1.1.1.2 christos if test "$cross_compiling" = maybe; then
3042 1.1.1.2 christos cross_compiling=yes
3043 1.1.1.2 christos else
3044 1.1.1.2 christos { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3045 1.1.1.2 christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3046 1.1.1.2 christos as_fn_error $? "cannot run C compiled programs.
3047 1.1.1.2 christos If you meant to cross compile, use \`--host'.
3048 1.1.1.3 christos See \`config.log' for more details" "$LINENO" 5; }
3049 1.1.1.2 christos fi
3050 1.1.1.2 christos fi
3051 1.1.1.2 christos fi
3052 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3053 1.1.1.2 christos $as_echo "$cross_compiling" >&6; }
3054 1.1.1.2 christos
3055 1.1.1.2 christos rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3056 1.1.1.2 christos ac_clean_files=$ac_clean_files_save
3057 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3058 1.1.1.2 christos $as_echo_n "checking for suffix of object files... " >&6; }
3059 1.1.1.3 christos if ${ac_cv_objext+:} false; then :
3060 1.1.1.2 christos $as_echo_n "(cached) " >&6
3061 1.1.1.2 christos else
3062 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3063 1.1 christos /* end confdefs.h. */
3064 1.1 christos
3065 1.1 christos int
3066 1.1 christos main ()
3067 1.1 christos {
3068 1.1 christos
3069 1.1 christos ;
3070 1.1 christos return 0;
3071 1.1 christos }
3072 1.1 christos _ACEOF
3073 1.1 christos rm -f conftest.o conftest.obj
3074 1.1.1.2 christos if { { ac_try="$ac_compile"
3075 1.1 christos case "(($ac_try" in
3076 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 1.1 christos *) ac_try_echo=$ac_try;;
3078 1.1 christos esac
3079 1.1.1.2 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3080 1.1.1.2 christos $as_echo "$ac_try_echo"; } >&5
3081 1.1 christos (eval "$ac_compile") 2>&5
3082 1.1 christos ac_status=$?
3083 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3084 1.1.1.2 christos test $ac_status = 0; }; then :
3085 1.1 christos for ac_file in conftest.o conftest.obj conftest.*; do
3086 1.1 christos test -f "$ac_file" || continue;
3087 1.1 christos case $ac_file in
3088 1.1.1.2 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3089 1.1 christos *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3090 1.1 christos break;;
3091 1.1 christos esac
3092 1.1 christos done
3093 1.1 christos else
3094 1.1.1.2 christos $as_echo "$as_me: failed program was:" >&5
3095 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3096 1.1 christos
3097 1.1.1.2 christos { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3098 1.1.1.2 christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3099 1.1.1.2 christos as_fn_error $? "cannot compute suffix of object files: cannot compile
3100 1.1.1.3 christos See \`config.log' for more details" "$LINENO" 5; }
3101 1.1 christos fi
3102 1.1 christos rm -f conftest.$ac_cv_objext conftest.$ac_ext
3103 1.1 christos fi
3104 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3105 1.1.1.2 christos $as_echo "$ac_cv_objext" >&6; }
3106 1.1 christos OBJEXT=$ac_cv_objext
3107 1.1 christos ac_objext=$OBJEXT
3108 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3109 1.1.1.2 christos $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3110 1.1.1.3 christos if ${ac_cv_c_compiler_gnu+:} false; then :
3111 1.1.1.2 christos $as_echo_n "(cached) " >&6
3112 1.1 christos else
3113 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3114 1.1 christos /* end confdefs.h. */
3115 1.1 christos
3116 1.1 christos int
3117 1.1 christos main ()
3118 1.1 christos {
3119 1.1 christos #ifndef __GNUC__
3120 1.1 christos choke me
3121 1.1 christos #endif
3122 1.1 christos
3123 1.1 christos ;
3124 1.1 christos return 0;
3125 1.1 christos }
3126 1.1 christos _ACEOF
3127 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
3128 1.1 christos ac_compiler_gnu=yes
3129 1.1 christos else
3130 1.1.1.2 christos ac_compiler_gnu=no
3131 1.1 christos fi
3132 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3133 1.1 christos ac_cv_c_compiler_gnu=$ac_compiler_gnu
3134 1.1 christos
3135 1.1 christos fi
3136 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3137 1.1.1.2 christos $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3138 1.1.1.2 christos if test $ac_compiler_gnu = yes; then
3139 1.1.1.2 christos GCC=yes
3140 1.1.1.2 christos else
3141 1.1.1.2 christos GCC=
3142 1.1.1.2 christos fi
3143 1.1 christos ac_test_CFLAGS=${CFLAGS+set}
3144 1.1 christos ac_save_CFLAGS=$CFLAGS
3145 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3146 1.1.1.2 christos $as_echo_n "checking whether $CC accepts -g... " >&6; }
3147 1.1.1.3 christos if ${ac_cv_prog_cc_g+:} false; then :
3148 1.1.1.2 christos $as_echo_n "(cached) " >&6
3149 1.1 christos else
3150 1.1 christos ac_save_c_werror_flag=$ac_c_werror_flag
3151 1.1 christos ac_c_werror_flag=yes
3152 1.1 christos ac_cv_prog_cc_g=no
3153 1.1 christos CFLAGS="-g"
3154 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3155 1.1 christos /* end confdefs.h. */
3156 1.1 christos
3157 1.1 christos int
3158 1.1 christos main ()
3159 1.1 christos {
3160 1.1 christos
3161 1.1 christos ;
3162 1.1 christos return 0;
3163 1.1 christos }
3164 1.1 christos _ACEOF
3165 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
3166 1.1 christos ac_cv_prog_cc_g=yes
3167 1.1 christos else
3168 1.1.1.2 christos CFLAGS=""
3169 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170 1.1 christos /* end confdefs.h. */
3171 1.1 christos
3172 1.1 christos int
3173 1.1 christos main ()
3174 1.1 christos {
3175 1.1 christos
3176 1.1 christos ;
3177 1.1 christos return 0;
3178 1.1 christos }
3179 1.1 christos _ACEOF
3180 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
3181 1.1 christos
3182 1.1.1.2 christos else
3183 1.1.1.2 christos ac_c_werror_flag=$ac_save_c_werror_flag
3184 1.1 christos CFLAGS="-g"
3185 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3186 1.1 christos /* end confdefs.h. */
3187 1.1 christos
3188 1.1 christos int
3189 1.1 christos main ()
3190 1.1 christos {
3191 1.1 christos
3192 1.1 christos ;
3193 1.1 christos return 0;
3194 1.1 christos }
3195 1.1 christos _ACEOF
3196 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
3197 1.1 christos ac_cv_prog_cc_g=yes
3198 1.1 christos fi
3199 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 1.1 christos fi
3201 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 1.1 christos fi
3203 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 1.1 christos ac_c_werror_flag=$ac_save_c_werror_flag
3205 1.1 christos fi
3206 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3207 1.1.1.2 christos $as_echo "$ac_cv_prog_cc_g" >&6; }
3208 1.1 christos if test "$ac_test_CFLAGS" = set; then
3209 1.1 christos CFLAGS=$ac_save_CFLAGS
3210 1.1 christos elif test $ac_cv_prog_cc_g = yes; then
3211 1.1 christos if test "$GCC" = yes; then
3212 1.1 christos CFLAGS="-g -O2"
3213 1.1 christos else
3214 1.1 christos CFLAGS="-g"
3215 1.1 christos fi
3216 1.1 christos else
3217 1.1 christos if test "$GCC" = yes; then
3218 1.1 christos CFLAGS="-O2"
3219 1.1 christos else
3220 1.1 christos CFLAGS=
3221 1.1 christos fi
3222 1.1 christos fi
3223 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3224 1.1.1.2 christos $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3225 1.1.1.3 christos if ${ac_cv_prog_cc_c89+:} false; then :
3226 1.1.1.2 christos $as_echo_n "(cached) " >&6
3227 1.1 christos else
3228 1.1 christos ac_cv_prog_cc_c89=no
3229 1.1 christos ac_save_CC=$CC
3230 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3231 1.1 christos /* end confdefs.h. */
3232 1.1 christos #include <stdarg.h>
3233 1.1 christos #include <stdio.h>
3234 1.1.1.3 christos struct stat;
3235 1.1 christos /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3236 1.1 christos struct buf { int x; };
3237 1.1 christos FILE * (*rcsopen) (struct buf *, struct stat *, int);
3238 1.1 christos static char *e (p, i)
3239 1.1 christos char **p;
3240 1.1 christos int i;
3241 1.1 christos {
3242 1.1 christos return p[i];
3243 1.1 christos }
3244 1.1 christos static char *f (char * (*g) (char **, int), char **p, ...)
3245 1.1 christos {
3246 1.1 christos char *s;
3247 1.1 christos va_list v;
3248 1.1 christos va_start (v,p);
3249 1.1 christos s = g (p, va_arg (v,int));
3250 1.1 christos va_end (v);
3251 1.1 christos return s;
3252 1.1 christos }
3253 1.1 christos
3254 1.1 christos /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3255 1.1 christos function prototypes and stuff, but not '\xHH' hex character constants.
3256 1.1 christos These don't provoke an error unfortunately, instead are silently treated
3257 1.1 christos as 'x'. The following induces an error, until -std is added to get
3258 1.1 christos proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3259 1.1 christos array size at least. It's necessary to write '\x00'==0 to get something
3260 1.1 christos that's true only with -std. */
3261 1.1 christos int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3262 1.1 christos
3263 1.1 christos /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3264 1.1 christos inside strings and character constants. */
3265 1.1 christos #define FOO(x) 'x'
3266 1.1 christos int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3267 1.1 christos
3268 1.1 christos int test (int i, double x);
3269 1.1 christos struct s1 {int (*f) (int a);};
3270 1.1 christos struct s2 {int (*f) (double a);};
3271 1.1 christos int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3272 1.1 christos int argc;
3273 1.1 christos char **argv;
3274 1.1 christos int
3275 1.1 christos main ()
3276 1.1 christos {
3277 1.1 christos return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3278 1.1 christos ;
3279 1.1 christos return 0;
3280 1.1 christos }
3281 1.1 christos _ACEOF
3282 1.1 christos for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3283 1.1 christos -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3284 1.1 christos do
3285 1.1 christos CC="$ac_save_CC $ac_arg"
3286 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
3287 1.1 christos ac_cv_prog_cc_c89=$ac_arg
3288 1.1 christos fi
3289 1.1 christos rm -f core conftest.err conftest.$ac_objext
3290 1.1 christos test "x$ac_cv_prog_cc_c89" != "xno" && break
3291 1.1 christos done
3292 1.1 christos rm -f conftest.$ac_ext
3293 1.1 christos CC=$ac_save_CC
3294 1.1 christos
3295 1.1 christos fi
3296 1.1 christos # AC_CACHE_VAL
3297 1.1 christos case "x$ac_cv_prog_cc_c89" in
3298 1.1 christos x)
3299 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3300 1.1.1.2 christos $as_echo "none needed" >&6; } ;;
3301 1.1 christos xno)
3302 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3303 1.1.1.2 christos $as_echo "unsupported" >&6; } ;;
3304 1.1 christos *)
3305 1.1 christos CC="$CC $ac_cv_prog_cc_c89"
3306 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3307 1.1.1.2 christos $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3308 1.1 christos esac
3309 1.1.1.2 christos if test "x$ac_cv_prog_cc_c89" != xno; then :
3310 1.1 christos
3311 1.1.1.2 christos fi
3312 1.1 christos
3313 1.1 christos ac_ext=c
3314 1.1 christos ac_cpp='$CPP $CPPFLAGS'
3315 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3316 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3317 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
3318 1.1 christos
3319 1.1 christos
3320 1.1 christos
3321 1.1 christos
3322 1.1 christos
3323 1.1.1.5.2.1 pgoyette
3324 1.1 christos if test "$GCC" = yes ; then
3325 1.1.1.3 christos #
3326 1.1.1.3 christos # -Werror forces warnings to be errors.
3327 1.1.1.3 christos #
3328 1.1.1.3 christos ac_lbl_cc_force_warning_errors=-Werror
3329 1.1.1.5.2.1 pgoyette
3330 1.1.1.5.2.1 pgoyette #
3331 1.1.1.5.2.1 pgoyette # Try to have the compiler default to hiding symbols,
3332 1.1.1.5.2.1 pgoyette # so that only symbols explicitly exported with
3333 1.1.1.5.2.1 pgoyette # PCAP_API will be visible outside (shared) libraries.
3334 1.1.1.5.2.1 pgoyette #
3335 1.1.1.5.2.1 pgoyette
3336 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
3337 1.1.1.5.2.1 pgoyette $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
3338 1.1.1.5.2.1 pgoyette save_CFLAGS="$CFLAGS"
3339 1.1.1.5.2.1 pgoyette if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null
3340 1.1.1.5.2.1 pgoyette then
3341 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
3342 1.1.1.5.2.1 pgoyette elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null
3343 1.1.1.5.2.1 pgoyette then
3344 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3345 1.1.1.5.2.1 pgoyette elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null
3346 1.1.1.5.2.1 pgoyette then
3347 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3348 1.1.1.5.2.1 pgoyette else
3349 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS -fvisibility=hidden"
3350 1.1.1.5.2.1 pgoyette fi
3351 1.1.1.5.2.1 pgoyette cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352 1.1.1.5.2.1 pgoyette /* end confdefs.h. */
3353 1.1.1.5.2.1 pgoyette
3354 1.1.1.5.2.1 pgoyette int
3355 1.1.1.5.2.1 pgoyette main ()
3356 1.1.1.5.2.1 pgoyette {
3357 1.1.1.5.2.1 pgoyette return 0
3358 1.1.1.5.2.1 pgoyette ;
3359 1.1.1.5.2.1 pgoyette return 0;
3360 1.1.1.5.2.1 pgoyette }
3361 1.1.1.5.2.1 pgoyette _ACEOF
3362 1.1.1.5.2.1 pgoyette if ac_fn_c_try_compile "$LINENO"; then :
3363 1.1.1.5.2.1 pgoyette
3364 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3365 1.1.1.5.2.1 pgoyette $as_echo "yes" >&6; }
3366 1.1.1.5.2.1 pgoyette CFLAGS="$save_CFLAGS"
3367 1.1.1.5.2.1 pgoyette V_CCOPT="$V_CCOPT -fvisibility=hidden"
3368 1.1.1.5.2.1 pgoyette
3369 1.1.1.5.2.1 pgoyette else
3370 1.1.1.5.2.1 pgoyette
3371 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3372 1.1.1.5.2.1 pgoyette $as_echo "no" >&6; }
3373 1.1.1.5.2.1 pgoyette CFLAGS="$save_CFLAGS"
3374 1.1.1.5.2.1 pgoyette
3375 1.1.1.5.2.1 pgoyette fi
3376 1.1.1.5.2.1 pgoyette rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3377 1.1.1.5.2.1 pgoyette
3378 1.1 christos else
3379 1.1 christos V_INCLS="$V_INCLS -I/usr/local/include"
3380 1.1 christos LDFLAGS="$LDFLAGS -L/usr/local/lib"
3381 1.1 christos
3382 1.1 christos case "$host_os" in
3383 1.1 christos
3384 1.1.1.3 christos darwin*)
3385 1.1.1.3 christos #
3386 1.1.1.3 christos # This is assumed either to be GCC or clang, both
3387 1.1.1.3 christos # of which use -Werror to force warnings to be errors.
3388 1.1.1.3 christos #
3389 1.1.1.3 christos ac_lbl_cc_force_warning_errors=-Werror
3390 1.1.1.5.2.1 pgoyette
3391 1.1.1.5.2.1 pgoyette #
3392 1.1.1.5.2.1 pgoyette # Try to have the compiler default to hiding symbols,
3393 1.1.1.5.2.1 pgoyette # so that only symbols explicitly exported with
3394 1.1.1.5.2.1 pgoyette # PCAP_API will be visible outside (shared) libraries.
3395 1.1.1.5.2.1 pgoyette #
3396 1.1.1.5.2.1 pgoyette
3397 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
3398 1.1.1.5.2.1 pgoyette $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
3399 1.1.1.5.2.1 pgoyette save_CFLAGS="$CFLAGS"
3400 1.1.1.5.2.1 pgoyette if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null
3401 1.1.1.5.2.1 pgoyette then
3402 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
3403 1.1.1.5.2.1 pgoyette elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null
3404 1.1.1.5.2.1 pgoyette then
3405 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3406 1.1.1.5.2.1 pgoyette elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null
3407 1.1.1.5.2.1 pgoyette then
3408 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3409 1.1.1.5.2.1 pgoyette else
3410 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS -fvisibility=hidden"
3411 1.1.1.5.2.1 pgoyette fi
3412 1.1.1.5.2.1 pgoyette cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 1.1.1.5.2.1 pgoyette /* end confdefs.h. */
3414 1.1.1.5.2.1 pgoyette
3415 1.1.1.5.2.1 pgoyette int
3416 1.1.1.5.2.1 pgoyette main ()
3417 1.1.1.5.2.1 pgoyette {
3418 1.1.1.5.2.1 pgoyette return 0
3419 1.1.1.5.2.1 pgoyette ;
3420 1.1.1.5.2.1 pgoyette return 0;
3421 1.1.1.5.2.1 pgoyette }
3422 1.1.1.5.2.1 pgoyette _ACEOF
3423 1.1.1.5.2.1 pgoyette if ac_fn_c_try_compile "$LINENO"; then :
3424 1.1.1.5.2.1 pgoyette
3425 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3426 1.1.1.5.2.1 pgoyette $as_echo "yes" >&6; }
3427 1.1.1.5.2.1 pgoyette CFLAGS="$save_CFLAGS"
3428 1.1.1.5.2.1 pgoyette V_CCOPT="$V_CCOPT -fvisibility=hidden"
3429 1.1.1.5.2.1 pgoyette
3430 1.1.1.5.2.1 pgoyette else
3431 1.1.1.5.2.1 pgoyette
3432 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3433 1.1.1.5.2.1 pgoyette $as_echo "no" >&6; }
3434 1.1.1.5.2.1 pgoyette CFLAGS="$save_CFLAGS"
3435 1.1.1.5.2.1 pgoyette
3436 1.1.1.5.2.1 pgoyette fi
3437 1.1.1.5.2.1 pgoyette rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3438 1.1.1.5.2.1 pgoyette
3439 1.1.1.3 christos ;;
3440 1.1.1.3 christos
3441 1.1.1.3 christos hpux*)
3442 1.1.1.3 christos #
3443 1.1.1.3 christos # HP C, which is what we presume we're using, doesn't
3444 1.1.1.3 christos # exit with a non-zero exit status if we hand it an
3445 1.1.1.3 christos # invalid -W flag, can't be forced to do so even with
3446 1.1.1.3 christos # +We, and doesn't handle GCC-style -W flags, so we
3447 1.1.1.3 christos # don't want to try using GCC-style -W flags.
3448 1.1.1.3 christos #
3449 1.1.1.3 christos ac_lbl_cc_dont_try_gcc_dashW=yes
3450 1.1.1.3 christos ;;
3451 1.1.1.3 christos
3452 1.1 christos irix*)
3453 1.1.1.3 christos #
3454 1.1.1.3 christos # MIPS C, which is what we presume we're using, doesn't
3455 1.1.1.3 christos # necessarily exit with a non-zero exit status if we
3456 1.1.1.3 christos # hand it an invalid -W flag, can't be forced to do
3457 1.1.1.3 christos # so, and doesn't handle GCC-style -W flags, so we
3458 1.1.1.3 christos # don't want to try using GCC-style -W flags.
3459 1.1.1.3 christos #
3460 1.1.1.3 christos ac_lbl_cc_dont_try_gcc_dashW=yes
3461 1.1.1.3 christos #
3462 1.1.1.3 christos # It also, apparently, defaults to "char" being
3463 1.1.1.3 christos # unsigned, unlike most other C implementations;
3464 1.1.1.3 christos # I suppose we could say "signed char" whenever
3465 1.1.1.3 christos # we want to guarantee a signed "char", but let's
3466 1.1.1.3 christos # just force signed chars.
3467 1.1.1.3 christos #
3468 1.1.1.3 christos # -xansi is normally the default, but the
3469 1.1.1.3 christos # configure script was setting it; perhaps -cckr
3470 1.1.1.3 christos # was the default in the Old Days. (Then again,
3471 1.1.1.3 christos # that would probably be for backwards compatibility
3472 1.1.1.3 christos # in the days when ANSI C was Shiny and New, i.e.
3473 1.1.1.3 christos # 1989 and the early '90's, so maybe we can just
3474 1.1.1.3 christos # drop support for those compilers.)
3475 1.1.1.3 christos #
3476 1.1.1.3 christos # -g is equivalent to -g2, which turns off
3477 1.1.1.3 christos # optimization; we choose -g3, which generates
3478 1.1.1.3 christos # debugging information but doesn't turn off
3479 1.1.1.3 christos # optimization (even if the optimization would
3480 1.1.1.3 christos # cause inaccuracies in debugging).
3481 1.1.1.3 christos #
3482 1.1 christos V_CCOPT="$V_CCOPT -xansi -signed -g3"
3483 1.1 christos ;;
3484 1.1 christos
3485 1.1 christos osf*)
3486 1.1.1.3 christos #
3487 1.1 christos # Presumed to be DEC OSF/1, Digital UNIX, or
3488 1.1 christos # Tru64 UNIX.
3489 1.1 christos #
3490 1.1.1.3 christos # The DEC C compiler, which is what we presume we're
3491 1.1.1.3 christos # using, doesn't exit with a non-zero exit status if we
3492 1.1.1.3 christos # hand it an invalid -W flag, can't be forced to do
3493 1.1.1.3 christos # so, and doesn't handle GCC-style -W flags, so we
3494 1.1.1.3 christos # don't want to try using GCC-style -W flags.
3495 1.1.1.3 christos #
3496 1.1.1.3 christos ac_lbl_cc_dont_try_gcc_dashW=yes
3497 1.1.1.3 christos #
3498 1.1.1.3 christos # -g is equivalent to -g2, which turns off
3499 1.1.1.3 christos # optimization; we choose -g3, which generates
3500 1.1.1.3 christos # debugging information but doesn't turn off
3501 1.1.1.3 christos # optimization (even if the optimization would
3502 1.1.1.3 christos # cause inaccuracies in debugging).
3503 1.1.1.3 christos #
3504 1.1 christos V_CCOPT="$V_CCOPT -g3"
3505 1.1 christos ;;
3506 1.1 christos
3507 1.1.1.3 christos solaris*)
3508 1.1.1.3 christos #
3509 1.1.1.3 christos # Assumed to be Sun C, which requires -errwarn to force
3510 1.1.1.3 christos # warnings to be treated as errors.
3511 1.1.1.3 christos #
3512 1.1.1.3 christos ac_lbl_cc_force_warning_errors=-errwarn
3513 1.1.1.5.2.1 pgoyette
3514 1.1.1.5.2.1 pgoyette #
3515 1.1.1.5.2.1 pgoyette # Try to have the compiler default to hiding symbols,
3516 1.1.1.5.2.1 pgoyette # so that only symbols explicitly exported with
3517 1.1.1.5.2.1 pgoyette # PCAP_API will be visible outside (shared) libraries.
3518 1.1.1.5.2.1 pgoyette #
3519 1.1.1.5.2.1 pgoyette
3520 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -xldscope=hidden option" >&5
3521 1.1.1.5.2.1 pgoyette $as_echo_n "checking whether the compiler supports the -xldscope=hidden option... " >&6; }
3522 1.1.1.5.2.1 pgoyette save_CFLAGS="$CFLAGS"
3523 1.1.1.5.2.1 pgoyette if expr "x-xldscope=hidden" : "x-W.*" >/dev/null
3524 1.1.1.5.2.1 pgoyette then
3525 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -xldscope=hidden"
3526 1.1.1.5.2.1 pgoyette elif expr "x-xldscope=hidden" : "x-f.*" >/dev/null
3527 1.1.1.5.2.1 pgoyette then
3528 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS -Werror -xldscope=hidden"
3529 1.1.1.5.2.1 pgoyette elif expr "x-xldscope=hidden" : "x-m.*" >/dev/null
3530 1.1.1.5.2.1 pgoyette then
3531 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS -Werror -xldscope=hidden"
3532 1.1.1.5.2.1 pgoyette else
3533 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS -xldscope=hidden"
3534 1.1.1.5.2.1 pgoyette fi
3535 1.1.1.5.2.1 pgoyette cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 1.1.1.5.2.1 pgoyette /* end confdefs.h. */
3537 1.1.1.5.2.1 pgoyette
3538 1.1.1.5.2.1 pgoyette int
3539 1.1.1.5.2.1 pgoyette main ()
3540 1.1.1.5.2.1 pgoyette {
3541 1.1.1.5.2.1 pgoyette return 0
3542 1.1.1.5.2.1 pgoyette ;
3543 1.1.1.5.2.1 pgoyette return 0;
3544 1.1.1.5.2.1 pgoyette }
3545 1.1.1.5.2.1 pgoyette _ACEOF
3546 1.1.1.5.2.1 pgoyette if ac_fn_c_try_compile "$LINENO"; then :
3547 1.1.1.5.2.1 pgoyette
3548 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3549 1.1.1.5.2.1 pgoyette $as_echo "yes" >&6; }
3550 1.1.1.5.2.1 pgoyette CFLAGS="$save_CFLAGS"
3551 1.1.1.5.2.1 pgoyette V_CCOPT="$V_CCOPT -xldscope=hidden"
3552 1.1.1.5.2.1 pgoyette
3553 1.1.1.5.2.1 pgoyette else
3554 1.1.1.5.2.1 pgoyette
3555 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3556 1.1.1.5.2.1 pgoyette $as_echo "no" >&6; }
3557 1.1.1.5.2.1 pgoyette CFLAGS="$save_CFLAGS"
3558 1.1.1.5.2.1 pgoyette
3559 1.1.1.5.2.1 pgoyette fi
3560 1.1.1.5.2.1 pgoyette rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3561 1.1.1.5.2.1 pgoyette
3562 1.1.1.3 christos ;;
3563 1.1.1.3 christos
3564 1.1 christos ultrix*)
3565 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5
3566 1.1.1.2 christos $as_echo_n "checking that Ultrix $CC hacks const in prototypes... " >&6; }
3567 1.1.1.3 christos if ${ac_cv_lbl_cc_const_proto+:} false; then :
3568 1.1.1.2 christos $as_echo_n "(cached) " >&6
3569 1.1 christos else
3570 1.1.1.5.2.1 pgoyette cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 1.1 christos /* end confdefs.h. */
3572 1.1 christos #include <sys/types.h>
3573 1.1 christos int
3574 1.1 christos main ()
3575 1.1 christos {
3576 1.1 christos struct a { int b; };
3577 1.1 christos void c(const struct a *)
3578 1.1 christos ;
3579 1.1 christos return 0;
3580 1.1 christos }
3581 1.1 christos _ACEOF
3582 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
3583 1.1 christos ac_cv_lbl_cc_const_proto=yes
3584 1.1 christos else
3585 1.1.1.2 christos ac_cv_lbl_cc_const_proto=no
3586 1.1 christos fi
3587 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588 1.1 christos fi
3589 1.1 christos
3590 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5
3591 1.1.1.2 christos $as_echo "$ac_cv_lbl_cc_const_proto" >&6; }
3592 1.1 christos if test $ac_cv_lbl_cc_const_proto = no ; then
3593 1.1 christos
3594 1.1.1.2 christos $as_echo "#define const /**/" >>confdefs.h
3595 1.1 christos
3596 1.1 christos fi
3597 1.1 christos ;;
3598 1.1 christos esac
3599 1.1.1.3 christos V_CCOPT="$V_CCOPT -O"
3600 1.1 christos fi
3601 1.1 christos
3602 1.1 christos
3603 1.1 christos if test "$GCC" = yes ; then
3604 1.1 christos #
3605 1.1 christos # On platforms where we build a shared library:
3606 1.1 christos #
3607 1.1 christos # add options to generate position-independent code,
3608 1.1 christos # if necessary (it's the default in AIX and Darwin/OS X);
3609 1.1 christos #
3610 1.1 christos # define option to set the soname of the shared library,
3611 1.1 christos # if the OS supports that;
3612 1.1 christos #
3613 1.1 christos # add options to specify, at link time, a directory to
3614 1.1 christos # add to the run-time search path, if that's necessary.
3615 1.1 christos #
3616 1.1 christos V_SHLIB_CMD="\$(CC)"
3617 1.1 christos V_SHLIB_OPT="-shared"
3618 1.1 christos case "$host_os" in
3619 1.1 christos
3620 1.1 christos aix*)
3621 1.1 christos ;;
3622 1.1 christos
3623 1.1 christos freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
3624 1.1 christos #
3625 1.1 christos # Platforms where the linker is the GNU linker
3626 1.1 christos # or accepts command-line arguments like
3627 1.1 christos # those the GNU linker accepts.
3628 1.1 christos #
3629 1.1.1.2 christos # Some instruction sets require -fPIC on some
3630 1.1.1.2 christos # operating systems. Check for them. If you
3631 1.1.1.2 christos # have a combination that requires it, add it
3632 1.1.1.2 christos # here.
3633 1.1.1.2 christos #
3634 1.1.1.2 christos PIC_OPT=-fpic
3635 1.1.1.2 christos case "$host_cpu" in
3636 1.1.1.2 christos
3637 1.1.1.2 christos sparc64*)
3638 1.1.1.2 christos case "$host_os" in
3639 1.1.1.2 christos
3640 1.1.1.3 christos freebsd*|openbsd*)
3641 1.1.1.2 christos PIC_OPT=-fPIC
3642 1.1.1.2 christos ;;
3643 1.1.1.2 christos esac
3644 1.1.1.2 christos ;;
3645 1.1.1.2 christos esac
3646 1.1.1.2 christos V_CCOPT="$V_CCOPT $PIC_OPT"
3647 1.1 christos V_SONAME_OPT="-Wl,-soname,"
3648 1.1 christos V_RPATH_OPT="-Wl,-rpath,"
3649 1.1 christos ;;
3650 1.1 christos
3651 1.1 christos hpux*)
3652 1.1 christos V_CCOPT="$V_CCOPT -fpic"
3653 1.1 christos #
3654 1.1 christos # XXX - this assumes GCC is using the HP linker,
3655 1.1 christos # rather than the GNU linker, and that the "+h"
3656 1.1 christos # option is used on all HP-UX platforms, both .sl
3657 1.1 christos # and .so.
3658 1.1 christos #
3659 1.1 christos V_SONAME_OPT="-Wl,+h,"
3660 1.1 christos #
3661 1.1 christos # By default, directories specifed with -L
3662 1.1 christos # are added to the run-time search path, so
3663 1.1 christos # we don't add them in pcap-config.
3664 1.1 christos #
3665 1.1 christos ;;
3666 1.1 christos
3667 1.1 christos solaris*)
3668 1.1 christos V_CCOPT="$V_CCOPT -fpic"
3669 1.1 christos #
3670 1.1 christos # XXX - this assumes GCC is using the Sun linker,
3671 1.1 christos # rather than the GNU linker.
3672 1.1 christos #
3673 1.1 christos V_SONAME_OPT="-Wl,-h,"
3674 1.1 christos V_RPATH_OPT="-Wl,-R,"
3675 1.1 christos ;;
3676 1.1 christos esac
3677 1.1 christos else
3678 1.1 christos #
3679 1.1 christos # Set the appropriate compiler flags and, on platforms
3680 1.1 christos # where we build a shared library:
3681 1.1 christos #
3682 1.1 christos # add options to generate position-independent code,
3683 1.1 christos # if necessary (it's the default in Darwin/OS X);
3684 1.1 christos #
3685 1.1 christos # if we generate ".so" shared libraries, define the
3686 1.1 christos # appropriate options for building the shared library;
3687 1.1 christos #
3688 1.1 christos # add options to specify, at link time, a directory to
3689 1.1 christos # add to the run-time search path, if that's necessary.
3690 1.1 christos #
3691 1.1 christos # Note: spaces after V_SONAME_OPT are significant; on
3692 1.1 christos # some platforms the soname is passed with a GCC-like
3693 1.1 christos # "-Wl,-soname,{soname}" option, with the soname part
3694 1.1 christos # of the option, while on other platforms the C compiler
3695 1.1 christos # driver takes it as a regular option with the soname
3696 1.1 christos # following the option. The same applies to V_RPATH_OPT.
3697 1.1 christos #
3698 1.1 christos case "$host_os" in
3699 1.1 christos
3700 1.1 christos aix*)
3701 1.1 christos V_SHLIB_CMD="\$(CC)"
3702 1.1 christos V_SHLIB_OPT="-G -bnoentry -bexpall"
3703 1.1 christos ;;
3704 1.1 christos
3705 1.1 christos freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
3706 1.1 christos #
3707 1.1 christos # "cc" is GCC.
3708 1.1 christos #
3709 1.1 christos V_CCOPT="$V_CCOPT -fpic"
3710 1.1 christos V_SHLIB_CMD="\$(CC)"
3711 1.1 christos V_SHLIB_OPT="-shared"
3712 1.1 christos V_SONAME_OPT="-Wl,-soname,"
3713 1.1 christos V_RPATH_OPT="-Wl,-rpath,"
3714 1.1 christos ;;
3715 1.1 christos
3716 1.1 christos hpux*)
3717 1.1 christos V_CCOPT="$V_CCOPT +z"
3718 1.1 christos V_SHLIB_CMD="\$(LD)"
3719 1.1 christos V_SHLIB_OPT="-b"
3720 1.1 christos V_SONAME_OPT="+h "
3721 1.1 christos #
3722 1.1 christos # By default, directories specifed with -L
3723 1.1 christos # are added to the run-time search path, so
3724 1.1 christos # we don't add them in pcap-config.
3725 1.1 christos #
3726 1.1 christos ;;
3727 1.1 christos
3728 1.1 christos osf*)
3729 1.1 christos #
3730 1.1 christos # Presumed to be DEC OSF/1, Digital UNIX, or
3731 1.1 christos # Tru64 UNIX.
3732 1.1 christos #
3733 1.1 christos V_SHLIB_CMD="\$(CC)"
3734 1.1 christos V_SHLIB_OPT="-shared"
3735 1.1 christos V_SONAME_OPT="-soname "
3736 1.1 christos V_RPATH_OPT="-rpath "
3737 1.1 christos ;;
3738 1.1 christos
3739 1.1 christos solaris*)
3740 1.1 christos V_CCOPT="$V_CCOPT -Kpic"
3741 1.1 christos V_SHLIB_CMD="\$(CC)"
3742 1.1 christos V_SHLIB_OPT="-G"
3743 1.1 christos V_SONAME_OPT="-h "
3744 1.1 christos V_RPATH_OPT="-R"
3745 1.1 christos ;;
3746 1.1 christos esac
3747 1.1 christos fi
3748 1.1 christos
3749 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
3750 1.1.1.2 christos $as_echo_n "checking for inline... " >&6; }
3751 1.1 christos save_CFLAGS="$CFLAGS"
3752 1.1 christos CFLAGS="$V_CCOPT"
3753 1.1.1.3 christos if ${ac_cv_lbl_inline+:} false; then :
3754 1.1.1.2 christos $as_echo_n "(cached) " >&6
3755 1.1 christos else
3756 1.1 christos
3757 1.1 christos ac_cv_lbl_inline=""
3758 1.1 christos ac_lbl_cc_inline=no
3759 1.1 christos for ac_lbl_inline in inline __inline__ __inline
3760 1.1 christos do
3761 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 1.1 christos /* end confdefs.h. */
3763 1.1 christos #define inline $ac_lbl_inline
3764 1.1 christos static inline struct iltest *foo(void);
3765 1.1 christos struct iltest {
3766 1.1 christos int iltest1;
3767 1.1 christos int iltest2;
3768 1.1 christos };
3769 1.1 christos
3770 1.1 christos static inline struct iltest *
3771 1.1 christos foo()
3772 1.1 christos {
3773 1.1 christos static struct iltest xxx;
3774 1.1 christos
3775 1.1 christos return &xxx;
3776 1.1 christos }
3777 1.1 christos int
3778 1.1 christos main ()
3779 1.1 christos {
3780 1.1 christos
3781 1.1 christos ;
3782 1.1 christos return 0;
3783 1.1 christos }
3784 1.1 christos _ACEOF
3785 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
3786 1.1 christos ac_lbl_cc_inline=yes
3787 1.1 christos fi
3788 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789 1.1 christos if test "$ac_lbl_cc_inline" = yes ; then
3790 1.1 christos break;
3791 1.1 christos fi
3792 1.1 christos done
3793 1.1 christos if test "$ac_lbl_cc_inline" = yes ; then
3794 1.1 christos ac_cv_lbl_inline=$ac_lbl_inline
3795 1.1 christos fi
3796 1.1 christos fi
3797 1.1 christos
3798 1.1 christos CFLAGS="$save_CFLAGS"
3799 1.1 christos if test ! -z "$ac_cv_lbl_inline" ; then
3800 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5
3801 1.1.1.2 christos $as_echo "$ac_cv_lbl_inline" >&6; }
3802 1.1 christos else
3803 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3804 1.1.1.2 christos $as_echo "no" >&6; }
3805 1.1 christos fi
3806 1.1 christos
3807 1.1 christos cat >>confdefs.h <<_ACEOF
3808 1.1 christos #define inline $ac_cv_lbl_inline
3809 1.1 christos _ACEOF
3810 1.1 christos
3811 1.1 christos
3812 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
3813 1.1.1.2 christos $as_echo_n "checking for __attribute__... " >&6; }
3814 1.1.1.3 christos if ${ac_cv___attribute__+:} false; then :
3815 1.1.1.2 christos $as_echo_n "(cached) " >&6
3816 1.1 christos else
3817 1.1 christos
3818 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 1.1 christos /* end confdefs.h. */
3820 1.1 christos
3821 1.1.1.3 christos
3822 1.1 christos #include <stdlib.h>
3823 1.1 christos
3824 1.1 christos static void foo(void) __attribute__ ((noreturn));
3825 1.1 christos
3826 1.1 christos static void
3827 1.1 christos foo(void)
3828 1.1 christos {
3829 1.1 christos exit(1);
3830 1.1 christos }
3831 1.1 christos
3832 1.1 christos int
3833 1.1 christos main(int argc, char **argv)
3834 1.1 christos {
3835 1.1 christos foo();
3836 1.1 christos }
3837 1.1 christos
3838 1.1 christos _ACEOF
3839 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
3840 1.1 christos ac_cv___attribute__=yes
3841 1.1 christos else
3842 1.1.1.2 christos ac_cv___attribute__=no
3843 1.1 christos fi
3844 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3845 1.1 christos fi
3846 1.1 christos
3847 1.1 christos if test "$ac_cv___attribute__" = "yes"; then
3848 1.1 christos
3849 1.1.1.2 christos $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
3850 1.1 christos
3851 1.1 christos else
3852 1.1.1.3 christos #
3853 1.1.1.3 christos # We can't use __attribute__, so we can't use __attribute__((unused)),
3854 1.1.1.3 christos # so we define _U_ to an empty string.
3855 1.1.1.3 christos #
3856 1.1 christos V_DEFS="$V_DEFS -D_U_=\"\""
3857 1.1 christos fi
3858 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
3859 1.1.1.2 christos $as_echo "$ac_cv___attribute__" >&6; }
3860 1.1 christos
3861 1.1.1.3 christos if test "$ac_cv___attribute__" = "yes"; then
3862 1.1.1.3 christos
3863 1.1.1.3 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) can be used without warnings" >&5
3864 1.1.1.3 christos $as_echo_n "checking whether __attribute__((unused)) can be used without warnings... " >&6; }
3865 1.1.1.3 christos if ${ac_cv___attribute___unused+:} false; then :
3866 1.1.1.3 christos $as_echo_n "(cached) " >&6
3867 1.1.1.3 christos else
3868 1.1.1.3 christos
3869 1.1.1.3 christos save_CFLAGS="$CFLAGS"
3870 1.1.1.3 christos CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3871 1.1.1.3 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872 1.1.1.3 christos /* end confdefs.h. */
3873 1.1.1.3 christos
3874 1.1.1.3 christos
3875 1.1.1.3 christos #include <stdlib.h>
3876 1.1.1.3 christos #include <stdio.h>
3877 1.1.1.3 christos
3878 1.1.1.3 christos int
3879 1.1.1.3 christos main(int argc __attribute((unused)), char **argv __attribute((unused)))
3880 1.1.1.3 christos {
3881 1.1.1.3 christos printf("Hello, world!\n");
3882 1.1.1.3 christos return 0;
3883 1.1.1.3 christos }
3884 1.1.1.3 christos
3885 1.1.1.3 christos _ACEOF
3886 1.1.1.3 christos if ac_fn_c_try_compile "$LINENO"; then :
3887 1.1.1.3 christos ac_cv___attribute___unused=yes
3888 1.1.1.3 christos else
3889 1.1.1.3 christos ac_cv___attribute___unused=no
3890 1.1.1.3 christos fi
3891 1.1.1.3 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892 1.1.1.3 christos fi
3893 1.1.1.3 christos
3894 1.1.1.3 christos CFLAGS="$save_CFLAGS"
3895 1.1.1.3 christos if test "$ac_cv___attribute___unused" = "yes"; then
3896 1.1.1.3 christos V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3897 1.1.1.3 christos else
3898 1.1.1.3 christos V_DEFS="$V_DEFS -D_U_=\"\""
3899 1.1.1.3 christos fi
3900 1.1.1.3 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute___unused" >&5
3901 1.1.1.3 christos $as_echo "$ac_cv___attribute___unused" >&6; }
3902 1.1.1.3 christos
3903 1.1.1.3 christos
3904 1.1.1.3 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((format)) can be used without warnings" >&5
3905 1.1.1.3 christos $as_echo_n "checking whether __attribute__((format)) can be used without warnings... " >&6; }
3906 1.1.1.3 christos if ${ac_cv___attribute___format+:} false; then :
3907 1.1.1.3 christos $as_echo_n "(cached) " >&6
3908 1.1.1.3 christos else
3909 1.1.1.3 christos
3910 1.1.1.3 christos save_CFLAGS="$CFLAGS"
3911 1.1.1.3 christos CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3912 1.1.1.3 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913 1.1.1.3 christos /* end confdefs.h. */
3914 1.1.1.3 christos
3915 1.1.1.3 christos
3916 1.1.1.3 christos #include <stdlib.h>
3917 1.1.1.3 christos
3918 1.1.1.3 christos extern int foo(const char *fmt, ...)
3919 1.1.1.3 christos __attribute__ ((format (printf, 1, 2)));
3920 1.1.1.3 christos
3921 1.1.1.3 christos int
3922 1.1.1.3 christos main(int argc, char **argv)
3923 1.1.1.3 christos {
3924 1.1.1.3 christos foo("%s", "test");
3925 1.1.1.3 christos }
3926 1.1.1.3 christos
3927 1.1.1.3 christos _ACEOF
3928 1.1.1.3 christos if ac_fn_c_try_compile "$LINENO"; then :
3929 1.1.1.3 christos ac_cv___attribute___format=yes
3930 1.1.1.3 christos else
3931 1.1.1.3 christos ac_cv___attribute___format=no
3932 1.1.1.3 christos fi
3933 1.1.1.3 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3934 1.1.1.3 christos fi
3935 1.1.1.3 christos
3936 1.1.1.3 christos CFLAGS="$save_CFLAGS"
3937 1.1.1.3 christos if test "$ac_cv___attribute___format" = "yes"; then
3938 1.1.1.3 christos
3939 1.1.1.3 christos $as_echo "#define __ATTRIBUTE___FORMAT_OK 1" >>confdefs.h
3940 1.1.1.3 christos
3941 1.1.1.3 christos fi
3942 1.1.1.3 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute___format" >&5
3943 1.1.1.3 christos $as_echo "$ac_cv___attribute___format" >&6; }
3944 1.1.1.3 christos
3945 1.1.1.3 christos fi
3946 1.1 christos
3947 1.1 christos ac_ext=c
3948 1.1 christos ac_cpp='$CPP $CPPFLAGS'
3949 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3950 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3951 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
3952 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3953 1.1.1.2 christos $as_echo_n "checking how to run the C preprocessor... " >&6; }
3954 1.1 christos # On Suns, sometimes $CPP names a directory.
3955 1.1 christos if test -n "$CPP" && test -d "$CPP"; then
3956 1.1 christos CPP=
3957 1.1 christos fi
3958 1.1 christos if test -z "$CPP"; then
3959 1.1.1.3 christos if ${ac_cv_prog_CPP+:} false; then :
3960 1.1.1.2 christos $as_echo_n "(cached) " >&6
3961 1.1 christos else
3962 1.1 christos # Double quotes because CPP needs to be expanded
3963 1.1 christos for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3964 1.1 christos do
3965 1.1 christos ac_preproc_ok=false
3966 1.1 christos for ac_c_preproc_warn_flag in '' yes
3967 1.1 christos do
3968 1.1 christos # Use a header file that comes with gcc, so configuring glibc
3969 1.1 christos # with a fresh cross-compiler works.
3970 1.1 christos # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3971 1.1 christos # <limits.h> exists even on freestanding compilers.
3972 1.1 christos # On the NeXT, cc -E runs the code through the compiler's parser,
3973 1.1 christos # not just through cpp. "Syntax error" is here to catch this case.
3974 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975 1.1 christos /* end confdefs.h. */
3976 1.1 christos #ifdef __STDC__
3977 1.1 christos # include <limits.h>
3978 1.1 christos #else
3979 1.1 christos # include <assert.h>
3980 1.1 christos #endif
3981 1.1 christos Syntax error
3982 1.1 christos _ACEOF
3983 1.1.1.2 christos if ac_fn_c_try_cpp "$LINENO"; then :
3984 1.1 christos
3985 1.1.1.2 christos else
3986 1.1 christos # Broken: fails on valid input.
3987 1.1 christos continue
3988 1.1 christos fi
3989 1.1.1.2 christos rm -f conftest.err conftest.i conftest.$ac_ext
3990 1.1 christos
3991 1.1 christos # OK, works on sane cases. Now check whether nonexistent headers
3992 1.1 christos # can be detected and how.
3993 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 1.1 christos /* end confdefs.h. */
3995 1.1 christos #include <ac_nonexistent.h>
3996 1.1 christos _ACEOF
3997 1.1.1.2 christos if ac_fn_c_try_cpp "$LINENO"; then :
3998 1.1 christos # Broken: success on invalid input.
3999 1.1 christos continue
4000 1.1 christos else
4001 1.1 christos # Passes both tests.
4002 1.1 christos ac_preproc_ok=:
4003 1.1 christos break
4004 1.1 christos fi
4005 1.1.1.2 christos rm -f conftest.err conftest.i conftest.$ac_ext
4006 1.1 christos
4007 1.1 christos done
4008 1.1 christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4009 1.1.1.2 christos rm -f conftest.i conftest.err conftest.$ac_ext
4010 1.1.1.2 christos if $ac_preproc_ok; then :
4011 1.1 christos break
4012 1.1 christos fi
4013 1.1 christos
4014 1.1 christos done
4015 1.1 christos ac_cv_prog_CPP=$CPP
4016 1.1 christos
4017 1.1 christos fi
4018 1.1 christos CPP=$ac_cv_prog_CPP
4019 1.1 christos else
4020 1.1 christos ac_cv_prog_CPP=$CPP
4021 1.1 christos fi
4022 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4023 1.1.1.2 christos $as_echo "$CPP" >&6; }
4024 1.1 christos ac_preproc_ok=false
4025 1.1 christos for ac_c_preproc_warn_flag in '' yes
4026 1.1 christos do
4027 1.1 christos # Use a header file that comes with gcc, so configuring glibc
4028 1.1 christos # with a fresh cross-compiler works.
4029 1.1 christos # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4030 1.1 christos # <limits.h> exists even on freestanding compilers.
4031 1.1 christos # On the NeXT, cc -E runs the code through the compiler's parser,
4032 1.1 christos # not just through cpp. "Syntax error" is here to catch this case.
4033 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 1.1 christos /* end confdefs.h. */
4035 1.1 christos #ifdef __STDC__
4036 1.1 christos # include <limits.h>
4037 1.1 christos #else
4038 1.1 christos # include <assert.h>
4039 1.1 christos #endif
4040 1.1 christos Syntax error
4041 1.1 christos _ACEOF
4042 1.1.1.2 christos if ac_fn_c_try_cpp "$LINENO"; then :
4043 1.1 christos
4044 1.1.1.2 christos else
4045 1.1 christos # Broken: fails on valid input.
4046 1.1 christos continue
4047 1.1 christos fi
4048 1.1.1.2 christos rm -f conftest.err conftest.i conftest.$ac_ext
4049 1.1 christos
4050 1.1 christos # OK, works on sane cases. Now check whether nonexistent headers
4051 1.1 christos # can be detected and how.
4052 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 1.1 christos /* end confdefs.h. */
4054 1.1 christos #include <ac_nonexistent.h>
4055 1.1 christos _ACEOF
4056 1.1.1.2 christos if ac_fn_c_try_cpp "$LINENO"; then :
4057 1.1 christos # Broken: success on invalid input.
4058 1.1 christos continue
4059 1.1 christos else
4060 1.1 christos # Passes both tests.
4061 1.1 christos ac_preproc_ok=:
4062 1.1 christos break
4063 1.1 christos fi
4064 1.1.1.2 christos rm -f conftest.err conftest.i conftest.$ac_ext
4065 1.1 christos
4066 1.1 christos done
4067 1.1 christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4068 1.1.1.2 christos rm -f conftest.i conftest.err conftest.$ac_ext
4069 1.1.1.2 christos if $ac_preproc_ok; then :
4070 1.1.1.2 christos
4071 1.1 christos else
4072 1.1.1.2 christos { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4073 1.1.1.2 christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4074 1.1.1.2 christos as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4075 1.1.1.3 christos See \`config.log' for more details" "$LINENO" 5; }
4076 1.1 christos fi
4077 1.1 christos
4078 1.1 christos ac_ext=c
4079 1.1 christos ac_cpp='$CPP $CPPFLAGS'
4080 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4081 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4082 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
4083 1.1 christos
4084 1.1 christos
4085 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4086 1.1.1.2 christos $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4087 1.1.1.3 christos if ${ac_cv_path_GREP+:} false; then :
4088 1.1.1.2 christos $as_echo_n "(cached) " >&6
4089 1.1 christos else
4090 1.1.1.2 christos if test -z "$GREP"; then
4091 1.1 christos ac_path_GREP_found=false
4092 1.1.1.2 christos # Loop through the user's path and test for each of PROGNAME-LIST
4093 1.1.1.2 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 1.1 christos for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4095 1.1 christos do
4096 1.1 christos IFS=$as_save_IFS
4097 1.1 christos test -z "$as_dir" && as_dir=.
4098 1.1.1.2 christos for ac_prog in grep ggrep; do
4099 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
4100 1.1.1.2 christos ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4101 1.1.1.3 christos as_fn_executable_p "$ac_path_GREP" || continue
4102 1.1.1.2 christos # Check for GNU ac_path_GREP and select it if it is found.
4103 1.1 christos # Check for GNU $ac_path_GREP
4104 1.1 christos case `"$ac_path_GREP" --version 2>&1` in
4105 1.1 christos *GNU*)
4106 1.1 christos ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4107 1.1 christos *)
4108 1.1 christos ac_count=0
4109 1.1.1.2 christos $as_echo_n 0123456789 >"conftest.in"
4110 1.1 christos while :
4111 1.1 christos do
4112 1.1 christos cat "conftest.in" "conftest.in" >"conftest.tmp"
4113 1.1 christos mv "conftest.tmp" "conftest.in"
4114 1.1 christos cp "conftest.in" "conftest.nl"
4115 1.1.1.2 christos $as_echo 'GREP' >> "conftest.nl"
4116 1.1 christos "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4117 1.1 christos diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4118 1.1.1.2 christos as_fn_arith $ac_count + 1 && ac_count=$as_val
4119 1.1 christos if test $ac_count -gt ${ac_path_GREP_max-0}; then
4120 1.1 christos # Best one so far, save it but keep looking for a better one
4121 1.1 christos ac_cv_path_GREP="$ac_path_GREP"
4122 1.1 christos ac_path_GREP_max=$ac_count
4123 1.1 christos fi
4124 1.1 christos # 10*(2^10) chars as input seems more than enough
4125 1.1 christos test $ac_count -gt 10 && break
4126 1.1 christos done
4127 1.1 christos rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4128 1.1 christos esac
4129 1.1 christos
4130 1.1.1.2 christos $ac_path_GREP_found && break 3
4131 1.1.1.2 christos done
4132 1.1.1.2 christos done
4133 1.1 christos done
4134 1.1 christos IFS=$as_save_IFS
4135 1.1.1.2 christos if test -z "$ac_cv_path_GREP"; then
4136 1.1.1.2 christos as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4137 1.1.1.2 christos fi
4138 1.1 christos else
4139 1.1 christos ac_cv_path_GREP=$GREP
4140 1.1 christos fi
4141 1.1 christos
4142 1.1 christos fi
4143 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4144 1.1.1.2 christos $as_echo "$ac_cv_path_GREP" >&6; }
4145 1.1 christos GREP="$ac_cv_path_GREP"
4146 1.1 christos
4147 1.1 christos
4148 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4149 1.1.1.2 christos $as_echo_n "checking for egrep... " >&6; }
4150 1.1.1.3 christos if ${ac_cv_path_EGREP+:} false; then :
4151 1.1.1.2 christos $as_echo_n "(cached) " >&6
4152 1.1 christos else
4153 1.1 christos if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4154 1.1 christos then ac_cv_path_EGREP="$GREP -E"
4155 1.1 christos else
4156 1.1.1.2 christos if test -z "$EGREP"; then
4157 1.1 christos ac_path_EGREP_found=false
4158 1.1.1.2 christos # Loop through the user's path and test for each of PROGNAME-LIST
4159 1.1.1.2 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160 1.1 christos for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4161 1.1 christos do
4162 1.1 christos IFS=$as_save_IFS
4163 1.1 christos test -z "$as_dir" && as_dir=.
4164 1.1.1.2 christos for ac_prog in egrep; do
4165 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
4166 1.1.1.2 christos ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4167 1.1.1.3 christos as_fn_executable_p "$ac_path_EGREP" || continue
4168 1.1.1.2 christos # Check for GNU ac_path_EGREP and select it if it is found.
4169 1.1 christos # Check for GNU $ac_path_EGREP
4170 1.1 christos case `"$ac_path_EGREP" --version 2>&1` in
4171 1.1 christos *GNU*)
4172 1.1 christos ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4173 1.1 christos *)
4174 1.1 christos ac_count=0
4175 1.1.1.2 christos $as_echo_n 0123456789 >"conftest.in"
4176 1.1 christos while :
4177 1.1 christos do
4178 1.1 christos cat "conftest.in" "conftest.in" >"conftest.tmp"
4179 1.1 christos mv "conftest.tmp" "conftest.in"
4180 1.1 christos cp "conftest.in" "conftest.nl"
4181 1.1.1.2 christos $as_echo 'EGREP' >> "conftest.nl"
4182 1.1 christos "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4183 1.1 christos diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4184 1.1.1.2 christos as_fn_arith $ac_count + 1 && ac_count=$as_val
4185 1.1 christos if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4186 1.1 christos # Best one so far, save it but keep looking for a better one
4187 1.1 christos ac_cv_path_EGREP="$ac_path_EGREP"
4188 1.1 christos ac_path_EGREP_max=$ac_count
4189 1.1 christos fi
4190 1.1 christos # 10*(2^10) chars as input seems more than enough
4191 1.1 christos test $ac_count -gt 10 && break
4192 1.1 christos done
4193 1.1 christos rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4194 1.1 christos esac
4195 1.1 christos
4196 1.1.1.2 christos $ac_path_EGREP_found && break 3
4197 1.1.1.2 christos done
4198 1.1.1.2 christos done
4199 1.1 christos done
4200 1.1 christos IFS=$as_save_IFS
4201 1.1.1.2 christos if test -z "$ac_cv_path_EGREP"; then
4202 1.1.1.2 christos as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4203 1.1.1.2 christos fi
4204 1.1 christos else
4205 1.1 christos ac_cv_path_EGREP=$EGREP
4206 1.1 christos fi
4207 1.1 christos
4208 1.1 christos fi
4209 1.1 christos fi
4210 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4211 1.1.1.2 christos $as_echo "$ac_cv_path_EGREP" >&6; }
4212 1.1 christos EGREP="$ac_cv_path_EGREP"
4213 1.1 christos
4214 1.1 christos
4215 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4216 1.1.1.2 christos $as_echo_n "checking for ANSI C header files... " >&6; }
4217 1.1.1.3 christos if ${ac_cv_header_stdc+:} false; then :
4218 1.1.1.2 christos $as_echo_n "(cached) " >&6
4219 1.1 christos else
4220 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 1.1 christos /* end confdefs.h. */
4222 1.1 christos #include <stdlib.h>
4223 1.1 christos #include <stdarg.h>
4224 1.1 christos #include <string.h>
4225 1.1 christos #include <float.h>
4226 1.1 christos
4227 1.1 christos int
4228 1.1 christos main ()
4229 1.1 christos {
4230 1.1 christos
4231 1.1 christos ;
4232 1.1 christos return 0;
4233 1.1 christos }
4234 1.1 christos _ACEOF
4235 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
4236 1.1 christos ac_cv_header_stdc=yes
4237 1.1 christos else
4238 1.1.1.2 christos ac_cv_header_stdc=no
4239 1.1 christos fi
4240 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4241 1.1 christos
4242 1.1 christos if test $ac_cv_header_stdc = yes; then
4243 1.1 christos # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4244 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 1.1 christos /* end confdefs.h. */
4246 1.1 christos #include <string.h>
4247 1.1 christos
4248 1.1 christos _ACEOF
4249 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4250 1.1.1.2 christos $EGREP "memchr" >/dev/null 2>&1; then :
4251 1.1.1.2 christos
4252 1.1 christos else
4253 1.1 christos ac_cv_header_stdc=no
4254 1.1 christos fi
4255 1.1.1.2 christos rm -f conftest*
4256 1.1 christos
4257 1.1 christos fi
4258 1.1 christos
4259 1.1 christos if test $ac_cv_header_stdc = yes; then
4260 1.1 christos # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4261 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262 1.1 christos /* end confdefs.h. */
4263 1.1 christos #include <stdlib.h>
4264 1.1 christos
4265 1.1 christos _ACEOF
4266 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4267 1.1.1.2 christos $EGREP "free" >/dev/null 2>&1; then :
4268 1.1.1.2 christos
4269 1.1 christos else
4270 1.1 christos ac_cv_header_stdc=no
4271 1.1 christos fi
4272 1.1.1.2 christos rm -f conftest*
4273 1.1 christos
4274 1.1 christos fi
4275 1.1 christos
4276 1.1 christos if test $ac_cv_header_stdc = yes; then
4277 1.1 christos # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4278 1.1.1.2 christos if test "$cross_compiling" = yes; then :
4279 1.1 christos :
4280 1.1 christos else
4281 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 1.1 christos /* end confdefs.h. */
4283 1.1 christos #include <ctype.h>
4284 1.1 christos #include <stdlib.h>
4285 1.1 christos #if ((' ' & 0x0FF) == 0x020)
4286 1.1 christos # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4287 1.1 christos # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4288 1.1 christos #else
4289 1.1 christos # define ISLOWER(c) \
4290 1.1 christos (('a' <= (c) && (c) <= 'i') \
4291 1.1 christos || ('j' <= (c) && (c) <= 'r') \
4292 1.1 christos || ('s' <= (c) && (c) <= 'z'))
4293 1.1 christos # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4294 1.1 christos #endif
4295 1.1 christos
4296 1.1 christos #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4297 1.1 christos int
4298 1.1 christos main ()
4299 1.1 christos {
4300 1.1 christos int i;
4301 1.1 christos for (i = 0; i < 256; i++)
4302 1.1 christos if (XOR (islower (i), ISLOWER (i))
4303 1.1 christos || toupper (i) != TOUPPER (i))
4304 1.1 christos return 2;
4305 1.1 christos return 0;
4306 1.1 christos }
4307 1.1 christos _ACEOF
4308 1.1.1.2 christos if ac_fn_c_try_run "$LINENO"; then :
4309 1.1 christos
4310 1.1 christos else
4311 1.1.1.2 christos ac_cv_header_stdc=no
4312 1.1 christos fi
4313 1.1.1.2 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4314 1.1.1.2 christos conftest.$ac_objext conftest.beam conftest.$ac_ext
4315 1.1 christos fi
4316 1.1 christos
4317 1.1 christos fi
4318 1.1 christos fi
4319 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4320 1.1.1.2 christos $as_echo "$ac_cv_header_stdc" >&6; }
4321 1.1.1.2 christos if test $ac_cv_header_stdc = yes; then
4322 1.1.1.2 christos
4323 1.1.1.2 christos $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4324 1.1 christos
4325 1.1 christos fi
4326 1.1 christos
4327 1.1.1.2 christos # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4328 1.1.1.2 christos for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4329 1.1.1.2 christos inttypes.h stdint.h unistd.h
4330 1.1.1.2 christos do :
4331 1.1.1.2 christos as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4332 1.1.1.2 christos ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4333 1.1.1.2 christos "
4334 1.1.1.2 christos if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4335 1.1.1.2 christos cat >>confdefs.h <<_ACEOF
4336 1.1.1.2 christos #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4337 1.1 christos _ACEOF
4338 1.1 christos
4339 1.1 christos fi
4340 1.1 christos
4341 1.1.1.2 christos done
4342 1.1.1.2 christos
4343 1.1.1.2 christos
4344 1.1.1.2 christos for ac_header in sys/bitypes.h
4345 1.1.1.2 christos do :
4346 1.1.1.2 christos ac_fn_c_check_header_mongrel "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default"
4347 1.1.1.3 christos if test "x$ac_cv_header_sys_bitypes_h" = xyes; then :
4348 1.1.1.2 christos cat >>confdefs.h <<_ACEOF
4349 1.1.1.2 christos #define HAVE_SYS_BITYPES_H 1
4350 1.1 christos _ACEOF
4351 1.1.1.2 christos
4352 1.1.1.2 christos fi
4353 1.1.1.2 christos
4354 1.1.1.2 christos done
4355 1.1.1.2 christos
4356 1.1.1.2 christos
4357 1.1.1.2 christos ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default
4358 1.1 christos #ifdef HAVE_SYS_BITYPES_H
4359 1.1 christos #include <sys/bitypes.h>
4360 1.1 christos #endif
4361 1.1.1.2 christos "
4362 1.1.1.3 christos if test "x$ac_cv_type_int8_t" = xyes; then :
4363 1.1 christos
4364 1.1 christos else
4365 1.1 christos
4366 1.1.1.2 christos $as_echo "#define int8_t signed char" >>confdefs.h
4367 1.1 christos
4368 1.1 christos fi
4369 1.1.1.2 christos
4370 1.1.1.2 christos ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default
4371 1.1.1.2 christos #ifdef HAVE_SYS_BITYPES_H
4372 1.1.1.2 christos #include <sys/bitypes.h>
4373 1.1.1.2 christos #endif
4374 1.1.1.2 christos "
4375 1.1.1.3 christos if test "x$ac_cv_type_u_int8_t" = xyes; then :
4376 1.1.1.2 christos
4377 1.1 christos else
4378 1.1 christos
4379 1.1.1.2 christos $as_echo "#define u_int8_t unsigned char" >>confdefs.h
4380 1.1 christos
4381 1.1 christos fi
4382 1.1 christos
4383 1.1.1.2 christos ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
4384 1.1.1.3 christos if test "x$ac_cv_type_int16_t" = xyes; then :
4385 1.1.1.2 christos
4386 1.1 christos else
4387 1.1.1.2 christos
4388 1.1.1.2 christos $as_echo "#define int16_t short" >>confdefs.h
4389 1.1.1.2 christos
4390 1.1.1.2 christos $ac_includes_default
4391 1.1 christos #ifdef HAVE_SYS_BITYPES_H
4392 1.1 christos #include <sys/bitypes.h>
4393 1.1 christos #endif
4394 1.1 christos fi
4395 1.1 christos
4396 1.1.1.2 christos ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default
4397 1.1.1.2 christos #ifdef HAVE_SYS_BITYPES_H
4398 1.1.1.2 christos #include <sys/bitypes.h>
4399 1.1.1.2 christos #endif
4400 1.1.1.2 christos "
4401 1.1.1.3 christos if test "x$ac_cv_type_u_int16_t" = xyes; then :
4402 1.1.1.2 christos
4403 1.1 christos else
4404 1.1 christos
4405 1.1.1.2 christos $as_echo "#define u_int16_t unsigned short" >>confdefs.h
4406 1.1 christos
4407 1.1 christos fi
4408 1.1 christos
4409 1.1.1.2 christos ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default
4410 1.1 christos #ifdef HAVE_SYS_BITYPES_H
4411 1.1 christos #include <sys/bitypes.h>
4412 1.1 christos #endif
4413 1.1.1.2 christos "
4414 1.1.1.3 christos if test "x$ac_cv_type_int32_t" = xyes; then :
4415 1.1 christos
4416 1.1 christos else
4417 1.1 christos
4418 1.1.1.2 christos $as_echo "#define int32_t int" >>confdefs.h
4419 1.1 christos
4420 1.1 christos fi
4421 1.1.1.2 christos
4422 1.1.1.2 christos ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default
4423 1.1.1.2 christos #ifdef HAVE_SYS_BITYPES_H
4424 1.1.1.2 christos #include <sys/bitypes.h>
4425 1.1.1.2 christos #endif
4426 1.1.1.2 christos "
4427 1.1.1.3 christos if test "x$ac_cv_type_u_int32_t" = xyes; then :
4428 1.1.1.2 christos
4429 1.1 christos else
4430 1.1 christos
4431 1.1.1.2 christos $as_echo "#define u_int32_t unsigned int" >>confdefs.h
4432 1.1 christos
4433 1.1 christos fi
4434 1.1 christos
4435 1.1.1.2 christos ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default
4436 1.1 christos #ifdef HAVE_SYS_BITYPES_H
4437 1.1 christos #include <sys/bitypes.h>
4438 1.1 christos #endif
4439 1.1.1.2 christos "
4440 1.1.1.3 christos if test "x$ac_cv_type_int64_t" = xyes; then :
4441 1.1 christos
4442 1.1 christos else
4443 1.1 christos
4444 1.1.1.2 christos $as_echo "#define int64_t long long" >>confdefs.h
4445 1.1 christos
4446 1.1 christos fi
4447 1.1.1.2 christos
4448 1.1.1.2 christos ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default
4449 1.1.1.2 christos #ifdef HAVE_SYS_BITYPES_H
4450 1.1.1.2 christos #include <sys/bitypes.h>
4451 1.1.1.2 christos #endif
4452 1.1.1.2 christos "
4453 1.1.1.3 christos if test "x$ac_cv_type_u_int64_t" = xyes; then :
4454 1.1.1.2 christos
4455 1.1 christos else
4456 1.1 christos
4457 1.1.1.2 christos $as_echo "#define u_int64_t unsigned long long" >>confdefs.h
4458 1.1 christos
4459 1.1 christos fi
4460 1.1 christos
4461 1.1 christos
4462 1.1 christos #
4463 1.1 christos # Try to arrange for large file support.
4464 1.1 christos #
4465 1.1 christos # Check whether --enable-largefile was given.
4466 1.1.1.2 christos if test "${enable_largefile+set}" = set; then :
4467 1.1 christos enableval=$enable_largefile;
4468 1.1 christos fi
4469 1.1 christos
4470 1.1 christos if test "$enable_largefile" != no; then
4471 1.1 christos
4472 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4473 1.1.1.2 christos $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4474 1.1.1.3 christos if ${ac_cv_sys_largefile_CC+:} false; then :
4475 1.1.1.2 christos $as_echo_n "(cached) " >&6
4476 1.1 christos else
4477 1.1 christos ac_cv_sys_largefile_CC=no
4478 1.1 christos if test "$GCC" != yes; then
4479 1.1 christos ac_save_CC=$CC
4480 1.1 christos while :; do
4481 1.1 christos # IRIX 6.2 and later do not support large files by default,
4482 1.1 christos # so use the C compiler's -n32 option if that helps.
4483 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484 1.1 christos /* end confdefs.h. */
4485 1.1 christos #include <sys/types.h>
4486 1.1 christos /* Check that off_t can represent 2**63 - 1 correctly.
4487 1.1 christos We can't simply define LARGE_OFF_T to be 9223372036854775807,
4488 1.1 christos since some C++ compilers masquerading as C compilers
4489 1.1 christos incorrectly reject 9223372036854775807. */
4490 1.1 christos #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4491 1.1 christos int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4492 1.1 christos && LARGE_OFF_T % 2147483647 == 1)
4493 1.1 christos ? 1 : -1];
4494 1.1 christos int
4495 1.1 christos main ()
4496 1.1 christos {
4497 1.1 christos
4498 1.1 christos ;
4499 1.1 christos return 0;
4500 1.1 christos }
4501 1.1 christos _ACEOF
4502 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
4503 1.1 christos break
4504 1.1 christos fi
4505 1.1 christos rm -f core conftest.err conftest.$ac_objext
4506 1.1 christos CC="$CC -n32"
4507 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
4508 1.1 christos ac_cv_sys_largefile_CC=' -n32'; break
4509 1.1 christos fi
4510 1.1 christos rm -f core conftest.err conftest.$ac_objext
4511 1.1 christos break
4512 1.1 christos done
4513 1.1 christos CC=$ac_save_CC
4514 1.1 christos rm -f conftest.$ac_ext
4515 1.1 christos fi
4516 1.1 christos fi
4517 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4518 1.1.1.2 christos $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4519 1.1 christos if test "$ac_cv_sys_largefile_CC" != no; then
4520 1.1 christos CC=$CC$ac_cv_sys_largefile_CC
4521 1.1 christos fi
4522 1.1 christos
4523 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4524 1.1.1.2 christos $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4525 1.1.1.3 christos if ${ac_cv_sys_file_offset_bits+:} false; then :
4526 1.1.1.2 christos $as_echo_n "(cached) " >&6
4527 1.1 christos else
4528 1.1 christos while :; do
4529 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 1.1 christos /* end confdefs.h. */
4531 1.1 christos #include <sys/types.h>
4532 1.1 christos /* Check that off_t can represent 2**63 - 1 correctly.
4533 1.1 christos We can't simply define LARGE_OFF_T to be 9223372036854775807,
4534 1.1 christos since some C++ compilers masquerading as C compilers
4535 1.1 christos incorrectly reject 9223372036854775807. */
4536 1.1 christos #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4537 1.1 christos int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4538 1.1 christos && LARGE_OFF_T % 2147483647 == 1)
4539 1.1 christos ? 1 : -1];
4540 1.1 christos int
4541 1.1 christos main ()
4542 1.1 christos {
4543 1.1 christos
4544 1.1 christos ;
4545 1.1 christos return 0;
4546 1.1 christos }
4547 1.1 christos _ACEOF
4548 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
4549 1.1 christos ac_cv_sys_file_offset_bits=no; break
4550 1.1 christos fi
4551 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553 1.1 christos /* end confdefs.h. */
4554 1.1 christos #define _FILE_OFFSET_BITS 64
4555 1.1 christos #include <sys/types.h>
4556 1.1 christos /* Check that off_t can represent 2**63 - 1 correctly.
4557 1.1 christos We can't simply define LARGE_OFF_T to be 9223372036854775807,
4558 1.1 christos since some C++ compilers masquerading as C compilers
4559 1.1 christos incorrectly reject 9223372036854775807. */
4560 1.1 christos #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4561 1.1 christos int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4562 1.1 christos && LARGE_OFF_T % 2147483647 == 1)
4563 1.1 christos ? 1 : -1];
4564 1.1 christos int
4565 1.1 christos main ()
4566 1.1 christos {
4567 1.1 christos
4568 1.1 christos ;
4569 1.1 christos return 0;
4570 1.1 christos }
4571 1.1 christos _ACEOF
4572 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
4573 1.1 christos ac_cv_sys_file_offset_bits=64; break
4574 1.1 christos fi
4575 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576 1.1 christos ac_cv_sys_file_offset_bits=unknown
4577 1.1 christos break
4578 1.1 christos done
4579 1.1 christos fi
4580 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4581 1.1.1.2 christos $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4582 1.1 christos case $ac_cv_sys_file_offset_bits in #(
4583 1.1 christos no | unknown) ;;
4584 1.1 christos *)
4585 1.1 christos cat >>confdefs.h <<_ACEOF
4586 1.1 christos #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4587 1.1 christos _ACEOF
4588 1.1 christos ;;
4589 1.1 christos esac
4590 1.1.1.2 christos rm -rf conftest*
4591 1.1 christos if test $ac_cv_sys_file_offset_bits = unknown; then
4592 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4593 1.1.1.2 christos $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4594 1.1.1.3 christos if ${ac_cv_sys_large_files+:} false; then :
4595 1.1.1.2 christos $as_echo_n "(cached) " >&6
4596 1.1 christos else
4597 1.1 christos while :; do
4598 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4599 1.1 christos /* end confdefs.h. */
4600 1.1 christos #include <sys/types.h>
4601 1.1 christos /* Check that off_t can represent 2**63 - 1 correctly.
4602 1.1 christos We can't simply define LARGE_OFF_T to be 9223372036854775807,
4603 1.1 christos since some C++ compilers masquerading as C compilers
4604 1.1 christos incorrectly reject 9223372036854775807. */
4605 1.1 christos #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4606 1.1 christos int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4607 1.1 christos && LARGE_OFF_T % 2147483647 == 1)
4608 1.1 christos ? 1 : -1];
4609 1.1 christos int
4610 1.1 christos main ()
4611 1.1 christos {
4612 1.1 christos
4613 1.1 christos ;
4614 1.1 christos return 0;
4615 1.1 christos }
4616 1.1 christos _ACEOF
4617 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
4618 1.1 christos ac_cv_sys_large_files=no; break
4619 1.1 christos fi
4620 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622 1.1 christos /* end confdefs.h. */
4623 1.1 christos #define _LARGE_FILES 1
4624 1.1 christos #include <sys/types.h>
4625 1.1 christos /* Check that off_t can represent 2**63 - 1 correctly.
4626 1.1 christos We can't simply define LARGE_OFF_T to be 9223372036854775807,
4627 1.1 christos since some C++ compilers masquerading as C compilers
4628 1.1 christos incorrectly reject 9223372036854775807. */
4629 1.1 christos #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4630 1.1 christos int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4631 1.1 christos && LARGE_OFF_T % 2147483647 == 1)
4632 1.1 christos ? 1 : -1];
4633 1.1 christos int
4634 1.1 christos main ()
4635 1.1 christos {
4636 1.1 christos
4637 1.1 christos ;
4638 1.1 christos return 0;
4639 1.1 christos }
4640 1.1 christos _ACEOF
4641 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
4642 1.1 christos ac_cv_sys_large_files=1; break
4643 1.1 christos fi
4644 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4645 1.1 christos ac_cv_sys_large_files=unknown
4646 1.1 christos break
4647 1.1 christos done
4648 1.1 christos fi
4649 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4650 1.1.1.2 christos $as_echo "$ac_cv_sys_large_files" >&6; }
4651 1.1 christos case $ac_cv_sys_large_files in #(
4652 1.1 christos no | unknown) ;;
4653 1.1 christos *)
4654 1.1 christos cat >>confdefs.h <<_ACEOF
4655 1.1 christos #define _LARGE_FILES $ac_cv_sys_large_files
4656 1.1 christos _ACEOF
4657 1.1 christos ;;
4658 1.1 christos esac
4659 1.1.1.2 christos rm -rf conftest*
4660 1.1 christos fi
4661 1.1.1.3 christos
4662 1.1.1.3 christos
4663 1.1 christos fi
4664 1.1 christos
4665 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4666 1.1.1.2 christos $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
4667 1.1.1.3 christos if ${ac_cv_sys_largefile_source+:} false; then :
4668 1.1.1.2 christos $as_echo_n "(cached) " >&6
4669 1.1 christos else
4670 1.1 christos while :; do
4671 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 1.1 christos /* end confdefs.h. */
4673 1.1.1.2 christos #include <sys/types.h> /* for off_t */
4674 1.1.1.2 christos #include <stdio.h>
4675 1.1 christos int
4676 1.1 christos main ()
4677 1.1 christos {
4678 1.1.1.2 christos int (*fp) (FILE *, off_t, int) = fseeko;
4679 1.1.1.2 christos return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4680 1.1 christos ;
4681 1.1 christos return 0;
4682 1.1 christos }
4683 1.1 christos _ACEOF
4684 1.1.1.2 christos if ac_fn_c_try_link "$LINENO"; then :
4685 1.1 christos ac_cv_sys_largefile_source=no; break
4686 1.1 christos fi
4687 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext \
4688 1.1.1.2 christos conftest$ac_exeext conftest.$ac_ext
4689 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690 1.1 christos /* end confdefs.h. */
4691 1.1 christos #define _LARGEFILE_SOURCE 1
4692 1.1.1.2 christos #include <sys/types.h> /* for off_t */
4693 1.1.1.2 christos #include <stdio.h>
4694 1.1 christos int
4695 1.1 christos main ()
4696 1.1 christos {
4697 1.1.1.2 christos int (*fp) (FILE *, off_t, int) = fseeko;
4698 1.1.1.2 christos return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4699 1.1 christos ;
4700 1.1 christos return 0;
4701 1.1 christos }
4702 1.1 christos _ACEOF
4703 1.1.1.2 christos if ac_fn_c_try_link "$LINENO"; then :
4704 1.1 christos ac_cv_sys_largefile_source=1; break
4705 1.1 christos fi
4706 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext \
4707 1.1.1.2 christos conftest$ac_exeext conftest.$ac_ext
4708 1.1 christos ac_cv_sys_largefile_source=unknown
4709 1.1 christos break
4710 1.1 christos done
4711 1.1 christos fi
4712 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
4713 1.1.1.2 christos $as_echo "$ac_cv_sys_largefile_source" >&6; }
4714 1.1 christos case $ac_cv_sys_largefile_source in #(
4715 1.1 christos no | unknown) ;;
4716 1.1 christos *)
4717 1.1 christos cat >>confdefs.h <<_ACEOF
4718 1.1 christos #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4719 1.1 christos _ACEOF
4720 1.1 christos ;;
4721 1.1 christos esac
4722 1.1.1.2 christos rm -rf conftest*
4723 1.1 christos
4724 1.1 christos # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4725 1.1 christos # in glibc 2.1.3, but that breaks too many other things.
4726 1.1 christos # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4727 1.1 christos if test $ac_cv_sys_largefile_source != unknown; then
4728 1.1 christos
4729 1.1.1.2 christos $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
4730 1.1 christos
4731 1.1 christos fi
4732 1.1 christos
4733 1.1 christos
4734 1.1.1.5.2.1 pgoyette for ac_header in sys/ioccom.h sys/select.h sys/sockio.h limits.h
4735 1.1.1.2 christos do :
4736 1.1.1.2 christos as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4737 1.1.1.2 christos ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4738 1.1.1.2 christos if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4739 1.1.1.2 christos cat >>confdefs.h <<_ACEOF
4740 1.1.1.2 christos #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4741 1.1 christos _ACEOF
4742 1.1 christos
4743 1.1 christos fi
4744 1.1 christos
4745 1.1.1.2 christos done
4746 1.1 christos
4747 1.1.1.2 christos for ac_header in linux/types.h
4748 1.1.1.2 christos do :
4749 1.1.1.2 christos ac_fn_c_check_header_mongrel "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
4750 1.1.1.3 christos if test "x$ac_cv_header_linux_types_h" = xyes; then :
4751 1.1.1.2 christos cat >>confdefs.h <<_ACEOF
4752 1.1.1.2 christos #define HAVE_LINUX_TYPES_H 1
4753 1.1 christos _ACEOF
4754 1.1 christos
4755 1.1 christos fi
4756 1.1 christos
4757 1.1.1.2 christos done
4758 1.1 christos
4759 1.1.1.2 christos for ac_header in linux/if_packet.h netpacket/packet.h netpacket/if_packet.h
4760 1.1.1.2 christos do :
4761 1.1.1.2 christos as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4762 1.1.1.2 christos ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4763 1.1.1.2 christos if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4764 1.1 christos cat >>confdefs.h <<_ACEOF
4765 1.1.1.2 christos #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4766 1.1 christos _ACEOF
4767 1.1 christos
4768 1.1 christos fi
4769 1.1 christos
4770 1.1 christos done
4771 1.1 christos
4772 1.1 christos for ac_header in net/pfvar.h
4773 1.1.1.2 christos do :
4774 1.1.1.2 christos ac_fn_c_check_header_compile "$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#include <sys/types.h>
4775 1.1 christos #include <sys/socket.h>
4776 1.1 christos #include <net/if.h>
4777 1.1.1.2 christos "
4778 1.1.1.3 christos if test "x$ac_cv_header_net_pfvar_h" = xyes; then :
4779 1.1 christos cat >>confdefs.h <<_ACEOF
4780 1.1.1.2 christos #define HAVE_NET_PFVAR_H 1
4781 1.1 christos _ACEOF
4782 1.1 christos
4783 1.1 christos fi
4784 1.1 christos
4785 1.1 christos done
4786 1.1 christos
4787 1.1 christos if test "$ac_cv_header_net_pfvar_h" = yes; then
4788 1.1 christos #
4789 1.1 christos # Check for various PF actions.
4790 1.1 christos #
4791 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
4792 1.1.1.2 christos $as_echo_n "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... " >&6; }
4793 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794 1.1 christos /* end confdefs.h. */
4795 1.1 christos #include <sys/types.h>
4796 1.1 christos #include <sys/socket.h>
4797 1.1 christos #include <net/if.h>
4798 1.1 christos #include <net/pfvar.h>
4799 1.1 christos int
4800 1.1 christos main ()
4801 1.1 christos {
4802 1.1 christos return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
4803 1.1 christos ;
4804 1.1 christos return 0;
4805 1.1 christos }
4806 1.1 christos _ACEOF
4807 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
4808 1.1 christos
4809 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4810 1.1.1.2 christos $as_echo "yes" >&6; }
4811 1.1 christos
4812 1.1.1.2 christos $as_echo "#define HAVE_PF_NAT_THROUGH_PF_NORDR 1" >>confdefs.h
4813 1.1 christos
4814 1.1 christos
4815 1.1 christos else
4816 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4817 1.1.1.2 christos $as_echo "no" >&6; }
4818 1.1 christos fi
4819 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4820 1.1 christos fi
4821 1.1 christos for ac_header in netinet/if_ether.h
4822 1.1.1.2 christos do :
4823 1.1.1.2 christos ac_fn_c_check_header_compile "$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "#include <sys/types.h>
4824 1.1 christos #include <sys/socket.h>
4825 1.1.1.2 christos "
4826 1.1.1.3 christos if test "x$ac_cv_header_netinet_if_ether_h" = xyes; then :
4827 1.1 christos cat >>confdefs.h <<_ACEOF
4828 1.1.1.2 christos #define HAVE_NETINET_IF_ETHER_H 1
4829 1.1 christos _ACEOF
4830 1.1 christos
4831 1.1 christos fi
4832 1.1 christos
4833 1.1 christos done
4834 1.1 christos
4835 1.1 christos if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4836 1.1 christos #
4837 1.1 christos # The simple test didn't work.
4838 1.1 christos # Do we need to include <net/if.h> first?
4839 1.1 christos # Unset ac_cv_header_netinet_if_ether_h so we don't
4840 1.1 christos # treat the previous failure as a cached value and
4841 1.1 christos # suppress the next test.
4842 1.1 christos #
4843 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: Rechecking with some additional includes" >&5
4844 1.1.1.2 christos $as_echo "$as_me: Rechecking with some additional includes" >&6;}
4845 1.1 christos unset ac_cv_header_netinet_if_ether_h
4846 1.1.1.2 christos for ac_header in netinet/if_ether.h
4847 1.1.1.2 christos do :
4848 1.1.1.2 christos ac_fn_c_check_header_compile "$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "#include <sys/types.h>
4849 1.1 christos #include <sys/socket.h>
4850 1.1 christos #include <netinet/in.h>
4851 1.1 christos struct mbuf;
4852 1.1 christos struct rtentry;
4853 1.1 christos #include <net/if.h>
4854 1.1.1.2 christos "
4855 1.1.1.3 christos if test "x$ac_cv_header_netinet_if_ether_h" = xyes; then :
4856 1.1 christos cat >>confdefs.h <<_ACEOF
4857 1.1.1.2 christos #define HAVE_NETINET_IF_ETHER_H 1
4858 1.1 christos _ACEOF
4859 1.1 christos
4860 1.1 christos fi
4861 1.1 christos
4862 1.1 christos done
4863 1.1 christos
4864 1.1 christos fi
4865 1.1 christos
4866 1.1.1.5.2.1 pgoyette case "$host_os" in
4867 1.1.1.5.2.1 pgoyette linux*|uclinux*)
4868 1.1.1.5.2.1 pgoyette for ac_header in linux/sockios.h linux/if_bonding.h
4869 1.1.1.5.2.1 pgoyette do :
4870 1.1.1.5.2.1 pgoyette as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4871 1.1.1.5.2.1 pgoyette ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
4872 1.1.1.5.2.1 pgoyette #include <sys/socket.h>
4873 1.1.1.5.2.1 pgoyette #include <linux/if.h>
4874 1.1.1.5.2.1 pgoyette
4875 1.1.1.5.2.1 pgoyette "
4876 1.1.1.5.2.1 pgoyette if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4877 1.1.1.5.2.1 pgoyette cat >>confdefs.h <<_ACEOF
4878 1.1.1.5.2.1 pgoyette #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4879 1.1.1.5.2.1 pgoyette _ACEOF
4880 1.1.1.5.2.1 pgoyette
4881 1.1.1.5.2.1 pgoyette fi
4882 1.1.1.5.2.1 pgoyette
4883 1.1.1.5.2.1 pgoyette done
4884 1.1.1.5.2.1 pgoyette
4885 1.1.1.5.2.1 pgoyette ;;
4886 1.1.1.5.2.1 pgoyette esac
4887 1.1.1.5.2.1 pgoyette
4888 1.1 christos if test "$GCC" = yes ; then
4889 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI ioctl definitions" >&5
4890 1.1.1.2 christos $as_echo_n "checking for ANSI ioctl definitions... " >&6; }
4891 1.1.1.3 christos if ${ac_cv_lbl_gcc_fixincludes+:} false; then :
4892 1.1.1.2 christos $as_echo_n "(cached) " >&6
4893 1.1 christos else
4894 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4895 1.1 christos /* end confdefs.h. */
4896 1.1 christos /*
4897 1.1 christos * This generates a "duplicate case value" when fixincludes
4898 1.1 christos * has not be run.
4899 1.1 christos */
4900 1.1 christos # include <sys/types.h>
4901 1.1 christos # include <sys/time.h>
4902 1.1 christos # include <sys/ioctl.h>
4903 1.1 christos # ifdef HAVE_SYS_IOCCOM_H
4904 1.1 christos # include <sys/ioccom.h>
4905 1.1 christos # endif
4906 1.1 christos int
4907 1.1 christos main ()
4908 1.1 christos {
4909 1.1 christos switch (0) {
4910 1.1 christos case _IO('A', 1):;
4911 1.1 christos case _IO('B', 1):;
4912 1.1 christos }
4913 1.1 christos ;
4914 1.1 christos return 0;
4915 1.1 christos }
4916 1.1 christos _ACEOF
4917 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
4918 1.1 christos ac_cv_lbl_gcc_fixincludes=yes
4919 1.1 christos else
4920 1.1.1.2 christos ac_cv_lbl_gcc_fixincludes=no
4921 1.1 christos fi
4922 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4923 1.1 christos fi
4924 1.1 christos
4925 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_gcc_fixincludes" >&5
4926 1.1.1.2 christos $as_echo "$ac_cv_lbl_gcc_fixincludes" >&6; }
4927 1.1 christos if test $ac_cv_lbl_gcc_fixincludes = no ; then
4928 1.1 christos # Don't cache failure
4929 1.1 christos unset ac_cv_lbl_gcc_fixincludes
4930 1.1.1.2 christos as_fn_error $? "see the INSTALL for more info" "$LINENO" 5
4931 1.1 christos fi
4932 1.1 christos fi
4933 1.1 christos
4934 1.1 christos for ac_func in strerror strlcpy
4935 1.1.1.2 christos do :
4936 1.1.1.2 christos as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4937 1.1.1.2 christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4938 1.1.1.2 christos if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4939 1.1 christos cat >>confdefs.h <<_ACEOF
4940 1.1.1.2 christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4941 1.1 christos _ACEOF
4942 1.1 christos
4943 1.1 christos fi
4944 1.1 christos done
4945 1.1 christos
4946 1.1 christos
4947 1.1 christos needsnprintf=no
4948 1.1 christos for ac_func in vsnprintf snprintf
4949 1.1.1.2 christos do :
4950 1.1.1.2 christos as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4951 1.1.1.2 christos ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4952 1.1.1.2 christos if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4953 1.1 christos cat >>confdefs.h <<_ACEOF
4954 1.1.1.2 christos #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4955 1.1 christos _ACEOF
4956 1.1 christos
4957 1.1 christos else
4958 1.1 christos needsnprintf=yes
4959 1.1 christos fi
4960 1.1 christos done
4961 1.1 christos
4962 1.1 christos if test $needsnprintf = yes; then
4963 1.1 christos case " $LIBOBJS " in
4964 1.1 christos *" snprintf.$ac_objext "* ) ;;
4965 1.1 christos *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
4966 1.1 christos ;;
4967 1.1 christos esac
4968 1.1 christos
4969 1.1 christos fi
4970 1.1 christos
4971 1.1.1.5.2.1 pgoyette needstrtok_r=no
4972 1.1.1.5.2.1 pgoyette for ac_func in strtok_r
4973 1.1.1.5.2.1 pgoyette do :
4974 1.1.1.5.2.1 pgoyette ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
4975 1.1.1.5.2.1 pgoyette if test "x$ac_cv_func_strtok_r" = xyes; then :
4976 1.1.1.5.2.1 pgoyette cat >>confdefs.h <<_ACEOF
4977 1.1.1.5.2.1 pgoyette #define HAVE_STRTOK_R 1
4978 1.1.1.5.2.1 pgoyette _ACEOF
4979 1.1.1.5.2.1 pgoyette
4980 1.1.1.5.2.1 pgoyette else
4981 1.1.1.5.2.1 pgoyette needstrtok_r=yes
4982 1.1.1.5.2.1 pgoyette fi
4983 1.1.1.5.2.1 pgoyette done
4984 1.1.1.5.2.1 pgoyette
4985 1.1.1.5.2.1 pgoyette if test $needstrtok_r = yes; then
4986 1.1.1.5.2.1 pgoyette case " $LIBOBJS " in
4987 1.1.1.5.2.1 pgoyette *" strtok_r.$ac_objext "* ) ;;
4988 1.1.1.5.2.1 pgoyette *) LIBOBJS="$LIBOBJS strtok_r.$ac_objext"
4989 1.1.1.5.2.1 pgoyette ;;
4990 1.1.1.5.2.1 pgoyette esac
4991 1.1.1.5.2.1 pgoyette
4992 1.1.1.5.2.1 pgoyette fi
4993 1.1.1.5.2.1 pgoyette
4994 1.1 christos #
4995 1.1 christos # Do this before checking for ether_hostton(), as it's a
4996 1.1 christos # "gethostbyname() -ish function".
4997 1.1 christos #
4998 1.1 christos
4999 1.1 christos # Most operating systems have gethostbyname() in the default searched
5000 1.1 christos # libraries (i.e. libc):
5001 1.1 christos # Some OSes (eg. Solaris) place it in libnsl
5002 1.1 christos # Some strange OSes (SINIX) have it in libsocket:
5003 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
5004 1.1.1.2 christos $as_echo_n "checking for library containing gethostbyname... " >&6; }
5005 1.1.1.3 christos if ${ac_cv_search_gethostbyname+:} false; then :
5006 1.1.1.2 christos $as_echo_n "(cached) " >&6
5007 1.1 christos else
5008 1.1 christos ac_func_search_save_LIBS=$LIBS
5009 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 1.1 christos /* end confdefs.h. */
5011 1.1 christos
5012 1.1 christos /* Override any GCC internal prototype to avoid an error.
5013 1.1 christos Use char because int might match the return type of a GCC
5014 1.1 christos builtin and then its argument prototype would still apply. */
5015 1.1 christos #ifdef __cplusplus
5016 1.1 christos extern "C"
5017 1.1 christos #endif
5018 1.1 christos char gethostbyname ();
5019 1.1 christos int
5020 1.1 christos main ()
5021 1.1 christos {
5022 1.1 christos return gethostbyname ();
5023 1.1 christos ;
5024 1.1 christos return 0;
5025 1.1 christos }
5026 1.1 christos _ACEOF
5027 1.1 christos for ac_lib in '' nsl socket resolv; do
5028 1.1 christos if test -z "$ac_lib"; then
5029 1.1 christos ac_res="none required"
5030 1.1 christos else
5031 1.1 christos ac_res=-l$ac_lib
5032 1.1 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5033 1.1 christos fi
5034 1.1.1.2 christos if ac_fn_c_try_link "$LINENO"; then :
5035 1.1 christos ac_cv_search_gethostbyname=$ac_res
5036 1.1 christos fi
5037 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext \
5038 1.1.1.2 christos conftest$ac_exeext
5039 1.1.1.3 christos if ${ac_cv_search_gethostbyname+:} false; then :
5040 1.1 christos break
5041 1.1 christos fi
5042 1.1 christos done
5043 1.1.1.3 christos if ${ac_cv_search_gethostbyname+:} false; then :
5044 1.1.1.2 christos
5045 1.1 christos else
5046 1.1 christos ac_cv_search_gethostbyname=no
5047 1.1 christos fi
5048 1.1 christos rm conftest.$ac_ext
5049 1.1 christos LIBS=$ac_func_search_save_LIBS
5050 1.1 christos fi
5051 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
5052 1.1.1.2 christos $as_echo "$ac_cv_search_gethostbyname" >&6; }
5053 1.1 christos ac_res=$ac_cv_search_gethostbyname
5054 1.1.1.2 christos if test "$ac_res" != no; then :
5055 1.1 christos test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5056 1.1 christos
5057 1.1 christos fi
5058 1.1 christos
5059 1.1 christos # Unfortunately libsocket sometimes depends on libnsl and
5060 1.1 christos # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
5061 1.1 christos if test "$ac_cv_search_gethostbyname" = "no"
5062 1.1 christos then
5063 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
5064 1.1.1.2 christos $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
5065 1.1.1.3 christos if ${ac_cv_lib_socket_gethostbyname+:} false; then :
5066 1.1.1.2 christos $as_echo_n "(cached) " >&6
5067 1.1 christos else
5068 1.1 christos ac_check_lib_save_LIBS=$LIBS
5069 1.1 christos LIBS="-lsocket -lnsl $LIBS"
5070 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071 1.1 christos /* end confdefs.h. */
5072 1.1 christos
5073 1.1 christos /* Override any GCC internal prototype to avoid an error.
5074 1.1 christos Use char because int might match the return type of a GCC
5075 1.1 christos builtin and then its argument prototype would still apply. */
5076 1.1 christos #ifdef __cplusplus
5077 1.1 christos extern "C"
5078 1.1 christos #endif
5079 1.1 christos char gethostbyname ();
5080 1.1 christos int
5081 1.1 christos main ()
5082 1.1 christos {
5083 1.1 christos return gethostbyname ();
5084 1.1 christos ;
5085 1.1 christos return 0;
5086 1.1 christos }
5087 1.1 christos _ACEOF
5088 1.1.1.2 christos if ac_fn_c_try_link "$LINENO"; then :
5089 1.1 christos ac_cv_lib_socket_gethostbyname=yes
5090 1.1 christos else
5091 1.1.1.2 christos ac_cv_lib_socket_gethostbyname=no
5092 1.1 christos fi
5093 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext \
5094 1.1.1.2 christos conftest$ac_exeext conftest.$ac_ext
5095 1.1 christos LIBS=$ac_check_lib_save_LIBS
5096 1.1 christos fi
5097 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
5098 1.1.1.2 christos $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
5099 1.1.1.3 christos if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
5100 1.1 christos LIBS="-lsocket -lnsl $LIBS"
5101 1.1 christos fi
5102 1.1 christos
5103 1.1 christos fi
5104 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
5105 1.1.1.2 christos $as_echo_n "checking for library containing socket... " >&6; }
5106 1.1.1.3 christos if ${ac_cv_search_socket+:} false; then :
5107 1.1.1.2 christos $as_echo_n "(cached) " >&6
5108 1.1 christos else
5109 1.1 christos ac_func_search_save_LIBS=$LIBS
5110 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111 1.1 christos /* end confdefs.h. */
5112 1.1 christos
5113 1.1 christos /* Override any GCC internal prototype to avoid an error.
5114 1.1 christos Use char because int might match the return type of a GCC
5115 1.1 christos builtin and then its argument prototype would still apply. */
5116 1.1 christos #ifdef __cplusplus
5117 1.1 christos extern "C"
5118 1.1 christos #endif
5119 1.1 christos char socket ();
5120 1.1 christos int
5121 1.1 christos main ()
5122 1.1 christos {
5123 1.1 christos return socket ();
5124 1.1 christos ;
5125 1.1 christos return 0;
5126 1.1 christos }
5127 1.1 christos _ACEOF
5128 1.1 christos for ac_lib in '' socket; do
5129 1.1 christos if test -z "$ac_lib"; then
5130 1.1 christos ac_res="none required"
5131 1.1 christos else
5132 1.1 christos ac_res=-l$ac_lib
5133 1.1 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5134 1.1 christos fi
5135 1.1.1.2 christos if ac_fn_c_try_link "$LINENO"; then :
5136 1.1 christos ac_cv_search_socket=$ac_res
5137 1.1 christos fi
5138 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext \
5139 1.1.1.2 christos conftest$ac_exeext
5140 1.1.1.3 christos if ${ac_cv_search_socket+:} false; then :
5141 1.1 christos break
5142 1.1 christos fi
5143 1.1 christos done
5144 1.1.1.3 christos if ${ac_cv_search_socket+:} false; then :
5145 1.1.1.2 christos
5146 1.1 christos else
5147 1.1 christos ac_cv_search_socket=no
5148 1.1 christos fi
5149 1.1 christos rm conftest.$ac_ext
5150 1.1 christos LIBS=$ac_func_search_save_LIBS
5151 1.1 christos fi
5152 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
5153 1.1.1.2 christos $as_echo "$ac_cv_search_socket" >&6; }
5154 1.1 christos ac_res=$ac_cv_search_socket
5155 1.1.1.2 christos if test "$ac_res" != no; then :
5156 1.1 christos test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5157 1.1 christos
5158 1.1 christos else
5159 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
5160 1.1.1.2 christos $as_echo_n "checking for socket in -lsocket... " >&6; }
5161 1.1.1.3 christos if ${ac_cv_lib_socket_socket+:} false; then :
5162 1.1.1.2 christos $as_echo_n "(cached) " >&6
5163 1.1 christos else
5164 1.1 christos ac_check_lib_save_LIBS=$LIBS
5165 1.1 christos LIBS="-lsocket -lnsl $LIBS"
5166 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5167 1.1 christos /* end confdefs.h. */
5168 1.1 christos
5169 1.1 christos /* Override any GCC internal prototype to avoid an error.
5170 1.1 christos Use char because int might match the return type of a GCC
5171 1.1 christos builtin and then its argument prototype would still apply. */
5172 1.1 christos #ifdef __cplusplus
5173 1.1 christos extern "C"
5174 1.1 christos #endif
5175 1.1 christos char socket ();
5176 1.1 christos int
5177 1.1 christos main ()
5178 1.1 christos {
5179 1.1 christos return socket ();
5180 1.1 christos ;
5181 1.1 christos return 0;
5182 1.1 christos }
5183 1.1 christos _ACEOF
5184 1.1.1.2 christos if ac_fn_c_try_link "$LINENO"; then :
5185 1.1 christos ac_cv_lib_socket_socket=yes
5186 1.1 christos else
5187 1.1.1.2 christos ac_cv_lib_socket_socket=no
5188 1.1 christos fi
5189 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext \
5190 1.1.1.2 christos conftest$ac_exeext conftest.$ac_ext
5191 1.1 christos LIBS=$ac_check_lib_save_LIBS
5192 1.1 christos fi
5193 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
5194 1.1.1.2 christos $as_echo "$ac_cv_lib_socket_socket" >&6; }
5195 1.1.1.3 christos if test "x$ac_cv_lib_socket_socket" = xyes; then :
5196 1.1 christos LIBS="-lsocket -lnsl $LIBS"
5197 1.1 christos fi
5198 1.1 christos
5199 1.1 christos fi
5200 1.1 christos
5201 1.1 christos # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5202 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5
5203 1.1.1.2 christos $as_echo_n "checking for library containing putmsg... " >&6; }
5204 1.1.1.3 christos if ${ac_cv_search_putmsg+:} false; then :
5205 1.1.1.2 christos $as_echo_n "(cached) " >&6
5206 1.1 christos else
5207 1.1 christos ac_func_search_save_LIBS=$LIBS
5208 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5209 1.1 christos /* end confdefs.h. */
5210 1.1 christos
5211 1.1 christos /* Override any GCC internal prototype to avoid an error.
5212 1.1 christos Use char because int might match the return type of a GCC
5213 1.1 christos builtin and then its argument prototype would still apply. */
5214 1.1 christos #ifdef __cplusplus
5215 1.1 christos extern "C"
5216 1.1 christos #endif
5217 1.1 christos char putmsg ();
5218 1.1 christos int
5219 1.1 christos main ()
5220 1.1 christos {
5221 1.1 christos return putmsg ();
5222 1.1 christos ;
5223 1.1 christos return 0;
5224 1.1 christos }
5225 1.1 christos _ACEOF
5226 1.1 christos for ac_lib in '' str; do
5227 1.1 christos if test -z "$ac_lib"; then
5228 1.1 christos ac_res="none required"
5229 1.1 christos else
5230 1.1 christos ac_res=-l$ac_lib
5231 1.1 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5232 1.1 christos fi
5233 1.1.1.2 christos if ac_fn_c_try_link "$LINENO"; then :
5234 1.1 christos ac_cv_search_putmsg=$ac_res
5235 1.1 christos fi
5236 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext \
5237 1.1.1.2 christos conftest$ac_exeext
5238 1.1.1.3 christos if ${ac_cv_search_putmsg+:} false; then :
5239 1.1 christos break
5240 1.1 christos fi
5241 1.1 christos done
5242 1.1.1.3 christos if ${ac_cv_search_putmsg+:} false; then :
5243 1.1.1.2 christos
5244 1.1 christos else
5245 1.1 christos ac_cv_search_putmsg=no
5246 1.1 christos fi
5247 1.1 christos rm conftest.$ac_ext
5248 1.1 christos LIBS=$ac_func_search_save_LIBS
5249 1.1 christos fi
5250 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5
5251 1.1.1.2 christos $as_echo "$ac_cv_search_putmsg" >&6; }
5252 1.1 christos ac_res=$ac_cv_search_putmsg
5253 1.1.1.2 christos if test "$ac_res" != no; then :
5254 1.1 christos test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5255 1.1 christos
5256 1.1 christos fi
5257 1.1 christos
5258 1.1 christos
5259 1.1 christos
5260 1.1 christos #
5261 1.1 christos # You are in a twisty little maze of UN*Xes, all different.
5262 1.1 christos # Some might not have ether_hostton().
5263 1.1 christos # Some might have it, but not declare it in any header file.
5264 1.1 christos # Some might have it, but declare it in <netinet/if_ether.h>.
5265 1.1 christos # Some might have it, but declare it in <netinet/ether.h>
5266 1.1 christos # (And some might have it but document it as something declared in
5267 1.1 christos # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
5268 1.1 christos #
5269 1.1 christos # Before you is a C compiler.
5270 1.1 christos #
5271 1.1 christos for ac_func in ether_hostton
5272 1.1.1.2 christos do :
5273 1.1.1.2 christos ac_fn_c_check_func "$LINENO" "ether_hostton" "ac_cv_func_ether_hostton"
5274 1.1.1.3 christos if test "x$ac_cv_func_ether_hostton" = xyes; then :
5275 1.1 christos cat >>confdefs.h <<_ACEOF
5276 1.1.1.2 christos #define HAVE_ETHER_HOSTTON 1
5277 1.1 christos _ACEOF
5278 1.1 christos
5279 1.1 christos fi
5280 1.1 christos done
5281 1.1 christos
5282 1.1 christos if test "$ac_cv_func_ether_hostton" = yes; then
5283 1.1 christos #
5284 1.1 christos # OK, we have ether_hostton(). Do we have <netinet/if_ether.h>?
5285 1.1 christos #
5286 1.1 christos if test "$ac_cv_header_netinet_if_ether_h" = yes; then
5287 1.1 christos #
5288 1.1 christos # Yes. Does it declare ether_hostton()?
5289 1.1 christos #
5290 1.1.1.2 christos ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5291 1.1 christos #include <sys/types.h>
5292 1.1 christos #include <sys/socket.h>
5293 1.1 christos #include <netinet/in.h>
5294 1.1 christos #include <arpa/inet.h>
5295 1.1 christos struct mbuf;
5296 1.1 christos struct rtentry;
5297 1.1 christos #include <net/if.h>
5298 1.1 christos #include <netinet/if_ether.h>
5299 1.1 christos
5300 1.1.1.2 christos "
5301 1.1.1.3 christos if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5302 1.1 christos
5303 1.1 christos
5304 1.1.1.2 christos $as_echo "#define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5305 1.1 christos
5306 1.1 christos
5307 1.1 christos fi
5308 1.1 christos
5309 1.1 christos fi
5310 1.1 christos #
5311 1.1 christos # Did that succeed?
5312 1.1 christos #
5313 1.1 christos if test "$ac_cv_have_decl_ether_hostton" != yes; then
5314 1.1 christos #
5315 1.1 christos # No, how about <netinet/ether.h>, as on Linux?
5316 1.1 christos #
5317 1.1.1.2 christos for ac_header in netinet/ether.h
5318 1.1.1.2 christos do :
5319 1.1.1.2 christos ac_fn_c_check_header_mongrel "$LINENO" "netinet/ether.h" "ac_cv_header_netinet_ether_h" "$ac_includes_default"
5320 1.1.1.3 christos if test "x$ac_cv_header_netinet_ether_h" = xyes; then :
5321 1.1 christos cat >>confdefs.h <<_ACEOF
5322 1.1.1.2 christos #define HAVE_NETINET_ETHER_H 1
5323 1.1 christos _ACEOF
5324 1.1 christos
5325 1.1 christos fi
5326 1.1 christos
5327 1.1 christos done
5328 1.1 christos
5329 1.1 christos if test "$ac_cv_header_netinet_ether_h" = yes; then
5330 1.1 christos #
5331 1.1 christos # We have it - does it declare ether_hostton()?
5332 1.1 christos # Unset ac_cv_have_decl_ether_hostton so we don't
5333 1.1 christos # treat the previous failure as a cached value and
5334 1.1 christos # suppress the next test.
5335 1.1 christos #
5336 1.1 christos unset ac_cv_have_decl_ether_hostton
5337 1.1.1.2 christos ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5338 1.1 christos #include <netinet/ether.h>
5339 1.1 christos
5340 1.1.1.2 christos "
5341 1.1.1.3 christos if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5342 1.1 christos
5343 1.1 christos
5344 1.1.1.2 christos $as_echo "#define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5345 1.1 christos
5346 1.1 christos
5347 1.1 christos fi
5348 1.1 christos
5349 1.1 christos fi
5350 1.1 christos fi
5351 1.1 christos #
5352 1.1 christos # Is ether_hostton() declared?
5353 1.1 christos #
5354 1.1 christos if test "$ac_cv_have_decl_ether_hostton" != yes; then
5355 1.1 christos #
5356 1.1 christos # No, we'll have to declare it ourselves.
5357 1.1 christos # Do we have "struct ether_addr"?
5358 1.1 christos #
5359 1.1.1.2 christos ac_fn_c_check_type "$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" "
5360 1.1 christos #include <sys/types.h>
5361 1.1 christos #include <sys/socket.h>
5362 1.1 christos #include <netinet/in.h>
5363 1.1 christos #include <arpa/inet.h>
5364 1.1 christos struct mbuf;
5365 1.1 christos struct rtentry;
5366 1.1 christos #include <net/if.h>
5367 1.1 christos #include <netinet/if_ether.h>
5368 1.1 christos
5369 1.1.1.2 christos "
5370 1.1.1.3 christos if test "x$ac_cv_type_struct_ether_addr" = xyes; then :
5371 1.1 christos
5372 1.1 christos cat >>confdefs.h <<_ACEOF
5373 1.1 christos #define HAVE_STRUCT_ETHER_ADDR 1
5374 1.1 christos _ACEOF
5375 1.1 christos
5376 1.1 christos
5377 1.1 christos fi
5378 1.1 christos
5379 1.1 christos
5380 1.1.1.2 christos $as_echo "#define HAVE_DECL_ETHER_HOSTTON 0" >>confdefs.h
5381 1.1 christos
5382 1.1 christos else
5383 1.1 christos
5384 1.1.1.2 christos $as_echo "#define HAVE_DECL_ETHER_HOSTTON 1" >>confdefs.h
5385 1.1 christos
5386 1.1 christos fi
5387 1.1 christos fi
5388 1.1 christos
5389 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-protochain option is specified" >&5
5390 1.1.1.2 christos $as_echo_n "checking if --disable-protochain option is specified... " >&6; }
5391 1.1 christos # Check whether --enable-protochain was given.
5392 1.1.1.2 christos if test "${enable_protochain+set}" = set; then :
5393 1.1 christos enableval=$enable_protochain;
5394 1.1 christos fi
5395 1.1 christos
5396 1.1 christos case "x$enable_protochain" in
5397 1.1 christos xyes) enable_protochain=enabled ;;
5398 1.1 christos xno) enable_protochain=disabled ;;
5399 1.1 christos x) enable_protochain=enabled ;;
5400 1.1 christos esac
5401 1.1 christos
5402 1.1 christos if test "$enable_protochain" = "disabled"; then
5403 1.1 christos
5404 1.1.1.2 christos $as_echo "#define NO_PROTOCHAIN 1" >>confdefs.h
5405 1.1 christos
5406 1.1 christos fi
5407 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_protochain}" >&5
5408 1.1.1.2 christos $as_echo "${enable_protochain}" >&6; }
5409 1.1 christos
5410 1.1 christos #
5411 1.1.1.5.2.1 pgoyette # valgrindtest directly uses the native capture mechanism, but
5412 1.1.1.5.2.1 pgoyette # only tests with BPF and PF_PACKET sockets; only enable it if
5413 1.1.1.5.2.1 pgoyette # we have BPF or PF_PACKET sockets.
5414 1.1.1.5.2.1 pgoyette #
5415 1.1.1.5.2.1 pgoyette VALGRINDTEST=
5416 1.1.1.5.2.1 pgoyette
5417 1.1.1.5.2.1 pgoyette #
5418 1.1 christos # SITA support is mutually exclusive with native capture support;
5419 1.1 christos # "--with-sita" selects SITA support.
5420 1.1 christos #
5421 1.1 christos
5422 1.1 christos # Check whether --with-sita was given.
5423 1.1.1.2 christos if test "${with_sita+set}" = set; then :
5424 1.1 christos withval=$with_sita;
5425 1.1 christos if test ! "x$withval" = "xno" ; then
5426 1.1 christos
5427 1.1.1.2 christos $as_echo "#define SITA 1" >>confdefs.h
5428 1.1 christos
5429 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling SITA ACN support" >&5
5430 1.1.1.2 christos $as_echo "$as_me: Enabling SITA ACN support" >&6;}
5431 1.1 christos V_PCAP=sita
5432 1.1 christos fi
5433 1.1 christos
5434 1.1 christos else
5435 1.1 christos
5436 1.1 christos if test -z "$with_pcap" && test "$cross_compiling" = yes; then
5437 1.1.1.2 christos as_fn_error $? "pcap type not determined when cross-compiling; use --with-pcap=..." "$LINENO" 5
5438 1.1 christos fi
5439 1.1 christos
5440 1.1 christos # Check whether --with-pcap was given.
5441 1.1.1.2 christos if test "${with_pcap+set}" = set; then :
5442 1.1 christos withval=$with_pcap;
5443 1.1 christos fi
5444 1.1 christos
5445 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking packet capture type" >&5
5446 1.1.1.2 christos $as_echo_n "checking packet capture type... " >&6; }
5447 1.1 christos if test ! -z "$with_pcap" ; then
5448 1.1 christos V_PCAP="$withval"
5449 1.1 christos elif test -r /dev/bpf -o -h /dev/bpf ; then
5450 1.1 christos #
5451 1.1 christos # Cloning BPF device.
5452 1.1 christos #
5453 1.1 christos V_PCAP=bpf
5454 1.1 christos
5455 1.1.1.2 christos $as_echo "#define HAVE_CLONING_BPF 1" >>confdefs.h
5456 1.1 christos
5457 1.1.1.5.2.1 pgoyette
5458 1.1.1.5.2.1 pgoyette #
5459 1.1.1.5.2.1 pgoyette # We have BPF, so build valgrindtest with "make test".
5460 1.1.1.5.2.1 pgoyette #
5461 1.1.1.5.2.1 pgoyette VALGRINDTEST=valgrindtest
5462 1.1 christos elif test -r /dev/bpf0 ; then
5463 1.1 christos V_PCAP=bpf
5464 1.1.1.5.2.1 pgoyette
5465 1.1.1.5.2.1 pgoyette #
5466 1.1.1.5.2.1 pgoyette # We have BPF, so build valgrindtest with "make test".
5467 1.1.1.5.2.1 pgoyette #
5468 1.1.1.5.2.1 pgoyette VALGRINDTEST=valgrindtest
5469 1.1 christos elif test -r /usr/include/net/pfilt.h ; then
5470 1.1 christos V_PCAP=pf
5471 1.1 christos elif test -r /dev/enet ; then
5472 1.1 christos V_PCAP=enet
5473 1.1 christos elif test -r /dev/nit ; then
5474 1.1 christos V_PCAP=snit
5475 1.1 christos elif test -r /usr/include/sys/net/nit.h ; then
5476 1.1 christos V_PCAP=nit
5477 1.1 christos elif test -r /usr/include/linux/socket.h ; then
5478 1.1 christos V_PCAP=linux
5479 1.1.1.5.2.1 pgoyette
5480 1.1.1.5.2.1 pgoyette #
5481 1.1.1.5.2.1 pgoyette # XXX - this won't work with older kernels that have SOCK_PACKET
5482 1.1.1.5.2.1 pgoyette # sockets but not PF_PACKET sockets.
5483 1.1.1.5.2.1 pgoyette #
5484 1.1.1.5.2.1 pgoyette VALGRINDTEST=valgrindtest
5485 1.1 christos elif test -r /usr/include/net/raw.h ; then
5486 1.1 christos V_PCAP=snoop
5487 1.1 christos elif test -r /usr/include/odmi.h ; then
5488 1.1 christos #
5489 1.1 christos # On AIX, the BPF devices might not yet be present - they're
5490 1.1 christos # created the first time libpcap runs after booting.
5491 1.1 christos # We check for odmi.h instead.
5492 1.1 christos #
5493 1.1 christos V_PCAP=bpf
5494 1.1 christos elif test -c /dev/bpf0 ; then # check again in case not readable
5495 1.1 christos V_PCAP=bpf
5496 1.1.1.5.2.1 pgoyette
5497 1.1.1.5.2.1 pgoyette #
5498 1.1.1.5.2.1 pgoyette # We have BPF, so build valgrindtest with "make test".
5499 1.1.1.5.2.1 pgoyette #
5500 1.1.1.5.2.1 pgoyette VALGRINDTEST=valgrindtest
5501 1.1 christos elif test -r /usr/include/sys/dlpi.h ; then
5502 1.1 christos V_PCAP=dlpi
5503 1.1 christos elif test -c /dev/enet ; then # check again in case not readable
5504 1.1 christos V_PCAP=enet
5505 1.1 christos elif test -c /dev/nit ; then # check again in case not readable
5506 1.1 christos V_PCAP=snit
5507 1.1 christos else
5508 1.1 christos V_PCAP=null
5509 1.1 christos fi
5510 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_PCAP" >&5
5511 1.1.1.2 christos $as_echo "$V_PCAP" >&6; }
5512 1.1 christos
5513 1.1.1.5.2.1 pgoyette
5514 1.1 christos #
5515 1.1 christos # Do capture-mechanism-dependent tests.
5516 1.1 christos #
5517 1.1 christos case "$V_PCAP" in
5518 1.1 christos dlpi)
5519 1.1 christos #
5520 1.1.1.3 christos # Needed for common functions used by pcap-[dlpi,libdlpi].c
5521 1.1.1.3 christos #
5522 1.1.1.3 christos SSRC="dlpisubs.c"
5523 1.1.1.3 christos
5524 1.1.1.3 christos #
5525 1.1.1.3 christos # Checks for some header files.
5526 1.1.1.3 christos #
5527 1.1.1.3 christos for ac_header in sys/bufmod.h sys/dlpi_ext.h
5528 1.1.1.3 christos do :
5529 1.1.1.3 christos as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5530 1.1.1.3 christos ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5531 1.1.1.3 christos if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5532 1.1.1.3 christos cat >>confdefs.h <<_ACEOF
5533 1.1.1.3 christos #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5534 1.1.1.3 christos _ACEOF
5535 1.1.1.3 christos
5536 1.1.1.3 christos fi
5537 1.1.1.3 christos
5538 1.1.1.3 christos done
5539 1.1.1.3 christos
5540 1.1.1.3 christos
5541 1.1.1.3 christos #
5542 1.1 christos # Checks to see if Solaris has the public libdlpi(3LIB) library.
5543 1.1 christos # Note: The existence of /usr/include/libdlpi.h does not mean it is the
5544 1.1 christos # public libdlpi(3LIB) version. Before libdlpi was made public, a
5545 1.1 christos # private version also existed, which did not have the same APIs.
5546 1.1 christos # Due to a gcc bug, the default search path for 32-bit libraries does
5547 1.1 christos # not include /lib, we add it explicitly here.
5548 1.1 christos # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
5549 1.1 christos # Also, due to the bug above applications that link to libpcap with
5550 1.1 christos # libdlpi will have to add "-L/lib" option to "configure".
5551 1.1 christos #
5552 1.1 christos saved_ldflags=$LDFLAGS
5553 1.1 christos LDFLAGS="$LIBS -L/lib"
5554 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5
5555 1.1.1.2 christos $as_echo_n "checking for dlpi_walk in -ldlpi... " >&6; }
5556 1.1.1.3 christos if ${ac_cv_lib_dlpi_dlpi_walk+:} false; then :
5557 1.1.1.2 christos $as_echo_n "(cached) " >&6
5558 1.1 christos else
5559 1.1 christos ac_check_lib_save_LIBS=$LIBS
5560 1.1 christos LIBS="-ldlpi $LIBS"
5561 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5562 1.1 christos /* end confdefs.h. */
5563 1.1 christos
5564 1.1 christos /* Override any GCC internal prototype to avoid an error.
5565 1.1 christos Use char because int might match the return type of a GCC
5566 1.1 christos builtin and then its argument prototype would still apply. */
5567 1.1 christos #ifdef __cplusplus
5568 1.1 christos extern "C"
5569 1.1 christos #endif
5570 1.1 christos char dlpi_walk ();
5571 1.1 christos int
5572 1.1 christos main ()
5573 1.1 christos {
5574 1.1 christos return dlpi_walk ();
5575 1.1 christos ;
5576 1.1 christos return 0;
5577 1.1 christos }
5578 1.1 christos _ACEOF
5579 1.1.1.2 christos if ac_fn_c_try_link "$LINENO"; then :
5580 1.1 christos ac_cv_lib_dlpi_dlpi_walk=yes
5581 1.1 christos else
5582 1.1.1.2 christos ac_cv_lib_dlpi_dlpi_walk=no
5583 1.1 christos fi
5584 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext \
5585 1.1.1.2 christos conftest$ac_exeext conftest.$ac_ext
5586 1.1 christos LIBS=$ac_check_lib_save_LIBS
5587 1.1 christos fi
5588 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
5589 1.1.1.2 christos $as_echo "$ac_cv_lib_dlpi_dlpi_walk" >&6; }
5590 1.1.1.3 christos if test "x$ac_cv_lib_dlpi_dlpi_walk" = xyes; then :
5591 1.1.1.3 christos
5592 1.1.1.3 christos LIBS="-ldlpi $LIBS"
5593 1.1.1.3 christos V_PCAP=libdlpi
5594 1.1 christos
5595 1.1.1.2 christos $as_echo "#define HAVE_LIBDLPI 1" >>confdefs.h
5596 1.1 christos
5597 1.1.1.3 christos
5598 1.1 christos else
5599 1.1 christos V_PCAP=dlpi
5600 1.1 christos fi
5601 1.1 christos
5602 1.1 christos LDFLAGS=$saved_ldflags
5603 1.1 christos
5604 1.1 christos #
5605 1.1 christos # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
5606 1.1 christos # versions of DLPI.
5607 1.1 christos #
5608 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/dlpi.h> is usable" >&5
5609 1.1.1.2 christos $as_echo_n "checking whether <sys/dlpi.h> is usable... " >&6; }
5610 1.1.1.3 christos if ${ac_cv_sys_dlpi_usable+:} false; then :
5611 1.1.1.2 christos $as_echo_n "(cached) " >&6
5612 1.1 christos else
5613 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 1.1 christos /* end confdefs.h. */
5615 1.1 christos
5616 1.1 christos #include <sys/types.h>
5617 1.1 christos #include <sys/time.h>
5618 1.1 christos #include <sys/dlpi.h>
5619 1.1 christos
5620 1.1 christos int
5621 1.1 christos main ()
5622 1.1 christos {
5623 1.1 christos int i = DL_PROMISC_PHYS;
5624 1.1 christos ;
5625 1.1 christos return 0;
5626 1.1 christos }
5627 1.1 christos _ACEOF
5628 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
5629 1.1 christos ac_cv_sys_dlpi_usable=yes
5630 1.1 christos else
5631 1.1.1.2 christos ac_cv_sys_dlpi_usable=no
5632 1.1 christos fi
5633 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5634 1.1 christos fi
5635 1.1 christos
5636 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_dlpi_usable" >&5
5637 1.1.1.2 christos $as_echo "$ac_cv_sys_dlpi_usable" >&6; }
5638 1.1 christos if test $ac_cv_sys_dlpi_usable = no ; then
5639 1.1.1.2 christos as_fn_error $? "<sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" "$LINENO" 5
5640 1.1 christos fi
5641 1.1 christos
5642 1.1 christos #
5643 1.1 christos # Check whether we have a /dev/dlpi device or have multiple devices.
5644 1.1 christos #
5645 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/dlpi device" >&5
5646 1.1.1.2 christos $as_echo_n "checking for /dev/dlpi device... " >&6; }
5647 1.1 christos if test -c /dev/dlpi ; then
5648 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5649 1.1.1.2 christos $as_echo "yes" >&6; }
5650 1.1 christos
5651 1.1.1.2 christos $as_echo "#define HAVE_DEV_DLPI 1" >>confdefs.h
5652 1.1 christos
5653 1.1 christos else
5654 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5655 1.1.1.2 christos $as_echo "no" >&6; }
5656 1.1 christos dir="/dev/dlpi"
5657 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir directory" >&5
5658 1.1.1.2 christos $as_echo_n "checking for $dir directory... " >&6; }
5659 1.1 christos if test -d $dir ; then
5660 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5661 1.1.1.2 christos $as_echo "yes" >&6; }
5662 1.1 christos
5663 1.1 christos cat >>confdefs.h <<_ACEOF
5664 1.1 christos #define PCAP_DEV_PREFIX "$dir"
5665 1.1 christos _ACEOF
5666 1.1 christos
5667 1.1 christos else
5668 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669 1.1.1.2 christos $as_echo "no" >&6; }
5670 1.1 christos fi
5671 1.1 christos fi
5672 1.1 christos
5673 1.1 christos #
5674 1.1 christos # This check is for Solaris with DLPI support for passive modes.
5675 1.1 christos # See dlpi(7P) for more details.
5676 1.1 christos #
5677 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dl_passive_req_t struct exists" >&5
5678 1.1.1.2 christos $as_echo_n "checking if dl_passive_req_t struct exists... " >&6; }
5679 1.1.1.3 christos if ${ac_cv_lbl_has_dl_passive_req_t+:} false; then :
5680 1.1.1.2 christos $as_echo_n "(cached) " >&6
5681 1.1 christos else
5682 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683 1.1 christos /* end confdefs.h. */
5684 1.1 christos
5685 1.1 christos # include <sys/types.h>
5686 1.1 christos # include <sys/dlpi.h>
5687 1.1 christos int
5688 1.1 christos main ()
5689 1.1 christos {
5690 1.1 christos u_int i = sizeof(dl_passive_req_t)
5691 1.1 christos ;
5692 1.1 christos return 0;
5693 1.1 christos }
5694 1.1 christos _ACEOF
5695 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
5696 1.1 christos ac_cv_lbl_has_dl_passive_req_t=yes
5697 1.1 christos else
5698 1.1.1.2 christos ac_cv_lbl_has_dl_passive_req_t=no
5699 1.1 christos fi
5700 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701 1.1 christos fi
5702 1.1 christos
5703 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_has_dl_passive_req_t" >&5
5704 1.1.1.2 christos $as_echo "$ac_cv_lbl_has_dl_passive_req_t" >&6; }
5705 1.1 christos if test $ac_cv_lbl_has_dl_passive_req_t = yes ; then
5706 1.1 christos
5707 1.1.1.2 christos $as_echo "#define HAVE_DLPI_PASSIVE 1" >>confdefs.h
5708 1.1 christos
5709 1.1 christos fi
5710 1.1 christos ;;
5711 1.1 christos
5712 1.1 christos linux)
5713 1.1 christos #
5714 1.1 christos # Do we have the wireless extensions?
5715 1.1 christos #
5716 1.1.1.2 christos for ac_header in linux/wireless.h
5717 1.1.1.2 christos do :
5718 1.1.1.2 christos ac_fn_c_check_header_compile "$LINENO" "linux/wireless.h" "ac_cv_header_linux_wireless_h" "
5719 1.1 christos #include <sys/socket.h>
5720 1.1 christos #include <linux/if.h>
5721 1.1 christos #include <linux/types.h>
5722 1.1 christos
5723 1.1.1.2 christos "
5724 1.1.1.3 christos if test "x$ac_cv_header_linux_wireless_h" = xyes; then :
5725 1.1 christos cat >>confdefs.h <<_ACEOF
5726 1.1.1.2 christos #define HAVE_LINUX_WIRELESS_H 1
5727 1.1 christos _ACEOF
5728 1.1 christos
5729 1.1 christos fi
5730 1.1 christos
5731 1.1 christos done
5732 1.1 christos
5733 1.1 christos
5734 1.1 christos #
5735 1.1 christos # Do we have libnl?
5736 1.1 christos #
5737 1.1 christos
5738 1.1 christos # Check whether --with-libnl was given.
5739 1.1.1.2 christos if test "${with_libnl+set}" = set; then :
5740 1.1 christos withval=$with_libnl; with_libnl=$withval
5741 1.1 christos fi
5742 1.1 christos
5743 1.1 christos
5744 1.1 christos if test x$with_libnl != xno ; then
5745 1.1.1.3 christos have_any_nl="no"
5746 1.1.1.3 christos
5747 1.1.1.5 christos incdir=-I/usr/include/libnl3
5748 1.1.1.5 christos libnldir=
5749 1.1.1.5 christos if test x$withval != x ; then
5750 1.1.1.5 christos libnldir=-L${withval}/lib/.libs
5751 1.1.1.5 christos incdir=-I${withval}/include
5752 1.1.1.5 christos fi
5753 1.1.1.5 christos
5754 1.1.1.2 christos #
5755 1.1.1.3 christos # Try libnl 3.x first.
5756 1.1.1.2 christos #
5757 1.1.1.3 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl-3" >&5
5758 1.1.1.3 christos $as_echo_n "checking for nl_socket_alloc in -lnl-3... " >&6; }
5759 1.1.1.3 christos if ${ac_cv_lib_nl_3_nl_socket_alloc+:} false; then :
5760 1.1.1.3 christos $as_echo_n "(cached) " >&6
5761 1.1.1.3 christos else
5762 1.1.1.3 christos ac_check_lib_save_LIBS=$LIBS
5763 1.1.1.5 christos LIBS="-lnl-3 ${incdir} ${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
5764 1.1.1.3 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5765 1.1.1.3 christos /* end confdefs.h. */
5766 1.1.1.3 christos
5767 1.1.1.3 christos /* Override any GCC internal prototype to avoid an error.
5768 1.1.1.3 christos Use char because int might match the return type of a GCC
5769 1.1.1.3 christos builtin and then its argument prototype would still apply. */
5770 1.1.1.3 christos #ifdef __cplusplus
5771 1.1.1.3 christos extern "C"
5772 1.1.1.3 christos #endif
5773 1.1.1.3 christos char nl_socket_alloc ();
5774 1.1.1.3 christos int
5775 1.1.1.3 christos main ()
5776 1.1.1.3 christos {
5777 1.1.1.3 christos return nl_socket_alloc ();
5778 1.1.1.3 christos ;
5779 1.1.1.3 christos return 0;
5780 1.1.1.3 christos }
5781 1.1.1.3 christos _ACEOF
5782 1.1.1.3 christos if ac_fn_c_try_link "$LINENO"; then :
5783 1.1.1.3 christos ac_cv_lib_nl_3_nl_socket_alloc=yes
5784 1.1.1.3 christos else
5785 1.1.1.3 christos ac_cv_lib_nl_3_nl_socket_alloc=no
5786 1.1.1.3 christos fi
5787 1.1.1.3 christos rm -f core conftest.err conftest.$ac_objext \
5788 1.1.1.3 christos conftest$ac_exeext conftest.$ac_ext
5789 1.1.1.3 christos LIBS=$ac_check_lib_save_LIBS
5790 1.1.1.3 christos fi
5791 1.1.1.3 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_socket_alloc" >&5
5792 1.1.1.3 christos $as_echo "$ac_cv_lib_nl_3_nl_socket_alloc" >&6; }
5793 1.1.1.3 christos if test "x$ac_cv_lib_nl_3_nl_socket_alloc" = xyes; then :
5794 1.1.1.3 christos
5795 1.1.1.3 christos #
5796 1.1.1.3 christos # Yes, we have libnl 3.x.
5797 1.1.1.3 christos #
5798 1.1.1.5 christos LIBS="${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
5799 1.1.1.3 christos
5800 1.1.1.3 christos $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
5801 1.1.1.3 christos
5802 1.1.1.3 christos
5803 1.1.1.3 christos $as_echo "#define HAVE_LIBNL_3_x 1" >>confdefs.h
5804 1.1.1.3 christos
5805 1.1.1.3 christos
5806 1.1.1.3 christos $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
5807 1.1.1.3 christos
5808 1.1.1.3 christos
5809 1.1.1.3 christos $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
5810 1.1.1.3 christos
5811 1.1.1.5 christos V_INCLS="$V_INCLS ${incdir}"
5812 1.1.1.3 christos have_any_nl="yes"
5813 1.1.1.3 christos
5814 1.1.1.3 christos fi
5815 1.1.1.3 christos
5816 1.1.1.3 christos
5817 1.1.1.3 christos if test x$have_any_nl = xno ; then
5818 1.1.1.3 christos #
5819 1.1.1.3 christos # Try libnl 2.x
5820 1.1.1.3 christos #
5821 1.1.1.3 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl" >&5
5822 1.1.1.2 christos $as_echo_n "checking for nl_socket_alloc in -lnl... " >&6; }
5823 1.1.1.3 christos if ${ac_cv_lib_nl_nl_socket_alloc+:} false; then :
5824 1.1.1.2 christos $as_echo_n "(cached) " >&6
5825 1.1 christos else
5826 1.1 christos ac_check_lib_save_LIBS=$LIBS
5827 1.1 christos LIBS="-lnl $LIBS"
5828 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5829 1.1.1.2 christos /* end confdefs.h. */
5830 1.1.1.2 christos
5831 1.1.1.2 christos /* Override any GCC internal prototype to avoid an error.
5832 1.1.1.2 christos Use char because int might match the return type of a GCC
5833 1.1.1.2 christos builtin and then its argument prototype would still apply. */
5834 1.1.1.2 christos #ifdef __cplusplus
5835 1.1.1.2 christos extern "C"
5836 1.1.1.2 christos #endif
5837 1.1.1.2 christos char nl_socket_alloc ();
5838 1.1.1.2 christos int
5839 1.1.1.2 christos main ()
5840 1.1.1.2 christos {
5841 1.1.1.2 christos return nl_socket_alloc ();
5842 1.1.1.2 christos ;
5843 1.1.1.2 christos return 0;
5844 1.1.1.2 christos }
5845 1.1 christos _ACEOF
5846 1.1.1.2 christos if ac_fn_c_try_link "$LINENO"; then :
5847 1.1.1.2 christos ac_cv_lib_nl_nl_socket_alloc=yes
5848 1.1.1.2 christos else
5849 1.1.1.2 christos ac_cv_lib_nl_nl_socket_alloc=no
5850 1.1.1.2 christos fi
5851 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext \
5852 1.1.1.2 christos conftest$ac_exeext conftest.$ac_ext
5853 1.1.1.2 christos LIBS=$ac_check_lib_save_LIBS
5854 1.1.1.2 christos fi
5855 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_socket_alloc" >&5
5856 1.1.1.2 christos $as_echo "$ac_cv_lib_nl_nl_socket_alloc" >&6; }
5857 1.1.1.3 christos if test "x$ac_cv_lib_nl_nl_socket_alloc" = xyes; then :
5858 1.1.1.2 christos
5859 1.1.1.3 christos #
5860 1.1.1.3 christos # Yes, we have libnl 2.x.
5861 1.1.1.3 christos #
5862 1.1.1.5 christos LIBS="${libnldir} -lnl-genl -lnl $LIBS"
5863 1.1.1.2 christos
5864 1.1.1.2 christos $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
5865 1.1.1.2 christos
5866 1.1.1.2 christos
5867 1.1.1.2 christos $as_echo "#define HAVE_LIBNL_2_x 1" >>confdefs.h
5868 1.1.1.2 christos
5869 1.1.1.2 christos
5870 1.1.1.3 christos $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
5871 1.1.1.3 christos
5872 1.1.1.3 christos
5873 1.1.1.3 christos $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
5874 1.1.1.3 christos
5875 1.1.1.3 christos have_any_nl="yes"
5876 1.1.1.2 christos
5877 1.1.1.3 christos fi
5878 1.1.1.3 christos
5879 1.1.1.3 christos fi
5880 1.1.1.3 christos
5881 1.1.1.3 christos if test x$have_any_nl = xno ; then
5882 1.1.1.2 christos #
5883 1.1.1.2 christos # No, we don't; do we have libnl 1.x?
5884 1.1.1.2 christos #
5885 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_handle_alloc in -lnl" >&5
5886 1.1.1.2 christos $as_echo_n "checking for nl_handle_alloc in -lnl... " >&6; }
5887 1.1.1.3 christos if ${ac_cv_lib_nl_nl_handle_alloc+:} false; then :
5888 1.1.1.2 christos $as_echo_n "(cached) " >&6
5889 1.1.1.2 christos else
5890 1.1.1.2 christos ac_check_lib_save_LIBS=$LIBS
5891 1.1.1.2 christos LIBS="-lnl $LIBS"
5892 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5893 1.1 christos /* end confdefs.h. */
5894 1.1 christos
5895 1.1 christos /* Override any GCC internal prototype to avoid an error.
5896 1.1 christos Use char because int might match the return type of a GCC
5897 1.1 christos builtin and then its argument prototype would still apply. */
5898 1.1 christos #ifdef __cplusplus
5899 1.1 christos extern "C"
5900 1.1 christos #endif
5901 1.1 christos char nl_handle_alloc ();
5902 1.1 christos int
5903 1.1 christos main ()
5904 1.1 christos {
5905 1.1 christos return nl_handle_alloc ();
5906 1.1 christos ;
5907 1.1 christos return 0;
5908 1.1 christos }
5909 1.1 christos _ACEOF
5910 1.1.1.2 christos if ac_fn_c_try_link "$LINENO"; then :
5911 1.1 christos ac_cv_lib_nl_nl_handle_alloc=yes
5912 1.1 christos else
5913 1.1.1.2 christos ac_cv_lib_nl_nl_handle_alloc=no
5914 1.1 christos fi
5915 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext \
5916 1.1.1.2 christos conftest$ac_exeext conftest.$ac_ext
5917 1.1 christos LIBS=$ac_check_lib_save_LIBS
5918 1.1 christos fi
5919 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_handle_alloc" >&5
5920 1.1.1.2 christos $as_echo "$ac_cv_lib_nl_nl_handle_alloc" >&6; }
5921 1.1.1.3 christos if test "x$ac_cv_lib_nl_nl_handle_alloc" = xyes; then :
5922 1.1.1.2 christos
5923 1.1.1.2 christos #
5924 1.1.1.2 christos # Yes.
5925 1.1.1.2 christos #
5926 1.1.1.5 christos LIBS="${libnldir} -lnl $LIBS"
5927 1.1.1.2 christos
5928 1.1.1.2 christos $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
5929 1.1 christos
5930 1.1.1.3 christos have_any_nl="yes"
5931 1.1 christos
5932 1.1.1.3 christos fi
5933 1.1.1.2 christos
5934 1.1.1.3 christos fi
5935 1.1 christos
5936 1.1.1.3 christos if test x$have_any_nl = xno ; then
5937 1.1.1.3 christos #
5938 1.1.1.3 christos # No, we don't have libnl at all.
5939 1.1.1.3 christos #
5940 1.1.1.3 christos if test x$with_libnl = xyes ; then
5941 1.1.1.3 christos as_fn_error $? "libnl support requested but libnl not found" "$LINENO" 5
5942 1.1.1.3 christos fi
5943 1.1.1.3 christos fi
5944 1.1 christos fi
5945 1.1 christos
5946 1.1.1.2 christos for ac_header in linux/ethtool.h
5947 1.1.1.2 christos do :
5948 1.1.1.2 christos ac_fn_c_check_header_compile "$LINENO" "linux/ethtool.h" "ac_cv_header_linux_ethtool_h" "
5949 1.1.1.2 christos $ac_includes_default
5950 1.1.1.2 christos #include <linux/types.h>
5951 1.1.1.2 christos
5952 1.1.1.2 christos "
5953 1.1.1.3 christos if test "x$ac_cv_header_linux_ethtool_h" = xyes; then :
5954 1.1.1.2 christos cat >>confdefs.h <<_ACEOF
5955 1.1.1.2 christos #define HAVE_LINUX_ETHTOOL_H 1
5956 1.1 christos _ACEOF
5957 1.1.1.2 christos
5958 1.1.1.2 christos fi
5959 1.1.1.2 christos
5960 1.1.1.2 christos done
5961 1.1.1.2 christos
5962 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_packet.h has tpacket_stats defined" >&5
5963 1.1.1.2 christos $as_echo_n "checking if if_packet.h has tpacket_stats defined... " >&6; }
5964 1.1.1.3 christos if ${ac_cv_lbl_tpacket_stats+:} false; then :
5965 1.1.1.2 christos $as_echo_n "(cached) " >&6
5966 1.1.1.2 christos else
5967 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5968 1.1 christos /* end confdefs.h. */
5969 1.1 christos
5970 1.1 christos # include <linux/if_packet.h>
5971 1.1 christos int
5972 1.1 christos main ()
5973 1.1 christos {
5974 1.1 christos struct tpacket_stats stats
5975 1.1 christos ;
5976 1.1 christos return 0;
5977 1.1 christos }
5978 1.1 christos _ACEOF
5979 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
5980 1.1 christos ac_cv_lbl_tpacket_stats=yes
5981 1.1 christos else
5982 1.1.1.2 christos ac_cv_lbl_tpacket_stats=no
5983 1.1 christos fi
5984 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5985 1.1 christos fi
5986 1.1 christos
5987 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_tpacket_stats" >&5
5988 1.1.1.2 christos $as_echo "$ac_cv_lbl_tpacket_stats" >&6; }
5989 1.1 christos if test $ac_cv_lbl_tpacket_stats = yes; then
5990 1.1 christos
5991 1.1.1.2 christos $as_echo "#define HAVE_TPACKET_STATS 1" >>confdefs.h
5992 1.1 christos
5993 1.1 christos fi
5994 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking if tpacket_auxdata struct has tp_vlan_tci member" >&5
5995 1.1.1.2 christos $as_echo_n "checking if tpacket_auxdata struct has tp_vlan_tci member... " >&6; }
5996 1.1.1.3 christos if ${ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci+:} false; then :
5997 1.1.1.2 christos $as_echo_n "(cached) " >&6
5998 1.1 christos else
5999 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6000 1.1 christos /* end confdefs.h. */
6001 1.1 christos
6002 1.1.1.2 christos # include <sys/types.h>
6003 1.1 christos # include <linux/if_packet.h>
6004 1.1 christos int
6005 1.1 christos main ()
6006 1.1 christos {
6007 1.1 christos u_int i = sizeof(((struct tpacket_auxdata *)0)->tp_vlan_tci)
6008 1.1 christos ;
6009 1.1 christos return 0;
6010 1.1 christos }
6011 1.1 christos _ACEOF
6012 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
6013 1.1 christos ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=yes
6014 1.1 christos else
6015 1.1.1.2 christos ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=no
6016 1.1 christos fi
6017 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018 1.1 christos fi
6019 1.1 christos
6020 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&5
6021 1.1.1.2 christos $as_echo "$ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&6; }
6022 1.1 christos if test $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci = yes ; then
6023 1.1 christos HAVE_LINUX_TPACKET_AUXDATA=tp_vlan_tci
6024 1.1 christos
6025 1.1 christos
6026 1.1.1.2 christos $as_echo "#define HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI 1" >>confdefs.h
6027 1.1 christos
6028 1.1 christos fi
6029 1.1 christos ;;
6030 1.1 christos
6031 1.1 christos bpf)
6032 1.1 christos #
6033 1.1 christos # Check whether we have the *BSD-style ioctls.
6034 1.1 christos #
6035 1.1.1.2 christos for ac_header in net/if_media.h
6036 1.1.1.2 christos do :
6037 1.1.1.2 christos ac_fn_c_check_header_mongrel "$LINENO" "net/if_media.h" "ac_cv_header_net_if_media_h" "$ac_includes_default"
6038 1.1.1.3 christos if test "x$ac_cv_header_net_if_media_h" = xyes; then :
6039 1.1 christos cat >>confdefs.h <<_ACEOF
6040 1.1.1.2 christos #define HAVE_NET_IF_MEDIA_H 1
6041 1.1 christos _ACEOF
6042 1.1 christos
6043 1.1 christos fi
6044 1.1 christos
6045 1.1 christos done
6046 1.1 christos
6047 1.1 christos
6048 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the system supports zerocopy BPF" >&5
6049 1.1.1.2 christos $as_echo_n "checking whether the system supports zerocopy BPF... " >&6; }
6050 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051 1.1 christos /* end confdefs.h. */
6052 1.1 christos #include <sys/socket.h>
6053 1.1 christos #include <sys/ioctl.h>
6054 1.1 christos #include <net/if.h>
6055 1.1 christos #include <net/bpf.h>
6056 1.1 christos int
6057 1.1 christos main ()
6058 1.1 christos {
6059 1.1 christos return (BIOCROTZBUF + BPF_BUFMODE_ZBUF);
6060 1.1 christos ;
6061 1.1 christos return 0;
6062 1.1 christos }
6063 1.1 christos _ACEOF
6064 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
6065 1.1 christos
6066 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6067 1.1.1.2 christos $as_echo "yes" >&6; }
6068 1.1 christos
6069 1.1.1.2 christos $as_echo "#define HAVE_ZEROCOPY_BPF 1" >>confdefs.h
6070 1.1 christos
6071 1.1 christos
6072 1.1.1.2 christos else
6073 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6074 1.1.1.2 christos $as_echo "no" >&6; }
6075 1.1 christos fi
6076 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6077 1.1.1.2 christos
6078 1.1.1.2 christos #
6079 1.1.1.2 christos # Check whether we have struct BPF_TIMEVAL.
6080 1.1.1.2 christos #
6081 1.1.1.2 christos ac_fn_c_check_type "$LINENO" "struct BPF_TIMEVAL" "ac_cv_type_struct_BPF_TIMEVAL" "
6082 1.1.1.2 christos #include <sys/types.h>
6083 1.1.1.2 christos #include <sys/ioctl.h>
6084 1.1.1.2 christos #ifdef HAVE_SYS_IOCCOM_H
6085 1.1.1.2 christos #include <sys/ioccom.h>
6086 1.1.1.2 christos #endif
6087 1.1.1.2 christos #include <net/bpf.h>
6088 1.1.1.2 christos
6089 1.1.1.2 christos "
6090 1.1.1.3 christos if test "x$ac_cv_type_struct_BPF_TIMEVAL" = xyes; then :
6091 1.1 christos
6092 1.1 christos cat >>confdefs.h <<_ACEOF
6093 1.1 christos #define HAVE_STRUCT_BPF_TIMEVAL 1
6094 1.1 christos _ACEOF
6095 1.1 christos
6096 1.1 christos
6097 1.1 christos fi
6098 1.1 christos
6099 1.1 christos ;;
6100 1.1 christos
6101 1.1 christos dag)
6102 1.1.1.5.2.1 pgoyette #
6103 1.1.1.5.2.1 pgoyette # --with-pcap=dag is the only way to get here, and it means
6104 1.1.1.5.2.1 pgoyette # "DAG support but nothing else"
6105 1.1.1.5.2.1 pgoyette #
6106 1.1 christos V_DEFS="$V_DEFS -DDAG_ONLY"
6107 1.1.1.5.2.1 pgoyette xxx_only=yes
6108 1.1 christos ;;
6109 1.1 christos
6110 1.1 christos septel)
6111 1.1.1.5.2.1 pgoyette #
6112 1.1.1.5.2.1 pgoyette # --with-pcap=septel is the only way to get here, and it means
6113 1.1.1.5.2.1 pgoyette # "Septel support but nothing else"
6114 1.1.1.5.2.1 pgoyette #
6115 1.1 christos V_DEFS="$V_DEFS -DSEPTEL_ONLY"
6116 1.1.1.5.2.1 pgoyette xxx_only=yes
6117 1.1 christos ;;
6118 1.1 christos
6119 1.1 christos snf)
6120 1.1.1.5.2.1 pgoyette #
6121 1.1.1.5.2.1 pgoyette # --with-pcap=snf is the only way to get here, and it means
6122 1.1.1.5.2.1 pgoyette # "SNF support but nothing else"
6123 1.1.1.5.2.1 pgoyette #
6124 1.1 christos V_DEFS="$V_DEFS -DSNF_ONLY"
6125 1.1.1.5.2.1 pgoyette xxx_only=yes
6126 1.1 christos ;;
6127 1.1 christos
6128 1.1 christos null)
6129 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine packet capture interface" >&5
6130 1.1.1.2 christos $as_echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
6131 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (see the INSTALL doc for more info)" >&5
6132 1.1.1.2 christos $as_echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
6133 1.1 christos ;;
6134 1.1 christos esac
6135 1.1 christos
6136 1.1.1.5.2.1 pgoyette if test "$V_PCAP" != null
6137 1.1 christos then
6138 1.1.1.2 christos ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
6139 1.1.1.3 christos if test "x$ac_cv_func_getifaddrs" = xyes; then :
6140 1.1 christos
6141 1.1 christos #
6142 1.1 christos # We have "getifaddrs()"; make sure we have <ifaddrs.h>
6143 1.1 christos # as well, just in case some platform is really weird.
6144 1.1 christos #
6145 1.1.1.2 christos ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
6146 1.1.1.3 christos if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6147 1.1 christos
6148 1.1 christos #
6149 1.1 christos # We have the header, so we use "getifaddrs()" to
6150 1.1 christos # get the list of interfaces.
6151 1.1 christos #
6152 1.1.1.5.2.1 pgoyette V_FINDALLDEVS=fad-getad.c
6153 1.1 christos
6154 1.1 christos else
6155 1.1 christos
6156 1.1 christos #
6157 1.1 christos # We don't have the header - give up.
6158 1.1 christos # XXX - we could also fall back on some other
6159 1.1 christos # mechanism, but, for now, this'll catch this
6160 1.1 christos # problem so that we can at least try to figure
6161 1.1 christos # out something to do on systems with "getifaddrs()"
6162 1.1 christos # but without "ifaddrs.h", if there is something
6163 1.1 christos # we can do on those systems.
6164 1.1 christos #
6165 1.1.1.2 christos as_fn_error $? "Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." "$LINENO" 5
6166 1.1 christos
6167 1.1 christos fi
6168 1.1 christos
6169 1.1 christos
6170 1.1 christos
6171 1.1 christos else
6172 1.1 christos
6173 1.1 christos #
6174 1.1 christos # Well, we don't have "getifaddrs()", so we have to use
6175 1.1 christos # some other mechanism; determine what that mechanism is.
6176 1.1 christos #
6177 1.1 christos # The first thing we use is the type of capture mechanism,
6178 1.1 christos # which is somewhat of a proxy for the OS we're using.
6179 1.1 christos #
6180 1.1 christos case "$V_PCAP" in
6181 1.1 christos
6182 1.1 christos dlpi|libdlpi)
6183 1.1 christos #
6184 1.1 christos # This might be Solaris 8 or later, with
6185 1.1 christos # SIOCGLIFCONF, or it might be some other OS
6186 1.1 christos # or some older version of Solaris, with
6187 1.1 christos # just SIOCGIFCONF.
6188 1.1 christos #
6189 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have SIOCGLIFCONF" >&5
6190 1.1.1.2 christos $as_echo_n "checking whether we have SIOCGLIFCONF... " >&6; }
6191 1.1.1.3 christos if ${ac_cv_lbl_have_siocglifconf+:} false; then :
6192 1.1.1.2 christos $as_echo_n "(cached) " >&6
6193 1.1 christos else
6194 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6195 1.1 christos /* end confdefs.h. */
6196 1.1 christos #include <sys/param.h>
6197 1.1 christos #include <sys/file.h>
6198 1.1 christos #include <sys/ioctl.h>
6199 1.1 christos #include <sys/socket.h>
6200 1.1 christos #include <sys/sockio.h>
6201 1.1 christos int
6202 1.1 christos main ()
6203 1.1 christos {
6204 1.1 christos ioctl(0, SIOCGLIFCONF, (char *)0);
6205 1.1 christos ;
6206 1.1 christos return 0;
6207 1.1 christos }
6208 1.1 christos _ACEOF
6209 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
6210 1.1 christos ac_cv_lbl_have_siocglifconf=yes
6211 1.1 christos else
6212 1.1.1.2 christos ac_cv_lbl_have_siocglifconf=no
6213 1.1 christos fi
6214 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215 1.1 christos fi
6216 1.1 christos
6217 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_have_siocglifconf" >&5
6218 1.1.1.2 christos $as_echo "$ac_cv_lbl_have_siocglifconf" >&6; }
6219 1.1 christos if test $ac_cv_lbl_have_siocglifconf = yes ; then
6220 1.1.1.5.2.1 pgoyette V_FINDALLDEVS=fad-glifc.c
6221 1.1 christos else
6222 1.1.1.5.2.1 pgoyette V_FINDALLDEVS=fad-gifc.c
6223 1.1 christos fi
6224 1.1 christos ;;
6225 1.1 christos
6226 1.1 christos *)
6227 1.1 christos #
6228 1.1 christos # Assume we just have SIOCGIFCONF.
6229 1.1 christos # (XXX - on at least later Linux kernels, there's
6230 1.1 christos # another mechanism, and we should be using that
6231 1.1 christos # instead.)
6232 1.1 christos #
6233 1.1.1.5.2.1 pgoyette V_FINDALLDEVS=fad-gifc.c
6234 1.1 christos ;;
6235 1.1.1.2 christos esac
6236 1.1.1.2 christos fi
6237 1.1.1.2 christos
6238 1.1.1.2 christos fi
6239 1.1.1.2 christos
6240 1.1.1.2 christos fi
6241 1.1.1.2 christos
6242 1.1.1.2 christos
6243 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
6244 1.1.1.2 christos $as_echo_n "checking for socklen_t... " >&6; }
6245 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246 1.1.1.2 christos /* end confdefs.h. */
6247 1.1.1.2 christos
6248 1.1.1.2 christos #include <sys/types.h>
6249 1.1.1.2 christos #include <sys/socket.h>
6250 1.1 christos
6251 1.1 christos int
6252 1.1 christos main ()
6253 1.1 christos {
6254 1.1.1.2 christos socklen_t x;
6255 1.1 christos ;
6256 1.1 christos return 0;
6257 1.1 christos }
6258 1.1 christos _ACEOF
6259 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
6260 1.1.1.2 christos have_socklen_t=yes
6261 1.1 christos else
6262 1.1.1.2 christos have_socklen_t=no
6263 1.1.1.2 christos fi
6264 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6265 1.1.1.2 christos if test "x$have_socklen_t" = "xyes"; then
6266 1.1.1.2 christos
6267 1.1.1.2 christos $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
6268 1.1 christos
6269 1.1 christos fi
6270 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_socklen_t" >&5
6271 1.1.1.2 christos $as_echo "$have_socklen_t" >&6; }
6272 1.1 christos
6273 1.1.1.2 christos # Check whether --enable-ipv6 was given.
6274 1.1.1.2 christos if test "${enable_ipv6+set}" = set; then :
6275 1.1.1.2 christos enableval=$enable_ipv6;
6276 1.1.1.2 christos else
6277 1.1.1.2 christos enable_ipv6=ifavailable
6278 1.1 christos fi
6279 1.1 christos
6280 1.1.1.2 christos if test "$enable_ipv6" != "no"; then
6281 1.1.1.2 christos ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
6282 1.1.1.3 christos if test "x$ac_cv_func_getaddrinfo" = xyes; then :
6283 1.1 christos
6284 1.1.1.2 christos
6285 1.1.1.2 christos $as_echo "#define INET6 1" >>confdefs.h
6286 1.1 christos
6287 1.1 christos
6288 1.1 christos else
6289 1.1 christos
6290 1.1 christos if test "$enable_ipv6" != "ifavailable"; then
6291 1.1.1.2 christos { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6292 1.1.1.2 christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6293 1.1.1.2 christos as_fn_error $? "--enable-ipv6 was given, but getaddrinfo isn't available
6294 1.1.1.3 christos See \`config.log' for more details" "$LINENO" 5; }
6295 1.1 christos fi
6296 1.1 christos
6297 1.1 christos fi
6298 1.1 christos
6299 1.1 christos fi
6300 1.1 christos
6301 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build optimizer debugging code" >&5
6302 1.1.1.2 christos $as_echo_n "checking whether to build optimizer debugging code... " >&6; }
6303 1.1 christos # Check whether --enable-optimizer-dbg was given.
6304 1.1.1.2 christos if test "${enable_optimizer_dbg+set}" = set; then :
6305 1.1 christos enableval=$enable_optimizer_dbg;
6306 1.1 christos fi
6307 1.1 christos
6308 1.1 christos if test "$enable_optimizer_dbg" = "yes"; then
6309 1.1 christos
6310 1.1.1.2 christos $as_echo "#define BDEBUG 1" >>confdefs.h
6311 1.1 christos
6312 1.1 christos fi
6313 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_optimizer_dbg-no}" >&5
6314 1.1.1.2 christos $as_echo "${enable_optimizer_dbg-no}" >&6; }
6315 1.1 christos
6316 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build parser debugging code" >&5
6317 1.1.1.2 christos $as_echo_n "checking whether to build parser debugging code... " >&6; }
6318 1.1 christos # Check whether --enable-yydebug was given.
6319 1.1.1.2 christos if test "${enable_yydebug+set}" = set; then :
6320 1.1 christos enableval=$enable_yydebug;
6321 1.1 christos fi
6322 1.1 christos
6323 1.1 christos if test "$enable_yydebug" = "yes"; then
6324 1.1 christos
6325 1.1.1.2 christos $as_echo "#define YYDEBUG 1" >>confdefs.h
6326 1.1 christos
6327 1.1 christos fi
6328 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_yydebug-no}" >&5
6329 1.1.1.2 christos $as_echo "${enable_yydebug-no}" >&6; }
6330 1.1 christos
6331 1.1 christos # Check for Endace DAG card support.
6332 1.1 christos
6333 1.1 christos # Check whether --with-dag was given.
6334 1.1.1.2 christos if test "${with_dag+set}" = set; then :
6335 1.1 christos withval=$with_dag;
6336 1.1 christos if test "$withval" = no
6337 1.1 christos then
6338 1.1 christos # User doesn't want DAG support.
6339 1.1 christos want_dag=no
6340 1.1 christos elif test "$withval" = yes
6341 1.1 christos then
6342 1.1 christos # User wants DAG support but hasn't specified a directory.
6343 1.1 christos want_dag=yes
6344 1.1 christos else
6345 1.1 christos # User wants DAG support and has specified a directory, so use the provided value.
6346 1.1 christos want_dag=yes
6347 1.1 christos dag_root=$withval
6348 1.1 christos fi
6349 1.1 christos
6350 1.1 christos else
6351 1.1 christos
6352 1.1.1.5.2.1 pgoyette if test "$V_PCAP" = dag; then
6353 1.1.1.5.2.1 pgoyette # User requested DAG-only libpcap, so we'd better have
6354 1.1.1.5.2.1 pgoyette # the DAG API.
6355 1.1.1.5.2.1 pgoyette want_dag=yes
6356 1.1.1.5.2.1 pgoyette elif test "xxx_only" = yes; then
6357 1.1.1.5.2.1 pgoyette # User requested something-else-only pcap, so they don't
6358 1.1.1.5.2.1 pgoyette # want DAG support.
6359 1.1.1.5.2.1 pgoyette want_dag=no
6360 1.1.1.5.2.1 pgoyette else
6361 1.1.1.5.2.1 pgoyette #
6362 1.1.1.5.2.1 pgoyette # Use DAG API if present, otherwise don't
6363 1.1.1.5.2.1 pgoyette #
6364 1.1.1.5.2.1 pgoyette want_dag=ifpresent
6365 1.1.1.5.2.1 pgoyette fi
6366 1.1 christos
6367 1.1 christos fi
6368 1.1 christos
6369 1.1 christos
6370 1.1 christos
6371 1.1 christos # Check whether --with-dag-includes was given.
6372 1.1.1.2 christos if test "${with_dag_includes+set}" = set; then :
6373 1.1 christos withval=$with_dag_includes;
6374 1.1 christos # User wants DAG support and has specified a header directory, so use the provided value.
6375 1.1 christos want_dag=yes
6376 1.1 christos dag_include_dir=$withval
6377 1.1 christos
6378 1.1 christos fi
6379 1.1 christos
6380 1.1 christos
6381 1.1 christos
6382 1.1 christos # Check whether --with-dag-libraries was given.
6383 1.1.1.2 christos if test "${with_dag_libraries+set}" = set; then :
6384 1.1 christos withval=$with_dag_libraries;
6385 1.1 christos # User wants DAG support and has specified a library directory, so use the provided value.
6386 1.1 christos want_dag=yes
6387 1.1 christos dag_lib_dir=$withval
6388 1.1 christos
6389 1.1 christos fi
6390 1.1 christos
6391 1.1 christos
6392 1.1 christos ac_cv_lbl_dag_api=no
6393 1.1 christos if test "$want_dag" != no; then
6394 1.1 christos
6395 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have DAG API headers" >&5
6396 1.1.1.2 christos $as_echo_n "checking whether we have DAG API headers... " >&6; }
6397 1.1 christos
6398 1.1 christos # If necessary, set default paths for DAG API headers and libraries.
6399 1.1 christos if test -z "$dag_root"; then
6400 1.1.1.5.2.1 pgoyette dag_root=/usr/local
6401 1.1 christos fi
6402 1.1 christos
6403 1.1 christos if test -z "$dag_include_dir"; then
6404 1.1 christos dag_include_dir="$dag_root/include"
6405 1.1 christos fi
6406 1.1 christos
6407 1.1 christos if test -z "$dag_lib_dir"; then
6408 1.1.1.5.2.1 pgoyette dag_lib_dir="$dag_root/lib"
6409 1.1 christos fi
6410 1.1 christos
6411 1.1 christos if test -z "$dag_tools_dir"; then
6412 1.1.1.5.2.1 pgoyette dag_tools_dir="$dag_root/tools"
6413 1.1.1.2 christos fi
6414 1.1 christos
6415 1.1 christos if test -r $dag_include_dir/dagapi.h; then
6416 1.1 christos ac_cv_lbl_dag_api=yes
6417 1.1 christos fi
6418 1.1 christos
6419 1.1.1.5.2.1 pgoyette if test "$ac_cv_lbl_dag_api" = yes; then
6420 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($dag_include_dir)" >&5
6421 1.1.1.5.2.1 pgoyette $as_echo "yes ($dag_include_dir)" >&6; }
6422 1.1.1.2 christos
6423 1.1.1.5.2.1 pgoyette V_INCLS="$V_INCLS -I$dag_include_dir"
6424 1.1 christos
6425 1.1.1.5.2.1 pgoyette if test $V_PCAP != dag ; then
6426 1.1.1.5.2.1 pgoyette SSRC="$SSRC pcap-dag.c"
6427 1.1.1.5.2.1 pgoyette fi
6428 1.1.1.5.2.1 pgoyette
6429 1.1.1.5.2.1 pgoyette # See if we can find a general version string.
6430 1.1.1.5.2.1 pgoyette # Don't need to save and restore LIBS to prevent -ldag being
6431 1.1.1.5.2.1 pgoyette # included if there's a found-action (arg 3).
6432 1.1.1.5.2.1 pgoyette saved_ldflags=$LDFLAGS
6433 1.1.1.5.2.1 pgoyette LDFLAGS="-L$dag_lib_dir"
6434 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream in -ldag" >&5
6435 1.1.1.2 christos $as_echo_n "checking for dag_attach_stream in -ldag... " >&6; }
6436 1.1.1.3 christos if ${ac_cv_lib_dag_dag_attach_stream+:} false; then :
6437 1.1.1.2 christos $as_echo_n "(cached) " >&6
6438 1.1 christos else
6439 1.1 christos ac_check_lib_save_LIBS=$LIBS
6440 1.1 christos LIBS="-ldag $LIBS"
6441 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442 1.1 christos /* end confdefs.h. */
6443 1.1 christos
6444 1.1 christos /* Override any GCC internal prototype to avoid an error.
6445 1.1 christos Use char because int might match the return type of a GCC
6446 1.1 christos builtin and then its argument prototype would still apply. */
6447 1.1 christos #ifdef __cplusplus
6448 1.1 christos extern "C"
6449 1.1 christos #endif
6450 1.1 christos char dag_attach_stream ();
6451 1.1 christos int
6452 1.1 christos main ()
6453 1.1 christos {
6454 1.1 christos return dag_attach_stream ();
6455 1.1 christos ;
6456 1.1 christos return 0;
6457 1.1 christos }
6458 1.1 christos _ACEOF
6459 1.1.1.2 christos if ac_fn_c_try_link "$LINENO"; then :
6460 1.1 christos ac_cv_lib_dag_dag_attach_stream=yes
6461 1.1 christos else
6462 1.1.1.2 christos ac_cv_lib_dag_dag_attach_stream=no
6463 1.1 christos fi
6464 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext \
6465 1.1.1.2 christos conftest$ac_exeext conftest.$ac_ext
6466 1.1 christos LIBS=$ac_check_lib_save_LIBS
6467 1.1 christos fi
6468 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream" >&5
6469 1.1.1.2 christos $as_echo "$ac_cv_lib_dag_dag_attach_stream" >&6; }
6470 1.1.1.3 christos if test "x$ac_cv_lib_dag_dag_attach_stream" = xyes; then :
6471 1.1 christos dag_streams="1"
6472 1.1 christos else
6473 1.1 christos dag_streams="0"
6474 1.1 christos fi
6475 1.1 christos
6476 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_erf_types in -ldag" >&5
6477 1.1.1.2 christos $as_echo_n "checking for dag_get_erf_types in -ldag... " >&6; }
6478 1.1.1.3 christos if ${ac_cv_lib_dag_dag_get_erf_types+:} false; then :
6479 1.1.1.2 christos $as_echo_n "(cached) " >&6
6480 1.1 christos else
6481 1.1 christos ac_check_lib_save_LIBS=$LIBS
6482 1.1 christos LIBS="-ldag $LIBS"
6483 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484 1.1 christos /* end confdefs.h. */
6485 1.1 christos
6486 1.1 christos /* Override any GCC internal prototype to avoid an error.
6487 1.1 christos Use char because int might match the return type of a GCC
6488 1.1 christos builtin and then its argument prototype would still apply. */
6489 1.1 christos #ifdef __cplusplus
6490 1.1 christos extern "C"
6491 1.1 christos #endif
6492 1.1 christos char dag_get_erf_types ();
6493 1.1 christos int
6494 1.1 christos main ()
6495 1.1 christos {
6496 1.1 christos return dag_get_erf_types ();
6497 1.1 christos ;
6498 1.1 christos return 0;
6499 1.1 christos }
6500 1.1 christos _ACEOF
6501 1.1.1.2 christos if ac_fn_c_try_link "$LINENO"; then :
6502 1.1 christos ac_cv_lib_dag_dag_get_erf_types=yes
6503 1.1 christos else
6504 1.1.1.2 christos ac_cv_lib_dag_dag_get_erf_types=no
6505 1.1 christos fi
6506 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext \
6507 1.1.1.2 christos conftest$ac_exeext conftest.$ac_ext
6508 1.1 christos LIBS=$ac_check_lib_save_LIBS
6509 1.1 christos fi
6510 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
6511 1.1.1.2 christos $as_echo "$ac_cv_lib_dag_dag_get_erf_types" >&6; }
6512 1.1.1.3 christos if test "x$ac_cv_lib_dag_dag_get_erf_types" = xyes; then :
6513 1.1 christos
6514 1.1 christos
6515 1.1.1.2 christos $as_echo "#define HAVE_DAG_GET_ERF_TYPES 1" >>confdefs.h
6516 1.1 christos
6517 1.1 christos fi
6518 1.1 christos
6519 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_stream_erf_types in -ldag" >&5
6520 1.1.1.2 christos $as_echo_n "checking for dag_get_stream_erf_types in -ldag... " >&6; }
6521 1.1.1.3 christos if ${ac_cv_lib_dag_dag_get_stream_erf_types+:} false; then :
6522 1.1.1.2 christos $as_echo_n "(cached) " >&6
6523 1.1 christos else
6524 1.1 christos ac_check_lib_save_LIBS=$LIBS
6525 1.1 christos LIBS="-ldag $LIBS"
6526 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6527 1.1 christos /* end confdefs.h. */
6528 1.1 christos
6529 1.1 christos /* Override any GCC internal prototype to avoid an error.
6530 1.1 christos Use char because int might match the return type of a GCC
6531 1.1 christos builtin and then its argument prototype would still apply. */
6532 1.1 christos #ifdef __cplusplus
6533 1.1 christos extern "C"
6534 1.1 christos #endif
6535 1.1 christos char dag_get_stream_erf_types ();
6536 1.1 christos int
6537 1.1 christos main ()
6538 1.1 christos {
6539 1.1 christos return dag_get_stream_erf_types ();
6540 1.1 christos ;
6541 1.1 christos return 0;
6542 1.1 christos }
6543 1.1 christos _ACEOF
6544 1.1.1.2 christos if ac_fn_c_try_link "$LINENO"; then :
6545 1.1 christos ac_cv_lib_dag_dag_get_stream_erf_types=yes
6546 1.1 christos else
6547 1.1.1.2 christos ac_cv_lib_dag_dag_get_stream_erf_types=no
6548 1.1 christos fi
6549 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext \
6550 1.1.1.2 christos conftest$ac_exeext conftest.$ac_ext
6551 1.1 christos LIBS=$ac_check_lib_save_LIBS
6552 1.1 christos fi
6553 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
6554 1.1.1.2 christos $as_echo "$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
6555 1.1.1.3 christos if test "x$ac_cv_lib_dag_dag_get_stream_erf_types" = xyes; then :
6556 1.1 christos
6557 1.1 christos
6558 1.1.1.2 christos $as_echo "#define HAVE_DAG_GET_STREAM_ERF_TYPES 1" >>confdefs.h
6559 1.1 christos
6560 1.1 christos fi
6561 1.1 christos
6562 1.1.1.2 christos
6563 1.1.1.5.2.1 pgoyette LDFLAGS=$saved_ldflags
6564 1.1 christos
6565 1.1.1.5.2.1 pgoyette if test "$dag_streams" = 1; then
6566 1.1 christos
6567 1.1.1.2 christos $as_echo "#define HAVE_DAG_STREAMS_API 1" >>confdefs.h
6568 1.1 christos
6569 1.1.1.5.2.1 pgoyette LIBS="$LIBS -ldag"
6570 1.1.1.5.2.1 pgoyette LDFLAGS="$LDFLAGS -L$dag_lib_dir"
6571 1.1 christos
6572 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vdag_set_device_info in -lvdag" >&5
6573 1.1.1.2 christos $as_echo_n "checking for vdag_set_device_info in -lvdag... " >&6; }
6574 1.1.1.3 christos if ${ac_cv_lib_vdag_vdag_set_device_info+:} false; then :
6575 1.1.1.2 christos $as_echo_n "(cached) " >&6
6576 1.1.1.2 christos else
6577 1.1.1.2 christos ac_check_lib_save_LIBS=$LIBS
6578 1.1.1.2 christos LIBS="-lvdag $LIBS"
6579 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580 1.1.1.2 christos /* end confdefs.h. */
6581 1.1 christos
6582 1.1.1.2 christos /* Override any GCC internal prototype to avoid an error.
6583 1.1.1.2 christos Use char because int might match the return type of a GCC
6584 1.1.1.2 christos builtin and then its argument prototype would still apply. */
6585 1.1.1.2 christos #ifdef __cplusplus
6586 1.1.1.2 christos extern "C"
6587 1.1.1.2 christos #endif
6588 1.1.1.2 christos char vdag_set_device_info ();
6589 1.1.1.2 christos int
6590 1.1.1.2 christos main ()
6591 1.1.1.2 christos {
6592 1.1.1.2 christos return vdag_set_device_info ();
6593 1.1.1.2 christos ;
6594 1.1.1.2 christos return 0;
6595 1.1.1.2 christos }
6596 1.1 christos _ACEOF
6597 1.1.1.2 christos if ac_fn_c_try_link "$LINENO"; then :
6598 1.1.1.2 christos ac_cv_lib_vdag_vdag_set_device_info=yes
6599 1.1.1.2 christos else
6600 1.1.1.2 christos ac_cv_lib_vdag_vdag_set_device_info=no
6601 1.1.1.2 christos fi
6602 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext \
6603 1.1.1.2 christos conftest$ac_exeext conftest.$ac_ext
6604 1.1.1.2 christos LIBS=$ac_check_lib_save_LIBS
6605 1.1.1.2 christos fi
6606 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vdag_vdag_set_device_info" >&5
6607 1.1.1.2 christos $as_echo "$ac_cv_lib_vdag_vdag_set_device_info" >&6; }
6608 1.1.1.3 christos if test "x$ac_cv_lib_vdag_vdag_set_device_info" = xyes; then :
6609 1.1.1.2 christos ac_dag_have_vdag="1"
6610 1.1.1.2 christos else
6611 1.1.1.2 christos ac_dag_have_vdag="0"
6612 1.1.1.2 christos fi
6613 1.1.1.2 christos
6614 1.1.1.5.2.1 pgoyette if test "$ac_dag_have_vdag" = 1; then
6615 1.1.1.2 christos
6616 1.1.1.2 christos $as_echo "#define HAVE_DAG_VDAG 1" >>confdefs.h
6617 1.1.1.2 christos
6618 1.1.1.5.2.1 pgoyette LIBS="$LIBS -lpthread"
6619 1.1.1.5.2.1 pgoyette fi
6620 1.1.1.2 christos fi
6621 1.1.1.2 christos
6622 1.1.1.2 christos
6623 1.1.1.2 christos $as_echo "#define HAVE_DAG_API 1" >>confdefs.h
6624 1.1 christos
6625 1.1.1.5.2.1 pgoyette else
6626 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6627 1.1.1.2 christos $as_echo "no" >&6; }
6628 1.1 christos
6629 1.1.1.5.2.1 pgoyette if test "$V_PCAP" = dag; then
6630 1.1.1.5.2.1 pgoyette # User requested "dag" capture type but we couldn't
6631 1.1.1.5.2.1 pgoyette # find the DAG API support.
6632 1.1.1.5.2.1 pgoyette as_fn_error $? "DAG support requested with --with-pcap=dag, but the DAG headers weren't found at $dag_include_dir: make sure the DAG support is installed, specify a different path or paths if necessary, or don't request DAG support" "$LINENO" 5
6633 1.1.1.5.2.1 pgoyette fi
6634 1.1.1.5.2.1 pgoyette
6635 1.1.1.5.2.1 pgoyette if test "$want_dag" = yes; then
6636 1.1.1.5.2.1 pgoyette # User wanted DAG support but we couldn't find it.
6637 1.1.1.5.2.1 pgoyette as_fn_error $? "DAG support requested with --with-dag, but the DAG headers weren't found at $dag_include_dir: make sure the DAG support is installed, specify a different path or paths if necessary, or don't request DAG support" "$LINENO" 5
6638 1.1.1.5.2.1 pgoyette fi
6639 1.1 christos fi
6640 1.1 christos fi
6641 1.1 christos
6642 1.1 christos
6643 1.1 christos # Check whether --with-septel was given.
6644 1.1.1.2 christos if test "${with_septel+set}" = set; then :
6645 1.1 christos withval=$with_septel;
6646 1.1 christos if test "$withval" = no
6647 1.1 christos then
6648 1.1 christos want_septel=no
6649 1.1 christos elif test "$withval" = yes
6650 1.1 christos then
6651 1.1 christos want_septel=yes
6652 1.1 christos septel_root=
6653 1.1 christos else
6654 1.1 christos want_septel=yes
6655 1.1 christos septel_root=$withval
6656 1.1 christos fi
6657 1.1 christos
6658 1.1 christos else
6659 1.1 christos
6660 1.1.1.5.2.1 pgoyette if test "$V_PCAP" = septel; then
6661 1.1.1.5.2.1 pgoyette # User requested Septel-only libpcap, so we'd better have
6662 1.1.1.5.2.1 pgoyette # the Septel API.
6663 1.1.1.5.2.1 pgoyette want_septel=yes
6664 1.1.1.5.2.1 pgoyette elif test "xxx_only" = yes; then
6665 1.1.1.5.2.1 pgoyette # User requested something-else-only pcap, so they don't
6666 1.1.1.5.2.1 pgoyette # want Septel support.
6667 1.1.1.5.2.1 pgoyette want_septel=no
6668 1.1.1.5.2.1 pgoyette else
6669 1.1.1.5.2.1 pgoyette #
6670 1.1.1.5.2.1 pgoyette # Use Septel API if present, otherwise don't
6671 1.1.1.5.2.1 pgoyette #
6672 1.1.1.5.2.1 pgoyette want_septel=ifpresent
6673 1.1.1.5.2.1 pgoyette fi
6674 1.1 christos
6675 1.1 christos fi
6676 1.1 christos
6677 1.1 christos
6678 1.1.1.5.2.1 pgoyette ac_cv_lbl_septel_api=no
6679 1.1 christos if test "$with_septel" != no; then
6680 1.1 christos
6681 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Septel API headers" >&5
6682 1.1.1.5.2.1 pgoyette $as_echo_n "checking whether we have Septel API headers... " >&6; }
6683 1.1.1.5.2.1 pgoyette
6684 1.1.1.5.2.1 pgoyette # If necessary, set default paths for Septel API headers and libraries.
6685 1.1 christos if test -z "$septel_root"; then
6686 1.1 christos septel_root=$srcdir/../septel
6687 1.1 christos fi
6688 1.1 christos
6689 1.1 christos septel_tools_dir="$septel_root"
6690 1.1 christos septel_include_dir="$septel_root/INC"
6691 1.1 christos
6692 1.1 christos if test -r "$septel_include_dir/msg.h"; then
6693 1.1.1.5.2.1 pgoyette ac_cv_lbl_septel_api=yes
6694 1.1.1.5.2.1 pgoyette fi
6695 1.1.1.5.2.1 pgoyette
6696 1.1.1.5.2.1 pgoyette if test "$ac_cv_lbl_septel_api" = yes; then
6697 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($septel_include_dir)" >&5
6698 1.1.1.5.2.1 pgoyette $as_echo "yes ($septel_include_dir)" >&6; }
6699 1.1.1.5.2.1 pgoyette
6700 1.1 christos V_INCLS="$V_INCLS -I$septel_include_dir"
6701 1.1 christos ADDLOBJS="$ADDLOBJS $septel_tools_dir/asciibin.o $septel_tools_dir/bit2byte.o $septel_tools_dir/confirm.o $septel_tools_dir/fmtmsg.o $septel_tools_dir/gct_unix.o $septel_tools_dir/hqueue.o $septel_tools_dir/ident.o $septel_tools_dir/mem.o $septel_tools_dir/pack.o $septel_tools_dir/parse.o $septel_tools_dir/pool.o $septel_tools_dir/sdlsig.o $septel_tools_dir/strtonum.o $septel_tools_dir/timer.o $septel_tools_dir/trace.o"
6702 1.1 christos ADDLARCHIVEOBJS="$ADDLARCHIVEOBJS $septel_tools_dir/asciibin.o $septel_tools_dir/bit2byte.o $septel_tools_dir/confirm.o $septel_tools_dir/fmtmsg.o $septel_tools_dir/gct_unix.o $septel_tools_dir/hqueue.o $septel_tools_dir/ident.o $septel_tools_dir/mem.o $septel_tools_dir/pack.o $septel_tools_dir/parse.o $septel_tools_dir/pool.o $septel_tools_dir/sdlsig.o $septel_tools_dir/strtonum.o $septel_tools_dir/timer.o $septel_tools_dir/trace.o"
6703 1.1 christos
6704 1.1 christos if test "$V_PCAP" != septel ; then
6705 1.1.1.5.2.1 pgoyette SSRC="$SSRC pcap-septel.c"
6706 1.1 christos fi
6707 1.1 christos
6708 1.1 christos
6709 1.1.1.2 christos $as_echo "#define HAVE_SEPTEL_API 1" >>confdefs.h
6710 1.1 christos
6711 1.1.1.5.2.1 pgoyette else
6712 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6713 1.1.1.5.2.1 pgoyette $as_echo "no" >&6; }
6714 1.1 christos
6715 1.1.1.5.2.1 pgoyette if test "$V_PCAP" = septel; then
6716 1.1.1.5.2.1 pgoyette # User requested "septel" capture type but
6717 1.1.1.5.2.1 pgoyette # we couldn't find the Septel API support.
6718 1.1.1.5.2.1 pgoyette as_fn_error $? "Septel support requested with --with-pcap=septel, but the Septel headers weren't found at $septel_include_dir: make sure the Septel support is installed, specify a different path or paths if necessary, or don't request Septel support" "$LINENO" 5
6719 1.1.1.5.2.1 pgoyette fi
6720 1.1.1.5.2.1 pgoyette
6721 1.1.1.5.2.1 pgoyette if test "$want_septel" = yes; then
6722 1.1.1.5.2.1 pgoyette # User wanted Septel support but we couldn't find it.
6723 1.1.1.5.2.1 pgoyette as_fn_error $? "Septel support requested with --with-septel, but the Septel headers weren't found at $septel_include_dir: make sure the Septel support is installed, specify a different path or paths if necessary, or don't request Septel support" "$LINENO" 5
6724 1.1.1.5.2.1 pgoyette fi
6725 1.1.1.5.2.1 pgoyette fi
6726 1.1 christos fi
6727 1.1 christos
6728 1.1 christos # Check for Myricom SNF support.
6729 1.1 christos
6730 1.1 christos # Check whether --with-snf was given.
6731 1.1.1.2 christos if test "${with_snf+set}" = set; then :
6732 1.1 christos withval=$with_snf;
6733 1.1 christos if test "$withval" = no
6734 1.1 christos then
6735 1.1 christos # User explicitly doesn't want SNF
6736 1.1 christos want_snf=no
6737 1.1 christos elif test "$withval" = yes
6738 1.1 christos then
6739 1.1.1.5.2.1 pgoyette # User wants SNF support but hasn't specified a directory.
6740 1.1 christos want_snf=yes
6741 1.1 christos else
6742 1.1 christos # User wants SNF support with a specified directory.
6743 1.1 christos want_snf=yes
6744 1.1 christos snf_root=$withval
6745 1.1 christos fi
6746 1.1 christos
6747 1.1 christos else
6748 1.1 christos
6749 1.1.1.5.2.1 pgoyette if test "$V_PCAP" = snf; then
6750 1.1.1.5.2.1 pgoyette # User requested Sniffer-only libpcap, so we'd better have
6751 1.1.1.5.2.1 pgoyette # the Sniffer API.
6752 1.1.1.5.2.1 pgoyette want_snf=yes
6753 1.1.1.5.2.1 pgoyette elif test "xxx_only" = yes; then
6754 1.1.1.5.2.1 pgoyette # User requested something-else-only pcap, so they don't
6755 1.1.1.5.2.1 pgoyette # want SNF support.
6756 1.1.1.5.2.1 pgoyette want_snf=no
6757 1.1.1.5.2.1 pgoyette else
6758 1.1.1.5.2.1 pgoyette #
6759 1.1.1.5.2.1 pgoyette # Use Sniffer API if present, otherwise don't
6760 1.1.1.5.2.1 pgoyette #
6761 1.1.1.5.2.1 pgoyette want_snf=ifpresent
6762 1.1.1.5.2.1 pgoyette fi
6763 1.1 christos
6764 1.1 christos fi
6765 1.1 christos
6766 1.1 christos
6767 1.1 christos
6768 1.1 christos # Check whether --with-snf-includes was given.
6769 1.1.1.2 christos if test "${with_snf_includes+set}" = set; then :
6770 1.1 christos withval=$with_snf_includes;
6771 1.1 christos # User wants SNF with specific header directory
6772 1.1 christos want_snf=yes
6773 1.1 christos snf_include_dir=$withval
6774 1.1 christos
6775 1.1 christos fi
6776 1.1 christos
6777 1.1 christos
6778 1.1 christos
6779 1.1 christos # Check whether --with-snf-libraries was given.
6780 1.1.1.2 christos if test "${with_snf_libraries+set}" = set; then :
6781 1.1 christos withval=$with_snf_libraries;
6782 1.1 christos # User wants SNF with specific lib directory
6783 1.1 christos want_snf=yes
6784 1.1 christos snf_lib_dir=$withval
6785 1.1 christos
6786 1.1 christos fi
6787 1.1 christos
6788 1.1 christos
6789 1.1 christos ac_cv_lbl_snf_api=no
6790 1.1 christos if test "$with_snf" != no; then
6791 1.1 christos
6792 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Myricom Sniffer API" >&5
6793 1.1.1.2 christos $as_echo_n "checking whether we have Myricom Sniffer API... " >&6; }
6794 1.1 christos
6795 1.1.1.5.2.1 pgoyette # If necessary, set default paths for Sniffer headers and libraries.
6796 1.1 christos if test -z "$snf_root"; then
6797 1.1 christos snf_root=/opt/snf
6798 1.1 christos fi
6799 1.1 christos
6800 1.1 christos if test -z "$snf_include_dir"; then
6801 1.1 christos snf_include_dir="$snf_root/include"
6802 1.1 christos fi
6803 1.1 christos
6804 1.1 christos if test -z "$snf_lib_dir"; then
6805 1.1 christos snf_lib_dir="$snf_root/lib"
6806 1.1 christos fi
6807 1.1 christos
6808 1.1 christos if test -f "$snf_include_dir/snf.h"; then
6809 1.1.1.5.2.1 pgoyette # We found a header; make sure we can link with the library
6810 1.1 christos saved_ldflags=$LDFLAGS
6811 1.1 christos LDFLAGS="$LDFLAGS -L$snf_lib_dir"
6812 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snf_init in -lsnf" >&5
6813 1.1.1.2 christos $as_echo_n "checking for snf_init in -lsnf... " >&6; }
6814 1.1.1.3 christos if ${ac_cv_lib_snf_snf_init+:} false; then :
6815 1.1.1.2 christos $as_echo_n "(cached) " >&6
6816 1.1 christos else
6817 1.1 christos ac_check_lib_save_LIBS=$LIBS
6818 1.1 christos LIBS="-lsnf $LIBS"
6819 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6820 1.1 christos /* end confdefs.h. */
6821 1.1 christos
6822 1.1 christos /* Override any GCC internal prototype to avoid an error.
6823 1.1 christos Use char because int might match the return type of a GCC
6824 1.1 christos builtin and then its argument prototype would still apply. */
6825 1.1 christos #ifdef __cplusplus
6826 1.1 christos extern "C"
6827 1.1 christos #endif
6828 1.1 christos char snf_init ();
6829 1.1 christos int
6830 1.1 christos main ()
6831 1.1 christos {
6832 1.1 christos return snf_init ();
6833 1.1 christos ;
6834 1.1 christos return 0;
6835 1.1 christos }
6836 1.1 christos _ACEOF
6837 1.1.1.2 christos if ac_fn_c_try_link "$LINENO"; then :
6838 1.1 christos ac_cv_lib_snf_snf_init=yes
6839 1.1 christos else
6840 1.1.1.2 christos ac_cv_lib_snf_snf_init=no
6841 1.1 christos fi
6842 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext \
6843 1.1.1.2 christos conftest$ac_exeext conftest.$ac_ext
6844 1.1 christos LIBS=$ac_check_lib_save_LIBS
6845 1.1 christos fi
6846 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_snf_snf_init" >&5
6847 1.1.1.2 christos $as_echo "$ac_cv_lib_snf_snf_init" >&6; }
6848 1.1.1.3 christos if test "x$ac_cv_lib_snf_snf_init" = xyes; then :
6849 1.1 christos ac_cv_lbl_snf_api="yes"
6850 1.1 christos fi
6851 1.1 christos
6852 1.1 christos LDFLAGS="$saved_ldflags"
6853 1.1.1.5.2.1 pgoyette if test "$ac_cv_lbl_snf_api" = no; then
6854 1.1.1.5.2.1 pgoyette as_fn_error $? "SNF API cannot correctly be linked; check config.log" "$LINENO" 5
6855 1.1.1.5.2.1 pgoyette fi
6856 1.1.1.5.2.1 pgoyette fi
6857 1.1.1.5.2.1 pgoyette
6858 1.1.1.5.2.1 pgoyette if test "$ac_cv_lbl_snf_api" = yes; then
6859 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($snf_root)" >&5
6860 1.1.1.5.2.1 pgoyette $as_echo "yes ($snf_root)" >&6; }
6861 1.1.1.5.2.1 pgoyette
6862 1.1.1.5.2.1 pgoyette V_INCLS="$V_INCLS -I$snf_include_dir"
6863 1.1.1.5.2.1 pgoyette LIBS="$LIBS -lsnf"
6864 1.1.1.5.2.1 pgoyette LDFLAGS="$LDFLAGS -L$snf_lib_dir"
6865 1.1.1.5.2.1 pgoyette
6866 1.1.1.5.2.1 pgoyette if test "$V_PCAP" != snf ; then
6867 1.1.1.5.2.1 pgoyette SSRC="$SSRC pcap-snf.c"
6868 1.1.1.5.2.1 pgoyette fi
6869 1.1 christos
6870 1.1 christos
6871 1.1.1.2 christos $as_echo "#define HAVE_SNF_API 1" >>confdefs.h
6872 1.1 christos
6873 1.1.1.5.2.1 pgoyette else
6874 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6875 1.1.1.5.2.1 pgoyette $as_echo "no" >&6; }
6876 1.1.1.5.2.1 pgoyette
6877 1.1.1.5.2.1 pgoyette if test "$want_snf" = yes; then
6878 1.1.1.5.2.1 pgoyette # User requested "snf" capture type but
6879 1.1.1.5.2.1 pgoyette # we couldn't find the Sniffer API support.
6880 1.1.1.5.2.1 pgoyette as_fn_error $? "Myricom Sniffer support requested with --with-pcap=snf, but the Sniffer headers weren't found at $snf_include_dir: make sure the Sniffer support is installed, specify a different path or paths if necessary, or don't request Sniffer support" "$LINENO" 5
6881 1.1.1.5.2.1 pgoyette fi
6882 1.1.1.5.2.1 pgoyette
6883 1.1.1.5.2.1 pgoyette if test "$want_snf" = yes; then
6884 1.1.1.5.2.1 pgoyette as_fn_error $? "Myricom Sniffer support requested with --with-snf, but the Sniffer headers weren't found at $snf_include_dir: make sure the Sniffer support is installed, specify a different path or paths if necessary, or don't request Sniffer support" "$LINENO" 5
6885 1.1 christos fi
6886 1.1 christos fi
6887 1.1 christos fi
6888 1.1 christos
6889 1.1.1.5.2.1 pgoyette # Check for Riverbed TurboCap support.
6890 1.1.1.5.2.1 pgoyette
6891 1.1.1.5.2.1 pgoyette # Check whether --with-turbocap was given.
6892 1.1.1.5.2.1 pgoyette if test "${with_turbocap+set}" = set; then :
6893 1.1.1.5.2.1 pgoyette withval=$with_turbocap;
6894 1.1.1.5.2.1 pgoyette if test "$withval" = no
6895 1.1.1.5.2.1 pgoyette then
6896 1.1.1.5.2.1 pgoyette # User explicitly doesn't want TurboCap
6897 1.1.1.5.2.1 pgoyette want_turbocap=no
6898 1.1.1.5.2.1 pgoyette elif test "$withval" = yes
6899 1.1.1.5.2.1 pgoyette then
6900 1.1.1.5.2.1 pgoyette # User wants TurboCap support but hasn't specified a directory.
6901 1.1.1.5.2.1 pgoyette want_turbocap=yes
6902 1.1.1.5.2.1 pgoyette else
6903 1.1.1.5.2.1 pgoyette # User wants TurboCap support with a specified directory.
6904 1.1.1.5.2.1 pgoyette want_turbocap=yes
6905 1.1.1.5.2.1 pgoyette turbocap_root=$withval
6906 1.1.1.5.2.1 pgoyette fi
6907 1.1.1.5.2.1 pgoyette
6908 1.1.1.5.2.1 pgoyette else
6909 1.1.1.5.2.1 pgoyette
6910 1.1.1.5.2.1 pgoyette if test "xxx_only" = yes; then
6911 1.1.1.5.2.1 pgoyette # User requested something-else-only pcap, so they don't
6912 1.1.1.5.2.1 pgoyette # want TurboCap support.
6913 1.1.1.5.2.1 pgoyette want_turbocap=no
6914 1.1.1.5.2.1 pgoyette else
6915 1.1.1.5.2.1 pgoyette #
6916 1.1.1.5.2.1 pgoyette # Use TurboCap API if present, otherwise don't
6917 1.1.1.5.2.1 pgoyette #
6918 1.1.1.5.2.1 pgoyette want_turbocap=ifpresent
6919 1.1.1.5.2.1 pgoyette fi
6920 1.1.1.5.2.1 pgoyette
6921 1.1 christos fi
6922 1.1 christos
6923 1.1 christos
6924 1.1.1.5.2.1 pgoyette ac_cv_lbl_turbocap_api=no
6925 1.1.1.5.2.1 pgoyette if test "$want_turbocap" != no; then
6926 1.1.1.5.2.1 pgoyette
6927 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TurboCap is supported" >&5
6928 1.1.1.5.2.1 pgoyette $as_echo_n "checking whether TurboCap is supported... " >&6; }
6929 1.1.1.5.2.1 pgoyette
6930 1.1.1.5.2.1 pgoyette save_CFLAGS="$CFLAGS"
6931 1.1.1.5.2.1 pgoyette save_LIBS="$LIBS"
6932 1.1.1.5.2.1 pgoyette if test ! -z "$turbocap_root"; then
6933 1.1.1.5.2.1 pgoyette TURBOCAP_CFLAGS="-I$turbocap_root/include"
6934 1.1.1.5.2.1 pgoyette TURBOCAP_LIBS="-L$turbocap_root/lib"
6935 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS $TURBOCAP_CFLAGS"
6936 1.1.1.5.2.1 pgoyette fi
6937 1.1.1.5.2.1 pgoyette
6938 1.1.1.5.2.1 pgoyette cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939 1.1.1.5.2.1 pgoyette /* end confdefs.h. */
6940 1.1.1.5.2.1 pgoyette
6941 1.1.1.5.2.1 pgoyette #include <TcApi.h>
6942 1.1.1.5.2.1 pgoyette
6943 1.1.1.5.2.1 pgoyette int
6944 1.1.1.5.2.1 pgoyette main ()
6945 1.1.1.5.2.1 pgoyette {
6946 1.1.1.5.2.1 pgoyette
6947 1.1.1.5.2.1 pgoyette TC_INSTANCE a; TC_PORT b; TC_BOARD c;
6948 1.1.1.5.2.1 pgoyette TC_INSTANCE i;
6949 1.1.1.5.2.1 pgoyette (void)TcInstanceCreateByName("foo", &i);
6950 1.1.1.5.2.1 pgoyette
6951 1.1.1.5.2.1 pgoyette ;
6952 1.1.1.5.2.1 pgoyette return 0;
6953 1.1.1.5.2.1 pgoyette }
6954 1.1.1.5.2.1 pgoyette _ACEOF
6955 1.1.1.5.2.1 pgoyette if ac_fn_c_try_compile "$LINENO"; then :
6956 1.1.1.5.2.1 pgoyette ac_cv_lbl_turbocap_api=yes
6957 1.1 christos fi
6958 1.1.1.5.2.1 pgoyette rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6959 1.1.1.5.2.1 pgoyette
6960 1.1.1.5.2.1 pgoyette CFLAGS="$save_CFLAGS"
6961 1.1.1.5.2.1 pgoyette if test $ac_cv_lbl_turbocap_api = yes; then
6962 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6963 1.1.1.5.2.1 pgoyette $as_echo "yes" >&6; }
6964 1.1.1.5.2.1 pgoyette
6965 1.1.1.5.2.1 pgoyette SSRC="$SSRC pcap-tc.c"
6966 1.1.1.5.2.1 pgoyette V_INCLS="$V_INCLS $TURBOCAP_CFLAGS"
6967 1.1.1.5.2.1 pgoyette LIBS="$LIBS $TURBOCAP_LIBS -lTcApi -lpthread -lstdc++"
6968 1.1 christos
6969 1.1 christos
6970 1.1.1.5.2.1 pgoyette $as_echo "#define HAVE_TC_API 1" >>confdefs.h
6971 1.1.1.5.2.1 pgoyette
6972 1.1.1.5.2.1 pgoyette else
6973 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974 1.1.1.5.2.1 pgoyette $as_echo "no" >&6; }
6975 1.1.1.5.2.1 pgoyette
6976 1.1.1.5.2.1 pgoyette if test "$want_turbocap" = yes; then
6977 1.1.1.5.2.1 pgoyette # User wanted Turbo support but we couldn't find it.
6978 1.1.1.5.2.1 pgoyette as_fn_error $? "TurboCap support requested with --with-turbocap, but the TurboCap headers weren't found: make sure the TurboCap support is installed or don't request TurboCap support" "$LINENO" 5
6979 1.1.1.5.2.1 pgoyette fi
6980 1.1.1.5.2.1 pgoyette fi
6981 1.1 christos fi
6982 1.1 christos
6983 1.1.1.5.2.1 pgoyette #
6984 1.1.1.5.2.1 pgoyette # Look for {f}lex.
6985 1.1.1.5.2.1 pgoyette #
6986 1.1.1.5.2.1 pgoyette for ac_prog in flex lex
6987 1.1 christos do
6988 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args.
6989 1.1 christos set dummy $ac_prog; ac_word=$2
6990 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6991 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
6992 1.1.1.5.2.1 pgoyette if ${ac_cv_prog_LEX+:} false; then :
6993 1.1.1.2 christos $as_echo_n "(cached) " >&6
6994 1.1 christos else
6995 1.1.1.5.2.1 pgoyette if test -n "$LEX"; then
6996 1.1.1.5.2.1 pgoyette ac_cv_prog_LEX="$LEX" # Let the user override the test.
6997 1.1 christos else
6998 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 1.1 christos for as_dir in $PATH
7000 1.1 christos do
7001 1.1 christos IFS=$as_save_IFS
7002 1.1 christos test -z "$as_dir" && as_dir=.
7003 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
7004 1.1.1.3 christos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7005 1.1.1.5.2.1 pgoyette ac_cv_prog_LEX="$ac_prog"
7006 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7007 1.1 christos break 2
7008 1.1 christos fi
7009 1.1 christos done
7010 1.1.1.2 christos done
7011 1.1 christos IFS=$as_save_IFS
7012 1.1 christos
7013 1.1 christos fi
7014 1.1 christos fi
7015 1.1.1.5.2.1 pgoyette LEX=$ac_cv_prog_LEX
7016 1.1.1.5.2.1 pgoyette if test -n "$LEX"; then
7017 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7018 1.1.1.5.2.1 pgoyette $as_echo "$LEX" >&6; }
7019 1.1 christos else
7020 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7021 1.1.1.2 christos $as_echo "no" >&6; }
7022 1.1 christos fi
7023 1.1 christos
7024 1.1 christos
7025 1.1.1.5.2.1 pgoyette test -n "$LEX" && break
7026 1.1 christos done
7027 1.1.1.5.2.1 pgoyette test -n "$LEX" || LEX=":"
7028 1.1 christos
7029 1.1.1.5.2.1 pgoyette if test "x$LEX" != "x:"; then
7030 1.1.1.5.2.1 pgoyette cat >conftest.l <<_ACEOF
7031 1.1.1.5.2.1 pgoyette %%
7032 1.1.1.5.2.1 pgoyette a { ECHO; }
7033 1.1.1.5.2.1 pgoyette b { REJECT; }
7034 1.1.1.5.2.1 pgoyette c { yymore (); }
7035 1.1.1.5.2.1 pgoyette d { yyless (1); }
7036 1.1.1.5.2.1 pgoyette e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
7037 1.1.1.5.2.1 pgoyette yyless ((input () != 0)); }
7038 1.1.1.5.2.1 pgoyette f { unput (yytext[0]); }
7039 1.1.1.5.2.1 pgoyette . { BEGIN INITIAL; }
7040 1.1.1.5.2.1 pgoyette %%
7041 1.1.1.5.2.1 pgoyette #ifdef YYTEXT_POINTER
7042 1.1.1.5.2.1 pgoyette extern char *yytext;
7043 1.1.1.5.2.1 pgoyette #endif
7044 1.1.1.5.2.1 pgoyette int
7045 1.1.1.5.2.1 pgoyette main (void)
7046 1.1.1.5.2.1 pgoyette {
7047 1.1.1.5.2.1 pgoyette return ! yylex () + ! yywrap ();
7048 1.1.1.5.2.1 pgoyette }
7049 1.1.1.5.2.1 pgoyette _ACEOF
7050 1.1.1.5.2.1 pgoyette { { ac_try="$LEX conftest.l"
7051 1.1.1.5.2.1 pgoyette case "(($ac_try" in
7052 1.1.1.5.2.1 pgoyette *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7053 1.1.1.5.2.1 pgoyette *) ac_try_echo=$ac_try;;
7054 1.1.1.5.2.1 pgoyette esac
7055 1.1.1.5.2.1 pgoyette eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7056 1.1.1.5.2.1 pgoyette $as_echo "$ac_try_echo"; } >&5
7057 1.1.1.5.2.1 pgoyette (eval "$LEX conftest.l") 2>&5
7058 1.1.1.5.2.1 pgoyette ac_status=$?
7059 1.1.1.5.2.1 pgoyette $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7060 1.1.1.5.2.1 pgoyette test $ac_status = 0; }
7061 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
7062 1.1.1.5.2.1 pgoyette $as_echo_n "checking lex output file root... " >&6; }
7063 1.1.1.5.2.1 pgoyette if ${ac_cv_prog_lex_root+:} false; then :
7064 1.1.1.2 christos $as_echo_n "(cached) " >&6
7065 1.1 christos else
7066 1.1.1.5.2.1 pgoyette
7067 1.1.1.5.2.1 pgoyette if test -f lex.yy.c; then
7068 1.1.1.5.2.1 pgoyette ac_cv_prog_lex_root=lex.yy
7069 1.1.1.5.2.1 pgoyette elif test -f lexyy.c; then
7070 1.1.1.5.2.1 pgoyette ac_cv_prog_lex_root=lexyy
7071 1.1.1.5.2.1 pgoyette else
7072 1.1.1.5.2.1 pgoyette as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
7073 1.1 christos fi
7074 1.1.1.5.2.1 pgoyette fi
7075 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
7076 1.1.1.5.2.1 pgoyette $as_echo "$ac_cv_prog_lex_root" >&6; }
7077 1.1.1.5.2.1 pgoyette LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
7078 1.1 christos
7079 1.1.1.5.2.1 pgoyette if test -z "${LEXLIB+set}"; then
7080 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
7081 1.1.1.5.2.1 pgoyette $as_echo_n "checking lex library... " >&6; }
7082 1.1.1.5.2.1 pgoyette if ${ac_cv_lib_lex+:} false; then :
7083 1.1.1.5.2.1 pgoyette $as_echo_n "(cached) " >&6
7084 1.1.1.5.2.1 pgoyette else
7085 1.1.1.5.2.1 pgoyette
7086 1.1.1.5.2.1 pgoyette ac_save_LIBS=$LIBS
7087 1.1.1.5.2.1 pgoyette ac_cv_lib_lex='none needed'
7088 1.1.1.5.2.1 pgoyette for ac_lib in '' -lfl -ll; do
7089 1.1.1.5.2.1 pgoyette LIBS="$ac_lib $ac_save_LIBS"
7090 1.1.1.5.2.1 pgoyette cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7091 1.1.1.5.2.1 pgoyette /* end confdefs.h. */
7092 1.1.1.5.2.1 pgoyette `cat $LEX_OUTPUT_ROOT.c`
7093 1.1.1.5.2.1 pgoyette _ACEOF
7094 1.1.1.5.2.1 pgoyette if ac_fn_c_try_link "$LINENO"; then :
7095 1.1.1.5.2.1 pgoyette ac_cv_lib_lex=$ac_lib
7096 1.1.1.5.2.1 pgoyette fi
7097 1.1.1.5.2.1 pgoyette rm -f core conftest.err conftest.$ac_objext \
7098 1.1.1.5.2.1 pgoyette conftest$ac_exeext conftest.$ac_ext
7099 1.1.1.5.2.1 pgoyette test "$ac_cv_lib_lex" != 'none needed' && break
7100 1.1.1.5.2.1 pgoyette done
7101 1.1.1.5.2.1 pgoyette LIBS=$ac_save_LIBS
7102 1.1.1.5.2.1 pgoyette
7103 1.1.1.5.2.1 pgoyette fi
7104 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
7105 1.1.1.5.2.1 pgoyette $as_echo "$ac_cv_lib_lex" >&6; }
7106 1.1.1.5.2.1 pgoyette test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
7107 1.1.1.5.2.1 pgoyette fi
7108 1.1.1.5.2.1 pgoyette
7109 1.1.1.5.2.1 pgoyette
7110 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
7111 1.1.1.5.2.1 pgoyette $as_echo_n "checking whether yytext is a pointer... " >&6; }
7112 1.1.1.5.2.1 pgoyette if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
7113 1.1.1.5.2.1 pgoyette $as_echo_n "(cached) " >&6
7114 1.1.1.5.2.1 pgoyette else
7115 1.1.1.5.2.1 pgoyette # POSIX says lex can declare yytext either as a pointer or an array; the
7116 1.1.1.5.2.1 pgoyette # default is implementation-dependent. Figure out which it is, since
7117 1.1.1.5.2.1 pgoyette # not all implementations provide the %pointer and %array declarations.
7118 1.1.1.5.2.1 pgoyette ac_cv_prog_lex_yytext_pointer=no
7119 1.1.1.5.2.1 pgoyette ac_save_LIBS=$LIBS
7120 1.1.1.5.2.1 pgoyette LIBS="$LEXLIB $ac_save_LIBS"
7121 1.1.1.5.2.1 pgoyette cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122 1.1.1.5.2.1 pgoyette /* end confdefs.h. */
7123 1.1.1.5.2.1 pgoyette
7124 1.1.1.5.2.1 pgoyette #define YYTEXT_POINTER 1
7125 1.1.1.5.2.1 pgoyette `cat $LEX_OUTPUT_ROOT.c`
7126 1.1.1.5.2.1 pgoyette _ACEOF
7127 1.1.1.5.2.1 pgoyette if ac_fn_c_try_link "$LINENO"; then :
7128 1.1.1.5.2.1 pgoyette ac_cv_prog_lex_yytext_pointer=yes
7129 1.1.1.5.2.1 pgoyette fi
7130 1.1.1.5.2.1 pgoyette rm -f core conftest.err conftest.$ac_objext \
7131 1.1.1.5.2.1 pgoyette conftest$ac_exeext conftest.$ac_ext
7132 1.1.1.5.2.1 pgoyette LIBS=$ac_save_LIBS
7133 1.1.1.5.2.1 pgoyette
7134 1.1.1.5.2.1 pgoyette fi
7135 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
7136 1.1.1.5.2.1 pgoyette $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
7137 1.1.1.5.2.1 pgoyette if test $ac_cv_prog_lex_yytext_pointer = yes; then
7138 1.1.1.5.2.1 pgoyette
7139 1.1.1.5.2.1 pgoyette $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
7140 1.1.1.5.2.1 pgoyette
7141 1.1.1.5.2.1 pgoyette fi
7142 1.1.1.5.2.1 pgoyette rm -f conftest.l $LEX_OUTPUT_ROOT.c
7143 1.1.1.5.2.1 pgoyette
7144 1.1.1.5.2.1 pgoyette fi
7145 1.1.1.5.2.1 pgoyette if test "$LEX" = ":"; then
7146 1.1.1.5.2.1 pgoyette as_fn_error $? "Neither flex nor lex was found." "$LINENO" 5
7147 1.1.1.5.2.1 pgoyette fi
7148 1.1.1.5.2.1 pgoyette
7149 1.1.1.5.2.1 pgoyette #
7150 1.1.1.5.2.1 pgoyette # Make sure {f}lex supports the -P, --header-file, and --nounput flags
7151 1.1.1.5.2.1 pgoyette # and supports processing our scanner.l.
7152 1.1.1.5.2.1 pgoyette #
7153 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable lex" >&5
7154 1.1.1.5.2.1 pgoyette $as_echo_n "checking for capable lex... " >&6; }
7155 1.1.1.5.2.1 pgoyette if ${tcpdump_cv_capable_lex+:} false; then :
7156 1.1.1.5.2.1 pgoyette $as_echo_n "(cached) " >&6
7157 1.1.1.5.2.1 pgoyette else
7158 1.1.1.5.2.1 pgoyette if $LEX -P pcap_ --header-file=/dev/null --nounput -t $srcdir/scanner.l > /dev/null 2>&1; then
7159 1.1.1.5.2.1 pgoyette tcpdump_cv_capable_lex=yes
7160 1.1.1.5.2.1 pgoyette else
7161 1.1.1.5.2.1 pgoyette tcpdump_cv_capable_lex=insufficient
7162 1.1.1.5.2.1 pgoyette fi
7163 1.1.1.5.2.1 pgoyette fi
7164 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_lex" >&5
7165 1.1.1.5.2.1 pgoyette $as_echo "$tcpdump_cv_capable_lex" >&6; }
7166 1.1.1.5.2.1 pgoyette if test $tcpdump_cv_capable_lex = insufficient ; then
7167 1.1.1.5.2.1 pgoyette as_fn_error $? "$LEX is insufficient to compile libpcap.
7168 1.1.1.5.2.1 pgoyette libpcap requires Flex 2.5.31 or later, or a compatible version of lex." "$LINENO" 5
7169 1.1.1.5.2.1 pgoyette fi
7170 1.1.1.5.2.1 pgoyette
7171 1.1.1.5.2.1 pgoyette #
7172 1.1.1.5.2.1 pgoyette # Look for yacc/bison/byacc.
7173 1.1.1.5.2.1 pgoyette #
7174 1.1.1.5.2.1 pgoyette for ac_prog in 'bison -y' byacc
7175 1.1 christos do
7176 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args.
7177 1.1 christos set dummy $ac_prog; ac_word=$2
7178 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7179 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
7180 1.1.1.5.2.1 pgoyette if ${ac_cv_prog_YACC+:} false; then :
7181 1.1.1.2 christos $as_echo_n "(cached) " >&6
7182 1.1 christos else
7183 1.1.1.5.2.1 pgoyette if test -n "$YACC"; then
7184 1.1.1.5.2.1 pgoyette ac_cv_prog_YACC="$YACC" # Let the user override the test.
7185 1.1 christos else
7186 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187 1.1 christos for as_dir in $PATH
7188 1.1 christos do
7189 1.1 christos IFS=$as_save_IFS
7190 1.1 christos test -z "$as_dir" && as_dir=.
7191 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
7192 1.1.1.3 christos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7193 1.1.1.5.2.1 pgoyette ac_cv_prog_YACC="$ac_prog"
7194 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7195 1.1 christos break 2
7196 1.1 christos fi
7197 1.1 christos done
7198 1.1.1.2 christos done
7199 1.1 christos IFS=$as_save_IFS
7200 1.1 christos
7201 1.1 christos fi
7202 1.1 christos fi
7203 1.1.1.5.2.1 pgoyette YACC=$ac_cv_prog_YACC
7204 1.1.1.5.2.1 pgoyette if test -n "$YACC"; then
7205 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7206 1.1.1.5.2.1 pgoyette $as_echo "$YACC" >&6; }
7207 1.1 christos else
7208 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7209 1.1.1.2 christos $as_echo "no" >&6; }
7210 1.1 christos fi
7211 1.1 christos
7212 1.1 christos
7213 1.1.1.5.2.1 pgoyette test -n "$YACC" && break
7214 1.1 christos done
7215 1.1.1.5.2.1 pgoyette test -n "$YACC" || YACC="yacc"
7216 1.1.1.3 christos
7217 1.1.1.3 christos
7218 1.1.1.5.2.1 pgoyette #
7219 1.1.1.5.2.1 pgoyette # Make sure it supports the -p flag and supports processing our
7220 1.1.1.5.2.1 pgoyette # grammar.y.
7221 1.1.1.5.2.1 pgoyette #
7222 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable yacc/bison" >&5
7223 1.1.1.5.2.1 pgoyette $as_echo_n "checking for capable yacc/bison... " >&6; }
7224 1.1.1.5.2.1 pgoyette if ${tcpdump_cv_capable_yacc+:} false; then :
7225 1.1.1.2 christos $as_echo_n "(cached) " >&6
7226 1.1 christos else
7227 1.1.1.5.2.1 pgoyette if $YACC -p pcap_ -o /dev/null $srcdir/grammar.y >/dev/null 2>&1; then
7228 1.1.1.5.2.1 pgoyette tcpdump_cv_capable_yacc=yes
7229 1.1.1.5.2.1 pgoyette else
7230 1.1.1.5.2.1 pgoyette tcpdump_cv_capable_yacc=insufficient
7231 1.1 christos fi
7232 1.1 christos fi
7233 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_yacc" >&5
7234 1.1.1.5.2.1 pgoyette $as_echo "$tcpdump_cv_capable_yacc" >&6; }
7235 1.1.1.5.2.1 pgoyette if test $tcpdump_cv_capable_yacc = insufficient ; then
7236 1.1.1.5.2.1 pgoyette as_fn_error $? "$YACC is insufficient to compile libpcap.
7237 1.1.1.5.2.1 pgoyette libpcap requires Bison, Berkeley YACC, or another YACC compatible with them." "$LINENO" 5
7238 1.1.1.5.2.1 pgoyette fi
7239 1.1 christos
7240 1.1 christos #
7241 1.1 christos # Assume, by default, no support for shared libraries and V7/BSD convention
7242 1.1 christos # for man pages (file formats in section 5, miscellaneous info in section 7).
7243 1.1 christos # Individual cases can override this.
7244 1.1 christos #
7245 1.1 christos DYEXT="none"
7246 1.1 christos MAN_FILE_FORMATS=5
7247 1.1 christos MAN_MISC_INFO=7
7248 1.1 christos case "$host_os" in
7249 1.1 christos
7250 1.1 christos aix*)
7251 1.1 christos
7252 1.1.1.2 christos $as_echo "#define _SUN 1" >>confdefs.h
7253 1.1 christos
7254 1.1 christos
7255 1.1 christos #
7256 1.1 christos # AIX makes it fun to build shared and static libraries,
7257 1.1 christos # because they're *both* ".a" archive libraries. We
7258 1.1 christos # build the static library for the benefit of the traditional
7259 1.1 christos # scheme of building libpcap and tcpdump in subdirectories of
7260 1.1 christos # the same directory, with tcpdump statically linked with the
7261 1.1 christos # libpcap in question, but we also build a shared library as
7262 1.1 christos # "libpcap.shareda" and install *it*, rather than the static
7263 1.1 christos # library, as "libpcap.a".
7264 1.1 christos #
7265 1.1 christos DYEXT="shareda"
7266 1.1 christos
7267 1.1 christos case "$V_PCAP" in
7268 1.1 christos
7269 1.1 christos dlpi)
7270 1.1 christos #
7271 1.1 christos # If we're using DLPI, applications will need to
7272 1.1 christos # use /lib/pse.exp if present, as we use the
7273 1.1 christos # STREAMS routines.
7274 1.1 christos #
7275 1.1 christos pseexe="/lib/pse.exp"
7276 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pseexe" >&5
7277 1.1.1.2 christos $as_echo_n "checking for $pseexe... " >&6; }
7278 1.1 christos if test -f $pseexe ; then
7279 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7280 1.1.1.2 christos $as_echo "yes" >&6; }
7281 1.1 christos LIBS="-I:$pseexe"
7282 1.1 christos fi
7283 1.1 christos ;;
7284 1.1 christos
7285 1.1 christos bpf)
7286 1.1 christos #
7287 1.1 christos # If we're using BPF, we need "-lodm" and "-lcfg", as
7288 1.1 christos # we use them to load the BPF module.
7289 1.1 christos #
7290 1.1 christos LIBS="-lodm -lcfg"
7291 1.1 christos ;;
7292 1.1 christos esac
7293 1.1 christos ;;
7294 1.1 christos
7295 1.1 christos darwin*)
7296 1.1 christos DYEXT="dylib"
7297 1.1 christos V_CCOPT="$V_CCOPT -fno-common"
7298 1.1.1.2 christos # Check whether --enable-universal was given.
7299 1.1.1.2 christos if test "${enable_universal+set}" = set; then :
7300 1.1.1.2 christos enableval=$enable_universal;
7301 1.1.1.2 christos fi
7302 1.1.1.2 christos
7303 1.1.1.2 christos if test "$enable_universal" != "no"; then
7304 1.1.1.2 christos case "$host_os" in
7305 1.1.1.2 christos
7306 1.1.1.3 christos darwin0-7.*)
7307 1.1.1.3 christos #
7308 1.1.1.3 christos # Pre-Tiger. Build only for 32-bit PowerPC; no
7309 1.1.1.3 christos # need for any special compiler or linker flags.
7310 1.1.1.3 christos #
7311 1.1.1.3 christos ;;
7312 1.1.1.3 christos
7313 1.1.1.3 christos darwin8.0123*)
7314 1.1.1.3 christos #
7315 1.1.1.3 christos # Tiger, prior to Intel support. Build for 32-bit
7316 1.1.1.3 christos # PowerPC and 64-bit PowerPC, with 32-bit PowerPC
7317 1.1.1.3 christos # first. (I'm guessing that's what Apple does.)
7318 1.1.1.3 christos #
7319 1.1.1.3 christos V_CCOPT="$V_CCOPT -arch ppc -arch ppc64"
7320 1.1.1.3 christos LDFLAGS="$LDFLAGS -arch ppc -arch ppc64"
7321 1.1.1.3 christos ;;
7322 1.1.1.3 christos
7323 1.1.1.3 christos darwin8.456*)
7324 1.1.1.3 christos #
7325 1.1.1.3 christos # Tiger, subsequent to Intel support but prior to
7326 1.1.1.3 christos # x86-64 support. Build for 32-bit PowerPC, 64-bit
7327 1.1.1.3 christos # PowerPC, and x86, with 32-bit PowerPC first.
7328 1.1.1.3 christos # (I'm guessing that's what Apple does.)
7329 1.1.1.3 christos #
7330 1.1.1.3 christos V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386"
7331 1.1.1.3 christos LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386"
7332 1.1.1.3 christos ;;
7333 1.1.1.3 christos
7334 1.1.1.3 christos darwin8.*)
7335 1.1.1.3 christos #
7336 1.1.1.3 christos # All other Tiger, so subsequent to x86-64
7337 1.1.1.3 christos # support. Build for 32-bit PowerPC, 64-bit
7338 1.1.1.3 christos # PowerPC, x86, and x86-64, and with 32-bit PowerPC
7339 1.1.1.3 christos # first. (I'm guessing that's what Apple does.)
7340 1.1.1.3 christos #
7341 1.1.1.3 christos V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
7342 1.1.1.3 christos LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
7343 1.1.1.3 christos ;;
7344 1.1.1.3 christos
7345 1.1.1.2 christos darwin9.*)
7346 1.1.1.2 christos #
7347 1.1.1.2 christos # Leopard. Build for 32-bit PowerPC, 64-bit
7348 1.1.1.2 christos # PowerPC, x86, and x86-64, with 32-bit PowerPC
7349 1.1.1.2 christos # first. (That's what Apple does.)
7350 1.1.1.2 christos #
7351 1.1.1.2 christos V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
7352 1.1.1.2 christos LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
7353 1.1.1.2 christos ;;
7354 1.1.1.2 christos
7355 1.1.1.2 christos darwin10.*)
7356 1.1.1.2 christos #
7357 1.1.1.2 christos # Snow Leopard. Build for x86-64, x86, and
7358 1.1.1.2 christos # 32-bit PowerPC, with x86-64 first. (That's
7359 1.1.1.2 christos # what Apple does, even though Snow Leopard
7360 1.1.1.2 christos # doesn't run on PPC, so PPC libpcap runs under
7361 1.1.1.2 christos # Rosetta, and Rosetta doesn't support BPF
7362 1.1.1.2 christos # ioctls, so PPC programs can't do live
7363 1.1.1.2 christos # captures.)
7364 1.1.1.2 christos #
7365 1.1.1.2 christos V_CCOPT="$V_CCOPT -arch x86_64 -arch i386 -arch ppc"
7366 1.1.1.2 christos LDFLAGS="$LDFLAGS -arch x86_64 -arch i386 -arch ppc"
7367 1.1.1.2 christos ;;
7368 1.1.1.2 christos
7369 1.1.1.3 christos darwin*)
7370 1.1.1.2 christos #
7371 1.1.1.3 christos # Post-Snow Leopard. Build for x86-64 and
7372 1.1.1.3 christos # x86, with x86-64 first. (That's probably what
7373 1.1.1.3 christos # Apple does, given that Rosetta is gone.)
7374 1.1.1.3 christos # XXX - update if and when Apple drops support
7375 1.1.1.3 christos # for 32-bit x86 code.
7376 1.1.1.2 christos #
7377 1.1.1.2 christos V_CCOPT="$V_CCOPT -arch x86_64 -arch i386"
7378 1.1.1.2 christos LDFLAGS="$LDFLAGS -arch x86_64 -arch i386"
7379 1.1.1.2 christos ;;
7380 1.1.1.2 christos esac
7381 1.1.1.2 christos fi
7382 1.1 christos ;;
7383 1.1 christos
7384 1.1 christos hpux9*)
7385 1.1 christos
7386 1.1.1.2 christos $as_echo "#define HAVE_HPUX9 1" >>confdefs.h
7387 1.1 christos
7388 1.1 christos
7389 1.1 christos #
7390 1.1 christos # Use System V conventions for man pages.
7391 1.1 christos #
7392 1.1 christos MAN_FILE_FORMATS=4
7393 1.1 christos MAN_MISC_INFO=5
7394 1.1 christos ;;
7395 1.1 christos
7396 1.1 christos hpux10.0*)
7397 1.1 christos
7398 1.1 christos #
7399 1.1 christos # Use System V conventions for man pages.
7400 1.1 christos #
7401 1.1 christos MAN_FILE_FORMATS=4
7402 1.1 christos MAN_MISC_INFO=5
7403 1.1 christos ;;
7404 1.1 christos
7405 1.1 christos hpux10.1*)
7406 1.1 christos
7407 1.1 christos #
7408 1.1 christos # Use System V conventions for man pages.
7409 1.1 christos #
7410 1.1 christos MAN_FILE_FORMATS=4
7411 1.1 christos MAN_MISC_INFO=5
7412 1.1 christos ;;
7413 1.1 christos
7414 1.1 christos hpux*)
7415 1.1 christos
7416 1.1.1.2 christos $as_echo "#define HAVE_HPUX10_20_OR_LATER 1" >>confdefs.h
7417 1.1 christos
7418 1.1 christos if test "`uname -m`" = "ia64"; then
7419 1.1 christos DYEXT="so"
7420 1.1 christos else
7421 1.1 christos DYEXT="sl"
7422 1.1 christos fi
7423 1.1 christos
7424 1.1 christos #
7425 1.1 christos # "-b" builds a shared library; "+h" sets the soname.
7426 1.1 christos #
7427 1.1 christos SHLIB_OPT="-b"
7428 1.1 christos SONAME_OPT="+h"
7429 1.1 christos
7430 1.1 christos #
7431 1.1 christos # Use System V conventions for man pages.
7432 1.1 christos #
7433 1.1 christos MAN_FILE_FORMATS=4
7434 1.1 christos MAN_MISC_INFO=5
7435 1.1 christos ;;
7436 1.1 christos
7437 1.1 christos irix*)
7438 1.1 christos #
7439 1.1 christos # Use System V conventions for man pages.
7440 1.1 christos #
7441 1.1 christos MAN_FILE_FORMATS=4
7442 1.1 christos MAN_MISC_INFO=5
7443 1.1 christos ;;
7444 1.1 christos
7445 1.1.1.2 christos linux*|freebsd*|netbsd*|openbsd*|dragonfly*|kfreebsd*|gnu*)
7446 1.1 christos DYEXT="so"
7447 1.1 christos
7448 1.1 christos #
7449 1.1 christos # Compiler assumed to be GCC; run-time linker may require a -R
7450 1.1 christos # flag.
7451 1.1 christos #
7452 1.1 christos if test "$libdir" != "/usr/lib"; then
7453 1.1 christos V_RFLAGS=-Wl,-R$libdir
7454 1.1 christos fi
7455 1.1 christos ;;
7456 1.1 christos
7457 1.1 christos osf*)
7458 1.1 christos DYEXT="so"
7459 1.1 christos
7460 1.1 christos #
7461 1.1 christos # Use System V conventions for man pages.
7462 1.1 christos #
7463 1.1 christos MAN_FILE_FORMATS=4
7464 1.1 christos MAN_MISC_INFO=5
7465 1.1 christos ;;
7466 1.1 christos
7467 1.1 christos sinix*)
7468 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SINIX compiler defines sinix" >&5
7469 1.1.1.2 christos $as_echo_n "checking if SINIX compiler defines sinix... " >&6; }
7470 1.1.1.3 christos if ${ac_cv_cc_sinix_defined+:} false; then :
7471 1.1.1.2 christos $as_echo_n "(cached) " >&6
7472 1.1 christos else
7473 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474 1.1 christos /* end confdefs.h. */
7475 1.1 christos
7476 1.1 christos int
7477 1.1 christos main ()
7478 1.1 christos {
7479 1.1 christos int i = sinix;
7480 1.1 christos ;
7481 1.1 christos return 0;
7482 1.1 christos }
7483 1.1 christos _ACEOF
7484 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
7485 1.1 christos ac_cv_cc_sinix_defined=yes
7486 1.1 christos else
7487 1.1.1.2 christos ac_cv_cc_sinix_defined=no
7488 1.1 christos fi
7489 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7490 1.1 christos fi
7491 1.1 christos
7492 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_sinix_defined" >&5
7493 1.1.1.2 christos $as_echo "$ac_cv_cc_sinix_defined" >&6; }
7494 1.1 christos if test $ac_cv_cc_sinix_defined = no ; then
7495 1.1 christos
7496 1.1.1.2 christos $as_echo "#define sinix 1" >>confdefs.h
7497 1.1 christos
7498 1.1 christos fi
7499 1.1 christos ;;
7500 1.1 christos
7501 1.1 christos solaris*)
7502 1.1 christos
7503 1.1.1.2 christos $as_echo "#define HAVE_SOLARIS 1" >>confdefs.h
7504 1.1 christos
7505 1.1 christos
7506 1.1.1.2 christos DYEXT="so"
7507 1.1.1.2 christos #
7508 1.1.1.2 christos # Use System V conventions for man pages.
7509 1.1.1.2 christos #
7510 1.1.1.2 christos MAN_FILE_FORMATS=4
7511 1.1.1.2 christos MAN_MISC_INFO=5
7512 1.1.1.2 christos ;;
7513 1.1.1.2 christos esac
7514 1.1.1.2 christos
7515 1.1.1.3 christos # Check whether --enable-shared was given.
7516 1.1.1.3 christos if test "${enable_shared+set}" = set; then :
7517 1.1.1.3 christos enableval=$enable_shared;
7518 1.1.1.3 christos fi
7519 1.1.1.3 christos
7520 1.1.1.3 christos test "x$enable_shared" = "xno" && DYEXT="none"
7521 1.1.1.3 christos
7522 1.1.1.2 christos if test -n "$ac_tool_prefix"; then
7523 1.1.1.2 christos # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7524 1.1.1.2 christos set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7525 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7526 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
7527 1.1.1.3 christos if ${ac_cv_prog_RANLIB+:} false; then :
7528 1.1.1.2 christos $as_echo_n "(cached) " >&6
7529 1.1.1.2 christos else
7530 1.1.1.2 christos if test -n "$RANLIB"; then
7531 1.1.1.2 christos ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7532 1.1.1.2 christos else
7533 1.1.1.2 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7534 1.1.1.2 christos for as_dir in $PATH
7535 1.1.1.2 christos do
7536 1.1.1.2 christos IFS=$as_save_IFS
7537 1.1.1.2 christos test -z "$as_dir" && as_dir=.
7538 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
7539 1.1.1.3 christos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7540 1.1.1.2 christos ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7541 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7542 1.1.1.2 christos break 2
7543 1.1.1.2 christos fi
7544 1.1.1.2 christos done
7545 1.1.1.2 christos done
7546 1.1.1.2 christos IFS=$as_save_IFS
7547 1.1.1.2 christos
7548 1.1.1.2 christos fi
7549 1.1.1.2 christos fi
7550 1.1.1.2 christos RANLIB=$ac_cv_prog_RANLIB
7551 1.1.1.2 christos if test -n "$RANLIB"; then
7552 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7553 1.1.1.2 christos $as_echo "$RANLIB" >&6; }
7554 1.1.1.2 christos else
7555 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7556 1.1.1.2 christos $as_echo "no" >&6; }
7557 1.1.1.2 christos fi
7558 1.1.1.2 christos
7559 1.1.1.2 christos
7560 1.1.1.2 christos fi
7561 1.1.1.2 christos if test -z "$ac_cv_prog_RANLIB"; then
7562 1.1.1.2 christos ac_ct_RANLIB=$RANLIB
7563 1.1.1.2 christos # Extract the first word of "ranlib", so it can be a program name with args.
7564 1.1.1.2 christos set dummy ranlib; ac_word=$2
7565 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7566 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
7567 1.1.1.3 christos if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7568 1.1.1.2 christos $as_echo_n "(cached) " >&6
7569 1.1.1.2 christos else
7570 1.1.1.2 christos if test -n "$ac_ct_RANLIB"; then
7571 1.1.1.2 christos ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7572 1.1.1.2 christos else
7573 1.1.1.2 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7574 1.1.1.2 christos for as_dir in $PATH
7575 1.1.1.2 christos do
7576 1.1.1.2 christos IFS=$as_save_IFS
7577 1.1.1.2 christos test -z "$as_dir" && as_dir=.
7578 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
7579 1.1.1.3 christos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7580 1.1.1.2 christos ac_cv_prog_ac_ct_RANLIB="ranlib"
7581 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7582 1.1.1.2 christos break 2
7583 1.1.1.2 christos fi
7584 1.1.1.2 christos done
7585 1.1.1.2 christos done
7586 1.1.1.2 christos IFS=$as_save_IFS
7587 1.1.1.2 christos
7588 1.1.1.2 christos fi
7589 1.1.1.2 christos fi
7590 1.1.1.2 christos ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7591 1.1.1.2 christos if test -n "$ac_ct_RANLIB"; then
7592 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7593 1.1.1.2 christos $as_echo "$ac_ct_RANLIB" >&6; }
7594 1.1.1.2 christos else
7595 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596 1.1.1.2 christos $as_echo "no" >&6; }
7597 1.1.1.2 christos fi
7598 1.1.1.2 christos
7599 1.1.1.2 christos if test "x$ac_ct_RANLIB" = x; then
7600 1.1.1.2 christos RANLIB=":"
7601 1.1.1.2 christos else
7602 1.1.1.2 christos case $cross_compiling:$ac_tool_warned in
7603 1.1.1.2 christos yes:)
7604 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7605 1.1.1.2 christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7606 1.1.1.2 christos ac_tool_warned=yes ;;
7607 1.1 christos esac
7608 1.1.1.2 christos RANLIB=$ac_ct_RANLIB
7609 1.1.1.2 christos fi
7610 1.1.1.2 christos else
7611 1.1.1.2 christos RANLIB="$ac_cv_prog_RANLIB"
7612 1.1.1.2 christos fi
7613 1.1 christos
7614 1.1 christos if test -n "$ac_tool_prefix"; then
7615 1.1.1.2 christos # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7616 1.1.1.2 christos set dummy ${ac_tool_prefix}ar; ac_word=$2
7617 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7618 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
7619 1.1.1.3 christos if ${ac_cv_prog_AR+:} false; then :
7620 1.1.1.2 christos $as_echo_n "(cached) " >&6
7621 1.1 christos else
7622 1.1.1.2 christos if test -n "$AR"; then
7623 1.1.1.2 christos ac_cv_prog_AR="$AR" # Let the user override the test.
7624 1.1 christos else
7625 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626 1.1 christos for as_dir in $PATH
7627 1.1 christos do
7628 1.1 christos IFS=$as_save_IFS
7629 1.1 christos test -z "$as_dir" && as_dir=.
7630 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
7631 1.1.1.3 christos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7632 1.1.1.2 christos ac_cv_prog_AR="${ac_tool_prefix}ar"
7633 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7634 1.1 christos break 2
7635 1.1 christos fi
7636 1.1 christos done
7637 1.1.1.2 christos done
7638 1.1 christos IFS=$as_save_IFS
7639 1.1 christos
7640 1.1 christos fi
7641 1.1 christos fi
7642 1.1.1.2 christos AR=$ac_cv_prog_AR
7643 1.1.1.2 christos if test -n "$AR"; then
7644 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7645 1.1.1.2 christos $as_echo "$AR" >&6; }
7646 1.1 christos else
7647 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7648 1.1.1.2 christos $as_echo "no" >&6; }
7649 1.1 christos fi
7650 1.1 christos
7651 1.1 christos
7652 1.1 christos fi
7653 1.1.1.2 christos if test -z "$ac_cv_prog_AR"; then
7654 1.1.1.2 christos ac_ct_AR=$AR
7655 1.1.1.2 christos # Extract the first word of "ar", so it can be a program name with args.
7656 1.1.1.2 christos set dummy ar; ac_word=$2
7657 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7658 1.1.1.2 christos $as_echo_n "checking for $ac_word... " >&6; }
7659 1.1.1.3 christos if ${ac_cv_prog_ac_ct_AR+:} false; then :
7660 1.1.1.2 christos $as_echo_n "(cached) " >&6
7661 1.1 christos else
7662 1.1.1.2 christos if test -n "$ac_ct_AR"; then
7663 1.1.1.2 christos ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7664 1.1 christos else
7665 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666 1.1 christos for as_dir in $PATH
7667 1.1 christos do
7668 1.1 christos IFS=$as_save_IFS
7669 1.1 christos test -z "$as_dir" && as_dir=.
7670 1.1.1.2 christos for ac_exec_ext in '' $ac_executable_extensions; do
7671 1.1.1.3 christos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7672 1.1.1.2 christos ac_cv_prog_ac_ct_AR="ar"
7673 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7674 1.1 christos break 2
7675 1.1 christos fi
7676 1.1 christos done
7677 1.1.1.2 christos done
7678 1.1 christos IFS=$as_save_IFS
7679 1.1 christos
7680 1.1 christos fi
7681 1.1 christos fi
7682 1.1.1.2 christos ac_ct_AR=$ac_cv_prog_ac_ct_AR
7683 1.1.1.2 christos if test -n "$ac_ct_AR"; then
7684 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7685 1.1.1.2 christos $as_echo "$ac_ct_AR" >&6; }
7686 1.1 christos else
7687 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7688 1.1.1.2 christos $as_echo "no" >&6; }
7689 1.1 christos fi
7690 1.1 christos
7691 1.1.1.2 christos if test "x$ac_ct_AR" = x; then
7692 1.1.1.2 christos AR=""
7693 1.1 christos else
7694 1.1 christos case $cross_compiling:$ac_tool_warned in
7695 1.1 christos yes:)
7696 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7697 1.1.1.2 christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7698 1.1 christos ac_tool_warned=yes ;;
7699 1.1 christos esac
7700 1.1.1.2 christos AR=$ac_ct_AR
7701 1.1 christos fi
7702 1.1 christos else
7703 1.1.1.2 christos AR="$ac_cv_prog_AR"
7704 1.1 christos fi
7705 1.1 christos
7706 1.1 christos
7707 1.1.1.3 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7708 1.1.1.3 christos $as_echo_n "checking whether ln -s works... " >&6; }
7709 1.1.1.3 christos LN_S=$as_ln_s
7710 1.1.1.3 christos if test "$LN_S" = "ln -s"; then
7711 1.1.1.3 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7712 1.1.1.3 christos $as_echo "yes" >&6; }
7713 1.1.1.3 christos else
7714 1.1.1.3 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7715 1.1.1.3 christos $as_echo "no, using $LN_S" >&6; }
7716 1.1.1.3 christos fi
7717 1.1.1.3 christos
7718 1.1.1.3 christos
7719 1.1.1.3 christos
7720 1.1 christos rm -f os-proto.h
7721 1.1 christos if test "${LBL_CFLAGS+set}" = set; then
7722 1.1 christos V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
7723 1.1 christos fi
7724 1.1 christos if test -f .devel ; then
7725 1.1.1.3 christos #
7726 1.1.1.3 christos # Skip all the warning option stuff on some compilers.
7727 1.1.1.3 christos #
7728 1.1.1.3 christos if test "$ac_lbl_cc_dont_try_gcc_dashW" != yes; then
7729 1.1 christos
7730 1.1.1.3 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler fails when given an unknown warning option" >&5
7731 1.1.1.3 christos $as_echo_n "checking whether the compiler fails when given an unknown warning option... " >&6; }
7732 1.1.1.3 christos save_CFLAGS="$CFLAGS"
7733 1.1.1.3 christos CFLAGS="$CFLAGS -Wxyzzy-this-will-never-succeed-xyzzy"
7734 1.1.1.3 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7735 1.1.1.3 christos /* end confdefs.h. */
7736 1.1.1.3 christos
7737 1.1.1.3 christos int
7738 1.1.1.3 christos main ()
7739 1.1.1.3 christos {
7740 1.1.1.3 christos return 0
7741 1.1.1.3 christos ;
7742 1.1.1.3 christos return 0;
7743 1.1.1.3 christos }
7744 1.1.1.3 christos _ACEOF
7745 1.1.1.3 christos if ac_fn_c_try_compile "$LINENO"; then :
7746 1.1.1.3 christos
7747 1.1.1.3 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7748 1.1.1.3 christos $as_echo "no" >&6; }
7749 1.1.1.3 christos #
7750 1.1.1.3 christos # We're assuming this is clang, where
7751 1.1.1.3 christos # -Werror=unknown-warning-option is the appropriate
7752 1.1.1.3 christos # option to force the compiler to fail.
7753 1.1.1.3 christos #
7754 1.1.1.3 christos ac_lbl_unknown_warning_option_error="-Werror=unknown-warning-option"
7755 1.1.1.3 christos
7756 1.1.1.3 christos else
7757 1.1.1.3 christos
7758 1.1.1.3 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7759 1.1.1.3 christos $as_echo "yes" >&6; }
7760 1.1.1.3 christos
7761 1.1.1.3 christos fi
7762 1.1.1.3 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7763 1.1.1.3 christos CFLAGS="$save_CFLAGS"
7764 1.1.1.3 christos
7765 1.1.1.3 christos
7766 1.1.1.3 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wall option" >&5
7767 1.1.1.3 christos $as_echo_n "checking whether the compiler supports the -Wall option... " >&6; }
7768 1.1.1.3 christos save_CFLAGS="$CFLAGS"
7769 1.1.1.5.2.1 pgoyette if expr "x-Wall" : "x-W.*" >/dev/null
7770 1.1.1.5.2.1 pgoyette then
7771 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wall"
7772 1.1.1.5.2.1 pgoyette elif expr "x-Wall" : "x-f.*" >/dev/null
7773 1.1.1.5.2.1 pgoyette then
7774 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS -Werror -Wall"
7775 1.1.1.5.2.1 pgoyette elif expr "x-Wall" : "x-m.*" >/dev/null
7776 1.1.1.5.2.1 pgoyette then
7777 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS -Werror -Wall"
7778 1.1.1.5.2.1 pgoyette else
7779 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS -Wall"
7780 1.1.1.5.2.1 pgoyette fi
7781 1.1.1.3 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782 1.1.1.3 christos /* end confdefs.h. */
7783 1.1.1.3 christos
7784 1.1.1.3 christos int
7785 1.1.1.3 christos main ()
7786 1.1.1.3 christos {
7787 1.1.1.3 christos return 0
7788 1.1.1.3 christos ;
7789 1.1.1.3 christos return 0;
7790 1.1.1.3 christos }
7791 1.1.1.3 christos _ACEOF
7792 1.1.1.3 christos if ac_fn_c_try_compile "$LINENO"; then :
7793 1.1.1.3 christos
7794 1.1.1.3 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7795 1.1.1.3 christos $as_echo "yes" >&6; }
7796 1.1.1.3 christos CFLAGS="$save_CFLAGS"
7797 1.1.1.3 christos V_CCOPT="$V_CCOPT -Wall"
7798 1.1.1.3 christos
7799 1.1.1.3 christos else
7800 1.1.1.3 christos
7801 1.1.1.3 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 1.1.1.3 christos $as_echo "no" >&6; }
7803 1.1.1.3 christos CFLAGS="$save_CFLAGS"
7804 1.1.1.3 christos
7805 1.1.1.3 christos fi
7806 1.1.1.3 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7807 1.1.1.3 christos
7808 1.1.1.3 christos
7809 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wsign-compare option" >&5
7810 1.1.1.5.2.1 pgoyette $as_echo_n "checking whether the compiler supports the -Wsign-compare option... " >&6; }
7811 1.1.1.5.2.1 pgoyette save_CFLAGS="$CFLAGS"
7812 1.1.1.5.2.1 pgoyette if expr "x-Wsign-compare" : "x-W.*" >/dev/null
7813 1.1.1.5.2.1 pgoyette then
7814 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wsign-compare"
7815 1.1.1.5.2.1 pgoyette elif expr "x-Wsign-compare" : "x-f.*" >/dev/null
7816 1.1.1.5.2.1 pgoyette then
7817 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS -Werror -Wsign-compare"
7818 1.1.1.5.2.1 pgoyette elif expr "x-Wsign-compare" : "x-m.*" >/dev/null
7819 1.1.1.5.2.1 pgoyette then
7820 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS -Werror -Wsign-compare"
7821 1.1.1.5.2.1 pgoyette else
7822 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS -Wsign-compare"
7823 1.1.1.5.2.1 pgoyette fi
7824 1.1.1.5.2.1 pgoyette cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825 1.1.1.5.2.1 pgoyette /* end confdefs.h. */
7826 1.1.1.5.2.1 pgoyette
7827 1.1.1.5.2.1 pgoyette int
7828 1.1.1.5.2.1 pgoyette main ()
7829 1.1.1.5.2.1 pgoyette {
7830 1.1.1.5.2.1 pgoyette return 0
7831 1.1.1.5.2.1 pgoyette ;
7832 1.1.1.5.2.1 pgoyette return 0;
7833 1.1.1.5.2.1 pgoyette }
7834 1.1.1.5.2.1 pgoyette _ACEOF
7835 1.1.1.5.2.1 pgoyette if ac_fn_c_try_compile "$LINENO"; then :
7836 1.1.1.5.2.1 pgoyette
7837 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7838 1.1.1.5.2.1 pgoyette $as_echo "yes" >&6; }
7839 1.1.1.5.2.1 pgoyette CFLAGS="$save_CFLAGS"
7840 1.1.1.5.2.1 pgoyette V_CCOPT="$V_CCOPT -Wsign-compare"
7841 1.1.1.5.2.1 pgoyette
7842 1.1.1.5.2.1 pgoyette else
7843 1.1.1.5.2.1 pgoyette
7844 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845 1.1.1.5.2.1 pgoyette $as_echo "no" >&6; }
7846 1.1.1.5.2.1 pgoyette CFLAGS="$save_CFLAGS"
7847 1.1.1.5.2.1 pgoyette
7848 1.1.1.5.2.1 pgoyette fi
7849 1.1.1.5.2.1 pgoyette rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7850 1.1.1.5.2.1 pgoyette
7851 1.1.1.5.2.1 pgoyette
7852 1.1.1.3 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-prototypes option" >&5
7853 1.1.1.3 christos $as_echo_n "checking whether the compiler supports the -Wmissing-prototypes option... " >&6; }
7854 1.1.1.3 christos save_CFLAGS="$CFLAGS"
7855 1.1.1.5.2.1 pgoyette if expr "x-Wmissing-prototypes" : "x-W.*" >/dev/null
7856 1.1.1.5.2.1 pgoyette then
7857 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-prototypes"
7858 1.1.1.5.2.1 pgoyette elif expr "x-Wmissing-prototypes" : "x-f.*" >/dev/null
7859 1.1.1.5.2.1 pgoyette then
7860 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
7861 1.1.1.5.2.1 pgoyette elif expr "x-Wmissing-prototypes" : "x-m.*" >/dev/null
7862 1.1.1.5.2.1 pgoyette then
7863 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
7864 1.1.1.5.2.1 pgoyette else
7865 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS -Wmissing-prototypes"
7866 1.1.1.5.2.1 pgoyette fi
7867 1.1.1.3 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868 1.1.1.3 christos /* end confdefs.h. */
7869 1.1.1.3 christos
7870 1.1.1.3 christos int
7871 1.1.1.3 christos main ()
7872 1.1.1.3 christos {
7873 1.1.1.3 christos return 0
7874 1.1.1.3 christos ;
7875 1.1.1.3 christos return 0;
7876 1.1.1.3 christos }
7877 1.1.1.3 christos _ACEOF
7878 1.1.1.3 christos if ac_fn_c_try_compile "$LINENO"; then :
7879 1.1.1.3 christos
7880 1.1.1.3 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7881 1.1.1.3 christos $as_echo "yes" >&6; }
7882 1.1.1.3 christos CFLAGS="$save_CFLAGS"
7883 1.1.1.3 christos V_CCOPT="$V_CCOPT -Wmissing-prototypes"
7884 1.1.1.3 christos
7885 1.1.1.3 christos else
7886 1.1.1.3 christos
7887 1.1.1.3 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7888 1.1.1.3 christos $as_echo "no" >&6; }
7889 1.1.1.3 christos CFLAGS="$save_CFLAGS"
7890 1.1.1.3 christos
7891 1.1.1.3 christos fi
7892 1.1.1.3 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7893 1.1.1.3 christos
7894 1.1.1.3 christos
7895 1.1.1.3 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wstrict-prototypes option" >&5
7896 1.1.1.3 christos $as_echo_n "checking whether the compiler supports the -Wstrict-prototypes option... " >&6; }
7897 1.1.1.3 christos save_CFLAGS="$CFLAGS"
7898 1.1.1.5.2.1 pgoyette if expr "x-Wstrict-prototypes" : "x-W.*" >/dev/null
7899 1.1.1.5.2.1 pgoyette then
7900 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wstrict-prototypes"
7901 1.1.1.5.2.1 pgoyette elif expr "x-Wstrict-prototypes" : "x-f.*" >/dev/null
7902 1.1.1.5.2.1 pgoyette then
7903 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
7904 1.1.1.5.2.1 pgoyette elif expr "x-Wstrict-prototypes" : "x-m.*" >/dev/null
7905 1.1.1.5.2.1 pgoyette then
7906 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
7907 1.1.1.5.2.1 pgoyette else
7908 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS -Wstrict-prototypes"
7909 1.1.1.5.2.1 pgoyette fi
7910 1.1.1.3 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7911 1.1.1.3 christos /* end confdefs.h. */
7912 1.1.1.3 christos
7913 1.1.1.3 christos int
7914 1.1.1.3 christos main ()
7915 1.1.1.3 christos {
7916 1.1.1.3 christos return 0
7917 1.1.1.3 christos ;
7918 1.1.1.3 christos return 0;
7919 1.1.1.3 christos }
7920 1.1.1.3 christos _ACEOF
7921 1.1.1.3 christos if ac_fn_c_try_compile "$LINENO"; then :
7922 1.1.1.3 christos
7923 1.1.1.3 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7924 1.1.1.3 christos $as_echo "yes" >&6; }
7925 1.1.1.3 christos CFLAGS="$save_CFLAGS"
7926 1.1.1.3 christos V_CCOPT="$V_CCOPT -Wstrict-prototypes"
7927 1.1.1.3 christos
7928 1.1.1.3 christos else
7929 1.1.1.3 christos
7930 1.1.1.3 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7931 1.1.1.3 christos $as_echo "no" >&6; }
7932 1.1.1.3 christos CFLAGS="$save_CFLAGS"
7933 1.1.1.3 christos
7934 1.1.1.3 christos fi
7935 1.1.1.3 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7936 1.1 christos
7937 1.1.1.5.2.1 pgoyette
7938 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wshadow option" >&5
7939 1.1.1.5.2.1 pgoyette $as_echo_n "checking whether the compiler supports the -Wshadow option... " >&6; }
7940 1.1.1.5.2.1 pgoyette save_CFLAGS="$CFLAGS"
7941 1.1.1.5.2.1 pgoyette if expr "x-Wshadow" : "x-W.*" >/dev/null
7942 1.1.1.5.2.1 pgoyette then
7943 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wshadow"
7944 1.1.1.5.2.1 pgoyette elif expr "x-Wshadow" : "x-f.*" >/dev/null
7945 1.1.1.5.2.1 pgoyette then
7946 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS -Werror -Wshadow"
7947 1.1.1.5.2.1 pgoyette elif expr "x-Wshadow" : "x-m.*" >/dev/null
7948 1.1.1.5.2.1 pgoyette then
7949 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS -Werror -Wshadow"
7950 1.1.1.5.2.1 pgoyette else
7951 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS -Wshadow"
7952 1.1.1.5.2.1 pgoyette fi
7953 1.1.1.5.2.1 pgoyette cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7954 1.1.1.5.2.1 pgoyette /* end confdefs.h. */
7955 1.1.1.5.2.1 pgoyette
7956 1.1.1.5.2.1 pgoyette int
7957 1.1.1.5.2.1 pgoyette main ()
7958 1.1.1.5.2.1 pgoyette {
7959 1.1.1.5.2.1 pgoyette return 0
7960 1.1.1.5.2.1 pgoyette ;
7961 1.1.1.5.2.1 pgoyette return 0;
7962 1.1.1.5.2.1 pgoyette }
7963 1.1.1.5.2.1 pgoyette _ACEOF
7964 1.1.1.5.2.1 pgoyette if ac_fn_c_try_compile "$LINENO"; then :
7965 1.1.1.5.2.1 pgoyette
7966 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7967 1.1.1.5.2.1 pgoyette $as_echo "yes" >&6; }
7968 1.1.1.5.2.1 pgoyette CFLAGS="$save_CFLAGS"
7969 1.1.1.5.2.1 pgoyette V_CCOPT="$V_CCOPT -Wshadow"
7970 1.1.1.5.2.1 pgoyette
7971 1.1.1.5.2.1 pgoyette else
7972 1.1.1.5.2.1 pgoyette
7973 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7974 1.1.1.5.2.1 pgoyette $as_echo "no" >&6; }
7975 1.1.1.5.2.1 pgoyette CFLAGS="$save_CFLAGS"
7976 1.1.1.5.2.1 pgoyette
7977 1.1.1.5.2.1 pgoyette fi
7978 1.1.1.5.2.1 pgoyette rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7979 1.1.1.5.2.1 pgoyette
7980 1.1.1.5.2.1 pgoyette
7981 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wdeclaration-after-statement option" >&5
7982 1.1.1.5.2.1 pgoyette $as_echo_n "checking whether the compiler supports the -Wdeclaration-after-statement option... " >&6; }
7983 1.1.1.5.2.1 pgoyette save_CFLAGS="$CFLAGS"
7984 1.1.1.5.2.1 pgoyette if expr "x-Wdeclaration-after-statement" : "x-W.*" >/dev/null
7985 1.1.1.5.2.1 pgoyette then
7986 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wdeclaration-after-statement"
7987 1.1.1.5.2.1 pgoyette elif expr "x-Wdeclaration-after-statement" : "x-f.*" >/dev/null
7988 1.1.1.5.2.1 pgoyette then
7989 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS -Werror -Wdeclaration-after-statement"
7990 1.1.1.5.2.1 pgoyette elif expr "x-Wdeclaration-after-statement" : "x-m.*" >/dev/null
7991 1.1.1.5.2.1 pgoyette then
7992 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS -Werror -Wdeclaration-after-statement"
7993 1.1.1.5.2.1 pgoyette else
7994 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS -Wdeclaration-after-statement"
7995 1.1.1.5.2.1 pgoyette fi
7996 1.1.1.5.2.1 pgoyette cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7997 1.1.1.5.2.1 pgoyette /* end confdefs.h. */
7998 1.1.1.5.2.1 pgoyette
7999 1.1.1.5.2.1 pgoyette int
8000 1.1.1.5.2.1 pgoyette main ()
8001 1.1.1.5.2.1 pgoyette {
8002 1.1.1.5.2.1 pgoyette return 0
8003 1.1.1.5.2.1 pgoyette ;
8004 1.1.1.5.2.1 pgoyette return 0;
8005 1.1.1.5.2.1 pgoyette }
8006 1.1.1.5.2.1 pgoyette _ACEOF
8007 1.1.1.5.2.1 pgoyette if ac_fn_c_try_compile "$LINENO"; then :
8008 1.1.1.5.2.1 pgoyette
8009 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8010 1.1.1.5.2.1 pgoyette $as_echo "yes" >&6; }
8011 1.1.1.5.2.1 pgoyette CFLAGS="$save_CFLAGS"
8012 1.1.1.5.2.1 pgoyette V_CCOPT="$V_CCOPT -Wdeclaration-after-statement"
8013 1.1.1.5.2.1 pgoyette
8014 1.1.1.5.2.1 pgoyette else
8015 1.1.1.5.2.1 pgoyette
8016 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8017 1.1.1.5.2.1 pgoyette $as_echo "no" >&6; }
8018 1.1.1.5.2.1 pgoyette CFLAGS="$save_CFLAGS"
8019 1.1.1.5.2.1 pgoyette
8020 1.1.1.5.2.1 pgoyette fi
8021 1.1.1.5.2.1 pgoyette rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8022 1.1.1.5.2.1 pgoyette
8023 1.1.1.5.2.1 pgoyette
8024 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wused-but-marked-unused option" >&5
8025 1.1.1.5.2.1 pgoyette $as_echo_n "checking whether the compiler supports the -Wused-but-marked-unused option... " >&6; }
8026 1.1.1.5.2.1 pgoyette save_CFLAGS="$CFLAGS"
8027 1.1.1.5.2.1 pgoyette if expr "x-Wused-but-marked-unused" : "x-W.*" >/dev/null
8028 1.1.1.5.2.1 pgoyette then
8029 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wused-but-marked-unused"
8030 1.1.1.5.2.1 pgoyette elif expr "x-Wused-but-marked-unused" : "x-f.*" >/dev/null
8031 1.1.1.5.2.1 pgoyette then
8032 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused"
8033 1.1.1.5.2.1 pgoyette elif expr "x-Wused-but-marked-unused" : "x-m.*" >/dev/null
8034 1.1.1.5.2.1 pgoyette then
8035 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused"
8036 1.1.1.5.2.1 pgoyette else
8037 1.1.1.5.2.1 pgoyette CFLAGS="$CFLAGS -Wused-but-marked-unused"
8038 1.1.1.5.2.1 pgoyette fi
8039 1.1.1.5.2.1 pgoyette cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8040 1.1.1.5.2.1 pgoyette /* end confdefs.h. */
8041 1.1.1.5.2.1 pgoyette
8042 1.1.1.5.2.1 pgoyette int
8043 1.1.1.5.2.1 pgoyette main ()
8044 1.1.1.5.2.1 pgoyette {
8045 1.1.1.5.2.1 pgoyette return 0
8046 1.1.1.5.2.1 pgoyette ;
8047 1.1.1.5.2.1 pgoyette return 0;
8048 1.1.1.5.2.1 pgoyette }
8049 1.1.1.5.2.1 pgoyette _ACEOF
8050 1.1.1.5.2.1 pgoyette if ac_fn_c_try_compile "$LINENO"; then :
8051 1.1.1.5.2.1 pgoyette
8052 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8053 1.1.1.5.2.1 pgoyette $as_echo "yes" >&6; }
8054 1.1.1.5.2.1 pgoyette CFLAGS="$save_CFLAGS"
8055 1.1.1.5.2.1 pgoyette V_CCOPT="$V_CCOPT -Wused-but-marked-unused"
8056 1.1.1.5.2.1 pgoyette
8057 1.1.1.5.2.1 pgoyette else
8058 1.1.1.5.2.1 pgoyette
8059 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8060 1.1.1.5.2.1 pgoyette $as_echo "no" >&6; }
8061 1.1.1.5.2.1 pgoyette CFLAGS="$save_CFLAGS"
8062 1.1.1.5.2.1 pgoyette
8063 1.1.1.5.2.1 pgoyette fi
8064 1.1.1.5.2.1 pgoyette rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065 1.1.1.5.2.1 pgoyette
8066 1.1 christos fi
8067 1.1.1.3 christos
8068 1.1.1.3 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports generating dependencies" >&5
8069 1.1.1.3 christos $as_echo_n "checking whether the compiler supports generating dependencies... " >&6; }
8070 1.1.1.3 christos if test "$GCC" = yes ; then
8071 1.1.1.3 christos #
8072 1.1.1.3 christos # GCC, or a compiler deemed to be GCC by AC_PROG_CC (even
8073 1.1.1.3 christos # though it's not); we assume that, in this case, the flag
8074 1.1.1.3 christos # would be -M.
8075 1.1.1.3 christos #
8076 1.1.1.3 christos ac_lbl_dependency_flag="-M"
8077 1.1.1.3 christos else
8078 1.1.1.3 christos #
8079 1.1.1.3 christos # Not GCC or a compiler deemed to be GCC; what platform is
8080 1.1.1.3 christos # this? (We're assuming that if the compiler isn't GCC
8081 1.1.1.3 christos # it's the compiler from the vendor of the OS; that won't
8082 1.1.1.3 christos # necessarily be true for x86 platforms, where it might be
8083 1.1.1.3 christos # the Intel C compiler.)
8084 1.1.1.3 christos #
8085 1.1.1.3 christos case "$host_os" in
8086 1.1.1.3 christos
8087 1.1.1.3 christos irix*|osf*|darwin*)
8088 1.1.1.3 christos #
8089 1.1.1.3 christos # MIPS C for IRIX, DEC C, and clang all use -M.
8090 1.1.1.3 christos #
8091 1.1.1.3 christos ac_lbl_dependency_flag="-M"
8092 1.1.1.3 christos ;;
8093 1.1.1.3 christos
8094 1.1.1.3 christos solaris*)
8095 1.1.1.3 christos #
8096 1.1.1.3 christos # Sun C uses -xM.
8097 1.1.1.3 christos #
8098 1.1.1.3 christos ac_lbl_dependency_flag="-xM"
8099 1.1.1.3 christos ;;
8100 1.1.1.3 christos
8101 1.1.1.3 christos hpux*)
8102 1.1.1.3 christos #
8103 1.1.1.3 christos # HP's older C compilers don't support this.
8104 1.1.1.3 christos # HP's newer C compilers support this with
8105 1.1.1.3 christos # either +M or +Make; the older compilers
8106 1.1.1.3 christos # interpret +M as something completely
8107 1.1.1.3 christos # different, so we use +Make so we don't
8108 1.1.1.3 christos # think it works with the older compilers.
8109 1.1.1.3 christos #
8110 1.1.1.3 christos ac_lbl_dependency_flag="+Make"
8111 1.1.1.3 christos ;;
8112 1.1.1.3 christos
8113 1.1.1.3 christos *)
8114 1.1.1.3 christos #
8115 1.1.1.3 christos # Not one of the above; assume no support for
8116 1.1.1.3 christos # generating dependencies.
8117 1.1.1.3 christos #
8118 1.1.1.3 christos ac_lbl_dependency_flag=""
8119 1.1.1.3 christos ;;
8120 1.1.1.3 christos esac
8121 1.1.1.3 christos fi
8122 1.1.1.3 christos
8123 1.1.1.3 christos #
8124 1.1.1.3 christos # Is ac_lbl_dependency_flag defined and, if so, does the compiler
8125 1.1.1.3 christos # complain about it?
8126 1.1.1.3 christos #
8127 1.1.1.3 christos # Note: clang doesn't seem to exit with an error status when handed
8128 1.1.1.3 christos # an unknown non-warning error, even if you pass it
8129 1.1.1.3 christos # -Werror=unknown-warning-option. However, it always supports
8130 1.1.1.3 christos # -M, so the fact that this test always succeeds with clang
8131 1.1.1.3 christos # isn't an issue.
8132 1.1.1.3 christos #
8133 1.1.1.3 christos if test ! -z "$ac_lbl_dependency_flag"; then
8134 1.1.1.3 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8135 1.1.1.3 christos /* end confdefs.h. */
8136 1.1.1.3 christos int main(void) { return 0; }
8137 1.1.1.3 christos _ACEOF
8138 1.1.1.3 christos echo "$CC" $ac_lbl_dependency_flag conftest.c >&5
8139 1.1.1.3 christos if "$CC" $ac_lbl_dependency_flag conftest.c >/dev/null 2>&1; then
8140 1.1.1.3 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with $ac_lbl_dependency_flag" >&5
8141 1.1.1.3 christos $as_echo "yes, with $ac_lbl_dependency_flag" >&6; }
8142 1.1.1.3 christos DEPENDENCY_CFLAG="$ac_lbl_dependency_flag"
8143 1.1.1.3 christos MKDEP='${srcdir}/mkdep'
8144 1.1.1.3 christos else
8145 1.1.1.3 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146 1.1.1.3 christos $as_echo "no" >&6; }
8147 1.1.1.3 christos #
8148 1.1.1.3 christos # We can't run mkdep, so have "make depend" do
8149 1.1.1.3 christos # nothing.
8150 1.1.1.3 christos #
8151 1.1.1.3 christos MKDEP=:
8152 1.1.1.3 christos fi
8153 1.1.1.3 christos rm -rf conftest*
8154 1.1.1.3 christos else
8155 1.1.1.3 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156 1.1.1.3 christos $as_echo "no" >&6; }
8157 1.1.1.3 christos #
8158 1.1.1.3 christos # We can't run mkdep, so have "make depend" do
8159 1.1.1.3 christos # nothing.
8160 1.1.1.3 christos #
8161 1.1.1.3 christos MKDEP=:
8162 1.1.1.3 christos fi
8163 1.1.1.3 christos
8164 1.1.1.3 christos
8165 1.1.1.3 christos
8166 1.1.1.3 christos #
8167 1.1.1.3 christos # We used to set -n32 for IRIX 6 when not using GCC (presumed
8168 1.1.1.3 christos # to mean that we're using MIPS C or MIPSpro C); it specified
8169 1.1.1.3 christos # the "new" faster 32-bit ABI, introduced in IRIX 6.2. I'm
8170 1.1.1.3 christos # not sure why that would be something to do *only* with a
8171 1.1.1.3 christos # .devel file; why should the ABI for which we produce code
8172 1.1.1.3 christos # depend on .devel?
8173 1.1.1.3 christos #
8174 1.1 christos os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
8175 1.1 christos name="lbl/os-$os.h"
8176 1.1 christos if test -f $name ; then
8177 1.1 christos ln -s $name os-proto.h
8178 1.1 christos
8179 1.1.1.2 christos $as_echo "#define HAVE_OS_PROTO_H 1" >>confdefs.h
8180 1.1 christos
8181 1.1 christos else
8182 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find $name" >&5
8183 1.1.1.2 christos $as_echo "$as_me: WARNING: can't find $name" >&2;}
8184 1.1 christos fi
8185 1.1 christos fi
8186 1.1 christos
8187 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr struct has the sa_len member" >&5
8188 1.1.1.2 christos $as_echo_n "checking if sockaddr struct has the sa_len member... " >&6; }
8189 1.1.1.3 christos if ${ac_cv_lbl_sockaddr_has_sa_len+:} false; then :
8190 1.1.1.2 christos $as_echo_n "(cached) " >&6
8191 1.1 christos else
8192 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8193 1.1 christos /* end confdefs.h. */
8194 1.1 christos
8195 1.1 christos # include <sys/types.h>
8196 1.1 christos # include <sys/socket.h>
8197 1.1 christos int
8198 1.1 christos main ()
8199 1.1 christos {
8200 1.1 christos u_int i = sizeof(((struct sockaddr *)0)->sa_len)
8201 1.1 christos ;
8202 1.1 christos return 0;
8203 1.1 christos }
8204 1.1 christos _ACEOF
8205 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
8206 1.1 christos ac_cv_lbl_sockaddr_has_sa_len=yes
8207 1.1 christos else
8208 1.1.1.2 christos ac_cv_lbl_sockaddr_has_sa_len=no
8209 1.1 christos fi
8210 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8211 1.1 christos fi
8212 1.1 christos
8213 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
8214 1.1.1.2 christos $as_echo "$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
8215 1.1 christos if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
8216 1.1 christos
8217 1.1.1.2 christos $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
8218 1.1 christos
8219 1.1 christos fi
8220 1.1 christos
8221 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_storage struct exists" >&5
8222 1.1.1.2 christos $as_echo_n "checking if sockaddr_storage struct exists... " >&6; }
8223 1.1.1.3 christos if ${ac_cv_lbl_has_sockaddr_storage+:} false; then :
8224 1.1.1.2 christos $as_echo_n "(cached) " >&6
8225 1.1 christos else
8226 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8227 1.1 christos /* end confdefs.h. */
8228 1.1 christos
8229 1.1 christos # include <sys/types.h>
8230 1.1 christos # include <sys/socket.h>
8231 1.1 christos int
8232 1.1 christos main ()
8233 1.1 christos {
8234 1.1 christos u_int i = sizeof (struct sockaddr_storage)
8235 1.1 christos ;
8236 1.1 christos return 0;
8237 1.1 christos }
8238 1.1 christos _ACEOF
8239 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
8240 1.1 christos ac_cv_lbl_has_sockaddr_storage=yes
8241 1.1 christos else
8242 1.1.1.2 christos ac_cv_lbl_has_sockaddr_storage=no
8243 1.1 christos fi
8244 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8245 1.1 christos fi
8246 1.1 christos
8247 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_has_sockaddr_storage" >&5
8248 1.1.1.2 christos $as_echo "$ac_cv_lbl_has_sockaddr_storage" >&6; }
8249 1.1 christos if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
8250 1.1 christos
8251 1.1.1.2 christos $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
8252 1.1 christos
8253 1.1 christos fi
8254 1.1 christos
8255 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
8256 1.1.1.2 christos $as_echo_n "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... " >&6; }
8257 1.1.1.3 christos if ${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+:} false; then :
8258 1.1.1.2 christos $as_echo_n "(cached) " >&6
8259 1.1 christos else
8260 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8261 1.1 christos /* end confdefs.h. */
8262 1.1 christos
8263 1.1 christos # include <sys/types.h>
8264 1.1 christos # include <sys/dlpi.h>
8265 1.1 christos # include <sys/dlpi_ext.h>
8266 1.1 christos int
8267 1.1 christos main ()
8268 1.1 christos {
8269 1.1 christos u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
8270 1.1 christos ;
8271 1.1 christos return 0;
8272 1.1 christos }
8273 1.1 christos _ACEOF
8274 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
8275 1.1 christos ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
8276 1.1 christos else
8277 1.1.1.2 christos ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
8278 1.1 christos fi
8279 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8280 1.1 christos fi
8281 1.1 christos
8282 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
8283 1.1.1.2 christos $as_echo "$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
8284 1.1 christos if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
8285 1.1 christos
8286 1.1.1.2 christos $as_echo "#define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1" >>confdefs.h
8287 1.1 christos
8288 1.1 christos fi
8289 1.1 christos
8290 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking if unaligned accesses fail" >&5
8291 1.1.1.2 christos $as_echo_n "checking if unaligned accesses fail... " >&6; }
8292 1.1.1.3 christos if ${ac_cv_lbl_unaligned_fail+:} false; then :
8293 1.1.1.2 christos $as_echo_n "(cached) " >&6
8294 1.1 christos else
8295 1.1 christos case "$host_cpu" in
8296 1.1 christos
8297 1.1 christos #
8298 1.1 christos # These are CPU types where:
8299 1.1 christos #
8300 1.1 christos # the CPU faults on an unaligned access, but at least some
8301 1.1 christos # OSes that support that CPU catch the fault and simulate
8302 1.1 christos # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
8303 1.1 christos # the simulation is slow, so we don't want to use it;
8304 1.1 christos #
8305 1.1 christos # the CPU, I infer (from the old
8306 1.1 christos #
8307 1.1 christos # XXX: should also check that they don't do weird things (like on arm)
8308 1.1 christos #
8309 1.1 christos # comment) doesn't fault on unaligned accesses, but doesn't
8310 1.1 christos # do a normal unaligned fetch, either (e.g., presumably, ARM);
8311 1.1 christos #
8312 1.1 christos # for whatever reason, the test program doesn't work
8313 1.1 christos # (this has been claimed to be the case for several of those
8314 1.1 christos # CPUs - I don't know what the problem is; the problem
8315 1.1 christos # was reported as "the test program dumps core" for SuperH,
8316 1.1 christos # but that's what the test program is *supposed* to do -
8317 1.1 christos # it dumps core before it writes anything, so the test
8318 1.1 christos # for an empty output file should find an empty output
8319 1.1 christos # file and conclude that unaligned accesses don't work).
8320 1.1 christos #
8321 1.1 christos # This run-time test won't work if you're cross-compiling, so
8322 1.1 christos # in order to support cross-compiling for a particular CPU,
8323 1.1 christos # we have to wire in the list of CPU types anyway, as far as
8324 1.1 christos # I know, so perhaps we should just have a set of CPUs on
8325 1.1 christos # which we know it doesn't work, a set of CPUs on which we
8326 1.1 christos # know it does work, and have the script just fail on other
8327 1.1 christos # cpu types and update it when such a failure occurs.
8328 1.1 christos #
8329 1.1 christos alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
8330 1.1 christos ac_cv_lbl_unaligned_fail=yes
8331 1.1 christos ;;
8332 1.1 christos
8333 1.1 christos *)
8334 1.1 christos cat >conftest.c <<EOF
8335 1.1 christos # include <sys/types.h>
8336 1.1 christos # include <sys/wait.h>
8337 1.1 christos # include <stdio.h>
8338 1.1 christos unsigned char a[5] = { 1, 2, 3, 4, 5 };
8339 1.1 christos main() {
8340 1.1 christos unsigned int i;
8341 1.1 christos pid_t pid;
8342 1.1 christos int status;
8343 1.1 christos /* avoid "core dumped" message */
8344 1.1 christos pid = fork();
8345 1.1 christos if (pid < 0)
8346 1.1 christos exit(2);
8347 1.1 christos if (pid > 0) {
8348 1.1 christos /* parent */
8349 1.1 christos pid = waitpid(pid, &status, 0);
8350 1.1 christos if (pid < 0)
8351 1.1 christos exit(3);
8352 1.1 christos exit(!WIFEXITED(status));
8353 1.1 christos }
8354 1.1 christos /* child */
8355 1.1 christos i = *(unsigned int *)&a[1];
8356 1.1 christos printf("%d\n", i);
8357 1.1 christos exit(0);
8358 1.1 christos }
8359 1.1 christos EOF
8360 1.1 christos ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
8361 1.1 christos conftest.c $LIBS >/dev/null 2>&1
8362 1.1 christos if test ! -x conftest ; then
8363 1.1 christos ac_cv_lbl_unaligned_fail=yes
8364 1.1 christos else
8365 1.1 christos ./conftest >conftest.out
8366 1.1 christos if test ! -s conftest.out ; then
8367 1.1 christos ac_cv_lbl_unaligned_fail=yes
8368 1.1 christos else
8369 1.1 christos ac_cv_lbl_unaligned_fail=no
8370 1.1 christos fi
8371 1.1 christos fi
8372 1.1 christos rm -f -r conftest* core core.conftest
8373 1.1 christos ;;
8374 1.1 christos esac
8375 1.1 christos fi
8376 1.1 christos
8377 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_unaligned_fail" >&5
8378 1.1.1.2 christos $as_echo "$ac_cv_lbl_unaligned_fail" >&6; }
8379 1.1 christos if test $ac_cv_lbl_unaligned_fail = yes ; then
8380 1.1 christos
8381 1.1.1.2 christos $as_echo "#define LBL_ALIGN 1" >>confdefs.h
8382 1.1 christos
8383 1.1 christos fi
8384 1.1 christos
8385 1.1 christos rm -f net
8386 1.1 christos ln -s ${srcdir}/bpf/net net
8387 1.1 christos
8388 1.1 christos
8389 1.1 christos
8390 1.1 christos
8391 1.1 christos
8392 1.1 christos
8393 1.1 christos
8394 1.1 christos
8395 1.1 christos
8396 1.1 christos
8397 1.1 christos
8398 1.1 christos
8399 1.1 christos
8400 1.1 christos
8401 1.1 christos
8402 1.1 christos
8403 1.1 christos
8404 1.1 christos
8405 1.1 christos
8406 1.1.1.5 christos # Check whether --enable-usb was given.
8407 1.1.1.5 christos if test "${enable_usb+set}" = set; then :
8408 1.1.1.5 christos enableval=$enable_usb;
8409 1.1.1.5 christos else
8410 1.1.1.5 christos enable_usb=yes
8411 1.1.1.5 christos fi
8412 1.1.1.5 christos
8413 1.1.1.5 christos
8414 1.1.1.5.2.1 pgoyette if test "xxx_only" = yes; then
8415 1.1.1.5.2.1 pgoyette # User requested something-else-only pcap, so they don't
8416 1.1.1.5.2.1 pgoyette # want USB support.
8417 1.1.1.5.2.1 pgoyette enable_usb=no
8418 1.1.1.5.2.1 pgoyette fi
8419 1.1.1.5.2.1 pgoyette
8420 1.1.1.5 christos if test "x$enable_usb" != "xno" ; then
8421 1.1.1.5 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB sniffing support" >&5
8422 1.1.1.2 christos $as_echo_n "checking for USB sniffing support... " >&6; }
8423 1.1.1.5 christos case "$host_os" in
8424 1.1.1.5 christos linux*)
8425 1.1 christos
8426 1.1.1.2 christos $as_echo "#define PCAP_SUPPORT_USB 1" >>confdefs.h
8427 1.1 christos
8428 1.1.1.2 christos USB_SRC=pcap-usb-linux.c
8429 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8430 1.1.1.2 christos $as_echo "yes" >&6; }
8431 1.1.1.2 christos ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
8432 1.1.1.2 christos if test $? -ne 0 ; then
8433 1.1.1.2 christos ac_usb_dev_name="usbmon"
8434 1.1.1.2 christos fi
8435 1.1 christos
8436 1.1 christos cat >>confdefs.h <<_ACEOF
8437 1.1 christos #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
8438 1.1 christos _ACEOF
8439 1.1 christos
8440 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
8441 1.1.1.2 christos $as_echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
8442 1.1.1.2 christos #
8443 1.1.1.2 christos # Do we have a version of <linux/compiler.h> available?
8444 1.1.1.2 christos # If so, we might need it for <linux/usbdevice_fs.h>.
8445 1.1.1.2 christos #
8446 1.1.1.2 christos for ac_header in linux/compiler.h
8447 1.1.1.2 christos do :
8448 1.1.1.2 christos ac_fn_c_check_header_mongrel "$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default"
8449 1.1.1.3 christos if test "x$ac_cv_header_linux_compiler_h" = xyes; then :
8450 1.1.1.2 christos cat >>confdefs.h <<_ACEOF
8451 1.1.1.2 christos #define HAVE_LINUX_COMPILER_H 1
8452 1.1 christos _ACEOF
8453 1.1 christos
8454 1.1 christos fi
8455 1.1 christos
8456 1.1.1.2 christos done
8457 1.1 christos
8458 1.1.1.2 christos if test "$ac_cv_header_linux_compiler_h" = yes; then
8459 1.1.1.2 christos #
8460 1.1.1.2 christos # Yes - include it when testing for <linux/usbdevice_fs.h>.
8461 1.1.1.2 christos #
8462 1.1.1.2 christos for ac_header in linux/usbdevice_fs.h
8463 1.1.1.2 christos do :
8464 1.1.1.2 christos ac_fn_c_check_header_compile "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "#include <linux/compiler.h>
8465 1.1.1.2 christos "
8466 1.1.1.3 christos if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
8467 1.1.1.2 christos cat >>confdefs.h <<_ACEOF
8468 1.1.1.2 christos #define HAVE_LINUX_USBDEVICE_FS_H 1
8469 1.1 christos _ACEOF
8470 1.1 christos
8471 1.1 christos fi
8472 1.1 christos
8473 1.1.1.2 christos done
8474 1.1 christos
8475 1.1.1.2 christos else
8476 1.1.1.2 christos for ac_header in linux/usbdevice_fs.h
8477 1.1.1.2 christos do :
8478 1.1.1.2 christos ac_fn_c_check_header_mongrel "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "$ac_includes_default"
8479 1.1.1.3 christos if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
8480 1.1 christos cat >>confdefs.h <<_ACEOF
8481 1.1.1.2 christos #define HAVE_LINUX_USBDEVICE_FS_H 1
8482 1.1 christos _ACEOF
8483 1.1 christos
8484 1.1 christos fi
8485 1.1 christos
8486 1.1 christos done
8487 1.1 christos
8488 1.1.1.2 christos fi
8489 1.1.1.2 christos if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
8490 1.1.1.2 christos #
8491 1.1.1.2 christos # OK, does it define bRequestType? Older versions of the kernel
8492 1.1.1.2 christos # define fields with names like "requesttype, "request", and
8493 1.1.1.2 christos # "value", rather than "bRequestType", "bRequest", and
8494 1.1.1.2 christos # "wValue".
8495 1.1.1.2 christos #
8496 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usbdevfs_ctrltransfer struct has bRequestType member" >&5
8497 1.1.1.2 christos $as_echo_n "checking if usbdevfs_ctrltransfer struct has bRequestType member... " >&6; }
8498 1.1.1.3 christos if ${ac_cv_usbdevfs_ctrltransfer_has_bRequestType+:} false; then :
8499 1.1.1.2 christos $as_echo_n "(cached) " >&6
8500 1.1 christos else
8501 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8502 1.1 christos /* end confdefs.h. */
8503 1.1 christos
8504 1.1 christos $ac_includes_default
8505 1.1 christos #ifdef HAVE_SYS_BITYPES_H
8506 1.1 christos #include <sys/bitypes.h>
8507 1.1 christos #endif
8508 1.1.1.2 christos #ifdef HAVE_LINUX_COMPILER_H
8509 1.1.1.2 christos #include <linux/compiler.h>
8510 1.1.1.2 christos #endif
8511 1.1.1.2 christos #include <linux/usbdevice_fs.h>
8512 1.1 christos int
8513 1.1 christos main ()
8514 1.1 christos {
8515 1.1 christos u_int i = sizeof(((struct usbdevfs_ctrltransfer *)0)->bRequestType)
8516 1.1 christos ;
8517 1.1 christos return 0;
8518 1.1 christos }
8519 1.1 christos _ACEOF
8520 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
8521 1.1 christos ac_cv_usbdevfs_ctrltransfer_has_bRequestType=yes
8522 1.1 christos else
8523 1.1.1.2 christos ac_cv_usbdevfs_ctrltransfer_has_bRequestType=no
8524 1.1 christos fi
8525 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8526 1.1 christos fi
8527 1.1 christos
8528 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&5
8529 1.1.1.2 christos $as_echo "$ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&6; }
8530 1.1.1.2 christos if test $ac_cv_usbdevfs_ctrltransfer_has_bRequestType = yes ; then
8531 1.1.1.2 christos
8532 1.1.1.2 christos $as_echo "#define HAVE_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1" >>confdefs.h
8533 1.1.1.2 christos
8534 1.1.1.2 christos fi
8535 1.1.1.2 christos fi
8536 1.1.1.2 christos ;;
8537 1.1.1.5.2.1 pgoyette freebsd*)
8538 1.1.1.5.2.1 pgoyette #
8539 1.1.1.5.2.1 pgoyette # This just uses BPF in FreeBSD 8.4 and later; we don't need
8540 1.1.1.5.2.1 pgoyette # to check for anything special for capturing.
8541 1.1.1.5.2.1 pgoyette #
8542 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in FreeBSD 8.4 and later" >&5
8543 1.1.1.5.2.1 pgoyette $as_echo "yes, in FreeBSD 8.4 and later" >&6; }
8544 1.1.1.5.2.1 pgoyette ;;
8545 1.1.1.5.2.1 pgoyette
8546 1.1.1.5 christos *)
8547 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548 1.1.1.2 christos $as_echo "no" >&6; }
8549 1.1.1.2 christos ;;
8550 1.1.1.2 christos esac
8551 1.1.1.5 christos fi
8552 1.1.1.2 christos
8553 1.1.1.2 christos
8554 1.1.1.2 christos
8555 1.1.1.5.2.1 pgoyette if test "xxx_only" != yes; then
8556 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the platform could support netfilter sniffing" >&5
8557 1.1.1.2 christos $as_echo_n "checking whether the platform could support netfilter sniffing... " >&6; }
8558 1.1.1.5.2.1 pgoyette case "$host_os" in
8559 1.1.1.5.2.1 pgoyette linux*)
8560 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8561 1.1.1.2 christos $as_echo "yes" >&6; }
8562 1.1.1.5.2.1 pgoyette #
8563 1.1.1.5.2.1 pgoyette # Life's too short to deal with trying to get this to compile
8564 1.1.1.5.2.1 pgoyette # if you don't get the right types defined with
8565 1.1.1.5.2.1 pgoyette # __KERNEL_STRICT_NAMES getting defined by some other include.
8566 1.1.1.5.2.1 pgoyette #
8567 1.1.1.5.2.1 pgoyette # Check whether the includes Just Work. If not, don't turn on
8568 1.1.1.5.2.1 pgoyette # netfilter support.
8569 1.1.1.5.2.1 pgoyette #
8570 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netfilter support" >&5
8571 1.1.1.2 christos $as_echo_n "checking whether we can compile the netfilter support... " >&6; }
8572 1.1.1.5.2.1 pgoyette if ${ac_cv_netfilter_can_compile+:} false; then :
8573 1.1.1.2 christos $as_echo_n "(cached) " >&6
8574 1.1.1.2 christos else
8575 1.1.1.2 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8576 1.1.1.2 christos /* end confdefs.h. */
8577 1.1.1.2 christos
8578 1.1.1.2 christos $ac_includes_default
8579 1.1.1.2 christos #include <sys/socket.h>
8580 1.1.1.3 christos #include <netinet/in.h>
8581 1.1.1.2 christos #include <linux/types.h>
8582 1.1.1.2 christos
8583 1.1.1.2 christos #include <linux/netlink.h>
8584 1.1.1.3 christos #include <linux/netfilter.h>
8585 1.1.1.2 christos #include <linux/netfilter/nfnetlink.h>
8586 1.1.1.2 christos #include <linux/netfilter/nfnetlink_log.h>
8587 1.1.1.3 christos #include <linux/netfilter/nfnetlink_queue.h>
8588 1.1.1.2 christos int
8589 1.1.1.2 christos main ()
8590 1.1.1.2 christos {
8591 1.1 christos
8592 1.1.1.2 christos ;
8593 1.1.1.2 christos return 0;
8594 1.1.1.2 christos }
8595 1.1 christos _ACEOF
8596 1.1.1.2 christos if ac_fn_c_try_compile "$LINENO"; then :
8597 1.1.1.2 christos ac_cv_netfilter_can_compile=yes
8598 1.1.1.2 christos else
8599 1.1.1.2 christos ac_cv_netfilter_can_compile=no
8600 1.1.1.2 christos fi
8601 1.1.1.2 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8602 1.1.1.2 christos fi
8603 1.1 christos
8604 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_netfilter_can_compile" >&5
8605 1.1.1.2 christos $as_echo "$ac_cv_netfilter_can_compile" >&6; }
8606 1.1.1.5.2.1 pgoyette if test $ac_cv_netfilter_can_compile = yes ; then
8607 1.1.1.2 christos
8608 1.1.1.2 christos $as_echo "#define PCAP_SUPPORT_NETFILTER 1" >>confdefs.h
8609 1.1.1.2 christos
8610 1.1.1.5.2.1 pgoyette NETFILTER_SRC=pcap-netfilter-linux.c
8611 1.1.1.5.2.1 pgoyette fi
8612 1.1.1.5.2.1 pgoyette ;;
8613 1.1.1.5.2.1 pgoyette *)
8614 1.1.1.5.2.1 pgoyette { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8615 1.1.1.2 christos $as_echo "no" >&6; }
8616 1.1.1.5.2.1 pgoyette ;;
8617 1.1.1.5.2.1 pgoyette esac
8618 1.1.1.5.2.1 pgoyette fi
8619 1.1 christos
8620 1.1 christos
8621 1.1 christos
8622 1.1 christos # Check whether --enable-bluetooth was given.
8623 1.1.1.2 christos if test "${enable_bluetooth+set}" = set; then :
8624 1.1 christos enableval=$enable_bluetooth;
8625 1.1 christos else
8626 1.1.1.4 christos enable_bluetooth=ifsupportavailable
8627 1.1 christos fi
8628 1.1 christos
8629 1.1 christos
8630 1.1.1.5.2.1 pgoyette if test "xxx_only" = yes; then
8631 1.1.1.5.2.1 pgoyette # User requested something-else-only pcap, so they don't
8632 1.1.1.5.2.1 pgoyette # want Bluetooth support.
8633 1.1.1.5.2.1 pgoyette enable_bluetooth=no
8634 1.1.1.5.2.1 pgoyette fi
8635 1.1.1.5.2.1 pgoyette
8636 1.1 christos if test "x$enable_bluetooth" != "xno" ; then
8637 1.1 christos case "$host_os" in
8638 1.1 christos linux*)
8639 1.1.1.2 christos ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
8640 1.1.1.3 christos if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then :
8641 1.1 christos
8642 1.1 christos
8643 1.1.1.2 christos $as_echo "#define PCAP_SUPPORT_BT 1" >>confdefs.h
8644 1.1.1.2 christos
8645 1.1.1.2 christos BT_SRC=pcap-bt-linux.c
8646 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is supported" >&5
8647 1.1.1.2 christos $as_echo "$as_me: Bluetooth sniffing is supported" >&6;}
8648 1.1 christos
8649 1.1.1.3 christos #
8650 1.1.1.3 christos # OK, does struct sockaddr_hci have an hci_channel
8651 1.1.1.3 christos # member?
8652 1.1.1.3 christos #
8653 1.1.1.3 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_hci has hci_channel member" >&5
8654 1.1.1.3 christos $as_echo_n "checking if struct sockaddr_hci has hci_channel member... " >&6; }
8655 1.1.1.3 christos if ${ac_cv_lbl_sockaddr_hci_has_hci_channel+:} false; then :
8656 1.1.1.3 christos $as_echo_n "(cached) " >&6
8657 1.1.1.3 christos else
8658 1.1.1.3 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659 1.1.1.3 christos /* end confdefs.h. */
8660 1.1.1.3 christos
8661 1.1.1.3 christos #include <bluetooth/bluetooth.h>
8662 1.1.1.3 christos #include <bluetooth/hci.h>
8663 1.1.1.3 christos
8664 1.1.1.3 christos int
8665 1.1.1.3 christos main ()
8666 1.1.1.3 christos {
8667 1.1.1.3 christos u_int i = sizeof(((struct sockaddr_hci *)0)->hci_channel)
8668 1.1.1.3 christos ;
8669 1.1.1.3 christos return 0;
8670 1.1.1.3 christos }
8671 1.1.1.3 christos _ACEOF
8672 1.1.1.3 christos if ac_fn_c_try_compile "$LINENO"; then :
8673 1.1.1.3 christos ac_cv_lbl_sockaddr_hci_has_hci_channel=yes
8674 1.1.1.3 christos else
8675 1.1.1.3 christos ac_cv_lbl_sockaddr_hci_has_hci_channel=no
8676 1.1.1.3 christos fi
8677 1.1.1.3 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8678 1.1.1.3 christos fi
8679 1.1.1.3 christos
8680 1.1.1.3 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_sockaddr_hci_has_hci_channel" >&5
8681 1.1.1.3 christos $as_echo "$ac_cv_lbl_sockaddr_hci_has_hci_channel" >&6; }
8682 1.1.1.3 christos if test $ac_cv_lbl_sockaddr_hci_has_hci_channel = yes ; then
8683 1.1.1.3 christos
8684 1.1.1.3 christos $as_echo "#define SOCKADDR_HCI_HAS_HCI_CHANNEL /**/" >>confdefs.h
8685 1.1.1.3 christos
8686 1.1.1.4 christos
8687 1.1.1.4 christos #
8688 1.1.1.4 christos # OK, is HCI_CHANNEL_MONITOR defined?
8689 1.1.1.4 christos #
8690 1.1.1.4 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking if HCI_CHANNEL_MONITOR is defined" >&5
8691 1.1.1.4 christos $as_echo_n "checking if HCI_CHANNEL_MONITOR is defined... " >&6; }
8692 1.1.1.4 christos if ${ac_cv_lbl_hci_channel_monitor_is_defined+:} false; then :
8693 1.1.1.4 christos $as_echo_n "(cached) " >&6
8694 1.1.1.4 christos else
8695 1.1.1.4 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8696 1.1.1.4 christos /* end confdefs.h. */
8697 1.1.1.4 christos
8698 1.1.1.4 christos #include <bluetooth/bluetooth.h>
8699 1.1.1.4 christos #include <bluetooth/hci.h>
8700 1.1.1.4 christos
8701 1.1.1.4 christos int
8702 1.1.1.4 christos main ()
8703 1.1.1.4 christos {
8704 1.1.1.4 christos u_int i = HCI_CHANNEL_MONITOR
8705 1.1.1.4 christos ;
8706 1.1.1.4 christos return 0;
8707 1.1.1.4 christos }
8708 1.1.1.4 christos _ACEOF
8709 1.1.1.4 christos if ac_fn_c_try_compile "$LINENO"; then :
8710 1.1.1.4 christos ac_cv_lbl_hci_channel_monitor_is_defined=yes
8711 1.1.1.4 christos else
8712 1.1.1.4 christos ac_cv_lbl_hci_channel_monitor_is_defined=no
8713 1.1.1.4 christos fi
8714 1.1.1.4 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8715 1.1.1.4 christos fi
8716 1.1.1.4 christos
8717 1.1.1.4 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_hci_channel_monitor_is_defined" >&5
8718 1.1.1.4 christos $as_echo "$ac_cv_lbl_hci_channel_monitor_is_defined" >&6; }
8719 1.1.1.4 christos if test $ac_cv_lbl_hci_channel_monitor_is_defined = yes ; then
8720 1.1.1.4 christos
8721 1.1.1.4 christos $as_echo "#define PCAP_SUPPORT_BT_MONITOR /**/" >>confdefs.h
8722 1.1.1.4 christos
8723 1.1.1.4 christos BT_MONITOR_SRC=pcap-bt-monitor-linux.c
8724 1.1.1.4 christos fi
8725 1.1.1.3 christos fi
8726 1.1.1.4 christos ac_lbl_bluetooth_available=yes
8727 1.1.1.3 christos
8728 1.1 christos else
8729 1.1.1.4 christos ac_lbl_bluetooth_available=no
8730 1.1 christos
8731 1.1 christos fi
8732 1.1 christos
8733 1.1 christos
8734 1.1.1.4 christos if test "x$ac_lbl_bluetooth_available" == "xno" ; then
8735 1.1.1.4 christos if test "x$enable_bluetooth" = "xyes" ; then
8736 1.1.1.4 christos as_fn_error $? "Bluetooth sniffing is not supported; install bluez-lib devel to enable it" "$LINENO" 5
8737 1.1.1.4 christos else
8738 1.1.1.4 christos { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
8739 1.1.1.4 christos $as_echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
8740 1.1.1.4 christos fi
8741 1.1.1.4 christos fi
8742 1.1.1.2 christos ;;
8743 1.1.1.2 christos *)
8744 1.1.1.4 christos if test "x$enable_bluetooth" = "xyes" ; then
8745 1.1.1.4 christos as_fn_error $? "no Bluetooth sniffing support implemented for $host_os" "$LINENO" 5
8746 1.1.1.4 christos else
8747 1.1.1.4 christos { $as_echo "$as_me:${as_lineno-$LINENO}: no Bluetooth sniffing support implemented for $host_os" >&5
8748 1.1.1.2 christos $as_echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
8749 1.1.1.4 christos fi
8750 1.1.1.2 christos ;;
8751 1.1.1.2 christos esac
8752 1.1.1.2 christos
8753 1.1 christos
8754 1.1.1.4 christos
8755 1.1 christos fi
8756 1.1 christos
8757 1.1.1.3 christos # Check whether --enable-dbus was given.
8758 1.1.1.3 christos if test "${enable_dbus+set}" = set; then :
8759 1.1.1.3 christos enableval=$enable_dbus;
8760 1.1.1.3 christos else
8761 1.1.1.3 christos enable_dbus=ifavailable
8762 1.1.1.3 christos fi
8763 1.1.1.3 christos
8764 1.1.1.3 christos
8765 1.1.1.5.2.1 pgoyette if test "xxx_only" = yes; then
8766 1.1.1.5.2.1 pgoyette # User requested something-else-only pcap, so they don't
8767 1.1.1.5.2.1 pgoyette # want D-Bus support.
8768 1.1.1.5.2.1 pgoyette enable_dbus=no
8769 1.1.1.5.2.1 pgoyette fi
8770 1.1.1.5.2.1 pgoyette
8771 1.1.1.3 christos if test "x$enable_dbus" != "xno"; then
8772 1.1.1.4 christos if test "x$enable_dbus" = "xyes"; then
8773 1.1.1.4 christos case "$host_os" in
8774 1.1.1.4 christos
8775 1.1.1.4 christos darwin*)
8776 1.1.1.4 christos #
8777 1.1.1.5 christos # We don't support D-Bus sniffing on OS X; see
8778 1.1.1.5 christos #
8779 1.1.1.4 christos # https://bugs.freedesktop.org/show_bug.cgi?id=74029
8780 1.1.1.4 christos #
8781 1.1.1.5 christos # The user requested it, so fail.
8782 1.1.1.5 christos #
8783 1.1.1.4 christos as_fn_error $? "Due to freedesktop.org bug 74029, D-Bus capture support is not available on OS X" "$LINENO" 5
8784 1.1.1.4 christos esac
8785 1.1.1.4 christos else
8786 1.1.1.4 christos case "$host_os" in
8787 1.1.1.4 christos
8788 1.1.1.4 christos darwin*)
8789 1.1.1.4 christos #
8790 1.1.1.5 christos # We don't support D-Bus sniffing on OS X; see
8791 1.1.1.5 christos #
8792 1.1.1.4 christos # https://bugs.freedesktop.org/show_bug.cgi?id=74029
8793 1.1.1.4 christos #
8794 1.1.1.5 christos # The user dind't explicitly request it, so just
8795 1.1.1.5 christos # silently refuse to enable it.
8796 1.1.1.5 christos #
8797 1.1.1.5 christos enable_dbus="no"
8798 1.1.1.4 christos ;;
8799 1.1.1.5 christos esac
8800 1.1.1.5 christos fi
8801 1.1.1.5 christos fi
8802 1.1.1.4 christos
8803 1.1.1.5 christos if test "x$enable_dbus" != "xno"; then
8804 1.1.1.5 christos # Extract the first word of "pkg-config", so it can be a program name with args.
8805 1.1.1.3 christos set dummy pkg-config; ac_word=$2
8806 1.1.1.3 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8807 1.1.1.3 christos $as_echo_n "checking for $ac_word... " >&6; }
8808 1.1.1.3 christos if ${ac_cv_prog_PKGCONFIG+:} false; then :
8809 1.1.1.3 christos $as_echo_n "(cached) " >&6
8810 1.1.1.3 christos else
8811 1.1.1.3 christos if test -n "$PKGCONFIG"; then
8812 1.1.1.3 christos ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
8813 1.1.1.3 christos else
8814 1.1.1.3 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8815 1.1.1.3 christos for as_dir in $PATH
8816 1.1.1.3 christos do
8817 1.1.1.3 christos IFS=$as_save_IFS
8818 1.1.1.3 christos test -z "$as_dir" && as_dir=.
8819 1.1.1.3 christos for ac_exec_ext in '' $ac_executable_extensions; do
8820 1.1.1.3 christos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8821 1.1.1.3 christos ac_cv_prog_PKGCONFIG="pkg-config"
8822 1.1.1.3 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8823 1.1.1.3 christos break 2
8824 1.1.1.3 christos fi
8825 1.1.1.3 christos done
8826 1.1.1.3 christos done
8827 1.1.1.3 christos IFS=$as_save_IFS
8828 1.1.1.3 christos
8829 1.1.1.3 christos test -z "$ac_cv_prog_PKGCONFIG" && ac_cv_prog_PKGCONFIG="no"
8830 1.1.1.3 christos fi
8831 1.1.1.3 christos fi
8832 1.1.1.3 christos PKGCONFIG=$ac_cv_prog_PKGCONFIG
8833 1.1.1.3 christos if test -n "$PKGCONFIG"; then
8834 1.1.1.3 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
8835 1.1.1.3 christos $as_echo "$PKGCONFIG" >&6; }
8836 1.1.1.3 christos else
8837 1.1.1.3 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838 1.1.1.3 christos $as_echo "no" >&6; }
8839 1.1.1.3 christos fi
8840 1.1.1.3 christos
8841 1.1.1.3 christos
8842 1.1.1.5 christos if test "x$PKGCONFIG" != "xno"; then
8843 1.1.1.5 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5
8844 1.1.1.3 christos $as_echo_n "checking for D-Bus... " >&6; }
8845 1.1.1.5 christos if "$PKGCONFIG" dbus-1; then
8846 1.1.1.5 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8847 1.1.1.3 christos $as_echo "yes" >&6; }
8848 1.1.1.5 christos DBUS_CFLAGS=`"$PKGCONFIG" --cflags dbus-1`
8849 1.1.1.5 christos DBUS_LIBS=`"$PKGCONFIG" --libs dbus-1`
8850 1.1.1.5 christos save_CFLAGS="$CFLAGS"
8851 1.1.1.5 christos save_LIBS="$LIBS"
8852 1.1.1.5 christos CFLAGS="$CFLAGS $DBUS_CFLAGS"
8853 1.1.1.5 christos LIBS="$LIBS $DBUS_LIBS"
8854 1.1.1.5 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D-Bus library defines dbus_connection_read_write" >&5
8855 1.1.1.3 christos $as_echo_n "checking whether the D-Bus library defines dbus_connection_read_write... " >&6; }
8856 1.1.1.5 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8857 1.1.1.3 christos /* end confdefs.h. */
8858 1.1.1.3 christos #include <string.h>
8859 1.1.1.3 christos
8860 1.1.1.5 christos #include <time.h>
8861 1.1.1.5 christos #include <sys/time.h>
8862 1.1.1.3 christos
8863 1.1.1.5 christos #include <dbus/dbus.h>
8864 1.1.1.3 christos int
8865 1.1.1.3 christos main ()
8866 1.1.1.3 christos {
8867 1.1.1.3 christos return dbus_connection_read_write(NULL, 0);
8868 1.1.1.3 christos ;
8869 1.1.1.3 christos return 0;
8870 1.1.1.3 christos }
8871 1.1.1.3 christos _ACEOF
8872 1.1.1.3 christos if ac_fn_c_try_link "$LINENO"; then :
8873 1.1.1.3 christos
8874 1.1.1.5 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8875 1.1.1.3 christos $as_echo "yes" >&6; }
8876 1.1.1.3 christos
8877 1.1.1.3 christos $as_echo "#define PCAP_SUPPORT_DBUS 1" >>confdefs.h
8878 1.1.1.3 christos
8879 1.1.1.5 christos DBUS_SRC=pcap-dbus.c
8880 1.1.1.5 christos V_INCLS="$V_INCLS $DBUS_CFLAGS"
8881 1.1.1.3 christos
8882 1.1.1.3 christos else
8883 1.1.1.3 christos
8884 1.1.1.5 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8885 1.1.1.3 christos $as_echo "no" >&6; }
8886 1.1.1.5 christos if test "x$enable_dbus" = "xyes"; then
8887 1.1.1.5 christos as_fn_error $? "--enable-dbus was given, but the D-Bus library doesn't define dbus_connection_read_write()" "$LINENO" 5
8888 1.1.1.5 christos fi
8889 1.1.1.5 christos LIBS="$save_LIBS"
8890 1.1.1.3 christos
8891 1.1.1.3 christos fi
8892 1.1.1.3 christos rm -f core conftest.err conftest.$ac_objext \
8893 1.1.1.3 christos conftest$ac_exeext conftest.$ac_ext
8894 1.1.1.5 christos CFLAGS="$save_CFLAGS"
8895 1.1.1.5 christos else
8896 1.1.1.5 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8897 1.1.1.3 christos $as_echo "no" >&6; }
8898 1.1.1.5 christos if test "x$enable_dbus" = "xyes"; then
8899 1.1.1.5 christos as_fn_error $? "--enable-dbus was given, but the dbus-1 package is not installed" "$LINENO" 5
8900 1.1.1.3 christos fi
8901 1.1.1.5 christos fi
8902 1.1.1.3 christos fi
8903 1.1.1.3 christos
8904 1.1.1.3 christos
8905 1.1.1.3 christos fi
8906 1.1.1.3 christos
8907 1.1.1.2 christos case "$host_os" in
8908 1.1.1.2 christos linux*)
8909 1.1.1.2 christos for ac_header in linux/net_tstamp.h
8910 1.1.1.2 christos do :
8911 1.1.1.2 christos ac_fn_c_check_header_mongrel "$LINENO" "linux/net_tstamp.h" "ac_cv_header_linux_net_tstamp_h" "$ac_includes_default"
8912 1.1.1.3 christos if test "x$ac_cv_header_linux_net_tstamp_h" = xyes; then :
8913 1.1.1.2 christos cat >>confdefs.h <<_ACEOF
8914 1.1.1.2 christos #define HAVE_LINUX_NET_TSTAMP_H 1
8915 1.1.1.2 christos _ACEOF
8916 1.1.1.2 christos
8917 1.1.1.2 christos fi
8918 1.1.1.2 christos
8919 1.1.1.2 christos done
8920 1.1.1.2 christos
8921 1.1.1.2 christos ;;
8922 1.1.1.2 christos *)
8923 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: no hardware timestamp support implemented for $host_os" >&5
8924 1.1.1.2 christos $as_echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;}
8925 1.1.1.2 christos ;;
8926 1.1.1.2 christos esac
8927 1.1.1.2 christos
8928 1.1.1.5 christos # Check whether --enable-packet-ring was given.
8929 1.1.1.5 christos if test "${enable_packet_ring+set}" = set; then :
8930 1.1.1.5 christos enableval=$enable_packet_ring;
8931 1.1.1.5 christos else
8932 1.1.1.5 christos enable_packet_ring=yes
8933 1.1.1.5 christos fi
8934 1.1.1.5 christos
8935 1.1.1.5 christos
8936 1.1.1.5 christos if test "x$enable_packet_ring" != "xno" ; then
8937 1.1.1.5 christos
8938 1.1.1.5 christos $as_echo "#define PCAP_SUPPORT_PACKET_RING 1" >>confdefs.h
8939 1.1.1.5 christos
8940 1.1.1.5 christos
8941 1.1.1.5 christos fi
8942 1.1.1.5 christos
8943 1.1 christos # Find a good install program. We prefer a C program (faster),
8944 1.1 christos # so one script is as good as another. But avoid the broken or
8945 1.1 christos # incompatible versions:
8946 1.1 christos # SysV /etc/install, /usr/sbin/install
8947 1.1 christos # SunOS /usr/etc/install
8948 1.1 christos # IRIX /sbin/install
8949 1.1 christos # AIX /bin/install
8950 1.1 christos # AmigaOS /C/install, which installs bootblocks on floppy discs
8951 1.1 christos # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8952 1.1 christos # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8953 1.1 christos # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8954 1.1 christos # OS/2's system install, which has a completely different semantic
8955 1.1 christos # ./install, which can be erroneously created by make from ./install.sh.
8956 1.1.1.2 christos # Reject install programs that cannot install multiple files.
8957 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8958 1.1.1.2 christos $as_echo_n "checking for a BSD-compatible install... " >&6; }
8959 1.1 christos if test -z "$INSTALL"; then
8960 1.1.1.3 christos if ${ac_cv_path_install+:} false; then :
8961 1.1.1.2 christos $as_echo_n "(cached) " >&6
8962 1.1 christos else
8963 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8964 1.1 christos for as_dir in $PATH
8965 1.1 christos do
8966 1.1 christos IFS=$as_save_IFS
8967 1.1 christos test -z "$as_dir" && as_dir=.
8968 1.1.1.2 christos # Account for people who put trailing slashes in PATH elements.
8969 1.1.1.2 christos case $as_dir/ in #((
8970 1.1.1.2 christos ./ | .// | /[cC]/* | \
8971 1.1 christos /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8972 1.1.1.2 christos ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8973 1.1 christos /usr/ucb/* ) ;;
8974 1.1 christos *)
8975 1.1 christos # OSF1 and SCO ODT 3.0 have their own names for install.
8976 1.1 christos # Don't use installbsd from OSF since it installs stuff as root
8977 1.1 christos # by default.
8978 1.1 christos for ac_prog in ginstall scoinst install; do
8979 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
8980 1.1.1.3 christos if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8981 1.1 christos if test $ac_prog = install &&
8982 1.1 christos grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8983 1.1 christos # AIX install. It has an incompatible calling convention.
8984 1.1 christos :
8985 1.1 christos elif test $ac_prog = install &&
8986 1.1 christos grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8987 1.1 christos # program-specific install script used by HP pwplus--don't use.
8988 1.1 christos :
8989 1.1 christos else
8990 1.1.1.2 christos rm -rf conftest.one conftest.two conftest.dir
8991 1.1.1.2 christos echo one > conftest.one
8992 1.1.1.2 christos echo two > conftest.two
8993 1.1.1.2 christos mkdir conftest.dir
8994 1.1.1.2 christos if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
8995 1.1.1.2 christos test -s conftest.one && test -s conftest.two &&
8996 1.1.1.2 christos test -s conftest.dir/conftest.one &&
8997 1.1.1.2 christos test -s conftest.dir/conftest.two
8998 1.1.1.2 christos then
8999 1.1.1.2 christos ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9000 1.1.1.2 christos break 3
9001 1.1.1.2 christos fi
9002 1.1 christos fi
9003 1.1 christos fi
9004 1.1 christos done
9005 1.1 christos done
9006 1.1 christos ;;
9007 1.1 christos esac
9008 1.1.1.2 christos
9009 1.1.1.2 christos done
9010 1.1 christos IFS=$as_save_IFS
9011 1.1 christos
9012 1.1.1.2 christos rm -rf conftest.one conftest.two conftest.dir
9013 1.1 christos
9014 1.1 christos fi
9015 1.1 christos if test "${ac_cv_path_install+set}" = set; then
9016 1.1 christos INSTALL=$ac_cv_path_install
9017 1.1 christos else
9018 1.1 christos # As a last resort, use the slow shell script. Don't cache a
9019 1.1 christos # value for INSTALL within a source directory, because that will
9020 1.1 christos # break other packages using the cache if that directory is
9021 1.1 christos # removed, or if the value is a relative name.
9022 1.1 christos INSTALL=$ac_install_sh
9023 1.1 christos fi
9024 1.1 christos fi
9025 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9026 1.1.1.2 christos $as_echo "$INSTALL" >&6; }
9027 1.1 christos
9028 1.1 christos # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9029 1.1 christos # It thinks the first close brace ends the variable substitution.
9030 1.1 christos test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9031 1.1 christos
9032 1.1 christos test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9033 1.1 christos
9034 1.1 christos test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9035 1.1 christos
9036 1.1 christos
9037 1.1 christos ac_config_headers="$ac_config_headers config.h"
9038 1.1 christos
9039 1.1 christos
9040 1.1.1.3 christos ac_config_commands="$ac_config_commands default-1"
9041 1.1.1.3 christos
9042 1.1.1.3 christos ac_config_files="$ac_config_files Makefile pcap-filter.manmisc pcap-linktype.manmisc pcap-tstamp.manmisc pcap-savefile.manfile pcap.3pcap pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap pcap_get_tstamp_precision.3pcap pcap_list_datalinks.3pcap pcap_list_tstamp_types.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap pcap_set_tstamp_precision.3pcap pcap_set_tstamp_type.3pcap"
9043 1.1 christos
9044 1.1 christos cat >confcache <<\_ACEOF
9045 1.1 christos # This file is a shell script that caches the results of configure
9046 1.1 christos # tests run on this system so they can be shared between configure
9047 1.1 christos # scripts and configure runs, see configure's option --config-cache.
9048 1.1 christos # It is not useful on other systems. If it contains results you don't
9049 1.1 christos # want to keep, you may remove or edit it.
9050 1.1 christos #
9051 1.1 christos # config.status only pays attention to the cache file if you give it
9052 1.1 christos # the --recheck option to rerun configure.
9053 1.1 christos #
9054 1.1 christos # `ac_cv_env_foo' variables (set or unset) will be overridden when
9055 1.1 christos # loading this file, other *unset* `ac_cv_foo' will be assigned the
9056 1.1 christos # following values.
9057 1.1 christos
9058 1.1 christos _ACEOF
9059 1.1 christos
9060 1.1 christos # The following way of writing the cache mishandles newlines in values,
9061 1.1 christos # but we know of no workaround that is simple, portable, and efficient.
9062 1.1 christos # So, we kill variables containing newlines.
9063 1.1 christos # Ultrix sh set writes to stderr and can't be redirected directly,
9064 1.1 christos # and sets the high bit in the cache file unless we assign to the vars.
9065 1.1 christos (
9066 1.1 christos for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9067 1.1 christos eval ac_val=\$$ac_var
9068 1.1 christos case $ac_val in #(
9069 1.1 christos *${as_nl}*)
9070 1.1 christos case $ac_var in #(
9071 1.1.1.2 christos *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9072 1.1.1.2 christos $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9073 1.1 christos esac
9074 1.1 christos case $ac_var in #(
9075 1.1 christos _ | IFS | as_nl) ;; #(
9076 1.1.1.2 christos BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9077 1.1.1.2 christos *) { eval $ac_var=; unset $ac_var;} ;;
9078 1.1 christos esac ;;
9079 1.1 christos esac
9080 1.1 christos done
9081 1.1 christos
9082 1.1 christos (set) 2>&1 |
9083 1.1 christos case $as_nl`(ac_space=' '; set) 2>&1` in #(
9084 1.1 christos *${as_nl}ac_space=\ *)
9085 1.1.1.2 christos # `set' does not quote correctly, so add quotes: double-quote
9086 1.1.1.2 christos # substitution turns \\\\ into \\, and sed turns \\ into \.
9087 1.1 christos sed -n \
9088 1.1 christos "s/'/'\\\\''/g;
9089 1.1 christos s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9090 1.1 christos ;; #(
9091 1.1 christos *)
9092 1.1 christos # `set' quotes correctly as required by POSIX, so do not add quotes.
9093 1.1 christos sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9094 1.1 christos ;;
9095 1.1 christos esac |
9096 1.1 christos sort
9097 1.1 christos ) |
9098 1.1 christos sed '
9099 1.1 christos /^ac_cv_env_/b end
9100 1.1 christos t clear
9101 1.1 christos :clear
9102 1.1 christos s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9103 1.1 christos t end
9104 1.1 christos s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9105 1.1 christos :end' >>confcache
9106 1.1 christos if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9107 1.1 christos if test -w "$cache_file"; then
9108 1.1.1.3 christos if test "x$cache_file" != "x/dev/null"; then
9109 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9110 1.1.1.2 christos $as_echo "$as_me: updating cache $cache_file" >&6;}
9111 1.1.1.3 christos if test ! -f "$cache_file" || test -h "$cache_file"; then
9112 1.1.1.3 christos cat confcache >"$cache_file"
9113 1.1.1.3 christos else
9114 1.1.1.3 christos case $cache_file in #(
9115 1.1.1.3 christos */* | ?:*)
9116 1.1.1.3 christos mv -f confcache "$cache_file"$$ &&
9117 1.1.1.3 christos mv -f "$cache_file"$$ "$cache_file" ;; #(
9118 1.1.1.3 christos *)
9119 1.1.1.3 christos mv -f confcache "$cache_file" ;;
9120 1.1.1.3 christos esac
9121 1.1.1.3 christos fi
9122 1.1.1.3 christos fi
9123 1.1 christos else
9124 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9125 1.1.1.2 christos $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9126 1.1 christos fi
9127 1.1 christos fi
9128 1.1 christos rm -f confcache
9129 1.1 christos
9130 1.1 christos test "x$prefix" = xNONE && prefix=$ac_default_prefix
9131 1.1 christos # Let make expand exec_prefix.
9132 1.1 christos test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9133 1.1 christos
9134 1.1 christos DEFS=-DHAVE_CONFIG_H
9135 1.1 christos
9136 1.1 christos ac_libobjs=
9137 1.1 christos ac_ltlibobjs=
9138 1.1.1.2 christos U=
9139 1.1 christos for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9140 1.1 christos # 1. Remove the extension, and $U if already installed.
9141 1.1 christos ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9142 1.1.1.2 christos ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9143 1.1 christos # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9144 1.1 christos # will be set to the directory where LIBOBJS objects are built.
9145 1.1.1.2 christos as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9146 1.1.1.2 christos as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9147 1.1 christos done
9148 1.1 christos LIBOBJS=$ac_libobjs
9149 1.1 christos
9150 1.1 christos LTLIBOBJS=$ac_ltlibobjs
9151 1.1 christos
9152 1.1 christos
9153 1.1 christos
9154 1.1.1.3 christos : "${CONFIG_STATUS=./config.status}"
9155 1.1.1.2 christos ac_write_fail=0
9156 1.1 christos ac_clean_files_save=$ac_clean_files
9157 1.1 christos ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9158 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9159 1.1.1.2 christos $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9160 1.1.1.2 christos as_write_fail=0
9161 1.1.1.2 christos cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9162 1.1 christos #! $SHELL
9163 1.1 christos # Generated by $as_me.
9164 1.1 christos # Run this file to recreate the current configuration.
9165 1.1 christos # Compiler output produced by configure, useful for debugging
9166 1.1 christos # configure, is in config.log if it exists.
9167 1.1 christos
9168 1.1 christos debug=false
9169 1.1 christos ac_cs_recheck=false
9170 1.1 christos ac_cs_silent=false
9171 1.1 christos
9172 1.1.1.2 christos SHELL=\${CONFIG_SHELL-$SHELL}
9173 1.1.1.2 christos export SHELL
9174 1.1.1.2 christos _ASEOF
9175 1.1.1.2 christos cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9176 1.1.1.2 christos ## -------------------- ##
9177 1.1.1.2 christos ## M4sh Initialization. ##
9178 1.1.1.2 christos ## -------------------- ##
9179 1.1 christos
9180 1.1 christos # Be more Bourne compatible
9181 1.1 christos DUALCASE=1; export DUALCASE # for MKS sh
9182 1.1.1.2 christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9183 1.1 christos emulate sh
9184 1.1 christos NULLCMD=:
9185 1.1.1.2 christos # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9186 1.1 christos # is contrary to our usage. Disable this feature.
9187 1.1 christos alias -g '${1+"$@"}'='"$@"'
9188 1.1 christos setopt NO_GLOB_SUBST
9189 1.1 christos else
9190 1.1.1.2 christos case `(set -o) 2>/dev/null` in #(
9191 1.1.1.2 christos *posix*) :
9192 1.1.1.2 christos set -o posix ;; #(
9193 1.1.1.2 christos *) :
9194 1.1.1.2 christos ;;
9195 1.1 christos esac
9196 1.1 christos fi
9197 1.1 christos
9198 1.1 christos
9199 1.1.1.2 christos as_nl='
9200 1.1.1.2 christos '
9201 1.1.1.2 christos export as_nl
9202 1.1.1.2 christos # Printing a long string crashes Solaris 7 /usr/bin/printf.
9203 1.1.1.2 christos as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9204 1.1.1.2 christos as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9205 1.1.1.2 christos as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9206 1.1.1.2 christos # Prefer a ksh shell builtin over an external printf program on Solaris,
9207 1.1.1.2 christos # but without wasting forks for bash or zsh.
9208 1.1.1.2 christos if test -z "$BASH_VERSION$ZSH_VERSION" \
9209 1.1.1.2 christos && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9210 1.1.1.2 christos as_echo='print -r --'
9211 1.1.1.2 christos as_echo_n='print -rn --'
9212 1.1.1.2 christos elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9213 1.1.1.2 christos as_echo='printf %s\n'
9214 1.1.1.2 christos as_echo_n='printf %s'
9215 1.1.1.2 christos else
9216 1.1.1.2 christos if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9217 1.1.1.2 christos as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9218 1.1.1.2 christos as_echo_n='/usr/ucb/echo -n'
9219 1.1 christos else
9220 1.1.1.2 christos as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9221 1.1.1.2 christos as_echo_n_body='eval
9222 1.1.1.2 christos arg=$1;
9223 1.1.1.2 christos case $arg in #(
9224 1.1.1.2 christos *"$as_nl"*)
9225 1.1.1.2 christos expr "X$arg" : "X\\(.*\\)$as_nl";
9226 1.1.1.2 christos arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9227 1.1.1.2 christos esac;
9228 1.1.1.2 christos expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9229 1.1.1.2 christos '
9230 1.1.1.2 christos export as_echo_n_body
9231 1.1.1.2 christos as_echo_n='sh -c $as_echo_n_body as_echo'
9232 1.1 christos fi
9233 1.1.1.2 christos export as_echo_body
9234 1.1.1.2 christos as_echo='sh -c $as_echo_body as_echo'
9235 1.1 christos fi
9236 1.1 christos
9237 1.1.1.2 christos # The user is always right.
9238 1.1.1.2 christos if test "${PATH_SEPARATOR+set}" != set; then
9239 1.1.1.2 christos PATH_SEPARATOR=:
9240 1.1.1.2 christos (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9241 1.1.1.2 christos (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9242 1.1.1.2 christos PATH_SEPARATOR=';'
9243 1.1.1.2 christos }
9244 1.1 christos fi
9245 1.1 christos
9246 1.1 christos
9247 1.1 christos # IFS
9248 1.1 christos # We need space, tab and new line, in precisely that order. Quoting is
9249 1.1 christos # there to prevent editors from complaining about space-tab.
9250 1.1 christos # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9251 1.1 christos # splitting by setting IFS to empty value.)
9252 1.1 christos IFS=" "" $as_nl"
9253 1.1 christos
9254 1.1 christos # Find who we are. Look in the path if we contain no directory separator.
9255 1.1.1.3 christos as_myself=
9256 1.1.1.2 christos case $0 in #((
9257 1.1 christos *[\\/]* ) as_myself=$0 ;;
9258 1.1 christos *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9259 1.1 christos for as_dir in $PATH
9260 1.1 christos do
9261 1.1 christos IFS=$as_save_IFS
9262 1.1 christos test -z "$as_dir" && as_dir=.
9263 1.1.1.2 christos test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9264 1.1.1.2 christos done
9265 1.1 christos IFS=$as_save_IFS
9266 1.1 christos
9267 1.1 christos ;;
9268 1.1 christos esac
9269 1.1 christos # We did not find ourselves, most probably we were run as `sh COMMAND'
9270 1.1 christos # in which case we are not to be found in the path.
9271 1.1 christos if test "x$as_myself" = x; then
9272 1.1 christos as_myself=$0
9273 1.1 christos fi
9274 1.1 christos if test ! -f "$as_myself"; then
9275 1.1.1.2 christos $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9276 1.1.1.2 christos exit 1
9277 1.1 christos fi
9278 1.1 christos
9279 1.1.1.2 christos # Unset variables that we do not need and which cause bugs (e.g. in
9280 1.1.1.2 christos # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9281 1.1.1.2 christos # suppresses any "Segmentation fault" message there. '((' could
9282 1.1.1.2 christos # trigger a bug in pdksh 5.2.14.
9283 1.1.1.2 christos for as_var in BASH_ENV ENV MAIL MAILPATH
9284 1.1.1.2 christos do eval test x\${$as_var+set} = xset \
9285 1.1.1.2 christos && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9286 1.1 christos done
9287 1.1 christos PS1='$ '
9288 1.1 christos PS2='> '
9289 1.1 christos PS4='+ '
9290 1.1 christos
9291 1.1 christos # NLS nuisances.
9292 1.1.1.2 christos LC_ALL=C
9293 1.1.1.2 christos export LC_ALL
9294 1.1.1.2 christos LANGUAGE=C
9295 1.1.1.2 christos export LANGUAGE
9296 1.1.1.2 christos
9297 1.1.1.2 christos # CDPATH.
9298 1.1.1.2 christos (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9299 1.1.1.2 christos
9300 1.1.1.2 christos
9301 1.1.1.2 christos # as_fn_error STATUS ERROR [LINENO LOG_FD]
9302 1.1.1.2 christos # ----------------------------------------
9303 1.1.1.2 christos # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9304 1.1.1.2 christos # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9305 1.1.1.2 christos # script with STATUS, using 1 if that was 0.
9306 1.1.1.2 christos as_fn_error ()
9307 1.1.1.2 christos {
9308 1.1.1.2 christos as_status=$1; test $as_status -eq 0 && as_status=1
9309 1.1.1.2 christos if test "$4"; then
9310 1.1.1.2 christos as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9311 1.1.1.2 christos $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9312 1.1.1.2 christos fi
9313 1.1.1.2 christos $as_echo "$as_me: error: $2" >&2
9314 1.1.1.2 christos as_fn_exit $as_status
9315 1.1.1.2 christos } # as_fn_error
9316 1.1.1.2 christos
9317 1.1.1.2 christos
9318 1.1.1.2 christos # as_fn_set_status STATUS
9319 1.1.1.2 christos # -----------------------
9320 1.1.1.2 christos # Set $? to STATUS, without forking.
9321 1.1.1.2 christos as_fn_set_status ()
9322 1.1.1.2 christos {
9323 1.1.1.2 christos return $1
9324 1.1.1.2 christos } # as_fn_set_status
9325 1.1.1.2 christos
9326 1.1.1.2 christos # as_fn_exit STATUS
9327 1.1.1.2 christos # -----------------
9328 1.1.1.2 christos # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9329 1.1.1.2 christos as_fn_exit ()
9330 1.1.1.2 christos {
9331 1.1.1.2 christos set +e
9332 1.1.1.2 christos as_fn_set_status $1
9333 1.1.1.2 christos exit $1
9334 1.1.1.2 christos } # as_fn_exit
9335 1.1.1.2 christos
9336 1.1.1.2 christos # as_fn_unset VAR
9337 1.1.1.2 christos # ---------------
9338 1.1.1.2 christos # Portably unset VAR.
9339 1.1.1.2 christos as_fn_unset ()
9340 1.1.1.2 christos {
9341 1.1.1.2 christos { eval $1=; unset $1;}
9342 1.1.1.2 christos }
9343 1.1.1.2 christos as_unset=as_fn_unset
9344 1.1.1.2 christos # as_fn_append VAR VALUE
9345 1.1.1.2 christos # ----------------------
9346 1.1.1.2 christos # Append the text in VALUE to the end of the definition contained in VAR. Take
9347 1.1.1.2 christos # advantage of any shell optimizations that allow amortized linear growth over
9348 1.1.1.2 christos # repeated appends, instead of the typical quadratic growth present in naive
9349 1.1.1.2 christos # implementations.
9350 1.1.1.2 christos if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9351 1.1.1.2 christos eval 'as_fn_append ()
9352 1.1.1.2 christos {
9353 1.1.1.2 christos eval $1+=\$2
9354 1.1.1.2 christos }'
9355 1.1.1.2 christos else
9356 1.1.1.2 christos as_fn_append ()
9357 1.1.1.2 christos {
9358 1.1.1.2 christos eval $1=\$$1\$2
9359 1.1.1.2 christos }
9360 1.1.1.2 christos fi # as_fn_append
9361 1.1.1.2 christos
9362 1.1.1.2 christos # as_fn_arith ARG...
9363 1.1.1.2 christos # ------------------
9364 1.1.1.2 christos # Perform arithmetic evaluation on the ARGs, and store the result in the
9365 1.1.1.2 christos # global $as_val. Take advantage of shells that can avoid forks. The arguments
9366 1.1.1.2 christos # must be portable across $(()) and expr.
9367 1.1.1.2 christos if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9368 1.1.1.2 christos eval 'as_fn_arith ()
9369 1.1.1.2 christos {
9370 1.1.1.2 christos as_val=$(( $* ))
9371 1.1.1.2 christos }'
9372 1.1.1.2 christos else
9373 1.1.1.2 christos as_fn_arith ()
9374 1.1.1.2 christos {
9375 1.1.1.2 christos as_val=`expr "$@" || test $? -eq 1`
9376 1.1.1.2 christos }
9377 1.1.1.2 christos fi # as_fn_arith
9378 1.1.1.2 christos
9379 1.1 christos
9380 1.1 christos if expr a : '\(a\)' >/dev/null 2>&1 &&
9381 1.1 christos test "X`expr 00001 : '.*\(...\)'`" = X001; then
9382 1.1 christos as_expr=expr
9383 1.1 christos else
9384 1.1 christos as_expr=false
9385 1.1 christos fi
9386 1.1 christos
9387 1.1 christos if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9388 1.1 christos as_basename=basename
9389 1.1 christos else
9390 1.1 christos as_basename=false
9391 1.1 christos fi
9392 1.1 christos
9393 1.1.1.2 christos if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9394 1.1.1.2 christos as_dirname=dirname
9395 1.1.1.2 christos else
9396 1.1.1.2 christos as_dirname=false
9397 1.1.1.2 christos fi
9398 1.1 christos
9399 1.1 christos as_me=`$as_basename -- "$0" ||
9400 1.1 christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9401 1.1 christos X"$0" : 'X\(//\)$' \| \
9402 1.1 christos X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9403 1.1.1.2 christos $as_echo X/"$0" |
9404 1.1 christos sed '/^.*\/\([^/][^/]*\)\/*$/{
9405 1.1 christos s//\1/
9406 1.1 christos q
9407 1.1 christos }
9408 1.1 christos /^X\/\(\/\/\)$/{
9409 1.1 christos s//\1/
9410 1.1 christos q
9411 1.1 christos }
9412 1.1 christos /^X\/\(\/\).*/{
9413 1.1 christos s//\1/
9414 1.1 christos q
9415 1.1 christos }
9416 1.1 christos s/.*/./; q'`
9417 1.1 christos
9418 1.1.1.2 christos # Avoid depending upon Character Ranges.
9419 1.1.1.2 christos as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9420 1.1.1.2 christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9421 1.1.1.2 christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9422 1.1.1.2 christos as_cr_digits='0123456789'
9423 1.1.1.2 christos as_cr_alnum=$as_cr_Letters$as_cr_digits
9424 1.1 christos
9425 1.1 christos ECHO_C= ECHO_N= ECHO_T=
9426 1.1.1.2 christos case `echo -n x` in #(((((
9427 1.1 christos -n*)
9428 1.1.1.2 christos case `echo 'xy\c'` in
9429 1.1 christos *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9430 1.1.1.2 christos xy) ECHO_C='\c';;
9431 1.1.1.2 christos *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9432 1.1.1.2 christos ECHO_T=' ';;
9433 1.1 christos esac;;
9434 1.1 christos *)
9435 1.1 christos ECHO_N='-n';;
9436 1.1 christos esac
9437 1.1 christos
9438 1.1 christos rm -f conf$$ conf$$.exe conf$$.file
9439 1.1 christos if test -d conf$$.dir; then
9440 1.1 christos rm -f conf$$.dir/conf$$.file
9441 1.1 christos else
9442 1.1 christos rm -f conf$$.dir
9443 1.1.1.2 christos mkdir conf$$.dir 2>/dev/null
9444 1.1 christos fi
9445 1.1.1.2 christos if (echo >conf$$.file) 2>/dev/null; then
9446 1.1.1.2 christos if ln -s conf$$.file conf$$ 2>/dev/null; then
9447 1.1.1.2 christos as_ln_s='ln -s'
9448 1.1.1.2 christos # ... but there are two gotchas:
9449 1.1.1.2 christos # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9450 1.1.1.2 christos # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9451 1.1.1.3 christos # In both cases, we have to default to `cp -pR'.
9452 1.1.1.2 christos ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9453 1.1.1.3 christos as_ln_s='cp -pR'
9454 1.1.1.2 christos elif ln conf$$.file conf$$ 2>/dev/null; then
9455 1.1.1.2 christos as_ln_s=ln
9456 1.1.1.2 christos else
9457 1.1.1.3 christos as_ln_s='cp -pR'
9458 1.1.1.2 christos fi
9459 1.1 christos else
9460 1.1.1.3 christos as_ln_s='cp -pR'
9461 1.1 christos fi
9462 1.1 christos rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9463 1.1 christos rmdir conf$$.dir 2>/dev/null
9464 1.1 christos
9465 1.1.1.2 christos
9466 1.1.1.2 christos # as_fn_mkdir_p
9467 1.1.1.2 christos # -------------
9468 1.1.1.2 christos # Create "$as_dir" as a directory, including parents if necessary.
9469 1.1.1.2 christos as_fn_mkdir_p ()
9470 1.1.1.2 christos {
9471 1.1.1.2 christos
9472 1.1.1.2 christos case $as_dir in #(
9473 1.1.1.2 christos -*) as_dir=./$as_dir;;
9474 1.1.1.2 christos esac
9475 1.1.1.2 christos test -d "$as_dir" || eval $as_mkdir_p || {
9476 1.1.1.2 christos as_dirs=
9477 1.1.1.2 christos while :; do
9478 1.1.1.2 christos case $as_dir in #(
9479 1.1.1.2 christos *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9480 1.1.1.2 christos *) as_qdir=$as_dir;;
9481 1.1.1.2 christos esac
9482 1.1.1.2 christos as_dirs="'$as_qdir' $as_dirs"
9483 1.1.1.2 christos as_dir=`$as_dirname -- "$as_dir" ||
9484 1.1.1.2 christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9485 1.1.1.2 christos X"$as_dir" : 'X\(//\)[^/]' \| \
9486 1.1.1.2 christos X"$as_dir" : 'X\(//\)$' \| \
9487 1.1.1.2 christos X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9488 1.1.1.2 christos $as_echo X"$as_dir" |
9489 1.1.1.2 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9490 1.1.1.2 christos s//\1/
9491 1.1.1.2 christos q
9492 1.1.1.2 christos }
9493 1.1.1.2 christos /^X\(\/\/\)[^/].*/{
9494 1.1.1.2 christos s//\1/
9495 1.1.1.2 christos q
9496 1.1.1.2 christos }
9497 1.1.1.2 christos /^X\(\/\/\)$/{
9498 1.1.1.2 christos s//\1/
9499 1.1.1.2 christos q
9500 1.1.1.2 christos }
9501 1.1.1.2 christos /^X\(\/\).*/{
9502 1.1.1.2 christos s//\1/
9503 1.1.1.2 christos q
9504 1.1.1.2 christos }
9505 1.1.1.2 christos s/.*/./; q'`
9506 1.1.1.2 christos test -d "$as_dir" && break
9507 1.1.1.2 christos done
9508 1.1.1.2 christos test -z "$as_dirs" || eval "mkdir $as_dirs"
9509 1.1.1.2 christos } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9510 1.1.1.2 christos
9511 1.1.1.2 christos
9512 1.1.1.2 christos } # as_fn_mkdir_p
9513 1.1 christos if mkdir -p . 2>/dev/null; then
9514 1.1.1.2 christos as_mkdir_p='mkdir -p "$as_dir"'
9515 1.1 christos else
9516 1.1 christos test -d ./-p && rmdir ./-p
9517 1.1 christos as_mkdir_p=false
9518 1.1 christos fi
9519 1.1 christos
9520 1.1.1.3 christos
9521 1.1.1.3 christos # as_fn_executable_p FILE
9522 1.1.1.3 christos # -----------------------
9523 1.1.1.3 christos # Test if FILE is an executable regular file.
9524 1.1.1.3 christos as_fn_executable_p ()
9525 1.1.1.3 christos {
9526 1.1.1.3 christos test -f "$1" && test -x "$1"
9527 1.1.1.3 christos } # as_fn_executable_p
9528 1.1.1.3 christos as_test_x='test -x'
9529 1.1.1.3 christos as_executable_p=as_fn_executable_p
9530 1.1 christos
9531 1.1 christos # Sed expression to map a string onto a valid CPP name.
9532 1.1 christos as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9533 1.1 christos
9534 1.1 christos # Sed expression to map a string onto a valid variable name.
9535 1.1 christos as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9536 1.1 christos
9537 1.1 christos
9538 1.1 christos exec 6>&1
9539 1.1.1.2 christos ## ----------------------------------- ##
9540 1.1.1.2 christos ## Main body of $CONFIG_STATUS script. ##
9541 1.1.1.2 christos ## ----------------------------------- ##
9542 1.1.1.2 christos _ASEOF
9543 1.1.1.2 christos test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9544 1.1 christos
9545 1.1.1.2 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9546 1.1.1.2 christos # Save the log message, to keep $0 and so on meaningful, and to
9547 1.1 christos # report actual input values of CONFIG_FILES etc. instead of their
9548 1.1 christos # values after options handling.
9549 1.1 christos ac_log="
9550 1.1 christos This file was extended by $as_me, which was
9551 1.1.1.3 christos generated by GNU Autoconf 2.69. Invocation command line was
9552 1.1 christos
9553 1.1 christos CONFIG_FILES = $CONFIG_FILES
9554 1.1 christos CONFIG_HEADERS = $CONFIG_HEADERS
9555 1.1 christos CONFIG_LINKS = $CONFIG_LINKS
9556 1.1 christos CONFIG_COMMANDS = $CONFIG_COMMANDS
9557 1.1 christos $ $0 $@
9558 1.1 christos
9559 1.1 christos on `(hostname || uname -n) 2>/dev/null | sed 1q`
9560 1.1 christos "
9561 1.1 christos
9562 1.1 christos _ACEOF
9563 1.1 christos
9564 1.1.1.2 christos case $ac_config_files in *"
9565 1.1.1.2 christos "*) set x $ac_config_files; shift; ac_config_files=$*;;
9566 1.1.1.2 christos esac
9567 1.1.1.2 christos
9568 1.1.1.2 christos case $ac_config_headers in *"
9569 1.1.1.2 christos "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9570 1.1.1.2 christos esac
9571 1.1.1.2 christos
9572 1.1.1.2 christos
9573 1.1.1.2 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9574 1.1 christos # Files that config.status was made for.
9575 1.1 christos config_files="$ac_config_files"
9576 1.1 christos config_headers="$ac_config_headers"
9577 1.1.1.3 christos config_commands="$ac_config_commands"
9578 1.1 christos
9579 1.1 christos _ACEOF
9580 1.1 christos
9581 1.1.1.2 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9582 1.1 christos ac_cs_usage="\
9583 1.1.1.2 christos \`$as_me' instantiates files and other configuration actions
9584 1.1.1.2 christos from templates according to the current configuration. Unless the files
9585 1.1.1.2 christos and actions are specified as TAGs, all are instantiated by default.
9586 1.1 christos
9587 1.1.1.2 christos Usage: $0 [OPTION]... [TAG]...
9588 1.1 christos
9589 1.1 christos -h, --help print this help, then exit
9590 1.1 christos -V, --version print version number and configuration settings, then exit
9591 1.1.1.2 christos --config print configuration, then exit
9592 1.1.1.2 christos -q, --quiet, --silent
9593 1.1.1.2 christos do not print progress messages
9594 1.1 christos -d, --debug don't remove temporary files
9595 1.1 christos --recheck update $as_me by reconfiguring in the same conditions
9596 1.1.1.2 christos --file=FILE[:TEMPLATE]
9597 1.1.1.2 christos instantiate the configuration file FILE
9598 1.1.1.2 christos --header=FILE[:TEMPLATE]
9599 1.1.1.2 christos instantiate the configuration header FILE
9600 1.1 christos
9601 1.1 christos Configuration files:
9602 1.1 christos $config_files
9603 1.1 christos
9604 1.1 christos Configuration headers:
9605 1.1 christos $config_headers
9606 1.1 christos
9607 1.1.1.3 christos Configuration commands:
9608 1.1.1.3 christos $config_commands
9609 1.1.1.3 christos
9610 1.1.1.2 christos Report bugs to the package provider."
9611 1.1 christos
9612 1.1 christos _ACEOF
9613 1.1.1.2 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9614 1.1.1.2 christos ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9615 1.1 christos ac_cs_version="\\
9616 1.1 christos config.status
9617 1.1.1.3 christos configured by $0, generated by GNU Autoconf 2.69,
9618 1.1.1.2 christos with options \\"\$ac_cs_config\\"
9619 1.1 christos
9620 1.1.1.3 christos Copyright (C) 2012 Free Software Foundation, Inc.
9621 1.1 christos This config.status script is free software; the Free Software Foundation
9622 1.1 christos gives unlimited permission to copy, distribute and modify it."
9623 1.1 christos
9624 1.1 christos ac_pwd='$ac_pwd'
9625 1.1 christos srcdir='$srcdir'
9626 1.1 christos INSTALL='$INSTALL'
9627 1.1.1.2 christos test -n "\$AWK" || AWK=awk
9628 1.1 christos _ACEOF
9629 1.1 christos
9630 1.1.1.2 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9631 1.1.1.2 christos # The default lists apply if the user does not specify any file.
9632 1.1 christos ac_need_defaults=:
9633 1.1 christos while test $# != 0
9634 1.1 christos do
9635 1.1 christos case $1 in
9636 1.1.1.2 christos --*=?*)
9637 1.1 christos ac_option=`expr "X$1" : 'X\([^=]*\)='`
9638 1.1 christos ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9639 1.1 christos ac_shift=:
9640 1.1 christos ;;
9641 1.1.1.2 christos --*=)
9642 1.1.1.2 christos ac_option=`expr "X$1" : 'X\([^=]*\)='`
9643 1.1.1.2 christos ac_optarg=
9644 1.1.1.2 christos ac_shift=:
9645 1.1.1.2 christos ;;
9646 1.1 christos *)
9647 1.1 christos ac_option=$1
9648 1.1 christos ac_optarg=$2
9649 1.1 christos ac_shift=shift
9650 1.1 christos ;;
9651 1.1 christos esac
9652 1.1 christos
9653 1.1 christos case $ac_option in
9654 1.1 christos # Handling of the options.
9655 1.1 christos -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9656 1.1 christos ac_cs_recheck=: ;;
9657 1.1 christos --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9658 1.1.1.2 christos $as_echo "$ac_cs_version"; exit ;;
9659 1.1.1.2 christos --config | --confi | --conf | --con | --co | --c )
9660 1.1.1.2 christos $as_echo "$ac_cs_config"; exit ;;
9661 1.1 christos --debug | --debu | --deb | --de | --d | -d )
9662 1.1 christos debug=: ;;
9663 1.1 christos --file | --fil | --fi | --f )
9664 1.1 christos $ac_shift
9665 1.1.1.2 christos case $ac_optarg in
9666 1.1.1.2 christos *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9667 1.1.1.2 christos '') as_fn_error $? "missing file argument" ;;
9668 1.1.1.2 christos esac
9669 1.1.1.2 christos as_fn_append CONFIG_FILES " '$ac_optarg'"
9670 1.1 christos ac_need_defaults=false;;
9671 1.1 christos --header | --heade | --head | --hea )
9672 1.1 christos $ac_shift
9673 1.1.1.2 christos case $ac_optarg in
9674 1.1.1.2 christos *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9675 1.1.1.2 christos esac
9676 1.1.1.2 christos as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9677 1.1 christos ac_need_defaults=false;;
9678 1.1 christos --he | --h)
9679 1.1 christos # Conflict between --help and --header
9680 1.1.1.2 christos as_fn_error $? "ambiguous option: \`$1'
9681 1.1.1.2 christos Try \`$0 --help' for more information.";;
9682 1.1 christos --help | --hel | -h )
9683 1.1.1.2 christos $as_echo "$ac_cs_usage"; exit ;;
9684 1.1 christos -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9685 1.1 christos | -silent | --silent | --silen | --sile | --sil | --si | --s)
9686 1.1 christos ac_cs_silent=: ;;
9687 1.1 christos
9688 1.1 christos # This is an error.
9689 1.1.1.2 christos -*) as_fn_error $? "unrecognized option: \`$1'
9690 1.1.1.2 christos Try \`$0 --help' for more information." ;;
9691 1.1 christos
9692 1.1.1.2 christos *) as_fn_append ac_config_targets " $1"
9693 1.1 christos ac_need_defaults=false ;;
9694 1.1 christos
9695 1.1 christos esac
9696 1.1 christos shift
9697 1.1 christos done
9698 1.1 christos
9699 1.1 christos ac_configure_extra_args=
9700 1.1 christos
9701 1.1 christos if $ac_cs_silent; then
9702 1.1 christos exec 6>/dev/null
9703 1.1 christos ac_configure_extra_args="$ac_configure_extra_args --silent"
9704 1.1 christos fi
9705 1.1 christos
9706 1.1 christos _ACEOF
9707 1.1.1.2 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9708 1.1 christos if \$ac_cs_recheck; then
9709 1.1.1.3 christos set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9710 1.1.1.2 christos shift
9711 1.1.1.2 christos \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9712 1.1.1.2 christos CONFIG_SHELL='$SHELL'
9713 1.1 christos export CONFIG_SHELL
9714 1.1.1.2 christos exec "\$@"
9715 1.1 christos fi
9716 1.1 christos
9717 1.1 christos _ACEOF
9718 1.1.1.2 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9719 1.1 christos exec 5>>config.log
9720 1.1 christos {
9721 1.1 christos echo
9722 1.1 christos sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9723 1.1 christos ## Running $as_me. ##
9724 1.1 christos _ASBOX
9725 1.1.1.2 christos $as_echo "$ac_log"
9726 1.1 christos } >&5
9727 1.1 christos
9728 1.1 christos _ACEOF
9729 1.1.1.2 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9730 1.1.1.3 christos #
9731 1.1.1.3 christos # INIT-COMMANDS
9732 1.1.1.3 christos #
9733 1.1.1.3 christos
9734 1.1.1.3 christos
9735 1.1 christos _ACEOF
9736 1.1 christos
9737 1.1.1.2 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9738 1.1 christos
9739 1.1 christos # Handling of arguments.
9740 1.1 christos for ac_config_target in $ac_config_targets
9741 1.1 christos do
9742 1.1 christos case $ac_config_target in
9743 1.1 christos "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9744 1.1.1.3 christos "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9745 1.1 christos "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9746 1.1 christos "pcap-filter.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-filter.manmisc" ;;
9747 1.1 christos "pcap-linktype.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-linktype.manmisc" ;;
9748 1.1.1.2 christos "pcap-tstamp.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-tstamp.manmisc" ;;
9749 1.1 christos "pcap-savefile.manfile") CONFIG_FILES="$CONFIG_FILES pcap-savefile.manfile" ;;
9750 1.1 christos "pcap.3pcap") CONFIG_FILES="$CONFIG_FILES pcap.3pcap" ;;
9751 1.1 christos "pcap_compile.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_compile.3pcap" ;;
9752 1.1 christos "pcap_datalink.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_datalink.3pcap" ;;
9753 1.1 christos "pcap_dump_open.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_dump_open.3pcap" ;;
9754 1.1.1.3 christos "pcap_get_tstamp_precision.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_get_tstamp_precision.3pcap" ;;
9755 1.1 christos "pcap_list_datalinks.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
9756 1.1.1.2 christos "pcap_list_tstamp_types.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;;
9757 1.1 christos "pcap_open_dead.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_dead.3pcap" ;;
9758 1.1 christos "pcap_open_offline.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_offline.3pcap" ;;
9759 1.1.1.3 christos "pcap_set_tstamp_precision.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_precision.3pcap" ;;
9760 1.1.1.2 christos "pcap_set_tstamp_type.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
9761 1.1 christos
9762 1.1.1.3 christos *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9763 1.1 christos esac
9764 1.1 christos done
9765 1.1 christos
9766 1.1 christos
9767 1.1 christos # If the user did not use the arguments to specify the items to instantiate,
9768 1.1 christos # then the envvar interface is used. Set only those that are not.
9769 1.1 christos # We use the long form for the default assignment because of an extremely
9770 1.1 christos # bizarre bug on SunOS 4.1.3.
9771 1.1 christos if $ac_need_defaults; then
9772 1.1 christos test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9773 1.1 christos test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9774 1.1.1.3 christos test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9775 1.1 christos fi
9776 1.1 christos
9777 1.1 christos # Have a temporary directory for convenience. Make it in the build tree
9778 1.1 christos # simply because there is no reason against having it here, and in addition,
9779 1.1 christos # creating and moving files from /tmp can sometimes cause problems.
9780 1.1 christos # Hook for its removal unless debugging.
9781 1.1 christos # Note that there is a small window in which the directory will not be cleaned:
9782 1.1 christos # after its creation but before its name has been assigned to `$tmp'.
9783 1.1 christos $debug ||
9784 1.1 christos {
9785 1.1.1.3 christos tmp= ac_tmp=
9786 1.1 christos trap 'exit_status=$?
9787 1.1.1.3 christos : "${ac_tmp:=$tmp}"
9788 1.1.1.3 christos { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9789 1.1 christos ' 0
9790 1.1.1.2 christos trap 'as_fn_exit 1' 1 2 13 15
9791 1.1 christos }
9792 1.1 christos # Create a (secure) tmp directory for tmp files.
9793 1.1 christos
9794 1.1 christos {
9795 1.1 christos tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9796 1.1.1.3 christos test -d "$tmp"
9797 1.1 christos } ||
9798 1.1 christos {
9799 1.1 christos tmp=./conf$$-$RANDOM
9800 1.1 christos (umask 077 && mkdir "$tmp")
9801 1.1.1.2 christos } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9802 1.1.1.3 christos ac_tmp=$tmp
9803 1.1 christos
9804 1.1.1.2 christos # Set up the scripts for CONFIG_FILES section.
9805 1.1.1.2 christos # No need to generate them if there are no CONFIG_FILES.
9806 1.1.1.2 christos # This happens for instance with `./config.status config.h'.
9807 1.1 christos if test -n "$CONFIG_FILES"; then
9808 1.1 christos
9809 1.1 christos
9810 1.1.1.2 christos ac_cr=`echo X | tr X '\015'`
9811 1.1.1.2 christos # On cygwin, bash can eat \r inside `` if the user requested igncr.
9812 1.1.1.2 christos # But we know of no other shell where ac_cr would be empty at this
9813 1.1.1.2 christos # point, so we can use a bashism as a fallback.
9814 1.1.1.2 christos if test "x$ac_cr" = x; then
9815 1.1.1.2 christos eval ac_cr=\$\'\\r\'
9816 1.1.1.2 christos fi
9817 1.1.1.2 christos ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9818 1.1.1.2 christos if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9819 1.1.1.2 christos ac_cs_awk_cr='\\r'
9820 1.1.1.2 christos else
9821 1.1.1.2 christos ac_cs_awk_cr=$ac_cr
9822 1.1.1.2 christos fi
9823 1.1.1.2 christos
9824 1.1.1.3 christos echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9825 1.1.1.2 christos _ACEOF
9826 1.1 christos
9827 1.1 christos
9828 1.1.1.2 christos {
9829 1.1.1.2 christos echo "cat >conf$$subs.awk <<_ACEOF" &&
9830 1.1.1.2 christos echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9831 1.1.1.2 christos echo "_ACEOF"
9832 1.1.1.2 christos } >conf$$subs.sh ||
9833 1.1.1.2 christos as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9834 1.1.1.2 christos ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9835 1.1 christos ac_delim='%!_!# '
9836 1.1 christos for ac_last_try in false false false false false :; do
9837 1.1.1.2 christos . ./conf$$subs.sh ||
9838 1.1.1.2 christos as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9839 1.1 christos
9840 1.1.1.2 christos ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9841 1.1.1.2 christos if test $ac_delim_n = $ac_delim_num; then
9842 1.1 christos break
9843 1.1 christos elif $ac_last_try; then
9844 1.1.1.2 christos as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9845 1.1 christos else
9846 1.1 christos ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9847 1.1 christos fi
9848 1.1 christos done
9849 1.1.1.2 christos rm -f conf$$subs.sh
9850 1.1 christos
9851 1.1.1.2 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9852 1.1.1.3 christos cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9853 1.1 christos _ACEOF
9854 1.1.1.2 christos sed -n '
9855 1.1.1.2 christos h
9856 1.1.1.2 christos s/^/S["/; s/!.*/"]=/
9857 1.1.1.2 christos p
9858 1.1.1.2 christos g
9859 1.1.1.2 christos s/^[^!]*!//
9860 1.1.1.2 christos :repl
9861 1.1.1.2 christos t repl
9862 1.1.1.2 christos s/'"$ac_delim"'$//
9863 1.1.1.2 christos t delim
9864 1.1.1.2 christos :nl
9865 1.1.1.2 christos h
9866 1.1.1.2 christos s/\(.\{148\}\)..*/\1/
9867 1.1.1.2 christos t more1
9868 1.1.1.2 christos s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9869 1.1.1.2 christos p
9870 1.1.1.2 christos n
9871 1.1.1.2 christos b repl
9872 1.1.1.2 christos :more1
9873 1.1.1.2 christos s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9874 1.1.1.2 christos p
9875 1.1.1.2 christos g
9876 1.1.1.2 christos s/.\{148\}//
9877 1.1.1.2 christos t nl
9878 1.1.1.2 christos :delim
9879 1.1.1.2 christos h
9880 1.1.1.2 christos s/\(.\{148\}\)..*/\1/
9881 1.1.1.2 christos t more2
9882 1.1.1.2 christos s/["\\]/\\&/g; s/^/"/; s/$/"/
9883 1.1.1.2 christos p
9884 1.1.1.2 christos b
9885 1.1.1.2 christos :more2
9886 1.1.1.2 christos s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9887 1.1.1.2 christos p
9888 1.1.1.2 christos g
9889 1.1.1.2 christos s/.\{148\}//
9890 1.1.1.2 christos t delim
9891 1.1.1.2 christos ' <conf$$subs.awk | sed '
9892 1.1.1.2 christos /^[^""]/{
9893 1.1.1.2 christos N
9894 1.1.1.2 christos s/\n//
9895 1.1.1.2 christos }
9896 1.1.1.2 christos ' >>$CONFIG_STATUS || ac_write_fail=1
9897 1.1.1.2 christos rm -f conf$$subs.awk
9898 1.1.1.2 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9899 1.1.1.2 christos _ACAWK
9900 1.1.1.3 christos cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9901 1.1.1.2 christos for (key in S) S_is_set[key] = 1
9902 1.1.1.2 christos FS = ""
9903 1.1 christos
9904 1.1.1.2 christos }
9905 1.1.1.2 christos {
9906 1.1.1.2 christos line = $ 0
9907 1.1.1.2 christos nfields = split(line, field, "@")
9908 1.1.1.2 christos substed = 0
9909 1.1.1.2 christos len = length(field[1])
9910 1.1.1.2 christos for (i = 2; i < nfields; i++) {
9911 1.1.1.2 christos key = field[i]
9912 1.1.1.2 christos keylen = length(key)
9913 1.1.1.2 christos if (S_is_set[key]) {
9914 1.1.1.2 christos value = S[key]
9915 1.1.1.2 christos line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9916 1.1.1.2 christos len += length(value) + length(field[++i])
9917 1.1.1.2 christos substed = 1
9918 1.1.1.2 christos } else
9919 1.1.1.2 christos len += 1 + keylen
9920 1.1.1.2 christos }
9921 1.1.1.2 christos
9922 1.1.1.2 christos print line
9923 1.1.1.2 christos }
9924 1.1.1.2 christos
9925 1.1.1.2 christos _ACAWK
9926 1.1.1.2 christos _ACEOF
9927 1.1.1.2 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9928 1.1.1.2 christos if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9929 1.1.1.2 christos sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9930 1.1.1.2 christos else
9931 1.1.1.2 christos cat
9932 1.1.1.3 christos fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9933 1.1.1.2 christos || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9934 1.1.1.2 christos _ACEOF
9935 1.1 christos
9936 1.1.1.2 christos # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9937 1.1.1.2 christos # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9938 1.1 christos # trailing colons and then remove the whole line if VPATH becomes empty
9939 1.1 christos # (actually we leave an empty line to preserve line numbers).
9940 1.1 christos if test "x$srcdir" = x.; then
9941 1.1.1.2 christos ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9942 1.1.1.2 christos h
9943 1.1.1.2 christos s///
9944 1.1.1.2 christos s/^/:/
9945 1.1.1.2 christos s/[ ]*$/:/
9946 1.1.1.2 christos s/:\$(srcdir):/:/g
9947 1.1.1.2 christos s/:\${srcdir}:/:/g
9948 1.1.1.2 christos s/:@srcdir@:/:/g
9949 1.1.1.2 christos s/^:*//
9950 1.1 christos s/:*$//
9951 1.1.1.2 christos x
9952 1.1.1.2 christos s/\(=[ ]*\).*/\1/
9953 1.1.1.2 christos G
9954 1.1.1.2 christos s/\n//
9955 1.1 christos s/^[^=]*=[ ]*$//
9956 1.1 christos }'
9957 1.1 christos fi
9958 1.1 christos
9959 1.1.1.2 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9960 1.1 christos fi # test -n "$CONFIG_FILES"
9961 1.1 christos
9962 1.1.1.2 christos # Set up the scripts for CONFIG_HEADERS section.
9963 1.1.1.2 christos # No need to generate them if there are no CONFIG_HEADERS.
9964 1.1.1.2 christos # This happens for instance with `./config.status Makefile'.
9965 1.1.1.2 christos if test -n "$CONFIG_HEADERS"; then
9966 1.1.1.3 christos cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9967 1.1.1.2 christos BEGIN {
9968 1.1.1.2 christos _ACEOF
9969 1.1.1.2 christos
9970 1.1.1.2 christos # Transform confdefs.h into an awk script `defines.awk', embedded as
9971 1.1.1.2 christos # here-document in config.status, that substitutes the proper values into
9972 1.1.1.2 christos # config.h.in to produce config.h.
9973 1.1.1.2 christos
9974 1.1.1.2 christos # Create a delimiter string that does not exist in confdefs.h, to ease
9975 1.1.1.2 christos # handling of long lines.
9976 1.1.1.2 christos ac_delim='%!_!# '
9977 1.1.1.2 christos for ac_last_try in false false :; do
9978 1.1.1.3 christos ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9979 1.1.1.3 christos if test -z "$ac_tt"; then
9980 1.1.1.2 christos break
9981 1.1.1.2 christos elif $ac_last_try; then
9982 1.1.1.2 christos as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9983 1.1.1.2 christos else
9984 1.1.1.2 christos ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9985 1.1.1.2 christos fi
9986 1.1.1.2 christos done
9987 1.1.1.2 christos
9988 1.1.1.2 christos # For the awk script, D is an array of macro values keyed by name,
9989 1.1.1.2 christos # likewise P contains macro parameters if any. Preserve backslash
9990 1.1.1.2 christos # newline sequences.
9991 1.1.1.2 christos
9992 1.1.1.2 christos ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9993 1.1.1.2 christos sed -n '
9994 1.1.1.2 christos s/.\{148\}/&'"$ac_delim"'/g
9995 1.1.1.2 christos t rset
9996 1.1.1.2 christos :rset
9997 1.1.1.2 christos s/^[ ]*#[ ]*define[ ][ ]*/ /
9998 1.1.1.2 christos t def
9999 1.1.1.2 christos d
10000 1.1.1.2 christos :def
10001 1.1.1.2 christos s/\\$//
10002 1.1.1.2 christos t bsnl
10003 1.1.1.2 christos s/["\\]/\\&/g
10004 1.1.1.2 christos s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10005 1.1.1.2 christos D["\1"]=" \3"/p
10006 1.1.1.2 christos s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10007 1.1.1.2 christos d
10008 1.1.1.2 christos :bsnl
10009 1.1.1.2 christos s/["\\]/\\&/g
10010 1.1.1.2 christos s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10011 1.1.1.2 christos D["\1"]=" \3\\\\\\n"\\/p
10012 1.1.1.2 christos t cont
10013 1.1.1.2 christos s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10014 1.1.1.2 christos t cont
10015 1.1.1.2 christos d
10016 1.1.1.2 christos :cont
10017 1.1.1.2 christos n
10018 1.1.1.2 christos s/.\{148\}/&'"$ac_delim"'/g
10019 1.1.1.2 christos t clear
10020 1.1.1.2 christos :clear
10021 1.1.1.2 christos s/\\$//
10022 1.1.1.2 christos t bsnlc
10023 1.1.1.2 christos s/["\\]/\\&/g; s/^/"/; s/$/"/p
10024 1.1.1.2 christos d
10025 1.1.1.2 christos :bsnlc
10026 1.1.1.2 christos s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10027 1.1.1.2 christos b cont
10028 1.1.1.2 christos ' <confdefs.h | sed '
10029 1.1.1.2 christos s/'"$ac_delim"'/"\\\
10030 1.1.1.2 christos "/g' >>$CONFIG_STATUS || ac_write_fail=1
10031 1.1.1.2 christos
10032 1.1.1.2 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10033 1.1.1.2 christos for (key in D) D_is_set[key] = 1
10034 1.1.1.2 christos FS = ""
10035 1.1.1.2 christos }
10036 1.1.1.2 christos /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10037 1.1.1.2 christos line = \$ 0
10038 1.1.1.2 christos split(line, arg, " ")
10039 1.1.1.2 christos if (arg[1] == "#") {
10040 1.1.1.2 christos defundef = arg[2]
10041 1.1.1.2 christos mac1 = arg[3]
10042 1.1.1.2 christos } else {
10043 1.1.1.2 christos defundef = substr(arg[1], 2)
10044 1.1.1.2 christos mac1 = arg[2]
10045 1.1.1.2 christos }
10046 1.1.1.2 christos split(mac1, mac2, "(") #)
10047 1.1.1.2 christos macro = mac2[1]
10048 1.1.1.2 christos prefix = substr(line, 1, index(line, defundef) - 1)
10049 1.1.1.2 christos if (D_is_set[macro]) {
10050 1.1.1.2 christos # Preserve the white space surrounding the "#".
10051 1.1.1.2 christos print prefix "define", macro P[macro] D[macro]
10052 1.1.1.2 christos next
10053 1.1.1.2 christos } else {
10054 1.1.1.2 christos # Replace #undef with comments. This is necessary, for example,
10055 1.1.1.2 christos # in the case of _POSIX_SOURCE, which is predefined and required
10056 1.1.1.2 christos # on some systems where configure will not decide to define it.
10057 1.1.1.2 christos if (defundef == "undef") {
10058 1.1.1.2 christos print "/*", prefix defundef, macro, "*/"
10059 1.1.1.2 christos next
10060 1.1.1.2 christos }
10061 1.1.1.2 christos }
10062 1.1.1.2 christos }
10063 1.1.1.2 christos { print }
10064 1.1.1.2 christos _ACAWK
10065 1.1.1.2 christos _ACEOF
10066 1.1.1.2 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10067 1.1.1.2 christos as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10068 1.1.1.2 christos fi # test -n "$CONFIG_HEADERS"
10069 1.1 christos
10070 1.1.1.2 christos
10071 1.1.1.3 christos eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10072 1.1.1.2 christos shift
10073 1.1.1.2 christos for ac_tag
10074 1.1 christos do
10075 1.1 christos case $ac_tag in
10076 1.1 christos :[FHLC]) ac_mode=$ac_tag; continue;;
10077 1.1 christos esac
10078 1.1 christos case $ac_mode$ac_tag in
10079 1.1 christos :[FHL]*:*);;
10080 1.1.1.3 christos :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10081 1.1 christos :[FH]-) ac_tag=-:-;;
10082 1.1 christos :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10083 1.1 christos esac
10084 1.1 christos ac_save_IFS=$IFS
10085 1.1 christos IFS=:
10086 1.1 christos set x $ac_tag
10087 1.1 christos IFS=$ac_save_IFS
10088 1.1 christos shift
10089 1.1 christos ac_file=$1
10090 1.1 christos shift
10091 1.1 christos
10092 1.1 christos case $ac_mode in
10093 1.1 christos :L) ac_source=$1;;
10094 1.1 christos :[FH])
10095 1.1 christos ac_file_inputs=
10096 1.1 christos for ac_f
10097 1.1 christos do
10098 1.1 christos case $ac_f in
10099 1.1.1.3 christos -) ac_f="$ac_tmp/stdin";;
10100 1.1 christos *) # Look for the file first in the build tree, then in the source tree
10101 1.1 christos # (if the path is not absolute). The absolute path cannot be DOS-style,
10102 1.1 christos # because $ac_f cannot contain `:'.
10103 1.1 christos test -f "$ac_f" ||
10104 1.1 christos case $ac_f in
10105 1.1 christos [\\/$]*) false;;
10106 1.1 christos *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10107 1.1 christos esac ||
10108 1.1.1.3 christos as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10109 1.1 christos esac
10110 1.1.1.2 christos case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10111 1.1.1.2 christos as_fn_append ac_file_inputs " '$ac_f'"
10112 1.1 christos done
10113 1.1 christos
10114 1.1 christos # Let's still pretend it is `configure' which instantiates (i.e., don't
10115 1.1 christos # use $as_me), people would be surprised to read:
10116 1.1 christos # /* config.h. Generated by config.status. */
10117 1.1.1.2 christos configure_input='Generated from '`
10118 1.1.1.2 christos $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10119 1.1.1.2 christos `' by configure.'
10120 1.1 christos if test x"$ac_file" != x-; then
10121 1.1 christos configure_input="$ac_file. $configure_input"
10122 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10123 1.1.1.2 christos $as_echo "$as_me: creating $ac_file" >&6;}
10124 1.1 christos fi
10125 1.1.1.2 christos # Neutralize special characters interpreted by sed in replacement strings.
10126 1.1.1.2 christos case $configure_input in #(
10127 1.1.1.2 christos *\&* | *\|* | *\\* )
10128 1.1.1.2 christos ac_sed_conf_input=`$as_echo "$configure_input" |
10129 1.1.1.2 christos sed 's/[\\\\&|]/\\\\&/g'`;; #(
10130 1.1.1.2 christos *) ac_sed_conf_input=$configure_input;;
10131 1.1.1.2 christos esac
10132 1.1 christos
10133 1.1 christos case $ac_tag in
10134 1.1.1.3 christos *:-:* | *:-) cat >"$ac_tmp/stdin" \
10135 1.1.1.3 christos || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10136 1.1 christos esac
10137 1.1 christos ;;
10138 1.1 christos esac
10139 1.1 christos
10140 1.1 christos ac_dir=`$as_dirname -- "$ac_file" ||
10141 1.1 christos $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10142 1.1 christos X"$ac_file" : 'X\(//\)[^/]' \| \
10143 1.1 christos X"$ac_file" : 'X\(//\)$' \| \
10144 1.1 christos X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10145 1.1.1.2 christos $as_echo X"$ac_file" |
10146 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10147 1.1 christos s//\1/
10148 1.1 christos q
10149 1.1 christos }
10150 1.1 christos /^X\(\/\/\)[^/].*/{
10151 1.1 christos s//\1/
10152 1.1 christos q
10153 1.1 christos }
10154 1.1 christos /^X\(\/\/\)$/{
10155 1.1 christos s//\1/
10156 1.1 christos q
10157 1.1 christos }
10158 1.1 christos /^X\(\/\).*/{
10159 1.1 christos s//\1/
10160 1.1 christos q
10161 1.1 christos }
10162 1.1 christos s/.*/./; q'`
10163 1.1.1.2 christos as_dir="$ac_dir"; as_fn_mkdir_p
10164 1.1 christos ac_builddir=.
10165 1.1 christos
10166 1.1 christos case "$ac_dir" in
10167 1.1 christos .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10168 1.1 christos *)
10169 1.1.1.2 christos ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10170 1.1 christos # A ".." for each directory in $ac_dir_suffix.
10171 1.1.1.2 christos ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10172 1.1 christos case $ac_top_builddir_sub in
10173 1.1 christos "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10174 1.1 christos *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10175 1.1 christos esac ;;
10176 1.1 christos esac
10177 1.1 christos ac_abs_top_builddir=$ac_pwd
10178 1.1 christos ac_abs_builddir=$ac_pwd$ac_dir_suffix
10179 1.1 christos # for backward compatibility:
10180 1.1 christos ac_top_builddir=$ac_top_build_prefix
10181 1.1 christos
10182 1.1 christos case $srcdir in
10183 1.1 christos .) # We are building in place.
10184 1.1 christos ac_srcdir=.
10185 1.1 christos ac_top_srcdir=$ac_top_builddir_sub
10186 1.1 christos ac_abs_top_srcdir=$ac_pwd ;;
10187 1.1 christos [\\/]* | ?:[\\/]* ) # Absolute name.
10188 1.1 christos ac_srcdir=$srcdir$ac_dir_suffix;
10189 1.1 christos ac_top_srcdir=$srcdir
10190 1.1 christos ac_abs_top_srcdir=$srcdir ;;
10191 1.1 christos *) # Relative name.
10192 1.1 christos ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10193 1.1 christos ac_top_srcdir=$ac_top_build_prefix$srcdir
10194 1.1 christos ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10195 1.1 christos esac
10196 1.1 christos ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10197 1.1 christos
10198 1.1 christos
10199 1.1 christos case $ac_mode in
10200 1.1 christos :F)
10201 1.1 christos #
10202 1.1 christos # CONFIG_FILE
10203 1.1 christos #
10204 1.1 christos
10205 1.1 christos case $INSTALL in
10206 1.1 christos [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10207 1.1 christos *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10208 1.1 christos esac
10209 1.1 christos _ACEOF
10210 1.1 christos
10211 1.1.1.2 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10212 1.1 christos # If the template does not know about datarootdir, expand it.
10213 1.1 christos # FIXME: This hack should be removed a few years after 2.60.
10214 1.1 christos ac_datarootdir_hack=; ac_datarootdir_seen=
10215 1.1.1.2 christos ac_sed_dataroot='
10216 1.1.1.2 christos /datarootdir/ {
10217 1.1 christos p
10218 1.1 christos q
10219 1.1 christos }
10220 1.1 christos /@datadir@/p
10221 1.1 christos /@docdir@/p
10222 1.1 christos /@infodir@/p
10223 1.1 christos /@localedir@/p
10224 1.1.1.2 christos /@mandir@/p'
10225 1.1.1.2 christos case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10226 1.1 christos *datarootdir*) ac_datarootdir_seen=yes;;
10227 1.1 christos *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10228 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10229 1.1.1.2 christos $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10230 1.1 christos _ACEOF
10231 1.1.1.2 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10232 1.1 christos ac_datarootdir_hack='
10233 1.1 christos s&@datadir@&$datadir&g
10234 1.1 christos s&@docdir@&$docdir&g
10235 1.1 christos s&@infodir@&$infodir&g
10236 1.1 christos s&@localedir@&$localedir&g
10237 1.1 christos s&@mandir@&$mandir&g
10238 1.1.1.2 christos s&\\\${datarootdir}&$datarootdir&g' ;;
10239 1.1 christos esac
10240 1.1 christos _ACEOF
10241 1.1 christos
10242 1.1 christos # Neutralize VPATH when `$srcdir' = `.'.
10243 1.1 christos # Shell code in configure.ac might set extrasub.
10244 1.1 christos # FIXME: do we really want to maintain this feature?
10245 1.1.1.2 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10246 1.1.1.2 christos ac_sed_extra="$ac_vpsub
10247 1.1 christos $extrasub
10248 1.1 christos _ACEOF
10249 1.1.1.2 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10250 1.1 christos :t
10251 1.1 christos /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10252 1.1.1.2 christos s|@configure_input@|$ac_sed_conf_input|;t t
10253 1.1 christos s&@top_builddir@&$ac_top_builddir_sub&;t t
10254 1.1.1.2 christos s&@top_build_prefix@&$ac_top_build_prefix&;t t
10255 1.1 christos s&@srcdir@&$ac_srcdir&;t t
10256 1.1 christos s&@abs_srcdir@&$ac_abs_srcdir&;t t
10257 1.1 christos s&@top_srcdir@&$ac_top_srcdir&;t t
10258 1.1 christos s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10259 1.1 christos s&@builddir@&$ac_builddir&;t t
10260 1.1 christos s&@abs_builddir@&$ac_abs_builddir&;t t
10261 1.1 christos s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10262 1.1 christos s&@INSTALL@&$ac_INSTALL&;t t
10263 1.1 christos $ac_datarootdir_hack
10264 1.1.1.2 christos "
10265 1.1.1.3 christos eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10266 1.1.1.3 christos >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10267 1.1 christos
10268 1.1 christos test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10269 1.1.1.3 christos { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10270 1.1.1.3 christos { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10271 1.1.1.3 christos "$ac_tmp/out"`; test -z "$ac_out"; } &&
10272 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10273 1.1.1.2 christos which seems to be undefined. Please make sure it is defined" >&5
10274 1.1.1.2 christos $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10275 1.1.1.2 christos which seems to be undefined. Please make sure it is defined" >&2;}
10276 1.1 christos
10277 1.1.1.3 christos rm -f "$ac_tmp/stdin"
10278 1.1 christos case $ac_file in
10279 1.1.1.3 christos -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10280 1.1.1.3 christos *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10281 1.1.1.2 christos esac \
10282 1.1.1.2 christos || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10283 1.1 christos ;;
10284 1.1 christos :H)
10285 1.1 christos #
10286 1.1 christos # CONFIG_HEADER
10287 1.1 christos #
10288 1.1 christos if test x"$ac_file" != x-; then
10289 1.1.1.2 christos {
10290 1.1.1.2 christos $as_echo "/* $configure_input */" \
10291 1.1.1.3 christos && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10292 1.1.1.3 christos } >"$ac_tmp/config.h" \
10293 1.1.1.2 christos || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10294 1.1.1.3 christos if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10295 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10296 1.1.1.2 christos $as_echo "$as_me: $ac_file is unchanged" >&6;}
10297 1.1 christos else
10298 1.1.1.2 christos rm -f "$ac_file"
10299 1.1.1.3 christos mv "$ac_tmp/config.h" "$ac_file" \
10300 1.1.1.2 christos || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10301 1.1 christos fi
10302 1.1 christos else
10303 1.1.1.2 christos $as_echo "/* $configure_input */" \
10304 1.1.1.3 christos && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10305 1.1.1.2 christos || as_fn_error $? "could not create -" "$LINENO" 5
10306 1.1 christos fi
10307 1.1 christos ;;
10308 1.1 christos
10309 1.1.1.3 christos :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10310 1.1.1.3 christos $as_echo "$as_me: executing $ac_file commands" >&6;}
10311 1.1.1.3 christos ;;
10312 1.1 christos esac
10313 1.1 christos
10314 1.1.1.3 christos
10315 1.1.1.3 christos case $ac_file$ac_mode in
10316 1.1.1.3 christos "default-1":C) if test -f .devel; then
10317 1.1.1.3 christos echo timestamp > stamp-h
10318 1.1.1.3 christos cat Makefile-devel-adds >> Makefile
10319 1.1.1.3 christos make depend
10320 1.1.1.3 christos fi ;;
10321 1.1.1.3 christos
10322 1.1.1.3 christos esac
10323 1.1 christos done # for ac_tag
10324 1.1 christos
10325 1.1 christos
10326 1.1.1.2 christos as_fn_exit 0
10327 1.1 christos _ACEOF
10328 1.1 christos ac_clean_files=$ac_clean_files_save
10329 1.1 christos
10330 1.1.1.2 christos test $ac_write_fail = 0 ||
10331 1.1.1.2 christos as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10332 1.1.1.2 christos
10333 1.1 christos
10334 1.1 christos # configure is writing to config.log, and then calls config.status.
10335 1.1 christos # config.status does its own redirection, appending to config.log.
10336 1.1 christos # Unfortunately, on DOS this fails, as config.log is still kept open
10337 1.1 christos # by configure, so config.status won't be able to write to it; its
10338 1.1 christos # output is simply discarded. So we exec the FD to /dev/null,
10339 1.1 christos # effectively closing config.log, so it can be properly (re)opened and
10340 1.1 christos # appended to by config.status. When coming back to configure, we
10341 1.1 christos # need to make the FD available again.
10342 1.1 christos if test "$no_create" != yes; then
10343 1.1 christos ac_cs_success=:
10344 1.1 christos ac_config_status_args=
10345 1.1 christos test "$silent" = yes &&
10346 1.1 christos ac_config_status_args="$ac_config_status_args --quiet"
10347 1.1 christos exec 5>/dev/null
10348 1.1 christos $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10349 1.1 christos exec 5>>config.log
10350 1.1 christos # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10351 1.1 christos # would make configure fail if this is the last instruction.
10352 1.1.1.2 christos $ac_cs_success || as_fn_exit 1
10353 1.1.1.2 christos fi
10354 1.1.1.2 christos if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10355 1.1.1.2 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10356 1.1.1.2 christos $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10357 1.1 christos fi
10358 1.1 christos
10359 1.1 christos exit 0
10360