]>
Commit | Line | Data |
---|---|---|
2f1a1aea FCE |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
27aba29a | 3 | # Generated by GNU Autoconf 2.63 for systemtap 0.9.5. |
2f1a1aea FCE |
4 | # |
5 | # Report bugs to <systemtap@sources.redhat.com>. | |
6 | # | |
7fbd9d09 | 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
27aba29a | 8 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
2f1a1aea FCE |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## --------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## --------------------- ## | |
14 | ||
7fbd9d09 FCE |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
2f1a1aea FCE |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
18 | emulate sh | |
19 | NULLCMD=: | |
27aba29a | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
2f1a1aea FCE |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
7fbd9d09 FCE |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in | |
26 | *posix*) set -o posix ;; | |
27 | esac | |
28 | ||
29 | fi | |
30 | ||
31 | ||
32 | ||
33 | ||
34 | # PATH needs CR | |
35 | # Avoid depending upon Character Ranges. | |
36 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
37 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
38 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
39 | as_cr_digits='0123456789' | |
40 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
41 | ||
27aba29a JS |
42 | as_nl=' |
43 | ' | |
44 | export as_nl | |
45 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
46 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
47 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
48 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
49 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
50 | as_echo='printf %s\n' | |
51 | as_echo_n='printf %s' | |
52 | else | |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
7fbd9d09 | 56 | else |
27aba29a JS |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
60 | case $arg in | |
61 | *"$as_nl"*) | |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
7fbd9d09 | 69 | fi |
27aba29a JS |
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 FCE |
82 | |
83 | # Support unset when possible. | |
84 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
85 | as_unset=unset | |
86 | else | |
87 | as_unset=false | |
88 | fi | |
89 | ||
90 | ||
7fbd9d09 FCE |
91 | # IFS |
92 | # We need space, tab and new line, in precisely that order. Quoting is | |
93 | # there to prevent editors from complaining about space-tab. | |
94 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
95 | # splitting by setting IFS to empty value.) | |
7fbd9d09 FCE |
96 | IFS=" "" $as_nl" |
97 | ||
98 | # Find who we are. Look in the path if we contain no directory separator. | |
99 | case $0 in | |
100 | *[\\/]* ) as_myself=$0 ;; | |
101 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
102 | for as_dir in $PATH | |
103 | do | |
104 | IFS=$as_save_IFS | |
105 | test -z "$as_dir" && as_dir=. | |
106 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
107 | done | |
108 | IFS=$as_save_IFS | |
109 | ||
110 | ;; | |
111 | esac | |
112 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
113 | # in which case we are not to be found in the path. | |
114 | if test "x$as_myself" = x; then | |
115 | as_myself=$0 | |
116 | fi | |
117 | if test ! -f "$as_myself"; then | |
27aba29a | 118 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7fbd9d09 FCE |
119 | { (exit 1); exit 1; } |
120 | fi | |
121 | ||
2f1a1aea | 122 | # Work around bugs in pre-3.0 UWIN ksh. |
7fbd9d09 FCE |
123 | for as_var in ENV MAIL MAILPATH |
124 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
125 | done | |
2f1a1aea FCE |
126 | PS1='$ ' |
127 | PS2='> ' | |
128 | PS4='+ ' | |
129 | ||
130 | # NLS nuisances. | |
27aba29a JS |
131 | LC_ALL=C |
132 | export LC_ALL | |
133 | LANGUAGE=C | |
134 | export LANGUAGE | |
2f1a1aea FCE |
135 | |
136 | # Required to use basename. | |
7fbd9d09 FCE |
137 | if expr a : '\(a\)' >/dev/null 2>&1 && |
138 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
2f1a1aea FCE |
139 | as_expr=expr |
140 | else | |
141 | as_expr=false | |
142 | fi | |
143 | ||
7fbd9d09 | 144 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
2f1a1aea FCE |
145 | as_basename=basename |
146 | else | |
147 | as_basename=false | |
148 | fi | |
149 | ||
150 | ||
151 | # Name of the executable. | |
7fbd9d09 | 152 | as_me=`$as_basename -- "$0" || |
2f1a1aea FCE |
153 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
154 | X"$0" : 'X\(//\)$' \| \ | |
7fbd9d09 | 155 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
27aba29a | 156 | $as_echo X/"$0" | |
7fbd9d09 FCE |
157 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
158 | s//\1/ | |
159 | q | |
160 | } | |
161 | /^X\/\(\/\/\)$/{ | |
162 | s//\1/ | |
163 | q | |
164 | } | |
165 | /^X\/\(\/\).*/{ | |
166 | s//\1/ | |
167 | q | |
168 | } | |
169 | s/.*/./; q'` | |
70d28673 | 170 | |
7fbd9d09 FCE |
171 | # CDPATH. |
172 | $as_unset CDPATH | |
5e0d2ebf | 173 | |
5e0d2ebf | 174 | |
7fbd9d09 FCE |
175 | if test "x$CONFIG_SHELL" = x; then |
176 | if (eval ":") 2>/dev/null; then | |
177 | as_have_required=yes | |
178 | else | |
179 | as_have_required=no | |
5e0d2ebf DS |
180 | fi |
181 | ||
27aba29a | 182 | if test $as_have_required = yes && (eval ": |
7fbd9d09 FCE |
183 | (as_func_return () { |
184 | (exit \$1) | |
185 | } | |
186 | as_func_success () { | |
187 | as_func_return 0 | |
188 | } | |
189 | as_func_failure () { | |
190 | as_func_return 1 | |
191 | } | |
192 | as_func_ret_success () { | |
193 | return 0 | |
194 | } | |
195 | as_func_ret_failure () { | |
196 | return 1 | |
197 | } | |
5e0d2ebf | 198 | |
7fbd9d09 FCE |
199 | exitcode=0 |
200 | if as_func_success; then | |
201 | : | |
202 | else | |
203 | exitcode=1 | |
204 | echo as_func_success failed. | |
205 | fi | |
5e0d2ebf | 206 | |
7fbd9d09 FCE |
207 | if as_func_failure; then |
208 | exitcode=1 | |
209 | echo as_func_failure succeeded. | |
210 | fi | |
211 | ||
212 | if as_func_ret_success; then | |
213 | : | |
214 | else | |
215 | exitcode=1 | |
216 | echo as_func_ret_success failed. | |
217 | fi | |
218 | ||
219 | if as_func_ret_failure; then | |
220 | exitcode=1 | |
221 | echo as_func_ret_failure succeeded. | |
222 | fi | |
223 | ||
224 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
225 | : | |
226 | else | |
227 | exitcode=1 | |
228 | echo positional parameters were not saved. | |
229 | fi | |
230 | ||
231 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
232 | ||
233 | ( | |
234 | as_lineno_1=\$LINENO | |
235 | as_lineno_2=\$LINENO | |
236 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
237 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
238 | ") 2> /dev/null; then | |
239 | : | |
240 | else | |
241 | as_candidate_shells= | |
2f1a1aea FCE |
242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
243 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
244 | do | |
245 | IFS=$as_save_IFS | |
246 | test -z "$as_dir" && as_dir=. | |
7fbd9d09 | 247 | case $as_dir in |
2f1a1aea | 248 | /*) |
7fbd9d09 FCE |
249 | for as_base in sh bash ksh sh5; do |
250 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
251 | done;; | |
252 | esac | |
253 | done | |
254 | IFS=$as_save_IFS | |
255 | ||
256 | ||
257 | for as_shell in $as_candidate_shells $SHELL; do | |
258 | # Try only shells that exist, to save several forks. | |
259 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
260 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
262 | emulate sh | |
263 | NULLCMD=: | |
27aba29a | 264 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
7fbd9d09 FCE |
265 | # is contrary to our usage. Disable this feature. |
266 | alias -g '${1+"$@"}'='"$@"' | |
267 | setopt NO_GLOB_SUBST | |
268 | else | |
269 | case `(set -o) 2>/dev/null` in | |
270 | *posix*) set -o posix ;; | |
271 | esac | |
272 | ||
273 | fi | |
274 | ||
275 | ||
276 | : | |
277 | _ASEOF | |
278 | }; then | |
279 | CONFIG_SHELL=$as_shell | |
280 | as_have_required=yes | |
281 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
282 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
283 | emulate sh | |
284 | NULLCMD=: | |
27aba29a | 285 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
7fbd9d09 FCE |
286 | # is contrary to our usage. Disable this feature. |
287 | alias -g '${1+"$@"}'='"$@"' | |
288 | setopt NO_GLOB_SUBST | |
289 | else | |
290 | case `(set -o) 2>/dev/null` in | |
291 | *posix*) set -o posix ;; | |
292 | esac | |
293 | ||
294 | fi | |
295 | ||
296 | ||
297 | : | |
298 | (as_func_return () { | |
299 | (exit $1) | |
300 | } | |
301 | as_func_success () { | |
302 | as_func_return 0 | |
303 | } | |
304 | as_func_failure () { | |
305 | as_func_return 1 | |
306 | } | |
307 | as_func_ret_success () { | |
308 | return 0 | |
309 | } | |
310 | as_func_ret_failure () { | |
311 | return 1 | |
312 | } | |
313 | ||
314 | exitcode=0 | |
315 | if as_func_success; then | |
316 | : | |
317 | else | |
318 | exitcode=1 | |
319 | echo as_func_success failed. | |
320 | fi | |
321 | ||
322 | if as_func_failure; then | |
323 | exitcode=1 | |
324 | echo as_func_failure succeeded. | |
325 | fi | |
326 | ||
327 | if as_func_ret_success; then | |
328 | : | |
329 | else | |
330 | exitcode=1 | |
331 | echo as_func_ret_success failed. | |
332 | fi | |
333 | ||
334 | if as_func_ret_failure; then | |
335 | exitcode=1 | |
336 | echo as_func_ret_failure succeeded. | |
337 | fi | |
338 | ||
339 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
340 | : | |
341 | else | |
342 | exitcode=1 | |
343 | echo positional parameters were not saved. | |
344 | fi | |
345 | ||
346 | test $exitcode = 0) || { (exit 1); exit 1; } | |
347 | ||
348 | ( | |
5e0d2ebf DS |
349 | as_lineno_1=$LINENO |
350 | as_lineno_2=$LINENO | |
351 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
7fbd9d09 FCE |
352 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
353 | ||
354 | _ASEOF | |
355 | }; then | |
356 | break | |
357 | fi | |
358 | ||
359 | fi | |
360 | ||
361 | done | |
362 | ||
363 | if test "x$CONFIG_SHELL" != x; then | |
364 | for as_var in BASH_ENV ENV | |
27aba29a JS |
365 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
366 | done | |
367 | export CONFIG_SHELL | |
368 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
7fbd9d09 FCE |
369 | fi |
370 | ||
371 | ||
372 | if test $as_have_required = no; then | |
373 | echo This script requires a shell more modern than all the | |
374 | echo shells that I found on your system. Please install a | |
375 | echo modern shell, or manually run the script under such a | |
376 | echo shell if you do have one. | |
377 | { (exit 1); exit 1; } | |
378 | fi | |
379 | ||
380 | ||
381 | fi | |
382 | ||
383 | fi | |
384 | ||
385 | ||
386 | ||
387 | (eval "as_func_return () { | |
388 | (exit \$1) | |
389 | } | |
390 | as_func_success () { | |
391 | as_func_return 0 | |
392 | } | |
393 | as_func_failure () { | |
394 | as_func_return 1 | |
395 | } | |
396 | as_func_ret_success () { | |
397 | return 0 | |
398 | } | |
399 | as_func_ret_failure () { | |
400 | return 1 | |
401 | } | |
402 | ||
403 | exitcode=0 | |
404 | if as_func_success; then | |
405 | : | |
406 | else | |
407 | exitcode=1 | |
408 | echo as_func_success failed. | |
409 | fi | |
410 | ||
411 | if as_func_failure; then | |
412 | exitcode=1 | |
413 | echo as_func_failure succeeded. | |
414 | fi | |
415 | ||
416 | if as_func_ret_success; then | |
417 | : | |
418 | else | |
419 | exitcode=1 | |
420 | echo as_func_ret_success failed. | |
421 | fi | |
422 | ||
423 | if as_func_ret_failure; then | |
424 | exitcode=1 | |
425 | echo as_func_ret_failure succeeded. | |
426 | fi | |
427 | ||
428 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
429 | : | |
430 | else | |
431 | exitcode=1 | |
432 | echo positional parameters were not saved. | |
433 | fi | |
434 | ||
435 | test \$exitcode = 0") || { | |
436 | echo No shell found that supports shell functions. | |
27aba29a JS |
437 | echo Please tell bug-autoconf@gnu.org about your system, |
438 | echo including any error possibly output before this message. | |
439 | echo This can help us improve future autoconf versions. | |
440 | echo Configuration will now proceed without shell functions. | |
7fbd9d09 FCE |
441 | } |
442 | ||
443 | ||
444 | ||
445 | as_lineno_1=$LINENO | |
446 | as_lineno_2=$LINENO | |
447 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
448 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
2f1a1aea FCE |
449 | |
450 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
451 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7fbd9d09 FCE |
452 | # line-number line after each line using $LINENO; the second 'sed' |
453 | # does the real work. The second script uses 'N' to pair each | |
454 | # line-number line with the line containing $LINENO, and appends | |
455 | # trailing '-' during substitution so that $LINENO is not a special | |
456 | # case at line end. | |
2f1a1aea | 457 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7fbd9d09 FCE |
458 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
459 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
460 | sed -n ' | |
461 | p | |
462 | /[$]LINENO/= | |
463 | ' <$as_myself | | |
2f1a1aea | 464 | sed ' |
7fbd9d09 FCE |
465 | s/[$]LINENO.*/&-/ |
466 | t lineno | |
467 | b | |
468 | :lineno | |
2f1a1aea | 469 | N |
7fbd9d09 FCE |
470 | :loop |
471 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
2f1a1aea | 472 | t loop |
7fbd9d09 | 473 | s/-\n.*// |
2f1a1aea | 474 | ' >$as_me.lineno && |
7fbd9d09 | 475 | chmod +x "$as_me.lineno" || |
27aba29a | 476 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
2f1a1aea FCE |
477 | { (exit 1); exit 1; }; } |
478 | ||
479 | # Don't try to exec as it changes $[0], causing all sort of problems | |
480 | # (the dirname of $[0] is not the place where we might find the | |
7fbd9d09 FCE |
481 | # original and so on. Autoconf is especially sensitive to this). |
482 | . "./$as_me.lineno" | |
2f1a1aea FCE |
483 | # Exit status is that of the last command. |
484 | exit | |
485 | } | |
486 | ||
487 | ||
7fbd9d09 FCE |
488 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
489 | as_dirname=dirname | |
490 | else | |
491 | as_dirname=false | |
492 | fi | |
493 | ||
494 | ECHO_C= ECHO_N= ECHO_T= | |
495 | case `echo -n x` in | |
496 | -n*) | |
497 | case `echo 'x\c'` in | |
498 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
499 | *) ECHO_C='\c';; | |
500 | esac;; | |
501 | *) | |
502 | ECHO_N='-n';; | |
2f1a1aea | 503 | esac |
7fbd9d09 FCE |
504 | if expr a : '\(a\)' >/dev/null 2>&1 && |
505 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
2f1a1aea FCE |
506 | as_expr=expr |
507 | else | |
508 | as_expr=false | |
509 | fi | |
510 | ||
511 | rm -f conf$$ conf$$.exe conf$$.file | |
7fbd9d09 FCE |
512 | if test -d conf$$.dir; then |
513 | rm -f conf$$.dir/conf$$.file | |
514 | else | |
515 | rm -f conf$$.dir | |
27aba29a JS |
516 | mkdir conf$$.dir 2>/dev/null |
517 | fi | |
518 | if (echo >conf$$.file) 2>/dev/null; then | |
519 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
520 | as_ln_s='ln -s' | |
521 | # ... but there are two gotchas: | |
522 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
523 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
524 | # In both cases, we have to default to `cp -p'. | |
525 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
526 | as_ln_s='cp -p' | |
527 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
528 | as_ln_s=ln | |
529 | else | |
2f1a1aea | 530 | as_ln_s='cp -p' |
27aba29a | 531 | fi |
2f1a1aea FCE |
532 | else |
533 | as_ln_s='cp -p' | |
534 | fi | |
7fbd9d09 FCE |
535 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
536 | rmdir conf$$.dir 2>/dev/null | |
2f1a1aea FCE |
537 | |
538 | if mkdir -p . 2>/dev/null; then | |
539 | as_mkdir_p=: | |
540 | else | |
541 | test -d ./-p && rmdir ./-p | |
542 | as_mkdir_p=false | |
543 | fi | |
544 | ||
7fbd9d09 FCE |
545 | if test -x / >/dev/null 2>&1; then |
546 | as_test_x='test -x' | |
547 | else | |
548 | if ls -dL / >/dev/null 2>&1; then | |
549 | as_ls_L_option=L | |
550 | else | |
551 | as_ls_L_option= | |
552 | fi | |
553 | as_test_x=' | |
554 | eval sh -c '\'' | |
555 | if test -d "$1"; then | |
27aba29a | 556 | test -d "$1/."; |
7fbd9d09 FCE |
557 | else |
558 | case $1 in | |
27aba29a | 559 | -*)set "./$1";; |
7fbd9d09 FCE |
560 | esac; |
561 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
562 | ???[sx]*):;;*)false;;esac;fi | |
563 | '\'' sh | |
564 | ' | |
565 | fi | |
566 | as_executable_p=$as_test_x | |
2f1a1aea FCE |
567 | |
568 | # Sed expression to map a string onto a valid CPP name. | |
569 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
570 | ||
571 | # Sed expression to map a string onto a valid variable name. | |
572 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
573 | ||
574 | ||
2f1a1aea | 575 | |
7fbd9d09 | 576 | exec 7<&0 </dev/null 6>&1 |
2f1a1aea FCE |
577 | |
578 | # Name of the host. | |
579 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
580 | # so uname gets run too. | |
581 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
582 | ||
2f1a1aea FCE |
583 | # |
584 | # Initializations. | |
585 | # | |
586 | ac_default_prefix=/usr/local | |
7fbd9d09 | 587 | ac_clean_files= |
2f1a1aea | 588 | ac_config_libobj_dir=. |
7fbd9d09 | 589 | LIBOBJS= |
2f1a1aea FCE |
590 | cross_compiling=no |
591 | subdirs= | |
592 | MFLAGS= | |
593 | MAKEFLAGS= | |
594 | SHELL=${CONFIG_SHELL-/bin/sh} | |
595 | ||
2f1a1aea FCE |
596 | # Identity of this package. |
597 | PACKAGE_NAME='systemtap' | |
598 | PACKAGE_TARNAME='systemtap' | |
27aba29a JS |
599 | PACKAGE_VERSION='0.9.5' |
600 | PACKAGE_STRING='systemtap 0.9.5' | |
2f1a1aea FCE |
601 | PACKAGE_BUGREPORT='systemtap@sources.redhat.com' |
602 | ||
603 | # Factoring default headers for most tests. | |
604 | ac_includes_default="\ | |
605 | #include <stdio.h> | |
7fbd9d09 | 606 | #ifdef HAVE_SYS_TYPES_H |
2f1a1aea FCE |
607 | # include <sys/types.h> |
608 | #endif | |
7fbd9d09 | 609 | #ifdef HAVE_SYS_STAT_H |
2f1a1aea FCE |
610 | # include <sys/stat.h> |
611 | #endif | |
7fbd9d09 | 612 | #ifdef STDC_HEADERS |
2f1a1aea FCE |
613 | # include <stdlib.h> |
614 | # include <stddef.h> | |
615 | #else | |
7fbd9d09 | 616 | # ifdef HAVE_STDLIB_H |
2f1a1aea FCE |
617 | # include <stdlib.h> |
618 | # endif | |
619 | #endif | |
7fbd9d09 FCE |
620 | #ifdef HAVE_STRING_H |
621 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
2f1a1aea FCE |
622 | # include <memory.h> |
623 | # endif | |
624 | # include <string.h> | |
625 | #endif | |
7fbd9d09 | 626 | #ifdef HAVE_STRINGS_H |
2f1a1aea FCE |
627 | # include <strings.h> |
628 | #endif | |
7fbd9d09 | 629 | #ifdef HAVE_INTTYPES_H |
2f1a1aea | 630 | # include <inttypes.h> |
2f1a1aea | 631 | #endif |
7fbd9d09 FCE |
632 | #ifdef HAVE_STDINT_H |
633 | # include <stdint.h> | |
634 | #endif | |
635 | #ifdef HAVE_UNISTD_H | |
2f1a1aea FCE |
636 | # include <unistd.h> |
637 | #endif" | |
638 | ||
27aba29a JS |
639 | enable_option_checking=no |
640 | ac_subst_vars='LTLIBOBJS | |
641 | LIBOBJS | |
642 | subdirs | |
643 | CXXCPP | |
644 | PROCFLAGS | |
645 | DATE | |
646 | stap_LIBS | |
647 | elfutils_abs_srcdir | |
648 | BUILD_ELFUTILS_FALSE | |
649 | BUILD_ELFUTILS_TRUE | |
650 | BUILD_SERVER_FALSE | |
651 | BUILD_SERVER_TRUE | |
652 | nspr_CFLAGS | |
653 | nss_CFLAGS | |
654 | BUILD_REFDOCS_FALSE | |
655 | BUILD_REFDOCS_TRUE | |
656 | have_xmlto | |
657 | BUILD_DOCS_FALSE | |
658 | BUILD_DOCS_TRUE | |
659 | have_latex2html | |
660 | have_ps2pdf | |
661 | have_dvips | |
662 | have_latex | |
663 | BUILD_CRASHMOD_FALSE | |
664 | BUILD_CRASHMOD_TRUE | |
665 | staplog_CPPFLAGS | |
666 | sqlite3_LIBS | |
667 | PIECXXFLAGS | |
668 | PIECFLAGS | |
669 | PIELDFLAGS | |
670 | RANLIB | |
671 | ANSI2KNR | |
672 | U | |
673 | EGREP | |
674 | GREP | |
675 | CPP | |
676 | am__fastdepCXX_FALSE | |
677 | am__fastdepCXX_TRUE | |
678 | CXXDEPMODE | |
679 | ac_ct_CXX | |
680 | CXXFLAGS | |
681 | CXX | |
682 | am__fastdepCC_FALSE | |
683 | am__fastdepCC_TRUE | |
684 | CCDEPMODE | |
685 | AMDEPBACKSLASH | |
686 | AMDEP_FALSE | |
687 | AMDEP_TRUE | |
688 | am__quote | |
689 | am__include | |
690 | DEPDIR | |
691 | OBJEXT | |
692 | EXEEXT | |
693 | ac_ct_CC | |
694 | CPPFLAGS | |
695 | LDFLAGS | |
696 | CFLAGS | |
697 | CC | |
698 | LN_S | |
7fbd9d09 | 699 | MAINT |
27aba29a JS |
700 | MAINTAINER_MODE_FALSE |
701 | MAINTAINER_MODE_TRUE | |
702 | am__untar | |
703 | am__tar | |
704 | AMTAR | |
705 | am__leading_dot | |
706 | SET_MAKE | |
707 | AWK | |
708 | mkdir_p | |
7fbd9d09 | 709 | MKDIR_P |
27aba29a JS |
710 | INSTALL_STRIP_PROGRAM |
711 | STRIP | |
712 | install_sh | |
713 | MAKEINFO | |
714 | AUTOHEADER | |
715 | AUTOMAKE | |
716 | AUTOCONF | |
717 | ACLOCAL | |
718 | VERSION | |
719 | PACKAGE | |
720 | CYGPATH_W | |
721 | am__isrc | |
722 | INSTALL_DATA | |
723 | INSTALL_SCRIPT | |
724 | INSTALL_PROGRAM | |
725 | target_alias | |
726 | host_alias | |
727 | build_alias | |
728 | LIBS | |
729 | ECHO_T | |
730 | ECHO_N | |
731 | ECHO_C | |
732 | DEFS | |
733 | mandir | |
734 | localedir | |
735 | libdir | |
736 | psdir | |
737 | pdfdir | |
738 | dvidir | |
739 | htmldir | |
740 | infodir | |
741 | docdir | |
742 | oldincludedir | |
743 | includedir | |
744 | localstatedir | |
745 | sharedstatedir | |
746 | sysconfdir | |
747 | datadir | |
748 | datarootdir | |
749 | libexecdir | |
750 | sbindir | |
751 | bindir | |
752 | program_transform_name | |
753 | prefix | |
754 | exec_prefix | |
755 | PACKAGE_BUGREPORT | |
756 | PACKAGE_STRING | |
757 | PACKAGE_VERSION | |
758 | PACKAGE_TARNAME | |
759 | PACKAGE_NAME | |
760 | PATH_SEPARATOR | |
761 | SHELL' | |
2f1a1aea | 762 | ac_subst_files='' |
27aba29a JS |
763 | ac_user_opts=' |
764 | enable_option_checking | |
765 | enable_maintainer_mode | |
766 | enable_dependency_tracking | |
767 | enable_perfmon | |
768 | enable_prologues | |
769 | enable_ssp | |
770 | enable_pie | |
771 | enable_sqlite | |
772 | enable_crash | |
773 | enable_docs | |
774 | enable_refdocs | |
775 | enable_server | |
776 | with_elfutils | |
777 | ' | |
7fbd9d09 FCE |
778 | ac_precious_vars='build_alias |
779 | host_alias | |
780 | target_alias | |
781 | CC | |
782 | CFLAGS | |
783 | LDFLAGS | |
784 | LIBS | |
785 | CPPFLAGS | |
786 | CXX | |
787 | CXXFLAGS | |
788 | CCC | |
789 | CPP | |
790 | CXXCPP' | |
791 | ac_subdirs_all='testsuite' | |
2f1a1aea FCE |
792 | |
793 | # Initialize some variables set by options. | |
794 | ac_init_help= | |
795 | ac_init_version=false | |
27aba29a JS |
796 | ac_unrecognized_opts= |
797 | ac_unrecognized_sep= | |
2f1a1aea FCE |
798 | # The variables have the same names as the options, with |
799 | # dashes changed to underlines. | |
800 | cache_file=/dev/null | |
801 | exec_prefix=NONE | |
802 | no_create= | |
803 | no_recursion= | |
804 | prefix=NONE | |
805 | program_prefix=NONE | |
806 | program_suffix=NONE | |
807 | program_transform_name=s,x,x, | |
808 | silent= | |
809 | site= | |
810 | srcdir= | |
811 | verbose= | |
812 | x_includes=NONE | |
813 | x_libraries=NONE | |
814 | ||
815 | # Installation directory options. | |
816 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
817 | # and all the variables that are supposed to be based on exec_prefix | |
818 | # by default will actually change. | |
819 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7fbd9d09 | 820 | # (The list follows the same order as the GNU Coding Standards.) |
2f1a1aea FCE |
821 | bindir='${exec_prefix}/bin' |
822 | sbindir='${exec_prefix}/sbin' | |
823 | libexecdir='${exec_prefix}/libexec' | |
7fbd9d09 FCE |
824 | datarootdir='${prefix}/share' |
825 | datadir='${datarootdir}' | |
2f1a1aea FCE |
826 | sysconfdir='${prefix}/etc' |
827 | sharedstatedir='${prefix}/com' | |
828 | localstatedir='${prefix}/var' | |
2f1a1aea FCE |
829 | includedir='${prefix}/include' |
830 | oldincludedir='/usr/include' | |
7fbd9d09 FCE |
831 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
832 | infodir='${datarootdir}/info' | |
833 | htmldir='${docdir}' | |
834 | dvidir='${docdir}' | |
835 | pdfdir='${docdir}' | |
836 | psdir='${docdir}' | |
837 | libdir='${exec_prefix}/lib' | |
838 | localedir='${datarootdir}/locale' | |
839 | mandir='${datarootdir}/man' | |
2f1a1aea FCE |
840 | |
841 | ac_prev= | |
7fbd9d09 | 842 | ac_dashdash= |
2f1a1aea FCE |
843 | for ac_option |
844 | do | |
845 | # If the previous option needs an argument, assign it. | |
846 | if test -n "$ac_prev"; then | |
7fbd9d09 | 847 | eval $ac_prev=\$ac_option |
2f1a1aea FCE |
848 | ac_prev= |
849 | continue | |
850 | fi | |
851 | ||
7fbd9d09 FCE |
852 | case $ac_option in |
853 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
854 | *) ac_optarg=yes ;; | |
855 | esac | |
2f1a1aea FCE |
856 | |
857 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
858 | ||
7fbd9d09 FCE |
859 | case $ac_dashdash$ac_option in |
860 | --) | |
861 | ac_dashdash=yes ;; | |
2f1a1aea FCE |
862 | |
863 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
864 | ac_prev=bindir ;; | |
865 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
866 | bindir=$ac_optarg ;; | |
867 | ||
868 | -build | --build | --buil | --bui | --bu) | |
869 | ac_prev=build_alias ;; | |
870 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
871 | build_alias=$ac_optarg ;; | |
872 | ||
873 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
874 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
875 | ac_prev=cache_file ;; | |
876 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
877 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
878 | cache_file=$ac_optarg ;; | |
879 | ||
880 | --config-cache | -C) | |
881 | cache_file=config.cache ;; | |
882 | ||
7fbd9d09 | 883 | -datadir | --datadir | --datadi | --datad) |
2f1a1aea | 884 | ac_prev=datadir ;; |
7fbd9d09 | 885 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
2f1a1aea FCE |
886 | datadir=$ac_optarg ;; |
887 | ||
7fbd9d09 FCE |
888 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
889 | | --dataroo | --dataro | --datar) | |
890 | ac_prev=datarootdir ;; | |
891 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
892 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
893 | datarootdir=$ac_optarg ;; | |
894 | ||
2f1a1aea | 895 | -disable-* | --disable-*) |
27aba29a | 896 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
2f1a1aea | 897 | # Reject names that are not valid shell variable names. |
27aba29a JS |
898 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
899 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
2f1a1aea | 900 | { (exit 1); exit 1; }; } |
27aba29a JS |
901 | ac_useropt_orig=$ac_useropt |
902 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
903 | case $ac_user_opts in | |
904 | *" | |
905 | "enable_$ac_useropt" | |
906 | "*) ;; | |
907 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
908 | ac_unrecognized_sep=', ';; | |
909 | esac | |
910 | eval enable_$ac_useropt=no ;; | |
7fbd9d09 FCE |
911 | |
912 | -docdir | --docdir | --docdi | --doc | --do) | |
913 | ac_prev=docdir ;; | |
914 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
915 | docdir=$ac_optarg ;; | |
916 | ||
917 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
918 | ac_prev=dvidir ;; | |
919 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
920 | dvidir=$ac_optarg ;; | |
2f1a1aea FCE |
921 | |
922 | -enable-* | --enable-*) | |
27aba29a | 923 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
2f1a1aea | 924 | # Reject names that are not valid shell variable names. |
27aba29a JS |
925 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
926 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
2f1a1aea | 927 | { (exit 1); exit 1; }; } |
27aba29a JS |
928 | ac_useropt_orig=$ac_useropt |
929 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
930 | case $ac_user_opts in | |
931 | *" | |
932 | "enable_$ac_useropt" | |
933 | "*) ;; | |
934 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
935 | ac_unrecognized_sep=', ';; | |
936 | esac | |
937 | eval enable_$ac_useropt=\$ac_optarg ;; | |
2f1a1aea FCE |
938 | |
939 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
940 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
941 | | --exec | --exe | --ex) | |
942 | ac_prev=exec_prefix ;; | |
943 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
944 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
945 | | --exec=* | --exe=* | --ex=*) | |
946 | exec_prefix=$ac_optarg ;; | |
947 | ||
948 | -gas | --gas | --ga | --g) | |
949 | # Obsolete; use --with-gas. | |
950 | with_gas=yes ;; | |
951 | ||
952 | -help | --help | --hel | --he | -h) | |
953 | ac_init_help=long ;; | |
954 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
955 | ac_init_help=recursive ;; | |
956 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
957 | ac_init_help=short ;; | |
958 | ||
959 | -host | --host | --hos | --ho) | |
960 | ac_prev=host_alias ;; | |
961 | -host=* | --host=* | --hos=* | --ho=*) | |
962 | host_alias=$ac_optarg ;; | |
963 | ||
7fbd9d09 FCE |
964 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
965 | ac_prev=htmldir ;; | |
966 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
967 | | --ht=*) | |
968 | htmldir=$ac_optarg ;; | |
969 | ||
2f1a1aea FCE |
970 | -includedir | --includedir | --includedi | --included | --include \ |
971 | | --includ | --inclu | --incl | --inc) | |
972 | ac_prev=includedir ;; | |
973 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
974 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
975 | includedir=$ac_optarg ;; | |
976 | ||
977 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
978 | ac_prev=infodir ;; | |
979 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
980 | infodir=$ac_optarg ;; | |
981 | ||
982 | -libdir | --libdir | --libdi | --libd) | |
983 | ac_prev=libdir ;; | |
984 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
985 | libdir=$ac_optarg ;; | |
986 | ||
987 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
988 | | --libexe | --libex | --libe) | |
989 | ac_prev=libexecdir ;; | |
990 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
991 | | --libexe=* | --libex=* | --libe=*) | |
992 | libexecdir=$ac_optarg ;; | |
993 | ||
7fbd9d09 FCE |
994 | -localedir | --localedir | --localedi | --localed | --locale) |
995 | ac_prev=localedir ;; | |
996 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
997 | localedir=$ac_optarg ;; | |
998 | ||
2f1a1aea | 999 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7fbd9d09 | 1000 | | --localstate | --localstat | --localsta | --localst | --locals) |
2f1a1aea FCE |
1001 | ac_prev=localstatedir ;; |
1002 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7fbd9d09 | 1003 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
2f1a1aea FCE |
1004 | localstatedir=$ac_optarg ;; |
1005 | ||
1006 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1007 | ac_prev=mandir ;; | |
1008 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1009 | mandir=$ac_optarg ;; | |
1010 | ||
1011 | -nfp | --nfp | --nf) | |
1012 | # Obsolete; use --without-fp. | |
1013 | with_fp=no ;; | |
1014 | ||
1015 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1016 | | --no-cr | --no-c | -n) | |
1017 | no_create=yes ;; | |
1018 | ||
1019 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1020 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1021 | no_recursion=yes ;; | |
1022 | ||
1023 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1024 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1025 | | --oldin | --oldi | --old | --ol | --o) | |
1026 | ac_prev=oldincludedir ;; | |
1027 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1028 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1029 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1030 | oldincludedir=$ac_optarg ;; | |
1031 | ||
1032 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1033 | ac_prev=prefix ;; | |
1034 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1035 | prefix=$ac_optarg ;; | |
1036 | ||
1037 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1038 | | --program-pre | --program-pr | --program-p) | |
1039 | ac_prev=program_prefix ;; | |
1040 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1041 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1042 | program_prefix=$ac_optarg ;; | |
1043 | ||
1044 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1045 | | --program-suf | --program-su | --program-s) | |
1046 | ac_prev=program_suffix ;; | |
1047 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1048 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1049 | program_suffix=$ac_optarg ;; | |
1050 | ||
1051 | -program-transform-name | --program-transform-name \ | |
1052 | | --program-transform-nam | --program-transform-na \ | |
1053 | | --program-transform-n | --program-transform- \ | |
1054 | | --program-transform | --program-transfor \ | |
1055 | | --program-transfo | --program-transf \ | |
1056 | | --program-trans | --program-tran \ | |
1057 | | --progr-tra | --program-tr | --program-t) | |
1058 | ac_prev=program_transform_name ;; | |
1059 | -program-transform-name=* | --program-transform-name=* \ | |
1060 | | --program-transform-nam=* | --program-transform-na=* \ | |
1061 | | --program-transform-n=* | --program-transform-=* \ | |
1062 | | --program-transform=* | --program-transfor=* \ | |
1063 | | --program-transfo=* | --program-transf=* \ | |
1064 | | --program-trans=* | --program-tran=* \ | |
1065 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1066 | program_transform_name=$ac_optarg ;; | |
1067 | ||
7fbd9d09 FCE |
1068 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1069 | ac_prev=pdfdir ;; | |
1070 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1071 | pdfdir=$ac_optarg ;; | |
1072 | ||
1073 | -psdir | --psdir | --psdi | --psd | --ps) | |
1074 | ac_prev=psdir ;; | |
1075 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1076 | psdir=$ac_optarg ;; | |
1077 | ||
2f1a1aea FCE |
1078 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1079 | | -silent | --silent | --silen | --sile | --sil) | |
1080 | silent=yes ;; | |
1081 | ||
1082 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1083 | ac_prev=sbindir ;; | |
1084 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1085 | | --sbi=* | --sb=*) | |
1086 | sbindir=$ac_optarg ;; | |
1087 | ||
1088 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1089 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1090 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1091 | | --sha | --sh) | |
1092 | ac_prev=sharedstatedir ;; | |
1093 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1094 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1095 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1096 | | --sha=* | --sh=*) | |
1097 | sharedstatedir=$ac_optarg ;; | |
1098 | ||
1099 | -site | --site | --sit) | |
1100 | ac_prev=site ;; | |
1101 | -site=* | --site=* | --sit=*) | |
1102 | site=$ac_optarg ;; | |
1103 | ||
1104 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1105 | ac_prev=srcdir ;; | |
1106 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1107 | srcdir=$ac_optarg ;; | |
1108 | ||
1109 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1110 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1111 | ac_prev=sysconfdir ;; | |
1112 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1113 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1114 | sysconfdir=$ac_optarg ;; | |
1115 | ||
1116 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1117 | ac_prev=target_alias ;; | |
1118 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1119 | target_alias=$ac_optarg ;; | |
1120 | ||
1121 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1122 | verbose=yes ;; | |
1123 | ||
1124 | -version | --version | --versio | --versi | --vers | -V) | |
1125 | ac_init_version=: ;; | |
1126 | ||
1127 | -with-* | --with-*) | |
27aba29a | 1128 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
2f1a1aea | 1129 | # Reject names that are not valid shell variable names. |
27aba29a JS |
1130 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1131 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
2f1a1aea | 1132 | { (exit 1); exit 1; }; } |
27aba29a JS |
1133 | ac_useropt_orig=$ac_useropt |
1134 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1135 | case $ac_user_opts in | |
1136 | *" | |
1137 | "with_$ac_useropt" | |
1138 | "*) ;; | |
1139 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1140 | ac_unrecognized_sep=', ';; | |
1141 | esac | |
1142 | eval with_$ac_useropt=\$ac_optarg ;; | |
2f1a1aea FCE |
1143 | |
1144 | -without-* | --without-*) | |
27aba29a | 1145 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
2f1a1aea | 1146 | # Reject names that are not valid shell variable names. |
27aba29a JS |
1147 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1148 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
2f1a1aea | 1149 | { (exit 1); exit 1; }; } |
27aba29a JS |
1150 | ac_useropt_orig=$ac_useropt |
1151 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1152 | case $ac_user_opts in | |
1153 | *" | |
1154 | "with_$ac_useropt" | |
1155 | "*) ;; | |
1156 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1157 | ac_unrecognized_sep=', ';; | |
1158 | esac | |
1159 | eval with_$ac_useropt=no ;; | |
2f1a1aea FCE |
1160 | |
1161 | --x) | |
1162 | # Obsolete; use --with-x. | |
1163 | with_x=yes ;; | |
1164 | ||
1165 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1166 | | --x-incl | --x-inc | --x-in | --x-i) | |
1167 | ac_prev=x_includes ;; | |
1168 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1169 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1170 | x_includes=$ac_optarg ;; | |
1171 | ||
1172 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1173 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1174 | ac_prev=x_libraries ;; | |
1175 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1176 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1177 | x_libraries=$ac_optarg ;; | |
1178 | ||
27aba29a | 1179 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
2f1a1aea FCE |
1180 | Try \`$0 --help' for more information." >&2 |
1181 | { (exit 1); exit 1; }; } | |
1182 | ;; | |
1183 | ||
1184 | *=*) | |
1185 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1186 | # Reject names that are not valid shell variable names. | |
1187 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
27aba29a | 1188 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
2f1a1aea | 1189 | { (exit 1); exit 1; }; } |
7fbd9d09 | 1190 | eval $ac_envvar=\$ac_optarg |
2f1a1aea FCE |
1191 | export $ac_envvar ;; |
1192 | ||
1193 | *) | |
1194 | # FIXME: should be removed in autoconf 3.0. | |
27aba29a | 1195 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
2f1a1aea | 1196 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
27aba29a | 1197 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
2f1a1aea FCE |
1198 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1199 | ;; | |
1200 | ||
1201 | esac | |
1202 | done | |
1203 | ||
1204 | if test -n "$ac_prev"; then | |
1205 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
27aba29a | 1206 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
2f1a1aea FCE |
1207 | { (exit 1); exit 1; }; } |
1208 | fi | |
1209 | ||
27aba29a JS |
1210 | if test -n "$ac_unrecognized_opts"; then |
1211 | case $enable_option_checking in | |
1212 | no) ;; | |
1213 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1214 | { (exit 1); exit 1; }; } ;; | |
1215 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1216 | esac | |
1217 | fi | |
1218 | ||
1219 | # Check all directory arguments for consistency. | |
7fbd9d09 FCE |
1220 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1221 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1222 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1223 | libdir localedir mandir | |
818ba2bc | 1224 | do |
7fbd9d09 | 1225 | eval ac_val=\$$ac_var |
27aba29a JS |
1226 | # Remove trailing slashes. |
1227 | case $ac_val in | |
1228 | */ ) | |
1229 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1230 | eval $ac_var=\$ac_val;; | |
1231 | esac | |
1232 | # Be sure to have absolute directory names. | |
8ae7a94a | 1233 | case $ac_val in |
7fbd9d09 FCE |
1234 | [\\/$]* | ?:[\\/]* ) continue;; |
1235 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
2f1a1aea | 1236 | esac |
27aba29a | 1237 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7fbd9d09 | 1238 | { (exit 1); exit 1; }; } |
2f1a1aea FCE |
1239 | done |
1240 | ||
1241 | # There might be people who depend on the old broken behavior: `$host' | |
1242 | # used to hold the argument of --host etc. | |
1243 | # FIXME: To remove some day. | |
1244 | build=$build_alias | |
1245 | host=$host_alias | |
1246 | target=$target_alias | |
1247 | ||
1248 | # FIXME: To remove some day. | |
1249 | if test "x$host_alias" != x; then | |
1250 | if test "x$build_alias" = x; then | |
1251 | cross_compiling=maybe | |
27aba29a | 1252 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
2f1a1aea FCE |
1253 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1254 | elif test "x$build_alias" != "x$host_alias"; then | |
1255 | cross_compiling=yes | |
1256 | fi | |
1257 | fi | |
1258 | ||
1259 | ac_tool_prefix= | |
1260 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1261 | ||
1262 | test "$silent" = yes && exec 6>/dev/null | |
1263 | ||
1264 | ||
7fbd9d09 FCE |
1265 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1266 | ac_ls_di=`ls -di .` && | |
1267 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
27aba29a | 1268 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
7fbd9d09 FCE |
1269 | { (exit 1); exit 1; }; } |
1270 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
27aba29a | 1271 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
7fbd9d09 FCE |
1272 | { (exit 1); exit 1; }; } |
1273 | ||
1274 | ||
2f1a1aea FCE |
1275 | # Find the source files, if location was not specified. |
1276 | if test -z "$srcdir"; then | |
1277 | ac_srcdir_defaulted=yes | |
7fbd9d09 | 1278 | # Try the directory containing this script, then the parent directory. |
27aba29a JS |
1279 | ac_confdir=`$as_dirname -- "$as_myself" || |
1280 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1281 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1282 | X"$as_myself" : 'X\(//\)$' \| \ | |
1283 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1284 | $as_echo X"$as_myself" | | |
7fbd9d09 FCE |
1285 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1286 | s//\1/ | |
1287 | q | |
1288 | } | |
1289 | /^X\(\/\/\)[^/].*/{ | |
1290 | s//\1/ | |
1291 | q | |
1292 | } | |
1293 | /^X\(\/\/\)$/{ | |
1294 | s//\1/ | |
1295 | q | |
1296 | } | |
1297 | /^X\(\/\).*/{ | |
1298 | s//\1/ | |
1299 | q | |
1300 | } | |
1301 | s/.*/./; q'` | |
2f1a1aea | 1302 | srcdir=$ac_confdir |
7fbd9d09 | 1303 | if test ! -r "$srcdir/$ac_unique_file"; then |
2f1a1aea FCE |
1304 | srcdir=.. |
1305 | fi | |
1306 | else | |
1307 | ac_srcdir_defaulted=no | |
1308 | fi | |
7fbd9d09 FCE |
1309 | if test ! -r "$srcdir/$ac_unique_file"; then |
1310 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
27aba29a | 1311 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
818ba2bc | 1312 | { (exit 1); exit 1; }; } |
8ae7a94a | 1313 | fi |
7fbd9d09 FCE |
1314 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1315 | ac_abs_confdir=`( | |
27aba29a | 1316 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
8ae7a94a | 1317 | { (exit 1); exit 1; }; } |
7fbd9d09 FCE |
1318 | pwd)` |
1319 | # When building in place, set srcdir=. | |
1320 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1321 | srcdir=. | |
1322 | fi | |
1323 | # Remove unnecessary trailing slashes from srcdir. | |
1324 | # Double slashes in file names in object file debugging info | |
1325 | # mess up M-x gdb in Emacs. | |
1326 | case $srcdir in | |
1327 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1328 | esac | |
1329 | for ac_var in $ac_precious_vars; do | |
1330 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1331 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1332 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1333 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1334 | done | |
2f1a1aea FCE |
1335 | |
1336 | # | |
1337 | # Report the --help message. | |
1338 | # | |
1339 | if test "$ac_init_help" = "long"; then | |
1340 | # Omit some internal or obsolete options to make the list less imposing. | |
1341 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1342 | cat <<_ACEOF | |
27aba29a | 1343 | \`configure' configures systemtap 0.9.5 to adapt to many kinds of systems. |
2f1a1aea FCE |
1344 | |
1345 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1346 | ||
1347 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1348 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1349 | ||
1350 | Defaults for the options are specified in brackets. | |
1351 | ||
1352 | Configuration: | |
1353 | -h, --help display this help and exit | |
1354 | --help=short display options specific to this package | |
1355 | --help=recursive display the short help of all the included packages | |
1356 | -V, --version display version information and exit | |
1357 | -q, --quiet, --silent do not print \`checking...' messages | |
1358 | --cache-file=FILE cache test results in FILE [disabled] | |
1359 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1360 | -n, --no-create do not create output files | |
1361 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1362 | ||
2f1a1aea FCE |
1363 | Installation directories: |
1364 | --prefix=PREFIX install architecture-independent files in PREFIX | |
27aba29a | 1365 | [$ac_default_prefix] |
2f1a1aea | 1366 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
27aba29a | 1367 | [PREFIX] |
2f1a1aea FCE |
1368 | |
1369 | By default, \`make install' will install all the files in | |
1370 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1371 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1372 | for instance \`--prefix=\$HOME'. | |
1373 | ||
1374 | For better control, use the options below. | |
1375 | ||
1376 | Fine tuning of the installation directories: | |
27aba29a JS |
1377 | --bindir=DIR user executables [EPREFIX/bin] |
1378 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1379 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1380 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1381 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1382 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1383 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1384 | --includedir=DIR C header files [PREFIX/include] | |
1385 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1386 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1387 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1388 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1389 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1390 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1391 | --docdir=DIR documentation root [DATAROOTDIR/doc/systemtap] | |
1392 | --htmldir=DIR html documentation [DOCDIR] | |
1393 | --dvidir=DIR dvi documentation [DOCDIR] | |
1394 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1395 | --psdir=DIR ps documentation [DOCDIR] | |
2f1a1aea FCE |
1396 | _ACEOF |
1397 | ||
1398 | cat <<\_ACEOF | |
1399 | ||
1400 | Program names: | |
1401 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1402 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1403 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1404 | _ACEOF | |
1405 | fi | |
1406 | ||
1407 | if test -n "$ac_init_help"; then | |
1408 | case $ac_init_help in | |
27aba29a | 1409 | short | recursive ) echo "Configuration of systemtap 0.9.5:";; |
2f1a1aea FCE |
1410 | esac |
1411 | cat <<\_ACEOF | |
1412 | ||
1413 | Optional Features: | |
27aba29a | 1414 | --disable-option-checking ignore unrecognized --enable/--with options |
2f1a1aea FCE |
1415 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1416 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1417 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1418 | (and sometimes confusing) to the casual installer | |
1419 | --disable-dependency-tracking speeds up one-time build | |
1420 | --enable-dependency-tracking do not reject slow dependency extractors | |
e8f3c2c2 DS |
1421 | --enable-perfmon[=DIRECTORY] |
1422 | enable perfmon support (default is disabled). | |
1423 | Optional DIRECTORY is the path to the perfmon | |
1424 | installation (needed if installed in a non-standard | |
1425 | location). | |
44f75386 | 1426 | --enable-prologues make -P prologue-searching default |
bbfd8c1a | 1427 | --disable-ssp disable gcc stack-protector |
882ddac1 | 1428 | --enable-pie enable position-independent-executable |
9921a199 | 1429 | --enable-sqlite build with sqlite support |
564eb0a8 DS |
1430 | --enable-crash[=DIRECTORY] |
1431 | enable crash extension (default is disabled). | |
1432 | Optional DIRECTORY is the path to the crash header | |
1433 | file (needed if installed in a non-standard | |
1434 | location). | |
465e8fbf FCE |
1435 | --enable-docs enable building documentation (default on if latex |
1436 | etc. found). | |
92aff3c7 WC |
1437 | --enable-refdocs enable building reference documentation (default on |
1438 | if xmlto etc. found and other documentation built). | |
6275c8d7 | 1439 | --enable-server enable building of stap-server/client (default on if |
19a0d4b6 | 1440 | nss etc. found). |
2f1a1aea | 1441 | |
4d9087fc RM |
1442 | Optional Packages: |
1443 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1444 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1445 | --with-elfutils=DIRECTORY | |
1446 | find elfutils source code in DIRECTORY | |
1447 | ||
2f1a1aea FCE |
1448 | Some influential environment variables: |
1449 | CC C compiler command | |
1450 | CFLAGS C compiler flags | |
1451 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1452 | nonstandard directory <lib dir> | |
7fbd9d09 FCE |
1453 | LIBS libraries to pass to the linker, e.g. -l<library> |
1454 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1455 | you have headers in a nonstandard directory <include dir> | |
2f1a1aea FCE |
1456 | CXX C++ compiler command |
1457 | CXXFLAGS C++ compiler flags | |
1458 | CPP C preprocessor | |
3bf6ac45 | 1459 | CXXCPP C++ preprocessor |
2f1a1aea FCE |
1460 | |
1461 | Use these variables to override the choices made by `configure' or to help | |
1462 | it to find libraries and programs with nonstandard names/locations. | |
1463 | ||
1464 | Report bugs to <systemtap@sources.redhat.com>. | |
1465 | _ACEOF | |
7fbd9d09 | 1466 | ac_status=$? |
2f1a1aea FCE |
1467 | fi |
1468 | ||
1469 | if test "$ac_init_help" = "recursive"; then | |
1470 | # If there are subdirs, report their specific --help. | |
2f1a1aea | 1471 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
27aba29a JS |
1472 | test -d "$ac_dir" || |
1473 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1474 | continue | |
2f1a1aea FCE |
1475 | ac_builddir=. |
1476 | ||
7fbd9d09 FCE |
1477 | case "$ac_dir" in |
1478 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1479 | *) | |
27aba29a | 1480 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7fbd9d09 | 1481 | # A ".." for each directory in $ac_dir_suffix. |
27aba29a | 1482 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7fbd9d09 FCE |
1483 | case $ac_top_builddir_sub in |
1484 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1485 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1486 | esac ;; | |
1487 | esac | |
1488 | ac_abs_top_builddir=$ac_pwd | |
1489 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1490 | # for backward compatibility: | |
1491 | ac_top_builddir=$ac_top_build_prefix | |
2f1a1aea FCE |
1492 | |
1493 | case $srcdir in | |
7fbd9d09 | 1494 | .) # We are building in place. |
2f1a1aea | 1495 | ac_srcdir=. |
7fbd9d09 FCE |
1496 | ac_top_srcdir=$ac_top_builddir_sub |
1497 | ac_abs_top_srcdir=$ac_pwd ;; | |
1498 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
2f1a1aea | 1499 | ac_srcdir=$srcdir$ac_dir_suffix; |
7fbd9d09 FCE |
1500 | ac_top_srcdir=$srcdir |
1501 | ac_abs_top_srcdir=$srcdir ;; | |
1502 | *) # Relative name. | |
1503 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1504 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1505 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
818ba2bc | 1506 | esac |
7fbd9d09 FCE |
1507 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1508 | ||
1509 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1510 | # Check for guested configure. | |
1511 | if test -f "$ac_srcdir/configure.gnu"; then | |
1512 | echo && | |
1513 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1514 | elif test -f "$ac_srcdir/configure"; then | |
1515 | echo && | |
1516 | $SHELL "$ac_srcdir/configure" --help=recursive | |
2f1a1aea | 1517 | else |
27aba29a | 1518 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7fbd9d09 FCE |
1519 | fi || ac_status=$? |
1520 | cd "$ac_pwd" || { ac_status=$?; break; } | |
2f1a1aea FCE |
1521 | done |
1522 | fi | |
1523 | ||
7fbd9d09 | 1524 | test -n "$ac_init_help" && exit $ac_status |
2f1a1aea FCE |
1525 | if $ac_init_version; then |
1526 | cat <<\_ACEOF | |
27aba29a JS |
1527 | systemtap configure 0.9.5 |
1528 | generated by GNU Autoconf 2.63 | |
2f1a1aea | 1529 | |
7fbd9d09 | 1530 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
27aba29a | 1531 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
2f1a1aea FCE |
1532 | This configure script is free software; the Free Software Foundation |
1533 | gives unlimited permission to copy, distribute and modify it. | |
1534 | _ACEOF | |
7fbd9d09 | 1535 | exit |
2f1a1aea | 1536 | fi |
7fbd9d09 | 1537 | cat >config.log <<_ACEOF |
2f1a1aea FCE |
1538 | This file contains any messages produced by compilers while |
1539 | running configure, to aid debugging if configure makes a mistake. | |
1540 | ||
27aba29a JS |
1541 | It was created by systemtap $as_me 0.9.5, which was |
1542 | generated by GNU Autoconf 2.63. Invocation command line was | |
2f1a1aea FCE |
1543 | |
1544 | $ $0 $@ | |
1545 | ||
1546 | _ACEOF | |
7fbd9d09 | 1547 | exec 5>>config.log |
2f1a1aea FCE |
1548 | { |
1549 | cat <<_ASUNAME | |
1550 | ## --------- ## | |
1551 | ## Platform. ## | |
1552 | ## --------- ## | |
1553 | ||
1554 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1555 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1556 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1557 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1558 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1559 | ||
1560 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1561 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1562 | ||
1563 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1564 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1565 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7fbd9d09 | 1566 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
2f1a1aea FCE |
1567 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1568 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1569 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1570 | ||
1571 | _ASUNAME | |
1572 | ||
1573 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1574 | for as_dir in $PATH | |
1575 | do | |
1576 | IFS=$as_save_IFS | |
1577 | test -z "$as_dir" && as_dir=. | |
27aba29a | 1578 | $as_echo "PATH: $as_dir" |
2f1a1aea | 1579 | done |
7fbd9d09 | 1580 | IFS=$as_save_IFS |
2f1a1aea FCE |
1581 | |
1582 | } >&5 | |
1583 | ||
1584 | cat >&5 <<_ACEOF | |
1585 | ||
1586 | ||
1587 | ## ----------- ## | |
1588 | ## Core tests. ## | |
1589 | ## ----------- ## | |
1590 | ||
1591 | _ACEOF | |
1592 | ||
1593 | ||
1594 | # Keep a trace of the command line. | |
1595 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1596 | # Strip out --silent because we don't want to record it for future runs. | |
1597 | # Also quote any args containing shell meta-characters. | |
1598 | # Make two passes to allow for proper duplicate-argument suppression. | |
1599 | ac_configure_args= | |
1600 | ac_configure_args0= | |
1601 | ac_configure_args1= | |
2f1a1aea FCE |
1602 | ac_must_keep_next=false |
1603 | for ac_pass in 1 2 | |
1604 | do | |
1605 | for ac_arg | |
1606 | do | |
1607 | case $ac_arg in | |
1608 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1609 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1610 | | -silent | --silent | --silen | --sile | --sil) | |
1611 | continue ;; | |
7fbd9d09 | 1612 | *\'*) |
27aba29a | 1613 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
2f1a1aea FCE |
1614 | esac |
1615 | case $ac_pass in | |
1616 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1617 | 2) | |
1618 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1619 | if test $ac_must_keep_next = true; then | |
1620 | ac_must_keep_next=false # Got value, back to normal. | |
1621 | else | |
1622 | case $ac_arg in | |
1623 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1624 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1625 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1626 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1627 | case "$ac_configure_args0 " in | |
1628 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1629 | esac | |
1630 | ;; | |
1631 | -* ) ac_must_keep_next=true ;; | |
1632 | esac | |
1633 | fi | |
7fbd9d09 | 1634 | ac_configure_args="$ac_configure_args '$ac_arg'" |
2f1a1aea FCE |
1635 | ;; |
1636 | esac | |
1637 | done | |
1638 | done | |
1639 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1640 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1641 | ||
1642 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1643 | # config.log. We remove comments because anyway the quotes in there | |
1644 | # would cause problems or look ugly. | |
7fbd9d09 FCE |
1645 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1646 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2f1a1aea FCE |
1647 | trap 'exit_status=$? |
1648 | # Save into config.log some information that might help in debugging. | |
1649 | { | |
1650 | echo | |
1651 | ||
1652 | cat <<\_ASBOX | |
1653 | ## ---------------- ## | |
1654 | ## Cache variables. ## | |
1655 | ## ---------------- ## | |
1656 | _ASBOX | |
1657 | echo | |
1658 | # The following way of writing the cache mishandles newlines in values, | |
7fbd9d09 FCE |
1659 | ( |
1660 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1661 | eval ac_val=\$$ac_var | |
1662 | case $ac_val in #( | |
1663 | *${as_nl}*) | |
1664 | case $ac_var in #( | |
27aba29a JS |
1665 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1666 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7fbd9d09 FCE |
1667 | esac |
1668 | case $ac_var in #( | |
1669 | _ | IFS | as_nl) ;; #( | |
27aba29a | 1670 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7fbd9d09 FCE |
1671 | *) $as_unset $ac_var ;; |
1672 | esac ;; | |
1673 | esac | |
1674 | done | |
2f1a1aea | 1675 | (set) 2>&1 | |
7fbd9d09 FCE |
1676 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1677 | *${as_nl}ac_space=\ *) | |
2f1a1aea | 1678 | sed -n \ |
7fbd9d09 FCE |
1679 | "s/'\''/'\''\\\\'\'''\''/g; |
1680 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1681 | ;; #( | |
2f1a1aea | 1682 | *) |
7fbd9d09 | 1683 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
2f1a1aea | 1684 | ;; |
7fbd9d09 FCE |
1685 | esac | |
1686 | sort | |
1687 | ) | |
2f1a1aea FCE |
1688 | echo |
1689 | ||
1690 | cat <<\_ASBOX | |
1691 | ## ----------------- ## | |
1692 | ## Output variables. ## | |
1693 | ## ----------------- ## | |
1694 | _ASBOX | |
1695 | echo | |
1696 | for ac_var in $ac_subst_vars | |
1697 | do | |
7fbd9d09 FCE |
1698 | eval ac_val=\$$ac_var |
1699 | case $ac_val in | |
27aba29a | 1700 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7fbd9d09 | 1701 | esac |
27aba29a | 1702 | $as_echo "$ac_var='\''$ac_val'\''" |
2f1a1aea FCE |
1703 | done | sort |
1704 | echo | |
1705 | ||
1706 | if test -n "$ac_subst_files"; then | |
1707 | cat <<\_ASBOX | |
7fbd9d09 FCE |
1708 | ## ------------------- ## |
1709 | ## File substitutions. ## | |
1710 | ## ------------------- ## | |
2f1a1aea FCE |
1711 | _ASBOX |
1712 | echo | |
1713 | for ac_var in $ac_subst_files | |
1714 | do | |
7fbd9d09 FCE |
1715 | eval ac_val=\$$ac_var |
1716 | case $ac_val in | |
27aba29a | 1717 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7fbd9d09 | 1718 | esac |
27aba29a | 1719 | $as_echo "$ac_var='\''$ac_val'\''" |
2f1a1aea FCE |
1720 | done | sort |
1721 | echo | |
1722 | fi | |
1723 | ||
1724 | if test -s confdefs.h; then | |
1725 | cat <<\_ASBOX | |
1726 | ## ----------- ## | |
1727 | ## confdefs.h. ## | |
1728 | ## ----------- ## | |
1729 | _ASBOX | |
1730 | echo | |
7fbd9d09 | 1731 | cat confdefs.h |
2f1a1aea FCE |
1732 | echo |
1733 | fi | |
1734 | test "$ac_signal" != 0 && | |
27aba29a JS |
1735 | $as_echo "$as_me: caught signal $ac_signal" |
1736 | $as_echo "$as_me: exit $exit_status" | |
2f1a1aea | 1737 | } >&5 |
7fbd9d09 FCE |
1738 | rm -f core *.core core.conftest.* && |
1739 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2f1a1aea | 1740 | exit $exit_status |
7fbd9d09 | 1741 | ' 0 |
2f1a1aea FCE |
1742 | for ac_signal in 1 2 13 15; do |
1743 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1744 | done | |
1745 | ac_signal=0 | |
1746 | ||
1747 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7fbd9d09 | 1748 | rm -f -r conftest* confdefs.h |
2f1a1aea FCE |
1749 | |
1750 | # Predefined preprocessor variables. | |
1751 | ||
1752 | cat >>confdefs.h <<_ACEOF | |
1753 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1754 | _ACEOF | |
1755 | ||
1756 | ||
1757 | cat >>confdefs.h <<_ACEOF | |
1758 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1759 | _ACEOF | |
1760 | ||
1761 | ||
1762 | cat >>confdefs.h <<_ACEOF | |
1763 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1764 | _ACEOF | |
1765 | ||
1766 | ||
1767 | cat >>confdefs.h <<_ACEOF | |
1768 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1769 | _ACEOF | |
1770 | ||
1771 | ||
1772 | cat >>confdefs.h <<_ACEOF | |
1773 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1774 | _ACEOF | |
1775 | ||
1776 | ||
1777 | # Let the site file select an alternate cache file if it wants to. | |
27aba29a JS |
1778 | # Prefer an explicitly selected file to automatically selected ones. |
1779 | ac_site_file1=NONE | |
1780 | ac_site_file2=NONE | |
7fbd9d09 | 1781 | if test -n "$CONFIG_SITE"; then |
27aba29a | 1782 | ac_site_file1=$CONFIG_SITE |
7fbd9d09 | 1783 | elif test "x$prefix" != xNONE; then |
27aba29a JS |
1784 | ac_site_file1=$prefix/share/config.site |
1785 | ac_site_file2=$prefix/etc/config.site | |
7fbd9d09 | 1786 | else |
27aba29a JS |
1787 | ac_site_file1=$ac_default_prefix/share/config.site |
1788 | ac_site_file2=$ac_default_prefix/etc/config.site | |
818ba2bc | 1789 | fi |
27aba29a | 1790 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
7fbd9d09 | 1791 | do |
27aba29a | 1792 | test "x$ac_site_file" = xNONE && continue |
2f1a1aea | 1793 | if test -r "$ac_site_file"; then |
27aba29a JS |
1794 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1795 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2f1a1aea FCE |
1796 | sed 's/^/| /' "$ac_site_file" >&5 |
1797 | . "$ac_site_file" | |
1798 | fi | |
1799 | done | |
1800 | ||
1801 | if test -r "$cache_file"; then | |
1802 | # Some versions of bash will fail to source /dev/null (special | |
1803 | # files actually), so we avoid doing that. | |
1804 | if test -f "$cache_file"; then | |
27aba29a JS |
1805 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1806 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2f1a1aea | 1807 | case $cache_file in |
7fbd9d09 FCE |
1808 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1809 | *) . "./$cache_file";; | |
2f1a1aea FCE |
1810 | esac |
1811 | fi | |
1812 | else | |
27aba29a JS |
1813 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1814 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2f1a1aea FCE |
1815 | >$cache_file |
1816 | fi | |
1817 | ||
1818 | # Check that the precious variables saved in the cache have kept the same | |
1819 | # value. | |
1820 | ac_cache_corrupted=false | |
7fbd9d09 | 1821 | for ac_var in $ac_precious_vars; do |
2f1a1aea FCE |
1822 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1823 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7fbd9d09 FCE |
1824 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1825 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2f1a1aea FCE |
1826 | case $ac_old_set,$ac_new_set in |
1827 | set,) | |
27aba29a JS |
1828 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1829 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2f1a1aea FCE |
1830 | ac_cache_corrupted=: ;; |
1831 | ,set) | |
27aba29a JS |
1832 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1833 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2f1a1aea FCE |
1834 | ac_cache_corrupted=: ;; |
1835 | ,);; | |
1836 | *) | |
1837 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
27aba29a JS |
1838 | # differences in whitespace do not lead to failure. |
1839 | ac_old_val_w=`echo x $ac_old_val` | |
1840 | ac_new_val_w=`echo x $ac_new_val` | |
1841 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1842 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1843 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1844 | ac_cache_corrupted=: | |
1845 | else | |
1846 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1847 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1848 | eval $ac_var=\$ac_old_val | |
1849 | fi | |
1850 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1851 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1852 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1853 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2f1a1aea FCE |
1854 | fi;; |
1855 | esac | |
1856 | # Pass precious variables to config.status. | |
1857 | if test "$ac_new_set" = set; then | |
1858 | case $ac_new_val in | |
27aba29a | 1859 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
2f1a1aea FCE |
1860 | *) ac_arg=$ac_var=$ac_new_val ;; |
1861 | esac | |
1862 | case " $ac_configure_args " in | |
1863 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1864 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1865 | esac | |
1866 | fi | |
1867 | done | |
1868 | if $ac_cache_corrupted; then | |
27aba29a JS |
1869 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1870 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1871 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1872 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1873 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1874 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
2f1a1aea FCE |
1875 | { (exit 1); exit 1; }; } |
1876 | fi | |
1877 | ||
8ae7a94a | 1878 | |
2f1a1aea FCE |
1879 | |
1880 | ||
1881 | ||
1882 | ||
1883 | ||
1884 | ||
1885 | ||
1886 | ||
1887 | ||
1888 | ||
1889 | ||
1890 | ||
1891 | ||
1892 | ||
1893 | ||
1894 | ||
1895 | ||
1896 | ||
1897 | ||
1898 | ||
1899 | ||
1900 | ||
1901 | ||
7fbd9d09 FCE |
1902 | ac_ext=c |
1903 | ac_cpp='$CPP $CPPFLAGS' | |
1904 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1905 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1906 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2f1a1aea FCE |
1907 | |
1908 | ||
1909 | ||
2f1a1aea | 1910 | |
7fbd9d09 | 1911 | am__api_version='1.10' |
10b20266 | 1912 | |
2f1a1aea | 1913 | ac_aux_dir= |
7fbd9d09 FCE |
1914 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
1915 | if test -f "$ac_dir/install-sh"; then | |
2f1a1aea FCE |
1916 | ac_aux_dir=$ac_dir |
1917 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1918 | break | |
7fbd9d09 | 1919 | elif test -f "$ac_dir/install.sh"; then |
2f1a1aea FCE |
1920 | ac_aux_dir=$ac_dir |
1921 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1922 | break | |
7fbd9d09 | 1923 | elif test -f "$ac_dir/shtool"; then |
2f1a1aea FCE |
1924 | ac_aux_dir=$ac_dir |
1925 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1926 | break | |
1927 | fi | |
1928 | done | |
1929 | if test -z "$ac_aux_dir"; then | |
27aba29a JS |
1930 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
1931 | $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
2f1a1aea FCE |
1932 | { (exit 1); exit 1; }; } |
1933 | fi | |
7fbd9d09 FCE |
1934 | |
1935 | # These three variables are undocumented and unsupported, | |
1936 | # and are intended to be withdrawn in a future Autoconf release. | |
1937 | # They can cause serious problems if a builder's source tree is in a directory | |
1938 | # whose full name contains unusual characters. | |
1939 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1940 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1941 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1942 | ||
2f1a1aea FCE |
1943 | |
1944 | # Find a good install program. We prefer a C program (faster), | |
1945 | # so one script is as good as another. But avoid the broken or | |
1946 | # incompatible versions: | |
1947 | # SysV /etc/install, /usr/sbin/install | |
1948 | # SunOS /usr/etc/install | |
1949 | # IRIX /sbin/install | |
1950 | # AIX /bin/install | |
1951 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1952 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1953 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1954 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1955 | # OS/2's system install, which has a completely different semantic | |
1956 | # ./install, which can be erroneously created by make from ./install.sh. | |
27aba29a JS |
1957 | # Reject install programs that cannot install multiple files. |
1958 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
1959 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2f1a1aea FCE |
1960 | if test -z "$INSTALL"; then |
1961 | if test "${ac_cv_path_install+set}" = set; then | |
27aba29a | 1962 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
1963 | else |
1964 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1965 | for as_dir in $PATH | |
1966 | do | |
1967 | IFS=$as_save_IFS | |
1968 | test -z "$as_dir" && as_dir=. | |
1969 | # Account for people who put trailing slashes in PATH elements. | |
1970 | case $as_dir/ in | |
1971 | ./ | .// | /cC/* | \ | |
1972 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1973 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
1974 | /usr/ucb/* ) ;; | |
1975 | *) | |
1976 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1977 | # Don't use installbsd from OSF since it installs stuff as root | |
1978 | # by default. | |
1979 | for ac_prog in ginstall scoinst install; do | |
1980 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 1981 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
2f1a1aea FCE |
1982 | if test $ac_prog = install && |
1983 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1984 | # AIX install. It has an incompatible calling convention. | |
1985 | : | |
1986 | elif test $ac_prog = install && | |
1987 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1988 | # program-specific install script used by HP pwplus--don't use. | |
1989 | : | |
1990 | else | |
27aba29a JS |
1991 | rm -rf conftest.one conftest.two conftest.dir |
1992 | echo one > conftest.one | |
1993 | echo two > conftest.two | |
1994 | mkdir conftest.dir | |
1995 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
1996 | test -s conftest.one && test -s conftest.two && | |
1997 | test -s conftest.dir/conftest.one && | |
1998 | test -s conftest.dir/conftest.two | |
1999 | then | |
2000 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2001 | break 3 | |
2002 | fi | |
2f1a1aea FCE |
2003 | fi |
2004 | fi | |
2005 | done | |
2006 | done | |
2007 | ;; | |
2008 | esac | |
27aba29a | 2009 | |
2f1a1aea | 2010 | done |
7fbd9d09 | 2011 | IFS=$as_save_IFS |
2f1a1aea | 2012 | |
27aba29a | 2013 | rm -rf conftest.one conftest.two conftest.dir |
2f1a1aea FCE |
2014 | |
2015 | fi | |
2016 | if test "${ac_cv_path_install+set}" = set; then | |
2017 | INSTALL=$ac_cv_path_install | |
2018 | else | |
7fbd9d09 FCE |
2019 | # As a last resort, use the slow shell script. Don't cache a |
2020 | # value for INSTALL within a source directory, because that will | |
2f1a1aea | 2021 | # break other packages using the cache if that directory is |
7fbd9d09 | 2022 | # removed, or if the value is a relative name. |
2f1a1aea FCE |
2023 | INSTALL=$ac_install_sh |
2024 | fi | |
2025 | fi | |
27aba29a JS |
2026 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2027 | $as_echo "$INSTALL" >&6; } | |
2f1a1aea FCE |
2028 | |
2029 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2030 | # It thinks the first close brace ends the variable substitution. | |
2031 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2032 | ||
2033 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2034 | ||
2035 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2036 | ||
27aba29a JS |
2037 | { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2038 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
2f1a1aea FCE |
2039 | # Just in case |
2040 | sleep 1 | |
2041 | echo timestamp > conftest.file | |
2042 | # Do `set' in a subshell so we don't clobber the current shell's | |
2043 | # arguments. Must try -L first in case configure is actually a | |
2044 | # symlink; some systems play weird games with the mod time of symlinks | |
2045 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2046 | # directory). | |
2047 | if ( | |
2048 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
2049 | if test "$*" = "X"; then | |
2050 | # -L didn't work. | |
2051 | set X `ls -t $srcdir/configure conftest.file` | |
2052 | fi | |
2053 | rm -f conftest.file | |
2054 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2055 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2056 | ||
2057 | # If neither matched, then we have a broken ls. This can happen | |
2058 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2059 | # broken ls alias from the environment. This has actually | |
2060 | # happened. Such a system could not be considered "sane". | |
27aba29a | 2061 | { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2f1a1aea | 2062 | alias in your environment" >&5 |
27aba29a | 2063 | $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
2f1a1aea FCE |
2064 | alias in your environment" >&2;} |
2065 | { (exit 1); exit 1; }; } | |
2066 | fi | |
2067 | ||
2068 | test "$2" = conftest.file | |
2069 | ) | |
2070 | then | |
2071 | # Ok. | |
2072 | : | |
2073 | else | |
27aba29a | 2074 | { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2f1a1aea | 2075 | Check your system clock" >&5 |
27aba29a | 2076 | $as_echo "$as_me: error: newly created file is older than distributed files! |
2f1a1aea FCE |
2077 | Check your system clock" >&2;} |
2078 | { (exit 1); exit 1; }; } | |
2079 | fi | |
27aba29a JS |
2080 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2081 | $as_echo "yes" >&6; } | |
2f1a1aea | 2082 | test "$program_prefix" != NONE && |
7fbd9d09 | 2083 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
2f1a1aea FCE |
2084 | # Use a double $ so make ignores it. |
2085 | test "$program_suffix" != NONE && | |
7fbd9d09 | 2086 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
27aba29a | 2087 | # Double any \ or $. |
2f1a1aea | 2088 | # By default was `s,x,x', remove it if useless. |
27aba29a JS |
2089 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2090 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2f1a1aea FCE |
2091 | |
2092 | # expand $ac_aux_dir to an absolute path | |
2093 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2094 | ||
2095 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
2096 | # Use eval to expand $SHELL | |
2097 | if eval "$MISSING --run true"; then | |
2098 | am_missing_run="$MISSING --run " | |
2099 | else | |
2100 | am_missing_run= | |
27aba29a JS |
2101 | { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
2102 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
818ba2bc MW |
2103 | fi |
2104 | ||
27aba29a JS |
2105 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
2106 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
7fbd9d09 FCE |
2107 | if test -z "$MKDIR_P"; then |
2108 | if test "${ac_cv_path_mkdir+set}" = set; then | |
27aba29a | 2109 | $as_echo_n "(cached) " >&6 |
7fbd9d09 FCE |
2110 | else |
2111 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2112 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2113 | do | |
2114 | IFS=$as_save_IFS | |
2115 | test -z "$as_dir" && as_dir=. | |
2116 | for ac_prog in mkdir gmkdir; do | |
2117 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2118 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
2119 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2120 | 'mkdir (GNU coreutils) '* | \ | |
2121 | 'mkdir (coreutils) '* | \ | |
2122 | 'mkdir (fileutils) '4.1*) | |
2123 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2124 | break 3;; | |
2125 | esac | |
2126 | done | |
2127 | done | |
2128 | done | |
2129 | IFS=$as_save_IFS | |
2130 | ||
2131 | fi | |
2132 | ||
2133 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2134 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2f1a1aea | 2135 | else |
7fbd9d09 FCE |
2136 | # As a last resort, use the slow shell script. Don't cache a |
2137 | # value for MKDIR_P within a source directory, because that will | |
2138 | # break other packages using the cache if that directory is | |
2139 | # removed, or if the value is a relative name. | |
2140 | test -d ./--version && rmdir ./--version | |
2141 | MKDIR_P="$ac_install_sh -d" | |
2f1a1aea FCE |
2142 | fi |
2143 | fi | |
27aba29a JS |
2144 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
2145 | $as_echo "$MKDIR_P" >&6; } | |
7fbd9d09 FCE |
2146 | |
2147 | mkdir_p="$MKDIR_P" | |
2148 | case $mkdir_p in | |
2149 | [\\/$]* | ?:[\\/]*) ;; | |
2150 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2151 | esac | |
2f1a1aea FCE |
2152 | |
2153 | for ac_prog in gawk mawk nawk awk | |
2154 | do | |
2155 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2156 | set dummy $ac_prog; ac_word=$2 | |
27aba29a JS |
2157 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2158 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 2159 | if test "${ac_cv_prog_AWK+set}" = set; then |
27aba29a | 2160 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2161 | else |
2162 | if test -n "$AWK"; then | |
2163 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2164 | else | |
2165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2166 | for as_dir in $PATH | |
2167 | do | |
2168 | IFS=$as_save_IFS | |
2169 | test -z "$as_dir" && as_dir=. | |
2170 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 2171 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2172 | ac_cv_prog_AWK="$ac_prog" |
27aba29a | 2173 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2174 | break 2 |
2175 | fi | |
2176 | done | |
2177 | done | |
7fbd9d09 | 2178 | IFS=$as_save_IFS |
2f1a1aea FCE |
2179 | |
2180 | fi | |
2181 | fi | |
2182 | AWK=$ac_cv_prog_AWK | |
2183 | if test -n "$AWK"; then | |
27aba29a JS |
2184 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2185 | $as_echo "$AWK" >&6; } | |
2f1a1aea | 2186 | else |
27aba29a JS |
2187 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2188 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
2189 | fi |
2190 | ||
7fbd9d09 | 2191 | |
2f1a1aea FCE |
2192 | test -n "$AWK" && break |
2193 | done | |
2194 | ||
27aba29a JS |
2195 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2196 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2197 | set x ${MAKE-make} | |
2198 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
7fbd9d09 | 2199 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a | 2200 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2201 | else |
2202 | cat >conftest.make <<\_ACEOF | |
7fbd9d09 | 2203 | SHELL = /bin/sh |
2f1a1aea | 2204 | all: |
7fbd9d09 | 2205 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
2f1a1aea FCE |
2206 | _ACEOF |
2207 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
7fbd9d09 FCE |
2208 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2209 | *@@@%%%=?*=@@@%%%*) | |
2210 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2211 | *) | |
2212 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2213 | esac | |
2f1a1aea FCE |
2214 | rm -f conftest.make |
2215 | fi | |
7fbd9d09 | 2216 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
27aba29a JS |
2217 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2218 | $as_echo "yes" >&6; } | |
2f1a1aea FCE |
2219 | SET_MAKE= |
2220 | else | |
27aba29a JS |
2221 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2222 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
2223 | SET_MAKE="MAKE=${MAKE-make}" |
2224 | fi | |
2225 | ||
2226 | rm -rf .tst 2>/dev/null | |
2227 | mkdir .tst 2>/dev/null | |
2228 | if test -d .tst; then | |
2229 | am__leading_dot=. | |
2230 | else | |
2231 | am__leading_dot=_ | |
2232 | fi | |
2233 | rmdir .tst 2>/dev/null | |
2234 | ||
7fbd9d09 FCE |
2235 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2236 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2237 | # is not polluted with repeated "-I." | |
2238 | am__isrc=' -I$(srcdir)' | |
2239 | # test to see if srcdir already configured | |
2240 | if test -f $srcdir/config.status; then | |
27aba29a JS |
2241 | { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
2242 | $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
2f1a1aea | 2243 | { (exit 1); exit 1; }; } |
7fbd9d09 | 2244 | fi |
2f1a1aea FCE |
2245 | fi |
2246 | ||
2247 | # test whether we have cygpath | |
2248 | if test -z "$CYGPATH_W"; then | |
2249 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2250 | CYGPATH_W='cygpath -w' | |
2251 | else | |
2252 | CYGPATH_W=echo | |
2253 | fi | |
2254 | fi | |
2255 | ||
2256 | ||
2257 | # Define the identity of the package. | |
2258 | PACKAGE='systemtap' | |
27aba29a | 2259 | VERSION='0.9.5' |
2f1a1aea FCE |
2260 | |
2261 | ||
2262 | cat >>confdefs.h <<_ACEOF | |
2263 | #define PACKAGE "$PACKAGE" | |
2264 | _ACEOF | |
2265 | ||
2266 | ||
2267 | cat >>confdefs.h <<_ACEOF | |
2268 | #define VERSION "$VERSION" | |
2269 | _ACEOF | |
2270 | ||
2271 | # Some tools Automake needs. | |
2272 | ||
2273 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2274 | ||
2275 | ||
2276 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2277 | ||
2278 | ||
2279 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2280 | ||
2281 | ||
2282 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2283 | ||
2284 | ||
2285 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2286 | ||
7fbd9d09 | 2287 | install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} |
2f1a1aea FCE |
2288 | |
2289 | # Installed binaries are usually stripped using `strip' when the user | |
2290 | # run `make install-strip'. However `strip' might not be the right | |
2291 | # tool to use in cross-compilation environments, therefore Automake | |
2292 | # will honor the `STRIP' environment variable to overrule this program. | |
2293 | if test "$cross_compiling" != no; then | |
2294 | if test -n "$ac_tool_prefix"; then | |
2295 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2296 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
27aba29a JS |
2297 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2298 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 2299 | if test "${ac_cv_prog_STRIP+set}" = set; then |
27aba29a | 2300 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2301 | else |
2302 | if test -n "$STRIP"; then | |
2303 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2304 | else | |
2305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2306 | for as_dir in $PATH | |
2307 | do | |
2308 | IFS=$as_save_IFS | |
2309 | test -z "$as_dir" && as_dir=. | |
2310 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 2311 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2312 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
27aba29a | 2313 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2314 | break 2 |
2315 | fi | |
2316 | done | |
2317 | done | |
7fbd9d09 | 2318 | IFS=$as_save_IFS |
2f1a1aea FCE |
2319 | |
2320 | fi | |
2321 | fi | |
2322 | STRIP=$ac_cv_prog_STRIP | |
2323 | if test -n "$STRIP"; then | |
27aba29a JS |
2324 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 |
2325 | $as_echo "$STRIP" >&6; } | |
2f1a1aea | 2326 | else |
27aba29a JS |
2327 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2328 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
2329 | fi |
2330 | ||
7fbd9d09 | 2331 | |
2f1a1aea FCE |
2332 | fi |
2333 | if test -z "$ac_cv_prog_STRIP"; then | |
2334 | ac_ct_STRIP=$STRIP | |
2335 | # Extract the first word of "strip", so it can be a program name with args. | |
2336 | set dummy strip; ac_word=$2 | |
27aba29a JS |
2337 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2338 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 2339 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
27aba29a | 2340 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2341 | else |
2342 | if test -n "$ac_ct_STRIP"; then | |
2343 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2344 | else | |
2345 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2346 | for as_dir in $PATH | |
2347 | do | |
2348 | IFS=$as_save_IFS | |
2349 | test -z "$as_dir" && as_dir=. | |
2350 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 2351 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2352 | ac_cv_prog_ac_ct_STRIP="strip" |
27aba29a | 2353 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2354 | break 2 |
2355 | fi | |
2356 | done | |
2357 | done | |
7fbd9d09 | 2358 | IFS=$as_save_IFS |
2f1a1aea | 2359 | |
2f1a1aea FCE |
2360 | fi |
2361 | fi | |
2362 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2363 | if test -n "$ac_ct_STRIP"; then | |
27aba29a JS |
2364 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
2365 | $as_echo "$ac_ct_STRIP" >&6; } | |
2f1a1aea | 2366 | else |
27aba29a JS |
2367 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2368 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
2369 | fi |
2370 | ||
7fbd9d09 FCE |
2371 | if test "x$ac_ct_STRIP" = x; then |
2372 | STRIP=":" | |
2373 | else | |
2374 | case $cross_compiling:$ac_tool_warned in | |
2375 | yes:) | |
27aba29a JS |
2376 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2377 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7fbd9d09 FCE |
2378 | ac_tool_warned=yes ;; |
2379 | esac | |
2380 | STRIP=$ac_ct_STRIP | |
2381 | fi | |
2f1a1aea FCE |
2382 | else |
2383 | STRIP="$ac_cv_prog_STRIP" | |
2384 | fi | |
2385 | ||
2386 | fi | |
7fbd9d09 | 2387 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
2f1a1aea FCE |
2388 | |
2389 | # We need awk for the "check" target. The system "awk" is bad on | |
2390 | # some platforms. | |
2391 | # Always define AMTAR for backward compatibility. | |
2392 | ||
2393 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2394 | ||
2395 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2396 | ||
2397 | ||
2398 | ||
2399 | ||
2400 | ||
27aba29a JS |
2401 | { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
2402 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
7fbd9d09 | 2403 | # Check whether --enable-maintainer-mode was given. |
2f1a1aea | 2404 | if test "${enable_maintainer_mode+set}" = set; then |
7fbd9d09 | 2405 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
2f1a1aea FCE |
2406 | else |
2407 | USE_MAINTAINER_MODE=no | |
7fbd9d09 | 2408 | fi |
2f1a1aea | 2409 | |
27aba29a JS |
2410 | { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
2411 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
7fbd9d09 | 2412 | if test $USE_MAINTAINER_MODE = yes; then |
2f1a1aea FCE |
2413 | MAINTAINER_MODE_TRUE= |
2414 | MAINTAINER_MODE_FALSE='#' | |
2415 | else | |
2416 | MAINTAINER_MODE_TRUE='#' | |
2417 | MAINTAINER_MODE_FALSE= | |
2418 | fi | |
2419 | ||
2420 | MAINT=$MAINTAINER_MODE_TRUE | |
2421 | ||
2422 | ||
2423 | ||
7fbd9d09 FCE |
2424 | mkdir_p="$MKDIR_P" |
2425 | case $mkdir_p in | |
2426 | [\\/$]* | ?:[\\/]*) ;; | |
2427 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2428 | esac | |
2429 | ||
98aab489 | 2430 | |
27aba29a JS |
2431 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
2432 | $as_echo_n "checking whether ln -s works... " >&6; } | |
2f1a1aea FCE |
2433 | LN_S=$as_ln_s |
2434 | if test "$LN_S" = "ln -s"; then | |
27aba29a JS |
2435 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2436 | $as_echo "yes" >&6; } | |
2f1a1aea | 2437 | else |
27aba29a JS |
2438 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
2439 | $as_echo "no, using $LN_S" >&6; } | |
2f1a1aea FCE |
2440 | fi |
2441 | ||
2442 | ac_ext=c | |
2443 | ac_cpp='$CPP $CPPFLAGS' | |
2444 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2445 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2446 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2447 | if test -n "$ac_tool_prefix"; then | |
2448 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2449 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
27aba29a JS |
2450 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2451 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 2452 | if test "${ac_cv_prog_CC+set}" = set; then |
27aba29a | 2453 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2454 | else |
2455 | if test -n "$CC"; then | |
2456 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2457 | else | |
2458 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2459 | for as_dir in $PATH | |
2460 | do | |
2461 | IFS=$as_save_IFS | |
2462 | test -z "$as_dir" && as_dir=. | |
2463 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 2464 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2465 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
27aba29a | 2466 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2467 | break 2 |
2468 | fi | |
2469 | done | |
2470 | done | |
7fbd9d09 | 2471 | IFS=$as_save_IFS |
2f1a1aea FCE |
2472 | |
2473 | fi | |
2474 | fi | |
2475 | CC=$ac_cv_prog_CC | |
2476 | if test -n "$CC"; then | |
27aba29a JS |
2477 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2478 | $as_echo "$CC" >&6; } | |
2f1a1aea | 2479 | else |
27aba29a JS |
2480 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2481 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
2482 | fi |
2483 | ||
7fbd9d09 | 2484 | |
2f1a1aea FCE |
2485 | fi |
2486 | if test -z "$ac_cv_prog_CC"; then | |
2487 | ac_ct_CC=$CC | |
2488 | # Extract the first word of "gcc", so it can be a program name with args. | |
2489 | set dummy gcc; ac_word=$2 | |
27aba29a JS |
2490 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2491 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 2492 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
27aba29a | 2493 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2494 | else |
2495 | if test -n "$ac_ct_CC"; then | |
2496 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2497 | else | |
2498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2499 | for as_dir in $PATH | |
2500 | do | |
2501 | IFS=$as_save_IFS | |
2502 | test -z "$as_dir" && as_dir=. | |
2503 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 2504 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2505 | ac_cv_prog_ac_ct_CC="gcc" |
27aba29a | 2506 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2507 | break 2 |
2508 | fi | |
2509 | done | |
2510 | done | |
7fbd9d09 | 2511 | IFS=$as_save_IFS |
2f1a1aea FCE |
2512 | |
2513 | fi | |
2514 | fi | |
2515 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2516 | if test -n "$ac_ct_CC"; then | |
27aba29a JS |
2517 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2518 | $as_echo "$ac_ct_CC" >&6; } | |
2f1a1aea | 2519 | else |
27aba29a JS |
2520 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2521 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
2522 | fi |
2523 | ||
7fbd9d09 FCE |
2524 | if test "x$ac_ct_CC" = x; then |
2525 | CC="" | |
2526 | else | |
2527 | case $cross_compiling:$ac_tool_warned in | |
2528 | yes:) | |
27aba29a JS |
2529 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2530 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7fbd9d09 FCE |
2531 | ac_tool_warned=yes ;; |
2532 | esac | |
2533 | CC=$ac_ct_CC | |
2534 | fi | |
2f1a1aea FCE |
2535 | else |
2536 | CC="$ac_cv_prog_CC" | |
2537 | fi | |
2538 | ||
2539 | if test -z "$CC"; then | |
7fbd9d09 FCE |
2540 | if test -n "$ac_tool_prefix"; then |
2541 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2f1a1aea | 2542 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
27aba29a JS |
2543 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2544 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 2545 | if test "${ac_cv_prog_CC+set}" = set; then |
27aba29a | 2546 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2547 | else |
2548 | if test -n "$CC"; then | |
2549 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2550 | else | |
2551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2552 | for as_dir in $PATH | |
2553 | do | |
2554 | IFS=$as_save_IFS | |
2555 | test -z "$as_dir" && as_dir=. | |
2556 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 2557 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2558 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
27aba29a | 2559 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2560 | break 2 |
2561 | fi | |
2562 | done | |
2563 | done | |
7fbd9d09 | 2564 | IFS=$as_save_IFS |
2f1a1aea FCE |
2565 | |
2566 | fi | |
2567 | fi | |
2568 | CC=$ac_cv_prog_CC | |
2569 | if test -n "$CC"; then | |
27aba29a JS |
2570 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2571 | $as_echo "$CC" >&6; } | |
818ba2bc | 2572 | else |
27aba29a JS |
2573 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2574 | $as_echo "no" >&6; } | |
818ba2bc MW |
2575 | fi |
2576 | ||
818ba2bc | 2577 | |
7fbd9d09 | 2578 | fi |
2f1a1aea FCE |
2579 | fi |
2580 | if test -z "$CC"; then | |
2581 | # Extract the first word of "cc", so it can be a program name with args. | |
2582 | set dummy cc; ac_word=$2 | |
27aba29a JS |
2583 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2584 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 2585 | if test "${ac_cv_prog_CC+set}" = set; then |
27aba29a | 2586 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2587 | else |
2588 | if test -n "$CC"; then | |
2589 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2590 | else | |
2591 | ac_prog_rejected=no | |
2592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2593 | for as_dir in $PATH | |
2594 | do | |
2595 | IFS=$as_save_IFS | |
2596 | test -z "$as_dir" && as_dir=. | |
2597 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 2598 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea FCE |
2599 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2600 | ac_prog_rejected=yes | |
2601 | continue | |
2602 | fi | |
2603 | ac_cv_prog_CC="cc" | |
27aba29a | 2604 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2605 | break 2 |
2606 | fi | |
2607 | done | |
2608 | done | |
7fbd9d09 | 2609 | IFS=$as_save_IFS |
2f1a1aea FCE |
2610 | |
2611 | if test $ac_prog_rejected = yes; then | |
2612 | # We found a bogon in the path, so make sure we never use it. | |
2613 | set dummy $ac_cv_prog_CC | |
2614 | shift | |
2615 | if test $# != 0; then | |
2616 | # We chose a different compiler from the bogus one. | |
2617 | # However, it has the same basename, so the bogon will be chosen | |
2618 | # first if we set CC to just the basename; use the full file name. | |
2619 | shift | |
2620 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2621 | fi | |
2622 | fi | |
2623 | fi | |
2624 | fi | |
2625 | CC=$ac_cv_prog_CC | |
2626 | if test -n "$CC"; then | |
27aba29a JS |
2627 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2628 | $as_echo "$CC" >&6; } | |
2f1a1aea | 2629 | else |
27aba29a JS |
2630 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2631 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
2632 | fi |
2633 | ||
7fbd9d09 | 2634 | |
2f1a1aea FCE |
2635 | fi |
2636 | if test -z "$CC"; then | |
2637 | if test -n "$ac_tool_prefix"; then | |
7fbd9d09 | 2638 | for ac_prog in cl.exe |
2f1a1aea FCE |
2639 | do |
2640 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2641 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
27aba29a JS |
2642 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2643 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 2644 | if test "${ac_cv_prog_CC+set}" = set; then |
27aba29a | 2645 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2646 | else |
2647 | if test -n "$CC"; then | |
2648 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2649 | else | |
2650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2651 | for as_dir in $PATH | |
2652 | do | |
2653 | IFS=$as_save_IFS | |
2654 | test -z "$as_dir" && as_dir=. | |
2655 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 2656 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2657 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
27aba29a | 2658 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2659 | break 2 |
2660 | fi | |
2661 | done | |
2662 | done | |
7fbd9d09 | 2663 | IFS=$as_save_IFS |
2f1a1aea FCE |
2664 | |
2665 | fi | |
2666 | fi | |
2667 | CC=$ac_cv_prog_CC | |
2668 | if test -n "$CC"; then | |
27aba29a JS |
2669 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2670 | $as_echo "$CC" >&6; } | |
2f1a1aea | 2671 | else |
27aba29a JS |
2672 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2673 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
2674 | fi |
2675 | ||
7fbd9d09 | 2676 | |
2f1a1aea FCE |
2677 | test -n "$CC" && break |
2678 | done | |
2679 | fi | |
2680 | if test -z "$CC"; then | |
2681 | ac_ct_CC=$CC | |
7fbd9d09 | 2682 | for ac_prog in cl.exe |
2f1a1aea FCE |
2683 | do |
2684 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2685 | set dummy $ac_prog; ac_word=$2 | |
27aba29a JS |
2686 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2687 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 2688 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
27aba29a | 2689 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2690 | else |
2691 | if test -n "$ac_ct_CC"; then | |
2692 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2693 | else | |
2694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2695 | for as_dir in $PATH | |
2696 | do | |
2697 | IFS=$as_save_IFS | |
2698 | test -z "$as_dir" && as_dir=. | |
2699 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 2700 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2701 | ac_cv_prog_ac_ct_CC="$ac_prog" |
27aba29a | 2702 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2703 | break 2 |
2704 | fi | |
2705 | done | |
2706 | done | |
7fbd9d09 | 2707 | IFS=$as_save_IFS |
2f1a1aea FCE |
2708 | |
2709 | fi | |
2710 | fi | |
2711 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2712 | if test -n "$ac_ct_CC"; then | |
27aba29a JS |
2713 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2714 | $as_echo "$ac_ct_CC" >&6; } | |
2f1a1aea | 2715 | else |
27aba29a JS |
2716 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2717 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
2718 | fi |
2719 | ||
7fbd9d09 | 2720 | |
2f1a1aea FCE |
2721 | test -n "$ac_ct_CC" && break |
2722 | done | |
2723 | ||
7fbd9d09 FCE |
2724 | if test "x$ac_ct_CC" = x; then |
2725 | CC="" | |
2726 | else | |
2727 | case $cross_compiling:$ac_tool_warned in | |
2728 | yes:) | |
27aba29a JS |
2729 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2730 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7fbd9d09 FCE |
2731 | ac_tool_warned=yes ;; |
2732 | esac | |
2733 | CC=$ac_ct_CC | |
2734 | fi | |
2f1a1aea FCE |
2735 | fi |
2736 | ||
2737 | fi | |
2738 | ||
2739 | ||
27aba29a JS |
2740 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2741 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2742 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2f1a1aea | 2743 | See \`config.log' for more details." >&5 |
27aba29a | 2744 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
2f1a1aea | 2745 | See \`config.log' for more details." >&2;} |
27aba29a | 2746 | { (exit 1); exit 1; }; }; } |
2f1a1aea FCE |
2747 | |
2748 | # Provide some information about the compiler. | |
27aba29a JS |
2749 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2750 | set X $ac_compile | |
2751 | ac_compiler=$2 | |
7fbd9d09 FCE |
2752 | { (ac_try="$ac_compiler --version >&5" |
2753 | case "(($ac_try" in | |
2754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2755 | *) ac_try_echo=$ac_try;; | |
2756 | esac | |
27aba29a JS |
2757 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2758 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 2759 | (eval "$ac_compiler --version >&5") 2>&5 |
2f1a1aea | 2760 | ac_status=$? |
27aba29a | 2761 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea | 2762 | (exit $ac_status); } |
7fbd9d09 FCE |
2763 | { (ac_try="$ac_compiler -v >&5" |
2764 | case "(($ac_try" in | |
2765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2766 | *) ac_try_echo=$ac_try;; | |
2767 | esac | |
27aba29a JS |
2768 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2769 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 2770 | (eval "$ac_compiler -v >&5") 2>&5 |
2f1a1aea | 2771 | ac_status=$? |
27aba29a | 2772 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea | 2773 | (exit $ac_status); } |
7fbd9d09 FCE |
2774 | { (ac_try="$ac_compiler -V >&5" |
2775 | case "(($ac_try" in | |
2776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2777 | *) ac_try_echo=$ac_try;; | |
2778 | esac | |
27aba29a JS |
2779 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2780 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 2781 | (eval "$ac_compiler -V >&5") 2>&5 |
2f1a1aea | 2782 | ac_status=$? |
27aba29a | 2783 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea FCE |
2784 | (exit $ac_status); } |
2785 | ||
2786 | cat >conftest.$ac_ext <<_ACEOF | |
2787 | /* confdefs.h. */ | |
2788 | _ACEOF | |
2789 | cat confdefs.h >>conftest.$ac_ext | |
2790 | cat >>conftest.$ac_ext <<_ACEOF | |
2791 | /* end confdefs.h. */ | |
2792 | ||
2793 | int | |
2794 | main () | |
2795 | { | |
2796 | ||
2797 | ; | |
2798 | return 0; | |
2799 | } | |
2800 | _ACEOF | |
2801 | ac_clean_files_save=$ac_clean_files | |
27aba29a | 2802 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
2f1a1aea FCE |
2803 | # Try to create an executable without -o first, disregard a.out. |
2804 | # It will help us diagnose broken compilers, and finding out an intuition | |
2805 | # of exeext. | |
27aba29a JS |
2806 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2807 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2808 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2809 | ||
2810 | # The possible output files: | |
2811 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2812 | ||
7fbd9d09 FCE |
2813 | ac_rmfiles= |
2814 | for ac_file in $ac_files | |
2815 | do | |
2816 | case $ac_file in | |
27aba29a | 2817 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
7fbd9d09 FCE |
2818 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2819 | esac | |
2820 | done | |
2821 | rm -f $ac_rmfiles | |
2822 | ||
2823 | if { (ac_try="$ac_link_default" | |
2824 | case "(($ac_try" in | |
2825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2826 | *) ac_try_echo=$ac_try;; | |
2827 | esac | |
27aba29a JS |
2828 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2829 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 2830 | (eval "$ac_link_default") 2>&5 |
2f1a1aea | 2831 | ac_status=$? |
27aba29a | 2832 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea | 2833 | (exit $ac_status); }; then |
7fbd9d09 FCE |
2834 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2835 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2836 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2837 | # so that the user can short-circuit this test for compilers unknown to | |
2838 | # Autoconf. | |
2839 | for ac_file in $ac_files '' | |
2f1a1aea FCE |
2840 | do |
2841 | test -f "$ac_file" || continue | |
2842 | case $ac_file in | |
27aba29a | 2843 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
2f1a1aea FCE |
2844 | ;; |
2845 | [ab].out ) | |
2846 | # We found the default executable, but exeext='' is most | |
2847 | # certainly right. | |
2848 | break;; | |
2849 | *.* ) | |
7fbd9d09 FCE |
2850 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2851 | then :; else | |
2852 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2853 | fi | |
2854 | # We set ac_cv_exeext here because the later test for it is not | |
2855 | # safe: cross compilers may not add the suffix if given an `-o' | |
2856 | # argument, so we may need to know it at that point already. | |
2857 | # Even if this section looks crufty: it has the advantage of | |
2858 | # actually working. | |
2f1a1aea FCE |
2859 | break;; |
2860 | * ) | |
2861 | break;; | |
2862 | esac | |
2863 | done | |
7fbd9d09 FCE |
2864 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2865 | ||
2f1a1aea | 2866 | else |
7fbd9d09 FCE |
2867 | ac_file='' |
2868 | fi | |
2869 | ||
27aba29a JS |
2870 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
2871 | $as_echo "$ac_file" >&6; } | |
7fbd9d09 | 2872 | if test -z "$ac_file"; then |
27aba29a | 2873 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
2874 | sed 's/^/| /' conftest.$ac_ext >&5 |
2875 | ||
27aba29a JS |
2876 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2877 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2878 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2f1a1aea | 2879 | See \`config.log' for more details." >&5 |
27aba29a | 2880 | $as_echo "$as_me: error: C compiler cannot create executables |
2f1a1aea | 2881 | See \`config.log' for more details." >&2;} |
27aba29a | 2882 | { (exit 77); exit 77; }; }; } |
2f1a1aea FCE |
2883 | fi |
2884 | ||
2885 | ac_exeext=$ac_cv_exeext | |
2f1a1aea | 2886 | |
7fbd9d09 | 2887 | # Check that the compiler produces executables we can run. If not, either |
2f1a1aea | 2888 | # the compiler is broken, or we cross compile. |
27aba29a JS |
2889 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2890 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
2f1a1aea FCE |
2891 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2892 | # If not cross compiling, check that we can run a simple program. | |
2893 | if test "$cross_compiling" != yes; then | |
2894 | if { ac_try='./$ac_file' | |
7fbd9d09 FCE |
2895 | { (case "(($ac_try" in |
2896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2897 | *) ac_try_echo=$ac_try;; | |
2898 | esac | |
27aba29a JS |
2899 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2900 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 2901 | (eval "$ac_try") 2>&5 |
2f1a1aea | 2902 | ac_status=$? |
27aba29a | 2903 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea FCE |
2904 | (exit $ac_status); }; }; then |
2905 | cross_compiling=no | |
2906 | else | |
2907 | if test "$cross_compiling" = maybe; then | |
2908 | cross_compiling=yes | |
2909 | else | |
27aba29a JS |
2910 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2911 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2912 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2f1a1aea FCE |
2913 | If you meant to cross compile, use \`--host'. |
2914 | See \`config.log' for more details." >&5 | |
27aba29a | 2915 | $as_echo "$as_me: error: cannot run C compiled programs. |
2f1a1aea FCE |
2916 | If you meant to cross compile, use \`--host'. |
2917 | See \`config.log' for more details." >&2;} | |
27aba29a | 2918 | { (exit 1); exit 1; }; }; } |
2f1a1aea FCE |
2919 | fi |
2920 | fi | |
2921 | fi | |
27aba29a JS |
2922 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2923 | $as_echo "yes" >&6; } | |
2f1a1aea | 2924 | |
27aba29a | 2925 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
2f1a1aea | 2926 | ac_clean_files=$ac_clean_files_save |
7fbd9d09 | 2927 | # Check that the compiler produces executables we can run. If not, either |
2f1a1aea | 2928 | # the compiler is broken, or we cross compile. |
27aba29a JS |
2929 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2930 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2931 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2932 | $as_echo "$cross_compiling" >&6; } | |
7fbd9d09 | 2933 | |
27aba29a JS |
2934 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2935 | $as_echo_n "checking for suffix of executables... " >&6; } | |
7fbd9d09 FCE |
2936 | if { (ac_try="$ac_link" |
2937 | case "(($ac_try" in | |
2938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2939 | *) ac_try_echo=$ac_try;; | |
2940 | esac | |
27aba29a JS |
2941 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2942 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 2943 | (eval "$ac_link") 2>&5 |
2f1a1aea | 2944 | ac_status=$? |
27aba29a | 2945 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea FCE |
2946 | (exit $ac_status); }; then |
2947 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2948 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2949 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2950 | # `rm'. | |
2951 | for ac_file in conftest.exe conftest conftest.*; do | |
2952 | test -f "$ac_file" || continue | |
2953 | case $ac_file in | |
27aba29a | 2954 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
2f1a1aea | 2955 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2f1a1aea FCE |
2956 | break;; |
2957 | * ) break;; | |
2958 | esac | |
2959 | done | |
2960 | else | |
27aba29a JS |
2961 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2962 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2963 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2f1a1aea | 2964 | See \`config.log' for more details." >&5 |
27aba29a | 2965 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
2f1a1aea | 2966 | See \`config.log' for more details." >&2;} |
27aba29a | 2967 | { (exit 1); exit 1; }; }; } |
2f1a1aea FCE |
2968 | fi |
2969 | ||
2970 | rm -f conftest$ac_cv_exeext | |
27aba29a JS |
2971 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2972 | $as_echo "$ac_cv_exeext" >&6; } | |
2f1a1aea FCE |
2973 | |
2974 | rm -f conftest.$ac_ext | |
2975 | EXEEXT=$ac_cv_exeext | |
2976 | ac_exeext=$EXEEXT | |
27aba29a JS |
2977 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2978 | $as_echo_n "checking for suffix of object files... " >&6; } | |
2f1a1aea | 2979 | if test "${ac_cv_objext+set}" = set; then |
27aba29a | 2980 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2981 | else |
2982 | cat >conftest.$ac_ext <<_ACEOF | |
2983 | /* confdefs.h. */ | |
2984 | _ACEOF | |
2985 | cat confdefs.h >>conftest.$ac_ext | |
2986 | cat >>conftest.$ac_ext <<_ACEOF | |
2987 | /* end confdefs.h. */ | |
2988 | ||
2989 | int | |
2990 | main () | |
2991 | { | |
2992 | ||
2993 | ; | |
2994 | return 0; | |
2995 | } | |
2996 | _ACEOF | |
2997 | rm -f conftest.o conftest.obj | |
7fbd9d09 FCE |
2998 | if { (ac_try="$ac_compile" |
2999 | case "(($ac_try" in | |
3000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3001 | *) ac_try_echo=$ac_try;; | |
3002 | esac | |
27aba29a JS |
3003 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3004 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 3005 | (eval "$ac_compile") 2>&5 |
2f1a1aea | 3006 | ac_status=$? |
27aba29a | 3007 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea | 3008 | (exit $ac_status); }; then |
7fbd9d09 FCE |
3009 | for ac_file in conftest.o conftest.obj conftest.*; do |
3010 | test -f "$ac_file" || continue; | |
2f1a1aea | 3011 | case $ac_file in |
27aba29a | 3012 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
2f1a1aea FCE |
3013 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3014 | break;; | |
3015 | esac | |
3016 | done | |
3017 | else | |
27aba29a | 3018 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
3019 | sed 's/^/| /' conftest.$ac_ext >&5 |
3020 | ||
27aba29a JS |
3021 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3022 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3023 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2f1a1aea | 3024 | See \`config.log' for more details." >&5 |
27aba29a | 3025 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
2f1a1aea | 3026 | See \`config.log' for more details." >&2;} |
27aba29a | 3027 | { (exit 1); exit 1; }; }; } |
2f1a1aea FCE |
3028 | fi |
3029 | ||
3030 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3031 | fi | |
27aba29a JS |
3032 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3033 | $as_echo "$ac_cv_objext" >&6; } | |
2f1a1aea FCE |
3034 | OBJEXT=$ac_cv_objext |
3035 | ac_objext=$OBJEXT | |
27aba29a JS |
3036 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3037 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
2f1a1aea | 3038 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
27aba29a | 3039 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3040 | else |
3041 | cat >conftest.$ac_ext <<_ACEOF | |
3042 | /* confdefs.h. */ | |
3043 | _ACEOF | |
3044 | cat confdefs.h >>conftest.$ac_ext | |
3045 | cat >>conftest.$ac_ext <<_ACEOF | |
3046 | /* end confdefs.h. */ | |
3047 | ||
3048 | int | |
3049 | main () | |
3050 | { | |
3051 | #ifndef __GNUC__ | |
3052 | choke me | |
3053 | #endif | |
3054 | ||
3055 | ; | |
3056 | return 0; | |
3057 | } | |
3058 | _ACEOF | |
3059 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
3060 | if { (ac_try="$ac_compile" |
3061 | case "(($ac_try" in | |
3062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3063 | *) ac_try_echo=$ac_try;; | |
3064 | esac | |
27aba29a JS |
3065 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3066 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 3067 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
3068 | ac_status=$? |
3069 | grep -v '^ *+' conftest.er1 >conftest.err | |
3070 | rm -f conftest.er1 | |
3071 | cat conftest.err >&5 | |
27aba29a | 3072 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
3073 | (exit $ac_status); } && { |
3074 | test -z "$ac_c_werror_flag" || | |
3075 | test ! -s conftest.err | |
3076 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
3077 | ac_compiler_gnu=yes |
3078 | else | |
27aba29a | 3079 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
3080 | sed 's/^/| /' conftest.$ac_ext >&5 |
3081 | ||
7fbd9d09 | 3082 | ac_compiler_gnu=no |
2f1a1aea | 3083 | fi |
7fbd9d09 FCE |
3084 | |
3085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2f1a1aea FCE |
3086 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3087 | ||
3088 | fi | |
27aba29a JS |
3089 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3090 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3091 | if test $ac_compiler_gnu = yes; then | |
3092 | GCC=yes | |
3093 | else | |
3094 | GCC= | |
3095 | fi | |
2f1a1aea FCE |
3096 | ac_test_CFLAGS=${CFLAGS+set} |
3097 | ac_save_CFLAGS=$CFLAGS | |
27aba29a JS |
3098 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3099 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
2f1a1aea | 3100 | if test "${ac_cv_prog_cc_g+set}" = set; then |
27aba29a | 3101 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 3102 | else |
7fbd9d09 FCE |
3103 | ac_save_c_werror_flag=$ac_c_werror_flag |
3104 | ac_c_werror_flag=yes | |
3105 | ac_cv_prog_cc_g=no | |
3106 | CFLAGS="-g" | |
3107 | cat >conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
3108 | /* confdefs.h. */ |
3109 | _ACEOF | |
3110 | cat confdefs.h >>conftest.$ac_ext | |
3111 | cat >>conftest.$ac_ext <<_ACEOF | |
3112 | /* end confdefs.h. */ | |
3113 | ||
3114 | int | |
3115 | main () | |
3116 | { | |
3117 | ||
3118 | ; | |
3119 | return 0; | |
3120 | } | |
3121 | _ACEOF | |
3122 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
3123 | if { (ac_try="$ac_compile" |
3124 | case "(($ac_try" in | |
3125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3126 | *) ac_try_echo=$ac_try;; | |
3127 | esac | |
27aba29a JS |
3128 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3129 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 3130 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
3131 | ac_status=$? |
3132 | grep -v '^ *+' conftest.er1 >conftest.err | |
3133 | rm -f conftest.er1 | |
3134 | cat conftest.err >&5 | |
27aba29a | 3135 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
3136 | (exit $ac_status); } && { |
3137 | test -z "$ac_c_werror_flag" || | |
3138 | test ! -s conftest.err | |
3139 | } && test -s conftest.$ac_objext; then | |
3140 | ac_cv_prog_cc_g=yes | |
3141 | else | |
27aba29a | 3142 | $as_echo "$as_me: failed program was:" >&5 |
7fbd9d09 FCE |
3143 | sed 's/^/| /' conftest.$ac_ext >&5 |
3144 | ||
3145 | CFLAGS="" | |
3146 | cat >conftest.$ac_ext <<_ACEOF | |
3147 | /* confdefs.h. */ | |
3148 | _ACEOF | |
3149 | cat confdefs.h >>conftest.$ac_ext | |
3150 | cat >>conftest.$ac_ext <<_ACEOF | |
3151 | /* end confdefs.h. */ | |
3152 | ||
3153 | int | |
3154 | main () | |
3155 | { | |
3156 | ||
3157 | ; | |
3158 | return 0; | |
3159 | } | |
3160 | _ACEOF | |
3161 | rm -f conftest.$ac_objext | |
3162 | if { (ac_try="$ac_compile" | |
3163 | case "(($ac_try" in | |
3164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3165 | *) ac_try_echo=$ac_try;; | |
3166 | esac | |
27aba29a JS |
3167 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3168 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 3169 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea | 3170 | ac_status=$? |
7fbd9d09 FCE |
3171 | grep -v '^ *+' conftest.er1 >conftest.err |
3172 | rm -f conftest.er1 | |
3173 | cat conftest.err >&5 | |
27aba29a | 3174 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
3175 | (exit $ac_status); } && { |
3176 | test -z "$ac_c_werror_flag" || | |
3177 | test ! -s conftest.err | |
3178 | } && test -s conftest.$ac_objext; then | |
3179 | : | |
3180 | else | |
27aba29a | 3181 | $as_echo "$as_me: failed program was:" >&5 |
7fbd9d09 FCE |
3182 | sed 's/^/| /' conftest.$ac_ext >&5 |
3183 | ||
3184 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3185 | CFLAGS="-g" | |
3186 | cat >conftest.$ac_ext <<_ACEOF | |
3187 | /* confdefs.h. */ | |
3188 | _ACEOF | |
3189 | cat confdefs.h >>conftest.$ac_ext | |
3190 | cat >>conftest.$ac_ext <<_ACEOF | |
3191 | /* end confdefs.h. */ | |
3192 | ||
3193 | int | |
3194 | main () | |
3195 | { | |
3196 | ||
3197 | ; | |
3198 | return 0; | |
3199 | } | |
3200 | _ACEOF | |
3201 | rm -f conftest.$ac_objext | |
3202 | if { (ac_try="$ac_compile" | |
3203 | case "(($ac_try" in | |
3204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3205 | *) ac_try_echo=$ac_try;; | |
3206 | esac | |
27aba29a JS |
3207 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3208 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 3209 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea | 3210 | ac_status=$? |
7fbd9d09 FCE |
3211 | grep -v '^ *+' conftest.er1 >conftest.err |
3212 | rm -f conftest.er1 | |
3213 | cat conftest.err >&5 | |
27aba29a | 3214 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
3215 | (exit $ac_status); } && { |
3216 | test -z "$ac_c_werror_flag" || | |
3217 | test ! -s conftest.err | |
3218 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
3219 | ac_cv_prog_cc_g=yes |
3220 | else | |
27aba29a | 3221 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
3222 | sed 's/^/| /' conftest.$ac_ext >&5 |
3223 | ||
7fbd9d09 FCE |
3224 | |
3225 | fi | |
3226 | ||
3227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2f1a1aea | 3228 | fi |
7fbd9d09 FCE |
3229 | |
3230 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3231 | fi | |
3232 | ||
3233 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3234 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2f1a1aea | 3235 | fi |
27aba29a JS |
3236 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3237 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
2f1a1aea FCE |
3238 | if test "$ac_test_CFLAGS" = set; then |
3239 | CFLAGS=$ac_save_CFLAGS | |
3240 | elif test $ac_cv_prog_cc_g = yes; then | |
3241 | if test "$GCC" = yes; then | |
3242 | CFLAGS="-g -O2" | |
3243 | else | |
3244 | CFLAGS="-g" | |
3245 | fi | |
3246 | else | |
3247 | if test "$GCC" = yes; then | |
3248 | CFLAGS="-O2" | |
3249 | else | |
3250 | CFLAGS= | |
3251 | fi | |
3252 | fi | |
27aba29a JS |
3253 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3254 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
7fbd9d09 | 3255 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
27aba29a | 3256 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 3257 | else |
7fbd9d09 | 3258 | ac_cv_prog_cc_c89=no |
2f1a1aea FCE |
3259 | ac_save_CC=$CC |
3260 | cat >conftest.$ac_ext <<_ACEOF | |
3261 | /* confdefs.h. */ | |
3262 | _ACEOF | |
3263 | cat confdefs.h >>conftest.$ac_ext | |
3264 | cat >>conftest.$ac_ext <<_ACEOF | |
3265 | /* end confdefs.h. */ | |
3266 | #include <stdarg.h> | |
3267 | #include <stdio.h> | |
3268 | #include <sys/types.h> | |
3269 | #include <sys/stat.h> | |
3270 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3271 | struct buf { int x; }; | |
3272 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3273 | static char *e (p, i) | |
3274 | char **p; | |
3275 | int i; | |
3276 | { | |
3277 | return p[i]; | |
3278 | } | |
3279 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3280 | { | |
3281 | char *s; | |
3282 | va_list v; | |
3283 | va_start (v,p); | |
3284 | s = g (p, va_arg (v,int)); | |
3285 | va_end (v); | |
3286 | return s; | |
3287 | } | |
3288 | ||
3289 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3290 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3291 | These don't provoke an error unfortunately, instead are silently treated | |
7fbd9d09 | 3292 | as 'x'. The following induces an error, until -std is added to get |
2f1a1aea FCE |
3293 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3294 | array size at least. It's necessary to write '\x00'==0 to get something | |
7fbd9d09 | 3295 | that's true only with -std. */ |
2f1a1aea FCE |
3296 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3297 | ||
7fbd9d09 FCE |
3298 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3299 | inside strings and character constants. */ | |
3300 | #define FOO(x) 'x' | |
3301 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3302 | ||
2f1a1aea FCE |
3303 | int test (int i, double x); |
3304 | struct s1 {int (*f) (int a);}; | |
3305 | struct s2 {int (*f) (double a);}; | |
3306 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3307 | int argc; | |
3308 | char **argv; | |
3309 | int | |
3310 | main () | |
3311 | { | |
3312 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3313 | ; | |
3314 | return 0; | |
3315 | } | |
3316 | _ACEOF | |
7fbd9d09 FCE |
3317 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3318 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2f1a1aea FCE |
3319 | do |
3320 | CC="$ac_save_CC $ac_arg" | |
3321 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
3322 | if { (ac_try="$ac_compile" |
3323 | case "(($ac_try" in | |
3324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3325 | *) ac_try_echo=$ac_try;; | |
3326 | esac | |
27aba29a JS |
3327 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3328 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 3329 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
3330 | ac_status=$? |
3331 | grep -v '^ *+' conftest.er1 >conftest.err | |
3332 | rm -f conftest.er1 | |
3333 | cat conftest.err >&5 | |
27aba29a | 3334 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
3335 | (exit $ac_status); } && { |
3336 | test -z "$ac_c_werror_flag" || | |
3337 | test ! -s conftest.err | |
3338 | } && test -s conftest.$ac_objext; then | |
3339 | ac_cv_prog_cc_c89=$ac_arg | |
818ba2bc | 3340 | else |
27aba29a | 3341 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
3342 | sed 's/^/| /' conftest.$ac_ext >&5 |
3343 | ||
7fbd9d09 | 3344 | |
2f1a1aea | 3345 | fi |
7fbd9d09 FCE |
3346 | |
3347 | rm -f core conftest.err conftest.$ac_objext | |
3348 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
2f1a1aea | 3349 | done |
7fbd9d09 | 3350 | rm -f conftest.$ac_ext |
2f1a1aea FCE |
3351 | CC=$ac_save_CC |
3352 | ||
3353 | fi | |
7fbd9d09 FCE |
3354 | # AC_CACHE_VAL |
3355 | case "x$ac_cv_prog_cc_c89" in | |
3356 | x) | |
27aba29a JS |
3357 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3358 | $as_echo "none needed" >&6; } ;; | |
7fbd9d09 | 3359 | xno) |
27aba29a JS |
3360 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3361 | $as_echo "unsupported" >&6; } ;; | |
2f1a1aea | 3362 | *) |
7fbd9d09 | 3363 | CC="$CC $ac_cv_prog_cc_c89" |
27aba29a JS |
3364 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3365 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
2f1a1aea FCE |
3366 | esac |
3367 | ||
818ba2bc | 3368 | |
818ba2bc MW |
3369 | ac_ext=c |
3370 | ac_cpp='$CPP $CPPFLAGS' | |
3371 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3372 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3373 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3374 | DEPDIR="${am__leading_dot}deps" | |
3375 | ||
7fbd9d09 | 3376 | ac_config_commands="$ac_config_commands depfiles" |
818ba2bc MW |
3377 | |
3378 | ||
3379 | am_make=${MAKE-make} | |
3380 | cat > confinc << 'END' | |
3381 | am__doit: | |
8ae7a94a FCE |
3382 | @echo done |
3383 | .PHONY: am__doit | |
3384 | END | |
3385 | # If we don't find an include directive, just comment out the code. | |
27aba29a JS |
3386 | { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
3387 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
8ae7a94a FCE |
3388 | am__include="#" |
3389 | am__quote= | |
3390 | _am_result=none | |
3391 | # First try GNU make style include. | |
3392 | echo "include confinc" > confmf | |
3393 | # We grep out `Entering directory' and `Leaving directory' | |
3394 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
3395 | # In particular we don't look at `^make:' because GNU make might | |
3396 | # be invoked under some other name (usually "gmake"), in which | |
3397 | # case it prints its new name instead of `make'. | |
3398 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
3399 | am__include=include | |
3400 | am__quote= | |
3401 | _am_result=GNU | |
3402 | fi | |
3403 | # Now try BSD make style include. | |
3404 | if test "$am__include" = "#"; then | |
3405 | echo '.include "confinc"' > confmf | |
3406 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
3407 | am__include=.include | |
3408 | am__quote="\"" | |
3409 | _am_result=BSD | |
3410 | fi | |
3411 | fi | |
2f1a1aea | 3412 | |
8ae7a94a | 3413 | |
27aba29a JS |
3414 | { $as_echo "$as_me:$LINENO: result: $_am_result" >&5 |
3415 | $as_echo "$_am_result" >&6; } | |
2f1a1aea FCE |
3416 | rm -f confinc confmf |
3417 | ||
7fbd9d09 | 3418 | # Check whether --enable-dependency-tracking was given. |
2f1a1aea | 3419 | if test "${enable_dependency_tracking+set}" = set; then |
7fbd9d09 FCE |
3420 | enableval=$enable_dependency_tracking; |
3421 | fi | |
2f1a1aea | 3422 | |
2f1a1aea FCE |
3423 | if test "x$enable_dependency_tracking" != xno; then |
3424 | am_depcomp="$ac_aux_dir/depcomp" | |
3425 | AMDEPBACKSLASH='\' | |
3426 | fi | |
7fbd9d09 | 3427 | if test "x$enable_dependency_tracking" != xno; then |
2f1a1aea FCE |
3428 | AMDEP_TRUE= |
3429 | AMDEP_FALSE='#' | |
3430 | else | |
3431 | AMDEP_TRUE='#' | |
3432 | AMDEP_FALSE= | |
3433 | fi | |
3434 | ||
3435 | ||
3436 | ||
2f1a1aea FCE |
3437 | depcc="$CC" am_compiler_list= |
3438 | ||
27aba29a JS |
3439 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3440 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
2f1a1aea | 3441 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
27aba29a | 3442 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3443 | else |
3444 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3445 | # We make a subdir and do the tests there. Otherwise we can end up | |
3446 | # making bogus files that we don't know about and never remove. For | |
3447 | # instance it was reported that on HP-UX the gcc test will end up | |
3448 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3449 | # in D'. | |
3450 | mkdir conftest.dir | |
3451 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3452 | # using a relative directory. | |
3453 | cp "$am_depcomp" conftest.dir | |
3454 | cd conftest.dir | |
3455 | # We will build objects and dependencies in a subdirectory because | |
3456 | # it helps to detect inapplicable dependency modes. For instance | |
3457 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3458 | # side effect of compilation, but ICC will put the dependencies in | |
3459 | # the current directory while Tru64 will put them in the object | |
3460 | # directory. | |
3461 | mkdir sub | |
3462 | ||
3463 | am_cv_CC_dependencies_compiler_type=none | |
3464 | if test "$am_compiler_list" = ""; then | |
3465 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3466 | fi | |
3467 | for depmode in $am_compiler_list; do | |
3468 | # Setup a source with many dependencies, because some compilers | |
3469 | # like to wrap large dependency lists on column 80 (with \), and | |
3470 | # we should not choose a depcomp mode which is confused by this. | |
3471 | # | |
3472 | # We need to recreate these files for each test, as the compiler may | |
3473 | # overwrite some of them when testing with obscure command lines. | |
3474 | # This happens at least with the AIX C compiler. | |
3475 | : > sub/conftest.c | |
3476 | for i in 1 2 3 4 5 6; do | |
3477 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3478 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3479 | # Solaris 8's {/usr,}/bin/sh. | |
3480 | touch sub/conftst$i.h | |
3481 | done | |
3482 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3483 | ||
3484 | case $depmode in | |
3485 | nosideeffect) | |
3486 | # after this tag, mechanisms are not by side-effect, so they'll | |
3487 | # only be used when explicitly requested | |
3488 | if test "x$enable_dependency_tracking" = xyes; then | |
3489 | continue | |
3490 | else | |
3491 | break | |
3492 | fi | |
3493 | ;; | |
3494 | none) break ;; | |
3495 | esac | |
3496 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3497 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3498 | # handle `-M -o', and we need to detect this. | |
3499 | if depmode=$depmode \ | |
3500 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3501 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3502 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3503 | >/dev/null 2>conftest.err && | |
7fbd9d09 | 3504 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea FCE |
3505 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3506 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3507 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3508 | # icc doesn't choke on unknown options, it will just issue warnings | |
3509 | # or remarks (even with -Werror). So we grep stderr for any message | |
3510 | # that says an option was ignored or not supported. | |
3511 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3512 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3513 | # The diagnosis changed in icc 8.0: | |
3514 | # icc: Command line remark: option '-MP' not supported | |
3515 | if (grep 'ignoring option' conftest.err || | |
3516 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3517 | am_cv_CC_dependencies_compiler_type=$depmode | |
3518 | break | |
3519 | fi | |
3520 | fi | |
3521 | done | |
3522 | ||
3523 | cd .. | |
3524 | rm -rf conftest.dir | |
3525 | else | |
3526 | am_cv_CC_dependencies_compiler_type=none | |
3527 | fi | |
3528 | ||
3529 | fi | |
27aba29a JS |
3530 | { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3531 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
2f1a1aea FCE |
3532 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3533 | ||
7fbd9d09 | 3534 | if |
2f1a1aea FCE |
3535 | test "x$enable_dependency_tracking" != xno \ |
3536 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3537 | am__fastdepCC_TRUE= | |
3538 | am__fastdepCC_FALSE='#' | |
3539 | else | |
3540 | am__fastdepCC_TRUE='#' | |
3541 | am__fastdepCC_FALSE= | |
3542 | fi | |
3543 | ||
3544 | ||
7fbd9d09 | 3545 | ac_ext=cpp |
2f1a1aea FCE |
3546 | ac_cpp='$CXXCPP $CPPFLAGS' |
3547 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3548 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3549 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7fbd9d09 FCE |
3550 | if test -z "$CXX"; then |
3551 | if test -n "$CCC"; then | |
3552 | CXX=$CCC | |
3553 | else | |
3554 | if test -n "$ac_tool_prefix"; then | |
3555 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
2f1a1aea FCE |
3556 | do |
3557 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3558 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
27aba29a JS |
3559 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3560 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 3561 | if test "${ac_cv_prog_CXX+set}" = set; then |
27aba29a | 3562 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3563 | else |
3564 | if test -n "$CXX"; then | |
3565 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
3566 | else | |
3567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3568 | for as_dir in $PATH | |
3569 | do | |
3570 | IFS=$as_save_IFS | |
3571 | test -z "$as_dir" && as_dir=. | |
3572 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 3573 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 3574 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
27aba29a | 3575 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3576 | break 2 |
3577 | fi | |
3578 | done | |
3579 | done | |
7fbd9d09 | 3580 | IFS=$as_save_IFS |
2f1a1aea FCE |
3581 | |
3582 | fi | |
3583 | fi | |
3584 | CXX=$ac_cv_prog_CXX | |
3585 | if test -n "$CXX"; then | |
27aba29a JS |
3586 | { $as_echo "$as_me:$LINENO: result: $CXX" >&5 |
3587 | $as_echo "$CXX" >&6; } | |
2f1a1aea | 3588 | else |
27aba29a JS |
3589 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3590 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
3591 | fi |
3592 | ||
7fbd9d09 | 3593 | |
2f1a1aea FCE |
3594 | test -n "$CXX" && break |
3595 | done | |
3596 | fi | |
3597 | if test -z "$CXX"; then | |
3598 | ac_ct_CXX=$CXX | |
7fbd9d09 | 3599 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
2f1a1aea FCE |
3600 | do |
3601 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3602 | set dummy $ac_prog; ac_word=$2 | |
27aba29a JS |
3603 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3604 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 3605 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
27aba29a | 3606 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3607 | else |
3608 | if test -n "$ac_ct_CXX"; then | |
3609 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
3610 | else | |
3611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3612 | for as_dir in $PATH | |
3613 | do | |
3614 | IFS=$as_save_IFS | |
3615 | test -z "$as_dir" && as_dir=. | |
3616 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 3617 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 3618 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
27aba29a | 3619 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3620 | break 2 |
3621 | fi | |
3622 | done | |
3623 | done | |
7fbd9d09 | 3624 | IFS=$as_save_IFS |
2f1a1aea FCE |
3625 | |
3626 | fi | |
3627 | fi | |
3628 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
3629 | if test -n "$ac_ct_CXX"; then | |
27aba29a JS |
3630 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
3631 | $as_echo "$ac_ct_CXX" >&6; } | |
2f1a1aea | 3632 | else |
27aba29a JS |
3633 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3634 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
3635 | fi |
3636 | ||
7fbd9d09 | 3637 | |
2f1a1aea FCE |
3638 | test -n "$ac_ct_CXX" && break |
3639 | done | |
2f1a1aea | 3640 | |
7fbd9d09 FCE |
3641 | if test "x$ac_ct_CXX" = x; then |
3642 | CXX="g++" | |
3643 | else | |
3644 | case $cross_compiling:$ac_tool_warned in | |
3645 | yes:) | |
27aba29a JS |
3646 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
3647 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7fbd9d09 FCE |
3648 | ac_tool_warned=yes ;; |
3649 | esac | |
3650 | CXX=$ac_ct_CXX | |
3651 | fi | |
2f1a1aea FCE |
3652 | fi |
3653 | ||
7fbd9d09 FCE |
3654 | fi |
3655 | fi | |
2f1a1aea | 3656 | # Provide some information about the compiler. |
27aba29a JS |
3657 | $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
3658 | set X $ac_compile | |
3659 | ac_compiler=$2 | |
7fbd9d09 FCE |
3660 | { (ac_try="$ac_compiler --version >&5" |
3661 | case "(($ac_try" in | |
3662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3663 | *) ac_try_echo=$ac_try;; | |
3664 | esac | |
27aba29a JS |
3665 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3666 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 3667 | (eval "$ac_compiler --version >&5") 2>&5 |
2f1a1aea | 3668 | ac_status=$? |
27aba29a | 3669 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea | 3670 | (exit $ac_status); } |
7fbd9d09 FCE |
3671 | { (ac_try="$ac_compiler -v >&5" |
3672 | case "(($ac_try" in | |
3673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3674 | *) ac_try_echo=$ac_try;; | |
3675 | esac | |
27aba29a JS |
3676 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3677 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 3678 | (eval "$ac_compiler -v >&5") 2>&5 |
2f1a1aea | 3679 | ac_status=$? |
27aba29a | 3680 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea | 3681 | (exit $ac_status); } |
7fbd9d09 FCE |
3682 | { (ac_try="$ac_compiler -V >&5" |
3683 | case "(($ac_try" in | |
3684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3685 | *) ac_try_echo=$ac_try;; | |
3686 | esac | |
27aba29a JS |
3687 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3688 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 3689 | (eval "$ac_compiler -V >&5") 2>&5 |
2f1a1aea | 3690 | ac_status=$? |
27aba29a | 3691 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea FCE |
3692 | (exit $ac_status); } |
3693 | ||
27aba29a JS |
3694 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
3695 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
2f1a1aea | 3696 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
27aba29a | 3697 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3698 | else |
3699 | cat >conftest.$ac_ext <<_ACEOF | |
3700 | /* confdefs.h. */ | |
3701 | _ACEOF | |
3702 | cat confdefs.h >>conftest.$ac_ext | |
3703 | cat >>conftest.$ac_ext <<_ACEOF | |
3704 | /* end confdefs.h. */ | |
3705 | ||
3706 | int | |
3707 | main () | |
3708 | { | |
3709 | #ifndef __GNUC__ | |
3710 | choke me | |
3711 | #endif | |
3712 | ||
3713 | ; | |
3714 | return 0; | |
3715 | } | |
3716 | _ACEOF | |
3717 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
3718 | if { (ac_try="$ac_compile" |
3719 | case "(($ac_try" in | |
3720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3721 | *) ac_try_echo=$ac_try;; | |
3722 | esac | |
27aba29a JS |
3723 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3724 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 3725 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
3726 | ac_status=$? |
3727 | grep -v '^ *+' conftest.er1 >conftest.err | |
3728 | rm -f conftest.er1 | |
3729 | cat conftest.err >&5 | |
27aba29a | 3730 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
3731 | (exit $ac_status); } && { |
3732 | test -z "$ac_cxx_werror_flag" || | |
3733 | test ! -s conftest.err | |
3734 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
3735 | ac_compiler_gnu=yes |
3736 | else | |
27aba29a | 3737 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
3738 | sed 's/^/| /' conftest.$ac_ext >&5 |
3739 | ||
7fbd9d09 | 3740 | ac_compiler_gnu=no |
2f1a1aea | 3741 | fi |
7fbd9d09 FCE |
3742 | |
3743 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2f1a1aea FCE |
3744 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
3745 | ||
3746 | fi | |
27aba29a JS |
3747 | { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
3748 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
3749 | if test $ac_compiler_gnu = yes; then | |
3750 | GXX=yes | |
3751 | else | |
3752 | GXX= | |
3753 | fi | |
2f1a1aea FCE |
3754 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
3755 | ac_save_CXXFLAGS=$CXXFLAGS | |
27aba29a JS |
3756 | { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
3757 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
2f1a1aea | 3758 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
27aba29a | 3759 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 3760 | else |
7fbd9d09 FCE |
3761 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
3762 | ac_cxx_werror_flag=yes | |
3763 | ac_cv_prog_cxx_g=no | |
3764 | CXXFLAGS="-g" | |
3765 | cat >conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
3766 | /* confdefs.h. */ |
3767 | _ACEOF | |
3768 | cat confdefs.h >>conftest.$ac_ext | |
3769 | cat >>conftest.$ac_ext <<_ACEOF | |
3770 | /* end confdefs.h. */ | |
3771 | ||
3772 | int | |
3773 | main () | |
3774 | { | |
3775 | ||
3776 | ; | |
3777 | return 0; | |
3778 | } | |
3779 | _ACEOF | |
3780 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
3781 | if { (ac_try="$ac_compile" |
3782 | case "(($ac_try" in | |
3783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3784 | *) ac_try_echo=$ac_try;; | |
3785 | esac | |
27aba29a JS |
3786 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3787 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 3788 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
3789 | ac_status=$? |
3790 | grep -v '^ *+' conftest.er1 >conftest.err | |
3791 | rm -f conftest.er1 | |
3792 | cat conftest.err >&5 | |
27aba29a | 3793 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
3794 | (exit $ac_status); } && { |
3795 | test -z "$ac_cxx_werror_flag" || | |
3796 | test ! -s conftest.err | |
3797 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
3798 | ac_cv_prog_cxx_g=yes |
3799 | else | |
27aba29a | 3800 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
3801 | sed 's/^/| /' conftest.$ac_ext >&5 |
3802 | ||
7fbd9d09 FCE |
3803 | CXXFLAGS="" |
3804 | cat >conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
3805 | /* confdefs.h. */ |
3806 | _ACEOF | |
3807 | cat confdefs.h >>conftest.$ac_ext | |
3808 | cat >>conftest.$ac_ext <<_ACEOF | |
3809 | /* end confdefs.h. */ | |
7fbd9d09 | 3810 | |
2f1a1aea FCE |
3811 | int |
3812 | main () | |
3813 | { | |
7fbd9d09 | 3814 | |
2f1a1aea FCE |
3815 | ; |
3816 | return 0; | |
3817 | } | |
3818 | _ACEOF | |
3819 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
3820 | if { (ac_try="$ac_compile" |
3821 | case "(($ac_try" in | |
3822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3823 | *) ac_try_echo=$ac_try;; | |
3824 | esac | |
27aba29a JS |
3825 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3826 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 3827 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
3828 | ac_status=$? |
3829 | grep -v '^ *+' conftest.er1 >conftest.err | |
3830 | rm -f conftest.er1 | |
3831 | cat conftest.err >&5 | |
27aba29a | 3832 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
3833 | (exit $ac_status); } && { |
3834 | test -z "$ac_cxx_werror_flag" || | |
3835 | test ! -s conftest.err | |
3836 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
3837 | : |
3838 | else | |
27aba29a | 3839 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
3840 | sed 's/^/| /' conftest.$ac_ext >&5 |
3841 | ||
7fbd9d09 FCE |
3842 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
3843 | CXXFLAGS="-g" | |
3844 | cat >conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
3845 | /* confdefs.h. */ |
3846 | _ACEOF | |
3847 | cat confdefs.h >>conftest.$ac_ext | |
3848 | cat >>conftest.$ac_ext <<_ACEOF | |
3849 | /* end confdefs.h. */ | |
7fbd9d09 | 3850 | |
2f1a1aea FCE |
3851 | int |
3852 | main () | |
3853 | { | |
7fbd9d09 | 3854 | |
2f1a1aea FCE |
3855 | ; |
3856 | return 0; | |
3857 | } | |
3858 | _ACEOF | |
3859 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
3860 | if { (ac_try="$ac_compile" |
3861 | case "(($ac_try" in | |
3862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3863 | *) ac_try_echo=$ac_try;; | |
3864 | esac | |
27aba29a JS |
3865 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3866 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 3867 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
3868 | ac_status=$? |
3869 | grep -v '^ *+' conftest.er1 >conftest.err | |
3870 | rm -f conftest.er1 | |
3871 | cat conftest.err >&5 | |
27aba29a | 3872 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
3873 | (exit $ac_status); } && { |
3874 | test -z "$ac_cxx_werror_flag" || | |
3875 | test ! -s conftest.err | |
3876 | } && test -s conftest.$ac_objext; then | |
3877 | ac_cv_prog_cxx_g=yes | |
2f1a1aea | 3878 | else |
27aba29a | 3879 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
3880 | sed 's/^/| /' conftest.$ac_ext >&5 |
3881 | ||
7fbd9d09 | 3882 | |
70d28673 | 3883 | fi |
7fbd9d09 FCE |
3884 | |
3885 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3886 | fi | |
3887 | ||
3888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5e0d2ebf DS |
3889 | fi |
3890 | ||
7fbd9d09 FCE |
3891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3892 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3893 | fi | |
27aba29a JS |
3894 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
3895 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
7fbd9d09 FCE |
3896 | if test "$ac_test_CXXFLAGS" = set; then |
3897 | CXXFLAGS=$ac_save_CXXFLAGS | |
3898 | elif test $ac_cv_prog_cxx_g = yes; then | |
3899 | if test "$GXX" = yes; then | |
3900 | CXXFLAGS="-g -O2" | |
3901 | else | |
3902 | CXXFLAGS="-g" | |
3903 | fi | |
3904 | else | |
3905 | if test "$GXX" = yes; then | |
3906 | CXXFLAGS="-O2" | |
3907 | else | |
3908 | CXXFLAGS= | |
3909 | fi | |
3910 | fi | |
2f1a1aea FCE |
3911 | ac_ext=c |
3912 | ac_cpp='$CPP $CPPFLAGS' | |
3913 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3914 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3915 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3916 | ||
3917 | depcc="$CXX" am_compiler_list= | |
3918 | ||
27aba29a JS |
3919 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3920 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
2f1a1aea | 3921 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
27aba29a | 3922 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3923 | else |
3924 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3925 | # We make a subdir and do the tests there. Otherwise we can end up | |
3926 | # making bogus files that we don't know about and never remove. For | |
3927 | # instance it was reported that on HP-UX the gcc test will end up | |
3928 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3929 | # in D'. | |
3930 | mkdir conftest.dir | |
3931 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3932 | # using a relative directory. | |
3933 | cp "$am_depcomp" conftest.dir | |
3934 | cd conftest.dir | |
3935 | # We will build objects and dependencies in a subdirectory because | |
3936 | # it helps to detect inapplicable dependency modes. For instance | |
3937 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3938 | # side effect of compilation, but ICC will put the dependencies in | |
3939 | # the current directory while Tru64 will put them in the object | |
3940 | # directory. | |
3941 | mkdir sub | |
3942 | ||
3943 | am_cv_CXX_dependencies_compiler_type=none | |
3944 | if test "$am_compiler_list" = ""; then | |
3945 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3946 | fi | |
3947 | for depmode in $am_compiler_list; do | |
3948 | # Setup a source with many dependencies, because some compilers | |
3949 | # like to wrap large dependency lists on column 80 (with \), and | |
3950 | # we should not choose a depcomp mode which is confused by this. | |
3951 | # | |
3952 | # We need to recreate these files for each test, as the compiler may | |
3953 | # overwrite some of them when testing with obscure command lines. | |
3954 | # This happens at least with the AIX C compiler. | |
3955 | : > sub/conftest.c | |
3956 | for i in 1 2 3 4 5 6; do | |
3957 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3958 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3959 | # Solaris 8's {/usr,}/bin/sh. | |
3960 | touch sub/conftst$i.h | |
3961 | done | |
3962 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3963 | ||
3964 | case $depmode in | |
3965 | nosideeffect) | |
3966 | # after this tag, mechanisms are not by side-effect, so they'll | |
3967 | # only be used when explicitly requested | |
3968 | if test "x$enable_dependency_tracking" = xyes; then | |
3969 | continue | |
3970 | else | |
3971 | break | |
3972 | fi | |
3973 | ;; | |
3974 | none) break ;; | |
3975 | esac | |
3976 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3977 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3978 | # handle `-M -o', and we need to detect this. | |
3979 | if depmode=$depmode \ | |
3980 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3981 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3982 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3983 | >/dev/null 2>conftest.err && | |
7fbd9d09 | 3984 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea FCE |
3985 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3986 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3987 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3988 | # icc doesn't choke on unknown options, it will just issue warnings | |
3989 | # or remarks (even with -Werror). So we grep stderr for any message | |
3990 | # that says an option was ignored or not supported. | |
3991 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3992 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3993 | # The diagnosis changed in icc 8.0: | |
3994 | # icc: Command line remark: option '-MP' not supported | |
3995 | if (grep 'ignoring option' conftest.err || | |
3996 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3997 | am_cv_CXX_dependencies_compiler_type=$depmode | |
3998 | break | |
3999 | fi | |
4000 | fi | |
4001 | done | |
4002 | ||
4003 | cd .. | |
4004 | rm -rf conftest.dir | |
4005 | else | |
4006 | am_cv_CXX_dependencies_compiler_type=none | |
4007 | fi | |
4008 | ||
4009 | fi | |
27aba29a JS |
4010 | { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
4011 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
2f1a1aea FCE |
4012 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
4013 | ||
7fbd9d09 | 4014 | if |
2f1a1aea FCE |
4015 | test "x$enable_dependency_tracking" != xno \ |
4016 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
4017 | am__fastdepCXX_TRUE= | |
4018 | am__fastdepCXX_FALSE='#' | |
4019 | else | |
4020 | am__fastdepCXX_TRUE='#' | |
4021 | am__fastdepCXX_FALSE= | |
4022 | fi | |
4023 | ||
4024 | ||
4025 | ac_ext=c | |
4026 | ac_cpp='$CPP $CPPFLAGS' | |
4027 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4028 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4029 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
27aba29a JS |
4030 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
4031 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
2f1a1aea FCE |
4032 | # On Suns, sometimes $CPP names a directory. |
4033 | if test -n "$CPP" && test -d "$CPP"; then | |
4034 | CPP= | |
4035 | fi | |
4036 | if test -z "$CPP"; then | |
4037 | if test "${ac_cv_prog_CPP+set}" = set; then | |
27aba29a | 4038 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4039 | else |
4040 | # Double quotes because CPP needs to be expanded | |
4041 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4042 | do | |
4043 | ac_preproc_ok=false | |
4044 | for ac_c_preproc_warn_flag in '' yes | |
4045 | do | |
4046 | # Use a header file that comes with gcc, so configuring glibc | |
4047 | # with a fresh cross-compiler works. | |
4048 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4049 | # <limits.h> exists even on freestanding compilers. | |
4050 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4051 | # not just through cpp. "Syntax error" is here to catch this case. | |
4052 | cat >conftest.$ac_ext <<_ACEOF | |
4053 | /* confdefs.h. */ | |
4054 | _ACEOF | |
4055 | cat confdefs.h >>conftest.$ac_ext | |
4056 | cat >>conftest.$ac_ext <<_ACEOF | |
4057 | /* end confdefs.h. */ | |
4058 | #ifdef __STDC__ | |
4059 | # include <limits.h> | |
4060 | #else | |
4061 | # include <assert.h> | |
4062 | #endif | |
4063 | Syntax error | |
4064 | _ACEOF | |
7fbd9d09 FCE |
4065 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4066 | case "(($ac_try" in | |
4067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4068 | *) ac_try_echo=$ac_try;; | |
4069 | esac | |
27aba29a JS |
4070 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4071 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 4072 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
2f1a1aea FCE |
4073 | ac_status=$? |
4074 | grep -v '^ *+' conftest.er1 >conftest.err | |
4075 | rm -f conftest.er1 | |
4076 | cat conftest.err >&5 | |
27aba29a | 4077 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
4078 | (exit $ac_status); } >/dev/null && { |
4079 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4080 | test ! -s conftest.err | |
4081 | }; then | |
2f1a1aea FCE |
4082 | : |
4083 | else | |
27aba29a | 4084 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
4085 | sed 's/^/| /' conftest.$ac_ext >&5 |
4086 | ||
4087 | # Broken: fails on valid input. | |
4088 | continue | |
4089 | fi | |
7fbd9d09 | 4090 | |
2f1a1aea FCE |
4091 | rm -f conftest.err conftest.$ac_ext |
4092 | ||
7fbd9d09 | 4093 | # OK, works on sane cases. Now check whether nonexistent headers |
2f1a1aea FCE |
4094 | # can be detected and how. |
4095 | cat >conftest.$ac_ext <<_ACEOF | |
4096 | /* confdefs.h. */ | |
4097 | _ACEOF | |
4098 | cat confdefs.h >>conftest.$ac_ext | |
4099 | cat >>conftest.$ac_ext <<_ACEOF | |
4100 | /* end confdefs.h. */ | |
4101 | #include <ac_nonexistent.h> | |
4102 | _ACEOF | |
7fbd9d09 FCE |
4103 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4104 | case "(($ac_try" in | |
4105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4106 | *) ac_try_echo=$ac_try;; | |
4107 | esac | |
27aba29a JS |
4108 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4109 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 4110 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
2f1a1aea FCE |
4111 | ac_status=$? |
4112 | grep -v '^ *+' conftest.er1 >conftest.err | |
4113 | rm -f conftest.er1 | |
4114 | cat conftest.err >&5 | |
27aba29a | 4115 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
4116 | (exit $ac_status); } >/dev/null && { |
4117 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4118 | test ! -s conftest.err | |
4119 | }; then | |
2f1a1aea FCE |
4120 | # Broken: success on invalid input. |
4121 | continue | |
4122 | else | |
27aba29a | 4123 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
4124 | sed 's/^/| /' conftest.$ac_ext >&5 |
4125 | ||
4126 | # Passes both tests. | |
4127 | ac_preproc_ok=: | |
4128 | break | |
4129 | fi | |
7fbd9d09 | 4130 | |
2f1a1aea FCE |
4131 | rm -f conftest.err conftest.$ac_ext |
4132 | ||
4133 | done | |
4134 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4135 | rm -f conftest.err conftest.$ac_ext | |
4136 | if $ac_preproc_ok; then | |
4137 | break | |
4138 | fi | |
4139 | ||
4140 | done | |
4141 | ac_cv_prog_CPP=$CPP | |
4142 | ||
4143 | fi | |
4144 | CPP=$ac_cv_prog_CPP | |
4145 | else | |
4146 | ac_cv_prog_CPP=$CPP | |
4147 | fi | |
27aba29a JS |
4148 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
4149 | $as_echo "$CPP" >&6; } | |
2f1a1aea FCE |
4150 | ac_preproc_ok=false |
4151 | for ac_c_preproc_warn_flag in '' yes | |
4152 | do | |
4153 | # Use a header file that comes with gcc, so configuring glibc | |
4154 | # with a fresh cross-compiler works. | |
4155 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4156 | # <limits.h> exists even on freestanding compilers. | |
4157 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4158 | # not just through cpp. "Syntax error" is here to catch this case. | |
4159 | cat >conftest.$ac_ext <<_ACEOF | |
4160 | /* confdefs.h. */ | |
4161 | _ACEOF | |
4162 | cat confdefs.h >>conftest.$ac_ext | |
4163 | cat >>conftest.$ac_ext <<_ACEOF | |
4164 | /* end confdefs.h. */ | |
4165 | #ifdef __STDC__ | |
4166 | # include <limits.h> | |
4167 | #else | |
4168 | # include <assert.h> | |
4169 | #endif | |
4170 | Syntax error | |
4171 | _ACEOF | |
7fbd9d09 FCE |
4172 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4173 | case "(($ac_try" in | |
4174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4175 | *) ac_try_echo=$ac_try;; | |
4176 | esac | |
27aba29a JS |
4177 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4178 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 4179 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
2f1a1aea FCE |
4180 | ac_status=$? |
4181 | grep -v '^ *+' conftest.er1 >conftest.err | |
4182 | rm -f conftest.er1 | |
4183 | cat conftest.err >&5 | |
27aba29a | 4184 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
4185 | (exit $ac_status); } >/dev/null && { |
4186 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4187 | test ! -s conftest.err | |
4188 | }; then | |
2f1a1aea FCE |
4189 | : |
4190 | else | |
27aba29a | 4191 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
4192 | sed 's/^/| /' conftest.$ac_ext >&5 |
4193 | ||
4194 | # Broken: fails on valid input. | |
4195 | continue | |
4196 | fi | |
7fbd9d09 | 4197 | |
2f1a1aea FCE |
4198 | rm -f conftest.err conftest.$ac_ext |
4199 | ||
7fbd9d09 | 4200 | # OK, works on sane cases. Now check whether nonexistent headers |
2f1a1aea FCE |
4201 | # can be detected and how. |
4202 | cat >conftest.$ac_ext <<_ACEOF | |
4203 | /* confdefs.h. */ | |
4204 | _ACEOF | |
4205 | cat confdefs.h >>conftest.$ac_ext | |
4206 | cat >>conftest.$ac_ext <<_ACEOF | |
4207 | /* end confdefs.h. */ | |
4208 | #include <ac_nonexistent.h> | |
4209 | _ACEOF | |
7fbd9d09 FCE |
4210 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4211 | case "(($ac_try" in | |
4212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4213 | *) ac_try_echo=$ac_try;; | |
4214 | esac | |
27aba29a JS |
4215 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4216 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 4217 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
2f1a1aea FCE |
4218 | ac_status=$? |
4219 | grep -v '^ *+' conftest.er1 >conftest.err | |
4220 | rm -f conftest.er1 | |
4221 | cat conftest.err >&5 | |
27aba29a | 4222 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
4223 | (exit $ac_status); } >/dev/null && { |
4224 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4225 | test ! -s conftest.err | |
4226 | }; then | |
2f1a1aea FCE |
4227 | # Broken: success on invalid input. |
4228 | continue | |
4229 | else | |
27aba29a | 4230 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
4231 | sed 's/^/| /' conftest.$ac_ext >&5 |
4232 | ||
4233 | # Passes both tests. | |
4234 | ac_preproc_ok=: | |
4235 | break | |
4236 | fi | |
7fbd9d09 | 4237 | |
2f1a1aea FCE |
4238 | rm -f conftest.err conftest.$ac_ext |
4239 | ||
4240 | done | |
4241 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4242 | rm -f conftest.err conftest.$ac_ext | |
4243 | if $ac_preproc_ok; then | |
4244 | : | |
4245 | else | |
27aba29a JS |
4246 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
4247 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4248 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
2f1a1aea | 4249 | See \`config.log' for more details." >&5 |
27aba29a | 4250 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
2f1a1aea | 4251 | See \`config.log' for more details." >&2;} |
27aba29a | 4252 | { (exit 1); exit 1; }; }; } |
2f1a1aea FCE |
4253 | fi |
4254 | ||
4255 | ac_ext=c | |
4256 | ac_cpp='$CPP $CPPFLAGS' | |
4257 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4258 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4259 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4260 | ||
4261 | ac_ext=c | |
4262 | ac_cpp='$CPP $CPPFLAGS' | |
4263 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4264 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4265 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4266 | if test -n "$ac_tool_prefix"; then | |
4267 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4268 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
27aba29a JS |
4269 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4270 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 4271 | if test "${ac_cv_prog_CC+set}" = set; then |
27aba29a | 4272 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4273 | else |
4274 | if test -n "$CC"; then | |
4275 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4276 | else | |
4277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4278 | for as_dir in $PATH | |
4279 | do | |
4280 | IFS=$as_save_IFS | |
4281 | test -z "$as_dir" && as_dir=. | |
4282 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 4283 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 4284 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
27aba29a | 4285 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4286 | break 2 |
4287 | fi | |
4288 | done | |
4289 | done | |
7fbd9d09 | 4290 | IFS=$as_save_IFS |
2f1a1aea FCE |
4291 | |
4292 | fi | |
4293 | fi | |
4294 | CC=$ac_cv_prog_CC | |
4295 | if test -n "$CC"; then | |
27aba29a JS |
4296 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
4297 | $as_echo "$CC" >&6; } | |
2f1a1aea | 4298 | else |
27aba29a JS |
4299 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4300 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
4301 | fi |
4302 | ||
7fbd9d09 | 4303 | |
2f1a1aea FCE |
4304 | fi |
4305 | if test -z "$ac_cv_prog_CC"; then | |
4306 | ac_ct_CC=$CC | |
4307 | # Extract the first word of "gcc", so it can be a program name with args. | |
4308 | set dummy gcc; ac_word=$2 | |
27aba29a JS |
4309 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4310 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 4311 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
27aba29a | 4312 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4313 | else |
4314 | if test -n "$ac_ct_CC"; then | |
4315 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4316 | else | |
4317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4318 | for as_dir in $PATH | |
4319 | do | |
4320 | IFS=$as_save_IFS | |
4321 | test -z "$as_dir" && as_dir=. | |
4322 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 4323 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 4324 | ac_cv_prog_ac_ct_CC="gcc" |
27aba29a | 4325 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4326 | break 2 |
4327 | fi | |
4328 | done | |
4329 | done | |
7fbd9d09 | 4330 | IFS=$as_save_IFS |
2f1a1aea FCE |
4331 | |
4332 | fi | |
4333 | fi | |
4334 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4335 | if test -n "$ac_ct_CC"; then | |
27aba29a JS |
4336 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
4337 | $as_echo "$ac_ct_CC" >&6; } | |
2f1a1aea | 4338 | else |
27aba29a JS |
4339 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4340 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
4341 | fi |
4342 | ||
7fbd9d09 FCE |
4343 | if test "x$ac_ct_CC" = x; then |
4344 | CC="" | |
4345 | else | |
4346 | case $cross_compiling:$ac_tool_warned in | |
4347 | yes:) | |
27aba29a JS |
4348 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
4349 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7fbd9d09 FCE |
4350 | ac_tool_warned=yes ;; |
4351 | esac | |
4352 | CC=$ac_ct_CC | |
4353 | fi | |
2f1a1aea FCE |
4354 | else |
4355 | CC="$ac_cv_prog_CC" | |
4356 | fi | |
4357 | ||
4358 | if test -z "$CC"; then | |
7fbd9d09 FCE |
4359 | if test -n "$ac_tool_prefix"; then |
4360 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2f1a1aea | 4361 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
27aba29a JS |
4362 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4363 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 4364 | if test "${ac_cv_prog_CC+set}" = set; then |
27aba29a | 4365 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4366 | else |
4367 | if test -n "$CC"; then | |
4368 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4369 | else | |
4370 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4371 | for as_dir in $PATH | |
4372 | do | |
4373 | IFS=$as_save_IFS | |
4374 | test -z "$as_dir" && as_dir=. | |
4375 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 4376 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 4377 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
27aba29a | 4378 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4379 | break 2 |
4380 | fi | |
4381 | done | |
4382 | done | |
7fbd9d09 | 4383 | IFS=$as_save_IFS |
2f1a1aea FCE |
4384 | |
4385 | fi | |
4386 | fi | |
4387 | CC=$ac_cv_prog_CC | |
4388 | if test -n "$CC"; then | |
27aba29a JS |
4389 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
4390 | $as_echo "$CC" >&6; } | |
818ba2bc | 4391 | else |
27aba29a JS |
4392 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4393 | $as_echo "no" >&6; } | |
818ba2bc MW |
4394 | fi |
4395 | ||
818ba2bc | 4396 | |
7fbd9d09 | 4397 | fi |
8ae7a94a FCE |
4398 | fi |
4399 | if test -z "$CC"; then | |
4400 | # Extract the first word of "cc", so it can be a program name with args. | |
4401 | set dummy cc; ac_word=$2 | |
27aba29a JS |
4402 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4403 | $as_echo_n "checking for $ac_word... " >&6; } | |
8ae7a94a | 4404 | if test "${ac_cv_prog_CC+set}" = set; then |
27aba29a | 4405 | $as_echo_n "(cached) " >&6 |
8ae7a94a FCE |
4406 | else |
4407 | if test -n "$CC"; then | |
2f1a1aea FCE |
4408 | ac_cv_prog_CC="$CC" # Let the user override the test. |
4409 | else | |
4410 | ac_prog_rejected=no | |
4411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4412 | for as_dir in $PATH | |
4413 | do | |
4414 | IFS=$as_save_IFS | |
4415 | test -z "$as_dir" && as_dir=. | |
4416 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 4417 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea FCE |
4418 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4419 | ac_prog_rejected=yes | |
4420 | continue | |
4421 | fi | |
4422 | ac_cv_prog_CC="cc" | |
27aba29a | 4423 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4424 | break 2 |
4425 | fi | |
4426 | done | |
4427 | done | |
7fbd9d09 | 4428 | IFS=$as_save_IFS |
2f1a1aea FCE |
4429 | |
4430 | if test $ac_prog_rejected = yes; then | |
4431 | # We found a bogon in the path, so make sure we never use it. | |
4432 | set dummy $ac_cv_prog_CC | |
4433 | shift | |
4434 | if test $# != 0; then | |
4435 | # We chose a different compiler from the bogus one. | |
4436 | # However, it has the same basename, so the bogon will be chosen | |
4437 | # first if we set CC to just the basename; use the full file name. | |
4438 | shift | |
4439 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4440 | fi | |
4441 | fi | |
4442 | fi | |
4443 | fi | |
4444 | CC=$ac_cv_prog_CC | |
4445 | if test -n "$CC"; then | |
27aba29a JS |
4446 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
4447 | $as_echo "$CC" >&6; } | |
2f1a1aea | 4448 | else |
27aba29a JS |
4449 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4450 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
4451 | fi |
4452 | ||
7fbd9d09 | 4453 | |
2f1a1aea FCE |
4454 | fi |
4455 | if test -z "$CC"; then | |
4456 | if test -n "$ac_tool_prefix"; then | |
7fbd9d09 | 4457 | for ac_prog in cl.exe |
2f1a1aea FCE |
4458 | do |
4459 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4460 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
27aba29a JS |
4461 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4462 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 4463 | if test "${ac_cv_prog_CC+set}" = set; then |
27aba29a | 4464 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4465 | else |
4466 | if test -n "$CC"; then | |
4467 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4468 | else | |
4469 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4470 | for as_dir in $PATH | |
4471 | do | |
4472 | IFS=$as_save_IFS | |
4473 | test -z "$as_dir" && as_dir=. | |
4474 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 4475 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 4476 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
27aba29a | 4477 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4478 | break 2 |
4479 | fi | |
4480 | done | |
4481 | done | |
7fbd9d09 | 4482 | IFS=$as_save_IFS |
2f1a1aea FCE |
4483 | |
4484 | fi | |
4485 | fi | |
4486 | CC=$ac_cv_prog_CC | |
4487 | if test -n "$CC"; then | |
27aba29a JS |
4488 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
4489 | $as_echo "$CC" >&6; } | |
2f1a1aea | 4490 | else |
27aba29a JS |
4491 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4492 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
4493 | fi |
4494 | ||
7fbd9d09 | 4495 | |
2f1a1aea FCE |
4496 | test -n "$CC" && break |
4497 | done | |
4498 | fi | |
4499 | if test -z "$CC"; then | |
4500 | ac_ct_CC=$CC | |
7fbd9d09 | 4501 | for ac_prog in cl.exe |
2f1a1aea FCE |
4502 | do |
4503 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4504 | set dummy $ac_prog; ac_word=$2 | |
27aba29a JS |
4505 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4506 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 4507 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
27aba29a | 4508 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4509 | else |
4510 | if test -n "$ac_ct_CC"; then | |
4511 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4512 | else | |
4513 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4514 | for as_dir in $PATH | |
4515 | do | |
4516 | IFS=$as_save_IFS | |
4517 | test -z "$as_dir" && as_dir=. | |
4518 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 4519 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 4520 | ac_cv_prog_ac_ct_CC="$ac_prog" |
27aba29a | 4521 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4522 | break 2 |
4523 | fi | |
4524 | done | |
4525 | done | |
7fbd9d09 | 4526 | IFS=$as_save_IFS |
2f1a1aea FCE |
4527 | |
4528 | fi | |
4529 | fi | |
4530 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4531 | if test -n "$ac_ct_CC"; then | |
27aba29a JS |
4532 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
4533 | $as_echo "$ac_ct_CC" >&6; } | |
2f1a1aea | 4534 | else |
27aba29a JS |
4535 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4536 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
4537 | fi |
4538 | ||
7fbd9d09 | 4539 | |
2f1a1aea FCE |
4540 | test -n "$ac_ct_CC" && break |
4541 | done | |
4542 | ||
7fbd9d09 FCE |
4543 | if test "x$ac_ct_CC" = x; then |
4544 | CC="" | |
4545 | else | |
4546 | case $cross_compiling:$ac_tool_warned in | |
4547 | yes:) | |
27aba29a JS |
4548 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
4549 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7fbd9d09 FCE |
4550 | ac_tool_warned=yes ;; |
4551 | esac | |
4552 | CC=$ac_ct_CC | |
4553 | fi | |
2f1a1aea FCE |
4554 | fi |
4555 | ||
4556 | fi | |
4557 | ||
4558 | ||
27aba29a JS |
4559 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
4560 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4561 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2f1a1aea | 4562 | See \`config.log' for more details." >&5 |
27aba29a | 4563 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
2f1a1aea | 4564 | See \`config.log' for more details." >&2;} |
27aba29a | 4565 | { (exit 1); exit 1; }; }; } |
2f1a1aea FCE |
4566 | |
4567 | # Provide some information about the compiler. | |
27aba29a JS |
4568 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
4569 | set X $ac_compile | |
4570 | ac_compiler=$2 | |
7fbd9d09 FCE |
4571 | { (ac_try="$ac_compiler --version >&5" |
4572 | case "(($ac_try" in | |
4573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4574 | *) ac_try_echo=$ac_try;; | |
4575 | esac | |
27aba29a JS |
4576 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4577 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 4578 | (eval "$ac_compiler --version >&5") 2>&5 |
2f1a1aea | 4579 | ac_status=$? |
27aba29a | 4580 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea | 4581 | (exit $ac_status); } |
7fbd9d09 FCE |
4582 | { (ac_try="$ac_compiler -v >&5" |
4583 | case "(($ac_try" in | |
4584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4585 | *) ac_try_echo=$ac_try;; | |
4586 | esac | |
27aba29a JS |
4587 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4588 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 4589 | (eval "$ac_compiler -v >&5") 2>&5 |
2f1a1aea | 4590 | ac_status=$? |
27aba29a | 4591 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea | 4592 | (exit $ac_status); } |
7fbd9d09 FCE |
4593 | { (ac_try="$ac_compiler -V >&5" |
4594 | case "(($ac_try" in | |
4595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4596 | *) ac_try_echo=$ac_try;; | |
4597 | esac | |
27aba29a JS |
4598 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4599 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 4600 | (eval "$ac_compiler -V >&5") 2>&5 |
2f1a1aea | 4601 | ac_status=$? |
27aba29a | 4602 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea FCE |
4603 | (exit $ac_status); } |
4604 | ||
27aba29a JS |
4605 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
4606 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
2f1a1aea | 4607 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
27aba29a | 4608 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4609 | else |
4610 | cat >conftest.$ac_ext <<_ACEOF | |
4611 | /* confdefs.h. */ | |
4612 | _ACEOF | |
4613 | cat confdefs.h >>conftest.$ac_ext | |
4614 | cat >>conftest.$ac_ext <<_ACEOF | |
4615 | /* end confdefs.h. */ | |
4616 | ||
4617 | int | |
4618 | main () | |
4619 | { | |
4620 | #ifndef __GNUC__ | |
4621 | choke me | |
4622 | #endif | |
4623 | ||
4624 | ; | |
4625 | return 0; | |
4626 | } | |
4627 | _ACEOF | |
4628 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
4629 | if { (ac_try="$ac_compile" |
4630 | case "(($ac_try" in | |
4631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4632 | *) ac_try_echo=$ac_try;; | |
4633 | esac | |
27aba29a JS |
4634 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4635 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 4636 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
4637 | ac_status=$? |
4638 | grep -v '^ *+' conftest.er1 >conftest.err | |
4639 | rm -f conftest.er1 | |
4640 | cat conftest.err >&5 | |
27aba29a | 4641 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
4642 | (exit $ac_status); } && { |
4643 | test -z "$ac_c_werror_flag" || | |
4644 | test ! -s conftest.err | |
4645 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
4646 | ac_compiler_gnu=yes |
4647 | else | |
27aba29a | 4648 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
4649 | sed 's/^/| /' conftest.$ac_ext >&5 |
4650 | ||
7fbd9d09 | 4651 | ac_compiler_gnu=no |
2f1a1aea | 4652 | fi |
7fbd9d09 FCE |
4653 | |
4654 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2f1a1aea FCE |
4655 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4656 | ||
4657 | fi | |
27aba29a JS |
4658 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
4659 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4660 | if test $ac_compiler_gnu = yes; then | |
4661 | GCC=yes | |
4662 | else | |
4663 | GCC= | |
4664 | fi | |
2f1a1aea FCE |
4665 | ac_test_CFLAGS=${CFLAGS+set} |
4666 | ac_save_CFLAGS=$CFLAGS | |
27aba29a JS |
4667 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
4668 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
2f1a1aea | 4669 | if test "${ac_cv_prog_cc_g+set}" = set; then |
27aba29a | 4670 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 4671 | else |
7fbd9d09 FCE |
4672 | ac_save_c_werror_flag=$ac_c_werror_flag |
4673 | ac_c_werror_flag=yes | |
4674 | ac_cv_prog_cc_g=no | |
4675 | CFLAGS="-g" | |
4676 | cat >conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
4677 | /* confdefs.h. */ |
4678 | _ACEOF | |
4679 | cat confdefs.h >>conftest.$ac_ext | |
4680 | cat >>conftest.$ac_ext <<_ACEOF | |
4681 | /* end confdefs.h. */ | |
4682 | ||
4683 | int | |
4684 | main () | |
4685 | { | |
4686 | ||
4687 | ; | |
4688 | return 0; | |
4689 | } | |
4690 | _ACEOF | |
4691 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
4692 | if { (ac_try="$ac_compile" |
4693 | case "(($ac_try" in | |
4694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4695 | *) ac_try_echo=$ac_try;; | |
4696 | esac | |
27aba29a JS |
4697 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4698 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 4699 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
4700 | ac_status=$? |
4701 | grep -v '^ *+' conftest.er1 >conftest.err | |
4702 | rm -f conftest.er1 | |
4703 | cat conftest.err >&5 | |
27aba29a | 4704 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
4705 | (exit $ac_status); } && { |
4706 | test -z "$ac_c_werror_flag" || | |
4707 | test ! -s conftest.err | |
4708 | } && test -s conftest.$ac_objext; then | |
4709 | ac_cv_prog_cc_g=yes | |
4710 | else | |
27aba29a | 4711 | $as_echo "$as_me: failed program was:" >&5 |
7fbd9d09 FCE |
4712 | sed 's/^/| /' conftest.$ac_ext >&5 |
4713 | ||
4714 | CFLAGS="" | |
4715 | cat >conftest.$ac_ext <<_ACEOF | |
4716 | /* confdefs.h. */ | |
4717 | _ACEOF | |
4718 | cat confdefs.h >>conftest.$ac_ext | |
4719 | cat >>conftest.$ac_ext <<_ACEOF | |
4720 | /* end confdefs.h. */ | |
4721 | ||
4722 | int | |
4723 | main () | |
4724 | { | |
4725 | ||
4726 | ; | |
4727 | return 0; | |
4728 | } | |
4729 | _ACEOF | |
4730 | rm -f conftest.$ac_objext | |
4731 | if { (ac_try="$ac_compile" | |
4732 | case "(($ac_try" in | |
4733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4734 | *) ac_try_echo=$ac_try;; | |
4735 | esac | |
27aba29a JS |
4736 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4737 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 4738 | (eval "$ac_compile") 2>conftest.er1 |
5e0d2ebf | 4739 | ac_status=$? |
7fbd9d09 FCE |
4740 | grep -v '^ *+' conftest.er1 >conftest.err |
4741 | rm -f conftest.er1 | |
4742 | cat conftest.err >&5 | |
27aba29a | 4743 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
4744 | (exit $ac_status); } && { |
4745 | test -z "$ac_c_werror_flag" || | |
4746 | test ! -s conftest.err | |
4747 | } && test -s conftest.$ac_objext; then | |
4748 | : | |
4749 | else | |
27aba29a | 4750 | $as_echo "$as_me: failed program was:" >&5 |
7fbd9d09 FCE |
4751 | sed 's/^/| /' conftest.$ac_ext >&5 |
4752 | ||
4753 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4754 | CFLAGS="-g" | |
4755 | cat >conftest.$ac_ext <<_ACEOF | |
4756 | /* confdefs.h. */ | |
4757 | _ACEOF | |
4758 | cat confdefs.h >>conftest.$ac_ext | |
4759 | cat >>conftest.$ac_ext <<_ACEOF | |
4760 | /* end confdefs.h. */ | |
4761 | ||
4762 | int | |
4763 | main () | |
4764 | { | |
4765 | ||
4766 | ; | |
4767 | return 0; | |
4768 | } | |
4769 | _ACEOF | |
4770 | rm -f conftest.$ac_objext | |
4771 | if { (ac_try="$ac_compile" | |
4772 | case "(($ac_try" in | |
4773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4774 | *) ac_try_echo=$ac_try;; | |
4775 | esac | |
27aba29a JS |
4776 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4777 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 4778 | (eval "$ac_compile") 2>conftest.er1 |
5e0d2ebf | 4779 | ac_status=$? |
7fbd9d09 FCE |
4780 | grep -v '^ *+' conftest.er1 >conftest.err |
4781 | rm -f conftest.er1 | |
4782 | cat conftest.err >&5 | |
27aba29a | 4783 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
4784 | (exit $ac_status); } && { |
4785 | test -z "$ac_c_werror_flag" || | |
4786 | test ! -s conftest.err | |
4787 | } && test -s conftest.$ac_objext; then | |
5e0d2ebf DS |
4788 | ac_cv_prog_cc_g=yes |
4789 | else | |
27aba29a | 4790 | $as_echo "$as_me: failed program was:" >&5 |
5e0d2ebf DS |
4791 | sed 's/^/| /' conftest.$ac_ext >&5 |
4792 | ||
7fbd9d09 FCE |
4793 | |
4794 | fi | |
4795 | ||
4796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4797 | fi | |
4798 | ||
4799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5e0d2ebf | 4800 | fi |
7fbd9d09 FCE |
4801 | |
4802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4803 | ac_c_werror_flag=$ac_save_c_werror_flag | |
70d28673 | 4804 | fi |
27aba29a JS |
4805 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
4806 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
70d28673 DS |
4807 | if test "$ac_test_CFLAGS" = set; then |
4808 | CFLAGS=$ac_save_CFLAGS | |
4809 | elif test $ac_cv_prog_cc_g = yes; then | |
4810 | if test "$GCC" = yes; then | |
4811 | CFLAGS="-g -O2" | |
4812 | else | |
4813 | CFLAGS="-g" | |
4814 | fi | |
4815 | else | |
4816 | if test "$GCC" = yes; then | |
4817 | CFLAGS="-O2" | |
4818 | else | |
4819 | CFLAGS= | |
4820 | fi | |
4821 | fi | |
27aba29a JS |
4822 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
4823 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
7fbd9d09 | 4824 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
27aba29a | 4825 | $as_echo_n "(cached) " >&6 |
70d28673 | 4826 | else |
7fbd9d09 | 4827 | ac_cv_prog_cc_c89=no |
70d28673 DS |
4828 | ac_save_CC=$CC |
4829 | cat >conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
4830 | /* confdefs.h. */ |
4831 | _ACEOF | |
4832 | cat confdefs.h >>conftest.$ac_ext | |
4833 | cat >>conftest.$ac_ext <<_ACEOF | |
4834 | /* end confdefs.h. */ | |
70d28673 DS |
4835 | #include <stdarg.h> |
4836 | #include <stdio.h> | |
4837 | #include <sys/types.h> | |
4838 | #include <sys/stat.h> | |
4839 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4840 | struct buf { int x; }; | |
4841 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4842 | static char *e (p, i) | |
4843 | char **p; | |
4844 | int i; | |
4845 | { | |
4846 | return p[i]; | |
4847 | } | |
4848 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4849 | { | |
4850 | char *s; | |
4851 | va_list v; | |
4852 | va_start (v,p); | |
4853 | s = g (p, va_arg (v,int)); | |
4854 | va_end (v); | |
4855 | return s; | |
4856 | } | |
4857 | ||
4858 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4859 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4860 | These don't provoke an error unfortunately, instead are silently treated | |
7fbd9d09 | 4861 | as 'x'. The following induces an error, until -std is added to get |
70d28673 DS |
4862 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4863 | array size at least. It's necessary to write '\x00'==0 to get something | |
7fbd9d09 | 4864 | that's true only with -std. */ |
70d28673 DS |
4865 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4866 | ||
7fbd9d09 FCE |
4867 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4868 | inside strings and character constants. */ | |
4869 | #define FOO(x) 'x' | |
4870 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4871 | ||
70d28673 DS |
4872 | int test (int i, double x); |
4873 | struct s1 {int (*f) (int a);}; | |
4874 | struct s2 {int (*f) (double a);}; | |
4875 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4876 | int argc; | |
4877 | char **argv; | |
2f1a1aea FCE |
4878 | int |
4879 | main () | |
4880 | { | |
70d28673 | 4881 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2f1a1aea FCE |
4882 | ; |
4883 | return 0; | |
4884 | } | |
4885 | _ACEOF | |
7fbd9d09 FCE |
4886 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4887 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
70d28673 DS |
4888 | do |
4889 | CC="$ac_save_CC $ac_arg" | |
4890 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
4891 | if { (ac_try="$ac_compile" |
4892 | case "(($ac_try" in | |
4893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4894 | *) ac_try_echo=$ac_try;; | |
4895 | esac | |
27aba29a JS |
4896 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4897 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 4898 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
4899 | ac_status=$? |
4900 | grep -v '^ *+' conftest.er1 >conftest.err | |
4901 | rm -f conftest.er1 | |
4902 | cat conftest.err >&5 | |
27aba29a | 4903 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
4904 | (exit $ac_status); } && { |
4905 | test -z "$ac_c_werror_flag" || | |
4906 | test ! -s conftest.err | |
4907 | } && test -s conftest.$ac_objext; then | |
4908 | ac_cv_prog_cc_c89=$ac_arg | |
818ba2bc | 4909 | else |
27aba29a | 4910 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
4911 | sed 's/^/| /' conftest.$ac_ext >&5 |
4912 | ||
7fbd9d09 | 4913 | |
2f1a1aea | 4914 | fi |
7fbd9d09 FCE |
4915 | |
4916 | rm -f core conftest.err conftest.$ac_objext | |
4917 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
2f1a1aea | 4918 | done |
7fbd9d09 | 4919 | rm -f conftest.$ac_ext |
70d28673 DS |
4920 | CC=$ac_save_CC |
4921 | ||
2f1a1aea | 4922 | fi |
7fbd9d09 FCE |
4923 | # AC_CACHE_VAL |
4924 | case "x$ac_cv_prog_cc_c89" in | |
4925 | x) | |
27aba29a JS |
4926 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
4927 | $as_echo "none needed" >&6; } ;; | |
7fbd9d09 | 4928 | xno) |
27aba29a JS |
4929 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
4930 | $as_echo "unsupported" >&6; } ;; | |
70d28673 | 4931 | *) |
7fbd9d09 | 4932 | CC="$CC $ac_cv_prog_cc_c89" |
27aba29a JS |
4933 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
4934 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
70d28673 | 4935 | esac |
2f1a1aea | 4936 | |
2f1a1aea | 4937 | |
2f1a1aea FCE |
4938 | ac_ext=c |
4939 | ac_cpp='$CPP $CPPFLAGS' | |
4940 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4941 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4942 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4943 | ||
4944 | depcc="$CC" am_compiler_list= | |
4945 | ||
27aba29a JS |
4946 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
4947 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
2f1a1aea | 4948 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
27aba29a | 4949 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4950 | else |
4951 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4952 | # We make a subdir and do the tests there. Otherwise we can end up | |
4953 | # making bogus files that we don't know about and never remove. For | |
4954 | # instance it was reported that on HP-UX the gcc test will end up | |
4955 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4956 | # in D'. | |
4957 | mkdir conftest.dir | |
4958 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4959 | # using a relative directory. | |
4960 | cp "$am_depcomp" conftest.dir | |
4961 | cd conftest.dir | |
4962 | # We will build objects and dependencies in a subdirectory because | |
4963 | # it helps to detect inapplicable dependency modes. For instance | |
4964 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4965 | # side effect of compilation, but ICC will put the dependencies in | |
4966 | # the current directory while Tru64 will put them in the object | |
4967 | # directory. | |
4968 | mkdir sub | |
4969 | ||
4970 | am_cv_CC_dependencies_compiler_type=none | |
4971 | if test "$am_compiler_list" = ""; then | |
4972 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4973 | fi | |
4974 | for depmode in $am_compiler_list; do | |
4975 | # Setup a source with many dependencies, because some compilers | |
4976 | # like to wrap large dependency lists on column 80 (with \), and | |
4977 | # we should not choose a depcomp mode which is confused by this. | |
4978 | # | |
4979 | # We need to recreate these files for each test, as the compiler may | |
4980 | # overwrite some of them when testing with obscure command lines. | |
4981 | # This happens at least with the AIX C compiler. | |
4982 | : > sub/conftest.c | |
4983 | for i in 1 2 3 4 5 6; do | |
4984 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4985 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4986 | # Solaris 8's {/usr,}/bin/sh. | |
4987 | touch sub/conftst$i.h | |
4988 | done | |
4989 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4990 | ||
4991 | case $depmode in | |
4992 | nosideeffect) | |
4993 | # after this tag, mechanisms are not by side-effect, so they'll | |
4994 | # only be used when explicitly requested | |
4995 | if test "x$enable_dependency_tracking" = xyes; then | |
4996 | continue | |
4997 | else | |
4998 | break | |
4999 | fi | |
5000 | ;; | |
5001 | none) break ;; | |
5002 | esac | |
5003 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
5004 | # mode. It turns out that the SunPro C++ compiler does not properly | |
5005 | # handle `-M -o', and we need to detect this. | |
5006 | if depmode=$depmode \ | |
5007 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
5008 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5009 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
5010 | >/dev/null 2>conftest.err && | |
7fbd9d09 | 5011 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea FCE |
5012 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5013 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
5014 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5015 | # icc doesn't choke on unknown options, it will just issue warnings | |
5016 | # or remarks (even with -Werror). So we grep stderr for any message | |
5017 | # that says an option was ignored or not supported. | |
5018 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5019 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5020 | # The diagnosis changed in icc 8.0: | |
5021 | # icc: Command line remark: option '-MP' not supported | |
5022 | if (grep 'ignoring option' conftest.err || | |
5023 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5024 | am_cv_CC_dependencies_compiler_type=$depmode | |
5025 | break | |
5026 | fi | |
5027 | fi | |
5028 | done | |
5029 | ||
5030 | cd .. | |
5031 | rm -rf conftest.dir | |
5032 | else | |
5033 | am_cv_CC_dependencies_compiler_type=none | |
5034 | fi | |
5035 | ||
5036 | fi | |
27aba29a JS |
5037 | { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
5038 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
2f1a1aea FCE |
5039 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
5040 | ||
7fbd9d09 | 5041 | if |
2f1a1aea FCE |
5042 | test "x$enable_dependency_tracking" != xno \ |
5043 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
5044 | am__fastdepCC_TRUE= | |
5045 | am__fastdepCC_FALSE='#' | |
5046 | else | |
5047 | am__fastdepCC_TRUE='#' | |
5048 | am__fastdepCC_FALSE= | |
5049 | fi | |
5050 | ||
5051 | ||
5052 | ||
5053 | am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc | |
5054 | ||
8ae7a94a | 5055 | if test "x$CC" != xcc; then |
27aba29a JS |
5056 | { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 |
5057 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } | |
8ae7a94a | 5058 | else |
27aba29a JS |
5059 | { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 |
5060 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } | |
8ae7a94a | 5061 | fi |
27aba29a | 5062 | set dummy $CC; ac_cc=`$as_echo "$2" | |
8ae7a94a | 5063 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
7fbd9d09 | 5064 | if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a | 5065 | $as_echo_n "(cached) " >&6 |
8ae7a94a FCE |
5066 | else |
5067 | cat >conftest.$ac_ext <<_ACEOF | |
5068 | /* confdefs.h. */ | |
5069 | _ACEOF | |
5070 | cat confdefs.h >>conftest.$ac_ext | |
5071 | cat >>conftest.$ac_ext <<_ACEOF | |
5072 | /* end confdefs.h. */ | |
5073 | ||
5074 | int | |
5075 | main () | |
5076 | { | |
5077 | ||
5078 | ; | |
5079 | return 0; | |
5080 | } | |
5081 | _ACEOF | |
5082 | # Make sure it works both with $CC and with simple cc. | |
5083 | # We do the test twice because some compilers refuse to overwrite an | |
5084 | # existing .o file with -o, though they will create one. | |
7fbd9d09 FCE |
5085 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
5086 | rm -f conftest2.* | |
5087 | if { (case "(($ac_try" in | |
5088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5089 | *) ac_try_echo=$ac_try;; | |
5090 | esac | |
27aba29a JS |
5091 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5092 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 5093 | (eval "$ac_try") 2>&5 |
8ae7a94a | 5094 | ac_status=$? |
27aba29a | 5095 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8ae7a94a | 5096 | (exit $ac_status); } && |
7fbd9d09 FCE |
5097 | test -f conftest2.$ac_objext && { (case "(($ac_try" in |
5098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5099 | *) ac_try_echo=$ac_try;; | |
5100 | esac | |
27aba29a JS |
5101 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5102 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 5103 | (eval "$ac_try") 2>&5 |
8ae7a94a | 5104 | ac_status=$? |
27aba29a | 5105 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8ae7a94a FCE |
5106 | (exit $ac_status); }; |
5107 | then | |
5108 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes | |
5109 | if test "x$CC" != xcc; then | |
5110 | # Test first that cc exists at all. | |
5111 | if { ac_try='cc -c conftest.$ac_ext >&5' | |
7fbd9d09 FCE |
5112 | { (case "(($ac_try" in |
5113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5114 | *) ac_try_echo=$ac_try;; | |
5115 | esac | |
27aba29a JS |
5116 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5117 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 5118 | (eval "$ac_try") 2>&5 |
8ae7a94a | 5119 | ac_status=$? |
27aba29a | 5120 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8ae7a94a | 5121 | (exit $ac_status); }; }; then |
7fbd9d09 FCE |
5122 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
5123 | rm -f conftest2.* | |
5124 | if { (case "(($ac_try" in | |
5125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5126 | *) ac_try_echo=$ac_try;; | |
5127 | esac | |
27aba29a JS |
5128 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5129 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 5130 | (eval "$ac_try") 2>&5 |
8ae7a94a | 5131 | ac_status=$? |
27aba29a | 5132 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8ae7a94a | 5133 | (exit $ac_status); } && |
7fbd9d09 FCE |
5134 | test -f conftest2.$ac_objext && { (case "(($ac_try" in |
5135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5136 | *) ac_try_echo=$ac_try;; | |
5137 | esac | |
27aba29a JS |
5138 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5139 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 5140 | (eval "$ac_try") 2>&5 |
8ae7a94a | 5141 | ac_status=$? |
27aba29a | 5142 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8ae7a94a FCE |
5143 | (exit $ac_status); }; |
5144 | then | |
5145 | # cc works too. | |
5146 | : | |
5147 | else | |
5148 | # cc exists but doesn't like -o. | |
5149 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
5150 | fi | |
5151 | fi | |
5152 | fi | |
5153 | else | |
5154 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
5155 | fi | |
7fbd9d09 | 5156 | rm -f core conftest* |
8ae7a94a FCE |
5157 | |
5158 | fi | |
7fbd9d09 | 5159 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then |
27aba29a JS |
5160 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
5161 | $as_echo "yes" >&6; } | |
8ae7a94a | 5162 | else |
27aba29a JS |
5163 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5164 | $as_echo "no" >&6; } | |
8ae7a94a FCE |
5165 | |
5166 | cat >>confdefs.h <<\_ACEOF | |
5167 | #define NO_MINUS_C_MINUS_O 1 | |
5168 | _ACEOF | |
5169 | ||
5170 | fi | |
5171 | ||
5172 | # FIXME: we rely on the cache variable name because | |
5173 | # there is no other way. | |
5174 | set dummy $CC | |
5175 | ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
5176 | if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then | |
5177 | # Losing compiler, so override with the script. | |
5178 | # FIXME: It is wrong to rewrite CC. | |
5179 | # But if we don't then we get into trouble of one sort or another. | |
5180 | # A longer-term fix would be to have automake use am__CC in this case, | |
5181 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
5182 | CC="$am_aux_dir/compile $CC" | |
5183 | fi | |
5184 | ||
7fbd9d09 | 5185 | |
27aba29a JS |
5186 | { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5 |
5187 | $as_echo_n "checking for function prototypes... " >&6; } | |
7fbd9d09 | 5188 | if test "$ac_cv_prog_cc_c89" != no; then |
27aba29a JS |
5189 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
5190 | $as_echo "yes" >&6; } | |
2f1a1aea FCE |
5191 | |
5192 | cat >>confdefs.h <<\_ACEOF | |
5193 | #define PROTOTYPES 1 | |
5194 | _ACEOF | |
5195 | ||
5196 | ||
5197 | cat >>confdefs.h <<\_ACEOF | |
5198 | #define __PROTOTYPES 1 | |
5199 | _ACEOF | |
5200 | ||
5201 | else | |
27aba29a JS |
5202 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5203 | $as_echo "no" >&6; } | |
7fbd9d09 FCE |
5204 | fi |
5205 | ||
5206 | ||
5207 | ||
27aba29a JS |
5208 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
5209 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
7fbd9d09 | 5210 | if test "${ac_cv_path_GREP+set}" = set; then |
27aba29a | 5211 | $as_echo_n "(cached) " >&6 |
7fbd9d09 | 5212 | else |
27aba29a | 5213 | if test -z "$GREP"; then |
7fbd9d09 | 5214 | ac_path_GREP_found=false |
27aba29a JS |
5215 | # Loop through the user's path and test for each of PROGNAME-LIST |
5216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7fbd9d09 FCE |
5217 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
5218 | do | |
5219 | IFS=$as_save_IFS | |
5220 | test -z "$as_dir" && as_dir=. | |
5221 | for ac_prog in grep ggrep; do | |
27aba29a JS |
5222 | for ac_exec_ext in '' $ac_executable_extensions; do |
5223 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
5224 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
5225 | # Check for GNU ac_path_GREP and select it if it is found. | |
7fbd9d09 FCE |
5226 | # Check for GNU $ac_path_GREP |
5227 | case `"$ac_path_GREP" --version 2>&1` in | |
5228 | *GNU*) | |
5229 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5230 | *) | |
5231 | ac_count=0 | |
27aba29a | 5232 | $as_echo_n 0123456789 >"conftest.in" |
7fbd9d09 FCE |
5233 | while : |
5234 | do | |
5235 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5236 | mv "conftest.tmp" "conftest.in" | |
5237 | cp "conftest.in" "conftest.nl" | |
27aba29a | 5238 | $as_echo 'GREP' >> "conftest.nl" |
7fbd9d09 FCE |
5239 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
5240 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5241 | ac_count=`expr $ac_count + 1` | |
5242 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5243 | # Best one so far, save it but keep looking for a better one | |
5244 | ac_cv_path_GREP="$ac_path_GREP" | |
5245 | ac_path_GREP_max=$ac_count | |
5246 | fi | |
5247 | # 10*(2^10) chars as input seems more than enough | |
5248 | test $ac_count -gt 10 && break | |
5249 | done | |
5250 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5251 | esac | |
5252 | ||
27aba29a JS |
5253 | $ac_path_GREP_found && break 3 |
5254 | done | |
7fbd9d09 FCE |
5255 | done |
5256 | done | |
7fbd9d09 | 5257 | IFS=$as_save_IFS |
27aba29a JS |
5258 | if test -z "$ac_cv_path_GREP"; then |
5259 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
5260 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
7fbd9d09 | 5261 | { (exit 1); exit 1; }; } |
27aba29a | 5262 | fi |
7fbd9d09 FCE |
5263 | else |
5264 | ac_cv_path_GREP=$GREP | |
70d28673 DS |
5265 | fi |
5266 | ||
7fbd9d09 | 5267 | fi |
27aba29a JS |
5268 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
5269 | $as_echo "$ac_cv_path_GREP" >&6; } | |
7fbd9d09 FCE |
5270 | GREP="$ac_cv_path_GREP" |
5271 | ||
70d28673 | 5272 | |
27aba29a JS |
5273 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
5274 | $as_echo_n "checking for egrep... " >&6; } | |
7fbd9d09 | 5275 | if test "${ac_cv_path_EGREP+set}" = set; then |
27aba29a | 5276 | $as_echo_n "(cached) " >&6 |
7fbd9d09 FCE |
5277 | else |
5278 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
5279 | then ac_cv_path_EGREP="$GREP -E" | |
5280 | else | |
27aba29a | 5281 | if test -z "$EGREP"; then |
7fbd9d09 | 5282 | ac_path_EGREP_found=false |
27aba29a JS |
5283 | # Loop through the user's path and test for each of PROGNAME-LIST |
5284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7fbd9d09 FCE |
5285 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
5286 | do | |
5287 | IFS=$as_save_IFS | |
5288 | test -z "$as_dir" && as_dir=. | |
5289 | for ac_prog in egrep; do | |
27aba29a JS |
5290 | for ac_exec_ext in '' $ac_executable_extensions; do |
5291 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5292 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
5293 | # Check for GNU ac_path_EGREP and select it if it is found. | |
7fbd9d09 FCE |
5294 | # Check for GNU $ac_path_EGREP |
5295 | case `"$ac_path_EGREP" --version 2>&1` in | |
5296 | *GNU*) | |
5297 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5298 | *) | |
5299 | ac_count=0 | |
27aba29a | 5300 | $as_echo_n 0123456789 >"conftest.in" |
7fbd9d09 FCE |
5301 | while : |
5302 | do | |
5303 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5304 | mv "conftest.tmp" "conftest.in" | |
5305 | cp "conftest.in" "conftest.nl" | |
27aba29a | 5306 | $as_echo 'EGREP' >> "conftest.nl" |
7fbd9d09 FCE |
5307 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
5308 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5309 | ac_count=`expr $ac_count + 1` | |
5310 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5311 | # Best one so far, save it but keep looking for a better one | |
5312 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5313 | ac_path_EGREP_max=$ac_count | |
2f1a1aea | 5314 | fi |
7fbd9d09 FCE |
5315 | # 10*(2^10) chars as input seems more than enough |
5316 | test $ac_count -gt 10 && break | |
5317 | done | |
5318 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5319 | esac | |
5320 | ||
27aba29a JS |
5321 | $ac_path_EGREP_found && break 3 |
5322 | done | |
7fbd9d09 FCE |
5323 | done |
5324 | done | |
7fbd9d09 | 5325 | IFS=$as_save_IFS |
27aba29a JS |
5326 | if test -z "$ac_cv_path_EGREP"; then |
5327 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
5328 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
7fbd9d09 | 5329 | { (exit 1); exit 1; }; } |
27aba29a | 5330 | fi |
7fbd9d09 FCE |
5331 | else |
5332 | ac_cv_path_EGREP=$EGREP | |
5333 | fi | |
5334 | ||
7fbd9d09 | 5335 | fi |
2f1a1aea | 5336 | fi |
27aba29a JS |
5337 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
5338 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
7fbd9d09 | 5339 | EGREP="$ac_cv_path_EGREP" |
2f1a1aea FCE |
5340 | |
5341 | ||
27aba29a JS |
5342 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5343 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
2f1a1aea | 5344 | if test "${ac_cv_header_stdc+set}" = set; then |
27aba29a | 5345 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
5346 | else |
5347 | cat >conftest.$ac_ext <<_ACEOF | |
5348 | /* confdefs.h. */ | |
5349 | _ACEOF | |
5350 | cat confdefs.h >>conftest.$ac_ext | |
5351 | cat >>conftest.$ac_ext <<_ACEOF | |
5352 | /* end confdefs.h. */ | |
5353 | #include <stdlib.h> | |
5354 | #include <stdarg.h> | |
5355 | #include <string.h> | |
5356 | #include <float.h> | |
5357 | ||
5358 | int | |
5359 | main () | |
5360 | { | |
5361 | ||
5362 | ; | |
5363 | return 0; | |
5364 | } | |
5365 | _ACEOF | |
5366 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
5367 | if { (ac_try="$ac_compile" |
5368 | case "(($ac_try" in | |
5369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5370 | *) ac_try_echo=$ac_try;; | |
5371 | esac | |
27aba29a JS |
5372 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5373 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 5374 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
5375 | ac_status=$? |
5376 | grep -v '^ *+' conftest.er1 >conftest.err | |
5377 | rm -f conftest.er1 | |
5378 | cat conftest.err >&5 | |
27aba29a | 5379 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
5380 | (exit $ac_status); } && { |
5381 | test -z "$ac_c_werror_flag" || | |
5382 | test ! -s conftest.err | |
5383 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
5384 | ac_cv_header_stdc=yes |
5385 | else | |
27aba29a | 5386 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
5387 | sed 's/^/| /' conftest.$ac_ext >&5 |
5388 | ||
7fbd9d09 | 5389 | ac_cv_header_stdc=no |
2f1a1aea | 5390 | fi |
7fbd9d09 FCE |
5391 | |
5392 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2f1a1aea FCE |
5393 | |
5394 | if test $ac_cv_header_stdc = yes; then | |
5395 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5396 | cat >conftest.$ac_ext <<_ACEOF | |
5397 | /* confdefs.h. */ | |
5398 | _ACEOF | |
5399 | cat confdefs.h >>conftest.$ac_ext | |
5400 | cat >>conftest.$ac_ext <<_ACEOF | |
5401 | /* end confdefs.h. */ | |
5402 | #include <string.h> | |
5403 | ||
5404 | _ACEOF | |
5405 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5406 | $EGREP "memchr" >/dev/null 2>&1; then | |
5407 | : | |
5408 | else | |
5409 | ac_cv_header_stdc=no | |
5410 | fi | |
5411 | rm -f conftest* | |
5412 | ||
5413 | fi | |
5414 | ||
5415 | if test $ac_cv_header_stdc = yes; then | |
5416 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5417 | cat >conftest.$ac_ext <<_ACEOF | |
5418 | /* confdefs.h. */ | |
5419 | _ACEOF | |
5420 | cat confdefs.h >>conftest.$ac_ext | |
5421 | cat >>conftest.$ac_ext <<_ACEOF | |
5422 | /* end confdefs.h. */ | |
5423 | #include <stdlib.h> | |
5424 | ||
5425 | _ACEOF | |
5426 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5427 | $EGREP "free" >/dev/null 2>&1; then | |
5428 | : | |
5429 | else | |
5430 | ac_cv_header_stdc=no | |
5431 | fi | |
5432 | rm -f conftest* | |
5433 | ||
5434 | fi | |
5435 | ||
5436 | if test $ac_cv_header_stdc = yes; then | |
5437 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5438 | if test "$cross_compiling" = yes; then | |
5439 | : | |
5440 | else | |
5441 | cat >conftest.$ac_ext <<_ACEOF | |
5442 | /* confdefs.h. */ | |
5443 | _ACEOF | |
5444 | cat confdefs.h >>conftest.$ac_ext | |
5445 | cat >>conftest.$ac_ext <<_ACEOF | |
5446 | /* end confdefs.h. */ | |
5447 | #include <ctype.h> | |
7fbd9d09 | 5448 | #include <stdlib.h> |
2f1a1aea FCE |
5449 | #if ((' ' & 0x0FF) == 0x020) |
5450 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5451 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5452 | #else | |
5453 | # define ISLOWER(c) \ | |
5454 | (('a' <= (c) && (c) <= 'i') \ | |
5455 | || ('j' <= (c) && (c) <= 'r') \ | |
5456 | || ('s' <= (c) && (c) <= 'z')) | |
5457 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5458 | #endif | |
5459 | ||
5460 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5461 | int | |
5462 | main () | |
5463 | { | |
5464 | int i; | |
5465 | for (i = 0; i < 256; i++) | |
5466 | if (XOR (islower (i), ISLOWER (i)) | |
5467 | || toupper (i) != TOUPPER (i)) | |
7fbd9d09 FCE |
5468 | return 2; |
5469 | return 0; | |
2f1a1aea FCE |
5470 | } |
5471 | _ACEOF | |
5472 | rm -f conftest$ac_exeext | |
7fbd9d09 FCE |
5473 | if { (ac_try="$ac_link" |
5474 | case "(($ac_try" in | |
5475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5476 | *) ac_try_echo=$ac_try;; | |
5477 | esac | |
27aba29a JS |
5478 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5479 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 5480 | (eval "$ac_link") 2>&5 |
2f1a1aea | 5481 | ac_status=$? |
27aba29a | 5482 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea | 5483 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7fbd9d09 FCE |
5484 | { (case "(($ac_try" in |
5485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5486 | *) ac_try_echo=$ac_try;; | |
5487 | esac | |
27aba29a JS |
5488 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5489 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 5490 | (eval "$ac_try") 2>&5 |
2f1a1aea | 5491 | ac_status=$? |
27aba29a | 5492 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea FCE |
5493 | (exit $ac_status); }; }; then |
5494 | : | |
5495 | else | |
27aba29a JS |
5496 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
5497 | $as_echo "$as_me: failed program was:" >&5 | |
2f1a1aea FCE |
5498 | sed 's/^/| /' conftest.$ac_ext >&5 |
5499 | ||
5500 | ( exit $ac_status ) | |
5501 | ac_cv_header_stdc=no | |
5502 | fi | |
27aba29a | 5503 | rm -rf conftest.dSYM |
7fbd9d09 | 5504 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
2f1a1aea | 5505 | fi |
7fbd9d09 FCE |
5506 | |
5507 | ||
2f1a1aea FCE |
5508 | fi |
5509 | fi | |
27aba29a JS |
5510 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
5511 | $as_echo "$ac_cv_header_stdc" >&6; } | |
2f1a1aea FCE |
5512 | if test $ac_cv_header_stdc = yes; then |
5513 | ||
5514 | cat >>confdefs.h <<\_ACEOF | |
5515 | #define STDC_HEADERS 1 | |
5516 | _ACEOF | |
5517 | ||
5518 | fi | |
5519 | ||
5520 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5521 | ||
5522 | ||
5523 | ||
5524 | ||
5525 | ||
5526 | ||
5527 | ||
5528 | ||
5529 | ||
5530 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5531 | inttypes.h stdint.h unistd.h | |
5532 | do | |
27aba29a JS |
5533 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5534 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5535 | $as_echo_n "checking for $ac_header... " >&6; } | |
7fbd9d09 | 5536 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a | 5537 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
5538 | else |
5539 | cat >conftest.$ac_ext <<_ACEOF | |
5540 | /* confdefs.h. */ | |
5541 | _ACEOF | |
5542 | cat confdefs.h >>conftest.$ac_ext | |
5543 | cat >>conftest.$ac_ext <<_ACEOF | |
5544 | /* end confdefs.h. */ | |
5545 | $ac_includes_default | |
5546 | ||
5547 | #include <$ac_header> | |
5548 | _ACEOF | |
5549 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
5550 | if { (ac_try="$ac_compile" |
5551 | case "(($ac_try" in | |
5552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5553 | *) ac_try_echo=$ac_try;; | |
5554 | esac | |
27aba29a JS |
5555 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5556 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 5557 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
5558 | ac_status=$? |
5559 | grep -v '^ *+' conftest.er1 >conftest.err | |
5560 | rm -f conftest.er1 | |
5561 | cat conftest.err >&5 | |
27aba29a | 5562 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
5563 | (exit $ac_status); } && { |
5564 | test -z "$ac_c_werror_flag" || | |
5565 | test ! -s conftest.err | |
5566 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
5567 | eval "$as_ac_Header=yes" |
5568 | else | |
27aba29a | 5569 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
5570 | sed 's/^/| /' conftest.$ac_ext >&5 |
5571 | ||
7fbd9d09 | 5572 | eval "$as_ac_Header=no" |
2f1a1aea | 5573 | fi |
7fbd9d09 FCE |
5574 | |
5575 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2f1a1aea | 5576 | fi |
27aba29a JS |
5577 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5578 | $as_echo "$as_val"'` | |
5579 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5580 | $as_echo "$ac_res" >&6; } | |
5581 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5582 | $as_echo "$as_val"'` | |
5583 | if test "x$as_val" = x""yes; then | |
2f1a1aea | 5584 | cat >>confdefs.h <<_ACEOF |
27aba29a | 5585 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
2f1a1aea FCE |
5586 | _ACEOF |
5587 | ||
5588 | fi | |
5589 | ||
5590 | done | |
5591 | ||
5592 | ||
5593 | ||
5594 | if test "$ac_cv_prog_cc_stdc" != no; then | |
5595 | U= ANSI2KNR= | |
5596 | else | |
5597 | U=_ ANSI2KNR=./ansi2knr | |
5598 | fi | |
5599 | # Ensure some checks needed by ansi2knr itself. | |
5600 | ||
5601 | ||
5602 | for ac_header in string.h | |
5603 | do | |
27aba29a | 5604 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7fbd9d09 | 5605 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a JS |
5606 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5607 | $as_echo_n "checking for $ac_header... " >&6; } | |
7fbd9d09 | 5608 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a | 5609 | $as_echo_n "(cached) " >&6 |
818ba2bc | 5610 | fi |
27aba29a JS |
5611 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5612 | $as_echo "$as_val"'` | |
5613 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5614 | $as_echo "$ac_res" >&6; } | |
2f1a1aea FCE |
5615 | else |
5616 | # Is the header compilable? | |
27aba29a JS |
5617 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5618 | $as_echo_n "checking $ac_header usability... " >&6; } | |
2f1a1aea FCE |
5619 | cat >conftest.$ac_ext <<_ACEOF |
5620 | /* confdefs.h. */ | |
5621 | _ACEOF | |
5622 | cat confdefs.h >>conftest.$ac_ext | |
5623 | cat >>conftest.$ac_ext <<_ACEOF | |
5624 | /* end confdefs.h. */ | |
5625 | $ac_includes_default | |
5626 | #include <$ac_header> | |
5627 | _ACEOF | |
5628 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
5629 | if { (ac_try="$ac_compile" |
5630 | case "(($ac_try" in | |
5631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5632 | *) ac_try_echo=$ac_try;; | |
5633 | esac | |
27aba29a JS |
5634 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5635 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 5636 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
5637 | ac_status=$? |
5638 | grep -v '^ *+' conftest.er1 >conftest.err | |
5639 | rm -f conftest.er1 | |
5640 | cat conftest.err >&5 | |
27aba29a | 5641 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
5642 | (exit $ac_status); } && { |
5643 | test -z "$ac_c_werror_flag" || | |
5644 | test ! -s conftest.err | |
5645 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
5646 | ac_header_compiler=yes |
5647 | else | |
27aba29a | 5648 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
5649 | sed 's/^/| /' conftest.$ac_ext >&5 |
5650 | ||
7fbd9d09 | 5651 | ac_header_compiler=no |
2f1a1aea | 5652 | fi |
7fbd9d09 FCE |
5653 | |
5654 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
27aba29a JS |
5655 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5656 | $as_echo "$ac_header_compiler" >&6; } | |
2f1a1aea FCE |
5657 | |
5658 | # Is the header present? | |
27aba29a JS |
5659 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5660 | $as_echo_n "checking $ac_header presence... " >&6; } | |
2f1a1aea FCE |
5661 | cat >conftest.$ac_ext <<_ACEOF |
5662 | /* confdefs.h. */ | |
5663 | _ACEOF | |
5664 | cat confdefs.h >>conftest.$ac_ext | |
5665 | cat >>conftest.$ac_ext <<_ACEOF | |
5666 | /* end confdefs.h. */ | |
5667 | #include <$ac_header> | |
5668 | _ACEOF | |
7fbd9d09 FCE |
5669 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5670 | case "(($ac_try" in | |
5671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5672 | *) ac_try_echo=$ac_try;; | |
5673 | esac | |
27aba29a JS |
5674 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5675 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 5676 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
2f1a1aea FCE |
5677 | ac_status=$? |
5678 | grep -v '^ *+' conftest.er1 >conftest.err | |
5679 | rm -f conftest.er1 | |
5680 | cat conftest.err >&5 | |
27aba29a | 5681 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
5682 | (exit $ac_status); } >/dev/null && { |
5683 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5684 | test ! -s conftest.err | |
5685 | }; then | |
2f1a1aea FCE |
5686 | ac_header_preproc=yes |
5687 | else | |
27aba29a | 5688 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
5689 | sed 's/^/| /' conftest.$ac_ext >&5 |
5690 | ||
5691 | ac_header_preproc=no | |
5692 | fi | |
7fbd9d09 | 5693 | |
2f1a1aea | 5694 | rm -f conftest.err conftest.$ac_ext |
27aba29a JS |
5695 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5696 | $as_echo "$ac_header_preproc" >&6; } | |
2f1a1aea FCE |
5697 | |
5698 | # So? What about this header? | |
5699 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5700 | yes:no: ) | |
27aba29a JS |
5701 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5702 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5703 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5704 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
2f1a1aea FCE |
5705 | ac_header_preproc=yes |
5706 | ;; | |
5707 | no:yes:* ) | |
27aba29a JS |
5708 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5709 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5710 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5711 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5712 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5713 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5714 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5715 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5716 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5717 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5718 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5719 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7fbd9d09 | 5720 | ( cat <<\_ASBOX |
2f1a1aea FCE |
5721 | ## ------------------------------------------- ## |
5722 | ## Report this to systemtap@sources.redhat.com ## | |
5723 | ## ------------------------------------------- ## | |
5724 | _ASBOX | |
7fbd9d09 | 5725 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
2f1a1aea FCE |
5726 | ;; |
5727 | esac | |
27aba29a JS |
5728 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5729 | $as_echo_n "checking for $ac_header... " >&6; } | |
7fbd9d09 | 5730 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a | 5731 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
5732 | else |
5733 | eval "$as_ac_Header=\$ac_header_preproc" | |
5734 | fi | |
27aba29a JS |
5735 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5736 | $as_echo "$as_val"'` | |
5737 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5738 | $as_echo "$ac_res" >&6; } | |
2f1a1aea FCE |
5739 | |
5740 | fi | |
27aba29a JS |
5741 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5742 | $as_echo "$as_val"'` | |
5743 | if test "x$as_val" = x""yes; then | |
2f1a1aea | 5744 | cat >>confdefs.h <<_ACEOF |
27aba29a | 5745 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
2f1a1aea FCE |
5746 | _ACEOF |
5747 | ||
5748 | fi | |
5749 | ||
5750 | done | |
5751 | ||
5752 | ||
2f1a1aea FCE |
5753 | if test -n "$ac_tool_prefix"; then |
5754 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5755 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
27aba29a JS |
5756 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5757 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 5758 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
27aba29a | 5759 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
5760 | else |
5761 | if test -n "$RANLIB"; then | |
5762 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5763 | else | |
5764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5765 | for as_dir in $PATH | |
5766 | do | |
5767 | IFS=$as_save_IFS | |
5768 | test -z "$as_dir" && as_dir=. | |
5769 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 5770 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 5771 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
27aba29a | 5772 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
5773 | break 2 |
5774 | fi | |
5775 | done | |
5776 | done | |
7fbd9d09 | 5777 | IFS=$as_save_IFS |
2f1a1aea FCE |
5778 | |
5779 | fi | |
5780 | fi | |
5781 | RANLIB=$ac_cv_prog_RANLIB | |
5782 | if test -n "$RANLIB"; then | |
27aba29a JS |
5783 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
5784 | $as_echo "$RANLIB" >&6; } | |
2f1a1aea | 5785 | else |
27aba29a JS |
5786 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5787 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
5788 | fi |
5789 | ||
7fbd9d09 | 5790 | |
2f1a1aea FCE |
5791 | fi |
5792 | if test -z "$ac_cv_prog_RANLIB"; then | |
5793 | ac_ct_RANLIB=$RANLIB | |
5794 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5795 | set dummy ranlib; ac_word=$2 | |
27aba29a JS |
5796 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5797 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 5798 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
27aba29a | 5799 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
5800 | else |
5801 | if test -n "$ac_ct_RANLIB"; then | |
5802 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5803 | else | |
5804 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5805 | for as_dir in $PATH | |
5806 | do | |
5807 | IFS=$as_save_IFS | |
5808 | test -z "$as_dir" && as_dir=. | |
5809 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 5810 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 5811 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
27aba29a | 5812 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
5813 | break 2 |
5814 | fi | |
5815 | done | |
5816 | done | |
7fbd9d09 | 5817 | IFS=$as_save_IFS |
2f1a1aea | 5818 | |
2f1a1aea FCE |
5819 | fi |
5820 | fi | |
5821 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5822 | if test -n "$ac_ct_RANLIB"; then | |
27aba29a JS |
5823 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
5824 | $as_echo "$ac_ct_RANLIB" >&6; } | |
2f1a1aea | 5825 | else |
27aba29a JS |
5826 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5827 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
5828 | fi |
5829 | ||
7fbd9d09 FCE |
5830 | if test "x$ac_ct_RANLIB" = x; then |
5831 | RANLIB=":" | |
5832 | else | |
5833 | case $cross_compiling:$ac_tool_warned in | |
5834 | yes:) | |
27aba29a JS |
5835 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
5836 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7fbd9d09 FCE |
5837 | ac_tool_warned=yes ;; |
5838 | esac | |
5839 | RANLIB=$ac_ct_RANLIB | |
5840 | fi | |
2f1a1aea FCE |
5841 | else |
5842 | RANLIB="$ac_cv_prog_RANLIB" | |
5843 | fi | |
5844 | ||
5845 | ||
5846 | ||
5847 | # Find a good install program. We prefer a C program (faster), | |
5848 | # so one script is as good as another. But avoid the broken or | |
5849 | # incompatible versions: | |
5850 | # SysV /etc/install, /usr/sbin/install | |
5851 | # SunOS /usr/etc/install | |
5852 | # IRIX /sbin/install | |
5853 | # AIX /bin/install | |
5854 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
5855 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
5856 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
5857 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
5858 | # OS/2's system install, which has a completely different semantic | |
5859 | # ./install, which can be erroneously created by make from ./install.sh. | |
27aba29a JS |
5860 | # Reject install programs that cannot install multiple files. |
5861 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
5862 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2f1a1aea FCE |
5863 | if test -z "$INSTALL"; then |
5864 | if test "${ac_cv_path_install+set}" = set; then | |
27aba29a | 5865 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
5866 | else |
5867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5868 | for as_dir in $PATH | |
5869 | do | |
5870 | IFS=$as_save_IFS | |
5871 | test -z "$as_dir" && as_dir=. | |
5872 | # Account for people who put trailing slashes in PATH elements. | |
5873 | case $as_dir/ in | |
5874 | ./ | .// | /cC/* | \ | |
5875 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
5876 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
5877 | /usr/ucb/* ) ;; | |
5878 | *) | |
5879 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
5880 | # Don't use installbsd from OSF since it installs stuff as root | |
5881 | # by default. | |
5882 | for ac_prog in ginstall scoinst install; do | |
5883 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 5884 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
2f1a1aea FCE |
5885 | if test $ac_prog = install && |
5886 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5887 | # AIX install. It has an incompatible calling convention. | |
5888 | : | |
5889 | elif test $ac_prog = install && | |
5890 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5891 | # program-specific install script used by HP pwplus--don't use. | |
5892 | : | |
5893 | else | |
27aba29a JS |
5894 | rm -rf conftest.one conftest.two conftest.dir |
5895 | echo one > conftest.one | |
5896 | echo two > conftest.two | |
5897 | mkdir conftest.dir | |
5898 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
5899 | test -s conftest.one && test -s conftest.two && | |
5900 | test -s conftest.dir/conftest.one && | |
5901 | test -s conftest.dir/conftest.two | |
5902 | then | |
5903 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
5904 | break 3 | |
5905 | fi | |
2f1a1aea FCE |
5906 | fi |
5907 | fi | |
5908 | done | |
5909 | done | |
5910 | ;; | |
5911 | esac | |
27aba29a | 5912 | |
2f1a1aea | 5913 | done |
7fbd9d09 | 5914 | IFS=$as_save_IFS |
2f1a1aea | 5915 | |
27aba29a | 5916 | rm -rf conftest.one conftest.two conftest.dir |
2f1a1aea FCE |
5917 | |
5918 | fi | |
5919 | if test "${ac_cv_path_install+set}" = set; then | |
5920 | INSTALL=$ac_cv_path_install | |
5921 | else | |
7fbd9d09 FCE |
5922 | # As a last resort, use the slow shell script. Don't cache a |
5923 | # value for INSTALL within a source directory, because that will | |
2f1a1aea | 5924 | # break other packages using the cache if that directory is |
7fbd9d09 | 5925 | # removed, or if the value is a relative name. |
2f1a1aea FCE |
5926 | INSTALL=$ac_install_sh |
5927 | fi | |
5928 | fi | |
27aba29a JS |
5929 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
5930 | $as_echo "$INSTALL" >&6; } | |
2f1a1aea FCE |
5931 | |
5932 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
5933 | # It thinks the first close brace ends the variable substitution. | |
5934 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
5935 | ||
5936 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
5937 | ||
5938 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
5939 | ||
27aba29a JS |
5940 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
5941 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
5942 | set x ${MAKE-make} | |
5943 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
7fbd9d09 | 5944 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a | 5945 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
5946 | else |
5947 | cat >conftest.make <<\_ACEOF | |
7fbd9d09 | 5948 | SHELL = /bin/sh |
2f1a1aea | 5949 | all: |
7fbd9d09 | 5950 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
2f1a1aea FCE |
5951 | _ACEOF |
5952 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
7fbd9d09 FCE |
5953 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
5954 | *@@@%%%=?*=@@@%%%*) | |
5955 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
5956 | *) | |
5957 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
5958 | esac | |
2f1a1aea FCE |
5959 | rm -f conftest.make |
5960 | fi | |
7fbd9d09 | 5961 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
27aba29a JS |
5962 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
5963 | $as_echo "yes" >&6; } | |
2f1a1aea FCE |
5964 | SET_MAKE= |
5965 | else | |
27aba29a JS |
5966 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5967 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
5968 | SET_MAKE="MAKE=${MAKE-make}" |
5969 | fi | |
5970 | ||
5971 | ||
5972 | ||
5973 | ||
7fbd9d09 | 5974 | # Check whether --enable-perfmon was given. |
47dd066d | 5975 | if test "${enable_perfmon+set}" = set; then |
7fbd9d09 | 5976 | enableval=$enable_perfmon; |
564eb0a8 DS |
5977 | if test "$enable_perfmon" != "no"; then |
5978 | CPPFLAGS="$CPPFLAGS -DPERFMON" | |
5979 | LIBS="$LIBS -lpfm" | |
5980 | if test "$enable_perfmon" != "yes"; then | |
5981 | CPPFLAGS="$CPPFLAGS -I$enable_perfmon/include" | |
5982 | LDFLAGS="$LDFLAGS -L$enable_perfmon/lib" | |
5983 | fi | |
47dd066d | 5984 | |
27aba29a JS |
5985 | { $as_echo "$as_me:$LINENO: checking for pfm_start in -lpfm" >&5 |
5986 | $as_echo_n "checking for pfm_start in -lpfm... " >&6; } | |
47dd066d | 5987 | if test "${ac_cv_lib_pfm_pfm_start+set}" = set; then |
27aba29a | 5988 | $as_echo_n "(cached) " >&6 |
47dd066d WC |
5989 | else |
5990 | ac_check_lib_save_LIBS=$LIBS | |
5991 | LIBS="-lpfm $LIBS" | |
5992 | cat >conftest.$ac_ext <<_ACEOF | |
5993 | /* confdefs.h. */ | |
5994 | _ACEOF | |
5995 | cat confdefs.h >>conftest.$ac_ext | |
5996 | cat >>conftest.$ac_ext <<_ACEOF | |
5997 | /* end confdefs.h. */ | |
5998 | ||
7fbd9d09 FCE |
5999 | /* Override any GCC internal prototype to avoid an error. |
6000 | Use char because int might match the return type of a GCC | |
6001 | builtin and then its argument prototype would still apply. */ | |
47dd066d WC |
6002 | #ifdef __cplusplus |
6003 | extern "C" | |
6004 | #endif | |
47dd066d WC |
6005 | char pfm_start (); |
6006 | int | |
6007 | main () | |
6008 | { | |
7fbd9d09 | 6009 | return pfm_start (); |
47dd066d WC |
6010 | ; |
6011 | return 0; | |
6012 | } | |
6013 | _ACEOF | |
6014 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7fbd9d09 FCE |
6015 | if { (ac_try="$ac_link" |
6016 | case "(($ac_try" in | |
6017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6018 | *) ac_try_echo=$ac_try;; | |
6019 | esac | |
27aba29a JS |
6020 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6021 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 6022 | (eval "$ac_link") 2>conftest.er1 |
47dd066d WC |
6023 | ac_status=$? |
6024 | grep -v '^ *+' conftest.er1 >conftest.err | |
6025 | rm -f conftest.er1 | |
6026 | cat conftest.err >&5 | |
27aba29a | 6027 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
6028 | (exit $ac_status); } && { |
6029 | test -z "$ac_c_werror_flag" || | |
6030 | test ! -s conftest.err | |
27aba29a JS |
6031 | } && test -s conftest$ac_exeext && { |
6032 | test "$cross_compiling" = yes || | |
6033 | $as_test_x conftest$ac_exeext | |
6034 | }; then | |
47dd066d WC |
6035 | ac_cv_lib_pfm_pfm_start=yes |
6036 | else | |
27aba29a | 6037 | $as_echo "$as_me: failed program was:" >&5 |
47dd066d WC |
6038 | sed 's/^/| /' conftest.$ac_ext >&5 |
6039 | ||
7fbd9d09 | 6040 | ac_cv_lib_pfm_pfm_start=no |
47dd066d | 6041 | fi |
7fbd9d09 | 6042 | |
27aba29a | 6043 | rm -rf conftest.dSYM |
7fbd9d09 | 6044 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
47dd066d WC |
6045 | conftest$ac_exeext conftest.$ac_ext |
6046 | LIBS=$ac_check_lib_save_LIBS | |
6047 | fi | |
27aba29a JS |
6048 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pfm_pfm_start" >&5 |
6049 | $as_echo "$ac_cv_lib_pfm_pfm_start" >&6; } | |
6050 | if test "x$ac_cv_lib_pfm_pfm_start" = x""yes; then | |
47dd066d WC |
6051 | cat >>confdefs.h <<_ACEOF |
6052 | #define HAVE_LIBPFM 1 | |
6053 | _ACEOF | |
6054 | ||
6055 | LIBS="-lpfm $LIBS" | |
6056 | ||
6057 | else | |
6058 | ||
27aba29a JS |
6059 | { { $as_echo "$as_me:$LINENO: error: systemtap cannot find required perfmon libs (libpfm-devel may need to be installed" >&5 |
6060 | $as_echo "$as_me: error: systemtap cannot find required perfmon libs (libpfm-devel may need to be installed" >&2;} | |
47dd066d WC |
6061 | { (exit 1); exit 1; }; } |
6062 | fi | |
6063 | ||
564eb0a8 | 6064 | fi |
7fbd9d09 FCE |
6065 | fi |
6066 | ||
70d28673 DS |
6067 | |
6068 | if test "${enable_prologues+set}" != set; then | |
27aba29a JS |
6069 | { $as_echo "$as_me:$LINENO: checking to see if prologue searching should be the default" >&5 |
6070 | $as_echo_n "checking to see if prologue searching should be the default... " >&6; } | |
70d28673 DS |
6071 | if { echo '#if __i386__ == 1 && __GNUC__ < 4' |
6072 | echo ' yes ' | |
6073 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
6074 | enable_prologues=yes | |
27aba29a JS |
6075 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
6076 | $as_echo "yes" >&6; } | |
70d28673 | 6077 | else |
27aba29a JS |
6078 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6079 | $as_echo "no" >&6; } | |
70d28673 DS |
6080 | fi |
6081 | fi | |
7fbd9d09 | 6082 | # Check whether --enable-prologues was given. |
44f75386 | 6083 | if test "${enable_prologues+set}" = set; then |
7fbd9d09 | 6084 | enableval=$enable_prologues; |
70d28673 | 6085 | if test "$enable_prologues" = yes; then |
44f75386 FCE |
6086 | |
6087 | cat >>confdefs.h <<\_ACEOF | |
27aba29a | 6088 | #define ENABLE_PROLOGUES /**/ |
44f75386 FCE |
6089 | _ACEOF |
6090 | ||
70d28673 | 6091 | fi |
7fbd9d09 | 6092 | fi |
70d28673 | 6093 | |
7fbd9d09 FCE |
6094 | |
6095 | # Check whether --enable-ssp was given. | |
9921a199 | 6096 | if test "${enable_ssp+set}" = set; then |
7fbd9d09 FCE |
6097 | enableval=$enable_ssp; |
6098 | fi | |
9921a199 | 6099 | |
bbfd8c1a FCE |
6100 | if test "x$enable_ssp" != xno; then |
6101 | ||
6102 | save_CFLAGS="$CFLAGS" | |
6103 | save_CXXFLAGS="$CXXFLAGS" | |
f0510eaa FCE |
6104 | CXXFLAGS="$CXXFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2" |
6105 | CFLAGS="$CFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2" | |
bbfd8c1a FCE |
6106 | cat >conftest.$ac_ext <<_ACEOF |
6107 | int something (); | |
6108 | _ACEOF | |
6109 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
6110 | if { (ac_try="$ac_compile" |
6111 | case "(($ac_try" in | |
6112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6113 | *) ac_try_echo=$ac_try;; | |
6114 | esac | |
27aba29a JS |
6115 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6116 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 6117 | (eval "$ac_compile") 2>conftest.er1 |
bbfd8c1a FCE |
6118 | ac_status=$? |
6119 | grep -v '^ *+' conftest.er1 >conftest.err | |
6120 | rm -f conftest.er1 | |
6121 | cat conftest.err >&5 | |
27aba29a | 6122 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
6123 | (exit $ac_status); } && { |
6124 | test -z "$ac_c_werror_flag" || | |
6125 | test ! -s conftest.err | |
6126 | } && test -s conftest.$ac_objext; then | |
818ba2bc | 6127 | |
27aba29a JS |
6128 | { $as_echo "$as_me:$LINENO: Compiling with gcc -fstack-protector-all et al." >&5 |
6129 | $as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;} | |
f0510eaa FCE |
6130 | CFLAGS="$save_CFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2" |
6131 | CXFXLAGS="$save_CXXFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2" | |
bbfd8c1a | 6132 | else |
27aba29a | 6133 | $as_echo "$as_me: failed program was:" >&5 |
bbfd8c1a FCE |
6134 | sed 's/^/| /' conftest.$ac_ext >&5 |
6135 | ||
6136 | ||
27aba29a JS |
6137 | { $as_echo "$as_me:$LINENO: Compiler does not support -fstack-protector-all et al." >&5 |
6138 | $as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;} | |
bbfd8c1a FCE |
6139 | CFLAGS="$save_CFLAGS" |
6140 | CXXFLAGS="$save_CXXFLAGS" | |
6141 | fi | |
7fbd9d09 FCE |
6142 | |
6143 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9921a199 | 6144 | fi |
70d28673 | 6145 | |
42feb3c0 | 6146 | |
e1e3ba36 | 6147 | # Compiling without fPIE by default (see PR 9922) |
7fbd9d09 | 6148 | # Check whether --enable-pie was given. |
8730f377 | 6149 | if test "${enable_pie+set}" = set; then |
7fbd9d09 FCE |
6150 | enableval=$enable_pie; |
6151 | fi | |
8730f377 | 6152 | |
e1e3ba36 | 6153 | if test "x$enable_pie" == xyes; then |
8730f377 FCE |
6154 | |
6155 | save_CFLAGS="$CFLAGS" | |
6156 | save_CXXFLAGS="$CXXFLAGS" | |
6157 | save_LDFLAGS="$LDFLAGS" | |
7b53a460 SD |
6158 | CFLAGS="$CFLAGS -fPIE" |
6159 | CXXFLAGS="$CXXFLAGS -fPIE" | |
8730f377 FCE |
6160 | LDFLAGS="$LDFLAGS -pie -Wl,-z,relro -Wl,-z,now" |
6161 | cat >conftest.$ac_ext <<_ACEOF | |
6162 | void main () {} | |
6163 | _ACEOF | |
6164 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7fbd9d09 FCE |
6165 | if { (ac_try="$ac_link" |
6166 | case "(($ac_try" in | |
6167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6168 | *) ac_try_echo=$ac_try;; | |
6169 | esac | |
27aba29a JS |
6170 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6171 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 6172 | (eval "$ac_link") 2>conftest.er1 |
8730f377 FCE |
6173 | ac_status=$? |
6174 | grep -v '^ *+' conftest.er1 >conftest.err | |
6175 | rm -f conftest.er1 | |
6176 | cat conftest.err >&5 | |
27aba29a | 6177 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
6178 | (exit $ac_status); } && { |
6179 | test -z "$ac_c_werror_flag" || | |
6180 | test ! -s conftest.err | |
27aba29a JS |
6181 | } && test -s conftest$ac_exeext && { |
6182 | test "$cross_compiling" = yes || | |
6183 | $as_test_x conftest$ac_exeext | |
6184 | }; then | |
818ba2bc | 6185 | |
27aba29a JS |
6186 | { $as_echo "$as_me:$LINENO: Compiling with gcc pie et al." >&5 |
6187 | $as_echo "$as_me: Compiling with gcc pie et al." >&6;} | |
8730f377 FCE |
6188 | # LDFLAGS is special since it may be passed down to bundled-elfutils, |
6189 | # and interfere with the .so's built therein | |
5574ef2c | 6190 | PIELDFLAGS="$LDFLAGS" |
8730f377 | 6191 | LDFLAGS="$save_LDFLAGS" |
5574ef2c MW |
6192 | PIECFLAGS="$CFLAGS" |
6193 | CFLAGS="$save_CFLAGS" | |
6194 | PIECXXFLAGS="$CXXFLAGS" | |
6195 | CXXFLAGS="$save_CXXFLAGS" | |
8730f377 FCE |
6196 | |
6197 | else | |
27aba29a | 6198 | $as_echo "$as_me: failed program was:" >&5 |
8730f377 FCE |
6199 | sed 's/^/| /' conftest.$ac_ext >&5 |
6200 | ||
6201 | ||
27aba29a JS |
6202 | { $as_echo "$as_me:$LINENO: Compiler does not support -pie et al." >&5 |
6203 | $as_echo "$as_me: Compiler does not support -pie et al." >&6;} | |
5574ef2c | 6204 | PIECFLAGS="" |
8730f377 | 6205 | CFLAGS="$save_CFLAGS" |
5574ef2c | 6206 | PIECXXFLAGS="" |
8730f377 FCE |
6207 | CXXFLAGS="$save_CXXFLAGS" |
6208 | PIELDFLAGS="" | |
6209 | LDFLAGS="$save_LDFLAGS" | |
6210 | fi | |
7fbd9d09 | 6211 | |
27aba29a | 6212 | rm -rf conftest.dSYM |
7fbd9d09 | 6213 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8730f377 FCE |
6214 | conftest$ac_exeext conftest.$ac_ext |
6215 | fi | |
6216 | ||
6217 | ||
6218 | ||
5574ef2c MW |
6219 | |
6220 | ||
7fbd9d09 | 6221 | # Check whether --enable-sqlite was given. |
9921a199 | 6222 | if test "${enable_sqlite+set}" = set; then |
7fbd9d09 | 6223 | enableval=$enable_sqlite; |
9921a199 | 6224 | else |
e8f3c2c2 | 6225 | enable_sqlite=check |
7fbd9d09 FCE |
6226 | fi |
6227 | sqlite3_LIBS= | |
9921a199 | 6228 | if test "x$enable_sqlite" != xno; then |
27aba29a JS |
6229 | { $as_echo "$as_me:$LINENO: checking for sqlite3_open in -lsqlite3" >&5 |
6230 | $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; } | |
42feb3c0 | 6231 | if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then |
27aba29a | 6232 | $as_echo_n "(cached) " >&6 |
42feb3c0 WC |
6233 | else |
6234 | ac_check_lib_save_LIBS=$LIBS | |
6235 | LIBS="-lsqlite3 $LIBS" | |
6236 | cat >conftest.$ac_ext <<_ACEOF | |
6237 | /* confdefs.h. */ | |
6238 | _ACEOF | |
6239 | cat confdefs.h >>conftest.$ac_ext | |
6240 | cat >>conftest.$ac_ext <<_ACEOF | |
6241 | /* end confdefs.h. */ | |
6242 | ||
7fbd9d09 FCE |
6243 | /* Override any GCC internal prototype to avoid an error. |
6244 | Use char because int might match the return type of a GCC | |
6245 | builtin and then its argument prototype would still apply. */ | |
42feb3c0 WC |
6246 | #ifdef __cplusplus |
6247 | extern "C" | |
6248 | #endif | |
6249 | char sqlite3_open (); | |
6250 | int | |
6251 | main () | |
6252 | { | |
7fbd9d09 | 6253 | return sqlite3_open (); |
42feb3c0 WC |
6254 | ; |
6255 | return 0; | |
6256 | } | |
6257 | _ACEOF | |
6258 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7fbd9d09 FCE |
6259 | if { (ac_try="$ac_link" |
6260 | case "(($ac_try" in | |
6261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6262 | *) ac_try_echo=$ac_try;; | |
6263 | esac | |
27aba29a JS |
6264 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6265 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 6266 | (eval "$ac_link") 2>conftest.er1 |
42feb3c0 WC |
6267 | ac_status=$? |
6268 | grep -v '^ *+' conftest.er1 >conftest.err | |
6269 | rm -f conftest.er1 | |
6270 | cat conftest.err >&5 | |
27aba29a | 6271 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
6272 | (exit $ac_status); } && { |
6273 | test -z "$ac_c_werror_flag" || | |
6274 | test ! -s conftest.err | |
27aba29a JS |
6275 | } && test -s conftest$ac_exeext && { |
6276 | test "$cross_compiling" = yes || | |
6277 | $as_test_x conftest$ac_exeext | |
6278 | }; then | |
42feb3c0 WC |
6279 | ac_cv_lib_sqlite3_sqlite3_open=yes |
6280 | else | |
27aba29a | 6281 | $as_echo "$as_me: failed program was:" >&5 |
42feb3c0 WC |
6282 | sed 's/^/| /' conftest.$ac_ext >&5 |
6283 | ||
7fbd9d09 | 6284 | ac_cv_lib_sqlite3_sqlite3_open=no |
42feb3c0 | 6285 | fi |
7fbd9d09 | 6286 | |
27aba29a | 6287 | rm -rf conftest.dSYM |
7fbd9d09 | 6288 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
42feb3c0 WC |
6289 | conftest$ac_exeext conftest.$ac_ext |
6290 | LIBS=$ac_check_lib_save_LIBS | |
6291 | fi | |
27aba29a JS |
6292 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5 |
6293 | $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; } | |
6294 | if test "x$ac_cv_lib_sqlite3_sqlite3_open" = x""yes; then | |
9921a199 | 6295 | sqlite3_LIBS=-lsqlite3 |
42feb3c0 | 6296 | |
0d563e60 FCE |
6297 | |
6298 | cat >>confdefs.h <<\_ACEOF | |
07606685 DS |
6299 | #define HAVE_LIBSQLITE3 1 |
6300 | _ACEOF | |
6301 | ||
9921a199 DS |
6302 | else |
6303 | if test "x$enable_sqlite" != xcheck; then | |
27aba29a JS |
6304 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
6305 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6306 | { { $as_echo "$as_me:$LINENO: error: --enable-sqlite was given, but test for sqlite failed | |
9921a199 | 6307 | See \`config.log' for more details." >&5 |
27aba29a | 6308 | $as_echo "$as_me: error: --enable-sqlite was given, but test for sqlite failed |
9921a199 | 6309 | See \`config.log' for more details." >&2;} |
27aba29a | 6310 | { (exit 1); exit 1; }; }; } |
9921a199 | 6311 | fi |
42feb3c0 WC |
6312 | fi |
6313 | ||
9921a199 | 6314 | fi |
44f75386 | 6315 | |
e6c086bb | 6316 | |
7fbd9d09 | 6317 | # Check whether --enable-crash was given. |
564eb0a8 | 6318 | if test "${enable_crash+set}" = set; then |
7fbd9d09 | 6319 | enableval=$enable_crash; if test "$enable_crash" != "no"; then |
564eb0a8 DS |
6320 | save_CPPFLAGS="$CPPFLAGS" |
6321 | if test "$enable_crash" != "yes"; then | |
6322 | staplog_CPPFLAGS=-I$enable_crash | |
6323 | CPPFLAGS="${staplog_CPPFLAGS} $CPPFLAGS" | |
6324 | ||
6325 | fi | |
35a04c8e FCE |
6326 | |
6327 | for ac_header in crash/defs.h | |
6328 | do | |
27aba29a JS |
6329 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6330 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6331 | $as_echo_n "checking for $ac_header... " >&6; } | |
7fbd9d09 | 6332 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a | 6333 | $as_echo_n "(cached) " >&6 |
35a04c8e FCE |
6334 | else |
6335 | cat >conftest.$ac_ext <<_ACEOF | |
6336 | /* confdefs.h. */ | |
6337 | _ACEOF | |
6338 | cat confdefs.h >>conftest.$ac_ext | |
6339 | cat >>conftest.$ac_ext <<_ACEOF | |
6340 | /* end confdefs.h. */ | |
6341 | ||
6342 | #define NR_CPUS 256 | |
6343 | ||
6344 | ||
6345 | #include <$ac_header> | |
6346 | _ACEOF | |
6347 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
6348 | if { (ac_try="$ac_compile" |
6349 | case "(($ac_try" in | |
6350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6351 | *) ac_try_echo=$ac_try;; | |
6352 | esac | |
27aba29a JS |
6353 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6354 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 6355 | (eval "$ac_compile") 2>conftest.er1 |
35a04c8e FCE |
6356 | ac_status=$? |
6357 | grep -v '^ *+' conftest.er1 >conftest.err | |
6358 | rm -f conftest.er1 | |
6359 | cat conftest.err >&5 | |
27aba29a | 6360 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
6361 | (exit $ac_status); } && { |
6362 | test -z "$ac_c_werror_flag" || | |
6363 | test ! -s conftest.err | |
6364 | } && test -s conftest.$ac_objext; then | |
35a04c8e FCE |
6365 | eval "$as_ac_Header=yes" |
6366 | else | |
27aba29a | 6367 | $as_echo "$as_me: failed program was:" >&5 |
35a04c8e FCE |
6368 | sed 's/^/| /' conftest.$ac_ext >&5 |
6369 | ||
7fbd9d09 | 6370 | eval "$as_ac_Header=no" |
35a04c8e | 6371 | fi |
7fbd9d09 FCE |
6372 | |
6373 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
35a04c8e | 6374 | fi |
27aba29a JS |
6375 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
6376 | $as_echo "$as_val"'` | |
6377 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6378 | $as_echo "$ac_res" >&6; } | |
6379 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
6380 | $as_echo "$as_val"'` | |
6381 | if test "x$as_val" = x""yes; then | |
35a04c8e | 6382 | cat >>confdefs.h <<_ACEOF |
27aba29a | 6383 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
35a04c8e | 6384 | _ACEOF |
564eb0a8 | 6385 | |
35a04c8e | 6386 | else |
27aba29a JS |
6387 | { { $as_echo "$as_me:$LINENO: error: cannot find required crash header (crash-devel may need to be installed)" >&5 |
6388 | $as_echo "$as_me: error: cannot find required crash header (crash-devel may need to be installed)" >&2;} | |
564eb0a8 | 6389 | { (exit 1); exit 1; }; } |
35a04c8e FCE |
6390 | fi |
6391 | ||
6392 | done | |
6393 | ||
564eb0a8 DS |
6394 | CPPFLAGS="$save_CPPFLAGS" |
6395 | fi | |
6396 | else | |
6397 | enable_crash="no" | |
7fbd9d09 | 6398 | fi |
564eb0a8 | 6399 | |
7fbd9d09 | 6400 | if test "$enable_crash" != "no"; then |
35a04c8e FCE |
6401 | BUILD_CRASHMOD_TRUE= |
6402 | BUILD_CRASHMOD_FALSE='#' | |
6403 | else | |
6404 | BUILD_CRASHMOD_TRUE='#' | |
6405 | BUILD_CRASHMOD_FALSE= | |
6406 | fi | |
6407 | ||
6408 | ||
92aff3c7 | 6409 | building_docs="no" |
7fbd9d09 | 6410 | # Check whether --enable-docs was given. |
465e8fbf | 6411 | if test "${enable_docs+set}" = set; then |
7fbd9d09 | 6412 | enableval=$enable_docs; enable_docs=$enableval |
465e8fbf FCE |
6413 | else |
6414 | enable_docs="check" | |
7fbd9d09 FCE |
6415 | fi |
6416 | ||
465e8fbf FCE |
6417 | # Extract the first word of "latex", so it can be a program name with args. |
6418 | set dummy latex; ac_word=$2 | |
27aba29a JS |
6419 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6420 | $as_echo_n "checking for $ac_word... " >&6; } | |
465e8fbf | 6421 | if test "${ac_cv_prog_have_latex+set}" = set; then |
27aba29a | 6422 | $as_echo_n "(cached) " >&6 |
465e8fbf FCE |
6423 | else |
6424 | if test -n "$have_latex"; then | |
6425 | ac_cv_prog_have_latex="$have_latex" # Let the user override the test. | |
6426 | else | |
6427 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6428 | for as_dir in $PATH | |
6429 | do | |
6430 | IFS=$as_save_IFS | |
6431 | test -z "$as_dir" && as_dir=. | |
6432 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 6433 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
465e8fbf | 6434 | ac_cv_prog_have_latex="yes" |
27aba29a | 6435 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
465e8fbf FCE |
6436 | break 2 |
6437 | fi | |
6438 | done | |
6439 | done | |
7fbd9d09 | 6440 | IFS=$as_save_IFS |
465e8fbf FCE |
6441 | |
6442 | test -z "$ac_cv_prog_have_latex" && ac_cv_prog_have_latex="no" | |
6443 | fi | |
6444 | fi | |
6445 | have_latex=$ac_cv_prog_have_latex | |
6446 | if test -n "$have_latex"; then | |
27aba29a JS |
6447 | { $as_echo "$as_me:$LINENO: result: $have_latex" >&5 |
6448 | $as_echo "$have_latex" >&6; } | |
465e8fbf | 6449 | else |
27aba29a JS |
6450 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6451 | $as_echo "no" >&6; } | |
465e8fbf FCE |
6452 | fi |
6453 | ||
7fbd9d09 | 6454 | |
465e8fbf FCE |
6455 | # Extract the first word of "dvips", so it can be a program name with args. |
6456 | set dummy dvips; ac_word=$2 | |
27aba29a JS |
6457 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6458 | $as_echo_n "checking for $ac_word... " >&6; } | |
465e8fbf | 6459 | if test "${ac_cv_prog_have_dvips+set}" = set; then |
27aba29a | 6460 | $as_echo_n "(cached) " >&6 |
465e8fbf FCE |
6461 | else |
6462 | if test -n "$have_dvips"; then | |
6463 | ac_cv_prog_have_dvips="$have_dvips" # Let the user override the test. | |
6464 | else | |
6465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6466 | for as_dir in $PATH | |
6467 | do | |
6468 | IFS=$as_save_IFS | |
6469 | test -z "$as_dir" && as_dir=. | |
6470 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 6471 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
465e8fbf | 6472 | ac_cv_prog_have_dvips="yes" |
27aba29a | 6473 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
465e8fbf FCE |
6474 | break 2 |
6475 | fi | |
6476 | done | |
6477 | done | |
7fbd9d09 | 6478 | IFS=$as_save_IFS |
465e8fbf FCE |
6479 | |
6480 | test -z "$ac_cv_prog_have_dvips" && ac_cv_prog_have_dvips="no" | |
6481 | fi | |
6482 | fi | |
6483 | have_dvips=$ac_cv_prog_have_dvips | |
6484 | if test -n "$have_dvips"; then | |
27aba29a JS |
6485 | { $as_echo "$as_me:$LINENO: result: $have_dvips" >&5 |
6486 | $as_echo "$have_dvips" >&6; } | |
465e8fbf | 6487 | else |
27aba29a JS |
6488 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6489 | $as_echo "no" >&6; } | |
465e8fbf FCE |
6490 | fi |
6491 | ||
7fbd9d09 | 6492 | |
465e8fbf FCE |
6493 | # Extract the first word of "ps2pdf", so it can be a program name with args. |
6494 | set dummy ps2pdf; ac_word=$2 | |
27aba29a JS |
6495 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6496 | $as_echo_n "checking for $ac_word... " >&6; } | |
465e8fbf | 6497 | if test "${ac_cv_prog_have_ps2pdf+set}" = set; then |
27aba29a | 6498 | $as_echo_n "(cached) " >&6 |
465e8fbf FCE |
6499 | else |
6500 | if test -n "$have_ps2pdf"; then | |
6501 | ac_cv_prog_have_ps2pdf="$have_ps2pdf" # Let the user override the test. | |
6502 | else | |
6503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6504 | for as_dir in $PATH | |
6505 | do | |
6506 | IFS=$as_save_IFS | |
6507 | test -z "$as_dir" && as_dir=. | |
6508 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 6509 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
465e8fbf | 6510 | ac_cv_prog_have_ps2pdf="yes" |
27aba29a | 6511 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
465e8fbf FCE |
6512 | break 2 |
6513 | fi | |
6514 | done | |
6515 | done | |
7fbd9d09 | 6516 | IFS=$as_save_IFS |
465e8fbf FCE |
6517 | |
6518 | test -z "$ac_cv_prog_have_ps2pdf" && ac_cv_prog_have_ps2pdf="no" | |
6519 | fi | |
6520 | fi | |
6521 | have_ps2pdf=$ac_cv_prog_have_ps2pdf | |
6522 | if test -n "$have_ps2pdf"; then | |
27aba29a JS |
6523 | { $as_echo "$as_me:$LINENO: result: $have_ps2pdf" >&5 |
6524 | $as_echo "$have_ps2pdf" >&6; } | |
465e8fbf | 6525 | else |
27aba29a JS |
6526 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6527 | $as_echo "no" >&6; } | |
465e8fbf FCE |
6528 | fi |
6529 | ||
7fbd9d09 | 6530 | |
465e8fbf FCE |
6531 | # Extract the first word of "latex2html", so it can be a program name with args. |
6532 | set dummy latex2html; ac_word=$2 | |
27aba29a JS |
6533 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6534 | $as_echo_n "checking for $ac_word... " >&6; } | |
465e8fbf | 6535 | if test "${ac_cv_prog_have_latex2html+set}" = set; then |
27aba29a | 6536 | $as_echo_n "(cached) " >&6 |
465e8fbf FCE |
6537 | else |
6538 | if test -n "$have_latex2html"; then | |
6539 | ac_cv_prog_have_latex2html="$have_latex2html" # Let the user override the test. | |
6540 | else | |
6541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6542 | for as_dir in $PATH | |
6543 | do | |
6544 | IFS=$as_save_IFS | |
6545 | test -z "$as_dir" && as_dir=. | |
6546 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 6547 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
465e8fbf | 6548 | ac_cv_prog_have_latex2html="yes" |
27aba29a | 6549 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
465e8fbf FCE |
6550 | break 2 |
6551 | fi | |
6552 | done | |
6553 | done | |
7fbd9d09 | 6554 | IFS=$as_save_IFS |
465e8fbf FCE |
6555 | |
6556 | test -z "$ac_cv_prog_have_latex2html" && ac_cv_prog_have_latex2html="no" | |
6557 | fi | |
6558 | fi | |
6559 | have_latex2html=$ac_cv_prog_have_latex2html | |
6560 | if test -n "$have_latex2html"; then | |
27aba29a JS |
6561 | { $as_echo "$as_me:$LINENO: result: $have_latex2html" >&5 |
6562 | $as_echo "$have_latex2html" >&6; } | |
465e8fbf | 6563 | else |
27aba29a JS |
6564 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6565 | $as_echo "no" >&6; } | |
465e8fbf FCE |
6566 | fi |
6567 | ||
7fbd9d09 | 6568 | |
2d4b8ddf MW |
6569 | if test "x${have_latex}${have_dvips}${have_ps2pdf}${have_latex2html}" != "xyesyesyesyes"; then |
6570 | if test "$enable_docs" == "yes"; then | |
27aba29a JS |
6571 | { { $as_echo "$as_me:$LINENO: error: cannot find all tools for building documentation" >&5 |
6572 | $as_echo "$as_me: error: cannot find all tools for building documentation" >&2;} | |
465e8fbf FCE |
6573 | { (exit 1); exit 1; }; } |
6574 | fi | |
2d4b8ddf | 6575 | if test "$enable_docs" == "check"; then |
27aba29a JS |
6576 | { $as_echo "$as_me:$LINENO: WARNING: will not build documentation, cannot find all tools" >&5 |
6577 | $as_echo "$as_me: WARNING: will not build documentation, cannot find all tools" >&2;} | |
2d4b8ddf | 6578 | fi |
465e8fbf | 6579 | fi |
92aff3c7 WC |
6580 | if test "x${have_latex}${have_dvips}${have_ps2pdf}${have_latex2html}" == "xyesyesyesyes" -a "$enable_docs" != "no"; then |
6581 | building_docs="yes" | |
6582 | fi | |
7fbd9d09 | 6583 | if test "$building_docs" == "yes"; then |
465e8fbf FCE |
6584 | BUILD_DOCS_TRUE= |
6585 | BUILD_DOCS_FALSE='#' | |
6586 | else | |
6587 | BUILD_DOCS_TRUE='#' | |
6588 | BUILD_DOCS_FALSE= | |
6589 | fi | |
6590 | ||
6591 | ||
92aff3c7 | 6592 | building_refdocs="no" |
7fbd9d09 | 6593 | # Check whether --enable-refdocs was given. |
92aff3c7 | 6594 | if test "${enable_refdocs+set}" = set; then |
7fbd9d09 | 6595 | enableval=$enable_refdocs; enable_refdocs=$enableval |
92aff3c7 WC |
6596 | else |
6597 | enable_refdocs="check" | |
7fbd9d09 FCE |
6598 | fi |
6599 | ||
92aff3c7 | 6600 | if test "$building_docs" == "no" -a "$enable_refdocs" == "yes" ; then |
27aba29a JS |
6601 | { { $as_echo "$as_me:$LINENO: error: must use --enable-docs with --enable-refdocs" >&5 |
6602 | $as_echo "$as_me: error: must use --enable-docs with --enable-refdocs" >&2;} | |
92aff3c7 WC |
6603 | { (exit 1); exit 1; }; } |
6604 | fi | |
6605 | # Extract the first word of "xmlto", so it can be a program name with args. | |
6606 | set dummy xmlto; ac_word=$2 | |
27aba29a JS |
6607 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6608 | $as_echo_n "checking for $ac_word... " >&6; } | |
92aff3c7 | 6609 | if test "${ac_cv_prog_have_xmlto+set}" = set; then |
27aba29a | 6610 | $as_echo_n "(cached) " >&6 |
92aff3c7 WC |
6611 | else |
6612 | if test -n "$have_xmlto"; then | |
6613 | ac_cv_prog_have_xmlto="$have_xmlto" # Let the user override the test. | |
6614 | else | |
6615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6616 | for as_dir in $PATH | |
6617 | do | |
6618 | IFS=$as_save_IFS | |
6619 | test -z "$as_dir" && as_dir=. | |
6620 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 6621 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
92aff3c7 | 6622 | ac_cv_prog_have_xmlto="yes" |
27aba29a | 6623 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
92aff3c7 WC |
6624 | break 2 |
6625 | fi | |
6626 | done | |
6627 | done | |
7fbd9d09 | 6628 | IFS=$as_save_IFS |
92aff3c7 WC |
6629 | |
6630 | test -z "$ac_cv_prog_have_xmlto" && ac_cv_prog_have_xmlto="no" | |
6631 | fi | |
6632 | fi | |
6633 | have_xmlto=$ac_cv_prog_have_xmlto | |
6634 | if test -n "$have_xmlto"; then | |
27aba29a JS |
6635 | { $as_echo "$as_me:$LINENO: result: $have_xmlto" >&5 |
6636 | $as_echo "$have_xmlto" >&6; } | |
92aff3c7 | 6637 | else |
27aba29a JS |
6638 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6639 | $as_echo "no" >&6; } | |
92aff3c7 WC |
6640 | fi |
6641 | ||
7fbd9d09 | 6642 | |
aa5951be | 6643 | if test "x${have_xmlto}" == "xyes"; then |
27aba29a JS |
6644 | { $as_echo "$as_me:$LINENO: checking for xmlto pdf support" >&5 |
6645 | $as_echo_n "checking for xmlto pdf support... " >&6; } | |
aa5951be WC |
6646 | cat > conftest.$ac_ext << EOF |
6647 | <?xml version="1.0" encoding="UTF-8"?> | |
6648 | <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" | |
6649 | "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" > | |
6650 | <book id="pdffromxml"> | |
6651 | </book> | |
6652 | EOF | |
6653 | xmlto pdf conftest.$ac_ext >& /dev/null | |
6654 | if test $? == 0; then | |
6655 | have_xmlto_pdf="yes" | |
27aba29a JS |
6656 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
6657 | $as_echo "yes" >&6; } | |
aa5951be | 6658 | else |
27aba29a JS |
6659 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6660 | $as_echo "no" >&6; } | |
aa5951be WC |
6661 | fi |
6662 | fi | |
92aff3c7 | 6663 | if test "$enable_refdocs" == "yes"; then |
aa5951be | 6664 | if test "x${have_xmlto}${have_xmlto_pdf}" != "xyesyes"; then |
27aba29a JS |
6665 | { { $as_echo "$as_me:$LINENO: error: cannot find proper yxmlto for building reference documentation" >&5 |
6666 | $as_echo "$as_me: error: cannot find proper yxmlto for building reference documentation" >&2;} | |
92aff3c7 WC |
6667 | { (exit 1); exit 1; }; } |
6668 | fi | |
6669 | fi | |
aa5951be | 6670 | if test "x${have_xmlto}${have_xmlto_pdf}" == "xyesyes" -a "$enable_refdocs" != "no" -a "${building_docs}" == "yes"; then |
92aff3c7 WC |
6671 | building_refdocs="yes" |
6672 | fi | |
7fbd9d09 | 6673 | if test "$building_refdocs" == "yes"; then |
92aff3c7 WC |
6674 | BUILD_REFDOCS_TRUE= |
6675 | BUILD_REFDOCS_FALSE='#' | |
6676 | else | |
6677 | BUILD_REFDOCS_TRUE='#' | |
6678 | BUILD_REFDOCS_FALSE= | |
6679 | fi | |
6680 | ||
6681 | ||
7fbd9d09 | 6682 | # Check whether --enable-server was given. |
19a0d4b6 | 6683 | if test "${enable_server+set}" = set; then |
7fbd9d09 | 6684 | enableval=$enable_server; enable_server=$enableval |
19a0d4b6 MW |
6685 | else |
6686 | enable_server="check" | |
7fbd9d09 FCE |
6687 | fi |
6688 | ||
27aba29a JS |
6689 | { $as_echo "$as_me:$LINENO: checking for /usr/include/nss3" >&5 |
6690 | $as_echo_n "checking for /usr/include/nss3... " >&6; } | |
8ca54d60 | 6691 | if test "${ac_cv_file__usr_include_nss3+set}" = set; then |
27aba29a | 6692 | $as_echo_n "(cached) " >&6 |
43498922 | 6693 | else |
8ca54d60 | 6694 | test "$cross_compiling" = yes && |
27aba29a JS |
6695 | { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
6696 | $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | |
8ca54d60 EB |
6697 | { (exit 1); exit 1; }; } |
6698 | if test -r "/usr/include/nss3"; then | |
6699 | ac_cv_file__usr_include_nss3=yes | |
6700 | else | |
6701 | ac_cv_file__usr_include_nss3=no | |
43498922 | 6702 | fi |
8ca54d60 | 6703 | fi |
27aba29a JS |
6704 | { $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_nss3" >&5 |
6705 | $as_echo "$ac_cv_file__usr_include_nss3" >&6; } | |
6706 | if test "x$ac_cv_file__usr_include_nss3" = x""yes; then | |
8ca54d60 | 6707 | nssdir=nss3 |
43498922 | 6708 | else |
8ca54d60 | 6709 | |
27aba29a JS |
6710 | { $as_echo "$as_me:$LINENO: checking for /usr/include/nss" >&5 |
6711 | $as_echo_n "checking for /usr/include/nss... " >&6; } | |
8ca54d60 | 6712 | if test "${ac_cv_file__usr_include_nss+set}" = set; then |
27aba29a | 6713 | $as_echo_n "(cached) " >&6 |
8ca54d60 EB |
6714 | else |
6715 | test "$cross_compiling" = yes && | |
27aba29a JS |
6716 | { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
6717 | $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | |
8ca54d60 EB |
6718 | { (exit 1); exit 1; }; } |
6719 | if test -r "/usr/include/nss"; then | |
6720 | ac_cv_file__usr_include_nss=yes | |
6721 | else | |
6722 | ac_cv_file__usr_include_nss=no | |
6723 | fi | |
6724 | fi | |
27aba29a JS |
6725 | { $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_nss" >&5 |
6726 | $as_echo "$ac_cv_file__usr_include_nss" >&6; } | |
6727 | if test "x$ac_cv_file__usr_include_nss" = x""yes; then | |
8ca54d60 | 6728 | nssdir=nss |
43498922 DB |
6729 | fi |
6730 | ||
6731 | ||
6732 | fi | |
8ca54d60 | 6733 | |
27aba29a JS |
6734 | { $as_echo "$as_me:$LINENO: checking for /usr/include/nspr4" >&5 |
6735 | $as_echo_n "checking for /usr/include/nspr4... " >&6; } | |
8ca54d60 | 6736 | if test "${ac_cv_file__usr_include_nspr4+set}" = set; then |
27aba29a | 6737 | $as_echo_n "(cached) " >&6 |
43498922 | 6738 | else |
8ca54d60 | 6739 | test "$cross_compiling" = yes && |
27aba29a JS |
6740 | { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
6741 | $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | |
8ca54d60 EB |
6742 | { (exit 1); exit 1; }; } |
6743 | if test -r "/usr/include/nspr4"; then | |
6744 | ac_cv_file__usr_include_nspr4=yes | |
43498922 | 6745 | else |
8ca54d60 EB |
6746 | ac_cv_file__usr_include_nspr4=no |
6747 | fi | |
43498922 | 6748 | fi |
27aba29a JS |
6749 | { $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_nspr4" >&5 |
6750 | $as_echo "$ac_cv_file__usr_include_nspr4" >&6; } | |
6751 | if test "x$ac_cv_file__usr_include_nspr4" = x""yes; then | |
8ca54d60 EB |
6752 | nsprdir=nspr4 |
6753 | else | |
43498922 | 6754 | |
27aba29a JS |
6755 | { $as_echo "$as_me:$LINENO: checking for /usr/include/nspr" >&5 |
6756 | $as_echo_n "checking for /usr/include/nspr... " >&6; } | |
8ca54d60 | 6757 | if test "${ac_cv_file__usr_include_nspr+set}" = set; then |
27aba29a | 6758 | $as_echo_n "(cached) " >&6 |
43498922 | 6759 | else |
8ca54d60 | 6760 | test "$cross_compiling" = yes && |
27aba29a JS |
6761 | { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
6762 | $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | |
8ca54d60 EB |
6763 | { (exit 1); exit 1; }; } |
6764 | if test -r "/usr/include/nspr"; then | |
6765 | ac_cv_file__usr_include_nspr=yes | |
6766 | else | |
6767 | ac_cv_file__usr_include_nspr=no | |
43498922 | 6768 | fi |
43498922 | 6769 | fi |
27aba29a JS |
6770 | { $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_nspr" >&5 |
6771 | $as_echo "$ac_cv_file__usr_include_nspr" >&6; } | |
6772 | if test "x$ac_cv_file__usr_include_nspr" = x""yes; then | |
8ca54d60 EB |
6773 | nsprdir=nspr |
6774 | fi | |
6775 | ||
43498922 DB |
6776 | |
6777 | fi | |
6778 | ||
8ca54d60 EB |
6779 | if test "x$nssdir" != "x" -a "x$nsprdir" != "x"; then |
6780 | nss_CFLAGS="-I/usr/include/$nssdir" | |
6781 | nspr_CFLAGS="-I/usr/include/$nsprdir" | |
6782 | ||
6783 | ||
6784 | save_CPPFLAGS="$CPPFLAGS" | |
6785 | CPPFLAGS="$CFLAGS $nss_CFLAGS $nspr_CFLAGS" | |
6786 | ||
6787 | ||
6788 | ||
6789 | ||
6790 | ||
19a0d4b6 | 6791 | |
8ca54d60 EB |
6792 | |
6793 | for ac_header in "$nsprdir/nspr.h" "$nsprdir/plgetopt.h" "$nsprdir/prerror.h" "$nssdir/ssl.h" "$nssdir/nss.h" "$nssdir/pk11func.h" "$nssdir/secerr.h" | |
6794 | do | |
27aba29a | 6795 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7fbd9d09 | 6796 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a JS |
6797 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6798 | $as_echo_n "checking for $ac_header... " >&6; } | |
7fbd9d09 | 6799 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a | 6800 | $as_echo_n "(cached) " >&6 |
818ba2bc | 6801 | fi |
27aba29a JS |
6802 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
6803 | $as_echo "$as_val"'` | |
6804 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6805 | $as_echo "$ac_res" >&6; } | |
8ca54d60 EB |
6806 | else |
6807 | # Is the header compilable? | |
27aba29a JS |
6808 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6809 | $as_echo_n "checking $ac_header usability... " >&6; } | |
8ca54d60 EB |
6810 | cat >conftest.$ac_ext <<_ACEOF |
6811 | /* confdefs.h. */ | |
6812 | _ACEOF | |
6813 | cat confdefs.h >>conftest.$ac_ext | |
6814 | cat >>conftest.$ac_ext <<_ACEOF | |
6815 | /* end confdefs.h. */ | |
6816 | $ac_includes_default | |
6817 | #include <$ac_header> | |
6818 | _ACEOF | |
6819 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
6820 | if { (ac_try="$ac_compile" |
6821 | case "(($ac_try" in | |
6822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6823 | *) ac_try_echo=$ac_try;; | |
6824 | esac | |
27aba29a JS |
6825 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6826 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 6827 | (eval "$ac_compile") 2>conftest.er1 |
43498922 | 6828 | ac_status=$? |
8ca54d60 EB |
6829 | grep -v '^ *+' conftest.er1 >conftest.err |
6830 | rm -f conftest.er1 | |
6831 | cat conftest.err >&5 | |
27aba29a | 6832 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
6833 | (exit $ac_status); } && { |
6834 | test -z "$ac_c_werror_flag" || | |
6835 | test ! -s conftest.err | |
6836 | } && test -s conftest.$ac_objext; then | |
8ca54d60 | 6837 | ac_header_compiler=yes |
43498922 | 6838 | else |
27aba29a | 6839 | $as_echo "$as_me: failed program was:" >&5 |
8ca54d60 EB |
6840 | sed 's/^/| /' conftest.$ac_ext >&5 |
6841 | ||
7fbd9d09 | 6842 | ac_header_compiler=no |
43498922 | 6843 | fi |
7fbd9d09 FCE |
6844 | |
6845 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
27aba29a JS |
6846 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6847 | $as_echo "$ac_header_compiler" >&6; } | |
8ca54d60 EB |
6848 | |
6849 | # Is the header present? | |
27aba29a JS |
6850 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6851 | $as_echo_n "checking $ac_header presence... " >&6; } | |
8ca54d60 EB |
6852 | cat >conftest.$ac_ext <<_ACEOF |
6853 | /* confdefs.h. */ | |
6854 | _ACEOF | |
6855 | cat confdefs.h >>conftest.$ac_ext | |
6856 | cat >>conftest.$ac_ext <<_ACEOF | |
6857 | /* end confdefs.h. */ | |
6858 | #include <$ac_header> | |
6859 | _ACEOF | |
7fbd9d09 FCE |
6860 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6861 | case "(($ac_try" in | |
6862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6863 | *) ac_try_echo=$ac_try;; | |
6864 | esac | |
27aba29a JS |
6865 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6866 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 6867 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
43498922 | 6868 | ac_status=$? |
8ca54d60 EB |
6869 | grep -v '^ *+' conftest.er1 >conftest.err |
6870 | rm -f conftest.er1 | |
6871 | cat conftest.err >&5 | |
27aba29a | 6872 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
6873 | (exit $ac_status); } >/dev/null && { |
6874 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6875 | test ! -s conftest.err | |
6876 | }; then | |
8ca54d60 | 6877 | ac_header_preproc=yes |
43498922 | 6878 | else |
27aba29a | 6879 | $as_echo "$as_me: failed program was:" >&5 |
8ca54d60 | 6880 | sed 's/^/| /' conftest.$ac_ext >&5 |
43498922 | 6881 | |
8ca54d60 EB |
6882 | ac_header_preproc=no |
6883 | fi | |
7fbd9d09 | 6884 | |
8ca54d60 | 6885 | rm -f conftest.err conftest.$ac_ext |
27aba29a JS |
6886 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6887 | $as_echo "$ac_header_preproc" >&6; } | |
43498922 | 6888 | |
8ca54d60 EB |
6889 | # So? What about this header? |
6890 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6891 | yes:no: ) | |
27aba29a JS |
6892 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6893 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6894 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6895 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8ca54d60 EB |
6896 | ac_header_preproc=yes |
6897 | ;; | |
6898 | no:yes:* ) | |
27aba29a JS |
6899 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6900 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6901 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6902 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6903 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6904 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6905 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6906 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6907 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6908 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6909 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6910 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7fbd9d09 | 6911 | ( cat <<\_ASBOX |
8ca54d60 EB |
6912 | ## ------------------------------------------- ## |
6913 | ## Report this to systemtap@sources.redhat.com ## | |
6914 | ## ------------------------------------------- ## | |
6915 | _ASBOX | |
7fbd9d09 | 6916 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
8ca54d60 EB |
6917 | ;; |
6918 | esac | |
27aba29a JS |
6919 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6920 | $as_echo_n "checking for $ac_header... " >&6; } | |
7fbd9d09 | 6921 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a | 6922 | $as_echo_n "(cached) " >&6 |
43498922 | 6923 | else |
8ca54d60 | 6924 | eval "$as_ac_Header=\$ac_header_preproc" |
43498922 | 6925 | fi |
27aba29a JS |
6926 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
6927 | $as_echo "$as_val"'` | |
6928 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6929 | $as_echo "$ac_res" >&6; } | |
43498922 | 6930 | |
8ca54d60 | 6931 | fi |
27aba29a JS |
6932 | as_val=`eval 'as_val=${'$as_ac_Header'} |
6933 | $as_echo "$as_val"'` | |
6934 | if test "x$as_val" = x""yes; then | |
8ca54d60 | 6935 | cat >>confdefs.h <<_ACEOF |
27aba29a | 6936 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
8ca54d60 EB |
6937 | _ACEOF |
6938 | have_nss_includes=yes | |
43498922 | 6939 | else |
8ca54d60 | 6940 | have_nss_includes=no |
43498922 DB |
6941 | fi |
6942 | ||
8ca54d60 EB |
6943 | done |
6944 | ||
6945 | CPPFLAGS="$save_CPPFLAGS" | |
6946 | have_nss_libs=no | |
27aba29a JS |
6947 | { $as_echo "$as_me:$LINENO: checking for PR_Connect in -lnspr4" >&5 |
6948 | $as_echo_n "checking for PR_Connect in -lnspr4... " >&6; } | |
8ca54d60 | 6949 | if test "${ac_cv_lib_nspr4_PR_Connect+set}" = set; then |
27aba29a | 6950 | $as_echo_n "(cached) " >&6 |
8ca54d60 EB |
6951 | else |
6952 | ac_check_lib_save_LIBS=$LIBS | |
6953 | LIBS="-lnspr4 $LIBS" | |
6954 | cat >conftest.$ac_ext <<_ACEOF | |
6955 | /* confdefs.h. */ | |
6956 | _ACEOF | |
6957 | cat confdefs.h >>conftest.$ac_ext | |
6958 | cat >>conftest.$ac_ext <<_ACEOF | |
6959 | /* end confdefs.h. */ | |
19a0d4b6 | 6960 | |
7fbd9d09 FCE |
6961 | /* Override any GCC internal prototype to avoid an error. |
6962 | Use char because int might match the return type of a GCC | |
6963 | builtin and then its argument prototype would still apply. */ | |
8ca54d60 EB |
6964 | #ifdef __cplusplus |
6965 | extern "C" | |
6966 | #endif | |
6967 | char PR_Connect (); | |
6968 | int | |
6969 | main () | |
6970 | { | |
7fbd9d09 | 6971 | return PR_Connect (); |
8ca54d60 EB |
6972 | ; |
6973 | return 0; | |
6974 | } | |
6975 | _ACEOF | |
6976 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7fbd9d09 FCE |
6977 | if { (ac_try="$ac_link" |
6978 | case "(($ac_try" in | |
6979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6980 | *) ac_try_echo=$ac_try;; | |
6981 | esac | |
27aba29a JS |
6982 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6983 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 6984 | (eval "$ac_link") 2>conftest.er1 |
43498922 | 6985 | ac_status=$? |
8ca54d60 EB |
6986 | grep -v '^ *+' conftest.er1 >conftest.err |
6987 | rm -f conftest.er1 | |
6988 | cat conftest.err >&5 | |
27aba29a | 6989 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
6990 | (exit $ac_status); } && { |
6991 | test -z "$ac_c_werror_flag" || | |
6992 | test ! -s conftest.err | |
27aba29a JS |
6993 | } && test -s conftest$ac_exeext && { |
6994 | test "$cross_compiling" = yes || | |
6995 | $as_test_x conftest$ac_exeext | |
6996 | }; then | |
8ca54d60 | 6997 | ac_cv_lib_nspr4_PR_Connect=yes |
43498922 | 6998 | else |
27aba29a | 6999 | $as_echo "$as_me: failed program was:" >&5 |
8ca54d60 EB |
7000 | sed 's/^/| /' conftest.$ac_ext >&5 |
7001 | ||
7fbd9d09 | 7002 | ac_cv_lib_nspr4_PR_Connect=no |
43498922 | 7003 | fi |
7fbd9d09 | 7004 | |
27aba29a | 7005 | rm -rf conftest.dSYM |
7fbd9d09 | 7006 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8ca54d60 EB |
7007 | conftest$ac_exeext conftest.$ac_ext |
7008 | LIBS=$ac_check_lib_save_LIBS | |
43498922 | 7009 | fi |
27aba29a JS |
7010 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nspr4_PR_Connect" >&5 |
7011 | $as_echo "$ac_cv_lib_nspr4_PR_Connect" >&6; } | |
7012 | if test "x$ac_cv_lib_nspr4_PR_Connect" = x""yes; then | |
8ca54d60 | 7013 | |
27aba29a JS |
7014 | { $as_echo "$as_me:$LINENO: checking for SSL_ReHandshake in -lssl3" >&5 |
7015 | $as_echo_n "checking for SSL_ReHandshake in -lssl3... " >&6; } | |
8ca54d60 | 7016 | if test "${ac_cv_lib_ssl3_SSL_ReHandshake+set}" = set; then |
27aba29a | 7017 | $as_echo_n "(cached) " >&6 |
8ca54d60 EB |
7018 | else |
7019 | ac_check_lib_save_LIBS=$LIBS | |
7020 | LIBS="-lssl3 $LIBS" | |
7021 | cat >conftest.$ac_ext <<_ACEOF | |
7022 | /* confdefs.h. */ | |
7023 | _ACEOF | |
7024 | cat confdefs.h >>conftest.$ac_ext | |
7025 | cat >>conftest.$ac_ext <<_ACEOF | |
7026 | /* end confdefs.h. */ | |
7027 | ||
7fbd9d09 FCE |
7028 | /* Override any GCC internal prototype to avoid an error. |
7029 | Use char because int might match the return type of a GCC | |
7030 | builtin and then its argument prototype would still apply. */ | |
8ca54d60 EB |
7031 | #ifdef __cplusplus |
7032 | extern "C" | |
7033 | #endif | |
7034 | char SSL_ReHandshake (); | |
7035 | int | |
7036 | main () | |
7037 | { | |
7fbd9d09 | 7038 | return SSL_ReHandshake (); |
8ca54d60 EB |
7039 | ; |
7040 | return 0; | |
7041 | } | |
7042 | _ACEOF | |
7043 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7fbd9d09 FCE |
7044 | if { (ac_try="$ac_link" |
7045 | case "(($ac_try" in | |
7046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7047 | *) ac_try_echo=$ac_try;; | |
7048 | esac | |
27aba29a JS |
7049 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7050 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 7051 | (eval "$ac_link") 2>conftest.er1 |
43498922 | 7052 | ac_status=$? |
8ca54d60 EB |
7053 | grep -v '^ *+' conftest.er1 >conftest.err |
7054 | rm -f conftest.er1 | |
7055 | cat conftest.err >&5 | |
27aba29a | 7056 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
7057 | (exit $ac_status); } && { |
7058 | test -z "$ac_c_werror_flag" || | |
7059 | test ! -s conftest.err | |
27aba29a JS |
7060 | } && test -s conftest$ac_exeext && { |
7061 | test "$cross_compiling" = yes || | |
7062 | $as_test_x conftest$ac_exeext | |
7063 | }; then | |
8ca54d60 | 7064 | ac_cv_lib_ssl3_SSL_ReHandshake=yes |
43498922 | 7065 | else |
27aba29a | 7066 | $as_echo "$as_me: failed program was:" >&5 |
8ca54d60 | 7067 | sed 's/^/| /' conftest.$ac_ext >&5 |
43498922 | 7068 | |
7fbd9d09 | 7069 | ac_cv_lib_ssl3_SSL_ReHandshake=no |
8ca54d60 | 7070 | fi |
7fbd9d09 | 7071 | |
27aba29a | 7072 | rm -rf conftest.dSYM |
7fbd9d09 | 7073 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8ca54d60 EB |
7074 | conftest$ac_exeext conftest.$ac_ext |
7075 | LIBS=$ac_check_lib_save_LIBS | |
7076 | fi | |
27aba29a JS |
7077 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl3_SSL_ReHandshake" >&5 |
7078 | $as_echo "$ac_cv_lib_ssl3_SSL_ReHandshake" >&6; } | |
7079 | if test "x$ac_cv_lib_ssl3_SSL_ReHandshake" = x""yes; then | |
8ca54d60 EB |
7080 | have_nss_libs=yes |
7081 | fi | |
43498922 | 7082 | |
43498922 | 7083 | |
43498922 | 7084 | fi |
43498922 | 7085 | |
19a0d4b6 | 7086 | fi |
8ca54d60 | 7087 | if test "x${have_nss_includes}${have_nss_libs}" != "xyesyes"; then |
19a0d4b6 | 7088 | if test "$enable_server" == "yes"; then |
27aba29a JS |
7089 | { { $as_echo "$as_me:$LINENO: error: cannot find all libraries for stap-server" >&5 |
7090 | $as_echo "$as_me: error: cannot find all libraries for stap-server" >&2;} | |
19a0d4b6 MW |
7091 | { (exit 1); exit 1; }; } |
7092 | fi | |
7093 | if test "$enable_server" == "check"; then | |
27aba29a JS |
7094 | { $as_echo "$as_me:$LINENO: WARNING: will not build stap-server, cannot find all libraries" >&5 |
7095 | $as_echo "$as_me: WARNING: will not build stap-server, cannot find all libraries" >&2;} | |
19a0d4b6 MW |
7096 | fi |
7097 | fi | |
7fbd9d09 | 7098 | if test "x${have_nss_includes}${have_nss_libs}" == "xyesyes" -a "$enable_server" != "no"; then |
19a0d4b6 MW |
7099 | BUILD_SERVER_TRUE= |
7100 | BUILD_SERVER_FALSE='#' | |
7101 | else | |
7102 | BUILD_SERVER_TRUE='#' | |
7103 | BUILD_SERVER_FALSE= | |
43498922 DB |
7104 | fi |
7105 | ||
19a0d4b6 | 7106 | |
e8f3c2c2 DS |
7107 | build_elfutils=no |
7108 | ||
7fbd9d09 | 7109 | # Check whether --with-elfutils was given. |
e8f3c2c2 | 7110 | if test "${with_elfutils+set}" = set; then |
7fbd9d09 | 7111 | withval=$with_elfutils; |
e8f3c2c2 | 7112 | case "$with_elfutils" in |
27aba29a JS |
7113 | yes) { { $as_echo "$as_me:$LINENO: error: --with-elfutils requires an argument" >&5 |
7114 | $as_echo "$as_me: error: --with-elfutils requires an argument" >&2;} | |
e8f3c2c2 DS |
7115 | { (exit 1); exit 1; }; } ;; |
7116 | ''|no) ;; | |
7117 | *) build_elfutils=yes ;; | |
7118 | esac | |
7fbd9d09 | 7119 | fi |
e8f3c2c2 | 7120 | |
7fbd9d09 | 7121 | if test $build_elfutils = yes; then |
e8f3c2c2 DS |
7122 | BUILD_ELFUTILS_TRUE= |
7123 | BUILD_ELFUTILS_FALSE='#' | |
7124 | else | |
7125 | BUILD_ELFUTILS_TRUE='#' | |
7126 | BUILD_ELFUTILS_FALSE= | |
7127 | fi | |
7128 | ||
7129 | elfutils_abs_srcdir=`if test $build_elfutils = yes; then | |
7130 | cd $with_elfutils && pwd | |
7131 | fi | |
7132 | ` | |
7133 | ||
7134 | ||
9cb3a339 | 7135 | if test $build_elfutils = no; then |
8d4b1ab0 | 7136 | # Need libdwfl-capable recent elfutils http://elfutils.fedorahosted.org/ |
4d9087fc | 7137 | save_LIBS="$LIBS" |
4645fadb | 7138 | |
27aba29a JS |
7139 | { $as_echo "$as_me:$LINENO: checking for dwfl_module_getsym in -ldw" >&5 |
7140 | $as_echo_n "checking for dwfl_module_getsym in -ldw... " >&6; } | |
4645fadb | 7141 | if test "${ac_cv_lib_dw_dwfl_module_getsym+set}" = set; then |
27aba29a | 7142 | $as_echo_n "(cached) " >&6 |
4645fadb JS |
7143 | else |
7144 | ac_check_lib_save_LIBS=$LIBS | |
7145 | LIBS="-ldw -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf $LIBS" | |
7146 | cat >conftest.$ac_ext <<_ACEOF | |
7147 | /* confdefs.h. */ | |
7148 | _ACEOF | |
7149 | cat confdefs.h >>conftest.$ac_ext | |
7150 | cat >>conftest.$ac_ext <<_ACEOF | |
7151 | /* end confdefs.h. */ | |
7152 | ||
7fbd9d09 FCE |
7153 | /* Override any GCC internal prototype to avoid an error. |
7154 | Use char because int might match the return type of a GCC | |
7155 | builtin and then its argument prototype would still apply. */ | |
4645fadb JS |
7156 | #ifdef __cplusplus |
7157 | extern "C" | |
7158 | #endif | |
7159 | char dwfl_module_getsym (); | |
7160 | int | |
7161 | main () | |
7162 | { | |
7fbd9d09 | 7163 | return dwfl_module_getsym (); |
4645fadb JS |
7164 | ; |
7165 | return 0; | |
7166 | } | |
7167 | _ACEOF | |
7168 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7fbd9d09 FCE |
7169 | if { (ac_try="$ac_link" |
7170 | case "(($ac_try" in | |
7171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7172 | *) ac_try_echo=$ac_try;; | |
7173 | esac | |
27aba29a JS |
7174 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7175 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 7176 | (eval "$ac_link") 2>conftest.er1 |
4645fadb JS |
7177 | ac_status=$? |
7178 | grep -v '^ *+' conftest.er1 >conftest.err | |
7179 | rm -f conftest.er1 | |
7180 | cat conftest.err >&5 | |
27aba29a | 7181 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
7182 | (exit $ac_status); } && { |
7183 | test -z "$ac_c_werror_flag" || | |
7184 | test ! -s conftest.err | |
27aba29a JS |
7185 | } && test -s conftest$ac_exeext && { |
7186 | test "$cross_compiling" = yes || | |
7187 | $as_test_x conftest$ac_exeext | |
7188 | }; then | |
4645fadb JS |
7189 | ac_cv_lib_dw_dwfl_module_getsym=yes |
7190 | else | |
27aba29a | 7191 | $as_echo "$as_me: failed program was:" >&5 |
4645fadb JS |
7192 | sed 's/^/| /' conftest.$ac_ext >&5 |
7193 | ||
7fbd9d09 | 7194 | ac_cv_lib_dw_dwfl_module_getsym=no |
4645fadb | 7195 | fi |
7fbd9d09 | 7196 | |
27aba29a | 7197 | rm -rf conftest.dSYM |
7fbd9d09 | 7198 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4645fadb JS |
7199 | conftest$ac_exeext conftest.$ac_ext |
7200 | LIBS=$ac_check_lib_save_LIBS | |
7201 | fi | |
27aba29a JS |
7202 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dw_dwfl_module_getsym" >&5 |
7203 | $as_echo "$ac_cv_lib_dw_dwfl_module_getsym" >&6; } | |
7204 | if test "x$ac_cv_lib_dw_dwfl_module_getsym" = x""yes; then | |
4645fadb JS |
7205 | cat >>confdefs.h <<_ACEOF |
7206 | #define HAVE_LIBDW 1 | |
7207 | _ACEOF | |
7208 | ||
7209 | LIBS="-ldw $LIBS" | |
7210 | ||
7211 | else | |
7212 | ||
27aba29a JS |
7213 | { { $as_echo "$as_me:$LINENO: error: missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" >&5 |
7214 | $as_echo "$as_me: error: missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" >&2;} | |
4645fadb JS |
7215 | { (exit 1); exit 1; }; } |
7216 | fi | |
7217 | ||
87cb1275 | 7218 | |
27aba29a JS |
7219 | { $as_echo "$as_me:$LINENO: checking for dwarf_getelf in -ldw" >&5 |
7220 | $as_echo_n "checking for dwarf_getelf in -ldw... " >&6; } | |
87cb1275 | 7221 | if test "${ac_cv_lib_dw_dwarf_getelf+set}" = set; then |
27aba29a | 7222 | $as_echo_n "(cached) " >&6 |
87cb1275 MW |
7223 | else |
7224 | ac_check_lib_save_LIBS=$LIBS | |
7225 | LIBS="-ldw -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf $LIBS" | |
7226 | cat >conftest.$ac_ext <<_ACEOF | |
7227 | /* confdefs.h. */ | |
7228 | _ACEOF | |
7229 | cat confdefs.h >>conftest.$ac_ext | |
7230 | cat >>conftest.$ac_ext <<_ACEOF | |
7231 | /* end confdefs.h. */ | |
7232 | ||
7fbd9d09 FCE |
7233 | /* Override any GCC internal prototype to avoid an error. |
7234 | Use char because int might match the return type of a GCC | |
7235 | builtin and then its argument prototype would still apply. */ | |
87cb1275 MW |
7236 | #ifdef __cplusplus |
7237 | extern "C" | |
7238 | #endif | |
7239 | char dwarf_getelf (); | |
7240 | int | |
7241 | main () | |
7242 | { | |
7fbd9d09 | 7243 | return dwarf_getelf (); |
87cb1275 MW |
7244 | ; |
7245 | return 0; | |
7246 | } | |
7247 | _ACEOF | |
7248 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7fbd9d09 FCE |
7249 | if { (ac_try="$ac_link" |
7250 | case "(($ac_try" in | |
7251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7252 | *) ac_try_echo=$ac_try;; | |
7253 | esac | |
27aba29a JS |
7254 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7255 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 7256 | (eval "$ac_link") 2>conftest.er1 |
87cb1275 MW |
7257 | ac_status=$? |
7258 | grep -v '^ *+' conftest.er1 >conftest.err | |
7259 | rm -f conftest.er1 | |
7260 | cat conftest.err >&5 | |
27aba29a | 7261 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
7262 | (exit $ac_status); } && { |
7263 | test -z "$ac_c_werror_flag" || | |
7264 | test ! -s conftest.err | |
27aba29a JS |
7265 | } && test -s conftest$ac_exeext && { |
7266 | test "$cross_compiling" = yes || | |
7267 | $as_test_x conftest$ac_exeext | |
7268 | }; then | |
87cb1275 MW |
7269 | ac_cv_lib_dw_dwarf_getelf=yes |
7270 | else | |
27aba29a | 7271 | $as_echo "$as_me: failed program was:" >&5 |
87cb1275 MW |
7272 | sed 's/^/| /' conftest.$ac_ext >&5 |
7273 | ||
7fbd9d09 | 7274 | ac_cv_lib_dw_dwarf_getelf=no |
87cb1275 | 7275 | fi |
7fbd9d09 | 7276 | |
27aba29a | 7277 | rm -rf conftest.dSYM |
7fbd9d09 | 7278 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
87cb1275 MW |
7279 | conftest$ac_exeext conftest.$ac_ext |
7280 | LIBS=$ac_check_lib_save_LIBS | |
7281 | fi | |
27aba29a JS |
7282 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dw_dwarf_getelf" >&5 |
7283 | $as_echo "$ac_cv_lib_dw_dwarf_getelf" >&6; } | |
7284 | if test "x$ac_cv_lib_dw_dwarf_getelf" = x""yes; then | |
87cb1275 MW |
7285 | cat >>confdefs.h <<_ACEOF |
7286 | #define HAVE_LIBDW 1 | |
7287 | _ACEOF | |
7288 | ||
7289 | LIBS="-ldw $LIBS" | |
7290 | ||
7291 | else | |
7292 | ||
27aba29a JS |
7293 | { { $as_echo "$as_me:$LINENO: error: elfutils, libdw too old, need 0.126+" >&5 |
7294 | $as_echo "$as_me: error: elfutils, libdw too old, need 0.126+" >&2;} | |
87cb1275 MW |
7295 | { (exit 1); exit 1; }; } |
7296 | fi | |
7297 | ||
cfa2ca3c | 7298 | stap_LIBS="-Wl,--start-group -ldw -lebl -Wl,--end-group -lelf" |
e8f3c2c2 | 7299 | LIBS="$save_LIBS" |
4d9087fc RM |
7300 | else |
7301 | # We built our own and stap_LDFLAGS points at the install. | |
4645fadb JS |
7302 | stap_LIBS="-Wl,--start-group -ldw -lebl -Wl,--end-group -lelf" |
7303 | fi | |
7304 | ||
6b1a0274 | 7305 | |
27aba29a JS |
7306 | { $as_echo "$as_me:$LINENO: stap will link $stap_LIBS" >&5 |
7307 | $as_echo "$as_me: stap will link $stap_LIBS" >&6;} | |
c3a3c0c9 | 7308 | |
69c68955 FCE |
7309 | date=`date +%Y-%m-%d` |
7310 | ||
7311 | cat >>confdefs.h <<_ACEOF | |
7312 | #define DATE "$date" | |
7313 | _ACEOF | |
7314 | ||
82fab474 | 7315 | DATE="$date" |
69c68955 FCE |
7316 | |
7317 | ||
10b20266 FCE |
7318 | |
7319 | # This procflags business is for staprun/stapio, which need to | |
7320 | # be compiled with the same bitness as the kernel. On e.g. PPC, | |
7321 | # userspace might be 32-bit default, but staprun needs to be | |
7322 | # 64-bit. See also bug #4037. | |
7323 | ||
5566993b MH |
7324 | processor=`uname -p` |
7325 | case "$processor" in | |
c1536577 | 7326 | ppc64) PROCFLAGS=-m64 ;; |
5566993b MH |
7327 | x86_64) PROCFLAGS=-m64 ;; |
7328 | *) PROCFLAGS="" | |
7329 | esac | |
7330 | ||
7331 | ||
3bf6ac45 | 7332 | # Use tr1/unordered_map if available |
7fbd9d09 | 7333 | ac_ext=cpp |
3bf6ac45 TM |
7334 | ac_cpp='$CXXCPP $CPPFLAGS' |
7335 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7336 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7337 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7338 | ||
7339 | ||
7fbd9d09 | 7340 | ac_ext=cpp |
3bf6ac45 TM |
7341 | ac_cpp='$CXXCPP $CPPFLAGS' |
7342 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7343 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7344 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
27aba29a JS |
7345 | { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
7346 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
3bf6ac45 TM |
7347 | if test -z "$CXXCPP"; then |
7348 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
27aba29a | 7349 | $as_echo_n "(cached) " >&6 |
3bf6ac45 TM |
7350 | else |
7351 | # Double quotes because CXXCPP needs to be expanded | |
7352 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
7353 | do | |
7354 | ac_preproc_ok=false | |
7355 | for ac_cxx_preproc_warn_flag in '' yes | |
7356 | do | |
7357 | # Use a header file that comes with gcc, so configuring glibc | |
7358 | # with a fresh cross-compiler works. | |
7359 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7360 | # <limits.h> exists even on freestanding compilers. | |
7361 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7362 | # not just through cpp. "Syntax error" is here to catch this case. | |
7363 | cat >conftest.$ac_ext <<_ACEOF | |
7364 | /* confdefs.h. */ | |
7365 | _ACEOF | |
7366 | cat confdefs.h >>conftest.$ac_ext | |
7367 | cat >>conftest.$ac_ext <<_ACEOF | |
7368 | /* end confdefs.h. */ | |
7369 | #ifdef __STDC__ | |
7370 | # include <limits.h> | |
7371 | #else | |
7372 | # include <assert.h> | |
7373 | #endif | |
7374 | Syntax error | |
7375 | _ACEOF | |
7fbd9d09 FCE |
7376 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7377 | case "(($ac_try" in | |
7378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7379 | *) ac_try_echo=$ac_try;; | |
7380 | esac | |
27aba29a JS |
7381 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7382 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 7383 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3bf6ac45 TM |
7384 | ac_status=$? |
7385 | grep -v '^ *+' conftest.er1 >conftest.err | |
7386 | rm -f conftest.er1 | |
7387 | cat conftest.err >&5 | |
27aba29a | 7388 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
7389 | (exit $ac_status); } >/dev/null && { |
7390 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
7391 | test ! -s conftest.err | |
7392 | }; then | |
3bf6ac45 TM |
7393 | : |
7394 | else | |
27aba29a | 7395 | $as_echo "$as_me: failed program was:" >&5 |
3bf6ac45 TM |
7396 | sed 's/^/| /' conftest.$ac_ext >&5 |
7397 | ||
7398 | # Broken: fails on valid input. | |
7399 | continue | |
7400 | fi | |
7fbd9d09 | 7401 | |
3bf6ac45 TM |
7402 | rm -f conftest.err conftest.$ac_ext |
7403 | ||
7fbd9d09 | 7404 | # OK, works on sane cases. Now check whether nonexistent headers |
3bf6ac45 TM |
7405 | # can be detected and how. |
7406 | cat >conftest.$ac_ext <<_ACEOF | |
7407 | /* confdefs.h. */ | |
7408 | _ACEOF | |
7409 | cat confdefs.h >>conftest.$ac_ext | |
7410 | cat >>conftest.$ac_ext <<_ACEOF | |
7411 | /* end confdefs.h. */ | |
7412 | #include <ac_nonexistent.h> | |
7413 | _ACEOF | |
7fbd9d09 FCE |
7414 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7415 | case "(($ac_try" in | |
7416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7417 | *) ac_try_echo=$ac_try;; | |
7418 | esac | |
27aba29a JS |
7419 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7420 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 7421 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3bf6ac45 TM |
7422 | ac_status=$? |
7423 | grep -v '^ *+' conftest.er1 >conftest.err | |
7424 | rm -f conftest.er1 | |
7425 | cat conftest.err >&5 | |
27aba29a | 7426 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
7427 | (exit $ac_status); } >/dev/null && { |
7428 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
7429 | test ! -s conftest.err | |
7430 | }; then | |
3bf6ac45 TM |
7431 | # Broken: success on invalid input. |
7432 | continue | |
7433 | else | |
27aba29a | 7434 | $as_echo "$as_me: failed program was:" >&5 |
3bf6ac45 TM |
7435 | sed 's/^/| /' conftest.$ac_ext >&5 |
7436 | ||
7437 | # Passes both tests. | |
7438 | ac_preproc_ok=: | |
7439 | break | |
7440 | fi | |
7fbd9d09 | 7441 | |
3bf6ac45 TM |
7442 | rm -f conftest.err conftest.$ac_ext |
7443 | ||
7444 | done | |
7445 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7446 | rm -f conftest.err conftest.$ac_ext | |
7447 | if $ac_preproc_ok; then | |
7448 | break | |
7449 | fi | |
7450 | ||
7451 | done | |
7452 | ac_cv_prog_CXXCPP=$CXXCPP | |
7453 | ||
7454 | fi | |
7455 | CXXCPP=$ac_cv_prog_CXXCPP | |
7456 | else | |
7457 | ac_cv_prog_CXXCPP=$CXXCPP | |
7458 | fi | |
27aba29a JS |
7459 | { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
7460 | $as_echo "$CXXCPP" >&6; } | |
3bf6ac45 TM |
7461 | ac_preproc_ok=false |
7462 | for ac_cxx_preproc_warn_flag in '' yes | |
7463 | do | |
7464 | # Use a header file that comes with gcc, so configuring glibc | |
7465 | # with a fresh cross-compiler works. | |
7466 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7467 | # <limits.h> exists even on freestanding compilers. | |
7468 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7469 | # not just through cpp. "Syntax error" is here to catch this case. | |
7470 | cat >conftest.$ac_ext <<_ACEOF | |
7471 | /* confdefs.h. */ | |
7472 | _ACEOF | |
7473 | cat confdefs.h >>conftest.$ac_ext | |
7474 | cat >>conftest.$ac_ext <<_ACEOF | |
7475 | /* end confdefs.h. */ | |
7476 | #ifdef __STDC__ | |
7477 | # include <limits.h> | |
7478 | #else | |
7479 | # include <assert.h> | |
7480 | #endif | |
7481 | Syntax error | |
7482 | _ACEOF | |
7fbd9d09 FCE |
7483 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7484 | case "(($ac_try" in | |
7485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7486 | *) ac_try_echo=$ac_try;; | |
7487 | esac | |
27aba29a JS |
7488 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7489 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 7490 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3bf6ac45 TM |
7491 | ac_status=$? |
7492 | grep -v '^ *+' conftest.er1 >conftest.err | |
7493 | rm -f conftest.er1 | |
7494 | cat conftest.err >&5 | |
27aba29a | 7495 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
7496 | (exit $ac_status); } >/dev/null && { |
7497 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
7498 | test ! -s conftest.err | |
7499 | }; then | |
3bf6ac45 TM |
7500 | : |
7501 | else | |
27aba29a | 7502 | $as_echo "$as_me: failed program was:" >&5 |
3bf6ac45 TM |
7503 | sed 's/^/| /' conftest.$ac_ext >&5 |
7504 | ||
7505 | # Broken: fails on valid input. | |
7506 | continue | |
7507 | fi | |
7fbd9d09 | 7508 | |
3bf6ac45 TM |
7509 | rm -f conftest.err conftest.$ac_ext |
7510 | ||
7fbd9d09 | 7511 | # OK, works on sane cases. Now check whether nonexistent headers |
3bf6ac45 TM |
7512 | # can be detected and how. |
7513 | cat >conftest.$ac_ext <<_ACEOF | |
7514 | /* confdefs.h. */ | |
7515 | _ACEOF | |
7516 | cat confdefs.h >>conftest.$ac_ext | |
7517 | cat >>conftest.$ac_ext <<_ACEOF | |
7518 | /* end confdefs.h. */ | |
7519 | #include <ac_nonexistent.h> | |
7520 | _ACEOF | |
7fbd9d09 FCE |
7521 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7522 | case "(($ac_try" in | |
7523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7524 | *) ac_try_echo=$ac_try;; | |
7525 | esac | |
27aba29a JS |
7526 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7527 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 7528 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3bf6ac45 TM |
7529 | ac_status=$? |
7530 | grep -v '^ *+' conftest.er1 >conftest.err | |
7531 | rm -f conftest.er1 | |
7532 | cat conftest.err >&5 | |
27aba29a | 7533 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
7534 | (exit $ac_status); } >/dev/null && { |
7535 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
7536 | test ! -s conftest.err | |
7537 | }; then | |
3bf6ac45 TM |
7538 | # Broken: success on invalid input. |
7539 | continue | |
7540 | else | |
27aba29a | 7541 | $as_echo "$as_me: failed program was:" >&5 |
3bf6ac45 TM |
7542 | sed 's/^/| /' conftest.$ac_ext >&5 |
7543 | ||
7544 | # Passes both tests. | |
7545 | ac_preproc_ok=: | |
7546 | break | |
7547 | fi | |
7fbd9d09 | 7548 | |
3bf6ac45 TM |
7549 | rm -f conftest.err conftest.$ac_ext |
7550 | ||
7551 | done | |
7552 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7553 | rm -f conftest.err conftest.$ac_ext | |
7554 | if $ac_preproc_ok; then | |
7555 | : | |
7556 | else | |
27aba29a JS |
7557 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
7558 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
7559 | { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
3bf6ac45 | 7560 | See \`config.log' for more details." >&5 |
27aba29a | 7561 | $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
3bf6ac45 | 7562 | See \`config.log' for more details." >&2;} |
27aba29a | 7563 | { (exit 1); exit 1; }; }; } |
3bf6ac45 TM |
7564 | fi |
7565 | ||
7fbd9d09 | 7566 | ac_ext=cpp |
3bf6ac45 TM |
7567 | ac_cpp='$CXXCPP $CPPFLAGS' |
7568 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7569 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7570 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7571 | ||
7572 | ||
7573 | ||
7574 | for ac_header in tr1/unordered_map | |
7575 | do | |
27aba29a | 7576 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7fbd9d09 | 7577 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a JS |
7578 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7579 | $as_echo_n "checking for $ac_header... " >&6; } | |
7fbd9d09 | 7580 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a | 7581 | $as_echo_n "(cached) " >&6 |
818ba2bc | 7582 | fi |
27aba29a JS |
7583 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7584 | $as_echo "$as_val"'` | |
7585 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7586 | $as_echo "$ac_res" >&6; } | |
3bf6ac45 TM |
7587 | else |
7588 | # Is the header compilable? | |
27aba29a JS |
7589 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7590 | $as_echo_n "checking $ac_header usability... " >&6; } | |
3bf6ac45 TM |
7591 | cat >conftest.$ac_ext <<_ACEOF |
7592 | /* confdefs.h. */ | |
7593 | _ACEOF | |
7594 | cat confdefs.h >>conftest.$ac_ext | |
7595 | cat >>conftest.$ac_ext <<_ACEOF | |
7596 | /* end confdefs.h. */ | |
7597 | $ac_includes_default | |
7598 | #include <$ac_header> | |
7599 | _ACEOF | |
7600 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
7601 | if { (ac_try="$ac_compile" |
7602 | case "(($ac_try" in | |
7603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7604 | *) ac_try_echo=$ac_try;; | |
7605 | esac | |
27aba29a JS |
7606 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7607 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 7608 | (eval "$ac_compile") 2>conftest.er1 |
3bf6ac45 TM |
7609 | ac_status=$? |
7610 | grep -v '^ *+' conftest.er1 >conftest.err | |
7611 | rm -f conftest.er1 | |
7612 | cat conftest.err >&5 | |
27aba29a | 7613 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
7614 | (exit $ac_status); } && { |
7615 | test -z "$ac_cxx_werror_flag" || | |
7616 | test ! -s conftest.err | |
7617 | } && test -s conftest.$ac_objext; then | |
3bf6ac45 TM |
7618 | ac_header_compiler=yes |
7619 | else | |
27aba29a | 7620 | $as_echo "$as_me: failed program was:" >&5 |
3bf6ac45 TM |
7621 | sed 's/^/| /' conftest.$ac_ext >&5 |
7622 | ||
7fbd9d09 | 7623 | ac_header_compiler=no |
3bf6ac45 | 7624 | fi |
7fbd9d09 FCE |
7625 | |
7626 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
27aba29a JS |
7627 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7628 | $as_echo "$ac_header_compiler" >&6; } | |
3bf6ac45 TM |
7629 | |
7630 | # Is the header present? | |
27aba29a JS |
7631 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7632 | $as_echo_n "checking $ac_header presence... " >&6; } | |
3bf6ac45 TM |
7633 | cat >conftest.$ac_ext <<_ACEOF |
7634 | /* confdefs.h. */ | |
7635 | _ACEOF | |
7636 | cat confdefs.h >>conftest.$ac_ext | |
7637 | cat >>conftest.$ac_ext <<_ACEOF | |
7638 | /* end confdefs.h. */ | |
7639 | #include <$ac_header> | |
7640 | _ACEOF | |
7fbd9d09 FCE |
7641 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7642 | case "(($ac_try" in | |
7643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7644 | *) ac_try_echo=$ac_try;; | |
7645 | esac | |
27aba29a JS |
7646 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7647 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 7648 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3bf6ac45 TM |
7649 | ac_status=$? |
7650 | grep -v '^ *+' conftest.er1 >conftest.err | |
7651 | rm -f conftest.er1 | |
7652 | cat conftest.err >&5 | |
27aba29a | 7653 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
7654 | (exit $ac_status); } >/dev/null && { |
7655 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
7656 | test ! -s conftest.err | |
7657 | }; then | |
3bf6ac45 TM |
7658 | ac_header_preproc=yes |
7659 | else | |
27aba29a | 7660 | $as_echo "$as_me: failed program was:" >&5 |
3bf6ac45 TM |
7661 | sed 's/^/| /' conftest.$ac_ext >&5 |
7662 | ||
7663 | ac_header_preproc=no | |
7664 | fi | |
7fbd9d09 | 7665 | |
3bf6ac45 | 7666 | rm -f conftest.err conftest.$ac_ext |
27aba29a JS |
7667 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7668 | $as_echo "$ac_header_preproc" >&6; } | |
3bf6ac45 TM |
7669 | |
7670 | # So? What about this header? | |
7671 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in | |
7672 | yes:no: ) | |
27aba29a JS |
7673 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7674 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7675 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7676 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3bf6ac45 TM |
7677 | ac_header_preproc=yes |
7678 | ;; | |
7679 | no:yes:* ) | |
27aba29a JS |
7680 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7681 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7682 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7683 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7684 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7685 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7686 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7687 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7688 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7689 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7690 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7691 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7fbd9d09 | 7692 | ( cat <<\_ASBOX |
3bf6ac45 TM |
7693 | ## ------------------------------------------- ## |
7694 | ## Report this to systemtap@sources.redhat.com ## | |
7695 | ## ------------------------------------------- ## | |
7696 | _ASBOX | |
7fbd9d09 | 7697 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
3bf6ac45 TM |
7698 | ;; |
7699 | esac | |
27aba29a JS |
7700 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7701 | $as_echo_n "checking for $ac_header... " >&6; } | |
7fbd9d09 | 7702 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a | 7703 | $as_echo_n "(cached) " >&6 |
3bf6ac45 TM |
7704 | else |
7705 | eval "$as_ac_Header=\$ac_header_preproc" | |
7706 | fi | |
27aba29a JS |
7707 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7708 | $as_echo "$as_val"'` | |
7709 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7710 | $as_echo "$ac_res" >&6; } | |
3bf6ac45 TM |
7711 | |
7712 | fi | |
27aba29a JS |
7713 | as_val=`eval 'as_val=${'$as_ac_Header'} |
7714 | $as_echo "$as_val"'` | |
7715 | if test "x$as_val" = x""yes; then | |
3bf6ac45 | 7716 | cat >>confdefs.h <<_ACEOF |
27aba29a | 7717 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
3bf6ac45 TM |
7718 | _ACEOF |
7719 | ||
7720 | fi | |
7721 | ||
7722 | done | |
7723 | ||
7724 | ac_ext=c | |
7725 | ac_cpp='$CPP $CPPFLAGS' | |
7726 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7727 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7728 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7729 | ||
7730 | ||
e016a49a FCE |
7731 | |
7732 | if test $build_elfutils = yes; then | |
7733 | case "$with_elfutils" in | |
7734 | /*) elfutils_srcdir="$with_elfutils" ;; | |
7735 | *) elfutils_srcdir="../$with_elfutils" ;; | |
7736 | esac | |
27aba29a JS |
7737 | { $as_echo "$as_me:$LINENO: running ${elfutils_srcdir}/configure" >&5 |
7738 | $as_echo "$as_me: running ${elfutils_srcdir}/configure" >&6;} | |
e016a49a FCE |
7739 | # Our libdw.so's libebl will look in $ORIGIN/../lib/... but that |
7740 | # $ORIGIN is where libdw.so resides, which is not where there is a ../lib. | |
7741 | # Note that $libdir might be using a quoted use of $exec_prefix or $prefix. | |
7742 | # So we must make sure to pass those settings to elfutils configure. | |
7743 | elfutils_rpath="-Wl,--enable-new-dtags,-rpath,${libdir}/${PACKAGE_NAME}" | |
7744 | here=`pwd` | |
7745 | (mkdir -p build-elfutils && cd build-elfutils && | |
7746 | ${elfutils_srcdir}/configure --enable-libebl-subdir=${PACKAGE_NAME} \ | |
7747 | --includedir="${here}/include-elfutils" \ | |
7748 | --libdir="${here}/lib-elfutils" \ | |
7749 | --exec-prefix="$exec_prefix" \ | |
7750 | --prefix="$prefix" \ | |
7751 | CFLAGS="${CFLAGS/-Wall/}" \ | |
7752 | LDFLAGS="$LDFLAGS $elfutils_rpath" && | |
e3633556 MW |
7753 | if test -f ${elfutils_srcdir}/config/version.h.in; then |
7754 | echo Trying to install elfutils version header... | |
7755 | make install-pkgincludeHEADERS | |
7756 | fi | |
7757 | # so that elfutils/version.h - available from 0.138 - may be found. | |
93f86457 | 7758 | # Don't use install-data because that will fail (installing in $prefix). |
e016a49a | 7759 | ) |
93f86457 | 7760 | if test $? != 0; then exit; fi |
1c4cf93d MW |
7761 | save_CPPFLAGS=${CPPFLAGS} |
7762 | CPPFLAGS="${CPPFLAGS} -Iinclude-elfutils" # in case bundled elfutils | |
7763 | ||
7764 | for ac_header in elfutils/version.h | |
7765 | do | |
27aba29a | 7766 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7fbd9d09 | 7767 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a JS |
7768 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7769 | $as_echo_n "checking for $ac_header... " >&6; } | |
7fbd9d09 | 7770 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a | 7771 | $as_echo_n "(cached) " >&6 |
818ba2bc | 7772 | fi |
27aba29a JS |
7773 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7774 | $as_echo "$as_val"'` | |
7775 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7776 | $as_echo "$ac_res" >&6; } | |
1c4cf93d MW |
7777 | else |
7778 | # Is the header compilable? | |
27aba29a JS |
7779 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7780 | $as_echo_n "checking $ac_header usability... " >&6; } | |
1c4cf93d MW |
7781 | cat >conftest.$ac_ext <<_ACEOF |
7782 | /* confdefs.h. */ | |
7783 | _ACEOF | |
7784 | cat confdefs.h >>conftest.$ac_ext | |
7785 | cat >>conftest.$ac_ext <<_ACEOF | |
7786 | /* end confdefs.h. */ | |
7787 | $ac_includes_default | |
7788 | #include <$ac_header> | |
7789 | _ACEOF | |
7790 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
7791 | if { (ac_try="$ac_compile" |
7792 | case "(($ac_try" in | |
7793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7794 | *) ac_try_echo=$ac_try;; | |
7795 | esac | |
27aba29a JS |
7796 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7797 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 7798 | (eval "$ac_compile") 2>conftest.er1 |
1c4cf93d MW |
7799 | ac_status=$? |
7800 | grep -v '^ *+' conftest.er1 >conftest.err | |
7801 | rm -f conftest.er1 | |
7802 | cat conftest.err >&5 | |
27aba29a | 7803 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
7804 | (exit $ac_status); } && { |
7805 | test -z "$ac_c_werror_flag" || | |
7806 | test ! -s conftest.err | |
7807 | } && test -s conftest.$ac_objext; then | |
1c4cf93d MW |
7808 | ac_header_compiler=yes |
7809 | else | |
27aba29a | 7810 | $as_echo "$as_me: failed program was:" >&5 |
1c4cf93d MW |
7811 | sed 's/^/| /' conftest.$ac_ext >&5 |
7812 | ||
7fbd9d09 | 7813 | ac_header_compiler=no |
e016a49a | 7814 | fi |
7fbd9d09 FCE |
7815 | |
7816 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
27aba29a JS |
7817 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7818 | $as_echo "$ac_header_compiler" >&6; } | |
1c4cf93d MW |
7819 | |
7820 | # Is the header present? | |
27aba29a JS |
7821 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7822 | $as_echo_n "checking $ac_header presence... " >&6; } | |
1c4cf93d MW |
7823 | cat >conftest.$ac_ext <<_ACEOF |
7824 | /* confdefs.h. */ | |
7825 | _ACEOF | |
7826 | cat confdefs.h >>conftest.$ac_ext | |
7827 | cat >>conftest.$ac_ext <<_ACEOF | |
7828 | /* end confdefs.h. */ | |
7829 | #include <$ac_header> | |
7830 | _ACEOF | |
7fbd9d09 FCE |
7831 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7832 | case "(($ac_try" in | |
7833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7834 | *) ac_try_echo=$ac_try;; | |
7835 | esac | |
27aba29a JS |
7836 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7837 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 7838 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
1c4cf93d MW |
7839 | ac_status=$? |
7840 | grep -v '^ *+' conftest.er1 >conftest.err | |
7841 | rm -f conftest.er1 | |
7842 | cat conftest.err >&5 | |
27aba29a | 7843 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
7844 | (exit $ac_status); } >/dev/null && { |
7845 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7846 | test ! -s conftest.err | |
7847 | }; then | |
1c4cf93d MW |
7848 | ac_header_preproc=yes |
7849 | else | |
27aba29a | 7850 | $as_echo "$as_me: failed program was:" >&5 |
1c4cf93d MW |
7851 | sed 's/^/| /' conftest.$ac_ext >&5 |
7852 | ||
7853 | ac_header_preproc=no | |
7854 | fi | |
7fbd9d09 | 7855 | |
1c4cf93d | 7856 | rm -f conftest.err conftest.$ac_ext |
27aba29a JS |
7857 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7858 | $as_echo "$ac_header_preproc" >&6; } | |
1c4cf93d MW |
7859 | |
7860 | # So? What about this header? | |
7861 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7862 | yes:no: ) | |
27aba29a JS |
7863 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7864 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7865 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7866 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
1c4cf93d MW |
7867 | ac_header_preproc=yes |
7868 | ;; | |
7869 | no:yes:* ) | |
27aba29a JS |
7870 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7871 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7872 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7873 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7874 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7875 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7876 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7877 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7878 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7879 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7880 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7881 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7fbd9d09 | 7882 | ( cat <<\_ASBOX |
1c4cf93d MW |
7883 | ## ------------------------------------------- ## |
7884 | ## Report this to systemtap@sources.redhat.com ## | |
7885 | ## ------------------------------------------- ## | |
7886 | _ASBOX | |
7fbd9d09 | 7887 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
1c4cf93d MW |
7888 | ;; |
7889 | esac | |
27aba29a JS |
7890 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7891 | $as_echo_n "checking for $ac_header... " >&6; } | |
7fbd9d09 | 7892 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a | 7893 | $as_echo_n "(cached) " >&6 |
1c4cf93d MW |
7894 | else |
7895 | eval "$as_ac_Header=\$ac_header_preproc" | |
7896 | fi | |
27aba29a JS |
7897 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7898 | $as_echo "$as_val"'` | |
7899 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7900 | $as_echo "$ac_res" >&6; } | |
1c4cf93d MW |
7901 | |
7902 | fi | |
27aba29a JS |
7903 | as_val=`eval 'as_val=${'$as_ac_Header'} |
7904 | $as_echo "$as_val"'` | |
7905 | if test "x$as_val" = x""yes; then | |
1c4cf93d | 7906 | cat >>confdefs.h <<_ACEOF |
27aba29a | 7907 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
1c4cf93d MW |
7908 | _ACEOF |
7909 | ||
7910 | fi | |
7911 | ||
7912 | done | |
7913 | ||
7914 | CPPFLAGS="$save_CPPFLAGS" | |
7915 | else | |
e016a49a FCE |
7916 | |
7917 | for ac_header in elfutils/version.h | |
7918 | do | |
27aba29a | 7919 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7fbd9d09 | 7920 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a JS |
7921 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7922 | $as_echo_n "checking for $ac_header... " >&6; } | |
7fbd9d09 | 7923 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a | 7924 | $as_echo_n "(cached) " >&6 |
818ba2bc | 7925 | fi |
27aba29a JS |
7926 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7927 | $as_echo "$as_val"'` | |
7928 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7929 | $as_echo "$ac_res" >&6; } | |
e016a49a FCE |
7930 | else |
7931 | # Is the header compilable? | |
27aba29a JS |
7932 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7933 | $as_echo_n "checking $ac_header usability... " >&6; } | |
e016a49a FCE |
7934 | cat >conftest.$ac_ext <<_ACEOF |
7935 | /* confdefs.h. */ | |
7936 | _ACEOF | |
7937 | cat confdefs.h >>conftest.$ac_ext | |
7938 | cat >>conftest.$ac_ext <<_ACEOF | |
7939 | /* end confdefs.h. */ | |
7940 | $ac_includes_default | |
7941 | #include <$ac_header> | |
7942 | _ACEOF | |
7943 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
7944 | if { (ac_try="$ac_compile" |
7945 | case "(($ac_try" in | |
7946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7947 | *) ac_try_echo=$ac_try;; | |
7948 | esac | |
27aba29a JS |
7949 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7950 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 7951 | (eval "$ac_compile") 2>conftest.er1 |
e016a49a FCE |
7952 | ac_status=$? |
7953 | grep -v '^ *+' conftest.er1 >conftest.err | |
7954 | rm -f conftest.er1 | |
7955 | cat conftest.err >&5 | |
27aba29a | 7956 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
7957 | (exit $ac_status); } && { |
7958 | test -z "$ac_c_werror_flag" || | |
7959 | test ! -s conftest.err | |
7960 | } && test -s conftest.$ac_objext; then | |
e016a49a FCE |
7961 | ac_header_compiler=yes |
7962 | else | |
27aba29a | 7963 | $as_echo "$as_me: failed program was:" >&5 |
e016a49a FCE |
7964 | sed 's/^/| /' conftest.$ac_ext >&5 |
7965 | ||
7fbd9d09 | 7966 | ac_header_compiler=no |
e016a49a | 7967 | fi |
7fbd9d09 FCE |
7968 | |
7969 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
27aba29a JS |
7970 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7971 | $as_echo "$ac_header_compiler" >&6; } | |
e016a49a FCE |
7972 | |
7973 | # Is the header present? | |
27aba29a JS |
7974 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7975 | $as_echo_n "checking $ac_header presence... " >&6; } | |
e016a49a FCE |
7976 | cat >conftest.$ac_ext <<_ACEOF |
7977 | /* confdefs.h. */ | |
7978 | _ACEOF | |
7979 | cat confdefs.h >>conftest.$ac_ext | |
7980 | cat >>conftest.$ac_ext <<_ACEOF | |
7981 | /* end confdefs.h. */ | |
7982 | #include <$ac_header> | |
7983 | _ACEOF | |
7fbd9d09 FCE |
7984 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7985 | case "(($ac_try" in | |
7986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7987 | *) ac_try_echo=$ac_try;; | |
7988 | esac | |
27aba29a JS |
7989 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7990 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 7991 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
e016a49a FCE |
7992 | ac_status=$? |
7993 | grep -v '^ *+' conftest.er1 >conftest.err | |
7994 | rm -f conftest.er1 | |
7995 | cat conftest.err >&5 | |
27aba29a | 7996 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
7997 | (exit $ac_status); } >/dev/null && { |
7998 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7999 | test ! -s conftest.err | |
8000 | }; then | |
e016a49a FCE |
8001 | ac_header_preproc=yes |
8002 | else | |
27aba29a | 8003 | $as_echo "$as_me: failed program was:" >&5 |
e016a49a FCE |
8004 | sed 's/^/| /' conftest.$ac_ext >&5 |
8005 | ||
8006 | ac_header_preproc=no | |
8007 | fi | |
7fbd9d09 | 8008 | |
e016a49a | 8009 | rm -f conftest.err conftest.$ac_ext |
27aba29a JS |
8010 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8011 | $as_echo "$ac_header_preproc" >&6; } | |
e016a49a FCE |
8012 | |
8013 | # So? What about this header? | |
8014 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8015 | yes:no: ) | |
27aba29a JS |
8016 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8017 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8018 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8019 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
e016a49a FCE |
8020 | ac_header_preproc=yes |
8021 | ;; | |
8022 | no:yes:* ) | |
27aba29a JS |
8023 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8024 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8025 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8026 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8027 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8028 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8029 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8030 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8031 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8032 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8033 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8034 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7fbd9d09 | 8035 | ( cat <<\_ASBOX |
e016a49a FCE |
8036 | ## ------------------------------------------- ## |
8037 | ## Report this to systemtap@sources.redhat.com ## | |
8038 | ## ------------------------------------------- ## | |
8039 | _ASBOX | |
7fbd9d09 | 8040 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
e016a49a FCE |
8041 | ;; |
8042 | esac | |
27aba29a JS |
8043 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8044 | $as_echo_n "checking for $ac_header... " >&6; } | |
7fbd9d09 | 8045 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a | 8046 | $as_echo_n "(cached) " >&6 |
e016a49a FCE |
8047 | else |
8048 | eval "$as_ac_Header=\$ac_header_preproc" | |
8049 | fi | |
27aba29a JS |
8050 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8051 | $as_echo "$as_val"'` | |
8052 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8053 | $as_echo "$ac_res" >&6; } | |
e016a49a FCE |
8054 | |
8055 | fi | |
27aba29a JS |
8056 | as_val=`eval 'as_val=${'$as_ac_Header'} |
8057 | $as_echo "$as_val"'` | |
8058 | if test "x$as_val" = x""yes; then | |
e016a49a | 8059 | cat >>confdefs.h <<_ACEOF |
27aba29a | 8060 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
e016a49a FCE |
8061 | _ACEOF |
8062 | ||
8063 | fi | |
8064 | ||
8065 | done | |
8066 | ||
1c4cf93d | 8067 | fi |
e016a49a | 8068 | |
50431f30 MW |
8069 | |
8070 | cat >>confdefs.h <<_ACEOF | |
8071 | #define STAP_PREFIX "$prefix" | |
8072 | _ACEOF | |
8073 | ||
8074 | ||
7fbd9d09 | 8075 | ac_config_headers="$ac_config_headers config.h:config.in" |
daae650d | 8076 | |
e97c0b29 | 8077 | ac_config_files="$ac_config_files Makefile doc/Makefile doc/SystemTap_Tapset_Reference/Makefile stap.1 stapprobes.3stap stapfuncs.3stap stapvars.3stap stapex.3stap staprun.8 stap-server.8 man/stapprobes.iosched.3stap man/stapprobes.netdev.3stap man/stapprobes.nfs.3stap man/stapprobes.nfsd.3stap man/stapprobes.pagefault.3stap man/stapprobes.process.3stap man/stapprobes.rpc.3stap man/stapprobes.scsi.3stap man/stapprobes.signal.3stap man/stapprobes.socket.3stap man/stapprobes.tcp.3stap man/stapprobes.udp.3stap initscript/systemtap" |
daae650d | 8078 | |
27aba29a JS |
8079 | |
8080 | ||
5ba96b90 FCE |
8081 | subdirs="$subdirs testsuite" |
8082 | ||
7fbd9d09 | 8083 | ac_config_files="$ac_config_files run-stap" |
2f62657c | 8084 | |
2f1a1aea FCE |
8085 | cat >confcache <<\_ACEOF |
8086 | # This file is a shell script that caches the results of configure | |
8087 | # tests run on this system so they can be shared between configure | |
8088 | # scripts and configure runs, see configure's option --config-cache. | |
8089 | # It is not useful on other systems. If it contains results you don't | |
8090 | # want to keep, you may remove or edit it. | |
8091 | # | |
8092 | # config.status only pays attention to the cache file if you give it | |
8093 | # the --recheck option to rerun configure. | |
8094 | # | |
8095 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
8096 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
8097 | # following values. | |
8098 | ||
8099 | _ACEOF | |
8100 | ||
8101 | # The following way of writing the cache mishandles newlines in values, | |
8102 | # but we know of no workaround that is simple, portable, and efficient. | |
7fbd9d09 | 8103 | # So, we kill variables containing newlines. |
2f1a1aea FCE |
8104 | # Ultrix sh set writes to stderr and can't be redirected directly, |
8105 | # and sets the high bit in the cache file unless we assign to the vars. | |
7fbd9d09 FCE |
8106 | ( |
8107 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
8108 | eval ac_val=\$$ac_var | |
8109 | case $ac_val in #( | |
8110 | *${as_nl}*) | |
8111 | case $ac_var in #( | |
27aba29a JS |
8112 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
8113 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7fbd9d09 FCE |
8114 | esac |
8115 | case $ac_var in #( | |
8116 | _ | IFS | as_nl) ;; #( | |
27aba29a | 8117 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7fbd9d09 FCE |
8118 | *) $as_unset $ac_var ;; |
8119 | esac ;; | |
8120 | esac | |
8121 | done | |
8122 | ||
2f1a1aea | 8123 | (set) 2>&1 | |
7fbd9d09 FCE |
8124 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
8125 | *${as_nl}ac_space=\ *) | |
2f1a1aea FCE |
8126 | # `set' does not quote correctly, so add quotes (double-quote |
8127 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
8128 | sed -n \ | |
8129 | "s/'/'\\\\''/g; | |
8130 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7fbd9d09 | 8131 | ;; #( |
2f1a1aea FCE |
8132 | *) |
8133 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7fbd9d09 | 8134 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
2f1a1aea | 8135 | ;; |
7fbd9d09 FCE |
8136 | esac | |
8137 | sort | |
8138 | ) | | |
2f1a1aea | 8139 | sed ' |
7fbd9d09 | 8140 | /^ac_cv_env_/b end |
2f1a1aea | 8141 | t clear |
7fbd9d09 | 8142 | :clear |
2f1a1aea FCE |
8143 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
8144 | t end | |
7fbd9d09 FCE |
8145 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
8146 | :end' >>confcache | |
8147 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
8148 | if test -w "$cache_file"; then | |
8149 | test "x$cache_file" != "x/dev/null" && | |
27aba29a JS |
8150 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
8151 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
2f1a1aea FCE |
8152 | cat confcache >$cache_file |
8153 | else | |
27aba29a JS |
8154 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
8155 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
2f1a1aea FCE |
8156 | fi |
8157 | fi | |
8158 | rm -f confcache | |
8159 | ||
8160 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
8161 | # Let make expand exec_prefix. | |
8162 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
8163 | ||
2f1a1aea FCE |
8164 | DEFS=-DHAVE_CONFIG_H |
8165 | ||
8166 | ac_libobjs= | |
8167 | ac_ltlibobjs= | |
8168 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
8169 | # 1. Remove the extension, and $U if already installed. | |
7fbd9d09 | 8170 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
27aba29a | 8171 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7fbd9d09 FCE |
8172 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
8173 | # will be set to the directory where LIBOBJS objects are built. | |
8174 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
8175 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
2f1a1aea FCE |
8176 | done |
8177 | LIBOBJS=$ac_libobjs | |
8178 | ||
8179 | LTLIBOBJS=$ac_ltlibobjs | |
8180 | ||
8181 | ||
8182 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
27aba29a | 8183 | { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. |
2f1a1aea | 8184 | Usually this means the macro was only invoked conditionally." >&5 |
27aba29a | 8185 | $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. |
2f1a1aea FCE |
8186 | Usually this means the macro was only invoked conditionally." >&2;} |
8187 | { (exit 1); exit 1; }; } | |
8188 | fi | |
8189 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
27aba29a | 8190 | { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
2f1a1aea | 8191 | Usually this means the macro was only invoked conditionally." >&5 |
27aba29a | 8192 | $as_echo "$as_me: error: conditional \"AMDEP\" was never defined. |
2f1a1aea FCE |
8193 | Usually this means the macro was only invoked conditionally." >&2;} |
8194 | { (exit 1); exit 1; }; } | |
8195 | fi | |
8196 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
27aba29a | 8197 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
2f1a1aea | 8198 | Usually this means the macro was only invoked conditionally." >&5 |
27aba29a | 8199 | $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
2f1a1aea FCE |
8200 | Usually this means the macro was only invoked conditionally." >&2;} |
8201 | { (exit 1); exit 1; }; } | |
8202 | fi | |
8203 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
27aba29a | 8204 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
2f1a1aea | 8205 | Usually this means the macro was only invoked conditionally." >&5 |
27aba29a | 8206 | $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
2f1a1aea FCE |
8207 | Usually this means the macro was only invoked conditionally." >&2;} |
8208 | { (exit 1); exit 1; }; } | |
8209 | fi | |
8210 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
27aba29a | 8211 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
2f1a1aea | 8212 | Usually this means the macro was only invoked conditionally." >&5 |
27aba29a | 8213 | $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
2f1a1aea FCE |
8214 | Usually this means the macro was only invoked conditionally." >&2;} |
8215 | { (exit 1); exit 1; }; } | |
8216 | fi | |
e8f3c2c2 | 8217 | if test -z "${BUILD_CRASHMOD_TRUE}" && test -z "${BUILD_CRASHMOD_FALSE}"; then |
27aba29a | 8218 | { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_CRASHMOD\" was never defined. |
4d9087fc | 8219 | Usually this means the macro was only invoked conditionally." >&5 |
27aba29a | 8220 | $as_echo "$as_me: error: conditional \"BUILD_CRASHMOD\" was never defined. |
4d9087fc RM |
8221 | Usually this means the macro was only invoked conditionally." >&2;} |
8222 | { (exit 1); exit 1; }; } | |
8223 | fi | |
465e8fbf | 8224 | if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then |
27aba29a | 8225 | { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_DOCS\" was never defined. |
92aff3c7 | 8226 | Usually this means the macro was only invoked conditionally." >&5 |
27aba29a | 8227 | $as_echo "$as_me: error: conditional \"BUILD_DOCS\" was never defined. |
92aff3c7 WC |
8228 | Usually this means the macro was only invoked conditionally." >&2;} |
8229 | { (exit 1); exit 1; }; } | |
8230 | fi | |
8231 | if test -z "${BUILD_REFDOCS_TRUE}" && test -z "${BUILD_REFDOCS_FALSE}"; then | |
27aba29a | 8232 | { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_REFDOCS\" was never defined. |
19a0d4b6 | 8233 | Usually this means the macro was only invoked conditionally." >&5 |
27aba29a | 8234 | $as_echo "$as_me: error: conditional \"BUILD_REFDOCS\" was never defined. |
19a0d4b6 MW |
8235 | Usually this means the macro was only invoked conditionally." >&2;} |
8236 | { (exit 1); exit 1; }; } | |
8237 | fi | |
8238 | if test -z "${BUILD_SERVER_TRUE}" && test -z "${BUILD_SERVER_FALSE}"; then | |
27aba29a | 8239 | { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SERVER\" was never defined. |
465e8fbf | 8240 | Usually this means the macro was only invoked conditionally." >&5 |
27aba29a | 8241 | $as_echo "$as_me: error: conditional \"BUILD_SERVER\" was never defined. |
465e8fbf FCE |
8242 | Usually this means the macro was only invoked conditionally." >&2;} |
8243 | { (exit 1); exit 1; }; } | |
8244 | fi | |
e8f3c2c2 | 8245 | if test -z "${BUILD_ELFUTILS_TRUE}" && test -z "${BUILD_ELFUTILS_FALSE}"; then |
27aba29a | 8246 | { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ELFUTILS\" was never defined. |
35a04c8e | 8247 | Usually this means the macro was only invoked conditionally." >&5 |
27aba29a | 8248 | $as_echo "$as_me: error: conditional \"BUILD_ELFUTILS\" was never defined. |
35a04c8e FCE |
8249 | Usually this means the macro was only invoked conditionally." >&2;} |
8250 | { (exit 1); exit 1; }; } | |
8251 | fi | |
2f1a1aea FCE |
8252 | |
8253 | : ${CONFIG_STATUS=./config.status} | |
27aba29a | 8254 | ac_write_fail=0 |
2f1a1aea FCE |
8255 | ac_clean_files_save=$ac_clean_files |
8256 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
27aba29a JS |
8257 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
8258 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
8259 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
2f1a1aea FCE |
8260 | #! $SHELL |
8261 | # Generated by $as_me. | |
8262 | # Run this file to recreate the current configuration. | |
8263 | # Compiler output produced by configure, useful for debugging | |
8264 | # configure, is in config.log if it exists. | |
8265 | ||
8266 | debug=false | |
8267 | ac_cs_recheck=false | |
8268 | ac_cs_silent=false | |
8269 | SHELL=\${CONFIG_SHELL-$SHELL} | |
8270 | _ACEOF | |
8271 | ||
27aba29a | 8272 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
2f1a1aea FCE |
8273 | ## --------------------- ## |
8274 | ## M4sh Initialization. ## | |
8275 | ## --------------------- ## | |
8276 | ||
7fbd9d09 FCE |
8277 | # Be more Bourne compatible |
8278 | DUALCASE=1; export DUALCASE # for MKS sh | |
2f1a1aea FCE |
8279 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
8280 | emulate sh | |
8281 | NULLCMD=: | |
27aba29a | 8282 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
2f1a1aea FCE |
8283 | # is contrary to our usage. Disable this feature. |
8284 | alias -g '${1+"$@"}'='"$@"' | |
7fbd9d09 | 8285 | setopt NO_GLOB_SUBST |
2f1a1aea | 8286 | else |
7fbd9d09 FCE |
8287 | case `(set -o) 2>/dev/null` in |
8288 | *posix*) set -o posix ;; | |
8289 | esac | |
8290 | ||
2f1a1aea FCE |
8291 | fi |
8292 | ||
8293 | ||
7fbd9d09 FCE |
8294 | |
8295 | ||
8296 | # PATH needs CR | |
8297 | # Avoid depending upon Character Ranges. | |
8298 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
8299 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
8300 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
8301 | as_cr_digits='0123456789' | |
8302 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
8303 | ||
27aba29a JS |
8304 | as_nl=' |
8305 | ' | |
8306 | export as_nl | |
8307 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
8308 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
8309 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
8310 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
8311 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
8312 | as_echo='printf %s\n' | |
8313 | as_echo_n='printf %s' | |
8314 | else | |
8315 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
8316 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
8317 | as_echo_n='/usr/ucb/echo -n' | |
7fbd9d09 | 8318 | else |
27aba29a JS |
8319 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
8320 | as_echo_n_body='eval | |
8321 | arg=$1; | |
8322 | case $arg in | |
8323 | *"$as_nl"*) | |
8324 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
8325 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
8326 | esac; | |
8327 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
8328 | ' | |
8329 | export as_echo_n_body | |
8330 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
7fbd9d09 | 8331 | fi |
27aba29a JS |
8332 | export as_echo_body |
8333 | as_echo='sh -c $as_echo_body as_echo' | |
8334 | fi | |
8335 | ||
8336 | # The user is always right. | |
8337 | if test "${PATH_SEPARATOR+set}" != set; then | |
8338 | PATH_SEPARATOR=: | |
8339 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
8340 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
8341 | PATH_SEPARATOR=';' | |
8342 | } | |
7fbd9d09 FCE |
8343 | fi |
8344 | ||
8345 | # Support unset when possible. | |
8346 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
8347 | as_unset=unset | |
8348 | else | |
8349 | as_unset=false | |
8350 | fi | |
8351 | ||
8352 | ||
8353 | # IFS | |
8354 | # We need space, tab and new line, in precisely that order. Quoting is | |
8355 | # there to prevent editors from complaining about space-tab. | |
8356 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
8357 | # splitting by setting IFS to empty value.) | |
7fbd9d09 FCE |
8358 | IFS=" "" $as_nl" |
8359 | ||
8360 | # Find who we are. Look in the path if we contain no directory separator. | |
8361 | case $0 in | |
8362 | *[\\/]* ) as_myself=$0 ;; | |
8363 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8364 | for as_dir in $PATH | |
8365 | do | |
8366 | IFS=$as_save_IFS | |
8367 | test -z "$as_dir" && as_dir=. | |
8368 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
8369 | done | |
8370 | IFS=$as_save_IFS | |
8371 | ||
8372 | ;; | |
8373 | esac | |
8374 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
8375 | # in which case we are not to be found in the path. | |
8376 | if test "x$as_myself" = x; then | |
8377 | as_myself=$0 | |
8378 | fi | |
8379 | if test ! -f "$as_myself"; then | |
27aba29a | 8380 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7fbd9d09 FCE |
8381 | { (exit 1); exit 1; } |
8382 | fi | |
8383 | ||
8384 | # Work around bugs in pre-3.0 UWIN ksh. | |
8385 | for as_var in ENV MAIL MAILPATH | |
8386 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
8387 | done | |
8388 | PS1='$ ' | |
2f1a1aea FCE |
8389 | PS2='> ' |
8390 | PS4='+ ' | |
8391 | ||
8392 | # NLS nuisances. | |
27aba29a JS |
8393 | LC_ALL=C |
8394 | export LC_ALL | |
8395 | LANGUAGE=C | |
8396 | export LANGUAGE | |
2f1a1aea FCE |
8397 | |
8398 | # Required to use basename. | |
7fbd9d09 FCE |
8399 | if expr a : '\(a\)' >/dev/null 2>&1 && |
8400 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
2f1a1aea FCE |
8401 | as_expr=expr |
8402 | else | |
8403 | as_expr=false | |
8404 | fi | |
8405 | ||
7fbd9d09 | 8406 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
2f1a1aea FCE |
8407 | as_basename=basename |
8408 | else | |
8409 | as_basename=false | |
8410 | fi | |
8411 | ||
8412 | ||
8413 | # Name of the executable. | |
7fbd9d09 | 8414 | as_me=`$as_basename -- "$0" || |
2f1a1aea FCE |
8415 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
8416 | X"$0" : 'X\(//\)$' \| \ | |
7fbd9d09 | 8417 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
27aba29a | 8418 | $as_echo X/"$0" | |
7fbd9d09 FCE |
8419 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
8420 | s//\1/ | |
8421 | q | |
8422 | } | |
8423 | /^X\/\(\/\/\)$/{ | |
8424 | s//\1/ | |
8425 | q | |
8426 | } | |
8427 | /^X\/\(\/\).*/{ | |
8428 | s//\1/ | |
8429 | q | |
8430 | } | |
8431 | s/.*/./; q'` | |
8ae7a94a | 8432 | |
7fbd9d09 FCE |
8433 | # CDPATH. |
8434 | $as_unset CDPATH | |
2f1a1aea | 8435 | |
8ae7a94a | 8436 | |
818ba2bc | 8437 | |
818ba2bc MW |
8438 | as_lineno_1=$LINENO |
8439 | as_lineno_2=$LINENO | |
818ba2bc | 8440 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7fbd9d09 | 8441 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
818ba2bc MW |
8442 | |
8443 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
8444 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7fbd9d09 FCE |
8445 | # line-number line after each line using $LINENO; the second 'sed' |
8446 | # does the real work. The second script uses 'N' to pair each | |
8447 | # line-number line with the line containing $LINENO, and appends | |
8448 | # trailing '-' during substitution so that $LINENO is not a special | |
8449 | # case at line end. | |
2f1a1aea | 8450 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7fbd9d09 FCE |
8451 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
8452 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
8453 | sed -n ' | |
8454 | p | |
8455 | /[$]LINENO/= | |
8456 | ' <$as_myself | | |
2f1a1aea | 8457 | sed ' |
7fbd9d09 FCE |
8458 | s/[$]LINENO.*/&-/ |
8459 | t lineno | |
8460 | b | |
8461 | :lineno | |
2f1a1aea | 8462 | N |
7fbd9d09 FCE |
8463 | :loop |
8464 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
2f1a1aea | 8465 | t loop |
7fbd9d09 | 8466 | s/-\n.*// |
2f1a1aea | 8467 | ' >$as_me.lineno && |
7fbd9d09 | 8468 | chmod +x "$as_me.lineno" || |
27aba29a | 8469 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
2f1a1aea FCE |
8470 | { (exit 1); exit 1; }; } |
8471 | ||
8472 | # Don't try to exec as it changes $[0], causing all sort of problems | |
8473 | # (the dirname of $[0] is not the place where we might find the | |
7fbd9d09 FCE |
8474 | # original and so on. Autoconf is especially sensitive to this). |
8475 | . "./$as_me.lineno" | |
2f1a1aea FCE |
8476 | # Exit status is that of the last command. |
8477 | exit | |
8478 | } | |
8479 | ||
8480 | ||
7fbd9d09 FCE |
8481 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
8482 | as_dirname=dirname | |
8483 | else | |
8484 | as_dirname=false | |
8485 | fi | |
8486 | ||
8487 | ECHO_C= ECHO_N= ECHO_T= | |
8488 | case `echo -n x` in | |
8489 | -n*) | |
8490 | case `echo 'x\c'` in | |
8491 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
8492 | *) ECHO_C='\c';; | |
8493 | esac;; | |
8494 | *) | |
8495 | ECHO_N='-n';; | |
2f1a1aea | 8496 | esac |
7fbd9d09 FCE |
8497 | if expr a : '\(a\)' >/dev/null 2>&1 && |
8498 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
2f1a1aea FCE |
8499 | as_expr=expr |
8500 | else | |
8501 | as_expr=false | |
8502 | fi | |
8503 | ||
8504 | rm -f conf$$ conf$$.exe conf$$.file | |
7fbd9d09 FCE |
8505 | if test -d conf$$.dir; then |
8506 | rm -f conf$$.dir/conf$$.file | |
8507 | else | |
8508 | rm -f conf$$.dir | |
27aba29a JS |
8509 | mkdir conf$$.dir 2>/dev/null |
8510 | fi | |
8511 | if (echo >conf$$.file) 2>/dev/null; then | |
8512 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
8513 | as_ln_s='ln -s' | |
8514 | # ... but there are two gotchas: | |
8515 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
8516 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
8517 | # In both cases, we have to default to `cp -p'. | |
8518 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
8519 | as_ln_s='cp -p' | |
8520 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
8521 | as_ln_s=ln | |
8522 | else | |
2f1a1aea | 8523 | as_ln_s='cp -p' |
27aba29a | 8524 | fi |
2f1a1aea FCE |
8525 | else |
8526 | as_ln_s='cp -p' | |
8527 | fi | |
7fbd9d09 FCE |
8528 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
8529 | rmdir conf$$.dir 2>/dev/null | |
2f1a1aea FCE |
8530 | |
8531 | if mkdir -p . 2>/dev/null; then | |
8532 | as_mkdir_p=: | |
8533 | else | |
8534 | test -d ./-p && rmdir ./-p | |
8535 | as_mkdir_p=false | |
8536 | fi | |
8537 | ||
7fbd9d09 FCE |
8538 | if test -x / >/dev/null 2>&1; then |
8539 | as_test_x='test -x' | |
8540 | else | |
8541 | if ls -dL / >/dev/null 2>&1; then | |
8542 | as_ls_L_option=L | |
8543 | else | |
8544 | as_ls_L_option= | |
8545 | fi | |
8546 | as_test_x=' | |
8547 | eval sh -c '\'' | |
8548 | if test -d "$1"; then | |
27aba29a | 8549 | test -d "$1/."; |
7fbd9d09 FCE |
8550 | else |
8551 | case $1 in | |
27aba29a | 8552 | -*)set "./$1";; |
7fbd9d09 FCE |
8553 | esac; |
8554 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
8555 | ???[sx]*):;;*)false;;esac;fi | |
8556 | '\'' sh | |
8557 | ' | |
8558 | fi | |
8559 | as_executable_p=$as_test_x | |
2f1a1aea FCE |
8560 | |
8561 | # Sed expression to map a string onto a valid CPP name. | |
8562 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
8563 | ||
8564 | # Sed expression to map a string onto a valid variable name. | |
8565 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
8566 | ||
8567 | ||
2f1a1aea FCE |
8568 | exec 6>&1 |
8569 | ||
7fbd9d09 | 8570 | # Save the log message, to keep $[0] and so on meaningful, and to |
2f1a1aea | 8571 | # report actual input values of CONFIG_FILES etc. instead of their |
7fbd9d09 FCE |
8572 | # values after options handling. |
8573 | ac_log=" | |
27aba29a JS |
8574 | This file was extended by systemtap $as_me 0.9.5, which was |
8575 | generated by GNU Autoconf 2.63. Invocation command line was | |
2f1a1aea FCE |
8576 | |
8577 | CONFIG_FILES = $CONFIG_FILES | |
8578 | CONFIG_HEADERS = $CONFIG_HEADERS | |
8579 | CONFIG_LINKS = $CONFIG_LINKS | |
8580 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
8581 | $ $0 $@ | |
8582 | ||
7fbd9d09 FCE |
8583 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
8584 | " | |
8585 | ||
2f1a1aea FCE |
8586 | _ACEOF |
8587 | ||
27aba29a JS |
8588 | case $ac_config_files in *" |
8589 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
8590 | esac | |
8591 | ||
8592 | case $ac_config_headers in *" | |
8593 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
8594 | esac | |
8595 | ||
8596 | ||
8597 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
818ba2bc | 8598 | # Files that config.status was made for. |
7fbd9d09 FCE |
8599 | config_files="$ac_config_files" |
8600 | config_headers="$ac_config_headers" | |
8601 | config_commands="$ac_config_commands" | |
daae650d | 8602 | |
7fbd9d09 | 8603 | _ACEOF |
8ae7a94a | 8604 | |
27aba29a | 8605 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
2f1a1aea FCE |
8606 | ac_cs_usage="\ |
8607 | \`$as_me' instantiates files from templates according to the | |
8608 | current configuration. | |
8609 | ||
27aba29a | 8610 | Usage: $0 [OPTION]... [FILE]... |
2f1a1aea FCE |
8611 | |
8612 | -h, --help print this help, then exit | |
7fbd9d09 | 8613 | -V, --version print version number and configuration settings, then exit |
27aba29a JS |
8614 | -q, --quiet, --silent |
8615 | do not print progress messages | |
2f1a1aea FCE |
8616 | -d, --debug don't remove temporary files |
8617 | --recheck update $as_me by reconfiguring in the same conditions | |
27aba29a JS |
8618 | --file=FILE[:TEMPLATE] |
8619 | instantiate the configuration file FILE | |
8620 | --header=FILE[:TEMPLATE] | |
8621 | instantiate the configuration header FILE | |
2f1a1aea FCE |
8622 | |
8623 | Configuration files: | |
8624 | $config_files | |
8625 | ||
8626 | Configuration headers: | |
8627 | $config_headers | |
8628 | ||
8629 | Configuration commands: | |
8630 | $config_commands | |
8631 | ||
8632 | Report bugs to <bug-autoconf@gnu.org>." | |
818ba2bc | 8633 | |
7fbd9d09 | 8634 | _ACEOF |
27aba29a | 8635 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
2f1a1aea | 8636 | ac_cs_version="\\ |
27aba29a JS |
8637 | systemtap config.status 0.9.5 |
8638 | configured by $0, generated by GNU Autoconf 2.63, | |
8639 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
2f1a1aea | 8640 | |
27aba29a | 8641 | Copyright (C) 2008 Free Software Foundation, Inc. |
2f1a1aea FCE |
8642 | This config.status script is free software; the Free Software Foundation |
8643 | gives unlimited permission to copy, distribute and modify it." | |
7fbd9d09 FCE |
8644 | |
8645 | ac_pwd='$ac_pwd' | |
8646 | srcdir='$srcdir' | |
8647 | INSTALL='$INSTALL' | |
8648 | MKDIR_P='$MKDIR_P' | |
27aba29a JS |
8649 | AWK='$AWK' |
8650 | test -n "\$AWK" || AWK=awk | |
2f1a1aea FCE |
8651 | _ACEOF |
8652 | ||
27aba29a JS |
8653 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8654 | # The default lists apply if the user does not specify any file. | |
2f1a1aea FCE |
8655 | ac_need_defaults=: |
8656 | while test $# != 0 | |
8657 | do | |
8658 | case $1 in | |
8659 | --*=*) | |
7fbd9d09 FCE |
8660 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
8661 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
2f1a1aea FCE |
8662 | ac_shift=: |
8663 | ;; | |
7fbd9d09 | 8664 | *) |
2f1a1aea FCE |
8665 | ac_option=$1 |
8666 | ac_optarg=$2 | |
8667 | ac_shift=shift | |
8668 | ;; | |
2f1a1aea FCE |
8669 | esac |
8670 | ||
8671 | case $ac_option in | |
8672 | # Handling of the options. | |
2f1a1aea FCE |
8673 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
8674 | ac_cs_recheck=: ;; | |
7fbd9d09 | 8675 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
27aba29a | 8676 | $as_echo "$ac_cs_version"; exit ;; |
7fbd9d09 | 8677 | --debug | --debu | --deb | --de | --d | -d ) |
2f1a1aea FCE |
8678 | debug=: ;; |
8679 | --file | --fil | --fi | --f ) | |
8680 | $ac_shift | |
27aba29a JS |
8681 | case $ac_optarg in |
8682 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
8683 | esac | |
8684 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
2f1a1aea FCE |
8685 | ac_need_defaults=false;; |
8686 | --header | --heade | --head | --hea ) | |
8687 | $ac_shift | |
27aba29a JS |
8688 | case $ac_optarg in |
8689 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
8690 | esac | |
8691 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
2f1a1aea | 8692 | ac_need_defaults=false;; |
7fbd9d09 FCE |
8693 | --he | --h) |
8694 | # Conflict between --help and --header | |
27aba29a | 8695 | { $as_echo "$as_me: error: ambiguous option: $1 |
7fbd9d09 FCE |
8696 | Try \`$0 --help' for more information." >&2 |
8697 | { (exit 1); exit 1; }; };; | |
8698 | --help | --hel | -h ) | |
27aba29a | 8699 | $as_echo "$ac_cs_usage"; exit ;; |
2f1a1aea FCE |
8700 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
8701 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
8702 | ac_cs_silent=: ;; | |
8703 | ||
8704 | # This is an error. | |
27aba29a | 8705 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
7fbd9d09 | 8706 | Try \`$0 --help' for more information." >&2 |
2f1a1aea FCE |
8707 | { (exit 1); exit 1; }; } ;; |
8708 | ||
7fbd9d09 FCE |
8709 | *) ac_config_targets="$ac_config_targets $1" |
8710 | ac_need_defaults=false ;; | |
2f1a1aea FCE |
8711 | |
8712 | esac | |
8713 | shift | |
8714 | done | |
8715 | ||
8716 | ac_configure_extra_args= | |
8717 | ||
8718 | if $ac_cs_silent; then | |
8719 | exec 6>/dev/null | |
8720 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
8721 | fi | |
8722 | ||
8723 | _ACEOF | |
27aba29a | 8724 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
2f1a1aea | 8725 | if \$ac_cs_recheck; then |
27aba29a JS |
8726 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
8727 | shift | |
8728 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
8729 | CONFIG_SHELL='$SHELL' | |
7fbd9d09 | 8730 | export CONFIG_SHELL |
27aba29a | 8731 | exec "\$@" |
2f1a1aea FCE |
8732 | fi |
8733 | ||
8734 | _ACEOF | |
27aba29a | 8735 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7fbd9d09 FCE |
8736 | exec 5>>config.log |
8737 | { | |
8738 | echo | |
8739 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
8740 | ## Running $as_me. ## | |
8741 | _ASBOX | |
27aba29a | 8742 | $as_echo "$ac_log" |
7fbd9d09 | 8743 | } >&5 |
2f1a1aea | 8744 | |
7fbd9d09 | 8745 | _ACEOF |
27aba29a | 8746 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
2f1a1aea | 8747 | # |
7fbd9d09 | 8748 | # INIT-COMMANDS |
2f1a1aea | 8749 | # |
2f1a1aea FCE |
8750 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
8751 | ||
8752 | _ACEOF | |
8753 | ||
27aba29a | 8754 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7fbd9d09 FCE |
8755 | |
8756 | # Handling of arguments. | |
2f1a1aea FCE |
8757 | for ac_config_target in $ac_config_targets |
8758 | do | |
7fbd9d09 FCE |
8759 | case $ac_config_target in |
8760 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
8761 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
8762 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
8763 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
8764 | "doc/SystemTap_Tapset_Reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/SystemTap_Tapset_Reference/Makefile" ;; | |
8765 | "stap.1") CONFIG_FILES="$CONFIG_FILES stap.1" ;; | |
e97c0b29 WC |
8766 | "stapprobes.3stap") CONFIG_FILES="$CONFIG_FILES stapprobes.3stap" ;; |
8767 | "stapfuncs.3stap") CONFIG_FILES="$CONFIG_FILES stapfuncs.3stap" ;; | |
8768 | "stapvars.3stap") CONFIG_FILES="$CONFIG_FILES stapvars.3stap" ;; | |
8769 | "stapex.3stap") CONFIG_FILES="$CONFIG_FILES stapex.3stap" ;; | |
7fbd9d09 FCE |
8770 | "staprun.8") CONFIG_FILES="$CONFIG_FILES staprun.8" ;; |
8771 | "stap-server.8") CONFIG_FILES="$CONFIG_FILES stap-server.8" ;; | |
e97c0b29 WC |
8772 | "man/stapprobes.iosched.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.iosched.3stap" ;; |
8773 | "man/stapprobes.netdev.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.netdev.3stap" ;; | |
8774 | "man/stapprobes.nfs.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.nfs.3stap" ;; | |
8775 | "man/stapprobes.nfsd.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.nfsd.3stap" ;; | |
8776 | "man/stapprobes.pagefault.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.pagefault.3stap" ;; | |
8777 | "man/stapprobes.process.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.process.3stap" ;; | |
8778 | "man/stapprobes.rpc.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.rpc.3stap" ;; | |
8779 | "man/stapprobes.scsi.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.scsi.3stap" ;; | |
8780 | "man/stapprobes.signal.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.signal.3stap" ;; | |
8781 | "man/stapprobes.socket.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.socket.3stap" ;; | |
8782 | "man/stapprobes.tcp.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.tcp.3stap" ;; | |
8783 | "man/stapprobes.udp.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.udp.3stap" ;; | |
7fbd9d09 FCE |
8784 | "initscript/systemtap") CONFIG_FILES="$CONFIG_FILES initscript/systemtap" ;; |
8785 | "run-stap") CONFIG_FILES="$CONFIG_FILES run-stap" ;; | |
8786 | ||
27aba29a JS |
8787 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
8788 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
2f1a1aea FCE |
8789 | { (exit 1); exit 1; }; };; |
8790 | esac | |
8791 | done | |
8792 | ||
7fbd9d09 | 8793 | |
2f1a1aea FCE |
8794 | # If the user did not use the arguments to specify the items to instantiate, |
8795 | # then the envvar interface is used. Set only those that are not. | |
8796 | # We use the long form for the default assignment because of an extremely | |
8797 | # bizarre bug on SunOS 4.1.3. | |
8798 | if $ac_need_defaults; then | |
8799 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
8800 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
8801 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
8802 | fi | |
8803 | ||
8804 | # Have a temporary directory for convenience. Make it in the build tree | |
7fbd9d09 | 8805 | # simply because there is no reason against having it here, and in addition, |
2f1a1aea | 8806 | # creating and moving files from /tmp can sometimes cause problems. |
7fbd9d09 FCE |
8807 | # Hook for its removal unless debugging. |
8808 | # Note that there is a small window in which the directory will not be cleaned: | |
8809 | # after its creation but before its name has been assigned to `$tmp'. | |
2f1a1aea FCE |
8810 | $debug || |
8811 | { | |
7fbd9d09 FCE |
8812 | tmp= |
8813 | trap 'exit_status=$? | |
8814 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
8815 | ' 0 | |
2f1a1aea FCE |
8816 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
8817 | } | |
2f1a1aea FCE |
8818 | # Create a (secure) tmp directory for tmp files. |
8819 | ||
8820 | { | |
7fbd9d09 | 8821 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
2f1a1aea FCE |
8822 | test -n "$tmp" && test -d "$tmp" |
8823 | } || | |
8824 | { | |
7fbd9d09 FCE |
8825 | tmp=./conf$$-$RANDOM |
8826 | (umask 077 && mkdir "$tmp") | |
2f1a1aea FCE |
8827 | } || |
8828 | { | |
27aba29a | 8829 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
2f1a1aea FCE |
8830 | { (exit 1); exit 1; } |
8831 | } | |
8832 | ||
27aba29a JS |
8833 | # Set up the scripts for CONFIG_FILES section. |
8834 | # No need to generate them if there are no CONFIG_FILES. | |
8835 | # This happens for instance with `./config.status config.h'. | |
7fbd9d09 FCE |
8836 | if test -n "$CONFIG_FILES"; then |
8837 | ||
7fbd9d09 | 8838 | |
27aba29a JS |
8839 | ac_cr='\r' |
8840 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
8841 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
8842 | ac_cs_awk_cr='\\r' | |
8843 | else | |
8844 | ac_cs_awk_cr=$ac_cr | |
7fbd9d09 | 8845 | fi |
5e0d2ebf | 8846 | |
27aba29a | 8847 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
7fbd9d09 FCE |
8848 | _ACEOF |
8849 | ||
8850 | ||
27aba29a JS |
8851 | { |
8852 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
8853 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
8854 | echo "_ACEOF" | |
8855 | } >conf$$subs.sh || | |
8856 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
8857 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
8858 | { (exit 1); exit 1; }; } | |
8859 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
7fbd9d09 FCE |
8860 | ac_delim='%!_!# ' |
8861 | for ac_last_try in false false false false false :; do | |
27aba29a JS |
8862 | . ./conf$$subs.sh || |
8863 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
8864 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
8865 | { (exit 1); exit 1; }; } | |
8866 | ||
8867 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
8868 | if test $ac_delim_n = $ac_delim_num; then | |
7fbd9d09 FCE |
8869 | break |
8870 | elif $ac_last_try; then | |
27aba29a JS |
8871 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
8872 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
7fbd9d09 FCE |
8873 | { (exit 1); exit 1; }; } |
8874 | else | |
8875 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
8876 | fi | |
8877 | done | |
27aba29a JS |
8878 | rm -f conf$$subs.sh |
8879 | ||
8880 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8881 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
8882 | _ACEOF | |
8883 | sed -n ' | |
8884 | h | |
8885 | s/^/S["/; s/!.*/"]=/ | |
8886 | p | |
8887 | g | |
8888 | s/^[^!]*!// | |
8889 | :repl | |
8890 | t repl | |
8891 | s/'"$ac_delim"'$// | |
8892 | t delim | |
8893 | :nl | |
8894 | h | |
8895 | s/\(.\{148\}\).*/\1/ | |
8896 | t more1 | |
8897 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
8898 | p | |
8899 | n | |
8900 | b repl | |
8901 | :more1 | |
8902 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8903 | p | |
8904 | g | |
8905 | s/.\{148\}// | |
8906 | t nl | |
8907 | :delim | |
8908 | h | |
8909 | s/\(.\{148\}\).*/\1/ | |
8910 | t more2 | |
8911 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
8912 | p | |
8913 | b | |
8914 | :more2 | |
8915 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8916 | p | |
8917 | g | |
8918 | s/.\{148\}// | |
8919 | t delim | |
8920 | ' <conf$$subs.awk | sed ' | |
8921 | /^[^""]/{ | |
8922 | N | |
8923 | s/\n// | |
8924 | } | |
8925 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
8926 | rm -f conf$$subs.awk | |
8927 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8928 | _ACAWK | |
8929 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
8930 | for (key in S) S_is_set[key] = 1 | |
8931 | FS = "\a" | |
7fbd9d09 | 8932 | |
27aba29a JS |
8933 | } |
8934 | { | |
8935 | line = $ 0 | |
8936 | nfields = split(line, field, "@") | |
8937 | substed = 0 | |
8938 | len = length(field[1]) | |
8939 | for (i = 2; i < nfields; i++) { | |
8940 | key = field[i] | |
8941 | keylen = length(key) | |
8942 | if (S_is_set[key]) { | |
8943 | value = S[key] | |
8944 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
8945 | len += length(value) + length(field[++i]) | |
8946 | substed = 1 | |
8947 | } else | |
8948 | len += 1 + keylen | |
8949 | } | |
8950 | ||
8951 | print line | |
8952 | } | |
7fbd9d09 | 8953 | |
27aba29a | 8954 | _ACAWK |
7fbd9d09 | 8955 | _ACEOF |
27aba29a JS |
8956 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8957 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
8958 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
8959 | else | |
8960 | cat | |
8961 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
8962 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
8963 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
8964 | { (exit 1); exit 1; }; } | |
7fbd9d09 FCE |
8965 | _ACEOF |
8966 | ||
7fbd9d09 FCE |
8967 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
8968 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
8969 | # trailing colons and then remove the whole line if VPATH becomes empty | |
8970 | # (actually we leave an empty line to preserve line numbers). | |
8971 | if test "x$srcdir" = x.; then | |
8972 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
8973 | s/:*\$(srcdir):*/:/ | |
8974 | s/:*\${srcdir}:*/:/ | |
8975 | s/:*@srcdir@:*/:/ | |
8976 | s/^\([^=]*=[ ]*\):*/\1/ | |
8977 | s/:*$// | |
8978 | s/^[^=]*=[ ]*$// | |
8979 | }' | |
8980 | fi | |
8981 | ||
27aba29a | 8982 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7fbd9d09 FCE |
8983 | fi # test -n "$CONFIG_FILES" |
8984 | ||
27aba29a JS |
8985 | # Set up the scripts for CONFIG_HEADERS section. |
8986 | # No need to generate them if there are no CONFIG_HEADERS. | |
8987 | # This happens for instance with `./config.status Makefile'. | |
8988 | if test -n "$CONFIG_HEADERS"; then | |
8989 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
8990 | BEGIN { | |
8991 | _ACEOF | |
8992 | ||
8993 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
8994 | # here-document in config.status, that substitutes the proper values into | |
8995 | # config.h.in to produce config.h. | |
8996 | ||
8997 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
8998 | # handling of long lines. | |
8999 | ac_delim='%!_!# ' | |
9000 | for ac_last_try in false false :; do | |
9001 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
9002 | if test -z "$ac_t"; then | |
9003 | break | |
9004 | elif $ac_last_try; then | |
9005 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
9006 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
9007 | { (exit 1); exit 1; }; } | |
9008 | else | |
9009 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
9010 | fi | |
9011 | done | |
9012 | ||
9013 | # For the awk script, D is an array of macro values keyed by name, | |
9014 | # likewise P contains macro parameters if any. Preserve backslash | |
9015 | # newline sequences. | |
9016 | ||
9017 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
9018 | sed -n ' | |
9019 | s/.\{148\}/&'"$ac_delim"'/g | |
9020 | t rset | |
9021 | :rset | |
9022 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
9023 | t def | |
9024 | d | |
9025 | :def | |
9026 | s/\\$// | |
9027 | t bsnl | |
9028 | s/["\\]/\\&/g | |
9029 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
9030 | D["\1"]=" \3"/p | |
9031 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
9032 | d | |
9033 | :bsnl | |
9034 | s/["\\]/\\&/g | |
9035 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
9036 | D["\1"]=" \3\\\\\\n"\\/p | |
9037 | t cont | |
9038 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
9039 | t cont | |
9040 | d | |
9041 | :cont | |
9042 | n | |
9043 | s/.\{148\}/&'"$ac_delim"'/g | |
9044 | t clear | |
9045 | :clear | |
9046 | s/\\$// | |
9047 | t bsnlc | |
9048 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
9049 | d | |
9050 | :bsnlc | |
9051 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
9052 | b cont | |
9053 | ' <confdefs.h | sed ' | |
9054 | s/'"$ac_delim"'/"\\\ | |
9055 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
9056 | ||
9057 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
9058 | for (key in D) D_is_set[key] = 1 | |
9059 | FS = "\a" | |
9060 | } | |
9061 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
9062 | line = \$ 0 | |
9063 | split(line, arg, " ") | |
9064 | if (arg[1] == "#") { | |
9065 | defundef = arg[2] | |
9066 | mac1 = arg[3] | |
9067 | } else { | |
9068 | defundef = substr(arg[1], 2) | |
9069 | mac1 = arg[2] | |
9070 | } | |
9071 | split(mac1, mac2, "(") #) | |
9072 | macro = mac2[1] | |
9073 | prefix = substr(line, 1, index(line, defundef) - 1) | |
9074 | if (D_is_set[macro]) { | |
9075 | # Preserve the white space surrounding the "#". | |
9076 | print prefix "define", macro P[macro] D[macro] | |
9077 | next | |
9078 | } else { | |
9079 | # Replace #undef with comments. This is necessary, for example, | |
9080 | # in the case of _POSIX_SOURCE, which is predefined and required | |
9081 | # on some systems where configure will not decide to define it. | |
9082 | if (defundef == "undef") { | |
9083 | print "/*", prefix defundef, macro, "*/" | |
9084 | next | |
9085 | } | |
9086 | } | |
9087 | } | |
9088 | { print } | |
9089 | _ACAWK | |
9090 | _ACEOF | |
9091 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
9092 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
9093 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
9094 | { (exit 1); exit 1; }; } | |
9095 | fi # test -n "$CONFIG_HEADERS" | |
7fbd9d09 | 9096 | |
27aba29a JS |
9097 | |
9098 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
9099 | shift | |
9100 | for ac_tag | |
7fbd9d09 FCE |
9101 | do |
9102 | case $ac_tag in | |
9103 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
2f1a1aea | 9104 | esac |
7fbd9d09 FCE |
9105 | case $ac_mode$ac_tag in |
9106 | :[FHL]*:*);; | |
27aba29a JS |
9107 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
9108 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
7fbd9d09 FCE |
9109 | { (exit 1); exit 1; }; };; |
9110 | :[FH]-) ac_tag=-:-;; | |
9111 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
9112 | esac | |
9113 | ac_save_IFS=$IFS | |
9114 | IFS=: | |
9115 | set x $ac_tag | |
9116 | IFS=$ac_save_IFS | |
9117 | shift | |
9118 | ac_file=$1 | |
9119 | shift | |
2f1a1aea | 9120 | |
7fbd9d09 FCE |
9121 | case $ac_mode in |
9122 | :L) ac_source=$1;; | |
9123 | :[FH]) | |
9124 | ac_file_inputs= | |
9125 | for ac_f | |
9126 | do | |
9127 | case $ac_f in | |
9128 | -) ac_f="$tmp/stdin";; | |
9129 | *) # Look for the file first in the build tree, then in the source tree | |
9130 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
9131 | # because $ac_f cannot contain `:'. | |
9132 | test -f "$ac_f" || | |
9133 | case $ac_f in | |
9134 | [\\/$]*) false;; | |
9135 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
9136 | esac || | |
27aba29a JS |
9137 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
9138 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7fbd9d09 FCE |
9139 | { (exit 1); exit 1; }; };; |
9140 | esac | |
27aba29a JS |
9141 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
9142 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
7fbd9d09 FCE |
9143 | done |
9144 | ||
9145 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
9146 | # use $as_me), people would be surprised to read: | |
9147 | # /* config.h. Generated by config.status. */ | |
27aba29a JS |
9148 | configure_input='Generated from '` |
9149 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
9150 | `' by configure.' | |
7fbd9d09 FCE |
9151 | if test x"$ac_file" != x-; then |
9152 | configure_input="$ac_file. $configure_input" | |
27aba29a JS |
9153 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
9154 | $as_echo "$as_me: creating $ac_file" >&6;} | |
7fbd9d09 | 9155 | fi |
27aba29a JS |
9156 | # Neutralize special characters interpreted by sed in replacement strings. |
9157 | case $configure_input in #( | |
9158 | *\&* | *\|* | *\\* ) | |
9159 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
9160 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
9161 | *) ac_sed_conf_input=$configure_input;; | |
9162 | esac | |
7fbd9d09 FCE |
9163 | |
9164 | case $ac_tag in | |
27aba29a JS |
9165 | *:-:* | *:-) cat >"$tmp/stdin" \ |
9166 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
9167 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
9168 | { (exit 1); exit 1; }; } ;; | |
7fbd9d09 FCE |
9169 | esac |
9170 | ;; | |
9171 | esac | |
9172 | ||
9173 | ac_dir=`$as_dirname -- "$ac_file" || | |
2f1a1aea FCE |
9174 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9175 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
9176 | X"$ac_file" : 'X\(//\)$' \| \ | |
7fbd9d09 | 9177 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
27aba29a | 9178 | $as_echo X"$ac_file" | |
7fbd9d09 FCE |
9179 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9180 | s//\1/ | |
9181 | q | |
9182 | } | |
9183 | /^X\(\/\/\)[^/].*/{ | |
9184 | s//\1/ | |
9185 | q | |
9186 | } | |
9187 | /^X\(\/\/\)$/{ | |
9188 | s//\1/ | |
9189 | q | |
9190 | } | |
9191 | /^X\(\/\).*/{ | |
9192 | s//\1/ | |
9193 | q | |
9194 | } | |
9195 | s/.*/./; q'` | |
9196 | { as_dir="$ac_dir" | |
9197 | case $as_dir in #( | |
9198 | -*) as_dir=./$as_dir;; | |
9199 | esac | |
9200 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
2f1a1aea | 9201 | as_dirs= |
7fbd9d09 FCE |
9202 | while :; do |
9203 | case $as_dir in #( | |
27aba29a | 9204 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
7fbd9d09 FCE |
9205 | *) as_qdir=$as_dir;; |
9206 | esac | |
9207 | as_dirs="'$as_qdir' $as_dirs" | |
9208 | as_dir=`$as_dirname -- "$as_dir" || | |
2f1a1aea FCE |
9209 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9210 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
9211 | X"$as_dir" : 'X\(//\)$' \| \ | |
7fbd9d09 | 9212 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
27aba29a | 9213 | $as_echo X"$as_dir" | |
7fbd9d09 FCE |
9214 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9215 | s//\1/ | |
9216 | q | |
9217 | } | |
9218 | /^X\(\/\/\)[^/].*/{ | |
9219 | s//\1/ | |
9220 | q | |
9221 | } | |
9222 | /^X\(\/\/\)$/{ | |
9223 | s//\1/ | |
9224 | q | |
9225 | } | |
9226 | /^X\(\/\).*/{ | |
9227 | s//\1/ | |
9228 | q | |
9229 | } | |
9230 | s/.*/./; q'` | |
9231 | test -d "$as_dir" && break | |
2f1a1aea | 9232 | done |
7fbd9d09 | 9233 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
27aba29a JS |
9234 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
9235 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
2f1a1aea | 9236 | { (exit 1); exit 1; }; }; } |
2f1a1aea FCE |
9237 | ac_builddir=. |
9238 | ||
7fbd9d09 FCE |
9239 | case "$ac_dir" in |
9240 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
9241 | *) | |
27aba29a | 9242 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7fbd9d09 | 9243 | # A ".." for each directory in $ac_dir_suffix. |
27aba29a | 9244 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7fbd9d09 FCE |
9245 | case $ac_top_builddir_sub in |
9246 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
9247 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
9248 | esac ;; | |
9249 | esac | |
9250 | ac_abs_top_builddir=$ac_pwd | |
9251 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
9252 | # for backward compatibility: | |
9253 | ac_top_builddir=$ac_top_build_prefix | |
2f1a1aea FCE |
9254 | |
9255 | case $srcdir in | |
7fbd9d09 | 9256 | .) # We are building in place. |
2f1a1aea | 9257 | ac_srcdir=. |
7fbd9d09 FCE |
9258 | ac_top_srcdir=$ac_top_builddir_sub |
9259 | ac_abs_top_srcdir=$ac_pwd ;; | |
9260 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
2f1a1aea | 9261 | ac_srcdir=$srcdir$ac_dir_suffix; |
7fbd9d09 FCE |
9262 | ac_top_srcdir=$srcdir |
9263 | ac_abs_top_srcdir=$srcdir ;; | |
9264 | *) # Relative name. | |
9265 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
9266 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
9267 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
2f1a1aea | 9268 | esac |
7fbd9d09 | 9269 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
2f1a1aea | 9270 | |
2f1a1aea | 9271 | |
7fbd9d09 FCE |
9272 | case $ac_mode in |
9273 | :F) | |
9274 | # | |
9275 | # CONFIG_FILE | |
9276 | # | |
2f1a1aea FCE |
9277 | |
9278 | case $INSTALL in | |
9279 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7fbd9d09 FCE |
9280 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
9281 | esac | |
9282 | ac_MKDIR_P=$MKDIR_P | |
9283 | case $MKDIR_P in | |
9284 | [\\/$]* | ?:[\\/]* ) ;; | |
9285 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
5e0d2ebf | 9286 | esac |
7fbd9d09 | 9287 | _ACEOF |
5e0d2ebf | 9288 | |
27aba29a | 9289 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7fbd9d09 FCE |
9290 | # If the template does not know about datarootdir, expand it. |
9291 | # FIXME: This hack should be removed a few years after 2.60. | |
9292 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
9293 | ||
27aba29a JS |
9294 | ac_sed_dataroot=' |
9295 | /datarootdir/ { | |
7fbd9d09 FCE |
9296 | p |
9297 | q | |
9298 | } | |
9299 | /@datadir@/p | |
9300 | /@docdir@/p | |
9301 | /@infodir@/p | |
9302 | /@localedir@/p | |
9303 | /@mandir@/p | |
27aba29a JS |
9304 | ' |
9305 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
7fbd9d09 FCE |
9306 | *datarootdir*) ac_datarootdir_seen=yes;; |
9307 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
27aba29a JS |
9308 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
9309 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
7fbd9d09 | 9310 | _ACEOF |
27aba29a | 9311 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7fbd9d09 FCE |
9312 | ac_datarootdir_hack=' |
9313 | s&@datadir@&$datadir&g | |
9314 | s&@docdir@&$docdir&g | |
9315 | s&@infodir@&$infodir&g | |
9316 | s&@localedir@&$localedir&g | |
9317 | s&@mandir@&$mandir&g | |
9318 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
9319 | esac | |
70d28673 | 9320 | _ACEOF |
7fbd9d09 FCE |
9321 | |
9322 | # Neutralize VPATH when `$srcdir' = `.'. | |
9323 | # Shell code in configure.ac might set extrasub. | |
9324 | # FIXME: do we really want to maintain this feature? | |
27aba29a JS |
9325 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
9326 | ac_sed_extra="$ac_vpsub | |
2f1a1aea FCE |
9327 | $extrasub |
9328 | _ACEOF | |
27aba29a | 9329 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
2f1a1aea FCE |
9330 | :t |
9331 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
27aba29a | 9332 | s|@configure_input@|$ac_sed_conf_input|;t t |
7fbd9d09 | 9333 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
27aba29a | 9334 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7fbd9d09 FCE |
9335 | s&@srcdir@&$ac_srcdir&;t t |
9336 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
9337 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
9338 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
9339 | s&@builddir@&$ac_builddir&;t t | |
9340 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
9341 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
9342 | s&@INSTALL@&$ac_INSTALL&;t t | |
9343 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
9344 | $ac_datarootdir_hack | |
27aba29a JS |
9345 | " |
9346 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
9347 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
9348 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
9349 | { (exit 1); exit 1; }; } | |
7fbd9d09 FCE |
9350 | |
9351 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
9352 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
9353 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
27aba29a | 9354 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7fbd9d09 | 9355 | which seems to be undefined. Please make sure it is defined." >&5 |
27aba29a | 9356 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7fbd9d09 FCE |
9357 | which seems to be undefined. Please make sure it is defined." >&2;} |
9358 | ||
9359 | rm -f "$tmp/stdin" | |
818ba2bc | 9360 | case $ac_file in |
27aba29a JS |
9361 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
9362 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
9363 | esac \ | |
9364 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
9365 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
9366 | { (exit 1); exit 1; }; } | |
7fbd9d09 FCE |
9367 | ;; |
9368 | :H) | |
9369 | # | |
9370 | # CONFIG_HEADER | |
9371 | # | |
818ba2bc | 9372 | if test x"$ac_file" != x-; then |
27aba29a JS |
9373 | { |
9374 | $as_echo "/* $configure_input */" \ | |
9375 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
9376 | } >"$tmp/config.h" \ | |
9377 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
9378 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
9379 | { (exit 1); exit 1; }; } | |
9380 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
9381 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
9382 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
2f1a1aea | 9383 | else |
27aba29a JS |
9384 | rm -f "$ac_file" |
9385 | mv "$tmp/config.h" "$ac_file" \ | |
9386 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
9387 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
9388 | { (exit 1); exit 1; }; } | |
2f1a1aea FCE |
9389 | fi |
9390 | else | |
27aba29a JS |
9391 | $as_echo "/* $configure_input */" \ |
9392 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
9393 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
9394 | $as_echo "$as_me: error: could not create -" >&2;} | |
9395 | { (exit 1); exit 1; }; } | |
2f1a1aea | 9396 | fi |
27aba29a JS |
9397 | # Compute "$ac_file"'s index in $config_headers. |
9398 | _am_arg="$ac_file" | |
2f1a1aea FCE |
9399 | _am_stamp_count=1 |
9400 | for _am_header in $config_headers :; do | |
9401 | case $_am_header in | |
7fbd9d09 | 9402 | $_am_arg | $_am_arg:* ) |
2f1a1aea FCE |
9403 | break ;; |
9404 | * ) | |
9405 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
9406 | esac | |
9407 | done | |
7fbd9d09 FCE |
9408 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
9409 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9410 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
9411 | X"$_am_arg" : 'X\(//\)$' \| \ | |
9412 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
27aba29a | 9413 | $as_echo X"$_am_arg" | |
7fbd9d09 FCE |
9414 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9415 | s//\1/ | |
9416 | q | |
9417 | } | |
9418 | /^X\(\/\/\)[^/].*/{ | |
9419 | s//\1/ | |
9420 | q | |
9421 | } | |
9422 | /^X\(\/\/\)$/{ | |
9423 | s//\1/ | |
9424 | q | |
9425 | } | |
9426 | /^X\(\/\).*/{ | |
9427 | s//\1/ | |
9428 | q | |
9429 | } | |
9430 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
9431 | ;; | |
818ba2bc | 9432 | |
27aba29a JS |
9433 | :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
9434 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
7fbd9d09 FCE |
9435 | ;; |
9436 | esac | |
818ba2bc MW |
9437 | |
9438 | ||
7fbd9d09 FCE |
9439 | case $ac_file$ac_mode in |
9440 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
2f1a1aea FCE |
9441 | # Strip MF so we end up with the name of the file. |
9442 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
9443 | # Check whether this is an Automake generated Makefile or not. | |
9444 | # We used to match only the files named `Makefile.in', but | |
9445 | # some people rename them; so instead we look at the file content. | |
9446 | # Grep'ing the first line is not enough: some people post-process | |
9447 | # each Makefile.in and add a new line on top of each file to say so. | |
7fbd9d09 FCE |
9448 | # Grep'ing the whole file is not good either: AIX grep has a line |
9449 | # limit of 2048, but all sed's we know have understand at least 4000. | |
9450 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
9451 | dirpart=`$as_dirname -- "$mf" || | |
2f1a1aea FCE |
9452 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9453 | X"$mf" : 'X\(//\)[^/]' \| \ | |
9454 | X"$mf" : 'X\(//\)$' \| \ | |
7fbd9d09 | 9455 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
27aba29a | 9456 | $as_echo X"$mf" | |
7fbd9d09 FCE |
9457 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9458 | s//\1/ | |
9459 | q | |
9460 | } | |
9461 | /^X\(\/\/\)[^/].*/{ | |
9462 | s//\1/ | |
9463 | q | |
9464 | } | |
9465 | /^X\(\/\/\)$/{ | |
9466 | s//\1/ | |
9467 | q | |
9468 | } | |
9469 | /^X\(\/\).*/{ | |
9470 | s//\1/ | |
9471 | q | |
9472 | } | |
9473 | s/.*/./; q'` | |
2f1a1aea FCE |
9474 | else |
9475 | continue | |
9476 | fi | |
9477 | # Extract the definition of DEPDIR, am__include, and am__quote | |
9478 | # from the Makefile without running `make'. | |
9479 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
9480 | test -z "$DEPDIR" && continue | |
9481 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
9482 | test -z "am__include" && continue | |
9483 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
9484 | # When using ansi2knr, U may be empty or an underscore; expand it | |
9485 | U=`sed -n 's/^U = //p' < "$mf"` | |
9486 | # Find all dependency output files, they are included files with | |
9487 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
9488 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
9489 | # expansion. | |
9490 | for file in `sed -n " | |
9491 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
9492 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
9493 | # Make sure the directory exists. | |
9494 | test -f "$dirpart/$file" && continue | |
7fbd9d09 | 9495 | fdir=`$as_dirname -- "$file" || |
2f1a1aea FCE |
9496 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9497 | X"$file" : 'X\(//\)[^/]' \| \ | |
9498 | X"$file" : 'X\(//\)$' \| \ | |
7fbd9d09 | 9499 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
27aba29a | 9500 | $as_echo X"$file" | |
7fbd9d09 FCE |
9501 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9502 | s//\1/ | |
9503 | q | |
9504 | } | |
9505 | /^X\(\/\/\)[^/].*/{ | |
9506 | s//\1/ | |
9507 | q | |
9508 | } | |
9509 | /^X\(\/\/\)$/{ | |
9510 | s//\1/ | |
9511 | q | |
9512 | } | |
9513 | /^X\(\/\).*/{ | |
9514 | s//\1/ | |
9515 | q | |
9516 | } | |
9517 | s/.*/./; q'` | |
9518 | { as_dir=$dirpart/$fdir | |
9519 | case $as_dir in #( | |
9520 | -*) as_dir=./$as_dir;; | |
9521 | esac | |
9522 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
2f1a1aea | 9523 | as_dirs= |
7fbd9d09 FCE |
9524 | while :; do |
9525 | case $as_dir in #( | |
27aba29a | 9526 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
7fbd9d09 FCE |
9527 | *) as_qdir=$as_dir;; |
9528 | esac | |
9529 | as_dirs="'$as_qdir' $as_dirs" | |
9530 | as_dir=`$as_dirname -- "$as_dir" || | |
2f1a1aea FCE |
9531 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9532 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
9533 | X"$as_dir" : 'X\(//\)$' \| \ | |
7fbd9d09 | 9534 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
27aba29a | 9535 | $as_echo X"$as_dir" | |
7fbd9d09 FCE |
9536 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9537 | s//\1/ | |
9538 | q | |
9539 | } | |
9540 | /^X\(\/\/\)[^/].*/{ | |
9541 | s//\1/ | |
9542 | q | |
9543 | } | |
9544 | /^X\(\/\/\)$/{ | |
9545 | s//\1/ | |
9546 | q | |
9547 | } | |
9548 | /^X\(\/\).*/{ | |
9549 | s//\1/ | |
9550 | q | |
9551 | } | |
9552 | s/.*/./; q'` | |
9553 | test -d "$as_dir" && break | |
2f1a1aea | 9554 | done |
7fbd9d09 | 9555 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
27aba29a JS |
9556 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
9557 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
2f1a1aea | 9558 | { (exit 1); exit 1; }; }; } |
2f1a1aea FCE |
9559 | # echo "creating $dirpart/$file" |
9560 | echo '# dummy' > "$dirpart/$file" | |
9561 | done | |
9562 | done | |
9563 | ;; | |
7fbd9d09 FCE |
9564 | "run-stap":F) chmod +x run-stap ;; |
9565 | ||
2f1a1aea | 9566 | esac |
7fbd9d09 | 9567 | done # for ac_tag |
2f1a1aea | 9568 | |
2f1a1aea FCE |
9569 | |
9570 | { (exit 0); exit 0; } | |
9571 | _ACEOF | |
9572 | chmod +x $CONFIG_STATUS | |
9573 | ac_clean_files=$ac_clean_files_save | |
9574 | ||
27aba29a JS |
9575 | test $ac_write_fail = 0 || |
9576 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
9577 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
9578 | { (exit 1); exit 1; }; } | |
9579 | ||
2f1a1aea FCE |
9580 | |
9581 | # configure is writing to config.log, and then calls config.status. | |
9582 | # config.status does its own redirection, appending to config.log. | |
9583 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
9584 | # by configure, so config.status won't be able to write to it; its | |
9585 | # output is simply discarded. So we exec the FD to /dev/null, | |
9586 | # effectively closing config.log, so it can be properly (re)opened and | |
9587 | # appended to by config.status. When coming back to configure, we | |
9588 | # need to make the FD available again. | |
9589 | if test "$no_create" != yes; then | |
9590 | ac_cs_success=: | |
9591 | ac_config_status_args= | |
9592 | test "$silent" = yes && | |
9593 | ac_config_status_args="$ac_config_status_args --quiet" | |
9594 | exec 5>/dev/null | |
9595 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
9596 | exec 5>>config.log | |
9597 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
9598 | # would make configure fail if this is the last instruction. | |
9599 | $ac_cs_success || { (exit 1); exit 1; } | |
9600 | fi | |
9601 | ||
5ba96b90 FCE |
9602 | # |
9603 | # CONFIG_SUBDIRS section. | |
9604 | # | |
9605 | if test "$no_recursion" != yes; then | |
9606 | ||
27aba29a JS |
9607 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments |
9608 | # so they do not pile up. | |
5ba96b90 FCE |
9609 | ac_sub_configure_args= |
9610 | ac_prev= | |
7fbd9d09 FCE |
9611 | eval "set x $ac_configure_args" |
9612 | shift | |
9613 | for ac_arg | |
9614 | do | |
5ba96b90 FCE |
9615 | if test -n "$ac_prev"; then |
9616 | ac_prev= | |
9617 | continue | |
9618 | fi | |
9619 | case $ac_arg in | |
9620 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
9621 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
9622 | ac_prev=cache_file ;; | |
9623 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
9624 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
9625 | | --c=*) | |
9626 | ;; | |
9627 | --config-cache | -C) | |
9628 | ;; | |
9629 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
9630 | ac_prev=srcdir ;; | |
9631 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
9632 | ;; | |
9633 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
9634 | ac_prev=prefix ;; | |
9635 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
9636 | ;; | |
27aba29a JS |
9637 | --disable-option-checking) |
9638 | ;; | |
7fbd9d09 FCE |
9639 | *) |
9640 | case $ac_arg in | |
27aba29a | 9641 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
7fbd9d09 FCE |
9642 | esac |
9643 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; | |
5ba96b90 FCE |
9644 | esac |
9645 | done | |
9646 | ||
9647 | # Always prepend --prefix to ensure using the same prefix | |
9648 | # in subdir configurations. | |
7fbd9d09 FCE |
9649 | ac_arg="--prefix=$prefix" |
9650 | case $ac_arg in | |
27aba29a | 9651 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
7fbd9d09 FCE |
9652 | esac |
9653 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
9654 | ||
9655 | # Pass --silent | |
9656 | if test "$silent" = yes; then | |
9657 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
9658 | fi | |
daae650d | 9659 | |
27aba29a JS |
9660 | # Always prepend --disable-option-checking to silence warnings, since |
9661 | # different subdirs can have different --enable and --with options. | |
9662 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
9663 | ||
5ba96b90 FCE |
9664 | ac_popdir=`pwd` |
9665 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
9666 | ||
9667 | # Do not complain, so a configure script can configure whichever | |
9668 | # parts of a large source tree are present. | |
7fbd9d09 FCE |
9669 | test -d "$srcdir/$ac_dir" || continue |
9670 | ||
9671 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
27aba29a JS |
9672 | $as_echo "$as_me:$LINENO: $ac_msg" >&5 |
9673 | $as_echo "$ac_msg" >&6 | |
7fbd9d09 FCE |
9674 | { as_dir="$ac_dir" |
9675 | case $as_dir in #( | |
9676 | -*) as_dir=./$as_dir;; | |
9677 | esac | |
9678 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
5ba96b90 | 9679 | as_dirs= |
7fbd9d09 FCE |
9680 | while :; do |
9681 | case $as_dir in #( | |
27aba29a | 9682 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
7fbd9d09 FCE |
9683 | *) as_qdir=$as_dir;; |
9684 | esac | |
9685 | as_dirs="'$as_qdir' $as_dirs" | |
9686 | as_dir=`$as_dirname -- "$as_dir" || | |
5ba96b90 FCE |
9687 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9688 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
9689 | X"$as_dir" : 'X\(//\)$' \| \ | |
7fbd9d09 | 9690 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
27aba29a | 9691 | $as_echo X"$as_dir" | |
7fbd9d09 FCE |
9692 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9693 | s//\1/ | |
9694 | q | |
9695 | } | |
9696 | /^X\(\/\/\)[^/].*/{ | |
9697 | s//\1/ | |
9698 | q | |
9699 | } | |
9700 | /^X\(\/\/\)$/{ | |
9701 | s//\1/ | |
9702 | q | |
9703 | } | |
9704 | /^X\(\/\).*/{ | |
9705 | s//\1/ | |
9706 | q | |
9707 | } | |
9708 | s/.*/./; q'` | |
9709 | test -d "$as_dir" && break | |
5ba96b90 | 9710 | done |
7fbd9d09 | 9711 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
27aba29a JS |
9712 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
9713 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
5ba96b90 | 9714 | { (exit 1); exit 1; }; }; } |
5ba96b90 FCE |
9715 | ac_builddir=. |
9716 | ||
7fbd9d09 FCE |
9717 | case "$ac_dir" in |
9718 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
9719 | *) | |
27aba29a | 9720 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7fbd9d09 | 9721 | # A ".." for each directory in $ac_dir_suffix. |
27aba29a | 9722 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7fbd9d09 FCE |
9723 | case $ac_top_builddir_sub in |
9724 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
9725 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
9726 | esac ;; | |
9727 | esac | |
9728 | ac_abs_top_builddir=$ac_pwd | |
9729 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
9730 | # for backward compatibility: | |
9731 | ac_top_builddir=$ac_top_build_prefix | |
5ba96b90 FCE |
9732 | |
9733 | case $srcdir in | |
7fbd9d09 | 9734 | .) # We are building in place. |
5ba96b90 | 9735 | ac_srcdir=. |
7fbd9d09 FCE |
9736 | ac_top_srcdir=$ac_top_builddir_sub |
9737 | ac_abs_top_srcdir=$ac_pwd ;; | |
9738 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
5ba96b90 | 9739 | ac_srcdir=$srcdir$ac_dir_suffix; |
7fbd9d09 FCE |
9740 | ac_top_srcdir=$srcdir |
9741 | ac_abs_top_srcdir=$srcdir ;; | |
9742 | *) # Relative name. | |
9743 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
9744 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
9745 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
5ba96b90 | 9746 | esac |
7fbd9d09 | 9747 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
5ba96b90 FCE |
9748 | |
9749 | ||
7fbd9d09 | 9750 | cd "$ac_dir" |
5ba96b90 FCE |
9751 | |
9752 | # Check for guested configure; otherwise get Cygnus style configure. | |
7fbd9d09 FCE |
9753 | if test -f "$ac_srcdir/configure.gnu"; then |
9754 | ac_sub_configure=$ac_srcdir/configure.gnu | |
9755 | elif test -f "$ac_srcdir/configure"; then | |
9756 | ac_sub_configure=$ac_srcdir/configure | |
9757 | elif test -f "$ac_srcdir/configure.in"; then | |
9758 | # This should be Cygnus configure. | |
9759 | ac_sub_configure=$ac_aux_dir/configure | |
5ba96b90 | 9760 | else |
27aba29a JS |
9761 | { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
9762 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
5ba96b90 FCE |
9763 | ac_sub_configure= |
9764 | fi | |
9765 | ||
9766 | # The recursion is here. | |
9767 | if test -n "$ac_sub_configure"; then | |
9768 | # Make the cache file name correct relative to the subdirectory. | |
9769 | case $cache_file in | |
9770 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
7fbd9d09 FCE |
9771 | *) # Relative name. |
9772 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
5ba96b90 FCE |
9773 | esac |
9774 | ||
27aba29a JS |
9775 | { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
9776 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
5ba96b90 | 9777 | # The eval makes quoting arguments work. |
7fbd9d09 FCE |
9778 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
9779 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
27aba29a JS |
9780 | { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
9781 | $as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
5ba96b90 FCE |
9782 | { (exit 1); exit 1; }; } |
9783 | fi | |
9784 | ||
7fbd9d09 | 9785 | cd "$ac_popdir" |
5ba96b90 FCE |
9786 | done |
9787 | fi | |
27aba29a JS |
9788 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
9789 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
9790 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
9791 | fi | |
5ba96b90 | 9792 | |
4d9087fc | 9793 | |
af29024d | 9794 | if test "${prefix}" = "/usr/local"; then |
27aba29a JS |
9795 | { $as_echo "$as_me:$LINENO: " >&5 |
9796 | $as_echo "$as_me: " >&6;} | |
9797 | { $as_echo "$as_me:$LINENO: For a private or temporary build of systemtap, we recommend" >&5 | |
9798 | $as_echo "$as_me: For a private or temporary build of systemtap, we recommend" >&6;} | |
9799 | { $as_echo "$as_me:$LINENO: configuring with a prefix. For example, try" >&5 | |
9800 | $as_echo "$as_me: configuring with a prefix. For example, try" >&6;} | |
9801 | { $as_echo "$as_me:$LINENO: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&5 | |
9802 | $as_echo "$as_me: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&6;} | |
9803 | { $as_echo "$as_me:$LINENO: Running systemtap uninstalled, entirely out of the build tree," >&5 | |
9804 | $as_echo "$as_me: Running systemtap uninstalled, entirely out of the build tree," >&6;} | |
9805 | { $as_echo "$as_me:$LINENO: is not supported." >&5 | |
9806 | $as_echo "$as_me: is not supported." >&6;} | |
af29024d | 9807 | fi |