]>
Commit | Line | Data |
---|---|---|
2f1a1aea FCE |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
d7ca839b | 3 | # Generated by GNU Autoconf 2.69 for systemtap 2.5. |
2f1a1aea | 4 | # |
306dd4f8 | 5 | # Report bugs to <systemtap@sourceware.org>. |
2f1a1aea | 6 | # |
1ef0423a | 7 | # |
8eef2738 | 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
1ef0423a FCE |
9 | # |
10 | # | |
2f1a1aea FCE |
11 | # This configure script is free software; the Free Software Foundation |
12 | # gives unlimited permission to copy, distribute and modify it. | |
1ef0423a FCE |
13 | ## -------------------- ## |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
2f1a1aea | 16 | |
7fbd9d09 FCE |
17 | # Be more Bourne compatible |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
1ef0423a | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
2f1a1aea FCE |
20 | emulate sh |
21 | NULLCMD=: | |
0710d850 | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
2f1a1aea FCE |
23 | # is contrary to our usage. Disable this feature. |
24 | alias -g '${1+"$@"}'='"$@"' | |
7fbd9d09 FCE |
25 | setopt NO_GLOB_SUBST |
26 | else | |
1ef0423a FCE |
27 | case `(set -o) 2>/dev/null` in #( |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
7fbd9d09 | 32 | esac |
7fbd9d09 FCE |
33 | fi |
34 | ||
35 | ||
0710d850 DS |
36 | as_nl=' |
37 | ' | |
38 | export as_nl | |
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
1ef0423a FCE |
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
44 | # but without wasting forks for bash or zsh. | |
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='print -r --' | |
48 | as_echo_n='print -rn --' | |
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
0710d850 DS |
50 | as_echo='printf %s\n' |
51 | as_echo_n='printf %s' | |
52 | else | |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
31f9baea | 56 | else |
0710d850 DS |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
1ef0423a | 60 | case $arg in #( |
0710d850 DS |
61 | *"$as_nl"*) |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
31f9baea | 69 | fi |
0710d850 DS |
70 | export as_echo_body |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
74 | # The user is always right. | |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
76 | PATH_SEPARATOR=: | |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
2f1a1aea | 81 | fi |
2f1a1aea | 82 | |
2f1a1aea | 83 | |
7fbd9d09 FCE |
84 | # IFS |
85 | # We need space, tab and new line, in precisely that order. Quoting is | |
86 | # there to prevent editors from complaining about space-tab. | |
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 | # splitting by setting IFS to empty value.) | |
7fbd9d09 FCE |
89 | IFS=" "" $as_nl" |
90 | ||
91 | # Find who we are. Look in the path if we contain no directory separator. | |
c3de29bd | 92 | as_myself= |
1ef0423a | 93 | case $0 in #(( |
7fbd9d09 FCE |
94 | *[\\/]* ) as_myself=$0 ;; |
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
96 | for as_dir in $PATH | |
97 | do | |
98 | IFS=$as_save_IFS | |
99 | test -z "$as_dir" && as_dir=. | |
1ef0423a FCE |
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
101 | done | |
7fbd9d09 FCE |
102 | IFS=$as_save_IFS |
103 | ||
104 | ;; | |
105 | esac | |
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
107 | # in which case we are not to be found in the path. | |
108 | if test "x$as_myself" = x; then | |
109 | as_myself=$0 | |
110 | fi | |
111 | if test ! -f "$as_myself"; then | |
0710d850 | 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
1ef0423a | 113 | exit 1 |
7fbd9d09 FCE |
114 | fi |
115 | ||
1ef0423a FCE |
116 | # Unset variables that we do not need and which cause bugs (e.g. in |
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
118 | # suppresses any "Segmentation fault" message there. '((' could | |
119 | # trigger a bug in pdksh 5.2.14. | |
120 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
121 | do eval test x\${$as_var+set} = xset \ | |
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7fbd9d09 | 123 | done |
2f1a1aea FCE |
124 | PS1='$ ' |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
0710d850 DS |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
2f1a1aea | 133 | |
1ef0423a FCE |
134 | # CDPATH. |
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
136 | ||
8eef2738 LB |
137 | # Use a proper internal environment variable to ensure we don't fall |
138 | # into an infinite loop, continuously re-executing ourselves. | |
139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
140 | _as_can_reexec=no; export _as_can_reexec; | |
141 | # We cannot yet assume a decent shell, so we have to provide a | |
142 | # neutralization value for shells without unset; and this also | |
143 | # works around shells that cannot unset nonexistent variables. | |
144 | # Preserve -v and -x to the replacement shell. | |
145 | BASH_ENV=/dev/null | |
146 | ENV=/dev/null | |
147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
148 | case $- in # (((( | |
149 | *v*x* | *x*v* ) as_opts=-vx ;; | |
150 | *v* ) as_opts=-v ;; | |
151 | *x* ) as_opts=-x ;; | |
152 | * ) as_opts= ;; | |
153 | esac | |
154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
155 | # Admittedly, this is quite paranoid, since all the known shells bail | |
156 | # out after a failed `exec'. | |
157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
158 | as_fn_exit 255 | |
159 | fi | |
160 | # We don't want this to propagate to other subprocesses. | |
161 | { _as_can_reexec=; unset _as_can_reexec;} | |
1ef0423a FCE |
162 | if test "x$CONFIG_SHELL" = x; then |
163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
164 | emulate sh | |
165 | NULLCMD=: | |
166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
167 | # is contrary to our usage. Disable this feature. | |
168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
169 | setopt NO_GLOB_SUBST | |
170 | else | |
171 | case \`(set -o) 2>/dev/null\` in #( | |
172 | *posix*) : | |
173 | set -o posix ;; #( | |
174 | *) : | |
175 | ;; | |
176 | esac | |
177 | fi | |
178 | " | |
179 | as_required="as_fn_return () { (exit \$1); } | |
180 | as_fn_success () { as_fn_return 0; } | |
181 | as_fn_failure () { as_fn_return 1; } | |
182 | as_fn_ret_success () { return 0; } | |
183 | as_fn_ret_failure () { return 1; } | |
184 | ||
185 | exitcode=0 | |
186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
191 | ||
192 | else | |
193 | exitcode=1; echo positional parameters were not saved. | |
194 | fi | |
8eef2738 LB |
195 | test x\$exitcode = x0 || exit 1 |
196 | test -x / || exit 1" | |
1ef0423a FCE |
197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
201 | test \$(( 1 + 1 )) = 2 || exit 1" | |
202 | if (eval "$as_required") 2>/dev/null; then : | |
203 | as_have_required=yes | |
204 | else | |
205 | as_have_required=no | |
206 | fi | |
207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
208 | ||
209 | else | |
210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
211 | as_found=false | |
212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
213 | do | |
214 | IFS=$as_save_IFS | |
215 | test -z "$as_dir" && as_dir=. | |
216 | as_found=: | |
217 | case $as_dir in #( | |
218 | /*) | |
219 | for as_base in sh bash ksh sh5; do | |
220 | # Try only shells that exist, to save several forks. | |
221 | as_shell=$as_dir/$as_base | |
222 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
223 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
224 | CONFIG_SHELL=$as_shell as_have_required=yes | |
225 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
226 | break 2 | |
227 | fi | |
228 | fi | |
229 | done;; | |
230 | esac | |
231 | as_found=false | |
232 | done | |
233 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
234 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
235 | CONFIG_SHELL=$SHELL as_have_required=yes | |
236 | fi; } | |
237 | IFS=$as_save_IFS | |
238 | ||
239 | ||
240 | if test "x$CONFIG_SHELL" != x; then : | |
8eef2738 LB |
241 | export CONFIG_SHELL |
242 | # We cannot yet assume a decent shell, so we have to provide a | |
243 | # neutralization value for shells without unset; and this also | |
244 | # works around shells that cannot unset nonexistent variables. | |
245 | # Preserve -v and -x to the replacement shell. | |
246 | BASH_ENV=/dev/null | |
247 | ENV=/dev/null | |
248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
249 | case $- in # (((( | |
250 | *v*x* | *x*v* ) as_opts=-vx ;; | |
251 | *v* ) as_opts=-v ;; | |
252 | *x* ) as_opts=-x ;; | |
253 | * ) as_opts= ;; | |
254 | esac | |
255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
256 | # Admittedly, this is quite paranoid, since all the known shells bail | |
257 | # out after a failed `exec'. | |
258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
259 | exit 255 | |
1ef0423a FCE |
260 | fi |
261 | ||
262 | if test x$as_have_required = xno; then : | |
263 | $as_echo "$0: This script requires a shell more modern than all" | |
264 | $as_echo "$0: the shells that I found on your system." | |
265 | if test x${ZSH_VERSION+set} = xset ; then | |
266 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
267 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
268 | else | |
269 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | |
fcca127c FCE |
270 | $0: systemtap@sourceware.org about your system, including |
271 | $0: any error possibly output before this message. Then | |
272 | $0: install a modern shell, or manually run the script | |
273 | $0: under such a shell if you do have one." | |
1ef0423a FCE |
274 | fi |
275 | exit 1 | |
276 | fi | |
277 | fi | |
278 | fi | |
279 | SHELL=${CONFIG_SHELL-/bin/sh} | |
280 | export SHELL | |
281 | # Unset more variables known to interfere with behavior of common tools. | |
282 | CLICOLOR_FORCE= GREP_OPTIONS= | |
283 | unset CLICOLOR_FORCE GREP_OPTIONS | |
284 | ||
285 | ## --------------------- ## | |
286 | ## M4sh Shell Functions. ## | |
287 | ## --------------------- ## | |
288 | # as_fn_unset VAR | |
289 | # --------------- | |
290 | # Portably unset VAR. | |
291 | as_fn_unset () | |
292 | { | |
293 | { eval $1=; unset $1;} | |
294 | } | |
295 | as_unset=as_fn_unset | |
296 | ||
297 | # as_fn_set_status STATUS | |
298 | # ----------------------- | |
299 | # Set $? to STATUS, without forking. | |
300 | as_fn_set_status () | |
301 | { | |
302 | return $1 | |
303 | } # as_fn_set_status | |
304 | ||
305 | # as_fn_exit STATUS | |
306 | # ----------------- | |
307 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
308 | as_fn_exit () | |
309 | { | |
310 | set +e | |
311 | as_fn_set_status $1 | |
312 | exit $1 | |
313 | } # as_fn_exit | |
314 | ||
315 | # as_fn_mkdir_p | |
316 | # ------------- | |
317 | # Create "$as_dir" as a directory, including parents if necessary. | |
318 | as_fn_mkdir_p () | |
319 | { | |
320 | ||
321 | case $as_dir in #( | |
322 | -*) as_dir=./$as_dir;; | |
323 | esac | |
324 | test -d "$as_dir" || eval $as_mkdir_p || { | |
325 | as_dirs= | |
326 | while :; do | |
327 | case $as_dir in #( | |
328 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
329 | *) as_qdir=$as_dir;; | |
330 | esac | |
331 | as_dirs="'$as_qdir' $as_dirs" | |
332 | as_dir=`$as_dirname -- "$as_dir" || | |
333 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
334 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
335 | X"$as_dir" : 'X\(//\)$' \| \ | |
336 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
337 | $as_echo X"$as_dir" | | |
338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
339 | s//\1/ | |
340 | q | |
341 | } | |
342 | /^X\(\/\/\)[^/].*/{ | |
343 | s//\1/ | |
344 | q | |
345 | } | |
346 | /^X\(\/\/\)$/{ | |
347 | s//\1/ | |
348 | q | |
349 | } | |
350 | /^X\(\/\).*/{ | |
351 | s//\1/ | |
352 | q | |
353 | } | |
354 | s/.*/./; q'` | |
355 | test -d "$as_dir" && break | |
356 | done | |
357 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
5d4aa1f5 | 358 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
1ef0423a FCE |
359 | |
360 | ||
361 | } # as_fn_mkdir_p | |
8eef2738 LB |
362 | |
363 | # as_fn_executable_p FILE | |
364 | # ----------------------- | |
365 | # Test if FILE is an executable regular file. | |
366 | as_fn_executable_p () | |
367 | { | |
368 | test -f "$1" && test -x "$1" | |
369 | } # as_fn_executable_p | |
1ef0423a FCE |
370 | # as_fn_append VAR VALUE |
371 | # ---------------------- | |
372 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
373 | # advantage of any shell optimizations that allow amortized linear growth over | |
374 | # repeated appends, instead of the typical quadratic growth present in naive | |
375 | # implementations. | |
376 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
377 | eval 'as_fn_append () | |
378 | { | |
379 | eval $1+=\$2 | |
380 | }' | |
381 | else | |
382 | as_fn_append () | |
383 | { | |
384 | eval $1=\$$1\$2 | |
385 | } | |
386 | fi # as_fn_append | |
387 | ||
388 | # as_fn_arith ARG... | |
389 | # ------------------ | |
390 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
391 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
392 | # must be portable across $(()) and expr. | |
393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
394 | eval 'as_fn_arith () | |
395 | { | |
396 | as_val=$(( $* )) | |
397 | }' | |
398 | else | |
399 | as_fn_arith () | |
400 | { | |
401 | as_val=`expr "$@" || test $? -eq 1` | |
402 | } | |
403 | fi # as_fn_arith | |
404 | ||
405 | ||
5d4aa1f5 FCE |
406 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
407 | # ---------------------------------------- | |
1ef0423a FCE |
408 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
409 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
5d4aa1f5 | 410 | # script with STATUS, using 1 if that was 0. |
1ef0423a FCE |
411 | as_fn_error () |
412 | { | |
5d4aa1f5 FCE |
413 | as_status=$1; test $as_status -eq 0 && as_status=1 |
414 | if test "$4"; then | |
415 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
416 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
1ef0423a | 417 | fi |
5d4aa1f5 | 418 | $as_echo "$as_me: error: $2" >&2 |
1ef0423a FCE |
419 | as_fn_exit $as_status |
420 | } # as_fn_error | |
421 | ||
412e1bf7 FCE |
422 | if expr a : '\(a\)' >/dev/null 2>&1 && |
423 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
424 | as_expr=expr | |
425 | else | |
426 | as_expr=false | |
427 | fi | |
428 | ||
429 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
430 | as_basename=basename | |
431 | else | |
432 | as_basename=false | |
433 | fi | |
434 | ||
1ef0423a FCE |
435 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
436 | as_dirname=dirname | |
437 | else | |
438 | as_dirname=false | |
439 | fi | |
412e1bf7 | 440 | |
412e1bf7 FCE |
441 | as_me=`$as_basename -- "$0" || |
442 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
443 | X"$0" : 'X\(//\)$' \| \ | |
444 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
0710d850 | 445 | $as_echo X/"$0" | |
412e1bf7 FCE |
446 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
447 | s//\1/ | |
448 | q | |
449 | } | |
450 | /^X\/\(\/\/\)$/{ | |
451 | s//\1/ | |
452 | q | |
453 | } | |
454 | /^X\/\(\/\).*/{ | |
455 | s//\1/ | |
456 | q | |
457 | } | |
458 | s/.*/./; q'` | |
459 | ||
1ef0423a FCE |
460 | # Avoid depending upon Character Ranges. |
461 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
462 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
463 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
464 | as_cr_digits='0123456789' | |
465 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
412e1bf7 | 466 | |
5e0d2ebf | 467 | |
1ef0423a FCE |
468 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
469 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
470 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
471 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
472 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
473 | sed -n ' | |
474 | p | |
475 | /[$]LINENO/= | |
476 | ' <$as_myself | | |
477 | sed ' | |
478 | s/[$]LINENO.*/&-/ | |
479 | t lineno | |
480 | b | |
481 | :lineno | |
482 | N | |
483 | :loop | |
484 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
485 | t loop | |
486 | s/-\n.*// | |
487 | ' >$as_me.lineno && | |
488 | chmod +x "$as_me.lineno" || | |
489 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
412e1bf7 | 490 | |
8eef2738 LB |
491 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
492 | # already done that, so ensure we don't try to do so again and fall | |
493 | # in an infinite loop. This has already happened in practice. | |
494 | _as_can_reexec=no; export _as_can_reexec | |
1ef0423a FCE |
495 | # Don't try to exec as it changes $[0], causing all sort of problems |
496 | # (the dirname of $[0] is not the place where we might find the | |
497 | # original and so on. Autoconf is especially sensitive to this). | |
498 | . "./$as_me.lineno" | |
499 | # Exit status is that of the last command. | |
500 | exit | |
412e1bf7 | 501 | } |
5e0d2ebf | 502 | |
1ef0423a FCE |
503 | ECHO_C= ECHO_N= ECHO_T= |
504 | case `echo -n x` in #((((( | |
505 | -n*) | |
506 | case `echo 'xy\c'` in | |
507 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
508 | xy) ECHO_C='\c';; | |
509 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
510 | ECHO_T=' ';; | |
511 | esac;; | |
512 | *) | |
513 | ECHO_N='-n';; | |
514 | esac | |
5e5aee9f | 515 | |
1ef0423a FCE |
516 | rm -f conf$$ conf$$.exe conf$$.file |
517 | if test -d conf$$.dir; then | |
518 | rm -f conf$$.dir/conf$$.file | |
519 | else | |
520 | rm -f conf$$.dir | |
521 | mkdir conf$$.dir 2>/dev/null | |
412e1bf7 | 522 | fi |
1ef0423a FCE |
523 | if (echo >conf$$.file) 2>/dev/null; then |
524 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
525 | as_ln_s='ln -s' | |
526 | # ... but there are two gotchas: | |
527 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
528 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
8eef2738 | 529 | # In both cases, we have to default to `cp -pR'. |
1ef0423a | 530 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
8eef2738 | 531 | as_ln_s='cp -pR' |
1ef0423a FCE |
532 | elif ln conf$$.file conf$$ 2>/dev/null; then |
533 | as_ln_s=ln | |
534 | else | |
8eef2738 | 535 | as_ln_s='cp -pR' |
1ef0423a | 536 | fi |
ec1a2239 | 537 | else |
8eef2738 | 538 | as_ln_s='cp -pR' |
e6364d79 | 539 | fi |
1ef0423a FCE |
540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
541 | rmdir conf$$.dir 2>/dev/null | |
e6364d79 | 542 | |
1ef0423a FCE |
543 | if mkdir -p . 2>/dev/null; then |
544 | as_mkdir_p='mkdir -p "$as_dir"' | |
545 | else | |
546 | test -d ./-p && rmdir ./-p | |
547 | as_mkdir_p=false | |
5e5aee9f FCE |
548 | fi |
549 | ||
8eef2738 LB |
550 | as_test_x='test -x' |
551 | as_executable_p=as_fn_executable_p | |
412e1bf7 | 552 | |
1ef0423a FCE |
553 | # Sed expression to map a string onto a valid CPP name. |
554 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
412e1bf7 | 555 | |
1ef0423a FCE |
556 | # Sed expression to map a string onto a valid variable name. |
557 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
7fbd9d09 FCE |
558 | |
559 | ||
1ef0423a FCE |
560 | test -n "$DJDIR" || exec 7<&0 </dev/null |
561 | exec 6>&1 | |
5e5aee9f FCE |
562 | |
563 | # Name of the host. | |
5d4aa1f5 | 564 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
2f1a1aea FCE |
565 | # so uname gets run too. |
566 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
567 | ||
2f1a1aea FCE |
568 | # |
569 | # Initializations. | |
570 | # | |
571 | ac_default_prefix=/usr/local | |
7fbd9d09 | 572 | ac_clean_files= |
2f1a1aea | 573 | ac_config_libobj_dir=. |
7fbd9d09 | 574 | LIBOBJS= |
2f1a1aea FCE |
575 | cross_compiling=no |
576 | subdirs= | |
577 | MFLAGS= | |
578 | MAKEFLAGS= | |
2f1a1aea | 579 | |
2f1a1aea FCE |
580 | # Identity of this package. |
581 | PACKAGE_NAME='systemtap' | |
582 | PACKAGE_TARNAME='systemtap' | |
d7ca839b JL |
583 | PACKAGE_VERSION='2.5' |
584 | PACKAGE_STRING='systemtap 2.5' | |
306dd4f8 | 585 | PACKAGE_BUGREPORT='systemtap@sourceware.org' |
1ef0423a | 586 | PACKAGE_URL='' |
2f1a1aea FCE |
587 | |
588 | # Factoring default headers for most tests. | |
589 | ac_includes_default="\ | |
590 | #include <stdio.h> | |
7fbd9d09 | 591 | #ifdef HAVE_SYS_TYPES_H |
2f1a1aea FCE |
592 | # include <sys/types.h> |
593 | #endif | |
7fbd9d09 | 594 | #ifdef HAVE_SYS_STAT_H |
2f1a1aea FCE |
595 | # include <sys/stat.h> |
596 | #endif | |
7fbd9d09 | 597 | #ifdef STDC_HEADERS |
2f1a1aea FCE |
598 | # include <stdlib.h> |
599 | # include <stddef.h> | |
600 | #else | |
7fbd9d09 | 601 | # ifdef HAVE_STDLIB_H |
2f1a1aea FCE |
602 | # include <stdlib.h> |
603 | # endif | |
604 | #endif | |
7fbd9d09 FCE |
605 | #ifdef HAVE_STRING_H |
606 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
2f1a1aea FCE |
607 | # include <memory.h> |
608 | # endif | |
609 | # include <string.h> | |
610 | #endif | |
7fbd9d09 | 611 | #ifdef HAVE_STRINGS_H |
2f1a1aea FCE |
612 | # include <strings.h> |
613 | #endif | |
7fbd9d09 | 614 | #ifdef HAVE_INTTYPES_H |
2f1a1aea | 615 | # include <inttypes.h> |
2f1a1aea | 616 | #endif |
7fbd9d09 FCE |
617 | #ifdef HAVE_STDINT_H |
618 | # include <stdint.h> | |
619 | #endif | |
620 | #ifdef HAVE_UNISTD_H | |
2f1a1aea FCE |
621 | # include <unistd.h> |
622 | #endif" | |
623 | ||
8f223b3e | 624 | gt_needs= |
0710d850 DS |
625 | enable_option_checking=no |
626 | ac_subst_vars='am__EXEEXT_FALSE | |
627 | am__EXEEXT_TRUE | |
628 | LTLIBOBJS | |
629 | LIBOBJS | |
630 | subdirs | |
62c8a962 | 631 | STAP_PREFIX |
85b62eab | 632 | STAP_EXTRA_VERSION |
8f223b3e | 633 | LOCALEDIR |
62c8a962 | 634 | ENABLE_NLS |
26703c63 SM |
635 | HAVE_JAVA_FALSE |
636 | HAVE_JAVA_TRUE | |
9ac164fa | 637 | JAVADIR |
e9b0aba1 SM |
638 | have_jar |
639 | have_javac | |
51030d84 JS |
640 | HAVE_SELINUX_FALSE |
641 | HAVE_SELINUX_TRUE | |
642 | selinux_LIBS | |
643 | selinux_CFLAGS | |
f9794ee4 | 644 | support_section_question |
42f767d0 JL |
645 | HAVE_LIBXML2_FALSE |
646 | HAVE_LIBXML2_TRUE | |
647 | libxml2_LIBS | |
648 | libxml2_CFLAGS | |
649 | HAVE_LIBVIRT_FALSE | |
650 | HAVE_LIBVIRT_TRUE | |
651 | libvirt_LIBS | |
652 | libvirt_CFLAGS | |
138bbe90 JS |
653 | HAVE_DYNINST_FALSE |
654 | HAVE_DYNINST_TRUE | |
655 | DYNINST_LDFLAGS | |
656 | DYNINST_CXXFLAGS | |
62cb4be9 | 657 | CXXCPP |
0710d850 | 658 | DATE |
97859b9d | 659 | staprun_LIBS |
0710d850 DS |
660 | stap_LIBS |
661 | elfutils_abs_srcdir | |
662 | BUILD_ELFUTILS_FALSE | |
663 | BUILD_ELFUTILS_TRUE | |
2dce8c42 DB |
664 | HAVE_AVAHI_FALSE |
665 | HAVE_AVAHI_TRUE | |
28f121c3 DEP |
666 | avahi_LIBS |
667 | avahi_CFLAGS | |
0710d850 DS |
668 | BUILD_SERVER_FALSE |
669 | BUILD_SERVER_TRUE | |
a0e2728a DB |
670 | HAVE_NSS_FALSE |
671 | HAVE_NSS_TRUE | |
28f121c3 | 672 | nss_LIBS |
0710d850 | 673 | nss_CFLAGS |
28f121c3 DEP |
674 | PKG_CONFIG_LIBDIR |
675 | PKG_CONFIG_PATH | |
676 | PKG_CONFIG | |
0710d850 DS |
677 | BUILD_PDFREFDOCS_FALSE |
678 | BUILD_PDFREFDOCS_TRUE | |
679 | XMLTO_STRINGPARAM_FALSE | |
680 | XMLTO_STRINGPARAM_TRUE | |
327a760e FCE |
681 | HAVE_FOP_FALSE |
682 | HAVE_FOP_TRUE | |
683 | have_fop | |
0710d850 DS |
684 | BUILD_REFDOCS_FALSE |
685 | BUILD_REFDOCS_TRUE | |
686 | have_xmlto | |
53ade4da MW |
687 | PUBLICAN_BRAND |
688 | BUILD_PUBLICAN_FALSE | |
689 | BUILD_PUBLICAN_TRUE | |
690 | have_publican | |
0710d850 DS |
691 | BUILD_DOCS_FALSE |
692 | BUILD_DOCS_TRUE | |
693 | have_latex2html | |
694 | have_ps2pdf | |
695 | have_dvips | |
696 | have_latex | |
71aef8fb LB |
697 | HAVE_XVFB_FALSE |
698 | HAVE_XVFB_TRUE | |
699 | have_xvfb | |
0710d850 DS |
700 | BUILD_CRASHMOD_FALSE |
701 | BUILD_CRASHMOD_TRUE | |
702 | staplog_CPPFLAGS | |
703 | BUILD_TRANSLATOR_FALSE | |
704 | BUILD_TRANSLATOR_TRUE | |
705 | sqlite3_LIBS | |
706 | PIECXXFLAGS | |
707 | PIECFLAGS | |
708 | PIELDFLAGS | |
8f223b3e FCE |
709 | POSUB |
710 | LTLIBINTL | |
711 | LIBINTL | |
712 | INTLLIBS | |
713 | LTLIBICONV | |
714 | LIBICONV | |
42f767d0 | 715 | INTL_MACOSX_LIBS |
8f223b3e FCE |
716 | XGETTEXT_EXTRA_OPTIONS |
717 | MSGMERGE | |
718 | XGETTEXT_015 | |
719 | XGETTEXT | |
720 | GMSGFMT_015 | |
721 | MSGFMT_015 | |
722 | GMSGFMT | |
723 | MSGFMT | |
724 | GETTEXT_MACRO_VERSION | |
725 | USE_NLS | |
0710d850 | 726 | RANLIB |
0710d850 DS |
727 | am__fastdepCXX_FALSE |
728 | am__fastdepCXX_TRUE | |
729 | CXXDEPMODE | |
730 | ac_ct_CXX | |
731 | CXXFLAGS | |
732 | CXX | |
8f223b3e FCE |
733 | LN_S |
734 | EGREP | |
735 | GREP | |
736 | CPP | |
0710d850 DS |
737 | am__fastdepCC_FALSE |
738 | am__fastdepCC_TRUE | |
739 | CCDEPMODE | |
c66be968 | 740 | am__nodep |
0710d850 DS |
741 | AMDEPBACKSLASH |
742 | AMDEP_FALSE | |
743 | AMDEP_TRUE | |
744 | am__quote | |
745 | am__include | |
746 | DEPDIR | |
747 | OBJEXT | |
748 | EXEEXT | |
749 | ac_ct_CC | |
750 | CPPFLAGS | |
751 | LDFLAGS | |
752 | CFLAGS | |
753 | CC | |
d9e6d90b WC |
754 | MAINT |
755 | MAINTAINER_MODE_FALSE | |
756 | MAINTAINER_MODE_TRUE | |
0710d850 DS |
757 | AM_BACKSLASH |
758 | AM_DEFAULT_VERBOSITY | |
c66be968 JS |
759 | AM_DEFAULT_V |
760 | AM_V | |
0710d850 DS |
761 | am__untar |
762 | am__tar | |
763 | AMTAR | |
764 | am__leading_dot | |
765 | SET_MAKE | |
766 | AWK | |
767 | mkdir_p | |
7fbd9d09 | 768 | MKDIR_P |
0710d850 DS |
769 | INSTALL_STRIP_PROGRAM |
770 | STRIP | |
771 | install_sh | |
772 | MAKEINFO | |
773 | AUTOHEADER | |
774 | AUTOMAKE | |
775 | AUTOCONF | |
776 | ACLOCAL | |
777 | VERSION | |
778 | PACKAGE | |
779 | CYGPATH_W | |
780 | am__isrc | |
781 | INSTALL_DATA | |
782 | INSTALL_SCRIPT | |
783 | INSTALL_PROGRAM | |
2689a171 SM |
784 | target_os |
785 | target_vendor | |
786 | target_cpu | |
787 | target | |
788 | host_os | |
789 | host_vendor | |
790 | host_cpu | |
791 | host | |
792 | build_os | |
793 | build_vendor | |
794 | build_cpu | |
795 | build | |
0710d850 DS |
796 | target_alias |
797 | host_alias | |
798 | build_alias | |
799 | LIBS | |
800 | ECHO_T | |
801 | ECHO_N | |
802 | ECHO_C | |
803 | DEFS | |
804 | mandir | |
805 | localedir | |
806 | libdir | |
807 | psdir | |
808 | pdfdir | |
809 | dvidir | |
810 | htmldir | |
811 | infodir | |
812 | docdir | |
813 | oldincludedir | |
814 | includedir | |
815 | localstatedir | |
816 | sharedstatedir | |
817 | sysconfdir | |
818 | datadir | |
819 | datarootdir | |
820 | libexecdir | |
821 | sbindir | |
822 | bindir | |
823 | program_transform_name | |
824 | prefix | |
825 | exec_prefix | |
1ef0423a | 826 | PACKAGE_URL |
0710d850 DS |
827 | PACKAGE_BUGREPORT |
828 | PACKAGE_STRING | |
829 | PACKAGE_VERSION | |
830 | PACKAGE_TARNAME | |
831 | PACKAGE_NAME | |
832 | PATH_SEPARATOR | |
833 | SHELL' | |
2f1a1aea | 834 | ac_subst_files='' |
0710d850 DS |
835 | ac_user_opts=' |
836 | enable_option_checking | |
94eb87d1 | 837 | enable_silent_rules |
d9e6d90b | 838 | enable_maintainer_mode |
0710d850 | 839 | enable_dependency_tracking |
97859b9d | 840 | enable_largefile |
8f223b3e FCE |
841 | enable_nls |
842 | with_gnu_ld | |
843 | enable_rpath | |
844 | with_libiconv_prefix | |
845 | with_libintl_prefix | |
0710d850 | 846 | enable_prologues |
0f5d597d | 847 | enable_sdt_probes |
0710d850 DS |
848 | enable_ssp |
849 | enable_pie | |
850 | enable_sqlite | |
851 | enable_translator | |
852 | enable_crash | |
853 | enable_docs | |
53ade4da MW |
854 | enable_publican |
855 | with_publican_brand | |
0710d850 | 856 | enable_refdocs |
28f121c3 | 857 | with_nss |
0710d850 | 858 | enable_server |
28f121c3 | 859 | with_avahi |
0710d850 DS |
860 | with_rpm |
861 | with_elfutils | |
138bbe90 | 862 | with_dyninst |
51030d84 | 863 | with_selinux |
26703c63 | 864 | with_java |
85b62eab | 865 | with_extra_version |
0710d850 | 866 | ' |
7fbd9d09 FCE |
867 | ac_precious_vars='build_alias |
868 | host_alias | |
869 | target_alias | |
870 | CC | |
871 | CFLAGS | |
872 | LDFLAGS | |
873 | LIBS | |
874 | CPPFLAGS | |
8f223b3e | 875 | CPP |
7fbd9d09 FCE |
876 | CXX |
877 | CXXFLAGS | |
878 | CCC | |
1087b83f | 879 | PKG_CONFIG |
5d4aa1f5 FCE |
880 | PKG_CONFIG_PATH |
881 | PKG_CONFIG_LIBDIR | |
28f121c3 DEP |
882 | nss_CFLAGS |
883 | nss_LIBS | |
884 | avahi_CFLAGS | |
885 | avahi_LIBS | |
51030d84 | 886 | CXXCPP |
42f767d0 JL |
887 | libvirt_CFLAGS |
888 | libvirt_LIBS | |
889 | libxml2_CFLAGS | |
890 | libxml2_LIBS | |
51030d84 JS |
891 | selinux_CFLAGS |
892 | selinux_LIBS' | |
97859b9d | 893 | ac_subdirs_all='testsuite' |
2f1a1aea FCE |
894 | |
895 | # Initialize some variables set by options. | |
896 | ac_init_help= | |
897 | ac_init_version=false | |
0710d850 DS |
898 | ac_unrecognized_opts= |
899 | ac_unrecognized_sep= | |
2f1a1aea FCE |
900 | # The variables have the same names as the options, with |
901 | # dashes changed to underlines. | |
902 | cache_file=/dev/null | |
903 | exec_prefix=NONE | |
904 | no_create= | |
905 | no_recursion= | |
906 | prefix=NONE | |
907 | program_prefix=NONE | |
908 | program_suffix=NONE | |
909 | program_transform_name=s,x,x, | |
910 | silent= | |
911 | site= | |
912 | srcdir= | |
913 | verbose= | |
914 | x_includes=NONE | |
915 | x_libraries=NONE | |
916 | ||
917 | # Installation directory options. | |
918 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
919 | # and all the variables that are supposed to be based on exec_prefix | |
920 | # by default will actually change. | |
921 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7fbd9d09 | 922 | # (The list follows the same order as the GNU Coding Standards.) |
2f1a1aea FCE |
923 | bindir='${exec_prefix}/bin' |
924 | sbindir='${exec_prefix}/sbin' | |
925 | libexecdir='${exec_prefix}/libexec' | |
7fbd9d09 FCE |
926 | datarootdir='${prefix}/share' |
927 | datadir='${datarootdir}' | |
2f1a1aea FCE |
928 | sysconfdir='${prefix}/etc' |
929 | sharedstatedir='${prefix}/com' | |
930 | localstatedir='${prefix}/var' | |
2f1a1aea FCE |
931 | includedir='${prefix}/include' |
932 | oldincludedir='/usr/include' | |
7fbd9d09 FCE |
933 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
934 | infodir='${datarootdir}/info' | |
935 | htmldir='${docdir}' | |
936 | dvidir='${docdir}' | |
937 | pdfdir='${docdir}' | |
938 | psdir='${docdir}' | |
939 | libdir='${exec_prefix}/lib' | |
940 | localedir='${datarootdir}/locale' | |
941 | mandir='${datarootdir}/man' | |
2f1a1aea FCE |
942 | |
943 | ac_prev= | |
7fbd9d09 | 944 | ac_dashdash= |
2f1a1aea FCE |
945 | for ac_option |
946 | do | |
947 | # If the previous option needs an argument, assign it. | |
948 | if test -n "$ac_prev"; then | |
7fbd9d09 | 949 | eval $ac_prev=\$ac_option |
2f1a1aea FCE |
950 | ac_prev= |
951 | continue | |
952 | fi | |
953 | ||
7fbd9d09 | 954 | case $ac_option in |
c3de29bd LB |
955 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
956 | *=) ac_optarg= ;; | |
957 | *) ac_optarg=yes ;; | |
7fbd9d09 | 958 | esac |
2f1a1aea FCE |
959 | |
960 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
961 | ||
7fbd9d09 FCE |
962 | case $ac_dashdash$ac_option in |
963 | --) | |
964 | ac_dashdash=yes ;; | |
2f1a1aea FCE |
965 | |
966 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
967 | ac_prev=bindir ;; | |
968 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
969 | bindir=$ac_optarg ;; | |
970 | ||
971 | -build | --build | --buil | --bui | --bu) | |
972 | ac_prev=build_alias ;; | |
973 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
974 | build_alias=$ac_optarg ;; | |
975 | ||
976 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
977 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
978 | ac_prev=cache_file ;; | |
979 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
980 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
981 | cache_file=$ac_optarg ;; | |
982 | ||
983 | --config-cache | -C) | |
984 | cache_file=config.cache ;; | |
985 | ||
7fbd9d09 | 986 | -datadir | --datadir | --datadi | --datad) |
2f1a1aea | 987 | ac_prev=datadir ;; |
7fbd9d09 | 988 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
2f1a1aea FCE |
989 | datadir=$ac_optarg ;; |
990 | ||
7fbd9d09 FCE |
991 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
992 | | --dataroo | --dataro | --datar) | |
993 | ac_prev=datarootdir ;; | |
994 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
995 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
996 | datarootdir=$ac_optarg ;; | |
997 | ||
2f1a1aea | 998 | -disable-* | --disable-*) |
0710d850 | 999 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
2f1a1aea | 1000 | # Reject names that are not valid shell variable names. |
0710d850 | 1001 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
5d4aa1f5 | 1002 | as_fn_error $? "invalid feature name: $ac_useropt" |
0710d850 DS |
1003 | ac_useropt_orig=$ac_useropt |
1004 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1005 | case $ac_user_opts in | |
1006 | *" | |
1007 | "enable_$ac_useropt" | |
1008 | "*) ;; | |
1009 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1010 | ac_unrecognized_sep=', ';; | |
1011 | esac | |
1012 | eval enable_$ac_useropt=no ;; | |
7fbd9d09 FCE |
1013 | |
1014 | -docdir | --docdir | --docdi | --doc | --do) | |
1015 | ac_prev=docdir ;; | |
1016 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1017 | docdir=$ac_optarg ;; | |
1018 | ||
1019 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1020 | ac_prev=dvidir ;; | |
1021 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1022 | dvidir=$ac_optarg ;; | |
2f1a1aea FCE |
1023 | |
1024 | -enable-* | --enable-*) | |
0710d850 | 1025 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
2f1a1aea | 1026 | # Reject names that are not valid shell variable names. |
0710d850 | 1027 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
5d4aa1f5 | 1028 | as_fn_error $? "invalid feature name: $ac_useropt" |
0710d850 DS |
1029 | ac_useropt_orig=$ac_useropt |
1030 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1031 | case $ac_user_opts in | |
1032 | *" | |
1033 | "enable_$ac_useropt" | |
1034 | "*) ;; | |
1035 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1036 | ac_unrecognized_sep=', ';; | |
1037 | esac | |
1038 | eval enable_$ac_useropt=\$ac_optarg ;; | |
2f1a1aea FCE |
1039 | |
1040 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1041 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1042 | | --exec | --exe | --ex) | |
1043 | ac_prev=exec_prefix ;; | |
1044 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1045 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1046 | | --exec=* | --exe=* | --ex=*) | |
1047 | exec_prefix=$ac_optarg ;; | |
1048 | ||
1049 | -gas | --gas | --ga | --g) | |
1050 | # Obsolete; use --with-gas. | |
1051 | with_gas=yes ;; | |
1052 | ||
1053 | -help | --help | --hel | --he | -h) | |
1054 | ac_init_help=long ;; | |
1055 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1056 | ac_init_help=recursive ;; | |
1057 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1058 | ac_init_help=short ;; | |
1059 | ||
1060 | -host | --host | --hos | --ho) | |
1061 | ac_prev=host_alias ;; | |
1062 | -host=* | --host=* | --hos=* | --ho=*) | |
1063 | host_alias=$ac_optarg ;; | |
1064 | ||
7fbd9d09 FCE |
1065 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1066 | ac_prev=htmldir ;; | |
1067 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1068 | | --ht=*) | |
1069 | htmldir=$ac_optarg ;; | |
1070 | ||
2f1a1aea FCE |
1071 | -includedir | --includedir | --includedi | --included | --include \ |
1072 | | --includ | --inclu | --incl | --inc) | |
1073 | ac_prev=includedir ;; | |
1074 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1075 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1076 | includedir=$ac_optarg ;; | |
1077 | ||
1078 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1079 | ac_prev=infodir ;; | |
1080 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1081 | infodir=$ac_optarg ;; | |
1082 | ||
1083 | -libdir | --libdir | --libdi | --libd) | |
1084 | ac_prev=libdir ;; | |
1085 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1086 | libdir=$ac_optarg ;; | |
1087 | ||
1088 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1089 | | --libexe | --libex | --libe) | |
1090 | ac_prev=libexecdir ;; | |
1091 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1092 | | --libexe=* | --libex=* | --libe=*) | |
1093 | libexecdir=$ac_optarg ;; | |
1094 | ||
7fbd9d09 FCE |
1095 | -localedir | --localedir | --localedi | --localed | --locale) |
1096 | ac_prev=localedir ;; | |
1097 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1098 | localedir=$ac_optarg ;; | |
1099 | ||
2f1a1aea | 1100 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7fbd9d09 | 1101 | | --localstate | --localstat | --localsta | --localst | --locals) |
2f1a1aea FCE |
1102 | ac_prev=localstatedir ;; |
1103 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7fbd9d09 | 1104 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
2f1a1aea FCE |
1105 | localstatedir=$ac_optarg ;; |
1106 | ||
1107 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1108 | ac_prev=mandir ;; | |
1109 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1110 | mandir=$ac_optarg ;; | |
1111 | ||
1112 | -nfp | --nfp | --nf) | |
1113 | # Obsolete; use --without-fp. | |
1114 | with_fp=no ;; | |
1115 | ||
1116 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1117 | | --no-cr | --no-c | -n) | |
1118 | no_create=yes ;; | |
1119 | ||
1120 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1121 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1122 | no_recursion=yes ;; | |
1123 | ||
1124 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1125 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1126 | | --oldin | --oldi | --old | --ol | --o) | |
1127 | ac_prev=oldincludedir ;; | |
1128 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1129 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1130 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1131 | oldincludedir=$ac_optarg ;; | |
1132 | ||
1133 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1134 | ac_prev=prefix ;; | |
1135 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1136 | prefix=$ac_optarg ;; | |
1137 | ||
1138 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1139 | | --program-pre | --program-pr | --program-p) | |
1140 | ac_prev=program_prefix ;; | |
1141 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1142 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1143 | program_prefix=$ac_optarg ;; | |
1144 | ||
1145 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1146 | | --program-suf | --program-su | --program-s) | |
1147 | ac_prev=program_suffix ;; | |
1148 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1149 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1150 | program_suffix=$ac_optarg ;; | |
1151 | ||
1152 | -program-transform-name | --program-transform-name \ | |
1153 | | --program-transform-nam | --program-transform-na \ | |
1154 | | --program-transform-n | --program-transform- \ | |
1155 | | --program-transform | --program-transfor \ | |
1156 | | --program-transfo | --program-transf \ | |
1157 | | --program-trans | --program-tran \ | |
1158 | | --progr-tra | --program-tr | --program-t) | |
1159 | ac_prev=program_transform_name ;; | |
1160 | -program-transform-name=* | --program-transform-name=* \ | |
1161 | | --program-transform-nam=* | --program-transform-na=* \ | |
1162 | | --program-transform-n=* | --program-transform-=* \ | |
1163 | | --program-transform=* | --program-transfor=* \ | |
1164 | | --program-transfo=* | --program-transf=* \ | |
1165 | | --program-trans=* | --program-tran=* \ | |
1166 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1167 | program_transform_name=$ac_optarg ;; | |
1168 | ||
7fbd9d09 FCE |
1169 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1170 | ac_prev=pdfdir ;; | |
1171 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1172 | pdfdir=$ac_optarg ;; | |
1173 | ||
1174 | -psdir | --psdir | --psdi | --psd | --ps) | |
1175 | ac_prev=psdir ;; | |
1176 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1177 | psdir=$ac_optarg ;; | |
1178 | ||
2f1a1aea FCE |
1179 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1180 | | -silent | --silent | --silen | --sile | --sil) | |
1181 | silent=yes ;; | |
1182 | ||
1183 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1184 | ac_prev=sbindir ;; | |
1185 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1186 | | --sbi=* | --sb=*) | |
1187 | sbindir=$ac_optarg ;; | |
1188 | ||
1189 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1190 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1191 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1192 | | --sha | --sh) | |
1193 | ac_prev=sharedstatedir ;; | |
1194 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1195 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1196 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1197 | | --sha=* | --sh=*) | |
1198 | sharedstatedir=$ac_optarg ;; | |
1199 | ||
1200 | -site | --site | --sit) | |
1201 | ac_prev=site ;; | |
1202 | -site=* | --site=* | --sit=*) | |
1203 | site=$ac_optarg ;; | |
1204 | ||
1205 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1206 | ac_prev=srcdir ;; | |
1207 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1208 | srcdir=$ac_optarg ;; | |
1209 | ||
1210 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1211 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1212 | ac_prev=sysconfdir ;; | |
1213 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1214 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1215 | sysconfdir=$ac_optarg ;; | |
1216 | ||
1217 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1218 | ac_prev=target_alias ;; | |
1219 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1220 | target_alias=$ac_optarg ;; | |
1221 | ||
1222 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1223 | verbose=yes ;; | |
1224 | ||
1225 | -version | --version | --versio | --versi | --vers | -V) | |
1226 | ac_init_version=: ;; | |
1227 | ||
1228 | -with-* | --with-*) | |
0710d850 | 1229 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
2f1a1aea | 1230 | # Reject names that are not valid shell variable names. |
0710d850 | 1231 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
5d4aa1f5 | 1232 | as_fn_error $? "invalid package name: $ac_useropt" |
0710d850 DS |
1233 | ac_useropt_orig=$ac_useropt |
1234 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1235 | case $ac_user_opts in | |
1236 | *" | |
1237 | "with_$ac_useropt" | |
1238 | "*) ;; | |
1239 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1240 | ac_unrecognized_sep=', ';; | |
1241 | esac | |
1242 | eval with_$ac_useropt=\$ac_optarg ;; | |
2f1a1aea FCE |
1243 | |
1244 | -without-* | --without-*) | |
0710d850 | 1245 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
2f1a1aea | 1246 | # Reject names that are not valid shell variable names. |
0710d850 | 1247 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
5d4aa1f5 | 1248 | as_fn_error $? "invalid package name: $ac_useropt" |
0710d850 DS |
1249 | ac_useropt_orig=$ac_useropt |
1250 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1251 | case $ac_user_opts in | |
1252 | *" | |
1253 | "with_$ac_useropt" | |
1254 | "*) ;; | |
1255 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1256 | ac_unrecognized_sep=', ';; | |
1257 | esac | |
1258 | eval with_$ac_useropt=no ;; | |
2f1a1aea FCE |
1259 | |
1260 | --x) | |
1261 | # Obsolete; use --with-x. | |
1262 | with_x=yes ;; | |
1263 | ||
1264 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1265 | | --x-incl | --x-inc | --x-in | --x-i) | |
1266 | ac_prev=x_includes ;; | |
1267 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1268 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1269 | x_includes=$ac_optarg ;; | |
1270 | ||
1271 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1272 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1273 | ac_prev=x_libraries ;; | |
1274 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1275 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1276 | x_libraries=$ac_optarg ;; | |
1277 | ||
5d4aa1f5 FCE |
1278 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1279 | Try \`$0 --help' for more information" | |
2f1a1aea FCE |
1280 | ;; |
1281 | ||
1282 | *=*) | |
1283 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1284 | # Reject names that are not valid shell variable names. | |
1ef0423a FCE |
1285 | case $ac_envvar in #( |
1286 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
5d4aa1f5 | 1287 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
1ef0423a | 1288 | esac |
7fbd9d09 | 1289 | eval $ac_envvar=\$ac_optarg |
2f1a1aea FCE |
1290 | export $ac_envvar ;; |
1291 | ||
1292 | *) | |
1293 | # FIXME: should be removed in autoconf 3.0. | |
0710d850 | 1294 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
2f1a1aea | 1295 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
0710d850 | 1296 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
c3de29bd | 1297 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
2f1a1aea FCE |
1298 | ;; |
1299 | ||
1300 | esac | |
1301 | done | |
1302 | ||
1303 | if test -n "$ac_prev"; then | |
1304 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
5d4aa1f5 | 1305 | as_fn_error $? "missing argument to $ac_option" |
2f1a1aea FCE |
1306 | fi |
1307 | ||
0710d850 DS |
1308 | if test -n "$ac_unrecognized_opts"; then |
1309 | case $enable_option_checking in | |
1310 | no) ;; | |
5d4aa1f5 | 1311 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
0710d850 DS |
1312 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1313 | esac | |
1314 | fi | |
1315 | ||
1316 | # Check all directory arguments for consistency. | |
7fbd9d09 FCE |
1317 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1318 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1319 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1320 | libdir localedir mandir | |
818ba2bc | 1321 | do |
7fbd9d09 | 1322 | eval ac_val=\$$ac_var |
0710d850 DS |
1323 | # Remove trailing slashes. |
1324 | case $ac_val in | |
1325 | */ ) | |
1326 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1327 | eval $ac_var=\$ac_val;; | |
1328 | esac | |
1329 | # Be sure to have absolute directory names. | |
8ae7a94a | 1330 | case $ac_val in |
7fbd9d09 FCE |
1331 | [\\/$]* | ?:[\\/]* ) continue;; |
1332 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
2f1a1aea | 1333 | esac |
5d4aa1f5 | 1334 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
2f1a1aea FCE |
1335 | done |
1336 | ||
1337 | # There might be people who depend on the old broken behavior: `$host' | |
1338 | # used to hold the argument of --host etc. | |
1339 | # FIXME: To remove some day. | |
1340 | build=$build_alias | |
1341 | host=$host_alias | |
1342 | target=$target_alias | |
1343 | ||
1344 | # FIXME: To remove some day. | |
1345 | if test "x$host_alias" != x; then | |
1346 | if test "x$build_alias" = x; then | |
1347 | cross_compiling=maybe | |
2f1a1aea FCE |
1348 | elif test "x$build_alias" != "x$host_alias"; then |
1349 | cross_compiling=yes | |
1350 | fi | |
1351 | fi | |
1352 | ||
1353 | ac_tool_prefix= | |
1354 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1355 | ||
1356 | test "$silent" = yes && exec 6>/dev/null | |
1357 | ||
1358 | ||
7fbd9d09 FCE |
1359 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1360 | ac_ls_di=`ls -di .` && | |
1361 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
5d4aa1f5 | 1362 | as_fn_error $? "working directory cannot be determined" |
7fbd9d09 | 1363 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
5d4aa1f5 | 1364 | as_fn_error $? "pwd does not report name of working directory" |
7fbd9d09 FCE |
1365 | |
1366 | ||
2f1a1aea FCE |
1367 | # Find the source files, if location was not specified. |
1368 | if test -z "$srcdir"; then | |
1369 | ac_srcdir_defaulted=yes | |
7fbd9d09 | 1370 | # Try the directory containing this script, then the parent directory. |
0710d850 DS |
1371 | ac_confdir=`$as_dirname -- "$as_myself" || |
1372 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1373 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1374 | X"$as_myself" : 'X\(//\)$' \| \ | |
1375 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1376 | $as_echo X"$as_myself" | | |
7fbd9d09 FCE |
1377 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1378 | s//\1/ | |
1379 | q | |
1380 | } | |
1381 | /^X\(\/\/\)[^/].*/{ | |
1382 | s//\1/ | |
1383 | q | |
1384 | } | |
1385 | /^X\(\/\/\)$/{ | |
1386 | s//\1/ | |
1387 | q | |
1388 | } | |
1389 | /^X\(\/\).*/{ | |
1390 | s//\1/ | |
1391 | q | |
1392 | } | |
1393 | s/.*/./; q'` | |
2f1a1aea | 1394 | srcdir=$ac_confdir |
7fbd9d09 | 1395 | if test ! -r "$srcdir/$ac_unique_file"; then |
2f1a1aea FCE |
1396 | srcdir=.. |
1397 | fi | |
1398 | else | |
1399 | ac_srcdir_defaulted=no | |
1400 | fi | |
7fbd9d09 FCE |
1401 | if test ! -r "$srcdir/$ac_unique_file"; then |
1402 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
5d4aa1f5 | 1403 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
8ae7a94a | 1404 | fi |
7fbd9d09 FCE |
1405 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1406 | ac_abs_confdir=`( | |
5d4aa1f5 | 1407 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
7fbd9d09 FCE |
1408 | pwd)` |
1409 | # When building in place, set srcdir=. | |
1410 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1411 | srcdir=. | |
1412 | fi | |
1413 | # Remove unnecessary trailing slashes from srcdir. | |
1414 | # Double slashes in file names in object file debugging info | |
1415 | # mess up M-x gdb in Emacs. | |
1416 | case $srcdir in | |
1417 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1418 | esac | |
1419 | for ac_var in $ac_precious_vars; do | |
1420 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1421 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1422 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1423 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1424 | done | |
2f1a1aea FCE |
1425 | |
1426 | # | |
1427 | # Report the --help message. | |
1428 | # | |
1429 | if test "$ac_init_help" = "long"; then | |
1430 | # Omit some internal or obsolete options to make the list less imposing. | |
1431 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1432 | cat <<_ACEOF | |
d7ca839b | 1433 | \`configure' configures systemtap 2.5 to adapt to many kinds of systems. |
2f1a1aea FCE |
1434 | |
1435 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1436 | ||
1437 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1438 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1439 | ||
1440 | Defaults for the options are specified in brackets. | |
1441 | ||
1442 | Configuration: | |
1443 | -h, --help display this help and exit | |
1444 | --help=short display options specific to this package | |
1445 | --help=recursive display the short help of all the included packages | |
1446 | -V, --version display version information and exit | |
5d4aa1f5 | 1447 | -q, --quiet, --silent do not print \`checking ...' messages |
2f1a1aea FCE |
1448 | --cache-file=FILE cache test results in FILE [disabled] |
1449 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1450 | -n, --no-create do not create output files | |
1451 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1452 | ||
2f1a1aea FCE |
1453 | Installation directories: |
1454 | --prefix=PREFIX install architecture-independent files in PREFIX | |
0710d850 | 1455 | [$ac_default_prefix] |
2f1a1aea | 1456 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
0710d850 | 1457 | [PREFIX] |
2f1a1aea FCE |
1458 | |
1459 | By default, \`make install' will install all the files in | |
1460 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1461 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1462 | for instance \`--prefix=\$HOME'. | |
1463 | ||
1464 | For better control, use the options below. | |
1465 | ||
1466 | Fine tuning of the installation directories: | |
0710d850 DS |
1467 | --bindir=DIR user executables [EPREFIX/bin] |
1468 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1469 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1470 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1471 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1472 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1473 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1474 | --includedir=DIR C header files [PREFIX/include] | |
1475 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1476 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1477 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1478 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1479 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1480 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1481 | --docdir=DIR documentation root [DATAROOTDIR/doc/systemtap] | |
1482 | --htmldir=DIR html documentation [DOCDIR] | |
1483 | --dvidir=DIR dvi documentation [DOCDIR] | |
1484 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1485 | --psdir=DIR ps documentation [DOCDIR] | |
2f1a1aea FCE |
1486 | _ACEOF |
1487 | ||
1488 | cat <<\_ACEOF | |
1489 | ||
1490 | Program names: | |
1491 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1492 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1493 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
8f223b3e FCE |
1494 | |
1495 | System types: | |
1496 | --build=BUILD configure for building on BUILD [guessed] | |
1497 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
2689a171 | 1498 | --target=TARGET configure for building compilers for TARGET [HOST] |
2f1a1aea FCE |
1499 | _ACEOF |
1500 | fi | |
1501 | ||
1502 | if test -n "$ac_init_help"; then | |
1503 | case $ac_init_help in | |
d7ca839b | 1504 | short | recursive ) echo "Configuration of systemtap 2.5:";; |
2f1a1aea FCE |
1505 | esac |
1506 | cat <<\_ACEOF | |
1507 | ||
1508 | Optional Features: | |
0710d850 | 1509 | --disable-option-checking ignore unrecognized --enable/--with options |
2f1a1aea FCE |
1510 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1511 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
d9e6d90b WC |
1512 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1513 | --disable-silent-rules verbose build output (undo: "make V=0") | |
8eef2738 LB |
1514 | --enable-maintainer-mode |
1515 | enable make rules and dependencies not useful (and | |
1516 | sometimes confusing) to the casual installer | |
8eef2738 LB |
1517 | --enable-dependency-tracking |
1518 | do not reject slow dependency extractors | |
1519 | --disable-dependency-tracking | |
1520 | speeds up one-time build | |
97859b9d | 1521 | --disable-largefile omit support for large files |
8f223b3e FCE |
1522 | --disable-nls do not use Native Language Support |
1523 | --disable-rpath do not hardcode runtime library paths | |
44f75386 | 1524 | --enable-prologues make -P prologue-searching default |
0f5d597d | 1525 | --disable-sdt-probes disable process.mark probes in stap, staprun, stapio |
bbfd8c1a | 1526 | --disable-ssp disable gcc stack-protector |
882ddac1 | 1527 | --enable-pie enable position-independent-executable |
9921a199 | 1528 | --enable-sqlite build with sqlite support |
6d14a4a9 | 1529 | --disable-translator build only runtime utilities |
564eb0a8 DS |
1530 | --enable-crash[=DIRECTORY] |
1531 | enable crash extension (default is disabled). | |
1532 | Optional DIRECTORY is the path to the crash header | |
1533 | file (needed if installed in a non-standard | |
1534 | location). | |
465e8fbf FCE |
1535 | --enable-docs enable building documentation (default on if latex |
1536 | etc. found). | |
53ade4da MW |
1537 | --enable-publican enable building publican documentation guides |
1538 | (default on if publican found and other | |
1539 | documentation built). | |
92aff3c7 WC |
1540 | --enable-refdocs enable building reference documentation (default on |
1541 | if xmlto etc. found and other documentation built). | |
a0e2728a DB |
1542 | --enable-server enable building of stap-server (default on if nss |
1543 | etc. found). | |
2f1a1aea | 1544 | |
4d9087fc RM |
1545 | Optional Packages: |
1546 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1547 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
42f767d0 | 1548 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
8f223b3e FCE |
1549 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
1550 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
1551 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib | |
1552 | --without-libintl-prefix don't search for libintl in includedir and libdir | |
53ade4da MW |
1553 | --with-publican-brand=BRAND |
1554 | building publican documentation guides using given | |
89bc1a6a | 1555 | brand (defaults to "common"). |
28f121c3 DEP |
1556 | --without-nss Do not use NSS even if present |
1557 | --without-avahi Do not use Avahi even if present | |
0f5d597d | 1558 | --with-rpm query rpm database for missing debuginfos |
4d9087fc RM |
1559 | --with-elfutils=DIRECTORY |
1560 | find elfutils source code in DIRECTORY | |
138bbe90 JS |
1561 | --with-dyninst=DIRECTORY |
1562 | find dyninst headers/libraries in DIRECTORY | |
51030d84 | 1563 | --without-selinux Do not use libselinux even if present |
26703c63 SM |
1564 | --with-java=DIRECTORY Specify JDK directory to compile libHelperSDT.so |
1565 | against (default is /usr/lib/jvm/java) | |
85b62eab FCE |
1566 | --with-extra-version=STRING |
1567 | Add STRING to stap -V version | |
4d9087fc | 1568 | |
2f1a1aea FCE |
1569 | Some influential environment variables: |
1570 | CC C compiler command | |
1571 | CFLAGS C compiler flags | |
1572 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1573 | nonstandard directory <lib dir> | |
7fbd9d09 | 1574 | LIBS libraries to pass to the linker, e.g. -l<library> |
1ef0423a | 1575 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
7fbd9d09 | 1576 | you have headers in a nonstandard directory <include dir> |
8f223b3e | 1577 | CPP C preprocessor |
2f1a1aea FCE |
1578 | CXX C++ compiler command |
1579 | CXXFLAGS C++ compiler flags | |
1087b83f | 1580 | PKG_CONFIG path to pkg-config utility |
5d4aa1f5 FCE |
1581 | PKG_CONFIG_PATH |
1582 | directories to add to pkg-config's search path | |
1583 | PKG_CONFIG_LIBDIR | |
1584 | path overriding pkg-config's built-in search path | |
28f121c3 DEP |
1585 | nss_CFLAGS C compiler flags for nss, overriding pkg-config |
1586 | nss_LIBS linker flags for nss, overriding pkg-config | |
1587 | avahi_CFLAGS | |
1588 | C compiler flags for avahi, overriding pkg-config | |
1589 | avahi_LIBS linker flags for avahi, overriding pkg-config | |
f8a49389 | 1590 | CXXCPP C++ preprocessor |
42f767d0 JL |
1591 | libvirt_CFLAGS |
1592 | C compiler flags for libvirt, overriding pkg-config | |
1593 | libvirt_LIBS | |
1594 | linker flags for libvirt, overriding pkg-config | |
1595 | libxml2_CFLAGS | |
1596 | C compiler flags for libxml2, overriding pkg-config | |
1597 | libxml2_LIBS | |
1598 | linker flags for libxml2, overriding pkg-config | |
51030d84 JS |
1599 | selinux_CFLAGS |
1600 | C compiler flags for selinux, overriding pkg-config | |
1601 | selinux_LIBS | |
1602 | linker flags for selinux, overriding pkg-config | |
2f1a1aea FCE |
1603 | |
1604 | Use these variables to override the choices made by `configure' or to help | |
1605 | it to find libraries and programs with nonstandard names/locations. | |
1606 | ||
306dd4f8 | 1607 | Report bugs to <systemtap@sourceware.org>. |
2f1a1aea | 1608 | _ACEOF |
7fbd9d09 | 1609 | ac_status=$? |
2f1a1aea FCE |
1610 | fi |
1611 | ||
1612 | if test "$ac_init_help" = "recursive"; then | |
1613 | # If there are subdirs, report their specific --help. | |
2f1a1aea | 1614 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
0710d850 DS |
1615 | test -d "$ac_dir" || |
1616 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1617 | continue | |
2f1a1aea FCE |
1618 | ac_builddir=. |
1619 | ||
7fbd9d09 FCE |
1620 | case "$ac_dir" in |
1621 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1622 | *) | |
0710d850 | 1623 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7fbd9d09 | 1624 | # A ".." for each directory in $ac_dir_suffix. |
0710d850 | 1625 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7fbd9d09 FCE |
1626 | case $ac_top_builddir_sub in |
1627 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1628 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1629 | esac ;; | |
1630 | esac | |
1631 | ac_abs_top_builddir=$ac_pwd | |
1632 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1633 | # for backward compatibility: | |
1634 | ac_top_builddir=$ac_top_build_prefix | |
2f1a1aea FCE |
1635 | |
1636 | case $srcdir in | |
7fbd9d09 | 1637 | .) # We are building in place. |
2f1a1aea | 1638 | ac_srcdir=. |
7fbd9d09 FCE |
1639 | ac_top_srcdir=$ac_top_builddir_sub |
1640 | ac_abs_top_srcdir=$ac_pwd ;; | |
1641 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
2f1a1aea | 1642 | ac_srcdir=$srcdir$ac_dir_suffix; |
7fbd9d09 FCE |
1643 | ac_top_srcdir=$srcdir |
1644 | ac_abs_top_srcdir=$srcdir ;; | |
1645 | *) # Relative name. | |
1646 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1647 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1648 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
818ba2bc | 1649 | esac |
7fbd9d09 FCE |
1650 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1651 | ||
1652 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1653 | # Check for guested configure. | |
1654 | if test -f "$ac_srcdir/configure.gnu"; then | |
1655 | echo && | |
1656 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1657 | elif test -f "$ac_srcdir/configure"; then | |
1658 | echo && | |
1659 | $SHELL "$ac_srcdir/configure" --help=recursive | |
2f1a1aea | 1660 | else |
0710d850 | 1661 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7fbd9d09 FCE |
1662 | fi || ac_status=$? |
1663 | cd "$ac_pwd" || { ac_status=$?; break; } | |
2f1a1aea FCE |
1664 | done |
1665 | fi | |
1666 | ||
7fbd9d09 | 1667 | test -n "$ac_init_help" && exit $ac_status |
2f1a1aea FCE |
1668 | if $ac_init_version; then |
1669 | cat <<\_ACEOF | |
d7ca839b | 1670 | systemtap configure 2.5 |
8eef2738 | 1671 | generated by GNU Autoconf 2.69 |
2f1a1aea | 1672 | |
8eef2738 | 1673 | Copyright (C) 2012 Free Software Foundation, Inc. |
2f1a1aea FCE |
1674 | This configure script is free software; the Free Software Foundation |
1675 | gives unlimited permission to copy, distribute and modify it. | |
1676 | _ACEOF | |
7fbd9d09 | 1677 | exit |
2f1a1aea | 1678 | fi |
4b5627b1 | 1679 | |
1ef0423a FCE |
1680 | ## ------------------------ ## |
1681 | ## Autoconf initialization. ## | |
1682 | ## ------------------------ ## | |
4b5627b1 | 1683 | |
1ef0423a FCE |
1684 | # ac_fn_c_try_compile LINENO |
1685 | # -------------------------- | |
1686 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1687 | ac_fn_c_try_compile () | |
ec1a2239 | 1688 | { |
1ef0423a FCE |
1689 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1690 | rm -f conftest.$ac_objext | |
1691 | if { { ac_try="$ac_compile" | |
1692 | case "(($ac_try" in | |
1693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1694 | *) ac_try_echo=$ac_try;; | |
1695 | esac | |
1696 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1697 | $as_echo "$ac_try_echo"; } >&5 | |
1698 | (eval "$ac_compile") 2>conftest.err | |
1699 | ac_status=$? | |
1700 | if test -s conftest.err; then | |
1701 | grep -v '^ *+' conftest.err >conftest.er1 | |
1702 | cat conftest.er1 >&5 | |
1703 | mv -f conftest.er1 conftest.err | |
1704 | fi | |
1705 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1706 | test $ac_status = 0; } && { | |
1707 | test -z "$ac_c_werror_flag" || | |
1708 | test ! -s conftest.err | |
1709 | } && test -s conftest.$ac_objext; then : | |
1710 | ac_retval=0 | |
1711 | else | |
1712 | $as_echo "$as_me: failed program was:" >&5 | |
1713 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4b5627b1 | 1714 | |
1ef0423a FCE |
1715 | ac_retval=1 |
1716 | fi | |
c3de29bd | 1717 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1ef0423a | 1718 | as_fn_set_status $ac_retval |
ec1a2239 | 1719 | |
1ef0423a | 1720 | } # ac_fn_c_try_compile |
ec1a2239 | 1721 | |
1ef0423a FCE |
1722 | # ac_fn_c_try_cpp LINENO |
1723 | # ---------------------- | |
1724 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1725 | ac_fn_c_try_cpp () | |
1726 | { | |
1727 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1728 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1729 | case "(($ac_try" in | |
1730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1731 | *) ac_try_echo=$ac_try;; | |
1732 | esac | |
1733 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1734 | $as_echo "$ac_try_echo"; } >&5 | |
1735 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1736 | ac_status=$? | |
1737 | if test -s conftest.err; then | |
1738 | grep -v '^ *+' conftest.err >conftest.er1 | |
1739 | cat conftest.er1 >&5 | |
1740 | mv -f conftest.er1 conftest.err | |
1741 | fi | |
1742 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
c3de29bd | 1743 | test $ac_status = 0; } > conftest.i && { |
1ef0423a FCE |
1744 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1745 | test ! -s conftest.err | |
1746 | }; then : | |
1747 | ac_retval=0 | |
1748 | else | |
1749 | $as_echo "$as_me: failed program was:" >&5 | |
1750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1751 | ||
1752 | ac_retval=1 | |
1753 | fi | |
c3de29bd | 1754 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1ef0423a FCE |
1755 | as_fn_set_status $ac_retval |
1756 | ||
1757 | } # ac_fn_c_try_cpp | |
1758 | ||
1ef0423a FCE |
1759 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1760 | # ------------------------------------------------------- | |
1761 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1762 | # the include files in INCLUDES and setting the cache variable VAR | |
1763 | # accordingly. | |
1764 | ac_fn_c_check_header_mongrel () | |
1765 | { | |
1766 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
c3de29bd | 1767 | if eval \${$3+:} false; then : |
1ef0423a FCE |
1768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1769 | $as_echo_n "checking for $2... " >&6; } | |
c3de29bd | 1770 | if eval \${$3+:} false; then : |
1ef0423a FCE |
1771 | $as_echo_n "(cached) " >&6 |
1772 | fi | |
1773 | eval ac_res=\$$3 | |
1774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1775 | $as_echo "$ac_res" >&6; } | |
1776 | else | |
1777 | # Is the header compilable? | |
1778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1779 | $as_echo_n "checking $2 usability... " >&6; } | |
1780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1781 | /* end confdefs.h. */ | |
1782 | $4 | |
1783 | #include <$2> | |
1784 | _ACEOF | |
1785 | if ac_fn_c_try_compile "$LINENO"; then : | |
1786 | ac_header_compiler=yes | |
1787 | else | |
1788 | ac_header_compiler=no | |
1789 | fi | |
1790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1792 | $as_echo "$ac_header_compiler" >&6; } | |
1793 | ||
1794 | # Is the header present? | |
1795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1796 | $as_echo_n "checking $2 presence... " >&6; } | |
1797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1798 | /* end confdefs.h. */ | |
1799 | #include <$2> | |
1800 | _ACEOF | |
1801 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1802 | ac_header_preproc=yes | |
1803 | else | |
1804 | ac_header_preproc=no | |
1805 | fi | |
c3de29bd | 1806 | rm -f conftest.err conftest.i conftest.$ac_ext |
1ef0423a FCE |
1807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1808 | $as_echo "$ac_header_preproc" >&6; } | |
1809 | ||
1810 | # So? What about this header? | |
1811 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1812 | yes:no: ) | |
1813 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1814 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1815 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1816 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1817 | ;; | |
1818 | no:yes:* ) | |
1819 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1820 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1821 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1822 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1823 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1824 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1825 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1826 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1827 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1828 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
5d4aa1f5 | 1829 | ( $as_echo "## --------------------------------------- ## |
306dd4f8 | 1830 | ## Report this to systemtap@sourceware.org ## |
5d4aa1f5 | 1831 | ## --------------------------------------- ##" |
1ef0423a FCE |
1832 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
1833 | ;; | |
1834 | esac | |
1835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1836 | $as_echo_n "checking for $2... " >&6; } | |
c3de29bd | 1837 | if eval \${$3+:} false; then : |
1ef0423a FCE |
1838 | $as_echo_n "(cached) " >&6 |
1839 | else | |
1840 | eval "$3=\$ac_header_compiler" | |
1841 | fi | |
1842 | eval ac_res=\$$3 | |
1843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1844 | $as_echo "$ac_res" >&6; } | |
1845 | fi | |
c3de29bd | 1846 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1ef0423a FCE |
1847 | |
1848 | } # ac_fn_c_check_header_mongrel | |
1849 | ||
8f223b3e FCE |
1850 | # ac_fn_c_try_run LINENO |
1851 | # ---------------------- | |
1852 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1853 | # that executables *can* be run. | |
1854 | ac_fn_c_try_run () | |
1855 | { | |
1856 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1857 | if { { ac_try="$ac_link" | |
1858 | case "(($ac_try" in | |
1859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1860 | *) ac_try_echo=$ac_try;; | |
1861 | esac | |
1862 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1863 | $as_echo "$ac_try_echo"; } >&5 | |
1864 | (eval "$ac_link") 2>&5 | |
1865 | ac_status=$? | |
1866 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1867 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1868 | { { case "(($ac_try" in | |
1869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1870 | *) ac_try_echo=$ac_try;; | |
1871 | esac | |
1872 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1873 | $as_echo "$ac_try_echo"; } >&5 | |
1874 | (eval "$ac_try") 2>&5 | |
1875 | ac_status=$? | |
1876 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1877 | test $ac_status = 0; }; }; then : | |
1878 | ac_retval=0 | |
1879 | else | |
1880 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1881 | $as_echo "$as_me: failed program was:" >&5 | |
1882 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1883 | ||
1884 | ac_retval=$ac_status | |
1885 | fi | |
1886 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
c3de29bd | 1887 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
8f223b3e FCE |
1888 | as_fn_set_status $ac_retval |
1889 | ||
1890 | } # ac_fn_c_try_run | |
1891 | ||
1ef0423a FCE |
1892 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1893 | # ------------------------------------------------------- | |
1894 | # Tests whether HEADER exists and can be compiled using the include files in | |
1895 | # INCLUDES, setting the cache variable VAR accordingly. | |
1896 | ac_fn_c_check_header_compile () | |
1897 | { | |
1898 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1900 | $as_echo_n "checking for $2... " >&6; } | |
c3de29bd | 1901 | if eval \${$3+:} false; then : |
1ef0423a FCE |
1902 | $as_echo_n "(cached) " >&6 |
1903 | else | |
1904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1905 | /* end confdefs.h. */ | |
1906 | $4 | |
1907 | #include <$2> | |
1908 | _ACEOF | |
1909 | if ac_fn_c_try_compile "$LINENO"; then : | |
1910 | eval "$3=yes" | |
1911 | else | |
1912 | eval "$3=no" | |
1913 | fi | |
1914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1915 | fi | |
1916 | eval ac_res=\$$3 | |
1917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1918 | $as_echo "$ac_res" >&6; } | |
c3de29bd | 1919 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1ef0423a FCE |
1920 | |
1921 | } # ac_fn_c_check_header_compile | |
1922 | ||
8f223b3e FCE |
1923 | # ac_fn_cxx_try_compile LINENO |
1924 | # ---------------------------- | |
1925 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1926 | ac_fn_cxx_try_compile () | |
1927 | { | |
1928 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1929 | rm -f conftest.$ac_objext | |
1930 | if { { ac_try="$ac_compile" | |
1931 | case "(($ac_try" in | |
1932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1933 | *) ac_try_echo=$ac_try;; | |
1934 | esac | |
1935 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1936 | $as_echo "$ac_try_echo"; } >&5 | |
1937 | (eval "$ac_compile") 2>conftest.err | |
1938 | ac_status=$? | |
1939 | if test -s conftest.err; then | |
1940 | grep -v '^ *+' conftest.err >conftest.er1 | |
1941 | cat conftest.er1 >&5 | |
1942 | mv -f conftest.er1 conftest.err | |
1943 | fi | |
1944 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1945 | test $ac_status = 0; } && { | |
1946 | test -z "$ac_cxx_werror_flag" || | |
1947 | test ! -s conftest.err | |
1948 | } && test -s conftest.$ac_objext; then : | |
1949 | ac_retval=0 | |
1950 | else | |
1951 | $as_echo "$as_me: failed program was:" >&5 | |
1952 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1953 | ||
1954 | ac_retval=1 | |
1955 | fi | |
c3de29bd | 1956 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
8f223b3e FCE |
1957 | as_fn_set_status $ac_retval |
1958 | ||
1959 | } # ac_fn_cxx_try_compile | |
1960 | ||
1ef0423a FCE |
1961 | # ac_fn_c_try_link LINENO |
1962 | # ----------------------- | |
1963 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1964 | ac_fn_c_try_link () | |
1965 | { | |
1966 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1967 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1968 | if { { ac_try="$ac_link" | |
1969 | case "(($ac_try" in | |
1970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1971 | *) ac_try_echo=$ac_try;; | |
1972 | esac | |
1973 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1974 | $as_echo "$ac_try_echo"; } >&5 | |
1975 | (eval "$ac_link") 2>conftest.err | |
1976 | ac_status=$? | |
1977 | if test -s conftest.err; then | |
1978 | grep -v '^ *+' conftest.err >conftest.er1 | |
1979 | cat conftest.er1 >&5 | |
1980 | mv -f conftest.er1 conftest.err | |
1981 | fi | |
1982 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1983 | test $ac_status = 0; } && { | |
1984 | test -z "$ac_c_werror_flag" || | |
1985 | test ! -s conftest.err | |
1986 | } && test -s conftest$ac_exeext && { | |
1987 | test "$cross_compiling" = yes || | |
8eef2738 | 1988 | test -x conftest$ac_exeext |
1ef0423a FCE |
1989 | }; then : |
1990 | ac_retval=0 | |
1991 | else | |
1992 | $as_echo "$as_me: failed program was:" >&5 | |
1993 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1994 | ||
1995 | ac_retval=1 | |
1996 | fi | |
1997 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1998 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1999 | # interfere with the next link command; also delete a directory that is | |
2000 | # left behind by Apple's compiler. We do this before executing the actions. | |
2001 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
c3de29bd | 2002 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1ef0423a FCE |
2003 | as_fn_set_status $ac_retval |
2004 | ||
2005 | } # ac_fn_c_try_link | |
2006 | ||
e04a4b41 JS |
2007 | # ac_fn_c_check_func LINENO FUNC VAR |
2008 | # ---------------------------------- | |
2009 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2010 | ac_fn_c_check_func () | |
2011 | { | |
2012 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2014 | $as_echo_n "checking for $2... " >&6; } | |
c3de29bd | 2015 | if eval \${$3+:} false; then : |
e04a4b41 JS |
2016 | $as_echo_n "(cached) " >&6 |
2017 | else | |
2018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2019 | /* end confdefs.h. */ | |
2020 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2021 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2022 | #define $2 innocuous_$2 | |
2023 | ||
2024 | /* System header to define __stub macros and hopefully few prototypes, | |
2025 | which can conflict with char $2 (); below. | |
2026 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2027 | <limits.h> exists even on freestanding compilers. */ | |
2028 | ||
2029 | #ifdef __STDC__ | |
2030 | # include <limits.h> | |
2031 | #else | |
2032 | # include <assert.h> | |
2033 | #endif | |
2034 | ||
2035 | #undef $2 | |
2036 | ||
2037 | /* Override any GCC internal prototype to avoid an error. | |
2038 | Use char because int might match the return type of a GCC | |
2039 | builtin and then its argument prototype would still apply. */ | |
2040 | #ifdef __cplusplus | |
2041 | extern "C" | |
2042 | #endif | |
2043 | char $2 (); | |
2044 | /* The GNU C library defines this for functions which it implements | |
2045 | to always fail with ENOSYS. Some functions are actually named | |
2046 | something starting with __ and the normal name is an alias. */ | |
2047 | #if defined __stub_$2 || defined __stub___$2 | |
2048 | choke me | |
2049 | #endif | |
2050 | ||
2051 | int | |
2052 | main () | |
2053 | { | |
2054 | return $2 (); | |
2055 | ; | |
2056 | return 0; | |
2057 | } | |
2058 | _ACEOF | |
2059 | if ac_fn_c_try_link "$LINENO"; then : | |
2060 | eval "$3=yes" | |
2061 | else | |
2062 | eval "$3=no" | |
2063 | fi | |
2064 | rm -f core conftest.err conftest.$ac_objext \ | |
2065 | conftest$ac_exeext conftest.$ac_ext | |
2066 | fi | |
2067 | eval ac_res=\$$3 | |
2068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2069 | $as_echo "$ac_res" >&6; } | |
c3de29bd | 2070 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
e04a4b41 JS |
2071 | |
2072 | } # ac_fn_c_check_func | |
2073 | ||
1ef0423a FCE |
2074 | # ac_fn_cxx_try_cpp LINENO |
2075 | # ------------------------ | |
2076 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
2077 | ac_fn_cxx_try_cpp () | |
2078 | { | |
2079 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2080 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
2081 | case "(($ac_try" in | |
2082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2083 | *) ac_try_echo=$ac_try;; | |
2084 | esac | |
2085 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2086 | $as_echo "$ac_try_echo"; } >&5 | |
2087 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
2088 | ac_status=$? | |
2089 | if test -s conftest.err; then | |
2090 | grep -v '^ *+' conftest.err >conftest.er1 | |
2091 | cat conftest.er1 >&5 | |
2092 | mv -f conftest.er1 conftest.err | |
2093 | fi | |
2094 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
c3de29bd | 2095 | test $ac_status = 0; } > conftest.i && { |
1ef0423a FCE |
2096 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
2097 | test ! -s conftest.err | |
2098 | }; then : | |
2099 | ac_retval=0 | |
2100 | else | |
2101 | $as_echo "$as_me: failed program was:" >&5 | |
2102 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2103 | ||
2104 | ac_retval=1 | |
2105 | fi | |
c3de29bd | 2106 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1ef0423a FCE |
2107 | as_fn_set_status $ac_retval |
2108 | ||
2109 | } # ac_fn_cxx_try_cpp | |
2110 | ||
2111 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES | |
2112 | # --------------------------------------------------------- | |
2113 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2114 | # the include files in INCLUDES and setting the cache variable VAR | |
2115 | # accordingly. | |
2116 | ac_fn_cxx_check_header_mongrel () | |
2117 | { | |
2118 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
c3de29bd | 2119 | if eval \${$3+:} false; then : |
1ef0423a FCE |
2120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2121 | $as_echo_n "checking for $2... " >&6; } | |
c3de29bd | 2122 | if eval \${$3+:} false; then : |
1ef0423a FCE |
2123 | $as_echo_n "(cached) " >&6 |
2124 | fi | |
2125 | eval ac_res=\$$3 | |
2126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2127 | $as_echo "$ac_res" >&6; } | |
2128 | else | |
2129 | # Is the header compilable? | |
2130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2131 | $as_echo_n "checking $2 usability... " >&6; } | |
2132 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2133 | /* end confdefs.h. */ | |
2134 | $4 | |
2135 | #include <$2> | |
2136 | _ACEOF | |
2137 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2138 | ac_header_compiler=yes | |
2139 | else | |
2140 | ac_header_compiler=no | |
2141 | fi | |
2142 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2144 | $as_echo "$ac_header_compiler" >&6; } | |
2145 | ||
2146 | # Is the header present? | |
2147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2148 | $as_echo_n "checking $2 presence... " >&6; } | |
2149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2150 | /* end confdefs.h. */ | |
2151 | #include <$2> | |
2152 | _ACEOF | |
2153 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
2154 | ac_header_preproc=yes | |
2155 | else | |
2156 | ac_header_preproc=no | |
2157 | fi | |
c3de29bd | 2158 | rm -f conftest.err conftest.i conftest.$ac_ext |
1ef0423a FCE |
2159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
2160 | $as_echo "$ac_header_preproc" >&6; } | |
2161 | ||
2162 | # So? What about this header? | |
2163 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( | |
2164 | yes:no: ) | |
2165 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2166 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2167 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2168 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2169 | ;; | |
2170 | no:yes:* ) | |
2171 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2172 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2173 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2174 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2175 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2176 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2177 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2178 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2179 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2180 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
5d4aa1f5 | 2181 | ( $as_echo "## --------------------------------------- ## |
306dd4f8 | 2182 | ## Report this to systemtap@sourceware.org ## |
5d4aa1f5 | 2183 | ## --------------------------------------- ##" |
1ef0423a FCE |
2184 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
2185 | ;; | |
2186 | esac | |
2187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2188 | $as_echo_n "checking for $2... " >&6; } | |
c3de29bd | 2189 | if eval \${$3+:} false; then : |
1ef0423a FCE |
2190 | $as_echo_n "(cached) " >&6 |
2191 | else | |
2192 | eval "$3=\$ac_header_compiler" | |
2193 | fi | |
2194 | eval ac_res=\$$3 | |
2195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2196 | $as_echo "$ac_res" >&6; } | |
2197 | fi | |
c3de29bd | 2198 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1ef0423a FCE |
2199 | |
2200 | } # ac_fn_cxx_check_header_mongrel | |
2201 | cat >config.log <<_ACEOF | |
2202 | This file contains any messages produced by compilers while | |
2203 | running configure, to aid debugging if configure makes a mistake. | |
2204 | ||
d7ca839b | 2205 | It was created by systemtap $as_me 2.5, which was |
8eef2738 | 2206 | generated by GNU Autoconf 2.69. Invocation command line was |
1ef0423a FCE |
2207 | |
2208 | $ $0 $@ | |
2209 | ||
2210 | _ACEOF | |
2211 | exec 5>>config.log | |
2212 | { | |
2213 | cat <<_ASUNAME | |
2214 | ## --------- ## | |
2215 | ## Platform. ## | |
2216 | ## --------- ## | |
2217 | ||
2218 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2219 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2220 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2221 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2222 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2223 | ||
2224 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2225 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2226 | ||
2227 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2228 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2229 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2230 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2231 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2232 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2233 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2234 | ||
2235 | _ASUNAME | |
2f1a1aea FCE |
2236 | |
2237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2238 | for as_dir in $PATH | |
2239 | do | |
2240 | IFS=$as_save_IFS | |
2241 | test -z "$as_dir" && as_dir=. | |
1ef0423a FCE |
2242 | $as_echo "PATH: $as_dir" |
2243 | done | |
7fbd9d09 | 2244 | IFS=$as_save_IFS |
2f1a1aea FCE |
2245 | |
2246 | } >&5 | |
2247 | ||
2248 | cat >&5 <<_ACEOF | |
2249 | ||
2250 | ||
2251 | ## ----------- ## | |
2252 | ## Core tests. ## | |
2253 | ## ----------- ## | |
2254 | ||
2255 | _ACEOF | |
2256 | ||
2257 | ||
2258 | # Keep a trace of the command line. | |
2259 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2260 | # Strip out --silent because we don't want to record it for future runs. | |
2261 | # Also quote any args containing shell meta-characters. | |
2262 | # Make two passes to allow for proper duplicate-argument suppression. | |
2263 | ac_configure_args= | |
2264 | ac_configure_args0= | |
2265 | ac_configure_args1= | |
2f1a1aea FCE |
2266 | ac_must_keep_next=false |
2267 | for ac_pass in 1 2 | |
2268 | do | |
2269 | for ac_arg | |
2270 | do | |
2271 | case $ac_arg in | |
2272 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2273 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2274 | | -silent | --silent | --silen | --sile | --sil) | |
2275 | continue ;; | |
7fbd9d09 | 2276 | *\'*) |
0710d850 | 2277 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
2f1a1aea FCE |
2278 | esac |
2279 | case $ac_pass in | |
1ef0423a | 2280 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
2f1a1aea | 2281 | 2) |
1ef0423a | 2282 | as_fn_append ac_configure_args1 " '$ac_arg'" |
2f1a1aea FCE |
2283 | if test $ac_must_keep_next = true; then |
2284 | ac_must_keep_next=false # Got value, back to normal. | |
2285 | else | |
2286 | case $ac_arg in | |
2287 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2288 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2289 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2290 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2291 | case "$ac_configure_args0 " in | |
2292 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2293 | esac | |
2294 | ;; | |
2295 | -* ) ac_must_keep_next=true ;; | |
2296 | esac | |
2297 | fi | |
1ef0423a | 2298 | as_fn_append ac_configure_args " '$ac_arg'" |
2f1a1aea FCE |
2299 | ;; |
2300 | esac | |
2301 | done | |
2302 | done | |
1ef0423a FCE |
2303 | { ac_configure_args0=; unset ac_configure_args0;} |
2304 | { ac_configure_args1=; unset ac_configure_args1;} | |
2f1a1aea FCE |
2305 | |
2306 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2307 | # config.log. We remove comments because anyway the quotes in there | |
2308 | # would cause problems or look ugly. | |
7fbd9d09 FCE |
2309 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2310 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2f1a1aea FCE |
2311 | trap 'exit_status=$? |
2312 | # Save into config.log some information that might help in debugging. | |
2313 | { | |
2314 | echo | |
2315 | ||
5d4aa1f5 | 2316 | $as_echo "## ---------------- ## |
2f1a1aea | 2317 | ## Cache variables. ## |
5d4aa1f5 | 2318 | ## ---------------- ##" |
2f1a1aea FCE |
2319 | echo |
2320 | # The following way of writing the cache mishandles newlines in values, | |
7fbd9d09 FCE |
2321 | ( |
2322 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2323 | eval ac_val=\$$ac_var | |
2324 | case $ac_val in #( | |
2325 | *${as_nl}*) | |
2326 | case $ac_var in #( | |
1ef0423a | 2327 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
0710d850 | 2328 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
7fbd9d09 FCE |
2329 | esac |
2330 | case $ac_var in #( | |
2331 | _ | IFS | as_nl) ;; #( | |
0710d850 | 2332 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
1ef0423a | 2333 | *) { eval $ac_var=; unset $ac_var;} ;; |
7fbd9d09 FCE |
2334 | esac ;; |
2335 | esac | |
2336 | done | |
2f1a1aea | 2337 | (set) 2>&1 | |
7fbd9d09 FCE |
2338 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2339 | *${as_nl}ac_space=\ *) | |
2f1a1aea | 2340 | sed -n \ |
7fbd9d09 FCE |
2341 | "s/'\''/'\''\\\\'\'''\''/g; |
2342 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2343 | ;; #( | |
2f1a1aea | 2344 | *) |
7fbd9d09 | 2345 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
2f1a1aea | 2346 | ;; |
7fbd9d09 FCE |
2347 | esac | |
2348 | sort | |
2349 | ) | |
2f1a1aea FCE |
2350 | echo |
2351 | ||
5d4aa1f5 | 2352 | $as_echo "## ----------------- ## |
2f1a1aea | 2353 | ## Output variables. ## |
5d4aa1f5 | 2354 | ## ----------------- ##" |
2f1a1aea FCE |
2355 | echo |
2356 | for ac_var in $ac_subst_vars | |
2357 | do | |
7fbd9d09 FCE |
2358 | eval ac_val=\$$ac_var |
2359 | case $ac_val in | |
0710d850 | 2360 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7fbd9d09 | 2361 | esac |
0710d850 | 2362 | $as_echo "$ac_var='\''$ac_val'\''" |
2f1a1aea FCE |
2363 | done | sort |
2364 | echo | |
2365 | ||
2366 | if test -n "$ac_subst_files"; then | |
5d4aa1f5 | 2367 | $as_echo "## ------------------- ## |
7fbd9d09 | 2368 | ## File substitutions. ## |
5d4aa1f5 | 2369 | ## ------------------- ##" |
2f1a1aea FCE |
2370 | echo |
2371 | for ac_var in $ac_subst_files | |
2372 | do | |
7fbd9d09 FCE |
2373 | eval ac_val=\$$ac_var |
2374 | case $ac_val in | |
0710d850 | 2375 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7fbd9d09 | 2376 | esac |
0710d850 | 2377 | $as_echo "$ac_var='\''$ac_val'\''" |
2f1a1aea FCE |
2378 | done | sort |
2379 | echo | |
2380 | fi | |
2381 | ||
2382 | if test -s confdefs.h; then | |
5d4aa1f5 | 2383 | $as_echo "## ----------- ## |
2f1a1aea | 2384 | ## confdefs.h. ## |
5d4aa1f5 | 2385 | ## ----------- ##" |
2f1a1aea | 2386 | echo |
7fbd9d09 | 2387 | cat confdefs.h |
2f1a1aea FCE |
2388 | echo |
2389 | fi | |
2390 | test "$ac_signal" != 0 && | |
0710d850 DS |
2391 | $as_echo "$as_me: caught signal $ac_signal" |
2392 | $as_echo "$as_me: exit $exit_status" | |
2f1a1aea | 2393 | } >&5 |
7fbd9d09 FCE |
2394 | rm -f core *.core core.conftest.* && |
2395 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2f1a1aea | 2396 | exit $exit_status |
7fbd9d09 | 2397 | ' 0 |
2f1a1aea | 2398 | for ac_signal in 1 2 13 15; do |
1ef0423a | 2399 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
2f1a1aea FCE |
2400 | done |
2401 | ac_signal=0 | |
2402 | ||
2403 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7fbd9d09 | 2404 | rm -f -r conftest* confdefs.h |
2f1a1aea | 2405 | |
1ef0423a FCE |
2406 | $as_echo "/* confdefs.h */" > confdefs.h |
2407 | ||
2f1a1aea FCE |
2408 | # Predefined preprocessor variables. |
2409 | ||
2410 | cat >>confdefs.h <<_ACEOF | |
2411 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2412 | _ACEOF | |
2413 | ||
2f1a1aea FCE |
2414 | cat >>confdefs.h <<_ACEOF |
2415 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2416 | _ACEOF | |
2417 | ||
2f1a1aea FCE |
2418 | cat >>confdefs.h <<_ACEOF |
2419 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2420 | _ACEOF | |
2421 | ||
2f1a1aea FCE |
2422 | cat >>confdefs.h <<_ACEOF |
2423 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2424 | _ACEOF | |
2425 | ||
ec1a2239 | 2426 | cat >>confdefs.h <<_ACEOF |
5e5aee9f | 2427 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
ec1a2239 LB |
2428 | _ACEOF |
2429 | ||
1ef0423a FCE |
2430 | cat >>confdefs.h <<_ACEOF |
2431 | #define PACKAGE_URL "$PACKAGE_URL" | |
2432 | _ACEOF | |
2433 | ||
2f1a1aea FCE |
2434 | |
2435 | # Let the site file select an alternate cache file if it wants to. | |
0710d850 DS |
2436 | # Prefer an explicitly selected file to automatically selected ones. |
2437 | ac_site_file1=NONE | |
2438 | ac_site_file2=NONE | |
7fbd9d09 | 2439 | if test -n "$CONFIG_SITE"; then |
5d4aa1f5 FCE |
2440 | # We do not want a PATH search for config.site. |
2441 | case $CONFIG_SITE in #(( | |
2442 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2443 | */*) ac_site_file1=$CONFIG_SITE;; | |
2444 | *) ac_site_file1=./$CONFIG_SITE;; | |
2445 | esac | |
7fbd9d09 | 2446 | elif test "x$prefix" != xNONE; then |
0710d850 DS |
2447 | ac_site_file1=$prefix/share/config.site |
2448 | ac_site_file2=$prefix/etc/config.site | |
7fbd9d09 | 2449 | else |
0710d850 DS |
2450 | ac_site_file1=$ac_default_prefix/share/config.site |
2451 | ac_site_file2=$ac_default_prefix/etc/config.site | |
818ba2bc | 2452 | fi |
0710d850 | 2453 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
7fbd9d09 | 2454 | do |
0710d850 | 2455 | test "x$ac_site_file" = xNONE && continue |
1ef0423a FCE |
2456 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
2457 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
0710d850 | 2458 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
2f1a1aea | 2459 | sed 's/^/| /' "$ac_site_file" >&5 |
5d4aa1f5 FCE |
2460 | . "$ac_site_file" \ |
2461 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2462 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2463 | as_fn_error $? "failed to load site script $ac_site_file | |
2464 | See \`config.log' for more details" "$LINENO" 5; } | |
2f1a1aea FCE |
2465 | fi |
2466 | done | |
2467 | ||
2468 | if test -r "$cache_file"; then | |
1ef0423a FCE |
2469 | # Some versions of bash will fail to source /dev/null (special files |
2470 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2471 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2472 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
0710d850 | 2473 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
2f1a1aea | 2474 | case $cache_file in |
7fbd9d09 FCE |
2475 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2476 | *) . "./$cache_file";; | |
2f1a1aea FCE |
2477 | esac |
2478 | fi | |
2479 | else | |
1ef0423a | 2480 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
0710d850 | 2481 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
2f1a1aea FCE |
2482 | >$cache_file |
2483 | fi | |
2484 | ||
8f223b3e | 2485 | gt_needs="$gt_needs " |
2f1a1aea FCE |
2486 | # Check that the precious variables saved in the cache have kept the same |
2487 | # value. | |
2488 | ac_cache_corrupted=false | |
7fbd9d09 | 2489 | for ac_var in $ac_precious_vars; do |
2f1a1aea FCE |
2490 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2491 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7fbd9d09 FCE |
2492 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2493 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2f1a1aea FCE |
2494 | case $ac_old_set,$ac_new_set in |
2495 | set,) | |
1ef0423a | 2496 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
0710d850 | 2497 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
2f1a1aea FCE |
2498 | ac_cache_corrupted=: ;; |
2499 | ,set) | |
1ef0423a | 2500 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
0710d850 | 2501 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
2f1a1aea FCE |
2502 | ac_cache_corrupted=: ;; |
2503 | ,);; | |
2504 | *) | |
2505 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
0710d850 DS |
2506 | # differences in whitespace do not lead to failure. |
2507 | ac_old_val_w=`echo x $ac_old_val` | |
2508 | ac_new_val_w=`echo x $ac_new_val` | |
2509 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1ef0423a | 2510 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
0710d850 DS |
2511 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2512 | ac_cache_corrupted=: | |
2513 | else | |
1ef0423a | 2514 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
0710d850 DS |
2515 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2516 | eval $ac_var=\$ac_old_val | |
2517 | fi | |
1ef0423a | 2518 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
0710d850 | 2519 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
1ef0423a | 2520 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
0710d850 | 2521 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
2f1a1aea FCE |
2522 | fi;; |
2523 | esac | |
2524 | # Pass precious variables to config.status. | |
2525 | if test "$ac_new_set" = set; then | |
2526 | case $ac_new_val in | |
0710d850 | 2527 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
4a3c19da EM |
2528 | *) ac_arg=$ac_var=$ac_new_val ;; |
2529 | esac | |
2530 | case " $ac_configure_args " in | |
2531 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1ef0423a | 2532 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
4a3c19da EM |
2533 | esac |
2534 | fi | |
2535 | done | |
2536 | if $ac_cache_corrupted; then | |
1ef0423a | 2537 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
0710d850 | 2538 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
1ef0423a | 2539 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
0710d850 | 2540 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
5d4aa1f5 | 2541 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
4a3c19da | 2542 | fi |
1ef0423a FCE |
2543 | ## -------------------- ## |
2544 | ## Main body of script. ## | |
2545 | ## -------------------- ## | |
2f1a1aea | 2546 | |
7fbd9d09 FCE |
2547 | ac_ext=c |
2548 | ac_cpp='$CPP $CPPFLAGS' | |
2549 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2550 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2551 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2f1a1aea FCE |
2552 | |
2553 | ||
2554 | ||
2f1a1aea | 2555 | ac_aux_dir= |
412e1bf7 | 2556 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
5d4aa1f5 FCE |
2557 | if test -f "$ac_dir/install-sh"; then |
2558 | ac_aux_dir=$ac_dir | |
2559 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2560 | break | |
2561 | elif test -f "$ac_dir/install.sh"; then | |
2562 | ac_aux_dir=$ac_dir | |
2563 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2564 | break | |
2565 | elif test -f "$ac_dir/shtool"; then | |
2566 | ac_aux_dir=$ac_dir | |
2567 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2568 | break | |
2569 | fi | |
2f1a1aea FCE |
2570 | done |
2571 | if test -z "$ac_aux_dir"; then | |
5d4aa1f5 | 2572 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
2f1a1aea | 2573 | fi |
7fbd9d09 FCE |
2574 | |
2575 | # These three variables are undocumented and unsupported, | |
2576 | # and are intended to be withdrawn in a future Autoconf release. | |
2577 | # They can cause serious problems if a builder's source tree is in a directory | |
2578 | # whose full name contains unusual characters. | |
2579 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2580 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2581 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2582 | ||
2f1a1aea | 2583 | |
2689a171 SM |
2584 | # Make sure we can run config.sub. |
2585 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2586 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2587 | ||
2588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2589 | $as_echo_n "checking build system type... " >&6; } | |
2590 | if ${ac_cv_build+:} false; then : | |
2591 | $as_echo_n "(cached) " >&6 | |
2592 | else | |
2593 | ac_build_alias=$build_alias | |
2594 | test "x$ac_build_alias" = x && | |
2595 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2596 | test "x$ac_build_alias" = x && | |
2597 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
2598 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2599 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2600 | ||
2601 | fi | |
2602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2603 | $as_echo "$ac_cv_build" >&6; } | |
2604 | case $ac_cv_build in | |
2605 | *-*-*) ;; | |
2606 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
2607 | esac | |
2608 | build=$ac_cv_build | |
2609 | ac_save_IFS=$IFS; IFS='-' | |
2610 | set x $ac_cv_build | |
2611 | shift | |
2612 | build_cpu=$1 | |
2613 | build_vendor=$2 | |
2614 | shift; shift | |
2615 | # Remember, the first character of IFS is used to create $*, | |
2616 | # except with old shells: | |
2617 | build_os=$* | |
2618 | IFS=$ac_save_IFS | |
2619 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2620 | ||
2621 | ||
2622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2623 | $as_echo_n "checking host system type... " >&6; } | |
2624 | if ${ac_cv_host+:} false; then : | |
2625 | $as_echo_n "(cached) " >&6 | |
2626 | else | |
2627 | if test "x$host_alias" = x; then | |
2628 | ac_cv_host=$ac_cv_build | |
2629 | else | |
2630 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2631 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2632 | fi | |
2633 | ||
2634 | fi | |
2635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2636 | $as_echo "$ac_cv_host" >&6; } | |
2637 | case $ac_cv_host in | |
2638 | *-*-*) ;; | |
2639 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
2640 | esac | |
2641 | host=$ac_cv_host | |
2642 | ac_save_IFS=$IFS; IFS='-' | |
2643 | set x $ac_cv_host | |
2644 | shift | |
2645 | host_cpu=$1 | |
2646 | host_vendor=$2 | |
2647 | shift; shift | |
2648 | # Remember, the first character of IFS is used to create $*, | |
2649 | # except with old shells: | |
2650 | host_os=$* | |
2651 | IFS=$ac_save_IFS | |
2652 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2653 | ||
2654 | ||
2655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
2656 | $as_echo_n "checking target system type... " >&6; } | |
2657 | if ${ac_cv_target+:} false; then : | |
2658 | $as_echo_n "(cached) " >&6 | |
2659 | else | |
2660 | if test "x$target_alias" = x; then | |
2661 | ac_cv_target=$ac_cv_host | |
2662 | else | |
2663 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2664 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2665 | fi | |
2666 | ||
2667 | fi | |
2668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
2669 | $as_echo "$ac_cv_target" >&6; } | |
2670 | case $ac_cv_target in | |
2671 | *-*-*) ;; | |
2672 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | |
2673 | esac | |
2674 | target=$ac_cv_target | |
2675 | ac_save_IFS=$IFS; IFS='-' | |
2676 | set x $ac_cv_target | |
2677 | shift | |
2678 | target_cpu=$1 | |
2679 | target_vendor=$2 | |
2680 | shift; shift | |
2681 | # Remember, the first character of IFS is used to create $*, | |
2682 | # except with old shells: | |
2683 | target_os=$* | |
2684 | IFS=$ac_save_IFS | |
2685 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2686 | ||
2687 | ||
2688 | # The aliases save the names the user supplied, while $host etc. | |
2689 | # will get canonicalized. | |
2690 | test -n "$target_alias" && | |
2691 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2692 | NONENONEs,x,x, && | |
2693 | program_prefix=${target_alias}- | |
2694 | ||
2695 | ||
d9e6d90b | 2696 | am__api_version='1.13' |
2689a171 | 2697 | |
2f1a1aea FCE |
2698 | # Find a good install program. We prefer a C program (faster), |
2699 | # so one script is as good as another. But avoid the broken or | |
2700 | # incompatible versions: | |
2701 | # SysV /etc/install, /usr/sbin/install | |
2702 | # SunOS /usr/etc/install | |
2703 | # IRIX /sbin/install | |
2704 | # AIX /bin/install | |
2705 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2706 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2707 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2708 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2709 | # OS/2's system install, which has a completely different semantic | |
2710 | # ./install, which can be erroneously created by make from ./install.sh. | |
0710d850 | 2711 | # Reject install programs that cannot install multiple files. |
1ef0423a | 2712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
0710d850 | 2713 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
2f1a1aea | 2714 | if test -z "$INSTALL"; then |
c3de29bd | 2715 | if ${ac_cv_path_install+:} false; then : |
0710d850 | 2716 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2717 | else |
2718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2719 | for as_dir in $PATH | |
2720 | do | |
2721 | IFS=$as_save_IFS | |
2722 | test -z "$as_dir" && as_dir=. | |
1ef0423a FCE |
2723 | # Account for people who put trailing slashes in PATH elements. |
2724 | case $as_dir/ in #(( | |
2725 | ./ | .// | /[cC]/* | \ | |
2f1a1aea | 2726 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
1ef0423a | 2727 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
2f1a1aea FCE |
2728 | /usr/ucb/* ) ;; |
2729 | *) | |
2730 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2731 | # Don't use installbsd from OSF since it installs stuff as root | |
2732 | # by default. | |
2733 | for ac_prog in ginstall scoinst install; do | |
2734 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 2735 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
2f1a1aea FCE |
2736 | if test $ac_prog = install && |
2737 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2738 | # AIX install. It has an incompatible calling convention. | |
2739 | : | |
2740 | elif test $ac_prog = install && | |
2741 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2742 | # program-specific install script used by HP pwplus--don't use. | |
2743 | : | |
2744 | else | |
0710d850 DS |
2745 | rm -rf conftest.one conftest.two conftest.dir |
2746 | echo one > conftest.one | |
2747 | echo two > conftest.two | |
2748 | mkdir conftest.dir | |
2749 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2750 | test -s conftest.one && test -s conftest.two && | |
2751 | test -s conftest.dir/conftest.one && | |
2752 | test -s conftest.dir/conftest.two | |
2753 | then | |
2754 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2755 | break 3 | |
2756 | fi | |
2f1a1aea FCE |
2757 | fi |
2758 | fi | |
2759 | done | |
2760 | done | |
2761 | ;; | |
2762 | esac | |
0710d850 | 2763 | |
1ef0423a | 2764 | done |
7fbd9d09 | 2765 | IFS=$as_save_IFS |
2f1a1aea | 2766 | |
0710d850 | 2767 | rm -rf conftest.one conftest.two conftest.dir |
2f1a1aea FCE |
2768 | |
2769 | fi | |
2770 | if test "${ac_cv_path_install+set}" = set; then | |
2771 | INSTALL=$ac_cv_path_install | |
2772 | else | |
7fbd9d09 FCE |
2773 | # As a last resort, use the slow shell script. Don't cache a |
2774 | # value for INSTALL within a source directory, because that will | |
2f1a1aea | 2775 | # break other packages using the cache if that directory is |
7fbd9d09 | 2776 | # removed, or if the value is a relative name. |
2f1a1aea FCE |
2777 | INSTALL=$ac_install_sh |
2778 | fi | |
2779 | fi | |
1ef0423a | 2780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
0710d850 | 2781 | $as_echo "$INSTALL" >&6; } |
2f1a1aea FCE |
2782 | |
2783 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2784 | # It thinks the first close brace ends the variable substitution. | |
2785 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2786 | ||
2787 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2788 | ||
2789 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2790 | ||
1ef0423a | 2791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
0710d850 | 2792 | $as_echo_n "checking whether build environment is sane... " >&6; } |
0710d850 DS |
2793 | # Reject unsafe characters in $srcdir or the absolute working directory |
2794 | # name. Accept space and tab only in the latter. | |
2795 | am_lf=' | |
2796 | ' | |
2797 | case `pwd` in | |
2798 | *[\\\"\#\$\&\'\`$am_lf]*) | |
5d4aa1f5 | 2799 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
0710d850 DS |
2800 | esac |
2801 | case $srcdir in | |
2802 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
8eef2738 | 2803 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
0710d850 DS |
2804 | esac |
2805 | ||
8eef2738 | 2806 | # Do 'set' in a subshell so we don't clobber the current shell's |
2f1a1aea FCE |
2807 | # arguments. Must try -L first in case configure is actually a |
2808 | # symlink; some systems play weird games with the mod time of symlinks | |
2809 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2810 | # directory). | |
2811 | if ( | |
8eef2738 LB |
2812 | am_has_slept=no |
2813 | for am_try in 1 2; do | |
2814 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2815 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2816 | if test "$*" = "X"; then | |
2817 | # -L didn't work. | |
2818 | set X `ls -t "$srcdir/configure" conftest.file` | |
2819 | fi | |
2820 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2821 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2822 | ||
2823 | # If neither matched, then we have a broken ls. This can happen | |
2824 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2825 | # broken ls alias from the environment. This has actually | |
2826 | # happened. Such a system could not be considered "sane". | |
2827 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2828 | alias in your environment" "$LINENO" 5 | |
2829 | fi | |
2830 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2831 | break | |
2832 | fi | |
2833 | # Just in case. | |
2834 | sleep 1 | |
2835 | am_has_slept=yes | |
2836 | done | |
2f1a1aea FCE |
2837 | test "$2" = conftest.file |
2838 | ) | |
2839 | then | |
2840 | # Ok. | |
2841 | : | |
2842 | else | |
5d4aa1f5 | 2843 | as_fn_error $? "newly created file is older than distributed files! |
1ef0423a | 2844 | Check your system clock" "$LINENO" 5 |
2f1a1aea | 2845 | fi |
1ef0423a | 2846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
0710d850 | 2847 | $as_echo "yes" >&6; } |
8eef2738 LB |
2848 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
2849 | # generated files are strictly newer. | |
2850 | am_sleep_pid= | |
2851 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2852 | ( sleep 1 ) & | |
2853 | am_sleep_pid=$! | |
2854 | fi | |
2855 | ||
2856 | rm -f conftest.file | |
2857 | ||
2f1a1aea | 2858 | test "$program_prefix" != NONE && |
7fbd9d09 | 2859 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
2f1a1aea FCE |
2860 | # Use a double $ so make ignores it. |
2861 | test "$program_suffix" != NONE && | |
7fbd9d09 | 2862 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
0710d850 | 2863 | # Double any \ or $. |
2f1a1aea | 2864 | # By default was `s,x,x', remove it if useless. |
0710d850 DS |
2865 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2866 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2f1a1aea FCE |
2867 | |
2868 | # expand $ac_aux_dir to an absolute path | |
2869 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2870 | ||
0710d850 DS |
2871 | if test x"${MISSING+set}" != xset; then |
2872 | case $am_aux_dir in | |
2873 | *\ * | *\ *) | |
2874 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2875 | *) | |
2876 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2877 | esac | |
2878 | fi | |
2f1a1aea | 2879 | # Use eval to expand $SHELL |
d9e6d90b WC |
2880 | if eval "$MISSING --is-lightweight"; then |
2881 | am_missing_run="$MISSING " | |
2f1a1aea FCE |
2882 | else |
2883 | am_missing_run= | |
8eef2738 LB |
2884 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
2885 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
0710d850 DS |
2886 | fi |
2887 | ||
2888 | if test x"${install_sh}" != xset; then | |
2889 | case $am_aux_dir in | |
2890 | *\ * | *\ *) | |
2891 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2892 | *) | |
2893 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2894 | esac | |
8d9d8fe1 DB |
2895 | fi |
2896 | ||
8eef2738 LB |
2897 | # Installed binaries are usually stripped using 'strip' when the user |
2898 | # run "make install-strip". However 'strip' might not be the right | |
0710d850 | 2899 | # tool to use in cross-compilation environments, therefore Automake |
8eef2738 | 2900 | # will honor the 'STRIP' environment variable to overrule this program. |
0710d850 DS |
2901 | if test "$cross_compiling" != no; then |
2902 | if test -n "$ac_tool_prefix"; then | |
2903 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2904 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
1ef0423a | 2905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 2906 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 2907 | if ${ac_cv_prog_STRIP+:} false; then : |
0710d850 DS |
2908 | $as_echo_n "(cached) " >&6 |
2909 | else | |
2910 | if test -n "$STRIP"; then | |
2911 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2912 | else | |
2913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2914 | for as_dir in $PATH | |
2915 | do | |
2916 | IFS=$as_save_IFS | |
2917 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 2918 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 2919 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0710d850 | 2920 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
1ef0423a | 2921 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0710d850 DS |
2922 | break 2 |
2923 | fi | |
2924 | done | |
1ef0423a | 2925 | done |
0710d850 DS |
2926 | IFS=$as_save_IFS |
2927 | ||
2928 | fi | |
2929 | fi | |
2930 | STRIP=$ac_cv_prog_STRIP | |
2931 | if test -n "$STRIP"; then | |
1ef0423a | 2932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
0710d850 DS |
2933 | $as_echo "$STRIP" >&6; } |
2934 | else | |
1ef0423a | 2935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 DS |
2936 | $as_echo "no" >&6; } |
2937 | fi | |
2938 | ||
2939 | ||
2940 | fi | |
2941 | if test -z "$ac_cv_prog_STRIP"; then | |
2942 | ac_ct_STRIP=$STRIP | |
2943 | # Extract the first word of "strip", so it can be a program name with args. | |
2944 | set dummy strip; ac_word=$2 | |
1ef0423a | 2945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 2946 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 2947 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
0710d850 DS |
2948 | $as_echo_n "(cached) " >&6 |
2949 | else | |
2950 | if test -n "$ac_ct_STRIP"; then | |
2951 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2952 | else | |
2953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2954 | for as_dir in $PATH | |
2955 | do | |
2956 | IFS=$as_save_IFS | |
2957 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 2958 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 2959 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0710d850 | 2960 | ac_cv_prog_ac_ct_STRIP="strip" |
1ef0423a | 2961 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0710d850 DS |
2962 | break 2 |
2963 | fi | |
2964 | done | |
1ef0423a | 2965 | done |
0710d850 DS |
2966 | IFS=$as_save_IFS |
2967 | ||
2968 | fi | |
2969 | fi | |
2970 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2971 | if test -n "$ac_ct_STRIP"; then | |
1ef0423a | 2972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
0710d850 DS |
2973 | $as_echo "$ac_ct_STRIP" >&6; } |
2974 | else | |
1ef0423a | 2975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 DS |
2976 | $as_echo "no" >&6; } |
2977 | fi | |
2978 | ||
2979 | if test "x$ac_ct_STRIP" = x; then | |
2980 | STRIP=":" | |
2981 | else | |
2982 | case $cross_compiling:$ac_tool_warned in | |
2983 | yes:) | |
1ef0423a | 2984 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
0710d850 DS |
2985 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2986 | ac_tool_warned=yes ;; | |
2987 | esac | |
2988 | STRIP=$ac_ct_STRIP | |
2989 | fi | |
2990 | else | |
2991 | STRIP="$ac_cv_prog_STRIP" | |
2992 | fi | |
2993 | ||
2994 | fi | |
2995 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2996 | ||
1ef0423a | 2997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
0710d850 | 2998 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
7fbd9d09 | 2999 | if test -z "$MKDIR_P"; then |
c3de29bd | 3000 | if ${ac_cv_path_mkdir+:} false; then : |
0710d850 | 3001 | $as_echo_n "(cached) " >&6 |
7fbd9d09 FCE |
3002 | else |
3003 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3004 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3005 | do | |
3006 | IFS=$as_save_IFS | |
3007 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 3008 | for ac_prog in mkdir gmkdir; do |
7fbd9d09 | 3009 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 3010 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
7fbd9d09 FCE |
3011 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
3012 | 'mkdir (GNU coreutils) '* | \ | |
3013 | 'mkdir (coreutils) '* | \ | |
3014 | 'mkdir (fileutils) '4.1*) | |
3015 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3016 | break 3;; | |
3017 | esac | |
3018 | done | |
3019 | done | |
1ef0423a | 3020 | done |
7fbd9d09 FCE |
3021 | IFS=$as_save_IFS |
3022 | ||
3023 | fi | |
3024 | ||
1ef0423a | 3025 | test -d ./--version && rmdir ./--version |
7fbd9d09 FCE |
3026 | if test "${ac_cv_path_mkdir+set}" = set; then |
3027 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2f1a1aea | 3028 | else |
7fbd9d09 FCE |
3029 | # As a last resort, use the slow shell script. Don't cache a |
3030 | # value for MKDIR_P within a source directory, because that will | |
3031 | # break other packages using the cache if that directory is | |
3032 | # removed, or if the value is a relative name. | |
7fbd9d09 | 3033 | MKDIR_P="$ac_install_sh -d" |
2f1a1aea FCE |
3034 | fi |
3035 | fi | |
1ef0423a | 3036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
0710d850 | 3037 | $as_echo "$MKDIR_P" >&6; } |
7fbd9d09 | 3038 | |
2f1a1aea FCE |
3039 | for ac_prog in gawk mawk nawk awk |
3040 | do | |
3041 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3042 | set dummy $ac_prog; ac_word=$2 | |
1ef0423a | 3043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 3044 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 3045 | if ${ac_cv_prog_AWK+:} false; then : |
0710d850 | 3046 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3047 | else |
3048 | if test -n "$AWK"; then | |
3049 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3050 | else | |
3051 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3052 | for as_dir in $PATH | |
3053 | do | |
3054 | IFS=$as_save_IFS | |
3055 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 3056 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 3057 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea | 3058 | ac_cv_prog_AWK="$ac_prog" |
1ef0423a | 3059 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3060 | break 2 |
3061 | fi | |
3062 | done | |
1ef0423a | 3063 | done |
7fbd9d09 | 3064 | IFS=$as_save_IFS |
2f1a1aea FCE |
3065 | |
3066 | fi | |
3067 | fi | |
3068 | AWK=$ac_cv_prog_AWK | |
3069 | if test -n "$AWK"; then | |
1ef0423a | 3070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
0710d850 | 3071 | $as_echo "$AWK" >&6; } |
2f1a1aea | 3072 | else |
1ef0423a | 3073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 3074 | $as_echo "no" >&6; } |
2f1a1aea FCE |
3075 | fi |
3076 | ||
7fbd9d09 | 3077 | |
2f1a1aea FCE |
3078 | test -n "$AWK" && break |
3079 | done | |
3080 | ||
1ef0423a | 3081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
0710d850 DS |
3082 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
3083 | set x ${MAKE-make} | |
3084 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
c3de29bd | 3085 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
0710d850 | 3086 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3087 | else |
3088 | cat >conftest.make <<\_ACEOF | |
412e1bf7 FCE |
3089 | SHELL = /bin/sh |
3090 | all: | |
3091 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3092 | _ACEOF | |
5d4aa1f5 | 3093 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
412e1bf7 FCE |
3094 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3095 | *@@@%%%=?*=@@@%%%*) | |
3096 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3097 | *) | |
3098 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3099 | esac | |
3100 | rm -f conftest.make | |
4a3c19da | 3101 | fi |
412e1bf7 | 3102 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
1ef0423a | 3103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
0710d850 | 3104 | $as_echo "yes" >&6; } |
412e1bf7 | 3105 | SET_MAKE= |
4a3c19da | 3106 | else |
1ef0423a | 3107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 3108 | $as_echo "no" >&6; } |
412e1bf7 | 3109 | SET_MAKE="MAKE=${MAKE-make}" |
2f1a1aea FCE |
3110 | fi |
3111 | ||
412e1bf7 FCE |
3112 | rm -rf .tst 2>/dev/null |
3113 | mkdir .tst 2>/dev/null | |
3114 | if test -d .tst; then | |
3115 | am__leading_dot=. | |
4a3c19da | 3116 | else |
412e1bf7 | 3117 | am__leading_dot=_ |
2f1a1aea | 3118 | fi |
412e1bf7 | 3119 | rmdir .tst 2>/dev/null |
2f1a1aea | 3120 | |
d9e6d90b WC |
3121 | # Check whether --enable-silent-rules was given. |
3122 | if test "${enable_silent_rules+set}" = set; then : | |
3123 | enableval=$enable_silent_rules; | |
3124 | fi | |
3125 | ||
3126 | case $enable_silent_rules in # ((( | |
3127 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3128 | no) AM_DEFAULT_VERBOSITY=1;; | |
3129 | *) AM_DEFAULT_VERBOSITY=1;; | |
3130 | esac | |
3131 | am_make=${MAKE-make} | |
3132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3133 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3134 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3135 | $as_echo_n "(cached) " >&6 | |
3136 | else | |
3137 | if $as_echo 'TRUE=$(BAR$(V)) | |
3138 | BAR0=false | |
3139 | BAR1=true | |
3140 | V=1 | |
3141 | am__doit: | |
3142 | @$(TRUE) | |
3143 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3144 | am_cv_make_support_nested_variables=yes | |
3145 | else | |
3146 | am_cv_make_support_nested_variables=no | |
3147 | fi | |
3148 | fi | |
3149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3150 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3151 | if test $am_cv_make_support_nested_variables = yes; then | |
3152 | AM_V='$(V)' | |
3153 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3154 | else | |
3155 | AM_V=$AM_DEFAULT_VERBOSITY | |
3156 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3157 | fi | |
3158 | AM_BACKSLASH='\' | |
3159 | ||
412e1bf7 FCE |
3160 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3161 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3162 | # is not polluted with repeated "-I." | |
3163 | am__isrc=' -I$(srcdir)' | |
3164 | # test to see if srcdir already configured | |
3165 | if test -f $srcdir/config.status; then | |
5d4aa1f5 | 3166 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
412e1bf7 | 3167 | fi |
4a3c19da | 3168 | fi |
412e1bf7 FCE |
3169 | |
3170 | # test whether we have cygpath | |
3171 | if test -z "$CYGPATH_W"; then | |
3172 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3173 | CYGPATH_W='cygpath -w' | |
3174 | else | |
3175 | CYGPATH_W=echo | |
3176 | fi | |
3177 | fi | |
3178 | ||
3179 | ||
3180 | # Define the identity of the package. | |
3181 | PACKAGE='systemtap' | |
d7ca839b | 3182 | VERSION='2.5' |
412e1bf7 FCE |
3183 | |
3184 | ||
3185 | cat >>confdefs.h <<_ACEOF | |
3186 | #define PACKAGE "$PACKAGE" | |
3187 | _ACEOF | |
3188 | ||
3189 | ||
3190 | cat >>confdefs.h <<_ACEOF | |
3191 | #define VERSION "$VERSION" | |
3192 | _ACEOF | |
3193 | ||
3194 | # Some tools Automake needs. | |
3195 | ||
3196 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3197 | ||
3198 | ||
3199 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3200 | ||
3201 | ||
0710d850 | 3202 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
31f9baea | 3203 | |
0710d850 DS |
3204 | |
3205 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3206 | ||
3207 | ||
3208 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2f1a1aea | 3209 | |
8eef2738 LB |
3210 | # For better backward compatibility. To be removed once Automake 1.9.x |
3211 | # dies out for good. For more background, see: | |
3212 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3213 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3214 | mkdir_p='$(MKDIR_P)' | |
3215 | ||
2f1a1aea FCE |
3216 | # We need awk for the "check" target. The system "awk" is bad on |
3217 | # some platforms. | |
c66be968 JS |
3218 | # Always define AMTAR for backward compatibility. Yes, it's still used |
3219 | # in the wild :-( We should find a proper way to deprecate it ... | |
3220 | AMTAR='$${TAR-tar}' | |
2f1a1aea | 3221 | |
d9e6d90b WC |
3222 | |
3223 | # We'll loop over all known methods to create a tar archive until one works. | |
3224 | _am_tools='gnutar pax cpio none' | |
3225 | ||
c66be968 | 3226 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
2f1a1aea FCE |
3227 | |
3228 | ||
3229 | ||
3230 | ||
3231 | ||
0710d850 | 3232 | |
d9e6d90b | 3233 | |
1ef0423a | 3234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
0710d850 | 3235 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
7fbd9d09 | 3236 | # Check whether --enable-maintainer-mode was given. |
1ef0423a | 3237 | if test "${enable_maintainer_mode+set}" = set; then : |
7fbd9d09 | 3238 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
2f1a1aea FCE |
3239 | else |
3240 | USE_MAINTAINER_MODE=no | |
7fbd9d09 | 3241 | fi |
2f1a1aea | 3242 | |
1ef0423a | 3243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
0710d850 | 3244 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
7fbd9d09 | 3245 | if test $USE_MAINTAINER_MODE = yes; then |
2f1a1aea FCE |
3246 | MAINTAINER_MODE_TRUE= |
3247 | MAINTAINER_MODE_FALSE='#' | |
3248 | else | |
3249 | MAINTAINER_MODE_TRUE='#' | |
3250 | MAINTAINER_MODE_FALSE= | |
3251 | fi | |
3252 | ||
3253 | MAINT=$MAINTAINER_MODE_TRUE | |
3254 | ||
3255 | ||
3256 | ||
0710d850 | 3257 | # Check whether --enable-silent-rules was given. |
1ef0423a | 3258 | if test "${enable_silent_rules+set}" = set; then : |
0710d850 DS |
3259 | enableval=$enable_silent_rules; |
3260 | fi | |
3261 | ||
8eef2738 LB |
3262 | case $enable_silent_rules in # ((( |
3263 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3264 | no) AM_DEFAULT_VERBOSITY=1;; | |
3265 | *) AM_DEFAULT_VERBOSITY=0;; | |
0710d850 | 3266 | esac |
c66be968 JS |
3267 | am_make=${MAKE-make} |
3268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3269 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3270 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3271 | $as_echo_n "(cached) " >&6 | |
3272 | else | |
3273 | if $as_echo 'TRUE=$(BAR$(V)) | |
3274 | BAR0=false | |
3275 | BAR1=true | |
3276 | V=1 | |
3277 | am__doit: | |
3278 | @$(TRUE) | |
3279 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3280 | am_cv_make_support_nested_variables=yes | |
3281 | else | |
3282 | am_cv_make_support_nested_variables=no | |
3283 | fi | |
3284 | fi | |
3285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3286 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3287 | if test $am_cv_make_support_nested_variables = yes; then | |
3288 | AM_V='$(V)' | |
3289 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3290 | else | |
3291 | AM_V=$AM_DEFAULT_VERBOSITY | |
3292 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3293 | fi | |
0710d850 | 3294 | AM_BACKSLASH='\' |
618a8a63 JS |
3295 | |
3296 | ||
8f223b3e FCE |
3297 | DEPDIR="${am__leading_dot}deps" |
3298 | ||
3299 | ac_config_commands="$ac_config_commands depfiles" | |
3300 | ||
3301 | ||
3302 | am_make=${MAKE-make} | |
3303 | cat > confinc << 'END' | |
3304 | am__doit: | |
3305 | @echo this is the am__doit target | |
3306 | .PHONY: am__doit | |
3307 | END | |
3308 | # If we don't find an include directive, just comment out the code. | |
3309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
3310 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
3311 | am__include="#" | |
3312 | am__quote= | |
3313 | _am_result=none | |
3314 | # First try GNU make style include. | |
3315 | echo "include confinc" > confmf | |
8eef2738 | 3316 | # Ignore all kinds of additional output from 'make'. |
8f223b3e FCE |
3317 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3318 | *the\ am__doit\ target*) | |
3319 | am__include=include | |
3320 | am__quote= | |
3321 | _am_result=GNU | |
3322 | ;; | |
7fbd9d09 | 3323 | esac |
8f223b3e FCE |
3324 | # Now try BSD make style include. |
3325 | if test "$am__include" = "#"; then | |
3326 | echo '.include "confinc"' > confmf | |
3327 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3328 | *the\ am__doit\ target*) | |
3329 | am__include=.include | |
3330 | am__quote="\"" | |
3331 | _am_result=BSD | |
3332 | ;; | |
3333 | esac | |
3334 | fi | |
7fbd9d09 | 3335 | |
98aab489 | 3336 | |
8f223b3e FCE |
3337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
3338 | $as_echo "$_am_result" >&6; } | |
3339 | rm -f confinc confmf | |
3340 | ||
3341 | # Check whether --enable-dependency-tracking was given. | |
3342 | if test "${enable_dependency_tracking+set}" = set; then : | |
3343 | enableval=$enable_dependency_tracking; | |
3344 | fi | |
3345 | ||
3346 | if test "x$enable_dependency_tracking" != xno; then | |
3347 | am_depcomp="$ac_aux_dir/depcomp" | |
3348 | AMDEPBACKSLASH='\' | |
c66be968 | 3349 | am__nodep='_no' |
8f223b3e FCE |
3350 | fi |
3351 | if test "x$enable_dependency_tracking" != xno; then | |
3352 | AMDEP_TRUE= | |
3353 | AMDEP_FALSE='#' | |
2f1a1aea | 3354 | else |
8f223b3e FCE |
3355 | AMDEP_TRUE='#' |
3356 | AMDEP_FALSE= | |
2f1a1aea FCE |
3357 | fi |
3358 | ||
8f223b3e | 3359 | |
2f1a1aea FCE |
3360 | ac_ext=c |
3361 | ac_cpp='$CPP $CPPFLAGS' | |
3362 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3363 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3364 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3365 | if test -n "$ac_tool_prefix"; then | |
3366 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3367 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1ef0423a | 3368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 3369 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 3370 | if ${ac_cv_prog_CC+:} false; then : |
0710d850 | 3371 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3372 | else |
3373 | if test -n "$CC"; then | |
3374 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3375 | else | |
3376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3377 | for as_dir in $PATH | |
3378 | do | |
3379 | IFS=$as_save_IFS | |
3380 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 3381 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 3382 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea | 3383 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1ef0423a | 3384 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3385 | break 2 |
3386 | fi | |
3387 | done | |
1ef0423a | 3388 | done |
7fbd9d09 | 3389 | IFS=$as_save_IFS |
2f1a1aea FCE |
3390 | |
3391 | fi | |
3392 | fi | |
3393 | CC=$ac_cv_prog_CC | |
3394 | if test -n "$CC"; then | |
1ef0423a | 3395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
0710d850 | 3396 | $as_echo "$CC" >&6; } |
2f1a1aea | 3397 | else |
1ef0423a | 3398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 3399 | $as_echo "no" >&6; } |
2f1a1aea FCE |
3400 | fi |
3401 | ||
7fbd9d09 | 3402 | |
2f1a1aea FCE |
3403 | fi |
3404 | if test -z "$ac_cv_prog_CC"; then | |
3405 | ac_ct_CC=$CC | |
3406 | # Extract the first word of "gcc", so it can be a program name with args. | |
3407 | set dummy gcc; ac_word=$2 | |
1ef0423a | 3408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 3409 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 3410 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
0710d850 | 3411 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3412 | else |
3413 | if test -n "$ac_ct_CC"; then | |
3414 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3415 | else | |
3416 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3417 | for as_dir in $PATH | |
3418 | do | |
3419 | IFS=$as_save_IFS | |
3420 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 3421 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 3422 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea | 3423 | ac_cv_prog_ac_ct_CC="gcc" |
1ef0423a | 3424 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3425 | break 2 |
3426 | fi | |
3427 | done | |
1ef0423a | 3428 | done |
7fbd9d09 | 3429 | IFS=$as_save_IFS |
2f1a1aea FCE |
3430 | |
3431 | fi | |
3432 | fi | |
3433 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3434 | if test -n "$ac_ct_CC"; then | |
1ef0423a | 3435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
0710d850 | 3436 | $as_echo "$ac_ct_CC" >&6; } |
2f1a1aea | 3437 | else |
1ef0423a | 3438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 3439 | $as_echo "no" >&6; } |
2f1a1aea FCE |
3440 | fi |
3441 | ||
7fbd9d09 FCE |
3442 | if test "x$ac_ct_CC" = x; then |
3443 | CC="" | |
3444 | else | |
3445 | case $cross_compiling:$ac_tool_warned in | |
3446 | yes:) | |
1ef0423a | 3447 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
0710d850 | 3448 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7fbd9d09 FCE |
3449 | ac_tool_warned=yes ;; |
3450 | esac | |
3451 | CC=$ac_ct_CC | |
3452 | fi | |
2f1a1aea FCE |
3453 | else |
3454 | CC="$ac_cv_prog_CC" | |
3455 | fi | |
3456 | ||
3457 | if test -z "$CC"; then | |
7fbd9d09 FCE |
3458 | if test -n "$ac_tool_prefix"; then |
3459 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2f1a1aea | 3460 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
1ef0423a | 3461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 3462 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 3463 | if ${ac_cv_prog_CC+:} false; then : |
0710d850 | 3464 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3465 | else |
3466 | if test -n "$CC"; then | |
3467 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3468 | else | |
3469 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3470 | for as_dir in $PATH | |
3471 | do | |
3472 | IFS=$as_save_IFS | |
3473 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 3474 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 3475 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea | 3476 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1ef0423a | 3477 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3478 | break 2 |
3479 | fi | |
3480 | done | |
1ef0423a | 3481 | done |
7fbd9d09 | 3482 | IFS=$as_save_IFS |
2f1a1aea FCE |
3483 | |
3484 | fi | |
3485 | fi | |
3486 | CC=$ac_cv_prog_CC | |
3487 | if test -n "$CC"; then | |
1ef0423a | 3488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
0710d850 | 3489 | $as_echo "$CC" >&6; } |
818ba2bc | 3490 | else |
1ef0423a | 3491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 3492 | $as_echo "no" >&6; } |
818ba2bc MW |
3493 | fi |
3494 | ||
818ba2bc | 3495 | |
7fbd9d09 | 3496 | fi |
2f1a1aea FCE |
3497 | fi |
3498 | if test -z "$CC"; then | |
3499 | # Extract the first word of "cc", so it can be a program name with args. | |
3500 | set dummy cc; ac_word=$2 | |
1ef0423a | 3501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 3502 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 3503 | if ${ac_cv_prog_CC+:} false; then : |
0710d850 | 3504 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3505 | else |
3506 | if test -n "$CC"; then | |
3507 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3508 | else | |
3509 | ac_prog_rejected=no | |
3510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3511 | for as_dir in $PATH | |
3512 | do | |
3513 | IFS=$as_save_IFS | |
3514 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 3515 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 3516 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea FCE |
3517 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3518 | ac_prog_rejected=yes | |
3519 | continue | |
3520 | fi | |
3521 | ac_cv_prog_CC="cc" | |
1ef0423a | 3522 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3523 | break 2 |
3524 | fi | |
3525 | done | |
1ef0423a | 3526 | done |
7fbd9d09 | 3527 | IFS=$as_save_IFS |
2f1a1aea FCE |
3528 | |
3529 | if test $ac_prog_rejected = yes; then | |
3530 | # We found a bogon in the path, so make sure we never use it. | |
3531 | set dummy $ac_cv_prog_CC | |
3532 | shift | |
3533 | if test $# != 0; then | |
3534 | # We chose a different compiler from the bogus one. | |
3535 | # However, it has the same basename, so the bogon will be chosen | |
3536 | # first if we set CC to just the basename; use the full file name. | |
3537 | shift | |
3538 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3539 | fi | |
3540 | fi | |
3541 | fi | |
3542 | fi | |
3543 | CC=$ac_cv_prog_CC | |
3544 | if test -n "$CC"; then | |
1ef0423a | 3545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
0710d850 | 3546 | $as_echo "$CC" >&6; } |
2f1a1aea | 3547 | else |
1ef0423a | 3548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 3549 | $as_echo "no" >&6; } |
2f1a1aea FCE |
3550 | fi |
3551 | ||
7fbd9d09 | 3552 | |
2f1a1aea FCE |
3553 | fi |
3554 | if test -z "$CC"; then | |
3555 | if test -n "$ac_tool_prefix"; then | |
7fbd9d09 | 3556 | for ac_prog in cl.exe |
2f1a1aea FCE |
3557 | do |
3558 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3559 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1ef0423a | 3560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 3561 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 3562 | if ${ac_cv_prog_CC+:} false; then : |
0710d850 | 3563 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3564 | else |
3565 | if test -n "$CC"; then | |
3566 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3567 | else | |
3568 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3569 | for as_dir in $PATH | |
3570 | do | |
3571 | IFS=$as_save_IFS | |
3572 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 3573 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 3574 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea | 3575 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1ef0423a | 3576 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3577 | break 2 |
3578 | fi | |
3579 | done | |
1ef0423a | 3580 | done |
7fbd9d09 | 3581 | IFS=$as_save_IFS |
2f1a1aea FCE |
3582 | |
3583 | fi | |
3584 | fi | |
3585 | CC=$ac_cv_prog_CC | |
3586 | if test -n "$CC"; then | |
1ef0423a | 3587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
0710d850 | 3588 | $as_echo "$CC" >&6; } |
2f1a1aea | 3589 | else |
1ef0423a | 3590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 3591 | $as_echo "no" >&6; } |
2f1a1aea FCE |
3592 | fi |
3593 | ||
7fbd9d09 | 3594 | |
2f1a1aea FCE |
3595 | test -n "$CC" && break |
3596 | done | |
3597 | fi | |
3598 | if test -z "$CC"; then | |
3599 | ac_ct_CC=$CC | |
7fbd9d09 | 3600 | for ac_prog in cl.exe |
2f1a1aea FCE |
3601 | do |
3602 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3603 | set dummy $ac_prog; ac_word=$2 | |
1ef0423a | 3604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 3605 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 3606 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
0710d850 | 3607 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3608 | else |
3609 | if test -n "$ac_ct_CC"; then | |
3610 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3611 | else | |
3612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3613 | for as_dir in $PATH | |
3614 | do | |
3615 | IFS=$as_save_IFS | |
3616 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 3617 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 3618 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea | 3619 | ac_cv_prog_ac_ct_CC="$ac_prog" |
1ef0423a | 3620 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3621 | break 2 |
3622 | fi | |
3623 | done | |
1ef0423a | 3624 | done |
7fbd9d09 | 3625 | IFS=$as_save_IFS |
2f1a1aea FCE |
3626 | |
3627 | fi | |
3628 | fi | |
3629 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3630 | if test -n "$ac_ct_CC"; then | |
1ef0423a | 3631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
0710d850 | 3632 | $as_echo "$ac_ct_CC" >&6; } |
2f1a1aea | 3633 | else |
1ef0423a | 3634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 3635 | $as_echo "no" >&6; } |
2f1a1aea FCE |
3636 | fi |
3637 | ||
7fbd9d09 | 3638 | |
2f1a1aea FCE |
3639 | test -n "$ac_ct_CC" && break |
3640 | done | |
3641 | ||
7fbd9d09 FCE |
3642 | if test "x$ac_ct_CC" = x; then |
3643 | CC="" | |
3644 | else | |
3645 | case $cross_compiling:$ac_tool_warned in | |
3646 | yes:) | |
1ef0423a | 3647 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
0710d850 | 3648 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7fbd9d09 FCE |
3649 | ac_tool_warned=yes ;; |
3650 | esac | |
3651 | CC=$ac_ct_CC | |
3652 | fi | |
2f1a1aea FCE |
3653 | fi |
3654 | ||
3655 | fi | |
3656 | ||
3657 | ||
1ef0423a | 3658 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
0710d850 | 3659 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
5d4aa1f5 FCE |
3660 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3661 | See \`config.log' for more details" "$LINENO" 5; } | |
2f1a1aea FCE |
3662 | |
3663 | # Provide some information about the compiler. | |
1ef0423a | 3664 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
0710d850 DS |
3665 | set X $ac_compile |
3666 | ac_compiler=$2 | |
1ef0423a FCE |
3667 | for ac_option in --version -v -V -qversion; do |
3668 | { { ac_try="$ac_compiler $ac_option >&5" | |
5e5aee9f FCE |
3669 | case "(($ac_try" in |
3670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3671 | *) ac_try_echo=$ac_try;; | |
3672 | esac | |
1ef0423a FCE |
3673 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3674 | $as_echo "$ac_try_echo"; } >&5 | |
3675 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
5e5aee9f | 3676 | ac_status=$? |
1ef0423a FCE |
3677 | if test -s conftest.err; then |
3678 | sed '10a\ | |
3679 | ... rest of stderr output deleted ... | |
3680 | 10q' conftest.err >conftest.er1 | |
3681 | cat conftest.er1 >&5 | |
3682 | fi | |
3683 | rm -f conftest.er1 conftest.err | |
3684 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3685 | test $ac_status = 0; } | |
3686 | done | |
2f1a1aea | 3687 | |
1ef0423a | 3688 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea | 3689 | /* end confdefs.h. */ |
412e1bf7 | 3690 | |
2f1a1aea FCE |
3691 | int |
3692 | main () | |
3693 | { | |
3694 | ||
3695 | ; | |
3696 | return 0; | |
3697 | } | |
3698 | _ACEOF | |
3699 | ac_clean_files_save=$ac_clean_files | |
0710d850 | 3700 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
2f1a1aea FCE |
3701 | # Try to create an executable without -o first, disregard a.out. |
3702 | # It will help us diagnose broken compilers, and finding out an intuition | |
3703 | # of exeext. | |
1ef0423a FCE |
3704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3705 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
0710d850 DS |
3706 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3707 | ||
3708 | # The possible output files: | |
3709 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3710 | ||
7fbd9d09 FCE |
3711 | ac_rmfiles= |
3712 | for ac_file in $ac_files | |
3713 | do | |
3714 | case $ac_file in | |
0710d850 | 3715 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
7fbd9d09 FCE |
3716 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3717 | esac | |
3718 | done | |
3719 | rm -f $ac_rmfiles | |
3720 | ||
1ef0423a | 3721 | if { { ac_try="$ac_link_default" |
7fbd9d09 FCE |
3722 | case "(($ac_try" in |
3723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3724 | *) ac_try_echo=$ac_try;; | |
3725 | esac | |
1ef0423a FCE |
3726 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3727 | $as_echo "$ac_try_echo"; } >&5 | |
7fbd9d09 | 3728 | (eval "$ac_link_default") 2>&5 |
2f1a1aea | 3729 | ac_status=$? |
1ef0423a FCE |
3730 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3731 | test $ac_status = 0; }; then : | |
7fbd9d09 FCE |
3732 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3733 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3734 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3735 | # so that the user can short-circuit this test for compilers unknown to | |
3736 | # Autoconf. | |
3737 | for ac_file in $ac_files '' | |
2f1a1aea FCE |
3738 | do |
3739 | test -f "$ac_file" || continue | |
3740 | case $ac_file in | |
0710d850 | 3741 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
2f1a1aea FCE |
3742 | ;; |
3743 | [ab].out ) | |
3744 | # We found the default executable, but exeext='' is most | |
3745 | # certainly right. | |
3746 | break;; | |
3747 | *.* ) | |
1ef0423a | 3748 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
7fbd9d09 FCE |
3749 | then :; else |
3750 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3751 | fi | |
3752 | # We set ac_cv_exeext here because the later test for it is not | |
3753 | # safe: cross compilers may not add the suffix if given an `-o' | |
3754 | # argument, so we may need to know it at that point already. | |
3755 | # Even if this section looks crufty: it has the advantage of | |
3756 | # actually working. | |
2f1a1aea FCE |
3757 | break;; |
3758 | * ) | |
3759 | break;; | |
3760 | esac | |
3761 | done | |
7fbd9d09 FCE |
3762 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3763 | ||
2f1a1aea | 3764 | else |
7fbd9d09 FCE |
3765 | ac_file='' |
3766 | fi | |
1ef0423a FCE |
3767 | if test -z "$ac_file"; then : |
3768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3769 | $as_echo "no" >&6; } | |
3770 | $as_echo "$as_me: failed program was:" >&5 | |
2f1a1aea FCE |
3771 | sed 's/^/| /' conftest.$ac_ext >&5 |
3772 | ||
1ef0423a | 3773 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
0710d850 | 3774 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
5d4aa1f5 FCE |
3775 | as_fn_error 77 "C compiler cannot create executables |
3776 | See \`config.log' for more details" "$LINENO" 5; } | |
1ef0423a FCE |
3777 | else |
3778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3779 | $as_echo "yes" >&6; } | |
2f1a1aea | 3780 | fi |
1ef0423a FCE |
3781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3782 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3784 | $as_echo "$ac_file" >&6; } | |
2f1a1aea | 3785 | ac_exeext=$ac_cv_exeext |
2f1a1aea | 3786 | |
0710d850 | 3787 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
2f1a1aea | 3788 | ac_clean_files=$ac_clean_files_save |
1ef0423a | 3789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
0710d850 | 3790 | $as_echo_n "checking for suffix of executables... " >&6; } |
1ef0423a | 3791 | if { { ac_try="$ac_link" |
7fbd9d09 FCE |
3792 | case "(($ac_try" in |
3793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3794 | *) ac_try_echo=$ac_try;; | |
3795 | esac | |
1ef0423a FCE |
3796 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3797 | $as_echo "$ac_try_echo"; } >&5 | |
7fbd9d09 | 3798 | (eval "$ac_link") 2>&5 |
2f1a1aea | 3799 | ac_status=$? |
1ef0423a FCE |
3800 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3801 | test $ac_status = 0; }; then : | |
2f1a1aea FCE |
3802 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3803 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3804 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3805 | # `rm'. | |
3806 | for ac_file in conftest.exe conftest conftest.*; do | |
3807 | test -f "$ac_file" || continue | |
3808 | case $ac_file in | |
0710d850 | 3809 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
2f1a1aea | 3810 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2f1a1aea FCE |
3811 | break;; |
3812 | * ) break;; | |
3813 | esac | |
3814 | done | |
3815 | else | |
1ef0423a | 3816 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
0710d850 | 3817 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
5d4aa1f5 FCE |
3818 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3819 | See \`config.log' for more details" "$LINENO" 5; } | |
2f1a1aea | 3820 | fi |
1ef0423a FCE |
3821 | rm -f conftest conftest$ac_cv_exeext |
3822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
0710d850 | 3823 | $as_echo "$ac_cv_exeext" >&6; } |
2f1a1aea FCE |
3824 | |
3825 | rm -f conftest.$ac_ext | |
3826 | EXEEXT=$ac_cv_exeext | |
3827 | ac_exeext=$EXEEXT | |
1ef0423a FCE |
3828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3829 | /* end confdefs.h. */ | |
3830 | #include <stdio.h> | |
3831 | int | |
3832 | main () | |
3833 | { | |
3834 | FILE *f = fopen ("conftest.out", "w"); | |
3835 | return ferror (f) || fclose (f) != 0; | |
3836 | ||
3837 | ; | |
3838 | return 0; | |
3839 | } | |
3840 | _ACEOF | |
3841 | ac_clean_files="$ac_clean_files conftest.out" | |
3842 | # Check that the compiler produces executables we can run. If not, either | |
3843 | # the compiler is broken, or we cross compile. | |
3844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3845 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3846 | if test "$cross_compiling" != yes; then | |
3847 | { { ac_try="$ac_link" | |
3848 | case "(($ac_try" in | |
3849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3850 | *) ac_try_echo=$ac_try;; | |
3851 | esac | |
3852 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3853 | $as_echo "$ac_try_echo"; } >&5 | |
3854 | (eval "$ac_link") 2>&5 | |
3855 | ac_status=$? | |
3856 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3857 | test $ac_status = 0; } | |
3858 | if { ac_try='./conftest$ac_cv_exeext' | |
3859 | { { case "(($ac_try" in | |
3860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3861 | *) ac_try_echo=$ac_try;; | |
3862 | esac | |
3863 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3864 | $as_echo "$ac_try_echo"; } >&5 | |
3865 | (eval "$ac_try") 2>&5 | |
3866 | ac_status=$? | |
3867 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3868 | test $ac_status = 0; }; }; then | |
3869 | cross_compiling=no | |
3870 | else | |
3871 | if test "$cross_compiling" = maybe; then | |
3872 | cross_compiling=yes | |
3873 | else | |
3874 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3875 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5d4aa1f5 | 3876 | as_fn_error $? "cannot run C compiled programs. |
1ef0423a | 3877 | If you meant to cross compile, use \`--host'. |
5d4aa1f5 | 3878 | See \`config.log' for more details" "$LINENO" 5; } |
1ef0423a FCE |
3879 | fi |
3880 | fi | |
3881 | fi | |
3882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3883 | $as_echo "$cross_compiling" >&6; } | |
3884 | ||
3885 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3886 | ac_clean_files=$ac_clean_files_save | |
3887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
0710d850 | 3888 | $as_echo_n "checking for suffix of object files... " >&6; } |
c3de29bd | 3889 | if ${ac_cv_objext+:} false; then : |
0710d850 | 3890 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 3891 | else |
1ef0423a | 3892 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea FCE |
3893 | /* end confdefs.h. */ |
3894 | ||
3895 | int | |
3896 | main () | |
3897 | { | |
3898 | ||
3899 | ; | |
3900 | return 0; | |
3901 | } | |
3902 | _ACEOF | |
3903 | rm -f conftest.o conftest.obj | |
1ef0423a | 3904 | if { { ac_try="$ac_compile" |
7fbd9d09 FCE |
3905 | case "(($ac_try" in |
3906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3907 | *) ac_try_echo=$ac_try;; | |
3908 | esac | |
1ef0423a FCE |
3909 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3910 | $as_echo "$ac_try_echo"; } >&5 | |
7fbd9d09 | 3911 | (eval "$ac_compile") 2>&5 |
2f1a1aea | 3912 | ac_status=$? |
1ef0423a FCE |
3913 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3914 | test $ac_status = 0; }; then : | |
7fbd9d09 FCE |
3915 | for ac_file in conftest.o conftest.obj conftest.*; do |
3916 | test -f "$ac_file" || continue; | |
2f1a1aea | 3917 | case $ac_file in |
0710d850 | 3918 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
2f1a1aea FCE |
3919 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3920 | break;; | |
3921 | esac | |
3922 | done | |
3923 | else | |
0710d850 | 3924 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
3925 | sed 's/^/| /' conftest.$ac_ext >&5 |
3926 | ||
1ef0423a | 3927 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
0710d850 | 3928 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
5d4aa1f5 FCE |
3929 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3930 | See \`config.log' for more details" "$LINENO" 5; } | |
2f1a1aea | 3931 | fi |
2f1a1aea FCE |
3932 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3933 | fi | |
1ef0423a | 3934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
0710d850 | 3935 | $as_echo "$ac_cv_objext" >&6; } |
2f1a1aea FCE |
3936 | OBJEXT=$ac_cv_objext |
3937 | ac_objext=$OBJEXT | |
1ef0423a | 3938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
0710d850 | 3939 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
c3de29bd | 3940 | if ${ac_cv_c_compiler_gnu+:} false; then : |
0710d850 | 3941 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 3942 | else |
1ef0423a | 3943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea FCE |
3944 | /* end confdefs.h. */ |
3945 | ||
3946 | int | |
3947 | main () | |
3948 | { | |
3949 | #ifndef __GNUC__ | |
3950 | choke me | |
3951 | #endif | |
3952 | ||
3953 | ; | |
3954 | return 0; | |
3955 | } | |
3956 | _ACEOF | |
1ef0423a | 3957 | if ac_fn_c_try_compile "$LINENO"; then : |
2f1a1aea FCE |
3958 | ac_compiler_gnu=yes |
3959 | else | |
1ef0423a | 3960 | ac_compiler_gnu=no |
2f1a1aea | 3961 | fi |
7fbd9d09 | 3962 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2f1a1aea FCE |
3963 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3964 | ||
3965 | fi | |
1ef0423a | 3966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
0710d850 DS |
3967 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3968 | if test $ac_compiler_gnu = yes; then | |
3969 | GCC=yes | |
3970 | else | |
3971 | GCC= | |
3972 | fi | |
2f1a1aea FCE |
3973 | ac_test_CFLAGS=${CFLAGS+set} |
3974 | ac_save_CFLAGS=$CFLAGS | |
1ef0423a | 3975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
0710d850 | 3976 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
c3de29bd | 3977 | if ${ac_cv_prog_cc_g+:} false; then : |
0710d850 | 3978 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 3979 | else |
7fbd9d09 FCE |
3980 | ac_save_c_werror_flag=$ac_c_werror_flag |
3981 | ac_c_werror_flag=yes | |
3982 | ac_cv_prog_cc_g=no | |
3983 | CFLAGS="-g" | |
1ef0423a | 3984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea FCE |
3985 | /* end confdefs.h. */ |
3986 | ||
3987 | int | |
3988 | main () | |
3989 | { | |
3990 | ||
3991 | ; | |
3992 | return 0; | |
3993 | } | |
3994 | _ACEOF | |
1ef0423a | 3995 | if ac_fn_c_try_compile "$LINENO"; then : |
7fbd9d09 FCE |
3996 | ac_cv_prog_cc_g=yes |
3997 | else | |
1ef0423a FCE |
3998 | CFLAGS="" |
3999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7fbd9d09 FCE |
4000 | /* end confdefs.h. */ |
4001 | ||
4002 | int | |
4003 | main () | |
4004 | { | |
4005 | ||
4006 | ; | |
4007 | return 0; | |
4008 | } | |
4009 | _ACEOF | |
1ef0423a | 4010 | if ac_fn_c_try_compile "$LINENO"; then : |
5e5aee9f | 4011 | |
1ef0423a FCE |
4012 | else |
4013 | ac_c_werror_flag=$ac_save_c_werror_flag | |
7fbd9d09 | 4014 | CFLAGS="-g" |
1ef0423a | 4015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7fbd9d09 FCE |
4016 | /* end confdefs.h. */ |
4017 | ||
4018 | int | |
4019 | main () | |
4020 | { | |
4021 | ||
4022 | ; | |
4023 | return 0; | |
4024 | } | |
4025 | _ACEOF | |
1ef0423a | 4026 | if ac_fn_c_try_compile "$LINENO"; then : |
2f1a1aea | 4027 | ac_cv_prog_cc_g=yes |
7fbd9d09 | 4028 | fi |
7fbd9d09 | 4029 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2f1a1aea | 4030 | fi |
7fbd9d09 FCE |
4031 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4032 | fi | |
7fbd9d09 FCE |
4033 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4034 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2f1a1aea | 4035 | fi |
1ef0423a | 4036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
0710d850 | 4037 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
2f1a1aea FCE |
4038 | if test "$ac_test_CFLAGS" = set; then |
4039 | CFLAGS=$ac_save_CFLAGS | |
4040 | elif test $ac_cv_prog_cc_g = yes; then | |
4041 | if test "$GCC" = yes; then | |
4042 | CFLAGS="-g -O2" | |
4043 | else | |
4044 | CFLAGS="-g" | |
4045 | fi | |
4046 | else | |
4047 | if test "$GCC" = yes; then | |
4048 | CFLAGS="-O2" | |
4049 | else | |
4050 | CFLAGS= | |
4051 | fi | |
4052 | fi | |
1ef0423a | 4053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
0710d850 | 4054 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
c3de29bd | 4055 | if ${ac_cv_prog_cc_c89+:} false; then : |
0710d850 | 4056 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 4057 | else |
7fbd9d09 | 4058 | ac_cv_prog_cc_c89=no |
2f1a1aea | 4059 | ac_save_CC=$CC |
1ef0423a | 4060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea FCE |
4061 | /* end confdefs.h. */ |
4062 | #include <stdarg.h> | |
4063 | #include <stdio.h> | |
8eef2738 | 4064 | struct stat; |
2f1a1aea FCE |
4065 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4066 | struct buf { int x; }; | |
4067 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4068 | static char *e (p, i) | |
4069 | char **p; | |
4070 | int i; | |
4071 | { | |
4072 | return p[i]; | |
4073 | } | |
4074 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4075 | { | |
4076 | char *s; | |
4077 | va_list v; | |
4078 | va_start (v,p); | |
4079 | s = g (p, va_arg (v,int)); | |
4080 | va_end (v); | |
4081 | return s; | |
4082 | } | |
4083 | ||
4084 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4085 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4086 | These don't provoke an error unfortunately, instead are silently treated | |
7fbd9d09 | 4087 | as 'x'. The following induces an error, until -std is added to get |
2f1a1aea FCE |
4088 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4089 | array size at least. It's necessary to write '\x00'==0 to get something | |
7fbd9d09 | 4090 | that's true only with -std. */ |
2f1a1aea FCE |
4091 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4092 | ||
7fbd9d09 FCE |
4093 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4094 | inside strings and character constants. */ | |
4095 | #define FOO(x) 'x' | |
4096 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4097 | ||
2f1a1aea FCE |
4098 | int test (int i, double x); |
4099 | struct s1 {int (*f) (int a);}; | |
4100 | struct s2 {int (*f) (double a);}; | |
4101 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4102 | int argc; | |
4103 | char **argv; | |
4104 | int | |
4105 | main () | |
4106 | { | |
4107 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4108 | ; | |
4109 | return 0; | |
4110 | } | |
4111 | _ACEOF | |
7fbd9d09 FCE |
4112 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4113 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2f1a1aea FCE |
4114 | do |
4115 | CC="$ac_save_CC $ac_arg" | |
1ef0423a | 4116 | if ac_fn_c_try_compile "$LINENO"; then : |
7fbd9d09 | 4117 | ac_cv_prog_cc_c89=$ac_arg |
2f1a1aea | 4118 | fi |
7fbd9d09 FCE |
4119 | rm -f core conftest.err conftest.$ac_objext |
4120 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
2f1a1aea | 4121 | done |
7fbd9d09 | 4122 | rm -f conftest.$ac_ext |
2f1a1aea FCE |
4123 | CC=$ac_save_CC |
4124 | ||
4125 | fi | |
7fbd9d09 FCE |
4126 | # AC_CACHE_VAL |
4127 | case "x$ac_cv_prog_cc_c89" in | |
4128 | x) | |
1ef0423a | 4129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
0710d850 | 4130 | $as_echo "none needed" >&6; } ;; |
7fbd9d09 | 4131 | xno) |
1ef0423a | 4132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
0710d850 | 4133 | $as_echo "unsupported" >&6; } ;; |
2f1a1aea | 4134 | *) |
7fbd9d09 | 4135 | CC="$CC $ac_cv_prog_cc_c89" |
1ef0423a | 4136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
0710d850 | 4137 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
2f1a1aea | 4138 | esac |
1ef0423a | 4139 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
2f1a1aea | 4140 | |
1ef0423a | 4141 | fi |
818ba2bc | 4142 | |
818ba2bc MW |
4143 | ac_ext=c |
4144 | ac_cpp='$CPP $CPPFLAGS' | |
4145 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4146 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4147 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
818ba2bc | 4148 | |
8f223b3e | 4149 | depcc="$CC" am_compiler_list= |
2f1a1aea | 4150 | |
1ef0423a | 4151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
0710d850 | 4152 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
c3de29bd | 4153 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
0710d850 | 4154 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4155 | else |
4156 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4157 | # We make a subdir and do the tests there. Otherwise we can end up | |
4158 | # making bogus files that we don't know about and never remove. For | |
4159 | # instance it was reported that on HP-UX the gcc test will end up | |
8eef2738 LB |
4160 | # making a dummy file named 'D' -- because '-MD' means "put the output |
4161 | # in D". | |
c66be968 | 4162 | rm -rf conftest.dir |
2f1a1aea FCE |
4163 | mkdir conftest.dir |
4164 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4165 | # using a relative directory. | |
4166 | cp "$am_depcomp" conftest.dir | |
4167 | cd conftest.dir | |
4168 | # We will build objects and dependencies in a subdirectory because | |
4169 | # it helps to detect inapplicable dependency modes. For instance | |
4170 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4171 | # side effect of compilation, but ICC will put the dependencies in | |
4172 | # the current directory while Tru64 will put them in the object | |
4173 | # directory. | |
4174 | mkdir sub | |
4175 | ||
4176 | am_cv_CC_dependencies_compiler_type=none | |
4177 | if test "$am_compiler_list" = ""; then | |
4178 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4179 | fi | |
0710d850 DS |
4180 | am__universal=false |
4181 | case " $depcc " in #( | |
4182 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4183 | esac | |
4184 | ||
2f1a1aea FCE |
4185 | for depmode in $am_compiler_list; do |
4186 | # Setup a source with many dependencies, because some compilers | |
4187 | # like to wrap large dependency lists on column 80 (with \), and | |
4188 | # we should not choose a depcomp mode which is confused by this. | |
4189 | # | |
4190 | # We need to recreate these files for each test, as the compiler may | |
4191 | # overwrite some of them when testing with obscure command lines. | |
4192 | # This happens at least with the AIX C compiler. | |
4193 | : > sub/conftest.c | |
4194 | for i in 1 2 3 4 5 6; do | |
4195 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
8eef2738 LB |
4196 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
4197 | # Solaris 10 /bin/sh. | |
4198 | echo '/* dummy */' > sub/conftst$i.h | |
2f1a1aea FCE |
4199 | done |
4200 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4201 | ||
8eef2738 | 4202 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
0710d850 | 4203 | # mode. It turns out that the SunPro C++ compiler does not properly |
8eef2738 LB |
4204 | # handle '-M -o', and we need to detect this. Also, some Intel |
4205 | # versions had trouble with output in subdirs. | |
0710d850 DS |
4206 | am__obj=sub/conftest.${OBJEXT-o} |
4207 | am__minus_obj="-o $am__obj" | |
2f1a1aea | 4208 | case $depmode in |
0710d850 DS |
4209 | gcc) |
4210 | # This depmode causes a compiler race in universal mode. | |
4211 | test "$am__universal" = false || continue | |
4212 | ;; | |
2f1a1aea | 4213 | nosideeffect) |
8eef2738 LB |
4214 | # After this tag, mechanisms are not by side-effect, so they'll |
4215 | # only be used when explicitly requested. | |
2f1a1aea FCE |
4216 | if test "x$enable_dependency_tracking" = xyes; then |
4217 | continue | |
4218 | else | |
4219 | break | |
4220 | fi | |
4221 | ;; | |
c66be968 | 4222 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
8eef2738 | 4223 | # This compiler won't grok '-c -o', but also, the minuso test has |
0710d850 DS |
4224 | # not run yet. These depmodes are late enough in the game, and |
4225 | # so weak that their functioning should not be impacted. | |
4226 | am__obj=conftest.${OBJEXT-o} | |
4227 | am__minus_obj= | |
4228 | ;; | |
2f1a1aea FCE |
4229 | none) break ;; |
4230 | esac | |
2f1a1aea | 4231 | if depmode=$depmode \ |
0710d850 | 4232 | source=sub/conftest.c object=$am__obj \ |
2f1a1aea | 4233 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
0710d850 | 4234 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
2f1a1aea | 4235 | >/dev/null 2>conftest.err && |
7fbd9d09 | 4236 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea | 4237 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
0710d850 | 4238 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea FCE |
4239 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4240 | # icc doesn't choke on unknown options, it will just issue warnings | |
4241 | # or remarks (even with -Werror). So we grep stderr for any message | |
4242 | # that says an option was ignored or not supported. | |
4243 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4244 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4245 | # The diagnosis changed in icc 8.0: | |
4246 | # icc: Command line remark: option '-MP' not supported | |
4247 | if (grep 'ignoring option' conftest.err || | |
4248 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4249 | am_cv_CC_dependencies_compiler_type=$depmode | |
4250 | break | |
4251 | fi | |
4252 | fi | |
4253 | done | |
4254 | ||
4255 | cd .. | |
4256 | rm -rf conftest.dir | |
4257 | else | |
4258 | am_cv_CC_dependencies_compiler_type=none | |
4259 | fi | |
4260 | ||
4261 | fi | |
1ef0423a | 4262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
0710d850 | 4263 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
2f1a1aea FCE |
4264 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4265 | ||
7fbd9d09 | 4266 | if |
2f1a1aea FCE |
4267 | test "x$enable_dependency_tracking" != xno \ |
4268 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4269 | am__fastdepCC_TRUE= | |
4270 | am__fastdepCC_FALSE='#' | |
4271 | else | |
4272 | am__fastdepCC_TRUE='#' | |
4273 | am__fastdepCC_FALSE= | |
4274 | fi | |
4275 | ||
4276 | ||
8f223b3e FCE |
4277 | |
4278 | ac_ext=c | |
4279 | ac_cpp='$CPP $CPPFLAGS' | |
4280 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4281 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4282 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
4284 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
4285 | # On Suns, sometimes $CPP names a directory. | |
4286 | if test -n "$CPP" && test -d "$CPP"; then | |
4287 | CPP= | |
4288 | fi | |
4289 | if test -z "$CPP"; then | |
c3de29bd | 4290 | if ${ac_cv_prog_CPP+:} false; then : |
0710d850 | 4291 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 4292 | else |
8f223b3e FCE |
4293 | # Double quotes because CPP needs to be expanded |
4294 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4295 | do | |
4296 | ac_preproc_ok=false | |
4297 | for ac_c_preproc_warn_flag in '' yes | |
2f1a1aea | 4298 | do |
8f223b3e FCE |
4299 | # Use a header file that comes with gcc, so configuring glibc |
4300 | # with a fresh cross-compiler works. | |
4301 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4302 | # <limits.h> exists even on freestanding compilers. | |
4303 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4304 | # not just through cpp. "Syntax error" is here to catch this case. | |
4305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4306 | /* end confdefs.h. */ | |
4307 | #ifdef __STDC__ | |
4308 | # include <limits.h> | |
4309 | #else | |
4310 | # include <assert.h> | |
4311 | #endif | |
4312 | Syntax error | |
4313 | _ACEOF | |
4314 | if ac_fn_c_try_cpp "$LINENO"; then : | |
2f1a1aea | 4315 | |
8f223b3e FCE |
4316 | else |
4317 | # Broken: fails on valid input. | |
4318 | continue | |
2f1a1aea | 4319 | fi |
c3de29bd | 4320 | rm -f conftest.err conftest.i conftest.$ac_ext |
8f223b3e FCE |
4321 | |
4322 | # OK, works on sane cases. Now check whether nonexistent headers | |
4323 | # can be detected and how. | |
4324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4325 | /* end confdefs.h. */ | |
4326 | #include <ac_nonexistent.h> | |
4327 | _ACEOF | |
4328 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4329 | # Broken: success on invalid input. | |
4330 | continue | |
2f1a1aea | 4331 | else |
8f223b3e FCE |
4332 | # Passes both tests. |
4333 | ac_preproc_ok=: | |
4334 | break | |
4335 | fi | |
c3de29bd | 4336 | rm -f conftest.err conftest.i conftest.$ac_ext |
8f223b3e FCE |
4337 | |
4338 | done | |
4339 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
c3de29bd | 4340 | rm -f conftest.i conftest.err conftest.$ac_ext |
8f223b3e FCE |
4341 | if $ac_preproc_ok; then : |
4342 | break | |
2f1a1aea FCE |
4343 | fi |
4344 | ||
8f223b3e FCE |
4345 | done |
4346 | ac_cv_prog_CPP=$CPP | |
7fbd9d09 | 4347 | |
2f1a1aea | 4348 | fi |
8f223b3e | 4349 | CPP=$ac_cv_prog_CPP |
2f1a1aea | 4350 | else |
8f223b3e FCE |
4351 | ac_cv_prog_CPP=$CPP |
4352 | fi | |
4353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
4354 | $as_echo "$CPP" >&6; } | |
4355 | ac_preproc_ok=false | |
4356 | for ac_c_preproc_warn_flag in '' yes | |
2f1a1aea | 4357 | do |
8f223b3e FCE |
4358 | # Use a header file that comes with gcc, so configuring glibc |
4359 | # with a fresh cross-compiler works. | |
4360 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4361 | # <limits.h> exists even on freestanding compilers. | |
4362 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4363 | # not just through cpp. "Syntax error" is here to catch this case. | |
4364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4365 | /* end confdefs.h. */ | |
4366 | #ifdef __STDC__ | |
4367 | # include <limits.h> | |
4368 | #else | |
4369 | # include <assert.h> | |
4370 | #endif | |
4371 | Syntax error | |
4372 | _ACEOF | |
4373 | if ac_fn_c_try_cpp "$LINENO"; then : | |
2f1a1aea | 4374 | |
2f1a1aea | 4375 | else |
8f223b3e FCE |
4376 | # Broken: fails on valid input. |
4377 | continue | |
2f1a1aea | 4378 | fi |
c3de29bd | 4379 | rm -f conftest.err conftest.i conftest.$ac_ext |
2f1a1aea | 4380 | |
8f223b3e FCE |
4381 | # OK, works on sane cases. Now check whether nonexistent headers |
4382 | # can be detected and how. | |
4383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4384 | /* end confdefs.h. */ | |
4385 | #include <ac_nonexistent.h> | |
4386 | _ACEOF | |
4387 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4388 | # Broken: success on invalid input. | |
4389 | continue | |
4390 | else | |
4391 | # Passes both tests. | |
4392 | ac_preproc_ok=: | |
4393 | break | |
4394 | fi | |
c3de29bd | 4395 | rm -f conftest.err conftest.i conftest.$ac_ext |
7fbd9d09 | 4396 | |
2f1a1aea | 4397 | done |
8f223b3e | 4398 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
c3de29bd | 4399 | rm -f conftest.i conftest.err conftest.$ac_ext |
8f223b3e | 4400 | if $ac_preproc_ok; then : |
2f1a1aea | 4401 | |
8f223b3e FCE |
4402 | else |
4403 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4404 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5d4aa1f5 FCE |
4405 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4406 | See \`config.log' for more details" "$LINENO" 5; } | |
2f1a1aea FCE |
4407 | fi |
4408 | ||
8f223b3e FCE |
4409 | ac_ext=c |
4410 | ac_cpp='$CPP $CPPFLAGS' | |
4411 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4412 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4413 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4414 | ||
4415 | ||
4416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4417 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
c3de29bd | 4418 | if ${ac_cv_path_GREP+:} false; then : |
8f223b3e FCE |
4419 | $as_echo_n "(cached) " >&6 |
4420 | else | |
4421 | if test -z "$GREP"; then | |
4422 | ac_path_GREP_found=false | |
4423 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4425 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4426 | do | |
4427 | IFS=$as_save_IFS | |
4428 | test -z "$as_dir" && as_dir=. | |
4429 | for ac_prog in grep ggrep; do | |
4430 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4431 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
8eef2738 | 4432 | as_fn_executable_p "$ac_path_GREP" || continue |
8f223b3e FCE |
4433 | # Check for GNU ac_path_GREP and select it if it is found. |
4434 | # Check for GNU $ac_path_GREP | |
4435 | case `"$ac_path_GREP" --version 2>&1` in | |
4436 | *GNU*) | |
4437 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4438 | *) | |
4439 | ac_count=0 | |
4440 | $as_echo_n 0123456789 >"conftest.in" | |
4441 | while : | |
4442 | do | |
4443 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4444 | mv "conftest.tmp" "conftest.in" | |
4445 | cp "conftest.in" "conftest.nl" | |
4446 | $as_echo 'GREP' >> "conftest.nl" | |
4447 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4448 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4449 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4450 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4451 | # Best one so far, save it but keep looking for a better one | |
4452 | ac_cv_path_GREP="$ac_path_GREP" | |
4453 | ac_path_GREP_max=$ac_count | |
4454 | fi | |
4455 | # 10*(2^10) chars as input seems more than enough | |
4456 | test $ac_count -gt 10 && break | |
4457 | done | |
4458 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5e5aee9f | 4459 | esac |
8f223b3e FCE |
4460 | |
4461 | $ac_path_GREP_found && break 3 | |
4462 | done | |
4463 | done | |
4464 | done | |
4465 | IFS=$as_save_IFS | |
4466 | if test -z "$ac_cv_path_GREP"; then | |
5d4aa1f5 | 4467 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
1ef0423a | 4468 | fi |
8f223b3e FCE |
4469 | else |
4470 | ac_cv_path_GREP=$GREP | |
4471 | fi | |
2f1a1aea | 4472 | |
8f223b3e FCE |
4473 | fi |
4474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4475 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4476 | GREP="$ac_cv_path_GREP" | |
4477 | ||
4478 | ||
4479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4480 | $as_echo_n "checking for egrep... " >&6; } | |
c3de29bd | 4481 | if ${ac_cv_path_EGREP+:} false; then : |
8f223b3e FCE |
4482 | $as_echo_n "(cached) " >&6 |
4483 | else | |
4484 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4485 | then ac_cv_path_EGREP="$GREP -E" | |
4486 | else | |
4487 | if test -z "$EGREP"; then | |
4488 | ac_path_EGREP_found=false | |
4489 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4491 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4492 | do | |
4493 | IFS=$as_save_IFS | |
4494 | test -z "$as_dir" && as_dir=. | |
4495 | for ac_prog in egrep; do | |
4496 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4497 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
8eef2738 | 4498 | as_fn_executable_p "$ac_path_EGREP" || continue |
8f223b3e FCE |
4499 | # Check for GNU ac_path_EGREP and select it if it is found. |
4500 | # Check for GNU $ac_path_EGREP | |
4501 | case `"$ac_path_EGREP" --version 2>&1` in | |
4502 | *GNU*) | |
4503 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4504 | *) | |
4505 | ac_count=0 | |
4506 | $as_echo_n 0123456789 >"conftest.in" | |
4507 | while : | |
4508 | do | |
4509 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4510 | mv "conftest.tmp" "conftest.in" | |
4511 | cp "conftest.in" "conftest.nl" | |
4512 | $as_echo 'EGREP' >> "conftest.nl" | |
4513 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4514 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4515 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4516 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4517 | # Best one so far, save it but keep looking for a better one | |
4518 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4519 | ac_path_EGREP_max=$ac_count | |
4520 | fi | |
4521 | # 10*(2^10) chars as input seems more than enough | |
4522 | test $ac_count -gt 10 && break | |
4523 | done | |
4524 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4525 | esac | |
4526 | ||
4527 | $ac_path_EGREP_found && break 3 | |
4528 | done | |
4529 | done | |
4530 | done | |
4531 | IFS=$as_save_IFS | |
4532 | if test -z "$ac_cv_path_EGREP"; then | |
5d4aa1f5 | 4533 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8f223b3e FCE |
4534 | fi |
4535 | else | |
4536 | ac_cv_path_EGREP=$EGREP | |
4537 | fi | |
4538 | ||
4539 | fi | |
4540 | fi | |
4541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4542 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4543 | EGREP="$ac_cv_path_EGREP" | |
4544 | ||
4545 | ||
4546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4547 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
c3de29bd | 4548 | if ${ac_cv_header_stdc+:} false; then : |
0710d850 | 4549 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 4550 | else |
1ef0423a | 4551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea | 4552 | /* end confdefs.h. */ |
8f223b3e FCE |
4553 | #include <stdlib.h> |
4554 | #include <stdarg.h> | |
4555 | #include <string.h> | |
4556 | #include <float.h> | |
2f1a1aea FCE |
4557 | |
4558 | int | |
4559 | main () | |
4560 | { | |
2f1a1aea FCE |
4561 | |
4562 | ; | |
4563 | return 0; | |
4564 | } | |
4565 | _ACEOF | |
8f223b3e FCE |
4566 | if ac_fn_c_try_compile "$LINENO"; then : |
4567 | ac_cv_header_stdc=yes | |
2f1a1aea | 4568 | else |
8f223b3e | 4569 | ac_cv_header_stdc=no |
2f1a1aea | 4570 | fi |
7fbd9d09 | 4571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2f1a1aea | 4572 | |
8f223b3e FCE |
4573 | if test $ac_cv_header_stdc = yes; then |
4574 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4576 | /* end confdefs.h. */ | |
4577 | #include <string.h> | |
4578 | ||
4579 | _ACEOF | |
4580 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4581 | $EGREP "memchr" >/dev/null 2>&1; then : | |
4582 | ||
0710d850 | 4583 | else |
8f223b3e | 4584 | ac_cv_header_stdc=no |
0710d850 | 4585 | fi |
8f223b3e | 4586 | rm -f conftest* |
2f1a1aea | 4587 | |
8f223b3e FCE |
4588 | fi |
4589 | ||
4590 | if test $ac_cv_header_stdc = yes; then | |
4591 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4593 | /* end confdefs.h. */ | |
4594 | #include <stdlib.h> | |
2f1a1aea | 4595 | |
2f1a1aea | 4596 | _ACEOF |
8f223b3e FCE |
4597 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4598 | $EGREP "free" >/dev/null 2>&1; then : | |
4599 | ||
2f1a1aea | 4600 | else |
8f223b3e FCE |
4601 | ac_cv_header_stdc=no |
4602 | fi | |
4603 | rm -f conftest* | |
4604 | ||
4605 | fi | |
4606 | ||
4607 | if test $ac_cv_header_stdc = yes; then | |
4608 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4609 | if test "$cross_compiling" = yes; then : | |
4610 | : | |
4611 | else | |
4612 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2f1a1aea | 4613 | /* end confdefs.h. */ |
8f223b3e FCE |
4614 | #include <ctype.h> |
4615 | #include <stdlib.h> | |
4616 | #if ((' ' & 0x0FF) == 0x020) | |
4617 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4618 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4619 | #else | |
4620 | # define ISLOWER(c) \ | |
4621 | (('a' <= (c) && (c) <= 'i') \ | |
4622 | || ('j' <= (c) && (c) <= 'r') \ | |
4623 | || ('s' <= (c) && (c) <= 'z')) | |
4624 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4625 | #endif | |
7fbd9d09 | 4626 | |
8f223b3e | 4627 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
2f1a1aea FCE |
4628 | int |
4629 | main () | |
4630 | { | |
8f223b3e FCE |
4631 | int i; |
4632 | for (i = 0; i < 256; i++) | |
4633 | if (XOR (islower (i), ISLOWER (i)) | |
4634 | || toupper (i) != TOUPPER (i)) | |
4635 | return 2; | |
2f1a1aea FCE |
4636 | return 0; |
4637 | } | |
4638 | _ACEOF | |
8f223b3e | 4639 | if ac_fn_c_try_run "$LINENO"; then : |
5e5aee9f | 4640 | |
1ef0423a | 4641 | else |
8f223b3e FCE |
4642 | ac_cv_header_stdc=no |
4643 | fi | |
4644 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4645 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4646 | fi | |
4647 | ||
4648 | fi | |
4649 | fi | |
4650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
4651 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4652 | if test $ac_cv_header_stdc = yes; then | |
4653 | ||
4654 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
4655 | ||
4656 | fi | |
4657 | ||
4658 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4659 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4660 | inttypes.h stdint.h unistd.h | |
4661 | do : | |
4662 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4663 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4664 | " | |
5d4aa1f5 | 4665 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
8f223b3e FCE |
4666 | cat >>confdefs.h <<_ACEOF |
4667 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4668 | _ACEOF | |
4669 | ||
4670 | fi | |
4671 | ||
4672 | done | |
4673 | ||
4674 | ||
4675 | ||
4676 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
c3de29bd | 4677 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
8f223b3e FCE |
4678 | MINIX=yes |
4679 | else | |
4680 | MINIX= | |
4681 | fi | |
4682 | ||
4683 | ||
4684 | if test "$MINIX" = yes; then | |
4685 | ||
4686 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
4687 | ||
4688 | ||
4689 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
4690 | ||
4691 | ||
4692 | $as_echo "#define _MINIX 1" >>confdefs.h | |
4693 | ||
4694 | fi | |
4695 | ||
4696 | ||
4697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
4698 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
c3de29bd | 4699 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
8f223b3e FCE |
4700 | $as_echo_n "(cached) " >&6 |
4701 | else | |
4702 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2f1a1aea | 4703 | /* end confdefs.h. */ |
7fbd9d09 | 4704 | |
8eef2738 LB |
4705 | # define __EXTENSIONS__ 1 |
4706 | $ac_includes_default | |
2f1a1aea FCE |
4707 | int |
4708 | main () | |
4709 | { | |
7fbd9d09 | 4710 | |
2f1a1aea FCE |
4711 | ; |
4712 | return 0; | |
4713 | } | |
4a3c19da | 4714 | _ACEOF |
8f223b3e FCE |
4715 | if ac_fn_c_try_compile "$LINENO"; then : |
4716 | ac_cv_safe_to_define___extensions__=yes | |
4717 | else | |
4718 | ac_cv_safe_to_define___extensions__=no | |
5e0d2ebf | 4719 | fi |
7fbd9d09 | 4720 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7fbd9d09 | 4721 | fi |
8f223b3e FCE |
4722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
4723 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
4724 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4725 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
2f1a1aea | 4726 | |
8f223b3e | 4727 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
2f1a1aea | 4728 | |
8f223b3e | 4729 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
2f1a1aea | 4730 | |
8f223b3e | 4731 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
0710d850 | 4732 | |
8f223b3e | 4733 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
2f1a1aea | 4734 | |
2f1a1aea | 4735 | |
8eef2738 | 4736 | |
2f1a1aea | 4737 | |
8f223b3e FCE |
4738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
4739 | $as_echo_n "checking whether ln -s works... " >&6; } | |
4740 | LN_S=$as_ln_s | |
4741 | if test "$LN_S" = "ln -s"; then | |
4742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4743 | $as_echo "yes" >&6; } | |
2f1a1aea | 4744 | else |
8f223b3e FCE |
4745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
4746 | $as_echo "no, using $LN_S" >&6; } | |
2f1a1aea FCE |
4747 | fi |
4748 | ||
2f1a1aea FCE |
4749 | ac_ext=c |
4750 | ac_cpp='$CPP $CPPFLAGS' | |
4751 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4752 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4753 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8f223b3e FCE |
4754 | if test -n "$ac_tool_prefix"; then |
4755 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4756 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
4757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4758 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 4759 | if ${ac_cv_prog_CC+:} false; then : |
0710d850 | 4760 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 4761 | else |
8f223b3e FCE |
4762 | if test -n "$CC"; then |
4763 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2f1a1aea FCE |
4764 | else |
4765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4766 | for as_dir in $PATH | |
4767 | do | |
4768 | IFS=$as_save_IFS | |
4769 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 4770 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 4771 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea | 4772 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1ef0423a | 4773 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4774 | break 2 |
4775 | fi | |
4776 | done | |
1ef0423a | 4777 | done |
7fbd9d09 | 4778 | IFS=$as_save_IFS |
2f1a1aea FCE |
4779 | |
4780 | fi | |
4781 | fi | |
4782 | CC=$ac_cv_prog_CC | |
4783 | if test -n "$CC"; then | |
1ef0423a | 4784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
0710d850 | 4785 | $as_echo "$CC" >&6; } |
2f1a1aea | 4786 | else |
1ef0423a | 4787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 4788 | $as_echo "no" >&6; } |
2f1a1aea FCE |
4789 | fi |
4790 | ||
7fbd9d09 | 4791 | |
2f1a1aea FCE |
4792 | fi |
4793 | if test -z "$ac_cv_prog_CC"; then | |
4794 | ac_ct_CC=$CC | |
4795 | # Extract the first word of "gcc", so it can be a program name with args. | |
4796 | set dummy gcc; ac_word=$2 | |
1ef0423a | 4797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 4798 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 4799 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
0710d850 | 4800 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4801 | else |
4802 | if test -n "$ac_ct_CC"; then | |
4803 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4804 | else | |
4805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4806 | for as_dir in $PATH | |
4807 | do | |
4808 | IFS=$as_save_IFS | |
4809 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 4810 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 4811 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea | 4812 | ac_cv_prog_ac_ct_CC="gcc" |
1ef0423a | 4813 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4814 | break 2 |
4815 | fi | |
4816 | done | |
1ef0423a | 4817 | done |
7fbd9d09 | 4818 | IFS=$as_save_IFS |
2f1a1aea FCE |
4819 | |
4820 | fi | |
4821 | fi | |
4822 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4823 | if test -n "$ac_ct_CC"; then | |
1ef0423a | 4824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
0710d850 | 4825 | $as_echo "$ac_ct_CC" >&6; } |
2f1a1aea | 4826 | else |
1ef0423a | 4827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 4828 | $as_echo "no" >&6; } |
2f1a1aea FCE |
4829 | fi |
4830 | ||
7fbd9d09 FCE |
4831 | if test "x$ac_ct_CC" = x; then |
4832 | CC="" | |
4833 | else | |
4834 | case $cross_compiling:$ac_tool_warned in | |
4835 | yes:) | |
1ef0423a | 4836 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
0710d850 | 4837 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7fbd9d09 FCE |
4838 | ac_tool_warned=yes ;; |
4839 | esac | |
4840 | CC=$ac_ct_CC | |
4841 | fi | |
2f1a1aea FCE |
4842 | else |
4843 | CC="$ac_cv_prog_CC" | |
4844 | fi | |
4845 | ||
4846 | if test -z "$CC"; then | |
7fbd9d09 FCE |
4847 | if test -n "$ac_tool_prefix"; then |
4848 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2f1a1aea | 4849 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
1ef0423a | 4850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 4851 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 4852 | if ${ac_cv_prog_CC+:} false; then : |
0710d850 | 4853 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4854 | else |
4855 | if test -n "$CC"; then | |
4856 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4857 | else | |
4858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4859 | for as_dir in $PATH | |
4860 | do | |
4861 | IFS=$as_save_IFS | |
4862 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 4863 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 4864 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea | 4865 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1ef0423a | 4866 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4867 | break 2 |
4868 | fi | |
4869 | done | |
1ef0423a | 4870 | done |
7fbd9d09 | 4871 | IFS=$as_save_IFS |
2f1a1aea FCE |
4872 | |
4873 | fi | |
4874 | fi | |
4875 | CC=$ac_cv_prog_CC | |
4876 | if test -n "$CC"; then | |
1ef0423a | 4877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
0710d850 | 4878 | $as_echo "$CC" >&6; } |
818ba2bc | 4879 | else |
1ef0423a | 4880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 4881 | $as_echo "no" >&6; } |
818ba2bc MW |
4882 | fi |
4883 | ||
818ba2bc | 4884 | |
7fbd9d09 | 4885 | fi |
8ae7a94a FCE |
4886 | fi |
4887 | if test -z "$CC"; then | |
4888 | # Extract the first word of "cc", so it can be a program name with args. | |
4889 | set dummy cc; ac_word=$2 | |
1ef0423a | 4890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 4891 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 4892 | if ${ac_cv_prog_CC+:} false; then : |
0710d850 | 4893 | $as_echo_n "(cached) " >&6 |
8ae7a94a FCE |
4894 | else |
4895 | if test -n "$CC"; then | |
2f1a1aea FCE |
4896 | ac_cv_prog_CC="$CC" # Let the user override the test. |
4897 | else | |
4898 | ac_prog_rejected=no | |
4899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4900 | for as_dir in $PATH | |
4901 | do | |
4902 | IFS=$as_save_IFS | |
4903 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 4904 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 4905 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea FCE |
4906 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4907 | ac_prog_rejected=yes | |
4908 | continue | |
4909 | fi | |
4910 | ac_cv_prog_CC="cc" | |
1ef0423a | 4911 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4912 | break 2 |
4913 | fi | |
4914 | done | |
1ef0423a | 4915 | done |
7fbd9d09 | 4916 | IFS=$as_save_IFS |
2f1a1aea FCE |
4917 | |
4918 | if test $ac_prog_rejected = yes; then | |
4919 | # We found a bogon in the path, so make sure we never use it. | |
4920 | set dummy $ac_cv_prog_CC | |
4921 | shift | |
4922 | if test $# != 0; then | |
4923 | # We chose a different compiler from the bogus one. | |
4924 | # However, it has the same basename, so the bogon will be chosen | |
4925 | # first if we set CC to just the basename; use the full file name. | |
4926 | shift | |
4927 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4928 | fi | |
4929 | fi | |
4930 | fi | |
4931 | fi | |
4932 | CC=$ac_cv_prog_CC | |
4933 | if test -n "$CC"; then | |
1ef0423a | 4934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
0710d850 | 4935 | $as_echo "$CC" >&6; } |
2f1a1aea | 4936 | else |
1ef0423a | 4937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 4938 | $as_echo "no" >&6; } |
2f1a1aea FCE |
4939 | fi |
4940 | ||
7fbd9d09 | 4941 | |
2f1a1aea FCE |
4942 | fi |
4943 | if test -z "$CC"; then | |
4944 | if test -n "$ac_tool_prefix"; then | |
7fbd9d09 | 4945 | for ac_prog in cl.exe |
2f1a1aea FCE |
4946 | do |
4947 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4948 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1ef0423a | 4949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 4950 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 4951 | if ${ac_cv_prog_CC+:} false; then : |
0710d850 | 4952 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4953 | else |
4954 | if test -n "$CC"; then | |
4955 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4956 | else | |
4957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4958 | for as_dir in $PATH | |
4959 | do | |
4960 | IFS=$as_save_IFS | |
4961 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 4962 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 4963 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea | 4964 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1ef0423a | 4965 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4966 | break 2 |
4967 | fi | |
4968 | done | |
1ef0423a | 4969 | done |
7fbd9d09 | 4970 | IFS=$as_save_IFS |
2f1a1aea FCE |
4971 | |
4972 | fi | |
4973 | fi | |
4974 | CC=$ac_cv_prog_CC | |
4975 | if test -n "$CC"; then | |
1ef0423a | 4976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
0710d850 | 4977 | $as_echo "$CC" >&6; } |
2f1a1aea | 4978 | else |
1ef0423a | 4979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 4980 | $as_echo "no" >&6; } |
2f1a1aea FCE |
4981 | fi |
4982 | ||
7fbd9d09 | 4983 | |
2f1a1aea FCE |
4984 | test -n "$CC" && break |
4985 | done | |
4986 | fi | |
4987 | if test -z "$CC"; then | |
4988 | ac_ct_CC=$CC | |
7fbd9d09 | 4989 | for ac_prog in cl.exe |
2f1a1aea FCE |
4990 | do |
4991 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4992 | set dummy $ac_prog; ac_word=$2 | |
1ef0423a | 4993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 4994 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 4995 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
0710d850 | 4996 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4997 | else |
4998 | if test -n "$ac_ct_CC"; then | |
4999 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
5000 | else | |
5001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5002 | for as_dir in $PATH | |
5003 | do | |
5004 | IFS=$as_save_IFS | |
5005 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 5006 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 5007 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea | 5008 | ac_cv_prog_ac_ct_CC="$ac_prog" |
1ef0423a | 5009 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
5010 | break 2 |
5011 | fi | |
5012 | done | |
1ef0423a | 5013 | done |
7fbd9d09 | 5014 | IFS=$as_save_IFS |
2f1a1aea FCE |
5015 | |
5016 | fi | |
5017 | fi | |
5018 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
5019 | if test -n "$ac_ct_CC"; then | |
1ef0423a | 5020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
0710d850 | 5021 | $as_echo "$ac_ct_CC" >&6; } |
2f1a1aea | 5022 | else |
1ef0423a | 5023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 5024 | $as_echo "no" >&6; } |
2f1a1aea FCE |
5025 | fi |
5026 | ||
7fbd9d09 | 5027 | |
2f1a1aea FCE |
5028 | test -n "$ac_ct_CC" && break |
5029 | done | |
5030 | ||
7fbd9d09 FCE |
5031 | if test "x$ac_ct_CC" = x; then |
5032 | CC="" | |
5033 | else | |
5034 | case $cross_compiling:$ac_tool_warned in | |
5035 | yes:) | |
1ef0423a | 5036 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
0710d850 | 5037 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7fbd9d09 FCE |
5038 | ac_tool_warned=yes ;; |
5039 | esac | |
5040 | CC=$ac_ct_CC | |
5041 | fi | |
2f1a1aea FCE |
5042 | fi |
5043 | ||
5044 | fi | |
5045 | ||
5046 | ||
1ef0423a | 5047 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
0710d850 | 5048 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
5d4aa1f5 FCE |
5049 | as_fn_error $? "no acceptable C compiler found in \$PATH |
5050 | See \`config.log' for more details" "$LINENO" 5; } | |
2f1a1aea FCE |
5051 | |
5052 | # Provide some information about the compiler. | |
1ef0423a | 5053 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
0710d850 DS |
5054 | set X $ac_compile |
5055 | ac_compiler=$2 | |
1ef0423a FCE |
5056 | for ac_option in --version -v -V -qversion; do |
5057 | { { ac_try="$ac_compiler $ac_option >&5" | |
5e5aee9f FCE |
5058 | case "(($ac_try" in |
5059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5060 | *) ac_try_echo=$ac_try;; | |
5061 | esac | |
1ef0423a FCE |
5062 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
5063 | $as_echo "$ac_try_echo"; } >&5 | |
5064 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
5e5aee9f | 5065 | ac_status=$? |
1ef0423a FCE |
5066 | if test -s conftest.err; then |
5067 | sed '10a\ | |
5068 | ... rest of stderr output deleted ... | |
5069 | 10q' conftest.err >conftest.er1 | |
5070 | cat conftest.er1 >&5 | |
5071 | fi | |
5072 | rm -f conftest.er1 conftest.err | |
5073 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5074 | test $ac_status = 0; } | |
5075 | done | |
2f1a1aea | 5076 | |
1ef0423a | 5077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
0710d850 | 5078 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
c3de29bd | 5079 | if ${ac_cv_c_compiler_gnu+:} false; then : |
0710d850 | 5080 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 5081 | else |
1ef0423a | 5082 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea FCE |
5083 | /* end confdefs.h. */ |
5084 | ||
5085 | int | |
5086 | main () | |
5087 | { | |
5088 | #ifndef __GNUC__ | |
5089 | choke me | |
5090 | #endif | |
5091 | ||
5092 | ; | |
5093 | return 0; | |
5094 | } | |
5095 | _ACEOF | |
1ef0423a | 5096 | if ac_fn_c_try_compile "$LINENO"; then : |
2f1a1aea FCE |
5097 | ac_compiler_gnu=yes |
5098 | else | |
1ef0423a | 5099 | ac_compiler_gnu=no |
2f1a1aea | 5100 | fi |
7fbd9d09 | 5101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2f1a1aea FCE |
5102 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
5103 | ||
5104 | fi | |
1ef0423a | 5105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
0710d850 DS |
5106 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
5107 | if test $ac_compiler_gnu = yes; then | |
5108 | GCC=yes | |
5109 | else | |
5110 | GCC= | |
5111 | fi | |
2f1a1aea FCE |
5112 | ac_test_CFLAGS=${CFLAGS+set} |
5113 | ac_save_CFLAGS=$CFLAGS | |
1ef0423a | 5114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
0710d850 | 5115 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
c3de29bd | 5116 | if ${ac_cv_prog_cc_g+:} false; then : |
0710d850 | 5117 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 5118 | else |
7fbd9d09 FCE |
5119 | ac_save_c_werror_flag=$ac_c_werror_flag |
5120 | ac_c_werror_flag=yes | |
5121 | ac_cv_prog_cc_g=no | |
5122 | CFLAGS="-g" | |
1ef0423a | 5123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea FCE |
5124 | /* end confdefs.h. */ |
5125 | ||
5126 | int | |
5127 | main () | |
5128 | { | |
5129 | ||
5130 | ; | |
5131 | return 0; | |
5132 | } | |
5133 | _ACEOF | |
1ef0423a | 5134 | if ac_fn_c_try_compile "$LINENO"; then : |
7fbd9d09 FCE |
5135 | ac_cv_prog_cc_g=yes |
5136 | else | |
1ef0423a FCE |
5137 | CFLAGS="" |
5138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7fbd9d09 FCE |
5139 | /* end confdefs.h. */ |
5140 | ||
5141 | int | |
5142 | main () | |
5143 | { | |
5144 | ||
5145 | ; | |
5146 | return 0; | |
5147 | } | |
5148 | _ACEOF | |
1ef0423a | 5149 | if ac_fn_c_try_compile "$LINENO"; then : |
5e5aee9f | 5150 | |
1ef0423a FCE |
5151 | else |
5152 | ac_c_werror_flag=$ac_save_c_werror_flag | |
7fbd9d09 | 5153 | CFLAGS="-g" |
1ef0423a | 5154 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7fbd9d09 FCE |
5155 | /* end confdefs.h. */ |
5156 | ||
5157 | int | |
5158 | main () | |
5159 | { | |
5160 | ||
5161 | ; | |
5162 | return 0; | |
5163 | } | |
5164 | _ACEOF | |
1ef0423a | 5165 | if ac_fn_c_try_compile "$LINENO"; then : |
5e0d2ebf | 5166 | ac_cv_prog_cc_g=yes |
7fbd9d09 | 5167 | fi |
7fbd9d09 FCE |
5168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5169 | fi | |
7fbd9d09 | 5170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5e0d2ebf | 5171 | fi |
7fbd9d09 FCE |
5172 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5173 | ac_c_werror_flag=$ac_save_c_werror_flag | |
70d28673 | 5174 | fi |
1ef0423a | 5175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
0710d850 | 5176 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
70d28673 DS |
5177 | if test "$ac_test_CFLAGS" = set; then |
5178 | CFLAGS=$ac_save_CFLAGS | |
5179 | elif test $ac_cv_prog_cc_g = yes; then | |
5180 | if test "$GCC" = yes; then | |
5181 | CFLAGS="-g -O2" | |
5182 | else | |
5183 | CFLAGS="-g" | |
5184 | fi | |
5185 | else | |
5186 | if test "$GCC" = yes; then | |
5187 | CFLAGS="-O2" | |
5188 | else | |
5189 | CFLAGS= | |
5190 | fi | |
5191 | fi | |
1ef0423a | 5192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
0710d850 | 5193 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
c3de29bd | 5194 | if ${ac_cv_prog_cc_c89+:} false; then : |
0710d850 | 5195 | $as_echo_n "(cached) " >&6 |
70d28673 | 5196 | else |
7fbd9d09 | 5197 | ac_cv_prog_cc_c89=no |
70d28673 | 5198 | ac_save_CC=$CC |
1ef0423a | 5199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea | 5200 | /* end confdefs.h. */ |
70d28673 DS |
5201 | #include <stdarg.h> |
5202 | #include <stdio.h> | |
8eef2738 | 5203 | struct stat; |
70d28673 DS |
5204 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
5205 | struct buf { int x; }; | |
5206 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
5207 | static char *e (p, i) | |
5208 | char **p; | |
5209 | int i; | |
5210 | { | |
5211 | return p[i]; | |
5212 | } | |
5213 | static char *f (char * (*g) (char **, int), char **p, ...) | |
5214 | { | |
5215 | char *s; | |
5216 | va_list v; | |
5217 | va_start (v,p); | |
5218 | s = g (p, va_arg (v,int)); | |
5219 | va_end (v); | |
5220 | return s; | |
5221 | } | |
5222 | ||
5223 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
5224 | function prototypes and stuff, but not '\xHH' hex character constants. | |
5225 | These don't provoke an error unfortunately, instead are silently treated | |
7fbd9d09 | 5226 | as 'x'. The following induces an error, until -std is added to get |
70d28673 DS |
5227 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
5228 | array size at least. It's necessary to write '\x00'==0 to get something | |
7fbd9d09 | 5229 | that's true only with -std. */ |
70d28673 DS |
5230 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
5231 | ||
7fbd9d09 FCE |
5232 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
5233 | inside strings and character constants. */ | |
5234 | #define FOO(x) 'x' | |
5235 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
5236 | ||
70d28673 DS |
5237 | int test (int i, double x); |
5238 | struct s1 {int (*f) (int a);}; | |
5239 | struct s2 {int (*f) (double a);}; | |
5240 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
5241 | int argc; | |
5242 | char **argv; | |
2f1a1aea FCE |
5243 | int |
5244 | main () | |
5245 | { | |
70d28673 | 5246 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2f1a1aea FCE |
5247 | ; |
5248 | return 0; | |
5249 | } | |
5250 | _ACEOF | |
7fbd9d09 FCE |
5251 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
5252 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
70d28673 DS |
5253 | do |
5254 | CC="$ac_save_CC $ac_arg" | |
1ef0423a | 5255 | if ac_fn_c_try_compile "$LINENO"; then : |
7fbd9d09 | 5256 | ac_cv_prog_cc_c89=$ac_arg |
2f1a1aea | 5257 | fi |
7fbd9d09 FCE |
5258 | rm -f core conftest.err conftest.$ac_objext |
5259 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
2f1a1aea | 5260 | done |
7fbd9d09 | 5261 | rm -f conftest.$ac_ext |
70d28673 DS |
5262 | CC=$ac_save_CC |
5263 | ||
2f1a1aea | 5264 | fi |
7fbd9d09 FCE |
5265 | # AC_CACHE_VAL |
5266 | case "x$ac_cv_prog_cc_c89" in | |
5267 | x) | |
1ef0423a | 5268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
0710d850 | 5269 | $as_echo "none needed" >&6; } ;; |
7fbd9d09 | 5270 | xno) |
1ef0423a | 5271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
0710d850 | 5272 | $as_echo "unsupported" >&6; } ;; |
70d28673 | 5273 | *) |
7fbd9d09 | 5274 | CC="$CC $ac_cv_prog_cc_c89" |
1ef0423a | 5275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
0710d850 | 5276 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
70d28673 | 5277 | esac |
1ef0423a | 5278 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
2f1a1aea | 5279 | |
1ef0423a | 5280 | fi |
2f1a1aea | 5281 | |
2f1a1aea FCE |
5282 | ac_ext=c |
5283 | ac_cpp='$CPP $CPPFLAGS' | |
5284 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5285 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5286 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5287 | ||
5288 | depcc="$CC" am_compiler_list= | |
5289 | ||
1ef0423a | 5290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
0710d850 | 5291 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
c3de29bd | 5292 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
0710d850 | 5293 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
5294 | else |
5295 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
5296 | # We make a subdir and do the tests there. Otherwise we can end up | |
5297 | # making bogus files that we don't know about and never remove. For | |
5298 | # instance it was reported that on HP-UX the gcc test will end up | |
8eef2738 LB |
5299 | # making a dummy file named 'D' -- because '-MD' means "put the output |
5300 | # in D". | |
c66be968 | 5301 | rm -rf conftest.dir |
2f1a1aea FCE |
5302 | mkdir conftest.dir |
5303 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5304 | # using a relative directory. | |
5305 | cp "$am_depcomp" conftest.dir | |
5306 | cd conftest.dir | |
5307 | # We will build objects and dependencies in a subdirectory because | |
5308 | # it helps to detect inapplicable dependency modes. For instance | |
5309 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5310 | # side effect of compilation, but ICC will put the dependencies in | |
5311 | # the current directory while Tru64 will put them in the object | |
5312 | # directory. | |
5313 | mkdir sub | |
5314 | ||
5315 | am_cv_CC_dependencies_compiler_type=none | |
5316 | if test "$am_compiler_list" = ""; then | |
5317 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5318 | fi | |
0710d850 DS |
5319 | am__universal=false |
5320 | case " $depcc " in #( | |
5321 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
5322 | esac | |
5323 | ||
2f1a1aea FCE |
5324 | for depmode in $am_compiler_list; do |
5325 | # Setup a source with many dependencies, because some compilers | |
5326 | # like to wrap large dependency lists on column 80 (with \), and | |
5327 | # we should not choose a depcomp mode which is confused by this. | |
5328 | # | |
5329 | # We need to recreate these files for each test, as the compiler may | |
5330 | # overwrite some of them when testing with obscure command lines. | |
5331 | # This happens at least with the AIX C compiler. | |
5332 | : > sub/conftest.c | |
5333 | for i in 1 2 3 4 5 6; do | |
5334 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
8eef2738 LB |
5335 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
5336 | # Solaris 10 /bin/sh. | |
5337 | echo '/* dummy */' > sub/conftst$i.h | |
2f1a1aea FCE |
5338 | done |
5339 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
5340 | ||
8eef2738 | 5341 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
0710d850 | 5342 | # mode. It turns out that the SunPro C++ compiler does not properly |
8eef2738 LB |
5343 | # handle '-M -o', and we need to detect this. Also, some Intel |
5344 | # versions had trouble with output in subdirs. | |
0710d850 DS |
5345 | am__obj=sub/conftest.${OBJEXT-o} |
5346 | am__minus_obj="-o $am__obj" | |
2f1a1aea | 5347 | case $depmode in |
0710d850 DS |
5348 | gcc) |
5349 | # This depmode causes a compiler race in universal mode. | |
5350 | test "$am__universal" = false || continue | |
5351 | ;; | |
2f1a1aea | 5352 | nosideeffect) |
8eef2738 LB |
5353 | # After this tag, mechanisms are not by side-effect, so they'll |
5354 | # only be used when explicitly requested. | |
2f1a1aea FCE |
5355 | if test "x$enable_dependency_tracking" = xyes; then |
5356 | continue | |
5357 | else | |
5358 | break | |
5359 | fi | |
5360 | ;; | |
c66be968 | 5361 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
8eef2738 | 5362 | # This compiler won't grok '-c -o', but also, the minuso test has |
0710d850 DS |
5363 | # not run yet. These depmodes are late enough in the game, and |
5364 | # so weak that their functioning should not be impacted. | |
5365 | am__obj=conftest.${OBJEXT-o} | |
5366 | am__minus_obj= | |
5367 | ;; | |
2f1a1aea FCE |
5368 | none) break ;; |
5369 | esac | |
2f1a1aea | 5370 | if depmode=$depmode \ |
0710d850 | 5371 | source=sub/conftest.c object=$am__obj \ |
2f1a1aea | 5372 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
0710d850 | 5373 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
2f1a1aea | 5374 | >/dev/null 2>conftest.err && |
7fbd9d09 | 5375 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea | 5376 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
0710d850 | 5377 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea FCE |
5378 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
5379 | # icc doesn't choke on unknown options, it will just issue warnings | |
5380 | # or remarks (even with -Werror). So we grep stderr for any message | |
5381 | # that says an option was ignored or not supported. | |
5382 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5383 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5384 | # The diagnosis changed in icc 8.0: | |
5385 | # icc: Command line remark: option '-MP' not supported | |
5386 | if (grep 'ignoring option' conftest.err || | |
5387 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5388 | am_cv_CC_dependencies_compiler_type=$depmode | |
5389 | break | |
5390 | fi | |
5391 | fi | |
5392 | done | |
5393 | ||
5394 | cd .. | |
5395 | rm -rf conftest.dir | |
5396 | else | |
5397 | am_cv_CC_dependencies_compiler_type=none | |
5398 | fi | |
5399 | ||
5400 | fi | |
1ef0423a | 5401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
0710d850 | 5402 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
2f1a1aea FCE |
5403 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
5404 | ||
7fbd9d09 | 5405 | if |
2f1a1aea FCE |
5406 | test "x$enable_dependency_tracking" != xno \ |
5407 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
5408 | am__fastdepCC_TRUE= | |
5409 | am__fastdepCC_FALSE='#' | |
5410 | else | |
5411 | am__fastdepCC_TRUE='#' | |
5412 | am__fastdepCC_FALSE= | |
5413 | fi | |
5414 | ||
5415 | ||
8f223b3e FCE |
5416 | ac_ext=cpp |
5417 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5418 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5419 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5420 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5421 | if test -z "$CXX"; then | |
5422 | if test -n "$CCC"; then | |
5423 | CXX=$CCC | |
5424 | else | |
5425 | if test -n "$ac_tool_prefix"; then | |
5426 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
5427 | do | |
5428 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5429 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5431 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 5432 | if ${ac_cv_prog_CXX+:} false; then : |
8f223b3e FCE |
5433 | $as_echo_n "(cached) " >&6 |
5434 | else | |
5435 | if test -n "$CXX"; then | |
5436 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
5437 | else | |
5438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5439 | for as_dir in $PATH | |
5440 | do | |
5441 | IFS=$as_save_IFS | |
5442 | test -z "$as_dir" && as_dir=. | |
5443 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 5444 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8f223b3e FCE |
5445 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5446 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5447 | break 2 | |
5448 | fi | |
5449 | done | |
5450 | done | |
5451 | IFS=$as_save_IFS | |
2f1a1aea | 5452 | |
8f223b3e FCE |
5453 | fi |
5454 | fi | |
5455 | CXX=$ac_cv_prog_CXX | |
5456 | if test -n "$CXX"; then | |
5457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
5458 | $as_echo "$CXX" >&6; } | |
8ae7a94a | 5459 | else |
8f223b3e FCE |
5460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5461 | $as_echo "no" >&6; } | |
8ae7a94a | 5462 | fi |
8f223b3e FCE |
5463 | |
5464 | ||
5465 | test -n "$CXX" && break | |
5466 | done | |
5467 | fi | |
5468 | if test -z "$CXX"; then | |
5469 | ac_ct_CXX=$CXX | |
5470 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
5471 | do | |
5472 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5473 | set dummy $ac_prog; ac_word=$2 | |
5474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5475 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 5476 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
0710d850 | 5477 | $as_echo_n "(cached) " >&6 |
8ae7a94a | 5478 | else |
8f223b3e FCE |
5479 | if test -n "$ac_ct_CXX"; then |
5480 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
5481 | else | |
5482 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5483 | for as_dir in $PATH | |
5484 | do | |
5485 | IFS=$as_save_IFS | |
5486 | test -z "$as_dir" && as_dir=. | |
5487 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 5488 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8f223b3e FCE |
5489 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5490 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5491 | break 2 | |
5492 | fi | |
5493 | done | |
5494 | done | |
5495 | IFS=$as_save_IFS | |
8ae7a94a | 5496 | |
8f223b3e FCE |
5497 | fi |
5498 | fi | |
5499 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
5500 | if test -n "$ac_ct_CXX"; then | |
5501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
5502 | $as_echo "$ac_ct_CXX" >&6; } | |
5503 | else | |
5504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5505 | $as_echo "no" >&6; } | |
5506 | fi | |
8ae7a94a | 5507 | |
8f223b3e FCE |
5508 | |
5509 | test -n "$ac_ct_CXX" && break | |
5510 | done | |
5511 | ||
5512 | if test "x$ac_ct_CXX" = x; then | |
5513 | CXX="g++" | |
5514 | else | |
5515 | case $cross_compiling:$ac_tool_warned in | |
5516 | yes:) | |
5517 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5518 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5519 | ac_tool_warned=yes ;; | |
5520 | esac | |
5521 | CXX=$ac_ct_CXX | |
5522 | fi | |
5523 | fi | |
5524 | ||
5525 | fi | |
5526 | fi | |
5527 | # Provide some information about the compiler. | |
5528 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
5529 | set X $ac_compile | |
5530 | ac_compiler=$2 | |
5531 | for ac_option in --version -v -V -qversion; do | |
5532 | { { ac_try="$ac_compiler $ac_option >&5" | |
5533 | case "(($ac_try" in | |
7fbd9d09 FCE |
5534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5535 | *) ac_try_echo=$ac_try;; | |
5536 | esac | |
1ef0423a FCE |
5537 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
5538 | $as_echo "$ac_try_echo"; } >&5 | |
8f223b3e FCE |
5539 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
5540 | ac_status=$? | |
5541 | if test -s conftest.err; then | |
5542 | sed '10a\ | |
5543 | ... rest of stderr output deleted ... | |
5544 | 10q' conftest.err >conftest.er1 | |
5545 | cat conftest.er1 >&5 | |
5546 | fi | |
5547 | rm -f conftest.er1 conftest.err | |
5548 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5549 | test $ac_status = 0; } | |
5550 | done | |
5551 | ||
5552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | |
5553 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
c3de29bd | 5554 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
8f223b3e FCE |
5555 | $as_echo_n "(cached) " >&6 |
5556 | else | |
5557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5558 | /* end confdefs.h. */ | |
5559 | ||
5560 | int | |
5561 | main () | |
5562 | { | |
5563 | #ifndef __GNUC__ | |
5564 | choke me | |
5565 | #endif | |
5566 | ||
5567 | ; | |
5568 | return 0; | |
5569 | } | |
5570 | _ACEOF | |
5571 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5572 | ac_compiler_gnu=yes | |
5573 | else | |
5574 | ac_compiler_gnu=no | |
5575 | fi | |
5576 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5577 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
5578 | ||
5579 | fi | |
5580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
5581 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
5582 | if test $ac_compiler_gnu = yes; then | |
5583 | GXX=yes | |
5584 | else | |
5585 | GXX= | |
5586 | fi | |
5587 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
5588 | ac_save_CXXFLAGS=$CXXFLAGS | |
5589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
5590 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
c3de29bd | 5591 | if ${ac_cv_prog_cxx_g+:} false; then : |
8f223b3e FCE |
5592 | $as_echo_n "(cached) " >&6 |
5593 | else | |
5594 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
5595 | ac_cxx_werror_flag=yes | |
5596 | ac_cv_prog_cxx_g=no | |
5597 | CXXFLAGS="-g" | |
5598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5599 | /* end confdefs.h. */ | |
5600 | ||
5601 | int | |
5602 | main () | |
5603 | { | |
5604 | ||
5605 | ; | |
5606 | return 0; | |
5607 | } | |
5608 | _ACEOF | |
5609 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5610 | ac_cv_prog_cxx_g=yes | |
5611 | else | |
5612 | CXXFLAGS="" | |
5613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5614 | /* end confdefs.h. */ | |
5615 | ||
5616 | int | |
5617 | main () | |
5618 | { | |
5619 | ||
5620 | ; | |
5621 | return 0; | |
5622 | } | |
5623 | _ACEOF | |
5624 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5625 | ||
5626 | else | |
5627 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5628 | CXXFLAGS="-g" | |
5629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5630 | /* end confdefs.h. */ | |
5631 | ||
5632 | int | |
5633 | main () | |
5634 | { | |
5635 | ||
5636 | ; | |
5637 | return 0; | |
5638 | } | |
5639 | _ACEOF | |
5640 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5641 | ac_cv_prog_cxx_g=yes | |
5642 | fi | |
5643 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5644 | fi | |
5645 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5646 | fi | |
5647 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5648 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5649 | fi | |
5650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5651 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5652 | if test "$ac_test_CXXFLAGS" = set; then | |
5653 | CXXFLAGS=$ac_save_CXXFLAGS | |
5654 | elif test $ac_cv_prog_cxx_g = yes; then | |
5655 | if test "$GXX" = yes; then | |
5656 | CXXFLAGS="-g -O2" | |
5657 | else | |
5658 | CXXFLAGS="-g" | |
5659 | fi | |
5660 | else | |
5661 | if test "$GXX" = yes; then | |
5662 | CXXFLAGS="-O2" | |
5663 | else | |
5664 | CXXFLAGS= | |
5665 | fi | |
5666 | fi | |
5667 | ac_ext=c | |
5668 | ac_cpp='$CPP $CPPFLAGS' | |
5669 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5670 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5671 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5672 | ||
5673 | depcc="$CXX" am_compiler_list= | |
5674 | ||
5675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
5676 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
c3de29bd | 5677 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
8f223b3e FCE |
5678 | $as_echo_n "(cached) " >&6 |
5679 | else | |
5680 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
5681 | # We make a subdir and do the tests there. Otherwise we can end up | |
5682 | # making bogus files that we don't know about and never remove. For | |
5683 | # instance it was reported that on HP-UX the gcc test will end up | |
8eef2738 LB |
5684 | # making a dummy file named 'D' -- because '-MD' means "put the output |
5685 | # in D". | |
c66be968 | 5686 | rm -rf conftest.dir |
8f223b3e FCE |
5687 | mkdir conftest.dir |
5688 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5689 | # using a relative directory. | |
5690 | cp "$am_depcomp" conftest.dir | |
5691 | cd conftest.dir | |
5692 | # We will build objects and dependencies in a subdirectory because | |
5693 | # it helps to detect inapplicable dependency modes. For instance | |
5694 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5695 | # side effect of compilation, but ICC will put the dependencies in | |
5696 | # the current directory while Tru64 will put them in the object | |
5697 | # directory. | |
5698 | mkdir sub | |
5699 | ||
5700 | am_cv_CXX_dependencies_compiler_type=none | |
5701 | if test "$am_compiler_list" = ""; then | |
5702 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5703 | fi | |
5704 | am__universal=false | |
5705 | case " $depcc " in #( | |
5706 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
5707 | esac | |
5708 | ||
5709 | for depmode in $am_compiler_list; do | |
5710 | # Setup a source with many dependencies, because some compilers | |
5711 | # like to wrap large dependency lists on column 80 (with \), and | |
5712 | # we should not choose a depcomp mode which is confused by this. | |
5713 | # | |
5714 | # We need to recreate these files for each test, as the compiler may | |
5715 | # overwrite some of them when testing with obscure command lines. | |
5716 | # This happens at least with the AIX C compiler. | |
5717 | : > sub/conftest.c | |
5718 | for i in 1 2 3 4 5 6; do | |
5719 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
8eef2738 LB |
5720 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
5721 | # Solaris 10 /bin/sh. | |
5722 | echo '/* dummy */' > sub/conftst$i.h | |
8f223b3e FCE |
5723 | done |
5724 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
5725 | ||
8eef2738 | 5726 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
8f223b3e | 5727 | # mode. It turns out that the SunPro C++ compiler does not properly |
8eef2738 LB |
5728 | # handle '-M -o', and we need to detect this. Also, some Intel |
5729 | # versions had trouble with output in subdirs. | |
8f223b3e FCE |
5730 | am__obj=sub/conftest.${OBJEXT-o} |
5731 | am__minus_obj="-o $am__obj" | |
5732 | case $depmode in | |
5733 | gcc) | |
5734 | # This depmode causes a compiler race in universal mode. | |
5735 | test "$am__universal" = false || continue | |
5736 | ;; | |
5737 | nosideeffect) | |
8eef2738 LB |
5738 | # After this tag, mechanisms are not by side-effect, so they'll |
5739 | # only be used when explicitly requested. | |
8f223b3e FCE |
5740 | if test "x$enable_dependency_tracking" = xyes; then |
5741 | continue | |
5742 | else | |
5743 | break | |
5744 | fi | |
5745 | ;; | |
c66be968 | 5746 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
8eef2738 | 5747 | # This compiler won't grok '-c -o', but also, the minuso test has |
8f223b3e FCE |
5748 | # not run yet. These depmodes are late enough in the game, and |
5749 | # so weak that their functioning should not be impacted. | |
5750 | am__obj=conftest.${OBJEXT-o} | |
5751 | am__minus_obj= | |
5752 | ;; | |
5753 | none) break ;; | |
5754 | esac | |
5755 | if depmode=$depmode \ | |
5756 | source=sub/conftest.c object=$am__obj \ | |
5757 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5758 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
5759 | >/dev/null 2>conftest.err && | |
5760 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
5761 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
5762 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
5763 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5764 | # icc doesn't choke on unknown options, it will just issue warnings | |
5765 | # or remarks (even with -Werror). So we grep stderr for any message | |
5766 | # that says an option was ignored or not supported. | |
5767 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5768 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5769 | # The diagnosis changed in icc 8.0: | |
5770 | # icc: Command line remark: option '-MP' not supported | |
5771 | if (grep 'ignoring option' conftest.err || | |
5772 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5773 | am_cv_CXX_dependencies_compiler_type=$depmode | |
5774 | break | |
5775 | fi | |
5776 | fi | |
5777 | done | |
5778 | ||
5779 | cd .. | |
5780 | rm -rf conftest.dir | |
5781 | else | |
5782 | am_cv_CXX_dependencies_compiler_type=none | |
5783 | fi | |
5784 | ||
5785 | fi | |
5786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
5787 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
5788 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
5789 | ||
5790 | if | |
5791 | test "x$enable_dependency_tracking" != xno \ | |
5792 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
5793 | am__fastdepCXX_TRUE= | |
5794 | am__fastdepCXX_FALSE='#' | |
5795 | else | |
5796 | am__fastdepCXX_TRUE='#' | |
5797 | am__fastdepCXX_FALSE= | |
5798 | fi | |
5799 | ||
5800 | ||
5801 | ac_ext=c | |
5802 | ac_cpp='$CPP $CPPFLAGS' | |
5803 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5804 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5805 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
5807 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
5808 | # On Suns, sometimes $CPP names a directory. | |
5809 | if test -n "$CPP" && test -d "$CPP"; then | |
5810 | CPP= | |
5811 | fi | |
5812 | if test -z "$CPP"; then | |
c3de29bd | 5813 | if ${ac_cv_prog_CPP+:} false; then : |
8f223b3e FCE |
5814 | $as_echo_n "(cached) " >&6 |
5815 | else | |
5816 | # Double quotes because CPP needs to be expanded | |
5817 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5818 | do | |
5819 | ac_preproc_ok=false | |
5820 | for ac_c_preproc_warn_flag in '' yes | |
5821 | do | |
5822 | # Use a header file that comes with gcc, so configuring glibc | |
5823 | # with a fresh cross-compiler works. | |
5824 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5825 | # <limits.h> exists even on freestanding compilers. | |
5826 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5827 | # not just through cpp. "Syntax error" is here to catch this case. | |
5828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5829 | /* end confdefs.h. */ | |
5830 | #ifdef __STDC__ | |
5831 | # include <limits.h> | |
5832 | #else | |
5833 | # include <assert.h> | |
5834 | #endif | |
5835 | Syntax error | |
5836 | _ACEOF | |
5837 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5838 | ||
5839 | else | |
5840 | # Broken: fails on valid input. | |
5841 | continue | |
5842 | fi | |
c3de29bd | 5843 | rm -f conftest.err conftest.i conftest.$ac_ext |
8f223b3e FCE |
5844 | |
5845 | # OK, works on sane cases. Now check whether nonexistent headers | |
5846 | # can be detected and how. | |
5847 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5848 | /* end confdefs.h. */ | |
5849 | #include <ac_nonexistent.h> | |
5850 | _ACEOF | |
5851 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5852 | # Broken: success on invalid input. | |
5853 | continue | |
5854 | else | |
5855 | # Passes both tests. | |
5856 | ac_preproc_ok=: | |
5857 | break | |
5858 | fi | |
c3de29bd | 5859 | rm -f conftest.err conftest.i conftest.$ac_ext |
8f223b3e FCE |
5860 | |
5861 | done | |
5862 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
c3de29bd | 5863 | rm -f conftest.i conftest.err conftest.$ac_ext |
8f223b3e FCE |
5864 | if $ac_preproc_ok; then : |
5865 | break | |
5866 | fi | |
5867 | ||
5868 | done | |
5869 | ac_cv_prog_CPP=$CPP | |
5870 | ||
5871 | fi | |
5872 | CPP=$ac_cv_prog_CPP | |
5873 | else | |
5874 | ac_cv_prog_CPP=$CPP | |
5875 | fi | |
5876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
5877 | $as_echo "$CPP" >&6; } | |
5878 | ac_preproc_ok=false | |
5879 | for ac_c_preproc_warn_flag in '' yes | |
5880 | do | |
5881 | # Use a header file that comes with gcc, so configuring glibc | |
5882 | # with a fresh cross-compiler works. | |
5883 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5884 | # <limits.h> exists even on freestanding compilers. | |
5885 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5886 | # not just through cpp. "Syntax error" is here to catch this case. | |
5887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5888 | /* end confdefs.h. */ | |
5889 | #ifdef __STDC__ | |
5890 | # include <limits.h> | |
5891 | #else | |
5892 | # include <assert.h> | |
5893 | #endif | |
5894 | Syntax error | |
5895 | _ACEOF | |
5896 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5897 | ||
5898 | else | |
5899 | # Broken: fails on valid input. | |
5900 | continue | |
5901 | fi | |
c3de29bd | 5902 | rm -f conftest.err conftest.i conftest.$ac_ext |
8f223b3e FCE |
5903 | |
5904 | # OK, works on sane cases. Now check whether nonexistent headers | |
5905 | # can be detected and how. | |
5906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5907 | /* end confdefs.h. */ | |
5908 | #include <ac_nonexistent.h> | |
5909 | _ACEOF | |
5910 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5911 | # Broken: success on invalid input. | |
5912 | continue | |
5913 | else | |
5914 | # Passes both tests. | |
5915 | ac_preproc_ok=: | |
5916 | break | |
5917 | fi | |
c3de29bd | 5918 | rm -f conftest.err conftest.i conftest.$ac_ext |
8f223b3e FCE |
5919 | |
5920 | done | |
5921 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
c3de29bd | 5922 | rm -f conftest.i conftest.err conftest.$ac_ext |
8f223b3e FCE |
5923 | if $ac_preproc_ok; then : |
5924 | ||
5925 | else | |
5926 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5927 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5d4aa1f5 FCE |
5928 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
5929 | See \`config.log' for more details" "$LINENO" 5; } | |
8f223b3e FCE |
5930 | fi |
5931 | ||
5932 | ac_ext=c | |
5933 | ac_cpp='$CPP $CPPFLAGS' | |
5934 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5935 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5936 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5937 | ||
5938 | ac_ext=c | |
5939 | ac_cpp='$CPP $CPPFLAGS' | |
5940 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5941 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5942 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5943 | if test -n "$ac_tool_prefix"; then | |
5944 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
5945 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5947 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 5948 | if ${ac_cv_prog_CC+:} false; then : |
8f223b3e FCE |
5949 | $as_echo_n "(cached) " >&6 |
5950 | else | |
5951 | if test -n "$CC"; then | |
5952 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5953 | else | |
5954 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5955 | for as_dir in $PATH | |
5956 | do | |
5957 | IFS=$as_save_IFS | |
5958 | test -z "$as_dir" && as_dir=. | |
5959 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 5960 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8f223b3e FCE |
5961 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5962 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5963 | break 2 | |
5964 | fi | |
5965 | done | |
5966 | done | |
5967 | IFS=$as_save_IFS | |
5968 | ||
5969 | fi | |
5970 | fi | |
5971 | CC=$ac_cv_prog_CC | |
5972 | if test -n "$CC"; then | |
5973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5974 | $as_echo "$CC" >&6; } | |
5975 | else | |
5976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5977 | $as_echo "no" >&6; } | |
5978 | fi | |
5979 | ||
5980 | ||
5981 | fi | |
5982 | if test -z "$ac_cv_prog_CC"; then | |
5983 | ac_ct_CC=$CC | |
5984 | # Extract the first word of "gcc", so it can be a program name with args. | |
5985 | set dummy gcc; ac_word=$2 | |
5986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5987 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 5988 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
8f223b3e FCE |
5989 | $as_echo_n "(cached) " >&6 |
5990 | else | |
5991 | if test -n "$ac_ct_CC"; then | |
5992 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
5993 | else | |
5994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5995 | for as_dir in $PATH | |
5996 | do | |
5997 | IFS=$as_save_IFS | |
5998 | test -z "$as_dir" && as_dir=. | |
5999 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 6000 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8f223b3e FCE |
6001 | ac_cv_prog_ac_ct_CC="gcc" |
6002 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6003 | break 2 | |
6004 | fi | |
6005 | done | |
6006 | done | |
6007 | IFS=$as_save_IFS | |
6008 | ||
6009 | fi | |
6010 | fi | |
6011 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
6012 | if test -n "$ac_ct_CC"; then | |
6013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
6014 | $as_echo "$ac_ct_CC" >&6; } | |
6015 | else | |
6016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6017 | $as_echo "no" >&6; } | |
6018 | fi | |
6019 | ||
6020 | if test "x$ac_ct_CC" = x; then | |
6021 | CC="" | |
6022 | else | |
6023 | case $cross_compiling:$ac_tool_warned in | |
6024 | yes:) | |
6025 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6026 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6027 | ac_tool_warned=yes ;; | |
6028 | esac | |
6029 | CC=$ac_ct_CC | |
6030 | fi | |
6031 | else | |
6032 | CC="$ac_cv_prog_CC" | |
6033 | fi | |
6034 | ||
6035 | if test -z "$CC"; then | |
6036 | if test -n "$ac_tool_prefix"; then | |
6037 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
6038 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
6039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6040 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 6041 | if ${ac_cv_prog_CC+:} false; then : |
8f223b3e FCE |
6042 | $as_echo_n "(cached) " >&6 |
6043 | else | |
6044 | if test -n "$CC"; then | |
6045 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6046 | else | |
6047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6048 | for as_dir in $PATH | |
6049 | do | |
6050 | IFS=$as_save_IFS | |
6051 | test -z "$as_dir" && as_dir=. | |
6052 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 6053 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8f223b3e FCE |
6054 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
6055 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6056 | break 2 | |
6057 | fi | |
6058 | done | |
6059 | done | |
6060 | IFS=$as_save_IFS | |
6061 | ||
6062 | fi | |
6063 | fi | |
6064 | CC=$ac_cv_prog_CC | |
6065 | if test -n "$CC"; then | |
6066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
6067 | $as_echo "$CC" >&6; } | |
6068 | else | |
6069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6070 | $as_echo "no" >&6; } | |
6071 | fi | |
6072 | ||
6073 | ||
6074 | fi | |
6075 | fi | |
6076 | if test -z "$CC"; then | |
6077 | # Extract the first word of "cc", so it can be a program name with args. | |
6078 | set dummy cc; ac_word=$2 | |
6079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6080 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 6081 | if ${ac_cv_prog_CC+:} false; then : |
8f223b3e FCE |
6082 | $as_echo_n "(cached) " >&6 |
6083 | else | |
6084 | if test -n "$CC"; then | |
6085 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6086 | else | |
6087 | ac_prog_rejected=no | |
6088 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6089 | for as_dir in $PATH | |
6090 | do | |
6091 | IFS=$as_save_IFS | |
6092 | test -z "$as_dir" && as_dir=. | |
6093 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 6094 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8f223b3e FCE |
6095 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
6096 | ac_prog_rejected=yes | |
6097 | continue | |
6098 | fi | |
6099 | ac_cv_prog_CC="cc" | |
6100 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6101 | break 2 | |
6102 | fi | |
6103 | done | |
6104 | done | |
6105 | IFS=$as_save_IFS | |
6106 | ||
6107 | if test $ac_prog_rejected = yes; then | |
6108 | # We found a bogon in the path, so make sure we never use it. | |
6109 | set dummy $ac_cv_prog_CC | |
6110 | shift | |
6111 | if test $# != 0; then | |
6112 | # We chose a different compiler from the bogus one. | |
6113 | # However, it has the same basename, so the bogon will be chosen | |
6114 | # first if we set CC to just the basename; use the full file name. | |
6115 | shift | |
6116 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
6117 | fi | |
6118 | fi | |
6119 | fi | |
6120 | fi | |
6121 | CC=$ac_cv_prog_CC | |
6122 | if test -n "$CC"; then | |
6123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
6124 | $as_echo "$CC" >&6; } | |
6125 | else | |
6126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6127 | $as_echo "no" >&6; } | |
6128 | fi | |
6129 | ||
6130 | ||
6131 | fi | |
6132 | if test -z "$CC"; then | |
6133 | if test -n "$ac_tool_prefix"; then | |
6134 | for ac_prog in cl.exe | |
6135 | do | |
6136 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6137 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6139 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 6140 | if ${ac_cv_prog_CC+:} false; then : |
8f223b3e FCE |
6141 | $as_echo_n "(cached) " >&6 |
6142 | else | |
6143 | if test -n "$CC"; then | |
6144 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6145 | else | |
6146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6147 | for as_dir in $PATH | |
6148 | do | |
6149 | IFS=$as_save_IFS | |
6150 | test -z "$as_dir" && as_dir=. | |
6151 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 6152 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8f223b3e FCE |
6153 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
6154 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6155 | break 2 | |
6156 | fi | |
6157 | done | |
6158 | done | |
6159 | IFS=$as_save_IFS | |
6160 | ||
6161 | fi | |
6162 | fi | |
6163 | CC=$ac_cv_prog_CC | |
6164 | if test -n "$CC"; then | |
6165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
6166 | $as_echo "$CC" >&6; } | |
6167 | else | |
6168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6169 | $as_echo "no" >&6; } | |
6170 | fi | |
6171 | ||
6172 | ||
6173 | test -n "$CC" && break | |
6174 | done | |
6175 | fi | |
6176 | if test -z "$CC"; then | |
6177 | ac_ct_CC=$CC | |
6178 | for ac_prog in cl.exe | |
6179 | do | |
6180 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6181 | set dummy $ac_prog; ac_word=$2 | |
6182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6183 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 6184 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
8f223b3e FCE |
6185 | $as_echo_n "(cached) " >&6 |
6186 | else | |
6187 | if test -n "$ac_ct_CC"; then | |
6188 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
6189 | else | |
6190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6191 | for as_dir in $PATH | |
6192 | do | |
6193 | IFS=$as_save_IFS | |
6194 | test -z "$as_dir" && as_dir=. | |
6195 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 6196 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8f223b3e FCE |
6197 | ac_cv_prog_ac_ct_CC="$ac_prog" |
6198 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6199 | break 2 | |
6200 | fi | |
6201 | done | |
6202 | done | |
6203 | IFS=$as_save_IFS | |
6204 | ||
6205 | fi | |
6206 | fi | |
6207 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
6208 | if test -n "$ac_ct_CC"; then | |
6209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
6210 | $as_echo "$ac_ct_CC" >&6; } | |
6211 | else | |
6212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6213 | $as_echo "no" >&6; } | |
6214 | fi | |
6215 | ||
6216 | ||
6217 | test -n "$ac_ct_CC" && break | |
6218 | done | |
6219 | ||
6220 | if test "x$ac_ct_CC" = x; then | |
6221 | CC="" | |
6222 | else | |
6223 | case $cross_compiling:$ac_tool_warned in | |
6224 | yes:) | |
6225 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6226 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6227 | ac_tool_warned=yes ;; | |
6228 | esac | |
6229 | CC=$ac_ct_CC | |
6230 | fi | |
6231 | fi | |
6232 | ||
6233 | fi | |
6234 | ||
6235 | ||
6236 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6237 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5d4aa1f5 FCE |
6238 | as_fn_error $? "no acceptable C compiler found in \$PATH |
6239 | See \`config.log' for more details" "$LINENO" 5; } | |
8f223b3e FCE |
6240 | |
6241 | # Provide some information about the compiler. | |
6242 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
6243 | set X $ac_compile | |
6244 | ac_compiler=$2 | |
6245 | for ac_option in --version -v -V -qversion; do | |
6246 | { { ac_try="$ac_compiler $ac_option >&5" | |
6247 | case "(($ac_try" in | |
6248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6249 | *) ac_try_echo=$ac_try;; | |
6250 | esac | |
6251 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
6252 | $as_echo "$ac_try_echo"; } >&5 | |
6253 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
6254 | ac_status=$? | |
6255 | if test -s conftest.err; then | |
6256 | sed '10a\ | |
6257 | ... rest of stderr output deleted ... | |
6258 | 10q' conftest.err >conftest.er1 | |
6259 | cat conftest.er1 >&5 | |
6260 | fi | |
6261 | rm -f conftest.er1 conftest.err | |
6262 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6263 | test $ac_status = 0; } | |
6264 | done | |
6265 | ||
6266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
6267 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
c3de29bd | 6268 | if ${ac_cv_c_compiler_gnu+:} false; then : |
8f223b3e FCE |
6269 | $as_echo_n "(cached) " >&6 |
6270 | else | |
6271 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6272 | /* end confdefs.h. */ | |
6273 | ||
6274 | int | |
6275 | main () | |
6276 | { | |
6277 | #ifndef __GNUC__ | |
6278 | choke me | |
6279 | #endif | |
6280 | ||
6281 | ; | |
6282 | return 0; | |
6283 | } | |
6284 | _ACEOF | |
6285 | if ac_fn_c_try_compile "$LINENO"; then : | |
6286 | ac_compiler_gnu=yes | |
6287 | else | |
6288 | ac_compiler_gnu=no | |
6289 | fi | |
6290 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6291 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
6292 | ||
6293 | fi | |
6294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
6295 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
6296 | if test $ac_compiler_gnu = yes; then | |
6297 | GCC=yes | |
6298 | else | |
6299 | GCC= | |
6300 | fi | |
6301 | ac_test_CFLAGS=${CFLAGS+set} | |
6302 | ac_save_CFLAGS=$CFLAGS | |
6303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
6304 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
c3de29bd | 6305 | if ${ac_cv_prog_cc_g+:} false; then : |
8f223b3e FCE |
6306 | $as_echo_n "(cached) " >&6 |
6307 | else | |
6308 | ac_save_c_werror_flag=$ac_c_werror_flag | |
6309 | ac_c_werror_flag=yes | |
6310 | ac_cv_prog_cc_g=no | |
6311 | CFLAGS="-g" | |
6312 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6313 | /* end confdefs.h. */ | |
6314 | ||
6315 | int | |
6316 | main () | |
6317 | { | |
6318 | ||
6319 | ; | |
6320 | return 0; | |
6321 | } | |
6322 | _ACEOF | |
6323 | if ac_fn_c_try_compile "$LINENO"; then : | |
6324 | ac_cv_prog_cc_g=yes | |
6325 | else | |
6326 | CFLAGS="" | |
6327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6328 | /* end confdefs.h. */ | |
6329 | ||
6330 | int | |
6331 | main () | |
6332 | { | |
6333 | ||
6334 | ; | |
6335 | return 0; | |
6336 | } | |
6337 | _ACEOF | |
6338 | if ac_fn_c_try_compile "$LINENO"; then : | |
6339 | ||
6340 | else | |
6341 | ac_c_werror_flag=$ac_save_c_werror_flag | |
6342 | CFLAGS="-g" | |
6343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6344 | /* end confdefs.h. */ | |
6345 | ||
6346 | int | |
6347 | main () | |
6348 | { | |
6349 | ||
6350 | ; | |
6351 | return 0; | |
6352 | } | |
6353 | _ACEOF | |
6354 | if ac_fn_c_try_compile "$LINENO"; then : | |
6355 | ac_cv_prog_cc_g=yes | |
6356 | fi | |
6357 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6358 | fi | |
6359 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6360 | fi | |
6361 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6362 | ac_c_werror_flag=$ac_save_c_werror_flag | |
6363 | fi | |
6364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
6365 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
6366 | if test "$ac_test_CFLAGS" = set; then | |
6367 | CFLAGS=$ac_save_CFLAGS | |
6368 | elif test $ac_cv_prog_cc_g = yes; then | |
6369 | if test "$GCC" = yes; then | |
6370 | CFLAGS="-g -O2" | |
6371 | else | |
6372 | CFLAGS="-g" | |
6373 | fi | |
6374 | else | |
6375 | if test "$GCC" = yes; then | |
6376 | CFLAGS="-O2" | |
6377 | else | |
6378 | CFLAGS= | |
6379 | fi | |
6380 | fi | |
6381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
6382 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
c3de29bd | 6383 | if ${ac_cv_prog_cc_c89+:} false; then : |
8f223b3e FCE |
6384 | $as_echo_n "(cached) " >&6 |
6385 | else | |
6386 | ac_cv_prog_cc_c89=no | |
6387 | ac_save_CC=$CC | |
6388 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6389 | /* end confdefs.h. */ | |
6390 | #include <stdarg.h> | |
6391 | #include <stdio.h> | |
8eef2738 | 6392 | struct stat; |
8f223b3e FCE |
6393 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
6394 | struct buf { int x; }; | |
6395 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
6396 | static char *e (p, i) | |
6397 | char **p; | |
6398 | int i; | |
6399 | { | |
6400 | return p[i]; | |
6401 | } | |
6402 | static char *f (char * (*g) (char **, int), char **p, ...) | |
6403 | { | |
6404 | char *s; | |
6405 | va_list v; | |
6406 | va_start (v,p); | |
6407 | s = g (p, va_arg (v,int)); | |
6408 | va_end (v); | |
6409 | return s; | |
6410 | } | |
6411 | ||
6412 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
6413 | function prototypes and stuff, but not '\xHH' hex character constants. | |
6414 | These don't provoke an error unfortunately, instead are silently treated | |
6415 | as 'x'. The following induces an error, until -std is added to get | |
6416 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
6417 | array size at least. It's necessary to write '\x00'==0 to get something | |
6418 | that's true only with -std. */ | |
6419 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
6420 | ||
6421 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
6422 | inside strings and character constants. */ | |
6423 | #define FOO(x) 'x' | |
6424 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
6425 | ||
6426 | int test (int i, double x); | |
6427 | struct s1 {int (*f) (int a);}; | |
6428 | struct s2 {int (*f) (double a);}; | |
6429 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
6430 | int argc; | |
6431 | char **argv; | |
6432 | int | |
6433 | main () | |
6434 | { | |
6435 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
6436 | ; | |
6437 | return 0; | |
6438 | } | |
6439 | _ACEOF | |
6440 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
6441 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
6442 | do | |
6443 | CC="$ac_save_CC $ac_arg" | |
6444 | if ac_fn_c_try_compile "$LINENO"; then : | |
6445 | ac_cv_prog_cc_c89=$ac_arg | |
6446 | fi | |
6447 | rm -f core conftest.err conftest.$ac_objext | |
6448 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
6449 | done | |
6450 | rm -f conftest.$ac_ext | |
6451 | CC=$ac_save_CC | |
6452 | ||
6453 | fi | |
6454 | # AC_CACHE_VAL | |
6455 | case "x$ac_cv_prog_cc_c89" in | |
6456 | x) | |
6457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
6458 | $as_echo "none needed" >&6; } ;; | |
6459 | xno) | |
6460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
6461 | $as_echo "unsupported" >&6; } ;; | |
6462 | *) | |
6463 | CC="$CC $ac_cv_prog_cc_c89" | |
6464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
6465 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
6466 | esac | |
6467 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
6468 | ||
6469 | fi | |
6470 | ||
6471 | ac_ext=c | |
6472 | ac_cpp='$CPP $CPPFLAGS' | |
6473 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6474 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6475 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6476 | ||
6477 | depcc="$CC" am_compiler_list= | |
6478 | ||
6479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
6480 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
c3de29bd | 6481 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
8f223b3e FCE |
6482 | $as_echo_n "(cached) " >&6 |
6483 | else | |
6484 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
6485 | # We make a subdir and do the tests there. Otherwise we can end up | |
6486 | # making bogus files that we don't know about and never remove. For | |
6487 | # instance it was reported that on HP-UX the gcc test will end up | |
8eef2738 LB |
6488 | # making a dummy file named 'D' -- because '-MD' means "put the output |
6489 | # in D". | |
c66be968 | 6490 | rm -rf conftest.dir |
8f223b3e FCE |
6491 | mkdir conftest.dir |
6492 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
6493 | # using a relative directory. | |
6494 | cp "$am_depcomp" conftest.dir | |
6495 | cd conftest.dir | |
6496 | # We will build objects and dependencies in a subdirectory because | |
6497 | # it helps to detect inapplicable dependency modes. For instance | |
6498 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
6499 | # side effect of compilation, but ICC will put the dependencies in | |
6500 | # the current directory while Tru64 will put them in the object | |
6501 | # directory. | |
6502 | mkdir sub | |
6503 | ||
6504 | am_cv_CC_dependencies_compiler_type=none | |
6505 | if test "$am_compiler_list" = ""; then | |
6506 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
6507 | fi | |
6508 | am__universal=false | |
6509 | case " $depcc " in #( | |
6510 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
6511 | esac | |
6512 | ||
6513 | for depmode in $am_compiler_list; do | |
6514 | # Setup a source with many dependencies, because some compilers | |
6515 | # like to wrap large dependency lists on column 80 (with \), and | |
6516 | # we should not choose a depcomp mode which is confused by this. | |
6517 | # | |
6518 | # We need to recreate these files for each test, as the compiler may | |
6519 | # overwrite some of them when testing with obscure command lines. | |
6520 | # This happens at least with the AIX C compiler. | |
6521 | : > sub/conftest.c | |
6522 | for i in 1 2 3 4 5 6; do | |
6523 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
8eef2738 LB |
6524 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
6525 | # Solaris 10 /bin/sh. | |
6526 | echo '/* dummy */' > sub/conftst$i.h | |
8f223b3e FCE |
6527 | done |
6528 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
6529 | ||
8eef2738 | 6530 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
8f223b3e | 6531 | # mode. It turns out that the SunPro C++ compiler does not properly |
8eef2738 LB |
6532 | # handle '-M -o', and we need to detect this. Also, some Intel |
6533 | # versions had trouble with output in subdirs. | |
8f223b3e FCE |
6534 | am__obj=sub/conftest.${OBJEXT-o} |
6535 | am__minus_obj="-o $am__obj" | |
6536 | case $depmode in | |
6537 | gcc) | |
6538 | # This depmode causes a compiler race in universal mode. | |
6539 | test "$am__universal" = false || continue | |
6540 | ;; | |
6541 | nosideeffect) | |
8eef2738 LB |
6542 | # After this tag, mechanisms are not by side-effect, so they'll |
6543 | # only be used when explicitly requested. | |
8f223b3e FCE |
6544 | if test "x$enable_dependency_tracking" = xyes; then |
6545 | continue | |
6546 | else | |
6547 | break | |
6548 | fi | |
6549 | ;; | |
c66be968 | 6550 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
8eef2738 | 6551 | # This compiler won't grok '-c -o', but also, the minuso test has |
8f223b3e FCE |
6552 | # not run yet. These depmodes are late enough in the game, and |
6553 | # so weak that their functioning should not be impacted. | |
6554 | am__obj=conftest.${OBJEXT-o} | |
6555 | am__minus_obj= | |
6556 | ;; | |
6557 | none) break ;; | |
6558 | esac | |
6559 | if depmode=$depmode \ | |
6560 | source=sub/conftest.c object=$am__obj \ | |
6561 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
6562 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
6563 | >/dev/null 2>conftest.err && | |
6564 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
6565 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
6566 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
6567 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
6568 | # icc doesn't choke on unknown options, it will just issue warnings | |
6569 | # or remarks (even with -Werror). So we grep stderr for any message | |
6570 | # that says an option was ignored or not supported. | |
6571 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
6572 | # icc: Command line warning: ignoring option '-M'; no argument required | |
6573 | # The diagnosis changed in icc 8.0: | |
6574 | # icc: Command line remark: option '-MP' not supported | |
6575 | if (grep 'ignoring option' conftest.err || | |
6576 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
6577 | am_cv_CC_dependencies_compiler_type=$depmode | |
6578 | break | |
6579 | fi | |
6580 | fi | |
6581 | done | |
6582 | ||
6583 | cd .. | |
6584 | rm -rf conftest.dir | |
6585 | else | |
6586 | am_cv_CC_dependencies_compiler_type=none | |
6587 | fi | |
6588 | ||
6589 | fi | |
6590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
6591 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
6592 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
6593 | ||
6594 | if | |
6595 | test "x$enable_dependency_tracking" != xno \ | |
6596 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
6597 | am__fastdepCC_TRUE= | |
6598 | am__fastdepCC_FALSE='#' | |
6599 | else | |
6600 | am__fastdepCC_TRUE='#' | |
6601 | am__fastdepCC_FALSE= | |
6602 | fi | |
6603 | ||
6604 | ||
8f223b3e FCE |
6605 | am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc |
6606 | ||
6607 | if test "x$CC" != xcc; then | |
6608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 | |
6609 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } | |
6610 | else | |
6611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 | |
6612 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } | |
6613 | fi | |
6614 | set dummy $CC; ac_cc=`$as_echo "$2" | | |
6615 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
c3de29bd | 6616 | if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : |
8f223b3e FCE |
6617 | $as_echo_n "(cached) " >&6 |
6618 | else | |
6619 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6620 | /* end confdefs.h. */ | |
6621 | ||
6622 | int | |
6623 | main () | |
6624 | { | |
6625 | ||
6626 | ; | |
6627 | return 0; | |
6628 | } | |
6629 | _ACEOF | |
6630 | # Make sure it works both with $CC and with simple cc. | |
6631 | # We do the test twice because some compilers refuse to overwrite an | |
6632 | # existing .o file with -o, though they will create one. | |
6633 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | |
6634 | rm -f conftest2.* | |
6635 | if { { case "(($ac_try" in | |
6636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6637 | *) ac_try_echo=$ac_try;; | |
6638 | esac | |
6639 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
6640 | $as_echo "$ac_try_echo"; } >&5 | |
6641 | (eval "$ac_try") 2>&5 | |
8ae7a94a | 6642 | ac_status=$? |
1ef0423a FCE |
6643 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6644 | test $ac_status = 0; } && | |
6645 | test -f conftest2.$ac_objext && { { case "(($ac_try" in | |
7fbd9d09 FCE |
6646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6647 | *) ac_try_echo=$ac_try;; | |
6648 | esac | |
8f223b3e FCE |
6649 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
6650 | $as_echo "$ac_try_echo"; } >&5 | |
6651 | (eval "$ac_try") 2>&5 | |
6652 | ac_status=$? | |
6653 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6654 | test $ac_status = 0; }; | |
6655 | then | |
6656 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes | |
6657 | if test "x$CC" != xcc; then | |
6658 | # Test first that cc exists at all. | |
6659 | if { ac_try='cc -c conftest.$ac_ext >&5' | |
6660 | { { case "(($ac_try" in | |
6661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6662 | *) ac_try_echo=$ac_try;; | |
6663 | esac | |
6664 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
6665 | $as_echo "$ac_try_echo"; } >&5 | |
6666 | (eval "$ac_try") 2>&5 | |
6667 | ac_status=$? | |
6668 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6669 | test $ac_status = 0; }; }; then | |
6670 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | |
6671 | rm -f conftest2.* | |
6672 | if { { case "(($ac_try" in | |
6673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6674 | *) ac_try_echo=$ac_try;; | |
6675 | esac | |
6676 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
6677 | $as_echo "$ac_try_echo"; } >&5 | |
6678 | (eval "$ac_try") 2>&5 | |
6679 | ac_status=$? | |
6680 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6681 | test $ac_status = 0; } && | |
6682 | test -f conftest2.$ac_objext && { { case "(($ac_try" in | |
6683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6684 | *) ac_try_echo=$ac_try;; | |
6685 | esac | |
6686 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
6687 | $as_echo "$ac_try_echo"; } >&5 | |
6688 | (eval "$ac_try") 2>&5 | |
6689 | ac_status=$? | |
6690 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6691 | test $ac_status = 0; }; | |
6692 | then | |
6693 | # cc works too. | |
6694 | : | |
6695 | else | |
6696 | # cc exists but doesn't like -o. | |
6697 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
6698 | fi | |
6699 | fi | |
6700 | fi | |
6701 | else | |
6702 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
6703 | fi | |
6704 | rm -f core conftest* | |
6705 | ||
6706 | fi | |
6707 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then | |
6708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6709 | $as_echo "yes" >&6; } | |
6710 | else | |
6711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6712 | $as_echo "no" >&6; } | |
6713 | ||
6714 | $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h | |
6715 | ||
6716 | fi | |
6717 | ||
6718 | # FIXME: we rely on the cache variable name because | |
6719 | # there is no other way. | |
6720 | set dummy $CC | |
6721 | am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
6722 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o | |
6723 | if test "$am_t" != yes; then | |
6724 | # Losing compiler, so override with the script. | |
6725 | # FIXME: It is wrong to rewrite CC. | |
6726 | # But if we don't then we get into trouble of one sort or another. | |
6727 | # A longer-term fix would be to have automake use am__CC in this case, | |
6728 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
6729 | CC="$am_aux_dir/compile $CC" | |
6730 | fi | |
6731 | ||
6732 | ||
8f223b3e FCE |
6733 | if test -n "$ac_tool_prefix"; then |
6734 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6735 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6737 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 6738 | if ${ac_cv_prog_RANLIB+:} false; then : |
8f223b3e FCE |
6739 | $as_echo_n "(cached) " >&6 |
6740 | else | |
6741 | if test -n "$RANLIB"; then | |
6742 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6743 | else | |
6744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6745 | for as_dir in $PATH | |
6746 | do | |
6747 | IFS=$as_save_IFS | |
6748 | test -z "$as_dir" && as_dir=. | |
6749 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 6750 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8f223b3e FCE |
6751 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6752 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6753 | break 2 | |
6754 | fi | |
6755 | done | |
6756 | done | |
6757 | IFS=$as_save_IFS | |
6758 | ||
6759 | fi | |
6760 | fi | |
6761 | RANLIB=$ac_cv_prog_RANLIB | |
6762 | if test -n "$RANLIB"; then | |
6763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6764 | $as_echo "$RANLIB" >&6; } | |
6765 | else | |
6766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6767 | $as_echo "no" >&6; } | |
6768 | fi | |
6769 | ||
6770 | ||
6771 | fi | |
6772 | if test -z "$ac_cv_prog_RANLIB"; then | |
6773 | ac_ct_RANLIB=$RANLIB | |
6774 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6775 | set dummy ranlib; ac_word=$2 | |
6776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6777 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 6778 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
8f223b3e FCE |
6779 | $as_echo_n "(cached) " >&6 |
6780 | else | |
6781 | if test -n "$ac_ct_RANLIB"; then | |
6782 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6783 | else | |
6784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6785 | for as_dir in $PATH | |
6786 | do | |
6787 | IFS=$as_save_IFS | |
6788 | test -z "$as_dir" && as_dir=. | |
6789 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 6790 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8f223b3e FCE |
6791 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6792 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6793 | break 2 | |
6794 | fi | |
6795 | done | |
6796 | done | |
6797 | IFS=$as_save_IFS | |
6798 | ||
6799 | fi | |
6800 | fi | |
6801 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6802 | if test -n "$ac_ct_RANLIB"; then | |
6803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6804 | $as_echo "$ac_ct_RANLIB" >&6; } | |
6805 | else | |
6806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6807 | $as_echo "no" >&6; } | |
6808 | fi | |
6809 | ||
6810 | if test "x$ac_ct_RANLIB" = x; then | |
6811 | RANLIB=":" | |
6812 | else | |
6813 | case $cross_compiling:$ac_tool_warned in | |
6814 | yes:) | |
6815 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6816 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6817 | ac_tool_warned=yes ;; | |
6818 | esac | |
6819 | RANLIB=$ac_ct_RANLIB | |
6820 | fi | |
6821 | else | |
6822 | RANLIB="$ac_cv_prog_RANLIB" | |
6823 | fi | |
6824 | ||
6825 | ||
6826 | ||
6827 | ||
6828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
6829 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
6830 | set x ${MAKE-make} | |
6831 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
c3de29bd | 6832 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
8f223b3e FCE |
6833 | $as_echo_n "(cached) " >&6 |
6834 | else | |
6835 | cat >conftest.make <<\_ACEOF | |
6836 | SHELL = /bin/sh | |
6837 | all: | |
6838 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
6839 | _ACEOF | |
5d4aa1f5 | 6840 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
8f223b3e FCE |
6841 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
6842 | *@@@%%%=?*=@@@%%%*) | |
6843 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
6844 | *) | |
6845 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
7fbd9d09 | 6846 | esac |
8f223b3e FCE |
6847 | rm -f conftest.make |
6848 | fi | |
6849 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
6850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6851 | $as_echo "yes" >&6; } | |
6852 | SET_MAKE= | |
6853 | else | |
6854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6855 | $as_echo "no" >&6; } | |
6856 | SET_MAKE="MAKE=${MAKE-make}" | |
6857 | fi | |
6858 | ||
6859 | ||
6860 | ||
97859b9d JS |
6861 | # Check whether --enable-largefile was given. |
6862 | if test "${enable_largefile+set}" = set; then : | |
6863 | enableval=$enable_largefile; | |
6864 | fi | |
6865 | ||
6866 | if test "$enable_largefile" != no; then | |
6867 | ||
6868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
6869 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
6870 | if ${ac_cv_sys_largefile_CC+:} false; then : | |
6871 | $as_echo_n "(cached) " >&6 | |
6872 | else | |
6873 | ac_cv_sys_largefile_CC=no | |
6874 | if test "$GCC" != yes; then | |
6875 | ac_save_CC=$CC | |
6876 | while :; do | |
6877 | # IRIX 6.2 and later do not support large files by default, | |
6878 | # so use the C compiler's -n32 option if that helps. | |
6879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6880 | /* end confdefs.h. */ | |
6881 | #include <sys/types.h> | |
6882 | /* Check that off_t can represent 2**63 - 1 correctly. | |
6883 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
6884 | since some C++ compilers masquerading as C compilers | |
6885 | incorrectly reject 9223372036854775807. */ | |
6886 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
6887 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
6888 | && LARGE_OFF_T % 2147483647 == 1) | |
6889 | ? 1 : -1]; | |
6890 | int | |
6891 | main () | |
6892 | { | |
6893 | ||
6894 | ; | |
6895 | return 0; | |
6896 | } | |
6897 | _ACEOF | |
6898 | if ac_fn_c_try_compile "$LINENO"; then : | |
6899 | break | |
6900 | fi | |
6901 | rm -f core conftest.err conftest.$ac_objext | |
6902 | CC="$CC -n32" | |
6903 | if ac_fn_c_try_compile "$LINENO"; then : | |
6904 | ac_cv_sys_largefile_CC=' -n32'; break | |
6905 | fi | |
6906 | rm -f core conftest.err conftest.$ac_objext | |
6907 | break | |
6908 | done | |
6909 | CC=$ac_save_CC | |
6910 | rm -f conftest.$ac_ext | |
6911 | fi | |
6912 | fi | |
6913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
6914 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
6915 | if test "$ac_cv_sys_largefile_CC" != no; then | |
6916 | CC=$CC$ac_cv_sys_largefile_CC | |
6917 | fi | |
6918 | ||
6919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
6920 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
6921 | if ${ac_cv_sys_file_offset_bits+:} false; then : | |
6922 | $as_echo_n "(cached) " >&6 | |
6923 | else | |
6924 | while :; do | |
6925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6926 | /* end confdefs.h. */ | |
6927 | #include <sys/types.h> | |
6928 | /* Check that off_t can represent 2**63 - 1 correctly. | |
6929 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
6930 | since some C++ compilers masquerading as C compilers | |
6931 | incorrectly reject 9223372036854775807. */ | |
6932 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
6933 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
6934 | && LARGE_OFF_T % 2147483647 == 1) | |
6935 | ? 1 : -1]; | |
6936 | int | |
6937 | main () | |
6938 | { | |
6939 | ||
6940 | ; | |
6941 | return 0; | |
6942 | } | |
6943 | _ACEOF | |
6944 | if ac_fn_c_try_compile "$LINENO"; then : | |
6945 | ac_cv_sys_file_offset_bits=no; break | |
6946 | fi | |
6947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6949 | /* end confdefs.h. */ | |
6950 | #define _FILE_OFFSET_BITS 64 | |
6951 | #include <sys/types.h> | |
6952 | /* Check that off_t can represent 2**63 - 1 correctly. | |
6953 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
6954 | since some C++ compilers masquerading as C compilers | |
6955 | incorrectly reject 9223372036854775807. */ | |
6956 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
6957 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
6958 | && LARGE_OFF_T % 2147483647 == 1) | |
6959 | ? 1 : -1]; | |
6960 | int | |
6961 | main () | |
6962 | { | |
6963 | ||
6964 | ; | |
6965 | return 0; | |
6966 | } | |
6967 | _ACEOF | |
6968 | if ac_fn_c_try_compile "$LINENO"; then : | |
6969 | ac_cv_sys_file_offset_bits=64; break | |
6970 | fi | |
6971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6972 | ac_cv_sys_file_offset_bits=unknown | |
6973 | break | |
6974 | done | |
6975 | fi | |
6976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
6977 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
6978 | case $ac_cv_sys_file_offset_bits in #( | |
6979 | no | unknown) ;; | |
6980 | *) | |
6981 | cat >>confdefs.h <<_ACEOF | |
6982 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
6983 | _ACEOF | |
6984 | ;; | |
6985 | esac | |
6986 | rm -rf conftest* | |
6987 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
6988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
6989 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
6990 | if ${ac_cv_sys_large_files+:} false; then : | |
6991 | $as_echo_n "(cached) " >&6 | |
6992 | else | |
6993 | while :; do | |
6994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6995 | /* end confdefs.h. */ | |
6996 | #include <sys/types.h> | |
6997 | /* Check that off_t can represent 2**63 - 1 correctly. | |
6998 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
6999 | since some C++ compilers masquerading as C compilers | |
7000 | incorrectly reject 9223372036854775807. */ | |
7001 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
7002 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
7003 | && LARGE_OFF_T % 2147483647 == 1) | |
7004 | ? 1 : -1]; | |
7005 | int | |
7006 | main () | |
7007 | { | |
7008 | ||
7009 | ; | |
7010 | return 0; | |
7011 | } | |
7012 | _ACEOF | |
7013 | if ac_fn_c_try_compile "$LINENO"; then : | |
7014 | ac_cv_sys_large_files=no; break | |
7015 | fi | |
7016 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7018 | /* end confdefs.h. */ | |
7019 | #define _LARGE_FILES 1 | |
7020 | #include <sys/types.h> | |
7021 | /* Check that off_t can represent 2**63 - 1 correctly. | |
7022 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
7023 | since some C++ compilers masquerading as C compilers | |
7024 | incorrectly reject 9223372036854775807. */ | |
7025 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
7026 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
7027 | && LARGE_OFF_T % 2147483647 == 1) | |
7028 | ? 1 : -1]; | |
7029 | int | |
7030 | main () | |
7031 | { | |
7032 | ||
7033 | ; | |
7034 | return 0; | |
7035 | } | |
7036 | _ACEOF | |
7037 | if ac_fn_c_try_compile "$LINENO"; then : | |
7038 | ac_cv_sys_large_files=1; break | |
7039 | fi | |
7040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7041 | ac_cv_sys_large_files=unknown | |
7042 | break | |
7043 | done | |
7044 | fi | |
7045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
7046 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
7047 | case $ac_cv_sys_large_files in #( | |
7048 | no | unknown) ;; | |
7049 | *) | |
7050 | cat >>confdefs.h <<_ACEOF | |
7051 | #define _LARGE_FILES $ac_cv_sys_large_files | |
7052 | _ACEOF | |
7053 | ;; | |
7054 | esac | |
7055 | rm -rf conftest* | |
7056 | fi | |
8eef2738 LB |
7057 | |
7058 | ||
97859b9d JS |
7059 | fi |
7060 | ||
8f223b3e FCE |
7061 | |
7062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 | |
7063 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
7064 | # Check whether --enable-nls was given. | |
7065 | if test "${enable_nls+set}" = set; then : | |
7066 | enableval=$enable_nls; USE_NLS=$enableval | |
7067 | else | |
7068 | USE_NLS=yes | |
7069 | fi | |
7070 | ||
7071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
7072 | $as_echo "$USE_NLS" >&6; } | |
7073 | ||
7074 | ||
7075 | ||
7076 | ||
7077 | GETTEXT_MACRO_VERSION=0.18 | |
7078 | ||
7079 | ||
7080 | ||
7081 | ||
7082 | # Prepare PATH_SEPARATOR. | |
7083 | # The user is always right. | |
7084 | if test "${PATH_SEPARATOR+set}" != set; then | |
42f767d0 JL |
7085 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
7086 | # contains only /bin. Note that ksh looks also at the FPATH variable, | |
7087 | # so we have to set that as well for the test. | |
7088 | PATH_SEPARATOR=: | |
7089 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
7090 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
7091 | || PATH_SEPARATOR=';' | |
7092 | } | |
8f223b3e FCE |
7093 | fi |
7094 | ||
7095 | # Find out how to test for executable files. Don't use a zero-byte file, | |
7096 | # as systems may use methods other than mode bits to determine executability. | |
7097 | cat >conf$$.file <<_ASEOF | |
7098 | #! /bin/sh | |
7099 | exit 0 | |
7100 | _ASEOF | |
7101 | chmod +x conf$$.file | |
7102 | if test -x conf$$.file >/dev/null 2>&1; then | |
7103 | ac_executable_p="test -x" | |
7104 | else | |
7105 | ac_executable_p="test -f" | |
7106 | fi | |
7107 | rm -f conf$$.file | |
7108 | ||
7109 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7110 | set dummy msgfmt; ac_word=$2 | |
7111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7112 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 7113 | if ${ac_cv_path_MSGFMT+:} false; then : |
8f223b3e FCE |
7114 | $as_echo_n "(cached) " >&6 |
7115 | else | |
7116 | case "$MSGFMT" in | |
7117 | [\\/]* | ?:[\\/]*) | |
7118 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7119 | ;; | |
7120 | *) | |
7121 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
7122 | for ac_dir in $PATH; do | |
7123 | IFS="$ac_save_IFS" | |
7124 | test -z "$ac_dir" && ac_dir=. | |
7125 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7126 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
7127 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 | |
7128 | if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && | |
7129 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
7130 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
7131 | break 2 | |
7132 | fi | |
7133 | fi | |
7134 | done | |
7135 | done | |
7136 | IFS="$ac_save_IFS" | |
7137 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
7138 | ;; | |
7fbd9d09 | 7139 | esac |
8f223b3e FCE |
7140 | fi |
7141 | MSGFMT="$ac_cv_path_MSGFMT" | |
7142 | if test "$MSGFMT" != ":"; then | |
7143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 | |
7144 | $as_echo "$MSGFMT" >&6; } | |
7145 | else | |
7146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7147 | $as_echo "no" >&6; } | |
7148 | fi | |
7149 | ||
7150 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7151 | set dummy gmsgfmt; ac_word=$2 | |
7152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7153 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 7154 | if ${ac_cv_path_GMSGFMT+:} false; then : |
8f223b3e FCE |
7155 | $as_echo_n "(cached) " >&6 |
7156 | else | |
7157 | case $GMSGFMT in | |
7158 | [\\/]* | ?:[\\/]*) | |
7159 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
7160 | ;; | |
7161 | *) | |
7162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7163 | for as_dir in $PATH | |
7164 | do | |
7165 | IFS=$as_save_IFS | |
7166 | test -z "$as_dir" && as_dir=. | |
7167 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 7168 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8f223b3e FCE |
7169 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
7170 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7171 | break 2 | |
7172 | fi | |
7173 | done | |
7174 | done | |
7175 | IFS=$as_save_IFS | |
7176 | ||
7177 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
7178 | ;; | |
7fbd9d09 | 7179 | esac |
8f223b3e FCE |
7180 | fi |
7181 | GMSGFMT=$ac_cv_path_GMSGFMT | |
7182 | if test -n "$GMSGFMT"; then | |
7183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 | |
7184 | $as_echo "$GMSGFMT" >&6; } | |
7185 | else | |
7186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7187 | $as_echo "no" >&6; } | |
7188 | fi | |
7189 | ||
7190 | ||
7191 | ||
7192 | case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in | |
7193 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; | |
7194 | *) MSGFMT_015=$MSGFMT ;; | |
7195 | esac | |
7196 | ||
7197 | case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in | |
7198 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; | |
7199 | *) GMSGFMT_015=$GMSGFMT ;; | |
7200 | esac | |
7201 | ||
7202 | ||
7203 | ||
7204 | # Prepare PATH_SEPARATOR. | |
7205 | # The user is always right. | |
7206 | if test "${PATH_SEPARATOR+set}" != set; then | |
42f767d0 JL |
7207 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
7208 | # contains only /bin. Note that ksh looks also at the FPATH variable, | |
7209 | # so we have to set that as well for the test. | |
7210 | PATH_SEPARATOR=: | |
7211 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
7212 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
7213 | || PATH_SEPARATOR=';' | |
7214 | } | |
8f223b3e FCE |
7215 | fi |
7216 | ||
7217 | # Find out how to test for executable files. Don't use a zero-byte file, | |
7218 | # as systems may use methods other than mode bits to determine executability. | |
7219 | cat >conf$$.file <<_ASEOF | |
7220 | #! /bin/sh | |
7221 | exit 0 | |
7222 | _ASEOF | |
7223 | chmod +x conf$$.file | |
7224 | if test -x conf$$.file >/dev/null 2>&1; then | |
7225 | ac_executable_p="test -x" | |
7226 | else | |
7227 | ac_executable_p="test -f" | |
7228 | fi | |
7229 | rm -f conf$$.file | |
7230 | ||
7231 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7232 | set dummy xgettext; ac_word=$2 | |
7233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7234 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 7235 | if ${ac_cv_path_XGETTEXT+:} false; then : |
8f223b3e FCE |
7236 | $as_echo_n "(cached) " >&6 |
7237 | else | |
7238 | case "$XGETTEXT" in | |
7239 | [\\/]* | ?:[\\/]*) | |
7240 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7241 | ;; | |
7242 | *) | |
7243 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
7244 | for ac_dir in $PATH; do | |
7245 | IFS="$ac_save_IFS" | |
7246 | test -z "$ac_dir" && ac_dir=. | |
7247 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7248 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
7249 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 | |
7250 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && | |
7251 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
7252 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
7253 | break 2 | |
7254 | fi | |
7255 | fi | |
7256 | done | |
7257 | done | |
7258 | IFS="$ac_save_IFS" | |
7259 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7260 | ;; | |
7261 | esac | |
7262 | fi | |
7263 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7264 | if test "$XGETTEXT" != ":"; then | |
7265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 | |
7266 | $as_echo "$XGETTEXT" >&6; } | |
7267 | else | |
7268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7269 | $as_echo "no" >&6; } | |
7270 | fi | |
7271 | ||
7272 | rm -f messages.po | |
7273 | ||
7274 | case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in | |
7275 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; | |
7276 | *) XGETTEXT_015=$XGETTEXT ;; | |
7277 | esac | |
7278 | ||
7279 | ||
7280 | ||
7281 | # Prepare PATH_SEPARATOR. | |
7282 | # The user is always right. | |
7283 | if test "${PATH_SEPARATOR+set}" != set; then | |
42f767d0 JL |
7284 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
7285 | # contains only /bin. Note that ksh looks also at the FPATH variable, | |
7286 | # so we have to set that as well for the test. | |
7287 | PATH_SEPARATOR=: | |
7288 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
7289 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
7290 | || PATH_SEPARATOR=';' | |
7291 | } | |
8f223b3e FCE |
7292 | fi |
7293 | ||
7294 | # Find out how to test for executable files. Don't use a zero-byte file, | |
7295 | # as systems may use methods other than mode bits to determine executability. | |
7296 | cat >conf$$.file <<_ASEOF | |
7297 | #! /bin/sh | |
7298 | exit 0 | |
7299 | _ASEOF | |
7300 | chmod +x conf$$.file | |
7301 | if test -x conf$$.file >/dev/null 2>&1; then | |
7302 | ac_executable_p="test -x" | |
7303 | else | |
7304 | ac_executable_p="test -f" | |
7305 | fi | |
7306 | rm -f conf$$.file | |
7307 | ||
7308 | # Extract the first word of "msgmerge", so it can be a program name with args. | |
7309 | set dummy msgmerge; ac_word=$2 | |
7310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7311 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 7312 | if ${ac_cv_path_MSGMERGE+:} false; then : |
8f223b3e FCE |
7313 | $as_echo_n "(cached) " >&6 |
7314 | else | |
7315 | case "$MSGMERGE" in | |
7316 | [\\/]* | ?:[\\/]*) | |
7317 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
7318 | ;; | |
7319 | *) | |
7320 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
7321 | for ac_dir in $PATH; do | |
7322 | IFS="$ac_save_IFS" | |
7323 | test -z "$ac_dir" && ac_dir=. | |
7324 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7325 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
7326 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 | |
7327 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then | |
7328 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
7329 | break 2 | |
7330 | fi | |
7331 | fi | |
7332 | done | |
7333 | done | |
7334 | IFS="$ac_save_IFS" | |
7335 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
7336 | ;; | |
7337 | esac | |
7338 | fi | |
7339 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
7340 | if test "$MSGMERGE" != ":"; then | |
7341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 | |
7342 | $as_echo "$MSGMERGE" >&6; } | |
7343 | else | |
7344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7345 | $as_echo "no" >&6; } | |
7346 | fi | |
7347 | ||
7348 | ||
7349 | test -n "$localedir" || localedir='${datadir}/locale' | |
7350 | ||
7351 | ||
7352 | test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= | |
7353 | ||
7354 | ||
7355 | ac_config_commands="$ac_config_commands po-directories" | |
7356 | ||
7357 | ||
7358 | ||
7359 | if test "X$prefix" = "XNONE"; then | |
7360 | acl_final_prefix="$ac_default_prefix" | |
7361 | else | |
7362 | acl_final_prefix="$prefix" | |
8ae7a94a | 7363 | fi |
8f223b3e FCE |
7364 | if test "X$exec_prefix" = "XNONE"; then |
7365 | acl_final_exec_prefix='${prefix}' | |
7366 | else | |
7367 | acl_final_exec_prefix="$exec_prefix" | |
7368 | fi | |
7369 | acl_save_prefix="$prefix" | |
7370 | prefix="$acl_final_prefix" | |
7371 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
7372 | prefix="$acl_save_prefix" | |
7373 | ||
8ae7a94a | 7374 | |
42f767d0 | 7375 | |
8f223b3e FCE |
7376 | # Check whether --with-gnu-ld was given. |
7377 | if test "${with_gnu_ld+set}" = set; then : | |
7378 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
7379 | else | |
7380 | with_gnu_ld=no | |
8ae7a94a FCE |
7381 | fi |
7382 | ||
8f223b3e FCE |
7383 | # Prepare PATH_SEPARATOR. |
7384 | # The user is always right. | |
7385 | if test "${PATH_SEPARATOR+set}" != set; then | |
42f767d0 JL |
7386 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
7387 | # contains only /bin. Note that ksh looks also at the FPATH variable, | |
7388 | # so we have to set that as well for the test. | |
7389 | PATH_SEPARATOR=: | |
7390 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
7391 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
7392 | || PATH_SEPARATOR=';' | |
7393 | } | |
8f223b3e | 7394 | fi |
42f767d0 | 7395 | |
8f223b3e FCE |
7396 | ac_prog=ld |
7397 | if test "$GCC" = yes; then | |
7398 | # Check if gcc -print-prog-name=ld gives a path. | |
42f767d0 JL |
7399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
7400 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
8f223b3e FCE |
7401 | case $host in |
7402 | *-*-mingw*) | |
7403 | # gcc leaves a trailing carriage return which upsets mingw | |
7404 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
7405 | *) | |
7406 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
7407 | esac | |
7408 | case $ac_prog in | |
7409 | # Accept absolute paths. | |
42f767d0 | 7410 | [\\/]* | ?:[\\/]*) |
8f223b3e | 7411 | re_direlt='/[^/][^/]*/\.\./' |
42f767d0 JL |
7412 | # Canonicalize the pathname of ld |
7413 | ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` | |
7414 | while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do | |
8f223b3e FCE |
7415 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
7416 | done | |
7417 | test -z "$LD" && LD="$ac_prog" | |
7418 | ;; | |
7419 | "") | |
7420 | # If it fails, then pretend we aren't using GCC. | |
7421 | ac_prog=ld | |
7422 | ;; | |
7423 | *) | |
7424 | # If it is relative, then search for the first ld in PATH. | |
7425 | with_gnu_ld=unknown | |
7426 | ;; | |
7427 | esac | |
7428 | elif test "$with_gnu_ld" = yes; then | |
7429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
7430 | $as_echo_n "checking for GNU ld... " >&6; } | |
7431 | else | |
7432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
7433 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
7434 | fi | |
c3de29bd | 7435 | if ${acl_cv_path_LD+:} false; then : |
8f223b3e FCE |
7436 | $as_echo_n "(cached) " >&6 |
7437 | else | |
7438 | if test -z "$LD"; then | |
42f767d0 | 7439 | acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
8f223b3e | 7440 | for ac_dir in $PATH; do |
42f767d0 | 7441 | IFS="$acl_save_ifs" |
8f223b3e FCE |
7442 | test -z "$ac_dir" && ac_dir=. |
7443 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
7444 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
7445 | # Check to see if the program is GNU ld. I'd rather use --version, | |
42f767d0 | 7446 | # but apparently some variants of GNU ld only accept -v. |
8f223b3e | 7447 | # Break only if it was the GNU/non-GNU ld that we prefer. |
42f767d0 | 7448 | case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in |
8f223b3e | 7449 | *GNU* | *'with BFD'*) |
42f767d0 JL |
7450 | test "$with_gnu_ld" != no && break |
7451 | ;; | |
8f223b3e | 7452 | *) |
42f767d0 JL |
7453 | test "$with_gnu_ld" != yes && break |
7454 | ;; | |
8f223b3e FCE |
7455 | esac |
7456 | fi | |
7457 | done | |
42f767d0 | 7458 | IFS="$acl_save_ifs" |
8f223b3e FCE |
7459 | else |
7460 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
7461 | fi | |
8ae7a94a FCE |
7462 | fi |
7463 | ||
8f223b3e FCE |
7464 | LD="$acl_cv_path_LD" |
7465 | if test -n "$LD"; then | |
7466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
7467 | $as_echo "$LD" >&6; } | |
7468 | else | |
7469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7470 | $as_echo "no" >&6; } | |
7471 | fi | |
5d4aa1f5 | 7472 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
8f223b3e FCE |
7473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
7474 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
c3de29bd | 7475 | if ${acl_cv_prog_gnu_ld+:} false; then : |
8f223b3e FCE |
7476 | $as_echo_n "(cached) " >&6 |
7477 | else | |
42f767d0 | 7478 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
8f223b3e FCE |
7479 | case `$LD -v 2>&1 </dev/null` in |
7480 | *GNU* | *'with BFD'*) | |
42f767d0 JL |
7481 | acl_cv_prog_gnu_ld=yes |
7482 | ;; | |
8f223b3e | 7483 | *) |
42f767d0 JL |
7484 | acl_cv_prog_gnu_ld=no |
7485 | ;; | |
8f223b3e FCE |
7486 | esac |
7487 | fi | |
7488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 | |
7489 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
7490 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
7fbd9d09 | 7491 | |
2f1a1aea | 7492 | |
2f1a1aea FCE |
7493 | |
7494 | ||
8f223b3e FCE |
7495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 |
7496 | $as_echo_n "checking for shared library run path origin... " >&6; } | |
c3de29bd | 7497 | if ${acl_cv_rpath+:} false; then : |
8f223b3e FCE |
7498 | $as_echo_n "(cached) " >&6 |
7499 | else | |
2f1a1aea | 7500 | |
8f223b3e FCE |
7501 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
7502 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
7503 | . ./conftest.sh | |
7504 | rm -f ./conftest.sh | |
7505 | acl_cv_rpath=done | |
7506 | ||
7507 | fi | |
7508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 | |
7509 | $as_echo "$acl_cv_rpath" >&6; } | |
7510 | wl="$acl_cv_wl" | |
7511 | acl_libext="$acl_cv_libext" | |
7512 | acl_shlibext="$acl_cv_shlibext" | |
7513 | acl_libname_spec="$acl_cv_libname_spec" | |
7514 | acl_library_names_spec="$acl_cv_library_names_spec" | |
7515 | acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
7516 | acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
7517 | acl_hardcode_direct="$acl_cv_hardcode_direct" | |
7518 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
7519 | # Check whether --enable-rpath was given. | |
7520 | if test "${enable_rpath+set}" = set; then : | |
7521 | enableval=$enable_rpath; : | |
2f1a1aea | 7522 | else |
8f223b3e | 7523 | enable_rpath=yes |
7fbd9d09 FCE |
7524 | fi |
7525 | ||
7526 | ||
7527 | ||
8f223b3e FCE |
7528 | |
7529 | acl_libdirstem=lib | |
7530 | acl_libdirstem2= | |
7531 | case "$host_os" in | |
7532 | solaris*) | |
7533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 | |
7534 | $as_echo_n "checking for 64-bit host... " >&6; } | |
c3de29bd | 7535 | if ${gl_cv_solaris_64bit+:} false; then : |
0710d850 | 7536 | $as_echo_n "(cached) " >&6 |
7fbd9d09 | 7537 | else |
8f223b3e FCE |
7538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7539 | /* end confdefs.h. */ | |
7540 | ||
7541 | #ifdef _LP64 | |
7542 | sixtyfour bits | |
7543 | #endif | |
7544 | ||
7545 | _ACEOF | |
7546 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7547 | $EGREP "sixtyfour bits" >/dev/null 2>&1; then : | |
7548 | gl_cv_solaris_64bit=yes | |
7549 | else | |
7550 | gl_cv_solaris_64bit=no | |
7551 | fi | |
7552 | rm -f conftest* | |
7553 | ||
7554 | ||
7555 | fi | |
7556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 | |
7557 | $as_echo "$gl_cv_solaris_64bit" >&6; } | |
7558 | if test $gl_cv_solaris_64bit = yes; then | |
7559 | acl_libdirstem=lib/64 | |
7560 | case "$host_cpu" in | |
7561 | sparc*) acl_libdirstem2=lib/sparcv9 ;; | |
7562 | i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; | |
7563 | esac | |
7564 | fi | |
7565 | ;; | |
7566 | *) | |
7567 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` | |
7568 | if test -n "$searchpath"; then | |
7569 | acl_save_IFS="${IFS= }"; IFS=":" | |
7570 | for searchdir in $searchpath; do | |
7571 | if test -d "$searchdir"; then | |
7572 | case "$searchdir" in | |
7573 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; | |
7574 | */../ | */.. ) | |
7575 | # Better ignore directories of this form. They are misleading. | |
7576 | ;; | |
7577 | *) searchdir=`cd "$searchdir" && pwd` | |
7578 | case "$searchdir" in | |
7579 | */lib64 ) acl_libdirstem=lib64 ;; | |
7580 | esac ;; | |
7581 | esac | |
7582 | fi | |
7583 | done | |
7584 | IFS="$acl_save_IFS" | |
7585 | fi | |
7586 | ;; | |
7587 | esac | |
7588 | test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" | |
7589 | ||
7590 | ||
7591 | ||
7592 | ||
7593 | ||
7594 | ||
7595 | ||
7596 | ||
7597 | ||
7598 | ||
7599 | ||
7600 | ||
7601 | use_additional=yes | |
7602 | ||
7603 | acl_save_prefix="$prefix" | |
7604 | prefix="$acl_final_prefix" | |
7605 | acl_save_exec_prefix="$exec_prefix" | |
7606 | exec_prefix="$acl_final_exec_prefix" | |
7607 | ||
7608 | eval additional_includedir=\"$includedir\" | |
7609 | eval additional_libdir=\"$libdir\" | |
7610 | ||
7611 | exec_prefix="$acl_save_exec_prefix" | |
7612 | prefix="$acl_save_prefix" | |
7613 | ||
7614 | ||
7615 | # Check whether --with-libiconv-prefix was given. | |
7616 | if test "${with_libiconv_prefix+set}" = set; then : | |
7617 | withval=$with_libiconv_prefix; | |
7618 | if test "X$withval" = "Xno"; then | |
7619 | use_additional=no | |
7620 | else | |
7621 | if test "X$withval" = "X"; then | |
7622 | ||
7623 | acl_save_prefix="$prefix" | |
7624 | prefix="$acl_final_prefix" | |
7625 | acl_save_exec_prefix="$exec_prefix" | |
7626 | exec_prefix="$acl_final_exec_prefix" | |
7627 | ||
7628 | eval additional_includedir=\"$includedir\" | |
7629 | eval additional_libdir=\"$libdir\" | |
7630 | ||
7631 | exec_prefix="$acl_save_exec_prefix" | |
7632 | prefix="$acl_save_prefix" | |
7633 | ||
7634 | else | |
7635 | additional_includedir="$withval/include" | |
7636 | additional_libdir="$withval/$acl_libdirstem" | |
7637 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ | |
7638 | && ! test -d "$withval/$acl_libdirstem"; then | |
7639 | additional_libdir="$withval/$acl_libdirstem2" | |
7640 | fi | |
7641 | fi | |
7fbd9d09 | 7642 | fi |
7fbd9d09 | 7643 | |
8f223b3e FCE |
7644 | fi |
7645 | ||
7646 | LIBICONV= | |
7647 | LTLIBICONV= | |
7648 | INCICONV= | |
7649 | LIBICONV_PREFIX= | |
7650 | HAVE_LIBICONV= | |
7651 | rpathdirs= | |
7652 | ltrpathdirs= | |
7653 | names_already_handled= | |
7654 | names_next_round='iconv ' | |
7655 | while test -n "$names_next_round"; do | |
7656 | names_this_round="$names_next_round" | |
7657 | names_next_round= | |
7658 | for name in $names_this_round; do | |
7659 | already_handled= | |
7660 | for n in $names_already_handled; do | |
7661 | if test "$n" = "$name"; then | |
7662 | already_handled=yes | |
7663 | break | |
7664 | fi | |
7665 | done | |
7666 | if test -z "$already_handled"; then | |
7667 | names_already_handled="$names_already_handled $name" | |
42f767d0 | 7668 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
8f223b3e FCE |
7669 | eval value=\"\$HAVE_LIB$uppername\" |
7670 | if test -n "$value"; then | |
7671 | if test "$value" = yes; then | |
7672 | eval value=\"\$LIB$uppername\" | |
7673 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
7674 | eval value=\"\$LTLIB$uppername\" | |
7675 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
7676 | else | |
7677 | : | |
7678 | fi | |
7679 | else | |
7680 | found_dir= | |
7681 | found_la= | |
7682 | found_so= | |
7683 | found_a= | |
7684 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | |
7685 | if test -n "$acl_shlibext"; then | |
7686 | shrext=".$acl_shlibext" # typically: shrext=.so | |
7687 | else | |
7688 | shrext= | |
7689 | fi | |
7690 | if test $use_additional = yes; then | |
7691 | dir="$additional_libdir" | |
7692 | if test -n "$acl_shlibext"; then | |
7693 | if test -f "$dir/$libname$shrext"; then | |
7694 | found_dir="$dir" | |
7695 | found_so="$dir/$libname$shrext" | |
7696 | else | |
7697 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
7698 | ver=`(cd "$dir" && \ | |
7699 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
7700 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
7701 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
7702 | | sed 1q ) 2>/dev/null` | |
7703 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
7704 | found_dir="$dir" | |
7705 | found_so="$dir/$libname$shrext.$ver" | |
7706 | fi | |
7707 | else | |
7708 | eval library_names=\"$acl_library_names_spec\" | |
7709 | for f in $library_names; do | |
7710 | if test -f "$dir/$f"; then | |
7711 | found_dir="$dir" | |
7712 | found_so="$dir/$f" | |
7713 | break | |
7714 | fi | |
7715 | done | |
7716 | fi | |
7717 | fi | |
7718 | fi | |
7719 | if test "X$found_dir" = "X"; then | |
7720 | if test -f "$dir/$libname.$acl_libext"; then | |
7721 | found_dir="$dir" | |
7722 | found_a="$dir/$libname.$acl_libext" | |
7723 | fi | |
7724 | fi | |
7725 | if test "X$found_dir" != "X"; then | |
7726 | if test -f "$dir/$libname.la"; then | |
7727 | found_la="$dir/$libname.la" | |
7728 | fi | |
7729 | fi | |
7730 | fi | |
7731 | if test "X$found_dir" = "X"; then | |
7732 | for x in $LDFLAGS $LTLIBICONV; do | |
7733 | ||
7734 | acl_save_prefix="$prefix" | |
7735 | prefix="$acl_final_prefix" | |
7736 | acl_save_exec_prefix="$exec_prefix" | |
7737 | exec_prefix="$acl_final_exec_prefix" | |
7738 | eval x=\"$x\" | |
7739 | exec_prefix="$acl_save_exec_prefix" | |
7740 | prefix="$acl_save_prefix" | |
7741 | ||
7742 | case "$x" in | |
7743 | -L*) | |
7744 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
7745 | if test -n "$acl_shlibext"; then | |
7746 | if test -f "$dir/$libname$shrext"; then | |
7747 | found_dir="$dir" | |
7748 | found_so="$dir/$libname$shrext" | |
7749 | else | |
7750 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
7751 | ver=`(cd "$dir" && \ | |
7752 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
7753 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
7754 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
7755 | | sed 1q ) 2>/dev/null` | |
7756 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
7757 | found_dir="$dir" | |
7758 | found_so="$dir/$libname$shrext.$ver" | |
7759 | fi | |
7760 | else | |
7761 | eval library_names=\"$acl_library_names_spec\" | |
7762 | for f in $library_names; do | |
7763 | if test -f "$dir/$f"; then | |
7764 | found_dir="$dir" | |
7765 | found_so="$dir/$f" | |
7766 | break | |
7767 | fi | |
7768 | done | |
7769 | fi | |
7770 | fi | |
7771 | fi | |
7772 | if test "X$found_dir" = "X"; then | |
7773 | if test -f "$dir/$libname.$acl_libext"; then | |
7774 | found_dir="$dir" | |
7775 | found_a="$dir/$libname.$acl_libext" | |
7776 | fi | |
7777 | fi | |
7778 | if test "X$found_dir" != "X"; then | |
7779 | if test -f "$dir/$libname.la"; then | |
7780 | found_la="$dir/$libname.la" | |
7781 | fi | |
7782 | fi | |
7783 | ;; | |
7784 | esac | |
7785 | if test "X$found_dir" != "X"; then | |
7786 | break | |
7787 | fi | |
7788 | done | |
7789 | fi | |
7790 | if test "X$found_dir" != "X"; then | |
7791 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
7792 | if test "X$found_so" != "X"; then | |
7793 | if test "$enable_rpath" = no \ | |
7794 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ | |
7795 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then | |
7796 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
7797 | else | |
7798 | haveit= | |
7799 | for x in $ltrpathdirs; do | |
7800 | if test "X$x" = "X$found_dir"; then | |
7801 | haveit=yes | |
7802 | break | |
7803 | fi | |
7804 | done | |
7805 | if test -z "$haveit"; then | |
7806 | ltrpathdirs="$ltrpathdirs $found_dir" | |
7807 | fi | |
7808 | if test "$acl_hardcode_direct" = yes; then | |
7809 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
7810 | else | |
7811 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | |
7812 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
7813 | haveit= | |
7814 | for x in $rpathdirs; do | |
7815 | if test "X$x" = "X$found_dir"; then | |
7816 | haveit=yes | |
7817 | break | |
7818 | fi | |
7819 | done | |
7820 | if test -z "$haveit"; then | |
7821 | rpathdirs="$rpathdirs $found_dir" | |
7822 | fi | |
7823 | else | |
7824 | haveit= | |
7825 | for x in $LDFLAGS $LIBICONV; do | |
7826 | ||
7827 | acl_save_prefix="$prefix" | |
7828 | prefix="$acl_final_prefix" | |
7829 | acl_save_exec_prefix="$exec_prefix" | |
7830 | exec_prefix="$acl_final_exec_prefix" | |
7831 | eval x=\"$x\" | |
7832 | exec_prefix="$acl_save_exec_prefix" | |
7833 | prefix="$acl_save_prefix" | |
7834 | ||
7835 | if test "X$x" = "X-L$found_dir"; then | |
7836 | haveit=yes | |
7837 | break | |
7838 | fi | |
7839 | done | |
7840 | if test -z "$haveit"; then | |
7841 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
7842 | fi | |
7843 | if test "$acl_hardcode_minus_L" != no; then | |
7844 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
7845 | else | |
7846 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
7847 | fi | |
7848 | fi | |
7849 | fi | |
7850 | fi | |
7851 | else | |
7852 | if test "X$found_a" != "X"; then | |
7853 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
7854 | else | |
7855 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
7856 | fi | |
7857 | fi | |
7858 | additional_includedir= | |
7859 | case "$found_dir" in | |
7860 | */$acl_libdirstem | */$acl_libdirstem/) | |
7861 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
7862 | if test "$name" = 'iconv'; then | |
7863 | LIBICONV_PREFIX="$basedir" | |
7864 | fi | |
7865 | additional_includedir="$basedir/include" | |
7866 | ;; | |
7867 | */$acl_libdirstem2 | */$acl_libdirstem2/) | |
7868 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` | |
7869 | if test "$name" = 'iconv'; then | |
7870 | LIBICONV_PREFIX="$basedir" | |
7871 | fi | |
7872 | additional_includedir="$basedir/include" | |
7873 | ;; | |
7874 | esac | |
7875 | if test "X$additional_includedir" != "X"; then | |
7876 | if test "X$additional_includedir" != "X/usr/include"; then | |
7877 | haveit= | |
7878 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
7879 | if test -n "$GCC"; then | |
7880 | case $host_os in | |
7881 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
7882 | esac | |
7883 | fi | |
7884 | fi | |
7885 | if test -z "$haveit"; then | |
7886 | for x in $CPPFLAGS $INCICONV; do | |
7887 | ||
7888 | acl_save_prefix="$prefix" | |
7889 | prefix="$acl_final_prefix" | |
7890 | acl_save_exec_prefix="$exec_prefix" | |
7891 | exec_prefix="$acl_final_exec_prefix" | |
7892 | eval x=\"$x\" | |
7893 | exec_prefix="$acl_save_exec_prefix" | |
7894 | prefix="$acl_save_prefix" | |
7895 | ||
7896 | if test "X$x" = "X-I$additional_includedir"; then | |
7897 | haveit=yes | |
7898 | break | |
7899 | fi | |
7900 | done | |
7901 | if test -z "$haveit"; then | |
7902 | if test -d "$additional_includedir"; then | |
7903 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
7904 | fi | |
7905 | fi | |
7906 | fi | |
7907 | fi | |
7908 | fi | |
7909 | if test -n "$found_la"; then | |
7910 | save_libdir="$libdir" | |
7911 | case "$found_la" in | |
7912 | */* | *\\*) . "$found_la" ;; | |
7913 | *) . "./$found_la" ;; | |
7914 | esac | |
7915 | libdir="$save_libdir" | |
7916 | for dep in $dependency_libs; do | |
7917 | case "$dep" in | |
7918 | -L*) | |
7919 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
7920 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ | |
7921 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then | |
7922 | haveit= | |
7923 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ | |
7924 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then | |
7925 | if test -n "$GCC"; then | |
7926 | case $host_os in | |
7927 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
7928 | esac | |
7929 | fi | |
7930 | fi | |
7931 | if test -z "$haveit"; then | |
7932 | haveit= | |
7933 | for x in $LDFLAGS $LIBICONV; do | |
7934 | ||
7935 | acl_save_prefix="$prefix" | |
7936 | prefix="$acl_final_prefix" | |
7937 | acl_save_exec_prefix="$exec_prefix" | |
7938 | exec_prefix="$acl_final_exec_prefix" | |
7939 | eval x=\"$x\" | |
7940 | exec_prefix="$acl_save_exec_prefix" | |
7941 | prefix="$acl_save_prefix" | |
7942 | ||
7943 | if test "X$x" = "X-L$additional_libdir"; then | |
7944 | haveit=yes | |
7945 | break | |
7946 | fi | |
7947 | done | |
7948 | if test -z "$haveit"; then | |
7949 | if test -d "$additional_libdir"; then | |
7950 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
7951 | fi | |
7952 | fi | |
7953 | haveit= | |
7954 | for x in $LDFLAGS $LTLIBICONV; do | |
7955 | ||
7956 | acl_save_prefix="$prefix" | |
7957 | prefix="$acl_final_prefix" | |
7958 | acl_save_exec_prefix="$exec_prefix" | |
7959 | exec_prefix="$acl_final_exec_prefix" | |
7960 | eval x=\"$x\" | |
7961 | exec_prefix="$acl_save_exec_prefix" | |
7962 | prefix="$acl_save_prefix" | |
7963 | ||
7964 | if test "X$x" = "X-L$additional_libdir"; then | |
7965 | haveit=yes | |
7966 | break | |
7967 | fi | |
7968 | done | |
7969 | if test -z "$haveit"; then | |
7970 | if test -d "$additional_libdir"; then | |
7971 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
7972 | fi | |
7973 | fi | |
7974 | fi | |
7975 | fi | |
7976 | ;; | |
7977 | -R*) | |
7978 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
7979 | if test "$enable_rpath" != no; then | |
7980 | haveit= | |
7981 | for x in $rpathdirs; do | |
7982 | if test "X$x" = "X$dir"; then | |
7983 | haveit=yes | |
7984 | break | |
7985 | fi | |
7986 | done | |
7987 | if test -z "$haveit"; then | |
7988 | rpathdirs="$rpathdirs $dir" | |
7989 | fi | |
7990 | haveit= | |
7991 | for x in $ltrpathdirs; do | |
7992 | if test "X$x" = "X$dir"; then | |
7993 | haveit=yes | |
7994 | break | |
7995 | fi | |
7996 | done | |
7997 | if test -z "$haveit"; then | |
7998 | ltrpathdirs="$ltrpathdirs $dir" | |
7999 | fi | |
8000 | fi | |
8001 | ;; | |
8002 | -l*) | |
8003 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
8004 | ;; | |
8005 | *.la) | |
8006 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
8007 | ;; | |
8008 | *) | |
8009 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
8010 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
8011 | ;; | |
8012 | esac | |
8013 | done | |
8014 | fi | |
8015 | else | |
8016 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
8017 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
8018 | fi | |
8019 | fi | |
8020 | fi | |
0710d850 | 8021 | done |
7fbd9d09 | 8022 | done |
8f223b3e FCE |
8023 | if test "X$rpathdirs" != "X"; then |
8024 | if test -n "$acl_hardcode_libdir_separator"; then | |
8025 | alldirs= | |
8026 | for found_dir in $rpathdirs; do | |
8027 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | |
8028 | done | |
8029 | acl_save_libdir="$libdir" | |
8030 | libdir="$alldirs" | |
8031 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
8032 | libdir="$acl_save_libdir" | |
8033 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
8034 | else | |
8035 | for found_dir in $rpathdirs; do | |
8036 | acl_save_libdir="$libdir" | |
8037 | libdir="$found_dir" | |
8038 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
8039 | libdir="$acl_save_libdir" | |
8040 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
8041 | done | |
8042 | fi | |
8043 | fi | |
8044 | if test "X$ltrpathdirs" != "X"; then | |
8045 | for found_dir in $ltrpathdirs; do | |
8046 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
8047 | done | |
0710d850 | 8048 | fi |
70d28673 | 8049 | |
7fbd9d09 | 8050 | |
70d28673 | 8051 | |
8f223b3e FCE |
8052 | |
8053 | ||
8054 | ||
8055 | ||
8056 | ||
8057 | ||
8058 | ||
8059 | ||
8060 | ||
8061 | ||
8062 | ||
8063 | ||
8064 | ||
8065 | ||
8066 | ||
8067 | ||
8068 | ||
8069 | ||
8070 | ||
8071 | ||
8072 | ||
8073 | ||
8074 | ||
8075 | ||
8076 | ||
42f767d0 JL |
8077 | |
8078 | ||
8079 | ||
8080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 | |
8081 | $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } | |
8082 | if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : | |
8083 | $as_echo_n "(cached) " >&6 | |
8084 | else | |
8085 | gt_save_LIBS="$LIBS" | |
8086 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | |
8087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8088 | /* end confdefs.h. */ | |
8089 | #include <CoreFoundation/CFPreferences.h> | |
8090 | int | |
8091 | main () | |
8092 | { | |
8093 | CFPreferencesCopyAppValue(NULL, NULL) | |
8094 | ; | |
8095 | return 0; | |
8096 | } | |
8097 | _ACEOF | |
8098 | if ac_fn_c_try_link "$LINENO"; then : | |
8099 | gt_cv_func_CFPreferencesCopyAppValue=yes | |
8100 | else | |
8101 | gt_cv_func_CFPreferencesCopyAppValue=no | |
8102 | fi | |
8103 | rm -f core conftest.err conftest.$ac_objext \ | |
8104 | conftest$ac_exeext conftest.$ac_ext | |
8105 | LIBS="$gt_save_LIBS" | |
8106 | fi | |
8107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 | |
8108 | $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } | |
8109 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then | |
8110 | ||
8111 | $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h | |
8112 | ||
8113 | fi | |
8114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 | |
8115 | $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } | |
8116 | if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : | |
8117 | $as_echo_n "(cached) " >&6 | |
8118 | else | |
8119 | gt_save_LIBS="$LIBS" | |
8120 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | |
8121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8122 | /* end confdefs.h. */ | |
8123 | #include <CoreFoundation/CFLocale.h> | |
8124 | int | |
8125 | main () | |
8126 | { | |
8127 | CFLocaleCopyCurrent(); | |
8128 | ; | |
8129 | return 0; | |
8130 | } | |
8131 | _ACEOF | |
8132 | if ac_fn_c_try_link "$LINENO"; then : | |
8133 | gt_cv_func_CFLocaleCopyCurrent=yes | |
8134 | else | |
8135 | gt_cv_func_CFLocaleCopyCurrent=no | |
8136 | fi | |
8137 | rm -f core conftest.err conftest.$ac_objext \ | |
8138 | conftest$ac_exeext conftest.$ac_ext | |
8139 | LIBS="$gt_save_LIBS" | |
8140 | fi | |
8141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 | |
8142 | $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } | |
8143 | if test $gt_cv_func_CFLocaleCopyCurrent = yes; then | |
8144 | ||
8145 | $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h | |
8146 | ||
8147 | fi | |
8148 | INTL_MACOSX_LIBS= | |
8149 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then | |
8150 | INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" | |
8151 | fi | |
8f223b3e FCE |
8152 | |
8153 | ||
8154 | ||
8155 | ||
8156 | ||
8157 | ||
8158 | LIBINTL= | |
8159 | LTLIBINTL= | |
8160 | POSUB= | |
8161 | ||
8162 | case " $gt_needs " in | |
8163 | *" need-formatstring-macros "*) gt_api_version=3 ;; | |
8164 | *" need-ngettext "*) gt_api_version=2 ;; | |
8165 | *) gt_api_version=1 ;; | |
8166 | esac | |
8167 | gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" | |
8168 | gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" | |
8169 | ||
8170 | if test "$USE_NLS" = "yes"; then | |
8171 | gt_use_preinstalled_gnugettext=no | |
8172 | ||
8173 | ||
8174 | if test $gt_api_version -ge 3; then | |
8175 | gt_revision_test_code=' | |
8176 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION | |
8177 | #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) | |
8178 | #endif | |
8179 | typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; | |
8180 | ' | |
8181 | else | |
8182 | gt_revision_test_code= | |
8183 | fi | |
8184 | if test $gt_api_version -ge 2; then | |
8185 | gt_expression_test_code=' + * ngettext ("", "", 0)' | |
8186 | else | |
8187 | gt_expression_test_code= | |
8188 | fi | |
8189 | ||
8190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 | |
8191 | $as_echo_n "checking for GNU gettext in libc... " >&6; } | |
c3de29bd | 8192 | if eval \${$gt_func_gnugettext_libc+:} false; then : |
0710d850 | 8193 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 8194 | else |
1ef0423a | 8195 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea | 8196 | /* end confdefs.h. */ |
42f767d0 | 8197 | |
8f223b3e FCE |
8198 | #include <libintl.h> |
8199 | $gt_revision_test_code | |
8200 | extern int _nl_msg_cat_cntr; | |
8201 | extern int *_nl_domain_bindings; | |
42f767d0 | 8202 | |
2f1a1aea FCE |
8203 | int |
8204 | main () | |
8205 | { | |
42f767d0 | 8206 | |
8f223b3e FCE |
8207 | bindtextdomain ("", ""); |
8208 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings | |
42f767d0 | 8209 | |
2f1a1aea FCE |
8210 | ; |
8211 | return 0; | |
8212 | } | |
8213 | _ACEOF | |
8f223b3e FCE |
8214 | if ac_fn_c_try_link "$LINENO"; then : |
8215 | eval "$gt_func_gnugettext_libc=yes" | |
2f1a1aea | 8216 | else |
8f223b3e | 8217 | eval "$gt_func_gnugettext_libc=no" |
2f1a1aea | 8218 | fi |
8f223b3e FCE |
8219 | rm -f core conftest.err conftest.$ac_objext \ |
8220 | conftest$ac_exeext conftest.$ac_ext | |
8221 | fi | |
8222 | eval ac_res=\$$gt_func_gnugettext_libc | |
8223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
8224 | $as_echo "$ac_res" >&6; } | |
2f1a1aea | 8225 | |
8f223b3e | 8226 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then |
2f1a1aea | 8227 | |
1ef0423a | 8228 | |
8f223b3e FCE |
8229 | |
8230 | ||
8231 | ||
8232 | am_save_CPPFLAGS="$CPPFLAGS" | |
8233 | ||
8234 | for element in $INCICONV; do | |
8235 | haveit= | |
8236 | for x in $CPPFLAGS; do | |
8237 | ||
8238 | acl_save_prefix="$prefix" | |
8239 | prefix="$acl_final_prefix" | |
8240 | acl_save_exec_prefix="$exec_prefix" | |
8241 | exec_prefix="$acl_final_exec_prefix" | |
8242 | eval x=\"$x\" | |
8243 | exec_prefix="$acl_save_exec_prefix" | |
8244 | prefix="$acl_save_prefix" | |
8245 | ||
8246 | if test "X$x" = "X$element"; then | |
8247 | haveit=yes | |
8248 | break | |
8249 | fi | |
8250 | done | |
8251 | if test -z "$haveit"; then | |
8252 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
8253 | fi | |
8254 | done | |
8255 | ||
8256 | ||
8257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 | |
8258 | $as_echo_n "checking for iconv... " >&6; } | |
c3de29bd | 8259 | if ${am_cv_func_iconv+:} false; then : |
8f223b3e | 8260 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 8261 | else |
8f223b3e FCE |
8262 | |
8263 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
8264 | am_cv_lib_iconv=no | |
8265 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8266 | /* end confdefs.h. */ | |
42f767d0 | 8267 | |
8f223b3e FCE |
8268 | #include <stdlib.h> |
8269 | #include <iconv.h> | |
42f767d0 | 8270 | |
8f223b3e FCE |
8271 | int |
8272 | main () | |
8273 | { | |
8274 | iconv_t cd = iconv_open("",""); | |
42f767d0 JL |
8275 | iconv(cd,NULL,NULL,NULL,NULL); |
8276 | iconv_close(cd); | |
8f223b3e FCE |
8277 | ; |
8278 | return 0; | |
8279 | } | |
8280 | _ACEOF | |
8281 | if ac_fn_c_try_link "$LINENO"; then : | |
8282 | am_cv_func_iconv=yes | |
2f1a1aea | 8283 | fi |
8f223b3e FCE |
8284 | rm -f core conftest.err conftest.$ac_objext \ |
8285 | conftest$ac_exeext conftest.$ac_ext | |
8286 | if test "$am_cv_func_iconv" != yes; then | |
8287 | am_save_LIBS="$LIBS" | |
8288 | LIBS="$LIBS $LIBICONV" | |
8289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8290 | /* end confdefs.h. */ | |
42f767d0 | 8291 | |
8f223b3e FCE |
8292 | #include <stdlib.h> |
8293 | #include <iconv.h> | |
42f767d0 | 8294 | |
8f223b3e FCE |
8295 | int |
8296 | main () | |
8297 | { | |
8298 | iconv_t cd = iconv_open("",""); | |
42f767d0 JL |
8299 | iconv(cd,NULL,NULL,NULL,NULL); |
8300 | iconv_close(cd); | |
8f223b3e FCE |
8301 | ; |
8302 | return 0; | |
8303 | } | |
8304 | _ACEOF | |
8305 | if ac_fn_c_try_link "$LINENO"; then : | |
8306 | am_cv_lib_iconv=yes | |
8307 | am_cv_func_iconv=yes | |
8308 | fi | |
8309 | rm -f core conftest.err conftest.$ac_objext \ | |
8310 | conftest$ac_exeext conftest.$ac_ext | |
8311 | LIBS="$am_save_LIBS" | |
8312 | fi | |
2f1a1aea FCE |
8313 | |
8314 | fi | |
8f223b3e FCE |
8315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 |
8316 | $as_echo "$am_cv_func_iconv" >&6; } | |
8317 | if test "$am_cv_func_iconv" = yes; then | |
8318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 | |
8319 | $as_echo_n "checking for working iconv... " >&6; } | |
c3de29bd | 8320 | if ${am_cv_func_iconv_works+:} false; then : |
8f223b3e FCE |
8321 | $as_echo_n "(cached) " >&6 |
8322 | else | |
2f1a1aea | 8323 | |
42f767d0 | 8324 | am_save_LIBS="$LIBS" |
8f223b3e FCE |
8325 | if test $am_cv_lib_iconv = yes; then |
8326 | LIBS="$LIBS $LIBICONV" | |
8327 | fi | |
8328 | if test "$cross_compiling" = yes; then : | |
42f767d0 JL |
8329 | |
8330 | case "$host_os" in | |
8f223b3e FCE |
8331 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; |
8332 | *) am_cv_func_iconv_works="guessing yes" ;; | |
8333 | esac | |
42f767d0 | 8334 | |
8f223b3e | 8335 | else |
1ef0423a | 8336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea | 8337 | /* end confdefs.h. */ |
2f1a1aea | 8338 | |
8f223b3e FCE |
8339 | #include <iconv.h> |
8340 | #include <string.h> | |
8341 | int main () | |
8342 | { | |
42f767d0 | 8343 | int result = 0; |
8f223b3e FCE |
8344 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful |
8345 | returns. */ | |
8346 | { | |
8347 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); | |
8348 | if (cd_utf8_to_88591 != (iconv_t)(-1)) | |
8349 | { | |
8350 | static const char input[] = "\342\202\254"; /* EURO SIGN */ | |
8351 | char buf[10]; | |
8352 | const char *inptr = input; | |
8353 | size_t inbytesleft = strlen (input); | |
8354 | char *outptr = buf; | |
8355 | size_t outbytesleft = sizeof (buf); | |
8356 | size_t res = iconv (cd_utf8_to_88591, | |
8357 | (char **) &inptr, &inbytesleft, | |
8358 | &outptr, &outbytesleft); | |
8359 | if (res == 0) | |
42f767d0 JL |
8360 | result |= 1; |
8361 | iconv_close (cd_utf8_to_88591); | |
8362 | } | |
8363 | } | |
8364 | /* Test against Solaris 10 bug: Failures are not distinguishable from | |
8365 | successful returns. */ | |
8366 | { | |
8367 | iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); | |
8368 | if (cd_ascii_to_88591 != (iconv_t)(-1)) | |
8369 | { | |
8370 | static const char input[] = "\263"; | |
8371 | char buf[10]; | |
8372 | const char *inptr = input; | |
8373 | size_t inbytesleft = strlen (input); | |
8374 | char *outptr = buf; | |
8375 | size_t outbytesleft = sizeof (buf); | |
8376 | size_t res = iconv (cd_ascii_to_88591, | |
8377 | (char **) &inptr, &inbytesleft, | |
8378 | &outptr, &outbytesleft); | |
8379 | if (res == 0) | |
8380 | result |= 2; | |
8381 | iconv_close (cd_ascii_to_88591); | |
8382 | } | |
8383 | } | |
8384 | /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ | |
8385 | { | |
8386 | iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); | |
8387 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
8388 | { | |
8389 | static const char input[] = "\304"; | |
8390 | static char buf[2] = { (char)0xDE, (char)0xAD }; | |
8391 | const char *inptr = input; | |
8392 | size_t inbytesleft = 1; | |
8393 | char *outptr = buf; | |
8394 | size_t outbytesleft = 1; | |
8395 | size_t res = iconv (cd_88591_to_utf8, | |
8396 | (char **) &inptr, &inbytesleft, | |
8397 | &outptr, &outbytesleft); | |
8398 | if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) | |
8399 | result |= 4; | |
8400 | iconv_close (cd_88591_to_utf8); | |
8f223b3e FCE |
8401 | } |
8402 | } | |
8f223b3e FCE |
8403 | #if 0 /* This bug could be worked around by the caller. */ |
8404 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ | |
8405 | { | |
8406 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); | |
8407 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
8408 | { | |
8409 | static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; | |
8410 | char buf[50]; | |
8411 | const char *inptr = input; | |
8412 | size_t inbytesleft = strlen (input); | |
8413 | char *outptr = buf; | |
8414 | size_t outbytesleft = sizeof (buf); | |
8415 | size_t res = iconv (cd_88591_to_utf8, | |
8416 | (char **) &inptr, &inbytesleft, | |
8417 | &outptr, &outbytesleft); | |
8418 | if ((int)res > 0) | |
42f767d0 JL |
8419 | result |= 8; |
8420 | iconv_close (cd_88591_to_utf8); | |
8f223b3e FCE |
8421 | } |
8422 | } | |
8423 | #endif | |
8424 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is | |
8425 | provided. */ | |
8426 | if (/* Try standardized names. */ | |
8427 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) | |
8428 | /* Try IRIX, OSF/1 names. */ | |
8429 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) | |
8430 | /* Try AIX names. */ | |
8431 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) | |
8432 | /* Try HP-UX names. */ | |
8433 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) | |
42f767d0 JL |
8434 | result |= 16; |
8435 | return result; | |
8f223b3e | 8436 | } |
2f1a1aea | 8437 | _ACEOF |
8f223b3e FCE |
8438 | if ac_fn_c_try_run "$LINENO"; then : |
8439 | am_cv_func_iconv_works=yes | |
2f1a1aea | 8440 | else |
8f223b3e | 8441 | am_cv_func_iconv_works=no |
2f1a1aea | 8442 | fi |
8f223b3e FCE |
8443 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
8444 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8445 | fi | |
8446 | ||
8447 | LIBS="$am_save_LIBS" | |
2f1a1aea FCE |
8448 | |
8449 | fi | |
8f223b3e FCE |
8450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 |
8451 | $as_echo "$am_cv_func_iconv_works" >&6; } | |
8452 | case "$am_cv_func_iconv_works" in | |
8453 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; | |
8454 | *) am_func_iconv=yes ;; | |
8455 | esac | |
8456 | else | |
8457 | am_func_iconv=no am_cv_lib_iconv=no | |
8458 | fi | |
8459 | if test "$am_func_iconv" = yes; then | |
2f1a1aea | 8460 | |
8f223b3e FCE |
8461 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h |
8462 | ||
8463 | fi | |
8464 | if test "$am_cv_lib_iconv" = yes; then | |
8465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 | |
8466 | $as_echo_n "checking how to link with libiconv... " >&6; } | |
8467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | |
8468 | $as_echo "$LIBICONV" >&6; } | |
8469 | else | |
8470 | CPPFLAGS="$am_save_CPPFLAGS" | |
8471 | LIBICONV= | |
8472 | LTLIBICONV= | |
8473 | fi | |
8474 | ||
8475 | ||
8476 | ||
8477 | ||
8478 | ||
8479 | ||
8480 | ||
8481 | ||
8482 | ||
8483 | ||
8484 | ||
8485 | use_additional=yes | |
8486 | ||
8487 | acl_save_prefix="$prefix" | |
8488 | prefix="$acl_final_prefix" | |
8489 | acl_save_exec_prefix="$exec_prefix" | |
8490 | exec_prefix="$acl_final_exec_prefix" | |
8491 | ||
8492 | eval additional_includedir=\"$includedir\" | |
8493 | eval additional_libdir=\"$libdir\" | |
8494 | ||
8495 | exec_prefix="$acl_save_exec_prefix" | |
8496 | prefix="$acl_save_prefix" | |
8497 | ||
8498 | ||
8499 | # Check whether --with-libintl-prefix was given. | |
8500 | if test "${with_libintl_prefix+set}" = set; then : | |
8501 | withval=$with_libintl_prefix; | |
8502 | if test "X$withval" = "Xno"; then | |
8503 | use_additional=no | |
8504 | else | |
8505 | if test "X$withval" = "X"; then | |
8506 | ||
8507 | acl_save_prefix="$prefix" | |
8508 | prefix="$acl_final_prefix" | |
8509 | acl_save_exec_prefix="$exec_prefix" | |
8510 | exec_prefix="$acl_final_exec_prefix" | |
8511 | ||
8512 | eval additional_includedir=\"$includedir\" | |
8513 | eval additional_libdir=\"$libdir\" | |
8514 | ||
8515 | exec_prefix="$acl_save_exec_prefix" | |
8516 | prefix="$acl_save_prefix" | |
8517 | ||
8518 | else | |
8519 | additional_includedir="$withval/include" | |
8520 | additional_libdir="$withval/$acl_libdirstem" | |
8521 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ | |
8522 | && ! test -d "$withval/$acl_libdirstem"; then | |
8523 | additional_libdir="$withval/$acl_libdirstem2" | |
8524 | fi | |
8525 | fi | |
8526 | fi | |
8527 | ||
8528 | fi | |
8529 | ||
8530 | LIBINTL= | |
8531 | LTLIBINTL= | |
8532 | INCINTL= | |
8533 | LIBINTL_PREFIX= | |
8534 | HAVE_LIBINTL= | |
8535 | rpathdirs= | |
8536 | ltrpathdirs= | |
8537 | names_already_handled= | |
8538 | names_next_round='intl ' | |
8539 | while test -n "$names_next_round"; do | |
8540 | names_this_round="$names_next_round" | |
8541 | names_next_round= | |
8542 | for name in $names_this_round; do | |
8543 | already_handled= | |
8544 | for n in $names_already_handled; do | |
8545 | if test "$n" = "$name"; then | |
8546 | already_handled=yes | |
8547 | break | |
8548 | fi | |
8549 | done | |
8550 | if test -z "$already_handled"; then | |
8551 | names_already_handled="$names_already_handled $name" | |
42f767d0 | 8552 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
8f223b3e FCE |
8553 | eval value=\"\$HAVE_LIB$uppername\" |
8554 | if test -n "$value"; then | |
8555 | if test "$value" = yes; then | |
8556 | eval value=\"\$LIB$uppername\" | |
8557 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" | |
8558 | eval value=\"\$LTLIB$uppername\" | |
8559 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" | |
8560 | else | |
8561 | : | |
8562 | fi | |
8563 | else | |
8564 | found_dir= | |
8565 | found_la= | |
8566 | found_so= | |
8567 | found_a= | |
8568 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | |
8569 | if test -n "$acl_shlibext"; then | |
8570 | shrext=".$acl_shlibext" # typically: shrext=.so | |
8571 | else | |
8572 | shrext= | |
8573 | fi | |
8574 | if test $use_additional = yes; then | |
8575 | dir="$additional_libdir" | |
8576 | if test -n "$acl_shlibext"; then | |
8577 | if test -f "$dir/$libname$shrext"; then | |
8578 | found_dir="$dir" | |
8579 | found_so="$dir/$libname$shrext" | |
8580 | else | |
8581 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
8582 | ver=`(cd "$dir" && \ | |
8583 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
8584 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
8585 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
8586 | | sed 1q ) 2>/dev/null` | |
8587 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
8588 | found_dir="$dir" | |
8589 | found_so="$dir/$libname$shrext.$ver" | |
8590 | fi | |
8591 | else | |
8592 | eval library_names=\"$acl_library_names_spec\" | |
8593 | for f in $library_names; do | |
8594 | if test -f "$dir/$f"; then | |
8595 | found_dir="$dir" | |
8596 | found_so="$dir/$f" | |
8597 | break | |
8598 | fi | |
8599 | done | |
8600 | fi | |
8601 | fi | |
8602 | fi | |
8603 | if test "X$found_dir" = "X"; then | |
8604 | if test -f "$dir/$libname.$acl_libext"; then | |
8605 | found_dir="$dir" | |
8606 | found_a="$dir/$libname.$acl_libext" | |
8607 | fi | |
8608 | fi | |
8609 | if test "X$found_dir" != "X"; then | |
8610 | if test -f "$dir/$libname.la"; then | |
8611 | found_la="$dir/$libname.la" | |
8612 | fi | |
8613 | fi | |
8614 | fi | |
8615 | if test "X$found_dir" = "X"; then | |
8616 | for x in $LDFLAGS $LTLIBINTL; do | |
8617 | ||
8618 | acl_save_prefix="$prefix" | |
8619 | prefix="$acl_final_prefix" | |
8620 | acl_save_exec_prefix="$exec_prefix" | |
8621 | exec_prefix="$acl_final_exec_prefix" | |
8622 | eval x=\"$x\" | |
8623 | exec_prefix="$acl_save_exec_prefix" | |
8624 | prefix="$acl_save_prefix" | |
8625 | ||
8626 | case "$x" in | |
8627 | -L*) | |
8628 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
8629 | if test -n "$acl_shlibext"; then | |
8630 | if test -f "$dir/$libname$shrext"; then | |
8631 | found_dir="$dir" | |
8632 | found_so="$dir/$libname$shrext" | |
8633 | else | |
8634 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
8635 | ver=`(cd "$dir" && \ | |
8636 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
8637 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
8638 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
8639 | | sed 1q ) 2>/dev/null` | |
8640 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
8641 | found_dir="$dir" | |
8642 | found_so="$dir/$libname$shrext.$ver" | |
8643 | fi | |
8644 | else | |
8645 | eval library_names=\"$acl_library_names_spec\" | |
8646 | for f in $library_names; do | |
8647 | if test -f "$dir/$f"; then | |
8648 | found_dir="$dir" | |
8649 | found_so="$dir/$f" | |
8650 | break | |
8651 | fi | |
8652 | done | |
8653 | fi | |
8654 | fi | |
8655 | fi | |
8656 | if test "X$found_dir" = "X"; then | |
8657 | if test -f "$dir/$libname.$acl_libext"; then | |
8658 | found_dir="$dir" | |
8659 | found_a="$dir/$libname.$acl_libext" | |
8660 | fi | |
8661 | fi | |
8662 | if test "X$found_dir" != "X"; then | |
8663 | if test -f "$dir/$libname.la"; then | |
8664 | found_la="$dir/$libname.la" | |
8665 | fi | |
8666 | fi | |
8667 | ;; | |
8668 | esac | |
8669 | if test "X$found_dir" != "X"; then | |
8670 | break | |
8671 | fi | |
8672 | done | |
8673 | fi | |
8674 | if test "X$found_dir" != "X"; then | |
8675 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" | |
8676 | if test "X$found_so" != "X"; then | |
8677 | if test "$enable_rpath" = no \ | |
8678 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ | |
8679 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then | |
8680 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
8681 | else | |
8682 | haveit= | |
8683 | for x in $ltrpathdirs; do | |
8684 | if test "X$x" = "X$found_dir"; then | |
8685 | haveit=yes | |
8686 | break | |
8687 | fi | |
8688 | done | |
8689 | if test -z "$haveit"; then | |
8690 | ltrpathdirs="$ltrpathdirs $found_dir" | |
8691 | fi | |
8692 | if test "$acl_hardcode_direct" = yes; then | |
8693 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
8694 | else | |
8695 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | |
8696 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
8697 | haveit= | |
8698 | for x in $rpathdirs; do | |
8699 | if test "X$x" = "X$found_dir"; then | |
8700 | haveit=yes | |
8701 | break | |
8702 | fi | |
8703 | done | |
8704 | if test -z "$haveit"; then | |
8705 | rpathdirs="$rpathdirs $found_dir" | |
8706 | fi | |
8707 | else | |
8708 | haveit= | |
8709 | for x in $LDFLAGS $LIBINTL; do | |
8710 | ||
8711 | acl_save_prefix="$prefix" | |
8712 | prefix="$acl_final_prefix" | |
8713 | acl_save_exec_prefix="$exec_prefix" | |
8714 | exec_prefix="$acl_final_exec_prefix" | |
8715 | eval x=\"$x\" | |
8716 | exec_prefix="$acl_save_exec_prefix" | |
8717 | prefix="$acl_save_prefix" | |
8718 | ||
8719 | if test "X$x" = "X-L$found_dir"; then | |
8720 | haveit=yes | |
8721 | break | |
8722 | fi | |
8723 | done | |
8724 | if test -z "$haveit"; then | |
8725 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" | |
8726 | fi | |
8727 | if test "$acl_hardcode_minus_L" != no; then | |
8728 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
8729 | else | |
8730 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
8731 | fi | |
8732 | fi | |
8733 | fi | |
8734 | fi | |
8735 | else | |
8736 | if test "X$found_a" != "X"; then | |
8737 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" | |
8738 | else | |
8739 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" | |
8740 | fi | |
8741 | fi | |
8742 | additional_includedir= | |
8743 | case "$found_dir" in | |
8744 | */$acl_libdirstem | */$acl_libdirstem/) | |
8745 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
8746 | if test "$name" = 'intl'; then | |
8747 | LIBINTL_PREFIX="$basedir" | |
8748 | fi | |
8749 | additional_includedir="$basedir/include" | |
8750 | ;; | |
8751 | */$acl_libdirstem2 | */$acl_libdirstem2/) | |
8752 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` | |
8753 | if test "$name" = 'intl'; then | |
8754 | LIBINTL_PREFIX="$basedir" | |
8755 | fi | |
8756 | additional_includedir="$basedir/include" | |
8757 | ;; | |
8758 | esac | |
8759 | if test "X$additional_includedir" != "X"; then | |
8760 | if test "X$additional_includedir" != "X/usr/include"; then | |
8761 | haveit= | |
8762 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
8763 | if test -n "$GCC"; then | |
8764 | case $host_os in | |
8765 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
8766 | esac | |
8767 | fi | |
8768 | fi | |
8769 | if test -z "$haveit"; then | |
8770 | for x in $CPPFLAGS $INCINTL; do | |
8771 | ||
8772 | acl_save_prefix="$prefix" | |
8773 | prefix="$acl_final_prefix" | |
8774 | acl_save_exec_prefix="$exec_prefix" | |
8775 | exec_prefix="$acl_final_exec_prefix" | |
8776 | eval x=\"$x\" | |
8777 | exec_prefix="$acl_save_exec_prefix" | |
8778 | prefix="$acl_save_prefix" | |
8779 | ||
8780 | if test "X$x" = "X-I$additional_includedir"; then | |
8781 | haveit=yes | |
8782 | break | |
8783 | fi | |
8784 | done | |
8785 | if test -z "$haveit"; then | |
8786 | if test -d "$additional_includedir"; then | |
8787 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" | |
8788 | fi | |
8789 | fi | |
8790 | fi | |
8791 | fi | |
8792 | fi | |
8793 | if test -n "$found_la"; then | |
8794 | save_libdir="$libdir" | |
8795 | case "$found_la" in | |
8796 | */* | *\\*) . "$found_la" ;; | |
8797 | *) . "./$found_la" ;; | |
8798 | esac | |
8799 | libdir="$save_libdir" | |
8800 | for dep in $dependency_libs; do | |
8801 | case "$dep" in | |
8802 | -L*) | |
8803 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
8804 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ | |
8805 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then | |
8806 | haveit= | |
8807 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ | |
8808 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then | |
8809 | if test -n "$GCC"; then | |
8810 | case $host_os in | |
8811 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
8812 | esac | |
8813 | fi | |
8814 | fi | |
8815 | if test -z "$haveit"; then | |
8816 | haveit= | |
8817 | for x in $LDFLAGS $LIBINTL; do | |
8818 | ||
8819 | acl_save_prefix="$prefix" | |
8820 | prefix="$acl_final_prefix" | |
8821 | acl_save_exec_prefix="$exec_prefix" | |
8822 | exec_prefix="$acl_final_exec_prefix" | |
8823 | eval x=\"$x\" | |
8824 | exec_prefix="$acl_save_exec_prefix" | |
8825 | prefix="$acl_save_prefix" | |
8826 | ||
8827 | if test "X$x" = "X-L$additional_libdir"; then | |
8828 | haveit=yes | |
8829 | break | |
8830 | fi | |
8831 | done | |
8832 | if test -z "$haveit"; then | |
8833 | if test -d "$additional_libdir"; then | |
8834 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" | |
8835 | fi | |
8836 | fi | |
8837 | haveit= | |
8838 | for x in $LDFLAGS $LTLIBINTL; do | |
8839 | ||
8840 | acl_save_prefix="$prefix" | |
8841 | prefix="$acl_final_prefix" | |
8842 | acl_save_exec_prefix="$exec_prefix" | |
8843 | exec_prefix="$acl_final_exec_prefix" | |
8844 | eval x=\"$x\" | |
8845 | exec_prefix="$acl_save_exec_prefix" | |
8846 | prefix="$acl_save_prefix" | |
8847 | ||
8848 | if test "X$x" = "X-L$additional_libdir"; then | |
8849 | haveit=yes | |
8850 | break | |
8851 | fi | |
8852 | done | |
8853 | if test -z "$haveit"; then | |
8854 | if test -d "$additional_libdir"; then | |
8855 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" | |
8856 | fi | |
8857 | fi | |
8858 | fi | |
8859 | fi | |
8860 | ;; | |
8861 | -R*) | |
8862 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
8863 | if test "$enable_rpath" != no; then | |
8864 | haveit= | |
8865 | for x in $rpathdirs; do | |
8866 | if test "X$x" = "X$dir"; then | |
8867 | haveit=yes | |
8868 | break | |
8869 | fi | |
8870 | done | |
8871 | if test -z "$haveit"; then | |
8872 | rpathdirs="$rpathdirs $dir" | |
8873 | fi | |
8874 | haveit= | |
8875 | for x in $ltrpathdirs; do | |
8876 | if test "X$x" = "X$dir"; then | |
8877 | haveit=yes | |
8878 | break | |
8879 | fi | |
8880 | done | |
8881 | if test -z "$haveit"; then | |
8882 | ltrpathdirs="$ltrpathdirs $dir" | |
8883 | fi | |
8884 | fi | |
8885 | ;; | |
8886 | -l*) | |
8887 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
8888 | ;; | |
8889 | *.la) | |
8890 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
8891 | ;; | |
8892 | *) | |
8893 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" | |
8894 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" | |
8895 | ;; | |
8896 | esac | |
8897 | done | |
8898 | fi | |
8899 | else | |
8900 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
8901 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" | |
8902 | fi | |
8903 | fi | |
8904 | fi | |
8905 | done | |
8906 | done | |
8907 | if test "X$rpathdirs" != "X"; then | |
8908 | if test -n "$acl_hardcode_libdir_separator"; then | |
8909 | alldirs= | |
8910 | for found_dir in $rpathdirs; do | |
8911 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | |
8912 | done | |
8913 | acl_save_libdir="$libdir" | |
8914 | libdir="$alldirs" | |
8915 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
8916 | libdir="$acl_save_libdir" | |
8917 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
8918 | else | |
8919 | for found_dir in $rpathdirs; do | |
8920 | acl_save_libdir="$libdir" | |
8921 | libdir="$found_dir" | |
8922 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
8923 | libdir="$acl_save_libdir" | |
8924 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
8925 | done | |
8926 | fi | |
8927 | fi | |
8928 | if test "X$ltrpathdirs" != "X"; then | |
8929 | for found_dir in $ltrpathdirs; do | |
8930 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" | |
8931 | done | |
8932 | fi | |
8933 | ||
8934 | ||
8935 | ||
8936 | ||
8937 | ||
8938 | ||
8939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 | |
8940 | $as_echo_n "checking for GNU gettext in libintl... " >&6; } | |
c3de29bd | 8941 | if eval \${$gt_func_gnugettext_libintl+:} false; then : |
8f223b3e | 8942 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 8943 | else |
8f223b3e FCE |
8944 | gt_save_CPPFLAGS="$CPPFLAGS" |
8945 | CPPFLAGS="$CPPFLAGS $INCINTL" | |
8946 | gt_save_LIBS="$LIBS" | |
8947 | LIBS="$LIBS $LIBINTL" | |
8948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2f1a1aea | 8949 | /* end confdefs.h. */ |
42f767d0 | 8950 | |
8f223b3e FCE |
8951 | #include <libintl.h> |
8952 | $gt_revision_test_code | |
8953 | extern int _nl_msg_cat_cntr; | |
8954 | extern | |
8955 | #ifdef __cplusplus | |
8956 | "C" | |
2f1a1aea | 8957 | #endif |
8f223b3e | 8958 | const char *_nl_expand_alias (const char *); |
42f767d0 | 8959 | |
2f1a1aea FCE |
8960 | int |
8961 | main () | |
8962 | { | |
42f767d0 | 8963 | |
8f223b3e FCE |
8964 | bindtextdomain ("", ""); |
8965 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") | |
42f767d0 | 8966 | |
8f223b3e | 8967 | ; |
7fbd9d09 | 8968 | return 0; |
2f1a1aea FCE |
8969 | } |
8970 | _ACEOF | |
8f223b3e FCE |
8971 | if ac_fn_c_try_link "$LINENO"; then : |
8972 | eval "$gt_func_gnugettext_libintl=yes" | |
1ef0423a | 8973 | else |
8f223b3e | 8974 | eval "$gt_func_gnugettext_libintl=no" |
412e1bf7 | 8975 | fi |
8f223b3e FCE |
8976 | rm -f core conftest.err conftest.$ac_objext \ |
8977 | conftest$ac_exeext conftest.$ac_ext | |
8978 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then | |
8979 | LIBS="$LIBS $LIBICONV" | |
8980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8981 | /* end confdefs.h. */ | |
42f767d0 | 8982 | |
8f223b3e FCE |
8983 | #include <libintl.h> |
8984 | $gt_revision_test_code | |
8985 | extern int _nl_msg_cat_cntr; | |
8986 | extern | |
8987 | #ifdef __cplusplus | |
8988 | "C" | |
8989 | #endif | |
8990 | const char *_nl_expand_alias (const char *); | |
42f767d0 | 8991 | |
8f223b3e FCE |
8992 | int |
8993 | main () | |
8994 | { | |
42f767d0 | 8995 | |
8f223b3e FCE |
8996 | bindtextdomain ("", ""); |
8997 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") | |
42f767d0 | 8998 | |
8f223b3e FCE |
8999 | ; |
9000 | return 0; | |
9001 | } | |
9002 | _ACEOF | |
9003 | if ac_fn_c_try_link "$LINENO"; then : | |
9004 | LIBINTL="$LIBINTL $LIBICONV" | |
42f767d0 JL |
9005 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
9006 | eval "$gt_func_gnugettext_libintl=yes" | |
412e1bf7 | 9007 | |
412e1bf7 | 9008 | fi |
8f223b3e FCE |
9009 | rm -f core conftest.err conftest.$ac_objext \ |
9010 | conftest$ac_exeext conftest.$ac_ext | |
9011 | fi | |
9012 | CPPFLAGS="$gt_save_CPPFLAGS" | |
9013 | LIBS="$gt_save_LIBS" | |
412e1bf7 | 9014 | fi |
8f223b3e FCE |
9015 | eval ac_res=\$$gt_func_gnugettext_libintl |
9016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
9017 | $as_echo "$ac_res" >&6; } | |
9018 | fi | |
412e1bf7 | 9019 | |
8f223b3e FCE |
9020 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ |
9021 | || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ | |
9022 | && test "$PACKAGE" != gettext-runtime \ | |
9023 | && test "$PACKAGE" != gettext-tools; }; then | |
9024 | gt_use_preinstalled_gnugettext=yes | |
9025 | else | |
9026 | LIBINTL= | |
9027 | LTLIBINTL= | |
9028 | INCINTL= | |
9029 | fi | |
412e1bf7 | 9030 | |
412e1bf7 | 9031 | |
2f1a1aea | 9032 | |
8f223b3e FCE |
9033 | if test -n "$INTL_MACOSX_LIBS"; then |
9034 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | |
9035 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
9036 | LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" | |
9037 | LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" | |
9038 | fi | |
9039 | fi | |
2f1a1aea | 9040 | |
8f223b3e FCE |
9041 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
9042 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
2f1a1aea | 9043 | |
8f223b3e | 9044 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
2f1a1aea | 9045 | |
8f223b3e FCE |
9046 | else |
9047 | USE_NLS=no | |
9048 | fi | |
9049 | fi | |
2f1a1aea | 9050 | |
8f223b3e FCE |
9051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 |
9052 | $as_echo_n "checking whether to use NLS... " >&6; } | |
9053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
9054 | $as_echo "$USE_NLS" >&6; } | |
9055 | if test "$USE_NLS" = "yes"; then | |
9056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 | |
9057 | $as_echo_n "checking where the gettext function comes from... " >&6; } | |
9058 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | |
9059 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then | |
9060 | gt_source="external libintl" | |
9061 | else | |
9062 | gt_source="libc" | |
9063 | fi | |
9064 | else | |
9065 | gt_source="included intl directory" | |
9066 | fi | |
9067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 | |
9068 | $as_echo "$gt_source" >&6; } | |
9069 | fi | |
2f1a1aea | 9070 | |
8f223b3e FCE |
9071 | if test "$USE_NLS" = "yes"; then |
9072 | ||
9073 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | |
9074 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then | |
9075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 | |
9076 | $as_echo_n "checking how to link with libintl... " >&6; } | |
9077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 | |
9078 | $as_echo "$LIBINTL" >&6; } | |
9079 | ||
9080 | for element in $INCINTL; do | |
9081 | haveit= | |
9082 | for x in $CPPFLAGS; do | |
9083 | ||
9084 | acl_save_prefix="$prefix" | |
9085 | prefix="$acl_final_prefix" | |
9086 | acl_save_exec_prefix="$exec_prefix" | |
9087 | exec_prefix="$acl_final_exec_prefix" | |
9088 | eval x=\"$x\" | |
9089 | exec_prefix="$acl_save_exec_prefix" | |
9090 | prefix="$acl_save_prefix" | |
9091 | ||
9092 | if test "X$x" = "X$element"; then | |
9093 | haveit=yes | |
9094 | break | |
9095 | fi | |
9096 | done | |
9097 | if test -z "$haveit"; then | |
9098 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
9099 | fi | |
9100 | done | |
412e1bf7 | 9101 | |
8f223b3e | 9102 | fi |
412e1bf7 | 9103 | |
5e5aee9f | 9104 | |
8f223b3e | 9105 | $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h |
5e5aee9f | 9106 | |
2f1a1aea | 9107 | |
8f223b3e | 9108 | $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h |
2f1a1aea | 9109 | |
8f223b3e | 9110 | fi |
7fbd9d09 | 9111 | |
8f223b3e | 9112 | POSUB=po |
2f1a1aea | 9113 | fi |
2f1a1aea | 9114 | |
2f1a1aea | 9115 | |
2f1a1aea | 9116 | |
8f223b3e | 9117 | INTLLIBS="$LIBINTL" |
2f1a1aea FCE |
9118 | |
9119 | ||
2f1a1aea | 9120 | |
2f1a1aea FCE |
9121 | |
9122 | ||
9123 | ||
9124 | ||
e04a4b41 JS |
9125 | for ac_func in ppoll |
9126 | do : | |
9127 | ac_fn_c_check_func "$LINENO" "ppoll" "ac_cv_func_ppoll" | |
c3de29bd | 9128 | if test "x$ac_cv_func_ppoll" = xyes; then : |
e04a4b41 JS |
9129 | cat >>confdefs.h <<_ACEOF |
9130 | #define HAVE_PPOLL 1 | |
9131 | _ACEOF | |
9132 | ||
9133 | fi | |
9134 | done | |
9135 | ||
56629dde FCE |
9136 | for ac_func in openat |
9137 | do : | |
9138 | ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat" | |
9139 | if test "x$ac_cv_func_openat" = xyes; then : | |
9140 | cat >>confdefs.h <<_ACEOF | |
9141 | #define HAVE_OPENAT 1 | |
9142 | _ACEOF | |
9143 | ||
9144 | fi | |
9145 | done | |
9146 | ||
caf6872d | 9147 | |
70d28673 | 9148 | if test "${enable_prologues+set}" != set; then |
1ef0423a | 9149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if prologue searching should be the default" >&5 |
0710d850 | 9150 | $as_echo_n "checking to see if prologue searching should be the default... " >&6; } |
70d28673 DS |
9151 | if { echo '#if __i386__ == 1 && __GNUC__ < 4' |
9152 | echo ' yes ' | |
9153 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
9154 | enable_prologues=yes | |
1ef0423a | 9155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
0710d850 | 9156 | $as_echo "yes" >&6; } |
70d28673 | 9157 | else |
1ef0423a | 9158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 9159 | $as_echo "no" >&6; } |
70d28673 DS |
9160 | fi |
9161 | fi | |
7fbd9d09 | 9162 | # Check whether --enable-prologues was given. |
1ef0423a | 9163 | if test "${enable_prologues+set}" = set; then : |
7fbd9d09 | 9164 | enableval=$enable_prologues; |
70d28673 | 9165 | if test "$enable_prologues" = yes; then |
44f75386 | 9166 | |
1ef0423a | 9167 | $as_echo "#define ENABLE_PROLOGUES /**/" >>confdefs.h |
44f75386 | 9168 | |
70d28673 | 9169 | fi |
7fbd9d09 | 9170 | fi |
70d28673 | 9171 | |
7fbd9d09 | 9172 | |
e1bfefdc SC |
9173 | |
9174 | if test "${enable_sdt_probes+set}" != set; then | |
9175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if sdt probes should be the default" >&5 | |
9176 | $as_echo_n "checking to see if sdt probes should be the default... " >&6; } | |
9177 | if { echo '#if __GNUC__ < 4' | |
9178 | echo ' yes ' | |
9179 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
8b714d4b | 9180 | enable_sdt_probes=no |
e1bfefdc SC |
9181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9182 | $as_echo "no" >&6; } | |
9183 | else | |
9184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9185 | $as_echo "yes" >&6; } | |
9186 | fi | |
9187 | fi | |
0f5d597d JS |
9188 | # Check whether --enable-sdt-probes was given. |
9189 | if test "${enable_sdt_probes+set}" = set; then : | |
9190 | enableval=$enable_sdt_probes; | |
9191 | fi | |
9192 | ||
9193 | if test "x$enable_sdt_probes" != xno; then : | |
9194 | ||
9195 | ||
9196 | $as_echo "#define ENABLE_SDT_PROBES 1" >>confdefs.h | |
9197 | ||
9198 | ||
9199 | fi | |
9200 | ||
7fbd9d09 | 9201 | # Check whether --enable-ssp was given. |
1ef0423a | 9202 | if test "${enable_ssp+set}" = set; then : |
7fbd9d09 FCE |
9203 | enableval=$enable_ssp; |
9204 | fi | |
9921a199 | 9205 | |
1ef0423a | 9206 | if test "x$enable_ssp" != xno; then : |
bbfd8c1a FCE |
9207 | |
9208 | save_CFLAGS="$CFLAGS" | |
9209 | save_CXXFLAGS="$CXXFLAGS" | |
f0510eaa FCE |
9210 | CXXFLAGS="$CXXFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2" |
9211 | CFLAGS="$CFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2" | |
1ef0423a FCE |
9212 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9213 | /* end confdefs.h. */ | |
bbfd8c1a FCE |
9214 | int something (); |
9215 | _ACEOF | |
1ef0423a | 9216 | if ac_fn_c_try_compile "$LINENO"; then : |
818ba2bc | 9217 | |
1ef0423a | 9218 | { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc -fstack-protector-all et al." >&5 |
0710d850 | 9219 | $as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;} |
f0510eaa | 9220 | CFLAGS="$save_CFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2" |
a530cfe0 | 9221 | CXXFLAGS="$save_CXXFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2" |
bbfd8c1a | 9222 | else |
bbfd8c1a | 9223 | |
1ef0423a | 9224 | { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fstack-protector-all et al." >&5 |
0710d850 | 9225 | $as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;} |
bbfd8c1a FCE |
9226 | CFLAGS="$save_CFLAGS" |
9227 | CXXFLAGS="$save_CXXFLAGS" | |
9228 | fi | |
7fbd9d09 | 9229 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9921a199 | 9230 | fi |
70d28673 | 9231 | |
cbe7ea07 FCE |
9232 | |
9233 | ||
9234 | ||
e1e3ba36 | 9235 | # Compiling without fPIE by default (see PR 9922) |
7fbd9d09 | 9236 | # Check whether --enable-pie was given. |
1ef0423a | 9237 | if test "${enable_pie+set}" = set; then : |
7fbd9d09 FCE |
9238 | enableval=$enable_pie; |
9239 | fi | |
8730f377 | 9240 | |
1ef0423a | 9241 | if test "x$enable_pie" == xyes; then : |
8730f377 | 9242 | |
97859b9d JS |
9243 | PIECFLAGS='-fPIE' |
9244 | PIECXXFLAGS='-fPIE' | |
9245 | PIELDFLAGS='-pie -Wl,-z,relro -Wl,-z,now' | |
8730f377 FCE |
9246 | save_CFLAGS="$CFLAGS" |
9247 | save_CXXFLAGS="$CXXFLAGS" | |
9248 | save_LDFLAGS="$LDFLAGS" | |
97859b9d JS |
9249 | CFLAGS="$CFLAGS $PIECFLAGS" |
9250 | CXXFLAGS="$CXXFLAGS $PIECXXFLAGS" | |
9251 | LDFLAGS="$LDFLAGS $PIELDFLAGS" | |
1ef0423a FCE |
9252 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9253 | /* end confdefs.h. */ | |
8730f377 FCE |
9254 | void main () {} |
9255 | _ACEOF | |
1ef0423a | 9256 | if ac_fn_c_try_link "$LINENO"; then : |
818ba2bc | 9257 | |
1ef0423a | 9258 | { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc pie et al." >&5 |
0710d850 | 9259 | $as_echo "$as_me: Compiling with gcc pie et al." >&6;} |
8730f377 FCE |
9260 | |
9261 | else | |
8730f377 | 9262 | |
1ef0423a | 9263 | { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -pie et al." >&5 |
0710d850 | 9264 | $as_echo "$as_me: Compiler does not support -pie et al." >&6;} |
5574ef2c | 9265 | PIECFLAGS="" |
5574ef2c | 9266 | PIECXXFLAGS="" |
8730f377 | 9267 | PIELDFLAGS="" |
97859b9d | 9268 | |
8730f377 | 9269 | fi |
1ef0423a FCE |
9270 | rm -f core conftest.err conftest.$ac_objext \ |
9271 | conftest$ac_exeext conftest.$ac_ext | |
97859b9d JS |
9272 | CFLAGS="$save_CFLAGS" |
9273 | CXXFLAGS="$save_CXXFLAGS" | |
9274 | LDFLAGS="$save_LDFLAGS" | |
9275 | ||
8730f377 FCE |
9276 | fi |
9277 | ||
9278 | ||
9279 | ||
5574ef2c | 9280 | |
7fbd9d09 | 9281 | # Check whether --enable-sqlite was given. |
1ef0423a | 9282 | if test "${enable_sqlite+set}" = set; then : |
7fbd9d09 | 9283 | enableval=$enable_sqlite; |
9921a199 | 9284 | else |
e8f3c2c2 | 9285 | enable_sqlite=check |
7fbd9d09 FCE |
9286 | fi |
9287 | sqlite3_LIBS= | |
1ef0423a FCE |
9288 | if test "x$enable_sqlite" != xno; then : |
9289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5 | |
0710d850 | 9290 | $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; } |
c3de29bd | 9291 | if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then : |
0710d850 | 9292 | $as_echo_n "(cached) " >&6 |
42feb3c0 WC |
9293 | else |
9294 | ac_check_lib_save_LIBS=$LIBS | |
9295 | LIBS="-lsqlite3 $LIBS" | |
1ef0423a | 9296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42feb3c0 WC |
9297 | /* end confdefs.h. */ |
9298 | ||
7fbd9d09 FCE |
9299 | /* Override any GCC internal prototype to avoid an error. |
9300 | Use char because int might match the return type of a GCC | |
9301 | builtin and then its argument prototype would still apply. */ | |
42feb3c0 WC |
9302 | #ifdef __cplusplus |
9303 | extern "C" | |
9304 | #endif | |
9305 | char sqlite3_open (); | |
9306 | int | |
9307 | main () | |
9308 | { | |
7fbd9d09 | 9309 | return sqlite3_open (); |
42feb3c0 WC |
9310 | ; |
9311 | return 0; | |
9312 | } | |
9313 | _ACEOF | |
1ef0423a | 9314 | if ac_fn_c_try_link "$LINENO"; then : |
42feb3c0 WC |
9315 | ac_cv_lib_sqlite3_sqlite3_open=yes |
9316 | else | |
1ef0423a | 9317 | ac_cv_lib_sqlite3_sqlite3_open=no |
42feb3c0 | 9318 | fi |
1ef0423a FCE |
9319 | rm -f core conftest.err conftest.$ac_objext \ |
9320 | conftest$ac_exeext conftest.$ac_ext | |
42feb3c0 WC |
9321 | LIBS=$ac_check_lib_save_LIBS |
9322 | fi | |
1ef0423a | 9323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5 |
0710d850 | 9324 | $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; } |
c3de29bd | 9325 | if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then : |
9921a199 | 9326 | sqlite3_LIBS=-lsqlite3 |
42feb3c0 | 9327 | |
0d563e60 | 9328 | |
1ef0423a | 9329 | $as_echo "#define HAVE_LIBSQLITE3 1" >>confdefs.h |
07606685 | 9330 | |
9921a199 DS |
9331 | else |
9332 | if test "x$enable_sqlite" != xcheck; then | |
1ef0423a | 9333 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
0710d850 | 9334 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
5d4aa1f5 FCE |
9335 | as_fn_error $? "--enable-sqlite was given, but test for sqlite failed |
9336 | See \`config.log' for more details" "$LINENO" 5; } | |
9921a199 | 9337 | fi |
42feb3c0 WC |
9338 | fi |
9339 | ||
9921a199 | 9340 | fi |
44f75386 | 9341 | |
6d14a4a9 | 9342 | # Check whether --enable-translator was given. |
1ef0423a | 9343 | if test "${enable_translator+set}" = set; then : |
6d14a4a9 EB |
9344 | enableval=$enable_translator; |
9345 | else | |
9346 | enable_translator="yes" | |
9347 | fi | |
9348 | ||
9349 | if test "$enable_translator" == "yes"; then | |
9350 | BUILD_TRANSLATOR_TRUE= | |
9351 | BUILD_TRANSLATOR_FALSE='#' | |
9352 | else | |
9353 | BUILD_TRANSLATOR_TRUE='#' | |
9354 | BUILD_TRANSLATOR_FALSE= | |
9355 | fi | |
9356 | ||
9357 | ||
7fbd9d09 | 9358 | # Check whether --enable-crash was given. |
1ef0423a | 9359 | if test "${enable_crash+set}" = set; then : |
7fbd9d09 | 9360 | enableval=$enable_crash; if test "$enable_crash" != "no"; then |
564eb0a8 DS |
9361 | save_CPPFLAGS="$CPPFLAGS" |
9362 | if test "$enable_crash" != "yes"; then | |
9363 | staplog_CPPFLAGS=-I$enable_crash | |
4a3c19da | 9364 | CPPFLAGS="${staplog_CPPFLAGS} $CPPFLAGS" |
35a04c8e | 9365 | |
412e1bf7 | 9366 | fi |
1ef0423a FCE |
9367 | for ac_header in crash/defs.h |
9368 | do : | |
9369 | ac_fn_c_check_header_compile "$LINENO" "crash/defs.h" "ac_cv_header_crash_defs_h" " | |
9370 | #define NR_CPUS 256 | |
5e5aee9f | 9371 | |
1ef0423a | 9372 | " |
c3de29bd | 9373 | if test "x$ac_cv_header_crash_defs_h" = xyes; then : |
1ef0423a FCE |
9374 | cat >>confdefs.h <<_ACEOF |
9375 | #define HAVE_CRASH_DEFS_H 1 | |
5e5aee9f | 9376 | _ACEOF |
5e5aee9f | 9377 | |
1ef0423a | 9378 | else |
5d4aa1f5 | 9379 | as_fn_error $? "cannot find required crash header (crash-devel may need to be installed)" "$LINENO" 5 |
1ef0423a | 9380 | fi |
7fbd9d09 | 9381 | |
1ef0423a | 9382 | done |
5e5aee9f | 9383 | |
1ef0423a FCE |
9384 | CPPFLAGS="$save_CPPFLAGS" |
9385 | fi | |
5e5aee9f | 9386 | else |
1ef0423a | 9387 | enable_crash="no" |
7fbd9d09 | 9388 | fi |
564eb0a8 | 9389 | |
7fbd9d09 | 9390 | if test "$enable_crash" != "no"; then |
35a04c8e FCE |
9391 | BUILD_CRASHMOD_TRUE= |
9392 | BUILD_CRASHMOD_FALSE='#' | |
9393 | else | |
9394 | BUILD_CRASHMOD_TRUE='#' | |
9395 | BUILD_CRASHMOD_FALSE= | |
9396 | fi | |
9397 | ||
9398 | ||
92aff3c7 | 9399 | building_docs="no" |
7fbd9d09 | 9400 | # Check whether --enable-docs was given. |
1ef0423a | 9401 | if test "${enable_docs+set}" = set; then : |
7fbd9d09 | 9402 | enableval=$enable_docs; enable_docs=$enableval |
465e8fbf FCE |
9403 | else |
9404 | enable_docs="check" | |
7fbd9d09 FCE |
9405 | fi |
9406 | ||
71aef8fb LB |
9407 | # Extract the first word of "xvfb-run", so it can be a program name with args. |
9408 | set dummy xvfb-run; ac_word=$2 | |
9409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9410 | $as_echo_n "checking for $ac_word... " >&6; } | |
9411 | if ${ac_cv_prog_have_xvfb+:} false; then : | |
9412 | $as_echo_n "(cached) " >&6 | |
9413 | else | |
9414 | if test -n "$have_xvfb"; then | |
9415 | ac_cv_prog_have_xvfb="$have_xvfb" # Let the user override the test. | |
9416 | else | |
9417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9418 | for as_dir in $PATH | |
9419 | do | |
9420 | IFS=$as_save_IFS | |
9421 | test -z "$as_dir" && as_dir=. | |
9422 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 9423 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
71aef8fb LB |
9424 | ac_cv_prog_have_xvfb="yes" |
9425 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9426 | break 2 | |
9427 | fi | |
9428 | done | |
9429 | done | |
9430 | IFS=$as_save_IFS | |
9431 | ||
9432 | test -z "$ac_cv_prog_have_xvfb" && ac_cv_prog_have_xvfb="no" | |
9433 | fi | |
9434 | fi | |
9435 | have_xvfb=$ac_cv_prog_have_xvfb | |
9436 | if test -n "$have_xvfb"; then | |
9437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xvfb" >&5 | |
9438 | $as_echo "$have_xvfb" >&6; } | |
9439 | else | |
9440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9441 | $as_echo "no" >&6; } | |
9442 | fi | |
9443 | ||
9444 | ||
9445 | if test "$have_xvfb" == "yes"; then | |
9446 | HAVE_XVFB_TRUE= | |
9447 | HAVE_XVFB_FALSE='#' | |
9448 | else | |
9449 | HAVE_XVFB_TRUE='#' | |
9450 | HAVE_XVFB_FALSE= | |
9451 | fi | |
9452 | ||
465e8fbf FCE |
9453 | # Extract the first word of "latex", so it can be a program name with args. |
9454 | set dummy latex; ac_word=$2 | |
1ef0423a | 9455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 9456 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 9457 | if ${ac_cv_prog_have_latex+:} false; then : |
0710d850 | 9458 | $as_echo_n "(cached) " >&6 |
465e8fbf FCE |
9459 | else |
9460 | if test -n "$have_latex"; then | |
9461 | ac_cv_prog_have_latex="$have_latex" # Let the user override the test. | |
9462 | else | |
9463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9464 | for as_dir in $PATH | |
9465 | do | |
9466 | IFS=$as_save_IFS | |
9467 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 9468 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 9469 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
465e8fbf | 9470 | ac_cv_prog_have_latex="yes" |
1ef0423a | 9471 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
465e8fbf FCE |
9472 | break 2 |
9473 | fi | |
9474 | done | |
1ef0423a | 9475 | done |
7fbd9d09 | 9476 | IFS=$as_save_IFS |
465e8fbf FCE |
9477 | |
9478 | test -z "$ac_cv_prog_have_latex" && ac_cv_prog_have_latex="no" | |
9479 | fi | |
9480 | fi | |
9481 | have_latex=$ac_cv_prog_have_latex | |
9482 | if test -n "$have_latex"; then | |
1ef0423a | 9483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_latex" >&5 |
0710d850 | 9484 | $as_echo "$have_latex" >&6; } |
465e8fbf | 9485 | else |
1ef0423a | 9486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 9487 | $as_echo "no" >&6; } |
465e8fbf FCE |
9488 | fi |
9489 | ||
7fbd9d09 | 9490 | |
465e8fbf FCE |
9491 | # Extract the first word of "dvips", so it can be a program name with args. |
9492 | set dummy dvips; ac_word=$2 | |
1ef0423a | 9493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 9494 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 9495 | if ${ac_cv_prog_have_dvips+:} false; then : |
0710d850 | 9496 | $as_echo_n "(cached) " >&6 |
465e8fbf FCE |
9497 | else |
9498 | if test -n "$have_dvips"; then | |
9499 | ac_cv_prog_have_dvips="$have_dvips" # Let the user override the test. | |
9500 | else | |
9501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9502 | for as_dir in $PATH | |
9503 | do | |
9504 | IFS=$as_save_IFS | |
9505 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 9506 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 9507 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
465e8fbf | 9508 | ac_cv_prog_have_dvips="yes" |
1ef0423a | 9509 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
465e8fbf FCE |
9510 | break 2 |
9511 | fi | |
9512 | done | |
1ef0423a | 9513 | done |
7fbd9d09 | 9514 | IFS=$as_save_IFS |
465e8fbf FCE |
9515 | |
9516 | test -z "$ac_cv_prog_have_dvips" && ac_cv_prog_have_dvips="no" | |
9517 | fi | |
9518 | fi | |
9519 | have_dvips=$ac_cv_prog_have_dvips | |
9520 | if test -n "$have_dvips"; then | |
1ef0423a | 9521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dvips" >&5 |
0710d850 | 9522 | $as_echo "$have_dvips" >&6; } |
465e8fbf | 9523 | else |
1ef0423a | 9524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 9525 | $as_echo "no" >&6; } |
465e8fbf FCE |
9526 | fi |
9527 | ||
7fbd9d09 | 9528 | |
465e8fbf FCE |
9529 | # Extract the first word of "ps2pdf", so it can be a program name with args. |
9530 | set dummy ps2pdf; ac_word=$2 | |
1ef0423a | 9531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 9532 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 9533 | if ${ac_cv_prog_have_ps2pdf+:} false; then : |
0710d850 | 9534 | $as_echo_n "(cached) " >&6 |
465e8fbf FCE |
9535 | else |
9536 | if test -n "$have_ps2pdf"; then | |
9537 | ac_cv_prog_have_ps2pdf="$have_ps2pdf" # Let the user override the test. | |
9538 | else | |
9539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9540 | for as_dir in $PATH | |
9541 | do | |
9542 | IFS=$as_save_IFS | |
9543 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 9544 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 9545 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
465e8fbf | 9546 | ac_cv_prog_have_ps2pdf="yes" |
1ef0423a | 9547 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
465e8fbf FCE |
9548 | break 2 |
9549 | fi | |
9550 | done | |
1ef0423a | 9551 | done |
7fbd9d09 | 9552 | IFS=$as_save_IFS |
465e8fbf FCE |
9553 | |
9554 | test -z "$ac_cv_prog_have_ps2pdf" && ac_cv_prog_have_ps2pdf="no" | |
9555 | fi | |
9556 | fi | |
9557 | have_ps2pdf=$ac_cv_prog_have_ps2pdf | |
9558 | if test -n "$have_ps2pdf"; then | |
1ef0423a | 9559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ps2pdf" >&5 |
0710d850 | 9560 | $as_echo "$have_ps2pdf" >&6; } |
465e8fbf | 9561 | else |
1ef0423a | 9562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 9563 | $as_echo "no" >&6; } |
465e8fbf FCE |
9564 | fi |
9565 | ||
7fbd9d09 | 9566 | |
b62c413b EM |
9567 | # Extract the first word of "latex2html", so it can be a program name with args. |
9568 | set dummy latex2html; ac_word=$2 | |
1ef0423a | 9569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 9570 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 9571 | if ${ac_cv_prog_have_latex2html+:} false; then : |
0710d850 | 9572 | $as_echo_n "(cached) " >&6 |
b62c413b EM |
9573 | else |
9574 | if test -n "$have_latex2html"; then | |
9575 | ac_cv_prog_have_latex2html="$have_latex2html" # Let the user override the test. | |
9576 | else | |
9577 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9578 | for as_dir in $PATH | |
9579 | do | |
9580 | IFS=$as_save_IFS | |
9581 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 9582 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 9583 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b62c413b | 9584 | ac_cv_prog_have_latex2html="yes" |
1ef0423a | 9585 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b62c413b EM |
9586 | break 2 |
9587 | fi | |
9588 | done | |
1ef0423a | 9589 | done |
b62c413b EM |
9590 | IFS=$as_save_IFS |
9591 | ||
9592 | test -z "$ac_cv_prog_have_latex2html" && ac_cv_prog_have_latex2html="no" | |
9593 | fi | |
9594 | fi | |
9595 | have_latex2html=$ac_cv_prog_have_latex2html | |
9596 | if test -n "$have_latex2html"; then | |
1ef0423a | 9597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_latex2html" >&5 |
0710d850 | 9598 | $as_echo "$have_latex2html" >&6; } |
b62c413b | 9599 | else |
1ef0423a | 9600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 9601 | $as_echo "no" >&6; } |
b62c413b EM |
9602 | fi |
9603 | ||
9604 | ||
9605 | if test "x${have_latex}${have_dvips}${have_ps2pdf}${have_latex2html}" != "xyesyesyesyes"; then | |
2d4b8ddf | 9606 | if test "$enable_docs" == "yes"; then |
5d4aa1f5 | 9607 | as_fn_error $? "cannot find all tools for building documentation" "$LINENO" 5 |
465e8fbf | 9608 | fi |
2d4b8ddf | 9609 | if test "$enable_docs" == "check"; then |
1ef0423a | 9610 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build documentation, cannot find all tools" >&5 |
0710d850 | 9611 | $as_echo "$as_me: WARNING: will not build documentation, cannot find all tools" >&2;} |
2d4b8ddf | 9612 | fi |
465e8fbf | 9613 | fi |
b62c413b | 9614 | if test "x${have_latex}${have_dvips}${have_ps2pdf}${have_latex2html}" == "xyesyesyesyes" -a "$enable_docs" != "no"; then |
92aff3c7 WC |
9615 | building_docs="yes" |
9616 | fi | |
7fbd9d09 | 9617 | if test "$building_docs" == "yes"; then |
465e8fbf FCE |
9618 | BUILD_DOCS_TRUE= |
9619 | BUILD_DOCS_FALSE='#' | |
9620 | else | |
9621 | BUILD_DOCS_TRUE='#' | |
9622 | BUILD_DOCS_FALSE= | |
9623 | fi | |
9624 | ||
9625 | ||
53ade4da MW |
9626 | building_publican="no" |
9627 | # Check whether --enable-publican was given. | |
1ef0423a | 9628 | if test "${enable_publican+set}" = set; then : |
53ade4da MW |
9629 | enableval=$enable_publican; enable_publican=$enableval |
9630 | else | |
9631 | enable_publican="check" | |
9632 | fi | |
9633 | ||
9634 | if test "$building_docs" == "no" -a "$enable_publican" == "yes" ; then | |
5d4aa1f5 | 9635 | as_fn_error $? "must use --enable-docs with --enable-publican" "$LINENO" 5 |
53ade4da MW |
9636 | fi |
9637 | # Extract the first word of "publican", so it can be a program name with args. | |
9638 | set dummy publican; ac_word=$2 | |
1ef0423a | 9639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
53ade4da | 9640 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 9641 | if ${ac_cv_prog_have_publican+:} false; then : |
53ade4da MW |
9642 | $as_echo_n "(cached) " >&6 |
9643 | else | |
9644 | if test -n "$have_publican"; then | |
9645 | ac_cv_prog_have_publican="$have_publican" # Let the user override the test. | |
9646 | else | |
9647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9648 | for as_dir in $PATH | |
9649 | do | |
9650 | IFS=$as_save_IFS | |
9651 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 9652 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 9653 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
53ade4da | 9654 | ac_cv_prog_have_publican="yes" |
1ef0423a | 9655 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
53ade4da MW |
9656 | break 2 |
9657 | fi | |
9658 | done | |
1ef0423a | 9659 | done |
53ade4da MW |
9660 | IFS=$as_save_IFS |
9661 | ||
9662 | test -z "$ac_cv_prog_have_publican" && ac_cv_prog_have_publican="no" | |
9663 | fi | |
9664 | fi | |
9665 | have_publican=$ac_cv_prog_have_publican | |
9666 | if test -n "$have_publican"; then | |
1ef0423a | 9667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_publican" >&5 |
53ade4da MW |
9668 | $as_echo "$have_publican" >&6; } |
9669 | else | |
1ef0423a | 9670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
53ade4da MW |
9671 | $as_echo "no" >&6; } |
9672 | fi | |
9673 | ||
9674 | ||
9675 | if test "$enable_publican" == "yes"; then | |
9676 | if test "x${have_publican}" != "xyes"; then | |
5d4aa1f5 | 9677 | as_fn_error $? "cannot find publican for building publican guides" "$LINENO" 5 |
53ade4da MW |
9678 | fi |
9679 | fi | |
9680 | if test "x${have_publican}" == "xyes" -a "$enable_publican" != "no" -a "${building_docs}" == "yes"; then | |
9681 | building_publican="yes" | |
9682 | fi | |
9683 | if test "$building_publican" == "yes"; then | |
9684 | BUILD_PUBLICAN_TRUE= | |
9685 | BUILD_PUBLICAN_FALSE='#' | |
9686 | else | |
9687 | BUILD_PUBLICAN_TRUE='#' | |
9688 | BUILD_PUBLICAN_FALSE= | |
9689 | fi | |
9690 | ||
89bc1a6a | 9691 | publican_brand="common" |
53ade4da MW |
9692 | |
9693 | # Check whether --with-publican-brand was given. | |
1ef0423a | 9694 | if test "${with_publican_brand+set}" = set; then : |
53ade4da MW |
9695 | withval=$with_publican_brand; publican_brand=$withval |
9696 | else | |
89bc1a6a | 9697 | publican_brand="common" |
53ade4da MW |
9698 | fi |
9699 | ||
9700 | PUBLICAN_BRAND=$publican_brand | |
9701 | ||
9702 | ||
92aff3c7 | 9703 | building_refdocs="no" |
7fbd9d09 | 9704 | # Check whether --enable-refdocs was given. |
1ef0423a | 9705 | if test "${enable_refdocs+set}" = set; then : |
7fbd9d09 | 9706 | enableval=$enable_refdocs; enable_refdocs=$enableval |
92aff3c7 WC |
9707 | else |
9708 | enable_refdocs="check" | |
7fbd9d09 FCE |
9709 | fi |
9710 | ||
92aff3c7 | 9711 | if test "$building_docs" == "no" -a "$enable_refdocs" == "yes" ; then |
5d4aa1f5 | 9712 | as_fn_error $? "must use --enable-docs with --enable-refdocs" "$LINENO" 5 |
92aff3c7 WC |
9713 | fi |
9714 | # Extract the first word of "xmlto", so it can be a program name with args. | |
9715 | set dummy xmlto; ac_word=$2 | |
1ef0423a | 9716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 9717 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 9718 | if ${ac_cv_prog_have_xmlto+:} false; then : |
0710d850 | 9719 | $as_echo_n "(cached) " >&6 |
92aff3c7 WC |
9720 | else |
9721 | if test -n "$have_xmlto"; then | |
9722 | ac_cv_prog_have_xmlto="$have_xmlto" # Let the user override the test. | |
9723 | else | |
9724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9725 | for as_dir in $PATH | |
9726 | do | |
9727 | IFS=$as_save_IFS | |
9728 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 9729 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 9730 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
92aff3c7 | 9731 | ac_cv_prog_have_xmlto="yes" |
1ef0423a | 9732 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
92aff3c7 WC |
9733 | break 2 |
9734 | fi | |
9735 | done | |
1ef0423a | 9736 | done |
7fbd9d09 | 9737 | IFS=$as_save_IFS |
92aff3c7 WC |
9738 | |
9739 | test -z "$ac_cv_prog_have_xmlto" && ac_cv_prog_have_xmlto="no" | |
9740 | fi | |
9741 | fi | |
9742 | have_xmlto=$ac_cv_prog_have_xmlto | |
9743 | if test -n "$have_xmlto"; then | |
1ef0423a | 9744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xmlto" >&5 |
0710d850 | 9745 | $as_echo "$have_xmlto" >&6; } |
92aff3c7 | 9746 | else |
1ef0423a | 9747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 9748 | $as_echo "no" >&6; } |
92aff3c7 WC |
9749 | fi |
9750 | ||
7fbd9d09 | 9751 | |
ccf8bc85 EM |
9752 | if test "$enable_refdocs" == "yes"; then |
9753 | if test "x${have_xmlto}" != "xyes"; then | |
5d4aa1f5 | 9754 | as_fn_error $? "cannot find xmlto for building reference documentation" "$LINENO" 5 |
ccf8bc85 EM |
9755 | fi |
9756 | fi | |
9757 | if test "x${have_xmlto}" == "xyes" -a "$enable_refdocs" != "no" -a "${building_docs}" == "yes"; then | |
9758 | building_refdocs="yes" | |
9759 | fi | |
9760 | if test "$building_refdocs" == "yes"; then | |
9761 | BUILD_REFDOCS_TRUE= | |
9762 | BUILD_REFDOCS_FALSE='#' | |
9763 | else | |
9764 | BUILD_REFDOCS_TRUE='#' | |
9765 | BUILD_REFDOCS_FALSE= | |
9766 | fi | |
9767 | ||
9768 | ||
327a760e FCE |
9769 | # Extract the first word of "fop", so it can be a program name with args. |
9770 | set dummy fop; ac_word=$2 | |
9771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9772 | $as_echo_n "checking for $ac_word... " >&6; } | |
9773 | if ${ac_cv_prog_have_fop+:} false; then : | |
9774 | $as_echo_n "(cached) " >&6 | |
9775 | else | |
9776 | if test -n "$have_fop"; then | |
9777 | ac_cv_prog_have_fop="$have_fop" # Let the user override the test. | |
9778 | else | |
9779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9780 | for as_dir in $PATH | |
9781 | do | |
9782 | IFS=$as_save_IFS | |
9783 | test -z "$as_dir" && as_dir=. | |
9784 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 9785 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
327a760e FCE |
9786 | ac_cv_prog_have_fop="yes" |
9787 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9788 | break 2 | |
9789 | fi | |
9790 | done | |
9791 | done | |
9792 | IFS=$as_save_IFS | |
9793 | ||
9794 | test -z "$ac_cv_prog_have_fop" && ac_cv_prog_have_fop="no" | |
9795 | fi | |
9796 | fi | |
9797 | have_fop=$ac_cv_prog_have_fop | |
9798 | if test -n "$have_fop"; then | |
9799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fop" >&5 | |
9800 | $as_echo "$have_fop" >&6; } | |
9801 | else | |
9802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9803 | $as_echo "no" >&6; } | |
9804 | fi | |
9805 | ||
9806 | ||
61598deb FCE |
9807 | if test "x${have_fop}" == "xyes"; then |
9808 | # Due to rhbz505364 / 830266, we must actually test-run fop, not just | |
9809 | # hope that it works. | |
434e049c FCE |
9810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if xmlto --with-fop actually works" >&5 |
9811 | $as_echo_n "checking to see if xmlto --with-fop actually works... " >&6; } | |
61598deb | 9812 | if xmlto --with-fop pdf ${srcdir}/doc/SystemTap_Tapset_Reference/dummy-tapsets.xml >/dev/null 2>&1; then |
434e049c FCE |
9813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9814 | $as_echo "yes" >&6; } | |
61598deb | 9815 | else |
434e049c FCE |
9816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: it's dead, Jim" >&5 |
9817 | $as_echo "it's dead, Jim" >&6; } | |
61598deb FCE |
9818 | have_fop="broken" |
9819 | fi | |
75d16f55 | 9820 | rm -f dummy-tapsets.pdf |
61598deb | 9821 | fi |
327a760e FCE |
9822 | if test "$have_fop" == "yes"; then |
9823 | HAVE_FOP_TRUE= | |
9824 | HAVE_FOP_FALSE='#' | |
9825 | else | |
9826 | HAVE_FOP_TRUE='#' | |
9827 | HAVE_FOP_FALSE= | |
9828 | fi | |
9829 | ||
9830 | ||
468abaf4 | 9831 | cat > conftest.xml << 'EOF' |
aa5951be WC |
9832 | <?xml version="1.0" encoding="UTF-8"?> |
9833 | <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" | |
9834 | "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" > | |
468abaf4 FCE |
9835 | <book lang="en"> |
9836 | <bookinfo><title>foo</title></bookinfo> | |
a8fcf687 MW |
9837 | <chapter id="logging.stp"><title>Logging Tapset</title> |
9838 | <refentry id="API-log"><refnamediv><refname>log</refname> | |
9839 | <refpurpose>logging</refpurpose></refnamediv> | |
9840 | <refsect1><title>Description</title> | |
9841 | <para>baz</para></refsect1></refentry></chapter> | |
aa5951be WC |
9842 | </book> |
9843 | EOF | |
468abaf4 FCE |
9844 | |
9845 | if test "x${have_xmlto}" == "xyes"; then | |
1ef0423a | 9846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlto --stringparam support" >&5 |
0710d850 | 9847 | $as_echo_n "checking for xmlto --stringparam support... " >&6; } |
4b5627b1 | 9848 | xmlto --stringparam man.authors.section.enabled=0 html-nochunks conftest.xml >/dev/null 2>&1 |
468abaf4 FCE |
9849 | if test $? == 0; then |
9850 | have_xmlto_stringparam="yes" | |
1ef0423a | 9851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
0710d850 | 9852 | $as_echo "yes" >&6; } |
468abaf4 | 9853 | else |
1ef0423a | 9854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 9855 | $as_echo "no" >&6; } |
468abaf4 | 9856 | fi |
4b5627b1 | 9857 | rm -f conftest.html |
468abaf4 FCE |
9858 | fi |
9859 | if test "$have_xmlto_stringparam" == "yes"; then | |
9860 | XMLTO_STRINGPARAM_TRUE= | |
9861 | XMLTO_STRINGPARAM_FALSE='#' | |
9862 | else | |
9863 | XMLTO_STRINGPARAM_TRUE='#' | |
9864 | XMLTO_STRINGPARAM_FALSE= | |
9865 | fi | |
9866 | ||
9867 | ||
9868 | if test "x${building_refdocs}" == "xyes"; then | |
1ef0423a | 9869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlto pdf support" >&5 |
0710d850 | 9870 | $as_echo_n "checking for xmlto pdf support... " >&6; } |
c639b14d FCE |
9871 | # xmlto pdf may work *only* with --with-fop |
9872 | # XXX: To an extent this test is redundant in that the --with-fop test | |
9873 | # already ran xmlto --with-fop pdf .... | |
9874 | if test "x$have_fop" == "xyes"; then | |
9875 | XMLTOPDF_FOP=--with-fop | |
9876 | else | |
9877 | XMLTOPDF_FOP= | |
9878 | fi | |
9879 | xmlto $XMLTOPDF_FOP pdf conftest.xml >& /dev/null | |
aa5951be WC |
9880 | if test $? == 0; then |
9881 | have_xmlto_pdf="yes" | |
1ef0423a | 9882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
0710d850 | 9883 | $as_echo "yes" >&6; } |
aa5951be | 9884 | else |
1ef0423a | 9885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 9886 | $as_echo "no" >&6; } |
1ef0423a | 9887 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not building reference documentation in PDF format" >&5 |
0710d850 | 9888 | $as_echo "$as_me: WARNING: Not building reference documentation in PDF format" >&2;} |
aa5951be | 9889 | fi |
468abaf4 | 9890 | rm -f conftest.pdf |
aa5951be | 9891 | fi |
a8fcf687 | 9892 | if test "$have_xmlto_pdf" == "yes"; then |
ccf8bc85 EM |
9893 | BUILD_PDFREFDOCS_TRUE= |
9894 | BUILD_PDFREFDOCS_FALSE='#' | |
92aff3c7 | 9895 | else |
ccf8bc85 EM |
9896 | BUILD_PDFREFDOCS_TRUE='#' |
9897 | BUILD_PDFREFDOCS_FALSE= | |
92aff3c7 WC |
9898 | fi |
9899 | ||
9900 | ||
468abaf4 FCE |
9901 | rm -f conftest.xml |
9902 | ||
a0e2728a | 9903 | |
28f121c3 DEP |
9904 | # Check whether --with-nss was given. |
9905 | if test "${with_nss+set}" = set; then : | |
9906 | withval=$with_nss; | |
a0e2728a DB |
9907 | fi |
9908 | ||
9909 | ||
1087b83f TM |
9910 | |
9911 | ||
5d4aa1f5 FCE |
9912 | |
9913 | ||
9914 | ||
9915 | ||
8eef2738 | 9916 | |
1087b83f TM |
9917 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
9918 | if test -n "$ac_tool_prefix"; then | |
9919 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
9920 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
1ef0423a | 9921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 9922 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 9923 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
0710d850 | 9924 | $as_echo_n "(cached) " >&6 |
1087b83f TM |
9925 | else |
9926 | case $PKG_CONFIG in | |
9927 | [\\/]* | ?:[\\/]*) | |
9928 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
9929 | ;; | |
9930 | *) | |
9931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9932 | for as_dir in $PATH | |
9933 | do | |
9934 | IFS=$as_save_IFS | |
9935 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 9936 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 9937 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1087b83f | 9938 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
1ef0423a | 9939 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1087b83f TM |
9940 | break 2 |
9941 | fi | |
9942 | done | |
1ef0423a | 9943 | done |
1087b83f TM |
9944 | IFS=$as_save_IFS |
9945 | ||
9946 | ;; | |
9947 | esac | |
9948 | fi | |
9949 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
9950 | if test -n "$PKG_CONFIG"; then | |
1ef0423a | 9951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
0710d850 | 9952 | $as_echo "$PKG_CONFIG" >&6; } |
1087b83f | 9953 | else |
1ef0423a | 9954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 9955 | $as_echo "no" >&6; } |
1087b83f TM |
9956 | fi |
9957 | ||
9958 | ||
9959 | fi | |
9960 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
9961 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
9962 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
9963 | set dummy pkg-config; ac_word=$2 | |
1ef0423a | 9964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 9965 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 9966 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
0710d850 | 9967 | $as_echo_n "(cached) " >&6 |
1087b83f TM |
9968 | else |
9969 | case $ac_pt_PKG_CONFIG in | |
9970 | [\\/]* | ?:[\\/]*) | |
9971 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
9972 | ;; | |
9973 | *) | |
9974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9975 | for as_dir in $PATH | |
9976 | do | |
9977 | IFS=$as_save_IFS | |
9978 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 9979 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 9980 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1087b83f | 9981 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
1ef0423a | 9982 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1087b83f TM |
9983 | break 2 |
9984 | fi | |
9985 | done | |
1ef0423a | 9986 | done |
1087b83f TM |
9987 | IFS=$as_save_IFS |
9988 | ||
9989 | ;; | |
9990 | esac | |
9991 | fi | |
9992 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
9993 | if test -n "$ac_pt_PKG_CONFIG"; then | |
1ef0423a | 9994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
0710d850 | 9995 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
1087b83f | 9996 | else |
1ef0423a | 9997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 9998 | $as_echo "no" >&6; } |
1087b83f TM |
9999 | fi |
10000 | ||
10001 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
10002 | PKG_CONFIG="" | |
10003 | else | |
10004 | case $cross_compiling:$ac_tool_warned in | |
10005 | yes:) | |
1ef0423a | 10006 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
0710d850 | 10007 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
1087b83f TM |
10008 | ac_tool_warned=yes ;; |
10009 | esac | |
10010 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
10011 | fi | |
10012 | else | |
10013 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
10014 | fi | |
10015 | ||
10016 | fi | |
10017 | if test -n "$PKG_CONFIG"; then | |
10018 | _pkg_min_version=0.9.0 | |
1ef0423a | 10019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
0710d850 | 10020 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
1087b83f | 10021 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
1ef0423a | 10022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
0710d850 | 10023 | $as_echo "yes" >&6; } |
1087b83f | 10024 | else |
1ef0423a | 10025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 10026 | $as_echo "no" >&6; } |
1087b83f TM |
10027 | PKG_CONFIG="" |
10028 | fi | |
1087b83f | 10029 | fi |
28f121c3 DEP |
10030 | if test "x$with_nss" != "xno"; then : |
10031 | ||
10032 | ||
10033 | pkg_failed=no | |
10034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss" >&5 | |
10035 | $as_echo_n "checking for nss... " >&6; } | |
10036 | ||
10037 | if test -n "$nss_CFLAGS"; then | |
10038 | pkg_cv_nss_CFLAGS="$nss_CFLAGS" | |
10039 | elif test -n "$PKG_CONFIG"; then | |
10040 | if test -n "$PKG_CONFIG" && \ | |
10041 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss >= 3\""; } >&5 | |
10042 | ($PKG_CONFIG --exists --print-errors "nss >= 3") 2>&5 | |
10043 | ac_status=$? | |
10044 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10045 | test $ac_status = 0; }; then | |
10046 | pkg_cv_nss_CFLAGS=`$PKG_CONFIG --cflags "nss >= 3" 2>/dev/null` | |
8eef2738 | 10047 | test "x$?" != "x0" && pkg_failed=yes |
28f121c3 DEP |
10048 | else |
10049 | pkg_failed=yes | |
10050 | fi | |
10051 | else | |
10052 | pkg_failed=untried | |
10053 | fi | |
10054 | if test -n "$nss_LIBS"; then | |
10055 | pkg_cv_nss_LIBS="$nss_LIBS" | |
10056 | elif test -n "$PKG_CONFIG"; then | |
10057 | if test -n "$PKG_CONFIG" && \ | |
10058 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss >= 3\""; } >&5 | |
10059 | ($PKG_CONFIG --exists --print-errors "nss >= 3") 2>&5 | |
10060 | ac_status=$? | |
10061 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10062 | test $ac_status = 0; }; then | |
10063 | pkg_cv_nss_LIBS=`$PKG_CONFIG --libs "nss >= 3" 2>/dev/null` | |
8eef2738 | 10064 | test "x$?" != "x0" && pkg_failed=yes |
28f121c3 DEP |
10065 | else |
10066 | pkg_failed=yes | |
10067 | fi | |
10068 | else | |
10069 | pkg_failed=untried | |
10070 | fi | |
10071 | ||
10072 | ||
10073 | ||
10074 | if test $pkg_failed = yes; then | |
10075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10076 | $as_echo "no" >&6; } | |
10077 | ||
10078 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10079 | _pkg_short_errors_supported=yes | |
10080 | else | |
10081 | _pkg_short_errors_supported=no | |
10082 | fi | |
10083 | if test $_pkg_short_errors_supported = yes; then | |
8eef2738 | 10084 | nss_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss >= 3" 2>&1` |
28f121c3 | 10085 | else |
8eef2738 | 10086 | nss_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss >= 3" 2>&1` |
28f121c3 DEP |
10087 | fi |
10088 | # Put the nasty error message in config.log where it belongs | |
10089 | echo "$nss_PKG_ERRORS" >&5 | |
10090 | ||
10091 | have_nss=no | |
10092 | elif test $pkg_failed = untried; then | |
10093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10094 | $as_echo "no" >&6; } | |
10095 | have_nss=no | |
10096 | else | |
10097 | nss_CFLAGS=$pkg_cv_nss_CFLAGS | |
10098 | nss_LIBS=$pkg_cv_nss_LIBS | |
10099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10100 | $as_echo "yes" >&6; } | |
10101 | have_nss=yes | |
10102 | ||
10103 | $as_echo "#define HAVE_NSS 1" >>confdefs.h | |
10104 | ||
10105 | ||
10106 | fi | |
10107 | ||
10108 | else | |
10109 | have_nss=no | |
10110 | fi | |
10111 | ||
10112 | if test "${have_nss}" = "yes"; then | |
10113 | HAVE_NSS_TRUE= | |
10114 | HAVE_NSS_FALSE='#' | |
10115 | else | |
10116 | HAVE_NSS_TRUE='#' | |
10117 | HAVE_NSS_FALSE= | |
10118 | fi | |
10119 | ||
10120 | ||
10121 | # Check whether --enable-server was given. | |
10122 | if test "${enable_server+set}" = set; then : | |
10123 | enableval=$enable_server; enable_server=$enableval | |
10124 | else | |
10125 | enable_server="check" | |
10126 | fi | |
10127 | ||
10128 | ||
10129 | if test "$enable_server" != "no"; then | |
10130 | if test "x${have_nss}" != "xyes"; then | |
10131 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap compile server, cannot find nss headers" >&5 | |
10132 | $as_echo "$as_me: WARNING: will not build systemtap compile server, cannot find nss headers" >&2;} | |
10133 | fi | |
10134 | fi | |
10135 | if test "${have_nss}" == "yes" -a "$enable_server" != "no"; then | |
10136 | BUILD_SERVER_TRUE= | |
10137 | BUILD_SERVER_FALSE='#' | |
10138 | else | |
10139 | BUILD_SERVER_TRUE='#' | |
10140 | BUILD_SERVER_FALSE= | |
10141 | fi | |
10142 | ||
10143 | ||
10144 | if test "${have_nss}" != "yes"; then | |
c4fd15b4 DB |
10145 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compile-server client functionality will be disabled, cannot find nss development files" >&5 |
10146 | $as_echo "$as_me: WARNING: compile-server client functionality will be disabled, cannot find nss development files" >&2;} | |
28f121c3 DEP |
10147 | fi |
10148 | ||
10149 | ||
10150 | # Check whether --with-avahi was given. | |
10151 | if test "${with_avahi+set}" = set; then : | |
10152 | withval=$with_avahi; | |
10153 | fi | |
10154 | ||
10155 | ||
10156 | if test "x$with_avahi" != "xno"; then : | |
10157 | ||
10158 | ||
10159 | pkg_failed=no | |
10160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi" >&5 | |
10161 | $as_echo_n "checking for avahi... " >&6; } | |
10162 | ||
10163 | if test -n "$avahi_CFLAGS"; then | |
10164 | pkg_cv_avahi_CFLAGS="$avahi_CFLAGS" | |
10165 | elif test -n "$PKG_CONFIG"; then | |
10166 | if test -n "$PKG_CONFIG" && \ | |
10167 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5 | |
10168 | ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5 | |
10169 | ac_status=$? | |
10170 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10171 | test $ac_status = 0; }; then | |
10172 | pkg_cv_avahi_CFLAGS=`$PKG_CONFIG --cflags "avahi-client" 2>/dev/null` | |
8eef2738 | 10173 | test "x$?" != "x0" && pkg_failed=yes |
28f121c3 DEP |
10174 | else |
10175 | pkg_failed=yes | |
10176 | fi | |
10177 | else | |
10178 | pkg_failed=untried | |
10179 | fi | |
10180 | if test -n "$avahi_LIBS"; then | |
10181 | pkg_cv_avahi_LIBS="$avahi_LIBS" | |
10182 | elif test -n "$PKG_CONFIG"; then | |
10183 | if test -n "$PKG_CONFIG" && \ | |
10184 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5 | |
10185 | ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5 | |
10186 | ac_status=$? | |
10187 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10188 | test $ac_status = 0; }; then | |
10189 | pkg_cv_avahi_LIBS=`$PKG_CONFIG --libs "avahi-client" 2>/dev/null` | |
8eef2738 | 10190 | test "x$?" != "x0" && pkg_failed=yes |
28f121c3 DEP |
10191 | else |
10192 | pkg_failed=yes | |
10193 | fi | |
10194 | else | |
10195 | pkg_failed=untried | |
10196 | fi | |
10197 | ||
10198 | ||
10199 | ||
10200 | if test $pkg_failed = yes; then | |
10201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10202 | $as_echo "no" >&6; } | |
10203 | ||
10204 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10205 | _pkg_short_errors_supported=yes | |
10206 | else | |
10207 | _pkg_short_errors_supported=no | |
10208 | fi | |
10209 | if test $_pkg_short_errors_supported = yes; then | |
8eef2738 | 10210 | avahi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client" 2>&1` |
28f121c3 | 10211 | else |
8eef2738 | 10212 | avahi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client" 2>&1` |
28f121c3 DEP |
10213 | fi |
10214 | # Put the nasty error message in config.log where it belongs | |
10215 | echo "$avahi_PKG_ERRORS" >&5 | |
10216 | ||
10217 | have_avahi=no | |
10218 | elif test $pkg_failed = untried; then | |
10219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10220 | $as_echo "no" >&6; } | |
10221 | have_avahi=no | |
10222 | else | |
10223 | avahi_CFLAGS=$pkg_cv_avahi_CFLAGS | |
10224 | avahi_LIBS=$pkg_cv_avahi_LIBS | |
10225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10226 | $as_echo "yes" >&6; } | |
10227 | have_avahi=yes | |
10228 | ||
10229 | $as_echo "#define HAVE_AVAHI 1" >>confdefs.h | |
10230 | ||
10231 | ||
10232 | fi | |
10233 | ||
10234 | else | |
10235 | have_avahi=no | |
10236 | fi | |
10237 | ||
10238 | if test "${have_avahi}" = "yes"; then | |
10239 | HAVE_AVAHI_TRUE= | |
10240 | HAVE_AVAHI_FALSE='#' | |
10241 | else | |
10242 | HAVE_AVAHI_TRUE='#' | |
10243 | HAVE_AVAHI_FALSE= | |
10244 | fi | |
10245 | ||
10246 | ||
10247 | if test "${have_avahi}" != "yes"; then | |
10248 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some compile-server functionality will be restricted, cannot find avahi development files" >&5 | |
10249 | $as_echo "$as_me: WARNING: some compile-server functionality will be restricted, cannot find avahi development files" >&2;} | |
10250 | fi | |
10251 | ||
1087b83f | 10252 | |
2ed04863 WC |
10253 | |
10254 | # Check whether --with-rpm was given. | |
1ef0423a | 10255 | if test "${with_rpm+set}" = set; then : |
2ed04863 WC |
10256 | withval=$with_rpm; |
10257 | else | |
10258 | with_rpm="auto" | |
10259 | fi | |
10260 | ||
bcfa72ed | 10261 | if test "$with_rpm" != "no"; then |
1ef0423a | 10262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmtsInitIterator in -lrpm" >&5 |
bcfa72ed | 10263 | $as_echo_n "checking for rpmtsInitIterator in -lrpm... " >&6; } |
c3de29bd | 10264 | if ${ac_cv_lib_rpm_rpmtsInitIterator+:} false; then : |
bcfa72ed | 10265 | $as_echo_n "(cached) " >&6 |
e6364d79 | 10266 | else |
bcfa72ed FCE |
10267 | ac_check_lib_save_LIBS=$LIBS |
10268 | LIBS="-lrpm $LIBS" | |
1ef0423a | 10269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2ed04863 WC |
10270 | /* end confdefs.h. */ |
10271 | ||
bcfa72ed FCE |
10272 | /* Override any GCC internal prototype to avoid an error. |
10273 | Use char because int might match the return type of a GCC | |
10274 | builtin and then its argument prototype would still apply. */ | |
10275 | #ifdef __cplusplus | |
10276 | extern "C" | |
10277 | #endif | |
10278 | char rpmtsInitIterator (); | |
2ed04863 WC |
10279 | int |
10280 | main () | |
10281 | { | |
bcfa72ed | 10282 | return rpmtsInitIterator (); |
2ed04863 WC |
10283 | ; |
10284 | return 0; | |
10285 | } | |
10286 | _ACEOF | |
1ef0423a | 10287 | if ac_fn_c_try_link "$LINENO"; then : |
5e5aee9f FCE |
10288 | ac_cv_lib_rpm_rpmtsInitIterator=yes |
10289 | else | |
1ef0423a | 10290 | ac_cv_lib_rpm_rpmtsInitIterator=no |
5e5aee9f | 10291 | fi |
1ef0423a FCE |
10292 | rm -f core conftest.err conftest.$ac_objext \ |
10293 | conftest$ac_exeext conftest.$ac_ext | |
5e5aee9f FCE |
10294 | LIBS=$ac_check_lib_save_LIBS |
10295 | fi | |
1ef0423a | 10296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpm_rpmtsInitIterator" >&5 |
5e5aee9f | 10297 | $as_echo "$ac_cv_lib_rpm_rpmtsInitIterator" >&6; } |
c3de29bd | 10298 | if test "x$ac_cv_lib_rpm_rpmtsInitIterator" = xyes; then : |
5e5aee9f | 10299 | |
12c1a007 | 10300 | |
1ef0423a | 10301 | $as_echo "#define HAVE_LIBRPM 1" >>confdefs.h |
12c1a007 | 10302 | |
f02c2e47 | 10303 | stap_LIBS="$stap_LIBS -lc -lrpm" |
12c1a007 | 10304 | have_librpm="yes" |
7f9ad862 SC |
10305 | else |
10306 | have_librpm="no" | |
2ed04863 | 10307 | fi |
e6364d79 | 10308 | |
44edbcd6 JS |
10309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmFreeCrypto in -lrpmio" >&5 |
10310 | $as_echo_n "checking for rpmFreeCrypto in -lrpmio... " >&6; } | |
c3de29bd | 10311 | if ${ac_cv_lib_rpmio_rpmFreeCrypto+:} false; then : |
44edbcd6 JS |
10312 | $as_echo_n "(cached) " >&6 |
10313 | else | |
10314 | ac_check_lib_save_LIBS=$LIBS | |
10315 | LIBS="-lrpmio $LIBS" | |
10316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10317 | /* end confdefs.h. */ | |
10318 | ||
10319 | /* Override any GCC internal prototype to avoid an error. | |
10320 | Use char because int might match the return type of a GCC | |
10321 | builtin and then its argument prototype would still apply. */ | |
10322 | #ifdef __cplusplus | |
10323 | extern "C" | |
10324 | #endif | |
10325 | char rpmFreeCrypto (); | |
10326 | int | |
10327 | main () | |
10328 | { | |
10329 | return rpmFreeCrypto (); | |
10330 | ; | |
10331 | return 0; | |
10332 | } | |
10333 | _ACEOF | |
10334 | if ac_fn_c_try_link "$LINENO"; then : | |
10335 | ac_cv_lib_rpmio_rpmFreeCrypto=yes | |
10336 | else | |
10337 | ac_cv_lib_rpmio_rpmFreeCrypto=no | |
10338 | fi | |
10339 | rm -f core conftest.err conftest.$ac_objext \ | |
10340 | conftest$ac_exeext conftest.$ac_ext | |
10341 | LIBS=$ac_check_lib_save_LIBS | |
10342 | fi | |
10343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpmio_rpmFreeCrypto" >&5 | |
10344 | $as_echo "$ac_cv_lib_rpmio_rpmFreeCrypto" >&6; } | |
c3de29bd | 10345 | if test "x$ac_cv_lib_rpmio_rpmFreeCrypto" = xyes; then : |
44edbcd6 JS |
10346 | |
10347 | ||
10348 | $as_echo "#define HAVE_LIBRPMIO 1" >>confdefs.h | |
10349 | ||
f02c2e47 | 10350 | stap_LIBS="$stap_LIBS -lc -lrpmio" |
44edbcd6 JS |
10351 | have_librpmio="yes" |
10352 | else | |
10353 | have_librpmio="no" | |
10354 | fi | |
10355 | ||
bcfa72ed | 10356 | if test "x$have_librpm" != "xyes" -a "$with_rpm" == "yes"; then |
5d4aa1f5 | 10357 | as_fn_error $? "cannot find librpm" "$LINENO" 5 |
2ed04863 | 10358 | fi |
44edbcd6 JS |
10359 | if test "x$have_librpmio" != "xyes" -a "$with_rpm" == "yes"; then |
10360 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find librpmio" >&5 | |
10361 | $as_echo "$as_me: WARNING: cannot find librpmio" >&2;} | |
10362 | fi | |
2ed04863 WC |
10363 | fi |
10364 | ||
10365 | ||
e8f3c2c2 DS |
10366 | build_elfutils=no |
10367 | ||
7fbd9d09 | 10368 | # Check whether --with-elfutils was given. |
1ef0423a | 10369 | if test "${with_elfutils+set}" = set; then : |
7fbd9d09 | 10370 | withval=$with_elfutils; |
e8f3c2c2 | 10371 | case "$with_elfutils" in |
5d4aa1f5 | 10372 | yes) as_fn_error $? "--with-elfutils requires an argument" "$LINENO" 5 ;; |
e8f3c2c2 DS |
10373 | ''|no) ;; |
10374 | *) build_elfutils=yes ;; | |
10375 | esac | |
7fbd9d09 | 10376 | fi |
e8f3c2c2 | 10377 | |
7fbd9d09 | 10378 | if test $build_elfutils = yes; then |
e8f3c2c2 DS |
10379 | BUILD_ELFUTILS_TRUE= |
10380 | BUILD_ELFUTILS_FALSE='#' | |
10381 | else | |
10382 | BUILD_ELFUTILS_TRUE='#' | |
10383 | BUILD_ELFUTILS_FALSE= | |
10384 | fi | |
10385 | ||
1ef0423a | 10386 | elfutils_abs_srcdir=`if test $build_elfutils = yes; then : |
e8f3c2c2 | 10387 | cd $with_elfutils && pwd |
1ef0423a | 10388 | fi` |
e8f3c2c2 DS |
10389 | |
10390 | ||
efa6ba96 PP |
10391 | if test $enable_translator = yes; then |
10392 | if test $build_elfutils = no; then | |
10393 | # Need libdwfl-capable recent elfutils http://elfutils.fedorahosted.org/ | |
c14263d8 FCE |
10394 | |
10395 | # On modern debian/ubuntu, libebl has been merged into libdw | |
10396 | # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=457543 | |
10397 | save_LIBS="$LIBS" | |
10398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ebl_get_elfmachine in -lebl" >&5 | |
10399 | $as_echo_n "checking for ebl_get_elfmachine in -lebl... " >&6; } | |
c3de29bd | 10400 | if ${ac_cv_lib_ebl_ebl_get_elfmachine+:} false; then : |
c14263d8 FCE |
10401 | $as_echo_n "(cached) " >&6 |
10402 | else | |
10403 | ac_check_lib_save_LIBS=$LIBS | |
10404 | LIBS="-lebl $LIBS" | |
10405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10406 | /* end confdefs.h. */ | |
10407 | ||
10408 | /* Override any GCC internal prototype to avoid an error. | |
10409 | Use char because int might match the return type of a GCC | |
10410 | builtin and then its argument prototype would still apply. */ | |
10411 | #ifdef __cplusplus | |
10412 | extern "C" | |
10413 | #endif | |
10414 | char ebl_get_elfmachine (); | |
10415 | int | |
10416 | main () | |
10417 | { | |
10418 | return ebl_get_elfmachine (); | |
10419 | ; | |
10420 | return 0; | |
10421 | } | |
10422 | _ACEOF | |
10423 | if ac_fn_c_try_link "$LINENO"; then : | |
10424 | ac_cv_lib_ebl_ebl_get_elfmachine=yes | |
10425 | else | |
10426 | ac_cv_lib_ebl_ebl_get_elfmachine=no | |
10427 | fi | |
10428 | rm -f core conftest.err conftest.$ac_objext \ | |
10429 | conftest$ac_exeext conftest.$ac_ext | |
10430 | LIBS=$ac_check_lib_save_LIBS | |
10431 | fi | |
10432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ebl_ebl_get_elfmachine" >&5 | |
10433 | $as_echo "$ac_cv_lib_ebl_ebl_get_elfmachine" >&6; } | |
c3de29bd | 10434 | if test "x$ac_cv_lib_ebl_ebl_get_elfmachine" = xyes; then : |
c14263d8 FCE |
10435 | ebl_LIBS=-lebl |
10436 | else | |
10437 | ebl_LIBS= | |
10438 | fi | |
10439 | ||
10440 | LIBS="$save_LIBS" | |
10441 | ||
efa6ba96 | 10442 | save_LIBS="$LIBS" |
1ef0423a | 10443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dwfl_module_getsym in -ldw" >&5 |
0710d850 | 10444 | $as_echo_n "checking for dwfl_module_getsym in -ldw... " >&6; } |
c3de29bd | 10445 | if ${ac_cv_lib_dw_dwfl_module_getsym+:} false; then : |
0710d850 | 10446 | $as_echo_n "(cached) " >&6 |
4645fadb JS |
10447 | else |
10448 | ac_check_lib_save_LIBS=$LIBS | |
c14263d8 | 10449 | LIBS="-ldw -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf $LIBS" |
1ef0423a | 10450 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4645fadb JS |
10451 | /* end confdefs.h. */ |
10452 | ||
7fbd9d09 FCE |
10453 | /* Override any GCC internal prototype to avoid an error. |
10454 | Use char because int might match the return type of a GCC | |
10455 | builtin and then its argument prototype would still apply. */ | |
4645fadb JS |
10456 | #ifdef __cplusplus |
10457 | extern "C" | |
10458 | #endif | |
10459 | char dwfl_module_getsym (); | |
10460 | int | |
10461 | main () | |
10462 | { | |
7fbd9d09 | 10463 | return dwfl_module_getsym (); |
4645fadb JS |
10464 | ; |
10465 | return 0; | |
10466 | } | |
10467 | _ACEOF | |
1ef0423a | 10468 | if ac_fn_c_try_link "$LINENO"; then : |
4645fadb JS |
10469 | ac_cv_lib_dw_dwfl_module_getsym=yes |
10470 | else | |
1ef0423a | 10471 | ac_cv_lib_dw_dwfl_module_getsym=no |
4645fadb | 10472 | fi |
1ef0423a FCE |
10473 | rm -f core conftest.err conftest.$ac_objext \ |
10474 | conftest$ac_exeext conftest.$ac_ext | |
4645fadb JS |
10475 | LIBS=$ac_check_lib_save_LIBS |
10476 | fi | |
1ef0423a | 10477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwfl_module_getsym" >&5 |
0710d850 | 10478 | $as_echo "$ac_cv_lib_dw_dwfl_module_getsym" >&6; } |
c3de29bd | 10479 | if test "x$ac_cv_lib_dw_dwfl_module_getsym" = xyes; then : |
4645fadb JS |
10480 | cat >>confdefs.h <<_ACEOF |
10481 | #define HAVE_LIBDW 1 | |
10482 | _ACEOF | |
10483 | ||
10484 | LIBS="-ldw $LIBS" | |
10485 | ||
10486 | else | |
10487 | ||
5d4aa1f5 | 10488 | as_fn_error $? "missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" "$LINENO" 5 |
4645fadb JS |
10489 | fi |
10490 | ||
2a885a4a MW |
10491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dwarf_next_unit in -ldw" >&5 |
10492 | $as_echo_n "checking for dwarf_next_unit in -ldw... " >&6; } | |
10493 | if ${ac_cv_lib_dw_dwarf_next_unit+:} false; then : | |
0710d850 | 10494 | $as_echo_n "(cached) " >&6 |
87cb1275 MW |
10495 | else |
10496 | ac_check_lib_save_LIBS=$LIBS | |
c14263d8 | 10497 | LIBS="-ldw -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf $LIBS" |
1ef0423a | 10498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
87cb1275 MW |
10499 | /* end confdefs.h. */ |
10500 | ||
7fbd9d09 FCE |
10501 | /* Override any GCC internal prototype to avoid an error. |
10502 | Use char because int might match the return type of a GCC | |
10503 | builtin and then its argument prototype would still apply. */ | |
87cb1275 MW |
10504 | #ifdef __cplusplus |
10505 | extern "C" | |
10506 | #endif | |
2a885a4a | 10507 | char dwarf_next_unit (); |
87cb1275 MW |
10508 | int |
10509 | main () | |
10510 | { | |
2a885a4a | 10511 | return dwarf_next_unit (); |
87cb1275 MW |
10512 | ; |
10513 | return 0; | |
10514 | } | |
10515 | _ACEOF | |
1ef0423a | 10516 | if ac_fn_c_try_link "$LINENO"; then : |
2a885a4a | 10517 | ac_cv_lib_dw_dwarf_next_unit=yes |
87cb1275 | 10518 | else |
2a885a4a | 10519 | ac_cv_lib_dw_dwarf_next_unit=no |
87cb1275 | 10520 | fi |
1ef0423a FCE |
10521 | rm -f core conftest.err conftest.$ac_objext \ |
10522 | conftest$ac_exeext conftest.$ac_ext | |
87cb1275 MW |
10523 | LIBS=$ac_check_lib_save_LIBS |
10524 | fi | |
2a885a4a MW |
10525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwarf_next_unit" >&5 |
10526 | $as_echo "$ac_cv_lib_dw_dwarf_next_unit" >&6; } | |
10527 | if test "x$ac_cv_lib_dw_dwarf_next_unit" = xyes; then : | |
87cb1275 MW |
10528 | cat >>confdefs.h <<_ACEOF |
10529 | #define HAVE_LIBDW 1 | |
10530 | _ACEOF | |
10531 | ||
10532 | LIBS="-ldw $LIBS" | |
10533 | ||
10534 | else | |
10535 | ||
2a885a4a | 10536 | as_fn_error $? "elfutils, libdw too old, need 0.148+" "$LINENO" 5 |
87cb1275 MW |
10537 | fi |
10538 | ||
c14263d8 | 10539 | stap_LIBS="$stap_LIBS -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf" |
efa6ba96 PP |
10540 | LIBS="$save_LIBS" |
10541 | else | |
10542 | # We built our own and stap_LDFLAGS points at the install. | |
12c1a007 | 10543 | stap_LIBS="$stap_LIBS -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf" |
efa6ba96 | 10544 | fi |
4645fadb JS |
10545 | fi |
10546 | ||
6b1a0274 | 10547 | |
1ef0423a | 10548 | { $as_echo "$as_me:${as_lineno-$LINENO}: stap will link $stap_LIBS" >&5 |
0710d850 | 10549 | $as_echo "$as_me: stap will link $stap_LIBS" >&6;} |
c3a3c0c9 | 10550 | |
97859b9d JS |
10551 | # staprun has more modest libelf needs |
10552 | if test $build_elfutils = no; then | |
97859b9d JS |
10553 | save_LIBS="$LIBS" |
10554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshdrstrndx in -lelf" >&5 | |
10555 | $as_echo_n "checking for elf_getshdrstrndx in -lelf... " >&6; } | |
10556 | if ${ac_cv_lib_elf_elf_getshdrstrndx+:} false; then : | |
10557 | $as_echo_n "(cached) " >&6 | |
10558 | else | |
10559 | ac_check_lib_save_LIBS=$LIBS | |
10560 | LIBS="-lelf $LIBS" | |
10561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10562 | /* end confdefs.h. */ | |
10563 | ||
10564 | /* Override any GCC internal prototype to avoid an error. | |
10565 | Use char because int might match the return type of a GCC | |
10566 | builtin and then its argument prototype would still apply. */ | |
10567 | #ifdef __cplusplus | |
10568 | extern "C" | |
10569 | #endif | |
10570 | char elf_getshdrstrndx (); | |
10571 | int | |
10572 | main () | |
10573 | { | |
10574 | return elf_getshdrstrndx (); | |
10575 | ; | |
10576 | return 0; | |
10577 | } | |
10578 | _ACEOF | |
10579 | if ac_fn_c_try_link "$LINENO"; then : | |
10580 | ac_cv_lib_elf_elf_getshdrstrndx=yes | |
10581 | else | |
10582 | ac_cv_lib_elf_elf_getshdrstrndx=no | |
10583 | fi | |
10584 | rm -f core conftest.err conftest.$ac_objext \ | |
10585 | conftest$ac_exeext conftest.$ac_ext | |
10586 | LIBS=$ac_check_lib_save_LIBS | |
10587 | fi | |
10588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_getshdrstrndx" >&5 | |
10589 | $as_echo "$ac_cv_lib_elf_elf_getshdrstrndx" >&6; } | |
10590 | if test "x$ac_cv_lib_elf_elf_getshdrstrndx" = xyes; then : | |
94eb87d1 DS |
10591 | cat >>confdefs.h <<_ACEOF |
10592 | #define HAVE_LIBELF 1 | |
10593 | _ACEOF | |
97859b9d | 10594 | |
94eb87d1 | 10595 | LIBS="-lelf $LIBS" |
97859b9d | 10596 | |
94eb87d1 | 10597 | else |
97859b9d | 10598 | |
94eb87d1 DS |
10599 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
10600 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
10601 | as_fn_error $? "libelf too old, need 0.142+ | |
10602 | See \`config.log' for more details" "$LINENO" 5; } | |
97859b9d JS |
10603 | fi |
10604 | ||
94eb87d1 | 10605 | staprun_LIBS="$staprun_LIBS -lelf" |
97859b9d JS |
10606 | LIBS="$save_LIBS" |
10607 | else | |
10608 | # We built our own and staprun_LDFLAGS points at the install. | |
10609 | staprun_LIBS="$staprun_LIBS -lelf" | |
10610 | fi | |
10611 | ||
10612 | ||
10613 | { $as_echo "$as_me:${as_lineno-$LINENO}: staprun will link $staprun_LIBS" >&5 | |
10614 | $as_echo "$as_me: staprun will link $staprun_LIBS" >&6;} | |
10615 | ||
cbe7ea07 | 10616 | |
69c68955 FCE |
10617 | date=`date +%Y-%m-%d` |
10618 | ||
10619 | cat >>confdefs.h <<_ACEOF | |
10620 | #define DATE "$date" | |
10621 | _ACEOF | |
10622 | ||
82fab474 | 10623 | DATE="$date" |
69c68955 FCE |
10624 | |
10625 | ||
47f390f9 FCE |
10626 | # Before PR4037, we used to arrange to pass CFLAGS+=-m64 for a staprun |
10627 | # being compiled on 32-bit userspace but running against 64-bit kernels. | |
10628 | # This is no longer necessary. | |
5566993b | 10629 | |
3bf6ac45 | 10630 | # Use tr1/unordered_map if available |
7fbd9d09 | 10631 | ac_ext=cpp |
3bf6ac45 TM |
10632 | ac_cpp='$CXXCPP $CPPFLAGS' |
10633 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10634 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10635 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10636 | ||
62cb4be9 FCE |
10637 | |
10638 | ac_ext=cpp | |
10639 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10640 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10641 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10642 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
10644 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
10645 | if test -z "$CXXCPP"; then | |
10646 | if ${ac_cv_prog_CXXCPP+:} false; then : | |
10647 | $as_echo_n "(cached) " >&6 | |
10648 | else | |
10649 | # Double quotes because CXXCPP needs to be expanded | |
10650 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
10651 | do | |
10652 | ac_preproc_ok=false | |
10653 | for ac_cxx_preproc_warn_flag in '' yes | |
10654 | do | |
10655 | # Use a header file that comes with gcc, so configuring glibc | |
10656 | # with a fresh cross-compiler works. | |
10657 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10658 | # <limits.h> exists even on freestanding compilers. | |
10659 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
10660 | # not just through cpp. "Syntax error" is here to catch this case. | |
10661 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10662 | /* end confdefs.h. */ | |
10663 | #ifdef __STDC__ | |
10664 | # include <limits.h> | |
10665 | #else | |
10666 | # include <assert.h> | |
10667 | #endif | |
10668 | Syntax error | |
10669 | _ACEOF | |
10670 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
10671 | ||
10672 | else | |
10673 | # Broken: fails on valid input. | |
10674 | continue | |
10675 | fi | |
10676 | rm -f conftest.err conftest.i conftest.$ac_ext | |
10677 | ||
10678 | # OK, works on sane cases. Now check whether nonexistent headers | |
10679 | # can be detected and how. | |
10680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10681 | /* end confdefs.h. */ | |
10682 | #include <ac_nonexistent.h> | |
10683 | _ACEOF | |
10684 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
10685 | # Broken: success on invalid input. | |
10686 | continue | |
10687 | else | |
10688 | # Passes both tests. | |
10689 | ac_preproc_ok=: | |
10690 | break | |
10691 | fi | |
10692 | rm -f conftest.err conftest.i conftest.$ac_ext | |
10693 | ||
10694 | done | |
10695 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
10696 | rm -f conftest.i conftest.err conftest.$ac_ext | |
10697 | if $ac_preproc_ok; then : | |
10698 | break | |
10699 | fi | |
10700 | ||
10701 | done | |
10702 | ac_cv_prog_CXXCPP=$CXXCPP | |
10703 | ||
10704 | fi | |
10705 | CXXCPP=$ac_cv_prog_CXXCPP | |
10706 | else | |
10707 | ac_cv_prog_CXXCPP=$CXXCPP | |
10708 | fi | |
10709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
10710 | $as_echo "$CXXCPP" >&6; } | |
10711 | ac_preproc_ok=false | |
10712 | for ac_cxx_preproc_warn_flag in '' yes | |
10713 | do | |
10714 | # Use a header file that comes with gcc, so configuring glibc | |
10715 | # with a fresh cross-compiler works. | |
10716 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10717 | # <limits.h> exists even on freestanding compilers. | |
10718 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
10719 | # not just through cpp. "Syntax error" is here to catch this case. | |
10720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10721 | /* end confdefs.h. */ | |
10722 | #ifdef __STDC__ | |
10723 | # include <limits.h> | |
10724 | #else | |
10725 | # include <assert.h> | |
10726 | #endif | |
10727 | Syntax error | |
10728 | _ACEOF | |
10729 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
10730 | ||
10731 | else | |
10732 | # Broken: fails on valid input. | |
10733 | continue | |
10734 | fi | |
10735 | rm -f conftest.err conftest.i conftest.$ac_ext | |
10736 | ||
10737 | # OK, works on sane cases. Now check whether nonexistent headers | |
10738 | # can be detected and how. | |
10739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10740 | /* end confdefs.h. */ | |
10741 | #include <ac_nonexistent.h> | |
10742 | _ACEOF | |
10743 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
10744 | # Broken: success on invalid input. | |
10745 | continue | |
10746 | else | |
10747 | # Passes both tests. | |
10748 | ac_preproc_ok=: | |
10749 | break | |
10750 | fi | |
10751 | rm -f conftest.err conftest.i conftest.$ac_ext | |
10752 | ||
10753 | done | |
10754 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
10755 | rm -f conftest.i conftest.err conftest.$ac_ext | |
10756 | if $ac_preproc_ok; then : | |
10757 | ||
10758 | else | |
10759 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
10760 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
10761 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check | |
10762 | See \`config.log' for more details" "$LINENO" 5; } | |
10763 | fi | |
10764 | ||
10765 | ac_ext=cpp | |
10766 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10767 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10768 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10769 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10770 | ||
10771 | ||
3bf6ac45 | 10772 | for ac_header in tr1/unordered_map |
1ef0423a FCE |
10773 | do : |
10774 | ac_fn_cxx_check_header_mongrel "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map" "$ac_includes_default" | |
c3de29bd | 10775 | if test "x$ac_cv_header_tr1_unordered_map" = xyes; then : |
1ef0423a FCE |
10776 | cat >>confdefs.h <<_ACEOF |
10777 | #define HAVE_TR1_UNORDERED_MAP 1 | |
5e5aee9f | 10778 | _ACEOF |
5e5aee9f | 10779 | |
5e5aee9f FCE |
10780 | fi |
10781 | ||
1ef0423a | 10782 | done |
5e5aee9f | 10783 | |
1ef0423a FCE |
10784 | for ac_header in tr1/memory |
10785 | do : | |
10786 | ac_fn_cxx_check_header_mongrel "$LINENO" "tr1/memory" "ac_cv_header_tr1_memory" "$ac_includes_default" | |
c3de29bd | 10787 | if test "x$ac_cv_header_tr1_memory" = xyes; then : |
1ef0423a FCE |
10788 | cat >>confdefs.h <<_ACEOF |
10789 | #define HAVE_TR1_MEMORY 1 | |
5e5aee9f | 10790 | _ACEOF |
5e5aee9f | 10791 | |
5e5aee9f FCE |
10792 | fi |
10793 | ||
1ef0423a | 10794 | done |
5e5aee9f | 10795 | |
1ef0423a FCE |
10796 | for ac_header in boost/shared_ptr.hpp |
10797 | do : | |
10798 | ac_fn_cxx_check_header_mongrel "$LINENO" "boost/shared_ptr.hpp" "ac_cv_header_boost_shared_ptr_hpp" "$ac_includes_default" | |
c3de29bd | 10799 | if test "x$ac_cv_header_boost_shared_ptr_hpp" = xyes; then : |
469c1a1b | 10800 | cat >>confdefs.h <<_ACEOF |
1ef0423a | 10801 | #define HAVE_BOOST_SHARED_PTR_HPP 1 |
469c1a1b FCE |
10802 | _ACEOF |
10803 | ||
10804 | fi | |
10805 | ||
10806 | done | |
10807 | ||
1ef0423a FCE |
10808 | ac_ext=c |
10809 | ac_cpp='$CPP $CPPFLAGS' | |
10810 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10811 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10812 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3bf6ac45 TM |
10813 | |
10814 | ||
e016a49a | 10815 | |
138bbe90 | 10816 | # Check for Dyninst headers and libraries |
138bbe90 JS |
10817 | |
10818 | # Check whether --with-dyninst was given. | |
10819 | if test "${with_dyninst+set}" = set; then : | |
10820 | withval=$with_dyninst; | |
eab44db5 FCE |
10821 | fi |
10822 | ||
10823 | ||
138bbe90 | 10824 | case "$with_dyninst" in |
eab44db5 FCE |
10825 | no) ;; |
10826 | ''|yes) # Try a simple-minded distro search | |
ffbe6348 JS |
10827 | DYNINST_CXXFLAGS="-I/usr/include/dyninst" |
10828 | DYNINST_LDFLAGS="-L/usr/lib64/dyninst -L/usr/lib/dyninst" # XXX both lib paths!?! | |
10829 | ;; | |
10830 | *) # Use paths in the user-specified prefix | |
10831 | DYNINST_CXXFLAGS="-I$with_dyninst/include" | |
3aeea85c | 10832 | DYNINST_LDFLAGS="-L$with_dyninst/lib/" # XXX need lib64 too? |
ffbe6348 JS |
10833 | ;; |
10834 | esac | |
e0a17c00 | 10835 | if test "$with_dyninst" != "no"; then |
ffbe6348 | 10836 | ac_ext=cpp |
138bbe90 JS |
10837 | ac_cpp='$CXXCPP $CPPFLAGS' |
10838 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10839 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10840 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10841 | ||
ffbe6348 JS |
10842 | old_CPPFLAGS="$CPPFLAGS" |
10843 | CPPFLAGS="$CPPFLAGS $DYNINST_CXXFLAGS" | |
2494675c DS |
10844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dyninst support" >&5 |
10845 | $as_echo "$as_me: checking dyninst support" >&6;} | |
ffbe6348 | 10846 | for ac_header in BPatch_object.h |
138bbe90 JS |
10847 | do : |
10848 | ac_fn_cxx_check_header_mongrel "$LINENO" "BPatch_object.h" "ac_cv_header_BPatch_object_h" "$ac_includes_default" | |
10849 | if test "x$ac_cv_header_BPatch_object_h" = xyes; then : | |
10850 | cat >>confdefs.h <<_ACEOF | |
10851 | #define HAVE_BPATCH_OBJECT_H 1 | |
10852 | _ACEOF | |
10853 | ||
138bbe90 JS |
10854 | |
10855 | ||
a3524565 JS |
10856 | |
10857 | $as_echo "#define HAVE_DYNINST 1" >>confdefs.h | |
10858 | ||
ffbe6348 | 10859 | have_dyninst=yes |
2494675c DS |
10860 | { $as_echo "$as_me:${as_lineno-$LINENO}: dyninst support available" >&5 |
10861 | $as_echo "$as_me: dyninst support available" >&6;} | |
138bbe90 JS |
10862 | fi |
10863 | ||
10864 | done | |
10865 | ||
e0a17c00 | 10866 | if test -n "$with_dyninst" -a "$have_dyninst" != "yes"; then |
2494675c DS |
10867 | as_fn_error $? "Dyninst does not appear to be usable" "$LINENO" 5 |
10868 | fi | |
ffbe6348 JS |
10869 | CPPFLAGS="$old_CPPFLAGS" |
10870 | ac_ext=c | |
138bbe90 JS |
10871 | ac_cpp='$CPP $CPPFLAGS' |
10872 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10873 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10874 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10875 | ||
ffbe6348 | 10876 | fi |
138bbe90 JS |
10877 | if test "${have_dyninst}" = "yes"; then |
10878 | HAVE_DYNINST_TRUE= | |
10879 | HAVE_DYNINST_FALSE='#' | |
10880 | else | |
10881 | HAVE_DYNINST_TRUE='#' | |
10882 | HAVE_DYNINST_FALSE= | |
10883 | fi | |
10884 | ||
10885 | ||
10886 | ||
42f767d0 JL |
10887 | |
10888 | pkg_failed=no | |
10889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvirt" >&5 | |
10890 | $as_echo_n "checking for libvirt... " >&6; } | |
10891 | ||
10892 | if test -n "$libvirt_CFLAGS"; then | |
10893 | pkg_cv_libvirt_CFLAGS="$libvirt_CFLAGS" | |
10894 | elif test -n "$PKG_CONFIG"; then | |
10895 | if test -n "$PKG_CONFIG" && \ | |
10896 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= 1.0.2\""; } >&5 | |
10897 | ($PKG_CONFIG --exists --print-errors "libvirt >= 1.0.2") 2>&5 | |
10898 | ac_status=$? | |
10899 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10900 | test $ac_status = 0; }; then | |
10901 | pkg_cv_libvirt_CFLAGS=`$PKG_CONFIG --cflags "libvirt >= 1.0.2" 2>/dev/null` | |
10902 | test "x$?" != "x0" && pkg_failed=yes | |
10903 | else | |
10904 | pkg_failed=yes | |
10905 | fi | |
10906 | else | |
10907 | pkg_failed=untried | |
10908 | fi | |
10909 | if test -n "$libvirt_LIBS"; then | |
10910 | pkg_cv_libvirt_LIBS="$libvirt_LIBS" | |
10911 | elif test -n "$PKG_CONFIG"; then | |
10912 | if test -n "$PKG_CONFIG" && \ | |
10913 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= 1.0.2\""; } >&5 | |
10914 | ($PKG_CONFIG --exists --print-errors "libvirt >= 1.0.2") 2>&5 | |
10915 | ac_status=$? | |
10916 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10917 | test $ac_status = 0; }; then | |
10918 | pkg_cv_libvirt_LIBS=`$PKG_CONFIG --libs "libvirt >= 1.0.2" 2>/dev/null` | |
10919 | test "x$?" != "x0" && pkg_failed=yes | |
10920 | else | |
10921 | pkg_failed=yes | |
10922 | fi | |
10923 | else | |
10924 | pkg_failed=untried | |
10925 | fi | |
10926 | ||
10927 | ||
10928 | ||
10929 | if test $pkg_failed = yes; then | |
10930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10931 | $as_echo "no" >&6; } | |
10932 | ||
10933 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10934 | _pkg_short_errors_supported=yes | |
10935 | else | |
10936 | _pkg_short_errors_supported=no | |
10937 | fi | |
10938 | if test $_pkg_short_errors_supported = yes; then | |
10939 | libvirt_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libvirt >= 1.0.2" 2>&1` | |
10940 | else | |
10941 | libvirt_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libvirt >= 1.0.2" 2>&1` | |
10942 | fi | |
10943 | # Put the nasty error message in config.log where it belongs | |
10944 | echo "$libvirt_PKG_ERRORS" >&5 | |
10945 | ||
10946 | have_libvirt=no | |
10947 | elif test $pkg_failed = untried; then | |
10948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10949 | $as_echo "no" >&6; } | |
10950 | have_libvirt=no | |
10951 | else | |
10952 | libvirt_CFLAGS=$pkg_cv_libvirt_CFLAGS | |
10953 | libvirt_LIBS=$pkg_cv_libvirt_LIBS | |
10954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10955 | $as_echo "yes" >&6; } | |
10956 | ||
10957 | have_libvirt=yes | |
10958 | ||
10959 | $as_echo "#define HAVE_LIBVIRT 1" >>confdefs.h | |
10960 | ||
10961 | ||
10962 | fi | |
10963 | if test "${have_libvirt}" = "yes"; then | |
10964 | HAVE_LIBVIRT_TRUE= | |
10965 | HAVE_LIBVIRT_FALSE='#' | |
10966 | else | |
10967 | HAVE_LIBVIRT_TRUE='#' | |
10968 | HAVE_LIBVIRT_FALSE= | |
10969 | fi | |
10970 | ||
10971 | ||
10972 | pkg_failed=no | |
10973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2" >&5 | |
10974 | $as_echo_n "checking for libxml2... " >&6; } | |
10975 | ||
10976 | if test -n "$libxml2_CFLAGS"; then | |
10977 | pkg_cv_libxml2_CFLAGS="$libxml2_CFLAGS" | |
10978 | elif test -n "$PKG_CONFIG"; then | |
10979 | if test -n "$PKG_CONFIG" && \ | |
10980 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5 | |
10981 | ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 | |
10982 | ac_status=$? | |
10983 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10984 | test $ac_status = 0; }; then | |
10985 | pkg_cv_libxml2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null` | |
10986 | test "x$?" != "x0" && pkg_failed=yes | |
10987 | else | |
10988 | pkg_failed=yes | |
10989 | fi | |
10990 | else | |
10991 | pkg_failed=untried | |
10992 | fi | |
10993 | if test -n "$libxml2_LIBS"; then | |
10994 | pkg_cv_libxml2_LIBS="$libxml2_LIBS" | |
10995 | elif test -n "$PKG_CONFIG"; then | |
10996 | if test -n "$PKG_CONFIG" && \ | |
10997 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5 | |
10998 | ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 | |
10999 | ac_status=$? | |
11000 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11001 | test $ac_status = 0; }; then | |
11002 | pkg_cv_libxml2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null` | |
11003 | test "x$?" != "x0" && pkg_failed=yes | |
11004 | else | |
11005 | pkg_failed=yes | |
11006 | fi | |
11007 | else | |
11008 | pkg_failed=untried | |
11009 | fi | |
11010 | ||
11011 | ||
11012 | ||
11013 | if test $pkg_failed = yes; then | |
11014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11015 | $as_echo "no" >&6; } | |
11016 | ||
11017 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11018 | _pkg_short_errors_supported=yes | |
11019 | else | |
11020 | _pkg_short_errors_supported=no | |
11021 | fi | |
11022 | if test $_pkg_short_errors_supported = yes; then | |
11023 | libxml2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1` | |
11024 | else | |
11025 | libxml2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1` | |
11026 | fi | |
11027 | # Put the nasty error message in config.log where it belongs | |
11028 | echo "$libxml2_PKG_ERRORS" >&5 | |
11029 | ||
11030 | have_libxml2=no | |
11031 | elif test $pkg_failed = untried; then | |
11032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11033 | $as_echo "no" >&6; } | |
11034 | have_libxml2=no | |
11035 | else | |
11036 | libxml2_CFLAGS=$pkg_cv_libxml2_CFLAGS | |
11037 | libxml2_LIBS=$pkg_cv_libxml2_LIBS | |
11038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11039 | $as_echo "yes" >&6; } | |
11040 | ||
11041 | have_libxml2=yes | |
11042 | ||
11043 | $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h | |
11044 | ||
11045 | ||
11046 | fi | |
11047 | if test "${have_libxml2}" = "yes"; then | |
11048 | HAVE_LIBXML2_TRUE= | |
11049 | HAVE_LIBXML2_FALSE='#' | |
11050 | else | |
11051 | HAVE_LIBXML2_TRUE='#' | |
11052 | HAVE_LIBXML2_FALSE= | |
11053 | fi | |
11054 | ||
11055 | ||
f9794ee4 RM |
11056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .section \"?\" flags support" >&5 |
11057 | $as_echo_n "checking for assembler .section \"?\" flags support... " >&6; } | |
c3de29bd | 11058 | if ${stap_cv_sectionq+:} false; then : |
f9794ee4 RM |
11059 | $as_echo_n "(cached) " >&6 |
11060 | else | |
11061 | ||
11062 | old_CFLAGS="$CFLAGS" | |
11063 | CFLAGS="$CFLAGS -Wa,--fatal-warnings" | |
11064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11065 | /* end confdefs.h. */ | |
11066 | asm(".section .note.foo,\"?\",\"note\"\n" | |
11067 | ".byte 1, 2, 3\n" | |
11068 | ".previous\n" | |
11069 | ".section .text,\"axG\",\"progbits\",foogroup,comdat\n" | |
11070 | ".byte 1\n" | |
11071 | ".pushsection .note.foo,\"?\",\"note\"\n" | |
11072 | ".byte 4, 5, 6\n" | |
11073 | ".popsection\n" | |
11074 | ".byte 2\n"); | |
11075 | _ACEOF | |
11076 | if ac_fn_c_try_compile "$LINENO"; then : | |
11077 | stap_cv_sectionq=yes | |
11078 | else | |
11079 | stap_cv_sectionq=no | |
11080 | fi | |
11081 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a530cfe0 | 11082 | CFLAGS="$old_CFLAGS" |
f9794ee4 RM |
11083 | fi |
11084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $stap_cv_sectionq" >&5 | |
11085 | $as_echo "$stap_cv_sectionq" >&6; } | |
11086 | ||
11087 | support_section_question=0 | |
11088 | if test $stap_cv_sectionq = yes; then | |
11089 | support_section_question=1 | |
11090 | fi | |
8f223b3e | 11091 | ac_config_files="$ac_config_files includes/sys/sdt-config.h po/Makefile.in" |
f9794ee4 RM |
11092 | |
11093 | ||
efa6ba96 | 11094 | if test $build_elfutils = yes -a $enable_translator = yes; then |
e016a49a FCE |
11095 | case "$with_elfutils" in |
11096 | /*) elfutils_srcdir="$with_elfutils" ;; | |
11097 | *) elfutils_srcdir="../$with_elfutils" ;; | |
11098 | esac | |
1ef0423a | 11099 | { $as_echo "$as_me:${as_lineno-$LINENO}: running ${elfutils_srcdir}/configure" >&5 |
0710d850 | 11100 | $as_echo "$as_me: running ${elfutils_srcdir}/configure" >&6;} |
29b694a7 DS |
11101 | |
11102 | save_CFLAGS="$CFLAGS" | |
11103 | save_CXXFLAGS="$CXXFLAGS" | |
11104 | CXXFLAGS="$CXXFLAGS -fgnu89-inline" | |
11105 | CFLAGS="$CFLAGS -fgnu89-inline" | |
11106 | gnu89_inline_flag="" | |
1ef0423a FCE |
11107 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11108 | /* end confdefs.h. */ | |
29b694a7 DS |
11109 | int something (); |
11110 | _ACEOF | |
1ef0423a | 11111 | if ac_fn_c_try_compile "$LINENO"; then : |
29b694a7 | 11112 | |
1ef0423a | 11113 | { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling elfutils with gcc -fgnu89-inline" >&5 |
0710d850 | 11114 | $as_echo "$as_me: Compiling elfutils with gcc -fgnu89-inline" >&6;} |
29b694a7 DS |
11115 | gnu89_inline_flag="-fgnu89-inline" |
11116 | else | |
5e5aee9f | 11117 | |
1ef0423a | 11118 | { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fgnu89-inline" >&5 |
0710d850 | 11119 | $as_echo "$as_me: Compiler does not support -fgnu89-inline" >&6;} |
29b694a7 | 11120 | fi |
29b694a7 DS |
11121 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11122 | CFLAGS="$save_CFLAGS" | |
11123 | CXXFLAGS="$save_CXXFLAGS" | |
11124 | ||
e016a49a FCE |
11125 | # Our libdw.so's libebl will look in $ORIGIN/../lib/... but that |
11126 | # $ORIGIN is where libdw.so resides, which is not where there is a ../lib. | |
11127 | # Note that $libdir might be using a quoted use of $exec_prefix or $prefix. | |
11128 | # So we must make sure to pass those settings to elfutils configure. | |
11129 | elfutils_rpath="-Wl,--enable-new-dtags,-rpath,${libdir}/${PACKAGE_NAME}" | |
11130 | here=`pwd` | |
33ee059c MW |
11131 | # Check whether this is a source release, or a source checkout. |
11132 | # We need --enable-maintainer-mode if it isn't a source release. | |
11133 | # elfutils.spec is only distributed in source releases. | |
11134 | if test -f ${elfutils_srcdir}/elfutils.spec; then | |
11135 | need_maintainer_option="" | |
11136 | else | |
11137 | need_maintainer_option="--enable-maintainer-mode" | |
11138 | fi | |
e016a49a | 11139 | (mkdir -p build-elfutils && cd build-elfutils && |
412e1bf7 | 11140 | bash ${elfutils_srcdir}/configure --enable-libebl-subdir=${PACKAGE_NAME} \ |
e016a49a FCE |
11141 | --includedir="${here}/include-elfutils" \ |
11142 | --libdir="${here}/lib-elfutils" \ | |
11143 | --exec-prefix="$exec_prefix" \ | |
11144 | --prefix="$prefix" \ | |
90491495 | 11145 | --enable-dwz \ |
33ee059c | 11146 | ${need_maintainer_option} \ |
c2444a96 | 11147 | CFLAGS="${CFLAGS/-Wall/} $gnu89_inline_flag -fexceptions" \ |
e016a49a | 11148 | LDFLAGS="$LDFLAGS $elfutils_rpath" && |
e3633556 | 11149 | if test -f ${elfutils_srcdir}/config/version.h.in; then |
e050d62f MW |
11150 | echo Found elfutils/version.h header... |
11151 | else | |
11152 | echo elfutils/version.h header not found, need elfutils 0.142+... | |
11153 | exit -1 | |
e3633556 | 11154 | fi |
e016a49a | 11155 | ) |
e050d62f | 11156 | if test $? != 0; then exit -1; fi |
1c4cf93d | 11157 | fi |
e016a49a | 11158 | |
51030d84 JS |
11159 | |
11160 | # Check whether --with-selinux was given. | |
11161 | if test "${with_selinux+set}" = set; then : | |
11162 | withval=$with_selinux; | |
11163 | fi | |
11164 | ||
11165 | ||
11166 | if test "x$with_selinux" != "xno"; then : | |
11167 | ||
11168 | ||
11169 | pkg_failed=no | |
11170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for selinux" >&5 | |
11171 | $as_echo_n "checking for selinux... " >&6; } | |
11172 | ||
11173 | if test -n "$selinux_CFLAGS"; then | |
11174 | pkg_cv_selinux_CFLAGS="$selinux_CFLAGS" | |
11175 | elif test -n "$PKG_CONFIG"; then | |
11176 | if test -n "$PKG_CONFIG" && \ | |
11177 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5 | |
11178 | ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5 | |
11179 | ac_status=$? | |
11180 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11181 | test $ac_status = 0; }; then | |
11182 | pkg_cv_selinux_CFLAGS=`$PKG_CONFIG --cflags "libselinux" 2>/dev/null` | |
8eef2738 | 11183 | test "x$?" != "x0" && pkg_failed=yes |
51030d84 JS |
11184 | else |
11185 | pkg_failed=yes | |
11186 | fi | |
11187 | else | |
11188 | pkg_failed=untried | |
11189 | fi | |
11190 | if test -n "$selinux_LIBS"; then | |
11191 | pkg_cv_selinux_LIBS="$selinux_LIBS" | |
11192 | elif test -n "$PKG_CONFIG"; then | |
11193 | if test -n "$PKG_CONFIG" && \ | |
11194 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5 | |
11195 | ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5 | |
11196 | ac_status=$? | |
11197 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11198 | test $ac_status = 0; }; then | |
11199 | pkg_cv_selinux_LIBS=`$PKG_CONFIG --libs "libselinux" 2>/dev/null` | |
8eef2738 | 11200 | test "x$?" != "x0" && pkg_failed=yes |
51030d84 JS |
11201 | else |
11202 | pkg_failed=yes | |
11203 | fi | |
11204 | else | |
11205 | pkg_failed=untried | |
11206 | fi | |
11207 | ||
11208 | ||
11209 | ||
11210 | if test $pkg_failed = yes; then | |
11211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11212 | $as_echo "no" >&6; } | |
11213 | ||
11214 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11215 | _pkg_short_errors_supported=yes | |
11216 | else | |
11217 | _pkg_short_errors_supported=no | |
11218 | fi | |
11219 | if test $_pkg_short_errors_supported = yes; then | |
8eef2738 | 11220 | selinux_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libselinux" 2>&1` |
51030d84 | 11221 | else |
8eef2738 | 11222 | selinux_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libselinux" 2>&1` |
51030d84 JS |
11223 | fi |
11224 | # Put the nasty error message in config.log where it belongs | |
11225 | echo "$selinux_PKG_ERRORS" >&5 | |
11226 | ||
11227 | have_selinux=no | |
11228 | elif test $pkg_failed = untried; then | |
11229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11230 | $as_echo "no" >&6; } | |
11231 | have_selinux=no | |
11232 | else | |
11233 | selinux_CFLAGS=$pkg_cv_selinux_CFLAGS | |
11234 | selinux_LIBS=$pkg_cv_selinux_LIBS | |
11235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11236 | $as_echo "yes" >&6; } | |
11237 | have_selinux=yes | |
11238 | ||
11239 | $as_echo "#define HAVE_SELINUX 1" >>confdefs.h | |
11240 | ||
11241 | ||
11242 | fi | |
11243 | ||
11244 | else | |
11245 | have_selinux=no | |
11246 | fi | |
11247 | ||
11248 | if test "${have_selinux}" = "yes"; then | |
11249 | HAVE_SELINUX_TRUE= | |
11250 | HAVE_SELINUX_FALSE='#' | |
11251 | else | |
11252 | HAVE_SELINUX_TRUE='#' | |
11253 | HAVE_SELINUX_FALSE= | |
11254 | fi | |
11255 | ||
11256 | ||
e9b0aba1 SM |
11257 | # Extract the first word of "javac", so it can be a program name with args. |
11258 | set dummy javac; ac_word=$2 | |
13c19b49 LB |
11259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11260 | $as_echo_n "checking for $ac_word... " >&6; } | |
e9b0aba1 | 11261 | if ${ac_cv_prog_have_javac+:} false; then : |
13c19b49 LB |
11262 | $as_echo_n "(cached) " >&6 |
11263 | else | |
e9b0aba1 SM |
11264 | if test -n "$have_javac"; then |
11265 | ac_cv_prog_have_javac="$have_javac" # Let the user override the test. | |
13c19b49 LB |
11266 | else |
11267 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11268 | for as_dir in $PATH | |
11269 | do | |
11270 | IFS=$as_save_IFS | |
11271 | test -z "$as_dir" && as_dir=. | |
11272 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 11273 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e9b0aba1 | 11274 | ac_cv_prog_have_javac="yes" |
13c19b49 LB |
11275 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
11276 | break 2 | |
11277 | fi | |
11278 | done | |
11279 | done | |
11280 | IFS=$as_save_IFS | |
11281 | ||
e9b0aba1 | 11282 | test -z "$ac_cv_prog_have_javac" && ac_cv_prog_have_javac="no" |
13c19b49 LB |
11283 | fi |
11284 | fi | |
e9b0aba1 SM |
11285 | have_javac=$ac_cv_prog_have_javac |
11286 | if test -n "$have_javac"; then | |
11287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_javac" >&5 | |
11288 | $as_echo "$have_javac" >&6; } | |
13c19b49 LB |
11289 | else |
11290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11291 | $as_echo "no" >&6; } | |
11292 | fi | |
11293 | ||
11294 | ||
e9b0aba1 SM |
11295 | # Extract the first word of "jar", so it can be a program name with args. |
11296 | set dummy jar; ac_word=$2 | |
13c19b49 LB |
11297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11298 | $as_echo_n "checking for $ac_word... " >&6; } | |
e9b0aba1 | 11299 | if ${ac_cv_prog_have_jar+:} false; then : |
13c19b49 LB |
11300 | $as_echo_n "(cached) " >&6 |
11301 | else | |
e9b0aba1 SM |
11302 | if test -n "$have_jar"; then |
11303 | ac_cv_prog_have_jar="$have_jar" # Let the user override the test. | |
13c19b49 LB |
11304 | else |
11305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11306 | for as_dir in $PATH | |
11307 | do | |
11308 | IFS=$as_save_IFS | |
11309 | test -z "$as_dir" && as_dir=. | |
11310 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 11311 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e9b0aba1 | 11312 | ac_cv_prog_have_jar="yes" |
13c19b49 LB |
11313 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
11314 | break 2 | |
11315 | fi | |
11316 | done | |
11317 | done | |
11318 | IFS=$as_save_IFS | |
2737ec70 | 11319 | |
e9b0aba1 | 11320 | test -z "$ac_cv_prog_have_jar" && ac_cv_prog_have_jar="no" |
13c19b49 LB |
11321 | fi |
11322 | fi | |
e9b0aba1 SM |
11323 | have_jar=$ac_cv_prog_have_jar |
11324 | if test -n "$have_jar"; then | |
11325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_jar" >&5 | |
11326 | $as_echo "$have_jar" >&6; } | |
13c19b49 LB |
11327 | else |
11328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11329 | $as_echo "no" >&6; } | |
11330 | fi | |
11331 | ||
11332 | ||
e9b0aba1 SM |
11333 | if test "$have_javac" != no -a "$have_jar" != no; then |
11334 | echo java found, will try to configure Byteman support | |
9ac164fa FCE |
11335 | |
11336 | ||
26703c63 SM |
11337 | # Check whether --with-java was given. |
11338 | if test "${with_java+set}" = set; then : | |
11339 | withval=$with_java; | |
9ac164fa | 11340 | else |
26703c63 | 11341 | with_java=/usr/lib/jvm/java |
9ac164fa FCE |
11342 | fi |
11343 | ||
a71e842d | 11344 | if test ! -d "$with_java"; then |
ef50e368 | 11345 | with_java=no |
9ac164fa | 11346 | fi |
26703c63 | 11347 | JAVADIR="${with_java}" |
9ac164fa FCE |
11348 | # always needed to compile |
11349 | ||
26703c63 | 11350 | if test "$with_java" != "no"; then |
2737ec70 LB |
11351 | |
11352 | cat >>confdefs.h <<_ACEOF | |
26703c63 | 11353 | #define HAVE_JAVA "1" |
2737ec70 LB |
11354 | _ACEOF |
11355 | ||
9ac164fa FCE |
11356 | fi |
11357 | ||
26703c63 SM |
11358 | if test "$with_java" != "no"; then |
11359 | HAVE_JAVA_TRUE= | |
11360 | HAVE_JAVA_FALSE='#' | |
9ac164fa | 11361 | else |
26703c63 SM |
11362 | HAVE_JAVA_TRUE='#' |
11363 | HAVE_JAVA_FALSE= | |
9ac164fa FCE |
11364 | fi |
11365 | ||
11366 | ||
11367 | else | |
11368 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not run per-method java probing, missing byteman or java requirements" >&5 | |
11369 | $as_echo "$as_me: WARNING: will not run per-method java probing, missing byteman or java requirements" >&2;} | |
11370 | if false; then | |
26703c63 SM |
11371 | HAVE_JAVA_TRUE= |
11372 | HAVE_JAVA_FALSE='#' | |
9ac164fa | 11373 | else |
26703c63 SM |
11374 | HAVE_JAVA_TRUE='#' |
11375 | HAVE_JAVA_FALSE= | |
2737ec70 LB |
11376 | fi |
11377 | ||
9ac164fa FCE |
11378 | fi # java+byteman support |
11379 | ||
62c8a962 FCE |
11380 | ENABLE_NLS="$USE_NLS" |
11381 | ||
11382 | localedir="$localedir" | |
802cd104 | 11383 | |
8f223b3e FCE |
11384 | LOCALEDIR="$localedir" |
11385 | ||
11386 | ||
62c8a962 | 11387 | |
85b62eab FCE |
11388 | # Check whether --with-extra-version was given. |
11389 | if test "${with_extra_version+set}" = set; then : | |
11390 | withval=$with_extra_version; | |
11391 | fi | |
11392 | ||
11393 | if test "x$with_extra_version" != "xno"; then : | |
11394 | ||
11395 | stap_extra_version="$with_extra_version" | |
11396 | { $as_echo "$as_me:${as_lineno-$LINENO}: Adding extra version $stap_extra_version" >&5 | |
11397 | $as_echo "$as_me: Adding extra version $stap_extra_version" >&6;} | |
11398 | else | |
11399 | ||
11400 | stap_extra_version="" | |
11401 | fi | |
11402 | ||
11403 | cat >>confdefs.h <<_ACEOF | |
11404 | #define STAP_EXTRA_VERSION "$stap_extra_version" | |
11405 | _ACEOF | |
11406 | ||
11407 | STAP_EXTRA_VERSION="$stap_extra_version" | |
11408 | ||
11409 | ||
11410 | ||
2a1c9b5d FCE |
11411 | stap_prefix=$prefix |
11412 | test "$stap_prefix" = NONE && stap_prefix=$ac_default_prefix | |
50431f30 MW |
11413 | |
11414 | cat >>confdefs.h <<_ACEOF | |
2a1c9b5d | 11415 | #define STAP_PREFIX "$stap_prefix" |
50431f30 MW |
11416 | _ACEOF |
11417 | ||
62c8a962 FCE |
11418 | STAP_PREFIX="$stap_prefix" |
11419 | ||
50431f30 | 11420 | |
7fbd9d09 | 11421 | ac_config_headers="$ac_config_headers config.h:config.in" |
daae650d | 11422 | |
b728b279 | 11423 | ac_config_files="$ac_config_files Makefile doc/Makefile man/Makefile doc/beginners/Makefile doc/SystemTap_Tapset_Reference/Makefile man/stappaths.7 initscript/config.systemtap initscript/config.stap-server initscript/systemtap initscript/stap-server initscript/99stap/module-setup.sh" |
8d9d8fe1 | 11424 | |
0710d850 DS |
11425 | |
11426 | ||
97859b9d | 11427 | subdirs="$subdirs testsuite" |
5ba96b90 | 11428 | |
6d14a4a9 EB |
11429 | if test $enable_translator == "yes"; then |
11430 | ac_config_files="$ac_config_files run-stap" | |
2f62657c | 11431 | |
6d14a4a9 | 11432 | fi |
e4aaabda MW |
11433 | ac_config_files="$ac_config_files dtrace" |
11434 | ||
66c3c633 JS |
11435 | ac_config_files="$ac_config_files stapdyn/Makefile" |
11436 | ||
9ac164fa FCE |
11437 | ac_config_files="$ac_config_files java/Makefile" |
11438 | ||
d885563b FCE |
11439 | ac_config_files="$ac_config_files java/stapbm" |
11440 | ||
97859b9d JS |
11441 | ac_config_files="$ac_config_files staprun/Makefile" |
11442 | ||
11443 | ac_config_files="$ac_config_files staprun/run-staprun" | |
11444 | ||
42f767d0 JL |
11445 | ac_config_files="$ac_config_files staprun/guest/stapshd" |
11446 | ||
11447 | ac_config_files="$ac_config_files staprun/guest/stapsh-daemon" | |
11448 | ||
11449 | ac_config_files="$ac_config_files staprun/guest/stapsh@.service" | |
11450 | ||
53ade4da MW |
11451 | |
11452 | # Setup "shadow" directory doc/beginners that has everything setup for | |
11453 | # publican in one directory (through directory links if necessary). | |
11454 | # It would be nice to use AC_CONFIG_LINKS, but automake complains when | |
11455 | # the src is a directory and not a file. | |
11456 | ac_config_files="$ac_config_files doc/beginners/publican.cfg:doc/SystemTap_Beginners_Guide/publican.cfg.in" | |
11457 | ||
11458 | ac_config_commands="$ac_config_commands doc/beginners" | |
11459 | ||
11460 | ||
2f1a1aea FCE |
11461 | cat >confcache <<\_ACEOF |
11462 | # This file is a shell script that caches the results of configure | |
11463 | # tests run on this system so they can be shared between configure | |
11464 | # scripts and configure runs, see configure's option --config-cache. | |
11465 | # It is not useful on other systems. If it contains results you don't | |
11466 | # want to keep, you may remove or edit it. | |
11467 | # | |
11468 | # config.status only pays attention to the cache file if you give it | |
11469 | # the --recheck option to rerun configure. | |
11470 | # | |
11471 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
11472 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11473 | # following values. | |
11474 | ||
11475 | _ACEOF | |
11476 | ||
11477 | # The following way of writing the cache mishandles newlines in values, | |
11478 | # but we know of no workaround that is simple, portable, and efficient. | |
7fbd9d09 | 11479 | # So, we kill variables containing newlines. |
2f1a1aea FCE |
11480 | # Ultrix sh set writes to stderr and can't be redirected directly, |
11481 | # and sets the high bit in the cache file unless we assign to the vars. | |
7fbd9d09 FCE |
11482 | ( |
11483 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
11484 | eval ac_val=\$$ac_var | |
11485 | case $ac_val in #( | |
11486 | *${as_nl}*) | |
11487 | case $ac_var in #( | |
1ef0423a | 11488 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
0710d850 | 11489 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
7fbd9d09 FCE |
11490 | esac |
11491 | case $ac_var in #( | |
11492 | _ | IFS | as_nl) ;; #( | |
0710d850 | 11493 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
1ef0423a | 11494 | *) { eval $ac_var=; unset $ac_var;} ;; |
7fbd9d09 FCE |
11495 | esac ;; |
11496 | esac | |
11497 | done | |
11498 | ||
2f1a1aea | 11499 | (set) 2>&1 | |
7fbd9d09 FCE |
11500 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
11501 | *${as_nl}ac_space=\ *) | |
1ef0423a FCE |
11502 | # `set' does not quote correctly, so add quotes: double-quote |
11503 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
2f1a1aea FCE |
11504 | sed -n \ |
11505 | "s/'/'\\\\''/g; | |
11506 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7fbd9d09 | 11507 | ;; #( |
2f1a1aea FCE |
11508 | *) |
11509 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7fbd9d09 | 11510 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
2f1a1aea | 11511 | ;; |
7fbd9d09 FCE |
11512 | esac | |
11513 | sort | |
11514 | ) | | |
2f1a1aea | 11515 | sed ' |
7fbd9d09 | 11516 | /^ac_cv_env_/b end |
2f1a1aea | 11517 | t clear |
7fbd9d09 | 11518 | :clear |
2f1a1aea FCE |
11519 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
11520 | t end | |
7fbd9d09 FCE |
11521 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
11522 | :end' >>confcache | |
11523 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
11524 | if test -w "$cache_file"; then | |
c3de29bd | 11525 | if test "x$cache_file" != "x/dev/null"; then |
1ef0423a | 11526 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
0710d850 | 11527 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
c3de29bd LB |
11528 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
11529 | cat confcache >"$cache_file" | |
11530 | else | |
11531 | case $cache_file in #( | |
11532 | */* | ?:*) | |
11533 | mv -f confcache "$cache_file"$$ && | |
11534 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
11535 | *) | |
11536 | mv -f confcache "$cache_file" ;; | |
11537 | esac | |
11538 | fi | |
11539 | fi | |
2f1a1aea | 11540 | else |
1ef0423a | 11541 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
0710d850 | 11542 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
2f1a1aea FCE |
11543 | fi |
11544 | fi | |
11545 | rm -f confcache | |
11546 | ||
11547 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
11548 | # Let make expand exec_prefix. | |
11549 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
11550 | ||
2f1a1aea FCE |
11551 | DEFS=-DHAVE_CONFIG_H |
11552 | ||
11553 | ac_libobjs= | |
11554 | ac_ltlibobjs= | |
11555 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
11556 | # 1. Remove the extension, and $U if already installed. | |
7fbd9d09 | 11557 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
0710d850 | 11558 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7fbd9d09 FCE |
11559 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
11560 | # will be set to the directory where LIBOBJS objects are built. | |
1ef0423a FCE |
11561 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
11562 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
2f1a1aea FCE |
11563 | done |
11564 | LIBOBJS=$ac_libobjs | |
11565 | ||
11566 | LTLIBOBJS=$ac_ltlibobjs | |
11567 | ||
11568 | ||
8eef2738 LB |
11569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
11570 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
11571 | if test -n "$am_sleep_pid"; then | |
11572 | # Hide warnings about reused PIDs. | |
11573 | wait $am_sleep_pid 2>/dev/null | |
11574 | fi | |
11575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
11576 | $as_echo "done" >&6; } | |
0710d850 DS |
11577 | if test -n "$EXEEXT"; then |
11578 | am__EXEEXT_TRUE= | |
11579 | am__EXEEXT_FALSE='#' | |
11580 | else | |
11581 | am__EXEEXT_TRUE='#' | |
11582 | am__EXEEXT_FALSE= | |
11583 | fi | |
11584 | ||
2f1a1aea | 11585 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
5d4aa1f5 | 11586 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
1ef0423a | 11587 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
2f1a1aea FCE |
11588 | fi |
11589 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
5d4aa1f5 | 11590 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
1ef0423a | 11591 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
2f1a1aea FCE |
11592 | fi |
11593 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
5d4aa1f5 | 11594 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
1ef0423a | 11595 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
2f1a1aea | 11596 | fi |
8f223b3e | 11597 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
5d4aa1f5 | 11598 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
8f223b3e FCE |
11599 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
11600 | fi | |
2f1a1aea | 11601 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
5d4aa1f5 | 11602 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
1ef0423a | 11603 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
2f1a1aea FCE |
11604 | fi |
11605 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
5d4aa1f5 | 11606 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
1ef0423a | 11607 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
2f1a1aea | 11608 | fi |
6d14a4a9 | 11609 | if test -z "${BUILD_TRANSLATOR_TRUE}" && test -z "${BUILD_TRANSLATOR_FALSE}"; then |
5d4aa1f5 | 11610 | as_fn_error $? "conditional \"BUILD_TRANSLATOR\" was never defined. |
1ef0423a | 11611 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
6d14a4a9 | 11612 | fi |
e8f3c2c2 | 11613 | if test -z "${BUILD_CRASHMOD_TRUE}" && test -z "${BUILD_CRASHMOD_FALSE}"; then |
5d4aa1f5 | 11614 | as_fn_error $? "conditional \"BUILD_CRASHMOD\" was never defined. |
1ef0423a | 11615 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
4d9087fc | 11616 | fi |
71aef8fb LB |
11617 | if test -z "${HAVE_XVFB_TRUE}" && test -z "${HAVE_XVFB_FALSE}"; then |
11618 | as_fn_error $? "conditional \"HAVE_XVFB\" was never defined. | |
11619 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
11620 | fi | |
465e8fbf | 11621 | if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then |
5d4aa1f5 | 11622 | as_fn_error $? "conditional \"BUILD_DOCS\" was never defined. |
1ef0423a | 11623 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
92aff3c7 | 11624 | fi |
53ade4da | 11625 | if test -z "${BUILD_PUBLICAN_TRUE}" && test -z "${BUILD_PUBLICAN_FALSE}"; then |
5d4aa1f5 | 11626 | as_fn_error $? "conditional \"BUILD_PUBLICAN\" was never defined. |
1ef0423a | 11627 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
53ade4da | 11628 | fi |
92aff3c7 | 11629 | if test -z "${BUILD_REFDOCS_TRUE}" && test -z "${BUILD_REFDOCS_FALSE}"; then |
5d4aa1f5 | 11630 | as_fn_error $? "conditional \"BUILD_REFDOCS\" was never defined. |
1ef0423a | 11631 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
468abaf4 | 11632 | fi |
327a760e FCE |
11633 | if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then |
11634 | as_fn_error $? "conditional \"HAVE_FOP\" was never defined. | |
11635 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
11636 | fi | |
468abaf4 | 11637 | if test -z "${XMLTO_STRINGPARAM_TRUE}" && test -z "${XMLTO_STRINGPARAM_FALSE}"; then |
5d4aa1f5 | 11638 | as_fn_error $? "conditional \"XMLTO_STRINGPARAM\" was never defined. |
1ef0423a | 11639 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
19a0d4b6 | 11640 | fi |
ccf8bc85 | 11641 | if test -z "${BUILD_PDFREFDOCS_TRUE}" && test -z "${BUILD_PDFREFDOCS_FALSE}"; then |
5d4aa1f5 | 11642 | as_fn_error $? "conditional \"BUILD_PDFREFDOCS\" was never defined. |
1ef0423a | 11643 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
ccf8bc85 | 11644 | fi |
2035bcd4 | 11645 | if test -z "${HAVE_NSS_TRUE}" && test -z "${HAVE_NSS_FALSE}"; then |
5d4aa1f5 | 11646 | as_fn_error $? "conditional \"HAVE_NSS\" was never defined. |
1ef0423a | 11647 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
465e8fbf | 11648 | fi |
a0e2728a | 11649 | if test -z "${BUILD_SERVER_TRUE}" && test -z "${BUILD_SERVER_FALSE}"; then |
5d4aa1f5 | 11650 | as_fn_error $? "conditional \"BUILD_SERVER\" was never defined. |
a0e2728a DB |
11651 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
11652 | fi | |
2dce8c42 | 11653 | if test -z "${HAVE_AVAHI_TRUE}" && test -z "${HAVE_AVAHI_FALSE}"; then |
5d4aa1f5 | 11654 | as_fn_error $? "conditional \"HAVE_AVAHI\" was never defined. |
1ef0423a | 11655 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
2dce8c42 | 11656 | fi |
e8f3c2c2 | 11657 | if test -z "${BUILD_ELFUTILS_TRUE}" && test -z "${BUILD_ELFUTILS_FALSE}"; then |
5d4aa1f5 | 11658 | as_fn_error $? "conditional \"BUILD_ELFUTILS\" was never defined. |
1ef0423a | 11659 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
35a04c8e | 11660 | fi |
138bbe90 JS |
11661 | if test -z "${HAVE_DYNINST_TRUE}" && test -z "${HAVE_DYNINST_FALSE}"; then |
11662 | as_fn_error $? "conditional \"HAVE_DYNINST\" was never defined. | |
11663 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
11664 | fi | |
42f767d0 JL |
11665 | if test -z "${HAVE_LIBVIRT_TRUE}" && test -z "${HAVE_LIBVIRT_FALSE}"; then |
11666 | as_fn_error $? "conditional \"HAVE_LIBVIRT\" was never defined. | |
11667 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
11668 | fi | |
11669 | if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then | |
11670 | as_fn_error $? "conditional \"HAVE_LIBXML2\" was never defined. | |
11671 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
11672 | fi | |
51030d84 JS |
11673 | if test -z "${HAVE_SELINUX_TRUE}" && test -z "${HAVE_SELINUX_FALSE}"; then |
11674 | as_fn_error $? "conditional \"HAVE_SELINUX\" was never defined. | |
11675 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
11676 | fi | |
26703c63 SM |
11677 | if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then |
11678 | as_fn_error $? "conditional \"HAVE_JAVA\" was never defined. | |
9ac164fa FCE |
11679 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
11680 | fi | |
26703c63 SM |
11681 | if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then |
11682 | as_fn_error $? "conditional \"HAVE_JAVA\" was never defined. | |
9ac164fa FCE |
11683 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
11684 | fi | |
2f1a1aea | 11685 | |
c3de29bd | 11686 | : "${CONFIG_STATUS=./config.status}" |
0710d850 | 11687 | ac_write_fail=0 |
2f1a1aea FCE |
11688 | ac_clean_files_save=$ac_clean_files |
11689 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
1ef0423a | 11690 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
0710d850 | 11691 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
1ef0423a FCE |
11692 | as_write_fail=0 |
11693 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
2f1a1aea FCE |
11694 | #! $SHELL |
11695 | # Generated by $as_me. | |
11696 | # Run this file to recreate the current configuration. | |
11697 | # Compiler output produced by configure, useful for debugging | |
11698 | # configure, is in config.log if it exists. | |
11699 | ||
11700 | debug=false | |
11701 | ac_cs_recheck=false | |
11702 | ac_cs_silent=false | |
5e5aee9f | 11703 | |
1ef0423a FCE |
11704 | SHELL=\${CONFIG_SHELL-$SHELL} |
11705 | export SHELL | |
11706 | _ASEOF | |
11707 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
11708 | ## -------------------- ## | |
11709 | ## M4sh Initialization. ## | |
11710 | ## -------------------- ## | |
2f1a1aea | 11711 | |
7fbd9d09 FCE |
11712 | # Be more Bourne compatible |
11713 | DUALCASE=1; export DUALCASE # for MKS sh | |
1ef0423a | 11714 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
2f1a1aea FCE |
11715 | emulate sh |
11716 | NULLCMD=: | |
0710d850 | 11717 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
2f1a1aea FCE |
11718 | # is contrary to our usage. Disable this feature. |
11719 | alias -g '${1+"$@"}'='"$@"' | |
7fbd9d09 | 11720 | setopt NO_GLOB_SUBST |
4a3c19da | 11721 | else |
1ef0423a FCE |
11722 | case `(set -o) 2>/dev/null` in #( |
11723 | *posix*) : | |
11724 | set -o posix ;; #( | |
11725 | *) : | |
11726 | ;; | |
4a3c19da EM |
11727 | esac |
11728 | fi | |
11729 | ||
7fbd9d09 | 11730 | |
0710d850 DS |
11731 | as_nl=' |
11732 | ' | |
11733 | export as_nl | |
11734 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
11735 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
11736 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
11737 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
1ef0423a FCE |
11738 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
11739 | # but without wasting forks for bash or zsh. | |
11740 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
11741 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
11742 | as_echo='print -r --' | |
11743 | as_echo_n='print -rn --' | |
11744 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
0710d850 DS |
11745 | as_echo='printf %s\n' |
11746 | as_echo_n='printf %s' | |
11747 | else | |
11748 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
11749 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
11750 | as_echo_n='/usr/ucb/echo -n' | |
31f9baea | 11751 | else |
0710d850 DS |
11752 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
11753 | as_echo_n_body='eval | |
11754 | arg=$1; | |
1ef0423a | 11755 | case $arg in #( |
0710d850 DS |
11756 | *"$as_nl"*) |
11757 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
11758 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
11759 | esac; | |
11760 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
11761 | ' | |
11762 | export as_echo_n_body | |
11763 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
31f9baea | 11764 | fi |
0710d850 DS |
11765 | export as_echo_body |
11766 | as_echo='sh -c $as_echo_body as_echo' | |
11767 | fi | |
11768 | ||
11769 | # The user is always right. | |
11770 | if test "${PATH_SEPARATOR+set}" != set; then | |
11771 | PATH_SEPARATOR=: | |
11772 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
11773 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
11774 | PATH_SEPARATOR=';' | |
11775 | } | |
7fbd9d09 FCE |
11776 | fi |
11777 | ||
7fbd9d09 FCE |
11778 | |
11779 | # IFS | |
11780 | # We need space, tab and new line, in precisely that order. Quoting is | |
11781 | # there to prevent editors from complaining about space-tab. | |
11782 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
11783 | # splitting by setting IFS to empty value.) | |
7fbd9d09 FCE |
11784 | IFS=" "" $as_nl" |
11785 | ||
11786 | # Find who we are. Look in the path if we contain no directory separator. | |
c3de29bd | 11787 | as_myself= |
1ef0423a | 11788 | case $0 in #(( |
7fbd9d09 FCE |
11789 | *[\\/]* ) as_myself=$0 ;; |
11790 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11791 | for as_dir in $PATH | |
11792 | do | |
11793 | IFS=$as_save_IFS | |
11794 | test -z "$as_dir" && as_dir=. | |
1ef0423a FCE |
11795 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
11796 | done | |
7fbd9d09 FCE |
11797 | IFS=$as_save_IFS |
11798 | ||
11799 | ;; | |
11800 | esac | |
11801 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
11802 | # in which case we are not to be found in the path. | |
11803 | if test "x$as_myself" = x; then | |
11804 | as_myself=$0 | |
11805 | fi | |
11806 | if test ! -f "$as_myself"; then | |
0710d850 | 11807 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
1ef0423a | 11808 | exit 1 |
7fbd9d09 FCE |
11809 | fi |
11810 | ||
1ef0423a FCE |
11811 | # Unset variables that we do not need and which cause bugs (e.g. in |
11812 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
11813 | # suppresses any "Segmentation fault" message there. '((' could | |
11814 | # trigger a bug in pdksh 5.2.14. | |
11815 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
11816 | do eval test x\${$as_var+set} = xset \ | |
11817 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7fbd9d09 FCE |
11818 | done |
11819 | PS1='$ ' | |
2f1a1aea FCE |
11820 | PS2='> ' |
11821 | PS4='+ ' | |
11822 | ||
11823 | # NLS nuisances. | |
0710d850 DS |
11824 | LC_ALL=C |
11825 | export LC_ALL | |
11826 | LANGUAGE=C | |
11827 | export LANGUAGE | |
2f1a1aea | 11828 | |
1ef0423a FCE |
11829 | # CDPATH. |
11830 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
11831 | ||
11832 | ||
5d4aa1f5 FCE |
11833 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
11834 | # ---------------------------------------- | |
1ef0423a FCE |
11835 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
11836 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
5d4aa1f5 | 11837 | # script with STATUS, using 1 if that was 0. |
1ef0423a FCE |
11838 | as_fn_error () |
11839 | { | |
5d4aa1f5 FCE |
11840 | as_status=$1; test $as_status -eq 0 && as_status=1 |
11841 | if test "$4"; then | |
11842 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
11843 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
1ef0423a | 11844 | fi |
5d4aa1f5 | 11845 | $as_echo "$as_me: error: $2" >&2 |
1ef0423a FCE |
11846 | as_fn_exit $as_status |
11847 | } # as_fn_error | |
11848 | ||
11849 | ||
11850 | # as_fn_set_status STATUS | |
11851 | # ----------------------- | |
11852 | # Set $? to STATUS, without forking. | |
11853 | as_fn_set_status () | |
11854 | { | |
11855 | return $1 | |
11856 | } # as_fn_set_status | |
11857 | ||
11858 | # as_fn_exit STATUS | |
11859 | # ----------------- | |
11860 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
11861 | as_fn_exit () | |
11862 | { | |
11863 | set +e | |
11864 | as_fn_set_status $1 | |
11865 | exit $1 | |
11866 | } # as_fn_exit | |
11867 | ||
11868 | # as_fn_unset VAR | |
11869 | # --------------- | |
11870 | # Portably unset VAR. | |
11871 | as_fn_unset () | |
11872 | { | |
11873 | { eval $1=; unset $1;} | |
11874 | } | |
11875 | as_unset=as_fn_unset | |
11876 | # as_fn_append VAR VALUE | |
11877 | # ---------------------- | |
11878 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
11879 | # advantage of any shell optimizations that allow amortized linear growth over | |
11880 | # repeated appends, instead of the typical quadratic growth present in naive | |
11881 | # implementations. | |
11882 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
11883 | eval 'as_fn_append () | |
11884 | { | |
11885 | eval $1+=\$2 | |
11886 | }' | |
11887 | else | |
11888 | as_fn_append () | |
11889 | { | |
11890 | eval $1=\$$1\$2 | |
11891 | } | |
11892 | fi # as_fn_append | |
11893 | ||
11894 | # as_fn_arith ARG... | |
11895 | # ------------------ | |
11896 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
11897 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
11898 | # must be portable across $(()) and expr. | |
11899 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
11900 | eval 'as_fn_arith () | |
11901 | { | |
11902 | as_val=$(( $* )) | |
11903 | }' | |
11904 | else | |
11905 | as_fn_arith () | |
11906 | { | |
11907 | as_val=`expr "$@" || test $? -eq 1` | |
11908 | } | |
11909 | fi # as_fn_arith | |
11910 | ||
11911 | ||
7fbd9d09 FCE |
11912 | if expr a : '\(a\)' >/dev/null 2>&1 && |
11913 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
2f1a1aea FCE |
11914 | as_expr=expr |
11915 | else | |
11916 | as_expr=false | |
11917 | fi | |
11918 | ||
7fbd9d09 | 11919 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
2f1a1aea FCE |
11920 | as_basename=basename |
11921 | else | |
11922 | as_basename=false | |
11923 | fi | |
11924 | ||
1ef0423a FCE |
11925 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
11926 | as_dirname=dirname | |
11927 | else | |
11928 | as_dirname=false | |
11929 | fi | |
2f1a1aea | 11930 | |
7fbd9d09 | 11931 | as_me=`$as_basename -- "$0" || |
2f1a1aea FCE |
11932 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
11933 | X"$0" : 'X\(//\)$' \| \ | |
7fbd9d09 | 11934 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
0710d850 | 11935 | $as_echo X/"$0" | |
7fbd9d09 FCE |
11936 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
11937 | s//\1/ | |
11938 | q | |
11939 | } | |
11940 | /^X\/\(\/\/\)$/{ | |
11941 | s//\1/ | |
11942 | q | |
11943 | } | |
11944 | /^X\/\(\/\).*/{ | |
11945 | s//\1/ | |
11946 | q | |
11947 | } | |
11948 | s/.*/./; q'` | |
8ae7a94a | 11949 | |
1ef0423a FCE |
11950 | # Avoid depending upon Character Ranges. |
11951 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
11952 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
11953 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
11954 | as_cr_digits='0123456789' | |
11955 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7fbd9d09 FCE |
11956 | |
11957 | ECHO_C= ECHO_N= ECHO_T= | |
1ef0423a | 11958 | case `echo -n x` in #((((( |
7fbd9d09 | 11959 | -n*) |
1ef0423a | 11960 | case `echo 'xy\c'` in |
7fbd9d09 | 11961 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
1ef0423a FCE |
11962 | xy) ECHO_C='\c';; |
11963 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
11964 | ECHO_T=' ';; | |
7fbd9d09 FCE |
11965 | esac;; |
11966 | *) | |
11967 | ECHO_N='-n';; | |
2f1a1aea | 11968 | esac |
2f1a1aea FCE |
11969 | |
11970 | rm -f conf$$ conf$$.exe conf$$.file | |
7fbd9d09 FCE |
11971 | if test -d conf$$.dir; then |
11972 | rm -f conf$$.dir/conf$$.file | |
11973 | else | |
11974 | rm -f conf$$.dir | |
0710d850 DS |
11975 | mkdir conf$$.dir 2>/dev/null |
11976 | fi | |
11977 | if (echo >conf$$.file) 2>/dev/null; then | |
11978 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
11979 | as_ln_s='ln -s' | |
11980 | # ... but there are two gotchas: | |
11981 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
11982 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
8eef2738 | 11983 | # In both cases, we have to default to `cp -pR'. |
0710d850 | 11984 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
8eef2738 | 11985 | as_ln_s='cp -pR' |
0710d850 DS |
11986 | elif ln conf$$.file conf$$ 2>/dev/null; then |
11987 | as_ln_s=ln | |
11988 | else | |
8eef2738 | 11989 | as_ln_s='cp -pR' |
0710d850 | 11990 | fi |
2f1a1aea | 11991 | else |
8eef2738 | 11992 | as_ln_s='cp -pR' |
2f1a1aea | 11993 | fi |
7fbd9d09 FCE |
11994 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
11995 | rmdir conf$$.dir 2>/dev/null | |
2f1a1aea | 11996 | |
1ef0423a FCE |
11997 | |
11998 | # as_fn_mkdir_p | |
11999 | # ------------- | |
12000 | # Create "$as_dir" as a directory, including parents if necessary. | |
12001 | as_fn_mkdir_p () | |
12002 | { | |
12003 | ||
12004 | case $as_dir in #( | |
12005 | -*) as_dir=./$as_dir;; | |
12006 | esac | |
12007 | test -d "$as_dir" || eval $as_mkdir_p || { | |
12008 | as_dirs= | |
12009 | while :; do | |
12010 | case $as_dir in #( | |
12011 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
12012 | *) as_qdir=$as_dir;; | |
12013 | esac | |
12014 | as_dirs="'$as_qdir' $as_dirs" | |
12015 | as_dir=`$as_dirname -- "$as_dir" || | |
12016 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12017 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
12018 | X"$as_dir" : 'X\(//\)$' \| \ | |
12019 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
12020 | $as_echo X"$as_dir" | | |
12021 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
12022 | s//\1/ | |
12023 | q | |
12024 | } | |
12025 | /^X\(\/\/\)[^/].*/{ | |
12026 | s//\1/ | |
12027 | q | |
12028 | } | |
12029 | /^X\(\/\/\)$/{ | |
12030 | s//\1/ | |
12031 | q | |
12032 | } | |
12033 | /^X\(\/\).*/{ | |
12034 | s//\1/ | |
12035 | q | |
12036 | } | |
12037 | s/.*/./; q'` | |
12038 | test -d "$as_dir" && break | |
12039 | done | |
12040 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
5d4aa1f5 | 12041 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
1ef0423a FCE |
12042 | |
12043 | ||
12044 | } # as_fn_mkdir_p | |
2f1a1aea | 12045 | if mkdir -p . 2>/dev/null; then |
1ef0423a | 12046 | as_mkdir_p='mkdir -p "$as_dir"' |
2f1a1aea FCE |
12047 | else |
12048 | test -d ./-p && rmdir ./-p | |
12049 | as_mkdir_p=false | |
12050 | fi | |
12051 | ||
8eef2738 LB |
12052 | |
12053 | # as_fn_executable_p FILE | |
12054 | # ----------------------- | |
12055 | # Test if FILE is an executable regular file. | |
12056 | as_fn_executable_p () | |
12057 | { | |
12058 | test -f "$1" && test -x "$1" | |
12059 | } # as_fn_executable_p | |
12060 | as_test_x='test -x' | |
12061 | as_executable_p=as_fn_executable_p | |
2f1a1aea FCE |
12062 | |
12063 | # Sed expression to map a string onto a valid CPP name. | |
12064 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
12065 | ||
12066 | # Sed expression to map a string onto a valid variable name. | |
12067 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
12068 | ||
12069 | ||
2f1a1aea | 12070 | exec 6>&1 |
1ef0423a FCE |
12071 | ## ----------------------------------- ## |
12072 | ## Main body of $CONFIG_STATUS script. ## | |
12073 | ## ----------------------------------- ## | |
12074 | _ASEOF | |
12075 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
2f1a1aea | 12076 | |
1ef0423a FCE |
12077 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12078 | # Save the log message, to keep $0 and so on meaningful, and to | |
2f1a1aea | 12079 | # report actual input values of CONFIG_FILES etc. instead of their |
7fbd9d09 FCE |
12080 | # values after options handling. |
12081 | ac_log=" | |
d7ca839b | 12082 | This file was extended by systemtap $as_me 2.5, which was |
8eef2738 | 12083 | generated by GNU Autoconf 2.69. Invocation command line was |
2f1a1aea FCE |
12084 | |
12085 | CONFIG_FILES = $CONFIG_FILES | |
12086 | CONFIG_HEADERS = $CONFIG_HEADERS | |
12087 | CONFIG_LINKS = $CONFIG_LINKS | |
12088 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
12089 | $ $0 $@ | |
12090 | ||
7fbd9d09 FCE |
12091 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
12092 | " | |
12093 | ||
2f1a1aea FCE |
12094 | _ACEOF |
12095 | ||
0710d850 DS |
12096 | case $ac_config_files in *" |
12097 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
12098 | esac | |
12099 | ||
12100 | case $ac_config_headers in *" | |
12101 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
12102 | esac | |
12103 | ||
12104 | ||
12105 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
818ba2bc | 12106 | # Files that config.status was made for. |
7fbd9d09 FCE |
12107 | config_files="$ac_config_files" |
12108 | config_headers="$ac_config_headers" | |
12109 | config_commands="$ac_config_commands" | |
daae650d | 12110 | |
7fbd9d09 | 12111 | _ACEOF |
8ae7a94a | 12112 | |
0710d850 | 12113 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
2f1a1aea | 12114 | ac_cs_usage="\ |
1ef0423a FCE |
12115 | \`$as_me' instantiates files and other configuration actions |
12116 | from templates according to the current configuration. Unless the files | |
12117 | and actions are specified as TAGs, all are instantiated by default. | |
2f1a1aea | 12118 | |
1ef0423a | 12119 | Usage: $0 [OPTION]... [TAG]... |
2f1a1aea FCE |
12120 | |
12121 | -h, --help print this help, then exit | |
7fbd9d09 | 12122 | -V, --version print version number and configuration settings, then exit |
1ef0423a | 12123 | --config print configuration, then exit |
0710d850 DS |
12124 | -q, --quiet, --silent |
12125 | do not print progress messages | |
2f1a1aea FCE |
12126 | -d, --debug don't remove temporary files |
12127 | --recheck update $as_me by reconfiguring in the same conditions | |
0710d850 DS |
12128 | --file=FILE[:TEMPLATE] |
12129 | instantiate the configuration file FILE | |
12130 | --header=FILE[:TEMPLATE] | |
12131 | instantiate the configuration header FILE | |
2f1a1aea FCE |
12132 | |
12133 | Configuration files: | |
12134 | $config_files | |
12135 | ||
12136 | Configuration headers: | |
12137 | $config_headers | |
12138 | ||
12139 | Configuration commands: | |
12140 | $config_commands | |
12141 | ||
306dd4f8 | 12142 | Report bugs to <systemtap@sourceware.org>." |
818ba2bc | 12143 | |
7fbd9d09 | 12144 | _ACEOF |
0710d850 | 12145 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
1ef0423a | 12146 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
2f1a1aea | 12147 | ac_cs_version="\\ |
d7ca839b | 12148 | systemtap config.status 2.5 |
8eef2738 | 12149 | configured by $0, generated by GNU Autoconf 2.69, |
1ef0423a | 12150 | with options \\"\$ac_cs_config\\" |
2f1a1aea | 12151 | |
8eef2738 | 12152 | Copyright (C) 2012 Free Software Foundation, Inc. |
2f1a1aea FCE |
12153 | This config.status script is free software; the Free Software Foundation |
12154 | gives unlimited permission to copy, distribute and modify it." | |
7fbd9d09 FCE |
12155 | |
12156 | ac_pwd='$ac_pwd' | |
12157 | srcdir='$srcdir' | |
12158 | INSTALL='$INSTALL' | |
12159 | MKDIR_P='$MKDIR_P' | |
0710d850 DS |
12160 | AWK='$AWK' |
12161 | test -n "\$AWK" || AWK=awk | |
2f1a1aea FCE |
12162 | _ACEOF |
12163 | ||
0710d850 DS |
12164 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12165 | # The default lists apply if the user does not specify any file. | |
2f1a1aea FCE |
12166 | ac_need_defaults=: |
12167 | while test $# != 0 | |
12168 | do | |
12169 | case $1 in | |
c3de29bd | 12170 | --*=?*) |
7fbd9d09 FCE |
12171 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
12172 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
2f1a1aea FCE |
12173 | ac_shift=: |
12174 | ;; | |
c3de29bd LB |
12175 | --*=) |
12176 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
12177 | ac_optarg= | |
12178 | ac_shift=: | |
12179 | ;; | |
7fbd9d09 | 12180 | *) |
2f1a1aea FCE |
12181 | ac_option=$1 |
12182 | ac_optarg=$2 | |
12183 | ac_shift=shift | |
12184 | ;; | |
2f1a1aea FCE |
12185 | esac |
12186 | ||
12187 | case $ac_option in | |
12188 | # Handling of the options. | |
2f1a1aea FCE |
12189 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
12190 | ac_cs_recheck=: ;; | |
7fbd9d09 | 12191 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
0710d850 | 12192 | $as_echo "$ac_cs_version"; exit ;; |
1ef0423a FCE |
12193 | --config | --confi | --conf | --con | --co | --c ) |
12194 | $as_echo "$ac_cs_config"; exit ;; | |
7fbd9d09 | 12195 | --debug | --debu | --deb | --de | --d | -d ) |
2f1a1aea FCE |
12196 | debug=: ;; |
12197 | --file | --fil | --fi | --f ) | |
12198 | $ac_shift | |
0710d850 DS |
12199 | case $ac_optarg in |
12200 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
c3de29bd | 12201 | '') as_fn_error $? "missing file argument" ;; |
0710d850 | 12202 | esac |
1ef0423a | 12203 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
2f1a1aea FCE |
12204 | ac_need_defaults=false;; |
12205 | --header | --heade | --head | --hea ) | |
12206 | $ac_shift | |
0710d850 DS |
12207 | case $ac_optarg in |
12208 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
12209 | esac | |
1ef0423a | 12210 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
2f1a1aea | 12211 | ac_need_defaults=false;; |
7fbd9d09 FCE |
12212 | --he | --h) |
12213 | # Conflict between --help and --header | |
5d4aa1f5 | 12214 | as_fn_error $? "ambiguous option: \`$1' |
1ef0423a | 12215 | Try \`$0 --help' for more information.";; |
7fbd9d09 | 12216 | --help | --hel | -h ) |
0710d850 | 12217 | $as_echo "$ac_cs_usage"; exit ;; |
2f1a1aea FCE |
12218 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
12219 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
12220 | ac_cs_silent=: ;; | |
12221 | ||
12222 | # This is an error. | |
5d4aa1f5 | 12223 | -*) as_fn_error $? "unrecognized option: \`$1' |
1ef0423a | 12224 | Try \`$0 --help' for more information." ;; |
2f1a1aea | 12225 | |
1ef0423a | 12226 | *) as_fn_append ac_config_targets " $1" |
7fbd9d09 | 12227 | ac_need_defaults=false ;; |
2f1a1aea FCE |
12228 | |
12229 | esac | |
12230 | shift | |
12231 | done | |
12232 | ||
12233 | ac_configure_extra_args= | |
12234 | ||
12235 | if $ac_cs_silent; then | |
12236 | exec 6>/dev/null | |
12237 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
12238 | fi | |
12239 | ||
12240 | _ACEOF | |
0710d850 | 12241 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
2f1a1aea | 12242 | if \$ac_cs_recheck; then |
8eef2738 | 12243 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
0710d850 DS |
12244 | shift |
12245 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
12246 | CONFIG_SHELL='$SHELL' | |
7fbd9d09 | 12247 | export CONFIG_SHELL |
0710d850 | 12248 | exec "\$@" |
2f1a1aea FCE |
12249 | fi |
12250 | ||
12251 | _ACEOF | |
0710d850 | 12252 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7fbd9d09 FCE |
12253 | exec 5>>config.log |
12254 | { | |
12255 | echo | |
12256 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
12257 | ## Running $as_me. ## | |
12258 | _ASBOX | |
0710d850 | 12259 | $as_echo "$ac_log" |
7fbd9d09 | 12260 | } >&5 |
2f1a1aea | 12261 | |
7fbd9d09 | 12262 | _ACEOF |
0710d850 | 12263 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
2f1a1aea | 12264 | # |
7fbd9d09 | 12265 | # INIT-COMMANDS |
2f1a1aea | 12266 | # |
2f1a1aea | 12267 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
8f223b3e FCE |
12268 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
12269 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it | |
12270 | # from automake < 1.5. | |
12271 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
12272 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
12273 | LINGUAS="${LINGUAS-%UNSET%}" | |
12274 | ||
2f1a1aea FCE |
12275 | |
12276 | _ACEOF | |
12277 | ||
0710d850 | 12278 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7fbd9d09 FCE |
12279 | |
12280 | # Handling of arguments. | |
2f1a1aea FCE |
12281 | for ac_config_target in $ac_config_targets |
12282 | do | |
7fbd9d09 FCE |
12283 | case $ac_config_target in |
12284 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
8f223b3e | 12285 | "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; |
f9794ee4 | 12286 | "includes/sys/sdt-config.h") CONFIG_FILES="$CONFIG_FILES includes/sys/sdt-config.h" ;; |
8f223b3e | 12287 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; |
7fbd9d09 FCE |
12288 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; |
12289 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
12290 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
a6e785fa | 12291 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
53ade4da | 12292 | "doc/beginners/Makefile") CONFIG_FILES="$CONFIG_FILES doc/beginners/Makefile" ;; |
7fbd9d09 | 12293 | "doc/SystemTap_Tapset_Reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/SystemTap_Tapset_Reference/Makefile" ;; |
a6e785fa | 12294 | "man/stappaths.7") CONFIG_FILES="$CONFIG_FILES man/stappaths.7" ;; |
29fe12e4 WC |
12295 | "initscript/config.systemtap") CONFIG_FILES="$CONFIG_FILES initscript/config.systemtap" ;; |
12296 | "initscript/config.stap-server") CONFIG_FILES="$CONFIG_FILES initscript/config.stap-server" ;; | |
7fbd9d09 | 12297 | "initscript/systemtap") CONFIG_FILES="$CONFIG_FILES initscript/systemtap" ;; |
2f78bee0 | 12298 | "initscript/stap-server") CONFIG_FILES="$CONFIG_FILES initscript/stap-server" ;; |
b728b279 | 12299 | "initscript/99stap/module-setup.sh") CONFIG_FILES="$CONFIG_FILES initscript/99stap/module-setup.sh" ;; |
7fbd9d09 | 12300 | "run-stap") CONFIG_FILES="$CONFIG_FILES run-stap" ;; |
e4aaabda | 12301 | "dtrace") CONFIG_FILES="$CONFIG_FILES dtrace" ;; |
66c3c633 | 12302 | "stapdyn/Makefile") CONFIG_FILES="$CONFIG_FILES stapdyn/Makefile" ;; |
9ac164fa | 12303 | "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;; |
d885563b | 12304 | "java/stapbm") CONFIG_FILES="$CONFIG_FILES java/stapbm" ;; |
97859b9d JS |
12305 | "staprun/Makefile") CONFIG_FILES="$CONFIG_FILES staprun/Makefile" ;; |
12306 | "staprun/run-staprun") CONFIG_FILES="$CONFIG_FILES staprun/run-staprun" ;; | |
42f767d0 JL |
12307 | "staprun/guest/stapshd") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapshd" ;; |
12308 | "staprun/guest/stapsh-daemon") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapsh-daemon" ;; | |
12309 | "staprun/guest/stapsh@.service") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapsh@.service" ;; | |
53ade4da MW |
12310 | "doc/beginners/publican.cfg") CONFIG_FILES="$CONFIG_FILES doc/beginners/publican.cfg:doc/SystemTap_Beginners_Guide/publican.cfg.in" ;; |
12311 | "doc/beginners") CONFIG_COMMANDS="$CONFIG_COMMANDS doc/beginners" ;; | |
7fbd9d09 | 12312 | |
5d4aa1f5 | 12313 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
2f1a1aea FCE |
12314 | esac |
12315 | done | |
12316 | ||
7fbd9d09 | 12317 | |
2f1a1aea FCE |
12318 | # If the user did not use the arguments to specify the items to instantiate, |
12319 | # then the envvar interface is used. Set only those that are not. | |
12320 | # We use the long form for the default assignment because of an extremely | |
12321 | # bizarre bug on SunOS 4.1.3. | |
12322 | if $ac_need_defaults; then | |
12323 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
12324 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
12325 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
12326 | fi | |
12327 | ||
12328 | # Have a temporary directory for convenience. Make it in the build tree | |
7fbd9d09 | 12329 | # simply because there is no reason against having it here, and in addition, |
2f1a1aea | 12330 | # creating and moving files from /tmp can sometimes cause problems. |
7fbd9d09 FCE |
12331 | # Hook for its removal unless debugging. |
12332 | # Note that there is a small window in which the directory will not be cleaned: | |
12333 | # after its creation but before its name has been assigned to `$tmp'. | |
2f1a1aea FCE |
12334 | $debug || |
12335 | { | |
c3de29bd | 12336 | tmp= ac_tmp= |
7fbd9d09 | 12337 | trap 'exit_status=$? |
c3de29bd LB |
12338 | : "${ac_tmp:=$tmp}" |
12339 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
7fbd9d09 | 12340 | ' 0 |
1ef0423a | 12341 | trap 'as_fn_exit 1' 1 2 13 15 |
2f1a1aea | 12342 | } |
2f1a1aea FCE |
12343 | # Create a (secure) tmp directory for tmp files. |
12344 | ||
12345 | { | |
7fbd9d09 | 12346 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
c3de29bd | 12347 | test -d "$tmp" |
2f1a1aea FCE |
12348 | } || |
12349 | { | |
7fbd9d09 FCE |
12350 | tmp=./conf$$-$RANDOM |
12351 | (umask 077 && mkdir "$tmp") | |
5d4aa1f5 | 12352 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
c3de29bd | 12353 | ac_tmp=$tmp |
2f1a1aea | 12354 | |
0710d850 DS |
12355 | # Set up the scripts for CONFIG_FILES section. |
12356 | # No need to generate them if there are no CONFIG_FILES. | |
12357 | # This happens for instance with `./config.status config.h'. | |
7fbd9d09 FCE |
12358 | if test -n "$CONFIG_FILES"; then |
12359 | ||
31f9baea | 12360 | |
1ef0423a FCE |
12361 | ac_cr=`echo X | tr X '\015'` |
12362 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
12363 | # But we know of no other shell where ac_cr would be empty at this | |
12364 | # point, so we can use a bashism as a fallback. | |
12365 | if test "x$ac_cr" = x; then | |
12366 | eval ac_cr=\$\'\\r\' | |
12367 | fi | |
0710d850 DS |
12368 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
12369 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
5d4aa1f5 | 12370 | ac_cs_awk_cr='\\r' |
0710d850 DS |
12371 | else |
12372 | ac_cs_awk_cr=$ac_cr | |
7fbd9d09 | 12373 | fi |
5e0d2ebf | 12374 | |
c3de29bd | 12375 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
7fbd9d09 FCE |
12376 | _ACEOF |
12377 | ||
12378 | ||
0710d850 DS |
12379 | { |
12380 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
12381 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
12382 | echo "_ACEOF" | |
12383 | } >conf$$subs.sh || | |
5d4aa1f5 FCE |
12384 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
12385 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
7fbd9d09 FCE |
12386 | ac_delim='%!_!# ' |
12387 | for ac_last_try in false false false false false :; do | |
0710d850 | 12388 | . ./conf$$subs.sh || |
5d4aa1f5 | 12389 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
0710d850 DS |
12390 | |
12391 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
12392 | if test $ac_delim_n = $ac_delim_num; then | |
7fbd9d09 FCE |
12393 | break |
12394 | elif $ac_last_try; then | |
5d4aa1f5 | 12395 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
7fbd9d09 FCE |
12396 | else |
12397 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
12398 | fi | |
12399 | done | |
0710d850 DS |
12400 | rm -f conf$$subs.sh |
12401 | ||
12402 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
c3de29bd | 12403 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
0710d850 DS |
12404 | _ACEOF |
12405 | sed -n ' | |
12406 | h | |
12407 | s/^/S["/; s/!.*/"]=/ | |
12408 | p | |
12409 | g | |
12410 | s/^[^!]*!// | |
12411 | :repl | |
12412 | t repl | |
12413 | s/'"$ac_delim"'$// | |
12414 | t delim | |
12415 | :nl | |
12416 | h | |
1ef0423a | 12417 | s/\(.\{148\}\)..*/\1/ |
0710d850 DS |
12418 | t more1 |
12419 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
12420 | p | |
12421 | n | |
12422 | b repl | |
12423 | :more1 | |
12424 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
12425 | p | |
12426 | g | |
12427 | s/.\{148\}// | |
12428 | t nl | |
12429 | :delim | |
12430 | h | |
1ef0423a | 12431 | s/\(.\{148\}\)..*/\1/ |
0710d850 DS |
12432 | t more2 |
12433 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
12434 | p | |
12435 | b | |
12436 | :more2 | |
12437 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
12438 | p | |
12439 | g | |
12440 | s/.\{148\}// | |
12441 | t delim | |
12442 | ' <conf$$subs.awk | sed ' | |
12443 | /^[^""]/{ | |
12444 | N | |
12445 | s/\n// | |
12446 | } | |
12447 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
12448 | rm -f conf$$subs.awk | |
12449 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12450 | _ACAWK | |
c3de29bd | 12451 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
0710d850 DS |
12452 | for (key in S) S_is_set[key] = 1 |
12453 | FS = "\a" | |
7fbd9d09 | 12454 | |
0710d850 DS |
12455 | } |
12456 | { | |
12457 | line = $ 0 | |
12458 | nfields = split(line, field, "@") | |
12459 | substed = 0 | |
12460 | len = length(field[1]) | |
12461 | for (i = 2; i < nfields; i++) { | |
12462 | key = field[i] | |
12463 | keylen = length(key) | |
12464 | if (S_is_set[key]) { | |
12465 | value = S[key] | |
12466 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
12467 | len += length(value) + length(field[++i]) | |
12468 | substed = 1 | |
12469 | } else | |
12470 | len += 1 + keylen | |
12471 | } | |
12472 | ||
12473 | print line | |
12474 | } | |
7fbd9d09 | 12475 | |
0710d850 | 12476 | _ACAWK |
7fbd9d09 | 12477 | _ACEOF |
0710d850 DS |
12478 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12479 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
12480 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
12481 | else | |
12482 | cat | |
c3de29bd | 12483 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
5d4aa1f5 | 12484 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
7fbd9d09 FCE |
12485 | _ACEOF |
12486 | ||
5d4aa1f5 FCE |
12487 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
12488 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
7fbd9d09 FCE |
12489 | # trailing colons and then remove the whole line if VPATH becomes empty |
12490 | # (actually we leave an empty line to preserve line numbers). | |
12491 | if test "x$srcdir" = x.; then | |
5d4aa1f5 FCE |
12492 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
12493 | h | |
12494 | s/// | |
12495 | s/^/:/ | |
12496 | s/[ ]*$/:/ | |
12497 | s/:\$(srcdir):/:/g | |
12498 | s/:\${srcdir}:/:/g | |
12499 | s/:@srcdir@:/:/g | |
12500 | s/^:*// | |
7fbd9d09 | 12501 | s/:*$// |
5d4aa1f5 FCE |
12502 | x |
12503 | s/\(=[ ]*\).*/\1/ | |
12504 | G | |
12505 | s/\n// | |
7fbd9d09 FCE |
12506 | s/^[^=]*=[ ]*$// |
12507 | }' | |
12508 | fi | |
12509 | ||
0710d850 | 12510 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7fbd9d09 FCE |
12511 | fi # test -n "$CONFIG_FILES" |
12512 | ||
0710d850 DS |
12513 | # Set up the scripts for CONFIG_HEADERS section. |
12514 | # No need to generate them if there are no CONFIG_HEADERS. | |
12515 | # This happens for instance with `./config.status Makefile'. | |
12516 | if test -n "$CONFIG_HEADERS"; then | |
c3de29bd | 12517 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
0710d850 DS |
12518 | BEGIN { |
12519 | _ACEOF | |
12520 | ||
12521 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
12522 | # here-document in config.status, that substitutes the proper values into | |
12523 | # config.h.in to produce config.h. | |
12524 | ||
12525 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
12526 | # handling of long lines. | |
12527 | ac_delim='%!_!# ' | |
12528 | for ac_last_try in false false :; do | |
c3de29bd LB |
12529 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
12530 | if test -z "$ac_tt"; then | |
0710d850 DS |
12531 | break |
12532 | elif $ac_last_try; then | |
5d4aa1f5 | 12533 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
0710d850 DS |
12534 | else |
12535 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
12536 | fi | |
12537 | done | |
12538 | ||
12539 | # For the awk script, D is an array of macro values keyed by name, | |
12540 | # likewise P contains macro parameters if any. Preserve backslash | |
12541 | # newline sequences. | |
12542 | ||
12543 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
12544 | sed -n ' | |
12545 | s/.\{148\}/&'"$ac_delim"'/g | |
12546 | t rset | |
12547 | :rset | |
12548 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
12549 | t def | |
12550 | d | |
12551 | :def | |
12552 | s/\\$// | |
12553 | t bsnl | |
12554 | s/["\\]/\\&/g | |
12555 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
12556 | D["\1"]=" \3"/p | |
12557 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
12558 | d | |
12559 | :bsnl | |
12560 | s/["\\]/\\&/g | |
12561 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
12562 | D["\1"]=" \3\\\\\\n"\\/p | |
12563 | t cont | |
12564 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
12565 | t cont | |
12566 | d | |
12567 | :cont | |
12568 | n | |
12569 | s/.\{148\}/&'"$ac_delim"'/g | |
12570 | t clear | |
12571 | :clear | |
12572 | s/\\$// | |
12573 | t bsnlc | |
12574 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
12575 | d | |
12576 | :bsnlc | |
12577 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
12578 | b cont | |
12579 | ' <confdefs.h | sed ' | |
12580 | s/'"$ac_delim"'/"\\\ | |
12581 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
12582 | ||
12583 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12584 | for (key in D) D_is_set[key] = 1 | |
12585 | FS = "\a" | |
12586 | } | |
12587 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
12588 | line = \$ 0 | |
12589 | split(line, arg, " ") | |
12590 | if (arg[1] == "#") { | |
12591 | defundef = arg[2] | |
12592 | mac1 = arg[3] | |
12593 | } else { | |
12594 | defundef = substr(arg[1], 2) | |
12595 | mac1 = arg[2] | |
12596 | } | |
12597 | split(mac1, mac2, "(") #) | |
12598 | macro = mac2[1] | |
12599 | prefix = substr(line, 1, index(line, defundef) - 1) | |
12600 | if (D_is_set[macro]) { | |
12601 | # Preserve the white space surrounding the "#". | |
12602 | print prefix "define", macro P[macro] D[macro] | |
12603 | next | |
12604 | } else { | |
12605 | # Replace #undef with comments. This is necessary, for example, | |
12606 | # in the case of _POSIX_SOURCE, which is predefined and required | |
12607 | # on some systems where configure will not decide to define it. | |
12608 | if (defundef == "undef") { | |
12609 | print "/*", prefix defundef, macro, "*/" | |
12610 | next | |
12611 | } | |
12612 | } | |
12613 | } | |
12614 | { print } | |
12615 | _ACAWK | |
12616 | _ACEOF | |
12617 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
5d4aa1f5 | 12618 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
0710d850 DS |
12619 | fi # test -n "$CONFIG_HEADERS" |
12620 | ||
27aba29a | 12621 | |
0710d850 DS |
12622 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
12623 | shift | |
12624 | for ac_tag | |
7fbd9d09 FCE |
12625 | do |
12626 | case $ac_tag in | |
12627 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
2f1a1aea | 12628 | esac |
7fbd9d09 FCE |
12629 | case $ac_mode$ac_tag in |
12630 | :[FHL]*:*);; | |
5d4aa1f5 | 12631 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
7fbd9d09 FCE |
12632 | :[FH]-) ac_tag=-:-;; |
12633 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
12634 | esac | |
12635 | ac_save_IFS=$IFS | |
12636 | IFS=: | |
12637 | set x $ac_tag | |
12638 | IFS=$ac_save_IFS | |
12639 | shift | |
12640 | ac_file=$1 | |
12641 | shift | |
2f1a1aea | 12642 | |
7fbd9d09 FCE |
12643 | case $ac_mode in |
12644 | :L) ac_source=$1;; | |
12645 | :[FH]) | |
12646 | ac_file_inputs= | |
12647 | for ac_f | |
12648 | do | |
12649 | case $ac_f in | |
c3de29bd | 12650 | -) ac_f="$ac_tmp/stdin";; |
7fbd9d09 FCE |
12651 | *) # Look for the file first in the build tree, then in the source tree |
12652 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
12653 | # because $ac_f cannot contain `:'. | |
12654 | test -f "$ac_f" || | |
12655 | case $ac_f in | |
12656 | [\\/$]*) false;; | |
12657 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
12658 | esac || | |
5d4aa1f5 | 12659 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
7fbd9d09 | 12660 | esac |
0710d850 | 12661 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
1ef0423a | 12662 | as_fn_append ac_file_inputs " '$ac_f'" |
7fbd9d09 FCE |
12663 | done |
12664 | ||
12665 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
12666 | # use $as_me), people would be surprised to read: | |
12667 | # /* config.h. Generated by config.status. */ | |
0710d850 DS |
12668 | configure_input='Generated from '` |
12669 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
12670 | `' by configure.' | |
7fbd9d09 FCE |
12671 | if test x"$ac_file" != x-; then |
12672 | configure_input="$ac_file. $configure_input" | |
1ef0423a | 12673 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
0710d850 | 12674 | $as_echo "$as_me: creating $ac_file" >&6;} |
7fbd9d09 | 12675 | fi |
0710d850 DS |
12676 | # Neutralize special characters interpreted by sed in replacement strings. |
12677 | case $configure_input in #( | |
12678 | *\&* | *\|* | *\\* ) | |
12679 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
12680 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
12681 | *) ac_sed_conf_input=$configure_input;; | |
12682 | esac | |
7fbd9d09 FCE |
12683 | |
12684 | case $ac_tag in | |
c3de29bd | 12685 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
5d4aa1f5 | 12686 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
7fbd9d09 FCE |
12687 | esac |
12688 | ;; | |
12689 | esac | |
12690 | ||
12691 | ac_dir=`$as_dirname -- "$ac_file" || | |
2f1a1aea FCE |
12692 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
12693 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
12694 | X"$ac_file" : 'X\(//\)$' \| \ | |
7fbd9d09 | 12695 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
0710d850 | 12696 | $as_echo X"$ac_file" | |
7fbd9d09 FCE |
12697 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
12698 | s//\1/ | |
12699 | q | |
12700 | } | |
12701 | /^X\(\/\/\)[^/].*/{ | |
12702 | s//\1/ | |
12703 | q | |
12704 | } | |
12705 | /^X\(\/\/\)$/{ | |
12706 | s//\1/ | |
12707 | q | |
12708 | } | |
12709 | /^X\(\/\).*/{ | |
12710 | s//\1/ | |
12711 | q | |
12712 | } | |
12713 | s/.*/./; q'` | |
1ef0423a | 12714 | as_dir="$ac_dir"; as_fn_mkdir_p |
2f1a1aea FCE |
12715 | ac_builddir=. |
12716 | ||
7fbd9d09 FCE |
12717 | case "$ac_dir" in |
12718 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12719 | *) | |
0710d850 | 12720 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7fbd9d09 | 12721 | # A ".." for each directory in $ac_dir_suffix. |
0710d850 | 12722 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7fbd9d09 FCE |
12723 | case $ac_top_builddir_sub in |
12724 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12725 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
12726 | esac ;; | |
12727 | esac | |
12728 | ac_abs_top_builddir=$ac_pwd | |
12729 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
12730 | # for backward compatibility: | |
12731 | ac_top_builddir=$ac_top_build_prefix | |
2f1a1aea FCE |
12732 | |
12733 | case $srcdir in | |
7fbd9d09 | 12734 | .) # We are building in place. |
2f1a1aea | 12735 | ac_srcdir=. |
7fbd9d09 FCE |
12736 | ac_top_srcdir=$ac_top_builddir_sub |
12737 | ac_abs_top_srcdir=$ac_pwd ;; | |
12738 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
2f1a1aea | 12739 | ac_srcdir=$srcdir$ac_dir_suffix; |
7fbd9d09 FCE |
12740 | ac_top_srcdir=$srcdir |
12741 | ac_abs_top_srcdir=$srcdir ;; | |
12742 | *) # Relative name. | |
12743 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
12744 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
12745 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
2f1a1aea | 12746 | esac |
7fbd9d09 | 12747 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
2f1a1aea | 12748 | |
2f1a1aea | 12749 | |
7fbd9d09 FCE |
12750 | case $ac_mode in |
12751 | :F) | |
12752 | # | |
12753 | # CONFIG_FILE | |
12754 | # | |
2f1a1aea FCE |
12755 | |
12756 | case $INSTALL in | |
12757 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7fbd9d09 FCE |
12758 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
12759 | esac | |
12760 | ac_MKDIR_P=$MKDIR_P | |
12761 | case $MKDIR_P in | |
12762 | [\\/$]* | ?:[\\/]* ) ;; | |
12763 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
5e0d2ebf | 12764 | esac |
7fbd9d09 | 12765 | _ACEOF |
5e0d2ebf | 12766 | |
0710d850 | 12767 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7fbd9d09 FCE |
12768 | # If the template does not know about datarootdir, expand it. |
12769 | # FIXME: This hack should be removed a few years after 2.60. | |
12770 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
0710d850 DS |
12771 | ac_sed_dataroot=' |
12772 | /datarootdir/ { | |
7fbd9d09 FCE |
12773 | p |
12774 | q | |
12775 | } | |
12776 | /@datadir@/p | |
12777 | /@docdir@/p | |
12778 | /@infodir@/p | |
12779 | /@localedir@/p | |
1ef0423a | 12780 | /@mandir@/p' |
0710d850 | 12781 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
7fbd9d09 FCE |
12782 | *datarootdir*) ac_datarootdir_seen=yes;; |
12783 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
1ef0423a | 12784 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
0710d850 | 12785 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
7fbd9d09 | 12786 | _ACEOF |
0710d850 | 12787 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7fbd9d09 FCE |
12788 | ac_datarootdir_hack=' |
12789 | s&@datadir@&$datadir&g | |
12790 | s&@docdir@&$docdir&g | |
12791 | s&@infodir@&$infodir&g | |
12792 | s&@localedir@&$localedir&g | |
12793 | s&@mandir@&$mandir&g | |
1ef0423a | 12794 | s&\\\${datarootdir}&$datarootdir&g' ;; |
7fbd9d09 | 12795 | esac |
70d28673 | 12796 | _ACEOF |
7fbd9d09 FCE |
12797 | |
12798 | # Neutralize VPATH when `$srcdir' = `.'. | |
12799 | # Shell code in configure.ac might set extrasub. | |
12800 | # FIXME: do we really want to maintain this feature? | |
0710d850 DS |
12801 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
12802 | ac_sed_extra="$ac_vpsub | |
2f1a1aea FCE |
12803 | $extrasub |
12804 | _ACEOF | |
0710d850 | 12805 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
2f1a1aea FCE |
12806 | :t |
12807 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
0710d850 | 12808 | s|@configure_input@|$ac_sed_conf_input|;t t |
7fbd9d09 | 12809 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
0710d850 | 12810 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7fbd9d09 FCE |
12811 | s&@srcdir@&$ac_srcdir&;t t |
12812 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
12813 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
12814 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
12815 | s&@builddir@&$ac_builddir&;t t | |
12816 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
12817 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
12818 | s&@INSTALL@&$ac_INSTALL&;t t | |
12819 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
12820 | $ac_datarootdir_hack | |
0710d850 | 12821 | " |
c3de29bd LB |
12822 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
12823 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
7fbd9d09 FCE |
12824 | |
12825 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
c3de29bd LB |
12826 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
12827 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
12828 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
1ef0423a | 12829 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
5d4aa1f5 | 12830 | which seems to be undefined. Please make sure it is defined" >&5 |
0710d850 | 12831 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
5d4aa1f5 | 12832 | which seems to be undefined. Please make sure it is defined" >&2;} |
7fbd9d09 | 12833 | |
c3de29bd | 12834 | rm -f "$ac_tmp/stdin" |
818ba2bc | 12835 | case $ac_file in |
c3de29bd LB |
12836 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
12837 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
0710d850 | 12838 | esac \ |
5d4aa1f5 | 12839 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
7fbd9d09 FCE |
12840 | ;; |
12841 | :H) | |
12842 | # | |
12843 | # CONFIG_HEADER | |
12844 | # | |
818ba2bc | 12845 | if test x"$ac_file" != x-; then |
0710d850 DS |
12846 | { |
12847 | $as_echo "/* $configure_input */" \ | |
c3de29bd LB |
12848 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
12849 | } >"$ac_tmp/config.h" \ | |
5d4aa1f5 | 12850 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
c3de29bd | 12851 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
1ef0423a | 12852 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
0710d850 | 12853 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
2f1a1aea | 12854 | else |
0710d850 | 12855 | rm -f "$ac_file" |
c3de29bd | 12856 | mv "$ac_tmp/config.h" "$ac_file" \ |
5d4aa1f5 | 12857 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
2f1a1aea FCE |
12858 | fi |
12859 | else | |
0710d850 | 12860 | $as_echo "/* $configure_input */" \ |
c3de29bd | 12861 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
5d4aa1f5 | 12862 | || as_fn_error $? "could not create -" "$LINENO" 5 |
2f1a1aea | 12863 | fi |
0710d850 DS |
12864 | # Compute "$ac_file"'s index in $config_headers. |
12865 | _am_arg="$ac_file" | |
2f1a1aea FCE |
12866 | _am_stamp_count=1 |
12867 | for _am_header in $config_headers :; do | |
12868 | case $_am_header in | |
0710d850 | 12869 | $_am_arg | $_am_arg:* ) |
2f1a1aea FCE |
12870 | break ;; |
12871 | * ) | |
12872 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
12873 | esac | |
12874 | done | |
0710d850 DS |
12875 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
12876 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12877 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
12878 | X"$_am_arg" : 'X\(//\)$' \| \ | |
12879 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
12880 | $as_echo X"$_am_arg" | | |
7fbd9d09 FCE |
12881 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
12882 | s//\1/ | |
12883 | q | |
12884 | } | |
12885 | /^X\(\/\/\)[^/].*/{ | |
12886 | s//\1/ | |
12887 | q | |
12888 | } | |
12889 | /^X\(\/\/\)$/{ | |
12890 | s//\1/ | |
12891 | q | |
12892 | } | |
12893 | /^X\(\/\).*/{ | |
12894 | s//\1/ | |
12895 | q | |
12896 | } | |
12897 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
12898 | ;; | |
818ba2bc | 12899 | |
1ef0423a | 12900 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
0710d850 | 12901 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
7fbd9d09 FCE |
12902 | ;; |
12903 | esac | |
818ba2bc MW |
12904 | |
12905 | ||
7fbd9d09 | 12906 | case $ac_file$ac_mode in |
0710d850 | 12907 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
d9e6d90b | 12908 | # Older Autoconf quotes --file arguments for eval, but not when files |
0710d850 DS |
12909 | # are listed without --file. Let's play safe and only enable the eval |
12910 | # if we detect the quoting. | |
12911 | case $CONFIG_FILES in | |
12912 | *\'*) eval set x "$CONFIG_FILES" ;; | |
12913 | *) set x $CONFIG_FILES ;; | |
12914 | esac | |
12915 | shift | |
12916 | for mf | |
12917 | do | |
12918 | # Strip MF so we end up with the name of the file. | |
12919 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
12920 | # Check whether this is an Automake generated Makefile or not. | |
8eef2738 | 12921 | # We used to match only the files named 'Makefile.in', but |
0710d850 DS |
12922 | # some people rename them; so instead we look at the file content. |
12923 | # Grep'ing the first line is not enough: some people post-process | |
12924 | # each Makefile.in and add a new line on top of each file to say so. | |
12925 | # Grep'ing the whole file is not good either: AIX grep has a line | |
12926 | # limit of 2048, but all sed's we know have understand at least 4000. | |
12927 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
12928 | dirpart=`$as_dirname -- "$mf" || | |
2f1a1aea FCE |
12929 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
12930 | X"$mf" : 'X\(//\)[^/]' \| \ | |
12931 | X"$mf" : 'X\(//\)$' \| \ | |
7fbd9d09 | 12932 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
0710d850 | 12933 | $as_echo X"$mf" | |
7fbd9d09 FCE |
12934 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
12935 | s//\1/ | |
12936 | q | |
12937 | } | |
12938 | /^X\(\/\/\)[^/].*/{ | |
12939 | s//\1/ | |
12940 | q | |
12941 | } | |
12942 | /^X\(\/\/\)$/{ | |
12943 | s//\1/ | |
12944 | q | |
12945 | } | |
12946 | /^X\(\/\).*/{ | |
12947 | s//\1/ | |
12948 | q | |
12949 | } | |
12950 | s/.*/./; q'` | |
0710d850 DS |
12951 | else |
12952 | continue | |
12953 | fi | |
12954 | # Extract the definition of DEPDIR, am__include, and am__quote | |
8eef2738 | 12955 | # from the Makefile without running 'make'. |
0710d850 DS |
12956 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
12957 | test -z "$DEPDIR" && continue | |
12958 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
d9e6d90b | 12959 | test -z "$am__include" && continue |
0710d850 | 12960 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
0710d850 DS |
12961 | # Find all dependency output files, they are included files with |
12962 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
12963 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
12964 | # expansion. | |
12965 | for file in `sed -n " | |
12966 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
8eef2738 | 12967 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
0710d850 DS |
12968 | # Make sure the directory exists. |
12969 | test -f "$dirpart/$file" && continue | |
12970 | fdir=`$as_dirname -- "$file" || | |
2f1a1aea FCE |
12971 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
12972 | X"$file" : 'X\(//\)[^/]' \| \ | |
12973 | X"$file" : 'X\(//\)$' \| \ | |
7fbd9d09 | 12974 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
0710d850 | 12975 | $as_echo X"$file" | |
7fbd9d09 FCE |
12976 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
12977 | s//\1/ | |
12978 | q | |
12979 | } | |
12980 | /^X\(\/\/\)[^/].*/{ | |
12981 | s//\1/ | |
12982 | q | |
12983 | } | |
12984 | /^X\(\/\/\)$/{ | |
12985 | s//\1/ | |
12986 | q | |
12987 | } | |
12988 | /^X\(\/\).*/{ | |
12989 | s//\1/ | |
12990 | q | |
12991 | } | |
12992 | s/.*/./; q'` | |
1ef0423a | 12993 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
0710d850 DS |
12994 | # echo "creating $dirpart/$file" |
12995 | echo '# dummy' > "$dirpart/$file" | |
12996 | done | |
2f1a1aea | 12997 | done |
0710d850 | 12998 | } |
2f1a1aea | 12999 | ;; |
8f223b3e FCE |
13000 | "po-directories":C) |
13001 | for ac_file in $CONFIG_FILES; do | |
13002 | # Support "outfile[:infile[:infile...]]" | |
13003 | case "$ac_file" in | |
13004 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
13005 | esac | |
13006 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
13007 | case "$ac_file" in */Makefile.in) | |
13008 | # Adjust a relative srcdir. | |
13009 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
42f767d0 | 13010 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
8f223b3e FCE |
13011 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
13012 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
13013 | # In autoconf-2.50 it is called $srcdir. | |
13014 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
13015 | case "$ac_given_srcdir" in | |
13016 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
13017 | /*) top_srcdir="$ac_given_srcdir" ;; | |
13018 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
13019 | esac | |
13020 | # Treat a directory as a PO directory if and only if it has a | |
13021 | # POTFILES.in file. This allows packages to have multiple PO | |
13022 | # directories under different names or in different locations. | |
13023 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
13024 | rm -f "$ac_dir/POTFILES" | |
13025 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
42f767d0 JL |
13026 | gt_tab=`printf '\t'` |
13027 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
8f223b3e FCE |
13028 | POMAKEFILEDEPS="POTFILES.in" |
13029 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend | |
13030 | # on $ac_dir but don't depend on user-specified configuration | |
13031 | # parameters. | |
13032 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
13033 | # The LINGUAS file contains the set of available languages. | |
13034 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
13035 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
13036 | fi | |
13037 | ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
42f767d0 | 13038 | # Hide the ALL_LINGUAS assignment from automake < 1.5. |
8f223b3e FCE |
13039 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
13040 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
13041 | else | |
13042 | # The set of available languages was given in configure.in. | |
42f767d0 | 13043 | # Hide the ALL_LINGUAS assignment from automake < 1.5. |
8f223b3e FCE |
13044 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
13045 | fi | |
13046 | # Compute POFILES | |
13047 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) | |
13048 | # Compute UPDATEPOFILES | |
13049 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) | |
13050 | # Compute DUMMYPOFILES | |
13051 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) | |
13052 | # Compute GMOFILES | |
13053 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) | |
13054 | case "$ac_given_srcdir" in | |
13055 | .) srcdirpre= ;; | |
13056 | *) srcdirpre='$(srcdir)/' ;; | |
13057 | esac | |
13058 | POFILES= | |
13059 | UPDATEPOFILES= | |
13060 | DUMMYPOFILES= | |
13061 | GMOFILES= | |
13062 | for lang in $ALL_LINGUAS; do | |
13063 | POFILES="$POFILES $srcdirpre$lang.po" | |
13064 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
13065 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
13066 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
13067 | done | |
13068 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
13069 | # environment variable. | |
13070 | INST_LINGUAS= | |
13071 | if test -n "$ALL_LINGUAS"; then | |
13072 | for presentlang in $ALL_LINGUAS; do | |
13073 | useit=no | |
13074 | if test "%UNSET%" != "$LINGUAS"; then | |
13075 | desiredlanguages="$LINGUAS" | |
13076 | else | |
13077 | desiredlanguages="$ALL_LINGUAS" | |
13078 | fi | |
13079 | for desiredlang in $desiredlanguages; do | |
13080 | # Use the presentlang catalog if desiredlang is | |
13081 | # a. equal to presentlang, or | |
13082 | # b. a variant of presentlang (because in this case, | |
13083 | # presentlang can be used as a fallback for messages | |
13084 | # which are not translated in the desiredlang catalog). | |
13085 | case "$desiredlang" in | |
13086 | "$presentlang"*) useit=yes;; | |
13087 | esac | |
13088 | done | |
13089 | if test $useit = yes; then | |
13090 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
13091 | fi | |
13092 | done | |
13093 | fi | |
13094 | CATALOGS= | |
13095 | if test -n "$INST_LINGUAS"; then | |
13096 | for lang in $INST_LINGUAS; do | |
13097 | CATALOGS="$CATALOGS $lang.gmo" | |
13098 | done | |
13099 | fi | |
13100 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
13101 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" | |
13102 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
13103 | if test -f "$f"; then | |
13104 | case "$f" in | |
13105 | *.orig | *.bak | *~) ;; | |
13106 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
13107 | esac | |
13108 | fi | |
13109 | done | |
13110 | fi | |
13111 | ;; | |
13112 | esac | |
13113 | done ;; | |
7fbd9d09 | 13114 | "run-stap":F) chmod +x run-stap ;; |
e4aaabda | 13115 | "dtrace":F) chmod +x dtrace ;; |
d885563b | 13116 | "java/stapbm":F) chmod +x java/stapbm ;; |
97859b9d | 13117 | "staprun/run-staprun":F) chmod +x staprun/run-staprun ;; |
42f767d0 JL |
13118 | "staprun/guest/stapshd":F) chmod +x staprun/guest/stapshd ;; |
13119 | "staprun/guest/stapsh-daemon":F) chmod +x staprun/guest/stapsh-daemon ;; | |
53ade4da | 13120 | "doc/beginners":C) rm -f $ac_abs_top_builddir/doc/beginners/en-US $ac_abs_top_builddir/doc/beginners/build/en-US/testsuite && mkdir -p $ac_abs_top_builddir/doc/beginners/build/en-US && ln -s $ac_abs_top_srcdir/doc/SystemTap_Beginners_Guide/en-US $ac_abs_top_builddir/doc/beginners/en-US && ln -s $ac_abs_top_srcdir/testsuite $ac_abs_top_builddir/doc/beginners/build/en-US/testsuite ;; |
7fbd9d09 | 13121 | |
2f1a1aea | 13122 | esac |
7fbd9d09 | 13123 | done # for ac_tag |
2f1a1aea | 13124 | |
2f1a1aea | 13125 | |
1ef0423a | 13126 | as_fn_exit 0 |
2f1a1aea | 13127 | _ACEOF |
2f1a1aea FCE |
13128 | ac_clean_files=$ac_clean_files_save |
13129 | ||
0710d850 | 13130 | test $ac_write_fail = 0 || |
5d4aa1f5 | 13131 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
0710d850 | 13132 | |
2f1a1aea FCE |
13133 | |
13134 | # configure is writing to config.log, and then calls config.status. | |
13135 | # config.status does its own redirection, appending to config.log. | |
13136 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
13137 | # by configure, so config.status won't be able to write to it; its | |
13138 | # output is simply discarded. So we exec the FD to /dev/null, | |
13139 | # effectively closing config.log, so it can be properly (re)opened and | |
13140 | # appended to by config.status. When coming back to configure, we | |
13141 | # need to make the FD available again. | |
13142 | if test "$no_create" != yes; then | |
13143 | ac_cs_success=: | |
13144 | ac_config_status_args= | |
13145 | test "$silent" = yes && | |
13146 | ac_config_status_args="$ac_config_status_args --quiet" | |
13147 | exec 5>/dev/null | |
13148 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
13149 | exec 5>>config.log | |
13150 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
13151 | # would make configure fail if this is the last instruction. | |
5d4aa1f5 | 13152 | $ac_cs_success || as_fn_exit 1 |
2f1a1aea FCE |
13153 | fi |
13154 | ||
5ba96b90 FCE |
13155 | # |
13156 | # CONFIG_SUBDIRS section. | |
13157 | # | |
13158 | if test "$no_recursion" != yes; then | |
13159 | ||
0710d850 DS |
13160 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments |
13161 | # so they do not pile up. | |
5ba96b90 FCE |
13162 | ac_sub_configure_args= |
13163 | ac_prev= | |
7fbd9d09 FCE |
13164 | eval "set x $ac_configure_args" |
13165 | shift | |
13166 | for ac_arg | |
13167 | do | |
5ba96b90 FCE |
13168 | if test -n "$ac_prev"; then |
13169 | ac_prev= | |
13170 | continue | |
13171 | fi | |
13172 | case $ac_arg in | |
13173 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
13174 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
13175 | ac_prev=cache_file ;; | |
13176 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
13177 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
13178 | | --c=*) | |
13179 | ;; | |
13180 | --config-cache | -C) | |
13181 | ;; | |
13182 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
13183 | ac_prev=srcdir ;; | |
13184 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
13185 | ;; | |
13186 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
13187 | ac_prev=prefix ;; | |
13188 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
13189 | ;; | |
0710d850 DS |
13190 | --disable-option-checking) |
13191 | ;; | |
7fbd9d09 FCE |
13192 | *) |
13193 | case $ac_arg in | |
0710d850 | 13194 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
7fbd9d09 | 13195 | esac |
1ef0423a | 13196 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; |
5ba96b90 FCE |
13197 | esac |
13198 | done | |
13199 | ||
13200 | # Always prepend --prefix to ensure using the same prefix | |
13201 | # in subdir configurations. | |
7fbd9d09 FCE |
13202 | ac_arg="--prefix=$prefix" |
13203 | case $ac_arg in | |
0710d850 | 13204 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
7fbd9d09 FCE |
13205 | esac |
13206 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
13207 | ||
13208 | # Pass --silent | |
13209 | if test "$silent" = yes; then | |
13210 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
13211 | fi | |
daae650d | 13212 | |
0710d850 DS |
13213 | # Always prepend --disable-option-checking to silence warnings, since |
13214 | # different subdirs can have different --enable and --with options. | |
13215 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
13216 | ||
5ba96b90 FCE |
13217 | ac_popdir=`pwd` |
13218 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
13219 | ||
13220 | # Do not complain, so a configure script can configure whichever | |
13221 | # parts of a large source tree are present. | |
7fbd9d09 FCE |
13222 | test -d "$srcdir/$ac_dir" || continue |
13223 | ||
13224 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
1ef0423a | 13225 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 |
0710d850 | 13226 | $as_echo "$ac_msg" >&6 |
1ef0423a | 13227 | as_dir="$ac_dir"; as_fn_mkdir_p |
5ba96b90 FCE |
13228 | ac_builddir=. |
13229 | ||
7fbd9d09 FCE |
13230 | case "$ac_dir" in |
13231 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13232 | *) | |
0710d850 | 13233 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7fbd9d09 | 13234 | # A ".." for each directory in $ac_dir_suffix. |
0710d850 | 13235 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7fbd9d09 FCE |
13236 | case $ac_top_builddir_sub in |
13237 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13238 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
13239 | esac ;; | |
13240 | esac | |
13241 | ac_abs_top_builddir=$ac_pwd | |
13242 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
13243 | # for backward compatibility: | |
13244 | ac_top_builddir=$ac_top_build_prefix | |
5ba96b90 FCE |
13245 | |
13246 | case $srcdir in | |
7fbd9d09 | 13247 | .) # We are building in place. |
5ba96b90 | 13248 | ac_srcdir=. |
7fbd9d09 FCE |
13249 | ac_top_srcdir=$ac_top_builddir_sub |
13250 | ac_abs_top_srcdir=$ac_pwd ;; | |
13251 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
5ba96b90 | 13252 | ac_srcdir=$srcdir$ac_dir_suffix; |
7fbd9d09 FCE |
13253 | ac_top_srcdir=$srcdir |
13254 | ac_abs_top_srcdir=$srcdir ;; | |
13255 | *) # Relative name. | |
13256 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
13257 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
13258 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
5ba96b90 | 13259 | esac |
7fbd9d09 | 13260 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
5ba96b90 FCE |
13261 | |
13262 | ||
7fbd9d09 | 13263 | cd "$ac_dir" |
5ba96b90 FCE |
13264 | |
13265 | # Check for guested configure; otherwise get Cygnus style configure. | |
7fbd9d09 FCE |
13266 | if test -f "$ac_srcdir/configure.gnu"; then |
13267 | ac_sub_configure=$ac_srcdir/configure.gnu | |
13268 | elif test -f "$ac_srcdir/configure"; then | |
13269 | ac_sub_configure=$ac_srcdir/configure | |
13270 | elif test -f "$ac_srcdir/configure.in"; then | |
13271 | # This should be Cygnus configure. | |
13272 | ac_sub_configure=$ac_aux_dir/configure | |
5ba96b90 | 13273 | else |
1ef0423a | 13274 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 |
0710d850 | 13275 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
5ba96b90 FCE |
13276 | ac_sub_configure= |
13277 | fi | |
13278 | ||
13279 | # The recursion is here. | |
13280 | if test -n "$ac_sub_configure"; then | |
13281 | # Make the cache file name correct relative to the subdirectory. | |
13282 | case $cache_file in | |
13283 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
7fbd9d09 FCE |
13284 | *) # Relative name. |
13285 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
5ba96b90 FCE |
13286 | esac |
13287 | ||
1ef0423a | 13288 | { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
0710d850 | 13289 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
5ba96b90 | 13290 | # The eval makes quoting arguments work. |
7fbd9d09 FCE |
13291 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
13292 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
5d4aa1f5 | 13293 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 |
5ba96b90 FCE |
13294 | fi |
13295 | ||
7fbd9d09 | 13296 | cd "$ac_popdir" |
5ba96b90 FCE |
13297 | done |
13298 | fi | |
0710d850 | 13299 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
1ef0423a | 13300 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
0710d850 DS |
13301 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
13302 | fi | |
5ba96b90 | 13303 | |
4d9087fc | 13304 | |
af29024d | 13305 | if test "${prefix}" = "/usr/local"; then |
1ef0423a | 13306 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
0710d850 | 13307 | $as_echo "$as_me: " >&6;} |
1ef0423a | 13308 | { $as_echo "$as_me:${as_lineno-$LINENO}: For a private or temporary build of systemtap, we recommend" >&5 |
0710d850 | 13309 | $as_echo "$as_me: For a private or temporary build of systemtap, we recommend" >&6;} |
1ef0423a | 13310 | { $as_echo "$as_me:${as_lineno-$LINENO}: configuring with a prefix. For example, try" >&5 |
0710d850 | 13311 | $as_echo "$as_me: configuring with a prefix. For example, try" >&6;} |
1ef0423a | 13312 | { $as_echo "$as_me:${as_lineno-$LINENO}: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&5 |
0710d850 | 13313 | $as_echo "$as_me: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&6;} |
1ef0423a | 13314 | { $as_echo "$as_me:${as_lineno-$LINENO}: Running systemtap uninstalled, entirely out of the build tree," >&5 |
0710d850 | 13315 | $as_echo "$as_me: Running systemtap uninstalled, entirely out of the build tree," >&6;} |
1ef0423a | 13316 | { $as_echo "$as_me:${as_lineno-$LINENO}: is not supported." >&5 |
0710d850 | 13317 | $as_echo "$as_me: is not supported." >&6;} |
af29024d | 13318 | fi |