]>
Commit | Line | Data |
---|---|---|
2f1a1aea FCE |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
9c043a41 | 3 | # Generated by GNU Autoconf 2.69 for systemtap 3.2. |
2f1a1aea | 4 | # |
306dd4f8 | 5 | # Report bugs to <systemtap@sourceware.org>. |
2f1a1aea | 6 | # |
1ef0423a | 7 | # |
8eef2738 | 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
1ef0423a FCE |
9 | # |
10 | # | |
2f1a1aea FCE |
11 | # This configure script is free software; the Free Software Foundation |
12 | # gives unlimited permission to copy, distribute and modify it. | |
1ef0423a FCE |
13 | ## -------------------- ## |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
2f1a1aea | 16 | |
7fbd9d09 FCE |
17 | # Be more Bourne compatible |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
1ef0423a | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
2f1a1aea FCE |
20 | emulate sh |
21 | NULLCMD=: | |
0710d850 | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
2f1a1aea FCE |
23 | # is contrary to our usage. Disable this feature. |
24 | alias -g '${1+"$@"}'='"$@"' | |
7fbd9d09 FCE |
25 | setopt NO_GLOB_SUBST |
26 | else | |
1ef0423a FCE |
27 | case `(set -o) 2>/dev/null` in #( |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
7fbd9d09 | 32 | esac |
7fbd9d09 FCE |
33 | fi |
34 | ||
35 | ||
0710d850 DS |
36 | as_nl=' |
37 | ' | |
38 | export as_nl | |
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
1ef0423a FCE |
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
44 | # but without wasting forks for bash or zsh. | |
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='print -r --' | |
48 | as_echo_n='print -rn --' | |
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
0710d850 DS |
50 | as_echo='printf %s\n' |
51 | as_echo_n='printf %s' | |
52 | else | |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
31f9baea | 56 | else |
0710d850 DS |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
1ef0423a | 60 | case $arg in #( |
0710d850 DS |
61 | *"$as_nl"*) |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
31f9baea | 69 | fi |
0710d850 DS |
70 | export as_echo_body |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
74 | # The user is always right. | |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
76 | PATH_SEPARATOR=: | |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
2f1a1aea | 81 | fi |
2f1a1aea | 82 | |
2f1a1aea | 83 | |
7fbd9d09 FCE |
84 | # IFS |
85 | # We need space, tab and new line, in precisely that order. Quoting is | |
86 | # there to prevent editors from complaining about space-tab. | |
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 | # splitting by setting IFS to empty value.) | |
7fbd9d09 FCE |
89 | IFS=" "" $as_nl" |
90 | ||
91 | # Find who we are. Look in the path if we contain no directory separator. | |
c3de29bd | 92 | as_myself= |
1ef0423a | 93 | case $0 in #(( |
7fbd9d09 FCE |
94 | *[\\/]* ) as_myself=$0 ;; |
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
96 | for as_dir in $PATH | |
97 | do | |
98 | IFS=$as_save_IFS | |
99 | test -z "$as_dir" && as_dir=. | |
1ef0423a FCE |
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
101 | done | |
7fbd9d09 FCE |
102 | IFS=$as_save_IFS |
103 | ||
104 | ;; | |
105 | esac | |
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
107 | # in which case we are not to be found in the path. | |
108 | if test "x$as_myself" = x; then | |
109 | as_myself=$0 | |
110 | fi | |
111 | if test ! -f "$as_myself"; then | |
0710d850 | 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
1ef0423a | 113 | exit 1 |
7fbd9d09 FCE |
114 | fi |
115 | ||
1ef0423a FCE |
116 | # Unset variables that we do not need and which cause bugs (e.g. in |
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
118 | # suppresses any "Segmentation fault" message there. '((' could | |
119 | # trigger a bug in pdksh 5.2.14. | |
120 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
121 | do eval test x\${$as_var+set} = xset \ | |
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7fbd9d09 | 123 | done |
2f1a1aea FCE |
124 | PS1='$ ' |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
0710d850 DS |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
2f1a1aea | 133 | |
1ef0423a FCE |
134 | # CDPATH. |
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
136 | ||
8eef2738 LB |
137 | # Use a proper internal environment variable to ensure we don't fall |
138 | # into an infinite loop, continuously re-executing ourselves. | |
139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
140 | _as_can_reexec=no; export _as_can_reexec; | |
141 | # We cannot yet assume a decent shell, so we have to provide a | |
142 | # neutralization value for shells without unset; and this also | |
143 | # works around shells that cannot unset nonexistent variables. | |
144 | # Preserve -v and -x to the replacement shell. | |
145 | BASH_ENV=/dev/null | |
146 | ENV=/dev/null | |
147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
148 | case $- in # (((( | |
149 | *v*x* | *x*v* ) as_opts=-vx ;; | |
150 | *v* ) as_opts=-v ;; | |
151 | *x* ) as_opts=-x ;; | |
152 | * ) as_opts= ;; | |
153 | esac | |
154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
155 | # Admittedly, this is quite paranoid, since all the known shells bail | |
156 | # out after a failed `exec'. | |
157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
158 | as_fn_exit 255 | |
159 | fi | |
160 | # We don't want this to propagate to other subprocesses. | |
161 | { _as_can_reexec=; unset _as_can_reexec;} | |
1ef0423a FCE |
162 | if test "x$CONFIG_SHELL" = x; then |
163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
164 | emulate sh | |
165 | NULLCMD=: | |
166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
167 | # is contrary to our usage. Disable this feature. | |
168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
169 | setopt NO_GLOB_SUBST | |
170 | else | |
171 | case \`(set -o) 2>/dev/null\` in #( | |
172 | *posix*) : | |
173 | set -o posix ;; #( | |
174 | *) : | |
175 | ;; | |
176 | esac | |
177 | fi | |
178 | " | |
179 | as_required="as_fn_return () { (exit \$1); } | |
180 | as_fn_success () { as_fn_return 0; } | |
181 | as_fn_failure () { as_fn_return 1; } | |
182 | as_fn_ret_success () { return 0; } | |
183 | as_fn_ret_failure () { return 1; } | |
184 | ||
185 | exitcode=0 | |
186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
191 | ||
192 | else | |
193 | exitcode=1; echo positional parameters were not saved. | |
194 | fi | |
8eef2738 LB |
195 | test x\$exitcode = x0 || exit 1 |
196 | test -x / || exit 1" | |
1ef0423a FCE |
197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
201 | test \$(( 1 + 1 )) = 2 || exit 1" | |
202 | if (eval "$as_required") 2>/dev/null; then : | |
203 | as_have_required=yes | |
204 | else | |
205 | as_have_required=no | |
206 | fi | |
207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
208 | ||
209 | else | |
210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
211 | as_found=false | |
212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
213 | do | |
214 | IFS=$as_save_IFS | |
215 | test -z "$as_dir" && as_dir=. | |
216 | as_found=: | |
217 | case $as_dir in #( | |
218 | /*) | |
219 | for as_base in sh bash ksh sh5; do | |
220 | # Try only shells that exist, to save several forks. | |
221 | as_shell=$as_dir/$as_base | |
222 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
223 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
224 | CONFIG_SHELL=$as_shell as_have_required=yes | |
225 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
226 | break 2 | |
227 | fi | |
228 | fi | |
229 | done;; | |
230 | esac | |
231 | as_found=false | |
232 | done | |
233 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
234 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
235 | CONFIG_SHELL=$SHELL as_have_required=yes | |
236 | fi; } | |
237 | IFS=$as_save_IFS | |
238 | ||
239 | ||
240 | if test "x$CONFIG_SHELL" != x; then : | |
8eef2738 LB |
241 | export CONFIG_SHELL |
242 | # We cannot yet assume a decent shell, so we have to provide a | |
243 | # neutralization value for shells without unset; and this also | |
244 | # works around shells that cannot unset nonexistent variables. | |
245 | # Preserve -v and -x to the replacement shell. | |
246 | BASH_ENV=/dev/null | |
247 | ENV=/dev/null | |
248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
249 | case $- in # (((( | |
250 | *v*x* | *x*v* ) as_opts=-vx ;; | |
251 | *v* ) as_opts=-v ;; | |
252 | *x* ) as_opts=-x ;; | |
253 | * ) as_opts= ;; | |
254 | esac | |
255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
256 | # Admittedly, this is quite paranoid, since all the known shells bail | |
257 | # out after a failed `exec'. | |
258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
259 | exit 255 | |
1ef0423a FCE |
260 | fi |
261 | ||
262 | if test x$as_have_required = xno; then : | |
263 | $as_echo "$0: This script requires a shell more modern than all" | |
264 | $as_echo "$0: the shells that I found on your system." | |
265 | if test x${ZSH_VERSION+set} = xset ; then | |
266 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
267 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
268 | else | |
269 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | |
fcca127c FCE |
270 | $0: systemtap@sourceware.org about your system, including |
271 | $0: any error possibly output before this message. Then | |
272 | $0: install a modern shell, or manually run the script | |
273 | $0: under such a shell if you do have one." | |
1ef0423a FCE |
274 | fi |
275 | exit 1 | |
276 | fi | |
277 | fi | |
278 | fi | |
279 | SHELL=${CONFIG_SHELL-/bin/sh} | |
280 | export SHELL | |
281 | # Unset more variables known to interfere with behavior of common tools. | |
282 | CLICOLOR_FORCE= GREP_OPTIONS= | |
283 | unset CLICOLOR_FORCE GREP_OPTIONS | |
284 | ||
285 | ## --------------------- ## | |
286 | ## M4sh Shell Functions. ## | |
287 | ## --------------------- ## | |
288 | # as_fn_unset VAR | |
289 | # --------------- | |
290 | # Portably unset VAR. | |
291 | as_fn_unset () | |
292 | { | |
293 | { eval $1=; unset $1;} | |
294 | } | |
295 | as_unset=as_fn_unset | |
296 | ||
297 | # as_fn_set_status STATUS | |
298 | # ----------------------- | |
299 | # Set $? to STATUS, without forking. | |
300 | as_fn_set_status () | |
301 | { | |
302 | return $1 | |
303 | } # as_fn_set_status | |
304 | ||
305 | # as_fn_exit STATUS | |
306 | # ----------------- | |
307 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
308 | as_fn_exit () | |
309 | { | |
310 | set +e | |
311 | as_fn_set_status $1 | |
312 | exit $1 | |
313 | } # as_fn_exit | |
314 | ||
315 | # as_fn_mkdir_p | |
316 | # ------------- | |
317 | # Create "$as_dir" as a directory, including parents if necessary. | |
318 | as_fn_mkdir_p () | |
319 | { | |
320 | ||
321 | case $as_dir in #( | |
322 | -*) as_dir=./$as_dir;; | |
323 | esac | |
324 | test -d "$as_dir" || eval $as_mkdir_p || { | |
325 | as_dirs= | |
326 | while :; do | |
327 | case $as_dir in #( | |
328 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
329 | *) as_qdir=$as_dir;; | |
330 | esac | |
331 | as_dirs="'$as_qdir' $as_dirs" | |
332 | as_dir=`$as_dirname -- "$as_dir" || | |
333 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
334 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
335 | X"$as_dir" : 'X\(//\)$' \| \ | |
336 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
337 | $as_echo X"$as_dir" | | |
338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
339 | s//\1/ | |
340 | q | |
341 | } | |
342 | /^X\(\/\/\)[^/].*/{ | |
343 | s//\1/ | |
344 | q | |
345 | } | |
346 | /^X\(\/\/\)$/{ | |
347 | s//\1/ | |
348 | q | |
349 | } | |
350 | /^X\(\/\).*/{ | |
351 | s//\1/ | |
352 | q | |
353 | } | |
354 | s/.*/./; q'` | |
355 | test -d "$as_dir" && break | |
356 | done | |
357 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
5d4aa1f5 | 358 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
1ef0423a FCE |
359 | |
360 | ||
361 | } # as_fn_mkdir_p | |
8eef2738 LB |
362 | |
363 | # as_fn_executable_p FILE | |
364 | # ----------------------- | |
365 | # Test if FILE is an executable regular file. | |
366 | as_fn_executable_p () | |
367 | { | |
368 | test -f "$1" && test -x "$1" | |
369 | } # as_fn_executable_p | |
1ef0423a FCE |
370 | # as_fn_append VAR VALUE |
371 | # ---------------------- | |
372 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
373 | # advantage of any shell optimizations that allow amortized linear growth over | |
374 | # repeated appends, instead of the typical quadratic growth present in naive | |
375 | # implementations. | |
376 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
377 | eval 'as_fn_append () | |
378 | { | |
379 | eval $1+=\$2 | |
380 | }' | |
381 | else | |
382 | as_fn_append () | |
383 | { | |
384 | eval $1=\$$1\$2 | |
385 | } | |
386 | fi # as_fn_append | |
387 | ||
388 | # as_fn_arith ARG... | |
389 | # ------------------ | |
390 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
391 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
392 | # must be portable across $(()) and expr. | |
393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
394 | eval 'as_fn_arith () | |
395 | { | |
396 | as_val=$(( $* )) | |
397 | }' | |
398 | else | |
399 | as_fn_arith () | |
400 | { | |
401 | as_val=`expr "$@" || test $? -eq 1` | |
402 | } | |
403 | fi # as_fn_arith | |
404 | ||
405 | ||
5d4aa1f5 FCE |
406 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
407 | # ---------------------------------------- | |
1ef0423a FCE |
408 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
409 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
5d4aa1f5 | 410 | # script with STATUS, using 1 if that was 0. |
1ef0423a FCE |
411 | as_fn_error () |
412 | { | |
5d4aa1f5 FCE |
413 | as_status=$1; test $as_status -eq 0 && as_status=1 |
414 | if test "$4"; then | |
415 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
416 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
1ef0423a | 417 | fi |
5d4aa1f5 | 418 | $as_echo "$as_me: error: $2" >&2 |
1ef0423a FCE |
419 | as_fn_exit $as_status |
420 | } # as_fn_error | |
421 | ||
412e1bf7 FCE |
422 | if expr a : '\(a\)' >/dev/null 2>&1 && |
423 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
424 | as_expr=expr | |
425 | else | |
426 | as_expr=false | |
427 | fi | |
428 | ||
429 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
430 | as_basename=basename | |
431 | else | |
432 | as_basename=false | |
433 | fi | |
434 | ||
1ef0423a FCE |
435 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
436 | as_dirname=dirname | |
437 | else | |
438 | as_dirname=false | |
439 | fi | |
412e1bf7 | 440 | |
412e1bf7 FCE |
441 | as_me=`$as_basename -- "$0" || |
442 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
443 | X"$0" : 'X\(//\)$' \| \ | |
444 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
0710d850 | 445 | $as_echo X/"$0" | |
412e1bf7 FCE |
446 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
447 | s//\1/ | |
448 | q | |
449 | } | |
450 | /^X\/\(\/\/\)$/{ | |
451 | s//\1/ | |
452 | q | |
453 | } | |
454 | /^X\/\(\/\).*/{ | |
455 | s//\1/ | |
456 | q | |
457 | } | |
458 | s/.*/./; q'` | |
459 | ||
1ef0423a FCE |
460 | # Avoid depending upon Character Ranges. |
461 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
462 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
463 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
464 | as_cr_digits='0123456789' | |
465 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
412e1bf7 | 466 | |
5e0d2ebf | 467 | |
1ef0423a FCE |
468 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
469 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
470 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
471 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
472 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
473 | sed -n ' | |
474 | p | |
475 | /[$]LINENO/= | |
476 | ' <$as_myself | | |
477 | sed ' | |
478 | s/[$]LINENO.*/&-/ | |
479 | t lineno | |
480 | b | |
481 | :lineno | |
482 | N | |
483 | :loop | |
484 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
485 | t loop | |
486 | s/-\n.*// | |
487 | ' >$as_me.lineno && | |
488 | chmod +x "$as_me.lineno" || | |
489 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
412e1bf7 | 490 | |
8eef2738 LB |
491 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
492 | # already done that, so ensure we don't try to do so again and fall | |
493 | # in an infinite loop. This has already happened in practice. | |
494 | _as_can_reexec=no; export _as_can_reexec | |
1ef0423a FCE |
495 | # Don't try to exec as it changes $[0], causing all sort of problems |
496 | # (the dirname of $[0] is not the place where we might find the | |
497 | # original and so on. Autoconf is especially sensitive to this). | |
498 | . "./$as_me.lineno" | |
499 | # Exit status is that of the last command. | |
500 | exit | |
412e1bf7 | 501 | } |
5e0d2ebf | 502 | |
1ef0423a FCE |
503 | ECHO_C= ECHO_N= ECHO_T= |
504 | case `echo -n x` in #((((( | |
505 | -n*) | |
506 | case `echo 'xy\c'` in | |
507 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
508 | xy) ECHO_C='\c';; | |
509 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
510 | ECHO_T=' ';; | |
511 | esac;; | |
512 | *) | |
513 | ECHO_N='-n';; | |
514 | esac | |
5e5aee9f | 515 | |
1ef0423a FCE |
516 | rm -f conf$$ conf$$.exe conf$$.file |
517 | if test -d conf$$.dir; then | |
518 | rm -f conf$$.dir/conf$$.file | |
519 | else | |
520 | rm -f conf$$.dir | |
521 | mkdir conf$$.dir 2>/dev/null | |
412e1bf7 | 522 | fi |
1ef0423a FCE |
523 | if (echo >conf$$.file) 2>/dev/null; then |
524 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
525 | as_ln_s='ln -s' | |
526 | # ... but there are two gotchas: | |
527 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
528 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
8eef2738 | 529 | # In both cases, we have to default to `cp -pR'. |
1ef0423a | 530 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
8eef2738 | 531 | as_ln_s='cp -pR' |
1ef0423a FCE |
532 | elif ln conf$$.file conf$$ 2>/dev/null; then |
533 | as_ln_s=ln | |
534 | else | |
8eef2738 | 535 | as_ln_s='cp -pR' |
1ef0423a | 536 | fi |
ec1a2239 | 537 | else |
8eef2738 | 538 | as_ln_s='cp -pR' |
e6364d79 | 539 | fi |
1ef0423a FCE |
540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
541 | rmdir conf$$.dir 2>/dev/null | |
e6364d79 | 542 | |
1ef0423a FCE |
543 | if mkdir -p . 2>/dev/null; then |
544 | as_mkdir_p='mkdir -p "$as_dir"' | |
545 | else | |
546 | test -d ./-p && rmdir ./-p | |
547 | as_mkdir_p=false | |
5e5aee9f FCE |
548 | fi |
549 | ||
8eef2738 LB |
550 | as_test_x='test -x' |
551 | as_executable_p=as_fn_executable_p | |
412e1bf7 | 552 | |
1ef0423a FCE |
553 | # Sed expression to map a string onto a valid CPP name. |
554 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
412e1bf7 | 555 | |
1ef0423a FCE |
556 | # Sed expression to map a string onto a valid variable name. |
557 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
7fbd9d09 FCE |
558 | |
559 | ||
1ef0423a FCE |
560 | test -n "$DJDIR" || exec 7<&0 </dev/null |
561 | exec 6>&1 | |
5e5aee9f FCE |
562 | |
563 | # Name of the host. | |
5d4aa1f5 | 564 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
2f1a1aea FCE |
565 | # so uname gets run too. |
566 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
567 | ||
2f1a1aea FCE |
568 | # |
569 | # Initializations. | |
570 | # | |
571 | ac_default_prefix=/usr/local | |
7fbd9d09 | 572 | ac_clean_files= |
2f1a1aea | 573 | ac_config_libobj_dir=. |
7fbd9d09 | 574 | LIBOBJS= |
2f1a1aea FCE |
575 | cross_compiling=no |
576 | subdirs= | |
577 | MFLAGS= | |
578 | MAKEFLAGS= | |
2f1a1aea | 579 | |
2f1a1aea FCE |
580 | # Identity of this package. |
581 | PACKAGE_NAME='systemtap' | |
582 | PACKAGE_TARNAME='systemtap' | |
9c043a41 MC |
583 | PACKAGE_VERSION='3.2' |
584 | PACKAGE_STRING='systemtap 3.2' | |
306dd4f8 | 585 | PACKAGE_BUGREPORT='systemtap@sourceware.org' |
1ef0423a | 586 | PACKAGE_URL='' |
2f1a1aea FCE |
587 | |
588 | # Factoring default headers for most tests. | |
589 | ac_includes_default="\ | |
590 | #include <stdio.h> | |
7fbd9d09 | 591 | #ifdef HAVE_SYS_TYPES_H |
2f1a1aea FCE |
592 | # include <sys/types.h> |
593 | #endif | |
7fbd9d09 | 594 | #ifdef HAVE_SYS_STAT_H |
2f1a1aea FCE |
595 | # include <sys/stat.h> |
596 | #endif | |
7fbd9d09 | 597 | #ifdef STDC_HEADERS |
2f1a1aea FCE |
598 | # include <stdlib.h> |
599 | # include <stddef.h> | |
600 | #else | |
7fbd9d09 | 601 | # ifdef HAVE_STDLIB_H |
2f1a1aea FCE |
602 | # include <stdlib.h> |
603 | # endif | |
604 | #endif | |
7fbd9d09 FCE |
605 | #ifdef HAVE_STRING_H |
606 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
2f1a1aea FCE |
607 | # include <memory.h> |
608 | # endif | |
609 | # include <string.h> | |
610 | #endif | |
7fbd9d09 | 611 | #ifdef HAVE_STRINGS_H |
2f1a1aea FCE |
612 | # include <strings.h> |
613 | #endif | |
7fbd9d09 | 614 | #ifdef HAVE_INTTYPES_H |
2f1a1aea | 615 | # include <inttypes.h> |
2f1a1aea | 616 | #endif |
7fbd9d09 FCE |
617 | #ifdef HAVE_STDINT_H |
618 | # include <stdint.h> | |
619 | #endif | |
620 | #ifdef HAVE_UNISTD_H | |
2f1a1aea FCE |
621 | # include <unistd.h> |
622 | #endif" | |
623 | ||
8f223b3e | 624 | gt_needs= |
0710d850 DS |
625 | enable_option_checking=no |
626 | ac_subst_vars='am__EXEEXT_FALSE | |
627 | am__EXEEXT_TRUE | |
628 | LTLIBOBJS | |
629 | LIBOBJS | |
630 | subdirs | |
62c8a962 | 631 | STAP_PREFIX |
5c5a0bf2 DS |
632 | HAVE_HTTP_SUPPORT_FALSE |
633 | HAVE_HTTP_SUPPORT_TRUE | |
634 | uuid_LIBS | |
635 | uuid_CFLAGS | |
636 | libmicrohttpd_LIBS | |
637 | libmicrohttpd_CFLAGS | |
85b62eab | 638 | STAP_EXTRA_VERSION |
8f223b3e | 639 | LOCALEDIR |
62c8a962 | 640 | ENABLE_NLS |
26703c63 SM |
641 | HAVE_JAVA_FALSE |
642 | HAVE_JAVA_TRUE | |
9ac164fa | 643 | JAVADIR |
e9b0aba1 SM |
644 | have_jar |
645 | have_javac | |
51030d84 JS |
646 | HAVE_SELINUX_FALSE |
647 | HAVE_SELINUX_TRUE | |
648 | selinux_LIBS | |
649 | selinux_CFLAGS | |
f9794ee4 | 650 | support_section_question |
11ea78d6 FL |
651 | HAVE_MONITOR_LIBS_FALSE |
652 | HAVE_MONITOR_LIBS_TRUE | |
653 | ncurses_LIBS | |
654 | ncurses_CFLAGS | |
655 | jsonc_LIBS | |
656 | jsonc_CFLAGS | |
d7f07c29 DS |
657 | HAVE_PYTHON_PROBES_FALSE |
658 | HAVE_PYTHON_PROBES_TRUE | |
659 | HAVE_PYTHON3_PROBES_FALSE | |
660 | HAVE_PYTHON3_PROBES_TRUE | |
661 | PYTHON3_CPPFLAGS | |
662 | PYTHON3_CONFIG | |
663 | HAVE_PYTHON2_PROBES_FALSE | |
664 | HAVE_PYTHON2_PROBES_TRUE | |
665 | PYTHON_CPPFLAGS | |
666 | PYTHON_CONFIG | |
b0c670f4 FCE |
667 | BUILD_VIRT_FALSE |
668 | BUILD_VIRT_TRUE | |
42f767d0 JL |
669 | HAVE_LIBXML2_FALSE |
670 | HAVE_LIBXML2_TRUE | |
671 | libxml2_LIBS | |
672 | libxml2_CFLAGS | |
673 | HAVE_LIBVIRT_FALSE | |
674 | HAVE_LIBVIRT_TRUE | |
675 | libvirt_LIBS | |
676 | libvirt_CFLAGS | |
138bbe90 JS |
677 | HAVE_DYNINST_FALSE |
678 | HAVE_DYNINST_TRUE | |
679 | DYNINST_LDFLAGS | |
680 | DYNINST_CXXFLAGS | |
62cb4be9 | 681 | CXXCPP |
0710d850 | 682 | DATE |
97859b9d | 683 | staprun_LIBS |
0710d850 DS |
684 | stap_LIBS |
685 | elfutils_abs_srcdir | |
686 | BUILD_ELFUTILS_FALSE | |
687 | BUILD_ELFUTILS_TRUE | |
e5d623b1 | 688 | preferred_python |
9ac12b89 DS |
689 | HAVE_LIBREADLINE_FALSE |
690 | HAVE_LIBREADLINE_TRUE | |
691 | READLINE_LIBS | |
2dce8c42 DB |
692 | HAVE_AVAHI_FALSE |
693 | HAVE_AVAHI_TRUE | |
28f121c3 DEP |
694 | avahi_LIBS |
695 | avahi_CFLAGS | |
0710d850 DS |
696 | BUILD_SERVER_FALSE |
697 | BUILD_SERVER_TRUE | |
9ed47854 | 698 | dracutbindir |
2323b028 | 699 | dracutstap |
a0e2728a DB |
700 | HAVE_NSS_FALSE |
701 | HAVE_NSS_TRUE | |
28f121c3 | 702 | nss_LIBS |
0710d850 | 703 | nss_CFLAGS |
0710d850 DS |
704 | XMLTO_STRINGPARAM_FALSE |
705 | XMLTO_STRINGPARAM_TRUE | |
d9c42357 FL |
706 | BUILD_HTMLDOCS_FALSE |
707 | BUILD_HTMLDOCS_TRUE | |
a98010af AJ |
708 | HAVE_XMLTO_FALSE |
709 | HAVE_XMLTO_TRUE | |
327a760e FCE |
710 | HAVE_FOP_FALSE |
711 | HAVE_FOP_TRUE | |
712 | have_fop | |
d9c42357 | 713 | have_xmlto |
0710d850 DS |
714 | BUILD_REFDOCS_FALSE |
715 | BUILD_REFDOCS_TRUE | |
0710d850 DS |
716 | BUILD_DOCS_FALSE |
717 | BUILD_DOCS_TRUE | |
0710d850 DS |
718 | have_ps2pdf |
719 | have_dvips | |
720 | have_latex | |
721 | BUILD_CRASHMOD_FALSE | |
722 | BUILD_CRASHMOD_TRUE | |
723 | staplog_CPPFLAGS | |
724 | BUILD_TRANSLATOR_FALSE | |
725 | BUILD_TRANSLATOR_TRUE | |
726 | sqlite3_LIBS | |
1fbe397b FCE |
727 | sqlite3_CFLAGS |
728 | PKG_CONFIG_LIBDIR | |
729 | PKG_CONFIG_PATH | |
730 | PKG_CONFIG | |
0710d850 DS |
731 | PIECXXFLAGS |
732 | PIECFLAGS | |
733 | PIELDFLAGS | |
f5852d3a | 734 | HAVE_CXX11 |
e5d623b1 DS |
735 | py3execdir |
736 | python3dir | |
737 | PYTHON3_PLATFORM | |
738 | PYTHON3_EXEC_PREFIX | |
739 | PYTHON3_PREFIX | |
740 | PYTHON3_VERSION | |
741 | PYTHON3 | |
c16501a1 DS |
742 | pkgpyexecdir |
743 | pyexecdir | |
744 | pkgpythondir | |
745 | pythondir | |
746 | PYTHON_PLATFORM | |
747 | PYTHON_EXEC_PREFIX | |
748 | PYTHON_PREFIX | |
749 | PYTHON_VERSION | |
750 | PYTHON | |
e5d623b1 | 751 | PYTHON_UNKNOWN |
8f223b3e FCE |
752 | POSUB |
753 | LTLIBINTL | |
754 | LIBINTL | |
755 | INTLLIBS | |
756 | LTLIBICONV | |
757 | LIBICONV | |
42f767d0 | 758 | INTL_MACOSX_LIBS |
8f223b3e FCE |
759 | XGETTEXT_EXTRA_OPTIONS |
760 | MSGMERGE | |
761 | XGETTEXT_015 | |
762 | XGETTEXT | |
763 | GMSGFMT_015 | |
764 | MSGFMT_015 | |
765 | GMSGFMT | |
766 | MSGFMT | |
767 | GETTEXT_MACRO_VERSION | |
768 | USE_NLS | |
6fdbaaca | 769 | SED |
0710d850 | 770 | RANLIB |
0710d850 DS |
771 | am__fastdepCXX_FALSE |
772 | am__fastdepCXX_TRUE | |
773 | CXXDEPMODE | |
774 | ac_ct_CXX | |
775 | CXXFLAGS | |
776 | CXX | |
8f223b3e FCE |
777 | LN_S |
778 | EGREP | |
779 | GREP | |
780 | CPP | |
0710d850 DS |
781 | am__fastdepCC_FALSE |
782 | am__fastdepCC_TRUE | |
783 | CCDEPMODE | |
c66be968 | 784 | am__nodep |
0710d850 DS |
785 | AMDEPBACKSLASH |
786 | AMDEP_FALSE | |
787 | AMDEP_TRUE | |
788 | am__quote | |
789 | am__include | |
790 | DEPDIR | |
791 | OBJEXT | |
792 | EXEEXT | |
793 | ac_ct_CC | |
794 | CPPFLAGS | |
795 | LDFLAGS | |
796 | CFLAGS | |
797 | CC | |
d9e6d90b WC |
798 | MAINT |
799 | MAINTAINER_MODE_FALSE | |
800 | MAINTAINER_MODE_TRUE | |
0710d850 DS |
801 | AM_BACKSLASH |
802 | AM_DEFAULT_VERBOSITY | |
c66be968 JS |
803 | AM_DEFAULT_V |
804 | AM_V | |
0710d850 DS |
805 | am__untar |
806 | am__tar | |
807 | AMTAR | |
808 | am__leading_dot | |
809 | SET_MAKE | |
810 | AWK | |
811 | mkdir_p | |
7fbd9d09 | 812 | MKDIR_P |
0710d850 DS |
813 | INSTALL_STRIP_PROGRAM |
814 | STRIP | |
815 | install_sh | |
816 | MAKEINFO | |
817 | AUTOHEADER | |
818 | AUTOMAKE | |
819 | AUTOCONF | |
820 | ACLOCAL | |
821 | VERSION | |
822 | PACKAGE | |
823 | CYGPATH_W | |
824 | am__isrc | |
825 | INSTALL_DATA | |
826 | INSTALL_SCRIPT | |
827 | INSTALL_PROGRAM | |
2689a171 SM |
828 | target_os |
829 | target_vendor | |
830 | target_cpu | |
831 | target | |
832 | host_os | |
833 | host_vendor | |
834 | host_cpu | |
835 | host | |
836 | build_os | |
837 | build_vendor | |
838 | build_cpu | |
839 | build | |
0710d850 DS |
840 | target_alias |
841 | host_alias | |
842 | build_alias | |
843 | LIBS | |
844 | ECHO_T | |
845 | ECHO_N | |
846 | ECHO_C | |
847 | DEFS | |
848 | mandir | |
849 | localedir | |
850 | libdir | |
851 | psdir | |
852 | pdfdir | |
853 | dvidir | |
854 | htmldir | |
855 | infodir | |
856 | docdir | |
857 | oldincludedir | |
858 | includedir | |
859 | localstatedir | |
860 | sharedstatedir | |
861 | sysconfdir | |
862 | datadir | |
863 | datarootdir | |
864 | libexecdir | |
865 | sbindir | |
866 | bindir | |
867 | program_transform_name | |
868 | prefix | |
869 | exec_prefix | |
1ef0423a | 870 | PACKAGE_URL |
0710d850 DS |
871 | PACKAGE_BUGREPORT |
872 | PACKAGE_STRING | |
873 | PACKAGE_VERSION | |
874 | PACKAGE_TARNAME | |
875 | PACKAGE_NAME | |
876 | PATH_SEPARATOR | |
877 | SHELL' | |
2f1a1aea | 878 | ac_subst_files='' |
0710d850 DS |
879 | ac_user_opts=' |
880 | enable_option_checking | |
94eb87d1 | 881 | enable_silent_rules |
d9e6d90b | 882 | enable_maintainer_mode |
0710d850 | 883 | enable_dependency_tracking |
97859b9d | 884 | enable_largefile |
8f223b3e FCE |
885 | enable_nls |
886 | with_gnu_ld | |
887 | enable_rpath | |
888 | with_libiconv_prefix | |
889 | with_libintl_prefix | |
0710d850 | 890 | enable_prologues |
0f5d597d | 891 | enable_sdt_probes |
0710d850 DS |
892 | enable_ssp |
893 | enable_pie | |
894 | enable_sqlite | |
895 | enable_translator | |
896 | enable_crash | |
897 | enable_docs | |
898 | enable_refdocs | |
d9c42357 | 899 | enable_htmldocs |
28f121c3 | 900 | with_nss |
2323b028 | 901 | with_dracutstap |
9ed47854 | 902 | with_dracutbindir |
0710d850 | 903 | enable_server |
28f121c3 | 904 | with_avahi |
0710d850 | 905 | with_rpm |
0a742545 | 906 | with_python3 |
0710d850 | 907 | with_elfutils |
138bbe90 | 908 | with_dyninst |
b0c670f4 | 909 | enable_virt |
d7f07c29 DS |
910 | with_python2_probes |
911 | with_python3_probes | |
51030d84 | 912 | with_selinux |
26703c63 | 913 | with_java |
85b62eab | 914 | with_extra_version |
5c5a0bf2 | 915 | enable_http |
0710d850 | 916 | ' |
7fbd9d09 FCE |
917 | ac_precious_vars='build_alias |
918 | host_alias | |
919 | target_alias | |
920 | CC | |
921 | CFLAGS | |
922 | LDFLAGS | |
923 | LIBS | |
924 | CPPFLAGS | |
8f223b3e | 925 | CPP |
7fbd9d09 FCE |
926 | CXX |
927 | CXXFLAGS | |
928 | CCC | |
c16501a1 | 929 | PYTHON |
1087b83f | 930 | PKG_CONFIG |
5d4aa1f5 FCE |
931 | PKG_CONFIG_PATH |
932 | PKG_CONFIG_LIBDIR | |
1fbe397b FCE |
933 | sqlite3_CFLAGS |
934 | sqlite3_LIBS | |
28f121c3 DEP |
935 | nss_CFLAGS |
936 | nss_LIBS | |
937 | avahi_CFLAGS | |
938 | avahi_LIBS | |
51030d84 | 939 | CXXCPP |
42f767d0 JL |
940 | libvirt_CFLAGS |
941 | libvirt_LIBS | |
942 | libxml2_CFLAGS | |
943 | libxml2_LIBS | |
11ea78d6 FL |
944 | jsonc_CFLAGS |
945 | jsonc_LIBS | |
946 | ncurses_CFLAGS | |
947 | ncurses_LIBS | |
51030d84 | 948 | selinux_CFLAGS |
5c5a0bf2 DS |
949 | selinux_LIBS |
950 | libmicrohttpd_CFLAGS | |
951 | libmicrohttpd_LIBS | |
952 | uuid_CFLAGS | |
953 | uuid_LIBS' | |
97859b9d | 954 | ac_subdirs_all='testsuite' |
2f1a1aea FCE |
955 | |
956 | # Initialize some variables set by options. | |
957 | ac_init_help= | |
958 | ac_init_version=false | |
0710d850 DS |
959 | ac_unrecognized_opts= |
960 | ac_unrecognized_sep= | |
2f1a1aea FCE |
961 | # The variables have the same names as the options, with |
962 | # dashes changed to underlines. | |
963 | cache_file=/dev/null | |
964 | exec_prefix=NONE | |
965 | no_create= | |
966 | no_recursion= | |
967 | prefix=NONE | |
968 | program_prefix=NONE | |
969 | program_suffix=NONE | |
970 | program_transform_name=s,x,x, | |
971 | silent= | |
972 | site= | |
973 | srcdir= | |
974 | verbose= | |
975 | x_includes=NONE | |
976 | x_libraries=NONE | |
977 | ||
978 | # Installation directory options. | |
979 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
980 | # and all the variables that are supposed to be based on exec_prefix | |
981 | # by default will actually change. | |
982 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7fbd9d09 | 983 | # (The list follows the same order as the GNU Coding Standards.) |
2f1a1aea FCE |
984 | bindir='${exec_prefix}/bin' |
985 | sbindir='${exec_prefix}/sbin' | |
986 | libexecdir='${exec_prefix}/libexec' | |
7fbd9d09 FCE |
987 | datarootdir='${prefix}/share' |
988 | datadir='${datarootdir}' | |
2f1a1aea FCE |
989 | sysconfdir='${prefix}/etc' |
990 | sharedstatedir='${prefix}/com' | |
991 | localstatedir='${prefix}/var' | |
2f1a1aea FCE |
992 | includedir='${prefix}/include' |
993 | oldincludedir='/usr/include' | |
7fbd9d09 FCE |
994 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
995 | infodir='${datarootdir}/info' | |
996 | htmldir='${docdir}' | |
997 | dvidir='${docdir}' | |
998 | pdfdir='${docdir}' | |
999 | psdir='${docdir}' | |
1000 | libdir='${exec_prefix}/lib' | |
1001 | localedir='${datarootdir}/locale' | |
1002 | mandir='${datarootdir}/man' | |
2f1a1aea FCE |
1003 | |
1004 | ac_prev= | |
7fbd9d09 | 1005 | ac_dashdash= |
2f1a1aea FCE |
1006 | for ac_option |
1007 | do | |
1008 | # If the previous option needs an argument, assign it. | |
1009 | if test -n "$ac_prev"; then | |
7fbd9d09 | 1010 | eval $ac_prev=\$ac_option |
2f1a1aea FCE |
1011 | ac_prev= |
1012 | continue | |
1013 | fi | |
1014 | ||
7fbd9d09 | 1015 | case $ac_option in |
c3de29bd LB |
1016 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
1017 | *=) ac_optarg= ;; | |
1018 | *) ac_optarg=yes ;; | |
7fbd9d09 | 1019 | esac |
2f1a1aea FCE |
1020 | |
1021 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
1022 | ||
7fbd9d09 FCE |
1023 | case $ac_dashdash$ac_option in |
1024 | --) | |
1025 | ac_dashdash=yes ;; | |
2f1a1aea FCE |
1026 | |
1027 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
1028 | ac_prev=bindir ;; | |
1029 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1030 | bindir=$ac_optarg ;; | |
1031 | ||
1032 | -build | --build | --buil | --bui | --bu) | |
1033 | ac_prev=build_alias ;; | |
1034 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
1035 | build_alias=$ac_optarg ;; | |
1036 | ||
1037 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1038 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1039 | ac_prev=cache_file ;; | |
1040 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1041 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1042 | cache_file=$ac_optarg ;; | |
1043 | ||
1044 | --config-cache | -C) | |
1045 | cache_file=config.cache ;; | |
1046 | ||
7fbd9d09 | 1047 | -datadir | --datadir | --datadi | --datad) |
2f1a1aea | 1048 | ac_prev=datadir ;; |
7fbd9d09 | 1049 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
2f1a1aea FCE |
1050 | datadir=$ac_optarg ;; |
1051 | ||
7fbd9d09 FCE |
1052 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1053 | | --dataroo | --dataro | --datar) | |
1054 | ac_prev=datarootdir ;; | |
1055 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1056 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1057 | datarootdir=$ac_optarg ;; | |
1058 | ||
2f1a1aea | 1059 | -disable-* | --disable-*) |
0710d850 | 1060 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
2f1a1aea | 1061 | # Reject names that are not valid shell variable names. |
0710d850 | 1062 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
5d4aa1f5 | 1063 | as_fn_error $? "invalid feature name: $ac_useropt" |
0710d850 DS |
1064 | ac_useropt_orig=$ac_useropt |
1065 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1066 | case $ac_user_opts in | |
1067 | *" | |
1068 | "enable_$ac_useropt" | |
1069 | "*) ;; | |
1070 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1071 | ac_unrecognized_sep=', ';; | |
1072 | esac | |
1073 | eval enable_$ac_useropt=no ;; | |
7fbd9d09 FCE |
1074 | |
1075 | -docdir | --docdir | --docdi | --doc | --do) | |
1076 | ac_prev=docdir ;; | |
1077 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1078 | docdir=$ac_optarg ;; | |
1079 | ||
1080 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1081 | ac_prev=dvidir ;; | |
1082 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1083 | dvidir=$ac_optarg ;; | |
2f1a1aea FCE |
1084 | |
1085 | -enable-* | --enable-*) | |
0710d850 | 1086 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
2f1a1aea | 1087 | # Reject names that are not valid shell variable names. |
0710d850 | 1088 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
5d4aa1f5 | 1089 | as_fn_error $? "invalid feature name: $ac_useropt" |
0710d850 DS |
1090 | ac_useropt_orig=$ac_useropt |
1091 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1092 | case $ac_user_opts in | |
1093 | *" | |
1094 | "enable_$ac_useropt" | |
1095 | "*) ;; | |
1096 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1097 | ac_unrecognized_sep=', ';; | |
1098 | esac | |
1099 | eval enable_$ac_useropt=\$ac_optarg ;; | |
2f1a1aea FCE |
1100 | |
1101 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1102 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1103 | | --exec | --exe | --ex) | |
1104 | ac_prev=exec_prefix ;; | |
1105 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1106 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1107 | | --exec=* | --exe=* | --ex=*) | |
1108 | exec_prefix=$ac_optarg ;; | |
1109 | ||
1110 | -gas | --gas | --ga | --g) | |
1111 | # Obsolete; use --with-gas. | |
1112 | with_gas=yes ;; | |
1113 | ||
1114 | -help | --help | --hel | --he | -h) | |
1115 | ac_init_help=long ;; | |
1116 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1117 | ac_init_help=recursive ;; | |
1118 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1119 | ac_init_help=short ;; | |
1120 | ||
1121 | -host | --host | --hos | --ho) | |
1122 | ac_prev=host_alias ;; | |
1123 | -host=* | --host=* | --hos=* | --ho=*) | |
1124 | host_alias=$ac_optarg ;; | |
1125 | ||
7fbd9d09 FCE |
1126 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1127 | ac_prev=htmldir ;; | |
1128 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1129 | | --ht=*) | |
1130 | htmldir=$ac_optarg ;; | |
1131 | ||
2f1a1aea FCE |
1132 | -includedir | --includedir | --includedi | --included | --include \ |
1133 | | --includ | --inclu | --incl | --inc) | |
1134 | ac_prev=includedir ;; | |
1135 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1136 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1137 | includedir=$ac_optarg ;; | |
1138 | ||
1139 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1140 | ac_prev=infodir ;; | |
1141 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1142 | infodir=$ac_optarg ;; | |
1143 | ||
1144 | -libdir | --libdir | --libdi | --libd) | |
1145 | ac_prev=libdir ;; | |
1146 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1147 | libdir=$ac_optarg ;; | |
1148 | ||
1149 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1150 | | --libexe | --libex | --libe) | |
1151 | ac_prev=libexecdir ;; | |
1152 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1153 | | --libexe=* | --libex=* | --libe=*) | |
1154 | libexecdir=$ac_optarg ;; | |
1155 | ||
7fbd9d09 FCE |
1156 | -localedir | --localedir | --localedi | --localed | --locale) |
1157 | ac_prev=localedir ;; | |
1158 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1159 | localedir=$ac_optarg ;; | |
1160 | ||
2f1a1aea | 1161 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7fbd9d09 | 1162 | | --localstate | --localstat | --localsta | --localst | --locals) |
2f1a1aea FCE |
1163 | ac_prev=localstatedir ;; |
1164 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7fbd9d09 | 1165 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
2f1a1aea FCE |
1166 | localstatedir=$ac_optarg ;; |
1167 | ||
1168 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1169 | ac_prev=mandir ;; | |
1170 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1171 | mandir=$ac_optarg ;; | |
1172 | ||
1173 | -nfp | --nfp | --nf) | |
1174 | # Obsolete; use --without-fp. | |
1175 | with_fp=no ;; | |
1176 | ||
1177 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1178 | | --no-cr | --no-c | -n) | |
1179 | no_create=yes ;; | |
1180 | ||
1181 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1182 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1183 | no_recursion=yes ;; | |
1184 | ||
1185 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1186 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1187 | | --oldin | --oldi | --old | --ol | --o) | |
1188 | ac_prev=oldincludedir ;; | |
1189 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1190 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1191 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1192 | oldincludedir=$ac_optarg ;; | |
1193 | ||
1194 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1195 | ac_prev=prefix ;; | |
1196 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1197 | prefix=$ac_optarg ;; | |
1198 | ||
1199 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1200 | | --program-pre | --program-pr | --program-p) | |
1201 | ac_prev=program_prefix ;; | |
1202 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1203 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1204 | program_prefix=$ac_optarg ;; | |
1205 | ||
1206 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1207 | | --program-suf | --program-su | --program-s) | |
1208 | ac_prev=program_suffix ;; | |
1209 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1210 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1211 | program_suffix=$ac_optarg ;; | |
1212 | ||
1213 | -program-transform-name | --program-transform-name \ | |
1214 | | --program-transform-nam | --program-transform-na \ | |
1215 | | --program-transform-n | --program-transform- \ | |
1216 | | --program-transform | --program-transfor \ | |
1217 | | --program-transfo | --program-transf \ | |
1218 | | --program-trans | --program-tran \ | |
1219 | | --progr-tra | --program-tr | --program-t) | |
1220 | ac_prev=program_transform_name ;; | |
1221 | -program-transform-name=* | --program-transform-name=* \ | |
1222 | | --program-transform-nam=* | --program-transform-na=* \ | |
1223 | | --program-transform-n=* | --program-transform-=* \ | |
1224 | | --program-transform=* | --program-transfor=* \ | |
1225 | | --program-transfo=* | --program-transf=* \ | |
1226 | | --program-trans=* | --program-tran=* \ | |
1227 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1228 | program_transform_name=$ac_optarg ;; | |
1229 | ||
7fbd9d09 FCE |
1230 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1231 | ac_prev=pdfdir ;; | |
1232 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1233 | pdfdir=$ac_optarg ;; | |
1234 | ||
1235 | -psdir | --psdir | --psdi | --psd | --ps) | |
1236 | ac_prev=psdir ;; | |
1237 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1238 | psdir=$ac_optarg ;; | |
1239 | ||
2f1a1aea FCE |
1240 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1241 | | -silent | --silent | --silen | --sile | --sil) | |
1242 | silent=yes ;; | |
1243 | ||
1244 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1245 | ac_prev=sbindir ;; | |
1246 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1247 | | --sbi=* | --sb=*) | |
1248 | sbindir=$ac_optarg ;; | |
1249 | ||
1250 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1251 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1252 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1253 | | --sha | --sh) | |
1254 | ac_prev=sharedstatedir ;; | |
1255 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1256 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1257 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1258 | | --sha=* | --sh=*) | |
1259 | sharedstatedir=$ac_optarg ;; | |
1260 | ||
1261 | -site | --site | --sit) | |
1262 | ac_prev=site ;; | |
1263 | -site=* | --site=* | --sit=*) | |
1264 | site=$ac_optarg ;; | |
1265 | ||
1266 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1267 | ac_prev=srcdir ;; | |
1268 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1269 | srcdir=$ac_optarg ;; | |
1270 | ||
1271 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1272 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1273 | ac_prev=sysconfdir ;; | |
1274 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1275 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1276 | sysconfdir=$ac_optarg ;; | |
1277 | ||
1278 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1279 | ac_prev=target_alias ;; | |
1280 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1281 | target_alias=$ac_optarg ;; | |
1282 | ||
1283 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1284 | verbose=yes ;; | |
1285 | ||
1286 | -version | --version | --versio | --versi | --vers | -V) | |
1287 | ac_init_version=: ;; | |
1288 | ||
1289 | -with-* | --with-*) | |
0710d850 | 1290 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
2f1a1aea | 1291 | # Reject names that are not valid shell variable names. |
0710d850 | 1292 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
5d4aa1f5 | 1293 | as_fn_error $? "invalid package name: $ac_useropt" |
0710d850 DS |
1294 | ac_useropt_orig=$ac_useropt |
1295 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1296 | case $ac_user_opts in | |
1297 | *" | |
1298 | "with_$ac_useropt" | |
1299 | "*) ;; | |
1300 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1301 | ac_unrecognized_sep=', ';; | |
1302 | esac | |
1303 | eval with_$ac_useropt=\$ac_optarg ;; | |
2f1a1aea FCE |
1304 | |
1305 | -without-* | --without-*) | |
0710d850 | 1306 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
2f1a1aea | 1307 | # Reject names that are not valid shell variable names. |
0710d850 | 1308 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
5d4aa1f5 | 1309 | as_fn_error $? "invalid package name: $ac_useropt" |
0710d850 DS |
1310 | ac_useropt_orig=$ac_useropt |
1311 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1312 | case $ac_user_opts in | |
1313 | *" | |
1314 | "with_$ac_useropt" | |
1315 | "*) ;; | |
1316 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1317 | ac_unrecognized_sep=', ';; | |
1318 | esac | |
1319 | eval with_$ac_useropt=no ;; | |
2f1a1aea FCE |
1320 | |
1321 | --x) | |
1322 | # Obsolete; use --with-x. | |
1323 | with_x=yes ;; | |
1324 | ||
1325 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1326 | | --x-incl | --x-inc | --x-in | --x-i) | |
1327 | ac_prev=x_includes ;; | |
1328 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1329 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1330 | x_includes=$ac_optarg ;; | |
1331 | ||
1332 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1333 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1334 | ac_prev=x_libraries ;; | |
1335 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1336 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1337 | x_libraries=$ac_optarg ;; | |
1338 | ||
5d4aa1f5 FCE |
1339 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1340 | Try \`$0 --help' for more information" | |
2f1a1aea FCE |
1341 | ;; |
1342 | ||
1343 | *=*) | |
1344 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1345 | # Reject names that are not valid shell variable names. | |
1ef0423a FCE |
1346 | case $ac_envvar in #( |
1347 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
5d4aa1f5 | 1348 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
1ef0423a | 1349 | esac |
7fbd9d09 | 1350 | eval $ac_envvar=\$ac_optarg |
2f1a1aea FCE |
1351 | export $ac_envvar ;; |
1352 | ||
1353 | *) | |
1354 | # FIXME: should be removed in autoconf 3.0. | |
0710d850 | 1355 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
2f1a1aea | 1356 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
0710d850 | 1357 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
c3de29bd | 1358 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
2f1a1aea FCE |
1359 | ;; |
1360 | ||
1361 | esac | |
1362 | done | |
1363 | ||
1364 | if test -n "$ac_prev"; then | |
1365 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
5d4aa1f5 | 1366 | as_fn_error $? "missing argument to $ac_option" |
2f1a1aea FCE |
1367 | fi |
1368 | ||
0710d850 DS |
1369 | if test -n "$ac_unrecognized_opts"; then |
1370 | case $enable_option_checking in | |
1371 | no) ;; | |
5d4aa1f5 | 1372 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
0710d850 DS |
1373 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1374 | esac | |
1375 | fi | |
1376 | ||
1377 | # Check all directory arguments for consistency. | |
7fbd9d09 FCE |
1378 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1379 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1380 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1381 | libdir localedir mandir | |
818ba2bc | 1382 | do |
7fbd9d09 | 1383 | eval ac_val=\$$ac_var |
0710d850 DS |
1384 | # Remove trailing slashes. |
1385 | case $ac_val in | |
1386 | */ ) | |
1387 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1388 | eval $ac_var=\$ac_val;; | |
1389 | esac | |
1390 | # Be sure to have absolute directory names. | |
8ae7a94a | 1391 | case $ac_val in |
7fbd9d09 FCE |
1392 | [\\/$]* | ?:[\\/]* ) continue;; |
1393 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
2f1a1aea | 1394 | esac |
5d4aa1f5 | 1395 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
2f1a1aea FCE |
1396 | done |
1397 | ||
1398 | # There might be people who depend on the old broken behavior: `$host' | |
1399 | # used to hold the argument of --host etc. | |
1400 | # FIXME: To remove some day. | |
1401 | build=$build_alias | |
1402 | host=$host_alias | |
1403 | target=$target_alias | |
1404 | ||
1405 | # FIXME: To remove some day. | |
1406 | if test "x$host_alias" != x; then | |
1407 | if test "x$build_alias" = x; then | |
1408 | cross_compiling=maybe | |
2f1a1aea FCE |
1409 | elif test "x$build_alias" != "x$host_alias"; then |
1410 | cross_compiling=yes | |
1411 | fi | |
1412 | fi | |
1413 | ||
1414 | ac_tool_prefix= | |
1415 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1416 | ||
1417 | test "$silent" = yes && exec 6>/dev/null | |
1418 | ||
1419 | ||
7fbd9d09 FCE |
1420 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1421 | ac_ls_di=`ls -di .` && | |
1422 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
5d4aa1f5 | 1423 | as_fn_error $? "working directory cannot be determined" |
7fbd9d09 | 1424 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
5d4aa1f5 | 1425 | as_fn_error $? "pwd does not report name of working directory" |
7fbd9d09 FCE |
1426 | |
1427 | ||
2f1a1aea FCE |
1428 | # Find the source files, if location was not specified. |
1429 | if test -z "$srcdir"; then | |
1430 | ac_srcdir_defaulted=yes | |
7fbd9d09 | 1431 | # Try the directory containing this script, then the parent directory. |
0710d850 DS |
1432 | ac_confdir=`$as_dirname -- "$as_myself" || |
1433 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1434 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1435 | X"$as_myself" : 'X\(//\)$' \| \ | |
1436 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1437 | $as_echo X"$as_myself" | | |
7fbd9d09 FCE |
1438 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1439 | s//\1/ | |
1440 | q | |
1441 | } | |
1442 | /^X\(\/\/\)[^/].*/{ | |
1443 | s//\1/ | |
1444 | q | |
1445 | } | |
1446 | /^X\(\/\/\)$/{ | |
1447 | s//\1/ | |
1448 | q | |
1449 | } | |
1450 | /^X\(\/\).*/{ | |
1451 | s//\1/ | |
1452 | q | |
1453 | } | |
1454 | s/.*/./; q'` | |
2f1a1aea | 1455 | srcdir=$ac_confdir |
7fbd9d09 | 1456 | if test ! -r "$srcdir/$ac_unique_file"; then |
2f1a1aea FCE |
1457 | srcdir=.. |
1458 | fi | |
1459 | else | |
1460 | ac_srcdir_defaulted=no | |
1461 | fi | |
7fbd9d09 FCE |
1462 | if test ! -r "$srcdir/$ac_unique_file"; then |
1463 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
5d4aa1f5 | 1464 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
8ae7a94a | 1465 | fi |
7fbd9d09 FCE |
1466 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1467 | ac_abs_confdir=`( | |
5d4aa1f5 | 1468 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
7fbd9d09 FCE |
1469 | pwd)` |
1470 | # When building in place, set srcdir=. | |
1471 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1472 | srcdir=. | |
1473 | fi | |
1474 | # Remove unnecessary trailing slashes from srcdir. | |
1475 | # Double slashes in file names in object file debugging info | |
1476 | # mess up M-x gdb in Emacs. | |
1477 | case $srcdir in | |
1478 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1479 | esac | |
1480 | for ac_var in $ac_precious_vars; do | |
1481 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1482 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1483 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1484 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1485 | done | |
2f1a1aea FCE |
1486 | |
1487 | # | |
1488 | # Report the --help message. | |
1489 | # | |
1490 | if test "$ac_init_help" = "long"; then | |
1491 | # Omit some internal or obsolete options to make the list less imposing. | |
1492 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1493 | cat <<_ACEOF | |
9c043a41 | 1494 | \`configure' configures systemtap 3.2 to adapt to many kinds of systems. |
2f1a1aea FCE |
1495 | |
1496 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1497 | ||
1498 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1499 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1500 | ||
1501 | Defaults for the options are specified in brackets. | |
1502 | ||
1503 | Configuration: | |
1504 | -h, --help display this help and exit | |
1505 | --help=short display options specific to this package | |
1506 | --help=recursive display the short help of all the included packages | |
1507 | -V, --version display version information and exit | |
5d4aa1f5 | 1508 | -q, --quiet, --silent do not print \`checking ...' messages |
2f1a1aea FCE |
1509 | --cache-file=FILE cache test results in FILE [disabled] |
1510 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1511 | -n, --no-create do not create output files | |
1512 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1513 | ||
2f1a1aea FCE |
1514 | Installation directories: |
1515 | --prefix=PREFIX install architecture-independent files in PREFIX | |
0710d850 | 1516 | [$ac_default_prefix] |
2f1a1aea | 1517 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
0710d850 | 1518 | [PREFIX] |
2f1a1aea FCE |
1519 | |
1520 | By default, \`make install' will install all the files in | |
1521 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1522 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1523 | for instance \`--prefix=\$HOME'. | |
1524 | ||
1525 | For better control, use the options below. | |
1526 | ||
1527 | Fine tuning of the installation directories: | |
0710d850 DS |
1528 | --bindir=DIR user executables [EPREFIX/bin] |
1529 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1530 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1531 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1532 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1533 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1534 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1535 | --includedir=DIR C header files [PREFIX/include] | |
1536 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1537 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1538 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1539 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1540 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1541 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1542 | --docdir=DIR documentation root [DATAROOTDIR/doc/systemtap] | |
1543 | --htmldir=DIR html documentation [DOCDIR] | |
1544 | --dvidir=DIR dvi documentation [DOCDIR] | |
1545 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1546 | --psdir=DIR ps documentation [DOCDIR] | |
2f1a1aea FCE |
1547 | _ACEOF |
1548 | ||
1549 | cat <<\_ACEOF | |
1550 | ||
1551 | Program names: | |
1552 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1553 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1554 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
8f223b3e FCE |
1555 | |
1556 | System types: | |
1557 | --build=BUILD configure for building on BUILD [guessed] | |
1558 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
2689a171 | 1559 | --target=TARGET configure for building compilers for TARGET [HOST] |
2f1a1aea FCE |
1560 | _ACEOF |
1561 | fi | |
1562 | ||
1563 | if test -n "$ac_init_help"; then | |
1564 | case $ac_init_help in | |
9c043a41 | 1565 | short | recursive ) echo "Configuration of systemtap 3.2:";; |
2f1a1aea FCE |
1566 | esac |
1567 | cat <<\_ACEOF | |
1568 | ||
1569 | Optional Features: | |
0710d850 | 1570 | --disable-option-checking ignore unrecognized --enable/--with options |
2f1a1aea FCE |
1571 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1572 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
d9e6d90b WC |
1573 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1574 | --disable-silent-rules verbose build output (undo: "make V=0") | |
8eef2738 LB |
1575 | --enable-maintainer-mode |
1576 | enable make rules and dependencies not useful (and | |
1577 | sometimes confusing) to the casual installer | |
8eef2738 LB |
1578 | --enable-dependency-tracking |
1579 | do not reject slow dependency extractors | |
1580 | --disable-dependency-tracking | |
1581 | speeds up one-time build | |
97859b9d | 1582 | --disable-largefile omit support for large files |
8f223b3e FCE |
1583 | --disable-nls do not use Native Language Support |
1584 | --disable-rpath do not hardcode runtime library paths | |
44f75386 | 1585 | --enable-prologues make -P prologue-searching default |
0f5d597d | 1586 | --disable-sdt-probes disable process.mark probes in stap, staprun, stapio |
bbfd8c1a | 1587 | --disable-ssp disable gcc stack-protector |
882ddac1 | 1588 | --enable-pie enable position-independent-executable |
9921a199 | 1589 | --enable-sqlite build with sqlite support |
6d14a4a9 | 1590 | --disable-translator build only runtime utilities |
564eb0a8 DS |
1591 | --enable-crash[=DIRECTORY] |
1592 | enable crash extension (default is disabled). | |
1593 | Optional DIRECTORY is the path to the crash header | |
1594 | file (needed if installed in a non-standard | |
1595 | location). | |
465e8fbf FCE |
1596 | --enable-docs enable building documentation (default on if latex |
1597 | etc. found). | |
92aff3c7 | 1598 | --enable-refdocs enable building reference documentation (default on |
1ed33130 | 1599 | if other documentation built). |
d9c42357 | 1600 | --enable-htmldocs enable building html documentation (default off). |
a0e2728a DB |
1601 | --enable-server enable building of stap-server (default on if nss |
1602 | etc. found). | |
b0c670f4 FCE |
1603 | --enable-virt enable building of stapvirt support (default on if |
1604 | libvirt etc. found). | |
5c5a0bf2 DS |
1605 | --disable-http Disable building http web compilation service, even |
1606 | if we could | |
2f1a1aea | 1607 | |
4d9087fc RM |
1608 | Optional Packages: |
1609 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1610 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
42f767d0 | 1611 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
8f223b3e FCE |
1612 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
1613 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
1614 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib | |
1615 | --without-libintl-prefix don't search for libintl in includedir and libdir | |
28f121c3 | 1616 | --without-nss Do not use NSS even if present |
2323b028 | 1617 | --with-dracutstap=DIR Install dracut module files in DIR |
9ed47854 | 1618 | --with-dracutbindir=DIR Use the dracut binary located in DIR |
28f121c3 | 1619 | --without-avahi Do not use Avahi even if present |
0f5d597d | 1620 | --with-rpm query rpm database for missing debuginfos |
0a742545 | 1621 | --with-python3 prefer /usr/bin/python3 |
4d9087fc RM |
1622 | --with-elfutils=DIRECTORY |
1623 | find elfutils source code in DIRECTORY | |
138bbe90 JS |
1624 | --with-dyninst=DIRECTORY |
1625 | find dyninst headers/libraries in DIRECTORY | |
d7f07c29 DS |
1626 | --without-python2-probes |
1627 | Disable building python version 2 probe support, | |
1628 | even if it is available | |
1629 | --without-python3-probes | |
1630 | Disable building python version 3 probe support, | |
1631 | even if it is available | |
51030d84 | 1632 | --without-selinux Do not use libselinux even if present |
26703c63 SM |
1633 | --with-java=DIRECTORY Specify JDK directory to compile libHelperSDT.so |
1634 | against (default is /usr/lib/jvm/java) | |
85b62eab FCE |
1635 | --with-extra-version=STRING |
1636 | Add STRING to stap -V version | |
4d9087fc | 1637 | |
2f1a1aea FCE |
1638 | Some influential environment variables: |
1639 | CC C compiler command | |
1640 | CFLAGS C compiler flags | |
1641 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1642 | nonstandard directory <lib dir> | |
7fbd9d09 | 1643 | LIBS libraries to pass to the linker, e.g. -l<library> |
1ef0423a | 1644 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
7fbd9d09 | 1645 | you have headers in a nonstandard directory <include dir> |
8f223b3e | 1646 | CPP C preprocessor |
2f1a1aea FCE |
1647 | CXX C++ compiler command |
1648 | CXXFLAGS C++ compiler flags | |
c16501a1 | 1649 | PYTHON the Python interpreter |
1087b83f | 1650 | PKG_CONFIG path to pkg-config utility |
5d4aa1f5 FCE |
1651 | PKG_CONFIG_PATH |
1652 | directories to add to pkg-config's search path | |
1653 | PKG_CONFIG_LIBDIR | |
1654 | path overriding pkg-config's built-in search path | |
1fbe397b FCE |
1655 | sqlite3_CFLAGS |
1656 | C compiler flags for sqlite3, overriding pkg-config | |
1657 | sqlite3_LIBS | |
1658 | linker flags for sqlite3, overriding pkg-config | |
28f121c3 DEP |
1659 | nss_CFLAGS C compiler flags for nss, overriding pkg-config |
1660 | nss_LIBS linker flags for nss, overriding pkg-config | |
1661 | avahi_CFLAGS | |
1662 | C compiler flags for avahi, overriding pkg-config | |
1663 | avahi_LIBS linker flags for avahi, overriding pkg-config | |
f8a49389 | 1664 | CXXCPP C++ preprocessor |
42f767d0 JL |
1665 | libvirt_CFLAGS |
1666 | C compiler flags for libvirt, overriding pkg-config | |
1667 | libvirt_LIBS | |
1668 | linker flags for libvirt, overriding pkg-config | |
1669 | libxml2_CFLAGS | |
1670 | C compiler flags for libxml2, overriding pkg-config | |
1671 | libxml2_LIBS | |
1672 | linker flags for libxml2, overriding pkg-config | |
11ea78d6 FL |
1673 | jsonc_CFLAGS |
1674 | C compiler flags for jsonc, overriding pkg-config | |
1675 | jsonc_LIBS linker flags for jsonc, overriding pkg-config | |
1676 | ncurses_CFLAGS | |
1677 | C compiler flags for ncurses, overriding pkg-config | |
1678 | ncurses_LIBS | |
1679 | linker flags for ncurses, overriding pkg-config | |
51030d84 JS |
1680 | selinux_CFLAGS |
1681 | C compiler flags for selinux, overriding pkg-config | |
1682 | selinux_LIBS | |
1683 | linker flags for selinux, overriding pkg-config | |
5c5a0bf2 DS |
1684 | libmicrohttpd_CFLAGS |
1685 | C compiler flags for libmicrohttpd, overriding pkg-config | |
1686 | libmicrohttpd_LIBS | |
1687 | linker flags for libmicrohttpd, overriding pkg-config | |
1688 | uuid_CFLAGS C compiler flags for uuid, overriding pkg-config | |
1689 | uuid_LIBS linker flags for uuid, overriding pkg-config | |
2f1a1aea FCE |
1690 | |
1691 | Use these variables to override the choices made by `configure' or to help | |
1692 | it to find libraries and programs with nonstandard names/locations. | |
1693 | ||
306dd4f8 | 1694 | Report bugs to <systemtap@sourceware.org>. |
2f1a1aea | 1695 | _ACEOF |
7fbd9d09 | 1696 | ac_status=$? |
2f1a1aea FCE |
1697 | fi |
1698 | ||
1699 | if test "$ac_init_help" = "recursive"; then | |
1700 | # If there are subdirs, report their specific --help. | |
2f1a1aea | 1701 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
0710d850 DS |
1702 | test -d "$ac_dir" || |
1703 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1704 | continue | |
2f1a1aea FCE |
1705 | ac_builddir=. |
1706 | ||
7fbd9d09 FCE |
1707 | case "$ac_dir" in |
1708 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1709 | *) | |
0710d850 | 1710 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7fbd9d09 | 1711 | # A ".." for each directory in $ac_dir_suffix. |
0710d850 | 1712 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7fbd9d09 FCE |
1713 | case $ac_top_builddir_sub in |
1714 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1715 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1716 | esac ;; | |
1717 | esac | |
1718 | ac_abs_top_builddir=$ac_pwd | |
1719 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1720 | # for backward compatibility: | |
1721 | ac_top_builddir=$ac_top_build_prefix | |
2f1a1aea FCE |
1722 | |
1723 | case $srcdir in | |
7fbd9d09 | 1724 | .) # We are building in place. |
2f1a1aea | 1725 | ac_srcdir=. |
7fbd9d09 FCE |
1726 | ac_top_srcdir=$ac_top_builddir_sub |
1727 | ac_abs_top_srcdir=$ac_pwd ;; | |
1728 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
2f1a1aea | 1729 | ac_srcdir=$srcdir$ac_dir_suffix; |
7fbd9d09 FCE |
1730 | ac_top_srcdir=$srcdir |
1731 | ac_abs_top_srcdir=$srcdir ;; | |
1732 | *) # Relative name. | |
1733 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1734 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1735 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
818ba2bc | 1736 | esac |
7fbd9d09 FCE |
1737 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1738 | ||
1739 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1740 | # Check for guested configure. | |
1741 | if test -f "$ac_srcdir/configure.gnu"; then | |
1742 | echo && | |
1743 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1744 | elif test -f "$ac_srcdir/configure"; then | |
1745 | echo && | |
1746 | $SHELL "$ac_srcdir/configure" --help=recursive | |
2f1a1aea | 1747 | else |
0710d850 | 1748 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7fbd9d09 FCE |
1749 | fi || ac_status=$? |
1750 | cd "$ac_pwd" || { ac_status=$?; break; } | |
2f1a1aea FCE |
1751 | done |
1752 | fi | |
1753 | ||
7fbd9d09 | 1754 | test -n "$ac_init_help" && exit $ac_status |
2f1a1aea FCE |
1755 | if $ac_init_version; then |
1756 | cat <<\_ACEOF | |
9c043a41 | 1757 | systemtap configure 3.2 |
8eef2738 | 1758 | generated by GNU Autoconf 2.69 |
2f1a1aea | 1759 | |
8eef2738 | 1760 | Copyright (C) 2012 Free Software Foundation, Inc. |
2f1a1aea FCE |
1761 | This configure script is free software; the Free Software Foundation |
1762 | gives unlimited permission to copy, distribute and modify it. | |
1763 | _ACEOF | |
7fbd9d09 | 1764 | exit |
2f1a1aea | 1765 | fi |
4b5627b1 | 1766 | |
1ef0423a FCE |
1767 | ## ------------------------ ## |
1768 | ## Autoconf initialization. ## | |
1769 | ## ------------------------ ## | |
4b5627b1 | 1770 | |
1ef0423a FCE |
1771 | # ac_fn_c_try_compile LINENO |
1772 | # -------------------------- | |
1773 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1774 | ac_fn_c_try_compile () | |
ec1a2239 | 1775 | { |
1ef0423a FCE |
1776 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1777 | rm -f conftest.$ac_objext | |
1778 | if { { ac_try="$ac_compile" | |
1779 | case "(($ac_try" in | |
1780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1781 | *) ac_try_echo=$ac_try;; | |
1782 | esac | |
1783 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1784 | $as_echo "$ac_try_echo"; } >&5 | |
1785 | (eval "$ac_compile") 2>conftest.err | |
1786 | ac_status=$? | |
1787 | if test -s conftest.err; then | |
1788 | grep -v '^ *+' conftest.err >conftest.er1 | |
1789 | cat conftest.er1 >&5 | |
1790 | mv -f conftest.er1 conftest.err | |
1791 | fi | |
1792 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1793 | test $ac_status = 0; } && { | |
1794 | test -z "$ac_c_werror_flag" || | |
1795 | test ! -s conftest.err | |
1796 | } && test -s conftest.$ac_objext; then : | |
1797 | ac_retval=0 | |
1798 | else | |
1799 | $as_echo "$as_me: failed program was:" >&5 | |
1800 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4b5627b1 | 1801 | |
1ef0423a FCE |
1802 | ac_retval=1 |
1803 | fi | |
c3de29bd | 1804 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1ef0423a | 1805 | as_fn_set_status $ac_retval |
ec1a2239 | 1806 | |
1ef0423a | 1807 | } # ac_fn_c_try_compile |
ec1a2239 | 1808 | |
1ef0423a FCE |
1809 | # ac_fn_c_try_cpp LINENO |
1810 | # ---------------------- | |
1811 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1812 | ac_fn_c_try_cpp () | |
1813 | { | |
1814 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1815 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1816 | case "(($ac_try" in | |
1817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1818 | *) ac_try_echo=$ac_try;; | |
1819 | esac | |
1820 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1821 | $as_echo "$ac_try_echo"; } >&5 | |
1822 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1823 | ac_status=$? | |
1824 | if test -s conftest.err; then | |
1825 | grep -v '^ *+' conftest.err >conftest.er1 | |
1826 | cat conftest.er1 >&5 | |
1827 | mv -f conftest.er1 conftest.err | |
1828 | fi | |
1829 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
c3de29bd | 1830 | test $ac_status = 0; } > conftest.i && { |
1ef0423a FCE |
1831 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1832 | test ! -s conftest.err | |
1833 | }; then : | |
1834 | ac_retval=0 | |
1835 | else | |
1836 | $as_echo "$as_me: failed program was:" >&5 | |
1837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1838 | ||
1839 | ac_retval=1 | |
1840 | fi | |
c3de29bd | 1841 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1ef0423a FCE |
1842 | as_fn_set_status $ac_retval |
1843 | ||
1844 | } # ac_fn_c_try_cpp | |
1845 | ||
1ef0423a FCE |
1846 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1847 | # ------------------------------------------------------- | |
1848 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1849 | # the include files in INCLUDES and setting the cache variable VAR | |
1850 | # accordingly. | |
1851 | ac_fn_c_check_header_mongrel () | |
1852 | { | |
1853 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
c3de29bd | 1854 | if eval \${$3+:} false; then : |
1ef0423a FCE |
1855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1856 | $as_echo_n "checking for $2... " >&6; } | |
c3de29bd | 1857 | if eval \${$3+:} false; then : |
1ef0423a FCE |
1858 | $as_echo_n "(cached) " >&6 |
1859 | fi | |
1860 | eval ac_res=\$$3 | |
1861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1862 | $as_echo "$ac_res" >&6; } | |
1863 | else | |
1864 | # Is the header compilable? | |
1865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1866 | $as_echo_n "checking $2 usability... " >&6; } | |
1867 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1868 | /* end confdefs.h. */ | |
1869 | $4 | |
1870 | #include <$2> | |
1871 | _ACEOF | |
1872 | if ac_fn_c_try_compile "$LINENO"; then : | |
1873 | ac_header_compiler=yes | |
1874 | else | |
1875 | ac_header_compiler=no | |
1876 | fi | |
1877 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1879 | $as_echo "$ac_header_compiler" >&6; } | |
1880 | ||
1881 | # Is the header present? | |
1882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1883 | $as_echo_n "checking $2 presence... " >&6; } | |
1884 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1885 | /* end confdefs.h. */ | |
1886 | #include <$2> | |
1887 | _ACEOF | |
1888 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1889 | ac_header_preproc=yes | |
1890 | else | |
1891 | ac_header_preproc=no | |
1892 | fi | |
c3de29bd | 1893 | rm -f conftest.err conftest.i conftest.$ac_ext |
1ef0423a FCE |
1894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1895 | $as_echo "$ac_header_preproc" >&6; } | |
1896 | ||
1897 | # So? What about this header? | |
1898 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1899 | yes:no: ) | |
1900 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1901 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1902 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1903 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1904 | ;; | |
1905 | no:yes:* ) | |
1906 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1907 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1908 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1909 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1910 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1911 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1912 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1913 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1914 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1915 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
5d4aa1f5 | 1916 | ( $as_echo "## --------------------------------------- ## |
306dd4f8 | 1917 | ## Report this to systemtap@sourceware.org ## |
5d4aa1f5 | 1918 | ## --------------------------------------- ##" |
1ef0423a FCE |
1919 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
1920 | ;; | |
1921 | esac | |
1922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1923 | $as_echo_n "checking for $2... " >&6; } | |
c3de29bd | 1924 | if eval \${$3+:} false; then : |
1ef0423a FCE |
1925 | $as_echo_n "(cached) " >&6 |
1926 | else | |
1927 | eval "$3=\$ac_header_compiler" | |
1928 | fi | |
1929 | eval ac_res=\$$3 | |
1930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1931 | $as_echo "$ac_res" >&6; } | |
1932 | fi | |
c3de29bd | 1933 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1ef0423a FCE |
1934 | |
1935 | } # ac_fn_c_check_header_mongrel | |
1936 | ||
8f223b3e FCE |
1937 | # ac_fn_c_try_run LINENO |
1938 | # ---------------------- | |
1939 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1940 | # that executables *can* be run. | |
1941 | ac_fn_c_try_run () | |
1942 | { | |
1943 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1944 | if { { ac_try="$ac_link" | |
1945 | case "(($ac_try" in | |
1946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1947 | *) ac_try_echo=$ac_try;; | |
1948 | esac | |
1949 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1950 | $as_echo "$ac_try_echo"; } >&5 | |
1951 | (eval "$ac_link") 2>&5 | |
1952 | ac_status=$? | |
1953 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1954 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1955 | { { case "(($ac_try" in | |
1956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1957 | *) ac_try_echo=$ac_try;; | |
1958 | esac | |
1959 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1960 | $as_echo "$ac_try_echo"; } >&5 | |
1961 | (eval "$ac_try") 2>&5 | |
1962 | ac_status=$? | |
1963 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1964 | test $ac_status = 0; }; }; then : | |
1965 | ac_retval=0 | |
1966 | else | |
1967 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1968 | $as_echo "$as_me: failed program was:" >&5 | |
1969 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1970 | ||
1971 | ac_retval=$ac_status | |
1972 | fi | |
1973 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
c3de29bd | 1974 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
8f223b3e FCE |
1975 | as_fn_set_status $ac_retval |
1976 | ||
1977 | } # ac_fn_c_try_run | |
1978 | ||
1ef0423a FCE |
1979 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1980 | # ------------------------------------------------------- | |
1981 | # Tests whether HEADER exists and can be compiled using the include files in | |
1982 | # INCLUDES, setting the cache variable VAR accordingly. | |
1983 | ac_fn_c_check_header_compile () | |
1984 | { | |
1985 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1987 | $as_echo_n "checking for $2... " >&6; } | |
c3de29bd | 1988 | if eval \${$3+:} false; then : |
1ef0423a FCE |
1989 | $as_echo_n "(cached) " >&6 |
1990 | else | |
1991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1992 | /* end confdefs.h. */ | |
1993 | $4 | |
1994 | #include <$2> | |
1995 | _ACEOF | |
1996 | if ac_fn_c_try_compile "$LINENO"; then : | |
1997 | eval "$3=yes" | |
1998 | else | |
1999 | eval "$3=no" | |
2000 | fi | |
2001 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2002 | fi | |
2003 | eval ac_res=\$$3 | |
2004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2005 | $as_echo "$ac_res" >&6; } | |
c3de29bd | 2006 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1ef0423a FCE |
2007 | |
2008 | } # ac_fn_c_check_header_compile | |
2009 | ||
8f223b3e FCE |
2010 | # ac_fn_cxx_try_compile LINENO |
2011 | # ---------------------------- | |
2012 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
2013 | ac_fn_cxx_try_compile () | |
2014 | { | |
2015 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2016 | rm -f conftest.$ac_objext | |
2017 | if { { ac_try="$ac_compile" | |
2018 | case "(($ac_try" in | |
2019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2020 | *) ac_try_echo=$ac_try;; | |
2021 | esac | |
2022 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2023 | $as_echo "$ac_try_echo"; } >&5 | |
2024 | (eval "$ac_compile") 2>conftest.err | |
2025 | ac_status=$? | |
2026 | if test -s conftest.err; then | |
2027 | grep -v '^ *+' conftest.err >conftest.er1 | |
2028 | cat conftest.er1 >&5 | |
2029 | mv -f conftest.er1 conftest.err | |
2030 | fi | |
2031 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2032 | test $ac_status = 0; } && { | |
2033 | test -z "$ac_cxx_werror_flag" || | |
2034 | test ! -s conftest.err | |
2035 | } && test -s conftest.$ac_objext; then : | |
2036 | ac_retval=0 | |
2037 | else | |
2038 | $as_echo "$as_me: failed program was:" >&5 | |
2039 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2040 | ||
2041 | ac_retval=1 | |
2042 | fi | |
c3de29bd | 2043 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
8f223b3e FCE |
2044 | as_fn_set_status $ac_retval |
2045 | ||
2046 | } # ac_fn_cxx_try_compile | |
2047 | ||
1ef0423a FCE |
2048 | # ac_fn_c_try_link LINENO |
2049 | # ----------------------- | |
2050 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2051 | ac_fn_c_try_link () | |
2052 | { | |
2053 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2054 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2055 | if { { ac_try="$ac_link" | |
2056 | case "(($ac_try" in | |
2057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2058 | *) ac_try_echo=$ac_try;; | |
2059 | esac | |
2060 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2061 | $as_echo "$ac_try_echo"; } >&5 | |
2062 | (eval "$ac_link") 2>conftest.err | |
2063 | ac_status=$? | |
2064 | if test -s conftest.err; then | |
2065 | grep -v '^ *+' conftest.err >conftest.er1 | |
2066 | cat conftest.er1 >&5 | |
2067 | mv -f conftest.er1 conftest.err | |
2068 | fi | |
2069 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2070 | test $ac_status = 0; } && { | |
2071 | test -z "$ac_c_werror_flag" || | |
2072 | test ! -s conftest.err | |
2073 | } && test -s conftest$ac_exeext && { | |
2074 | test "$cross_compiling" = yes || | |
8eef2738 | 2075 | test -x conftest$ac_exeext |
1ef0423a FCE |
2076 | }; then : |
2077 | ac_retval=0 | |
2078 | else | |
2079 | $as_echo "$as_me: failed program was:" >&5 | |
2080 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2081 | ||
2082 | ac_retval=1 | |
2083 | fi | |
2084 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2085 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2086 | # interfere with the next link command; also delete a directory that is | |
2087 | # left behind by Apple's compiler. We do this before executing the actions. | |
2088 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
c3de29bd | 2089 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1ef0423a FCE |
2090 | as_fn_set_status $ac_retval |
2091 | ||
2092 | } # ac_fn_c_try_link | |
2093 | ||
e04a4b41 JS |
2094 | # ac_fn_c_check_func LINENO FUNC VAR |
2095 | # ---------------------------------- | |
2096 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2097 | ac_fn_c_check_func () | |
2098 | { | |
2099 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2101 | $as_echo_n "checking for $2... " >&6; } | |
c3de29bd | 2102 | if eval \${$3+:} false; then : |
e04a4b41 JS |
2103 | $as_echo_n "(cached) " >&6 |
2104 | else | |
2105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2106 | /* end confdefs.h. */ | |
2107 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2108 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2109 | #define $2 innocuous_$2 | |
2110 | ||
2111 | /* System header to define __stub macros and hopefully few prototypes, | |
2112 | which can conflict with char $2 (); below. | |
2113 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2114 | <limits.h> exists even on freestanding compilers. */ | |
2115 | ||
2116 | #ifdef __STDC__ | |
2117 | # include <limits.h> | |
2118 | #else | |
2119 | # include <assert.h> | |
2120 | #endif | |
2121 | ||
2122 | #undef $2 | |
2123 | ||
2124 | /* Override any GCC internal prototype to avoid an error. | |
2125 | Use char because int might match the return type of a GCC | |
2126 | builtin and then its argument prototype would still apply. */ | |
2127 | #ifdef __cplusplus | |
2128 | extern "C" | |
2129 | #endif | |
2130 | char $2 (); | |
2131 | /* The GNU C library defines this for functions which it implements | |
2132 | to always fail with ENOSYS. Some functions are actually named | |
2133 | something starting with __ and the normal name is an alias. */ | |
2134 | #if defined __stub_$2 || defined __stub___$2 | |
2135 | choke me | |
2136 | #endif | |
2137 | ||
2138 | int | |
2139 | main () | |
2140 | { | |
2141 | return $2 (); | |
2142 | ; | |
2143 | return 0; | |
2144 | } | |
2145 | _ACEOF | |
2146 | if ac_fn_c_try_link "$LINENO"; then : | |
2147 | eval "$3=yes" | |
2148 | else | |
2149 | eval "$3=no" | |
2150 | fi | |
2151 | rm -f core conftest.err conftest.$ac_objext \ | |
2152 | conftest$ac_exeext conftest.$ac_ext | |
2153 | fi | |
2154 | eval ac_res=\$$3 | |
2155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2156 | $as_echo "$ac_res" >&6; } | |
c3de29bd | 2157 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
e04a4b41 JS |
2158 | |
2159 | } # ac_fn_c_check_func | |
2160 | ||
1ef0423a FCE |
2161 | # ac_fn_cxx_try_cpp LINENO |
2162 | # ------------------------ | |
2163 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
2164 | ac_fn_cxx_try_cpp () | |
2165 | { | |
2166 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2167 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
2168 | case "(($ac_try" in | |
2169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2170 | *) ac_try_echo=$ac_try;; | |
2171 | esac | |
2172 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2173 | $as_echo "$ac_try_echo"; } >&5 | |
2174 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
2175 | ac_status=$? | |
2176 | if test -s conftest.err; then | |
2177 | grep -v '^ *+' conftest.err >conftest.er1 | |
2178 | cat conftest.er1 >&5 | |
2179 | mv -f conftest.er1 conftest.err | |
2180 | fi | |
2181 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
c3de29bd | 2182 | test $ac_status = 0; } > conftest.i && { |
1ef0423a FCE |
2183 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
2184 | test ! -s conftest.err | |
2185 | }; then : | |
2186 | ac_retval=0 | |
2187 | else | |
2188 | $as_echo "$as_me: failed program was:" >&5 | |
2189 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2190 | ||
2191 | ac_retval=1 | |
2192 | fi | |
c3de29bd | 2193 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1ef0423a FCE |
2194 | as_fn_set_status $ac_retval |
2195 | ||
2196 | } # ac_fn_cxx_try_cpp | |
2197 | ||
2198 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES | |
2199 | # --------------------------------------------------------- | |
2200 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2201 | # the include files in INCLUDES and setting the cache variable VAR | |
2202 | # accordingly. | |
2203 | ac_fn_cxx_check_header_mongrel () | |
2204 | { | |
2205 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
c3de29bd | 2206 | if eval \${$3+:} false; then : |
1ef0423a FCE |
2207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2208 | $as_echo_n "checking for $2... " >&6; } | |
c3de29bd | 2209 | if eval \${$3+:} false; then : |
1ef0423a FCE |
2210 | $as_echo_n "(cached) " >&6 |
2211 | fi | |
2212 | eval ac_res=\$$3 | |
2213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2214 | $as_echo "$ac_res" >&6; } | |
2215 | else | |
2216 | # Is the header compilable? | |
2217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2218 | $as_echo_n "checking $2 usability... " >&6; } | |
2219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2220 | /* end confdefs.h. */ | |
2221 | $4 | |
2222 | #include <$2> | |
2223 | _ACEOF | |
2224 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2225 | ac_header_compiler=yes | |
2226 | else | |
2227 | ac_header_compiler=no | |
2228 | fi | |
2229 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2231 | $as_echo "$ac_header_compiler" >&6; } | |
2232 | ||
2233 | # Is the header present? | |
2234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2235 | $as_echo_n "checking $2 presence... " >&6; } | |
2236 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2237 | /* end confdefs.h. */ | |
2238 | #include <$2> | |
2239 | _ACEOF | |
2240 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
2241 | ac_header_preproc=yes | |
2242 | else | |
2243 | ac_header_preproc=no | |
2244 | fi | |
c3de29bd | 2245 | rm -f conftest.err conftest.i conftest.$ac_ext |
1ef0423a FCE |
2246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
2247 | $as_echo "$ac_header_preproc" >&6; } | |
2248 | ||
2249 | # So? What about this header? | |
2250 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( | |
2251 | yes:no: ) | |
2252 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2253 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2254 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2255 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2256 | ;; | |
2257 | no:yes:* ) | |
2258 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2259 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2260 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2261 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2262 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2263 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2264 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2265 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2266 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2267 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
5d4aa1f5 | 2268 | ( $as_echo "## --------------------------------------- ## |
306dd4f8 | 2269 | ## Report this to systemtap@sourceware.org ## |
5d4aa1f5 | 2270 | ## --------------------------------------- ##" |
1ef0423a FCE |
2271 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
2272 | ;; | |
2273 | esac | |
2274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2275 | $as_echo_n "checking for $2... " >&6; } | |
c3de29bd | 2276 | if eval \${$3+:} false; then : |
1ef0423a FCE |
2277 | $as_echo_n "(cached) " >&6 |
2278 | else | |
2279 | eval "$3=\$ac_header_compiler" | |
2280 | fi | |
2281 | eval ac_res=\$$3 | |
2282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2283 | $as_echo "$ac_res" >&6; } | |
2284 | fi | |
c3de29bd | 2285 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1ef0423a FCE |
2286 | |
2287 | } # ac_fn_cxx_check_header_mongrel | |
0820bd9a FL |
2288 | |
2289 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | |
2290 | # --------------------------------------------- | |
2291 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
2292 | # accordingly. | |
2293 | ac_fn_c_check_decl () | |
2294 | { | |
2295 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2296 | as_decl_name=`echo $2|sed 's/ *(.*//'` | |
2297 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2299 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
2300 | if eval \${$3+:} false; then : | |
2301 | $as_echo_n "(cached) " >&6 | |
2302 | else | |
2303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2304 | /* end confdefs.h. */ | |
2305 | $4 | |
2306 | int | |
2307 | main () | |
2308 | { | |
2309 | #ifndef $as_decl_name | |
2310 | #ifdef __cplusplus | |
2311 | (void) $as_decl_use; | |
2312 | #else | |
2313 | (void) $as_decl_name; | |
2314 | #endif | |
2315 | #endif | |
2316 | ||
2317 | ; | |
2318 | return 0; | |
2319 | } | |
2320 | _ACEOF | |
2321 | if ac_fn_c_try_compile "$LINENO"; then : | |
2322 | eval "$3=yes" | |
2323 | else | |
2324 | eval "$3=no" | |
2325 | fi | |
2326 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2327 | fi | |
2328 | eval ac_res=\$$3 | |
2329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2330 | $as_echo "$ac_res" >&6; } | |
2331 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2332 | ||
2333 | } # ac_fn_c_check_decl | |
1ef0423a FCE |
2334 | cat >config.log <<_ACEOF |
2335 | This file contains any messages produced by compilers while | |
2336 | running configure, to aid debugging if configure makes a mistake. | |
2337 | ||
9c043a41 | 2338 | It was created by systemtap $as_me 3.2, which was |
8eef2738 | 2339 | generated by GNU Autoconf 2.69. Invocation command line was |
1ef0423a FCE |
2340 | |
2341 | $ $0 $@ | |
2342 | ||
2343 | _ACEOF | |
2344 | exec 5>>config.log | |
2345 | { | |
2346 | cat <<_ASUNAME | |
2347 | ## --------- ## | |
2348 | ## Platform. ## | |
2349 | ## --------- ## | |
2350 | ||
2351 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2352 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2353 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2354 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2355 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2356 | ||
2357 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2358 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2359 | ||
2360 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2361 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2362 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2363 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2364 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2365 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2366 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2367 | ||
2368 | _ASUNAME | |
2f1a1aea FCE |
2369 | |
2370 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2371 | for as_dir in $PATH | |
2372 | do | |
2373 | IFS=$as_save_IFS | |
2374 | test -z "$as_dir" && as_dir=. | |
1ef0423a FCE |
2375 | $as_echo "PATH: $as_dir" |
2376 | done | |
7fbd9d09 | 2377 | IFS=$as_save_IFS |
2f1a1aea FCE |
2378 | |
2379 | } >&5 | |
2380 | ||
2381 | cat >&5 <<_ACEOF | |
2382 | ||
2383 | ||
2384 | ## ----------- ## | |
2385 | ## Core tests. ## | |
2386 | ## ----------- ## | |
2387 | ||
2388 | _ACEOF | |
2389 | ||
2390 | ||
2391 | # Keep a trace of the command line. | |
2392 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2393 | # Strip out --silent because we don't want to record it for future runs. | |
2394 | # Also quote any args containing shell meta-characters. | |
2395 | # Make two passes to allow for proper duplicate-argument suppression. | |
2396 | ac_configure_args= | |
2397 | ac_configure_args0= | |
2398 | ac_configure_args1= | |
2f1a1aea FCE |
2399 | ac_must_keep_next=false |
2400 | for ac_pass in 1 2 | |
2401 | do | |
2402 | for ac_arg | |
2403 | do | |
2404 | case $ac_arg in | |
2405 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2406 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2407 | | -silent | --silent | --silen | --sile | --sil) | |
2408 | continue ;; | |
7fbd9d09 | 2409 | *\'*) |
0710d850 | 2410 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
2f1a1aea FCE |
2411 | esac |
2412 | case $ac_pass in | |
1ef0423a | 2413 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
2f1a1aea | 2414 | 2) |
1ef0423a | 2415 | as_fn_append ac_configure_args1 " '$ac_arg'" |
2f1a1aea FCE |
2416 | if test $ac_must_keep_next = true; then |
2417 | ac_must_keep_next=false # Got value, back to normal. | |
2418 | else | |
2419 | case $ac_arg in | |
2420 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2421 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2422 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2423 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2424 | case "$ac_configure_args0 " in | |
2425 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2426 | esac | |
2427 | ;; | |
2428 | -* ) ac_must_keep_next=true ;; | |
2429 | esac | |
2430 | fi | |
1ef0423a | 2431 | as_fn_append ac_configure_args " '$ac_arg'" |
2f1a1aea FCE |
2432 | ;; |
2433 | esac | |
2434 | done | |
2435 | done | |
1ef0423a FCE |
2436 | { ac_configure_args0=; unset ac_configure_args0;} |
2437 | { ac_configure_args1=; unset ac_configure_args1;} | |
2f1a1aea FCE |
2438 | |
2439 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2440 | # config.log. We remove comments because anyway the quotes in there | |
2441 | # would cause problems or look ugly. | |
7fbd9d09 FCE |
2442 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2443 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2f1a1aea FCE |
2444 | trap 'exit_status=$? |
2445 | # Save into config.log some information that might help in debugging. | |
2446 | { | |
2447 | echo | |
2448 | ||
5d4aa1f5 | 2449 | $as_echo "## ---------------- ## |
2f1a1aea | 2450 | ## Cache variables. ## |
5d4aa1f5 | 2451 | ## ---------------- ##" |
2f1a1aea FCE |
2452 | echo |
2453 | # The following way of writing the cache mishandles newlines in values, | |
7fbd9d09 FCE |
2454 | ( |
2455 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2456 | eval ac_val=\$$ac_var | |
2457 | case $ac_val in #( | |
2458 | *${as_nl}*) | |
2459 | case $ac_var in #( | |
1ef0423a | 2460 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
0710d850 | 2461 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
7fbd9d09 FCE |
2462 | esac |
2463 | case $ac_var in #( | |
2464 | _ | IFS | as_nl) ;; #( | |
0710d850 | 2465 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
1ef0423a | 2466 | *) { eval $ac_var=; unset $ac_var;} ;; |
7fbd9d09 FCE |
2467 | esac ;; |
2468 | esac | |
2469 | done | |
2f1a1aea | 2470 | (set) 2>&1 | |
7fbd9d09 FCE |
2471 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2472 | *${as_nl}ac_space=\ *) | |
2f1a1aea | 2473 | sed -n \ |
7fbd9d09 FCE |
2474 | "s/'\''/'\''\\\\'\'''\''/g; |
2475 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2476 | ;; #( | |
2f1a1aea | 2477 | *) |
7fbd9d09 | 2478 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
2f1a1aea | 2479 | ;; |
7fbd9d09 FCE |
2480 | esac | |
2481 | sort | |
2482 | ) | |
2f1a1aea FCE |
2483 | echo |
2484 | ||
5d4aa1f5 | 2485 | $as_echo "## ----------------- ## |
2f1a1aea | 2486 | ## Output variables. ## |
5d4aa1f5 | 2487 | ## ----------------- ##" |
2f1a1aea FCE |
2488 | echo |
2489 | for ac_var in $ac_subst_vars | |
2490 | do | |
7fbd9d09 FCE |
2491 | eval ac_val=\$$ac_var |
2492 | case $ac_val in | |
0710d850 | 2493 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7fbd9d09 | 2494 | esac |
0710d850 | 2495 | $as_echo "$ac_var='\''$ac_val'\''" |
2f1a1aea FCE |
2496 | done | sort |
2497 | echo | |
2498 | ||
2499 | if test -n "$ac_subst_files"; then | |
5d4aa1f5 | 2500 | $as_echo "## ------------------- ## |
7fbd9d09 | 2501 | ## File substitutions. ## |
5d4aa1f5 | 2502 | ## ------------------- ##" |
2f1a1aea FCE |
2503 | echo |
2504 | for ac_var in $ac_subst_files | |
2505 | do | |
7fbd9d09 FCE |
2506 | eval ac_val=\$$ac_var |
2507 | case $ac_val in | |
0710d850 | 2508 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7fbd9d09 | 2509 | esac |
0710d850 | 2510 | $as_echo "$ac_var='\''$ac_val'\''" |
2f1a1aea FCE |
2511 | done | sort |
2512 | echo | |
2513 | fi | |
2514 | ||
2515 | if test -s confdefs.h; then | |
5d4aa1f5 | 2516 | $as_echo "## ----------- ## |
2f1a1aea | 2517 | ## confdefs.h. ## |
5d4aa1f5 | 2518 | ## ----------- ##" |
2f1a1aea | 2519 | echo |
7fbd9d09 | 2520 | cat confdefs.h |
2f1a1aea FCE |
2521 | echo |
2522 | fi | |
2523 | test "$ac_signal" != 0 && | |
0710d850 DS |
2524 | $as_echo "$as_me: caught signal $ac_signal" |
2525 | $as_echo "$as_me: exit $exit_status" | |
2f1a1aea | 2526 | } >&5 |
7fbd9d09 FCE |
2527 | rm -f core *.core core.conftest.* && |
2528 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2f1a1aea | 2529 | exit $exit_status |
7fbd9d09 | 2530 | ' 0 |
2f1a1aea | 2531 | for ac_signal in 1 2 13 15; do |
1ef0423a | 2532 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
2f1a1aea FCE |
2533 | done |
2534 | ac_signal=0 | |
2535 | ||
2536 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7fbd9d09 | 2537 | rm -f -r conftest* confdefs.h |
2f1a1aea | 2538 | |
1ef0423a FCE |
2539 | $as_echo "/* confdefs.h */" > confdefs.h |
2540 | ||
2f1a1aea FCE |
2541 | # Predefined preprocessor variables. |
2542 | ||
2543 | cat >>confdefs.h <<_ACEOF | |
2544 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2545 | _ACEOF | |
2546 | ||
2f1a1aea FCE |
2547 | cat >>confdefs.h <<_ACEOF |
2548 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2549 | _ACEOF | |
2550 | ||
2f1a1aea FCE |
2551 | cat >>confdefs.h <<_ACEOF |
2552 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2553 | _ACEOF | |
2554 | ||
2f1a1aea FCE |
2555 | cat >>confdefs.h <<_ACEOF |
2556 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2557 | _ACEOF | |
2558 | ||
ec1a2239 | 2559 | cat >>confdefs.h <<_ACEOF |
5e5aee9f | 2560 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
ec1a2239 LB |
2561 | _ACEOF |
2562 | ||
1ef0423a FCE |
2563 | cat >>confdefs.h <<_ACEOF |
2564 | #define PACKAGE_URL "$PACKAGE_URL" | |
2565 | _ACEOF | |
2566 | ||
2f1a1aea FCE |
2567 | |
2568 | # Let the site file select an alternate cache file if it wants to. | |
0710d850 DS |
2569 | # Prefer an explicitly selected file to automatically selected ones. |
2570 | ac_site_file1=NONE | |
2571 | ac_site_file2=NONE | |
7fbd9d09 | 2572 | if test -n "$CONFIG_SITE"; then |
5d4aa1f5 FCE |
2573 | # We do not want a PATH search for config.site. |
2574 | case $CONFIG_SITE in #(( | |
2575 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2576 | */*) ac_site_file1=$CONFIG_SITE;; | |
2577 | *) ac_site_file1=./$CONFIG_SITE;; | |
2578 | esac | |
7fbd9d09 | 2579 | elif test "x$prefix" != xNONE; then |
0710d850 DS |
2580 | ac_site_file1=$prefix/share/config.site |
2581 | ac_site_file2=$prefix/etc/config.site | |
7fbd9d09 | 2582 | else |
0710d850 DS |
2583 | ac_site_file1=$ac_default_prefix/share/config.site |
2584 | ac_site_file2=$ac_default_prefix/etc/config.site | |
818ba2bc | 2585 | fi |
0710d850 | 2586 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
7fbd9d09 | 2587 | do |
0710d850 | 2588 | test "x$ac_site_file" = xNONE && continue |
1ef0423a FCE |
2589 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
2590 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
0710d850 | 2591 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
2f1a1aea | 2592 | sed 's/^/| /' "$ac_site_file" >&5 |
5d4aa1f5 FCE |
2593 | . "$ac_site_file" \ |
2594 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2595 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2596 | as_fn_error $? "failed to load site script $ac_site_file | |
2597 | See \`config.log' for more details" "$LINENO" 5; } | |
2f1a1aea FCE |
2598 | fi |
2599 | done | |
2600 | ||
2601 | if test -r "$cache_file"; then | |
1ef0423a FCE |
2602 | # Some versions of bash will fail to source /dev/null (special files |
2603 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2604 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2605 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
0710d850 | 2606 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
2f1a1aea | 2607 | case $cache_file in |
7fbd9d09 FCE |
2608 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2609 | *) . "./$cache_file";; | |
2f1a1aea FCE |
2610 | esac |
2611 | fi | |
2612 | else | |
1ef0423a | 2613 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
0710d850 | 2614 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
2f1a1aea FCE |
2615 | >$cache_file |
2616 | fi | |
2617 | ||
8f223b3e | 2618 | gt_needs="$gt_needs " |
2f1a1aea FCE |
2619 | # Check that the precious variables saved in the cache have kept the same |
2620 | # value. | |
2621 | ac_cache_corrupted=false | |
7fbd9d09 | 2622 | for ac_var in $ac_precious_vars; do |
2f1a1aea FCE |
2623 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2624 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7fbd9d09 FCE |
2625 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2626 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2f1a1aea FCE |
2627 | case $ac_old_set,$ac_new_set in |
2628 | set,) | |
1ef0423a | 2629 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
0710d850 | 2630 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
2f1a1aea FCE |
2631 | ac_cache_corrupted=: ;; |
2632 | ,set) | |
1ef0423a | 2633 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
0710d850 | 2634 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
2f1a1aea FCE |
2635 | ac_cache_corrupted=: ;; |
2636 | ,);; | |
2637 | *) | |
2638 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
0710d850 DS |
2639 | # differences in whitespace do not lead to failure. |
2640 | ac_old_val_w=`echo x $ac_old_val` | |
2641 | ac_new_val_w=`echo x $ac_new_val` | |
2642 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1ef0423a | 2643 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
0710d850 DS |
2644 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2645 | ac_cache_corrupted=: | |
2646 | else | |
1ef0423a | 2647 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
0710d850 DS |
2648 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2649 | eval $ac_var=\$ac_old_val | |
2650 | fi | |
1ef0423a | 2651 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
0710d850 | 2652 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
1ef0423a | 2653 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
0710d850 | 2654 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
2f1a1aea FCE |
2655 | fi;; |
2656 | esac | |
2657 | # Pass precious variables to config.status. | |
2658 | if test "$ac_new_set" = set; then | |
2659 | case $ac_new_val in | |
0710d850 | 2660 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
4a3c19da EM |
2661 | *) ac_arg=$ac_var=$ac_new_val ;; |
2662 | esac | |
2663 | case " $ac_configure_args " in | |
2664 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1ef0423a | 2665 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
4a3c19da EM |
2666 | esac |
2667 | fi | |
2668 | done | |
2669 | if $ac_cache_corrupted; then | |
1ef0423a | 2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
0710d850 | 2671 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
1ef0423a | 2672 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
0710d850 | 2673 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
5d4aa1f5 | 2674 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
4a3c19da | 2675 | fi |
1ef0423a FCE |
2676 | ## -------------------- ## |
2677 | ## Main body of script. ## | |
2678 | ## -------------------- ## | |
2f1a1aea | 2679 | |
7fbd9d09 FCE |
2680 | ac_ext=c |
2681 | ac_cpp='$CPP $CPPFLAGS' | |
2682 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2683 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2684 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2f1a1aea FCE |
2685 | |
2686 | ||
2687 | ||
2f1a1aea | 2688 | ac_aux_dir= |
412e1bf7 | 2689 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
5d4aa1f5 FCE |
2690 | if test -f "$ac_dir/install-sh"; then |
2691 | ac_aux_dir=$ac_dir | |
2692 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2693 | break | |
2694 | elif test -f "$ac_dir/install.sh"; then | |
2695 | ac_aux_dir=$ac_dir | |
2696 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2697 | break | |
2698 | elif test -f "$ac_dir/shtool"; then | |
2699 | ac_aux_dir=$ac_dir | |
2700 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2701 | break | |
2702 | fi | |
2f1a1aea FCE |
2703 | done |
2704 | if test -z "$ac_aux_dir"; then | |
5d4aa1f5 | 2705 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
2f1a1aea | 2706 | fi |
7fbd9d09 FCE |
2707 | |
2708 | # These three variables are undocumented and unsupported, | |
2709 | # and are intended to be withdrawn in a future Autoconf release. | |
2710 | # They can cause serious problems if a builder's source tree is in a directory | |
2711 | # whose full name contains unusual characters. | |
2712 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2713 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2714 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2715 | ||
2f1a1aea | 2716 | |
2689a171 SM |
2717 | # Make sure we can run config.sub. |
2718 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2719 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2720 | ||
2721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2722 | $as_echo_n "checking build system type... " >&6; } | |
2723 | if ${ac_cv_build+:} false; then : | |
2724 | $as_echo_n "(cached) " >&6 | |
2725 | else | |
2726 | ac_build_alias=$build_alias | |
2727 | test "x$ac_build_alias" = x && | |
2728 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2729 | test "x$ac_build_alias" = x && | |
2730 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
2731 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2732 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2733 | ||
2734 | fi | |
2735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2736 | $as_echo "$ac_cv_build" >&6; } | |
2737 | case $ac_cv_build in | |
2738 | *-*-*) ;; | |
2739 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
2740 | esac | |
2741 | build=$ac_cv_build | |
2742 | ac_save_IFS=$IFS; IFS='-' | |
2743 | set x $ac_cv_build | |
2744 | shift | |
2745 | build_cpu=$1 | |
2746 | build_vendor=$2 | |
2747 | shift; shift | |
2748 | # Remember, the first character of IFS is used to create $*, | |
2749 | # except with old shells: | |
2750 | build_os=$* | |
2751 | IFS=$ac_save_IFS | |
2752 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2753 | ||
2754 | ||
2755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2756 | $as_echo_n "checking host system type... " >&6; } | |
2757 | if ${ac_cv_host+:} false; then : | |
2758 | $as_echo_n "(cached) " >&6 | |
2759 | else | |
2760 | if test "x$host_alias" = x; then | |
2761 | ac_cv_host=$ac_cv_build | |
2762 | else | |
2763 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2764 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2765 | fi | |
2766 | ||
2767 | fi | |
2768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2769 | $as_echo "$ac_cv_host" >&6; } | |
2770 | case $ac_cv_host in | |
2771 | *-*-*) ;; | |
2772 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
2773 | esac | |
2774 | host=$ac_cv_host | |
2775 | ac_save_IFS=$IFS; IFS='-' | |
2776 | set x $ac_cv_host | |
2777 | shift | |
2778 | host_cpu=$1 | |
2779 | host_vendor=$2 | |
2780 | shift; shift | |
2781 | # Remember, the first character of IFS is used to create $*, | |
2782 | # except with old shells: | |
2783 | host_os=$* | |
2784 | IFS=$ac_save_IFS | |
2785 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2786 | ||
2787 | ||
2788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
2789 | $as_echo_n "checking target system type... " >&6; } | |
2790 | if ${ac_cv_target+:} false; then : | |
2791 | $as_echo_n "(cached) " >&6 | |
2792 | else | |
2793 | if test "x$target_alias" = x; then | |
2794 | ac_cv_target=$ac_cv_host | |
2795 | else | |
2796 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2797 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2798 | fi | |
2799 | ||
2800 | fi | |
2801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
2802 | $as_echo "$ac_cv_target" >&6; } | |
2803 | case $ac_cv_target in | |
2804 | *-*-*) ;; | |
2805 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | |
2806 | esac | |
2807 | target=$ac_cv_target | |
2808 | ac_save_IFS=$IFS; IFS='-' | |
2809 | set x $ac_cv_target | |
2810 | shift | |
2811 | target_cpu=$1 | |
2812 | target_vendor=$2 | |
2813 | shift; shift | |
2814 | # Remember, the first character of IFS is used to create $*, | |
2815 | # except with old shells: | |
2816 | target_os=$* | |
2817 | IFS=$ac_save_IFS | |
2818 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2819 | ||
2820 | ||
2821 | # The aliases save the names the user supplied, while $host etc. | |
2822 | # will get canonicalized. | |
2823 | test -n "$target_alias" && | |
2824 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2825 | NONENONEs,x,x, && | |
2826 | program_prefix=${target_alias}- | |
2827 | ||
2828 | ||
7012fdd5 | 2829 | am__api_version='1.15' |
2689a171 | 2830 | |
2f1a1aea FCE |
2831 | # Find a good install program. We prefer a C program (faster), |
2832 | # so one script is as good as another. But avoid the broken or | |
2833 | # incompatible versions: | |
2834 | # SysV /etc/install, /usr/sbin/install | |
2835 | # SunOS /usr/etc/install | |
2836 | # IRIX /sbin/install | |
2837 | # AIX /bin/install | |
2838 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2839 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2840 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2841 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2842 | # OS/2's system install, which has a completely different semantic | |
2843 | # ./install, which can be erroneously created by make from ./install.sh. | |
0710d850 | 2844 | # Reject install programs that cannot install multiple files. |
1ef0423a | 2845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
0710d850 | 2846 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
2f1a1aea | 2847 | if test -z "$INSTALL"; then |
c3de29bd | 2848 | if ${ac_cv_path_install+:} false; then : |
0710d850 | 2849 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2850 | else |
2851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2852 | for as_dir in $PATH | |
2853 | do | |
2854 | IFS=$as_save_IFS | |
2855 | test -z "$as_dir" && as_dir=. | |
1ef0423a FCE |
2856 | # Account for people who put trailing slashes in PATH elements. |
2857 | case $as_dir/ in #(( | |
2858 | ./ | .// | /[cC]/* | \ | |
2f1a1aea | 2859 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
1ef0423a | 2860 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
2f1a1aea FCE |
2861 | /usr/ucb/* ) ;; |
2862 | *) | |
2863 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2864 | # Don't use installbsd from OSF since it installs stuff as root | |
2865 | # by default. | |
2866 | for ac_prog in ginstall scoinst install; do | |
2867 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 2868 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
2f1a1aea FCE |
2869 | if test $ac_prog = install && |
2870 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2871 | # AIX install. It has an incompatible calling convention. | |
2872 | : | |
2873 | elif test $ac_prog = install && | |
2874 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2875 | # program-specific install script used by HP pwplus--don't use. | |
2876 | : | |
2877 | else | |
0710d850 DS |
2878 | rm -rf conftest.one conftest.two conftest.dir |
2879 | echo one > conftest.one | |
2880 | echo two > conftest.two | |
2881 | mkdir conftest.dir | |
2882 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2883 | test -s conftest.one && test -s conftest.two && | |
2884 | test -s conftest.dir/conftest.one && | |
2885 | test -s conftest.dir/conftest.two | |
2886 | then | |
2887 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2888 | break 3 | |
2889 | fi | |
2f1a1aea FCE |
2890 | fi |
2891 | fi | |
2892 | done | |
2893 | done | |
2894 | ;; | |
2895 | esac | |
0710d850 | 2896 | |
1ef0423a | 2897 | done |
7fbd9d09 | 2898 | IFS=$as_save_IFS |
2f1a1aea | 2899 | |
0710d850 | 2900 | rm -rf conftest.one conftest.two conftest.dir |
2f1a1aea FCE |
2901 | |
2902 | fi | |
2903 | if test "${ac_cv_path_install+set}" = set; then | |
2904 | INSTALL=$ac_cv_path_install | |
2905 | else | |
7fbd9d09 FCE |
2906 | # As a last resort, use the slow shell script. Don't cache a |
2907 | # value for INSTALL within a source directory, because that will | |
2f1a1aea | 2908 | # break other packages using the cache if that directory is |
7fbd9d09 | 2909 | # removed, or if the value is a relative name. |
2f1a1aea FCE |
2910 | INSTALL=$ac_install_sh |
2911 | fi | |
2912 | fi | |
1ef0423a | 2913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
0710d850 | 2914 | $as_echo "$INSTALL" >&6; } |
2f1a1aea FCE |
2915 | |
2916 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2917 | # It thinks the first close brace ends the variable substitution. | |
2918 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2919 | ||
2920 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2921 | ||
2922 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2923 | ||
1ef0423a | 2924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
0710d850 | 2925 | $as_echo_n "checking whether build environment is sane... " >&6; } |
0710d850 DS |
2926 | # Reject unsafe characters in $srcdir or the absolute working directory |
2927 | # name. Accept space and tab only in the latter. | |
2928 | am_lf=' | |
2929 | ' | |
2930 | case `pwd` in | |
2931 | *[\\\"\#\$\&\'\`$am_lf]*) | |
5d4aa1f5 | 2932 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
0710d850 DS |
2933 | esac |
2934 | case $srcdir in | |
2935 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
8eef2738 | 2936 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
0710d850 DS |
2937 | esac |
2938 | ||
8eef2738 | 2939 | # Do 'set' in a subshell so we don't clobber the current shell's |
2f1a1aea FCE |
2940 | # arguments. Must try -L first in case configure is actually a |
2941 | # symlink; some systems play weird games with the mod time of symlinks | |
2942 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2943 | # directory). | |
2944 | if ( | |
8eef2738 LB |
2945 | am_has_slept=no |
2946 | for am_try in 1 2; do | |
2947 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2948 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2949 | if test "$*" = "X"; then | |
2950 | # -L didn't work. | |
2951 | set X `ls -t "$srcdir/configure" conftest.file` | |
2952 | fi | |
2953 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2954 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2955 | ||
2956 | # If neither matched, then we have a broken ls. This can happen | |
2957 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2958 | # broken ls alias from the environment. This has actually | |
2959 | # happened. Such a system could not be considered "sane". | |
2960 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2961 | alias in your environment" "$LINENO" 5 | |
2962 | fi | |
2963 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2964 | break | |
2965 | fi | |
2966 | # Just in case. | |
2967 | sleep 1 | |
2968 | am_has_slept=yes | |
2969 | done | |
2f1a1aea FCE |
2970 | test "$2" = conftest.file |
2971 | ) | |
2972 | then | |
2973 | # Ok. | |
2974 | : | |
2975 | else | |
5d4aa1f5 | 2976 | as_fn_error $? "newly created file is older than distributed files! |
1ef0423a | 2977 | Check your system clock" "$LINENO" 5 |
2f1a1aea | 2978 | fi |
1ef0423a | 2979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
0710d850 | 2980 | $as_echo "yes" >&6; } |
8eef2738 LB |
2981 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
2982 | # generated files are strictly newer. | |
2983 | am_sleep_pid= | |
2984 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2985 | ( sleep 1 ) & | |
2986 | am_sleep_pid=$! | |
2987 | fi | |
2988 | ||
2989 | rm -f conftest.file | |
2990 | ||
2f1a1aea | 2991 | test "$program_prefix" != NONE && |
7fbd9d09 | 2992 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
2f1a1aea FCE |
2993 | # Use a double $ so make ignores it. |
2994 | test "$program_suffix" != NONE && | |
7fbd9d09 | 2995 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
0710d850 | 2996 | # Double any \ or $. |
2f1a1aea | 2997 | # By default was `s,x,x', remove it if useless. |
0710d850 DS |
2998 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2999 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2f1a1aea | 3000 | |
7012fdd5 FCE |
3001 | # Expand $ac_aux_dir to an absolute path. |
3002 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
2f1a1aea | 3003 | |
0710d850 DS |
3004 | if test x"${MISSING+set}" != xset; then |
3005 | case $am_aux_dir in | |
3006 | *\ * | *\ *) | |
3007 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
3008 | *) | |
3009 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
3010 | esac | |
3011 | fi | |
2f1a1aea | 3012 | # Use eval to expand $SHELL |
d9e6d90b WC |
3013 | if eval "$MISSING --is-lightweight"; then |
3014 | am_missing_run="$MISSING " | |
2f1a1aea FCE |
3015 | else |
3016 | am_missing_run= | |
8eef2738 LB |
3017 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
3018 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
0710d850 DS |
3019 | fi |
3020 | ||
7012fdd5 | 3021 | if test x"${install_sh+set}" != xset; then |
0710d850 DS |
3022 | case $am_aux_dir in |
3023 | *\ * | *\ *) | |
3024 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3025 | *) | |
3026 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3027 | esac | |
8d9d8fe1 DB |
3028 | fi |
3029 | ||
8eef2738 LB |
3030 | # Installed binaries are usually stripped using 'strip' when the user |
3031 | # run "make install-strip". However 'strip' might not be the right | |
0710d850 | 3032 | # tool to use in cross-compilation environments, therefore Automake |
8eef2738 | 3033 | # will honor the 'STRIP' environment variable to overrule this program. |
0710d850 DS |
3034 | if test "$cross_compiling" != no; then |
3035 | if test -n "$ac_tool_prefix"; then | |
3036 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3037 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
1ef0423a | 3038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 3039 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 3040 | if ${ac_cv_prog_STRIP+:} false; then : |
0710d850 DS |
3041 | $as_echo_n "(cached) " >&6 |
3042 | else | |
3043 | if test -n "$STRIP"; then | |
3044 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3045 | else | |
3046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3047 | for as_dir in $PATH | |
3048 | do | |
3049 | IFS=$as_save_IFS | |
3050 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 3051 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 3052 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0710d850 | 3053 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
1ef0423a | 3054 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0710d850 DS |
3055 | break 2 |
3056 | fi | |
3057 | done | |
1ef0423a | 3058 | done |
0710d850 DS |
3059 | IFS=$as_save_IFS |
3060 | ||
3061 | fi | |
3062 | fi | |
3063 | STRIP=$ac_cv_prog_STRIP | |
3064 | if test -n "$STRIP"; then | |
1ef0423a | 3065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
0710d850 DS |
3066 | $as_echo "$STRIP" >&6; } |
3067 | else | |
1ef0423a | 3068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 DS |
3069 | $as_echo "no" >&6; } |
3070 | fi | |
3071 | ||
3072 | ||
3073 | fi | |
3074 | if test -z "$ac_cv_prog_STRIP"; then | |
3075 | ac_ct_STRIP=$STRIP | |
3076 | # Extract the first word of "strip", so it can be a program name with args. | |
3077 | set dummy strip; ac_word=$2 | |
1ef0423a | 3078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 3079 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 3080 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
0710d850 DS |
3081 | $as_echo_n "(cached) " >&6 |
3082 | else | |
3083 | if test -n "$ac_ct_STRIP"; then | |
3084 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3085 | else | |
3086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3087 | for as_dir in $PATH | |
3088 | do | |
3089 | IFS=$as_save_IFS | |
3090 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 3091 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 3092 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0710d850 | 3093 | ac_cv_prog_ac_ct_STRIP="strip" |
1ef0423a | 3094 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0710d850 DS |
3095 | break 2 |
3096 | fi | |
3097 | done | |
1ef0423a | 3098 | done |
0710d850 DS |
3099 | IFS=$as_save_IFS |
3100 | ||
3101 | fi | |
3102 | fi | |
3103 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3104 | if test -n "$ac_ct_STRIP"; then | |
1ef0423a | 3105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
0710d850 DS |
3106 | $as_echo "$ac_ct_STRIP" >&6; } |
3107 | else | |
1ef0423a | 3108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 DS |
3109 | $as_echo "no" >&6; } |
3110 | fi | |
3111 | ||
3112 | if test "x$ac_ct_STRIP" = x; then | |
3113 | STRIP=":" | |
3114 | else | |
3115 | case $cross_compiling:$ac_tool_warned in | |
3116 | yes:) | |
1ef0423a | 3117 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
0710d850 DS |
3118 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3119 | ac_tool_warned=yes ;; | |
3120 | esac | |
3121 | STRIP=$ac_ct_STRIP | |
3122 | fi | |
3123 | else | |
3124 | STRIP="$ac_cv_prog_STRIP" | |
3125 | fi | |
3126 | ||
3127 | fi | |
3128 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3129 | ||
1ef0423a | 3130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
0710d850 | 3131 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
7fbd9d09 | 3132 | if test -z "$MKDIR_P"; then |
c3de29bd | 3133 | if ${ac_cv_path_mkdir+:} false; then : |
0710d850 | 3134 | $as_echo_n "(cached) " >&6 |
7fbd9d09 FCE |
3135 | else |
3136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3137 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3138 | do | |
3139 | IFS=$as_save_IFS | |
3140 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 3141 | for ac_prog in mkdir gmkdir; do |
7fbd9d09 | 3142 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 3143 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
7fbd9d09 FCE |
3144 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
3145 | 'mkdir (GNU coreutils) '* | \ | |
3146 | 'mkdir (coreutils) '* | \ | |
3147 | 'mkdir (fileutils) '4.1*) | |
3148 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3149 | break 3;; | |
3150 | esac | |
3151 | done | |
3152 | done | |
1ef0423a | 3153 | done |
7fbd9d09 FCE |
3154 | IFS=$as_save_IFS |
3155 | ||
3156 | fi | |
3157 | ||
1ef0423a | 3158 | test -d ./--version && rmdir ./--version |
7fbd9d09 FCE |
3159 | if test "${ac_cv_path_mkdir+set}" = set; then |
3160 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2f1a1aea | 3161 | else |
7fbd9d09 FCE |
3162 | # As a last resort, use the slow shell script. Don't cache a |
3163 | # value for MKDIR_P within a source directory, because that will | |
3164 | # break other packages using the cache if that directory is | |
3165 | # removed, or if the value is a relative name. | |
7fbd9d09 | 3166 | MKDIR_P="$ac_install_sh -d" |
2f1a1aea FCE |
3167 | fi |
3168 | fi | |
1ef0423a | 3169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
0710d850 | 3170 | $as_echo "$MKDIR_P" >&6; } |
7fbd9d09 | 3171 | |
2f1a1aea FCE |
3172 | for ac_prog in gawk mawk nawk awk |
3173 | do | |
3174 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3175 | set dummy $ac_prog; ac_word=$2 | |
1ef0423a | 3176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 3177 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 3178 | if ${ac_cv_prog_AWK+:} false; then : |
0710d850 | 3179 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3180 | else |
3181 | if test -n "$AWK"; then | |
3182 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3183 | else | |
3184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3185 | for as_dir in $PATH | |
3186 | do | |
3187 | IFS=$as_save_IFS | |
3188 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 3189 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 3190 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea | 3191 | ac_cv_prog_AWK="$ac_prog" |
1ef0423a | 3192 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3193 | break 2 |
3194 | fi | |
3195 | done | |
1ef0423a | 3196 | done |
7fbd9d09 | 3197 | IFS=$as_save_IFS |
2f1a1aea FCE |
3198 | |
3199 | fi | |
3200 | fi | |
3201 | AWK=$ac_cv_prog_AWK | |
3202 | if test -n "$AWK"; then | |
1ef0423a | 3203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
0710d850 | 3204 | $as_echo "$AWK" >&6; } |
2f1a1aea | 3205 | else |
1ef0423a | 3206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 3207 | $as_echo "no" >&6; } |
2f1a1aea FCE |
3208 | fi |
3209 | ||
7fbd9d09 | 3210 | |
2f1a1aea FCE |
3211 | test -n "$AWK" && break |
3212 | done | |
3213 | ||
1ef0423a | 3214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
0710d850 DS |
3215 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
3216 | set x ${MAKE-make} | |
3217 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
c3de29bd | 3218 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
0710d850 | 3219 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3220 | else |
3221 | cat >conftest.make <<\_ACEOF | |
412e1bf7 FCE |
3222 | SHELL = /bin/sh |
3223 | all: | |
3224 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3225 | _ACEOF | |
5d4aa1f5 | 3226 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
412e1bf7 FCE |
3227 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3228 | *@@@%%%=?*=@@@%%%*) | |
3229 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3230 | *) | |
3231 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3232 | esac | |
3233 | rm -f conftest.make | |
4a3c19da | 3234 | fi |
412e1bf7 | 3235 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
1ef0423a | 3236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
0710d850 | 3237 | $as_echo "yes" >&6; } |
412e1bf7 | 3238 | SET_MAKE= |
4a3c19da | 3239 | else |
1ef0423a | 3240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 3241 | $as_echo "no" >&6; } |
412e1bf7 | 3242 | SET_MAKE="MAKE=${MAKE-make}" |
2f1a1aea FCE |
3243 | fi |
3244 | ||
412e1bf7 FCE |
3245 | rm -rf .tst 2>/dev/null |
3246 | mkdir .tst 2>/dev/null | |
3247 | if test -d .tst; then | |
3248 | am__leading_dot=. | |
4a3c19da | 3249 | else |
412e1bf7 | 3250 | am__leading_dot=_ |
2f1a1aea | 3251 | fi |
412e1bf7 | 3252 | rmdir .tst 2>/dev/null |
2f1a1aea | 3253 | |
d9e6d90b WC |
3254 | # Check whether --enable-silent-rules was given. |
3255 | if test "${enable_silent_rules+set}" = set; then : | |
3256 | enableval=$enable_silent_rules; | |
3257 | fi | |
3258 | ||
3259 | case $enable_silent_rules in # ((( | |
3260 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3261 | no) AM_DEFAULT_VERBOSITY=1;; | |
3262 | *) AM_DEFAULT_VERBOSITY=1;; | |
3263 | esac | |
3264 | am_make=${MAKE-make} | |
3265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3266 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3267 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3268 | $as_echo_n "(cached) " >&6 | |
3269 | else | |
3270 | if $as_echo 'TRUE=$(BAR$(V)) | |
3271 | BAR0=false | |
3272 | BAR1=true | |
3273 | V=1 | |
3274 | am__doit: | |
3275 | @$(TRUE) | |
3276 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3277 | am_cv_make_support_nested_variables=yes | |
3278 | else | |
3279 | am_cv_make_support_nested_variables=no | |
3280 | fi | |
3281 | fi | |
3282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3283 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3284 | if test $am_cv_make_support_nested_variables = yes; then | |
3285 | AM_V='$(V)' | |
3286 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3287 | else | |
3288 | AM_V=$AM_DEFAULT_VERBOSITY | |
3289 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3290 | fi | |
3291 | AM_BACKSLASH='\' | |
3292 | ||
412e1bf7 FCE |
3293 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3294 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3295 | # is not polluted with repeated "-I." | |
3296 | am__isrc=' -I$(srcdir)' | |
3297 | # test to see if srcdir already configured | |
3298 | if test -f $srcdir/config.status; then | |
5d4aa1f5 | 3299 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
412e1bf7 | 3300 | fi |
4a3c19da | 3301 | fi |
412e1bf7 FCE |
3302 | |
3303 | # test whether we have cygpath | |
3304 | if test -z "$CYGPATH_W"; then | |
3305 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3306 | CYGPATH_W='cygpath -w' | |
3307 | else | |
3308 | CYGPATH_W=echo | |
3309 | fi | |
3310 | fi | |
3311 | ||
3312 | ||
3313 | # Define the identity of the package. | |
3314 | PACKAGE='systemtap' | |
9c043a41 | 3315 | VERSION='3.2' |
412e1bf7 FCE |
3316 | |
3317 | ||
3318 | cat >>confdefs.h <<_ACEOF | |
3319 | #define PACKAGE "$PACKAGE" | |
3320 | _ACEOF | |
3321 | ||
3322 | ||
3323 | cat >>confdefs.h <<_ACEOF | |
3324 | #define VERSION "$VERSION" | |
3325 | _ACEOF | |
3326 | ||
3327 | # Some tools Automake needs. | |
3328 | ||
3329 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3330 | ||
3331 | ||
3332 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3333 | ||
3334 | ||
0710d850 | 3335 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
31f9baea | 3336 | |
0710d850 DS |
3337 | |
3338 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3339 | ||
3340 | ||
3341 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2f1a1aea | 3342 | |
8eef2738 LB |
3343 | # For better backward compatibility. To be removed once Automake 1.9.x |
3344 | # dies out for good. For more background, see: | |
3345 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3346 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3347 | mkdir_p='$(MKDIR_P)' | |
3348 | ||
7012fdd5 FCE |
3349 | # We need awk for the "check" target (and possibly the TAP driver). The |
3350 | # system "awk" is bad on some platforms. | |
c66be968 JS |
3351 | # Always define AMTAR for backward compatibility. Yes, it's still used |
3352 | # in the wild :-( We should find a proper way to deprecate it ... | |
3353 | AMTAR='$${TAR-tar}' | |
2f1a1aea | 3354 | |
d9e6d90b WC |
3355 | |
3356 | # We'll loop over all known methods to create a tar archive until one works. | |
3357 | _am_tools='gnutar pax cpio none' | |
3358 | ||
c66be968 | 3359 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
2f1a1aea FCE |
3360 | |
3361 | ||
3362 | ||
3363 | ||
3364 | ||
0710d850 | 3365 | |
46c282e4 FCE |
3366 | # POSIX will say in a future version that running "rm -f" with no argument |
3367 | # is OK; and we want to be able to make that assumption in our Makefile | |
3368 | # recipes. So use an aggressive probe to check that the usage we want is | |
3369 | # actually supported "in the wild" to an acceptable degree. | |
3370 | # See automake bug#10828. | |
3371 | # To make any issue more visible, cause the running configure to be aborted | |
3372 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3373 | # user can still override this though. | |
3374 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3375 | cat >&2 <<'END' | |
3376 | Oops! | |
3377 | ||
3378 | Your 'rm' program seems unable to run without file operands specified | |
3379 | on the command line, even when the '-f' option is present. This is contrary | |
3380 | to the behaviour of most rm programs out there, and not conforming with | |
3381 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3382 | ||
3383 | Please tell bug-automake@gnu.org about your system, including the value | |
3384 | of your $PATH and any error possibly output before this message. This | |
3385 | can help us improve future automake versions. | |
3386 | ||
3387 | END | |
3388 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3389 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3390 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3391 | echo >&2 | |
3392 | else | |
3393 | cat >&2 <<'END' | |
3394 | Aborting the configuration process, to ensure you take notice of the issue. | |
3395 | ||
3396 | You can download and install GNU coreutils to get an 'rm' implementation | |
3397 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3398 | ||
3399 | If you want to complete the configuration process using your problematic | |
3400 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3401 | to "yes", and re-run configure. | |
3402 | ||
3403 | END | |
3404 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3405 | fi | |
3406 | fi | |
d9e6d90b | 3407 | |
7012fdd5 | 3408 | |
1ef0423a | 3409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
0710d850 | 3410 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
7fbd9d09 | 3411 | # Check whether --enable-maintainer-mode was given. |
1ef0423a | 3412 | if test "${enable_maintainer_mode+set}" = set; then : |
7fbd9d09 | 3413 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
2f1a1aea FCE |
3414 | else |
3415 | USE_MAINTAINER_MODE=no | |
7fbd9d09 | 3416 | fi |
2f1a1aea | 3417 | |
1ef0423a | 3418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
0710d850 | 3419 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
7fbd9d09 | 3420 | if test $USE_MAINTAINER_MODE = yes; then |
2f1a1aea FCE |
3421 | MAINTAINER_MODE_TRUE= |
3422 | MAINTAINER_MODE_FALSE='#' | |
3423 | else | |
3424 | MAINTAINER_MODE_TRUE='#' | |
3425 | MAINTAINER_MODE_FALSE= | |
3426 | fi | |
3427 | ||
3428 | MAINT=$MAINTAINER_MODE_TRUE | |
3429 | ||
3430 | ||
3431 | ||
0710d850 | 3432 | # Check whether --enable-silent-rules was given. |
1ef0423a | 3433 | if test "${enable_silent_rules+set}" = set; then : |
0710d850 DS |
3434 | enableval=$enable_silent_rules; |
3435 | fi | |
3436 | ||
8eef2738 LB |
3437 | case $enable_silent_rules in # ((( |
3438 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3439 | no) AM_DEFAULT_VERBOSITY=1;; | |
3440 | *) AM_DEFAULT_VERBOSITY=0;; | |
0710d850 | 3441 | esac |
c66be968 JS |
3442 | am_make=${MAKE-make} |
3443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3444 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3445 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3446 | $as_echo_n "(cached) " >&6 | |
3447 | else | |
3448 | if $as_echo 'TRUE=$(BAR$(V)) | |
3449 | BAR0=false | |
3450 | BAR1=true | |
3451 | V=1 | |
3452 | am__doit: | |
3453 | @$(TRUE) | |
3454 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3455 | am_cv_make_support_nested_variables=yes | |
3456 | else | |
3457 | am_cv_make_support_nested_variables=no | |
3458 | fi | |
3459 | fi | |
3460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3461 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3462 | if test $am_cv_make_support_nested_variables = yes; then | |
3463 | AM_V='$(V)' | |
3464 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3465 | else | |
3466 | AM_V=$AM_DEFAULT_VERBOSITY | |
3467 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3468 | fi | |
0710d850 | 3469 | AM_BACKSLASH='\' |
618a8a63 JS |
3470 | |
3471 | ||
8f223b3e FCE |
3472 | DEPDIR="${am__leading_dot}deps" |
3473 | ||
3474 | ac_config_commands="$ac_config_commands depfiles" | |
3475 | ||
3476 | ||
3477 | am_make=${MAKE-make} | |
3478 | cat > confinc << 'END' | |
3479 | am__doit: | |
3480 | @echo this is the am__doit target | |
3481 | .PHONY: am__doit | |
3482 | END | |
3483 | # If we don't find an include directive, just comment out the code. | |
3484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
3485 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
3486 | am__include="#" | |
3487 | am__quote= | |
3488 | _am_result=none | |
3489 | # First try GNU make style include. | |
3490 | echo "include confinc" > confmf | |
8eef2738 | 3491 | # Ignore all kinds of additional output from 'make'. |
8f223b3e FCE |
3492 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3493 | *the\ am__doit\ target*) | |
3494 | am__include=include | |
3495 | am__quote= | |
3496 | _am_result=GNU | |
3497 | ;; | |
7fbd9d09 | 3498 | esac |
8f223b3e FCE |
3499 | # Now try BSD make style include. |
3500 | if test "$am__include" = "#"; then | |
3501 | echo '.include "confinc"' > confmf | |
3502 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3503 | *the\ am__doit\ target*) | |
3504 | am__include=.include | |
3505 | am__quote="\"" | |
3506 | _am_result=BSD | |
3507 | ;; | |
3508 | esac | |
3509 | fi | |
7fbd9d09 | 3510 | |
98aab489 | 3511 | |
8f223b3e FCE |
3512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
3513 | $as_echo "$_am_result" >&6; } | |
3514 | rm -f confinc confmf | |
3515 | ||
3516 | # Check whether --enable-dependency-tracking was given. | |
3517 | if test "${enable_dependency_tracking+set}" = set; then : | |
3518 | enableval=$enable_dependency_tracking; | |
3519 | fi | |
3520 | ||
3521 | if test "x$enable_dependency_tracking" != xno; then | |
3522 | am_depcomp="$ac_aux_dir/depcomp" | |
3523 | AMDEPBACKSLASH='\' | |
c66be968 | 3524 | am__nodep='_no' |
8f223b3e FCE |
3525 | fi |
3526 | if test "x$enable_dependency_tracking" != xno; then | |
3527 | AMDEP_TRUE= | |
3528 | AMDEP_FALSE='#' | |
2f1a1aea | 3529 | else |
8f223b3e FCE |
3530 | AMDEP_TRUE='#' |
3531 | AMDEP_FALSE= | |
2f1a1aea FCE |
3532 | fi |
3533 | ||
8f223b3e | 3534 | |
2f1a1aea FCE |
3535 | ac_ext=c |
3536 | ac_cpp='$CPP $CPPFLAGS' | |
3537 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3538 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3539 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3540 | if test -n "$ac_tool_prefix"; then | |
3541 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3542 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1ef0423a | 3543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 3544 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 3545 | if ${ac_cv_prog_CC+:} false; then : |
0710d850 | 3546 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3547 | else |
3548 | if test -n "$CC"; then | |
3549 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3550 | else | |
3551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3552 | for as_dir in $PATH | |
3553 | do | |
3554 | IFS=$as_save_IFS | |
3555 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 3556 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 3557 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea | 3558 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1ef0423a | 3559 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3560 | break 2 |
3561 | fi | |
3562 | done | |
1ef0423a | 3563 | done |
7fbd9d09 | 3564 | IFS=$as_save_IFS |
2f1a1aea FCE |
3565 | |
3566 | fi | |
3567 | fi | |
3568 | CC=$ac_cv_prog_CC | |
3569 | if test -n "$CC"; then | |
1ef0423a | 3570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
0710d850 | 3571 | $as_echo "$CC" >&6; } |
2f1a1aea | 3572 | else |
1ef0423a | 3573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 3574 | $as_echo "no" >&6; } |
2f1a1aea FCE |
3575 | fi |
3576 | ||
7fbd9d09 | 3577 | |
2f1a1aea FCE |
3578 | fi |
3579 | if test -z "$ac_cv_prog_CC"; then | |
3580 | ac_ct_CC=$CC | |
3581 | # Extract the first word of "gcc", so it can be a program name with args. | |
3582 | set dummy gcc; ac_word=$2 | |
1ef0423a | 3583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 3584 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 3585 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
0710d850 | 3586 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3587 | else |
3588 | if test -n "$ac_ct_CC"; then | |
3589 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3590 | else | |
3591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3592 | for as_dir in $PATH | |
3593 | do | |
3594 | IFS=$as_save_IFS | |
3595 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 3596 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 3597 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea | 3598 | ac_cv_prog_ac_ct_CC="gcc" |
1ef0423a | 3599 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3600 | break 2 |
3601 | fi | |
3602 | done | |
1ef0423a | 3603 | done |
7fbd9d09 | 3604 | IFS=$as_save_IFS |
2f1a1aea FCE |
3605 | |
3606 | fi | |
3607 | fi | |
3608 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3609 | if test -n "$ac_ct_CC"; then | |
1ef0423a | 3610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
0710d850 | 3611 | $as_echo "$ac_ct_CC" >&6; } |
2f1a1aea | 3612 | else |
1ef0423a | 3613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 3614 | $as_echo "no" >&6; } |
2f1a1aea FCE |
3615 | fi |
3616 | ||
7fbd9d09 FCE |
3617 | if test "x$ac_ct_CC" = x; then |
3618 | CC="" | |
3619 | else | |
3620 | case $cross_compiling:$ac_tool_warned in | |
3621 | yes:) | |
1ef0423a | 3622 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
0710d850 | 3623 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7fbd9d09 FCE |
3624 | ac_tool_warned=yes ;; |
3625 | esac | |
3626 | CC=$ac_ct_CC | |
3627 | fi | |
2f1a1aea FCE |
3628 | else |
3629 | CC="$ac_cv_prog_CC" | |
3630 | fi | |
3631 | ||
3632 | if test -z "$CC"; then | |
7fbd9d09 FCE |
3633 | if test -n "$ac_tool_prefix"; then |
3634 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2f1a1aea | 3635 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
1ef0423a | 3636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 3637 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 3638 | if ${ac_cv_prog_CC+:} false; then : |
0710d850 | 3639 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3640 | else |
3641 | if test -n "$CC"; then | |
3642 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3643 | else | |
3644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3645 | for as_dir in $PATH | |
3646 | do | |
3647 | IFS=$as_save_IFS | |
3648 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 3649 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 3650 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea | 3651 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1ef0423a | 3652 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3653 | break 2 |
3654 | fi | |
3655 | done | |
1ef0423a | 3656 | done |
7fbd9d09 | 3657 | IFS=$as_save_IFS |
2f1a1aea FCE |
3658 | |
3659 | fi | |
3660 | fi | |
3661 | CC=$ac_cv_prog_CC | |
3662 | if test -n "$CC"; then | |
1ef0423a | 3663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
0710d850 | 3664 | $as_echo "$CC" >&6; } |
818ba2bc | 3665 | else |
1ef0423a | 3666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 3667 | $as_echo "no" >&6; } |
818ba2bc MW |
3668 | fi |
3669 | ||
818ba2bc | 3670 | |
7fbd9d09 | 3671 | fi |
2f1a1aea FCE |
3672 | fi |
3673 | if test -z "$CC"; then | |
3674 | # Extract the first word of "cc", so it can be a program name with args. | |
3675 | set dummy cc; ac_word=$2 | |
1ef0423a | 3676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 3677 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 3678 | if ${ac_cv_prog_CC+:} false; then : |
0710d850 | 3679 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3680 | else |
3681 | if test -n "$CC"; then | |
3682 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3683 | else | |
3684 | ac_prog_rejected=no | |
3685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3686 | for as_dir in $PATH | |
3687 | do | |
3688 | IFS=$as_save_IFS | |
3689 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 3690 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 3691 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea FCE |
3692 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3693 | ac_prog_rejected=yes | |
3694 | continue | |
3695 | fi | |
3696 | ac_cv_prog_CC="cc" | |
1ef0423a | 3697 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3698 | break 2 |
3699 | fi | |
3700 | done | |
1ef0423a | 3701 | done |
7fbd9d09 | 3702 | IFS=$as_save_IFS |
2f1a1aea FCE |
3703 | |
3704 | if test $ac_prog_rejected = yes; then | |
3705 | # We found a bogon in the path, so make sure we never use it. | |
3706 | set dummy $ac_cv_prog_CC | |
3707 | shift | |
3708 | if test $# != 0; then | |
3709 | # We chose a different compiler from the bogus one. | |
3710 | # However, it has the same basename, so the bogon will be chosen | |
3711 | # first if we set CC to just the basename; use the full file name. | |
3712 | shift | |
3713 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3714 | fi | |
3715 | fi | |
3716 | fi | |
3717 | fi | |
3718 | CC=$ac_cv_prog_CC | |
3719 | if test -n "$CC"; then | |
1ef0423a | 3720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
0710d850 | 3721 | $as_echo "$CC" >&6; } |
2f1a1aea | 3722 | else |
1ef0423a | 3723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 3724 | $as_echo "no" >&6; } |
2f1a1aea FCE |
3725 | fi |
3726 | ||
7fbd9d09 | 3727 | |
2f1a1aea FCE |
3728 | fi |
3729 | if test -z "$CC"; then | |
3730 | if test -n "$ac_tool_prefix"; then | |
7fbd9d09 | 3731 | for ac_prog in cl.exe |
2f1a1aea FCE |
3732 | do |
3733 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3734 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1ef0423a | 3735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 3736 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 3737 | if ${ac_cv_prog_CC+:} false; then : |
0710d850 | 3738 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3739 | else |
3740 | if test -n "$CC"; then | |
3741 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3742 | else | |
3743 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3744 | for as_dir in $PATH | |
3745 | do | |
3746 | IFS=$as_save_IFS | |
3747 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 3748 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 3749 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea | 3750 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1ef0423a | 3751 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3752 | break 2 |
3753 | fi | |
3754 | done | |
1ef0423a | 3755 | done |
7fbd9d09 | 3756 | IFS=$as_save_IFS |
2f1a1aea FCE |
3757 | |
3758 | fi | |
3759 | fi | |
3760 | CC=$ac_cv_prog_CC | |
3761 | if test -n "$CC"; then | |
1ef0423a | 3762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
0710d850 | 3763 | $as_echo "$CC" >&6; } |
2f1a1aea | 3764 | else |
1ef0423a | 3765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 3766 | $as_echo "no" >&6; } |
2f1a1aea FCE |
3767 | fi |
3768 | ||
7fbd9d09 | 3769 | |
2f1a1aea FCE |
3770 | test -n "$CC" && break |
3771 | done | |
3772 | fi | |
3773 | if test -z "$CC"; then | |
3774 | ac_ct_CC=$CC | |
7fbd9d09 | 3775 | for ac_prog in cl.exe |
2f1a1aea FCE |
3776 | do |
3777 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3778 | set dummy $ac_prog; ac_word=$2 | |
1ef0423a | 3779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 3780 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 3781 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
0710d850 | 3782 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3783 | else |
3784 | if test -n "$ac_ct_CC"; then | |
3785 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3786 | else | |
3787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3788 | for as_dir in $PATH | |
3789 | do | |
3790 | IFS=$as_save_IFS | |
3791 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 3792 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 3793 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea | 3794 | ac_cv_prog_ac_ct_CC="$ac_prog" |
1ef0423a | 3795 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3796 | break 2 |
3797 | fi | |
3798 | done | |
1ef0423a | 3799 | done |
7fbd9d09 | 3800 | IFS=$as_save_IFS |
2f1a1aea FCE |
3801 | |
3802 | fi | |
3803 | fi | |
3804 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3805 | if test -n "$ac_ct_CC"; then | |
1ef0423a | 3806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
0710d850 | 3807 | $as_echo "$ac_ct_CC" >&6; } |
2f1a1aea | 3808 | else |
1ef0423a | 3809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 3810 | $as_echo "no" >&6; } |
2f1a1aea FCE |
3811 | fi |
3812 | ||
7fbd9d09 | 3813 | |
2f1a1aea FCE |
3814 | test -n "$ac_ct_CC" && break |
3815 | done | |
3816 | ||
7fbd9d09 FCE |
3817 | if test "x$ac_ct_CC" = x; then |
3818 | CC="" | |
3819 | else | |
3820 | case $cross_compiling:$ac_tool_warned in | |
3821 | yes:) | |
1ef0423a | 3822 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
0710d850 | 3823 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7fbd9d09 FCE |
3824 | ac_tool_warned=yes ;; |
3825 | esac | |
3826 | CC=$ac_ct_CC | |
3827 | fi | |
2f1a1aea FCE |
3828 | fi |
3829 | ||
3830 | fi | |
3831 | ||
3832 | ||
1ef0423a | 3833 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
0710d850 | 3834 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
5d4aa1f5 FCE |
3835 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3836 | See \`config.log' for more details" "$LINENO" 5; } | |
2f1a1aea FCE |
3837 | |
3838 | # Provide some information about the compiler. | |
1ef0423a | 3839 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
0710d850 DS |
3840 | set X $ac_compile |
3841 | ac_compiler=$2 | |
1ef0423a FCE |
3842 | for ac_option in --version -v -V -qversion; do |
3843 | { { ac_try="$ac_compiler $ac_option >&5" | |
5e5aee9f FCE |
3844 | case "(($ac_try" in |
3845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3846 | *) ac_try_echo=$ac_try;; | |
3847 | esac | |
1ef0423a FCE |
3848 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3849 | $as_echo "$ac_try_echo"; } >&5 | |
3850 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
5e5aee9f | 3851 | ac_status=$? |
1ef0423a FCE |
3852 | if test -s conftest.err; then |
3853 | sed '10a\ | |
3854 | ... rest of stderr output deleted ... | |
3855 | 10q' conftest.err >conftest.er1 | |
3856 | cat conftest.er1 >&5 | |
3857 | fi | |
3858 | rm -f conftest.er1 conftest.err | |
3859 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3860 | test $ac_status = 0; } | |
3861 | done | |
2f1a1aea | 3862 | |
1ef0423a | 3863 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea | 3864 | /* end confdefs.h. */ |
412e1bf7 | 3865 | |
2f1a1aea FCE |
3866 | int |
3867 | main () | |
3868 | { | |
3869 | ||
3870 | ; | |
3871 | return 0; | |
3872 | } | |
3873 | _ACEOF | |
3874 | ac_clean_files_save=$ac_clean_files | |
0710d850 | 3875 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
2f1a1aea FCE |
3876 | # Try to create an executable without -o first, disregard a.out. |
3877 | # It will help us diagnose broken compilers, and finding out an intuition | |
3878 | # of exeext. | |
1ef0423a FCE |
3879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3880 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
0710d850 DS |
3881 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3882 | ||
3883 | # The possible output files: | |
3884 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3885 | ||
7fbd9d09 FCE |
3886 | ac_rmfiles= |
3887 | for ac_file in $ac_files | |
3888 | do | |
3889 | case $ac_file in | |
0710d850 | 3890 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
7fbd9d09 FCE |
3891 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3892 | esac | |
3893 | done | |
3894 | rm -f $ac_rmfiles | |
3895 | ||
1ef0423a | 3896 | if { { ac_try="$ac_link_default" |
7fbd9d09 FCE |
3897 | case "(($ac_try" in |
3898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3899 | *) ac_try_echo=$ac_try;; | |
3900 | esac | |
1ef0423a FCE |
3901 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3902 | $as_echo "$ac_try_echo"; } >&5 | |
7fbd9d09 | 3903 | (eval "$ac_link_default") 2>&5 |
2f1a1aea | 3904 | ac_status=$? |
1ef0423a FCE |
3905 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3906 | test $ac_status = 0; }; then : | |
7fbd9d09 FCE |
3907 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3908 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3909 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3910 | # so that the user can short-circuit this test for compilers unknown to | |
3911 | # Autoconf. | |
3912 | for ac_file in $ac_files '' | |
2f1a1aea FCE |
3913 | do |
3914 | test -f "$ac_file" || continue | |
3915 | case $ac_file in | |
0710d850 | 3916 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
2f1a1aea FCE |
3917 | ;; |
3918 | [ab].out ) | |
3919 | # We found the default executable, but exeext='' is most | |
3920 | # certainly right. | |
3921 | break;; | |
3922 | *.* ) | |
1ef0423a | 3923 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
7fbd9d09 FCE |
3924 | then :; else |
3925 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3926 | fi | |
3927 | # We set ac_cv_exeext here because the later test for it is not | |
3928 | # safe: cross compilers may not add the suffix if given an `-o' | |
3929 | # argument, so we may need to know it at that point already. | |
3930 | # Even if this section looks crufty: it has the advantage of | |
3931 | # actually working. | |
2f1a1aea FCE |
3932 | break;; |
3933 | * ) | |
3934 | break;; | |
3935 | esac | |
3936 | done | |
7fbd9d09 FCE |
3937 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3938 | ||
2f1a1aea | 3939 | else |
7fbd9d09 FCE |
3940 | ac_file='' |
3941 | fi | |
1ef0423a FCE |
3942 | if test -z "$ac_file"; then : |
3943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3944 | $as_echo "no" >&6; } | |
3945 | $as_echo "$as_me: failed program was:" >&5 | |
2f1a1aea FCE |
3946 | sed 's/^/| /' conftest.$ac_ext >&5 |
3947 | ||
1ef0423a | 3948 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
0710d850 | 3949 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
5d4aa1f5 FCE |
3950 | as_fn_error 77 "C compiler cannot create executables |
3951 | See \`config.log' for more details" "$LINENO" 5; } | |
1ef0423a FCE |
3952 | else |
3953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3954 | $as_echo "yes" >&6; } | |
2f1a1aea | 3955 | fi |
1ef0423a FCE |
3956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3957 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3959 | $as_echo "$ac_file" >&6; } | |
2f1a1aea | 3960 | ac_exeext=$ac_cv_exeext |
2f1a1aea | 3961 | |
0710d850 | 3962 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
2f1a1aea | 3963 | ac_clean_files=$ac_clean_files_save |
1ef0423a | 3964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
0710d850 | 3965 | $as_echo_n "checking for suffix of executables... " >&6; } |
1ef0423a | 3966 | if { { ac_try="$ac_link" |
7fbd9d09 FCE |
3967 | case "(($ac_try" in |
3968 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3969 | *) ac_try_echo=$ac_try;; | |
3970 | esac | |
1ef0423a FCE |
3971 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3972 | $as_echo "$ac_try_echo"; } >&5 | |
7fbd9d09 | 3973 | (eval "$ac_link") 2>&5 |
2f1a1aea | 3974 | ac_status=$? |
1ef0423a FCE |
3975 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3976 | test $ac_status = 0; }; then : | |
2f1a1aea FCE |
3977 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3978 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3979 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3980 | # `rm'. | |
3981 | for ac_file in conftest.exe conftest conftest.*; do | |
3982 | test -f "$ac_file" || continue | |
3983 | case $ac_file in | |
0710d850 | 3984 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
2f1a1aea | 3985 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2f1a1aea FCE |
3986 | break;; |
3987 | * ) break;; | |
3988 | esac | |
3989 | done | |
3990 | else | |
1ef0423a | 3991 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
0710d850 | 3992 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
5d4aa1f5 FCE |
3993 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3994 | See \`config.log' for more details" "$LINENO" 5; } | |
2f1a1aea | 3995 | fi |
1ef0423a FCE |
3996 | rm -f conftest conftest$ac_cv_exeext |
3997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
0710d850 | 3998 | $as_echo "$ac_cv_exeext" >&6; } |
2f1a1aea FCE |
3999 | |
4000 | rm -f conftest.$ac_ext | |
4001 | EXEEXT=$ac_cv_exeext | |
4002 | ac_exeext=$EXEEXT | |
1ef0423a FCE |
4003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4004 | /* end confdefs.h. */ | |
4005 | #include <stdio.h> | |
4006 | int | |
4007 | main () | |
4008 | { | |
4009 | FILE *f = fopen ("conftest.out", "w"); | |
4010 | return ferror (f) || fclose (f) != 0; | |
4011 | ||
4012 | ; | |
4013 | return 0; | |
4014 | } | |
4015 | _ACEOF | |
4016 | ac_clean_files="$ac_clean_files conftest.out" | |
4017 | # Check that the compiler produces executables we can run. If not, either | |
4018 | # the compiler is broken, or we cross compile. | |
4019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4020 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4021 | if test "$cross_compiling" != yes; then | |
4022 | { { ac_try="$ac_link" | |
4023 | case "(($ac_try" in | |
4024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4025 | *) ac_try_echo=$ac_try;; | |
4026 | esac | |
4027 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4028 | $as_echo "$ac_try_echo"; } >&5 | |
4029 | (eval "$ac_link") 2>&5 | |
4030 | ac_status=$? | |
4031 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4032 | test $ac_status = 0; } | |
4033 | if { ac_try='./conftest$ac_cv_exeext' | |
4034 | { { case "(($ac_try" in | |
4035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4036 | *) ac_try_echo=$ac_try;; | |
4037 | esac | |
4038 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4039 | $as_echo "$ac_try_echo"; } >&5 | |
4040 | (eval "$ac_try") 2>&5 | |
4041 | ac_status=$? | |
4042 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4043 | test $ac_status = 0; }; }; then | |
4044 | cross_compiling=no | |
4045 | else | |
4046 | if test "$cross_compiling" = maybe; then | |
4047 | cross_compiling=yes | |
4048 | else | |
4049 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4050 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5d4aa1f5 | 4051 | as_fn_error $? "cannot run C compiled programs. |
1ef0423a | 4052 | If you meant to cross compile, use \`--host'. |
5d4aa1f5 | 4053 | See \`config.log' for more details" "$LINENO" 5; } |
1ef0423a FCE |
4054 | fi |
4055 | fi | |
4056 | fi | |
4057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4058 | $as_echo "$cross_compiling" >&6; } | |
4059 | ||
4060 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4061 | ac_clean_files=$ac_clean_files_save | |
4062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
0710d850 | 4063 | $as_echo_n "checking for suffix of object files... " >&6; } |
c3de29bd | 4064 | if ${ac_cv_objext+:} false; then : |
0710d850 | 4065 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 4066 | else |
1ef0423a | 4067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea FCE |
4068 | /* end confdefs.h. */ |
4069 | ||
4070 | int | |
4071 | main () | |
4072 | { | |
4073 | ||
4074 | ; | |
4075 | return 0; | |
4076 | } | |
4077 | _ACEOF | |
4078 | rm -f conftest.o conftest.obj | |
1ef0423a | 4079 | if { { ac_try="$ac_compile" |
7fbd9d09 FCE |
4080 | case "(($ac_try" in |
4081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4082 | *) ac_try_echo=$ac_try;; | |
4083 | esac | |
1ef0423a FCE |
4084 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4085 | $as_echo "$ac_try_echo"; } >&5 | |
7fbd9d09 | 4086 | (eval "$ac_compile") 2>&5 |
2f1a1aea | 4087 | ac_status=$? |
1ef0423a FCE |
4088 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4089 | test $ac_status = 0; }; then : | |
7fbd9d09 FCE |
4090 | for ac_file in conftest.o conftest.obj conftest.*; do |
4091 | test -f "$ac_file" || continue; | |
2f1a1aea | 4092 | case $ac_file in |
0710d850 | 4093 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
2f1a1aea FCE |
4094 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4095 | break;; | |
4096 | esac | |
4097 | done | |
4098 | else | |
0710d850 | 4099 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
4100 | sed 's/^/| /' conftest.$ac_ext >&5 |
4101 | ||
1ef0423a | 4102 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
0710d850 | 4103 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
5d4aa1f5 FCE |
4104 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4105 | See \`config.log' for more details" "$LINENO" 5; } | |
2f1a1aea | 4106 | fi |
2f1a1aea FCE |
4107 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4108 | fi | |
1ef0423a | 4109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
0710d850 | 4110 | $as_echo "$ac_cv_objext" >&6; } |
2f1a1aea FCE |
4111 | OBJEXT=$ac_cv_objext |
4112 | ac_objext=$OBJEXT | |
1ef0423a | 4113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
0710d850 | 4114 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
c3de29bd | 4115 | if ${ac_cv_c_compiler_gnu+:} false; then : |
0710d850 | 4116 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 4117 | else |
1ef0423a | 4118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea FCE |
4119 | /* end confdefs.h. */ |
4120 | ||
4121 | int | |
4122 | main () | |
4123 | { | |
4124 | #ifndef __GNUC__ | |
4125 | choke me | |
4126 | #endif | |
4127 | ||
4128 | ; | |
4129 | return 0; | |
4130 | } | |
4131 | _ACEOF | |
1ef0423a | 4132 | if ac_fn_c_try_compile "$LINENO"; then : |
2f1a1aea FCE |
4133 | ac_compiler_gnu=yes |
4134 | else | |
1ef0423a | 4135 | ac_compiler_gnu=no |
2f1a1aea | 4136 | fi |
7fbd9d09 | 4137 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2f1a1aea FCE |
4138 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4139 | ||
4140 | fi | |
1ef0423a | 4141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
0710d850 DS |
4142 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
4143 | if test $ac_compiler_gnu = yes; then | |
4144 | GCC=yes | |
4145 | else | |
4146 | GCC= | |
4147 | fi | |
2f1a1aea FCE |
4148 | ac_test_CFLAGS=${CFLAGS+set} |
4149 | ac_save_CFLAGS=$CFLAGS | |
1ef0423a | 4150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
0710d850 | 4151 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
c3de29bd | 4152 | if ${ac_cv_prog_cc_g+:} false; then : |
0710d850 | 4153 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 4154 | else |
7fbd9d09 FCE |
4155 | ac_save_c_werror_flag=$ac_c_werror_flag |
4156 | ac_c_werror_flag=yes | |
4157 | ac_cv_prog_cc_g=no | |
4158 | CFLAGS="-g" | |
1ef0423a | 4159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea FCE |
4160 | /* end confdefs.h. */ |
4161 | ||
4162 | int | |
4163 | main () | |
4164 | { | |
4165 | ||
4166 | ; | |
4167 | return 0; | |
4168 | } | |
4169 | _ACEOF | |
1ef0423a | 4170 | if ac_fn_c_try_compile "$LINENO"; then : |
7fbd9d09 FCE |
4171 | ac_cv_prog_cc_g=yes |
4172 | else | |
1ef0423a FCE |
4173 | CFLAGS="" |
4174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7fbd9d09 FCE |
4175 | /* end confdefs.h. */ |
4176 | ||
4177 | int | |
4178 | main () | |
4179 | { | |
4180 | ||
4181 | ; | |
4182 | return 0; | |
4183 | } | |
4184 | _ACEOF | |
1ef0423a | 4185 | if ac_fn_c_try_compile "$LINENO"; then : |
5e5aee9f | 4186 | |
1ef0423a FCE |
4187 | else |
4188 | ac_c_werror_flag=$ac_save_c_werror_flag | |
7fbd9d09 | 4189 | CFLAGS="-g" |
1ef0423a | 4190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7fbd9d09 FCE |
4191 | /* end confdefs.h. */ |
4192 | ||
4193 | int | |
4194 | main () | |
4195 | { | |
4196 | ||
4197 | ; | |
4198 | return 0; | |
4199 | } | |
4200 | _ACEOF | |
1ef0423a | 4201 | if ac_fn_c_try_compile "$LINENO"; then : |
2f1a1aea | 4202 | ac_cv_prog_cc_g=yes |
7fbd9d09 | 4203 | fi |
7fbd9d09 | 4204 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2f1a1aea | 4205 | fi |
7fbd9d09 FCE |
4206 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4207 | fi | |
7fbd9d09 FCE |
4208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4209 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2f1a1aea | 4210 | fi |
1ef0423a | 4211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
0710d850 | 4212 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
2f1a1aea FCE |
4213 | if test "$ac_test_CFLAGS" = set; then |
4214 | CFLAGS=$ac_save_CFLAGS | |
4215 | elif test $ac_cv_prog_cc_g = yes; then | |
4216 | if test "$GCC" = yes; then | |
4217 | CFLAGS="-g -O2" | |
4218 | else | |
4219 | CFLAGS="-g" | |
4220 | fi | |
4221 | else | |
4222 | if test "$GCC" = yes; then | |
4223 | CFLAGS="-O2" | |
4224 | else | |
4225 | CFLAGS= | |
4226 | fi | |
4227 | fi | |
1ef0423a | 4228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
0710d850 | 4229 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
c3de29bd | 4230 | if ${ac_cv_prog_cc_c89+:} false; then : |
0710d850 | 4231 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 4232 | else |
7fbd9d09 | 4233 | ac_cv_prog_cc_c89=no |
2f1a1aea | 4234 | ac_save_CC=$CC |
1ef0423a | 4235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea FCE |
4236 | /* end confdefs.h. */ |
4237 | #include <stdarg.h> | |
4238 | #include <stdio.h> | |
8eef2738 | 4239 | struct stat; |
2f1a1aea FCE |
4240 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4241 | struct buf { int x; }; | |
4242 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4243 | static char *e (p, i) | |
4244 | char **p; | |
4245 | int i; | |
4246 | { | |
4247 | return p[i]; | |
4248 | } | |
4249 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4250 | { | |
4251 | char *s; | |
4252 | va_list v; | |
4253 | va_start (v,p); | |
4254 | s = g (p, va_arg (v,int)); | |
4255 | va_end (v); | |
4256 | return s; | |
4257 | } | |
4258 | ||
4259 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4260 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4261 | These don't provoke an error unfortunately, instead are silently treated | |
7fbd9d09 | 4262 | as 'x'. The following induces an error, until -std is added to get |
2f1a1aea FCE |
4263 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4264 | array size at least. It's necessary to write '\x00'==0 to get something | |
7fbd9d09 | 4265 | that's true only with -std. */ |
2f1a1aea FCE |
4266 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4267 | ||
7fbd9d09 FCE |
4268 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4269 | inside strings and character constants. */ | |
4270 | #define FOO(x) 'x' | |
4271 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4272 | ||
2f1a1aea FCE |
4273 | int test (int i, double x); |
4274 | struct s1 {int (*f) (int a);}; | |
4275 | struct s2 {int (*f) (double a);}; | |
4276 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4277 | int argc; | |
4278 | char **argv; | |
4279 | int | |
4280 | main () | |
4281 | { | |
4282 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4283 | ; | |
4284 | return 0; | |
4285 | } | |
4286 | _ACEOF | |
7fbd9d09 FCE |
4287 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4288 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2f1a1aea FCE |
4289 | do |
4290 | CC="$ac_save_CC $ac_arg" | |
1ef0423a | 4291 | if ac_fn_c_try_compile "$LINENO"; then : |
7fbd9d09 | 4292 | ac_cv_prog_cc_c89=$ac_arg |
2f1a1aea | 4293 | fi |
7fbd9d09 FCE |
4294 | rm -f core conftest.err conftest.$ac_objext |
4295 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
2f1a1aea | 4296 | done |
7fbd9d09 | 4297 | rm -f conftest.$ac_ext |
2f1a1aea FCE |
4298 | CC=$ac_save_CC |
4299 | ||
4300 | fi | |
7fbd9d09 FCE |
4301 | # AC_CACHE_VAL |
4302 | case "x$ac_cv_prog_cc_c89" in | |
4303 | x) | |
1ef0423a | 4304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
0710d850 | 4305 | $as_echo "none needed" >&6; } ;; |
7fbd9d09 | 4306 | xno) |
1ef0423a | 4307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
0710d850 | 4308 | $as_echo "unsupported" >&6; } ;; |
2f1a1aea | 4309 | *) |
7fbd9d09 | 4310 | CC="$CC $ac_cv_prog_cc_c89" |
1ef0423a | 4311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
0710d850 | 4312 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
2f1a1aea | 4313 | esac |
1ef0423a | 4314 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
2f1a1aea | 4315 | |
1ef0423a | 4316 | fi |
818ba2bc | 4317 | |
818ba2bc MW |
4318 | ac_ext=c |
4319 | ac_cpp='$CPP $CPPFLAGS' | |
4320 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4321 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4322 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
818ba2bc | 4323 | |
46c282e4 FCE |
4324 | ac_ext=c |
4325 | ac_cpp='$CPP $CPPFLAGS' | |
4326 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4327 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4328 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4330 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4331 | if ${am_cv_prog_cc_c_o+:} false; then : | |
4332 | $as_echo_n "(cached) " >&6 | |
4333 | else | |
4334 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4335 | /* end confdefs.h. */ | |
4336 | ||
4337 | int | |
4338 | main () | |
4339 | { | |
4340 | ||
4341 | ; | |
4342 | return 0; | |
4343 | } | |
4344 | _ACEOF | |
4345 | # Make sure it works both with $CC and with simple cc. | |
4346 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4347 | # compilers refuse to overwrite an existing .o file with -o, | |
4348 | # though they will create one. | |
4349 | am_cv_prog_cc_c_o=yes | |
4350 | for am_i in 1 2; do | |
4351 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4352 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4353 | ac_status=$? | |
4354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4355 | (exit $ac_status); } \ | |
4356 | && test -f conftest2.$ac_objext; then | |
4357 | : OK | |
4358 | else | |
4359 | am_cv_prog_cc_c_o=no | |
4360 | break | |
4361 | fi | |
4362 | done | |
4363 | rm -f core conftest* | |
4364 | unset am_i | |
4365 | fi | |
4366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4367 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4368 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4369 | # Losing compiler, so override with the script. | |
4370 | # FIXME: It is wrong to rewrite CC. | |
4371 | # But if we don't then we get into trouble of one sort or another. | |
4372 | # A longer-term fix would be to have automake use am__CC in this case, | |
4373 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4374 | CC="$am_aux_dir/compile $CC" | |
4375 | fi | |
4376 | ac_ext=c | |
4377 | ac_cpp='$CPP $CPPFLAGS' | |
4378 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4379 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4380 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4381 | ||
4382 | ||
8f223b3e | 4383 | depcc="$CC" am_compiler_list= |
2f1a1aea | 4384 | |
1ef0423a | 4385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
0710d850 | 4386 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
c3de29bd | 4387 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
0710d850 | 4388 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4389 | else |
4390 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4391 | # We make a subdir and do the tests there. Otherwise we can end up | |
4392 | # making bogus files that we don't know about and never remove. For | |
4393 | # instance it was reported that on HP-UX the gcc test will end up | |
8eef2738 LB |
4394 | # making a dummy file named 'D' -- because '-MD' means "put the output |
4395 | # in D". | |
c66be968 | 4396 | rm -rf conftest.dir |
2f1a1aea FCE |
4397 | mkdir conftest.dir |
4398 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4399 | # using a relative directory. | |
4400 | cp "$am_depcomp" conftest.dir | |
4401 | cd conftest.dir | |
4402 | # We will build objects and dependencies in a subdirectory because | |
4403 | # it helps to detect inapplicable dependency modes. For instance | |
4404 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4405 | # side effect of compilation, but ICC will put the dependencies in | |
4406 | # the current directory while Tru64 will put them in the object | |
4407 | # directory. | |
4408 | mkdir sub | |
4409 | ||
4410 | am_cv_CC_dependencies_compiler_type=none | |
4411 | if test "$am_compiler_list" = ""; then | |
4412 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4413 | fi | |
0710d850 DS |
4414 | am__universal=false |
4415 | case " $depcc " in #( | |
4416 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4417 | esac | |
4418 | ||
2f1a1aea FCE |
4419 | for depmode in $am_compiler_list; do |
4420 | # Setup a source with many dependencies, because some compilers | |
4421 | # like to wrap large dependency lists on column 80 (with \), and | |
4422 | # we should not choose a depcomp mode which is confused by this. | |
4423 | # | |
4424 | # We need to recreate these files for each test, as the compiler may | |
4425 | # overwrite some of them when testing with obscure command lines. | |
4426 | # This happens at least with the AIX C compiler. | |
4427 | : > sub/conftest.c | |
4428 | for i in 1 2 3 4 5 6; do | |
4429 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
8eef2738 LB |
4430 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
4431 | # Solaris 10 /bin/sh. | |
4432 | echo '/* dummy */' > sub/conftst$i.h | |
2f1a1aea FCE |
4433 | done |
4434 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4435 | ||
8eef2738 | 4436 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
0710d850 | 4437 | # mode. It turns out that the SunPro C++ compiler does not properly |
8eef2738 LB |
4438 | # handle '-M -o', and we need to detect this. Also, some Intel |
4439 | # versions had trouble with output in subdirs. | |
0710d850 DS |
4440 | am__obj=sub/conftest.${OBJEXT-o} |
4441 | am__minus_obj="-o $am__obj" | |
2f1a1aea | 4442 | case $depmode in |
0710d850 DS |
4443 | gcc) |
4444 | # This depmode causes a compiler race in universal mode. | |
4445 | test "$am__universal" = false || continue | |
4446 | ;; | |
2f1a1aea | 4447 | nosideeffect) |
8eef2738 LB |
4448 | # After this tag, mechanisms are not by side-effect, so they'll |
4449 | # only be used when explicitly requested. | |
2f1a1aea FCE |
4450 | if test "x$enable_dependency_tracking" = xyes; then |
4451 | continue | |
4452 | else | |
4453 | break | |
4454 | fi | |
4455 | ;; | |
c66be968 | 4456 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
8eef2738 | 4457 | # This compiler won't grok '-c -o', but also, the minuso test has |
0710d850 DS |
4458 | # not run yet. These depmodes are late enough in the game, and |
4459 | # so weak that their functioning should not be impacted. | |
4460 | am__obj=conftest.${OBJEXT-o} | |
4461 | am__minus_obj= | |
4462 | ;; | |
2f1a1aea FCE |
4463 | none) break ;; |
4464 | esac | |
2f1a1aea | 4465 | if depmode=$depmode \ |
0710d850 | 4466 | source=sub/conftest.c object=$am__obj \ |
2f1a1aea | 4467 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
0710d850 | 4468 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
2f1a1aea | 4469 | >/dev/null 2>conftest.err && |
7fbd9d09 | 4470 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea | 4471 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
0710d850 | 4472 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea FCE |
4473 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4474 | # icc doesn't choke on unknown options, it will just issue warnings | |
4475 | # or remarks (even with -Werror). So we grep stderr for any message | |
4476 | # that says an option was ignored or not supported. | |
4477 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4478 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4479 | # The diagnosis changed in icc 8.0: | |
4480 | # icc: Command line remark: option '-MP' not supported | |
4481 | if (grep 'ignoring option' conftest.err || | |
4482 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4483 | am_cv_CC_dependencies_compiler_type=$depmode | |
4484 | break | |
4485 | fi | |
4486 | fi | |
4487 | done | |
4488 | ||
4489 | cd .. | |
4490 | rm -rf conftest.dir | |
4491 | else | |
4492 | am_cv_CC_dependencies_compiler_type=none | |
4493 | fi | |
4494 | ||
4495 | fi | |
1ef0423a | 4496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
0710d850 | 4497 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
2f1a1aea FCE |
4498 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4499 | ||
7fbd9d09 | 4500 | if |
2f1a1aea FCE |
4501 | test "x$enable_dependency_tracking" != xno \ |
4502 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4503 | am__fastdepCC_TRUE= | |
4504 | am__fastdepCC_FALSE='#' | |
4505 | else | |
4506 | am__fastdepCC_TRUE='#' | |
4507 | am__fastdepCC_FALSE= | |
4508 | fi | |
4509 | ||
4510 | ||
8f223b3e FCE |
4511 | |
4512 | ac_ext=c | |
4513 | ac_cpp='$CPP $CPPFLAGS' | |
4514 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4515 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4516 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
4518 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
4519 | # On Suns, sometimes $CPP names a directory. | |
4520 | if test -n "$CPP" && test -d "$CPP"; then | |
4521 | CPP= | |
4522 | fi | |
4523 | if test -z "$CPP"; then | |
c3de29bd | 4524 | if ${ac_cv_prog_CPP+:} false; then : |
0710d850 | 4525 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 4526 | else |
8f223b3e FCE |
4527 | # Double quotes because CPP needs to be expanded |
4528 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4529 | do | |
4530 | ac_preproc_ok=false | |
4531 | for ac_c_preproc_warn_flag in '' yes | |
2f1a1aea | 4532 | do |
8f223b3e FCE |
4533 | # Use a header file that comes with gcc, so configuring glibc |
4534 | # with a fresh cross-compiler works. | |
4535 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4536 | # <limits.h> exists even on freestanding compilers. | |
4537 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4538 | # not just through cpp. "Syntax error" is here to catch this case. | |
4539 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4540 | /* end confdefs.h. */ | |
4541 | #ifdef __STDC__ | |
4542 | # include <limits.h> | |
4543 | #else | |
4544 | # include <assert.h> | |
4545 | #endif | |
4546 | Syntax error | |
4547 | _ACEOF | |
4548 | if ac_fn_c_try_cpp "$LINENO"; then : | |
2f1a1aea | 4549 | |
8f223b3e FCE |
4550 | else |
4551 | # Broken: fails on valid input. | |
4552 | continue | |
2f1a1aea | 4553 | fi |
c3de29bd | 4554 | rm -f conftest.err conftest.i conftest.$ac_ext |
8f223b3e FCE |
4555 | |
4556 | # OK, works on sane cases. Now check whether nonexistent headers | |
4557 | # can be detected and how. | |
4558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4559 | /* end confdefs.h. */ | |
4560 | #include <ac_nonexistent.h> | |
4561 | _ACEOF | |
4562 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4563 | # Broken: success on invalid input. | |
4564 | continue | |
2f1a1aea | 4565 | else |
8f223b3e FCE |
4566 | # Passes both tests. |
4567 | ac_preproc_ok=: | |
4568 | break | |
4569 | fi | |
c3de29bd | 4570 | rm -f conftest.err conftest.i conftest.$ac_ext |
8f223b3e FCE |
4571 | |
4572 | done | |
4573 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
c3de29bd | 4574 | rm -f conftest.i conftest.err conftest.$ac_ext |
8f223b3e FCE |
4575 | if $ac_preproc_ok; then : |
4576 | break | |
2f1a1aea FCE |
4577 | fi |
4578 | ||
8f223b3e FCE |
4579 | done |
4580 | ac_cv_prog_CPP=$CPP | |
7fbd9d09 | 4581 | |
2f1a1aea | 4582 | fi |
8f223b3e | 4583 | CPP=$ac_cv_prog_CPP |
2f1a1aea | 4584 | else |
8f223b3e FCE |
4585 | ac_cv_prog_CPP=$CPP |
4586 | fi | |
4587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
4588 | $as_echo "$CPP" >&6; } | |
4589 | ac_preproc_ok=false | |
4590 | for ac_c_preproc_warn_flag in '' yes | |
2f1a1aea | 4591 | do |
8f223b3e FCE |
4592 | # Use a header file that comes with gcc, so configuring glibc |
4593 | # with a fresh cross-compiler works. | |
4594 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4595 | # <limits.h> exists even on freestanding compilers. | |
4596 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4597 | # not just through cpp. "Syntax error" is here to catch this case. | |
4598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4599 | /* end confdefs.h. */ | |
4600 | #ifdef __STDC__ | |
4601 | # include <limits.h> | |
4602 | #else | |
4603 | # include <assert.h> | |
4604 | #endif | |
4605 | Syntax error | |
4606 | _ACEOF | |
4607 | if ac_fn_c_try_cpp "$LINENO"; then : | |
2f1a1aea | 4608 | |
2f1a1aea | 4609 | else |
8f223b3e FCE |
4610 | # Broken: fails on valid input. |
4611 | continue | |
2f1a1aea | 4612 | fi |
c3de29bd | 4613 | rm -f conftest.err conftest.i conftest.$ac_ext |
2f1a1aea | 4614 | |
8f223b3e FCE |
4615 | # OK, works on sane cases. Now check whether nonexistent headers |
4616 | # can be detected and how. | |
4617 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4618 | /* end confdefs.h. */ | |
4619 | #include <ac_nonexistent.h> | |
4620 | _ACEOF | |
4621 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4622 | # Broken: success on invalid input. | |
4623 | continue | |
4624 | else | |
4625 | # Passes both tests. | |
4626 | ac_preproc_ok=: | |
4627 | break | |
4628 | fi | |
c3de29bd | 4629 | rm -f conftest.err conftest.i conftest.$ac_ext |
7fbd9d09 | 4630 | |
2f1a1aea | 4631 | done |
8f223b3e | 4632 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
c3de29bd | 4633 | rm -f conftest.i conftest.err conftest.$ac_ext |
8f223b3e | 4634 | if $ac_preproc_ok; then : |
2f1a1aea | 4635 | |
8f223b3e FCE |
4636 | else |
4637 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4638 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5d4aa1f5 FCE |
4639 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4640 | See \`config.log' for more details" "$LINENO" 5; } | |
2f1a1aea FCE |
4641 | fi |
4642 | ||
8f223b3e FCE |
4643 | ac_ext=c |
4644 | ac_cpp='$CPP $CPPFLAGS' | |
4645 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4646 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4647 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4648 | ||
4649 | ||
4650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4651 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
c3de29bd | 4652 | if ${ac_cv_path_GREP+:} false; then : |
8f223b3e FCE |
4653 | $as_echo_n "(cached) " >&6 |
4654 | else | |
4655 | if test -z "$GREP"; then | |
4656 | ac_path_GREP_found=false | |
4657 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4659 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4660 | do | |
4661 | IFS=$as_save_IFS | |
4662 | test -z "$as_dir" && as_dir=. | |
4663 | for ac_prog in grep ggrep; do | |
4664 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4665 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
8eef2738 | 4666 | as_fn_executable_p "$ac_path_GREP" || continue |
8f223b3e FCE |
4667 | # Check for GNU ac_path_GREP and select it if it is found. |
4668 | # Check for GNU $ac_path_GREP | |
4669 | case `"$ac_path_GREP" --version 2>&1` in | |
4670 | *GNU*) | |
4671 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4672 | *) | |
4673 | ac_count=0 | |
4674 | $as_echo_n 0123456789 >"conftest.in" | |
4675 | while : | |
4676 | do | |
4677 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4678 | mv "conftest.tmp" "conftest.in" | |
4679 | cp "conftest.in" "conftest.nl" | |
4680 | $as_echo 'GREP' >> "conftest.nl" | |
4681 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4682 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4683 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4684 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4685 | # Best one so far, save it but keep looking for a better one | |
4686 | ac_cv_path_GREP="$ac_path_GREP" | |
4687 | ac_path_GREP_max=$ac_count | |
4688 | fi | |
4689 | # 10*(2^10) chars as input seems more than enough | |
4690 | test $ac_count -gt 10 && break | |
4691 | done | |
4692 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5e5aee9f | 4693 | esac |
8f223b3e FCE |
4694 | |
4695 | $ac_path_GREP_found && break 3 | |
4696 | done | |
4697 | done | |
4698 | done | |
4699 | IFS=$as_save_IFS | |
4700 | if test -z "$ac_cv_path_GREP"; then | |
5d4aa1f5 | 4701 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
1ef0423a | 4702 | fi |
8f223b3e FCE |
4703 | else |
4704 | ac_cv_path_GREP=$GREP | |
4705 | fi | |
2f1a1aea | 4706 | |
8f223b3e FCE |
4707 | fi |
4708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4709 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4710 | GREP="$ac_cv_path_GREP" | |
4711 | ||
4712 | ||
4713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4714 | $as_echo_n "checking for egrep... " >&6; } | |
c3de29bd | 4715 | if ${ac_cv_path_EGREP+:} false; then : |
8f223b3e FCE |
4716 | $as_echo_n "(cached) " >&6 |
4717 | else | |
4718 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4719 | then ac_cv_path_EGREP="$GREP -E" | |
4720 | else | |
4721 | if test -z "$EGREP"; then | |
4722 | ac_path_EGREP_found=false | |
4723 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4725 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4726 | do | |
4727 | IFS=$as_save_IFS | |
4728 | test -z "$as_dir" && as_dir=. | |
4729 | for ac_prog in egrep; do | |
4730 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4731 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
8eef2738 | 4732 | as_fn_executable_p "$ac_path_EGREP" || continue |
8f223b3e FCE |
4733 | # Check for GNU ac_path_EGREP and select it if it is found. |
4734 | # Check for GNU $ac_path_EGREP | |
4735 | case `"$ac_path_EGREP" --version 2>&1` in | |
4736 | *GNU*) | |
4737 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4738 | *) | |
4739 | ac_count=0 | |
4740 | $as_echo_n 0123456789 >"conftest.in" | |
4741 | while : | |
4742 | do | |
4743 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4744 | mv "conftest.tmp" "conftest.in" | |
4745 | cp "conftest.in" "conftest.nl" | |
4746 | $as_echo 'EGREP' >> "conftest.nl" | |
4747 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4748 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4749 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4750 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4751 | # Best one so far, save it but keep looking for a better one | |
4752 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4753 | ac_path_EGREP_max=$ac_count | |
4754 | fi | |
4755 | # 10*(2^10) chars as input seems more than enough | |
4756 | test $ac_count -gt 10 && break | |
4757 | done | |
4758 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4759 | esac | |
4760 | ||
4761 | $ac_path_EGREP_found && break 3 | |
4762 | done | |
4763 | done | |
4764 | done | |
4765 | IFS=$as_save_IFS | |
4766 | if test -z "$ac_cv_path_EGREP"; then | |
5d4aa1f5 | 4767 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8f223b3e FCE |
4768 | fi |
4769 | else | |
4770 | ac_cv_path_EGREP=$EGREP | |
4771 | fi | |
4772 | ||
4773 | fi | |
4774 | fi | |
4775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4776 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4777 | EGREP="$ac_cv_path_EGREP" | |
4778 | ||
4779 | ||
4780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4781 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
c3de29bd | 4782 | if ${ac_cv_header_stdc+:} false; then : |
0710d850 | 4783 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 4784 | else |
1ef0423a | 4785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea | 4786 | /* end confdefs.h. */ |
8f223b3e FCE |
4787 | #include <stdlib.h> |
4788 | #include <stdarg.h> | |
4789 | #include <string.h> | |
4790 | #include <float.h> | |
2f1a1aea FCE |
4791 | |
4792 | int | |
4793 | main () | |
4794 | { | |
2f1a1aea FCE |
4795 | |
4796 | ; | |
4797 | return 0; | |
4798 | } | |
4799 | _ACEOF | |
8f223b3e FCE |
4800 | if ac_fn_c_try_compile "$LINENO"; then : |
4801 | ac_cv_header_stdc=yes | |
2f1a1aea | 4802 | else |
8f223b3e | 4803 | ac_cv_header_stdc=no |
2f1a1aea | 4804 | fi |
7fbd9d09 | 4805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2f1a1aea | 4806 | |
8f223b3e FCE |
4807 | if test $ac_cv_header_stdc = yes; then |
4808 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4810 | /* end confdefs.h. */ | |
4811 | #include <string.h> | |
4812 | ||
4813 | _ACEOF | |
4814 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4815 | $EGREP "memchr" >/dev/null 2>&1; then : | |
4816 | ||
0710d850 | 4817 | else |
8f223b3e | 4818 | ac_cv_header_stdc=no |
0710d850 | 4819 | fi |
8f223b3e | 4820 | rm -f conftest* |
2f1a1aea | 4821 | |
8f223b3e FCE |
4822 | fi |
4823 | ||
4824 | if test $ac_cv_header_stdc = yes; then | |
4825 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4827 | /* end confdefs.h. */ | |
4828 | #include <stdlib.h> | |
2f1a1aea | 4829 | |
2f1a1aea | 4830 | _ACEOF |
8f223b3e FCE |
4831 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4832 | $EGREP "free" >/dev/null 2>&1; then : | |
4833 | ||
2f1a1aea | 4834 | else |
8f223b3e FCE |
4835 | ac_cv_header_stdc=no |
4836 | fi | |
4837 | rm -f conftest* | |
4838 | ||
4839 | fi | |
4840 | ||
4841 | if test $ac_cv_header_stdc = yes; then | |
4842 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4843 | if test "$cross_compiling" = yes; then : | |
4844 | : | |
4845 | else | |
4846 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2f1a1aea | 4847 | /* end confdefs.h. */ |
8f223b3e FCE |
4848 | #include <ctype.h> |
4849 | #include <stdlib.h> | |
4850 | #if ((' ' & 0x0FF) == 0x020) | |
4851 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4852 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4853 | #else | |
4854 | # define ISLOWER(c) \ | |
4855 | (('a' <= (c) && (c) <= 'i') \ | |
4856 | || ('j' <= (c) && (c) <= 'r') \ | |
4857 | || ('s' <= (c) && (c) <= 'z')) | |
4858 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4859 | #endif | |
7fbd9d09 | 4860 | |
8f223b3e | 4861 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
2f1a1aea FCE |
4862 | int |
4863 | main () | |
4864 | { | |
8f223b3e FCE |
4865 | int i; |
4866 | for (i = 0; i < 256; i++) | |
4867 | if (XOR (islower (i), ISLOWER (i)) | |
4868 | || toupper (i) != TOUPPER (i)) | |
4869 | return 2; | |
2f1a1aea FCE |
4870 | return 0; |
4871 | } | |
4872 | _ACEOF | |
8f223b3e | 4873 | if ac_fn_c_try_run "$LINENO"; then : |
5e5aee9f | 4874 | |
1ef0423a | 4875 | else |
8f223b3e FCE |
4876 | ac_cv_header_stdc=no |
4877 | fi | |
4878 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4879 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4880 | fi | |
4881 | ||
4882 | fi | |
4883 | fi | |
4884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
4885 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4886 | if test $ac_cv_header_stdc = yes; then | |
4887 | ||
4888 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
4889 | ||
4890 | fi | |
4891 | ||
4892 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4893 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4894 | inttypes.h stdint.h unistd.h | |
4895 | do : | |
4896 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4897 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4898 | " | |
5d4aa1f5 | 4899 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
8f223b3e FCE |
4900 | cat >>confdefs.h <<_ACEOF |
4901 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4902 | _ACEOF | |
4903 | ||
4904 | fi | |
4905 | ||
4906 | done | |
4907 | ||
4908 | ||
4909 | ||
4910 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
c3de29bd | 4911 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
8f223b3e FCE |
4912 | MINIX=yes |
4913 | else | |
4914 | MINIX= | |
4915 | fi | |
4916 | ||
4917 | ||
4918 | if test "$MINIX" = yes; then | |
4919 | ||
4920 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
4921 | ||
4922 | ||
4923 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
4924 | ||
4925 | ||
4926 | $as_echo "#define _MINIX 1" >>confdefs.h | |
4927 | ||
4928 | fi | |
4929 | ||
4930 | ||
4931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
4932 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
c3de29bd | 4933 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
8f223b3e FCE |
4934 | $as_echo_n "(cached) " >&6 |
4935 | else | |
4936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2f1a1aea | 4937 | /* end confdefs.h. */ |
7fbd9d09 | 4938 | |
8eef2738 LB |
4939 | # define __EXTENSIONS__ 1 |
4940 | $ac_includes_default | |
2f1a1aea FCE |
4941 | int |
4942 | main () | |
4943 | { | |
7fbd9d09 | 4944 | |
2f1a1aea FCE |
4945 | ; |
4946 | return 0; | |
4947 | } | |
4a3c19da | 4948 | _ACEOF |
8f223b3e FCE |
4949 | if ac_fn_c_try_compile "$LINENO"; then : |
4950 | ac_cv_safe_to_define___extensions__=yes | |
4951 | else | |
4952 | ac_cv_safe_to_define___extensions__=no | |
5e0d2ebf | 4953 | fi |
7fbd9d09 | 4954 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7fbd9d09 | 4955 | fi |
8f223b3e FCE |
4956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
4957 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
4958 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4959 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
2f1a1aea | 4960 | |
8f223b3e | 4961 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
2f1a1aea | 4962 | |
8f223b3e | 4963 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
2f1a1aea | 4964 | |
8f223b3e | 4965 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
0710d850 | 4966 | |
8f223b3e | 4967 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
2f1a1aea | 4968 | |
2f1a1aea | 4969 | |
8eef2738 | 4970 | |
2f1a1aea | 4971 | |
8f223b3e FCE |
4972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
4973 | $as_echo_n "checking whether ln -s works... " >&6; } | |
4974 | LN_S=$as_ln_s | |
4975 | if test "$LN_S" = "ln -s"; then | |
4976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4977 | $as_echo "yes" >&6; } | |
2f1a1aea | 4978 | else |
8f223b3e FCE |
4979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
4980 | $as_echo "no, using $LN_S" >&6; } | |
2f1a1aea FCE |
4981 | fi |
4982 | ||
2f1a1aea FCE |
4983 | ac_ext=c |
4984 | ac_cpp='$CPP $CPPFLAGS' | |
4985 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4986 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4987 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8f223b3e FCE |
4988 | if test -n "$ac_tool_prefix"; then |
4989 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4990 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
4991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4992 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 4993 | if ${ac_cv_prog_CC+:} false; then : |
0710d850 | 4994 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 4995 | else |
8f223b3e FCE |
4996 | if test -n "$CC"; then |
4997 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2f1a1aea FCE |
4998 | else |
4999 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5000 | for as_dir in $PATH | |
5001 | do | |
5002 | IFS=$as_save_IFS | |
5003 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 5004 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 5005 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea | 5006 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1ef0423a | 5007 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
5008 | break 2 |
5009 | fi | |
5010 | done | |
1ef0423a | 5011 | done |
7fbd9d09 | 5012 | IFS=$as_save_IFS |
2f1a1aea FCE |
5013 | |
5014 | fi | |
5015 | fi | |
5016 | CC=$ac_cv_prog_CC | |
5017 | if test -n "$CC"; then | |
1ef0423a | 5018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
0710d850 | 5019 | $as_echo "$CC" >&6; } |
2f1a1aea | 5020 | else |
1ef0423a | 5021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 5022 | $as_echo "no" >&6; } |
2f1a1aea FCE |
5023 | fi |
5024 | ||
7fbd9d09 | 5025 | |
2f1a1aea FCE |
5026 | fi |
5027 | if test -z "$ac_cv_prog_CC"; then | |
5028 | ac_ct_CC=$CC | |
5029 | # Extract the first word of "gcc", so it can be a program name with args. | |
5030 | set dummy gcc; ac_word=$2 | |
1ef0423a | 5031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 5032 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 5033 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
0710d850 | 5034 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
5035 | else |
5036 | if test -n "$ac_ct_CC"; then | |
5037 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
5038 | else | |
5039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5040 | for as_dir in $PATH | |
5041 | do | |
5042 | IFS=$as_save_IFS | |
5043 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 5044 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 5045 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea | 5046 | ac_cv_prog_ac_ct_CC="gcc" |
1ef0423a | 5047 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
5048 | break 2 |
5049 | fi | |
5050 | done | |
1ef0423a | 5051 | done |
7fbd9d09 | 5052 | IFS=$as_save_IFS |
2f1a1aea FCE |
5053 | |
5054 | fi | |
5055 | fi | |
5056 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
5057 | if test -n "$ac_ct_CC"; then | |
1ef0423a | 5058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
0710d850 | 5059 | $as_echo "$ac_ct_CC" >&6; } |
2f1a1aea | 5060 | else |
1ef0423a | 5061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 5062 | $as_echo "no" >&6; } |
2f1a1aea FCE |
5063 | fi |
5064 | ||
7fbd9d09 FCE |
5065 | if test "x$ac_ct_CC" = x; then |
5066 | CC="" | |
5067 | else | |
5068 | case $cross_compiling:$ac_tool_warned in | |
5069 | yes:) | |
1ef0423a | 5070 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
0710d850 | 5071 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7fbd9d09 FCE |
5072 | ac_tool_warned=yes ;; |
5073 | esac | |
5074 | CC=$ac_ct_CC | |
5075 | fi | |
2f1a1aea FCE |
5076 | else |
5077 | CC="$ac_cv_prog_CC" | |
5078 | fi | |
5079 | ||
5080 | if test -z "$CC"; then | |
7fbd9d09 FCE |
5081 | if test -n "$ac_tool_prefix"; then |
5082 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2f1a1aea | 5083 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
1ef0423a | 5084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 5085 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 5086 | if ${ac_cv_prog_CC+:} false; then : |
0710d850 | 5087 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
5088 | else |
5089 | if test -n "$CC"; then | |
5090 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5091 | else | |
5092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5093 | for as_dir in $PATH | |
5094 | do | |
5095 | IFS=$as_save_IFS | |
5096 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 5097 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 5098 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea | 5099 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1ef0423a | 5100 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
5101 | break 2 |
5102 | fi | |
5103 | done | |
1ef0423a | 5104 | done |
7fbd9d09 | 5105 | IFS=$as_save_IFS |
2f1a1aea FCE |
5106 | |
5107 | fi | |
5108 | fi | |
5109 | CC=$ac_cv_prog_CC | |
5110 | if test -n "$CC"; then | |
1ef0423a | 5111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
0710d850 | 5112 | $as_echo "$CC" >&6; } |
818ba2bc | 5113 | else |
1ef0423a | 5114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 5115 | $as_echo "no" >&6; } |
818ba2bc MW |
5116 | fi |
5117 | ||
818ba2bc | 5118 | |
7fbd9d09 | 5119 | fi |
8ae7a94a FCE |
5120 | fi |
5121 | if test -z "$CC"; then | |
5122 | # Extract the first word of "cc", so it can be a program name with args. | |
5123 | set dummy cc; ac_word=$2 | |
1ef0423a | 5124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 5125 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 5126 | if ${ac_cv_prog_CC+:} false; then : |
0710d850 | 5127 | $as_echo_n "(cached) " >&6 |
8ae7a94a FCE |
5128 | else |
5129 | if test -n "$CC"; then | |
2f1a1aea FCE |
5130 | ac_cv_prog_CC="$CC" # Let the user override the test. |
5131 | else | |
5132 | ac_prog_rejected=no | |
5133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5134 | for as_dir in $PATH | |
5135 | do | |
5136 | IFS=$as_save_IFS | |
5137 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 5138 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 5139 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea FCE |
5140 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
5141 | ac_prog_rejected=yes | |
5142 | continue | |
5143 | fi | |
5144 | ac_cv_prog_CC="cc" | |
1ef0423a | 5145 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
5146 | break 2 |
5147 | fi | |
5148 | done | |
1ef0423a | 5149 | done |
7fbd9d09 | 5150 | IFS=$as_save_IFS |
2f1a1aea FCE |
5151 | |
5152 | if test $ac_prog_rejected = yes; then | |
5153 | # We found a bogon in the path, so make sure we never use it. | |
5154 | set dummy $ac_cv_prog_CC | |
5155 | shift | |
5156 | if test $# != 0; then | |
5157 | # We chose a different compiler from the bogus one. | |
5158 | # However, it has the same basename, so the bogon will be chosen | |
5159 | # first if we set CC to just the basename; use the full file name. | |
5160 | shift | |
5161 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
5162 | fi | |
5163 | fi | |
5164 | fi | |
5165 | fi | |
5166 | CC=$ac_cv_prog_CC | |
5167 | if test -n "$CC"; then | |
1ef0423a | 5168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
0710d850 | 5169 | $as_echo "$CC" >&6; } |
2f1a1aea | 5170 | else |
1ef0423a | 5171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 5172 | $as_echo "no" >&6; } |
2f1a1aea FCE |
5173 | fi |
5174 | ||
7fbd9d09 | 5175 | |
2f1a1aea FCE |
5176 | fi |
5177 | if test -z "$CC"; then | |
5178 | if test -n "$ac_tool_prefix"; then | |
7fbd9d09 | 5179 | for ac_prog in cl.exe |
2f1a1aea FCE |
5180 | do |
5181 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5182 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1ef0423a | 5183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 5184 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 5185 | if ${ac_cv_prog_CC+:} false; then : |
0710d850 | 5186 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
5187 | else |
5188 | if test -n "$CC"; then | |
5189 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5190 | else | |
5191 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5192 | for as_dir in $PATH | |
5193 | do | |
5194 | IFS=$as_save_IFS | |
5195 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 5196 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 5197 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea | 5198 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1ef0423a | 5199 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
5200 | break 2 |
5201 | fi | |
5202 | done | |
1ef0423a | 5203 | done |
7fbd9d09 | 5204 | IFS=$as_save_IFS |
2f1a1aea FCE |
5205 | |
5206 | fi | |
5207 | fi | |
5208 | CC=$ac_cv_prog_CC | |
5209 | if test -n "$CC"; then | |
1ef0423a | 5210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
0710d850 | 5211 | $as_echo "$CC" >&6; } |
2f1a1aea | 5212 | else |
1ef0423a | 5213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 5214 | $as_echo "no" >&6; } |
2f1a1aea FCE |
5215 | fi |
5216 | ||
7fbd9d09 | 5217 | |
2f1a1aea FCE |
5218 | test -n "$CC" && break |
5219 | done | |
5220 | fi | |
5221 | if test -z "$CC"; then | |
5222 | ac_ct_CC=$CC | |
7fbd9d09 | 5223 | for ac_prog in cl.exe |
2f1a1aea FCE |
5224 | do |
5225 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5226 | set dummy $ac_prog; ac_word=$2 | |
1ef0423a | 5227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 5228 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 5229 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
0710d850 | 5230 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
5231 | else |
5232 | if test -n "$ac_ct_CC"; then | |
5233 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
5234 | else | |
5235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5236 | for as_dir in $PATH | |
5237 | do | |
5238 | IFS=$as_save_IFS | |
5239 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 5240 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 5241 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea | 5242 | ac_cv_prog_ac_ct_CC="$ac_prog" |
1ef0423a | 5243 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
5244 | break 2 |
5245 | fi | |
5246 | done | |
1ef0423a | 5247 | done |
7fbd9d09 | 5248 | IFS=$as_save_IFS |
2f1a1aea FCE |
5249 | |
5250 | fi | |
5251 | fi | |
5252 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
5253 | if test -n "$ac_ct_CC"; then | |
1ef0423a | 5254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
0710d850 | 5255 | $as_echo "$ac_ct_CC" >&6; } |
2f1a1aea | 5256 | else |
1ef0423a | 5257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 5258 | $as_echo "no" >&6; } |
2f1a1aea FCE |
5259 | fi |
5260 | ||
7fbd9d09 | 5261 | |
2f1a1aea FCE |
5262 | test -n "$ac_ct_CC" && break |
5263 | done | |
5264 | ||
7fbd9d09 FCE |
5265 | if test "x$ac_ct_CC" = x; then |
5266 | CC="" | |
5267 | else | |
5268 | case $cross_compiling:$ac_tool_warned in | |
5269 | yes:) | |
1ef0423a | 5270 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
0710d850 | 5271 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7fbd9d09 FCE |
5272 | ac_tool_warned=yes ;; |
5273 | esac | |
5274 | CC=$ac_ct_CC | |
5275 | fi | |
2f1a1aea FCE |
5276 | fi |
5277 | ||
5278 | fi | |
5279 | ||
5280 | ||
1ef0423a | 5281 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
0710d850 | 5282 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
5d4aa1f5 FCE |
5283 | as_fn_error $? "no acceptable C compiler found in \$PATH |
5284 | See \`config.log' for more details" "$LINENO" 5; } | |
2f1a1aea FCE |
5285 | |
5286 | # Provide some information about the compiler. | |
1ef0423a | 5287 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
0710d850 DS |
5288 | set X $ac_compile |
5289 | ac_compiler=$2 | |
1ef0423a FCE |
5290 | for ac_option in --version -v -V -qversion; do |
5291 | { { ac_try="$ac_compiler $ac_option >&5" | |
5e5aee9f FCE |
5292 | case "(($ac_try" in |
5293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5294 | *) ac_try_echo=$ac_try;; | |
5295 | esac | |
1ef0423a FCE |
5296 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
5297 | $as_echo "$ac_try_echo"; } >&5 | |
5298 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
5e5aee9f | 5299 | ac_status=$? |
1ef0423a FCE |
5300 | if test -s conftest.err; then |
5301 | sed '10a\ | |
5302 | ... rest of stderr output deleted ... | |
5303 | 10q' conftest.err >conftest.er1 | |
5304 | cat conftest.er1 >&5 | |
5305 | fi | |
5306 | rm -f conftest.er1 conftest.err | |
5307 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5308 | test $ac_status = 0; } | |
5309 | done | |
2f1a1aea | 5310 | |
1ef0423a | 5311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
0710d850 | 5312 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
c3de29bd | 5313 | if ${ac_cv_c_compiler_gnu+:} false; then : |
0710d850 | 5314 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 5315 | else |
1ef0423a | 5316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea FCE |
5317 | /* end confdefs.h. */ |
5318 | ||
5319 | int | |
5320 | main () | |
5321 | { | |
5322 | #ifndef __GNUC__ | |
5323 | choke me | |
5324 | #endif | |
5325 | ||
5326 | ; | |
5327 | return 0; | |
5328 | } | |
5329 | _ACEOF | |
1ef0423a | 5330 | if ac_fn_c_try_compile "$LINENO"; then : |
2f1a1aea FCE |
5331 | ac_compiler_gnu=yes |
5332 | else | |
1ef0423a | 5333 | ac_compiler_gnu=no |
2f1a1aea | 5334 | fi |
7fbd9d09 | 5335 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2f1a1aea FCE |
5336 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
5337 | ||
5338 | fi | |
1ef0423a | 5339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
0710d850 DS |
5340 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
5341 | if test $ac_compiler_gnu = yes; then | |
5342 | GCC=yes | |
5343 | else | |
5344 | GCC= | |
5345 | fi | |
2f1a1aea FCE |
5346 | ac_test_CFLAGS=${CFLAGS+set} |
5347 | ac_save_CFLAGS=$CFLAGS | |
1ef0423a | 5348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
0710d850 | 5349 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
c3de29bd | 5350 | if ${ac_cv_prog_cc_g+:} false; then : |
0710d850 | 5351 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 5352 | else |
7fbd9d09 FCE |
5353 | ac_save_c_werror_flag=$ac_c_werror_flag |
5354 | ac_c_werror_flag=yes | |
5355 | ac_cv_prog_cc_g=no | |
5356 | CFLAGS="-g" | |
1ef0423a | 5357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea FCE |
5358 | /* end confdefs.h. */ |
5359 | ||
5360 | int | |
5361 | main () | |
5362 | { | |
5363 | ||
5364 | ; | |
5365 | return 0; | |
5366 | } | |
5367 | _ACEOF | |
1ef0423a | 5368 | if ac_fn_c_try_compile "$LINENO"; then : |
7fbd9d09 FCE |
5369 | ac_cv_prog_cc_g=yes |
5370 | else | |
1ef0423a FCE |
5371 | CFLAGS="" |
5372 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7fbd9d09 FCE |
5373 | /* end confdefs.h. */ |
5374 | ||
5375 | int | |
5376 | main () | |
5377 | { | |
5378 | ||
5379 | ; | |
5380 | return 0; | |
5381 | } | |
5382 | _ACEOF | |
1ef0423a | 5383 | if ac_fn_c_try_compile "$LINENO"; then : |
5e5aee9f | 5384 | |
1ef0423a FCE |
5385 | else |
5386 | ac_c_werror_flag=$ac_save_c_werror_flag | |
7fbd9d09 | 5387 | CFLAGS="-g" |
1ef0423a | 5388 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7fbd9d09 FCE |
5389 | /* end confdefs.h. */ |
5390 | ||
5391 | int | |
5392 | main () | |
5393 | { | |
5394 | ||
5395 | ; | |
5396 | return 0; | |
5397 | } | |
5398 | _ACEOF | |
1ef0423a | 5399 | if ac_fn_c_try_compile "$LINENO"; then : |
5e0d2ebf | 5400 | ac_cv_prog_cc_g=yes |
7fbd9d09 | 5401 | fi |
7fbd9d09 FCE |
5402 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5403 | fi | |
7fbd9d09 | 5404 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5e0d2ebf | 5405 | fi |
7fbd9d09 FCE |
5406 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5407 | ac_c_werror_flag=$ac_save_c_werror_flag | |
70d28673 | 5408 | fi |
1ef0423a | 5409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
0710d850 | 5410 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
70d28673 DS |
5411 | if test "$ac_test_CFLAGS" = set; then |
5412 | CFLAGS=$ac_save_CFLAGS | |
5413 | elif test $ac_cv_prog_cc_g = yes; then | |
5414 | if test "$GCC" = yes; then | |
5415 | CFLAGS="-g -O2" | |
5416 | else | |
5417 | CFLAGS="-g" | |
5418 | fi | |
5419 | else | |
5420 | if test "$GCC" = yes; then | |
5421 | CFLAGS="-O2" | |
5422 | else | |
5423 | CFLAGS= | |
5424 | fi | |
5425 | fi | |
1ef0423a | 5426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
0710d850 | 5427 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
c3de29bd | 5428 | if ${ac_cv_prog_cc_c89+:} false; then : |
0710d850 | 5429 | $as_echo_n "(cached) " >&6 |
70d28673 | 5430 | else |
7fbd9d09 | 5431 | ac_cv_prog_cc_c89=no |
70d28673 | 5432 | ac_save_CC=$CC |
1ef0423a | 5433 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea | 5434 | /* end confdefs.h. */ |
70d28673 DS |
5435 | #include <stdarg.h> |
5436 | #include <stdio.h> | |
8eef2738 | 5437 | struct stat; |
70d28673 DS |
5438 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
5439 | struct buf { int x; }; | |
5440 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
5441 | static char *e (p, i) | |
5442 | char **p; | |
5443 | int i; | |
5444 | { | |
5445 | return p[i]; | |
5446 | } | |
5447 | static char *f (char * (*g) (char **, int), char **p, ...) | |
5448 | { | |
5449 | char *s; | |
5450 | va_list v; | |
5451 | va_start (v,p); | |
5452 | s = g (p, va_arg (v,int)); | |
5453 | va_end (v); | |
5454 | return s; | |
5455 | } | |
5456 | ||
5457 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
5458 | function prototypes and stuff, but not '\xHH' hex character constants. | |
5459 | These don't provoke an error unfortunately, instead are silently treated | |
7fbd9d09 | 5460 | as 'x'. The following induces an error, until -std is added to get |
70d28673 DS |
5461 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
5462 | array size at least. It's necessary to write '\x00'==0 to get something | |
7fbd9d09 | 5463 | that's true only with -std. */ |
70d28673 DS |
5464 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
5465 | ||
7fbd9d09 FCE |
5466 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
5467 | inside strings and character constants. */ | |
5468 | #define FOO(x) 'x' | |
5469 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
5470 | ||
70d28673 DS |
5471 | int test (int i, double x); |
5472 | struct s1 {int (*f) (int a);}; | |
5473 | struct s2 {int (*f) (double a);}; | |
5474 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
5475 | int argc; | |
5476 | char **argv; | |
2f1a1aea FCE |
5477 | int |
5478 | main () | |
5479 | { | |
70d28673 | 5480 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2f1a1aea FCE |
5481 | ; |
5482 | return 0; | |
5483 | } | |
5484 | _ACEOF | |
7fbd9d09 FCE |
5485 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
5486 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
70d28673 DS |
5487 | do |
5488 | CC="$ac_save_CC $ac_arg" | |
1ef0423a | 5489 | if ac_fn_c_try_compile "$LINENO"; then : |
7fbd9d09 | 5490 | ac_cv_prog_cc_c89=$ac_arg |
2f1a1aea | 5491 | fi |
7fbd9d09 FCE |
5492 | rm -f core conftest.err conftest.$ac_objext |
5493 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
2f1a1aea | 5494 | done |
7fbd9d09 | 5495 | rm -f conftest.$ac_ext |
70d28673 DS |
5496 | CC=$ac_save_CC |
5497 | ||
2f1a1aea | 5498 | fi |
7fbd9d09 FCE |
5499 | # AC_CACHE_VAL |
5500 | case "x$ac_cv_prog_cc_c89" in | |
5501 | x) | |
1ef0423a | 5502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
0710d850 | 5503 | $as_echo "none needed" >&6; } ;; |
7fbd9d09 | 5504 | xno) |
1ef0423a | 5505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
0710d850 | 5506 | $as_echo "unsupported" >&6; } ;; |
70d28673 | 5507 | *) |
7fbd9d09 | 5508 | CC="$CC $ac_cv_prog_cc_c89" |
1ef0423a | 5509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
0710d850 | 5510 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
70d28673 | 5511 | esac |
1ef0423a | 5512 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
2f1a1aea | 5513 | |
1ef0423a | 5514 | fi |
2f1a1aea | 5515 | |
2f1a1aea FCE |
5516 | ac_ext=c |
5517 | ac_cpp='$CPP $CPPFLAGS' | |
5518 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5519 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5520 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5521 | ||
46c282e4 FCE |
5522 | ac_ext=c |
5523 | ac_cpp='$CPP $CPPFLAGS' | |
5524 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5525 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5526 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
5528 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
5529 | if ${am_cv_prog_cc_c_o+:} false; then : | |
5530 | $as_echo_n "(cached) " >&6 | |
5531 | else | |
5532 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5533 | /* end confdefs.h. */ | |
5534 | ||
5535 | int | |
5536 | main () | |
5537 | { | |
5538 | ||
5539 | ; | |
5540 | return 0; | |
5541 | } | |
5542 | _ACEOF | |
5543 | # Make sure it works both with $CC and with simple cc. | |
5544 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
5545 | # compilers refuse to overwrite an existing .o file with -o, | |
5546 | # though they will create one. | |
5547 | am_cv_prog_cc_c_o=yes | |
5548 | for am_i in 1 2; do | |
5549 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
5550 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
5551 | ac_status=$? | |
5552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5553 | (exit $ac_status); } \ | |
5554 | && test -f conftest2.$ac_objext; then | |
5555 | : OK | |
5556 | else | |
5557 | am_cv_prog_cc_c_o=no | |
5558 | break | |
5559 | fi | |
5560 | done | |
5561 | rm -f core conftest* | |
5562 | unset am_i | |
5563 | fi | |
5564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
5565 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
5566 | if test "$am_cv_prog_cc_c_o" != yes; then | |
5567 | # Losing compiler, so override with the script. | |
5568 | # FIXME: It is wrong to rewrite CC. | |
5569 | # But if we don't then we get into trouble of one sort or another. | |
5570 | # A longer-term fix would be to have automake use am__CC in this case, | |
5571 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
5572 | CC="$am_aux_dir/compile $CC" | |
5573 | fi | |
5574 | ac_ext=c | |
5575 | ac_cpp='$CPP $CPPFLAGS' | |
5576 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5577 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5578 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5579 | ||
5580 | ||
2f1a1aea FCE |
5581 | depcc="$CC" am_compiler_list= |
5582 | ||
1ef0423a | 5583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
0710d850 | 5584 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
c3de29bd | 5585 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
0710d850 | 5586 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
5587 | else |
5588 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
5589 | # We make a subdir and do the tests there. Otherwise we can end up | |
5590 | # making bogus files that we don't know about and never remove. For | |
5591 | # instance it was reported that on HP-UX the gcc test will end up | |
8eef2738 LB |
5592 | # making a dummy file named 'D' -- because '-MD' means "put the output |
5593 | # in D". | |
c66be968 | 5594 | rm -rf conftest.dir |
2f1a1aea FCE |
5595 | mkdir conftest.dir |
5596 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5597 | # using a relative directory. | |
5598 | cp "$am_depcomp" conftest.dir | |
5599 | cd conftest.dir | |
5600 | # We will build objects and dependencies in a subdirectory because | |
5601 | # it helps to detect inapplicable dependency modes. For instance | |
5602 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5603 | # side effect of compilation, but ICC will put the dependencies in | |
5604 | # the current directory while Tru64 will put them in the object | |
5605 | # directory. | |
5606 | mkdir sub | |
5607 | ||
5608 | am_cv_CC_dependencies_compiler_type=none | |
5609 | if test "$am_compiler_list" = ""; then | |
5610 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5611 | fi | |
0710d850 DS |
5612 | am__universal=false |
5613 | case " $depcc " in #( | |
5614 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
5615 | esac | |
5616 | ||
2f1a1aea FCE |
5617 | for depmode in $am_compiler_list; do |
5618 | # Setup a source with many dependencies, because some compilers | |
5619 | # like to wrap large dependency lists on column 80 (with \), and | |
5620 | # we should not choose a depcomp mode which is confused by this. | |
5621 | # | |
5622 | # We need to recreate these files for each test, as the compiler may | |
5623 | # overwrite some of them when testing with obscure command lines. | |
5624 | # This happens at least with the AIX C compiler. | |
5625 | : > sub/conftest.c | |
5626 | for i in 1 2 3 4 5 6; do | |
5627 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
8eef2738 LB |
5628 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
5629 | # Solaris 10 /bin/sh. | |
5630 | echo '/* dummy */' > sub/conftst$i.h | |
2f1a1aea FCE |
5631 | done |
5632 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
5633 | ||
8eef2738 | 5634 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
0710d850 | 5635 | # mode. It turns out that the SunPro C++ compiler does not properly |
8eef2738 LB |
5636 | # handle '-M -o', and we need to detect this. Also, some Intel |
5637 | # versions had trouble with output in subdirs. | |
0710d850 DS |
5638 | am__obj=sub/conftest.${OBJEXT-o} |
5639 | am__minus_obj="-o $am__obj" | |
2f1a1aea | 5640 | case $depmode in |
0710d850 DS |
5641 | gcc) |
5642 | # This depmode causes a compiler race in universal mode. | |
5643 | test "$am__universal" = false || continue | |
5644 | ;; | |
2f1a1aea | 5645 | nosideeffect) |
8eef2738 LB |
5646 | # After this tag, mechanisms are not by side-effect, so they'll |
5647 | # only be used when explicitly requested. | |
2f1a1aea FCE |
5648 | if test "x$enable_dependency_tracking" = xyes; then |
5649 | continue | |
5650 | else | |
5651 | break | |
5652 | fi | |
5653 | ;; | |
c66be968 | 5654 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
8eef2738 | 5655 | # This compiler won't grok '-c -o', but also, the minuso test has |
0710d850 DS |
5656 | # not run yet. These depmodes are late enough in the game, and |
5657 | # so weak that their functioning should not be impacted. | |
5658 | am__obj=conftest.${OBJEXT-o} | |
5659 | am__minus_obj= | |
5660 | ;; | |
2f1a1aea FCE |
5661 | none) break ;; |
5662 | esac | |
2f1a1aea | 5663 | if depmode=$depmode \ |
0710d850 | 5664 | source=sub/conftest.c object=$am__obj \ |
2f1a1aea | 5665 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
0710d850 | 5666 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
2f1a1aea | 5667 | >/dev/null 2>conftest.err && |
7fbd9d09 | 5668 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea | 5669 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
0710d850 | 5670 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea FCE |
5671 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
5672 | # icc doesn't choke on unknown options, it will just issue warnings | |
5673 | # or remarks (even with -Werror). So we grep stderr for any message | |
5674 | # that says an option was ignored or not supported. | |
5675 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5676 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5677 | # The diagnosis changed in icc 8.0: | |
5678 | # icc: Command line remark: option '-MP' not supported | |
5679 | if (grep 'ignoring option' conftest.err || | |
5680 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5681 | am_cv_CC_dependencies_compiler_type=$depmode | |
5682 | break | |
5683 | fi | |
5684 | fi | |
5685 | done | |
5686 | ||
5687 | cd .. | |
5688 | rm -rf conftest.dir | |
5689 | else | |
5690 | am_cv_CC_dependencies_compiler_type=none | |
5691 | fi | |
5692 | ||
5693 | fi | |
1ef0423a | 5694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
0710d850 | 5695 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
2f1a1aea FCE |
5696 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
5697 | ||
7fbd9d09 | 5698 | if |
2f1a1aea FCE |
5699 | test "x$enable_dependency_tracking" != xno \ |
5700 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
5701 | am__fastdepCC_TRUE= | |
5702 | am__fastdepCC_FALSE='#' | |
5703 | else | |
5704 | am__fastdepCC_TRUE='#' | |
5705 | am__fastdepCC_FALSE= | |
5706 | fi | |
5707 | ||
5708 | ||
8f223b3e FCE |
5709 | ac_ext=cpp |
5710 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5711 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5712 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5713 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5714 | if test -z "$CXX"; then | |
5715 | if test -n "$CCC"; then | |
5716 | CXX=$CCC | |
5717 | else | |
5718 | if test -n "$ac_tool_prefix"; then | |
5719 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
5720 | do | |
5721 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5722 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5724 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 5725 | if ${ac_cv_prog_CXX+:} false; then : |
8f223b3e FCE |
5726 | $as_echo_n "(cached) " >&6 |
5727 | else | |
5728 | if test -n "$CXX"; then | |
5729 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
5730 | else | |
5731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5732 | for as_dir in $PATH | |
5733 | do | |
5734 | IFS=$as_save_IFS | |
5735 | test -z "$as_dir" && as_dir=. | |
5736 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 5737 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8f223b3e FCE |
5738 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5739 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5740 | break 2 | |
5741 | fi | |
5742 | done | |
5743 | done | |
5744 | IFS=$as_save_IFS | |
2f1a1aea | 5745 | |
8f223b3e FCE |
5746 | fi |
5747 | fi | |
5748 | CXX=$ac_cv_prog_CXX | |
5749 | if test -n "$CXX"; then | |
5750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
5751 | $as_echo "$CXX" >&6; } | |
8ae7a94a | 5752 | else |
8f223b3e FCE |
5753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5754 | $as_echo "no" >&6; } | |
8ae7a94a | 5755 | fi |
8f223b3e FCE |
5756 | |
5757 | ||
5758 | test -n "$CXX" && break | |
5759 | done | |
5760 | fi | |
5761 | if test -z "$CXX"; then | |
5762 | ac_ct_CXX=$CXX | |
5763 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
5764 | do | |
5765 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5766 | set dummy $ac_prog; ac_word=$2 | |
5767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5768 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 5769 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
0710d850 | 5770 | $as_echo_n "(cached) " >&6 |
8ae7a94a | 5771 | else |
8f223b3e FCE |
5772 | if test -n "$ac_ct_CXX"; then |
5773 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
5774 | else | |
5775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5776 | for as_dir in $PATH | |
5777 | do | |
5778 | IFS=$as_save_IFS | |
5779 | test -z "$as_dir" && as_dir=. | |
5780 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 5781 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8f223b3e FCE |
5782 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5783 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5784 | break 2 | |
5785 | fi | |
5786 | done | |
5787 | done | |
5788 | IFS=$as_save_IFS | |
8ae7a94a | 5789 | |
8f223b3e FCE |
5790 | fi |
5791 | fi | |
5792 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
5793 | if test -n "$ac_ct_CXX"; then | |
5794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
5795 | $as_echo "$ac_ct_CXX" >&6; } | |
5796 | else | |
5797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5798 | $as_echo "no" >&6; } | |
5799 | fi | |
8ae7a94a | 5800 | |
8f223b3e FCE |
5801 | |
5802 | test -n "$ac_ct_CXX" && break | |
5803 | done | |
5804 | ||
5805 | if test "x$ac_ct_CXX" = x; then | |
5806 | CXX="g++" | |
5807 | else | |
5808 | case $cross_compiling:$ac_tool_warned in | |
5809 | yes:) | |
5810 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5811 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5812 | ac_tool_warned=yes ;; | |
5813 | esac | |
5814 | CXX=$ac_ct_CXX | |
5815 | fi | |
5816 | fi | |
5817 | ||
5818 | fi | |
5819 | fi | |
5820 | # Provide some information about the compiler. | |
5821 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
5822 | set X $ac_compile | |
5823 | ac_compiler=$2 | |
5824 | for ac_option in --version -v -V -qversion; do | |
5825 | { { ac_try="$ac_compiler $ac_option >&5" | |
5826 | case "(($ac_try" in | |
7fbd9d09 FCE |
5827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5828 | *) ac_try_echo=$ac_try;; | |
5829 | esac | |
1ef0423a FCE |
5830 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
5831 | $as_echo "$ac_try_echo"; } >&5 | |
8f223b3e FCE |
5832 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
5833 | ac_status=$? | |
5834 | if test -s conftest.err; then | |
5835 | sed '10a\ | |
5836 | ... rest of stderr output deleted ... | |
5837 | 10q' conftest.err >conftest.er1 | |
5838 | cat conftest.er1 >&5 | |
5839 | fi | |
5840 | rm -f conftest.er1 conftest.err | |
5841 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5842 | test $ac_status = 0; } | |
5843 | done | |
5844 | ||
5845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | |
5846 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
c3de29bd | 5847 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
8f223b3e FCE |
5848 | $as_echo_n "(cached) " >&6 |
5849 | else | |
5850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5851 | /* end confdefs.h. */ | |
5852 | ||
5853 | int | |
5854 | main () | |
5855 | { | |
5856 | #ifndef __GNUC__ | |
5857 | choke me | |
5858 | #endif | |
5859 | ||
5860 | ; | |
5861 | return 0; | |
5862 | } | |
5863 | _ACEOF | |
5864 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5865 | ac_compiler_gnu=yes | |
5866 | else | |
5867 | ac_compiler_gnu=no | |
5868 | fi | |
5869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5870 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
5871 | ||
5872 | fi | |
5873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
5874 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
5875 | if test $ac_compiler_gnu = yes; then | |
5876 | GXX=yes | |
5877 | else | |
5878 | GXX= | |
5879 | fi | |
5880 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
5881 | ac_save_CXXFLAGS=$CXXFLAGS | |
5882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
5883 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
c3de29bd | 5884 | if ${ac_cv_prog_cxx_g+:} false; then : |
8f223b3e FCE |
5885 | $as_echo_n "(cached) " >&6 |
5886 | else | |
5887 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
5888 | ac_cxx_werror_flag=yes | |
5889 | ac_cv_prog_cxx_g=no | |
5890 | CXXFLAGS="-g" | |
5891 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5892 | /* end confdefs.h. */ | |
5893 | ||
5894 | int | |
5895 | main () | |
5896 | { | |
5897 | ||
5898 | ; | |
5899 | return 0; | |
5900 | } | |
5901 | _ACEOF | |
5902 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5903 | ac_cv_prog_cxx_g=yes | |
5904 | else | |
5905 | CXXFLAGS="" | |
5906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5907 | /* end confdefs.h. */ | |
5908 | ||
5909 | int | |
5910 | main () | |
5911 | { | |
5912 | ||
5913 | ; | |
5914 | return 0; | |
5915 | } | |
5916 | _ACEOF | |
5917 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5918 | ||
5919 | else | |
5920 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5921 | CXXFLAGS="-g" | |
5922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5923 | /* end confdefs.h. */ | |
5924 | ||
5925 | int | |
5926 | main () | |
5927 | { | |
5928 | ||
5929 | ; | |
5930 | return 0; | |
5931 | } | |
5932 | _ACEOF | |
5933 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5934 | ac_cv_prog_cxx_g=yes | |
5935 | fi | |
5936 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5937 | fi | |
5938 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5939 | fi | |
5940 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5941 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5942 | fi | |
5943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5944 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5945 | if test "$ac_test_CXXFLAGS" = set; then | |
5946 | CXXFLAGS=$ac_save_CXXFLAGS | |
5947 | elif test $ac_cv_prog_cxx_g = yes; then | |
5948 | if test "$GXX" = yes; then | |
5949 | CXXFLAGS="-g -O2" | |
5950 | else | |
5951 | CXXFLAGS="-g" | |
5952 | fi | |
5953 | else | |
5954 | if test "$GXX" = yes; then | |
5955 | CXXFLAGS="-O2" | |
5956 | else | |
5957 | CXXFLAGS= | |
5958 | fi | |
5959 | fi | |
5960 | ac_ext=c | |
5961 | ac_cpp='$CPP $CPPFLAGS' | |
5962 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5963 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5964 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5965 | ||
5966 | depcc="$CXX" am_compiler_list= | |
5967 | ||
5968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
5969 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
c3de29bd | 5970 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
8f223b3e FCE |
5971 | $as_echo_n "(cached) " >&6 |
5972 | else | |
5973 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
5974 | # We make a subdir and do the tests there. Otherwise we can end up | |
5975 | # making bogus files that we don't know about and never remove. For | |
5976 | # instance it was reported that on HP-UX the gcc test will end up | |
8eef2738 LB |
5977 | # making a dummy file named 'D' -- because '-MD' means "put the output |
5978 | # in D". | |
c66be968 | 5979 | rm -rf conftest.dir |
8f223b3e FCE |
5980 | mkdir conftest.dir |
5981 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5982 | # using a relative directory. | |
5983 | cp "$am_depcomp" conftest.dir | |
5984 | cd conftest.dir | |
5985 | # We will build objects and dependencies in a subdirectory because | |
5986 | # it helps to detect inapplicable dependency modes. For instance | |
5987 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5988 | # side effect of compilation, but ICC will put the dependencies in | |
5989 | # the current directory while Tru64 will put them in the object | |
5990 | # directory. | |
5991 | mkdir sub | |
5992 | ||
5993 | am_cv_CXX_dependencies_compiler_type=none | |
5994 | if test "$am_compiler_list" = ""; then | |
5995 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5996 | fi | |
5997 | am__universal=false | |
5998 | case " $depcc " in #( | |
5999 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
6000 | esac | |
6001 | ||
6002 | for depmode in $am_compiler_list; do | |
6003 | # Setup a source with many dependencies, because some compilers | |
6004 | # like to wrap large dependency lists on column 80 (with \), and | |
6005 | # we should not choose a depcomp mode which is confused by this. | |
6006 | # | |
6007 | # We need to recreate these files for each test, as the compiler may | |
6008 | # overwrite some of them when testing with obscure command lines. | |
6009 | # This happens at least with the AIX C compiler. | |
6010 | : > sub/conftest.c | |
6011 | for i in 1 2 3 4 5 6; do | |
6012 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
8eef2738 LB |
6013 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
6014 | # Solaris 10 /bin/sh. | |
6015 | echo '/* dummy */' > sub/conftst$i.h | |
8f223b3e FCE |
6016 | done |
6017 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
6018 | ||
8eef2738 | 6019 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
8f223b3e | 6020 | # mode. It turns out that the SunPro C++ compiler does not properly |
8eef2738 LB |
6021 | # handle '-M -o', and we need to detect this. Also, some Intel |
6022 | # versions had trouble with output in subdirs. | |
8f223b3e FCE |
6023 | am__obj=sub/conftest.${OBJEXT-o} |
6024 | am__minus_obj="-o $am__obj" | |
6025 | case $depmode in | |
6026 | gcc) | |
6027 | # This depmode causes a compiler race in universal mode. | |
6028 | test "$am__universal" = false || continue | |
6029 | ;; | |
6030 | nosideeffect) | |
8eef2738 LB |
6031 | # After this tag, mechanisms are not by side-effect, so they'll |
6032 | # only be used when explicitly requested. | |
8f223b3e FCE |
6033 | if test "x$enable_dependency_tracking" = xyes; then |
6034 | continue | |
6035 | else | |
6036 | break | |
6037 | fi | |
6038 | ;; | |
c66be968 | 6039 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
8eef2738 | 6040 | # This compiler won't grok '-c -o', but also, the minuso test has |
8f223b3e FCE |
6041 | # not run yet. These depmodes are late enough in the game, and |
6042 | # so weak that their functioning should not be impacted. | |
6043 | am__obj=conftest.${OBJEXT-o} | |
6044 | am__minus_obj= | |
6045 | ;; | |
6046 | none) break ;; | |
6047 | esac | |
6048 | if depmode=$depmode \ | |
6049 | source=sub/conftest.c object=$am__obj \ | |
6050 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
6051 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
6052 | >/dev/null 2>conftest.err && | |
6053 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
6054 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
6055 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
6056 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
6057 | # icc doesn't choke on unknown options, it will just issue warnings | |
6058 | # or remarks (even with -Werror). So we grep stderr for any message | |
6059 | # that says an option was ignored or not supported. | |
6060 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
6061 | # icc: Command line warning: ignoring option '-M'; no argument required | |
6062 | # The diagnosis changed in icc 8.0: | |
6063 | # icc: Command line remark: option '-MP' not supported | |
6064 | if (grep 'ignoring option' conftest.err || | |
6065 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
6066 | am_cv_CXX_dependencies_compiler_type=$depmode | |
6067 | break | |
6068 | fi | |
6069 | fi | |
6070 | done | |
6071 | ||
6072 | cd .. | |
6073 | rm -rf conftest.dir | |
6074 | else | |
6075 | am_cv_CXX_dependencies_compiler_type=none | |
6076 | fi | |
6077 | ||
6078 | fi | |
6079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
6080 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
6081 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
6082 | ||
6083 | if | |
6084 | test "x$enable_dependency_tracking" != xno \ | |
6085 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
6086 | am__fastdepCXX_TRUE= | |
6087 | am__fastdepCXX_FALSE='#' | |
6088 | else | |
6089 | am__fastdepCXX_TRUE='#' | |
6090 | am__fastdepCXX_FALSE= | |
6091 | fi | |
6092 | ||
6093 | ||
6094 | ac_ext=c | |
6095 | ac_cpp='$CPP $CPPFLAGS' | |
6096 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6097 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6098 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
6100 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
6101 | # On Suns, sometimes $CPP names a directory. | |
6102 | if test -n "$CPP" && test -d "$CPP"; then | |
6103 | CPP= | |
6104 | fi | |
6105 | if test -z "$CPP"; then | |
c3de29bd | 6106 | if ${ac_cv_prog_CPP+:} false; then : |
8f223b3e FCE |
6107 | $as_echo_n "(cached) " >&6 |
6108 | else | |
6109 | # Double quotes because CPP needs to be expanded | |
6110 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
6111 | do | |
6112 | ac_preproc_ok=false | |
6113 | for ac_c_preproc_warn_flag in '' yes | |
6114 | do | |
6115 | # Use a header file that comes with gcc, so configuring glibc | |
6116 | # with a fresh cross-compiler works. | |
6117 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6118 | # <limits.h> exists even on freestanding compilers. | |
6119 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6120 | # not just through cpp. "Syntax error" is here to catch this case. | |
6121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6122 | /* end confdefs.h. */ | |
6123 | #ifdef __STDC__ | |
6124 | # include <limits.h> | |
6125 | #else | |
6126 | # include <assert.h> | |
6127 | #endif | |
6128 | Syntax error | |
6129 | _ACEOF | |
6130 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6131 | ||
6132 | else | |
6133 | # Broken: fails on valid input. | |
6134 | continue | |
6135 | fi | |
c3de29bd | 6136 | rm -f conftest.err conftest.i conftest.$ac_ext |
8f223b3e FCE |
6137 | |
6138 | # OK, works on sane cases. Now check whether nonexistent headers | |
6139 | # can be detected and how. | |
6140 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6141 | /* end confdefs.h. */ | |
6142 | #include <ac_nonexistent.h> | |
6143 | _ACEOF | |
6144 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6145 | # Broken: success on invalid input. | |
6146 | continue | |
6147 | else | |
6148 | # Passes both tests. | |
6149 | ac_preproc_ok=: | |
6150 | break | |
6151 | fi | |
c3de29bd | 6152 | rm -f conftest.err conftest.i conftest.$ac_ext |
8f223b3e FCE |
6153 | |
6154 | done | |
6155 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
c3de29bd | 6156 | rm -f conftest.i conftest.err conftest.$ac_ext |
8f223b3e FCE |
6157 | if $ac_preproc_ok; then : |
6158 | break | |
6159 | fi | |
6160 | ||
6161 | done | |
6162 | ac_cv_prog_CPP=$CPP | |
6163 | ||
6164 | fi | |
6165 | CPP=$ac_cv_prog_CPP | |
6166 | else | |
6167 | ac_cv_prog_CPP=$CPP | |
6168 | fi | |
6169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
6170 | $as_echo "$CPP" >&6; } | |
6171 | ac_preproc_ok=false | |
6172 | for ac_c_preproc_warn_flag in '' yes | |
6173 | do | |
6174 | # Use a header file that comes with gcc, so configuring glibc | |
6175 | # with a fresh cross-compiler works. | |
6176 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6177 | # <limits.h> exists even on freestanding compilers. | |
6178 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6179 | # not just through cpp. "Syntax error" is here to catch this case. | |
6180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6181 | /* end confdefs.h. */ | |
6182 | #ifdef __STDC__ | |
6183 | # include <limits.h> | |
6184 | #else | |
6185 | # include <assert.h> | |
6186 | #endif | |
6187 | Syntax error | |
6188 | _ACEOF | |
6189 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6190 | ||
6191 | else | |
6192 | # Broken: fails on valid input. | |
6193 | continue | |
6194 | fi | |
c3de29bd | 6195 | rm -f conftest.err conftest.i conftest.$ac_ext |
8f223b3e FCE |
6196 | |
6197 | # OK, works on sane cases. Now check whether nonexistent headers | |
6198 | # can be detected and how. | |
6199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6200 | /* end confdefs.h. */ | |
6201 | #include <ac_nonexistent.h> | |
6202 | _ACEOF | |
6203 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6204 | # Broken: success on invalid input. | |
6205 | continue | |
6206 | else | |
6207 | # Passes both tests. | |
6208 | ac_preproc_ok=: | |
6209 | break | |
6210 | fi | |
c3de29bd | 6211 | rm -f conftest.err conftest.i conftest.$ac_ext |
8f223b3e FCE |
6212 | |
6213 | done | |
6214 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
c3de29bd | 6215 | rm -f conftest.i conftest.err conftest.$ac_ext |
8f223b3e FCE |
6216 | if $ac_preproc_ok; then : |
6217 | ||
6218 | else | |
6219 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6220 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5d4aa1f5 FCE |
6221 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
6222 | See \`config.log' for more details" "$LINENO" 5; } | |
8f223b3e FCE |
6223 | fi |
6224 | ||
6225 | ac_ext=c | |
6226 | ac_cpp='$CPP $CPPFLAGS' | |
6227 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6228 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6229 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6230 | ||
8f223b3e | 6231 | |
8f223b3e FCE |
6232 | if test -n "$ac_tool_prefix"; then |
6233 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6234 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6236 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 6237 | if ${ac_cv_prog_RANLIB+:} false; then : |
8f223b3e FCE |
6238 | $as_echo_n "(cached) " >&6 |
6239 | else | |
6240 | if test -n "$RANLIB"; then | |
6241 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6242 | else | |
6243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6244 | for as_dir in $PATH | |
6245 | do | |
6246 | IFS=$as_save_IFS | |
6247 | test -z "$as_dir" && as_dir=. | |
6248 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 6249 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8f223b3e FCE |
6250 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6251 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6252 | break 2 | |
6253 | fi | |
6254 | done | |
6255 | done | |
6256 | IFS=$as_save_IFS | |
6257 | ||
6258 | fi | |
6259 | fi | |
6260 | RANLIB=$ac_cv_prog_RANLIB | |
6261 | if test -n "$RANLIB"; then | |
6262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6263 | $as_echo "$RANLIB" >&6; } | |
6264 | else | |
6265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6266 | $as_echo "no" >&6; } | |
6267 | fi | |
6268 | ||
6269 | ||
6270 | fi | |
6271 | if test -z "$ac_cv_prog_RANLIB"; then | |
6272 | ac_ct_RANLIB=$RANLIB | |
6273 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6274 | set dummy ranlib; ac_word=$2 | |
6275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6276 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 6277 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
8f223b3e FCE |
6278 | $as_echo_n "(cached) " >&6 |
6279 | else | |
6280 | if test -n "$ac_ct_RANLIB"; then | |
6281 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6282 | else | |
6283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6284 | for as_dir in $PATH | |
6285 | do | |
6286 | IFS=$as_save_IFS | |
6287 | test -z "$as_dir" && as_dir=. | |
6288 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 6289 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8f223b3e FCE |
6290 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6291 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6292 | break 2 | |
6293 | fi | |
6294 | done | |
6295 | done | |
6296 | IFS=$as_save_IFS | |
6297 | ||
6298 | fi | |
6299 | fi | |
6300 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6301 | if test -n "$ac_ct_RANLIB"; then | |
6302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6303 | $as_echo "$ac_ct_RANLIB" >&6; } | |
6304 | else | |
6305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6306 | $as_echo "no" >&6; } | |
6307 | fi | |
6308 | ||
6309 | if test "x$ac_ct_RANLIB" = x; then | |
6310 | RANLIB=":" | |
6311 | else | |
6312 | case $cross_compiling:$ac_tool_warned in | |
6313 | yes:) | |
6314 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6315 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6316 | ac_tool_warned=yes ;; | |
6317 | esac | |
6318 | RANLIB=$ac_ct_RANLIB | |
6319 | fi | |
6320 | else | |
6321 | RANLIB="$ac_cv_prog_RANLIB" | |
6322 | fi | |
6323 | ||
6324 | ||
6325 | ||
6326 | ||
6327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
6328 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
6329 | set x ${MAKE-make} | |
6330 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
c3de29bd | 6331 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
8f223b3e FCE |
6332 | $as_echo_n "(cached) " >&6 |
6333 | else | |
6334 | cat >conftest.make <<\_ACEOF | |
6335 | SHELL = /bin/sh | |
6336 | all: | |
6337 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
6338 | _ACEOF | |
5d4aa1f5 | 6339 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
8f223b3e FCE |
6340 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
6341 | *@@@%%%=?*=@@@%%%*) | |
6342 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
6343 | *) | |
6344 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
7fbd9d09 | 6345 | esac |
8f223b3e FCE |
6346 | rm -f conftest.make |
6347 | fi | |
6348 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
6349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6350 | $as_echo "yes" >&6; } | |
6351 | SET_MAKE= | |
6352 | else | |
6353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6354 | $as_echo "no" >&6; } | |
6355 | SET_MAKE="MAKE=${MAKE-make}" | |
6356 | fi | |
6357 | ||
6358 | ||
6359 | ||
97859b9d JS |
6360 | # Check whether --enable-largefile was given. |
6361 | if test "${enable_largefile+set}" = set; then : | |
6362 | enableval=$enable_largefile; | |
6363 | fi | |
6364 | ||
6365 | if test "$enable_largefile" != no; then | |
6366 | ||
6367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
6368 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
6369 | if ${ac_cv_sys_largefile_CC+:} false; then : | |
6370 | $as_echo_n "(cached) " >&6 | |
6371 | else | |
6372 | ac_cv_sys_largefile_CC=no | |
6373 | if test "$GCC" != yes; then | |
6374 | ac_save_CC=$CC | |
6375 | while :; do | |
6376 | # IRIX 6.2 and later do not support large files by default, | |
6377 | # so use the C compiler's -n32 option if that helps. | |
6378 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6379 | /* end confdefs.h. */ | |
6380 | #include <sys/types.h> | |
6381 | /* Check that off_t can represent 2**63 - 1 correctly. | |
6382 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
6383 | since some C++ compilers masquerading as C compilers | |
6384 | incorrectly reject 9223372036854775807. */ | |
6385 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
6386 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
6387 | && LARGE_OFF_T % 2147483647 == 1) | |
6388 | ? 1 : -1]; | |
6389 | int | |
6390 | main () | |
6391 | { | |
6392 | ||
6393 | ; | |
6394 | return 0; | |
6395 | } | |
6396 | _ACEOF | |
6397 | if ac_fn_c_try_compile "$LINENO"; then : | |
6398 | break | |
6399 | fi | |
6400 | rm -f core conftest.err conftest.$ac_objext | |
6401 | CC="$CC -n32" | |
6402 | if ac_fn_c_try_compile "$LINENO"; then : | |
6403 | ac_cv_sys_largefile_CC=' -n32'; break | |
6404 | fi | |
6405 | rm -f core conftest.err conftest.$ac_objext | |
6406 | break | |
6407 | done | |
6408 | CC=$ac_save_CC | |
6409 | rm -f conftest.$ac_ext | |
6410 | fi | |
6411 | fi | |
6412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
6413 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
6414 | if test "$ac_cv_sys_largefile_CC" != no; then | |
6415 | CC=$CC$ac_cv_sys_largefile_CC | |
6416 | fi | |
6417 | ||
6418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
6419 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
6420 | if ${ac_cv_sys_file_offset_bits+:} false; then : | |
6421 | $as_echo_n "(cached) " >&6 | |
6422 | else | |
6423 | while :; do | |
6424 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6425 | /* end confdefs.h. */ | |
6426 | #include <sys/types.h> | |
6427 | /* Check that off_t can represent 2**63 - 1 correctly. | |
6428 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
6429 | since some C++ compilers masquerading as C compilers | |
6430 | incorrectly reject 9223372036854775807. */ | |
6431 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
6432 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
6433 | && LARGE_OFF_T % 2147483647 == 1) | |
6434 | ? 1 : -1]; | |
6435 | int | |
6436 | main () | |
6437 | { | |
6438 | ||
6439 | ; | |
6440 | return 0; | |
6441 | } | |
6442 | _ACEOF | |
6443 | if ac_fn_c_try_compile "$LINENO"; then : | |
6444 | ac_cv_sys_file_offset_bits=no; break | |
6445 | fi | |
6446 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6447 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6448 | /* end confdefs.h. */ | |
6449 | #define _FILE_OFFSET_BITS 64 | |
6450 | #include <sys/types.h> | |
6451 | /* Check that off_t can represent 2**63 - 1 correctly. | |
6452 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
6453 | since some C++ compilers masquerading as C compilers | |
6454 | incorrectly reject 9223372036854775807. */ | |
6455 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
6456 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
6457 | && LARGE_OFF_T % 2147483647 == 1) | |
6458 | ? 1 : -1]; | |
6459 | int | |
6460 | main () | |
6461 | { | |
6462 | ||
6463 | ; | |
6464 | return 0; | |
6465 | } | |
6466 | _ACEOF | |
6467 | if ac_fn_c_try_compile "$LINENO"; then : | |
6468 | ac_cv_sys_file_offset_bits=64; break | |
6469 | fi | |
6470 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6471 | ac_cv_sys_file_offset_bits=unknown | |
6472 | break | |
6473 | done | |
6474 | fi | |
6475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
6476 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
6477 | case $ac_cv_sys_file_offset_bits in #( | |
6478 | no | unknown) ;; | |
6479 | *) | |
6480 | cat >>confdefs.h <<_ACEOF | |
6481 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
6482 | _ACEOF | |
6483 | ;; | |
6484 | esac | |
6485 | rm -rf conftest* | |
6486 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
6487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
6488 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
6489 | if ${ac_cv_sys_large_files+:} false; then : | |
6490 | $as_echo_n "(cached) " >&6 | |
6491 | else | |
6492 | while :; do | |
6493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6494 | /* end confdefs.h. */ | |
6495 | #include <sys/types.h> | |
6496 | /* Check that off_t can represent 2**63 - 1 correctly. | |
6497 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
6498 | since some C++ compilers masquerading as C compilers | |
6499 | incorrectly reject 9223372036854775807. */ | |
6500 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
6501 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
6502 | && LARGE_OFF_T % 2147483647 == 1) | |
6503 | ? 1 : -1]; | |
6504 | int | |
6505 | main () | |
6506 | { | |
6507 | ||
6508 | ; | |
6509 | return 0; | |
6510 | } | |
6511 | _ACEOF | |
6512 | if ac_fn_c_try_compile "$LINENO"; then : | |
6513 | ac_cv_sys_large_files=no; break | |
6514 | fi | |
6515 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6517 | /* end confdefs.h. */ | |
6518 | #define _LARGE_FILES 1 | |
6519 | #include <sys/types.h> | |
6520 | /* Check that off_t can represent 2**63 - 1 correctly. | |
6521 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
6522 | since some C++ compilers masquerading as C compilers | |
6523 | incorrectly reject 9223372036854775807. */ | |
6524 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
6525 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
6526 | && LARGE_OFF_T % 2147483647 == 1) | |
6527 | ? 1 : -1]; | |
6528 | int | |
6529 | main () | |
6530 | { | |
6531 | ||
6532 | ; | |
6533 | return 0; | |
6534 | } | |
6535 | _ACEOF | |
6536 | if ac_fn_c_try_compile "$LINENO"; then : | |
6537 | ac_cv_sys_large_files=1; break | |
6538 | fi | |
6539 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6540 | ac_cv_sys_large_files=unknown | |
6541 | break | |
6542 | done | |
6543 | fi | |
6544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
6545 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
6546 | case $ac_cv_sys_large_files in #( | |
6547 | no | unknown) ;; | |
6548 | *) | |
6549 | cat >>confdefs.h <<_ACEOF | |
6550 | #define _LARGE_FILES $ac_cv_sys_large_files | |
6551 | _ACEOF | |
6552 | ;; | |
6553 | esac | |
6554 | rm -rf conftest* | |
6555 | fi | |
8eef2738 LB |
6556 | |
6557 | ||
97859b9d JS |
6558 | fi |
6559 | ||
3477519f FCE |
6560 | for ac_func in ppoll |
6561 | do : | |
6562 | ac_fn_c_check_func "$LINENO" "ppoll" "ac_cv_func_ppoll" | |
6563 | if test "x$ac_cv_func_ppoll" = xyes; then : | |
6564 | cat >>confdefs.h <<_ACEOF | |
6565 | #define HAVE_PPOLL 1 | |
6566 | _ACEOF | |
6567 | ||
6568 | fi | |
6569 | done | |
6570 | ||
6571 | for ac_func in openat | |
6572 | do : | |
6573 | ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat" | |
6574 | if test "x$ac_cv_func_openat" = xyes; then : | |
6575 | cat >>confdefs.h <<_ACEOF | |
6576 | #define HAVE_OPENAT 1 | |
6577 | _ACEOF | |
6578 | ||
6579 | fi | |
6580 | done | |
6581 | ||
6fdbaaca FCE |
6582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
6583 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
6584 | if ${ac_cv_path_SED+:} false; then : | |
6585 | $as_echo_n "(cached) " >&6 | |
6586 | else | |
6587 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
6588 | for ac_i in 1 2 3 4 5 6 7; do | |
6589 | ac_script="$ac_script$as_nl$ac_script" | |
6590 | done | |
6591 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
6592 | { ac_script=; unset ac_script;} | |
6593 | if test -z "$SED"; then | |
6594 | ac_path_SED_found=false | |
6595 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6597 | for as_dir in $PATH | |
6598 | do | |
6599 | IFS=$as_save_IFS | |
6600 | test -z "$as_dir" && as_dir=. | |
6601 | for ac_prog in sed gsed; do | |
6602 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6603 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
6604 | as_fn_executable_p "$ac_path_SED" || continue | |
6605 | # Check for GNU ac_path_SED and select it if it is found. | |
6606 | # Check for GNU $ac_path_SED | |
6607 | case `"$ac_path_SED" --version 2>&1` in | |
6608 | *GNU*) | |
6609 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
6610 | *) | |
6611 | ac_count=0 | |
6612 | $as_echo_n 0123456789 >"conftest.in" | |
6613 | while : | |
6614 | do | |
6615 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6616 | mv "conftest.tmp" "conftest.in" | |
6617 | cp "conftest.in" "conftest.nl" | |
6618 | $as_echo '' >> "conftest.nl" | |
6619 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6620 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6621 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6622 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
6623 | # Best one so far, save it but keep looking for a better one | |
6624 | ac_cv_path_SED="$ac_path_SED" | |
6625 | ac_path_SED_max=$ac_count | |
6626 | fi | |
6627 | # 10*(2^10) chars as input seems more than enough | |
6628 | test $ac_count -gt 10 && break | |
6629 | done | |
6630 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
6631 | esac | |
6632 | ||
6633 | $ac_path_SED_found && break 3 | |
6634 | done | |
6635 | done | |
6636 | done | |
6637 | IFS=$as_save_IFS | |
6638 | if test -z "$ac_cv_path_SED"; then | |
6639 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
6640 | fi | |
6641 | else | |
6642 | ac_cv_path_SED=$SED | |
6643 | fi | |
6644 | ||
6645 | fi | |
6646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
6647 | $as_echo "$ac_cv_path_SED" >&6; } | |
6648 | SED="$ac_cv_path_SED" | |
6649 | rm -f conftest.sed | |
6650 | ||
8f223b3e FCE |
6651 | |
6652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 | |
6653 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
6654 | # Check whether --enable-nls was given. | |
6655 | if test "${enable_nls+set}" = set; then : | |
6656 | enableval=$enable_nls; USE_NLS=$enableval | |
6657 | else | |
6658 | USE_NLS=yes | |
6659 | fi | |
6660 | ||
6661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
6662 | $as_echo "$USE_NLS" >&6; } | |
6663 | ||
6664 | ||
6665 | ||
6666 | ||
6fdbaaca | 6667 | GETTEXT_MACRO_VERSION=0.19 |
8f223b3e FCE |
6668 | |
6669 | ||
6670 | ||
6671 | ||
6672 | # Prepare PATH_SEPARATOR. | |
6673 | # The user is always right. | |
6674 | if test "${PATH_SEPARATOR+set}" != set; then | |
42f767d0 JL |
6675 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
6676 | # contains only /bin. Note that ksh looks also at the FPATH variable, | |
6677 | # so we have to set that as well for the test. | |
6678 | PATH_SEPARATOR=: | |
6679 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
6680 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
6681 | || PATH_SEPARATOR=';' | |
6682 | } | |
8f223b3e FCE |
6683 | fi |
6684 | ||
6685 | # Find out how to test for executable files. Don't use a zero-byte file, | |
6686 | # as systems may use methods other than mode bits to determine executability. | |
6687 | cat >conf$$.file <<_ASEOF | |
6688 | #! /bin/sh | |
6689 | exit 0 | |
6690 | _ASEOF | |
6691 | chmod +x conf$$.file | |
6692 | if test -x conf$$.file >/dev/null 2>&1; then | |
6693 | ac_executable_p="test -x" | |
6694 | else | |
6695 | ac_executable_p="test -f" | |
6696 | fi | |
6697 | rm -f conf$$.file | |
6698 | ||
6699 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
6700 | set dummy msgfmt; ac_word=$2 | |
6701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6702 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 6703 | if ${ac_cv_path_MSGFMT+:} false; then : |
8f223b3e FCE |
6704 | $as_echo_n "(cached) " >&6 |
6705 | else | |
6706 | case "$MSGFMT" in | |
6707 | [\\/]* | ?:[\\/]*) | |
6708 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
6709 | ;; | |
6710 | *) | |
6711 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
6712 | for ac_dir in $PATH; do | |
6713 | IFS="$ac_save_IFS" | |
6714 | test -z "$ac_dir" && ac_dir=. | |
6715 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6716 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
6717 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 | |
6718 | if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && | |
6719 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
6720 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
6721 | break 2 | |
6722 | fi | |
6723 | fi | |
6724 | done | |
6725 | done | |
6726 | IFS="$ac_save_IFS" | |
6727 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
6728 | ;; | |
7fbd9d09 | 6729 | esac |
8f223b3e FCE |
6730 | fi |
6731 | MSGFMT="$ac_cv_path_MSGFMT" | |
6732 | if test "$MSGFMT" != ":"; then | |
6733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 | |
6734 | $as_echo "$MSGFMT" >&6; } | |
6735 | else | |
6736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6737 | $as_echo "no" >&6; } | |
6738 | fi | |
6739 | ||
6740 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
6741 | set dummy gmsgfmt; ac_word=$2 | |
6742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6743 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 6744 | if ${ac_cv_path_GMSGFMT+:} false; then : |
8f223b3e FCE |
6745 | $as_echo_n "(cached) " >&6 |
6746 | else | |
6747 | case $GMSGFMT in | |
6748 | [\\/]* | ?:[\\/]*) | |
6749 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
6750 | ;; | |
6751 | *) | |
6752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6753 | for as_dir in $PATH | |
6754 | do | |
6755 | IFS=$as_save_IFS | |
6756 | test -z "$as_dir" && as_dir=. | |
6757 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 6758 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8f223b3e FCE |
6759 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
6760 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6761 | break 2 | |
6762 | fi | |
6763 | done | |
6764 | done | |
6765 | IFS=$as_save_IFS | |
6766 | ||
6767 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
6768 | ;; | |
7fbd9d09 | 6769 | esac |
8f223b3e FCE |
6770 | fi |
6771 | GMSGFMT=$ac_cv_path_GMSGFMT | |
6772 | if test -n "$GMSGFMT"; then | |
6773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 | |
6774 | $as_echo "$GMSGFMT" >&6; } | |
6775 | else | |
6776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6777 | $as_echo "no" >&6; } | |
6778 | fi | |
6779 | ||
6780 | ||
6781 | ||
6782 | case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in | |
6783 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; | |
6784 | *) MSGFMT_015=$MSGFMT ;; | |
6785 | esac | |
6786 | ||
6787 | case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in | |
6788 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; | |
6789 | *) GMSGFMT_015=$GMSGFMT ;; | |
6790 | esac | |
6791 | ||
6792 | ||
6793 | ||
6794 | # Prepare PATH_SEPARATOR. | |
6795 | # The user is always right. | |
6796 | if test "${PATH_SEPARATOR+set}" != set; then | |
42f767d0 JL |
6797 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
6798 | # contains only /bin. Note that ksh looks also at the FPATH variable, | |
6799 | # so we have to set that as well for the test. | |
6800 | PATH_SEPARATOR=: | |
6801 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
6802 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
6803 | || PATH_SEPARATOR=';' | |
6804 | } | |
8f223b3e FCE |
6805 | fi |
6806 | ||
6807 | # Find out how to test for executable files. Don't use a zero-byte file, | |
6808 | # as systems may use methods other than mode bits to determine executability. | |
6809 | cat >conf$$.file <<_ASEOF | |
6810 | #! /bin/sh | |
6811 | exit 0 | |
6812 | _ASEOF | |
6813 | chmod +x conf$$.file | |
6814 | if test -x conf$$.file >/dev/null 2>&1; then | |
6815 | ac_executable_p="test -x" | |
6816 | else | |
6817 | ac_executable_p="test -f" | |
6818 | fi | |
6819 | rm -f conf$$.file | |
6820 | ||
6821 | # Extract the first word of "xgettext", so it can be a program name with args. | |
6822 | set dummy xgettext; ac_word=$2 | |
6823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6824 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 6825 | if ${ac_cv_path_XGETTEXT+:} false; then : |
8f223b3e FCE |
6826 | $as_echo_n "(cached) " >&6 |
6827 | else | |
6828 | case "$XGETTEXT" in | |
6829 | [\\/]* | ?:[\\/]*) | |
6830 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
6831 | ;; | |
6832 | *) | |
6833 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
6834 | for ac_dir in $PATH; do | |
6835 | IFS="$ac_save_IFS" | |
6836 | test -z "$ac_dir" && ac_dir=. | |
6837 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6838 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
6839 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 | |
6840 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && | |
6841 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
6842 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
6843 | break 2 | |
6844 | fi | |
6845 | fi | |
6846 | done | |
6847 | done | |
6848 | IFS="$ac_save_IFS" | |
6849 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
6850 | ;; | |
6851 | esac | |
6852 | fi | |
6853 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
6854 | if test "$XGETTEXT" != ":"; then | |
6855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 | |
6856 | $as_echo "$XGETTEXT" >&6; } | |
6857 | else | |
6858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6859 | $as_echo "no" >&6; } | |
6860 | fi | |
6861 | ||
6862 | rm -f messages.po | |
6863 | ||
6864 | case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in | |
6865 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; | |
6866 | *) XGETTEXT_015=$XGETTEXT ;; | |
6867 | esac | |
6868 | ||
6869 | ||
6870 | ||
6871 | # Prepare PATH_SEPARATOR. | |
6872 | # The user is always right. | |
6873 | if test "${PATH_SEPARATOR+set}" != set; then | |
42f767d0 JL |
6874 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
6875 | # contains only /bin. Note that ksh looks also at the FPATH variable, | |
6876 | # so we have to set that as well for the test. | |
6877 | PATH_SEPARATOR=: | |
6878 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
6879 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
6880 | || PATH_SEPARATOR=';' | |
6881 | } | |
8f223b3e FCE |
6882 | fi |
6883 | ||
6884 | # Find out how to test for executable files. Don't use a zero-byte file, | |
6885 | # as systems may use methods other than mode bits to determine executability. | |
6886 | cat >conf$$.file <<_ASEOF | |
6887 | #! /bin/sh | |
6888 | exit 0 | |
6889 | _ASEOF | |
6890 | chmod +x conf$$.file | |
6891 | if test -x conf$$.file >/dev/null 2>&1; then | |
6892 | ac_executable_p="test -x" | |
6893 | else | |
6894 | ac_executable_p="test -f" | |
6895 | fi | |
6896 | rm -f conf$$.file | |
6897 | ||
6898 | # Extract the first word of "msgmerge", so it can be a program name with args. | |
6899 | set dummy msgmerge; ac_word=$2 | |
6900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6901 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 6902 | if ${ac_cv_path_MSGMERGE+:} false; then : |
8f223b3e FCE |
6903 | $as_echo_n "(cached) " >&6 |
6904 | else | |
6905 | case "$MSGMERGE" in | |
6906 | [\\/]* | ?:[\\/]*) | |
6907 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
6908 | ;; | |
6909 | *) | |
6910 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
6911 | for ac_dir in $PATH; do | |
6912 | IFS="$ac_save_IFS" | |
6913 | test -z "$ac_dir" && ac_dir=. | |
6914 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6915 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
6916 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 | |
6917 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then | |
6918 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
6919 | break 2 | |
6920 | fi | |
6921 | fi | |
6922 | done | |
6923 | done | |
6924 | IFS="$ac_save_IFS" | |
6925 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
6926 | ;; | |
6927 | esac | |
6928 | fi | |
6929 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
6930 | if test "$MSGMERGE" != ":"; then | |
6931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 | |
6932 | $as_echo "$MSGMERGE" >&6; } | |
6933 | else | |
6934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6935 | $as_echo "no" >&6; } | |
6936 | fi | |
6937 | ||
6938 | ||
6939 | test -n "$localedir" || localedir='${datadir}/locale' | |
6940 | ||
6941 | ||
6942 | test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= | |
6943 | ||
6944 | ||
6945 | ac_config_commands="$ac_config_commands po-directories" | |
6946 | ||
6947 | ||
6948 | ||
6949 | if test "X$prefix" = "XNONE"; then | |
6950 | acl_final_prefix="$ac_default_prefix" | |
6951 | else | |
6952 | acl_final_prefix="$prefix" | |
8ae7a94a | 6953 | fi |
8f223b3e FCE |
6954 | if test "X$exec_prefix" = "XNONE"; then |
6955 | acl_final_exec_prefix='${prefix}' | |
6956 | else | |
6957 | acl_final_exec_prefix="$exec_prefix" | |
6958 | fi | |
6959 | acl_save_prefix="$prefix" | |
6960 | prefix="$acl_final_prefix" | |
6961 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
6962 | prefix="$acl_save_prefix" | |
6963 | ||
8ae7a94a | 6964 | |
42f767d0 | 6965 | |
8f223b3e FCE |
6966 | # Check whether --with-gnu-ld was given. |
6967 | if test "${with_gnu_ld+set}" = set; then : | |
6968 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
6969 | else | |
6970 | with_gnu_ld=no | |
8ae7a94a FCE |
6971 | fi |
6972 | ||
8f223b3e FCE |
6973 | # Prepare PATH_SEPARATOR. |
6974 | # The user is always right. | |
6975 | if test "${PATH_SEPARATOR+set}" != set; then | |
42f767d0 JL |
6976 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
6977 | # contains only /bin. Note that ksh looks also at the FPATH variable, | |
6978 | # so we have to set that as well for the test. | |
6979 | PATH_SEPARATOR=: | |
6980 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
6981 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
6982 | || PATH_SEPARATOR=';' | |
6983 | } | |
8f223b3e | 6984 | fi |
42f767d0 | 6985 | |
8f223b3e FCE |
6986 | ac_prog=ld |
6987 | if test "$GCC" = yes; then | |
6988 | # Check if gcc -print-prog-name=ld gives a path. | |
42f767d0 JL |
6989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
6990 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
8f223b3e FCE |
6991 | case $host in |
6992 | *-*-mingw*) | |
6993 | # gcc leaves a trailing carriage return which upsets mingw | |
6994 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
6995 | *) | |
6996 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
6997 | esac | |
6998 | case $ac_prog in | |
6999 | # Accept absolute paths. | |
42f767d0 | 7000 | [\\/]* | ?:[\\/]*) |
8f223b3e | 7001 | re_direlt='/[^/][^/]*/\.\./' |
42f767d0 JL |
7002 | # Canonicalize the pathname of ld |
7003 | ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` | |
7004 | while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do | |
8f223b3e FCE |
7005 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
7006 | done | |
7007 | test -z "$LD" && LD="$ac_prog" | |
7008 | ;; | |
7009 | "") | |
7010 | # If it fails, then pretend we aren't using GCC. | |
7011 | ac_prog=ld | |
7012 | ;; | |
7013 | *) | |
7014 | # If it is relative, then search for the first ld in PATH. | |
7015 | with_gnu_ld=unknown | |
7016 | ;; | |
7017 | esac | |
7018 | elif test "$with_gnu_ld" = yes; then | |
7019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
7020 | $as_echo_n "checking for GNU ld... " >&6; } | |
7021 | else | |
7022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
7023 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
7024 | fi | |
c3de29bd | 7025 | if ${acl_cv_path_LD+:} false; then : |
8f223b3e FCE |
7026 | $as_echo_n "(cached) " >&6 |
7027 | else | |
7028 | if test -z "$LD"; then | |
42f767d0 | 7029 | acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
8f223b3e | 7030 | for ac_dir in $PATH; do |
42f767d0 | 7031 | IFS="$acl_save_ifs" |
8f223b3e FCE |
7032 | test -z "$ac_dir" && ac_dir=. |
7033 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
7034 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
7035 | # Check to see if the program is GNU ld. I'd rather use --version, | |
42f767d0 | 7036 | # but apparently some variants of GNU ld only accept -v. |
8f223b3e | 7037 | # Break only if it was the GNU/non-GNU ld that we prefer. |
42f767d0 | 7038 | case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in |
8f223b3e | 7039 | *GNU* | *'with BFD'*) |
42f767d0 JL |
7040 | test "$with_gnu_ld" != no && break |
7041 | ;; | |
8f223b3e | 7042 | *) |
42f767d0 JL |
7043 | test "$with_gnu_ld" != yes && break |
7044 | ;; | |
8f223b3e FCE |
7045 | esac |
7046 | fi | |
7047 | done | |
42f767d0 | 7048 | IFS="$acl_save_ifs" |
8f223b3e FCE |
7049 | else |
7050 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
7051 | fi | |
8ae7a94a FCE |
7052 | fi |
7053 | ||
8f223b3e FCE |
7054 | LD="$acl_cv_path_LD" |
7055 | if test -n "$LD"; then | |
7056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
7057 | $as_echo "$LD" >&6; } | |
7058 | else | |
7059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7060 | $as_echo "no" >&6; } | |
7061 | fi | |
5d4aa1f5 | 7062 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
8f223b3e FCE |
7063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
7064 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
c3de29bd | 7065 | if ${acl_cv_prog_gnu_ld+:} false; then : |
8f223b3e FCE |
7066 | $as_echo_n "(cached) " >&6 |
7067 | else | |
42f767d0 | 7068 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
8f223b3e FCE |
7069 | case `$LD -v 2>&1 </dev/null` in |
7070 | *GNU* | *'with BFD'*) | |
42f767d0 JL |
7071 | acl_cv_prog_gnu_ld=yes |
7072 | ;; | |
8f223b3e | 7073 | *) |
42f767d0 JL |
7074 | acl_cv_prog_gnu_ld=no |
7075 | ;; | |
8f223b3e FCE |
7076 | esac |
7077 | fi | |
7078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 | |
7079 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
7080 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
7fbd9d09 | 7081 | |
2f1a1aea | 7082 | |
2f1a1aea FCE |
7083 | |
7084 | ||
8f223b3e FCE |
7085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 |
7086 | $as_echo_n "checking for shared library run path origin... " >&6; } | |
c3de29bd | 7087 | if ${acl_cv_rpath+:} false; then : |
8f223b3e FCE |
7088 | $as_echo_n "(cached) " >&6 |
7089 | else | |
2f1a1aea | 7090 | |
8f223b3e FCE |
7091 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
7092 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
7093 | . ./conftest.sh | |
7094 | rm -f ./conftest.sh | |
7095 | acl_cv_rpath=done | |
7096 | ||
7097 | fi | |
7098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 | |
7099 | $as_echo "$acl_cv_rpath" >&6; } | |
7100 | wl="$acl_cv_wl" | |
7101 | acl_libext="$acl_cv_libext" | |
7102 | acl_shlibext="$acl_cv_shlibext" | |
7103 | acl_libname_spec="$acl_cv_libname_spec" | |
7104 | acl_library_names_spec="$acl_cv_library_names_spec" | |
7105 | acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
7106 | acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
7107 | acl_hardcode_direct="$acl_cv_hardcode_direct" | |
7108 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
7109 | # Check whether --enable-rpath was given. | |
7110 | if test "${enable_rpath+set}" = set; then : | |
7111 | enableval=$enable_rpath; : | |
2f1a1aea | 7112 | else |
8f223b3e | 7113 | enable_rpath=yes |
7fbd9d09 FCE |
7114 | fi |
7115 | ||
7116 | ||
7117 | ||
8f223b3e FCE |
7118 | |
7119 | acl_libdirstem=lib | |
7120 | acl_libdirstem2= | |
7121 | case "$host_os" in | |
7122 | solaris*) | |
7123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 | |
7124 | $as_echo_n "checking for 64-bit host... " >&6; } | |
c3de29bd | 7125 | if ${gl_cv_solaris_64bit+:} false; then : |
0710d850 | 7126 | $as_echo_n "(cached) " >&6 |
7fbd9d09 | 7127 | else |
8f223b3e FCE |
7128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7129 | /* end confdefs.h. */ | |
7130 | ||
7131 | #ifdef _LP64 | |
7132 | sixtyfour bits | |
7133 | #endif | |
7134 | ||
7135 | _ACEOF | |
7136 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7137 | $EGREP "sixtyfour bits" >/dev/null 2>&1; then : | |
7138 | gl_cv_solaris_64bit=yes | |
7139 | else | |
7140 | gl_cv_solaris_64bit=no | |
7141 | fi | |
7142 | rm -f conftest* | |
7143 | ||
7144 | ||
7145 | fi | |
7146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 | |
7147 | $as_echo "$gl_cv_solaris_64bit" >&6; } | |
7148 | if test $gl_cv_solaris_64bit = yes; then | |
7149 | acl_libdirstem=lib/64 | |
7150 | case "$host_cpu" in | |
7151 | sparc*) acl_libdirstem2=lib/sparcv9 ;; | |
7152 | i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; | |
7153 | esac | |
7154 | fi | |
7155 | ;; | |
7156 | *) | |
7157 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` | |
7158 | if test -n "$searchpath"; then | |
7159 | acl_save_IFS="${IFS= }"; IFS=":" | |
7160 | for searchdir in $searchpath; do | |
7161 | if test -d "$searchdir"; then | |
7162 | case "$searchdir" in | |
7163 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; | |
7164 | */../ | */.. ) | |
7165 | # Better ignore directories of this form. They are misleading. | |
7166 | ;; | |
7167 | *) searchdir=`cd "$searchdir" && pwd` | |
7168 | case "$searchdir" in | |
7169 | */lib64 ) acl_libdirstem=lib64 ;; | |
7170 | esac ;; | |
7171 | esac | |
7172 | fi | |
7173 | done | |
7174 | IFS="$acl_save_IFS" | |
7175 | fi | |
7176 | ;; | |
7177 | esac | |
7178 | test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" | |
7179 | ||
7180 | ||
7181 | ||
7182 | ||
7183 | ||
7184 | ||
7185 | ||
7186 | ||
7187 | ||
7188 | ||
7189 | ||
7190 | ||
7191 | use_additional=yes | |
7192 | ||
7193 | acl_save_prefix="$prefix" | |
7194 | prefix="$acl_final_prefix" | |
7195 | acl_save_exec_prefix="$exec_prefix" | |
7196 | exec_prefix="$acl_final_exec_prefix" | |
7197 | ||
7198 | eval additional_includedir=\"$includedir\" | |
7199 | eval additional_libdir=\"$libdir\" | |
7200 | ||
7201 | exec_prefix="$acl_save_exec_prefix" | |
7202 | prefix="$acl_save_prefix" | |
7203 | ||
7204 | ||
7205 | # Check whether --with-libiconv-prefix was given. | |
7206 | if test "${with_libiconv_prefix+set}" = set; then : | |
7207 | withval=$with_libiconv_prefix; | |
7208 | if test "X$withval" = "Xno"; then | |
7209 | use_additional=no | |
7210 | else | |
7211 | if test "X$withval" = "X"; then | |
7212 | ||
7213 | acl_save_prefix="$prefix" | |
7214 | prefix="$acl_final_prefix" | |
7215 | acl_save_exec_prefix="$exec_prefix" | |
7216 | exec_prefix="$acl_final_exec_prefix" | |
7217 | ||
7218 | eval additional_includedir=\"$includedir\" | |
7219 | eval additional_libdir=\"$libdir\" | |
7220 | ||
7221 | exec_prefix="$acl_save_exec_prefix" | |
7222 | prefix="$acl_save_prefix" | |
7223 | ||
7224 | else | |
7225 | additional_includedir="$withval/include" | |
7226 | additional_libdir="$withval/$acl_libdirstem" | |
7227 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ | |
7228 | && ! test -d "$withval/$acl_libdirstem"; then | |
7229 | additional_libdir="$withval/$acl_libdirstem2" | |
7230 | fi | |
7231 | fi | |
7fbd9d09 | 7232 | fi |
7fbd9d09 | 7233 | |
8f223b3e FCE |
7234 | fi |
7235 | ||
7236 | LIBICONV= | |
7237 | LTLIBICONV= | |
7238 | INCICONV= | |
7239 | LIBICONV_PREFIX= | |
7240 | HAVE_LIBICONV= | |
7241 | rpathdirs= | |
7242 | ltrpathdirs= | |
7243 | names_already_handled= | |
7244 | names_next_round='iconv ' | |
7245 | while test -n "$names_next_round"; do | |
7246 | names_this_round="$names_next_round" | |
7247 | names_next_round= | |
7248 | for name in $names_this_round; do | |
7249 | already_handled= | |
7250 | for n in $names_already_handled; do | |
7251 | if test "$n" = "$name"; then | |
7252 | already_handled=yes | |
7253 | break | |
7254 | fi | |
7255 | done | |
7256 | if test -z "$already_handled"; then | |
7257 | names_already_handled="$names_already_handled $name" | |
42f767d0 | 7258 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
8f223b3e FCE |
7259 | eval value=\"\$HAVE_LIB$uppername\" |
7260 | if test -n "$value"; then | |
7261 | if test "$value" = yes; then | |
7262 | eval value=\"\$LIB$uppername\" | |
7263 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
7264 | eval value=\"\$LTLIB$uppername\" | |
7265 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
7266 | else | |
7267 | : | |
7268 | fi | |
7269 | else | |
7270 | found_dir= | |
7271 | found_la= | |
7272 | found_so= | |
7273 | found_a= | |
7274 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | |
7275 | if test -n "$acl_shlibext"; then | |
7276 | shrext=".$acl_shlibext" # typically: shrext=.so | |
7277 | else | |
7278 | shrext= | |
7279 | fi | |
7280 | if test $use_additional = yes; then | |
7281 | dir="$additional_libdir" | |
7282 | if test -n "$acl_shlibext"; then | |
7283 | if test -f "$dir/$libname$shrext"; then | |
7284 | found_dir="$dir" | |
7285 | found_so="$dir/$libname$shrext" | |
7286 | else | |
7287 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
7288 | ver=`(cd "$dir" && \ | |
7289 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
7290 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
7291 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
7292 | | sed 1q ) 2>/dev/null` | |
7293 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
7294 | found_dir="$dir" | |
7295 | found_so="$dir/$libname$shrext.$ver" | |
7296 | fi | |
7297 | else | |
7298 | eval library_names=\"$acl_library_names_spec\" | |
7299 | for f in $library_names; do | |
7300 | if test -f "$dir/$f"; then | |
7301 | found_dir="$dir" | |
7302 | found_so="$dir/$f" | |
7303 | break | |
7304 | fi | |
7305 | done | |
7306 | fi | |
7307 | fi | |
7308 | fi | |
7309 | if test "X$found_dir" = "X"; then | |
7310 | if test -f "$dir/$libname.$acl_libext"; then | |
7311 | found_dir="$dir" | |
7312 | found_a="$dir/$libname.$acl_libext" | |
7313 | fi | |
7314 | fi | |
7315 | if test "X$found_dir" != "X"; then | |
7316 | if test -f "$dir/$libname.la"; then | |
7317 | found_la="$dir/$libname.la" | |
7318 | fi | |
7319 | fi | |
7320 | fi | |
7321 | if test "X$found_dir" = "X"; then | |
7322 | for x in $LDFLAGS $LTLIBICONV; do | |
7323 | ||
7324 | acl_save_prefix="$prefix" | |
7325 | prefix="$acl_final_prefix" | |
7326 | acl_save_exec_prefix="$exec_prefix" | |
7327 | exec_prefix="$acl_final_exec_prefix" | |
7328 | eval x=\"$x\" | |
7329 | exec_prefix="$acl_save_exec_prefix" | |
7330 | prefix="$acl_save_prefix" | |
7331 | ||
7332 | case "$x" in | |
7333 | -L*) | |
7334 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
7335 | if test -n "$acl_shlibext"; then | |
7336 | if test -f "$dir/$libname$shrext"; then | |
7337 | found_dir="$dir" | |
7338 | found_so="$dir/$libname$shrext" | |
7339 | else | |
7340 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
7341 | ver=`(cd "$dir" && \ | |
7342 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
7343 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
7344 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
7345 | | sed 1q ) 2>/dev/null` | |
7346 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
7347 | found_dir="$dir" | |
7348 | found_so="$dir/$libname$shrext.$ver" | |
7349 | fi | |
7350 | else | |
7351 | eval library_names=\"$acl_library_names_spec\" | |
7352 | for f in $library_names; do | |
7353 | if test -f "$dir/$f"; then | |
7354 | found_dir="$dir" | |
7355 | found_so="$dir/$f" | |
7356 | break | |
7357 | fi | |
7358 | done | |
7359 | fi | |
7360 | fi | |
7361 | fi | |
7362 | if test "X$found_dir" = "X"; then | |
7363 | if test -f "$dir/$libname.$acl_libext"; then | |
7364 | found_dir="$dir" | |
7365 | found_a="$dir/$libname.$acl_libext" | |
7366 | fi | |
7367 | fi | |
7368 | if test "X$found_dir" != "X"; then | |
7369 | if test -f "$dir/$libname.la"; then | |
7370 | found_la="$dir/$libname.la" | |
7371 | fi | |
7372 | fi | |
7373 | ;; | |
7374 | esac | |
7375 | if test "X$found_dir" != "X"; then | |
7376 | break | |
7377 | fi | |
7378 | done | |
7379 | fi | |
7380 | if test "X$found_dir" != "X"; then | |
7381 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
7382 | if test "X$found_so" != "X"; then | |
7383 | if test "$enable_rpath" = no \ | |
7384 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ | |
7385 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then | |
7386 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
7387 | else | |
7388 | haveit= | |
7389 | for x in $ltrpathdirs; do | |
7390 | if test "X$x" = "X$found_dir"; then | |
7391 | haveit=yes | |
7392 | break | |
7393 | fi | |
7394 | done | |
7395 | if test -z "$haveit"; then | |
7396 | ltrpathdirs="$ltrpathdirs $found_dir" | |
7397 | fi | |
7398 | if test "$acl_hardcode_direct" = yes; then | |
7399 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
7400 | else | |
7401 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | |
7402 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
7403 | haveit= | |
7404 | for x in $rpathdirs; do | |
7405 | if test "X$x" = "X$found_dir"; then | |
7406 | haveit=yes | |
7407 | break | |
7408 | fi | |
7409 | done | |
7410 | if test -z "$haveit"; then | |
7411 | rpathdirs="$rpathdirs $found_dir" | |
7412 | fi | |
7413 | else | |
7414 | haveit= | |
7415 | for x in $LDFLAGS $LIBICONV; do | |
7416 | ||
7417 | acl_save_prefix="$prefix" | |
7418 | prefix="$acl_final_prefix" | |
7419 | acl_save_exec_prefix="$exec_prefix" | |
7420 | exec_prefix="$acl_final_exec_prefix" | |
7421 | eval x=\"$x\" | |
7422 | exec_prefix="$acl_save_exec_prefix" | |
7423 | prefix="$acl_save_prefix" | |
7424 | ||
7425 | if test "X$x" = "X-L$found_dir"; then | |
7426 | haveit=yes | |
7427 | break | |
7428 | fi | |
7429 | done | |
7430 | if test -z "$haveit"; then | |
7431 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
7432 | fi | |
7433 | if test "$acl_hardcode_minus_L" != no; then | |
7434 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
7435 | else | |
7436 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
7437 | fi | |
7438 | fi | |
7439 | fi | |
7440 | fi | |
7441 | else | |
7442 | if test "X$found_a" != "X"; then | |
7443 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
7444 | else | |
7445 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
7446 | fi | |
7447 | fi | |
7448 | additional_includedir= | |
7449 | case "$found_dir" in | |
7450 | */$acl_libdirstem | */$acl_libdirstem/) | |
7451 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
7452 | if test "$name" = 'iconv'; then | |
7453 | LIBICONV_PREFIX="$basedir" | |
7454 | fi | |
7455 | additional_includedir="$basedir/include" | |
7456 | ;; | |
7457 | */$acl_libdirstem2 | */$acl_libdirstem2/) | |
7458 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` | |
7459 | if test "$name" = 'iconv'; then | |
7460 | LIBICONV_PREFIX="$basedir" | |
7461 | fi | |
7462 | additional_includedir="$basedir/include" | |
7463 | ;; | |
7464 | esac | |
7465 | if test "X$additional_includedir" != "X"; then | |
7466 | if test "X$additional_includedir" != "X/usr/include"; then | |
7467 | haveit= | |
7468 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
7469 | if test -n "$GCC"; then | |
7470 | case $host_os in | |
7471 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
7472 | esac | |
7473 | fi | |
7474 | fi | |
7475 | if test -z "$haveit"; then | |
7476 | for x in $CPPFLAGS $INCICONV; do | |
7477 | ||
7478 | acl_save_prefix="$prefix" | |
7479 | prefix="$acl_final_prefix" | |
7480 | acl_save_exec_prefix="$exec_prefix" | |
7481 | exec_prefix="$acl_final_exec_prefix" | |
7482 | eval x=\"$x\" | |
7483 | exec_prefix="$acl_save_exec_prefix" | |
7484 | prefix="$acl_save_prefix" | |
7485 | ||
7486 | if test "X$x" = "X-I$additional_includedir"; then | |
7487 | haveit=yes | |
7488 | break | |
7489 | fi | |
7490 | done | |
7491 | if test -z "$haveit"; then | |
7492 | if test -d "$additional_includedir"; then | |
7493 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
7494 | fi | |
7495 | fi | |
7496 | fi | |
7497 | fi | |
7498 | fi | |
7499 | if test -n "$found_la"; then | |
7500 | save_libdir="$libdir" | |
7501 | case "$found_la" in | |
7502 | */* | *\\*) . "$found_la" ;; | |
7503 | *) . "./$found_la" ;; | |
7504 | esac | |
7505 | libdir="$save_libdir" | |
7506 | for dep in $dependency_libs; do | |
7507 | case "$dep" in | |
7508 | -L*) | |
7509 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
7510 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ | |
7511 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then | |
7512 | haveit= | |
7513 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ | |
7514 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then | |
7515 | if test -n "$GCC"; then | |
7516 | case $host_os in | |
7517 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
7518 | esac | |
7519 | fi | |
7520 | fi | |
7521 | if test -z "$haveit"; then | |
7522 | haveit= | |
7523 | for x in $LDFLAGS $LIBICONV; do | |
7524 | ||
7525 | acl_save_prefix="$prefix" | |
7526 | prefix="$acl_final_prefix" | |
7527 | acl_save_exec_prefix="$exec_prefix" | |
7528 | exec_prefix="$acl_final_exec_prefix" | |
7529 | eval x=\"$x\" | |
7530 | exec_prefix="$acl_save_exec_prefix" | |
7531 | prefix="$acl_save_prefix" | |
7532 | ||
7533 | if test "X$x" = "X-L$additional_libdir"; then | |
7534 | haveit=yes | |
7535 | break | |
7536 | fi | |
7537 | done | |
7538 | if test -z "$haveit"; then | |
7539 | if test -d "$additional_libdir"; then | |
7540 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
7541 | fi | |
7542 | fi | |
7543 | haveit= | |
7544 | for x in $LDFLAGS $LTLIBICONV; do | |
7545 | ||
7546 | acl_save_prefix="$prefix" | |
7547 | prefix="$acl_final_prefix" | |
7548 | acl_save_exec_prefix="$exec_prefix" | |
7549 | exec_prefix="$acl_final_exec_prefix" | |
7550 | eval x=\"$x\" | |
7551 | exec_prefix="$acl_save_exec_prefix" | |
7552 | prefix="$acl_save_prefix" | |
7553 | ||
7554 | if test "X$x" = "X-L$additional_libdir"; then | |
7555 | haveit=yes | |
7556 | break | |
7557 | fi | |
7558 | done | |
7559 | if test -z "$haveit"; then | |
7560 | if test -d "$additional_libdir"; then | |
7561 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
7562 | fi | |
7563 | fi | |
7564 | fi | |
7565 | fi | |
7566 | ;; | |
7567 | -R*) | |
7568 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
7569 | if test "$enable_rpath" != no; then | |
7570 | haveit= | |
7571 | for x in $rpathdirs; do | |
7572 | if test "X$x" = "X$dir"; then | |
7573 | haveit=yes | |
7574 | break | |
7575 | fi | |
7576 | done | |
7577 | if test -z "$haveit"; then | |
7578 | rpathdirs="$rpathdirs $dir" | |
7579 | fi | |
7580 | haveit= | |
7581 | for x in $ltrpathdirs; do | |
7582 | if test "X$x" = "X$dir"; then | |
7583 | haveit=yes | |
7584 | break | |
7585 | fi | |
7586 | done | |
7587 | if test -z "$haveit"; then | |
7588 | ltrpathdirs="$ltrpathdirs $dir" | |
7589 | fi | |
7590 | fi | |
7591 | ;; | |
7592 | -l*) | |
7593 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
7594 | ;; | |
7595 | *.la) | |
7596 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
7597 | ;; | |
7598 | *) | |
7599 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
7600 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
7601 | ;; | |
7602 | esac | |
7603 | done | |
7604 | fi | |
7605 | else | |
7606 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
7607 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
7608 | fi | |
7609 | fi | |
7610 | fi | |
0710d850 | 7611 | done |
7fbd9d09 | 7612 | done |
8f223b3e FCE |
7613 | if test "X$rpathdirs" != "X"; then |
7614 | if test -n "$acl_hardcode_libdir_separator"; then | |
7615 | alldirs= | |
7616 | for found_dir in $rpathdirs; do | |
7617 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | |
7618 | done | |
7619 | acl_save_libdir="$libdir" | |
7620 | libdir="$alldirs" | |
7621 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
7622 | libdir="$acl_save_libdir" | |
7623 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
7624 | else | |
7625 | for found_dir in $rpathdirs; do | |
7626 | acl_save_libdir="$libdir" | |
7627 | libdir="$found_dir" | |
7628 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
7629 | libdir="$acl_save_libdir" | |
7630 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
7631 | done | |
7632 | fi | |
7633 | fi | |
7634 | if test "X$ltrpathdirs" != "X"; then | |
7635 | for found_dir in $ltrpathdirs; do | |
7636 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
7637 | done | |
0710d850 | 7638 | fi |
70d28673 | 7639 | |
7fbd9d09 | 7640 | |
70d28673 | 7641 | |
8f223b3e FCE |
7642 | |
7643 | ||
7644 | ||
7645 | ||
7646 | ||
7647 | ||
7648 | ||
7649 | ||
7650 | ||
7651 | ||
7652 | ||
7653 | ||
7654 | ||
7655 | ||
7656 | ||
7657 | ||
7658 | ||
7659 | ||
7660 | ||
7661 | ||
7662 | ||
7663 | ||
7664 | ||
7665 | ||
7666 | ||
42f767d0 JL |
7667 | |
7668 | ||
7669 | ||
7670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 | |
7671 | $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } | |
7672 | if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : | |
7673 | $as_echo_n "(cached) " >&6 | |
7674 | else | |
7675 | gt_save_LIBS="$LIBS" | |
7676 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | |
7677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7678 | /* end confdefs.h. */ | |
7679 | #include <CoreFoundation/CFPreferences.h> | |
7680 | int | |
7681 | main () | |
7682 | { | |
7683 | CFPreferencesCopyAppValue(NULL, NULL) | |
7684 | ; | |
7685 | return 0; | |
7686 | } | |
7687 | _ACEOF | |
7688 | if ac_fn_c_try_link "$LINENO"; then : | |
7689 | gt_cv_func_CFPreferencesCopyAppValue=yes | |
7690 | else | |
7691 | gt_cv_func_CFPreferencesCopyAppValue=no | |
7692 | fi | |
7693 | rm -f core conftest.err conftest.$ac_objext \ | |
7694 | conftest$ac_exeext conftest.$ac_ext | |
7695 | LIBS="$gt_save_LIBS" | |
7696 | fi | |
7697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 | |
7698 | $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } | |
7699 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then | |
7700 | ||
7701 | $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h | |
7702 | ||
7703 | fi | |
7704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 | |
7705 | $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } | |
7706 | if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : | |
7707 | $as_echo_n "(cached) " >&6 | |
7708 | else | |
7709 | gt_save_LIBS="$LIBS" | |
7710 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | |
7711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7712 | /* end confdefs.h. */ | |
7713 | #include <CoreFoundation/CFLocale.h> | |
7714 | int | |
7715 | main () | |
7716 | { | |
7717 | CFLocaleCopyCurrent(); | |
7718 | ; | |
7719 | return 0; | |
7720 | } | |
7721 | _ACEOF | |
7722 | if ac_fn_c_try_link "$LINENO"; then : | |
7723 | gt_cv_func_CFLocaleCopyCurrent=yes | |
7724 | else | |
7725 | gt_cv_func_CFLocaleCopyCurrent=no | |
7726 | fi | |
7727 | rm -f core conftest.err conftest.$ac_objext \ | |
7728 | conftest$ac_exeext conftest.$ac_ext | |
7729 | LIBS="$gt_save_LIBS" | |
7730 | fi | |
7731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 | |
7732 | $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } | |
7733 | if test $gt_cv_func_CFLocaleCopyCurrent = yes; then | |
7734 | ||
7735 | $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h | |
7736 | ||
7737 | fi | |
7738 | INTL_MACOSX_LIBS= | |
7739 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then | |
7740 | INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" | |
7741 | fi | |
8f223b3e FCE |
7742 | |
7743 | ||
7744 | ||
7745 | ||
7746 | ||
7747 | ||
7748 | LIBINTL= | |
7749 | LTLIBINTL= | |
7750 | POSUB= | |
7751 | ||
7752 | case " $gt_needs " in | |
7753 | *" need-formatstring-macros "*) gt_api_version=3 ;; | |
7754 | *" need-ngettext "*) gt_api_version=2 ;; | |
7755 | *) gt_api_version=1 ;; | |
7756 | esac | |
7757 | gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" | |
7758 | gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" | |
7759 | ||
7760 | if test "$USE_NLS" = "yes"; then | |
7761 | gt_use_preinstalled_gnugettext=no | |
7762 | ||
7763 | ||
7764 | if test $gt_api_version -ge 3; then | |
7765 | gt_revision_test_code=' | |
7766 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION | |
7767 | #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) | |
7768 | #endif | |
7769 | typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; | |
7770 | ' | |
7771 | else | |
7772 | gt_revision_test_code= | |
7773 | fi | |
7774 | if test $gt_api_version -ge 2; then | |
7775 | gt_expression_test_code=' + * ngettext ("", "", 0)' | |
7776 | else | |
7777 | gt_expression_test_code= | |
7778 | fi | |
7779 | ||
7780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 | |
7781 | $as_echo_n "checking for GNU gettext in libc... " >&6; } | |
c3de29bd | 7782 | if eval \${$gt_func_gnugettext_libc+:} false; then : |
0710d850 | 7783 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 7784 | else |
1ef0423a | 7785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea | 7786 | /* end confdefs.h. */ |
42f767d0 | 7787 | |
8f223b3e FCE |
7788 | #include <libintl.h> |
7789 | $gt_revision_test_code | |
7790 | extern int _nl_msg_cat_cntr; | |
7791 | extern int *_nl_domain_bindings; | |
42f767d0 | 7792 | |
2f1a1aea FCE |
7793 | int |
7794 | main () | |
7795 | { | |
42f767d0 | 7796 | |
8f223b3e FCE |
7797 | bindtextdomain ("", ""); |
7798 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings | |
42f767d0 | 7799 | |
2f1a1aea FCE |
7800 | ; |
7801 | return 0; | |
7802 | } | |
7803 | _ACEOF | |
8f223b3e FCE |
7804 | if ac_fn_c_try_link "$LINENO"; then : |
7805 | eval "$gt_func_gnugettext_libc=yes" | |
2f1a1aea | 7806 | else |
8f223b3e | 7807 | eval "$gt_func_gnugettext_libc=no" |
2f1a1aea | 7808 | fi |
8f223b3e FCE |
7809 | rm -f core conftest.err conftest.$ac_objext \ |
7810 | conftest$ac_exeext conftest.$ac_ext | |
7811 | fi | |
7812 | eval ac_res=\$$gt_func_gnugettext_libc | |
7813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7814 | $as_echo "$ac_res" >&6; } | |
2f1a1aea | 7815 | |
8f223b3e | 7816 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then |
2f1a1aea | 7817 | |
1ef0423a | 7818 | |
8f223b3e FCE |
7819 | |
7820 | ||
7821 | ||
7822 | am_save_CPPFLAGS="$CPPFLAGS" | |
7823 | ||
7824 | for element in $INCICONV; do | |
7825 | haveit= | |
7826 | for x in $CPPFLAGS; do | |
7827 | ||
7828 | acl_save_prefix="$prefix" | |
7829 | prefix="$acl_final_prefix" | |
7830 | acl_save_exec_prefix="$exec_prefix" | |
7831 | exec_prefix="$acl_final_exec_prefix" | |
7832 | eval x=\"$x\" | |
7833 | exec_prefix="$acl_save_exec_prefix" | |
7834 | prefix="$acl_save_prefix" | |
7835 | ||
7836 | if test "X$x" = "X$element"; then | |
7837 | haveit=yes | |
7838 | break | |
7839 | fi | |
7840 | done | |
7841 | if test -z "$haveit"; then | |
7842 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
7843 | fi | |
7844 | done | |
7845 | ||
7846 | ||
7847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 | |
7848 | $as_echo_n "checking for iconv... " >&6; } | |
c3de29bd | 7849 | if ${am_cv_func_iconv+:} false; then : |
8f223b3e | 7850 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 7851 | else |
8f223b3e FCE |
7852 | |
7853 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
7854 | am_cv_lib_iconv=no | |
7855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7856 | /* end confdefs.h. */ | |
42f767d0 | 7857 | |
8f223b3e FCE |
7858 | #include <stdlib.h> |
7859 | #include <iconv.h> | |
42f767d0 | 7860 | |
8f223b3e FCE |
7861 | int |
7862 | main () | |
7863 | { | |
7864 | iconv_t cd = iconv_open("",""); | |
42f767d0 JL |
7865 | iconv(cd,NULL,NULL,NULL,NULL); |
7866 | iconv_close(cd); | |
8f223b3e FCE |
7867 | ; |
7868 | return 0; | |
7869 | } | |
7870 | _ACEOF | |
7871 | if ac_fn_c_try_link "$LINENO"; then : | |
7872 | am_cv_func_iconv=yes | |
2f1a1aea | 7873 | fi |
8f223b3e FCE |
7874 | rm -f core conftest.err conftest.$ac_objext \ |
7875 | conftest$ac_exeext conftest.$ac_ext | |
7876 | if test "$am_cv_func_iconv" != yes; then | |
7877 | am_save_LIBS="$LIBS" | |
7878 | LIBS="$LIBS $LIBICONV" | |
7879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7880 | /* end confdefs.h. */ | |
42f767d0 | 7881 | |
8f223b3e FCE |
7882 | #include <stdlib.h> |
7883 | #include <iconv.h> | |
42f767d0 | 7884 | |
8f223b3e FCE |
7885 | int |
7886 | main () | |
7887 | { | |
7888 | iconv_t cd = iconv_open("",""); | |
42f767d0 JL |
7889 | iconv(cd,NULL,NULL,NULL,NULL); |
7890 | iconv_close(cd); | |
8f223b3e FCE |
7891 | ; |
7892 | return 0; | |
7893 | } | |
7894 | _ACEOF | |
7895 | if ac_fn_c_try_link "$LINENO"; then : | |
7896 | am_cv_lib_iconv=yes | |
7897 | am_cv_func_iconv=yes | |
7898 | fi | |
7899 | rm -f core conftest.err conftest.$ac_objext \ | |
7900 | conftest$ac_exeext conftest.$ac_ext | |
7901 | LIBS="$am_save_LIBS" | |
7902 | fi | |
2f1a1aea FCE |
7903 | |
7904 | fi | |
8f223b3e FCE |
7905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 |
7906 | $as_echo "$am_cv_func_iconv" >&6; } | |
7907 | if test "$am_cv_func_iconv" = yes; then | |
7908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 | |
7909 | $as_echo_n "checking for working iconv... " >&6; } | |
c3de29bd | 7910 | if ${am_cv_func_iconv_works+:} false; then : |
8f223b3e FCE |
7911 | $as_echo_n "(cached) " >&6 |
7912 | else | |
2f1a1aea | 7913 | |
42f767d0 | 7914 | am_save_LIBS="$LIBS" |
8f223b3e FCE |
7915 | if test $am_cv_lib_iconv = yes; then |
7916 | LIBS="$LIBS $LIBICONV" | |
7917 | fi | |
6fdbaaca FCE |
7918 | am_cv_func_iconv_works=no |
7919 | for ac_iconv_const in '' 'const'; do | |
7920 | if test "$cross_compiling" = yes; then : | |
7921 | case "$host_os" in | |
7922 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; | |
7923 | *) am_cv_func_iconv_works="guessing yes" ;; | |
7924 | esac | |
8f223b3e | 7925 | else |
1ef0423a | 7926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea | 7927 | /* end confdefs.h. */ |
2f1a1aea | 7928 | |
8f223b3e FCE |
7929 | #include <iconv.h> |
7930 | #include <string.h> | |
6fdbaaca FCE |
7931 | |
7932 | #ifndef ICONV_CONST | |
7933 | # define ICONV_CONST $ac_iconv_const | |
7934 | #endif | |
7935 | ||
7936 | int | |
7937 | main () | |
8f223b3e | 7938 | { |
6fdbaaca | 7939 | int result = 0; |
8f223b3e FCE |
7940 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful |
7941 | returns. */ | |
7942 | { | |
7943 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); | |
7944 | if (cd_utf8_to_88591 != (iconv_t)(-1)) | |
7945 | { | |
6fdbaaca | 7946 | static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ |
8f223b3e | 7947 | char buf[10]; |
6fdbaaca | 7948 | ICONV_CONST char *inptr = input; |
8f223b3e FCE |
7949 | size_t inbytesleft = strlen (input); |
7950 | char *outptr = buf; | |
7951 | size_t outbytesleft = sizeof (buf); | |
7952 | size_t res = iconv (cd_utf8_to_88591, | |
6fdbaaca | 7953 | &inptr, &inbytesleft, |
8f223b3e FCE |
7954 | &outptr, &outbytesleft); |
7955 | if (res == 0) | |
42f767d0 JL |
7956 | result |= 1; |
7957 | iconv_close (cd_utf8_to_88591); | |
7958 | } | |
7959 | } | |
7960 | /* Test against Solaris 10 bug: Failures are not distinguishable from | |
7961 | successful returns. */ | |
7962 | { | |
7963 | iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); | |
7964 | if (cd_ascii_to_88591 != (iconv_t)(-1)) | |
7965 | { | |
6fdbaaca | 7966 | static ICONV_CONST char input[] = "\263"; |
42f767d0 | 7967 | char buf[10]; |
6fdbaaca | 7968 | ICONV_CONST char *inptr = input; |
42f767d0 JL |
7969 | size_t inbytesleft = strlen (input); |
7970 | char *outptr = buf; | |
7971 | size_t outbytesleft = sizeof (buf); | |
7972 | size_t res = iconv (cd_ascii_to_88591, | |
6fdbaaca | 7973 | &inptr, &inbytesleft, |
42f767d0 JL |
7974 | &outptr, &outbytesleft); |
7975 | if (res == 0) | |
7976 | result |= 2; | |
7977 | iconv_close (cd_ascii_to_88591); | |
7978 | } | |
7979 | } | |
7980 | /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ | |
7981 | { | |
7982 | iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); | |
7983 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
7984 | { | |
6fdbaaca | 7985 | static ICONV_CONST char input[] = "\304"; |
42f767d0 | 7986 | static char buf[2] = { (char)0xDE, (char)0xAD }; |
6fdbaaca | 7987 | ICONV_CONST char *inptr = input; |
42f767d0 JL |
7988 | size_t inbytesleft = 1; |
7989 | char *outptr = buf; | |
7990 | size_t outbytesleft = 1; | |
7991 | size_t res = iconv (cd_88591_to_utf8, | |
6fdbaaca | 7992 | &inptr, &inbytesleft, |
42f767d0 JL |
7993 | &outptr, &outbytesleft); |
7994 | if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) | |
7995 | result |= 4; | |
7996 | iconv_close (cd_88591_to_utf8); | |
8f223b3e FCE |
7997 | } |
7998 | } | |
8f223b3e FCE |
7999 | #if 0 /* This bug could be worked around by the caller. */ |
8000 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ | |
8001 | { | |
8002 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); | |
8003 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
8004 | { | |
6fdbaaca | 8005 | static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; |
8f223b3e | 8006 | char buf[50]; |
6fdbaaca | 8007 | ICONV_CONST char *inptr = input; |
8f223b3e FCE |
8008 | size_t inbytesleft = strlen (input); |
8009 | char *outptr = buf; | |
8010 | size_t outbytesleft = sizeof (buf); | |
8011 | size_t res = iconv (cd_88591_to_utf8, | |
6fdbaaca | 8012 | &inptr, &inbytesleft, |
8f223b3e FCE |
8013 | &outptr, &outbytesleft); |
8014 | if ((int)res > 0) | |
42f767d0 JL |
8015 | result |= 8; |
8016 | iconv_close (cd_88591_to_utf8); | |
8f223b3e FCE |
8017 | } |
8018 | } | |
8019 | #endif | |
8020 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is | |
8021 | provided. */ | |
8022 | if (/* Try standardized names. */ | |
8023 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) | |
8024 | /* Try IRIX, OSF/1 names. */ | |
8025 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) | |
8026 | /* Try AIX names. */ | |
8027 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) | |
8028 | /* Try HP-UX names. */ | |
8029 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) | |
42f767d0 JL |
8030 | result |= 16; |
8031 | return result; | |
6fdbaaca FCE |
8032 | |
8033 | ; | |
8034 | return 0; | |
8f223b3e | 8035 | } |
2f1a1aea | 8036 | _ACEOF |
8f223b3e FCE |
8037 | if ac_fn_c_try_run "$LINENO"; then : |
8038 | am_cv_func_iconv_works=yes | |
2f1a1aea | 8039 | fi |
8f223b3e FCE |
8040 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
8041 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8042 | fi | |
8043 | ||
6fdbaaca FCE |
8044 | test "$am_cv_func_iconv_works" = no || break |
8045 | done | |
8f223b3e | 8046 | LIBS="$am_save_LIBS" |
2f1a1aea FCE |
8047 | |
8048 | fi | |
8f223b3e FCE |
8049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 |
8050 | $as_echo "$am_cv_func_iconv_works" >&6; } | |
8051 | case "$am_cv_func_iconv_works" in | |
8052 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; | |
8053 | *) am_func_iconv=yes ;; | |
8054 | esac | |
8055 | else | |
8056 | am_func_iconv=no am_cv_lib_iconv=no | |
8057 | fi | |
8058 | if test "$am_func_iconv" = yes; then | |
2f1a1aea | 8059 | |
8f223b3e FCE |
8060 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h |
8061 | ||
8062 | fi | |
8063 | if test "$am_cv_lib_iconv" = yes; then | |
8064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 | |
8065 | $as_echo_n "checking how to link with libiconv... " >&6; } | |
8066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | |
8067 | $as_echo "$LIBICONV" >&6; } | |
8068 | else | |
8069 | CPPFLAGS="$am_save_CPPFLAGS" | |
8070 | LIBICONV= | |
8071 | LTLIBICONV= | |
8072 | fi | |
8073 | ||
8074 | ||
8075 | ||
8076 | ||
8077 | ||
8078 | ||
8079 | ||
8080 | ||
8081 | ||
8082 | ||
8083 | ||
8084 | use_additional=yes | |
8085 | ||
8086 | acl_save_prefix="$prefix" | |
8087 | prefix="$acl_final_prefix" | |
8088 | acl_save_exec_prefix="$exec_prefix" | |
8089 | exec_prefix="$acl_final_exec_prefix" | |
8090 | ||
8091 | eval additional_includedir=\"$includedir\" | |
8092 | eval additional_libdir=\"$libdir\" | |
8093 | ||
8094 | exec_prefix="$acl_save_exec_prefix" | |
8095 | prefix="$acl_save_prefix" | |
8096 | ||
8097 | ||
8098 | # Check whether --with-libintl-prefix was given. | |
8099 | if test "${with_libintl_prefix+set}" = set; then : | |
8100 | withval=$with_libintl_prefix; | |
8101 | if test "X$withval" = "Xno"; then | |
8102 | use_additional=no | |
8103 | else | |
8104 | if test "X$withval" = "X"; then | |
8105 | ||
8106 | acl_save_prefix="$prefix" | |
8107 | prefix="$acl_final_prefix" | |
8108 | acl_save_exec_prefix="$exec_prefix" | |
8109 | exec_prefix="$acl_final_exec_prefix" | |
8110 | ||
8111 | eval additional_includedir=\"$includedir\" | |
8112 | eval additional_libdir=\"$libdir\" | |
8113 | ||
8114 | exec_prefix="$acl_save_exec_prefix" | |
8115 | prefix="$acl_save_prefix" | |
8116 | ||
8117 | else | |
8118 | additional_includedir="$withval/include" | |
8119 | additional_libdir="$withval/$acl_libdirstem" | |
8120 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ | |
8121 | && ! test -d "$withval/$acl_libdirstem"; then | |
8122 | additional_libdir="$withval/$acl_libdirstem2" | |
8123 | fi | |
8124 | fi | |
8125 | fi | |
8126 | ||
8127 | fi | |
8128 | ||
8129 | LIBINTL= | |
8130 | LTLIBINTL= | |
8131 | INCINTL= | |
8132 | LIBINTL_PREFIX= | |
8133 | HAVE_LIBINTL= | |
8134 | rpathdirs= | |
8135 | ltrpathdirs= | |
8136 | names_already_handled= | |
8137 | names_next_round='intl ' | |
8138 | while test -n "$names_next_round"; do | |
8139 | names_this_round="$names_next_round" | |
8140 | names_next_round= | |
8141 | for name in $names_this_round; do | |
8142 | already_handled= | |
8143 | for n in $names_already_handled; do | |
8144 | if test "$n" = "$name"; then | |
8145 | already_handled=yes | |
8146 | break | |
8147 | fi | |
8148 | done | |
8149 | if test -z "$already_handled"; then | |
8150 | names_already_handled="$names_already_handled $name" | |
42f767d0 | 8151 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
8f223b3e FCE |
8152 | eval value=\"\$HAVE_LIB$uppername\" |
8153 | if test -n "$value"; then | |
8154 | if test "$value" = yes; then | |
8155 | eval value=\"\$LIB$uppername\" | |
8156 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" | |
8157 | eval value=\"\$LTLIB$uppername\" | |
8158 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" | |
8159 | else | |
8160 | : | |
8161 | fi | |
8162 | else | |
8163 | found_dir= | |
8164 | found_la= | |
8165 | found_so= | |
8166 | found_a= | |
8167 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | |
8168 | if test -n "$acl_shlibext"; then | |
8169 | shrext=".$acl_shlibext" # typically: shrext=.so | |
8170 | else | |
8171 | shrext= | |
8172 | fi | |
8173 | if test $use_additional = yes; then | |
8174 | dir="$additional_libdir" | |
8175 | if test -n "$acl_shlibext"; then | |
8176 | if test -f "$dir/$libname$shrext"; then | |
8177 | found_dir="$dir" | |
8178 | found_so="$dir/$libname$shrext" | |
8179 | else | |
8180 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
8181 | ver=`(cd "$dir" && \ | |
8182 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
8183 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
8184 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
8185 | | sed 1q ) 2>/dev/null` | |
8186 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
8187 | found_dir="$dir" | |
8188 | found_so="$dir/$libname$shrext.$ver" | |
8189 | fi | |
8190 | else | |
8191 | eval library_names=\"$acl_library_names_spec\" | |
8192 | for f in $library_names; do | |
8193 | if test -f "$dir/$f"; then | |
8194 | found_dir="$dir" | |
8195 | found_so="$dir/$f" | |
8196 | break | |
8197 | fi | |
8198 | done | |
8199 | fi | |
8200 | fi | |
8201 | fi | |
8202 | if test "X$found_dir" = "X"; then | |
8203 | if test -f "$dir/$libname.$acl_libext"; then | |
8204 | found_dir="$dir" | |
8205 | found_a="$dir/$libname.$acl_libext" | |
8206 | fi | |
8207 | fi | |
8208 | if test "X$found_dir" != "X"; then | |
8209 | if test -f "$dir/$libname.la"; then | |
8210 | found_la="$dir/$libname.la" | |
8211 | fi | |
8212 | fi | |
8213 | fi | |
8214 | if test "X$found_dir" = "X"; then | |
8215 | for x in $LDFLAGS $LTLIBINTL; do | |
8216 | ||
8217 | acl_save_prefix="$prefix" | |
8218 | prefix="$acl_final_prefix" | |
8219 | acl_save_exec_prefix="$exec_prefix" | |
8220 | exec_prefix="$acl_final_exec_prefix" | |
8221 | eval x=\"$x\" | |
8222 | exec_prefix="$acl_save_exec_prefix" | |
8223 | prefix="$acl_save_prefix" | |
8224 | ||
8225 | case "$x" in | |
8226 | -L*) | |
8227 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
8228 | if test -n "$acl_shlibext"; then | |
8229 | if test -f "$dir/$libname$shrext"; then | |
8230 | found_dir="$dir" | |
8231 | found_so="$dir/$libname$shrext" | |
8232 | else | |
8233 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
8234 | ver=`(cd "$dir" && \ | |
8235 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
8236 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
8237 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
8238 | | sed 1q ) 2>/dev/null` | |
8239 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
8240 | found_dir="$dir" | |
8241 | found_so="$dir/$libname$shrext.$ver" | |
8242 | fi | |
8243 | else | |
8244 | eval library_names=\"$acl_library_names_spec\" | |
8245 | for f in $library_names; do | |
8246 | if test -f "$dir/$f"; then | |
8247 | found_dir="$dir" | |
8248 | found_so="$dir/$f" | |
8249 | break | |
8250 | fi | |
8251 | done | |
8252 | fi | |
8253 | fi | |
8254 | fi | |
8255 | if test "X$found_dir" = "X"; then | |
8256 | if test -f "$dir/$libname.$acl_libext"; then | |
8257 | found_dir="$dir" | |
8258 | found_a="$dir/$libname.$acl_libext" | |
8259 | fi | |
8260 | fi | |
8261 | if test "X$found_dir" != "X"; then | |
8262 | if test -f "$dir/$libname.la"; then | |
8263 | found_la="$dir/$libname.la" | |
8264 | fi | |
8265 | fi | |
8266 | ;; | |
8267 | esac | |
8268 | if test "X$found_dir" != "X"; then | |
8269 | break | |
8270 | fi | |
8271 | done | |
8272 | fi | |
8273 | if test "X$found_dir" != "X"; then | |
8274 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" | |
8275 | if test "X$found_so" != "X"; then | |
8276 | if test "$enable_rpath" = no \ | |
8277 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ | |
8278 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then | |
8279 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
8280 | else | |
8281 | haveit= | |
8282 | for x in $ltrpathdirs; do | |
8283 | if test "X$x" = "X$found_dir"; then | |
8284 | haveit=yes | |
8285 | break | |
8286 | fi | |
8287 | done | |
8288 | if test -z "$haveit"; then | |
8289 | ltrpathdirs="$ltrpathdirs $found_dir" | |
8290 | fi | |
8291 | if test "$acl_hardcode_direct" = yes; then | |
8292 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
8293 | else | |
8294 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | |
8295 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
8296 | haveit= | |
8297 | for x in $rpathdirs; do | |
8298 | if test "X$x" = "X$found_dir"; then | |
8299 | haveit=yes | |
8300 | break | |
8301 | fi | |
8302 | done | |
8303 | if test -z "$haveit"; then | |
8304 | rpathdirs="$rpathdirs $found_dir" | |
8305 | fi | |
8306 | else | |
8307 | haveit= | |
8308 | for x in $LDFLAGS $LIBINTL; do | |
8309 | ||
8310 | acl_save_prefix="$prefix" | |
8311 | prefix="$acl_final_prefix" | |
8312 | acl_save_exec_prefix="$exec_prefix" | |
8313 | exec_prefix="$acl_final_exec_prefix" | |
8314 | eval x=\"$x\" | |
8315 | exec_prefix="$acl_save_exec_prefix" | |
8316 | prefix="$acl_save_prefix" | |
8317 | ||
8318 | if test "X$x" = "X-L$found_dir"; then | |
8319 | haveit=yes | |
8320 | break | |
8321 | fi | |
8322 | done | |
8323 | if test -z "$haveit"; then | |
8324 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" | |
8325 | fi | |
8326 | if test "$acl_hardcode_minus_L" != no; then | |
8327 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
8328 | else | |
8329 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
8330 | fi | |
8331 | fi | |
8332 | fi | |
8333 | fi | |
8334 | else | |
8335 | if test "X$found_a" != "X"; then | |
8336 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" | |
8337 | else | |
8338 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" | |
8339 | fi | |
8340 | fi | |
8341 | additional_includedir= | |
8342 | case "$found_dir" in | |
8343 | */$acl_libdirstem | */$acl_libdirstem/) | |
8344 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
8345 | if test "$name" = 'intl'; then | |
8346 | LIBINTL_PREFIX="$basedir" | |
8347 | fi | |
8348 | additional_includedir="$basedir/include" | |
8349 | ;; | |
8350 | */$acl_libdirstem2 | */$acl_libdirstem2/) | |
8351 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` | |
8352 | if test "$name" = 'intl'; then | |
8353 | LIBINTL_PREFIX="$basedir" | |
8354 | fi | |
8355 | additional_includedir="$basedir/include" | |
8356 | ;; | |
8357 | esac | |
8358 | if test "X$additional_includedir" != "X"; then | |
8359 | if test "X$additional_includedir" != "X/usr/include"; then | |
8360 | haveit= | |
8361 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
8362 | if test -n "$GCC"; then | |
8363 | case $host_os in | |
8364 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
8365 | esac | |
8366 | fi | |
8367 | fi | |
8368 | if test -z "$haveit"; then | |
8369 | for x in $CPPFLAGS $INCINTL; do | |
8370 | ||
8371 | acl_save_prefix="$prefix" | |
8372 | prefix="$acl_final_prefix" | |
8373 | acl_save_exec_prefix="$exec_prefix" | |
8374 | exec_prefix="$acl_final_exec_prefix" | |
8375 | eval x=\"$x\" | |
8376 | exec_prefix="$acl_save_exec_prefix" | |
8377 | prefix="$acl_save_prefix" | |
8378 | ||
8379 | if test "X$x" = "X-I$additional_includedir"; then | |
8380 | haveit=yes | |
8381 | break | |
8382 | fi | |
8383 | done | |
8384 | if test -z "$haveit"; then | |
8385 | if test -d "$additional_includedir"; then | |
8386 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" | |
8387 | fi | |
8388 | fi | |
8389 | fi | |
8390 | fi | |
8391 | fi | |
8392 | if test -n "$found_la"; then | |
8393 | save_libdir="$libdir" | |
8394 | case "$found_la" in | |
8395 | */* | *\\*) . "$found_la" ;; | |
8396 | *) . "./$found_la" ;; | |
8397 | esac | |
8398 | libdir="$save_libdir" | |
8399 | for dep in $dependency_libs; do | |
8400 | case "$dep" in | |
8401 | -L*) | |
8402 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
8403 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ | |
8404 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then | |
8405 | haveit= | |
8406 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ | |
8407 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then | |
8408 | if test -n "$GCC"; then | |
8409 | case $host_os in | |
8410 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
8411 | esac | |
8412 | fi | |
8413 | fi | |
8414 | if test -z "$haveit"; then | |
8415 | haveit= | |
8416 | for x in $LDFLAGS $LIBINTL; do | |
8417 | ||
8418 | acl_save_prefix="$prefix" | |
8419 | prefix="$acl_final_prefix" | |
8420 | acl_save_exec_prefix="$exec_prefix" | |
8421 | exec_prefix="$acl_final_exec_prefix" | |
8422 | eval x=\"$x\" | |
8423 | exec_prefix="$acl_save_exec_prefix" | |
8424 | prefix="$acl_save_prefix" | |
8425 | ||
8426 | if test "X$x" = "X-L$additional_libdir"; then | |
8427 | haveit=yes | |
8428 | break | |
8429 | fi | |
8430 | done | |
8431 | if test -z "$haveit"; then | |
8432 | if test -d "$additional_libdir"; then | |
8433 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" | |
8434 | fi | |
8435 | fi | |
8436 | haveit= | |
8437 | for x in $LDFLAGS $LTLIBINTL; do | |
8438 | ||
8439 | acl_save_prefix="$prefix" | |
8440 | prefix="$acl_final_prefix" | |
8441 | acl_save_exec_prefix="$exec_prefix" | |
8442 | exec_prefix="$acl_final_exec_prefix" | |
8443 | eval x=\"$x\" | |
8444 | exec_prefix="$acl_save_exec_prefix" | |
8445 | prefix="$acl_save_prefix" | |
8446 | ||
8447 | if test "X$x" = "X-L$additional_libdir"; then | |
8448 | haveit=yes | |
8449 | break | |
8450 | fi | |
8451 | done | |
8452 | if test -z "$haveit"; then | |
8453 | if test -d "$additional_libdir"; then | |
8454 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" | |
8455 | fi | |
8456 | fi | |
8457 | fi | |
8458 | fi | |
8459 | ;; | |
8460 | -R*) | |
8461 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
8462 | if test "$enable_rpath" != no; then | |
8463 | haveit= | |
8464 | for x in $rpathdirs; do | |
8465 | if test "X$x" = "X$dir"; then | |
8466 | haveit=yes | |
8467 | break | |
8468 | fi | |
8469 | done | |
8470 | if test -z "$haveit"; then | |
8471 | rpathdirs="$rpathdirs $dir" | |
8472 | fi | |
8473 | haveit= | |
8474 | for x in $ltrpathdirs; do | |
8475 | if test "X$x" = "X$dir"; then | |
8476 | haveit=yes | |
8477 | break | |
8478 | fi | |
8479 | done | |
8480 | if test -z "$haveit"; then | |
8481 | ltrpathdirs="$ltrpathdirs $dir" | |
8482 | fi | |
8483 | fi | |
8484 | ;; | |
8485 | -l*) | |
8486 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
8487 | ;; | |
8488 | *.la) | |
8489 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
8490 | ;; | |
8491 | *) | |
8492 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" | |
8493 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" | |
8494 | ;; | |
8495 | esac | |
8496 | done | |
8497 | fi | |
8498 | else | |
8499 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
8500 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" | |
8501 | fi | |
8502 | fi | |
8503 | fi | |
8504 | done | |
8505 | done | |
8506 | if test "X$rpathdirs" != "X"; then | |
8507 | if test -n "$acl_hardcode_libdir_separator"; then | |
8508 | alldirs= | |
8509 | for found_dir in $rpathdirs; do | |
8510 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | |
8511 | done | |
8512 | acl_save_libdir="$libdir" | |
8513 | libdir="$alldirs" | |
8514 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
8515 | libdir="$acl_save_libdir" | |
8516 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
8517 | else | |
8518 | for found_dir in $rpathdirs; do | |
8519 | acl_save_libdir="$libdir" | |
8520 | libdir="$found_dir" | |
8521 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
8522 | libdir="$acl_save_libdir" | |
8523 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
8524 | done | |
8525 | fi | |
8526 | fi | |
8527 | if test "X$ltrpathdirs" != "X"; then | |
8528 | for found_dir in $ltrpathdirs; do | |
8529 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" | |
8530 | done | |
8531 | fi | |
8532 | ||
8533 | ||
8534 | ||
8535 | ||
8536 | ||
8537 | ||
8538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 | |
8539 | $as_echo_n "checking for GNU gettext in libintl... " >&6; } | |
c3de29bd | 8540 | if eval \${$gt_func_gnugettext_libintl+:} false; then : |
8f223b3e | 8541 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 8542 | else |
8f223b3e FCE |
8543 | gt_save_CPPFLAGS="$CPPFLAGS" |
8544 | CPPFLAGS="$CPPFLAGS $INCINTL" | |
8545 | gt_save_LIBS="$LIBS" | |
8546 | LIBS="$LIBS $LIBINTL" | |
8547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2f1a1aea | 8548 | /* end confdefs.h. */ |
42f767d0 | 8549 | |
8f223b3e FCE |
8550 | #include <libintl.h> |
8551 | $gt_revision_test_code | |
8552 | extern int _nl_msg_cat_cntr; | |
8553 | extern | |
8554 | #ifdef __cplusplus | |
8555 | "C" | |
2f1a1aea | 8556 | #endif |
8f223b3e | 8557 | const char *_nl_expand_alias (const char *); |
42f767d0 | 8558 | |
2f1a1aea FCE |
8559 | int |
8560 | main () | |
8561 | { | |
42f767d0 | 8562 | |
8f223b3e FCE |
8563 | bindtextdomain ("", ""); |
8564 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") | |
42f767d0 | 8565 | |
8f223b3e | 8566 | ; |
7fbd9d09 | 8567 | return 0; |
2f1a1aea FCE |
8568 | } |
8569 | _ACEOF | |
8f223b3e FCE |
8570 | if ac_fn_c_try_link "$LINENO"; then : |
8571 | eval "$gt_func_gnugettext_libintl=yes" | |
1ef0423a | 8572 | else |
8f223b3e | 8573 | eval "$gt_func_gnugettext_libintl=no" |
412e1bf7 | 8574 | fi |
8f223b3e FCE |
8575 | rm -f core conftest.err conftest.$ac_objext \ |
8576 | conftest$ac_exeext conftest.$ac_ext | |
8577 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then | |
8578 | LIBS="$LIBS $LIBICONV" | |
8579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8580 | /* end confdefs.h. */ | |
42f767d0 | 8581 | |
8f223b3e FCE |
8582 | #include <libintl.h> |
8583 | $gt_revision_test_code | |
8584 | extern int _nl_msg_cat_cntr; | |
8585 | extern | |
8586 | #ifdef __cplusplus | |
8587 | "C" | |
8588 | #endif | |
8589 | const char *_nl_expand_alias (const char *); | |
42f767d0 | 8590 | |
8f223b3e FCE |
8591 | int |
8592 | main () | |
8593 | { | |
42f767d0 | 8594 | |
8f223b3e FCE |
8595 | bindtextdomain ("", ""); |
8596 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") | |
42f767d0 | 8597 | |
8f223b3e FCE |
8598 | ; |
8599 | return 0; | |
8600 | } | |
8601 | _ACEOF | |
8602 | if ac_fn_c_try_link "$LINENO"; then : | |
8603 | LIBINTL="$LIBINTL $LIBICONV" | |
42f767d0 JL |
8604 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
8605 | eval "$gt_func_gnugettext_libintl=yes" | |
412e1bf7 | 8606 | |
412e1bf7 | 8607 | fi |
8f223b3e FCE |
8608 | rm -f core conftest.err conftest.$ac_objext \ |
8609 | conftest$ac_exeext conftest.$ac_ext | |
8610 | fi | |
8611 | CPPFLAGS="$gt_save_CPPFLAGS" | |
8612 | LIBS="$gt_save_LIBS" | |
412e1bf7 | 8613 | fi |
8f223b3e FCE |
8614 | eval ac_res=\$$gt_func_gnugettext_libintl |
8615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
8616 | $as_echo "$ac_res" >&6; } | |
8617 | fi | |
412e1bf7 | 8618 | |
8f223b3e FCE |
8619 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ |
8620 | || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ | |
8621 | && test "$PACKAGE" != gettext-runtime \ | |
8622 | && test "$PACKAGE" != gettext-tools; }; then | |
8623 | gt_use_preinstalled_gnugettext=yes | |
8624 | else | |
8625 | LIBINTL= | |
8626 | LTLIBINTL= | |
8627 | INCINTL= | |
8628 | fi | |
412e1bf7 | 8629 | |
412e1bf7 | 8630 | |
2f1a1aea | 8631 | |
8f223b3e FCE |
8632 | if test -n "$INTL_MACOSX_LIBS"; then |
8633 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | |
8634 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
8635 | LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" | |
8636 | LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" | |
8637 | fi | |
8638 | fi | |
2f1a1aea | 8639 | |
8f223b3e FCE |
8640 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
8641 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
2f1a1aea | 8642 | |
8f223b3e | 8643 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
2f1a1aea | 8644 | |
8f223b3e FCE |
8645 | else |
8646 | USE_NLS=no | |
8647 | fi | |
8648 | fi | |
2f1a1aea | 8649 | |
8f223b3e FCE |
8650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 |
8651 | $as_echo_n "checking whether to use NLS... " >&6; } | |
8652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
8653 | $as_echo "$USE_NLS" >&6; } | |
8654 | if test "$USE_NLS" = "yes"; then | |
8655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 | |
8656 | $as_echo_n "checking where the gettext function comes from... " >&6; } | |
8657 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | |
8658 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then | |
8659 | gt_source="external libintl" | |
8660 | else | |
8661 | gt_source="libc" | |
8662 | fi | |
8663 | else | |
8664 | gt_source="included intl directory" | |
8665 | fi | |
8666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 | |
8667 | $as_echo "$gt_source" >&6; } | |
8668 | fi | |
2f1a1aea | 8669 | |
8f223b3e FCE |
8670 | if test "$USE_NLS" = "yes"; then |
8671 | ||
8672 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | |
8673 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then | |
8674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 | |
8675 | $as_echo_n "checking how to link with libintl... " >&6; } | |
8676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 | |
8677 | $as_echo "$LIBINTL" >&6; } | |
8678 | ||
8679 | for element in $INCINTL; do | |
8680 | haveit= | |
8681 | for x in $CPPFLAGS; do | |
8682 | ||
8683 | acl_save_prefix="$prefix" | |
8684 | prefix="$acl_final_prefix" | |
8685 | acl_save_exec_prefix="$exec_prefix" | |
8686 | exec_prefix="$acl_final_exec_prefix" | |
8687 | eval x=\"$x\" | |
8688 | exec_prefix="$acl_save_exec_prefix" | |
8689 | prefix="$acl_save_prefix" | |
8690 | ||
8691 | if test "X$x" = "X$element"; then | |
8692 | haveit=yes | |
8693 | break | |
8694 | fi | |
8695 | done | |
8696 | if test -z "$haveit"; then | |
8697 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
8698 | fi | |
8699 | done | |
412e1bf7 | 8700 | |
8f223b3e | 8701 | fi |
412e1bf7 | 8702 | |
5e5aee9f | 8703 | |
8f223b3e | 8704 | $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h |
5e5aee9f | 8705 | |
2f1a1aea | 8706 | |
8f223b3e | 8707 | $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h |
2f1a1aea | 8708 | |
8f223b3e | 8709 | fi |
7fbd9d09 | 8710 | |
8f223b3e | 8711 | POSUB=po |
2f1a1aea | 8712 | fi |
2f1a1aea | 8713 | |
2f1a1aea | 8714 | |
2f1a1aea | 8715 | |
8f223b3e | 8716 | INTLLIBS="$LIBINTL" |
2f1a1aea FCE |
8717 | |
8718 | ||
2f1a1aea | 8719 | |
2f1a1aea FCE |
8720 | |
8721 | ||
8722 | ||
8723 | ||
e04a4b41 | 8724 | |
e5d623b1 DS |
8725 | if test "x$GMSGFMT" = "x:"; then |
8726 | as_fn_error $? "missing gnu /usr/bin/msgfmt" "$LINENO" 5 | |
8727 | fi | |
c16501a1 | 8728 | |
e5d623b1 DS |
8729 | # We want the 'PYTHON' varible to be python version 2. We also want |
8730 | # our custom 'PYTHON3' varible to be python version 3. | |
8731 | # | |
bcec8a9d DS |
8732 | # Note that the python2/python3 code was inspired by code in the |
8733 | # 'abrt' configure: | |
8734 | # <https://github.com/abrt/abrt/blob/master/configure.ac> | |
8735 | # | |
e5d623b1 DS |
8736 | # First, figure out what version of python is in the executable named |
8737 | # 'python'. On most systems that is python version 2, but on arch | |
8738 | # linux that is python version 3. | |
8739 | # Extract the first word of "python", so it can be a program name with args. | |
8740 | set dummy python; ac_word=$2 | |
8741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8742 | $as_echo_n "checking for $ac_word... " >&6; } | |
8743 | if ${ac_cv_path_PYTHON_UNKNOWN+:} false; then : | |
8744 | $as_echo_n "(cached) " >&6 | |
8745 | else | |
8746 | case $PYTHON_UNKNOWN in | |
8747 | [\\/]* | ?:[\\/]*) | |
8748 | ac_cv_path_PYTHON_UNKNOWN="$PYTHON_UNKNOWN" # Let the user override the test with a path. | |
8749 | ;; | |
8750 | *) | |
8751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8752 | for as_dir in $PATH | |
8753 | do | |
8754 | IFS=$as_save_IFS | |
8755 | test -z "$as_dir" && as_dir=. | |
8756 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8757 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8758 | ac_cv_path_PYTHON_UNKNOWN="$as_dir/$ac_word$ac_exec_ext" | |
8759 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8760 | break 2 | |
8761 | fi | |
8762 | done | |
8763 | done | |
8764 | IFS=$as_save_IFS | |
8765 | ||
8766 | test -z "$ac_cv_path_PYTHON_UNKNOWN" && ac_cv_path_PYTHON_UNKNOWN="no" | |
8767 | ;; | |
8768 | esac | |
8769 | fi | |
8770 | PYTHON_UNKNOWN=$ac_cv_path_PYTHON_UNKNOWN | |
8771 | if test -n "$PYTHON_UNKNOWN"; then | |
8772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_UNKNOWN" >&5 | |
8773 | $as_echo "$PYTHON_UNKNOWN" >&6; } | |
8774 | else | |
8775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8776 | $as_echo "no" >&6; } | |
8777 | fi | |
c16501a1 DS |
8778 | |
8779 | ||
e5d623b1 DS |
8780 | if test "x$PYTHON_UNKNOWN" != "xno"; then |
8781 | # OK, we found 'python'. What version is it? | |
8782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON_UNKNOWN is version 2 or 3" >&5 | |
8783 | $as_echo_n "checking whether $PYTHON_UNKNOWN is version 2 or 3... " >&6; } | |
8784 | if ${ac_cv_python_unknown_version+:} false; then : | |
8785 | $as_echo_n "(cached) " >&6 | |
8786 | else | |
8787 | ac_cv_python_unknown_version=`$PYTHON_UNKNOWN -c "import sys; sys.stdout.write(sys.version[:3][0])"` | |
8788 | fi | |
8789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_unknown_version" >&5 | |
8790 | $as_echo "$ac_cv_python_unknown_version" >&6; } | |
8791 | fi | |
c16501a1 | 8792 | |
e5d623b1 DS |
8793 | # Now we'll update the _AM_PYTHON_INTERPRETER_LIST variable (which |
8794 | # AM_PATH_PYTHON uses) to only be version 2 versions of python. Note | |
8795 | # that the m4_define happens when autoconf is run, but the | |
8796 | # FIRST_PYTHON_INTERPRETER variable expansion will happen when the | |
8797 | # user runs configure. | |
8798 | if test "x$PYTHON_UNKNOWN" != "xno" -a "x$ac_cv_python_unknown_version" = "x2"; then | |
8799 | FIRST_PYTHON_INTERPRETER=python | |
8800 | else | |
8801 | FIRST_PYTHON_INTERPRETER=python2 | |
8802 | fi | |
c16501a1 | 8803 | |
e5d623b1 DS |
8804 | |
8805 | # Now we can call AM_PATH_PYTHON to find python version 2.6+ (and | |
8806 | # version 2 only). | |
8807 | ||
8808 | ||
8809 | ||
8810 | ||
8811 | ||
8812 | ||
8813 | if test -n "$PYTHON"; then | |
8814 | # If the user set $PYTHON, use it and don't search something else. | |
8815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.6" >&5 | |
8816 | $as_echo_n "checking whether $PYTHON version is >= 2.6... " >&6; } | |
8817 | prog="import sys | |
8818 | # split strings by '.' and convert to numeric. Append some zeros | |
8819 | # because we need at least 4 digits for the hex conversion. | |
8820 | # map returns an iterator in Python 3.0 and a list in 2.x | |
8821 | minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0] | |
8822 | minverhex = 0 | |
8823 | # xrange is not present in Python 3.0 and range returns an iterator | |
8824 | for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] | |
8825 | sys.exit(sys.hexversion < minverhex)" | |
8826 | if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 | |
8827 | ($PYTHON -c "$prog") >&5 2>&5 | |
8828 | ac_status=$? | |
8829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8830 | (exit $ac_status); }; then : | |
8831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8832 | $as_echo "yes" >&6; } | |
8833 | else | |
8834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8835 | $as_echo "no" >&6; } | |
8836 | as_fn_error $? "Python interpreter is too old" "$LINENO" 5 | |
8837 | fi | |
8838 | am_display_PYTHON=$PYTHON | |
8839 | else | |
8840 | # Otherwise, try each interpreter until we find one that satisfies | |
8841 | # VERSION. | |
8842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5 | |
8843 | $as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; } | |
8844 | if ${am_cv_pathless_PYTHON+:} false; then : | |
8845 | $as_echo_n "(cached) " >&6 | |
8846 | else | |
8847 | ||
8848 | for am_cv_pathless_PYTHON in $FIRST_PYTHON_INTERPRETER python2 python2.7 python2.6 none; do | |
8849 | test "$am_cv_pathless_PYTHON" = none && break | |
8850 | prog="import sys | |
8851 | # split strings by '.' and convert to numeric. Append some zeros | |
8852 | # because we need at least 4 digits for the hex conversion. | |
8853 | # map returns an iterator in Python 3.0 and a list in 2.x | |
8854 | minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0] | |
8855 | minverhex = 0 | |
8856 | # xrange is not present in Python 3.0 and range returns an iterator | |
8857 | for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] | |
8858 | sys.exit(sys.hexversion < minverhex)" | |
8859 | if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5 | |
8860 | ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5 | |
8861 | ac_status=$? | |
8862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8863 | (exit $ac_status); }; then : | |
8864 | break | |
8865 | fi | |
8866 | done | |
8867 | fi | |
8868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5 | |
8869 | $as_echo "$am_cv_pathless_PYTHON" >&6; } | |
8870 | # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. | |
8871 | if test "$am_cv_pathless_PYTHON" = none; then | |
8872 | PYTHON=: | |
8873 | else | |
8874 | # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args. | |
8875 | set dummy $am_cv_pathless_PYTHON; ac_word=$2 | |
c16501a1 DS |
8876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8877 | $as_echo_n "checking for $ac_word... " >&6; } | |
8878 | if ${ac_cv_path_PYTHON+:} false; then : | |
8879 | $as_echo_n "(cached) " >&6 | |
8880 | else | |
8881 | case $PYTHON in | |
8882 | [\\/]* | ?:[\\/]*) | |
8883 | ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. | |
8884 | ;; | |
8885 | *) | |
8886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8887 | for as_dir in $PATH | |
8888 | do | |
8889 | IFS=$as_save_IFS | |
8890 | test -z "$as_dir" && as_dir=. | |
8891 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8892 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8893 | ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" | |
8894 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8895 | break 2 | |
8896 | fi | |
8897 | done | |
8898 | done | |
8899 | IFS=$as_save_IFS | |
8900 | ||
8901 | ;; | |
8902 | esac | |
8903 | fi | |
8904 | PYTHON=$ac_cv_path_PYTHON | |
8905 | if test -n "$PYTHON"; then | |
8906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 | |
8907 | $as_echo "$PYTHON" >&6; } | |
8908 | else | |
8909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8910 | $as_echo "no" >&6; } | |
8911 | fi | |
8912 | ||
8913 | ||
e5d623b1 DS |
8914 | fi |
8915 | am_display_PYTHON=$am_cv_pathless_PYTHON | |
c16501a1 | 8916 | fi |
c16501a1 DS |
8917 | |
8918 | ||
8919 | if test "$PYTHON" = :; then | |
e5d623b1 | 8920 | : |
c16501a1 DS |
8921 | else |
8922 | ||
8923 | ||
8924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 | |
8925 | $as_echo_n "checking for $am_display_PYTHON version... " >&6; } | |
8926 | if ${am_cv_python_version+:} false; then : | |
8927 | $as_echo_n "(cached) " >&6 | |
8928 | else | |
8929 | am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"` | |
8930 | fi | |
8931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 | |
8932 | $as_echo "$am_cv_python_version" >&6; } | |
8933 | PYTHON_VERSION=$am_cv_python_version | |
8934 | ||
8935 | ||
8936 | ||
8937 | PYTHON_PREFIX='${prefix}' | |
8938 | ||
8939 | PYTHON_EXEC_PREFIX='${exec_prefix}' | |
8940 | ||
8941 | ||
8942 | ||
8943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 | |
8944 | $as_echo_n "checking for $am_display_PYTHON platform... " >&6; } | |
8945 | if ${am_cv_python_platform+:} false; then : | |
8946 | $as_echo_n "(cached) " >&6 | |
8947 | else | |
8948 | am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` | |
8949 | fi | |
8950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 | |
8951 | $as_echo "$am_cv_python_platform" >&6; } | |
8952 | PYTHON_PLATFORM=$am_cv_python_platform | |
8953 | ||
8954 | ||
8955 | # Just factor out some code duplication. | |
8956 | am_python_setup_sysconfig="\ | |
8957 | import sys | |
8958 | # Prefer sysconfig over distutils.sysconfig, for better compatibility | |
8959 | # with python 3.x. See automake bug#10227. | |
8960 | try: | |
8961 | import sysconfig | |
8962 | except ImportError: | |
8963 | can_use_sysconfig = 0 | |
8964 | else: | |
8965 | can_use_sysconfig = 1 | |
8966 | # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: | |
8967 | # <https://github.com/pypa/virtualenv/issues/118> | |
8968 | try: | |
8969 | from platform import python_implementation | |
8970 | if python_implementation() == 'CPython' and sys.version[:3] == '2.7': | |
8971 | can_use_sysconfig = 0 | |
8972 | except ImportError: | |
8973 | pass" | |
8974 | ||
8975 | ||
8976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5 | |
8977 | $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; } | |
8978 | if ${am_cv_python_pythondir+:} false; then : | |
8979 | $as_echo_n "(cached) " >&6 | |
8980 | else | |
8981 | if test "x$prefix" = xNONE | |
8982 | then | |
8983 | am_py_prefix=$ac_default_prefix | |
8984 | else | |
8985 | am_py_prefix=$prefix | |
8986 | fi | |
8987 | am_cv_python_pythondir=`$PYTHON -c " | |
8988 | $am_python_setup_sysconfig | |
8989 | if can_use_sysconfig: | |
8990 | sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) | |
8991 | else: | |
8992 | from distutils import sysconfig | |
8993 | sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') | |
8994 | sys.stdout.write(sitedir)"` | |
8995 | case $am_cv_python_pythondir in | |
8996 | $am_py_prefix*) | |
8997 | am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` | |
8998 | am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"` | |
8999 | ;; | |
9000 | *) | |
9001 | case $am_py_prefix in | |
9002 | /usr|/System*) ;; | |
9003 | *) | |
9004 | am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages | |
9005 | ;; | |
9006 | esac | |
9007 | ;; | |
9008 | esac | |
9009 | ||
9010 | fi | |
9011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 | |
9012 | $as_echo "$am_cv_python_pythondir" >&6; } | |
9013 | pythondir=$am_cv_python_pythondir | |
9014 | ||
9015 | ||
9016 | ||
9017 | pkgpythondir=\${pythondir}/$PACKAGE | |
9018 | ||
9019 | ||
9020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5 | |
9021 | $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; } | |
9022 | if ${am_cv_python_pyexecdir+:} false; then : | |
9023 | $as_echo_n "(cached) " >&6 | |
9024 | else | |
9025 | if test "x$exec_prefix" = xNONE | |
9026 | then | |
9027 | am_py_exec_prefix=$am_py_prefix | |
9028 | else | |
9029 | am_py_exec_prefix=$exec_prefix | |
9030 | fi | |
9031 | am_cv_python_pyexecdir=`$PYTHON -c " | |
9032 | $am_python_setup_sysconfig | |
9033 | if can_use_sysconfig: | |
9034 | sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'}) | |
9035 | else: | |
9036 | from distutils import sysconfig | |
9037 | sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix') | |
9038 | sys.stdout.write(sitedir)"` | |
9039 | case $am_cv_python_pyexecdir in | |
9040 | $am_py_exec_prefix*) | |
9041 | am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` | |
9042 | am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"` | |
9043 | ;; | |
9044 | *) | |
9045 | case $am_py_exec_prefix in | |
9046 | /usr|/System*) ;; | |
9047 | *) | |
9048 | am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages | |
9049 | ;; | |
9050 | esac | |
9051 | ;; | |
9052 | esac | |
9053 | ||
9054 | fi | |
9055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 | |
9056 | $as_echo "$am_cv_python_pyexecdir" >&6; } | |
9057 | pyexecdir=$am_cv_python_pyexecdir | |
9058 | ||
9059 | ||
9060 | ||
9061 | pkgpyexecdir=\${pyexecdir}/$PACKAGE | |
9062 | ||
9063 | ||
9064 | ||
9065 | fi | |
9066 | ||
9067 | ||
dd9af8b3 DS |
9068 | python_basename=$(basename "$PYTHON") |
9069 | ||
9070 | cat >>confdefs.h <<_ACEOF | |
9071 | #define PYTHON_BASENAME "${python_basename}" | |
9072 | _ACEOF | |
9073 | ||
e01cd0ba DS |
9074 | # AM_PATH_PYTHON defines 'pyexecdir'. Make sure the python and |
9075 | # pyexecdir variables get sent down to the subconfigure in the | |
9076 | # testsuite directory. | |
9077 | as_fn_append ac_configure_args " python='$PYTHON' pyexecdir='$pyexecdir'" | |
c16501a1 | 9078 | |
e5d623b1 DS |
9079 | # Now let's try to find python version 3. |
9080 | if test "x$PYTHON_UNKNOWN" != "xno" -a "x$python_unknown_version" = "x3"; then | |
9081 | # Extract the first word of "python", so it can be a program name with args. | |
9082 | set dummy python; ac_word=$2 | |
9083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9084 | $as_echo_n "checking for $ac_word... " >&6; } | |
9085 | if ${ac_cv_path_PYTHON3+:} false; then : | |
9086 | $as_echo_n "(cached) " >&6 | |
9087 | else | |
9088 | case $PYTHON3 in | |
9089 | [\\/]* | ?:[\\/]*) | |
9090 | ac_cv_path_PYTHON3="$PYTHON3" # Let the user override the test with a path. | |
9091 | ;; | |
9092 | *) | |
9093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9094 | for as_dir in $PATH | |
9095 | do | |
9096 | IFS=$as_save_IFS | |
9097 | test -z "$as_dir" && as_dir=. | |
9098 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9099 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9100 | ac_cv_path_PYTHON3="$as_dir/$ac_word$ac_exec_ext" | |
9101 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9102 | break 2 | |
9103 | fi | |
9104 | done | |
9105 | done | |
9106 | IFS=$as_save_IFS | |
9107 | ||
9108 | ;; | |
9109 | esac | |
9110 | fi | |
9111 | PYTHON3=$ac_cv_path_PYTHON3 | |
9112 | if test -n "$PYTHON3"; then | |
9113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5 | |
9114 | $as_echo "$PYTHON3" >&6; } | |
9115 | else | |
9116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9117 | $as_echo "no" >&6; } | |
9118 | fi | |
9119 | ||
9120 | ||
9121 | else | |
9122 | for ac_prog in python3 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 | |
9123 | do | |
9124 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9125 | set dummy $ac_prog; ac_word=$2 | |
9126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9127 | $as_echo_n "checking for $ac_word... " >&6; } | |
9128 | if ${ac_cv_path_PYTHON3+:} false; then : | |
9129 | $as_echo_n "(cached) " >&6 | |
9130 | else | |
9131 | case $PYTHON3 in | |
9132 | [\\/]* | ?:[\\/]*) | |
9133 | ac_cv_path_PYTHON3="$PYTHON3" # Let the user override the test with a path. | |
9134 | ;; | |
9135 | *) | |
9136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9137 | for as_dir in $PATH | |
9138 | do | |
9139 | IFS=$as_save_IFS | |
9140 | test -z "$as_dir" && as_dir=. | |
9141 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9142 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9143 | ac_cv_path_PYTHON3="$as_dir/$ac_word$ac_exec_ext" | |
9144 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9145 | break 2 | |
9146 | fi | |
9147 | done | |
9148 | done | |
9149 | IFS=$as_save_IFS | |
9150 | ||
9151 | ;; | |
9152 | esac | |
9153 | fi | |
9154 | PYTHON3=$ac_cv_path_PYTHON3 | |
9155 | if test -n "$PYTHON3"; then | |
9156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5 | |
9157 | $as_echo "$PYTHON3" >&6; } | |
9158 | else | |
9159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9160 | $as_echo "no" >&6; } | |
9161 | fi | |
9162 | ||
9163 | ||
9164 | test -n "$PYTHON3" && break | |
9165 | done | |
9166 | ||
9167 | fi | |
dd9af8b3 DS |
9168 | python3_basename=$(basename "$PYTHON3") |
9169 | ||
9170 | cat >>confdefs.h <<_ACEOF | |
9171 | #define PYTHON3_BASENAME "${python3_basename}" | |
9172 | _ACEOF | |
9173 | ||
e5d623b1 DS |
9174 | |
9175 | # If we found python version 3, set up the other variables for python | |
9176 | # version 3 that AM_PATH_PYTHON sets up for python version 2. | |
9177 | if test -n "$PYTHON3"; then | |
9178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python3 version" >&5 | |
9179 | $as_echo_n "checking for python3 version... " >&6; } | |
9180 | if ${ac_cv_python3_version+:} false; then : | |
9181 | $as_echo_n "(cached) " >&6 | |
9182 | else | |
9183 | ac_cv_python3_version=`$PYTHON3 -c "import sys; sys.stdout.write(sys.version[:3])"` | |
9184 | fi | |
9185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python3_version" >&5 | |
9186 | $as_echo "$ac_cv_python3_version" >&6; } | |
d7f07c29 | 9187 | PYTHON3_VERSION=$ac_cv_python3_version |
e5d623b1 DS |
9188 | |
9189 | PYTHON3_PREFIX='${prefix}' | |
9190 | ||
9191 | PYTHON3_EXEC_PREFIX='${exec_prefix}' | |
9192 | ||
9193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python3 platform" >&5 | |
9194 | $as_echo_n "checking for python3 platform... " >&6; } | |
9195 | if ${ac_cv_python3_platform+:} false; then : | |
9196 | $as_echo_n "(cached) " >&6 | |
9197 | else | |
9198 | ac_cv_python3_platform=`$PYTHON3 -c "import sys; sys.stdout.write(sys.platform)"` | |
9199 | fi | |
9200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python3_platform" >&5 | |
9201 | $as_echo "$ac_cv_python3_platform" >&6; } | |
9202 | PYTHON3_PLATFORM=$ac_cv_python3_platform | |
9203 | ||
9204 | ||
9205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python3 script directory" >&5 | |
9206 | $as_echo_n "checking for python3 script directory... " >&6; } | |
9207 | if ${ac_cv_python3_dir+:} false; then : | |
9208 | $as_echo_n "(cached) " >&6 | |
9209 | else | |
9210 | ac_cv_python3_dir=`$PYTHON3 -c "import distutils.sysconfig; print(distutils.sysconfig.get_python_lib(0,0,prefix='$PYTHON3_PREFIX'))"` | |
9211 | fi | |
9212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python3_dir" >&5 | |
9213 | $as_echo "$ac_cv_python3_dir" >&6; } | |
e6effc54 | 9214 | python3dir=$ac_cv_python3_dir |
e5d623b1 DS |
9215 | |
9216 | ||
9217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python3 extension module directory" >&5 | |
9218 | $as_echo_n "checking for python3 extension module directory... " >&6; } | |
9219 | if ${ac_cv_py3execdir+:} false; then : | |
9220 | $as_echo_n "(cached) " >&6 | |
9221 | else | |
9222 | ac_cv_py3execdir=`$PYTHON3 -c "import distutils.sysconfig; print(distutils.sysconfig.get_python_lib(1,0,prefix='$PYTHON3_EXEC_PREFIX'))"` | |
9223 | fi | |
9224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_py3execdir" >&5 | |
9225 | $as_echo "$ac_cv_py3execdir" >&6; } | |
e6effc54 | 9226 | py3execdir=$ac_cv_py3execdir |
e5d623b1 | 9227 | |
e01cd0ba DS |
9228 | |
9229 | # Make sure the python3 and py3execdir variables get sent down to | |
9230 | # the subconfigure in the testsuite directory. | |
9231 | as_fn_append ac_configure_args " python3='$PYTHON3' py3execdir='$ac_cv_py3execdir'" | |
e04a4b41 | 9232 | fi |
caf6872d | 9233 | |
70d28673 | 9234 | if test "${enable_prologues+set}" != set; then |
1ef0423a | 9235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if prologue searching should be the default" >&5 |
0710d850 | 9236 | $as_echo_n "checking to see if prologue searching should be the default... " >&6; } |
70d28673 DS |
9237 | if { echo '#if __i386__ == 1 && __GNUC__ < 4' |
9238 | echo ' yes ' | |
9239 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
9240 | enable_prologues=yes | |
1ef0423a | 9241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
0710d850 | 9242 | $as_echo "yes" >&6; } |
70d28673 | 9243 | else |
1ef0423a | 9244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 9245 | $as_echo "no" >&6; } |
70d28673 DS |
9246 | fi |
9247 | fi | |
7fbd9d09 | 9248 | # Check whether --enable-prologues was given. |
1ef0423a | 9249 | if test "${enable_prologues+set}" = set; then : |
7fbd9d09 | 9250 | enableval=$enable_prologues; |
70d28673 | 9251 | if test "$enable_prologues" = yes; then |
44f75386 | 9252 | |
1ef0423a | 9253 | $as_echo "#define ENABLE_PROLOGUES /**/" >>confdefs.h |
44f75386 | 9254 | |
70d28673 | 9255 | fi |
7fbd9d09 | 9256 | fi |
70d28673 | 9257 | |
7fbd9d09 | 9258 | |
e1bfefdc SC |
9259 | |
9260 | if test "${enable_sdt_probes+set}" != set; then | |
9261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if sdt probes should be the default" >&5 | |
9262 | $as_echo_n "checking to see if sdt probes should be the default... " >&6; } | |
9263 | if { echo '#if __GNUC__ < 4' | |
9264 | echo ' yes ' | |
9265 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
8b714d4b | 9266 | enable_sdt_probes=no |
e1bfefdc SC |
9267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9268 | $as_echo "no" >&6; } | |
9269 | else | |
9270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9271 | $as_echo "yes" >&6; } | |
9272 | fi | |
9273 | fi | |
0f5d597d JS |
9274 | # Check whether --enable-sdt-probes was given. |
9275 | if test "${enable_sdt_probes+set}" = set; then : | |
9276 | enableval=$enable_sdt_probes; | |
9277 | fi | |
9278 | ||
9279 | if test "x$enable_sdt_probes" != xno; then : | |
9280 | ||
9281 | ||
9282 | $as_echo "#define ENABLE_SDT_PROBES 1" >>confdefs.h | |
9283 | ||
9284 | ||
f5852d3a JS |
9285 | fi |
9286 | ||
9287 | ||
9288 | ax_cxx_compile_cxx11_required=false | |
9289 | ac_ext=cpp | |
9290 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9291 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9292 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9293 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
9294 | ac_success=no | |
9295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 | |
9296 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | |
9297 | if ${ax_cv_cxx_compile_cxx11+:} false; then : | |
9298 | $as_echo_n "(cached) " >&6 | |
9299 | else | |
9300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9301 | /* end confdefs.h. */ | |
9302 | ||
9303 | ||
9304 | // If the compiler admits that it is not ready for C++11, why torture it? | |
9305 | // Hopefully, this will speed up the test. | |
9306 | ||
9307 | #ifndef __cplusplus | |
9308 | ||
9309 | #error "This is not a C++ compiler" | |
9310 | ||
9311 | #elif __cplusplus < 201103L | |
9312 | ||
9313 | #error "This is not a C++11 compiler" | |
9314 | ||
9315 | #else | |
9316 | ||
9317 | namespace cxx11 | |
9318 | { | |
9319 | ||
9320 | namespace test_static_assert | |
9321 | { | |
9322 | ||
9323 | template <typename T> | |
9324 | struct check | |
9325 | { | |
9326 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
9327 | }; | |
9328 | ||
9329 | } | |
9330 | ||
9331 | namespace test_final_override | |
9332 | { | |
9333 | ||
9334 | struct Base | |
9335 | { | |
9336 | virtual void f() {} | |
9337 | }; | |
9338 | ||
9339 | struct Derived : public Base | |
9340 | { | |
9341 | virtual void f() override {} | |
9342 | }; | |
9343 | ||
9344 | } | |
9345 | ||
9346 | namespace test_double_right_angle_brackets | |
9347 | { | |
9348 | ||
9349 | template < typename T > | |
9350 | struct check {}; | |
9351 | ||
9352 | typedef check<void> single_type; | |
9353 | typedef check<check<void>> double_type; | |
9354 | typedef check<check<check<void>>> triple_type; | |
9355 | typedef check<check<check<check<void>>>> quadruple_type; | |
9356 | ||
9357 | } | |
9358 | ||
9359 | namespace test_decltype | |
9360 | { | |
9361 | ||
9362 | int | |
9363 | f() | |
9364 | { | |
9365 | int a = 1; | |
9366 | decltype(a) b = 2; | |
9367 | return a + b; | |
9368 | } | |
9369 | ||
9370 | } | |
9371 | ||
9372 | namespace test_type_deduction | |
9373 | { | |
9374 | ||
9375 | template < typename T1, typename T2 > | |
9376 | struct is_same | |
9377 | { | |
9378 | static const bool value = false; | |
9379 | }; | |
9380 | ||
9381 | template < typename T > | |
9382 | struct is_same<T, T> | |
9383 | { | |
9384 | static const bool value = true; | |
9385 | }; | |
9386 | ||
9387 | template < typename T1, typename T2 > | |
9388 | auto | |
9389 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
9390 | { | |
9391 | return a1 + a2; | |
9392 | } | |
9393 | ||
9394 | int | |
9395 | test(const int c, volatile int v) | |
9396 | { | |
9397 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
9398 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
9399 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
9400 | auto ac = c; | |
9401 | auto av = v; | |
9402 | auto sumi = ac + av + 'x'; | |
9403 | auto sumf = ac + av + 1.0; | |
9404 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
9405 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
9406 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
9407 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
9408 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
9409 | return (sumf > 0.0) ? sumi : add(c, v); | |
9410 | } | |
9411 | ||
9412 | } | |
9413 | ||
9414 | namespace test_noexcept | |
9415 | { | |
9416 | ||
9417 | int f() { return 0; } | |
9418 | int g() noexcept { return 0; } | |
9419 | ||
9420 | static_assert(noexcept(f()) == false, ""); | |
9421 | static_assert(noexcept(g()) == true, ""); | |
9422 | ||
9423 | } | |
9424 | ||
9425 | namespace test_constexpr | |
9426 | { | |
9427 | ||
9428 | template < typename CharT > | |
9429 | unsigned long constexpr | |
9430 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
9431 | { | |
9432 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
9433 | } | |
9434 | ||
9435 | template < typename CharT > | |
9436 | unsigned long constexpr | |
9437 | strlen_c(const CharT *const s) noexcept | |
9438 | { | |
9439 | return strlen_c_r(s, 0UL); | |
9440 | } | |
9441 | ||
9442 | static_assert(strlen_c("") == 0UL, ""); | |
9443 | static_assert(strlen_c("1") == 1UL, ""); | |
9444 | static_assert(strlen_c("example") == 7UL, ""); | |
9445 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
9446 | ||
9447 | } | |
9448 | ||
9449 | namespace test_rvalue_references | |
9450 | { | |
9451 | ||
9452 | template < int N > | |
9453 | struct answer | |
9454 | { | |
9455 | static constexpr int value = N; | |
9456 | }; | |
9457 | ||
9458 | answer<1> f(int&) { return answer<1>(); } | |
9459 | answer<2> f(const int&) { return answer<2>(); } | |
9460 | answer<3> f(int&&) { return answer<3>(); } | |
9461 | ||
9462 | void | |
9463 | test() | |
9464 | { | |
9465 | int i = 0; | |
9466 | const int c = 0; | |
9467 | static_assert(decltype(f(i))::value == 1, ""); | |
9468 | static_assert(decltype(f(c))::value == 2, ""); | |
9469 | static_assert(decltype(f(0))::value == 3, ""); | |
9470 | } | |
9471 | ||
9472 | } | |
9473 | ||
9474 | namespace test_uniform_initialization | |
9475 | { | |
9476 | ||
9477 | struct test | |
9478 | { | |
9479 | static const int zero {}; | |
9480 | static const int one {1}; | |
9481 | }; | |
9482 | ||
9483 | static_assert(test::zero == 0, ""); | |
9484 | static_assert(test::one == 1, ""); | |
9485 | ||
9486 | } | |
9487 | ||
9488 | namespace test_lambdas | |
9489 | { | |
9490 | ||
9491 | void | |
9492 | test1() | |
9493 | { | |
9494 | auto lambda1 = [](){}; | |
9495 | auto lambda2 = lambda1; | |
9496 | lambda1(); | |
9497 | lambda2(); | |
9498 | } | |
9499 | ||
9500 | int | |
9501 | test2() | |
9502 | { | |
9503 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
9504 | auto b = []() -> int { return '0'; }(); | |
9505 | auto c = [=](){ return a + b; }(); | |
9506 | auto d = [&](){ return c; }(); | |
9507 | auto e = [a, &b](int x) mutable { | |
9508 | const auto identity = [](int y){ return y; }; | |
9509 | for (auto i = 0; i < a; ++i) | |
9510 | a += b--; | |
9511 | return x + identity(a + b); | |
9512 | }(0); | |
9513 | return a + b + c + d + e; | |
9514 | } | |
9515 | ||
9516 | int | |
9517 | test3() | |
9518 | { | |
9519 | const auto nullary = [](){ return 0; }; | |
9520 | const auto unary = [](int x){ return x; }; | |
9521 | using nullary_t = decltype(nullary); | |
9522 | using unary_t = decltype(unary); | |
9523 | const auto higher1st = [](nullary_t f){ return f(); }; | |
9524 | const auto higher2nd = [unary](nullary_t f1){ | |
9525 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
9526 | }; | |
9527 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
9528 | } | |
9529 | ||
9530 | } | |
9531 | ||
9532 | namespace test_variadic_templates | |
9533 | { | |
9534 | ||
9535 | template <int...> | |
9536 | struct sum; | |
9537 | ||
9538 | template <int N0, int... N1toN> | |
9539 | struct sum<N0, N1toN...> | |
9540 | { | |
9541 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
9542 | }; | |
9543 | ||
9544 | template <> | |
9545 | struct sum<> | |
9546 | { | |
9547 | static constexpr auto value = 0; | |
9548 | }; | |
9549 | ||
9550 | static_assert(sum<>::value == 0, ""); | |
9551 | static_assert(sum<1>::value == 1, ""); | |
9552 | static_assert(sum<23>::value == 23, ""); | |
9553 | static_assert(sum<1, 2>::value == 3, ""); | |
9554 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
9555 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
9556 | ||
9557 | } | |
9558 | ||
9559 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
9560 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
9561 | // because of this. | |
9562 | namespace test_template_alias_sfinae | |
9563 | { | |
9564 | ||
9565 | struct foo {}; | |
9566 | ||
9567 | template<typename T> | |
9568 | using member = typename T::member_type; | |
9569 | ||
9570 | template<typename T> | |
9571 | void func(...) {} | |
9572 | ||
9573 | template<typename T> | |
9574 | void func(member<T>*) {} | |
9575 | ||
9576 | void test(); | |
9577 | ||
9578 | void test() { func<foo>(0); } | |
9579 | ||
9580 | } | |
9581 | ||
9582 | } // namespace cxx11 | |
9583 | ||
9584 | #endif // __cplusplus >= 201103L | |
9585 | ||
9586 | ||
9587 | ||
9588 | _ACEOF | |
9589 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
9590 | ax_cv_cxx_compile_cxx11=yes | |
9591 | else | |
9592 | ax_cv_cxx_compile_cxx11=no | |
9593 | fi | |
9594 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9595 | fi | |
9596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 | |
9597 | $as_echo "$ax_cv_cxx_compile_cxx11" >&6; } | |
9598 | if test x$ax_cv_cxx_compile_cxx11 = xyes; then | |
9599 | ac_success=yes | |
9600 | fi | |
9601 | ||
9602 | ||
9603 | ||
9604 | if test x$ac_success = xno; then | |
9605 | for switch in -std=c++11 -std=c++0x +std=c++11 "-h std=c++11"; do | |
9606 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
9607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
9608 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
9609 | if eval \${$cachevar+:} false; then : | |
9610 | $as_echo_n "(cached) " >&6 | |
9611 | else | |
9612 | ac_save_CXX="$CXX" | |
9613 | CXX="$CXX $switch" | |
9614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9615 | /* end confdefs.h. */ | |
9616 | ||
9617 | ||
9618 | // If the compiler admits that it is not ready for C++11, why torture it? | |
9619 | // Hopefully, this will speed up the test. | |
9620 | ||
9621 | #ifndef __cplusplus | |
9622 | ||
9623 | #error "This is not a C++ compiler" | |
9624 | ||
9625 | #elif __cplusplus < 201103L | |
9626 | ||
9627 | #error "This is not a C++11 compiler" | |
9628 | ||
9629 | #else | |
9630 | ||
9631 | namespace cxx11 | |
9632 | { | |
9633 | ||
9634 | namespace test_static_assert | |
9635 | { | |
9636 | ||
9637 | template <typename T> | |
9638 | struct check | |
9639 | { | |
9640 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
9641 | }; | |
9642 | ||
9643 | } | |
9644 | ||
9645 | namespace test_final_override | |
9646 | { | |
9647 | ||
9648 | struct Base | |
9649 | { | |
9650 | virtual void f() {} | |
9651 | }; | |
9652 | ||
9653 | struct Derived : public Base | |
9654 | { | |
9655 | virtual void f() override {} | |
9656 | }; | |
9657 | ||
9658 | } | |
9659 | ||
9660 | namespace test_double_right_angle_brackets | |
9661 | { | |
9662 | ||
9663 | template < typename T > | |
9664 | struct check {}; | |
9665 | ||
9666 | typedef check<void> single_type; | |
9667 | typedef check<check<void>> double_type; | |
9668 | typedef check<check<check<void>>> triple_type; | |
9669 | typedef check<check<check<check<void>>>> quadruple_type; | |
9670 | ||
9671 | } | |
9672 | ||
9673 | namespace test_decltype | |
9674 | { | |
9675 | ||
9676 | int | |
9677 | f() | |
9678 | { | |
9679 | int a = 1; | |
9680 | decltype(a) b = 2; | |
9681 | return a + b; | |
9682 | } | |
9683 | ||
9684 | } | |
9685 | ||
9686 | namespace test_type_deduction | |
9687 | { | |
9688 | ||
9689 | template < typename T1, typename T2 > | |
9690 | struct is_same | |
9691 | { | |
9692 | static const bool value = false; | |
9693 | }; | |
9694 | ||
9695 | template < typename T > | |
9696 | struct is_same<T, T> | |
9697 | { | |
9698 | static const bool value = true; | |
9699 | }; | |
9700 | ||
9701 | template < typename T1, typename T2 > | |
9702 | auto | |
9703 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
9704 | { | |
9705 | return a1 + a2; | |
9706 | } | |
9707 | ||
9708 | int | |
9709 | test(const int c, volatile int v) | |
9710 | { | |
9711 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
9712 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
9713 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
9714 | auto ac = c; | |
9715 | auto av = v; | |
9716 | auto sumi = ac + av + 'x'; | |
9717 | auto sumf = ac + av + 1.0; | |
9718 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
9719 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
9720 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
9721 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
9722 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
9723 | return (sumf > 0.0) ? sumi : add(c, v); | |
9724 | } | |
9725 | ||
9726 | } | |
9727 | ||
9728 | namespace test_noexcept | |
9729 | { | |
9730 | ||
9731 | int f() { return 0; } | |
9732 | int g() noexcept { return 0; } | |
9733 | ||
9734 | static_assert(noexcept(f()) == false, ""); | |
9735 | static_assert(noexcept(g()) == true, ""); | |
9736 | ||
9737 | } | |
9738 | ||
9739 | namespace test_constexpr | |
9740 | { | |
9741 | ||
9742 | template < typename CharT > | |
9743 | unsigned long constexpr | |
9744 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
9745 | { | |
9746 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
9747 | } | |
9748 | ||
9749 | template < typename CharT > | |
9750 | unsigned long constexpr | |
9751 | strlen_c(const CharT *const s) noexcept | |
9752 | { | |
9753 | return strlen_c_r(s, 0UL); | |
9754 | } | |
9755 | ||
9756 | static_assert(strlen_c("") == 0UL, ""); | |
9757 | static_assert(strlen_c("1") == 1UL, ""); | |
9758 | static_assert(strlen_c("example") == 7UL, ""); | |
9759 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
9760 | ||
9761 | } | |
9762 | ||
9763 | namespace test_rvalue_references | |
9764 | { | |
9765 | ||
9766 | template < int N > | |
9767 | struct answer | |
9768 | { | |
9769 | static constexpr int value = N; | |
9770 | }; | |
9771 | ||
9772 | answer<1> f(int&) { return answer<1>(); } | |
9773 | answer<2> f(const int&) { return answer<2>(); } | |
9774 | answer<3> f(int&&) { return answer<3>(); } | |
9775 | ||
9776 | void | |
9777 | test() | |
9778 | { | |
9779 | int i = 0; | |
9780 | const int c = 0; | |
9781 | static_assert(decltype(f(i))::value == 1, ""); | |
9782 | static_assert(decltype(f(c))::value == 2, ""); | |
9783 | static_assert(decltype(f(0))::value == 3, ""); | |
9784 | } | |
9785 | ||
9786 | } | |
9787 | ||
9788 | namespace test_uniform_initialization | |
9789 | { | |
9790 | ||
9791 | struct test | |
9792 | { | |
9793 | static const int zero {}; | |
9794 | static const int one {1}; | |
9795 | }; | |
9796 | ||
9797 | static_assert(test::zero == 0, ""); | |
9798 | static_assert(test::one == 1, ""); | |
9799 | ||
9800 | } | |
9801 | ||
9802 | namespace test_lambdas | |
9803 | { | |
9804 | ||
9805 | void | |
9806 | test1() | |
9807 | { | |
9808 | auto lambda1 = [](){}; | |
9809 | auto lambda2 = lambda1; | |
9810 | lambda1(); | |
9811 | lambda2(); | |
9812 | } | |
9813 | ||
9814 | int | |
9815 | test2() | |
9816 | { | |
9817 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
9818 | auto b = []() -> int { return '0'; }(); | |
9819 | auto c = [=](){ return a + b; }(); | |
9820 | auto d = [&](){ return c; }(); | |
9821 | auto e = [a, &b](int x) mutable { | |
9822 | const auto identity = [](int y){ return y; }; | |
9823 | for (auto i = 0; i < a; ++i) | |
9824 | a += b--; | |
9825 | return x + identity(a + b); | |
9826 | }(0); | |
9827 | return a + b + c + d + e; | |
9828 | } | |
9829 | ||
9830 | int | |
9831 | test3() | |
9832 | { | |
9833 | const auto nullary = [](){ return 0; }; | |
9834 | const auto unary = [](int x){ return x; }; | |
9835 | using nullary_t = decltype(nullary); | |
9836 | using unary_t = decltype(unary); | |
9837 | const auto higher1st = [](nullary_t f){ return f(); }; | |
9838 | const auto higher2nd = [unary](nullary_t f1){ | |
9839 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
9840 | }; | |
9841 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
9842 | } | |
9843 | ||
9844 | } | |
9845 | ||
9846 | namespace test_variadic_templates | |
9847 | { | |
9848 | ||
9849 | template <int...> | |
9850 | struct sum; | |
9851 | ||
9852 | template <int N0, int... N1toN> | |
9853 | struct sum<N0, N1toN...> | |
9854 | { | |
9855 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
9856 | }; | |
9857 | ||
9858 | template <> | |
9859 | struct sum<> | |
9860 | { | |
9861 | static constexpr auto value = 0; | |
9862 | }; | |
9863 | ||
9864 | static_assert(sum<>::value == 0, ""); | |
9865 | static_assert(sum<1>::value == 1, ""); | |
9866 | static_assert(sum<23>::value == 23, ""); | |
9867 | static_assert(sum<1, 2>::value == 3, ""); | |
9868 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
9869 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
9870 | ||
9871 | } | |
9872 | ||
9873 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
9874 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
9875 | // because of this. | |
9876 | namespace test_template_alias_sfinae | |
9877 | { | |
9878 | ||
9879 | struct foo {}; | |
9880 | ||
9881 | template<typename T> | |
9882 | using member = typename T::member_type; | |
9883 | ||
9884 | template<typename T> | |
9885 | void func(...) {} | |
9886 | ||
9887 | template<typename T> | |
9888 | void func(member<T>*) {} | |
9889 | ||
9890 | void test(); | |
9891 | ||
9892 | void test() { func<foo>(0); } | |
9893 | ||
9894 | } | |
9895 | ||
9896 | } // namespace cxx11 | |
9897 | ||
9898 | #endif // __cplusplus >= 201103L | |
9899 | ||
9900 | ||
9901 | ||
9902 | _ACEOF | |
9903 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
9904 | eval $cachevar=yes | |
9905 | else | |
9906 | eval $cachevar=no | |
9907 | fi | |
9908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9909 | CXX="$ac_save_CXX" | |
9910 | fi | |
9911 | eval ac_res=\$$cachevar | |
9912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
9913 | $as_echo "$ac_res" >&6; } | |
9914 | if eval test x\$$cachevar = xyes; then | |
9915 | CXX="$CXX $switch" | |
9916 | ac_success=yes | |
9917 | break | |
9918 | fi | |
9919 | done | |
9920 | fi | |
9921 | ac_ext=c | |
9922 | ac_cpp='$CPP $CPPFLAGS' | |
9923 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9924 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9925 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9926 | ||
9927 | if test x$ax_cxx_compile_cxx11_required = xtrue; then | |
9928 | if test x$ac_success = xno; then | |
9929 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | |
9930 | fi | |
9931 | fi | |
9932 | if test x$ac_success = xno; then | |
9933 | HAVE_CXX11=0 | |
9934 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 | |
9935 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} | |
9936 | else | |
9937 | HAVE_CXX11=1 | |
9938 | ||
9939 | $as_echo "#define HAVE_CXX11 1" >>confdefs.h | |
9940 | ||
9941 | fi | |
9942 | ||
9943 | ||
9944 | if test "x$HAVE_CXX11" != x1; then : | |
9945 | ||
9946 | ac_ext=cpp | |
9947 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9948 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9949 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9950 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
9951 | ||
9952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -std=c++0x" >&5 | |
9953 | $as_echo_n "checking whether C++ compiler accepts -std=c++0x... " >&6; } | |
9954 | if ${ax_cv_check_cxxflags___std_cpp0x+:} false; then : | |
9955 | $as_echo_n "(cached) " >&6 | |
9956 | else | |
9957 | ||
9958 | ax_check_save_flags=$CXXFLAGS | |
9959 | CXXFLAGS="$CXXFLAGS -std=c++0x" | |
9960 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9961 | /* end confdefs.h. */ | |
9962 | ||
9963 | int | |
9964 | main () | |
9965 | { | |
9966 | ||
9967 | ; | |
9968 | return 0; | |
9969 | } | |
9970 | _ACEOF | |
9971 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
9972 | ax_cv_check_cxxflags___std_cpp0x=yes | |
9973 | else | |
9974 | ax_cv_check_cxxflags___std_cpp0x=no | |
9975 | fi | |
9976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9977 | CXXFLAGS=$ax_check_save_flags | |
9978 | fi | |
9979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___std_cpp0x" >&5 | |
9980 | $as_echo "$ax_cv_check_cxxflags___std_cpp0x" >&6; } | |
9981 | if test "x$ax_cv_check_cxxflags___std_cpp0x" = xyes; then : | |
9982 | ||
9983 | { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with -std=c++0x" >&5 | |
9984 | $as_echo "$as_me: Compiling with -std=c++0x" >&6;} | |
9985 | CXX="$CXX -std=c++0x" | |
9986 | HAVE_CXX11=1 | |
9987 | ||
9988 | else | |
9989 | ||
9990 | as_fn_error $? "A compiler with C++11 support is required." "$LINENO" 5 | |
9991 | ||
9992 | fi | |
9993 | ||
9994 | ac_ext=c | |
9995 | ac_cpp='$CPP $CPPFLAGS' | |
9996 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9997 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9998 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9999 | ||
10000 | ||
0f5d597d JS |
10001 | fi |
10002 | ||
7fbd9d09 | 10003 | # Check whether --enable-ssp was given. |
1ef0423a | 10004 | if test "${enable_ssp+set}" = set; then : |
7fbd9d09 FCE |
10005 | enableval=$enable_ssp; |
10006 | fi | |
9921a199 | 10007 | |
1ef0423a | 10008 | if test "x$enable_ssp" != xno; then : |
bbfd8c1a FCE |
10009 | |
10010 | save_CFLAGS="$CFLAGS" | |
10011 | save_CXXFLAGS="$CXXFLAGS" | |
f0510eaa FCE |
10012 | CXXFLAGS="$CXXFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2" |
10013 | CFLAGS="$CFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2" | |
1ef0423a FCE |
10014 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10015 | /* end confdefs.h. */ | |
bbfd8c1a FCE |
10016 | int something (); |
10017 | _ACEOF | |
1ef0423a | 10018 | if ac_fn_c_try_compile "$LINENO"; then : |
818ba2bc | 10019 | |
1ef0423a | 10020 | { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc -fstack-protector-all et al." >&5 |
0710d850 | 10021 | $as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;} |
f0510eaa | 10022 | CFLAGS="$save_CFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2" |
a530cfe0 | 10023 | CXXFLAGS="$save_CXXFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2" |
bbfd8c1a | 10024 | else |
bbfd8c1a | 10025 | |
1ef0423a | 10026 | { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fstack-protector-all et al." >&5 |
0710d850 | 10027 | $as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;} |
bbfd8c1a FCE |
10028 | CFLAGS="$save_CFLAGS" |
10029 | CXXFLAGS="$save_CXXFLAGS" | |
10030 | fi | |
7fbd9d09 | 10031 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9921a199 | 10032 | fi |
70d28673 | 10033 | |
cbe7ea07 FCE |
10034 | |
10035 | ||
10036 | ||
e1e3ba36 | 10037 | # Compiling without fPIE by default (see PR 9922) |
7fbd9d09 | 10038 | # Check whether --enable-pie was given. |
1ef0423a | 10039 | if test "${enable_pie+set}" = set; then : |
7fbd9d09 FCE |
10040 | enableval=$enable_pie; |
10041 | fi | |
8730f377 | 10042 | |
1ef0423a | 10043 | if test "x$enable_pie" == xyes; then : |
8730f377 | 10044 | |
97859b9d JS |
10045 | PIECFLAGS='-fPIE' |
10046 | PIECXXFLAGS='-fPIE' | |
10047 | PIELDFLAGS='-pie -Wl,-z,relro -Wl,-z,now' | |
8730f377 FCE |
10048 | save_CFLAGS="$CFLAGS" |
10049 | save_CXXFLAGS="$CXXFLAGS" | |
10050 | save_LDFLAGS="$LDFLAGS" | |
97859b9d JS |
10051 | CFLAGS="$CFLAGS $PIECFLAGS" |
10052 | CXXFLAGS="$CXXFLAGS $PIECXXFLAGS" | |
10053 | LDFLAGS="$LDFLAGS $PIELDFLAGS" | |
1ef0423a FCE |
10054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10055 | /* end confdefs.h. */ | |
8730f377 FCE |
10056 | void main () {} |
10057 | _ACEOF | |
1ef0423a | 10058 | if ac_fn_c_try_link "$LINENO"; then : |
818ba2bc | 10059 | |
1ef0423a | 10060 | { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc pie et al." >&5 |
0710d850 | 10061 | $as_echo "$as_me: Compiling with gcc pie et al." >&6;} |
8730f377 FCE |
10062 | |
10063 | else | |
8730f377 | 10064 | |
1ef0423a | 10065 | { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -pie et al." >&5 |
0710d850 | 10066 | $as_echo "$as_me: Compiler does not support -pie et al." >&6;} |
5574ef2c | 10067 | PIECFLAGS="" |
5574ef2c | 10068 | PIECXXFLAGS="" |
8730f377 | 10069 | PIELDFLAGS="" |
97859b9d | 10070 | |
8730f377 | 10071 | fi |
1ef0423a FCE |
10072 | rm -f core conftest.err conftest.$ac_objext \ |
10073 | conftest$ac_exeext conftest.$ac_ext | |
97859b9d JS |
10074 | CFLAGS="$save_CFLAGS" |
10075 | CXXFLAGS="$save_CXXFLAGS" | |
10076 | LDFLAGS="$save_LDFLAGS" | |
10077 | ||
8730f377 FCE |
10078 | fi |
10079 | ||
10080 | ||
10081 | ||
5574ef2c | 10082 | |
7fbd9d09 | 10083 | # Check whether --enable-sqlite was given. |
1ef0423a | 10084 | if test "${enable_sqlite+set}" = set; then : |
7fbd9d09 | 10085 | enableval=$enable_sqlite; |
9921a199 | 10086 | else |
e8f3c2c2 | 10087 | enable_sqlite=check |
7fbd9d09 FCE |
10088 | fi |
10089 | sqlite3_LIBS= | |
1fbe397b FCE |
10090 | |
10091 | ||
10092 | ||
10093 | ||
10094 | ||
10095 | ||
10096 | ||
10097 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
10098 | if test -n "$ac_tool_prefix"; then | |
10099 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
10100 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
10101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10102 | $as_echo_n "checking for $ac_word... " >&6; } | |
10103 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
0710d850 | 10104 | $as_echo_n "(cached) " >&6 |
42feb3c0 | 10105 | else |
1fbe397b FCE |
10106 | case $PKG_CONFIG in |
10107 | [\\/]* | ?:[\\/]*) | |
10108 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
10109 | ;; | |
10110 | *) | |
10111 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10112 | for as_dir in $PATH | |
10113 | do | |
10114 | IFS=$as_save_IFS | |
10115 | test -z "$as_dir" && as_dir=. | |
10116 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10117 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10118 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
10119 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10120 | break 2 | |
10121 | fi | |
10122 | done | |
10123 | done | |
10124 | IFS=$as_save_IFS | |
42feb3c0 | 10125 | |
1fbe397b FCE |
10126 | ;; |
10127 | esac | |
10128 | fi | |
10129 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
10130 | if test -n "$PKG_CONFIG"; then | |
10131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
10132 | $as_echo "$PKG_CONFIG" >&6; } | |
42feb3c0 | 10133 | else |
1fbe397b FCE |
10134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10135 | $as_echo "no" >&6; } | |
42feb3c0 | 10136 | fi |
1fbe397b FCE |
10137 | |
10138 | ||
10139 | fi | |
10140 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
10141 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
10142 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
10143 | set dummy pkg-config; ac_word=$2 | |
10144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10145 | $as_echo_n "checking for $ac_word... " >&6; } | |
10146 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
10147 | $as_echo_n "(cached) " >&6 | |
10148 | else | |
10149 | case $ac_pt_PKG_CONFIG in | |
10150 | [\\/]* | ?:[\\/]*) | |
10151 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
10152 | ;; | |
10153 | *) | |
10154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10155 | for as_dir in $PATH | |
10156 | do | |
10157 | IFS=$as_save_IFS | |
10158 | test -z "$as_dir" && as_dir=. | |
10159 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10160 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10161 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
10162 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10163 | break 2 | |
10164 | fi | |
10165 | done | |
10166 | done | |
10167 | IFS=$as_save_IFS | |
10168 | ||
10169 | ;; | |
10170 | esac | |
10171 | fi | |
10172 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
10173 | if test -n "$ac_pt_PKG_CONFIG"; then | |
10174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
10175 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
10176 | else | |
10177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10178 | $as_echo "no" >&6; } | |
42feb3c0 | 10179 | fi |
42feb3c0 | 10180 | |
1fbe397b FCE |
10181 | if test "x$ac_pt_PKG_CONFIG" = x; then |
10182 | PKG_CONFIG="" | |
10183 | else | |
10184 | case $cross_compiling:$ac_tool_warned in | |
10185 | yes:) | |
10186 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10187 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10188 | ac_tool_warned=yes ;; | |
10189 | esac | |
10190 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
10191 | fi | |
10192 | else | |
10193 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
10194 | fi | |
0d563e60 | 10195 | |
1fbe397b FCE |
10196 | fi |
10197 | if test -n "$PKG_CONFIG"; then | |
10198 | _pkg_min_version=0.9.0 | |
10199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
10200 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
10201 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
10202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10203 | $as_echo "yes" >&6; } | |
10204 | else | |
10205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10206 | $as_echo "no" >&6; } | |
10207 | PKG_CONFIG="" | |
10208 | fi | |
10209 | fi | |
10210 | if test "x$enable_sqlite" != xno; then : | |
07606685 | 10211 | |
1fbe397b FCE |
10212 | pkg_failed=no |
10213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3" >&5 | |
10214 | $as_echo_n "checking for sqlite3... " >&6; } | |
10215 | ||
10216 | if test -n "$sqlite3_CFLAGS"; then | |
10217 | pkg_cv_sqlite3_CFLAGS="$sqlite3_CFLAGS" | |
10218 | elif test -n "$PKG_CONFIG"; then | |
10219 | if test -n "$PKG_CONFIG" && \ | |
10220 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 > 3.7\""; } >&5 | |
10221 | ($PKG_CONFIG --exists --print-errors "sqlite3 > 3.7") 2>&5 | |
10222 | ac_status=$? | |
10223 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10224 | test $ac_status = 0; }; then | |
10225 | pkg_cv_sqlite3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 > 3.7" 2>/dev/null` | |
10226 | test "x$?" != "x0" && pkg_failed=yes | |
9921a199 | 10227 | else |
1fbe397b FCE |
10228 | pkg_failed=yes |
10229 | fi | |
10230 | else | |
10231 | pkg_failed=untried | |
10232 | fi | |
10233 | if test -n "$sqlite3_LIBS"; then | |
10234 | pkg_cv_sqlite3_LIBS="$sqlite3_LIBS" | |
10235 | elif test -n "$PKG_CONFIG"; then | |
10236 | if test -n "$PKG_CONFIG" && \ | |
10237 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 > 3.7\""; } >&5 | |
10238 | ($PKG_CONFIG --exists --print-errors "sqlite3 > 3.7") 2>&5 | |
10239 | ac_status=$? | |
10240 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10241 | test $ac_status = 0; }; then | |
10242 | pkg_cv_sqlite3_LIBS=`$PKG_CONFIG --libs "sqlite3 > 3.7" 2>/dev/null` | |
10243 | test "x$?" != "x0" && pkg_failed=yes | |
10244 | else | |
10245 | pkg_failed=yes | |
10246 | fi | |
10247 | else | |
10248 | pkg_failed=untried | |
10249 | fi | |
10250 | ||
10251 | ||
10252 | ||
10253 | if test $pkg_failed = yes; then | |
10254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10255 | $as_echo "no" >&6; } | |
10256 | ||
10257 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10258 | _pkg_short_errors_supported=yes | |
10259 | else | |
10260 | _pkg_short_errors_supported=no | |
10261 | fi | |
10262 | if test $_pkg_short_errors_supported = yes; then | |
10263 | sqlite3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 > 3.7" 2>&1` | |
10264 | else | |
10265 | sqlite3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 > 3.7" 2>&1` | |
10266 | fi | |
10267 | # Put the nasty error message in config.log where it belongs | |
10268 | echo "$sqlite3_PKG_ERRORS" >&5 | |
10269 | ||
10270 | if test "x$enable_sqlite" != xcheck; then | |
1ef0423a | 10271 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
0710d850 | 10272 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
5d4aa1f5 FCE |
10273 | as_fn_error $? "--enable-sqlite was given, but test for sqlite failed |
10274 | See \`config.log' for more details" "$LINENO" 5; } | |
9921a199 | 10275 | fi |
1fbe397b FCE |
10276 | elif test $pkg_failed = untried; then |
10277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10278 | $as_echo "no" >&6; } | |
10279 | if test "x$enable_sqlite" != xcheck; then | |
10280 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
10281 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
10282 | as_fn_error $? "--enable-sqlite was given, but test for sqlite failed | |
10283 | See \`config.log' for more details" "$LINENO" 5; } | |
10284 | fi | |
10285 | else | |
10286 | sqlite3_CFLAGS=$pkg_cv_sqlite3_CFLAGS | |
10287 | sqlite3_LIBS=$pkg_cv_sqlite3_LIBS | |
10288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10289 | $as_echo "yes" >&6; } | |
42feb3c0 | 10290 | |
1fbe397b FCE |
10291 | $as_echo "#define HAVE_LIBSQLITE3 1" >>confdefs.h |
10292 | ||
10293 | fi | |
9921a199 | 10294 | fi |
44f75386 | 10295 | |
6d14a4a9 | 10296 | # Check whether --enable-translator was given. |
1ef0423a | 10297 | if test "${enable_translator+set}" = set; then : |
6d14a4a9 EB |
10298 | enableval=$enable_translator; |
10299 | else | |
10300 | enable_translator="yes" | |
10301 | fi | |
10302 | ||
10303 | if test "$enable_translator" == "yes"; then | |
10304 | BUILD_TRANSLATOR_TRUE= | |
10305 | BUILD_TRANSLATOR_FALSE='#' | |
10306 | else | |
10307 | BUILD_TRANSLATOR_TRUE='#' | |
10308 | BUILD_TRANSLATOR_FALSE= | |
10309 | fi | |
10310 | ||
10311 | ||
7fbd9d09 | 10312 | # Check whether --enable-crash was given. |
1ef0423a | 10313 | if test "${enable_crash+set}" = set; then : |
7fbd9d09 | 10314 | enableval=$enable_crash; if test "$enable_crash" != "no"; then |
564eb0a8 DS |
10315 | save_CPPFLAGS="$CPPFLAGS" |
10316 | if test "$enable_crash" != "yes"; then | |
10317 | staplog_CPPFLAGS=-I$enable_crash | |
4a3c19da | 10318 | CPPFLAGS="${staplog_CPPFLAGS} $CPPFLAGS" |
35a04c8e | 10319 | |
412e1bf7 | 10320 | fi |
1ef0423a FCE |
10321 | for ac_header in crash/defs.h |
10322 | do : | |
10323 | ac_fn_c_check_header_compile "$LINENO" "crash/defs.h" "ac_cv_header_crash_defs_h" " | |
10324 | #define NR_CPUS 256 | |
5e5aee9f | 10325 | |
1ef0423a | 10326 | " |
c3de29bd | 10327 | if test "x$ac_cv_header_crash_defs_h" = xyes; then : |
1ef0423a FCE |
10328 | cat >>confdefs.h <<_ACEOF |
10329 | #define HAVE_CRASH_DEFS_H 1 | |
5e5aee9f | 10330 | _ACEOF |
5e5aee9f | 10331 | |
1ef0423a | 10332 | else |
5d4aa1f5 | 10333 | as_fn_error $? "cannot find required crash header (crash-devel may need to be installed)" "$LINENO" 5 |
1ef0423a | 10334 | fi |
7fbd9d09 | 10335 | |
1ef0423a | 10336 | done |
5e5aee9f | 10337 | |
1ef0423a FCE |
10338 | CPPFLAGS="$save_CPPFLAGS" |
10339 | fi | |
5e5aee9f | 10340 | else |
1ef0423a | 10341 | enable_crash="no" |
7fbd9d09 | 10342 | fi |
564eb0a8 | 10343 | |
7fbd9d09 | 10344 | if test "$enable_crash" != "no"; then |
35a04c8e FCE |
10345 | BUILD_CRASHMOD_TRUE= |
10346 | BUILD_CRASHMOD_FALSE='#' | |
10347 | else | |
10348 | BUILD_CRASHMOD_TRUE='#' | |
10349 | BUILD_CRASHMOD_FALSE= | |
10350 | fi | |
10351 | ||
10352 | ||
92aff3c7 | 10353 | building_docs="no" |
7fbd9d09 | 10354 | # Check whether --enable-docs was given. |
1ef0423a | 10355 | if test "${enable_docs+set}" = set; then : |
7fbd9d09 | 10356 | enableval=$enable_docs; enable_docs=$enableval |
465e8fbf FCE |
10357 | else |
10358 | enable_docs="check" | |
7fbd9d09 FCE |
10359 | fi |
10360 | ||
465e8fbf FCE |
10361 | # Extract the first word of "latex", so it can be a program name with args. |
10362 | set dummy latex; ac_word=$2 | |
1ef0423a | 10363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 10364 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 10365 | if ${ac_cv_prog_have_latex+:} false; then : |
0710d850 | 10366 | $as_echo_n "(cached) " >&6 |
465e8fbf FCE |
10367 | else |
10368 | if test -n "$have_latex"; then | |
10369 | ac_cv_prog_have_latex="$have_latex" # Let the user override the test. | |
10370 | else | |
10371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10372 | for as_dir in $PATH | |
10373 | do | |
10374 | IFS=$as_save_IFS | |
10375 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 10376 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 10377 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
465e8fbf | 10378 | ac_cv_prog_have_latex="yes" |
1ef0423a | 10379 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
465e8fbf FCE |
10380 | break 2 |
10381 | fi | |
10382 | done | |
1ef0423a | 10383 | done |
7fbd9d09 | 10384 | IFS=$as_save_IFS |
465e8fbf FCE |
10385 | |
10386 | test -z "$ac_cv_prog_have_latex" && ac_cv_prog_have_latex="no" | |
10387 | fi | |
10388 | fi | |
10389 | have_latex=$ac_cv_prog_have_latex | |
10390 | if test -n "$have_latex"; then | |
1ef0423a | 10391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_latex" >&5 |
0710d850 | 10392 | $as_echo "$have_latex" >&6; } |
465e8fbf | 10393 | else |
1ef0423a | 10394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 10395 | $as_echo "no" >&6; } |
465e8fbf FCE |
10396 | fi |
10397 | ||
7fbd9d09 | 10398 | |
465e8fbf FCE |
10399 | # Extract the first word of "dvips", so it can be a program name with args. |
10400 | set dummy dvips; ac_word=$2 | |
1ef0423a | 10401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 10402 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 10403 | if ${ac_cv_prog_have_dvips+:} false; then : |
0710d850 | 10404 | $as_echo_n "(cached) " >&6 |
465e8fbf FCE |
10405 | else |
10406 | if test -n "$have_dvips"; then | |
10407 | ac_cv_prog_have_dvips="$have_dvips" # Let the user override the test. | |
10408 | else | |
10409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10410 | for as_dir in $PATH | |
10411 | do | |
10412 | IFS=$as_save_IFS | |
10413 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 10414 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 10415 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
465e8fbf | 10416 | ac_cv_prog_have_dvips="yes" |
1ef0423a | 10417 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
465e8fbf FCE |
10418 | break 2 |
10419 | fi | |
10420 | done | |
1ef0423a | 10421 | done |
7fbd9d09 | 10422 | IFS=$as_save_IFS |
465e8fbf FCE |
10423 | |
10424 | test -z "$ac_cv_prog_have_dvips" && ac_cv_prog_have_dvips="no" | |
10425 | fi | |
10426 | fi | |
10427 | have_dvips=$ac_cv_prog_have_dvips | |
10428 | if test -n "$have_dvips"; then | |
1ef0423a | 10429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dvips" >&5 |
0710d850 | 10430 | $as_echo "$have_dvips" >&6; } |
465e8fbf | 10431 | else |
1ef0423a | 10432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 10433 | $as_echo "no" >&6; } |
465e8fbf FCE |
10434 | fi |
10435 | ||
7fbd9d09 | 10436 | |
465e8fbf FCE |
10437 | # Extract the first word of "ps2pdf", so it can be a program name with args. |
10438 | set dummy ps2pdf; ac_word=$2 | |
1ef0423a | 10439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 10440 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 10441 | if ${ac_cv_prog_have_ps2pdf+:} false; then : |
0710d850 | 10442 | $as_echo_n "(cached) " >&6 |
465e8fbf FCE |
10443 | else |
10444 | if test -n "$have_ps2pdf"; then | |
10445 | ac_cv_prog_have_ps2pdf="$have_ps2pdf" # Let the user override the test. | |
10446 | else | |
10447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10448 | for as_dir in $PATH | |
10449 | do | |
10450 | IFS=$as_save_IFS | |
10451 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 10452 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 10453 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
465e8fbf | 10454 | ac_cv_prog_have_ps2pdf="yes" |
1ef0423a | 10455 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
465e8fbf FCE |
10456 | break 2 |
10457 | fi | |
10458 | done | |
1ef0423a | 10459 | done |
7fbd9d09 | 10460 | IFS=$as_save_IFS |
465e8fbf FCE |
10461 | |
10462 | test -z "$ac_cv_prog_have_ps2pdf" && ac_cv_prog_have_ps2pdf="no" | |
10463 | fi | |
10464 | fi | |
10465 | have_ps2pdf=$ac_cv_prog_have_ps2pdf | |
10466 | if test -n "$have_ps2pdf"; then | |
1ef0423a | 10467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ps2pdf" >&5 |
0710d850 | 10468 | $as_echo "$have_ps2pdf" >&6; } |
465e8fbf | 10469 | else |
1ef0423a | 10470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 10471 | $as_echo "no" >&6; } |
465e8fbf FCE |
10472 | fi |
10473 | ||
7fbd9d09 | 10474 | |
7012fdd5 | 10475 | if test "x${have_latex}${have_dvips}${have_ps2pdf}" != "xyesyesyes"; then |
2d4b8ddf | 10476 | if test "$enable_docs" == "yes"; then |
5d4aa1f5 | 10477 | as_fn_error $? "cannot find all tools for building documentation" "$LINENO" 5 |
465e8fbf | 10478 | fi |
2d4b8ddf | 10479 | if test "$enable_docs" == "check"; then |
1ef0423a | 10480 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build documentation, cannot find all tools" >&5 |
0710d850 | 10481 | $as_echo "$as_me: WARNING: will not build documentation, cannot find all tools" >&2;} |
2d4b8ddf | 10482 | fi |
465e8fbf | 10483 | fi |
7012fdd5 | 10484 | if test "x${have_latex}${have_dvips}${have_ps2pdf}" == "xyesyesyes" -a "$enable_docs" != "no"; then |
92aff3c7 WC |
10485 | building_docs="yes" |
10486 | fi | |
7fbd9d09 | 10487 | if test "$building_docs" == "yes"; then |
465e8fbf FCE |
10488 | BUILD_DOCS_TRUE= |
10489 | BUILD_DOCS_FALSE='#' | |
10490 | else | |
10491 | BUILD_DOCS_TRUE='#' | |
10492 | BUILD_DOCS_FALSE= | |
10493 | fi | |
10494 | ||
10495 | ||
53ade4da | 10496 | |
92aff3c7 | 10497 | building_refdocs="no" |
7fbd9d09 | 10498 | # Check whether --enable-refdocs was given. |
1ef0423a | 10499 | if test "${enable_refdocs+set}" = set; then : |
7fbd9d09 | 10500 | enableval=$enable_refdocs; enable_refdocs=$enableval |
92aff3c7 WC |
10501 | else |
10502 | enable_refdocs="check" | |
7fbd9d09 FCE |
10503 | fi |
10504 | ||
92aff3c7 | 10505 | if test "$building_docs" == "no" -a "$enable_refdocs" == "yes" ; then |
5d4aa1f5 | 10506 | as_fn_error $? "must use --enable-docs with --enable-refdocs" "$LINENO" 5 |
92aff3c7 | 10507 | fi |
1ed33130 | 10508 | if test "$enable_refdocs" != "no" -a "${building_docs}" == "yes"; then |
ccf8bc85 EM |
10509 | building_refdocs="yes" |
10510 | fi | |
10511 | if test "$building_refdocs" == "yes"; then | |
10512 | BUILD_REFDOCS_TRUE= | |
10513 | BUILD_REFDOCS_FALSE='#' | |
10514 | else | |
10515 | BUILD_REFDOCS_TRUE='#' | |
10516 | BUILD_REFDOCS_FALSE= | |
10517 | fi | |
10518 | ||
10519 | ||
d9c42357 FL |
10520 | # Extract the first word of "xmlto", so it can be a program name with args. |
10521 | set dummy xmlto; ac_word=$2 | |
10522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10523 | $as_echo_n "checking for $ac_word... " >&6; } | |
10524 | if ${ac_cv_prog_have_xmlto+:} false; then : | |
10525 | $as_echo_n "(cached) " >&6 | |
10526 | else | |
10527 | if test -n "$have_xmlto"; then | |
10528 | ac_cv_prog_have_xmlto="$have_xmlto" # Let the user override the test. | |
10529 | else | |
10530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10531 | for as_dir in $PATH | |
10532 | do | |
10533 | IFS=$as_save_IFS | |
10534 | test -z "$as_dir" && as_dir=. | |
10535 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10536 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10537 | ac_cv_prog_have_xmlto="yes" | |
10538 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10539 | break 2 | |
10540 | fi | |
10541 | done | |
10542 | done | |
10543 | IFS=$as_save_IFS | |
10544 | ||
10545 | test -z "$ac_cv_prog_have_xmlto" && ac_cv_prog_have_xmlto="no" | |
10546 | fi | |
10547 | fi | |
10548 | have_xmlto=$ac_cv_prog_have_xmlto | |
10549 | if test -n "$have_xmlto"; then | |
10550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xmlto" >&5 | |
10551 | $as_echo "$have_xmlto" >&6; } | |
10552 | else | |
10553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10554 | $as_echo "no" >&6; } | |
10555 | fi | |
10556 | ||
10557 | ||
327a760e FCE |
10558 | # Extract the first word of "fop", so it can be a program name with args. |
10559 | set dummy fop; ac_word=$2 | |
10560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10561 | $as_echo_n "checking for $ac_word... " >&6; } | |
10562 | if ${ac_cv_prog_have_fop+:} false; then : | |
10563 | $as_echo_n "(cached) " >&6 | |
10564 | else | |
10565 | if test -n "$have_fop"; then | |
10566 | ac_cv_prog_have_fop="$have_fop" # Let the user override the test. | |
10567 | else | |
10568 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10569 | for as_dir in $PATH | |
10570 | do | |
10571 | IFS=$as_save_IFS | |
10572 | test -z "$as_dir" && as_dir=. | |
10573 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 10574 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
327a760e FCE |
10575 | ac_cv_prog_have_fop="yes" |
10576 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10577 | break 2 | |
10578 | fi | |
10579 | done | |
10580 | done | |
10581 | IFS=$as_save_IFS | |
10582 | ||
10583 | test -z "$ac_cv_prog_have_fop" && ac_cv_prog_have_fop="no" | |
10584 | fi | |
10585 | fi | |
10586 | have_fop=$ac_cv_prog_have_fop | |
10587 | if test -n "$have_fop"; then | |
10588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fop" >&5 | |
10589 | $as_echo "$have_fop" >&6; } | |
10590 | else | |
10591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10592 | $as_echo "no" >&6; } | |
10593 | fi | |
10594 | ||
10595 | ||
61598deb FCE |
10596 | if test "x${have_fop}" == "xyes"; then |
10597 | # Due to rhbz505364 / 830266, we must actually test-run fop, not just | |
10598 | # hope that it works. | |
434e049c FCE |
10599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if xmlto --with-fop actually works" >&5 |
10600 | $as_echo_n "checking to see if xmlto --with-fop actually works... " >&6; } | |
61598deb | 10601 | if xmlto --with-fop pdf ${srcdir}/doc/SystemTap_Tapset_Reference/dummy-tapsets.xml >/dev/null 2>&1; then |
434e049c FCE |
10602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10603 | $as_echo "yes" >&6; } | |
61598deb | 10604 | else |
434e049c FCE |
10605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: it's dead, Jim" >&5 |
10606 | $as_echo "it's dead, Jim" >&6; } | |
61598deb FCE |
10607 | have_fop="broken" |
10608 | fi | |
75d16f55 | 10609 | rm -f dummy-tapsets.pdf |
61598deb | 10610 | fi |
327a760e FCE |
10611 | if test "$have_fop" == "yes"; then |
10612 | HAVE_FOP_TRUE= | |
10613 | HAVE_FOP_FALSE='#' | |
10614 | else | |
10615 | HAVE_FOP_TRUE='#' | |
10616 | HAVE_FOP_FALSE= | |
10617 | fi | |
10618 | ||
a98010af AJ |
10619 | if test "$have_xmlto" == "yes"; then |
10620 | HAVE_XMLTO_TRUE= | |
10621 | HAVE_XMLTO_FALSE='#' | |
10622 | else | |
10623 | HAVE_XMLTO_TRUE='#' | |
10624 | HAVE_XMLTO_FALSE= | |
10625 | fi | |
10626 | ||
327a760e | 10627 | |
d9c42357 FL |
10628 | building_htmldocs="no" |
10629 | # Check whether --enable-htmldocs was given. | |
10630 | if test "${enable_htmldocs+set}" = set; then : | |
617829c9 | 10631 | enableval=$enable_htmldocs; building_htmldocs=$enableval |
d9c42357 FL |
10632 | else |
10633 | building_htmldocs="no" | |
10634 | fi | |
10635 | ||
617829c9 FL |
10636 | if test "$have_xmlto" == "no" -a "$building_htmldocs" == "yes"; then |
10637 | as_fn_error $? "xmlto required for building html documentation" "$LINENO" 5 | |
10638 | fi | |
d9c42357 FL |
10639 | |
10640 | if test "$building_htmldocs" == "yes"; then | |
10641 | BUILD_HTMLDOCS_TRUE= | |
10642 | BUILD_HTMLDOCS_FALSE='#' | |
10643 | else | |
10644 | BUILD_HTMLDOCS_TRUE='#' | |
10645 | BUILD_HTMLDOCS_FALSE= | |
10646 | fi | |
10647 | ||
10648 | ||
468abaf4 | 10649 | cat > conftest.xml << 'EOF' |
aa5951be WC |
10650 | <?xml version="1.0" encoding="UTF-8"?> |
10651 | <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" | |
10652 | "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" > | |
468abaf4 FCE |
10653 | <book lang="en"> |
10654 | <bookinfo><title>foo</title></bookinfo> | |
a8fcf687 MW |
10655 | <chapter id="logging.stp"><title>Logging Tapset</title> |
10656 | <refentry id="API-log"><refnamediv><refname>log</refname> | |
10657 | <refpurpose>logging</refpurpose></refnamediv> | |
10658 | <refsect1><title>Description</title> | |
10659 | <para>baz</para></refsect1></refentry></chapter> | |
aa5951be WC |
10660 | </book> |
10661 | EOF | |
468abaf4 FCE |
10662 | |
10663 | if test "x${have_xmlto}" == "xyes"; then | |
1ef0423a | 10664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlto --stringparam support" >&5 |
0710d850 | 10665 | $as_echo_n "checking for xmlto --stringparam support... " >&6; } |
4b5627b1 | 10666 | xmlto --stringparam man.authors.section.enabled=0 html-nochunks conftest.xml >/dev/null 2>&1 |
468abaf4 FCE |
10667 | if test $? == 0; then |
10668 | have_xmlto_stringparam="yes" | |
1ef0423a | 10669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
0710d850 | 10670 | $as_echo "yes" >&6; } |
468abaf4 | 10671 | else |
1ef0423a | 10672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 10673 | $as_echo "no" >&6; } |
468abaf4 | 10674 | fi |
4b5627b1 | 10675 | rm -f conftest.html |
468abaf4 FCE |
10676 | fi |
10677 | if test "$have_xmlto_stringparam" == "yes"; then | |
10678 | XMLTO_STRINGPARAM_TRUE= | |
10679 | XMLTO_STRINGPARAM_FALSE='#' | |
10680 | else | |
10681 | XMLTO_STRINGPARAM_TRUE='#' | |
10682 | XMLTO_STRINGPARAM_FALSE= | |
10683 | fi | |
10684 | ||
10685 | ||
468abaf4 FCE |
10686 | rm -f conftest.xml |
10687 | ||
a0e2728a | 10688 | |
28f121c3 DEP |
10689 | # Check whether --with-nss was given. |
10690 | if test "${with_nss+set}" = set; then : | |
10691 | withval=$with_nss; | |
a0e2728a DB |
10692 | fi |
10693 | ||
10694 | ||
28f121c3 DEP |
10695 | if test "x$with_nss" != "xno"; then : |
10696 | ||
10697 | ||
10698 | pkg_failed=no | |
10699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss" >&5 | |
10700 | $as_echo_n "checking for nss... " >&6; } | |
10701 | ||
10702 | if test -n "$nss_CFLAGS"; then | |
10703 | pkg_cv_nss_CFLAGS="$nss_CFLAGS" | |
10704 | elif test -n "$PKG_CONFIG"; then | |
10705 | if test -n "$PKG_CONFIG" && \ | |
10706 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss >= 3\""; } >&5 | |
10707 | ($PKG_CONFIG --exists --print-errors "nss >= 3") 2>&5 | |
10708 | ac_status=$? | |
10709 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10710 | test $ac_status = 0; }; then | |
10711 | pkg_cv_nss_CFLAGS=`$PKG_CONFIG --cflags "nss >= 3" 2>/dev/null` | |
8eef2738 | 10712 | test "x$?" != "x0" && pkg_failed=yes |
28f121c3 DEP |
10713 | else |
10714 | pkg_failed=yes | |
10715 | fi | |
10716 | else | |
10717 | pkg_failed=untried | |
10718 | fi | |
10719 | if test -n "$nss_LIBS"; then | |
10720 | pkg_cv_nss_LIBS="$nss_LIBS" | |
10721 | elif test -n "$PKG_CONFIG"; then | |
10722 | if test -n "$PKG_CONFIG" && \ | |
10723 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss >= 3\""; } >&5 | |
10724 | ($PKG_CONFIG --exists --print-errors "nss >= 3") 2>&5 | |
10725 | ac_status=$? | |
10726 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10727 | test $ac_status = 0; }; then | |
10728 | pkg_cv_nss_LIBS=`$PKG_CONFIG --libs "nss >= 3" 2>/dev/null` | |
8eef2738 | 10729 | test "x$?" != "x0" && pkg_failed=yes |
28f121c3 DEP |
10730 | else |
10731 | pkg_failed=yes | |
10732 | fi | |
10733 | else | |
10734 | pkg_failed=untried | |
10735 | fi | |
10736 | ||
10737 | ||
10738 | ||
10739 | if test $pkg_failed = yes; then | |
10740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10741 | $as_echo "no" >&6; } | |
10742 | ||
10743 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10744 | _pkg_short_errors_supported=yes | |
10745 | else | |
10746 | _pkg_short_errors_supported=no | |
10747 | fi | |
10748 | if test $_pkg_short_errors_supported = yes; then | |
8eef2738 | 10749 | nss_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss >= 3" 2>&1` |
28f121c3 | 10750 | else |
8eef2738 | 10751 | nss_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss >= 3" 2>&1` |
28f121c3 DEP |
10752 | fi |
10753 | # Put the nasty error message in config.log where it belongs | |
10754 | echo "$nss_PKG_ERRORS" >&5 | |
10755 | ||
10756 | have_nss=no | |
10757 | elif test $pkg_failed = untried; then | |
10758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10759 | $as_echo "no" >&6; } | |
10760 | have_nss=no | |
10761 | else | |
10762 | nss_CFLAGS=$pkg_cv_nss_CFLAGS | |
10763 | nss_LIBS=$pkg_cv_nss_LIBS | |
10764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10765 | $as_echo "yes" >&6; } | |
10766 | have_nss=yes | |
10767 | ||
10768 | $as_echo "#define HAVE_NSS 1" >>confdefs.h | |
10769 | ||
10770 | ||
10771 | fi | |
10772 | ||
10773 | else | |
10774 | have_nss=no | |
10775 | fi | |
10776 | ||
10777 | if test "${have_nss}" = "yes"; then | |
10778 | HAVE_NSS_TRUE= | |
10779 | HAVE_NSS_FALSE='#' | |
10780 | else | |
10781 | HAVE_NSS_TRUE='#' | |
10782 | HAVE_NSS_FALSE= | |
10783 | fi | |
10784 | ||
10785 | ||
2323b028 FCE |
10786 | |
10787 | # Check whether --with-dracutstap was given. | |
10788 | if test "${with_dracutstap+set}" = set; then : | |
10789 | withval=$with_dracutstap; | |
10790 | fi | |
10791 | ||
10792 | if test "x$with_dracutstap" != "x"; then : | |
10793 | dracutstap="$with_dracutstap" | |
10794 | else | |
10795 | dracutstap=/usr/lib/dracut/modules.d/99stap | |
10796 | fi | |
10797 | { $as_echo "$as_me:${as_lineno-$LINENO}: using dracut module directory $dracutstap" >&5 | |
10798 | $as_echo "$as_me: using dracut module directory $dracutstap" >&6;} | |
10799 | ||
10800 | ||
9ed47854 MC |
10801 | |
10802 | # Check whether --with-dracutbindir was given. | |
10803 | if test "${with_dracutbindir+set}" = set; then : | |
10804 | withval=$with_dracutbindir; | |
10805 | fi | |
10806 | ||
10807 | if test "x$with_dracutbindir" != "x"; then : | |
10808 | dracutbindir="$with_dracutbindir" | |
10809 | else | |
10810 | dracutbindir=/sbin | |
10811 | fi | |
10812 | { $as_echo "$as_me:${as_lineno-$LINENO}: using dracut binary $dracutbindir" >&5 | |
10813 | $as_echo "$as_me: using dracut binary $dracutbindir" >&6;} | |
10814 | ||
10815 | ||
28f121c3 DEP |
10816 | # Check whether --enable-server was given. |
10817 | if test "${enable_server+set}" = set; then : | |
10818 | enableval=$enable_server; enable_server=$enableval | |
10819 | else | |
10820 | enable_server="check" | |
10821 | fi | |
10822 | ||
10823 | ||
10824 | if test "$enable_server" != "no"; then | |
10825 | if test "x${have_nss}" != "xyes"; then | |
10826 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap compile server, cannot find nss headers" >&5 | |
10827 | $as_echo "$as_me: WARNING: will not build systemtap compile server, cannot find nss headers" >&2;} | |
10828 | fi | |
10829 | fi | |
10830 | if test "${have_nss}" == "yes" -a "$enable_server" != "no"; then | |
10831 | BUILD_SERVER_TRUE= | |
10832 | BUILD_SERVER_FALSE='#' | |
10833 | else | |
10834 | BUILD_SERVER_TRUE='#' | |
10835 | BUILD_SERVER_FALSE= | |
10836 | fi | |
10837 | ||
10838 | ||
10839 | if test "${have_nss}" != "yes"; then | |
c4fd15b4 DB |
10840 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compile-server client functionality will be disabled, cannot find nss development files" >&5 |
10841 | $as_echo "$as_me: WARNING: compile-server client functionality will be disabled, cannot find nss development files" >&2;} | |
28f121c3 DEP |
10842 | fi |
10843 | ||
10844 | ||
10845 | # Check whether --with-avahi was given. | |
10846 | if test "${with_avahi+set}" = set; then : | |
10847 | withval=$with_avahi; | |
10848 | fi | |
10849 | ||
10850 | ||
10851 | if test "x$with_avahi" != "xno"; then : | |
10852 | ||
10853 | ||
10854 | pkg_failed=no | |
10855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi" >&5 | |
10856 | $as_echo_n "checking for avahi... " >&6; } | |
10857 | ||
10858 | if test -n "$avahi_CFLAGS"; then | |
10859 | pkg_cv_avahi_CFLAGS="$avahi_CFLAGS" | |
10860 | elif test -n "$PKG_CONFIG"; then | |
10861 | if test -n "$PKG_CONFIG" && \ | |
10862 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5 | |
10863 | ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5 | |
10864 | ac_status=$? | |
10865 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10866 | test $ac_status = 0; }; then | |
10867 | pkg_cv_avahi_CFLAGS=`$PKG_CONFIG --cflags "avahi-client" 2>/dev/null` | |
8eef2738 | 10868 | test "x$?" != "x0" && pkg_failed=yes |
28f121c3 DEP |
10869 | else |
10870 | pkg_failed=yes | |
10871 | fi | |
10872 | else | |
10873 | pkg_failed=untried | |
10874 | fi | |
10875 | if test -n "$avahi_LIBS"; then | |
10876 | pkg_cv_avahi_LIBS="$avahi_LIBS" | |
10877 | elif test -n "$PKG_CONFIG"; then | |
10878 | if test -n "$PKG_CONFIG" && \ | |
10879 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5 | |
10880 | ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5 | |
10881 | ac_status=$? | |
10882 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10883 | test $ac_status = 0; }; then | |
10884 | pkg_cv_avahi_LIBS=`$PKG_CONFIG --libs "avahi-client" 2>/dev/null` | |
8eef2738 | 10885 | test "x$?" != "x0" && pkg_failed=yes |
28f121c3 DEP |
10886 | else |
10887 | pkg_failed=yes | |
10888 | fi | |
10889 | else | |
10890 | pkg_failed=untried | |
10891 | fi | |
10892 | ||
10893 | ||
10894 | ||
10895 | if test $pkg_failed = yes; then | |
10896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10897 | $as_echo "no" >&6; } | |
10898 | ||
10899 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10900 | _pkg_short_errors_supported=yes | |
10901 | else | |
10902 | _pkg_short_errors_supported=no | |
10903 | fi | |
10904 | if test $_pkg_short_errors_supported = yes; then | |
8eef2738 | 10905 | avahi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client" 2>&1` |
28f121c3 | 10906 | else |
8eef2738 | 10907 | avahi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client" 2>&1` |
28f121c3 DEP |
10908 | fi |
10909 | # Put the nasty error message in config.log where it belongs | |
10910 | echo "$avahi_PKG_ERRORS" >&5 | |
10911 | ||
10912 | have_avahi=no | |
10913 | elif test $pkg_failed = untried; then | |
10914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10915 | $as_echo "no" >&6; } | |
10916 | have_avahi=no | |
10917 | else | |
10918 | avahi_CFLAGS=$pkg_cv_avahi_CFLAGS | |
10919 | avahi_LIBS=$pkg_cv_avahi_LIBS | |
10920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10921 | $as_echo "yes" >&6; } | |
10922 | have_avahi=yes | |
10923 | ||
10924 | $as_echo "#define HAVE_AVAHI 1" >>confdefs.h | |
10925 | ||
10926 | ||
10927 | fi | |
10928 | ||
10929 | else | |
10930 | have_avahi=no | |
10931 | fi | |
10932 | ||
10933 | if test "${have_avahi}" = "yes"; then | |
10934 | HAVE_AVAHI_TRUE= | |
10935 | HAVE_AVAHI_FALSE='#' | |
10936 | else | |
10937 | HAVE_AVAHI_TRUE='#' | |
10938 | HAVE_AVAHI_FALSE= | |
10939 | fi | |
10940 | ||
10941 | ||
10942 | if test "${have_avahi}" != "yes"; then | |
10943 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some compile-server functionality will be restricted, cannot find avahi development files" >&5 | |
10944 | $as_echo "$as_me: WARNING: some compile-server functionality will be restricted, cannot find avahi development files" >&2;} | |
10945 | fi | |
10946 | ||
1087b83f | 10947 | |
2ed04863 WC |
10948 | |
10949 | # Check whether --with-rpm was given. | |
1ef0423a | 10950 | if test "${with_rpm+set}" = set; then : |
2ed04863 WC |
10951 | withval=$with_rpm; |
10952 | else | |
10953 | with_rpm="auto" | |
10954 | fi | |
10955 | ||
bcfa72ed | 10956 | if test "$with_rpm" != "no"; then |
1ef0423a | 10957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmtsInitIterator in -lrpm" >&5 |
bcfa72ed | 10958 | $as_echo_n "checking for rpmtsInitIterator in -lrpm... " >&6; } |
c3de29bd | 10959 | if ${ac_cv_lib_rpm_rpmtsInitIterator+:} false; then : |
bcfa72ed | 10960 | $as_echo_n "(cached) " >&6 |
e6364d79 | 10961 | else |
bcfa72ed FCE |
10962 | ac_check_lib_save_LIBS=$LIBS |
10963 | LIBS="-lrpm $LIBS" | |
1ef0423a | 10964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2ed04863 WC |
10965 | /* end confdefs.h. */ |
10966 | ||
bcfa72ed FCE |
10967 | /* Override any GCC internal prototype to avoid an error. |
10968 | Use char because int might match the return type of a GCC | |
10969 | builtin and then its argument prototype would still apply. */ | |
10970 | #ifdef __cplusplus | |
10971 | extern "C" | |
10972 | #endif | |
10973 | char rpmtsInitIterator (); | |
2ed04863 WC |
10974 | int |
10975 | main () | |
10976 | { | |
bcfa72ed | 10977 | return rpmtsInitIterator (); |
2ed04863 WC |
10978 | ; |
10979 | return 0; | |
10980 | } | |
10981 | _ACEOF | |
1ef0423a | 10982 | if ac_fn_c_try_link "$LINENO"; then : |
5e5aee9f FCE |
10983 | ac_cv_lib_rpm_rpmtsInitIterator=yes |
10984 | else | |
1ef0423a | 10985 | ac_cv_lib_rpm_rpmtsInitIterator=no |
5e5aee9f | 10986 | fi |
1ef0423a FCE |
10987 | rm -f core conftest.err conftest.$ac_objext \ |
10988 | conftest$ac_exeext conftest.$ac_ext | |
5e5aee9f FCE |
10989 | LIBS=$ac_check_lib_save_LIBS |
10990 | fi | |
1ef0423a | 10991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpm_rpmtsInitIterator" >&5 |
5e5aee9f | 10992 | $as_echo "$ac_cv_lib_rpm_rpmtsInitIterator" >&6; } |
c3de29bd | 10993 | if test "x$ac_cv_lib_rpm_rpmtsInitIterator" = xyes; then : |
5e5aee9f | 10994 | |
12c1a007 | 10995 | |
1ef0423a | 10996 | $as_echo "#define HAVE_LIBRPM 1" >>confdefs.h |
12c1a007 | 10997 | |
f02c2e47 | 10998 | stap_LIBS="$stap_LIBS -lc -lrpm" |
12c1a007 | 10999 | have_librpm="yes" |
7f9ad862 SC |
11000 | else |
11001 | have_librpm="no" | |
2ed04863 | 11002 | fi |
e6364d79 | 11003 | |
529073d0 FCE |
11004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmdbNextIterator in -lrpmdb" >&5 |
11005 | $as_echo_n "checking for rpmdbNextIterator in -lrpmdb... " >&6; } | |
11006 | if ${ac_cv_lib_rpmdb_rpmdbNextIterator+:} false; then : | |
11007 | $as_echo_n "(cached) " >&6 | |
11008 | else | |
11009 | ac_check_lib_save_LIBS=$LIBS | |
11010 | LIBS="-lrpmdb $LIBS" | |
11011 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11012 | /* end confdefs.h. */ | |
11013 | ||
11014 | /* Override any GCC internal prototype to avoid an error. | |
11015 | Use char because int might match the return type of a GCC | |
11016 | builtin and then its argument prototype would still apply. */ | |
11017 | #ifdef __cplusplus | |
11018 | extern "C" | |
11019 | #endif | |
11020 | char rpmdbNextIterator (); | |
11021 | int | |
11022 | main () | |
11023 | { | |
11024 | return rpmdbNextIterator (); | |
11025 | ; | |
11026 | return 0; | |
11027 | } | |
11028 | _ACEOF | |
11029 | if ac_fn_c_try_link "$LINENO"; then : | |
11030 | ac_cv_lib_rpmdb_rpmdbNextIterator=yes | |
11031 | else | |
11032 | ac_cv_lib_rpmdb_rpmdbNextIterator=no | |
11033 | fi | |
11034 | rm -f core conftest.err conftest.$ac_objext \ | |
11035 | conftest$ac_exeext conftest.$ac_ext | |
11036 | LIBS=$ac_check_lib_save_LIBS | |
11037 | fi | |
11038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpmdb_rpmdbNextIterator" >&5 | |
11039 | $as_echo "$ac_cv_lib_rpmdb_rpmdbNextIterator" >&6; } | |
11040 | if test "x$ac_cv_lib_rpmdb_rpmdbNextIterator" = xyes; then : | |
11041 | ||
11042 | stap_LIBS="$stap_LIBS -lrpmdb" | |
11043 | fi | |
11044 | ||
44edbcd6 JS |
11045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmFreeCrypto in -lrpmio" >&5 |
11046 | $as_echo_n "checking for rpmFreeCrypto in -lrpmio... " >&6; } | |
c3de29bd | 11047 | if ${ac_cv_lib_rpmio_rpmFreeCrypto+:} false; then : |
44edbcd6 JS |
11048 | $as_echo_n "(cached) " >&6 |
11049 | else | |
11050 | ac_check_lib_save_LIBS=$LIBS | |
11051 | LIBS="-lrpmio $LIBS" | |
11052 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11053 | /* end confdefs.h. */ | |
11054 | ||
11055 | /* Override any GCC internal prototype to avoid an error. | |
11056 | Use char because int might match the return type of a GCC | |
11057 | builtin and then its argument prototype would still apply. */ | |
11058 | #ifdef __cplusplus | |
11059 | extern "C" | |
11060 | #endif | |
11061 | char rpmFreeCrypto (); | |
11062 | int | |
11063 | main () | |
11064 | { | |
11065 | return rpmFreeCrypto (); | |
11066 | ; | |
11067 | return 0; | |
11068 | } | |
11069 | _ACEOF | |
11070 | if ac_fn_c_try_link "$LINENO"; then : | |
11071 | ac_cv_lib_rpmio_rpmFreeCrypto=yes | |
11072 | else | |
11073 | ac_cv_lib_rpmio_rpmFreeCrypto=no | |
11074 | fi | |
11075 | rm -f core conftest.err conftest.$ac_objext \ | |
11076 | conftest$ac_exeext conftest.$ac_ext | |
11077 | LIBS=$ac_check_lib_save_LIBS | |
11078 | fi | |
11079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpmio_rpmFreeCrypto" >&5 | |
11080 | $as_echo "$ac_cv_lib_rpmio_rpmFreeCrypto" >&6; } | |
c3de29bd | 11081 | if test "x$ac_cv_lib_rpmio_rpmFreeCrypto" = xyes; then : |
44edbcd6 JS |
11082 | |
11083 | ||
11084 | $as_echo "#define HAVE_LIBRPMIO 1" >>confdefs.h | |
11085 | ||
f02c2e47 | 11086 | stap_LIBS="$stap_LIBS -lc -lrpmio" |
44edbcd6 JS |
11087 | have_librpmio="yes" |
11088 | else | |
11089 | have_librpmio="no" | |
11090 | fi | |
11091 | ||
bcfa72ed | 11092 | if test "x$have_librpm" != "xyes" -a "$with_rpm" == "yes"; then |
5d4aa1f5 | 11093 | as_fn_error $? "cannot find librpm" "$LINENO" 5 |
2ed04863 | 11094 | fi |
44edbcd6 JS |
11095 | if test "x$have_librpmio" != "xyes" -a "$with_rpm" == "yes"; then |
11096 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find librpmio" >&5 | |
11097 | $as_echo "$as_me: WARNING: cannot find librpmio" >&2;} | |
11098 | fi | |
2ed04863 WC |
11099 | fi |
11100 | ||
9ac12b89 DS |
11101 | LIBS_no_readline=$LIBS |
11102 | ||
11103 | have_libreadline="no" | |
11104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 | |
11105 | $as_echo_n "checking how to link readline libs... " >&6; } | |
11106 | for libtermcap in "" tinfo ncursesw ncurses curses termcap; do | |
11107 | if test -z "$libtermcap"; then | |
11108 | READLINE_LIBS="-lreadline" | |
11109 | else | |
11110 | READLINE_LIBS="-lreadline -l$libtermcap" | |
11111 | fi | |
11112 | LIBS="$READLINE_LIBS $LIBS_no_readline" | |
11113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11114 | /* end confdefs.h. */ | |
11115 | ||
11116 | /* Override any GCC internal prototype to avoid an error. | |
11117 | Use char because int might match the return type of a GCC | |
11118 | builtin and then its argument prototype would still apply. */ | |
11119 | #ifdef __cplusplus | |
11120 | extern "C" | |
11121 | #endif | |
11122 | char readline (); | |
11123 | int | |
11124 | main () | |
11125 | { | |
11126 | return readline (); | |
11127 | ; | |
11128 | return 0; | |
11129 | } | |
11130 | _ACEOF | |
11131 | if ac_fn_c_try_link "$LINENO"; then : | |
11132 | have_libreadline="yes" | |
11133 | fi | |
11134 | rm -f core conftest.err conftest.$ac_objext \ | |
11135 | conftest$ac_exeext conftest.$ac_ext | |
11136 | if test "$have_libreadline" = "yes"; then | |
11137 | break | |
11138 | fi | |
11139 | done | |
11140 | if test "$have_libreadline" = "no"; then | |
11141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
11142 | $as_echo "none" >&6; } | |
16314eed | 11143 | READLINE_LIBS="" |
9ac12b89 DS |
11144 | else |
11145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 | |
11146 | $as_echo "$READLINE_LIBS" >&6; } | |
11147 | ||
9ac12b89 DS |
11148 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h |
11149 | ||
11150 | fi | |
16314eed | 11151 | |
9ac12b89 DS |
11152 | if test "$have_libreadline" == "yes"; then |
11153 | HAVE_LIBREADLINE_TRUE= | |
11154 | HAVE_LIBREADLINE_FALSE='#' | |
11155 | else | |
11156 | HAVE_LIBREADLINE_TRUE='#' | |
11157 | HAVE_LIBREADLINE_FALSE= | |
11158 | fi | |
11159 | ||
11160 | ||
11161 | LIBS=$LIBS_no_readline | |
2ed04863 | 11162 | |
0a742545 FCE |
11163 | |
11164 | # Check whether --with-python3 was given. | |
11165 | if test "${with_python3+set}" = set; then : | |
11166 | withval=$with_python3; | |
11167 | fi | |
11168 | ||
11169 | if test "x$with_python3" = "xyes"; then : | |
e5d623b1 DS |
11170 | if test -z "$PYTHON3"; then : |
11171 | as_fn_error $? "python version 3 is required" "$LINENO" 5 | |
11172 | else | |
11173 | preferred_python=$PYTHON3 | |
0a742545 | 11174 | |
e5d623b1 | 11175 | fi |
0a742545 | 11176 | else |
e5d623b1 DS |
11177 | if test "x$PYTHON" = "x:"; then : |
11178 | as_fn_error $? "python version 2 is required" "$LINENO" 5 | |
11179 | else | |
11180 | preferred_python=$PYTHON | |
0a742545 FCE |
11181 | |
11182 | fi | |
e5d623b1 | 11183 | fi |
0a742545 | 11184 | |
e8f3c2c2 DS |
11185 | build_elfutils=no |
11186 | ||
7fbd9d09 | 11187 | # Check whether --with-elfutils was given. |
1ef0423a | 11188 | if test "${with_elfutils+set}" = set; then : |
7fbd9d09 | 11189 | withval=$with_elfutils; |
e8f3c2c2 | 11190 | case "$with_elfutils" in |
5d4aa1f5 | 11191 | yes) as_fn_error $? "--with-elfutils requires an argument" "$LINENO" 5 ;; |
e8f3c2c2 DS |
11192 | ''|no) ;; |
11193 | *) build_elfutils=yes ;; | |
11194 | esac | |
7fbd9d09 | 11195 | fi |
e8f3c2c2 | 11196 | |
7fbd9d09 | 11197 | if test $build_elfutils = yes; then |
e8f3c2c2 DS |
11198 | BUILD_ELFUTILS_TRUE= |
11199 | BUILD_ELFUTILS_FALSE='#' | |
11200 | else | |
11201 | BUILD_ELFUTILS_TRUE='#' | |
11202 | BUILD_ELFUTILS_FALSE= | |
11203 | fi | |
11204 | ||
1ef0423a | 11205 | elfutils_abs_srcdir=`if test $build_elfutils = yes; then : |
e8f3c2c2 | 11206 | cd $with_elfutils && pwd |
1ef0423a | 11207 | fi` |
e8f3c2c2 DS |
11208 | |
11209 | ||
efa6ba96 PP |
11210 | if test $enable_translator = yes; then |
11211 | if test $build_elfutils = no; then | |
7e8210ae | 11212 | # Need libdwfl-capable recent elfutils http://elfutils.org/ |
c14263d8 FCE |
11213 | |
11214 | # On modern debian/ubuntu, libebl has been merged into libdw | |
11215 | # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=457543 | |
11216 | save_LIBS="$LIBS" | |
11217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ebl_get_elfmachine in -lebl" >&5 | |
11218 | $as_echo_n "checking for ebl_get_elfmachine in -lebl... " >&6; } | |
c3de29bd | 11219 | if ${ac_cv_lib_ebl_ebl_get_elfmachine+:} false; then : |
c14263d8 FCE |
11220 | $as_echo_n "(cached) " >&6 |
11221 | else | |
11222 | ac_check_lib_save_LIBS=$LIBS | |
11223 | LIBS="-lebl $LIBS" | |
11224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11225 | /* end confdefs.h. */ | |
11226 | ||
11227 | /* Override any GCC internal prototype to avoid an error. | |
11228 | Use char because int might match the return type of a GCC | |
11229 | builtin and then its argument prototype would still apply. */ | |
11230 | #ifdef __cplusplus | |
11231 | extern "C" | |
11232 | #endif | |
11233 | char ebl_get_elfmachine (); | |
11234 | int | |
11235 | main () | |
11236 | { | |
11237 | return ebl_get_elfmachine (); | |
11238 | ; | |
11239 | return 0; | |
11240 | } | |
11241 | _ACEOF | |
11242 | if ac_fn_c_try_link "$LINENO"; then : | |
11243 | ac_cv_lib_ebl_ebl_get_elfmachine=yes | |
11244 | else | |
11245 | ac_cv_lib_ebl_ebl_get_elfmachine=no | |
11246 | fi | |
11247 | rm -f core conftest.err conftest.$ac_objext \ | |
11248 | conftest$ac_exeext conftest.$ac_ext | |
11249 | LIBS=$ac_check_lib_save_LIBS | |
11250 | fi | |
11251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ebl_ebl_get_elfmachine" >&5 | |
11252 | $as_echo "$ac_cv_lib_ebl_ebl_get_elfmachine" >&6; } | |
c3de29bd | 11253 | if test "x$ac_cv_lib_ebl_ebl_get_elfmachine" = xyes; then : |
c14263d8 FCE |
11254 | ebl_LIBS=-lebl |
11255 | else | |
11256 | ebl_LIBS= | |
11257 | fi | |
11258 | ||
11259 | LIBS="$save_LIBS" | |
11260 | ||
efa6ba96 | 11261 | save_LIBS="$LIBS" |
1ef0423a | 11262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dwfl_module_getsym in -ldw" >&5 |
0710d850 | 11263 | $as_echo_n "checking for dwfl_module_getsym in -ldw... " >&6; } |
c3de29bd | 11264 | if ${ac_cv_lib_dw_dwfl_module_getsym+:} false; then : |
0710d850 | 11265 | $as_echo_n "(cached) " >&6 |
4645fadb JS |
11266 | else |
11267 | ac_check_lib_save_LIBS=$LIBS | |
c14263d8 | 11268 | LIBS="-ldw -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf $LIBS" |
1ef0423a | 11269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4645fadb JS |
11270 | /* end confdefs.h. */ |
11271 | ||
7fbd9d09 FCE |
11272 | /* Override any GCC internal prototype to avoid an error. |
11273 | Use char because int might match the return type of a GCC | |
11274 | builtin and then its argument prototype would still apply. */ | |
4645fadb JS |
11275 | #ifdef __cplusplus |
11276 | extern "C" | |
11277 | #endif | |
11278 | char dwfl_module_getsym (); | |
11279 | int | |
11280 | main () | |
11281 | { | |
7fbd9d09 | 11282 | return dwfl_module_getsym (); |
4645fadb JS |
11283 | ; |
11284 | return 0; | |
11285 | } | |
11286 | _ACEOF | |
1ef0423a | 11287 | if ac_fn_c_try_link "$LINENO"; then : |
4645fadb JS |
11288 | ac_cv_lib_dw_dwfl_module_getsym=yes |
11289 | else | |
1ef0423a | 11290 | ac_cv_lib_dw_dwfl_module_getsym=no |
4645fadb | 11291 | fi |
1ef0423a FCE |
11292 | rm -f core conftest.err conftest.$ac_objext \ |
11293 | conftest$ac_exeext conftest.$ac_ext | |
4645fadb JS |
11294 | LIBS=$ac_check_lib_save_LIBS |
11295 | fi | |
1ef0423a | 11296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwfl_module_getsym" >&5 |
0710d850 | 11297 | $as_echo "$ac_cv_lib_dw_dwfl_module_getsym" >&6; } |
c3de29bd | 11298 | if test "x$ac_cv_lib_dw_dwfl_module_getsym" = xyes; then : |
4645fadb JS |
11299 | cat >>confdefs.h <<_ACEOF |
11300 | #define HAVE_LIBDW 1 | |
11301 | _ACEOF | |
11302 | ||
11303 | LIBS="-ldw $LIBS" | |
11304 | ||
11305 | else | |
11306 | ||
5d4aa1f5 | 11307 | as_fn_error $? "missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" "$LINENO" 5 |
4645fadb JS |
11308 | fi |
11309 | ||
2a885a4a MW |
11310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dwarf_next_unit in -ldw" >&5 |
11311 | $as_echo_n "checking for dwarf_next_unit in -ldw... " >&6; } | |
11312 | if ${ac_cv_lib_dw_dwarf_next_unit+:} false; then : | |
0710d850 | 11313 | $as_echo_n "(cached) " >&6 |
87cb1275 MW |
11314 | else |
11315 | ac_check_lib_save_LIBS=$LIBS | |
c14263d8 | 11316 | LIBS="-ldw -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf $LIBS" |
1ef0423a | 11317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
87cb1275 MW |
11318 | /* end confdefs.h. */ |
11319 | ||
7fbd9d09 FCE |
11320 | /* Override any GCC internal prototype to avoid an error. |
11321 | Use char because int might match the return type of a GCC | |
11322 | builtin and then its argument prototype would still apply. */ | |
87cb1275 MW |
11323 | #ifdef __cplusplus |
11324 | extern "C" | |
11325 | #endif | |
2a885a4a | 11326 | char dwarf_next_unit (); |
87cb1275 MW |
11327 | int |
11328 | main () | |
11329 | { | |
2a885a4a | 11330 | return dwarf_next_unit (); |
87cb1275 MW |
11331 | ; |
11332 | return 0; | |
11333 | } | |
11334 | _ACEOF | |
1ef0423a | 11335 | if ac_fn_c_try_link "$LINENO"; then : |
2a885a4a | 11336 | ac_cv_lib_dw_dwarf_next_unit=yes |
87cb1275 | 11337 | else |
2a885a4a | 11338 | ac_cv_lib_dw_dwarf_next_unit=no |
87cb1275 | 11339 | fi |
1ef0423a FCE |
11340 | rm -f core conftest.err conftest.$ac_objext \ |
11341 | conftest$ac_exeext conftest.$ac_ext | |
87cb1275 MW |
11342 | LIBS=$ac_check_lib_save_LIBS |
11343 | fi | |
2a885a4a MW |
11344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwarf_next_unit" >&5 |
11345 | $as_echo "$ac_cv_lib_dw_dwarf_next_unit" >&6; } | |
11346 | if test "x$ac_cv_lib_dw_dwarf_next_unit" = xyes; then : | |
87cb1275 MW |
11347 | cat >>confdefs.h <<_ACEOF |
11348 | #define HAVE_LIBDW 1 | |
11349 | _ACEOF | |
11350 | ||
11351 | LIBS="-ldw $LIBS" | |
11352 | ||
11353 | else | |
11354 | ||
2a885a4a | 11355 | as_fn_error $? "elfutils, libdw too old, need 0.148+" "$LINENO" 5 |
87cb1275 MW |
11356 | fi |
11357 | ||
c14263d8 | 11358 | stap_LIBS="$stap_LIBS -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf" |
efa6ba96 PP |
11359 | LIBS="$save_LIBS" |
11360 | else | |
11361 | # We built our own and stap_LDFLAGS points at the install. | |
12c1a007 | 11362 | stap_LIBS="$stap_LIBS -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf" |
efa6ba96 | 11363 | fi |
4645fadb JS |
11364 | fi |
11365 | ||
6b1a0274 | 11366 | |
1ef0423a | 11367 | { $as_echo "$as_me:${as_lineno-$LINENO}: stap will link $stap_LIBS" >&5 |
0710d850 | 11368 | $as_echo "$as_me: stap will link $stap_LIBS" >&6;} |
c3a3c0c9 | 11369 | |
97859b9d JS |
11370 | # staprun has more modest libelf needs |
11371 | if test $build_elfutils = no; then | |
97859b9d JS |
11372 | save_LIBS="$LIBS" |
11373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshdrstrndx in -lelf" >&5 | |
11374 | $as_echo_n "checking for elf_getshdrstrndx in -lelf... " >&6; } | |
11375 | if ${ac_cv_lib_elf_elf_getshdrstrndx+:} false; then : | |
11376 | $as_echo_n "(cached) " >&6 | |
11377 | else | |
11378 | ac_check_lib_save_LIBS=$LIBS | |
11379 | LIBS="-lelf $LIBS" | |
11380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11381 | /* end confdefs.h. */ | |
11382 | ||
11383 | /* Override any GCC internal prototype to avoid an error. | |
11384 | Use char because int might match the return type of a GCC | |
11385 | builtin and then its argument prototype would still apply. */ | |
11386 | #ifdef __cplusplus | |
11387 | extern "C" | |
11388 | #endif | |
11389 | char elf_getshdrstrndx (); | |
11390 | int | |
11391 | main () | |
11392 | { | |
11393 | return elf_getshdrstrndx (); | |
11394 | ; | |
11395 | return 0; | |
11396 | } | |
11397 | _ACEOF | |
11398 | if ac_fn_c_try_link "$LINENO"; then : | |
11399 | ac_cv_lib_elf_elf_getshdrstrndx=yes | |
11400 | else | |
11401 | ac_cv_lib_elf_elf_getshdrstrndx=no | |
11402 | fi | |
11403 | rm -f core conftest.err conftest.$ac_objext \ | |
11404 | conftest$ac_exeext conftest.$ac_ext | |
11405 | LIBS=$ac_check_lib_save_LIBS | |
11406 | fi | |
11407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_getshdrstrndx" >&5 | |
11408 | $as_echo "$ac_cv_lib_elf_elf_getshdrstrndx" >&6; } | |
11409 | if test "x$ac_cv_lib_elf_elf_getshdrstrndx" = xyes; then : | |
94eb87d1 DS |
11410 | cat >>confdefs.h <<_ACEOF |
11411 | #define HAVE_LIBELF 1 | |
11412 | _ACEOF | |
97859b9d | 11413 | |
94eb87d1 | 11414 | LIBS="-lelf $LIBS" |
97859b9d | 11415 | |
94eb87d1 | 11416 | else |
97859b9d | 11417 | |
94eb87d1 DS |
11418 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
11419 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11420 | as_fn_error $? "libelf too old, need 0.142+ | |
11421 | See \`config.log' for more details" "$LINENO" 5; } | |
97859b9d JS |
11422 | fi |
11423 | ||
94eb87d1 | 11424 | staprun_LIBS="$staprun_LIBS -lelf" |
97859b9d JS |
11425 | LIBS="$save_LIBS" |
11426 | else | |
11427 | # We built our own and staprun_LDFLAGS points at the install. | |
11428 | staprun_LIBS="$staprun_LIBS -lelf" | |
11429 | fi | |
11430 | ||
11431 | ||
11432 | { $as_echo "$as_me:${as_lineno-$LINENO}: staprun will link $staprun_LIBS" >&5 | |
11433 | $as_echo "$as_me: staprun will link $staprun_LIBS" >&6;} | |
11434 | ||
cbe7ea07 | 11435 | |
69c68955 FCE |
11436 | date=`date +%Y-%m-%d` |
11437 | ||
11438 | cat >>confdefs.h <<_ACEOF | |
11439 | #define DATE "$date" | |
11440 | _ACEOF | |
11441 | ||
82fab474 | 11442 | DATE="$date" |
69c68955 FCE |
11443 | |
11444 | ||
47f390f9 FCE |
11445 | # Before PR4037, we used to arrange to pass CFLAGS+=-m64 for a staprun |
11446 | # being compiled on 32-bit userspace but running against 64-bit kernels. | |
11447 | # This is no longer necessary. | |
5566993b | 11448 | |
7fbd9d09 | 11449 | ac_ext=cpp |
3bf6ac45 TM |
11450 | ac_cpp='$CXXCPP $CPPFLAGS' |
11451 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11452 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11453 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11454 | ||
0c09722b | 11455 | # Use boost::string_ref if available |
62cb4be9 FCE |
11456 | ac_ext=cpp |
11457 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11458 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11459 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11460 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
11462 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
11463 | if test -z "$CXXCPP"; then | |
11464 | if ${ac_cv_prog_CXXCPP+:} false; then : | |
11465 | $as_echo_n "(cached) " >&6 | |
11466 | else | |
11467 | # Double quotes because CXXCPP needs to be expanded | |
11468 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
11469 | do | |
11470 | ac_preproc_ok=false | |
11471 | for ac_cxx_preproc_warn_flag in '' yes | |
11472 | do | |
11473 | # Use a header file that comes with gcc, so configuring glibc | |
11474 | # with a fresh cross-compiler works. | |
11475 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11476 | # <limits.h> exists even on freestanding compilers. | |
11477 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11478 | # not just through cpp. "Syntax error" is here to catch this case. | |
11479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11480 | /* end confdefs.h. */ | |
11481 | #ifdef __STDC__ | |
11482 | # include <limits.h> | |
11483 | #else | |
11484 | # include <assert.h> | |
11485 | #endif | |
11486 | Syntax error | |
11487 | _ACEOF | |
11488 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
11489 | ||
11490 | else | |
11491 | # Broken: fails on valid input. | |
11492 | continue | |
11493 | fi | |
11494 | rm -f conftest.err conftest.i conftest.$ac_ext | |
11495 | ||
11496 | # OK, works on sane cases. Now check whether nonexistent headers | |
11497 | # can be detected and how. | |
11498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11499 | /* end confdefs.h. */ | |
11500 | #include <ac_nonexistent.h> | |
11501 | _ACEOF | |
11502 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
11503 | # Broken: success on invalid input. | |
11504 | continue | |
11505 | else | |
11506 | # Passes both tests. | |
11507 | ac_preproc_ok=: | |
11508 | break | |
11509 | fi | |
11510 | rm -f conftest.err conftest.i conftest.$ac_ext | |
11511 | ||
11512 | done | |
11513 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11514 | rm -f conftest.i conftest.err conftest.$ac_ext | |
11515 | if $ac_preproc_ok; then : | |
11516 | break | |
11517 | fi | |
11518 | ||
11519 | done | |
11520 | ac_cv_prog_CXXCPP=$CXXCPP | |
11521 | ||
11522 | fi | |
11523 | CXXCPP=$ac_cv_prog_CXXCPP | |
11524 | else | |
11525 | ac_cv_prog_CXXCPP=$CXXCPP | |
11526 | fi | |
11527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
11528 | $as_echo "$CXXCPP" >&6; } | |
11529 | ac_preproc_ok=false | |
11530 | for ac_cxx_preproc_warn_flag in '' yes | |
11531 | do | |
11532 | # Use a header file that comes with gcc, so configuring glibc | |
11533 | # with a fresh cross-compiler works. | |
11534 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11535 | # <limits.h> exists even on freestanding compilers. | |
11536 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11537 | # not just through cpp. "Syntax error" is here to catch this case. | |
11538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11539 | /* end confdefs.h. */ | |
11540 | #ifdef __STDC__ | |
11541 | # include <limits.h> | |
11542 | #else | |
11543 | # include <assert.h> | |
11544 | #endif | |
11545 | Syntax error | |
11546 | _ACEOF | |
11547 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
11548 | ||
11549 | else | |
11550 | # Broken: fails on valid input. | |
11551 | continue | |
11552 | fi | |
11553 | rm -f conftest.err conftest.i conftest.$ac_ext | |
11554 | ||
11555 | # OK, works on sane cases. Now check whether nonexistent headers | |
11556 | # can be detected and how. | |
11557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11558 | /* end confdefs.h. */ | |
11559 | #include <ac_nonexistent.h> | |
11560 | _ACEOF | |
11561 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
11562 | # Broken: success on invalid input. | |
11563 | continue | |
11564 | else | |
11565 | # Passes both tests. | |
11566 | ac_preproc_ok=: | |
11567 | break | |
11568 | fi | |
11569 | rm -f conftest.err conftest.i conftest.$ac_ext | |
11570 | ||
11571 | done | |
11572 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11573 | rm -f conftest.i conftest.err conftest.$ac_ext | |
11574 | if $ac_preproc_ok; then : | |
11575 | ||
11576 | else | |
11577 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
11578 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11579 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check | |
11580 | See \`config.log' for more details" "$LINENO" 5; } | |
11581 | fi | |
11582 | ||
11583 | ac_ext=cpp | |
11584 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11585 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11586 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11587 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11588 | ||
11589 | ||
3dd76f53 AJ |
11590 | for ac_header in boost/utility/string_ref.hpp |
11591 | do : | |
11592 | ac_fn_cxx_check_header_mongrel "$LINENO" "boost/utility/string_ref.hpp" "ac_cv_header_boost_utility_string_ref_hpp" "$ac_includes_default" | |
11593 | if test "x$ac_cv_header_boost_utility_string_ref_hpp" = xyes; then : | |
11594 | cat >>confdefs.h <<_ACEOF | |
11595 | #define HAVE_BOOST_UTILITY_STRING_REF_HPP 1 | |
11596 | _ACEOF | |
11597 | ||
11598 | fi | |
11599 | ||
11600 | done | |
11601 | ||
1ef0423a FCE |
11602 | ac_ext=c |
11603 | ac_cpp='$CPP $CPPFLAGS' | |
11604 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11605 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11606 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3bf6ac45 TM |
11607 | |
11608 | ||
e016a49a | 11609 | |
138bbe90 | 11610 | # Check for Dyninst headers and libraries |
138bbe90 JS |
11611 | |
11612 | # Check whether --with-dyninst was given. | |
11613 | if test "${with_dyninst+set}" = set; then : | |
11614 | withval=$with_dyninst; | |
eab44db5 FCE |
11615 | fi |
11616 | ||
11617 | ||
138bbe90 | 11618 | case "$with_dyninst" in |
eab44db5 FCE |
11619 | no) ;; |
11620 | ''|yes) # Try a simple-minded distro search | |
ffbe6348 JS |
11621 | DYNINST_CXXFLAGS="-I/usr/include/dyninst" |
11622 | DYNINST_LDFLAGS="-L/usr/lib64/dyninst -L/usr/lib/dyninst" # XXX both lib paths!?! | |
11623 | ;; | |
11624 | *) # Use paths in the user-specified prefix | |
11625 | DYNINST_CXXFLAGS="-I$with_dyninst/include" | |
3aeea85c | 11626 | DYNINST_LDFLAGS="-L$with_dyninst/lib/" # XXX need lib64 too? |
ffbe6348 JS |
11627 | ;; |
11628 | esac | |
e0a17c00 | 11629 | if test "$with_dyninst" != "no"; then |
ffbe6348 | 11630 | ac_ext=cpp |
138bbe90 JS |
11631 | ac_cpp='$CXXCPP $CPPFLAGS' |
11632 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11633 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11634 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11635 | ||
ffbe6348 JS |
11636 | old_CPPFLAGS="$CPPFLAGS" |
11637 | CPPFLAGS="$CPPFLAGS $DYNINST_CXXFLAGS" | |
2494675c DS |
11638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dyninst support" >&5 |
11639 | $as_echo "$as_me: checking dyninst support" >&6;} | |
ffbe6348 | 11640 | for ac_header in BPatch_object.h |
138bbe90 JS |
11641 | do : |
11642 | ac_fn_cxx_check_header_mongrel "$LINENO" "BPatch_object.h" "ac_cv_header_BPatch_object_h" "$ac_includes_default" | |
11643 | if test "x$ac_cv_header_BPatch_object_h" = xyes; then : | |
11644 | cat >>confdefs.h <<_ACEOF | |
11645 | #define HAVE_BPATCH_OBJECT_H 1 | |
11646 | _ACEOF | |
11647 | ||
138bbe90 JS |
11648 | |
11649 | ||
a3524565 JS |
11650 | |
11651 | $as_echo "#define HAVE_DYNINST 1" >>confdefs.h | |
11652 | ||
ffbe6348 | 11653 | have_dyninst=yes |
2494675c DS |
11654 | { $as_echo "$as_me:${as_lineno-$LINENO}: dyninst support available" >&5 |
11655 | $as_echo "$as_me: dyninst support available" >&6;} | |
138bbe90 JS |
11656 | fi |
11657 | ||
11658 | done | |
11659 | ||
e0a17c00 | 11660 | if test -n "$with_dyninst" -a "$have_dyninst" != "yes"; then |
2494675c DS |
11661 | as_fn_error $? "Dyninst does not appear to be usable" "$LINENO" 5 |
11662 | fi | |
ffbe6348 JS |
11663 | CPPFLAGS="$old_CPPFLAGS" |
11664 | ac_ext=c | |
138bbe90 JS |
11665 | ac_cpp='$CPP $CPPFLAGS' |
11666 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11667 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11668 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11669 | ||
ffbe6348 | 11670 | fi |
138bbe90 JS |
11671 | if test "${have_dyninst}" = "yes"; then |
11672 | HAVE_DYNINST_TRUE= | |
11673 | HAVE_DYNINST_FALSE='#' | |
11674 | else | |
11675 | HAVE_DYNINST_TRUE='#' | |
11676 | HAVE_DYNINST_FALSE= | |
11677 | fi | |
11678 | ||
11679 | ||
11680 | ||
42f767d0 | 11681 | |
b0c670f4 FCE |
11682 | # Check whether --enable-virt was given. |
11683 | if test "${enable_virt+set}" = set; then : | |
11684 | enableval=$enable_virt; enable_virt=$enableval | |
11685 | else | |
11686 | enable_virt="check" | |
11687 | fi | |
11688 | ||
11689 | ||
11690 | ||
42f767d0 JL |
11691 | pkg_failed=no |
11692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvirt" >&5 | |
11693 | $as_echo_n "checking for libvirt... " >&6; } | |
11694 | ||
11695 | if test -n "$libvirt_CFLAGS"; then | |
11696 | pkg_cv_libvirt_CFLAGS="$libvirt_CFLAGS" | |
11697 | elif test -n "$PKG_CONFIG"; then | |
11698 | if test -n "$PKG_CONFIG" && \ | |
11699 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= 1.0.2\""; } >&5 | |
11700 | ($PKG_CONFIG --exists --print-errors "libvirt >= 1.0.2") 2>&5 | |
11701 | ac_status=$? | |
11702 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11703 | test $ac_status = 0; }; then | |
11704 | pkg_cv_libvirt_CFLAGS=`$PKG_CONFIG --cflags "libvirt >= 1.0.2" 2>/dev/null` | |
11705 | test "x$?" != "x0" && pkg_failed=yes | |
11706 | else | |
11707 | pkg_failed=yes | |
11708 | fi | |
11709 | else | |
11710 | pkg_failed=untried | |
11711 | fi | |
11712 | if test -n "$libvirt_LIBS"; then | |
11713 | pkg_cv_libvirt_LIBS="$libvirt_LIBS" | |
11714 | elif test -n "$PKG_CONFIG"; then | |
11715 | if test -n "$PKG_CONFIG" && \ | |
11716 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= 1.0.2\""; } >&5 | |
11717 | ($PKG_CONFIG --exists --print-errors "libvirt >= 1.0.2") 2>&5 | |
11718 | ac_status=$? | |
11719 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11720 | test $ac_status = 0; }; then | |
11721 | pkg_cv_libvirt_LIBS=`$PKG_CONFIG --libs "libvirt >= 1.0.2" 2>/dev/null` | |
11722 | test "x$?" != "x0" && pkg_failed=yes | |
11723 | else | |
11724 | pkg_failed=yes | |
11725 | fi | |
11726 | else | |
11727 | pkg_failed=untried | |
11728 | fi | |
11729 | ||
11730 | ||
11731 | ||
11732 | if test $pkg_failed = yes; then | |
11733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11734 | $as_echo "no" >&6; } | |
11735 | ||
11736 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11737 | _pkg_short_errors_supported=yes | |
11738 | else | |
11739 | _pkg_short_errors_supported=no | |
11740 | fi | |
11741 | if test $_pkg_short_errors_supported = yes; then | |
11742 | libvirt_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libvirt >= 1.0.2" 2>&1` | |
11743 | else | |
11744 | libvirt_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libvirt >= 1.0.2" 2>&1` | |
11745 | fi | |
11746 | # Put the nasty error message in config.log where it belongs | |
11747 | echo "$libvirt_PKG_ERRORS" >&5 | |
11748 | ||
11749 | have_libvirt=no | |
11750 | elif test $pkg_failed = untried; then | |
11751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11752 | $as_echo "no" >&6; } | |
11753 | have_libvirt=no | |
11754 | else | |
11755 | libvirt_CFLAGS=$pkg_cv_libvirt_CFLAGS | |
11756 | libvirt_LIBS=$pkg_cv_libvirt_LIBS | |
11757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11758 | $as_echo "yes" >&6; } | |
11759 | ||
11760 | have_libvirt=yes | |
11761 | ||
11762 | $as_echo "#define HAVE_LIBVIRT 1" >>confdefs.h | |
11763 | ||
11764 | ||
11765 | fi | |
11766 | if test "${have_libvirt}" = "yes"; then | |
11767 | HAVE_LIBVIRT_TRUE= | |
11768 | HAVE_LIBVIRT_FALSE='#' | |
11769 | else | |
11770 | HAVE_LIBVIRT_TRUE='#' | |
11771 | HAVE_LIBVIRT_FALSE= | |
11772 | fi | |
11773 | ||
11774 | ||
11775 | pkg_failed=no | |
11776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2" >&5 | |
11777 | $as_echo_n "checking for libxml2... " >&6; } | |
11778 | ||
11779 | if test -n "$libxml2_CFLAGS"; then | |
11780 | pkg_cv_libxml2_CFLAGS="$libxml2_CFLAGS" | |
11781 | elif test -n "$PKG_CONFIG"; then | |
11782 | if test -n "$PKG_CONFIG" && \ | |
11783 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5 | |
11784 | ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 | |
11785 | ac_status=$? | |
11786 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11787 | test $ac_status = 0; }; then | |
11788 | pkg_cv_libxml2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null` | |
11789 | test "x$?" != "x0" && pkg_failed=yes | |
11790 | else | |
11791 | pkg_failed=yes | |
11792 | fi | |
11793 | else | |
11794 | pkg_failed=untried | |
11795 | fi | |
11796 | if test -n "$libxml2_LIBS"; then | |
11797 | pkg_cv_libxml2_LIBS="$libxml2_LIBS" | |
11798 | elif test -n "$PKG_CONFIG"; then | |
11799 | if test -n "$PKG_CONFIG" && \ | |
11800 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5 | |
11801 | ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 | |
11802 | ac_status=$? | |
11803 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11804 | test $ac_status = 0; }; then | |
11805 | pkg_cv_libxml2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null` | |
11806 | test "x$?" != "x0" && pkg_failed=yes | |
11807 | else | |
11808 | pkg_failed=yes | |
11809 | fi | |
11810 | else | |
11811 | pkg_failed=untried | |
11812 | fi | |
11813 | ||
11814 | ||
11815 | ||
11816 | if test $pkg_failed = yes; then | |
11817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11818 | $as_echo "no" >&6; } | |
11819 | ||
11820 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11821 | _pkg_short_errors_supported=yes | |
11822 | else | |
11823 | _pkg_short_errors_supported=no | |
11824 | fi | |
11825 | if test $_pkg_short_errors_supported = yes; then | |
11826 | libxml2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1` | |
11827 | else | |
11828 | libxml2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1` | |
11829 | fi | |
11830 | # Put the nasty error message in config.log where it belongs | |
11831 | echo "$libxml2_PKG_ERRORS" >&5 | |
11832 | ||
11833 | have_libxml2=no | |
11834 | elif test $pkg_failed = untried; then | |
11835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11836 | $as_echo "no" >&6; } | |
11837 | have_libxml2=no | |
11838 | else | |
11839 | libxml2_CFLAGS=$pkg_cv_libxml2_CFLAGS | |
11840 | libxml2_LIBS=$pkg_cv_libxml2_LIBS | |
11841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11842 | $as_echo "yes" >&6; } | |
11843 | ||
11844 | have_libxml2=yes | |
11845 | ||
11846 | $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h | |
11847 | ||
11848 | ||
11849 | fi | |
11850 | if test "${have_libxml2}" = "yes"; then | |
11851 | HAVE_LIBXML2_TRUE= | |
11852 | HAVE_LIBXML2_FALSE='#' | |
11853 | else | |
11854 | HAVE_LIBXML2_TRUE='#' | |
11855 | HAVE_LIBXML2_FALSE= | |
11856 | fi | |
11857 | ||
11858 | ||
b0c670f4 FCE |
11859 | if test "$enable_virt" != "no"; then |
11860 | if test "x${have_libvirt}" != "xyes"; then | |
11861 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap virt support, cannot find libvirt headers" >&5 | |
11862 | $as_echo "$as_me: WARNING: will not build systemtap virt support, cannot find libvirt headers" >&2;} | |
11863 | fi | |
11864 | if test "x${have_libxml2}" != "xyes"; then | |
11865 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap virt support, cannot find xml2 headers" >&5 | |
11866 | $as_echo "$as_me: WARNING: will not build systemtap virt support, cannot find xml2 headers" >&2;} | |
11867 | fi | |
11868 | fi | |
11869 | if test "${have_libvirt}" == "yes" -a "${have_libxml2}" == "yes" -a "$enable_virt" != "no"; then | |
11870 | BUILD_VIRT_TRUE= | |
11871 | BUILD_VIRT_FALSE='#' | |
11872 | else | |
11873 | BUILD_VIRT_TRUE='#' | |
11874 | BUILD_VIRT_FALSE= | |
11875 | fi | |
11876 | ||
11877 | ||
11878 | ||
d7f07c29 DS |
11879 | # Check whether --with-python2-probes was given. |
11880 | if test "${with_python2_probes+set}" = set; then : | |
11881 | withval=$with_python2_probes; | |
c16501a1 DS |
11882 | fi |
11883 | ||
d7f07c29 DS |
11884 | have_python2_support=no |
11885 | if test "x$with_python2_probes" != "xno"; then : | |
11886 | pathless_python=$(basename "$PYTHON") | |
11887 | # Extract the first word of "${pathless_python}-config", so it can be a program name with args. | |
11888 | set dummy ${pathless_python}-config; ac_word=$2 | |
11889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11890 | $as_echo_n "checking for $ac_word... " >&6; } | |
11891 | if ${ac_cv_path_PYTHON_CONFIG+:} false; then : | |
11892 | $as_echo_n "(cached) " >&6 | |
11893 | else | |
11894 | case $PYTHON_CONFIG in | |
11895 | [\\/]* | ?:[\\/]*) | |
11896 | ac_cv_path_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test with a path. | |
11897 | ;; | |
11898 | *) | |
11899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11900 | for as_dir in $PATH | |
11901 | do | |
11902 | IFS=$as_save_IFS | |
11903 | test -z "$as_dir" && as_dir=. | |
11904 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11905 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11906 | ac_cv_path_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
11907 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11908 | break 2 | |
11909 | fi | |
11910 | done | |
11911 | done | |
11912 | IFS=$as_save_IFS | |
11913 | ||
11914 | test -z "$ac_cv_path_PYTHON_CONFIG" && ac_cv_path_PYTHON_CONFIG="no" | |
11915 | ;; | |
11916 | esac | |
11917 | fi | |
11918 | PYTHON_CONFIG=$ac_cv_path_PYTHON_CONFIG | |
11919 | if test -n "$PYTHON_CONFIG"; then | |
11920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5 | |
11921 | $as_echo "$PYTHON_CONFIG" >&6; } | |
11922 | else | |
11923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11924 | $as_echo "no" >&6; } | |
11925 | fi | |
11926 | ||
11927 | ||
11928 | if test "x$PYTHON_CONFIG" != "xno"; then : | |
11929 | PYTHON_CPPFLAGS=`$PYTHON_CONFIG --includes 2> /dev/null` | |
11930 | PYTHON_CPPFLAGS=$PYTHON_CPPFLAGS | |
11931 | ||
11932 | save_CPPFLAGS="$CPPFLAGS" | |
11933 | CPPFLAGS="$PYTHON_CPPFLAGS $CPPFLAGS" | |
11934 | { ac_cv_header_Python_h=; unset ac_cv_header_Python_h;} | |
11935 | for ac_header in Python.h | |
c16501a1 | 11936 | do : |
d7f07c29 DS |
11937 | ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default" |
11938 | if test "x$ac_cv_header_Python_h" = xyes; then : | |
c16501a1 | 11939 | cat >>confdefs.h <<_ACEOF |
d7f07c29 | 11940 | #define HAVE_PYTHON_H 1 |
c16501a1 | 11941 | _ACEOF |
effb39de | 11942 | have_python2_support=yes |
c16501a1 DS |
11943 | fi |
11944 | ||
11945 | done | |
11946 | ||
d7f07c29 DS |
11947 | CPPFLAGS="$save_CPPFLAGS" |
11948 | fi | |
c16501a1 | 11949 | fi |
effb39de | 11950 | if test "x$have_python2_support" = "xyes"; then : |
c16501a1 | 11951 | |
d7f07c29 | 11952 | $as_echo "#define HAVE_PYTHON2_PROBES 1" >>confdefs.h |
c16501a1 DS |
11953 | |
11954 | else | |
d7f07c29 DS |
11955 | if test "x$with_python2_probes" = "xyes"; then : |
11956 | as_fn_error $? "python version 2 probe support requested but not found" "$LINENO" 5 | |
c16501a1 DS |
11957 | fi |
11958 | ||
11959 | fi | |
effb39de | 11960 | if test "x$have_python2_support" = "xyes"; then |
d7f07c29 DS |
11961 | HAVE_PYTHON2_PROBES_TRUE= |
11962 | HAVE_PYTHON2_PROBES_FALSE='#' | |
11963 | else | |
11964 | HAVE_PYTHON2_PROBES_TRUE='#' | |
11965 | HAVE_PYTHON2_PROBES_FALSE= | |
11966 | fi | |
11967 | ||
11968 | ||
11969 | ||
11970 | # Check whether --with-python3-probes was given. | |
11971 | if test "${with_python3_probes+set}" = set; then : | |
11972 | withval=$with_python3_probes; | |
11973 | fi | |
11974 | ||
11975 | have_python3_support=no | |
11976 | if test "x$with_python3_probes" != "xno"; then : | |
11977 | pathless_python3=$(basename "$PYTHON3") | |
1d200591 DS |
11978 | if test "x${pathless_python3}" == "x"; then |
11979 | pathless_python3="python3" | |
11980 | fi | |
d7f07c29 DS |
11981 | # Extract the first word of "${pathless_python3}-config", so it can be a program name with args. |
11982 | set dummy ${pathless_python3}-config; ac_word=$2 | |
11983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11984 | $as_echo_n "checking for $ac_word... " >&6; } | |
11985 | if ${ac_cv_path_PYTHON3_CONFIG+:} false; then : | |
11986 | $as_echo_n "(cached) " >&6 | |
11987 | else | |
11988 | case $PYTHON3_CONFIG in | |
11989 | [\\/]* | ?:[\\/]*) | |
11990 | ac_cv_path_PYTHON3_CONFIG="$PYTHON3_CONFIG" # Let the user override the test with a path. | |
11991 | ;; | |
11992 | *) | |
11993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11994 | for as_dir in $PATH | |
11995 | do | |
11996 | IFS=$as_save_IFS | |
11997 | test -z "$as_dir" && as_dir=. | |
11998 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11999 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12000 | ac_cv_path_PYTHON3_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
12001 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12002 | break 2 | |
12003 | fi | |
12004 | done | |
12005 | done | |
12006 | IFS=$as_save_IFS | |
12007 | ||
12008 | test -z "$ac_cv_path_PYTHON3_CONFIG" && ac_cv_path_PYTHON3_CONFIG="no" | |
12009 | ;; | |
12010 | esac | |
12011 | fi | |
12012 | PYTHON3_CONFIG=$ac_cv_path_PYTHON3_CONFIG | |
12013 | if test -n "$PYTHON3_CONFIG"; then | |
12014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3_CONFIG" >&5 | |
12015 | $as_echo "$PYTHON3_CONFIG" >&6; } | |
c16501a1 | 12016 | else |
d7f07c29 DS |
12017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12018 | $as_echo "no" >&6; } | |
12019 | fi | |
12020 | ||
12021 | ||
12022 | if test "x$PYTHON3_CONFIG" != "xno"; then : | |
12023 | PYTHON3_CPPFLAGS=`$PYTHON3_CONFIG --includes 2> /dev/null` | |
12024 | PYTHON3_CPPFLAGS=$PYTHON3_CPPFLAGS | |
12025 | ||
12026 | save_CPPFLAGS="$CPPFLAGS" | |
12027 | CPPFLAGS="$PYTHON3_CPPFLAGS $CPPFLAGS" | |
12028 | { ac_cv_header_Python_h=; unset ac_cv_header_Python_h;} | |
12029 | for ac_header in Python.h | |
12030 | do : | |
12031 | ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default" | |
12032 | if test "x$ac_cv_header_Python_h" = xyes; then : | |
12033 | cat >>confdefs.h <<_ACEOF | |
12034 | #define HAVE_PYTHON_H 1 | |
12035 | _ACEOF | |
12036 | have_python3_support=yes | |
12037 | fi | |
12038 | ||
12039 | done | |
12040 | ||
12041 | CPPFLAGS="$save_CPPFLAGS" | |
12042 | fi | |
12043 | fi | |
12044 | if test "x$have_python3_support" = "xyes"; then : | |
12045 | ||
12046 | $as_echo "#define HAVE_PYTHON3_PROBES 1" >>confdefs.h | |
12047 | ||
12048 | else | |
12049 | if test "x$with_python3_probes" = "xyes"; then : | |
12050 | as_fn_error $? "python version 3 probe support requested but not found" "$LINENO" 5 | |
12051 | fi | |
12052 | ||
12053 | fi | |
12054 | if test "x$have_python3_support" = "xyes"; then | |
12055 | HAVE_PYTHON3_PROBES_TRUE= | |
12056 | HAVE_PYTHON3_PROBES_FALSE='#' | |
12057 | else | |
12058 | HAVE_PYTHON3_PROBES_TRUE='#' | |
12059 | HAVE_PYTHON3_PROBES_FALSE= | |
12060 | fi | |
12061 | ||
12062 | ||
12063 | if test "x$have_python2_support" = "xyes" -o "x$have_python3_support" = "xyes"; then | |
12064 | HAVE_PYTHON_PROBES_TRUE= | |
12065 | HAVE_PYTHON_PROBES_FALSE='#' | |
12066 | else | |
12067 | HAVE_PYTHON_PROBES_TRUE='#' | |
12068 | HAVE_PYTHON_PROBES_FALSE= | |
c16501a1 DS |
12069 | fi |
12070 | ||
12071 | ||
12072 | ||
11ea78d6 FL |
12073 | pkg_failed=no |
12074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jsonc" >&5 | |
12075 | $as_echo_n "checking for jsonc... " >&6; } | |
12076 | ||
12077 | if test -n "$jsonc_CFLAGS"; then | |
12078 | pkg_cv_jsonc_CFLAGS="$jsonc_CFLAGS" | |
12079 | elif test -n "$PKG_CONFIG"; then | |
12080 | if test -n "$PKG_CONFIG" && \ | |
863e1237 FCE |
12081 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.12\""; } >&5 |
12082 | ($PKG_CONFIG --exists --print-errors "json-c >= 0.12") 2>&5 | |
11ea78d6 FL |
12083 | ac_status=$? |
12084 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12085 | test $ac_status = 0; }; then | |
863e1237 | 12086 | pkg_cv_jsonc_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.12" 2>/dev/null` |
11ea78d6 FL |
12087 | test "x$?" != "x0" && pkg_failed=yes |
12088 | else | |
12089 | pkg_failed=yes | |
12090 | fi | |
12091 | else | |
12092 | pkg_failed=untried | |
12093 | fi | |
12094 | if test -n "$jsonc_LIBS"; then | |
12095 | pkg_cv_jsonc_LIBS="$jsonc_LIBS" | |
12096 | elif test -n "$PKG_CONFIG"; then | |
12097 | if test -n "$PKG_CONFIG" && \ | |
863e1237 FCE |
12098 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.12\""; } >&5 |
12099 | ($PKG_CONFIG --exists --print-errors "json-c >= 0.12") 2>&5 | |
11ea78d6 FL |
12100 | ac_status=$? |
12101 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12102 | test $ac_status = 0; }; then | |
863e1237 | 12103 | pkg_cv_jsonc_LIBS=`$PKG_CONFIG --libs "json-c >= 0.12" 2>/dev/null` |
11ea78d6 FL |
12104 | test "x$?" != "x0" && pkg_failed=yes |
12105 | else | |
12106 | pkg_failed=yes | |
12107 | fi | |
12108 | else | |
12109 | pkg_failed=untried | |
12110 | fi | |
12111 | ||
12112 | ||
12113 | ||
12114 | if test $pkg_failed = yes; then | |
12115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12116 | $as_echo "no" >&6; } | |
12117 | ||
12118 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12119 | _pkg_short_errors_supported=yes | |
12120 | else | |
12121 | _pkg_short_errors_supported=no | |
12122 | fi | |
12123 | if test $_pkg_short_errors_supported = yes; then | |
863e1237 | 12124 | jsonc_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c >= 0.12" 2>&1` |
11ea78d6 | 12125 | else |
863e1237 | 12126 | jsonc_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c >= 0.12" 2>&1` |
11ea78d6 FL |
12127 | fi |
12128 | # Put the nasty error message in config.log where it belongs | |
12129 | echo "$jsonc_PKG_ERRORS" >&5 | |
12130 | ||
12131 | have_jsonc=no | |
12132 | elif test $pkg_failed = untried; then | |
12133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12134 | $as_echo "no" >&6; } | |
12135 | have_jsonc=no | |
12136 | else | |
12137 | jsonc_CFLAGS=$pkg_cv_jsonc_CFLAGS | |
12138 | jsonc_LIBS=$pkg_cv_jsonc_LIBS | |
12139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12140 | $as_echo "yes" >&6; } | |
12141 | have_jsonc=yes | |
12142 | fi | |
12143 | ||
12144 | pkg_failed=no | |
12145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5 | |
12146 | $as_echo_n "checking for ncurses... " >&6; } | |
12147 | ||
12148 | if test -n "$ncurses_CFLAGS"; then | |
12149 | pkg_cv_ncurses_CFLAGS="$ncurses_CFLAGS" | |
12150 | elif test -n "$PKG_CONFIG"; then | |
12151 | if test -n "$PKG_CONFIG" && \ | |
12152 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5 | |
12153 | ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5 | |
12154 | ac_status=$? | |
12155 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12156 | test $ac_status = 0; }; then | |
12157 | pkg_cv_ncurses_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null` | |
12158 | test "x$?" != "x0" && pkg_failed=yes | |
12159 | else | |
12160 | pkg_failed=yes | |
12161 | fi | |
12162 | else | |
12163 | pkg_failed=untried | |
12164 | fi | |
12165 | if test -n "$ncurses_LIBS"; then | |
12166 | pkg_cv_ncurses_LIBS="$ncurses_LIBS" | |
12167 | elif test -n "$PKG_CONFIG"; then | |
12168 | if test -n "$PKG_CONFIG" && \ | |
12169 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5 | |
12170 | ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5 | |
12171 | ac_status=$? | |
12172 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12173 | test $ac_status = 0; }; then | |
12174 | pkg_cv_ncurses_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null` | |
12175 | test "x$?" != "x0" && pkg_failed=yes | |
12176 | else | |
12177 | pkg_failed=yes | |
12178 | fi | |
12179 | else | |
12180 | pkg_failed=untried | |
12181 | fi | |
12182 | ||
12183 | ||
12184 | ||
12185 | if test $pkg_failed = yes; then | |
12186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12187 | $as_echo "no" >&6; } | |
12188 | ||
12189 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12190 | _pkg_short_errors_supported=yes | |
12191 | else | |
12192 | _pkg_short_errors_supported=no | |
12193 | fi | |
12194 | if test $_pkg_short_errors_supported = yes; then | |
12195 | ncurses_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1` | |
12196 | else | |
12197 | ncurses_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1` | |
12198 | fi | |
12199 | # Put the nasty error message in config.log where it belongs | |
12200 | echo "$ncurses_PKG_ERRORS" >&5 | |
12201 | ||
12202 | have_ncurses=no | |
12203 | elif test $pkg_failed = untried; then | |
12204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12205 | $as_echo "no" >&6; } | |
12206 | have_ncurses=no | |
12207 | else | |
12208 | ncurses_CFLAGS=$pkg_cv_ncurses_CFLAGS | |
12209 | ncurses_LIBS=$pkg_cv_ncurses_LIBS | |
12210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12211 | $as_echo "yes" >&6; } | |
12212 | have_ncurses=yes | |
12213 | fi | |
12214 | if test "${have_jsonc}" == "yes" -a "${have_ncurses}" == "yes"; then | |
12215 | HAVE_MONITOR_LIBS_TRUE= | |
12216 | HAVE_MONITOR_LIBS_FALSE='#' | |
12217 | else | |
12218 | HAVE_MONITOR_LIBS_TRUE='#' | |
12219 | HAVE_MONITOR_LIBS_FALSE= | |
12220 | fi | |
12221 | ||
12222 | if test "${have_jsonc}" == "yes" -a "${have_ncurses}" == yes; then | |
12223 | ||
12224 | $as_echo "#define HAVE_MONITOR_LIBS 1" >>confdefs.h | |
12225 | ||
12226 | fi | |
12227 | ||
f9794ee4 RM |
12228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .section \"?\" flags support" >&5 |
12229 | $as_echo_n "checking for assembler .section \"?\" flags support... " >&6; } | |
c3de29bd | 12230 | if ${stap_cv_sectionq+:} false; then : |
f9794ee4 RM |
12231 | $as_echo_n "(cached) " >&6 |
12232 | else | |
12233 | ||
12234 | old_CFLAGS="$CFLAGS" | |
12235 | CFLAGS="$CFLAGS -Wa,--fatal-warnings" | |
12236 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12237 | /* end confdefs.h. */ | |
12238 | asm(".section .note.foo,\"?\",\"note\"\n" | |
12239 | ".byte 1, 2, 3\n" | |
12240 | ".previous\n" | |
12241 | ".section .text,\"axG\",\"progbits\",foogroup,comdat\n" | |
12242 | ".byte 1\n" | |
12243 | ".pushsection .note.foo,\"?\",\"note\"\n" | |
12244 | ".byte 4, 5, 6\n" | |
12245 | ".popsection\n" | |
12246 | ".byte 2\n"); | |
12247 | _ACEOF | |
12248 | if ac_fn_c_try_compile "$LINENO"; then : | |
12249 | stap_cv_sectionq=yes | |
12250 | else | |
12251 | stap_cv_sectionq=no | |
12252 | fi | |
12253 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a530cfe0 | 12254 | CFLAGS="$old_CFLAGS" |
f9794ee4 RM |
12255 | fi |
12256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $stap_cv_sectionq" >&5 | |
12257 | $as_echo "$stap_cv_sectionq" >&6; } | |
12258 | ||
12259 | support_section_question=0 | |
12260 | if test $stap_cv_sectionq = yes; then | |
12261 | support_section_question=1 | |
12262 | fi | |
8f223b3e | 12263 | ac_config_files="$ac_config_files includes/sys/sdt-config.h po/Makefile.in" |
f9794ee4 RM |
12264 | |
12265 | ||
efa6ba96 | 12266 | if test $build_elfutils = yes -a $enable_translator = yes; then |
d2bd25ac | 12267 | here=`pwd` |
e016a49a FCE |
12268 | case "$with_elfutils" in |
12269 | /*) elfutils_srcdir="$with_elfutils" ;; | |
d2bd25ac | 12270 | *) elfutils_srcdir="${here}/$with_elfutils" ;; |
e016a49a | 12271 | esac |
d2bd25ac MW |
12272 | |
12273 | if ! test -f ${elfutils_srcdir}/configure; then | |
12274 | as_fn_error $? "No ${elfutils_srcdir}/configure, forgot to run autoreconf -i?" "$LINENO" 5 | |
12275 | fi | |
1ef0423a | 12276 | { $as_echo "$as_me:${as_lineno-$LINENO}: running ${elfutils_srcdir}/configure" >&5 |
0710d850 | 12277 | $as_echo "$as_me: running ${elfutils_srcdir}/configure" >&6;} |
29b694a7 DS |
12278 | |
12279 | save_CFLAGS="$CFLAGS" | |
12280 | save_CXXFLAGS="$CXXFLAGS" | |
12281 | CXXFLAGS="$CXXFLAGS -fgnu89-inline" | |
12282 | CFLAGS="$CFLAGS -fgnu89-inline" | |
12283 | gnu89_inline_flag="" | |
1ef0423a FCE |
12284 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12285 | /* end confdefs.h. */ | |
29b694a7 DS |
12286 | int something (); |
12287 | _ACEOF | |
1ef0423a | 12288 | if ac_fn_c_try_compile "$LINENO"; then : |
29b694a7 | 12289 | |
1ef0423a | 12290 | { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling elfutils with gcc -fgnu89-inline" >&5 |
0710d850 | 12291 | $as_echo "$as_me: Compiling elfutils with gcc -fgnu89-inline" >&6;} |
29b694a7 DS |
12292 | gnu89_inline_flag="-fgnu89-inline" |
12293 | else | |
5e5aee9f | 12294 | |
1ef0423a | 12295 | { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fgnu89-inline" >&5 |
0710d850 | 12296 | $as_echo "$as_me: Compiler does not support -fgnu89-inline" >&6;} |
29b694a7 | 12297 | fi |
29b694a7 DS |
12298 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12299 | CFLAGS="$save_CFLAGS" | |
12300 | CXXFLAGS="$save_CXXFLAGS" | |
12301 | ||
e016a49a FCE |
12302 | # Our libdw.so's libebl will look in $ORIGIN/../lib/... but that |
12303 | # $ORIGIN is where libdw.so resides, which is not where there is a ../lib. | |
12304 | # Note that $libdir might be using a quoted use of $exec_prefix or $prefix. | |
12305 | # So we must make sure to pass those settings to elfutils configure. | |
12306 | elfutils_rpath="-Wl,--enable-new-dtags,-rpath,${libdir}/${PACKAGE_NAME}" | |
33ee059c MW |
12307 | # Check whether this is a source release, or a source checkout. |
12308 | # We need --enable-maintainer-mode if it isn't a source release. | |
12309 | # elfutils.spec is only distributed in source releases. | |
12310 | if test -f ${elfutils_srcdir}/elfutils.spec; then | |
12311 | need_maintainer_option="" | |
12312 | else | |
12313 | need_maintainer_option="--enable-maintainer-mode" | |
12314 | fi | |
e016a49a | 12315 | (mkdir -p build-elfutils && cd build-elfutils && |
412e1bf7 | 12316 | bash ${elfutils_srcdir}/configure --enable-libebl-subdir=${PACKAGE_NAME} \ |
e016a49a FCE |
12317 | --includedir="${here}/include-elfutils" \ |
12318 | --libdir="${here}/lib-elfutils" \ | |
12319 | --exec-prefix="$exec_prefix" \ | |
12320 | --prefix="$prefix" \ | |
90491495 | 12321 | --enable-dwz \ |
33ee059c | 12322 | ${need_maintainer_option} \ |
c2444a96 | 12323 | CFLAGS="${CFLAGS/-Wall/} $gnu89_inline_flag -fexceptions" \ |
e016a49a | 12324 | LDFLAGS="$LDFLAGS $elfutils_rpath" && |
e3633556 | 12325 | if test -f ${elfutils_srcdir}/config/version.h.in; then |
e050d62f MW |
12326 | echo Found elfutils/version.h header... |
12327 | else | |
12328 | echo elfutils/version.h header not found, need elfutils 0.142+... | |
12329 | exit -1 | |
e3633556 | 12330 | fi |
e016a49a | 12331 | ) |
e050d62f | 12332 | if test $? != 0; then exit -1; fi |
1c4cf93d | 12333 | fi |
e016a49a | 12334 | |
51030d84 JS |
12335 | |
12336 | # Check whether --with-selinux was given. | |
12337 | if test "${with_selinux+set}" = set; then : | |
12338 | withval=$with_selinux; | |
12339 | fi | |
12340 | ||
12341 | ||
12342 | if test "x$with_selinux" != "xno"; then : | |
12343 | ||
12344 | ||
12345 | pkg_failed=no | |
12346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for selinux" >&5 | |
12347 | $as_echo_n "checking for selinux... " >&6; } | |
12348 | ||
12349 | if test -n "$selinux_CFLAGS"; then | |
12350 | pkg_cv_selinux_CFLAGS="$selinux_CFLAGS" | |
12351 | elif test -n "$PKG_CONFIG"; then | |
12352 | if test -n "$PKG_CONFIG" && \ | |
12353 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5 | |
12354 | ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5 | |
12355 | ac_status=$? | |
12356 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12357 | test $ac_status = 0; }; then | |
12358 | pkg_cv_selinux_CFLAGS=`$PKG_CONFIG --cflags "libselinux" 2>/dev/null` | |
8eef2738 | 12359 | test "x$?" != "x0" && pkg_failed=yes |
51030d84 JS |
12360 | else |
12361 | pkg_failed=yes | |
12362 | fi | |
12363 | else | |
12364 | pkg_failed=untried | |
12365 | fi | |
12366 | if test -n "$selinux_LIBS"; then | |
12367 | pkg_cv_selinux_LIBS="$selinux_LIBS" | |
12368 | elif test -n "$PKG_CONFIG"; then | |
12369 | if test -n "$PKG_CONFIG" && \ | |
12370 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5 | |
12371 | ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5 | |
12372 | ac_status=$? | |
12373 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12374 | test $ac_status = 0; }; then | |
12375 | pkg_cv_selinux_LIBS=`$PKG_CONFIG --libs "libselinux" 2>/dev/null` | |
8eef2738 | 12376 | test "x$?" != "x0" && pkg_failed=yes |
51030d84 JS |
12377 | else |
12378 | pkg_failed=yes | |
12379 | fi | |
12380 | else | |
12381 | pkg_failed=untried | |
12382 | fi | |
12383 | ||
12384 | ||
12385 | ||
12386 | if test $pkg_failed = yes; then | |
12387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12388 | $as_echo "no" >&6; } | |
12389 | ||
12390 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12391 | _pkg_short_errors_supported=yes | |
12392 | else | |
12393 | _pkg_short_errors_supported=no | |
12394 | fi | |
12395 | if test $_pkg_short_errors_supported = yes; then | |
8eef2738 | 12396 | selinux_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libselinux" 2>&1` |
51030d84 | 12397 | else |
8eef2738 | 12398 | selinux_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libselinux" 2>&1` |
51030d84 JS |
12399 | fi |
12400 | # Put the nasty error message in config.log where it belongs | |
12401 | echo "$selinux_PKG_ERRORS" >&5 | |
12402 | ||
12403 | have_selinux=no | |
12404 | elif test $pkg_failed = untried; then | |
12405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12406 | $as_echo "no" >&6; } | |
12407 | have_selinux=no | |
12408 | else | |
12409 | selinux_CFLAGS=$pkg_cv_selinux_CFLAGS | |
12410 | selinux_LIBS=$pkg_cv_selinux_LIBS | |
12411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12412 | $as_echo "yes" >&6; } | |
12413 | have_selinux=yes | |
12414 | ||
12415 | $as_echo "#define HAVE_SELINUX 1" >>confdefs.h | |
12416 | ||
12417 | ||
12418 | fi | |
12419 | ||
12420 | else | |
12421 | have_selinux=no | |
12422 | fi | |
12423 | ||
12424 | if test "${have_selinux}" = "yes"; then | |
12425 | HAVE_SELINUX_TRUE= | |
12426 | HAVE_SELINUX_FALSE='#' | |
12427 | else | |
12428 | HAVE_SELINUX_TRUE='#' | |
12429 | HAVE_SELINUX_FALSE= | |
12430 | fi | |
12431 | ||
12432 | ||
0820bd9a FL |
12433 | ac_fn_c_check_decl "$LINENO" "F_SETPIPE_SZ" "ac_cv_have_decl_F_SETPIPE_SZ" "#include <fcntl.h> |
12434 | " | |
12435 | if test "x$ac_cv_have_decl_F_SETPIPE_SZ" = xyes; then : | |
12436 | ||
12437 | $as_echo "#define HAVE_F_SETPIPE_SZ 1" >>confdefs.h | |
12438 | ||
12439 | fi | |
12440 | ||
12441 | ||
e9b0aba1 SM |
12442 | # Extract the first word of "javac", so it can be a program name with args. |
12443 | set dummy javac; ac_word=$2 | |
13c19b49 LB |
12444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12445 | $as_echo_n "checking for $ac_word... " >&6; } | |
e9b0aba1 | 12446 | if ${ac_cv_prog_have_javac+:} false; then : |
13c19b49 LB |
12447 | $as_echo_n "(cached) " >&6 |
12448 | else | |
e9b0aba1 SM |
12449 | if test -n "$have_javac"; then |
12450 | ac_cv_prog_have_javac="$have_javac" # Let the user override the test. | |
13c19b49 LB |
12451 | else |
12452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12453 | for as_dir in $PATH | |
12454 | do | |
12455 | IFS=$as_save_IFS | |
12456 | test -z "$as_dir" && as_dir=. | |
12457 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 12458 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e9b0aba1 | 12459 | ac_cv_prog_have_javac="yes" |
13c19b49 LB |
12460 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
12461 | break 2 | |
12462 | fi | |
12463 | done | |
12464 | done | |
12465 | IFS=$as_save_IFS | |
12466 | ||
e9b0aba1 | 12467 | test -z "$ac_cv_prog_have_javac" && ac_cv_prog_have_javac="no" |
13c19b49 LB |
12468 | fi |
12469 | fi | |
e9b0aba1 SM |
12470 | have_javac=$ac_cv_prog_have_javac |
12471 | if test -n "$have_javac"; then | |
12472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_javac" >&5 | |
12473 | $as_echo "$have_javac" >&6; } | |
13c19b49 LB |
12474 | else |
12475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12476 | $as_echo "no" >&6; } | |
12477 | fi | |
12478 | ||
12479 | ||
e9b0aba1 SM |
12480 | # Extract the first word of "jar", so it can be a program name with args. |
12481 | set dummy jar; ac_word=$2 | |
13c19b49 LB |
12482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12483 | $as_echo_n "checking for $ac_word... " >&6; } | |
e9b0aba1 | 12484 | if ${ac_cv_prog_have_jar+:} false; then : |
13c19b49 LB |
12485 | $as_echo_n "(cached) " >&6 |
12486 | else | |
e9b0aba1 SM |
12487 | if test -n "$have_jar"; then |
12488 | ac_cv_prog_have_jar="$have_jar" # Let the user override the test. | |
13c19b49 LB |
12489 | else |
12490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12491 | for as_dir in $PATH | |
12492 | do | |
12493 | IFS=$as_save_IFS | |
12494 | test -z "$as_dir" && as_dir=. | |
12495 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 12496 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e9b0aba1 | 12497 | ac_cv_prog_have_jar="yes" |
13c19b49 LB |
12498 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
12499 | break 2 | |
12500 | fi | |
12501 | done | |
12502 | done | |
12503 | IFS=$as_save_IFS | |
2737ec70 | 12504 | |
e9b0aba1 | 12505 | test -z "$ac_cv_prog_have_jar" && ac_cv_prog_have_jar="no" |
13c19b49 LB |
12506 | fi |
12507 | fi | |
e9b0aba1 SM |
12508 | have_jar=$ac_cv_prog_have_jar |
12509 | if test -n "$have_jar"; then | |
12510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_jar" >&5 | |
12511 | $as_echo "$have_jar" >&6; } | |
13c19b49 LB |
12512 | else |
12513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12514 | $as_echo "no" >&6; } | |
12515 | fi | |
12516 | ||
12517 | ||
e9b0aba1 SM |
12518 | if test "$have_javac" != no -a "$have_jar" != no; then |
12519 | echo java found, will try to configure Byteman support | |
9ac164fa FCE |
12520 | |
12521 | ||
26703c63 SM |
12522 | # Check whether --with-java was given. |
12523 | if test "${with_java+set}" = set; then : | |
12524 | withval=$with_java; | |
9ac164fa | 12525 | else |
26703c63 | 12526 | with_java=/usr/lib/jvm/java |
9ac164fa FCE |
12527 | fi |
12528 | ||
a71e842d | 12529 | if test ! -d "$with_java"; then |
ef50e368 | 12530 | with_java=no |
9ac164fa | 12531 | fi |
26703c63 | 12532 | JAVADIR="${with_java}" |
9ac164fa FCE |
12533 | # always needed to compile |
12534 | ||
26703c63 | 12535 | if test "$with_java" != "no"; then |
2737ec70 LB |
12536 | |
12537 | cat >>confdefs.h <<_ACEOF | |
26703c63 | 12538 | #define HAVE_JAVA "1" |
2737ec70 LB |
12539 | _ACEOF |
12540 | ||
9ac164fa FCE |
12541 | fi |
12542 | ||
26703c63 SM |
12543 | if test "$with_java" != "no"; then |
12544 | HAVE_JAVA_TRUE= | |
12545 | HAVE_JAVA_FALSE='#' | |
9ac164fa | 12546 | else |
26703c63 SM |
12547 | HAVE_JAVA_TRUE='#' |
12548 | HAVE_JAVA_FALSE= | |
9ac164fa FCE |
12549 | fi |
12550 | ||
12551 | ||
12552 | else | |
12553 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not run per-method java probing, missing byteman or java requirements" >&5 | |
12554 | $as_echo "$as_me: WARNING: will not run per-method java probing, missing byteman or java requirements" >&2;} | |
12555 | if false; then | |
26703c63 SM |
12556 | HAVE_JAVA_TRUE= |
12557 | HAVE_JAVA_FALSE='#' | |
9ac164fa | 12558 | else |
26703c63 SM |
12559 | HAVE_JAVA_TRUE='#' |
12560 | HAVE_JAVA_FALSE= | |
2737ec70 LB |
12561 | fi |
12562 | ||
9ac164fa FCE |
12563 | fi # java+byteman support |
12564 | ||
62c8a962 FCE |
12565 | ENABLE_NLS="$USE_NLS" |
12566 | ||
12567 | localedir="$localedir" | |
802cd104 | 12568 | |
8f223b3e FCE |
12569 | LOCALEDIR="$localedir" |
12570 | ||
12571 | ||
62c8a962 | 12572 | |
85b62eab FCE |
12573 | # Check whether --with-extra-version was given. |
12574 | if test "${with_extra_version+set}" = set; then : | |
12575 | withval=$with_extra_version; | |
12576 | fi | |
12577 | ||
12578 | if test "x$with_extra_version" != "xno"; then : | |
12579 | ||
12580 | stap_extra_version="$with_extra_version" | |
12581 | { $as_echo "$as_me:${as_lineno-$LINENO}: Adding extra version $stap_extra_version" >&5 | |
12582 | $as_echo "$as_me: Adding extra version $stap_extra_version" >&6;} | |
12583 | else | |
12584 | ||
12585 | stap_extra_version="" | |
12586 | fi | |
12587 | ||
12588 | cat >>confdefs.h <<_ACEOF | |
12589 | #define STAP_EXTRA_VERSION "$stap_extra_version" | |
12590 | _ACEOF | |
12591 | ||
12592 | STAP_EXTRA_VERSION="$stap_extra_version" | |
12593 | ||
12594 | ||
5c5a0bf2 DS |
12595 | # Check whether --enable-http was given. |
12596 | if test "${enable_http+set}" = set; then : | |
12597 | enableval=$enable_http; | |
12598 | fi | |
12599 | ||
12600 | have_http_support=no | |
12601 | if test "x$enable_http" != "xno"; then : | |
12602 | ||
12603 | pkg_failed=no | |
12604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmicrohttpd" >&5 | |
12605 | $as_echo_n "checking for libmicrohttpd... " >&6; } | |
12606 | ||
12607 | if test -n "$libmicrohttpd_CFLAGS"; then | |
12608 | pkg_cv_libmicrohttpd_CFLAGS="$libmicrohttpd_CFLAGS" | |
12609 | elif test -n "$PKG_CONFIG"; then | |
12610 | if test -n "$PKG_CONFIG" && \ | |
12611 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.0\""; } >&5 | |
12612 | ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.0") 2>&5 | |
12613 | ac_status=$? | |
12614 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12615 | test $ac_status = 0; }; then | |
12616 | pkg_cv_libmicrohttpd_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd > 0.9.0" 2>/dev/null` | |
12617 | test "x$?" != "x0" && pkg_failed=yes | |
12618 | else | |
12619 | pkg_failed=yes | |
12620 | fi | |
12621 | else | |
12622 | pkg_failed=untried | |
12623 | fi | |
12624 | if test -n "$libmicrohttpd_LIBS"; then | |
12625 | pkg_cv_libmicrohttpd_LIBS="$libmicrohttpd_LIBS" | |
12626 | elif test -n "$PKG_CONFIG"; then | |
12627 | if test -n "$PKG_CONFIG" && \ | |
12628 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.0\""; } >&5 | |
12629 | ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.0") 2>&5 | |
12630 | ac_status=$? | |
12631 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12632 | test $ac_status = 0; }; then | |
12633 | pkg_cv_libmicrohttpd_LIBS=`$PKG_CONFIG --libs "libmicrohttpd > 0.9.0" 2>/dev/null` | |
12634 | test "x$?" != "x0" && pkg_failed=yes | |
12635 | else | |
12636 | pkg_failed=yes | |
12637 | fi | |
12638 | else | |
12639 | pkg_failed=untried | |
12640 | fi | |
12641 | ||
12642 | ||
12643 | ||
12644 | if test $pkg_failed = yes; then | |
12645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12646 | $as_echo "no" >&6; } | |
12647 | ||
12648 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12649 | _pkg_short_errors_supported=yes | |
12650 | else | |
12651 | _pkg_short_errors_supported=no | |
12652 | fi | |
12653 | if test $_pkg_short_errors_supported = yes; then | |
12654 | libmicrohttpd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd > 0.9.0" 2>&1` | |
12655 | else | |
12656 | libmicrohttpd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd > 0.9.0" 2>&1` | |
12657 | fi | |
12658 | # Put the nasty error message in config.log where it belongs | |
12659 | echo "$libmicrohttpd_PKG_ERRORS" >&5 | |
12660 | ||
12661 | have_libmicrohttpd=false | |
12662 | elif test $pkg_failed = untried; then | |
12663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12664 | $as_echo "no" >&6; } | |
12665 | have_libmicrohttpd=false | |
12666 | else | |
12667 | libmicrohttpd_CFLAGS=$pkg_cv_libmicrohttpd_CFLAGS | |
12668 | libmicrohttpd_LIBS=$pkg_cv_libmicrohttpd_LIBS | |
12669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12670 | $as_echo "yes" >&6; } | |
12671 | have_libmicrohttpd=true | |
12672 | fi | |
12673 | ||
12674 | ||
12675 | pkg_failed=no | |
12676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid" >&5 | |
12677 | $as_echo_n "checking for uuid... " >&6; } | |
12678 | ||
12679 | if test -n "$uuid_CFLAGS"; then | |
12680 | pkg_cv_uuid_CFLAGS="$uuid_CFLAGS" | |
12681 | elif test -n "$PKG_CONFIG"; then | |
12682 | if test -n "$PKG_CONFIG" && \ | |
bccff213 DS |
12683 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= 2.17.0\""; } >&5 |
12684 | ($PKG_CONFIG --exists --print-errors "uuid >= 2.17.0") 2>&5 | |
5c5a0bf2 DS |
12685 | ac_status=$? |
12686 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12687 | test $ac_status = 0; }; then | |
bccff213 | 12688 | pkg_cv_uuid_CFLAGS=`$PKG_CONFIG --cflags "uuid >= 2.17.0" 2>/dev/null` |
5c5a0bf2 DS |
12689 | test "x$?" != "x0" && pkg_failed=yes |
12690 | else | |
12691 | pkg_failed=yes | |
12692 | fi | |
12693 | else | |
12694 | pkg_failed=untried | |
12695 | fi | |
12696 | if test -n "$uuid_LIBS"; then | |
12697 | pkg_cv_uuid_LIBS="$uuid_LIBS" | |
12698 | elif test -n "$PKG_CONFIG"; then | |
12699 | if test -n "$PKG_CONFIG" && \ | |
bccff213 DS |
12700 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= 2.17.0\""; } >&5 |
12701 | ($PKG_CONFIG --exists --print-errors "uuid >= 2.17.0") 2>&5 | |
5c5a0bf2 DS |
12702 | ac_status=$? |
12703 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12704 | test $ac_status = 0; }; then | |
bccff213 | 12705 | pkg_cv_uuid_LIBS=`$PKG_CONFIG --libs "uuid >= 2.17.0" 2>/dev/null` |
5c5a0bf2 DS |
12706 | test "x$?" != "x0" && pkg_failed=yes |
12707 | else | |
12708 | pkg_failed=yes | |
12709 | fi | |
12710 | else | |
12711 | pkg_failed=untried | |
12712 | fi | |
12713 | ||
12714 | ||
12715 | ||
12716 | if test $pkg_failed = yes; then | |
12717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12718 | $as_echo "no" >&6; } | |
12719 | ||
12720 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12721 | _pkg_short_errors_supported=yes | |
12722 | else | |
12723 | _pkg_short_errors_supported=no | |
12724 | fi | |
12725 | if test $_pkg_short_errors_supported = yes; then | |
bccff213 | 12726 | uuid_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "uuid >= 2.17.0" 2>&1` |
5c5a0bf2 | 12727 | else |
bccff213 | 12728 | uuid_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "uuid >= 2.17.0" 2>&1` |
5c5a0bf2 DS |
12729 | fi |
12730 | # Put the nasty error message in config.log where it belongs | |
12731 | echo "$uuid_PKG_ERRORS" >&5 | |
12732 | ||
12733 | have_libuuid=false | |
12734 | elif test $pkg_failed = untried; then | |
12735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12736 | $as_echo "no" >&6; } | |
12737 | have_libuuid=false | |
12738 | else | |
12739 | uuid_CFLAGS=$pkg_cv_uuid_CFLAGS | |
12740 | uuid_LIBS=$pkg_cv_uuid_LIBS | |
12741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12742 | $as_echo "yes" >&6; } | |
12743 | have_libuuid=true | |
12744 | fi | |
12745 | ||
585b5c35 | 12746 | if test "x$have_libmicrohttpd" == "xtrue" -a "x$have_libuuid" == "xtrue" -a "x$have_jsonc" == "xyes"; then : |
5c5a0bf2 DS |
12747 | have_http_support=yes |
12748 | fi | |
12749 | fi | |
12750 | ||
12751 | if test "x$have_http_support" = "xyes"; then : | |
12752 | ||
12753 | $as_echo "#define HAVE_HTTP_SUPPORT 1" >>confdefs.h | |
12754 | ||
12755 | else | |
12756 | if test "x$enable_http" = "xyes"; then : | |
12757 | as_fn_error $? "http service support requested but not found" "$LINENO" 5 | |
12758 | fi | |
12759 | ||
12760 | fi | |
12761 | if test "x$have_http_support" = "xyes"; then | |
12762 | HAVE_HTTP_SUPPORT_TRUE= | |
12763 | HAVE_HTTP_SUPPORT_FALSE='#' | |
12764 | else | |
12765 | HAVE_HTTP_SUPPORT_TRUE='#' | |
12766 | HAVE_HTTP_SUPPORT_FALSE= | |
12767 | fi | |
12768 | ||
12769 | ||
85b62eab | 12770 | |
2a1c9b5d FCE |
12771 | stap_prefix=$prefix |
12772 | test "$stap_prefix" = NONE && stap_prefix=$ac_default_prefix | |
50431f30 MW |
12773 | |
12774 | cat >>confdefs.h <<_ACEOF | |
2a1c9b5d | 12775 | #define STAP_PREFIX "$stap_prefix" |
50431f30 MW |
12776 | _ACEOF |
12777 | ||
62c8a962 FCE |
12778 | STAP_PREFIX="$stap_prefix" |
12779 | ||
50431f30 | 12780 | |
7fbd9d09 | 12781 | ac_config_headers="$ac_config_headers config.h:config.in" |
daae650d | 12782 | |
9ed47854 | 12783 | ac_config_files="$ac_config_files Makefile doc/Makefile man/Makefile man/cs/Makefile doc/beginners/Makefile doc/SystemTap_Tapset_Reference/Makefile man/stap.1 man/stappaths.7 man/systemtap.8 man/cs/stap.1 man/cs/stappaths.7 man/cs/systemtap.8 initscript/config.systemtap initscript/config.stap-server initscript/systemtap initscript/stap-server initscript/99stap/module-setup.sh initscript/99stap/install initscript/99stap/check" |
8d9d8fe1 | 12784 | |
0710d850 DS |
12785 | |
12786 | ||
97859b9d | 12787 | subdirs="$subdirs testsuite" |
5ba96b90 | 12788 | |
6d14a4a9 EB |
12789 | if test $enable_translator == "yes"; then |
12790 | ac_config_files="$ac_config_files run-stap" | |
2f62657c | 12791 | |
6d14a4a9 | 12792 | fi |
e4aaabda MW |
12793 | ac_config_files="$ac_config_files dtrace" |
12794 | ||
66c3c633 JS |
12795 | ac_config_files="$ac_config_files stapdyn/Makefile" |
12796 | ||
9ac164fa FCE |
12797 | ac_config_files="$ac_config_files java/Makefile" |
12798 | ||
d885563b FCE |
12799 | ac_config_files="$ac_config_files java/stapbm" |
12800 | ||
cf8a58fc DS |
12801 | ac_config_files="$ac_config_files python/Makefile" |
12802 | ||
97859b9d JS |
12803 | ac_config_files="$ac_config_files staprun/Makefile" |
12804 | ||
5c5a0bf2 DS |
12805 | ac_config_files="$ac_config_files httpd/Makefile" |
12806 | ||
97859b9d JS |
12807 | ac_config_files="$ac_config_files staprun/run-staprun" |
12808 | ||
42f767d0 JL |
12809 | ac_config_files="$ac_config_files staprun/guest/stapshd" |
12810 | ||
12811 | ac_config_files="$ac_config_files staprun/guest/stapsh-daemon" | |
12812 | ||
12813 | ac_config_files="$ac_config_files staprun/guest/stapsh@.service" | |
12814 | ||
53ade4da | 12815 | |
a98010af AJ |
12816 | # Setup "shadow" directory doc/beginners that has the basic directories setup for |
12817 | # xmlto in one directory (through directory links if necessary). | |
53ade4da MW |
12818 | # It would be nice to use AC_CONFIG_LINKS, but automake complains when |
12819 | # the src is a directory and not a file. | |
53ade4da MW |
12820 | ac_config_commands="$ac_config_commands doc/beginners" |
12821 | ||
12822 | ||
2f1a1aea FCE |
12823 | cat >confcache <<\_ACEOF |
12824 | # This file is a shell script that caches the results of configure | |
12825 | # tests run on this system so they can be shared between configure | |
12826 | # scripts and configure runs, see configure's option --config-cache. | |
12827 | # It is not useful on other systems. If it contains results you don't | |
12828 | # want to keep, you may remove or edit it. | |
12829 | # | |
12830 | # config.status only pays attention to the cache file if you give it | |
12831 | # the --recheck option to rerun configure. | |
12832 | # | |
12833 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
12834 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
12835 | # following values. | |
12836 | ||
12837 | _ACEOF | |
12838 | ||
12839 | # The following way of writing the cache mishandles newlines in values, | |
12840 | # but we know of no workaround that is simple, portable, and efficient. | |
7fbd9d09 | 12841 | # So, we kill variables containing newlines. |
2f1a1aea FCE |
12842 | # Ultrix sh set writes to stderr and can't be redirected directly, |
12843 | # and sets the high bit in the cache file unless we assign to the vars. | |
7fbd9d09 FCE |
12844 | ( |
12845 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
12846 | eval ac_val=\$$ac_var | |
12847 | case $ac_val in #( | |
12848 | *${as_nl}*) | |
12849 | case $ac_var in #( | |
1ef0423a | 12850 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
0710d850 | 12851 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
7fbd9d09 FCE |
12852 | esac |
12853 | case $ac_var in #( | |
12854 | _ | IFS | as_nl) ;; #( | |
0710d850 | 12855 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
1ef0423a | 12856 | *) { eval $ac_var=; unset $ac_var;} ;; |
7fbd9d09 FCE |
12857 | esac ;; |
12858 | esac | |
12859 | done | |
12860 | ||
2f1a1aea | 12861 | (set) 2>&1 | |
7fbd9d09 FCE |
12862 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
12863 | *${as_nl}ac_space=\ *) | |
1ef0423a FCE |
12864 | # `set' does not quote correctly, so add quotes: double-quote |
12865 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
2f1a1aea FCE |
12866 | sed -n \ |
12867 | "s/'/'\\\\''/g; | |
12868 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7fbd9d09 | 12869 | ;; #( |
2f1a1aea FCE |
12870 | *) |
12871 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7fbd9d09 | 12872 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
2f1a1aea | 12873 | ;; |
7fbd9d09 FCE |
12874 | esac | |
12875 | sort | |
12876 | ) | | |
2f1a1aea | 12877 | sed ' |
7fbd9d09 | 12878 | /^ac_cv_env_/b end |
2f1a1aea | 12879 | t clear |
7fbd9d09 | 12880 | :clear |
2f1a1aea FCE |
12881 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
12882 | t end | |
7fbd9d09 FCE |
12883 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
12884 | :end' >>confcache | |
12885 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
12886 | if test -w "$cache_file"; then | |
c3de29bd | 12887 | if test "x$cache_file" != "x/dev/null"; then |
1ef0423a | 12888 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
0710d850 | 12889 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
c3de29bd LB |
12890 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
12891 | cat confcache >"$cache_file" | |
12892 | else | |
12893 | case $cache_file in #( | |
12894 | */* | ?:*) | |
12895 | mv -f confcache "$cache_file"$$ && | |
12896 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
12897 | *) | |
12898 | mv -f confcache "$cache_file" ;; | |
12899 | esac | |
12900 | fi | |
12901 | fi | |
2f1a1aea | 12902 | else |
1ef0423a | 12903 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
0710d850 | 12904 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
2f1a1aea FCE |
12905 | fi |
12906 | fi | |
12907 | rm -f confcache | |
12908 | ||
12909 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
12910 | # Let make expand exec_prefix. | |
12911 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
12912 | ||
2f1a1aea FCE |
12913 | DEFS=-DHAVE_CONFIG_H |
12914 | ||
12915 | ac_libobjs= | |
12916 | ac_ltlibobjs= | |
42ca449e | 12917 | U= |
2f1a1aea FCE |
12918 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
12919 | # 1. Remove the extension, and $U if already installed. | |
7fbd9d09 | 12920 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
0710d850 | 12921 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7fbd9d09 FCE |
12922 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
12923 | # will be set to the directory where LIBOBJS objects are built. | |
1ef0423a FCE |
12924 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
12925 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
2f1a1aea FCE |
12926 | done |
12927 | LIBOBJS=$ac_libobjs | |
12928 | ||
12929 | LTLIBOBJS=$ac_ltlibobjs | |
12930 | ||
12931 | ||
8eef2738 LB |
12932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
12933 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
12934 | if test -n "$am_sleep_pid"; then | |
12935 | # Hide warnings about reused PIDs. | |
12936 | wait $am_sleep_pid 2>/dev/null | |
12937 | fi | |
12938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
12939 | $as_echo "done" >&6; } | |
0710d850 DS |
12940 | if test -n "$EXEEXT"; then |
12941 | am__EXEEXT_TRUE= | |
12942 | am__EXEEXT_FALSE='#' | |
12943 | else | |
12944 | am__EXEEXT_TRUE='#' | |
12945 | am__EXEEXT_FALSE= | |
12946 | fi | |
12947 | ||
2f1a1aea | 12948 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
5d4aa1f5 | 12949 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
1ef0423a | 12950 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
2f1a1aea FCE |
12951 | fi |
12952 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
5d4aa1f5 | 12953 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
1ef0423a | 12954 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
2f1a1aea FCE |
12955 | fi |
12956 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
5d4aa1f5 | 12957 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
1ef0423a | 12958 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
2f1a1aea | 12959 | fi |
8f223b3e | 12960 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
5d4aa1f5 | 12961 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
8f223b3e FCE |
12962 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
12963 | fi | |
2f1a1aea | 12964 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
5d4aa1f5 | 12965 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
1ef0423a | 12966 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
2f1a1aea | 12967 | fi |
6d14a4a9 | 12968 | if test -z "${BUILD_TRANSLATOR_TRUE}" && test -z "${BUILD_TRANSLATOR_FALSE}"; then |
5d4aa1f5 | 12969 | as_fn_error $? "conditional \"BUILD_TRANSLATOR\" was never defined. |
1ef0423a | 12970 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
6d14a4a9 | 12971 | fi |
e8f3c2c2 | 12972 | if test -z "${BUILD_CRASHMOD_TRUE}" && test -z "${BUILD_CRASHMOD_FALSE}"; then |
5d4aa1f5 | 12973 | as_fn_error $? "conditional \"BUILD_CRASHMOD\" was never defined. |
1ef0423a | 12974 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
4d9087fc | 12975 | fi |
465e8fbf | 12976 | if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then |
5d4aa1f5 | 12977 | as_fn_error $? "conditional \"BUILD_DOCS\" was never defined. |
1ef0423a | 12978 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
92aff3c7 WC |
12979 | fi |
12980 | if test -z "${BUILD_REFDOCS_TRUE}" && test -z "${BUILD_REFDOCS_FALSE}"; then | |
5d4aa1f5 | 12981 | as_fn_error $? "conditional \"BUILD_REFDOCS\" was never defined. |
1ef0423a | 12982 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
468abaf4 | 12983 | fi |
327a760e FCE |
12984 | if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then |
12985 | as_fn_error $? "conditional \"HAVE_FOP\" was never defined. | |
12986 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
12987 | fi | |
a98010af AJ |
12988 | if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then |
12989 | as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. | |
12990 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
12991 | fi | |
d9c42357 FL |
12992 | if test -z "${BUILD_HTMLDOCS_TRUE}" && test -z "${BUILD_HTMLDOCS_FALSE}"; then |
12993 | as_fn_error $? "conditional \"BUILD_HTMLDOCS\" was never defined. | |
12994 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
12995 | fi | |
468abaf4 | 12996 | if test -z "${XMLTO_STRINGPARAM_TRUE}" && test -z "${XMLTO_STRINGPARAM_FALSE}"; then |
5d4aa1f5 | 12997 | as_fn_error $? "conditional \"XMLTO_STRINGPARAM\" was never defined. |
1ef0423a | 12998 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
19a0d4b6 | 12999 | fi |
2035bcd4 | 13000 | if test -z "${HAVE_NSS_TRUE}" && test -z "${HAVE_NSS_FALSE}"; then |
5d4aa1f5 | 13001 | as_fn_error $? "conditional \"HAVE_NSS\" was never defined. |
1ef0423a | 13002 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
465e8fbf | 13003 | fi |
a0e2728a | 13004 | if test -z "${BUILD_SERVER_TRUE}" && test -z "${BUILD_SERVER_FALSE}"; then |
5d4aa1f5 | 13005 | as_fn_error $? "conditional \"BUILD_SERVER\" was never defined. |
a0e2728a DB |
13006 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
13007 | fi | |
2dce8c42 | 13008 | if test -z "${HAVE_AVAHI_TRUE}" && test -z "${HAVE_AVAHI_FALSE}"; then |
5d4aa1f5 | 13009 | as_fn_error $? "conditional \"HAVE_AVAHI\" was never defined. |
1ef0423a | 13010 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
2dce8c42 | 13011 | fi |
9ac12b89 DS |
13012 | if test -z "${HAVE_LIBREADLINE_TRUE}" && test -z "${HAVE_LIBREADLINE_FALSE}"; then |
13013 | as_fn_error $? "conditional \"HAVE_LIBREADLINE\" was never defined. | |
13014 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
13015 | fi | |
e8f3c2c2 | 13016 | if test -z "${BUILD_ELFUTILS_TRUE}" && test -z "${BUILD_ELFUTILS_FALSE}"; then |
5d4aa1f5 | 13017 | as_fn_error $? "conditional \"BUILD_ELFUTILS\" was never defined. |
1ef0423a | 13018 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
35a04c8e | 13019 | fi |
138bbe90 JS |
13020 | if test -z "${HAVE_DYNINST_TRUE}" && test -z "${HAVE_DYNINST_FALSE}"; then |
13021 | as_fn_error $? "conditional \"HAVE_DYNINST\" was never defined. | |
13022 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
13023 | fi | |
42f767d0 JL |
13024 | if test -z "${HAVE_LIBVIRT_TRUE}" && test -z "${HAVE_LIBVIRT_FALSE}"; then |
13025 | as_fn_error $? "conditional \"HAVE_LIBVIRT\" was never defined. | |
13026 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
13027 | fi | |
13028 | if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then | |
13029 | as_fn_error $? "conditional \"HAVE_LIBXML2\" was never defined. | |
13030 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
13031 | fi | |
b0c670f4 FCE |
13032 | if test -z "${BUILD_VIRT_TRUE}" && test -z "${BUILD_VIRT_FALSE}"; then |
13033 | as_fn_error $? "conditional \"BUILD_VIRT\" was never defined. | |
13034 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
13035 | fi | |
d7f07c29 DS |
13036 | if test -z "${HAVE_PYTHON2_PROBES_TRUE}" && test -z "${HAVE_PYTHON2_PROBES_FALSE}"; then |
13037 | as_fn_error $? "conditional \"HAVE_PYTHON2_PROBES\" was never defined. | |
13038 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
13039 | fi | |
13040 | if test -z "${HAVE_PYTHON3_PROBES_TRUE}" && test -z "${HAVE_PYTHON3_PROBES_FALSE}"; then | |
13041 | as_fn_error $? "conditional \"HAVE_PYTHON3_PROBES\" was never defined. | |
13042 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
13043 | fi | |
13044 | if test -z "${HAVE_PYTHON_PROBES_TRUE}" && test -z "${HAVE_PYTHON_PROBES_FALSE}"; then | |
13045 | as_fn_error $? "conditional \"HAVE_PYTHON_PROBES\" was never defined. | |
c16501a1 DS |
13046 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
13047 | fi | |
11ea78d6 FL |
13048 | if test -z "${HAVE_MONITOR_LIBS_TRUE}" && test -z "${HAVE_MONITOR_LIBS_FALSE}"; then |
13049 | as_fn_error $? "conditional \"HAVE_MONITOR_LIBS\" was never defined. | |
13050 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
13051 | fi | |
51030d84 JS |
13052 | if test -z "${HAVE_SELINUX_TRUE}" && test -z "${HAVE_SELINUX_FALSE}"; then |
13053 | as_fn_error $? "conditional \"HAVE_SELINUX\" was never defined. | |
13054 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
13055 | fi | |
26703c63 SM |
13056 | if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then |
13057 | as_fn_error $? "conditional \"HAVE_JAVA\" was never defined. | |
9ac164fa FCE |
13058 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
13059 | fi | |
26703c63 SM |
13060 | if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then |
13061 | as_fn_error $? "conditional \"HAVE_JAVA\" was never defined. | |
9ac164fa FCE |
13062 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
13063 | fi | |
5c5a0bf2 DS |
13064 | if test -z "${HAVE_HTTP_SUPPORT_TRUE}" && test -z "${HAVE_HTTP_SUPPORT_FALSE}"; then |
13065 | as_fn_error $? "conditional \"HAVE_HTTP_SUPPORT\" was never defined. | |
13066 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
13067 | fi | |
2f1a1aea | 13068 | |
c3de29bd | 13069 | : "${CONFIG_STATUS=./config.status}" |
0710d850 | 13070 | ac_write_fail=0 |
2f1a1aea FCE |
13071 | ac_clean_files_save=$ac_clean_files |
13072 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
1ef0423a | 13073 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
0710d850 | 13074 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
1ef0423a FCE |
13075 | as_write_fail=0 |
13076 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
2f1a1aea FCE |
13077 | #! $SHELL |
13078 | # Generated by $as_me. | |
13079 | # Run this file to recreate the current configuration. | |
13080 | # Compiler output produced by configure, useful for debugging | |
13081 | # configure, is in config.log if it exists. | |
13082 | ||
13083 | debug=false | |
13084 | ac_cs_recheck=false | |
13085 | ac_cs_silent=false | |
5e5aee9f | 13086 | |
1ef0423a FCE |
13087 | SHELL=\${CONFIG_SHELL-$SHELL} |
13088 | export SHELL | |
13089 | _ASEOF | |
13090 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
13091 | ## -------------------- ## | |
13092 | ## M4sh Initialization. ## | |
13093 | ## -------------------- ## | |
2f1a1aea | 13094 | |
7fbd9d09 FCE |
13095 | # Be more Bourne compatible |
13096 | DUALCASE=1; export DUALCASE # for MKS sh | |
1ef0423a | 13097 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
2f1a1aea FCE |
13098 | emulate sh |
13099 | NULLCMD=: | |
0710d850 | 13100 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
2f1a1aea FCE |
13101 | # is contrary to our usage. Disable this feature. |
13102 | alias -g '${1+"$@"}'='"$@"' | |
7fbd9d09 | 13103 | setopt NO_GLOB_SUBST |
4a3c19da | 13104 | else |
1ef0423a FCE |
13105 | case `(set -o) 2>/dev/null` in #( |
13106 | *posix*) : | |
13107 | set -o posix ;; #( | |
13108 | *) : | |
13109 | ;; | |
4a3c19da EM |
13110 | esac |
13111 | fi | |
13112 | ||
7fbd9d09 | 13113 | |
0710d850 DS |
13114 | as_nl=' |
13115 | ' | |
13116 | export as_nl | |
13117 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
13118 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
13119 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
13120 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
1ef0423a FCE |
13121 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
13122 | # but without wasting forks for bash or zsh. | |
13123 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
13124 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
13125 | as_echo='print -r --' | |
13126 | as_echo_n='print -rn --' | |
13127 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
0710d850 DS |
13128 | as_echo='printf %s\n' |
13129 | as_echo_n='printf %s' | |
13130 | else | |
13131 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
13132 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
13133 | as_echo_n='/usr/ucb/echo -n' | |
31f9baea | 13134 | else |
0710d850 DS |
13135 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
13136 | as_echo_n_body='eval | |
13137 | arg=$1; | |
1ef0423a | 13138 | case $arg in #( |
0710d850 DS |
13139 | *"$as_nl"*) |
13140 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
13141 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
13142 | esac; | |
13143 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
13144 | ' | |
13145 | export as_echo_n_body | |
13146 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
31f9baea | 13147 | fi |
0710d850 DS |
13148 | export as_echo_body |
13149 | as_echo='sh -c $as_echo_body as_echo' | |
13150 | fi | |
13151 | ||
13152 | # The user is always right. | |
13153 | if test "${PATH_SEPARATOR+set}" != set; then | |
13154 | PATH_SEPARATOR=: | |
13155 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
13156 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
13157 | PATH_SEPARATOR=';' | |
13158 | } | |
7fbd9d09 FCE |
13159 | fi |
13160 | ||
7fbd9d09 FCE |
13161 | |
13162 | # IFS | |
13163 | # We need space, tab and new line, in precisely that order. Quoting is | |
13164 | # there to prevent editors from complaining about space-tab. | |
13165 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
13166 | # splitting by setting IFS to empty value.) | |
7fbd9d09 FCE |
13167 | IFS=" "" $as_nl" |
13168 | ||
13169 | # Find who we are. Look in the path if we contain no directory separator. | |
c3de29bd | 13170 | as_myself= |
1ef0423a | 13171 | case $0 in #(( |
7fbd9d09 FCE |
13172 | *[\\/]* ) as_myself=$0 ;; |
13173 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13174 | for as_dir in $PATH | |
13175 | do | |
13176 | IFS=$as_save_IFS | |
13177 | test -z "$as_dir" && as_dir=. | |
1ef0423a FCE |
13178 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
13179 | done | |
7fbd9d09 FCE |
13180 | IFS=$as_save_IFS |
13181 | ||
13182 | ;; | |
13183 | esac | |
13184 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
13185 | # in which case we are not to be found in the path. | |
13186 | if test "x$as_myself" = x; then | |
13187 | as_myself=$0 | |
13188 | fi | |
13189 | if test ! -f "$as_myself"; then | |
0710d850 | 13190 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
1ef0423a | 13191 | exit 1 |
7fbd9d09 FCE |
13192 | fi |
13193 | ||
1ef0423a FCE |
13194 | # Unset variables that we do not need and which cause bugs (e.g. in |
13195 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
13196 | # suppresses any "Segmentation fault" message there. '((' could | |
13197 | # trigger a bug in pdksh 5.2.14. | |
13198 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
13199 | do eval test x\${$as_var+set} = xset \ | |
13200 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7fbd9d09 FCE |
13201 | done |
13202 | PS1='$ ' | |
2f1a1aea FCE |
13203 | PS2='> ' |
13204 | PS4='+ ' | |
13205 | ||
13206 | # NLS nuisances. | |
0710d850 DS |
13207 | LC_ALL=C |
13208 | export LC_ALL | |
13209 | LANGUAGE=C | |
13210 | export LANGUAGE | |
2f1a1aea | 13211 | |
1ef0423a FCE |
13212 | # CDPATH. |
13213 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
13214 | ||
13215 | ||
5d4aa1f5 FCE |
13216 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
13217 | # ---------------------------------------- | |
1ef0423a FCE |
13218 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
13219 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
5d4aa1f5 | 13220 | # script with STATUS, using 1 if that was 0. |
1ef0423a FCE |
13221 | as_fn_error () |
13222 | { | |
5d4aa1f5 FCE |
13223 | as_status=$1; test $as_status -eq 0 && as_status=1 |
13224 | if test "$4"; then | |
13225 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
13226 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
1ef0423a | 13227 | fi |
5d4aa1f5 | 13228 | $as_echo "$as_me: error: $2" >&2 |
1ef0423a FCE |
13229 | as_fn_exit $as_status |
13230 | } # as_fn_error | |
13231 | ||
13232 | ||
13233 | # as_fn_set_status STATUS | |
13234 | # ----------------------- | |
13235 | # Set $? to STATUS, without forking. | |
13236 | as_fn_set_status () | |
13237 | { | |
13238 | return $1 | |
13239 | } # as_fn_set_status | |
13240 | ||
13241 | # as_fn_exit STATUS | |
13242 | # ----------------- | |
13243 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
13244 | as_fn_exit () | |
13245 | { | |
13246 | set +e | |
13247 | as_fn_set_status $1 | |
13248 | exit $1 | |
13249 | } # as_fn_exit | |
13250 | ||
13251 | # as_fn_unset VAR | |
13252 | # --------------- | |
13253 | # Portably unset VAR. | |
13254 | as_fn_unset () | |
13255 | { | |
13256 | { eval $1=; unset $1;} | |
13257 | } | |
13258 | as_unset=as_fn_unset | |
13259 | # as_fn_append VAR VALUE | |
13260 | # ---------------------- | |
13261 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
13262 | # advantage of any shell optimizations that allow amortized linear growth over | |
13263 | # repeated appends, instead of the typical quadratic growth present in naive | |
13264 | # implementations. | |
13265 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
13266 | eval 'as_fn_append () | |
13267 | { | |
13268 | eval $1+=\$2 | |
13269 | }' | |
13270 | else | |
13271 | as_fn_append () | |
13272 | { | |
13273 | eval $1=\$$1\$2 | |
13274 | } | |
13275 | fi # as_fn_append | |
13276 | ||
13277 | # as_fn_arith ARG... | |
13278 | # ------------------ | |
13279 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
13280 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
13281 | # must be portable across $(()) and expr. | |
13282 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
13283 | eval 'as_fn_arith () | |
13284 | { | |
13285 | as_val=$(( $* )) | |
13286 | }' | |
13287 | else | |
13288 | as_fn_arith () | |
13289 | { | |
13290 | as_val=`expr "$@" || test $? -eq 1` | |
13291 | } | |
13292 | fi # as_fn_arith | |
13293 | ||
13294 | ||
7fbd9d09 FCE |
13295 | if expr a : '\(a\)' >/dev/null 2>&1 && |
13296 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
2f1a1aea FCE |
13297 | as_expr=expr |
13298 | else | |
13299 | as_expr=false | |
13300 | fi | |
13301 | ||
7fbd9d09 | 13302 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
2f1a1aea FCE |
13303 | as_basename=basename |
13304 | else | |
13305 | as_basename=false | |
13306 | fi | |
13307 | ||
1ef0423a FCE |
13308 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
13309 | as_dirname=dirname | |
13310 | else | |
13311 | as_dirname=false | |
13312 | fi | |
2f1a1aea | 13313 | |
7fbd9d09 | 13314 | as_me=`$as_basename -- "$0" || |
2f1a1aea FCE |
13315 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
13316 | X"$0" : 'X\(//\)$' \| \ | |
7fbd9d09 | 13317 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
0710d850 | 13318 | $as_echo X/"$0" | |
7fbd9d09 FCE |
13319 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
13320 | s//\1/ | |
13321 | q | |
13322 | } | |
13323 | /^X\/\(\/\/\)$/{ | |
13324 | s//\1/ | |
13325 | q | |
13326 | } | |
13327 | /^X\/\(\/\).*/{ | |
13328 | s//\1/ | |
13329 | q | |
13330 | } | |
13331 | s/.*/./; q'` | |
8ae7a94a | 13332 | |
1ef0423a FCE |
13333 | # Avoid depending upon Character Ranges. |
13334 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
13335 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
13336 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
13337 | as_cr_digits='0123456789' | |
13338 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7fbd9d09 FCE |
13339 | |
13340 | ECHO_C= ECHO_N= ECHO_T= | |
1ef0423a | 13341 | case `echo -n x` in #((((( |
7fbd9d09 | 13342 | -n*) |
1ef0423a | 13343 | case `echo 'xy\c'` in |
7fbd9d09 | 13344 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
1ef0423a FCE |
13345 | xy) ECHO_C='\c';; |
13346 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
13347 | ECHO_T=' ';; | |
7fbd9d09 FCE |
13348 | esac;; |
13349 | *) | |
13350 | ECHO_N='-n';; | |
2f1a1aea | 13351 | esac |
2f1a1aea FCE |
13352 | |
13353 | rm -f conf$$ conf$$.exe conf$$.file | |
7fbd9d09 FCE |
13354 | if test -d conf$$.dir; then |
13355 | rm -f conf$$.dir/conf$$.file | |
13356 | else | |
13357 | rm -f conf$$.dir | |
0710d850 DS |
13358 | mkdir conf$$.dir 2>/dev/null |
13359 | fi | |
13360 | if (echo >conf$$.file) 2>/dev/null; then | |
13361 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
13362 | as_ln_s='ln -s' | |
13363 | # ... but there are two gotchas: | |
13364 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
13365 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
8eef2738 | 13366 | # In both cases, we have to default to `cp -pR'. |
0710d850 | 13367 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
8eef2738 | 13368 | as_ln_s='cp -pR' |
0710d850 DS |
13369 | elif ln conf$$.file conf$$ 2>/dev/null; then |
13370 | as_ln_s=ln | |
13371 | else | |
8eef2738 | 13372 | as_ln_s='cp -pR' |
0710d850 | 13373 | fi |
2f1a1aea | 13374 | else |
8eef2738 | 13375 | as_ln_s='cp -pR' |
2f1a1aea | 13376 | fi |
7fbd9d09 FCE |
13377 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
13378 | rmdir conf$$.dir 2>/dev/null | |
2f1a1aea | 13379 | |
1ef0423a FCE |
13380 | |
13381 | # as_fn_mkdir_p | |
13382 | # ------------- | |
13383 | # Create "$as_dir" as a directory, including parents if necessary. | |
13384 | as_fn_mkdir_p () | |
13385 | { | |
13386 | ||
13387 | case $as_dir in #( | |
13388 | -*) as_dir=./$as_dir;; | |
13389 | esac | |
13390 | test -d "$as_dir" || eval $as_mkdir_p || { | |
13391 | as_dirs= | |
13392 | while :; do | |
13393 | case $as_dir in #( | |
13394 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
13395 | *) as_qdir=$as_dir;; | |
13396 | esac | |
13397 | as_dirs="'$as_qdir' $as_dirs" | |
13398 | as_dir=`$as_dirname -- "$as_dir" || | |
13399 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13400 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
13401 | X"$as_dir" : 'X\(//\)$' \| \ | |
13402 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
13403 | $as_echo X"$as_dir" | | |
13404 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13405 | s//\1/ | |
13406 | q | |
13407 | } | |
13408 | /^X\(\/\/\)[^/].*/{ | |
13409 | s//\1/ | |
13410 | q | |
13411 | } | |
13412 | /^X\(\/\/\)$/{ | |
13413 | s//\1/ | |
13414 | q | |
13415 | } | |
13416 | /^X\(\/\).*/{ | |
13417 | s//\1/ | |
13418 | q | |
13419 | } | |
13420 | s/.*/./; q'` | |
13421 | test -d "$as_dir" && break | |
13422 | done | |
13423 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
5d4aa1f5 | 13424 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
1ef0423a FCE |
13425 | |
13426 | ||
13427 | } # as_fn_mkdir_p | |
2f1a1aea | 13428 | if mkdir -p . 2>/dev/null; then |
1ef0423a | 13429 | as_mkdir_p='mkdir -p "$as_dir"' |
2f1a1aea FCE |
13430 | else |
13431 | test -d ./-p && rmdir ./-p | |
13432 | as_mkdir_p=false | |
13433 | fi | |
13434 | ||
8eef2738 LB |
13435 | |
13436 | # as_fn_executable_p FILE | |
13437 | # ----------------------- | |
13438 | # Test if FILE is an executable regular file. | |
13439 | as_fn_executable_p () | |
13440 | { | |
13441 | test -f "$1" && test -x "$1" | |
13442 | } # as_fn_executable_p | |
13443 | as_test_x='test -x' | |
13444 | as_executable_p=as_fn_executable_p | |
2f1a1aea FCE |
13445 | |
13446 | # Sed expression to map a string onto a valid CPP name. | |
13447 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
13448 | ||
13449 | # Sed expression to map a string onto a valid variable name. | |
13450 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
13451 | ||
13452 | ||
2f1a1aea | 13453 | exec 6>&1 |
1ef0423a FCE |
13454 | ## ----------------------------------- ## |
13455 | ## Main body of $CONFIG_STATUS script. ## | |
13456 | ## ----------------------------------- ## | |
13457 | _ASEOF | |
13458 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
2f1a1aea | 13459 | |
1ef0423a FCE |
13460 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13461 | # Save the log message, to keep $0 and so on meaningful, and to | |
2f1a1aea | 13462 | # report actual input values of CONFIG_FILES etc. instead of their |
7fbd9d09 FCE |
13463 | # values after options handling. |
13464 | ac_log=" | |
9c043a41 | 13465 | This file was extended by systemtap $as_me 3.2, which was |
8eef2738 | 13466 | generated by GNU Autoconf 2.69. Invocation command line was |
2f1a1aea FCE |
13467 | |
13468 | CONFIG_FILES = $CONFIG_FILES | |
13469 | CONFIG_HEADERS = $CONFIG_HEADERS | |
13470 | CONFIG_LINKS = $CONFIG_LINKS | |
13471 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
13472 | $ $0 $@ | |
13473 | ||
7fbd9d09 FCE |
13474 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
13475 | " | |
13476 | ||
2f1a1aea FCE |
13477 | _ACEOF |
13478 | ||
0710d850 DS |
13479 | case $ac_config_files in *" |
13480 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
13481 | esac | |
13482 | ||
13483 | case $ac_config_headers in *" | |
13484 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
13485 | esac | |
13486 | ||
13487 | ||
13488 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
818ba2bc | 13489 | # Files that config.status was made for. |
7fbd9d09 FCE |
13490 | config_files="$ac_config_files" |
13491 | config_headers="$ac_config_headers" | |
13492 | config_commands="$ac_config_commands" | |
daae650d | 13493 | |
7fbd9d09 | 13494 | _ACEOF |
8ae7a94a | 13495 | |
0710d850 | 13496 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
2f1a1aea | 13497 | ac_cs_usage="\ |
1ef0423a FCE |
13498 | \`$as_me' instantiates files and other configuration actions |
13499 | from templates according to the current configuration. Unless the files | |
13500 | and actions are specified as TAGs, all are instantiated by default. | |
2f1a1aea | 13501 | |
1ef0423a | 13502 | Usage: $0 [OPTION]... [TAG]... |
2f1a1aea FCE |
13503 | |
13504 | -h, --help print this help, then exit | |
7fbd9d09 | 13505 | -V, --version print version number and configuration settings, then exit |
1ef0423a | 13506 | --config print configuration, then exit |
0710d850 DS |
13507 | -q, --quiet, --silent |
13508 | do not print progress messages | |
2f1a1aea FCE |
13509 | -d, --debug don't remove temporary files |
13510 | --recheck update $as_me by reconfiguring in the same conditions | |
0710d850 DS |
13511 | --file=FILE[:TEMPLATE] |
13512 | instantiate the configuration file FILE | |
13513 | --header=FILE[:TEMPLATE] | |
13514 | instantiate the configuration header FILE | |
2f1a1aea FCE |
13515 | |
13516 | Configuration files: | |
13517 | $config_files | |
13518 | ||
13519 | Configuration headers: | |
13520 | $config_headers | |
13521 | ||
13522 | Configuration commands: | |
13523 | $config_commands | |
13524 | ||
306dd4f8 | 13525 | Report bugs to <systemtap@sourceware.org>." |
818ba2bc | 13526 | |
7fbd9d09 | 13527 | _ACEOF |
0710d850 | 13528 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
1ef0423a | 13529 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
2f1a1aea | 13530 | ac_cs_version="\\ |
9c043a41 | 13531 | systemtap config.status 3.2 |
8eef2738 | 13532 | configured by $0, generated by GNU Autoconf 2.69, |
1ef0423a | 13533 | with options \\"\$ac_cs_config\\" |
2f1a1aea | 13534 | |
8eef2738 | 13535 | Copyright (C) 2012 Free Software Foundation, Inc. |
2f1a1aea FCE |
13536 | This config.status script is free software; the Free Software Foundation |
13537 | gives unlimited permission to copy, distribute and modify it." | |
7fbd9d09 FCE |
13538 | |
13539 | ac_pwd='$ac_pwd' | |
13540 | srcdir='$srcdir' | |
13541 | INSTALL='$INSTALL' | |
13542 | MKDIR_P='$MKDIR_P' | |
0710d850 DS |
13543 | AWK='$AWK' |
13544 | test -n "\$AWK" || AWK=awk | |
2f1a1aea FCE |
13545 | _ACEOF |
13546 | ||
0710d850 DS |
13547 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13548 | # The default lists apply if the user does not specify any file. | |
2f1a1aea FCE |
13549 | ac_need_defaults=: |
13550 | while test $# != 0 | |
13551 | do | |
13552 | case $1 in | |
c3de29bd | 13553 | --*=?*) |
7fbd9d09 FCE |
13554 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
13555 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
2f1a1aea FCE |
13556 | ac_shift=: |
13557 | ;; | |
c3de29bd LB |
13558 | --*=) |
13559 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
13560 | ac_optarg= | |
13561 | ac_shift=: | |
13562 | ;; | |
7fbd9d09 | 13563 | *) |
2f1a1aea FCE |
13564 | ac_option=$1 |
13565 | ac_optarg=$2 | |
13566 | ac_shift=shift | |
13567 | ;; | |
2f1a1aea FCE |
13568 | esac |
13569 | ||
13570 | case $ac_option in | |
13571 | # Handling of the options. | |
2f1a1aea FCE |
13572 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
13573 | ac_cs_recheck=: ;; | |
7fbd9d09 | 13574 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
0710d850 | 13575 | $as_echo "$ac_cs_version"; exit ;; |
1ef0423a FCE |
13576 | --config | --confi | --conf | --con | --co | --c ) |
13577 | $as_echo "$ac_cs_config"; exit ;; | |
7fbd9d09 | 13578 | --debug | --debu | --deb | --de | --d | -d ) |
2f1a1aea FCE |
13579 | debug=: ;; |
13580 | --file | --fil | --fi | --f ) | |
13581 | $ac_shift | |
0710d850 DS |
13582 | case $ac_optarg in |
13583 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
c3de29bd | 13584 | '') as_fn_error $? "missing file argument" ;; |
0710d850 | 13585 | esac |
1ef0423a | 13586 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
2f1a1aea FCE |
13587 | ac_need_defaults=false;; |
13588 | --header | --heade | --head | --hea ) | |
13589 | $ac_shift | |
0710d850 DS |
13590 | case $ac_optarg in |
13591 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13592 | esac | |
1ef0423a | 13593 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
2f1a1aea | 13594 | ac_need_defaults=false;; |
7fbd9d09 FCE |
13595 | --he | --h) |
13596 | # Conflict between --help and --header | |
5d4aa1f5 | 13597 | as_fn_error $? "ambiguous option: \`$1' |
1ef0423a | 13598 | Try \`$0 --help' for more information.";; |
7fbd9d09 | 13599 | --help | --hel | -h ) |
0710d850 | 13600 | $as_echo "$ac_cs_usage"; exit ;; |
2f1a1aea FCE |
13601 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
13602 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
13603 | ac_cs_silent=: ;; | |
13604 | ||
13605 | # This is an error. | |
5d4aa1f5 | 13606 | -*) as_fn_error $? "unrecognized option: \`$1' |
1ef0423a | 13607 | Try \`$0 --help' for more information." ;; |
2f1a1aea | 13608 | |
1ef0423a | 13609 | *) as_fn_append ac_config_targets " $1" |
7fbd9d09 | 13610 | ac_need_defaults=false ;; |
2f1a1aea FCE |
13611 | |
13612 | esac | |
13613 | shift | |
13614 | done | |
13615 | ||
13616 | ac_configure_extra_args= | |
13617 | ||
13618 | if $ac_cs_silent; then | |
13619 | exec 6>/dev/null | |
13620 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
13621 | fi | |
13622 | ||
13623 | _ACEOF | |
0710d850 | 13624 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
2f1a1aea | 13625 | if \$ac_cs_recheck; then |
8eef2738 | 13626 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
0710d850 DS |
13627 | shift |
13628 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
13629 | CONFIG_SHELL='$SHELL' | |
7fbd9d09 | 13630 | export CONFIG_SHELL |
0710d850 | 13631 | exec "\$@" |
2f1a1aea FCE |
13632 | fi |
13633 | ||
13634 | _ACEOF | |
0710d850 | 13635 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7fbd9d09 FCE |
13636 | exec 5>>config.log |
13637 | { | |
13638 | echo | |
13639 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
13640 | ## Running $as_me. ## | |
13641 | _ASBOX | |
0710d850 | 13642 | $as_echo "$ac_log" |
7fbd9d09 | 13643 | } >&5 |
2f1a1aea | 13644 | |
7fbd9d09 | 13645 | _ACEOF |
0710d850 | 13646 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
2f1a1aea | 13647 | # |
7fbd9d09 | 13648 | # INIT-COMMANDS |
2f1a1aea | 13649 | # |
2f1a1aea | 13650 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
8f223b3e FCE |
13651 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
13652 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it | |
13653 | # from automake < 1.5. | |
13654 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
13655 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
13656 | LINGUAS="${LINGUAS-%UNSET%}" | |
13657 | ||
2f1a1aea FCE |
13658 | |
13659 | _ACEOF | |
13660 | ||
0710d850 | 13661 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7fbd9d09 FCE |
13662 | |
13663 | # Handling of arguments. | |
2f1a1aea FCE |
13664 | for ac_config_target in $ac_config_targets |
13665 | do | |
7fbd9d09 FCE |
13666 | case $ac_config_target in |
13667 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
8f223b3e | 13668 | "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; |
f9794ee4 | 13669 | "includes/sys/sdt-config.h") CONFIG_FILES="$CONFIG_FILES includes/sys/sdt-config.h" ;; |
8f223b3e | 13670 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; |
7fbd9d09 FCE |
13671 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; |
13672 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
13673 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
a6e785fa | 13674 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
7ba226f5 | 13675 | "man/cs/Makefile") CONFIG_FILES="$CONFIG_FILES man/cs/Makefile" ;; |
53ade4da | 13676 | "doc/beginners/Makefile") CONFIG_FILES="$CONFIG_FILES doc/beginners/Makefile" ;; |
7fbd9d09 | 13677 | "doc/SystemTap_Tapset_Reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/SystemTap_Tapset_Reference/Makefile" ;; |
c5f68013 | 13678 | "man/stap.1") CONFIG_FILES="$CONFIG_FILES man/stap.1" ;; |
a6e785fa | 13679 | "man/stappaths.7") CONFIG_FILES="$CONFIG_FILES man/stappaths.7" ;; |
b5c84307 | 13680 | "man/systemtap.8") CONFIG_FILES="$CONFIG_FILES man/systemtap.8" ;; |
c5f68013 | 13681 | "man/cs/stap.1") CONFIG_FILES="$CONFIG_FILES man/cs/stap.1" ;; |
71730019 MC |
13682 | "man/cs/stappaths.7") CONFIG_FILES="$CONFIG_FILES man/cs/stappaths.7" ;; |
13683 | "man/cs/systemtap.8") CONFIG_FILES="$CONFIG_FILES man/cs/systemtap.8" ;; | |
29fe12e4 WC |
13684 | "initscript/config.systemtap") CONFIG_FILES="$CONFIG_FILES initscript/config.systemtap" ;; |
13685 | "initscript/config.stap-server") CONFIG_FILES="$CONFIG_FILES initscript/config.stap-server" ;; | |
7fbd9d09 | 13686 | "initscript/systemtap") CONFIG_FILES="$CONFIG_FILES initscript/systemtap" ;; |
2f78bee0 | 13687 | "initscript/stap-server") CONFIG_FILES="$CONFIG_FILES initscript/stap-server" ;; |
b728b279 | 13688 | "initscript/99stap/module-setup.sh") CONFIG_FILES="$CONFIG_FILES initscript/99stap/module-setup.sh" ;; |
9ed47854 MC |
13689 | "initscript/99stap/install") CONFIG_FILES="$CONFIG_FILES initscript/99stap/install" ;; |
13690 | "initscript/99stap/check") CONFIG_FILES="$CONFIG_FILES initscript/99stap/check" ;; | |
7fbd9d09 | 13691 | "run-stap") CONFIG_FILES="$CONFIG_FILES run-stap" ;; |
e4aaabda | 13692 | "dtrace") CONFIG_FILES="$CONFIG_FILES dtrace" ;; |
66c3c633 | 13693 | "stapdyn/Makefile") CONFIG_FILES="$CONFIG_FILES stapdyn/Makefile" ;; |
9ac164fa | 13694 | "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;; |
d885563b | 13695 | "java/stapbm") CONFIG_FILES="$CONFIG_FILES java/stapbm" ;; |
cf8a58fc | 13696 | "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;; |
97859b9d | 13697 | "staprun/Makefile") CONFIG_FILES="$CONFIG_FILES staprun/Makefile" ;; |
5c5a0bf2 | 13698 | "httpd/Makefile") CONFIG_FILES="$CONFIG_FILES httpd/Makefile" ;; |
97859b9d | 13699 | "staprun/run-staprun") CONFIG_FILES="$CONFIG_FILES staprun/run-staprun" ;; |
42f767d0 JL |
13700 | "staprun/guest/stapshd") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapshd" ;; |
13701 | "staprun/guest/stapsh-daemon") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapsh-daemon" ;; | |
13702 | "staprun/guest/stapsh@.service") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapsh@.service" ;; | |
53ade4da | 13703 | "doc/beginners") CONFIG_COMMANDS="$CONFIG_COMMANDS doc/beginners" ;; |
7fbd9d09 | 13704 | |
5d4aa1f5 | 13705 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
2f1a1aea FCE |
13706 | esac |
13707 | done | |
13708 | ||
7fbd9d09 | 13709 | |
2f1a1aea FCE |
13710 | # If the user did not use the arguments to specify the items to instantiate, |
13711 | # then the envvar interface is used. Set only those that are not. | |
13712 | # We use the long form for the default assignment because of an extremely | |
13713 | # bizarre bug on SunOS 4.1.3. | |
13714 | if $ac_need_defaults; then | |
13715 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
13716 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
13717 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
13718 | fi | |
13719 | ||
13720 | # Have a temporary directory for convenience. Make it in the build tree | |
7fbd9d09 | 13721 | # simply because there is no reason against having it here, and in addition, |
2f1a1aea | 13722 | # creating and moving files from /tmp can sometimes cause problems. |
7fbd9d09 FCE |
13723 | # Hook for its removal unless debugging. |
13724 | # Note that there is a small window in which the directory will not be cleaned: | |
13725 | # after its creation but before its name has been assigned to `$tmp'. | |
2f1a1aea FCE |
13726 | $debug || |
13727 | { | |
c3de29bd | 13728 | tmp= ac_tmp= |
7fbd9d09 | 13729 | trap 'exit_status=$? |
c3de29bd LB |
13730 | : "${ac_tmp:=$tmp}" |
13731 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
7fbd9d09 | 13732 | ' 0 |
1ef0423a | 13733 | trap 'as_fn_exit 1' 1 2 13 15 |
2f1a1aea | 13734 | } |
2f1a1aea FCE |
13735 | # Create a (secure) tmp directory for tmp files. |
13736 | ||
13737 | { | |
7fbd9d09 | 13738 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
c3de29bd | 13739 | test -d "$tmp" |
2f1a1aea FCE |
13740 | } || |
13741 | { | |
7fbd9d09 FCE |
13742 | tmp=./conf$$-$RANDOM |
13743 | (umask 077 && mkdir "$tmp") | |
5d4aa1f5 | 13744 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
c3de29bd | 13745 | ac_tmp=$tmp |
2f1a1aea | 13746 | |
0710d850 DS |
13747 | # Set up the scripts for CONFIG_FILES section. |
13748 | # No need to generate them if there are no CONFIG_FILES. | |
13749 | # This happens for instance with `./config.status config.h'. | |
7fbd9d09 FCE |
13750 | if test -n "$CONFIG_FILES"; then |
13751 | ||
31f9baea | 13752 | |
1ef0423a FCE |
13753 | ac_cr=`echo X | tr X '\015'` |
13754 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
13755 | # But we know of no other shell where ac_cr would be empty at this | |
13756 | # point, so we can use a bashism as a fallback. | |
13757 | if test "x$ac_cr" = x; then | |
13758 | eval ac_cr=\$\'\\r\' | |
13759 | fi | |
0710d850 DS |
13760 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
13761 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
5d4aa1f5 | 13762 | ac_cs_awk_cr='\\r' |
0710d850 DS |
13763 | else |
13764 | ac_cs_awk_cr=$ac_cr | |
7fbd9d09 | 13765 | fi |
5e0d2ebf | 13766 | |
c3de29bd | 13767 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
7fbd9d09 FCE |
13768 | _ACEOF |
13769 | ||
13770 | ||
0710d850 DS |
13771 | { |
13772 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
13773 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
13774 | echo "_ACEOF" | |
13775 | } >conf$$subs.sh || | |
5d4aa1f5 FCE |
13776 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
13777 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
7fbd9d09 FCE |
13778 | ac_delim='%!_!# ' |
13779 | for ac_last_try in false false false false false :; do | |
0710d850 | 13780 | . ./conf$$subs.sh || |
5d4aa1f5 | 13781 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
0710d850 DS |
13782 | |
13783 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
13784 | if test $ac_delim_n = $ac_delim_num; then | |
7fbd9d09 FCE |
13785 | break |
13786 | elif $ac_last_try; then | |
5d4aa1f5 | 13787 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
7fbd9d09 FCE |
13788 | else |
13789 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13790 | fi | |
13791 | done | |
0710d850 DS |
13792 | rm -f conf$$subs.sh |
13793 | ||
13794 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
c3de29bd | 13795 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
0710d850 DS |
13796 | _ACEOF |
13797 | sed -n ' | |
13798 | h | |
13799 | s/^/S["/; s/!.*/"]=/ | |
13800 | p | |
13801 | g | |
13802 | s/^[^!]*!// | |
13803 | :repl | |
13804 | t repl | |
13805 | s/'"$ac_delim"'$// | |
13806 | t delim | |
13807 | :nl | |
13808 | h | |
1ef0423a | 13809 | s/\(.\{148\}\)..*/\1/ |
0710d850 DS |
13810 | t more1 |
13811 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
13812 | p | |
13813 | n | |
13814 | b repl | |
13815 | :more1 | |
13816 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13817 | p | |
13818 | g | |
13819 | s/.\{148\}// | |
13820 | t nl | |
13821 | :delim | |
13822 | h | |
1ef0423a | 13823 | s/\(.\{148\}\)..*/\1/ |
0710d850 DS |
13824 | t more2 |
13825 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
13826 | p | |
13827 | b | |
13828 | :more2 | |
13829 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13830 | p | |
13831 | g | |
13832 | s/.\{148\}// | |
13833 | t delim | |
13834 | ' <conf$$subs.awk | sed ' | |
13835 | /^[^""]/{ | |
13836 | N | |
13837 | s/\n// | |
13838 | } | |
13839 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
13840 | rm -f conf$$subs.awk | |
13841 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13842 | _ACAWK | |
c3de29bd | 13843 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
0710d850 DS |
13844 | for (key in S) S_is_set[key] = 1 |
13845 | FS = "\a" | |
7fbd9d09 | 13846 | |
0710d850 DS |
13847 | } |
13848 | { | |
13849 | line = $ 0 | |
13850 | nfields = split(line, field, "@") | |
13851 | substed = 0 | |
13852 | len = length(field[1]) | |
13853 | for (i = 2; i < nfields; i++) { | |
13854 | key = field[i] | |
13855 | keylen = length(key) | |
13856 | if (S_is_set[key]) { | |
13857 | value = S[key] | |
13858 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
13859 | len += length(value) + length(field[++i]) | |
13860 | substed = 1 | |
13861 | } else | |
13862 | len += 1 + keylen | |
13863 | } | |
13864 | ||
13865 | print line | |
13866 | } | |
7fbd9d09 | 13867 | |
0710d850 | 13868 | _ACAWK |
7fbd9d09 | 13869 | _ACEOF |
0710d850 DS |
13870 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13871 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
13872 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
13873 | else | |
13874 | cat | |
c3de29bd | 13875 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
5d4aa1f5 | 13876 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
7fbd9d09 FCE |
13877 | _ACEOF |
13878 | ||
5d4aa1f5 FCE |
13879 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
13880 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
7fbd9d09 FCE |
13881 | # trailing colons and then remove the whole line if VPATH becomes empty |
13882 | # (actually we leave an empty line to preserve line numbers). | |
13883 | if test "x$srcdir" = x.; then | |
5d4aa1f5 FCE |
13884 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
13885 | h | |
13886 | s/// | |
13887 | s/^/:/ | |
13888 | s/[ ]*$/:/ | |
13889 | s/:\$(srcdir):/:/g | |
13890 | s/:\${srcdir}:/:/g | |
13891 | s/:@srcdir@:/:/g | |
13892 | s/^:*// | |
7fbd9d09 | 13893 | s/:*$// |
5d4aa1f5 FCE |
13894 | x |
13895 | s/\(=[ ]*\).*/\1/ | |
13896 | G | |
13897 | s/\n// | |
7fbd9d09 FCE |
13898 | s/^[^=]*=[ ]*$// |
13899 | }' | |
13900 | fi | |
13901 | ||
0710d850 | 13902 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7fbd9d09 FCE |
13903 | fi # test -n "$CONFIG_FILES" |
13904 | ||
0710d850 DS |
13905 | # Set up the scripts for CONFIG_HEADERS section. |
13906 | # No need to generate them if there are no CONFIG_HEADERS. | |
13907 | # This happens for instance with `./config.status Makefile'. | |
13908 | if test -n "$CONFIG_HEADERS"; then | |
c3de29bd | 13909 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
0710d850 DS |
13910 | BEGIN { |
13911 | _ACEOF | |
13912 | ||
13913 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
13914 | # here-document in config.status, that substitutes the proper values into | |
13915 | # config.h.in to produce config.h. | |
13916 | ||
13917 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
13918 | # handling of long lines. | |
13919 | ac_delim='%!_!# ' | |
13920 | for ac_last_try in false false :; do | |
c3de29bd LB |
13921 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
13922 | if test -z "$ac_tt"; then | |
0710d850 DS |
13923 | break |
13924 | elif $ac_last_try; then | |
5d4aa1f5 | 13925 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
0710d850 DS |
13926 | else |
13927 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13928 | fi | |
13929 | done | |
13930 | ||
13931 | # For the awk script, D is an array of macro values keyed by name, | |
13932 | # likewise P contains macro parameters if any. Preserve backslash | |
13933 | # newline sequences. | |
13934 | ||
13935 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
13936 | sed -n ' | |
13937 | s/.\{148\}/&'"$ac_delim"'/g | |
13938 | t rset | |
13939 | :rset | |
13940 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
13941 | t def | |
13942 | d | |
13943 | :def | |
13944 | s/\\$// | |
13945 | t bsnl | |
13946 | s/["\\]/\\&/g | |
13947 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13948 | D["\1"]=" \3"/p | |
13949 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
13950 | d | |
13951 | :bsnl | |
13952 | s/["\\]/\\&/g | |
13953 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13954 | D["\1"]=" \3\\\\\\n"\\/p | |
13955 | t cont | |
13956 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
13957 | t cont | |
13958 | d | |
13959 | :cont | |
13960 | n | |
13961 | s/.\{148\}/&'"$ac_delim"'/g | |
13962 | t clear | |
13963 | :clear | |
13964 | s/\\$// | |
13965 | t bsnlc | |
13966 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
13967 | d | |
13968 | :bsnlc | |
13969 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
13970 | b cont | |
13971 | ' <confdefs.h | sed ' | |
13972 | s/'"$ac_delim"'/"\\\ | |
13973 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
13974 | ||
13975 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13976 | for (key in D) D_is_set[key] = 1 | |
13977 | FS = "\a" | |
13978 | } | |
13979 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
13980 | line = \$ 0 | |
13981 | split(line, arg, " ") | |
13982 | if (arg[1] == "#") { | |
13983 | defundef = arg[2] | |
13984 | mac1 = arg[3] | |
13985 | } else { | |
13986 | defundef = substr(arg[1], 2) | |
13987 | mac1 = arg[2] | |
13988 | } | |
13989 | split(mac1, mac2, "(") #) | |
13990 | macro = mac2[1] | |
13991 | prefix = substr(line, 1, index(line, defundef) - 1) | |
13992 | if (D_is_set[macro]) { | |
13993 | # Preserve the white space surrounding the "#". | |
13994 | print prefix "define", macro P[macro] D[macro] | |
13995 | next | |
13996 | } else { | |
13997 | # Replace #undef with comments. This is necessary, for example, | |
13998 | # in the case of _POSIX_SOURCE, which is predefined and required | |
13999 | # on some systems where configure will not decide to define it. | |
14000 | if (defundef == "undef") { | |
14001 | print "/*", prefix defundef, macro, "*/" | |
14002 | next | |
14003 | } | |
14004 | } | |
14005 | } | |
14006 | { print } | |
14007 | _ACAWK | |
14008 | _ACEOF | |
14009 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
5d4aa1f5 | 14010 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
0710d850 DS |
14011 | fi # test -n "$CONFIG_HEADERS" |
14012 | ||
27aba29a | 14013 | |
0710d850 DS |
14014 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
14015 | shift | |
14016 | for ac_tag | |
7fbd9d09 FCE |
14017 | do |
14018 | case $ac_tag in | |
14019 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
2f1a1aea | 14020 | esac |
7fbd9d09 FCE |
14021 | case $ac_mode$ac_tag in |
14022 | :[FHL]*:*);; | |
5d4aa1f5 | 14023 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
7fbd9d09 FCE |
14024 | :[FH]-) ac_tag=-:-;; |
14025 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
14026 | esac | |
14027 | ac_save_IFS=$IFS | |
14028 | IFS=: | |
14029 | set x $ac_tag | |
14030 | IFS=$ac_save_IFS | |
14031 | shift | |
14032 | ac_file=$1 | |
14033 | shift | |
2f1a1aea | 14034 | |
7fbd9d09 FCE |
14035 | case $ac_mode in |
14036 | :L) ac_source=$1;; | |
14037 | :[FH]) | |
14038 | ac_file_inputs= | |
14039 | for ac_f | |
14040 | do | |
14041 | case $ac_f in | |
c3de29bd | 14042 | -) ac_f="$ac_tmp/stdin";; |
7fbd9d09 FCE |
14043 | *) # Look for the file first in the build tree, then in the source tree |
14044 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
14045 | # because $ac_f cannot contain `:'. | |
14046 | test -f "$ac_f" || | |
14047 | case $ac_f in | |
14048 | [\\/$]*) false;; | |
14049 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
14050 | esac || | |
5d4aa1f5 | 14051 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
7fbd9d09 | 14052 | esac |
0710d850 | 14053 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
1ef0423a | 14054 | as_fn_append ac_file_inputs " '$ac_f'" |
7fbd9d09 FCE |
14055 | done |
14056 | ||
14057 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
14058 | # use $as_me), people would be surprised to read: | |
14059 | # /* config.h. Generated by config.status. */ | |
0710d850 DS |
14060 | configure_input='Generated from '` |
14061 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
14062 | `' by configure.' | |
7fbd9d09 FCE |
14063 | if test x"$ac_file" != x-; then |
14064 | configure_input="$ac_file. $configure_input" | |
1ef0423a | 14065 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
0710d850 | 14066 | $as_echo "$as_me: creating $ac_file" >&6;} |
7fbd9d09 | 14067 | fi |
0710d850 DS |
14068 | # Neutralize special characters interpreted by sed in replacement strings. |
14069 | case $configure_input in #( | |
14070 | *\&* | *\|* | *\\* ) | |
14071 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
14072 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
14073 | *) ac_sed_conf_input=$configure_input;; | |
14074 | esac | |
7fbd9d09 FCE |
14075 | |
14076 | case $ac_tag in | |
c3de29bd | 14077 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
5d4aa1f5 | 14078 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
7fbd9d09 FCE |
14079 | esac |
14080 | ;; | |
14081 | esac | |
14082 | ||
14083 | ac_dir=`$as_dirname -- "$ac_file" || | |
2f1a1aea FCE |
14084 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14085 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
14086 | X"$ac_file" : 'X\(//\)$' \| \ | |
7fbd9d09 | 14087 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
0710d850 | 14088 | $as_echo X"$ac_file" | |
7fbd9d09 FCE |
14089 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
14090 | s//\1/ | |
14091 | q | |
14092 | } | |
14093 | /^X\(\/\/\)[^/].*/{ | |
14094 | s//\1/ | |
14095 | q | |
14096 | } | |
14097 | /^X\(\/\/\)$/{ | |
14098 | s//\1/ | |
14099 | q | |
14100 | } | |
14101 | /^X\(\/\).*/{ | |
14102 | s//\1/ | |
14103 | q | |
14104 | } | |
14105 | s/.*/./; q'` | |
1ef0423a | 14106 | as_dir="$ac_dir"; as_fn_mkdir_p |
2f1a1aea FCE |
14107 | ac_builddir=. |
14108 | ||
7fbd9d09 FCE |
14109 | case "$ac_dir" in |
14110 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
14111 | *) | |
0710d850 | 14112 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7fbd9d09 | 14113 | # A ".." for each directory in $ac_dir_suffix. |
0710d850 | 14114 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7fbd9d09 FCE |
14115 | case $ac_top_builddir_sub in |
14116 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
14117 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
14118 | esac ;; | |
14119 | esac | |
14120 | ac_abs_top_builddir=$ac_pwd | |
14121 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
14122 | # for backward compatibility: | |
14123 | ac_top_builddir=$ac_top_build_prefix | |
2f1a1aea FCE |
14124 | |
14125 | case $srcdir in | |
7fbd9d09 | 14126 | .) # We are building in place. |
2f1a1aea | 14127 | ac_srcdir=. |
7fbd9d09 FCE |
14128 | ac_top_srcdir=$ac_top_builddir_sub |
14129 | ac_abs_top_srcdir=$ac_pwd ;; | |
14130 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
2f1a1aea | 14131 | ac_srcdir=$srcdir$ac_dir_suffix; |
7fbd9d09 FCE |
14132 | ac_top_srcdir=$srcdir |
14133 | ac_abs_top_srcdir=$srcdir ;; | |
14134 | *) # Relative name. | |
14135 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
14136 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
14137 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
2f1a1aea | 14138 | esac |
7fbd9d09 | 14139 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
2f1a1aea | 14140 | |
2f1a1aea | 14141 | |
7fbd9d09 FCE |
14142 | case $ac_mode in |
14143 | :F) | |
14144 | # | |
14145 | # CONFIG_FILE | |
14146 | # | |
2f1a1aea FCE |
14147 | |
14148 | case $INSTALL in | |
14149 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7fbd9d09 FCE |
14150 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
14151 | esac | |
14152 | ac_MKDIR_P=$MKDIR_P | |
14153 | case $MKDIR_P in | |
14154 | [\\/$]* | ?:[\\/]* ) ;; | |
14155 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
5e0d2ebf | 14156 | esac |
7fbd9d09 | 14157 | _ACEOF |
5e0d2ebf | 14158 | |
0710d850 | 14159 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7fbd9d09 FCE |
14160 | # If the template does not know about datarootdir, expand it. |
14161 | # FIXME: This hack should be removed a few years after 2.60. | |
14162 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
0710d850 DS |
14163 | ac_sed_dataroot=' |
14164 | /datarootdir/ { | |
7fbd9d09 FCE |
14165 | p |
14166 | q | |
14167 | } | |
14168 | /@datadir@/p | |
14169 | /@docdir@/p | |
14170 | /@infodir@/p | |
14171 | /@localedir@/p | |
1ef0423a | 14172 | /@mandir@/p' |
0710d850 | 14173 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
7fbd9d09 FCE |
14174 | *datarootdir*) ac_datarootdir_seen=yes;; |
14175 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
1ef0423a | 14176 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
0710d850 | 14177 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
7fbd9d09 | 14178 | _ACEOF |
0710d850 | 14179 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7fbd9d09 FCE |
14180 | ac_datarootdir_hack=' |
14181 | s&@datadir@&$datadir&g | |
14182 | s&@docdir@&$docdir&g | |
14183 | s&@infodir@&$infodir&g | |
14184 | s&@localedir@&$localedir&g | |
14185 | s&@mandir@&$mandir&g | |
1ef0423a | 14186 | s&\\\${datarootdir}&$datarootdir&g' ;; |
7fbd9d09 | 14187 | esac |
70d28673 | 14188 | _ACEOF |
7fbd9d09 FCE |
14189 | |
14190 | # Neutralize VPATH when `$srcdir' = `.'. | |
14191 | # Shell code in configure.ac might set extrasub. | |
14192 | # FIXME: do we really want to maintain this feature? | |
0710d850 DS |
14193 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14194 | ac_sed_extra="$ac_vpsub | |
2f1a1aea FCE |
14195 | $extrasub |
14196 | _ACEOF | |
0710d850 | 14197 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
2f1a1aea FCE |
14198 | :t |
14199 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
0710d850 | 14200 | s|@configure_input@|$ac_sed_conf_input|;t t |
7fbd9d09 | 14201 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
0710d850 | 14202 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7fbd9d09 FCE |
14203 | s&@srcdir@&$ac_srcdir&;t t |
14204 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
14205 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
14206 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
14207 | s&@builddir@&$ac_builddir&;t t | |
14208 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
14209 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
14210 | s&@INSTALL@&$ac_INSTALL&;t t | |
14211 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
14212 | $ac_datarootdir_hack | |
0710d850 | 14213 | " |
c3de29bd LB |
14214 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
14215 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
7fbd9d09 FCE |
14216 | |
14217 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
c3de29bd LB |
14218 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
14219 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
14220 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
1ef0423a | 14221 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
5d4aa1f5 | 14222 | which seems to be undefined. Please make sure it is defined" >&5 |
0710d850 | 14223 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
5d4aa1f5 | 14224 | which seems to be undefined. Please make sure it is defined" >&2;} |
7fbd9d09 | 14225 | |
c3de29bd | 14226 | rm -f "$ac_tmp/stdin" |
818ba2bc | 14227 | case $ac_file in |
c3de29bd LB |
14228 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
14229 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
0710d850 | 14230 | esac \ |
5d4aa1f5 | 14231 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
7fbd9d09 FCE |
14232 | ;; |
14233 | :H) | |
14234 | # | |
14235 | # CONFIG_HEADER | |
14236 | # | |
818ba2bc | 14237 | if test x"$ac_file" != x-; then |
0710d850 DS |
14238 | { |
14239 | $as_echo "/* $configure_input */" \ | |
c3de29bd LB |
14240 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
14241 | } >"$ac_tmp/config.h" \ | |
5d4aa1f5 | 14242 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
c3de29bd | 14243 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
1ef0423a | 14244 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
0710d850 | 14245 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
2f1a1aea | 14246 | else |
0710d850 | 14247 | rm -f "$ac_file" |
c3de29bd | 14248 | mv "$ac_tmp/config.h" "$ac_file" \ |
5d4aa1f5 | 14249 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
2f1a1aea FCE |
14250 | fi |
14251 | else | |
0710d850 | 14252 | $as_echo "/* $configure_input */" \ |
c3de29bd | 14253 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
5d4aa1f5 | 14254 | || as_fn_error $? "could not create -" "$LINENO" 5 |
2f1a1aea | 14255 | fi |
0710d850 DS |
14256 | # Compute "$ac_file"'s index in $config_headers. |
14257 | _am_arg="$ac_file" | |
2f1a1aea FCE |
14258 | _am_stamp_count=1 |
14259 | for _am_header in $config_headers :; do | |
14260 | case $_am_header in | |
0710d850 | 14261 | $_am_arg | $_am_arg:* ) |
2f1a1aea FCE |
14262 | break ;; |
14263 | * ) | |
14264 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
14265 | esac | |
14266 | done | |
0710d850 DS |
14267 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
14268 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14269 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
14270 | X"$_am_arg" : 'X\(//\)$' \| \ | |
14271 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
14272 | $as_echo X"$_am_arg" | | |
7fbd9d09 FCE |
14273 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
14274 | s//\1/ | |
14275 | q | |
14276 | } | |
14277 | /^X\(\/\/\)[^/].*/{ | |
14278 | s//\1/ | |
14279 | q | |
14280 | } | |
14281 | /^X\(\/\/\)$/{ | |
14282 | s//\1/ | |
14283 | q | |
14284 | } | |
14285 | /^X\(\/\).*/{ | |
14286 | s//\1/ | |
14287 | q | |
14288 | } | |
14289 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
14290 | ;; | |
818ba2bc | 14291 | |
1ef0423a | 14292 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
0710d850 | 14293 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
7fbd9d09 FCE |
14294 | ;; |
14295 | esac | |
818ba2bc MW |
14296 | |
14297 | ||
7fbd9d09 | 14298 | case $ac_file$ac_mode in |
0710d850 | 14299 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
d9e6d90b | 14300 | # Older Autoconf quotes --file arguments for eval, but not when files |
0710d850 DS |
14301 | # are listed without --file. Let's play safe and only enable the eval |
14302 | # if we detect the quoting. | |
14303 | case $CONFIG_FILES in | |
14304 | *\'*) eval set x "$CONFIG_FILES" ;; | |
14305 | *) set x $CONFIG_FILES ;; | |
14306 | esac | |
14307 | shift | |
14308 | for mf | |
14309 | do | |
14310 | # Strip MF so we end up with the name of the file. | |
14311 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
14312 | # Check whether this is an Automake generated Makefile or not. | |
8eef2738 | 14313 | # We used to match only the files named 'Makefile.in', but |
0710d850 DS |
14314 | # some people rename them; so instead we look at the file content. |
14315 | # Grep'ing the first line is not enough: some people post-process | |
14316 | # each Makefile.in and add a new line on top of each file to say so. | |
14317 | # Grep'ing the whole file is not good either: AIX grep has a line | |
14318 | # limit of 2048, but all sed's we know have understand at least 4000. | |
14319 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
14320 | dirpart=`$as_dirname -- "$mf" || | |
2f1a1aea FCE |
14321 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14322 | X"$mf" : 'X\(//\)[^/]' \| \ | |
14323 | X"$mf" : 'X\(//\)$' \| \ | |
7fbd9d09 | 14324 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
0710d850 | 14325 | $as_echo X"$mf" | |
7fbd9d09 FCE |
14326 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
14327 | s//\1/ | |
14328 | q | |
14329 | } | |
14330 | /^X\(\/\/\)[^/].*/{ | |
14331 | s//\1/ | |
14332 | q | |
14333 | } | |
14334 | /^X\(\/\/\)$/{ | |
14335 | s//\1/ | |
14336 | q | |
14337 | } | |
14338 | /^X\(\/\).*/{ | |
14339 | s//\1/ | |
14340 | q | |
14341 | } | |
14342 | s/.*/./; q'` | |
0710d850 DS |
14343 | else |
14344 | continue | |
14345 | fi | |
14346 | # Extract the definition of DEPDIR, am__include, and am__quote | |
8eef2738 | 14347 | # from the Makefile without running 'make'. |
0710d850 DS |
14348 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
14349 | test -z "$DEPDIR" && continue | |
14350 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
d9e6d90b | 14351 | test -z "$am__include" && continue |
0710d850 | 14352 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
0710d850 DS |
14353 | # Find all dependency output files, they are included files with |
14354 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
14355 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
14356 | # expansion. | |
14357 | for file in `sed -n " | |
14358 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
8eef2738 | 14359 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
0710d850 DS |
14360 | # Make sure the directory exists. |
14361 | test -f "$dirpart/$file" && continue | |
14362 | fdir=`$as_dirname -- "$file" || | |
2f1a1aea FCE |
14363 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14364 | X"$file" : 'X\(//\)[^/]' \| \ | |
14365 | X"$file" : 'X\(//\)$' \| \ | |
7fbd9d09 | 14366 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
0710d850 | 14367 | $as_echo X"$file" | |
7fbd9d09 FCE |
14368 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
14369 | s//\1/ | |
14370 | q | |
14371 | } | |
14372 | /^X\(\/\/\)[^/].*/{ | |
14373 | s//\1/ | |
14374 | q | |
14375 | } | |
14376 | /^X\(\/\/\)$/{ | |
14377 | s//\1/ | |
14378 | q | |
14379 | } | |
14380 | /^X\(\/\).*/{ | |
14381 | s//\1/ | |
14382 | q | |
14383 | } | |
14384 | s/.*/./; q'` | |
1ef0423a | 14385 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
0710d850 DS |
14386 | # echo "creating $dirpart/$file" |
14387 | echo '# dummy' > "$dirpart/$file" | |
14388 | done | |
2f1a1aea | 14389 | done |
0710d850 | 14390 | } |
2f1a1aea | 14391 | ;; |
8f223b3e FCE |
14392 | "po-directories":C) |
14393 | for ac_file in $CONFIG_FILES; do | |
14394 | # Support "outfile[:infile[:infile...]]" | |
14395 | case "$ac_file" in | |
14396 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
14397 | esac | |
14398 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
14399 | case "$ac_file" in */Makefile.in) | |
14400 | # Adjust a relative srcdir. | |
14401 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
42f767d0 | 14402 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
8f223b3e FCE |
14403 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
14404 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
14405 | # In autoconf-2.50 it is called $srcdir. | |
14406 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
14407 | case "$ac_given_srcdir" in | |
14408 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
14409 | /*) top_srcdir="$ac_given_srcdir" ;; | |
14410 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
14411 | esac | |
14412 | # Treat a directory as a PO directory if and only if it has a | |
14413 | # POTFILES.in file. This allows packages to have multiple PO | |
14414 | # directories under different names or in different locations. | |
14415 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
14416 | rm -f "$ac_dir/POTFILES" | |
14417 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
42f767d0 JL |
14418 | gt_tab=`printf '\t'` |
14419 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
8f223b3e FCE |
14420 | POMAKEFILEDEPS="POTFILES.in" |
14421 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend | |
14422 | # on $ac_dir but don't depend on user-specified configuration | |
14423 | # parameters. | |
14424 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
14425 | # The LINGUAS file contains the set of available languages. | |
14426 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
14427 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
14428 | fi | |
14429 | ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
42f767d0 | 14430 | # Hide the ALL_LINGUAS assignment from automake < 1.5. |
8f223b3e FCE |
14431 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
14432 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
14433 | else | |
14434 | # The set of available languages was given in configure.in. | |
42f767d0 | 14435 | # Hide the ALL_LINGUAS assignment from automake < 1.5. |
8f223b3e FCE |
14436 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
14437 | fi | |
14438 | # Compute POFILES | |
14439 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) | |
14440 | # Compute UPDATEPOFILES | |
14441 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) | |
14442 | # Compute DUMMYPOFILES | |
14443 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) | |
14444 | # Compute GMOFILES | |
14445 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) | |
14446 | case "$ac_given_srcdir" in | |
14447 | .) srcdirpre= ;; | |
14448 | *) srcdirpre='$(srcdir)/' ;; | |
14449 | esac | |
14450 | POFILES= | |
14451 | UPDATEPOFILES= | |
14452 | DUMMYPOFILES= | |
14453 | GMOFILES= | |
14454 | for lang in $ALL_LINGUAS; do | |
14455 | POFILES="$POFILES $srcdirpre$lang.po" | |
14456 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
14457 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
14458 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
14459 | done | |
14460 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
14461 | # environment variable. | |
14462 | INST_LINGUAS= | |
14463 | if test -n "$ALL_LINGUAS"; then | |
14464 | for presentlang in $ALL_LINGUAS; do | |
14465 | useit=no | |
14466 | if test "%UNSET%" != "$LINGUAS"; then | |
14467 | desiredlanguages="$LINGUAS" | |
14468 | else | |
14469 | desiredlanguages="$ALL_LINGUAS" | |
14470 | fi | |
14471 | for desiredlang in $desiredlanguages; do | |
14472 | # Use the presentlang catalog if desiredlang is | |
14473 | # a. equal to presentlang, or | |
14474 | # b. a variant of presentlang (because in this case, | |
14475 | # presentlang can be used as a fallback for messages | |
14476 | # which are not translated in the desiredlang catalog). | |
14477 | case "$desiredlang" in | |
14478 | "$presentlang"*) useit=yes;; | |
14479 | esac | |
14480 | done | |
14481 | if test $useit = yes; then | |
14482 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
14483 | fi | |
14484 | done | |
14485 | fi | |
14486 | CATALOGS= | |
14487 | if test -n "$INST_LINGUAS"; then | |
14488 | for lang in $INST_LINGUAS; do | |
14489 | CATALOGS="$CATALOGS $lang.gmo" | |
14490 | done | |
14491 | fi | |
14492 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
14493 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" | |
14494 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
14495 | if test -f "$f"; then | |
14496 | case "$f" in | |
14497 | *.orig | *.bak | *~) ;; | |
14498 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
14499 | esac | |
14500 | fi | |
14501 | done | |
14502 | fi | |
14503 | ;; | |
14504 | esac | |
14505 | done ;; | |
7fbd9d09 | 14506 | "run-stap":F) chmod +x run-stap ;; |
e4aaabda | 14507 | "dtrace":F) chmod +x dtrace ;; |
d885563b | 14508 | "java/stapbm":F) chmod +x java/stapbm ;; |
97859b9d | 14509 | "staprun/run-staprun":F) chmod +x staprun/run-staprun ;; |
42f767d0 JL |
14510 | "staprun/guest/stapshd":F) chmod +x staprun/guest/stapshd ;; |
14511 | "staprun/guest/stapsh-daemon":F) chmod +x staprun/guest/stapsh-daemon ;; | |
d9c42357 | 14512 | "doc/beginners":C) rm -f $ac_abs_top_builddir/doc/beginners/en-US $ac_abs_top_builddir/doc/beginners/build/en-US/testsuite && mkdir -p $ac_abs_top_builddir/doc/beginners/build/en-US && ln -s $ac_abs_top_srcdir/doc/SystemTap_Beginners_Guide/en-US $ac_abs_top_builddir/doc/beginners/en-US && ln -s $ac_abs_top_srcdir/testsuite $ac_abs_top_builddir/doc/beginners/build/en-US/testsuite ;; |
7fbd9d09 | 14513 | |
2f1a1aea | 14514 | esac |
7fbd9d09 | 14515 | done # for ac_tag |
2f1a1aea | 14516 | |
2f1a1aea | 14517 | |
1ef0423a | 14518 | as_fn_exit 0 |
2f1a1aea | 14519 | _ACEOF |
2f1a1aea FCE |
14520 | ac_clean_files=$ac_clean_files_save |
14521 | ||
0710d850 | 14522 | test $ac_write_fail = 0 || |
5d4aa1f5 | 14523 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
0710d850 | 14524 | |
2f1a1aea FCE |
14525 | |
14526 | # configure is writing to config.log, and then calls config.status. | |
14527 | # config.status does its own redirection, appending to config.log. | |
14528 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
14529 | # by configure, so config.status won't be able to write to it; its | |
14530 | # output is simply discarded. So we exec the FD to /dev/null, | |
14531 | # effectively closing config.log, so it can be properly (re)opened and | |
14532 | # appended to by config.status. When coming back to configure, we | |
14533 | # need to make the FD available again. | |
14534 | if test "$no_create" != yes; then | |
14535 | ac_cs_success=: | |
14536 | ac_config_status_args= | |
14537 | test "$silent" = yes && | |
14538 | ac_config_status_args="$ac_config_status_args --quiet" | |
14539 | exec 5>/dev/null | |
14540 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
14541 | exec 5>>config.log | |
14542 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
14543 | # would make configure fail if this is the last instruction. | |
5d4aa1f5 | 14544 | $ac_cs_success || as_fn_exit 1 |
2f1a1aea FCE |
14545 | fi |
14546 | ||
5ba96b90 FCE |
14547 | # |
14548 | # CONFIG_SUBDIRS section. | |
14549 | # | |
14550 | if test "$no_recursion" != yes; then | |
14551 | ||
0710d850 DS |
14552 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments |
14553 | # so they do not pile up. | |
5ba96b90 FCE |
14554 | ac_sub_configure_args= |
14555 | ac_prev= | |
7fbd9d09 FCE |
14556 | eval "set x $ac_configure_args" |
14557 | shift | |
14558 | for ac_arg | |
14559 | do | |
5ba96b90 FCE |
14560 | if test -n "$ac_prev"; then |
14561 | ac_prev= | |
14562 | continue | |
14563 | fi | |
14564 | case $ac_arg in | |
14565 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
14566 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
14567 | ac_prev=cache_file ;; | |
14568 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
14569 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
14570 | | --c=*) | |
14571 | ;; | |
14572 | --config-cache | -C) | |
14573 | ;; | |
14574 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
14575 | ac_prev=srcdir ;; | |
14576 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
14577 | ;; | |
14578 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
14579 | ac_prev=prefix ;; | |
14580 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
14581 | ;; | |
0710d850 DS |
14582 | --disable-option-checking) |
14583 | ;; | |
7fbd9d09 FCE |
14584 | *) |
14585 | case $ac_arg in | |
0710d850 | 14586 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
7fbd9d09 | 14587 | esac |
1ef0423a | 14588 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; |
5ba96b90 FCE |
14589 | esac |
14590 | done | |
14591 | ||
14592 | # Always prepend --prefix to ensure using the same prefix | |
14593 | # in subdir configurations. | |
7fbd9d09 FCE |
14594 | ac_arg="--prefix=$prefix" |
14595 | case $ac_arg in | |
0710d850 | 14596 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
7fbd9d09 FCE |
14597 | esac |
14598 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
14599 | ||
14600 | # Pass --silent | |
14601 | if test "$silent" = yes; then | |
14602 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
14603 | fi | |
daae650d | 14604 | |
0710d850 DS |
14605 | # Always prepend --disable-option-checking to silence warnings, since |
14606 | # different subdirs can have different --enable and --with options. | |
14607 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
14608 | ||
5ba96b90 FCE |
14609 | ac_popdir=`pwd` |
14610 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
14611 | ||
14612 | # Do not complain, so a configure script can configure whichever | |
14613 | # parts of a large source tree are present. | |
7fbd9d09 FCE |
14614 | test -d "$srcdir/$ac_dir" || continue |
14615 | ||
14616 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
1ef0423a | 14617 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 |
0710d850 | 14618 | $as_echo "$ac_msg" >&6 |
1ef0423a | 14619 | as_dir="$ac_dir"; as_fn_mkdir_p |
5ba96b90 FCE |
14620 | ac_builddir=. |
14621 | ||
7fbd9d09 FCE |
14622 | case "$ac_dir" in |
14623 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
14624 | *) | |
0710d850 | 14625 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7fbd9d09 | 14626 | # A ".." for each directory in $ac_dir_suffix. |
0710d850 | 14627 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7fbd9d09 FCE |
14628 | case $ac_top_builddir_sub in |
14629 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
14630 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
14631 | esac ;; | |
14632 | esac | |
14633 | ac_abs_top_builddir=$ac_pwd | |
14634 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
14635 | # for backward compatibility: | |
14636 | ac_top_builddir=$ac_top_build_prefix | |
5ba96b90 FCE |
14637 | |
14638 | case $srcdir in | |
7fbd9d09 | 14639 | .) # We are building in place. |
5ba96b90 | 14640 | ac_srcdir=. |
7fbd9d09 FCE |
14641 | ac_top_srcdir=$ac_top_builddir_sub |
14642 | ac_abs_top_srcdir=$ac_pwd ;; | |
14643 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
5ba96b90 | 14644 | ac_srcdir=$srcdir$ac_dir_suffix; |
7fbd9d09 FCE |
14645 | ac_top_srcdir=$srcdir |
14646 | ac_abs_top_srcdir=$srcdir ;; | |
14647 | *) # Relative name. | |
14648 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
14649 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
14650 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
5ba96b90 | 14651 | esac |
7fbd9d09 | 14652 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
5ba96b90 FCE |
14653 | |
14654 | ||
7fbd9d09 | 14655 | cd "$ac_dir" |
5ba96b90 FCE |
14656 | |
14657 | # Check for guested configure; otherwise get Cygnus style configure. | |
7fbd9d09 FCE |
14658 | if test -f "$ac_srcdir/configure.gnu"; then |
14659 | ac_sub_configure=$ac_srcdir/configure.gnu | |
14660 | elif test -f "$ac_srcdir/configure"; then | |
14661 | ac_sub_configure=$ac_srcdir/configure | |
14662 | elif test -f "$ac_srcdir/configure.in"; then | |
14663 | # This should be Cygnus configure. | |
14664 | ac_sub_configure=$ac_aux_dir/configure | |
5ba96b90 | 14665 | else |
1ef0423a | 14666 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 |
0710d850 | 14667 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
5ba96b90 FCE |
14668 | ac_sub_configure= |
14669 | fi | |
14670 | ||
14671 | # The recursion is here. | |
14672 | if test -n "$ac_sub_configure"; then | |
14673 | # Make the cache file name correct relative to the subdirectory. | |
14674 | case $cache_file in | |
14675 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
7fbd9d09 FCE |
14676 | *) # Relative name. |
14677 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
5ba96b90 FCE |
14678 | esac |
14679 | ||
1ef0423a | 14680 | { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
0710d850 | 14681 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
5ba96b90 | 14682 | # The eval makes quoting arguments work. |
7fbd9d09 FCE |
14683 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
14684 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
5d4aa1f5 | 14685 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 |
5ba96b90 FCE |
14686 | fi |
14687 | ||
7fbd9d09 | 14688 | cd "$ac_popdir" |
5ba96b90 FCE |
14689 | done |
14690 | fi | |
0710d850 | 14691 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
1ef0423a | 14692 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
0710d850 DS |
14693 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
14694 | fi | |
5ba96b90 | 14695 | |
4d9087fc | 14696 | |
af29024d | 14697 | if test "${prefix}" = "/usr/local"; then |
1ef0423a | 14698 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
0710d850 | 14699 | $as_echo "$as_me: " >&6;} |
1ef0423a | 14700 | { $as_echo "$as_me:${as_lineno-$LINENO}: For a private or temporary build of systemtap, we recommend" >&5 |
0710d850 | 14701 | $as_echo "$as_me: For a private or temporary build of systemtap, we recommend" >&6;} |
1ef0423a | 14702 | { $as_echo "$as_me:${as_lineno-$LINENO}: configuring with a prefix. For example, try" >&5 |
0710d850 | 14703 | $as_echo "$as_me: configuring with a prefix. For example, try" >&6;} |
1ef0423a | 14704 | { $as_echo "$as_me:${as_lineno-$LINENO}: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&5 |
0710d850 | 14705 | $as_echo "$as_me: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&6;} |
1ef0423a | 14706 | { $as_echo "$as_me:${as_lineno-$LINENO}: Running systemtap uninstalled, entirely out of the build tree," >&5 |
0710d850 | 14707 | $as_echo "$as_me: Running systemtap uninstalled, entirely out of the build tree," >&6;} |
1ef0423a | 14708 | { $as_echo "$as_me:${as_lineno-$LINENO}: is not supported." >&5 |
0710d850 | 14709 | $as_echo "$as_me: is not supported." >&6;} |
af29024d | 14710 | fi |