1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.69 for Rappture 1.4. |
---|
4 | # |
---|
5 | # Report bugs to <rappture@nanohub.org>. |
---|
6 | # |
---|
7 | # |
---|
8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
---|
9 | # |
---|
10 | # |
---|
11 | # This configure script is free software; the Free Software Foundation |
---|
12 | # gives unlimited permission to copy, distribute and modify it. |
---|
13 | ## -------------------- ## |
---|
14 | ## M4sh Initialization. ## |
---|
15 | ## -------------------- ## |
---|
16 | |
---|
17 | # Be more Bourne compatible |
---|
18 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
20 | emulate sh |
---|
21 | NULLCMD=: |
---|
22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
23 | # is contrary to our usage. Disable this feature. |
---|
24 | alias -g '${1+"$@"}'='"$@"' |
---|
25 | setopt NO_GLOB_SUBST |
---|
26 | else |
---|
27 | case `(set -o) 2>/dev/null` in #( |
---|
28 | *posix*) : |
---|
29 | set -o posix ;; #( |
---|
30 | *) : |
---|
31 | ;; |
---|
32 | esac |
---|
33 | fi |
---|
34 | |
---|
35 | |
---|
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 |
---|
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 |
---|
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' |
---|
56 | else |
---|
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
58 | as_echo_n_body='eval |
---|
59 | arg=$1; |
---|
60 | case $arg in #( |
---|
61 | *"$as_nl"*) |
---|
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
64 | esac; |
---|
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
66 | ' |
---|
67 | export as_echo_n_body |
---|
68 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
69 | fi |
---|
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 | } |
---|
81 | fi |
---|
82 | |
---|
83 | |
---|
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.) |
---|
89 | IFS=" "" $as_nl" |
---|
90 | |
---|
91 | # Find who we are. Look in the path if we contain no directory separator. |
---|
92 | as_myself= |
---|
93 | case $0 in #(( |
---|
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=. |
---|
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
101 | done |
---|
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 |
---|
112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
113 | exit 1 |
---|
114 | fi |
---|
115 | |
---|
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 || : |
---|
123 | done |
---|
124 | PS1='$ ' |
---|
125 | PS2='> ' |
---|
126 | PS4='+ ' |
---|
127 | |
---|
128 | # NLS nuisances. |
---|
129 | LC_ALL=C |
---|
130 | export LC_ALL |
---|
131 | LANGUAGE=C |
---|
132 | export LANGUAGE |
---|
133 | |
---|
134 | # CDPATH. |
---|
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
136 | |
---|
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;} |
---|
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 |
---|
195 | test x\$exitcode = x0 || exit 1 |
---|
196 | test -x / || exit 1" |
---|
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 : |
---|
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 |
---|
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 |
---|
270 | $0: rappture@nanohub.org about your system, including any |
---|
271 | $0: error possibly output before this message. Then install |
---|
272 | $0: a modern shell, or manually run the script under such a |
---|
273 | $0: shell if you do have one." |
---|
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" |
---|
358 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
359 | |
---|
360 | |
---|
361 | } # as_fn_mkdir_p |
---|
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 |
---|
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 | |
---|
406 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
407 | # ---------------------------------------- |
---|
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 |
---|
410 | # script with STATUS, using 1 if that was 0. |
---|
411 | as_fn_error () |
---|
412 | { |
---|
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 |
---|
417 | fi |
---|
418 | $as_echo "$as_me: error: $2" >&2 |
---|
419 | as_fn_exit $as_status |
---|
420 | } # as_fn_error |
---|
421 | |
---|
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 | |
---|
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 |
---|
440 | |
---|
441 | as_me=`$as_basename -- "$0" || |
---|
442 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
443 | X"$0" : 'X\(//\)$' \| \ |
---|
444 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
445 | $as_echo X/"$0" | |
---|
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 | |
---|
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 |
---|
466 | |
---|
467 | |
---|
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; } |
---|
490 | |
---|
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 |
---|
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 |
---|
501 | } |
---|
502 | |
---|
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 |
---|
515 | |
---|
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 |
---|
522 | fi |
---|
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. |
---|
529 | # In both cases, we have to default to `cp -pR'. |
---|
530 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
531 | as_ln_s='cp -pR' |
---|
532 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
533 | as_ln_s=ln |
---|
534 | else |
---|
535 | as_ln_s='cp -pR' |
---|
536 | fi |
---|
537 | else |
---|
538 | as_ln_s='cp -pR' |
---|
539 | fi |
---|
540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
541 | rmdir conf$$.dir 2>/dev/null |
---|
542 | |
---|
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 |
---|
548 | fi |
---|
549 | |
---|
550 | as_test_x='test -x' |
---|
551 | as_executable_p=as_fn_executable_p |
---|
552 | |
---|
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'" |
---|
555 | |
---|
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'" |
---|
558 | |
---|
559 | |
---|
560 | test -n "$DJDIR" || exec 7<&0 </dev/null |
---|
561 | exec 6>&1 |
---|
562 | |
---|
563 | # Name of the host. |
---|
564 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
---|
565 | # so uname gets run too. |
---|
566 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
567 | |
---|
568 | # |
---|
569 | # Initializations. |
---|
570 | # |
---|
571 | ac_default_prefix=/usr/local |
---|
572 | ac_clean_files= |
---|
573 | ac_config_libobj_dir=. |
---|
574 | LIBOBJS= |
---|
575 | cross_compiling=no |
---|
576 | subdirs= |
---|
577 | MFLAGS= |
---|
578 | MAKEFLAGS= |
---|
579 | |
---|
580 | # Identity of this package. |
---|
581 | PACKAGE_NAME='Rappture' |
---|
582 | PACKAGE_TARNAME='rappture' |
---|
583 | PACKAGE_VERSION='1.4' |
---|
584 | PACKAGE_STRING='Rappture 1.4' |
---|
585 | PACKAGE_BUGREPORT='rappture@nanohub.org' |
---|
586 | PACKAGE_URL='' |
---|
587 | |
---|
588 | # Factoring default headers for most tests. |
---|
589 | ac_includes_default="\ |
---|
590 | #include <stdio.h> |
---|
591 | #ifdef HAVE_SYS_TYPES_H |
---|
592 | # include <sys/types.h> |
---|
593 | #endif |
---|
594 | #ifdef HAVE_SYS_STAT_H |
---|
595 | # include <sys/stat.h> |
---|
596 | #endif |
---|
597 | #ifdef STDC_HEADERS |
---|
598 | # include <stdlib.h> |
---|
599 | # include <stddef.h> |
---|
600 | #else |
---|
601 | # ifdef HAVE_STDLIB_H |
---|
602 | # include <stdlib.h> |
---|
603 | # endif |
---|
604 | #endif |
---|
605 | #ifdef HAVE_STRING_H |
---|
606 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
---|
607 | # include <memory.h> |
---|
608 | # endif |
---|
609 | # include <string.h> |
---|
610 | #endif |
---|
611 | #ifdef HAVE_STRINGS_H |
---|
612 | # include <strings.h> |
---|
613 | #endif |
---|
614 | #ifdef HAVE_INTTYPES_H |
---|
615 | # include <inttypes.h> |
---|
616 | #endif |
---|
617 | #ifdef HAVE_STDINT_H |
---|
618 | # include <stdint.h> |
---|
619 | #endif |
---|
620 | #ifdef HAVE_UNISTD_H |
---|
621 | # include <unistd.h> |
---|
622 | #endif" |
---|
623 | |
---|
624 | ac_subst_vars='LTLIBOBJS |
---|
625 | LIBOBJS |
---|
626 | RAPPTURE_RELEASE_SERIAL |
---|
627 | RAPPTURE_MINOR_VERSION |
---|
628 | RAPPTURE_MAJOR_VERSION |
---|
629 | WORDSIZE |
---|
630 | X_LIBRARIES |
---|
631 | X_INCLUDES |
---|
632 | STATSDIR |
---|
633 | XSUBPP |
---|
634 | VTK_VERSION |
---|
635 | VTK_TCL_DIR |
---|
636 | TK_VERSION |
---|
637 | TK_XLIBSW |
---|
638 | TK_LIB_SPEC |
---|
639 | TK_INC_SPEC |
---|
640 | TCL_VERSION |
---|
641 | TCL_SHLIB_SUFFIX |
---|
642 | TCL_SHLIB_LDFLAGS |
---|
643 | TCL_SHLIB_LD |
---|
644 | TCL_SHLIB_CFLAGS |
---|
645 | TCL_CFLAGS_OPTIMIZE |
---|
646 | TCL_CFLAGS_DEBUG |
---|
647 | TCL_LIB_SPEC |
---|
648 | TCL_INC_SPEC |
---|
649 | STLIB_LD |
---|
650 | SIZEOF_VOID_P |
---|
651 | SIZEOF_LONG_LONG |
---|
652 | SIZEOF_LONG |
---|
653 | SIZEOF_INT |
---|
654 | SHLIB_SUFFIX |
---|
655 | SHLIB_LDFLAGS |
---|
656 | SHLIB_LD |
---|
657 | SHLIB_CFLAGS |
---|
658 | RP_BASE |
---|
659 | SVN_VERSION |
---|
660 | MAKE |
---|
661 | LIB_SEARCH_DIRS |
---|
662 | INSTALL_PREFIX |
---|
663 | HAVE_INTTYPES_H |
---|
664 | ENABLE_VTK_DICOM |
---|
665 | ENABLE_VTK |
---|
666 | ENABLE_GUI |
---|
667 | ENABLE_LANG |
---|
668 | CFLAGS_OPTIMIZE |
---|
669 | CFLAGS_DEBUG |
---|
670 | CXXCPP |
---|
671 | XMKMF |
---|
672 | EGREP |
---|
673 | GREP |
---|
674 | CPP |
---|
675 | ac_ct_F77 |
---|
676 | FFLAGS |
---|
677 | F77 |
---|
678 | ac_ct_CXX |
---|
679 | CXXFLAGS |
---|
680 | CXX |
---|
681 | OBJEXT |
---|
682 | EXEEXT |
---|
683 | ac_ct_CC |
---|
684 | CPPFLAGS |
---|
685 | LDFLAGS |
---|
686 | CFLAGS |
---|
687 | CC |
---|
688 | SET_MAKE |
---|
689 | MKDIR_P |
---|
690 | LN_S |
---|
691 | RANLIB |
---|
692 | INSTALL_DATA |
---|
693 | INSTALL_SCRIPT |
---|
694 | INSTALL_PROGRAM |
---|
695 | target_alias |
---|
696 | host_alias |
---|
697 | build_alias |
---|
698 | LIBS |
---|
699 | ECHO_T |
---|
700 | ECHO_N |
---|
701 | ECHO_C |
---|
702 | DEFS |
---|
703 | mandir |
---|
704 | localedir |
---|
705 | libdir |
---|
706 | psdir |
---|
707 | pdfdir |
---|
708 | dvidir |
---|
709 | htmldir |
---|
710 | infodir |
---|
711 | docdir |
---|
712 | oldincludedir |
---|
713 | includedir |
---|
714 | localstatedir |
---|
715 | sharedstatedir |
---|
716 | sysconfdir |
---|
717 | datadir |
---|
718 | datarootdir |
---|
719 | libexecdir |
---|
720 | sbindir |
---|
721 | bindir |
---|
722 | program_transform_name |
---|
723 | prefix |
---|
724 | exec_prefix |
---|
725 | PACKAGE_URL |
---|
726 | PACKAGE_BUGREPORT |
---|
727 | PACKAGE_STRING |
---|
728 | PACKAGE_VERSION |
---|
729 | PACKAGE_TARNAME |
---|
730 | PACKAGE_NAME |
---|
731 | PATH_SEPARATOR |
---|
732 | SHELL' |
---|
733 | ac_subst_files='' |
---|
734 | ac_user_opts=' |
---|
735 | enable_option_checking |
---|
736 | with_x |
---|
737 | with_install |
---|
738 | with_statsdir |
---|
739 | enable_lang |
---|
740 | enable_gui |
---|
741 | with_ffmpeg |
---|
742 | with_vtk |
---|
743 | enable_vtkdicom |
---|
744 | ' |
---|
745 | ac_precious_vars='build_alias |
---|
746 | host_alias |
---|
747 | target_alias |
---|
748 | CC |
---|
749 | CFLAGS |
---|
750 | LDFLAGS |
---|
751 | LIBS |
---|
752 | CPPFLAGS |
---|
753 | CXX |
---|
754 | CXXFLAGS |
---|
755 | CCC |
---|
756 | F77 |
---|
757 | FFLAGS |
---|
758 | CPP |
---|
759 | XMKMF |
---|
760 | CXXCPP' |
---|
761 | |
---|
762 | |
---|
763 | # Initialize some variables set by options. |
---|
764 | ac_init_help= |
---|
765 | ac_init_version=false |
---|
766 | ac_unrecognized_opts= |
---|
767 | ac_unrecognized_sep= |
---|
768 | # The variables have the same names as the options, with |
---|
769 | # dashes changed to underlines. |
---|
770 | cache_file=/dev/null |
---|
771 | exec_prefix=NONE |
---|
772 | no_create= |
---|
773 | no_recursion= |
---|
774 | prefix=NONE |
---|
775 | program_prefix=NONE |
---|
776 | program_suffix=NONE |
---|
777 | program_transform_name=s,x,x, |
---|
778 | silent= |
---|
779 | site= |
---|
780 | srcdir= |
---|
781 | verbose= |
---|
782 | x_includes=NONE |
---|
783 | x_libraries=NONE |
---|
784 | |
---|
785 | # Installation directory options. |
---|
786 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
787 | # and all the variables that are supposed to be based on exec_prefix |
---|
788 | # by default will actually change. |
---|
789 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
790 | # (The list follows the same order as the GNU Coding Standards.) |
---|
791 | bindir='${exec_prefix}/bin' |
---|
792 | sbindir='${exec_prefix}/sbin' |
---|
793 | libexecdir='${exec_prefix}/libexec' |
---|
794 | datarootdir='${prefix}/share' |
---|
795 | datadir='${datarootdir}' |
---|
796 | sysconfdir='${prefix}/etc' |
---|
797 | sharedstatedir='${prefix}/com' |
---|
798 | localstatedir='${prefix}/var' |
---|
799 | includedir='${prefix}/include' |
---|
800 | oldincludedir='/usr/include' |
---|
801 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
---|
802 | infodir='${datarootdir}/info' |
---|
803 | htmldir='${docdir}' |
---|
804 | dvidir='${docdir}' |
---|
805 | pdfdir='${docdir}' |
---|
806 | psdir='${docdir}' |
---|
807 | libdir='${exec_prefix}/lib' |
---|
808 | localedir='${datarootdir}/locale' |
---|
809 | mandir='${datarootdir}/man' |
---|
810 | |
---|
811 | ac_prev= |
---|
812 | ac_dashdash= |
---|
813 | for ac_option |
---|
814 | do |
---|
815 | # If the previous option needs an argument, assign it. |
---|
816 | if test -n "$ac_prev"; then |
---|
817 | eval $ac_prev=\$ac_option |
---|
818 | ac_prev= |
---|
819 | continue |
---|
820 | fi |
---|
821 | |
---|
822 | case $ac_option in |
---|
823 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
824 | *=) ac_optarg= ;; |
---|
825 | *) ac_optarg=yes ;; |
---|
826 | esac |
---|
827 | |
---|
828 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
829 | |
---|
830 | case $ac_dashdash$ac_option in |
---|
831 | --) |
---|
832 | ac_dashdash=yes ;; |
---|
833 | |
---|
834 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
835 | ac_prev=bindir ;; |
---|
836 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
837 | bindir=$ac_optarg ;; |
---|
838 | |
---|
839 | -build | --build | --buil | --bui | --bu) |
---|
840 | ac_prev=build_alias ;; |
---|
841 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
842 | build_alias=$ac_optarg ;; |
---|
843 | |
---|
844 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
845 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
846 | ac_prev=cache_file ;; |
---|
847 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
848 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
849 | cache_file=$ac_optarg ;; |
---|
850 | |
---|
851 | --config-cache | -C) |
---|
852 | cache_file=config.cache ;; |
---|
853 | |
---|
854 | -datadir | --datadir | --datadi | --datad) |
---|
855 | ac_prev=datadir ;; |
---|
856 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
857 | datadir=$ac_optarg ;; |
---|
858 | |
---|
859 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
860 | | --dataroo | --dataro | --datar) |
---|
861 | ac_prev=datarootdir ;; |
---|
862 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
863 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
864 | datarootdir=$ac_optarg ;; |
---|
865 | |
---|
866 | -disable-* | --disable-*) |
---|
867 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
868 | # Reject names that are not valid shell variable names. |
---|
869 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
870 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
871 | ac_useropt_orig=$ac_useropt |
---|
872 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
873 | case $ac_user_opts in |
---|
874 | *" |
---|
875 | "enable_$ac_useropt" |
---|
876 | "*) ;; |
---|
877 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
---|
878 | ac_unrecognized_sep=', ';; |
---|
879 | esac |
---|
880 | eval enable_$ac_useropt=no ;; |
---|
881 | |
---|
882 | -docdir | --docdir | --docdi | --doc | --do) |
---|
883 | ac_prev=docdir ;; |
---|
884 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
885 | docdir=$ac_optarg ;; |
---|
886 | |
---|
887 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
888 | ac_prev=dvidir ;; |
---|
889 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
890 | dvidir=$ac_optarg ;; |
---|
891 | |
---|
892 | -enable-* | --enable-*) |
---|
893 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
894 | # Reject names that are not valid shell variable names. |
---|
895 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
896 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
897 | ac_useropt_orig=$ac_useropt |
---|
898 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
899 | case $ac_user_opts in |
---|
900 | *" |
---|
901 | "enable_$ac_useropt" |
---|
902 | "*) ;; |
---|
903 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
---|
904 | ac_unrecognized_sep=', ';; |
---|
905 | esac |
---|
906 | eval enable_$ac_useropt=\$ac_optarg ;; |
---|
907 | |
---|
908 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
909 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
910 | | --exec | --exe | --ex) |
---|
911 | ac_prev=exec_prefix ;; |
---|
912 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
913 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
914 | | --exec=* | --exe=* | --ex=*) |
---|
915 | exec_prefix=$ac_optarg ;; |
---|
916 | |
---|
917 | -gas | --gas | --ga | --g) |
---|
918 | # Obsolete; use --with-gas. |
---|
919 | with_gas=yes ;; |
---|
920 | |
---|
921 | -help | --help | --hel | --he | -h) |
---|
922 | ac_init_help=long ;; |
---|
923 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
924 | ac_init_help=recursive ;; |
---|
925 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
926 | ac_init_help=short ;; |
---|
927 | |
---|
928 | -host | --host | --hos | --ho) |
---|
929 | ac_prev=host_alias ;; |
---|
930 | -host=* | --host=* | --hos=* | --ho=*) |
---|
931 | host_alias=$ac_optarg ;; |
---|
932 | |
---|
933 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
934 | ac_prev=htmldir ;; |
---|
935 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
936 | | --ht=*) |
---|
937 | htmldir=$ac_optarg ;; |
---|
938 | |
---|
939 | -includedir | --includedir | --includedi | --included | --include \ |
---|
940 | | --includ | --inclu | --incl | --inc) |
---|
941 | ac_prev=includedir ;; |
---|
942 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
943 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
944 | includedir=$ac_optarg ;; |
---|
945 | |
---|
946 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
947 | ac_prev=infodir ;; |
---|
948 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
949 | infodir=$ac_optarg ;; |
---|
950 | |
---|
951 | -libdir | --libdir | --libdi | --libd) |
---|
952 | ac_prev=libdir ;; |
---|
953 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
954 | libdir=$ac_optarg ;; |
---|
955 | |
---|
956 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
957 | | --libexe | --libex | --libe) |
---|
958 | ac_prev=libexecdir ;; |
---|
959 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
960 | | --libexe=* | --libex=* | --libe=*) |
---|
961 | libexecdir=$ac_optarg ;; |
---|
962 | |
---|
963 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
964 | ac_prev=localedir ;; |
---|
965 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
966 | localedir=$ac_optarg ;; |
---|
967 | |
---|
968 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
969 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
970 | ac_prev=localstatedir ;; |
---|
971 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
972 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
973 | localstatedir=$ac_optarg ;; |
---|
974 | |
---|
975 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
976 | ac_prev=mandir ;; |
---|
977 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
978 | mandir=$ac_optarg ;; |
---|
979 | |
---|
980 | -nfp | --nfp | --nf) |
---|
981 | # Obsolete; use --without-fp. |
---|
982 | with_fp=no ;; |
---|
983 | |
---|
984 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
985 | | --no-cr | --no-c | -n) |
---|
986 | no_create=yes ;; |
---|
987 | |
---|
988 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
989 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
990 | no_recursion=yes ;; |
---|
991 | |
---|
992 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
993 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
994 | | --oldin | --oldi | --old | --ol | --o) |
---|
995 | ac_prev=oldincludedir ;; |
---|
996 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
997 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
998 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
999 | oldincludedir=$ac_optarg ;; |
---|
1000 | |
---|
1001 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
1002 | ac_prev=prefix ;; |
---|
1003 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
1004 | prefix=$ac_optarg ;; |
---|
1005 | |
---|
1006 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
1007 | | --program-pre | --program-pr | --program-p) |
---|
1008 | ac_prev=program_prefix ;; |
---|
1009 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
1010 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
1011 | program_prefix=$ac_optarg ;; |
---|
1012 | |
---|
1013 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
1014 | | --program-suf | --program-su | --program-s) |
---|
1015 | ac_prev=program_suffix ;; |
---|
1016 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
1017 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
1018 | program_suffix=$ac_optarg ;; |
---|
1019 | |
---|
1020 | -program-transform-name | --program-transform-name \ |
---|
1021 | | --program-transform-nam | --program-transform-na \ |
---|
1022 | | --program-transform-n | --program-transform- \ |
---|
1023 | | --program-transform | --program-transfor \ |
---|
1024 | | --program-transfo | --program-transf \ |
---|
1025 | | --program-trans | --program-tran \ |
---|
1026 | | --progr-tra | --program-tr | --program-t) |
---|
1027 | ac_prev=program_transform_name ;; |
---|
1028 | -program-transform-name=* | --program-transform-name=* \ |
---|
1029 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
1030 | | --program-transform-n=* | --program-transform-=* \ |
---|
1031 | | --program-transform=* | --program-transfor=* \ |
---|
1032 | | --program-transfo=* | --program-transf=* \ |
---|
1033 | | --program-trans=* | --program-tran=* \ |
---|
1034 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
1035 | program_transform_name=$ac_optarg ;; |
---|
1036 | |
---|
1037 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
1038 | ac_prev=pdfdir ;; |
---|
1039 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
1040 | pdfdir=$ac_optarg ;; |
---|
1041 | |
---|
1042 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
1043 | ac_prev=psdir ;; |
---|
1044 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
1045 | psdir=$ac_optarg ;; |
---|
1046 | |
---|
1047 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1048 | | -silent | --silent | --silen | --sile | --sil) |
---|
1049 | silent=yes ;; |
---|
1050 | |
---|
1051 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
1052 | ac_prev=sbindir ;; |
---|
1053 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
1054 | | --sbi=* | --sb=*) |
---|
1055 | sbindir=$ac_optarg ;; |
---|
1056 | |
---|
1057 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
1058 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
1059 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
1060 | | --sha | --sh) |
---|
1061 | ac_prev=sharedstatedir ;; |
---|
1062 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
1063 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
1064 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
1065 | | --sha=* | --sh=*) |
---|
1066 | sharedstatedir=$ac_optarg ;; |
---|
1067 | |
---|
1068 | -site | --site | --sit) |
---|
1069 | ac_prev=site ;; |
---|
1070 | -site=* | --site=* | --sit=*) |
---|
1071 | site=$ac_optarg ;; |
---|
1072 | |
---|
1073 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
1074 | ac_prev=srcdir ;; |
---|
1075 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
1076 | srcdir=$ac_optarg ;; |
---|
1077 | |
---|
1078 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
1079 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
1080 | ac_prev=sysconfdir ;; |
---|
1081 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
1082 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
1083 | sysconfdir=$ac_optarg ;; |
---|
1084 | |
---|
1085 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
1086 | ac_prev=target_alias ;; |
---|
1087 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
1088 | target_alias=$ac_optarg ;; |
---|
1089 | |
---|
1090 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
1091 | verbose=yes ;; |
---|
1092 | |
---|
1093 | -version | --version | --versio | --versi | --vers | -V) |
---|
1094 | ac_init_version=: ;; |
---|
1095 | |
---|
1096 | -with-* | --with-*) |
---|
1097 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
1098 | # Reject names that are not valid shell variable names. |
---|
1099 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1100 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1101 | ac_useropt_orig=$ac_useropt |
---|
1102 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1103 | case $ac_user_opts in |
---|
1104 | *" |
---|
1105 | "with_$ac_useropt" |
---|
1106 | "*) ;; |
---|
1107 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
---|
1108 | ac_unrecognized_sep=', ';; |
---|
1109 | esac |
---|
1110 | eval with_$ac_useropt=\$ac_optarg ;; |
---|
1111 | |
---|
1112 | -without-* | --without-*) |
---|
1113 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
1114 | # Reject names that are not valid shell variable names. |
---|
1115 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1116 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1117 | ac_useropt_orig=$ac_useropt |
---|
1118 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1119 | case $ac_user_opts in |
---|
1120 | *" |
---|
1121 | "with_$ac_useropt" |
---|
1122 | "*) ;; |
---|
1123 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
---|
1124 | ac_unrecognized_sep=', ';; |
---|
1125 | esac |
---|
1126 | eval with_$ac_useropt=no ;; |
---|
1127 | |
---|
1128 | --x) |
---|
1129 | # Obsolete; use --with-x. |
---|
1130 | with_x=yes ;; |
---|
1131 | |
---|
1132 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
1133 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
1134 | ac_prev=x_includes ;; |
---|
1135 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
1136 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
1137 | x_includes=$ac_optarg ;; |
---|
1138 | |
---|
1139 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
1140 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
1141 | ac_prev=x_libraries ;; |
---|
1142 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
1143 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
1144 | x_libraries=$ac_optarg ;; |
---|
1145 | |
---|
1146 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
---|
1147 | Try \`$0 --help' for more information" |
---|
1148 | ;; |
---|
1149 | |
---|
1150 | *=*) |
---|
1151 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
1152 | # Reject names that are not valid shell variable names. |
---|
1153 | case $ac_envvar in #( |
---|
1154 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
---|
1155 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
---|
1156 | esac |
---|
1157 | eval $ac_envvar=\$ac_optarg |
---|
1158 | export $ac_envvar ;; |
---|
1159 | |
---|
1160 | *) |
---|
1161 | # FIXME: should be removed in autoconf 3.0. |
---|
1162 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
1163 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1164 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
1165 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
---|
1166 | ;; |
---|
1167 | |
---|
1168 | esac |
---|
1169 | done |
---|
1170 | |
---|
1171 | if test -n "$ac_prev"; then |
---|
1172 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
1173 | as_fn_error $? "missing argument to $ac_option" |
---|
1174 | fi |
---|
1175 | |
---|
1176 | if test -n "$ac_unrecognized_opts"; then |
---|
1177 | case $enable_option_checking in |
---|
1178 | no) ;; |
---|
1179 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
---|
1180 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
---|
1181 | esac |
---|
1182 | fi |
---|
1183 | |
---|
1184 | # Check all directory arguments for consistency. |
---|
1185 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
1186 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
1187 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
1188 | libdir localedir mandir |
---|
1189 | do |
---|
1190 | eval ac_val=\$$ac_var |
---|
1191 | # Remove trailing slashes. |
---|
1192 | case $ac_val in |
---|
1193 | */ ) |
---|
1194 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
---|
1195 | eval $ac_var=\$ac_val;; |
---|
1196 | esac |
---|
1197 | # Be sure to have absolute directory names. |
---|
1198 | case $ac_val in |
---|
1199 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
1200 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
1201 | esac |
---|
1202 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
---|
1203 | done |
---|
1204 | |
---|
1205 | # There might be people who depend on the old broken behavior: `$host' |
---|
1206 | # used to hold the argument of --host etc. |
---|
1207 | # FIXME: To remove some day. |
---|
1208 | build=$build_alias |
---|
1209 | host=$host_alias |
---|
1210 | target=$target_alias |
---|
1211 | |
---|
1212 | # FIXME: To remove some day. |
---|
1213 | if test "x$host_alias" != x; then |
---|
1214 | if test "x$build_alias" = x; then |
---|
1215 | cross_compiling=maybe |
---|
1216 | elif test "x$build_alias" != "x$host_alias"; then |
---|
1217 | cross_compiling=yes |
---|
1218 | fi |
---|
1219 | fi |
---|
1220 | |
---|
1221 | ac_tool_prefix= |
---|
1222 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
1223 | |
---|
1224 | test "$silent" = yes && exec 6>/dev/null |
---|
1225 | |
---|
1226 | |
---|
1227 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
1228 | ac_ls_di=`ls -di .` && |
---|
1229 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
1230 | as_fn_error $? "working directory cannot be determined" |
---|
1231 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
1232 | as_fn_error $? "pwd does not report name of working directory" |
---|
1233 | |
---|
1234 | |
---|
1235 | # Find the source files, if location was not specified. |
---|
1236 | if test -z "$srcdir"; then |
---|
1237 | ac_srcdir_defaulted=yes |
---|
1238 | # Try the directory containing this script, then the parent directory. |
---|
1239 | ac_confdir=`$as_dirname -- "$as_myself" || |
---|
1240 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
1241 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
---|
1242 | X"$as_myself" : 'X\(//\)$' \| \ |
---|
1243 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
---|
1244 | $as_echo X"$as_myself" | |
---|
1245 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
1246 | s//\1/ |
---|
1247 | q |
---|
1248 | } |
---|
1249 | /^X\(\/\/\)[^/].*/{ |
---|
1250 | s//\1/ |
---|
1251 | q |
---|
1252 | } |
---|
1253 | /^X\(\/\/\)$/{ |
---|
1254 | s//\1/ |
---|
1255 | q |
---|
1256 | } |
---|
1257 | /^X\(\/\).*/{ |
---|
1258 | s//\1/ |
---|
1259 | q |
---|
1260 | } |
---|
1261 | s/.*/./; q'` |
---|
1262 | srcdir=$ac_confdir |
---|
1263 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1264 | srcdir=.. |
---|
1265 | fi |
---|
1266 | else |
---|
1267 | ac_srcdir_defaulted=no |
---|
1268 | fi |
---|
1269 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1270 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
1271 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
---|
1272 | fi |
---|
1273 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
1274 | ac_abs_confdir=`( |
---|
1275 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
---|
1276 | pwd)` |
---|
1277 | # When building in place, set srcdir=. |
---|
1278 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
1279 | srcdir=. |
---|
1280 | fi |
---|
1281 | # Remove unnecessary trailing slashes from srcdir. |
---|
1282 | # Double slashes in file names in object file debugging info |
---|
1283 | # mess up M-x gdb in Emacs. |
---|
1284 | case $srcdir in |
---|
1285 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
1286 | esac |
---|
1287 | for ac_var in $ac_precious_vars; do |
---|
1288 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
1289 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
1290 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
1291 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
1292 | done |
---|
1293 | |
---|
1294 | # |
---|
1295 | # Report the --help message. |
---|
1296 | # |
---|
1297 | if test "$ac_init_help" = "long"; then |
---|
1298 | # Omit some internal or obsolete options to make the list less imposing. |
---|
1299 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
1300 | cat <<_ACEOF |
---|
1301 | \`configure' configures Rappture 1.4 to adapt to many kinds of systems. |
---|
1302 | |
---|
1303 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1304 | |
---|
1305 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1306 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1307 | |
---|
1308 | Defaults for the options are specified in brackets. |
---|
1309 | |
---|
1310 | Configuration: |
---|
1311 | -h, --help display this help and exit |
---|
1312 | --help=short display options specific to this package |
---|
1313 | --help=recursive display the short help of all the included packages |
---|
1314 | -V, --version display version information and exit |
---|
1315 | -q, --quiet, --silent do not print \`checking ...' messages |
---|
1316 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1317 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1318 | -n, --no-create do not create output files |
---|
1319 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1320 | |
---|
1321 | Installation directories: |
---|
1322 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1323 | [$ac_default_prefix] |
---|
1324 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1325 | [PREFIX] |
---|
1326 | |
---|
1327 | By default, \`make install' will install all the files in |
---|
1328 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1329 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1330 | for instance \`--prefix=\$HOME'. |
---|
1331 | |
---|
1332 | For better control, use the options below. |
---|
1333 | |
---|
1334 | Fine tuning of the installation directories: |
---|
1335 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1336 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1337 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1338 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1339 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1340 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1341 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1342 | --includedir=DIR C header files [PREFIX/include] |
---|
1343 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1344 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
1345 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
1346 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
1347 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
1348 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
1349 | --docdir=DIR documentation root [DATAROOTDIR/doc/rappture] |
---|
1350 | --htmldir=DIR html documentation [DOCDIR] |
---|
1351 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
1352 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
1353 | --psdir=DIR ps documentation [DOCDIR] |
---|
1354 | _ACEOF |
---|
1355 | |
---|
1356 | cat <<\_ACEOF |
---|
1357 | |
---|
1358 | X features: |
---|
1359 | --x-includes=DIR X include files are in DIR |
---|
1360 | --x-libraries=DIR X library files are in DIR |
---|
1361 | _ACEOF |
---|
1362 | fi |
---|
1363 | |
---|
1364 | if test -n "$ac_init_help"; then |
---|
1365 | case $ac_init_help in |
---|
1366 | short | recursive ) echo "Configuration of Rappture 1.4:";; |
---|
1367 | esac |
---|
1368 | cat <<\_ACEOF |
---|
1369 | |
---|
1370 | Optional Features: |
---|
1371 | --disable-option-checking ignore unrecognized --enable/--with options |
---|
1372 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1373 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1374 | --enable-lang build language bindings [default=yes] |
---|
1375 | --enable-gui build code related to the graphical user interface |
---|
1376 | [default=yes] |
---|
1377 | --enable-vtkdicom Use vtkDICOM package [default=no] |
---|
1378 | |
---|
1379 | Optional Packages: |
---|
1380 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1381 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1382 | --with-x use the X Window System |
---|
1383 | --with-install=DIR location of installation [default=yes] |
---|
1384 | --with-statsdir=DIR Write statistics in DIR |
---|
1385 | --with-ffmpeg=DIR location of ffmpeg [default=yes] |
---|
1386 | --with-vtk=version VTK library version [default=6.1] |
---|
1387 | |
---|
1388 | Some influential environment variables: |
---|
1389 | CC C compiler command |
---|
1390 | CFLAGS C compiler flags |
---|
1391 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1392 | nonstandard directory <lib dir> |
---|
1393 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
1394 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
---|
1395 | you have headers in a nonstandard directory <include dir> |
---|
1396 | CXX C++ compiler command |
---|
1397 | CXXFLAGS C++ compiler flags |
---|
1398 | F77 Fortran 77 compiler command |
---|
1399 | FFLAGS Fortran 77 compiler flags |
---|
1400 | CPP C preprocessor |
---|
1401 | XMKMF Path to xmkmf, Makefile generator for X Window System |
---|
1402 | CXXCPP C++ preprocessor |
---|
1403 | |
---|
1404 | Use these variables to override the choices made by `configure' or to help |
---|
1405 | it to find libraries and programs with nonstandard names/locations. |
---|
1406 | |
---|
1407 | Report bugs to <rappture@nanohub.org>. |
---|
1408 | _ACEOF |
---|
1409 | ac_status=$? |
---|
1410 | fi |
---|
1411 | |
---|
1412 | if test "$ac_init_help" = "recursive"; then |
---|
1413 | # If there are subdirs, report their specific --help. |
---|
1414 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1415 | test -d "$ac_dir" || |
---|
1416 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
---|
1417 | continue |
---|
1418 | ac_builddir=. |
---|
1419 | |
---|
1420 | case "$ac_dir" in |
---|
1421 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1422 | *) |
---|
1423 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
1424 | # A ".." for each directory in $ac_dir_suffix. |
---|
1425 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
1426 | case $ac_top_builddir_sub in |
---|
1427 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1428 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
1429 | esac ;; |
---|
1430 | esac |
---|
1431 | ac_abs_top_builddir=$ac_pwd |
---|
1432 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
1433 | # for backward compatibility: |
---|
1434 | ac_top_builddir=$ac_top_build_prefix |
---|
1435 | |
---|
1436 | case $srcdir in |
---|
1437 | .) # We are building in place. |
---|
1438 | ac_srcdir=. |
---|
1439 | ac_top_srcdir=$ac_top_builddir_sub |
---|
1440 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
1441 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
1442 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1443 | ac_top_srcdir=$srcdir |
---|
1444 | ac_abs_top_srcdir=$srcdir ;; |
---|
1445 | *) # Relative name. |
---|
1446 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
1447 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
1448 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
1449 | esac |
---|
1450 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
1451 | |
---|
1452 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
1453 | # Check for guested configure. |
---|
1454 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
1455 | echo && |
---|
1456 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
1457 | elif test -f "$ac_srcdir/configure"; then |
---|
1458 | echo && |
---|
1459 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
1460 | else |
---|
1461 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1462 | fi || ac_status=$? |
---|
1463 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
1464 | done |
---|
1465 | fi |
---|
1466 | |
---|
1467 | test -n "$ac_init_help" && exit $ac_status |
---|
1468 | if $ac_init_version; then |
---|
1469 | cat <<\_ACEOF |
---|
1470 | Rappture configure 1.4 |
---|
1471 | generated by GNU Autoconf 2.69 |
---|
1472 | |
---|
1473 | Copyright (C) 2012 Free Software Foundation, Inc. |
---|
1474 | This configure script is free software; the Free Software Foundation |
---|
1475 | gives unlimited permission to copy, distribute and modify it. |
---|
1476 | _ACEOF |
---|
1477 | exit |
---|
1478 | fi |
---|
1479 | |
---|
1480 | ## ------------------------ ## |
---|
1481 | ## Autoconf initialization. ## |
---|
1482 | ## ------------------------ ## |
---|
1483 | |
---|
1484 | # ac_fn_c_try_compile LINENO |
---|
1485 | # -------------------------- |
---|
1486 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1487 | ac_fn_c_try_compile () |
---|
1488 | { |
---|
1489 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1490 | rm -f conftest.$ac_objext |
---|
1491 | if { { ac_try="$ac_compile" |
---|
1492 | case "(($ac_try" in |
---|
1493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1494 | *) ac_try_echo=$ac_try;; |
---|
1495 | esac |
---|
1496 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1497 | $as_echo "$ac_try_echo"; } >&5 |
---|
1498 | (eval "$ac_compile") 2>conftest.err |
---|
1499 | ac_status=$? |
---|
1500 | if test -s conftest.err; then |
---|
1501 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1502 | cat conftest.er1 >&5 |
---|
1503 | mv -f conftest.er1 conftest.err |
---|
1504 | fi |
---|
1505 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1506 | test $ac_status = 0; } && { |
---|
1507 | test -z "$ac_c_werror_flag" || |
---|
1508 | test ! -s conftest.err |
---|
1509 | } && test -s conftest.$ac_objext; then : |
---|
1510 | ac_retval=0 |
---|
1511 | else |
---|
1512 | $as_echo "$as_me: failed program was:" >&5 |
---|
1513 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1514 | |
---|
1515 | ac_retval=1 |
---|
1516 | fi |
---|
1517 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1518 | as_fn_set_status $ac_retval |
---|
1519 | |
---|
1520 | } # ac_fn_c_try_compile |
---|
1521 | |
---|
1522 | # ac_fn_cxx_try_compile LINENO |
---|
1523 | # ---------------------------- |
---|
1524 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1525 | ac_fn_cxx_try_compile () |
---|
1526 | { |
---|
1527 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1528 | rm -f conftest.$ac_objext |
---|
1529 | if { { ac_try="$ac_compile" |
---|
1530 | case "(($ac_try" in |
---|
1531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1532 | *) ac_try_echo=$ac_try;; |
---|
1533 | esac |
---|
1534 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1535 | $as_echo "$ac_try_echo"; } >&5 |
---|
1536 | (eval "$ac_compile") 2>conftest.err |
---|
1537 | ac_status=$? |
---|
1538 | if test -s conftest.err; then |
---|
1539 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1540 | cat conftest.er1 >&5 |
---|
1541 | mv -f conftest.er1 conftest.err |
---|
1542 | fi |
---|
1543 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1544 | test $ac_status = 0; } && { |
---|
1545 | test -z "$ac_cxx_werror_flag" || |
---|
1546 | test ! -s conftest.err |
---|
1547 | } && test -s conftest.$ac_objext; then : |
---|
1548 | ac_retval=0 |
---|
1549 | else |
---|
1550 | $as_echo "$as_me: failed program was:" >&5 |
---|
1551 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1552 | |
---|
1553 | ac_retval=1 |
---|
1554 | fi |
---|
1555 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1556 | as_fn_set_status $ac_retval |
---|
1557 | |
---|
1558 | } # ac_fn_cxx_try_compile |
---|
1559 | |
---|
1560 | # ac_fn_f77_try_compile LINENO |
---|
1561 | # ---------------------------- |
---|
1562 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1563 | ac_fn_f77_try_compile () |
---|
1564 | { |
---|
1565 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1566 | rm -f conftest.$ac_objext |
---|
1567 | if { { ac_try="$ac_compile" |
---|
1568 | case "(($ac_try" in |
---|
1569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1570 | *) ac_try_echo=$ac_try;; |
---|
1571 | esac |
---|
1572 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1573 | $as_echo "$ac_try_echo"; } >&5 |
---|
1574 | (eval "$ac_compile") 2>conftest.err |
---|
1575 | ac_status=$? |
---|
1576 | if test -s conftest.err; then |
---|
1577 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1578 | cat conftest.er1 >&5 |
---|
1579 | mv -f conftest.er1 conftest.err |
---|
1580 | fi |
---|
1581 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1582 | test $ac_status = 0; } && { |
---|
1583 | test -z "$ac_f77_werror_flag" || |
---|
1584 | test ! -s conftest.err |
---|
1585 | } && test -s conftest.$ac_objext; then : |
---|
1586 | ac_retval=0 |
---|
1587 | else |
---|
1588 | $as_echo "$as_me: failed program was:" >&5 |
---|
1589 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1590 | |
---|
1591 | ac_retval=1 |
---|
1592 | fi |
---|
1593 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1594 | as_fn_set_status $ac_retval |
---|
1595 | |
---|
1596 | } # ac_fn_f77_try_compile |
---|
1597 | |
---|
1598 | # ac_fn_c_try_cpp LINENO |
---|
1599 | # ---------------------- |
---|
1600 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
1601 | ac_fn_c_try_cpp () |
---|
1602 | { |
---|
1603 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1604 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
1605 | case "(($ac_try" in |
---|
1606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1607 | *) ac_try_echo=$ac_try;; |
---|
1608 | esac |
---|
1609 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1610 | $as_echo "$ac_try_echo"; } >&5 |
---|
1611 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
1612 | ac_status=$? |
---|
1613 | if test -s conftest.err; then |
---|
1614 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1615 | cat conftest.er1 >&5 |
---|
1616 | mv -f conftest.er1 conftest.err |
---|
1617 | fi |
---|
1618 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1619 | test $ac_status = 0; } > conftest.i && { |
---|
1620 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
1621 | test ! -s conftest.err |
---|
1622 | }; then : |
---|
1623 | ac_retval=0 |
---|
1624 | else |
---|
1625 | $as_echo "$as_me: failed program was:" >&5 |
---|
1626 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1627 | |
---|
1628 | ac_retval=1 |
---|
1629 | fi |
---|
1630 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1631 | as_fn_set_status $ac_retval |
---|
1632 | |
---|
1633 | } # ac_fn_c_try_cpp |
---|
1634 | |
---|
1635 | # ac_fn_c_try_run LINENO |
---|
1636 | # ---------------------- |
---|
1637 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
---|
1638 | # that executables *can* be run. |
---|
1639 | ac_fn_c_try_run () |
---|
1640 | { |
---|
1641 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1642 | if { { ac_try="$ac_link" |
---|
1643 | case "(($ac_try" in |
---|
1644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1645 | *) ac_try_echo=$ac_try;; |
---|
1646 | esac |
---|
1647 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1648 | $as_echo "$ac_try_echo"; } >&5 |
---|
1649 | (eval "$ac_link") 2>&5 |
---|
1650 | ac_status=$? |
---|
1651 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1652 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
---|
1653 | { { case "(($ac_try" in |
---|
1654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1655 | *) ac_try_echo=$ac_try;; |
---|
1656 | esac |
---|
1657 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1658 | $as_echo "$ac_try_echo"; } >&5 |
---|
1659 | (eval "$ac_try") 2>&5 |
---|
1660 | ac_status=$? |
---|
1661 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1662 | test $ac_status = 0; }; }; then : |
---|
1663 | ac_retval=0 |
---|
1664 | else |
---|
1665 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
1666 | $as_echo "$as_me: failed program was:" >&5 |
---|
1667 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1668 | |
---|
1669 | ac_retval=$ac_status |
---|
1670 | fi |
---|
1671 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1672 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1673 | as_fn_set_status $ac_retval |
---|
1674 | |
---|
1675 | } # ac_fn_c_try_run |
---|
1676 | |
---|
1677 | # ac_fn_c_try_link LINENO |
---|
1678 | # ----------------------- |
---|
1679 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
1680 | ac_fn_c_try_link () |
---|
1681 | { |
---|
1682 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1683 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
1684 | if { { ac_try="$ac_link" |
---|
1685 | case "(($ac_try" in |
---|
1686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1687 | *) ac_try_echo=$ac_try;; |
---|
1688 | esac |
---|
1689 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1690 | $as_echo "$ac_try_echo"; } >&5 |
---|
1691 | (eval "$ac_link") 2>conftest.err |
---|
1692 | ac_status=$? |
---|
1693 | if test -s conftest.err; then |
---|
1694 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1695 | cat conftest.er1 >&5 |
---|
1696 | mv -f conftest.er1 conftest.err |
---|
1697 | fi |
---|
1698 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1699 | test $ac_status = 0; } && { |
---|
1700 | test -z "$ac_c_werror_flag" || |
---|
1701 | test ! -s conftest.err |
---|
1702 | } && test -s conftest$ac_exeext && { |
---|
1703 | test "$cross_compiling" = yes || |
---|
1704 | test -x conftest$ac_exeext |
---|
1705 | }; then : |
---|
1706 | ac_retval=0 |
---|
1707 | else |
---|
1708 | $as_echo "$as_me: failed program was:" >&5 |
---|
1709 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1710 | |
---|
1711 | ac_retval=1 |
---|
1712 | fi |
---|
1713 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
1714 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
1715 | # interfere with the next link command; also delete a directory that is |
---|
1716 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
1717 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1718 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1719 | as_fn_set_status $ac_retval |
---|
1720 | |
---|
1721 | } # ac_fn_c_try_link |
---|
1722 | |
---|
1723 | # ac_fn_c_check_func LINENO FUNC VAR |
---|
1724 | # ---------------------------------- |
---|
1725 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
---|
1726 | ac_fn_c_check_func () |
---|
1727 | { |
---|
1728 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1730 | $as_echo_n "checking for $2... " >&6; } |
---|
1731 | if eval \${$3+:} false; then : |
---|
1732 | $as_echo_n "(cached) " >&6 |
---|
1733 | else |
---|
1734 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1735 | /* end confdefs.h. */ |
---|
1736 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
---|
1737 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
1738 | #define $2 innocuous_$2 |
---|
1739 | |
---|
1740 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1741 | which can conflict with char $2 (); below. |
---|
1742 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
1743 | <limits.h> exists even on freestanding compilers. */ |
---|
1744 | |
---|
1745 | #ifdef __STDC__ |
---|
1746 | # include <limits.h> |
---|
1747 | #else |
---|
1748 | # include <assert.h> |
---|
1749 | #endif |
---|
1750 | |
---|
1751 | #undef $2 |
---|
1752 | |
---|
1753 | /* Override any GCC internal prototype to avoid an error. |
---|
1754 | Use char because int might match the return type of a GCC |
---|
1755 | builtin and then its argument prototype would still apply. */ |
---|
1756 | #ifdef __cplusplus |
---|
1757 | extern "C" |
---|
1758 | #endif |
---|
1759 | char $2 (); |
---|
1760 | /* The GNU C library defines this for functions which it implements |
---|
1761 | to always fail with ENOSYS. Some functions are actually named |
---|
1762 | something starting with __ and the normal name is an alias. */ |
---|
1763 | #if defined __stub_$2 || defined __stub___$2 |
---|
1764 | choke me |
---|
1765 | #endif |
---|
1766 | |
---|
1767 | int |
---|
1768 | main () |
---|
1769 | { |
---|
1770 | return $2 (); |
---|
1771 | ; |
---|
1772 | return 0; |
---|
1773 | } |
---|
1774 | _ACEOF |
---|
1775 | if ac_fn_c_try_link "$LINENO"; then : |
---|
1776 | eval "$3=yes" |
---|
1777 | else |
---|
1778 | eval "$3=no" |
---|
1779 | fi |
---|
1780 | rm -f core conftest.err conftest.$ac_objext \ |
---|
1781 | conftest$ac_exeext conftest.$ac_ext |
---|
1782 | fi |
---|
1783 | eval ac_res=\$$3 |
---|
1784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1785 | $as_echo "$ac_res" >&6; } |
---|
1786 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1787 | |
---|
1788 | } # ac_fn_c_check_func |
---|
1789 | |
---|
1790 | # ac_fn_cxx_try_cpp LINENO |
---|
1791 | # ------------------------ |
---|
1792 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
1793 | ac_fn_cxx_try_cpp () |
---|
1794 | { |
---|
1795 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1796 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
1797 | case "(($ac_try" in |
---|
1798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1799 | *) ac_try_echo=$ac_try;; |
---|
1800 | esac |
---|
1801 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1802 | $as_echo "$ac_try_echo"; } >&5 |
---|
1803 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
1804 | ac_status=$? |
---|
1805 | if test -s conftest.err; then |
---|
1806 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1807 | cat conftest.er1 >&5 |
---|
1808 | mv -f conftest.er1 conftest.err |
---|
1809 | fi |
---|
1810 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1811 | test $ac_status = 0; } > conftest.i && { |
---|
1812 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
---|
1813 | test ! -s conftest.err |
---|
1814 | }; then : |
---|
1815 | ac_retval=0 |
---|
1816 | else |
---|
1817 | $as_echo "$as_me: failed program was:" >&5 |
---|
1818 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1819 | |
---|
1820 | ac_retval=1 |
---|
1821 | fi |
---|
1822 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1823 | as_fn_set_status $ac_retval |
---|
1824 | |
---|
1825 | } # ac_fn_cxx_try_cpp |
---|
1826 | |
---|
1827 | # ac_fn_cxx_try_link LINENO |
---|
1828 | # ------------------------- |
---|
1829 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
1830 | ac_fn_cxx_try_link () |
---|
1831 | { |
---|
1832 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1833 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
1834 | if { { ac_try="$ac_link" |
---|
1835 | case "(($ac_try" in |
---|
1836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1837 | *) ac_try_echo=$ac_try;; |
---|
1838 | esac |
---|
1839 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1840 | $as_echo "$ac_try_echo"; } >&5 |
---|
1841 | (eval "$ac_link") 2>conftest.err |
---|
1842 | ac_status=$? |
---|
1843 | if test -s conftest.err; then |
---|
1844 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1845 | cat conftest.er1 >&5 |
---|
1846 | mv -f conftest.er1 conftest.err |
---|
1847 | fi |
---|
1848 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1849 | test $ac_status = 0; } && { |
---|
1850 | test -z "$ac_cxx_werror_flag" || |
---|
1851 | test ! -s conftest.err |
---|
1852 | } && test -s conftest$ac_exeext && { |
---|
1853 | test "$cross_compiling" = yes || |
---|
1854 | test -x conftest$ac_exeext |
---|
1855 | }; then : |
---|
1856 | ac_retval=0 |
---|
1857 | else |
---|
1858 | $as_echo "$as_me: failed program was:" >&5 |
---|
1859 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1860 | |
---|
1861 | ac_retval=1 |
---|
1862 | fi |
---|
1863 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
1864 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
1865 | # interfere with the next link command; also delete a directory that is |
---|
1866 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
1867 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1868 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1869 | as_fn_set_status $ac_retval |
---|
1870 | |
---|
1871 | } # ac_fn_cxx_try_link |
---|
1872 | |
---|
1873 | # ac_fn_cxx_check_func LINENO FUNC VAR |
---|
1874 | # ------------------------------------ |
---|
1875 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
---|
1876 | ac_fn_cxx_check_func () |
---|
1877 | { |
---|
1878 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1880 | $as_echo_n "checking for $2... " >&6; } |
---|
1881 | if eval \${$3+:} false; then : |
---|
1882 | $as_echo_n "(cached) " >&6 |
---|
1883 | else |
---|
1884 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1885 | /* end confdefs.h. */ |
---|
1886 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
---|
1887 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
1888 | #define $2 innocuous_$2 |
---|
1889 | |
---|
1890 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1891 | which can conflict with char $2 (); below. |
---|
1892 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
1893 | <limits.h> exists even on freestanding compilers. */ |
---|
1894 | |
---|
1895 | #ifdef __STDC__ |
---|
1896 | # include <limits.h> |
---|
1897 | #else |
---|
1898 | # include <assert.h> |
---|
1899 | #endif |
---|
1900 | |
---|
1901 | #undef $2 |
---|
1902 | |
---|
1903 | /* Override any GCC internal prototype to avoid an error. |
---|
1904 | Use char because int might match the return type of a GCC |
---|
1905 | builtin and then its argument prototype would still apply. */ |
---|
1906 | #ifdef __cplusplus |
---|
1907 | extern "C" |
---|
1908 | #endif |
---|
1909 | char $2 (); |
---|
1910 | /* The GNU C library defines this for functions which it implements |
---|
1911 | to always fail with ENOSYS. Some functions are actually named |
---|
1912 | something starting with __ and the normal name is an alias. */ |
---|
1913 | #if defined __stub_$2 || defined __stub___$2 |
---|
1914 | choke me |
---|
1915 | #endif |
---|
1916 | |
---|
1917 | int |
---|
1918 | main () |
---|
1919 | { |
---|
1920 | return $2 (); |
---|
1921 | ; |
---|
1922 | return 0; |
---|
1923 | } |
---|
1924 | _ACEOF |
---|
1925 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
1926 | eval "$3=yes" |
---|
1927 | else |
---|
1928 | eval "$3=no" |
---|
1929 | fi |
---|
1930 | rm -f core conftest.err conftest.$ac_objext \ |
---|
1931 | conftest$ac_exeext conftest.$ac_ext |
---|
1932 | fi |
---|
1933 | eval ac_res=\$$3 |
---|
1934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1935 | $as_echo "$ac_res" >&6; } |
---|
1936 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1937 | |
---|
1938 | } # ac_fn_cxx_check_func |
---|
1939 | |
---|
1940 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
---|
1941 | # --------------------------------------------------------- |
---|
1942 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
---|
1943 | # the include files in INCLUDES and setting the cache variable VAR |
---|
1944 | # accordingly. |
---|
1945 | ac_fn_cxx_check_header_mongrel () |
---|
1946 | { |
---|
1947 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1948 | if eval \${$3+:} false; then : |
---|
1949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1950 | $as_echo_n "checking for $2... " >&6; } |
---|
1951 | if eval \${$3+:} false; then : |
---|
1952 | $as_echo_n "(cached) " >&6 |
---|
1953 | fi |
---|
1954 | eval ac_res=\$$3 |
---|
1955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1956 | $as_echo "$ac_res" >&6; } |
---|
1957 | else |
---|
1958 | # Is the header compilable? |
---|
1959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
---|
1960 | $as_echo_n "checking $2 usability... " >&6; } |
---|
1961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1962 | /* end confdefs.h. */ |
---|
1963 | $4 |
---|
1964 | #include <$2> |
---|
1965 | _ACEOF |
---|
1966 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
1967 | ac_header_compiler=yes |
---|
1968 | else |
---|
1969 | ac_header_compiler=no |
---|
1970 | fi |
---|
1971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
---|
1973 | $as_echo "$ac_header_compiler" >&6; } |
---|
1974 | |
---|
1975 | # Is the header present? |
---|
1976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
---|
1977 | $as_echo_n "checking $2 presence... " >&6; } |
---|
1978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1979 | /* end confdefs.h. */ |
---|
1980 | #include <$2> |
---|
1981 | _ACEOF |
---|
1982 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
1983 | ac_header_preproc=yes |
---|
1984 | else |
---|
1985 | ac_header_preproc=no |
---|
1986 | fi |
---|
1987 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
1988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
---|
1989 | $as_echo "$ac_header_preproc" >&6; } |
---|
1990 | |
---|
1991 | # So? What about this header? |
---|
1992 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( |
---|
1993 | yes:no: ) |
---|
1994 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
1995 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
1996 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1997 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1998 | ;; |
---|
1999 | no:yes:* ) |
---|
2000 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
---|
2001 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
---|
2002 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
---|
2003 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
---|
2004 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
---|
2005 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
---|
2006 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
---|
2007 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
2008 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
2009 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
2010 | ( $as_echo "## ----------------------------------- ## |
---|
2011 | ## Report this to rappture@nanohub.org ## |
---|
2012 | ## ----------------------------------- ##" |
---|
2013 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
---|
2014 | ;; |
---|
2015 | esac |
---|
2016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
2017 | $as_echo_n "checking for $2... " >&6; } |
---|
2018 | if eval \${$3+:} false; then : |
---|
2019 | $as_echo_n "(cached) " >&6 |
---|
2020 | else |
---|
2021 | eval "$3=\$ac_header_compiler" |
---|
2022 | fi |
---|
2023 | eval ac_res=\$$3 |
---|
2024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
2025 | $as_echo "$ac_res" >&6; } |
---|
2026 | fi |
---|
2027 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2028 | |
---|
2029 | } # ac_fn_cxx_check_header_mongrel |
---|
2030 | |
---|
2031 | # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES |
---|
2032 | # --------------------------------------------------------- |
---|
2033 | # Tests whether HEADER exists and can be compiled using the include files in |
---|
2034 | # INCLUDES, setting the cache variable VAR accordingly. |
---|
2035 | ac_fn_cxx_check_header_compile () |
---|
2036 | { |
---|
2037 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
2038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
2039 | $as_echo_n "checking for $2... " >&6; } |
---|
2040 | if eval \${$3+:} false; then : |
---|
2041 | $as_echo_n "(cached) " >&6 |
---|
2042 | else |
---|
2043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2044 | /* end confdefs.h. */ |
---|
2045 | $4 |
---|
2046 | #include <$2> |
---|
2047 | _ACEOF |
---|
2048 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
2049 | eval "$3=yes" |
---|
2050 | else |
---|
2051 | eval "$3=no" |
---|
2052 | fi |
---|
2053 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2054 | fi |
---|
2055 | eval ac_res=\$$3 |
---|
2056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
2057 | $as_echo "$ac_res" >&6; } |
---|
2058 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2059 | |
---|
2060 | } # ac_fn_cxx_check_header_compile |
---|
2061 | |
---|
2062 | # ac_fn_cxx_try_run LINENO |
---|
2063 | # ------------------------ |
---|
2064 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
---|
2065 | # that executables *can* be run. |
---|
2066 | ac_fn_cxx_try_run () |
---|
2067 | { |
---|
2068 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
2069 | if { { ac_try="$ac_link" |
---|
2070 | case "(($ac_try" in |
---|
2071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2072 | *) ac_try_echo=$ac_try;; |
---|
2073 | esac |
---|
2074 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2075 | $as_echo "$ac_try_echo"; } >&5 |
---|
2076 | (eval "$ac_link") 2>&5 |
---|
2077 | ac_status=$? |
---|
2078 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2079 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
---|
2080 | { { case "(($ac_try" in |
---|
2081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2082 | *) ac_try_echo=$ac_try;; |
---|
2083 | esac |
---|
2084 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2085 | $as_echo "$ac_try_echo"; } >&5 |
---|
2086 | (eval "$ac_try") 2>&5 |
---|
2087 | ac_status=$? |
---|
2088 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2089 | test $ac_status = 0; }; }; then : |
---|
2090 | ac_retval=0 |
---|
2091 | else |
---|
2092 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
2093 | $as_echo "$as_me: failed program was:" >&5 |
---|
2094 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2095 | |
---|
2096 | ac_retval=$ac_status |
---|
2097 | fi |
---|
2098 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
2099 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2100 | as_fn_set_status $ac_retval |
---|
2101 | |
---|
2102 | } # ac_fn_cxx_try_run |
---|
2103 | |
---|
2104 | # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES |
---|
2105 | # ---------------------------------------------- |
---|
2106 | # Tries to find the compile-time value of EXPR in a program that includes |
---|
2107 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
---|
2108 | # computed |
---|
2109 | ac_fn_cxx_compute_int () |
---|
2110 | { |
---|
2111 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
2112 | if test "$cross_compiling" = yes; then |
---|
2113 | # Depending upon the size, compute the lo and hi bounds. |
---|
2114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2115 | /* end confdefs.h. */ |
---|
2116 | $4 |
---|
2117 | int |
---|
2118 | main () |
---|
2119 | { |
---|
2120 | static int test_array [1 - 2 * !(($2) >= 0)]; |
---|
2121 | test_array [0] = 0; |
---|
2122 | return test_array [0]; |
---|
2123 | |
---|
2124 | ; |
---|
2125 | return 0; |
---|
2126 | } |
---|
2127 | _ACEOF |
---|
2128 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
2129 | ac_lo=0 ac_mid=0 |
---|
2130 | while :; do |
---|
2131 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2132 | /* end confdefs.h. */ |
---|
2133 | $4 |
---|
2134 | int |
---|
2135 | main () |
---|
2136 | { |
---|
2137 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
---|
2138 | test_array [0] = 0; |
---|
2139 | return test_array [0]; |
---|
2140 | |
---|
2141 | ; |
---|
2142 | return 0; |
---|
2143 | } |
---|
2144 | _ACEOF |
---|
2145 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
2146 | ac_hi=$ac_mid; break |
---|
2147 | else |
---|
2148 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
---|
2149 | if test $ac_lo -le $ac_mid; then |
---|
2150 | ac_lo= ac_hi= |
---|
2151 | break |
---|
2152 | fi |
---|
2153 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
---|
2154 | fi |
---|
2155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2156 | done |
---|
2157 | else |
---|
2158 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2159 | /* end confdefs.h. */ |
---|
2160 | $4 |
---|
2161 | int |
---|
2162 | main () |
---|
2163 | { |
---|
2164 | static int test_array [1 - 2 * !(($2) < 0)]; |
---|
2165 | test_array [0] = 0; |
---|
2166 | return test_array [0]; |
---|
2167 | |
---|
2168 | ; |
---|
2169 | return 0; |
---|
2170 | } |
---|
2171 | _ACEOF |
---|
2172 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
2173 | ac_hi=-1 ac_mid=-1 |
---|
2174 | while :; do |
---|
2175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2176 | /* end confdefs.h. */ |
---|
2177 | $4 |
---|
2178 | int |
---|
2179 | main () |
---|
2180 | { |
---|
2181 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
---|
2182 | test_array [0] = 0; |
---|
2183 | return test_array [0]; |
---|
2184 | |
---|
2185 | ; |
---|
2186 | return 0; |
---|
2187 | } |
---|
2188 | _ACEOF |
---|
2189 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
2190 | ac_lo=$ac_mid; break |
---|
2191 | else |
---|
2192 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
---|
2193 | if test $ac_mid -le $ac_hi; then |
---|
2194 | ac_lo= ac_hi= |
---|
2195 | break |
---|
2196 | fi |
---|
2197 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
---|
2198 | fi |
---|
2199 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2200 | done |
---|
2201 | else |
---|
2202 | ac_lo= ac_hi= |
---|
2203 | fi |
---|
2204 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2205 | fi |
---|
2206 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2207 | # Binary search between lo and hi bounds. |
---|
2208 | while test "x$ac_lo" != "x$ac_hi"; do |
---|
2209 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
---|
2210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2211 | /* end confdefs.h. */ |
---|
2212 | $4 |
---|
2213 | int |
---|
2214 | main () |
---|
2215 | { |
---|
2216 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
---|
2217 | test_array [0] = 0; |
---|
2218 | return test_array [0]; |
---|
2219 | |
---|
2220 | ; |
---|
2221 | return 0; |
---|
2222 | } |
---|
2223 | _ACEOF |
---|
2224 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
2225 | ac_hi=$ac_mid |
---|
2226 | else |
---|
2227 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
---|
2228 | fi |
---|
2229 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2230 | done |
---|
2231 | case $ac_lo in #(( |
---|
2232 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
---|
2233 | '') ac_retval=1 ;; |
---|
2234 | esac |
---|
2235 | else |
---|
2236 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2237 | /* end confdefs.h. */ |
---|
2238 | $4 |
---|
2239 | static long int longval () { return $2; } |
---|
2240 | static unsigned long int ulongval () { return $2; } |
---|
2241 | #include <stdio.h> |
---|
2242 | #include <stdlib.h> |
---|
2243 | int |
---|
2244 | main () |
---|
2245 | { |
---|
2246 | |
---|
2247 | FILE *f = fopen ("conftest.val", "w"); |
---|
2248 | if (! f) |
---|
2249 | return 1; |
---|
2250 | if (($2) < 0) |
---|
2251 | { |
---|
2252 | long int i = longval (); |
---|
2253 | if (i != ($2)) |
---|
2254 | return 1; |
---|
2255 | fprintf (f, "%ld", i); |
---|
2256 | } |
---|
2257 | else |
---|
2258 | { |
---|
2259 | unsigned long int i = ulongval (); |
---|
2260 | if (i != ($2)) |
---|
2261 | return 1; |
---|
2262 | fprintf (f, "%lu", i); |
---|
2263 | } |
---|
2264 | /* Do not output a trailing newline, as this causes \r\n confusion |
---|
2265 | on some platforms. */ |
---|
2266 | return ferror (f) || fclose (f) != 0; |
---|
2267 | |
---|
2268 | ; |
---|
2269 | return 0; |
---|
2270 | } |
---|
2271 | _ACEOF |
---|
2272 | if ac_fn_cxx_try_run "$LINENO"; then : |
---|
2273 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
---|
2274 | else |
---|
2275 | ac_retval=1 |
---|
2276 | fi |
---|
2277 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
2278 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
2279 | rm -f conftest.val |
---|
2280 | |
---|
2281 | fi |
---|
2282 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2283 | as_fn_set_status $ac_retval |
---|
2284 | |
---|
2285 | } # ac_fn_cxx_compute_int |
---|
2286 | cat >config.log <<_ACEOF |
---|
2287 | This file contains any messages produced by compilers while |
---|
2288 | running configure, to aid debugging if configure makes a mistake. |
---|
2289 | |
---|
2290 | It was created by Rappture $as_me 1.4, which was |
---|
2291 | generated by GNU Autoconf 2.69. Invocation command line was |
---|
2292 | |
---|
2293 | $ $0 $@ |
---|
2294 | |
---|
2295 | _ACEOF |
---|
2296 | exec 5>>config.log |
---|
2297 | { |
---|
2298 | cat <<_ASUNAME |
---|
2299 | ## --------- ## |
---|
2300 | ## Platform. ## |
---|
2301 | ## --------- ## |
---|
2302 | |
---|
2303 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
2304 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
2305 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
2306 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
2307 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
2308 | |
---|
2309 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
2310 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
2311 | |
---|
2312 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
2313 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
2314 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
2315 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
2316 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
2317 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
2318 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
2319 | |
---|
2320 | _ASUNAME |
---|
2321 | |
---|
2322 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2323 | for as_dir in $PATH |
---|
2324 | do |
---|
2325 | IFS=$as_save_IFS |
---|
2326 | test -z "$as_dir" && as_dir=. |
---|
2327 | $as_echo "PATH: $as_dir" |
---|
2328 | done |
---|
2329 | IFS=$as_save_IFS |
---|
2330 | |
---|
2331 | } >&5 |
---|
2332 | |
---|
2333 | cat >&5 <<_ACEOF |
---|
2334 | |
---|
2335 | |
---|
2336 | ## ----------- ## |
---|
2337 | ## Core tests. ## |
---|
2338 | ## ----------- ## |
---|
2339 | |
---|
2340 | _ACEOF |
---|
2341 | |
---|
2342 | |
---|
2343 | # Keep a trace of the command line. |
---|
2344 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
2345 | # Strip out --silent because we don't want to record it for future runs. |
---|
2346 | # Also quote any args containing shell meta-characters. |
---|
2347 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
2348 | ac_configure_args= |
---|
2349 | ac_configure_args0= |
---|
2350 | ac_configure_args1= |
---|
2351 | ac_must_keep_next=false |
---|
2352 | for ac_pass in 1 2 |
---|
2353 | do |
---|
2354 | for ac_arg |
---|
2355 | do |
---|
2356 | case $ac_arg in |
---|
2357 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
2358 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
2359 | | -silent | --silent | --silen | --sile | --sil) |
---|
2360 | continue ;; |
---|
2361 | *\'*) |
---|
2362 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2363 | esac |
---|
2364 | case $ac_pass in |
---|
2365 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
---|
2366 | 2) |
---|
2367 | as_fn_append ac_configure_args1 " '$ac_arg'" |
---|
2368 | if test $ac_must_keep_next = true; then |
---|
2369 | ac_must_keep_next=false # Got value, back to normal. |
---|
2370 | else |
---|
2371 | case $ac_arg in |
---|
2372 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
2373 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
2374 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
2375 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
2376 | case "$ac_configure_args0 " in |
---|
2377 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
2378 | esac |
---|
2379 | ;; |
---|
2380 | -* ) ac_must_keep_next=true ;; |
---|
2381 | esac |
---|
2382 | fi |
---|
2383 | as_fn_append ac_configure_args " '$ac_arg'" |
---|
2384 | ;; |
---|
2385 | esac |
---|
2386 | done |
---|
2387 | done |
---|
2388 | { ac_configure_args0=; unset ac_configure_args0;} |
---|
2389 | { ac_configure_args1=; unset ac_configure_args1;} |
---|
2390 | |
---|
2391 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
2392 | # config.log. We remove comments because anyway the quotes in there |
---|
2393 | # would cause problems or look ugly. |
---|
2394 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
2395 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
2396 | trap 'exit_status=$? |
---|
2397 | # Save into config.log some information that might help in debugging. |
---|
2398 | { |
---|
2399 | echo |
---|
2400 | |
---|
2401 | $as_echo "## ---------------- ## |
---|
2402 | ## Cache variables. ## |
---|
2403 | ## ---------------- ##" |
---|
2404 | echo |
---|
2405 | # The following way of writing the cache mishandles newlines in values, |
---|
2406 | ( |
---|
2407 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
2408 | eval ac_val=\$$ac_var |
---|
2409 | case $ac_val in #( |
---|
2410 | *${as_nl}*) |
---|
2411 | case $ac_var in #( |
---|
2412 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
2413 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
2414 | esac |
---|
2415 | case $ac_var in #( |
---|
2416 | _ | IFS | as_nl) ;; #( |
---|
2417 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
2418 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
2419 | esac ;; |
---|
2420 | esac |
---|
2421 | done |
---|
2422 | (set) 2>&1 | |
---|
2423 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
2424 | *${as_nl}ac_space=\ *) |
---|
2425 | sed -n \ |
---|
2426 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
2427 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
2428 | ;; #( |
---|
2429 | *) |
---|
2430 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
2431 | ;; |
---|
2432 | esac | |
---|
2433 | sort |
---|
2434 | ) |
---|
2435 | echo |
---|
2436 | |
---|
2437 | $as_echo "## ----------------- ## |
---|
2438 | ## Output variables. ## |
---|
2439 | ## ----------------- ##" |
---|
2440 | echo |
---|
2441 | for ac_var in $ac_subst_vars |
---|
2442 | do |
---|
2443 | eval ac_val=\$$ac_var |
---|
2444 | case $ac_val in |
---|
2445 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2446 | esac |
---|
2447 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2448 | done | sort |
---|
2449 | echo |
---|
2450 | |
---|
2451 | if test -n "$ac_subst_files"; then |
---|
2452 | $as_echo "## ------------------- ## |
---|
2453 | ## File substitutions. ## |
---|
2454 | ## ------------------- ##" |
---|
2455 | echo |
---|
2456 | for ac_var in $ac_subst_files |
---|
2457 | do |
---|
2458 | eval ac_val=\$$ac_var |
---|
2459 | case $ac_val in |
---|
2460 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2461 | esac |
---|
2462 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2463 | done | sort |
---|
2464 | echo |
---|
2465 | fi |
---|
2466 | |
---|
2467 | if test -s confdefs.h; then |
---|
2468 | $as_echo "## ----------- ## |
---|
2469 | ## confdefs.h. ## |
---|
2470 | ## ----------- ##" |
---|
2471 | echo |
---|
2472 | cat confdefs.h |
---|
2473 | echo |
---|
2474 | fi |
---|
2475 | test "$ac_signal" != 0 && |
---|
2476 | $as_echo "$as_me: caught signal $ac_signal" |
---|
2477 | $as_echo "$as_me: exit $exit_status" |
---|
2478 | } >&5 |
---|
2479 | rm -f core *.core core.conftest.* && |
---|
2480 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
2481 | exit $exit_status |
---|
2482 | ' 0 |
---|
2483 | for ac_signal in 1 2 13 15; do |
---|
2484 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
---|
2485 | done |
---|
2486 | ac_signal=0 |
---|
2487 | |
---|
2488 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
2489 | rm -f -r conftest* confdefs.h |
---|
2490 | |
---|
2491 | $as_echo "/* confdefs.h */" > confdefs.h |
---|
2492 | |
---|
2493 | # Predefined preprocessor variables. |
---|
2494 | |
---|
2495 | cat >>confdefs.h <<_ACEOF |
---|
2496 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
2497 | _ACEOF |
---|
2498 | |
---|
2499 | cat >>confdefs.h <<_ACEOF |
---|
2500 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
2501 | _ACEOF |
---|
2502 | |
---|
2503 | cat >>confdefs.h <<_ACEOF |
---|
2504 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
2505 | _ACEOF |
---|
2506 | |
---|
2507 | cat >>confdefs.h <<_ACEOF |
---|
2508 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
2509 | _ACEOF |
---|
2510 | |
---|
2511 | cat >>confdefs.h <<_ACEOF |
---|
2512 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
2513 | _ACEOF |
---|
2514 | |
---|
2515 | cat >>confdefs.h <<_ACEOF |
---|
2516 | #define PACKAGE_URL "$PACKAGE_URL" |
---|
2517 | _ACEOF |
---|
2518 | |
---|
2519 | |
---|
2520 | # Let the site file select an alternate cache file if it wants to. |
---|
2521 | # Prefer an explicitly selected file to automatically selected ones. |
---|
2522 | ac_site_file1=NONE |
---|
2523 | ac_site_file2=NONE |
---|
2524 | if test -n "$CONFIG_SITE"; then |
---|
2525 | # We do not want a PATH search for config.site. |
---|
2526 | case $CONFIG_SITE in #(( |
---|
2527 | -*) ac_site_file1=./$CONFIG_SITE;; |
---|
2528 | */*) ac_site_file1=$CONFIG_SITE;; |
---|
2529 | *) ac_site_file1=./$CONFIG_SITE;; |
---|
2530 | esac |
---|
2531 | elif test "x$prefix" != xNONE; then |
---|
2532 | ac_site_file1=$prefix/share/config.site |
---|
2533 | ac_site_file2=$prefix/etc/config.site |
---|
2534 | else |
---|
2535 | ac_site_file1=$ac_default_prefix/share/config.site |
---|
2536 | ac_site_file2=$ac_default_prefix/etc/config.site |
---|
2537 | fi |
---|
2538 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
---|
2539 | do |
---|
2540 | test "x$ac_site_file" = xNONE && continue |
---|
2541 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
---|
2542 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
---|
2543 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
2544 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
2545 | . "$ac_site_file" \ |
---|
2546 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2547 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2548 | as_fn_error $? "failed to load site script $ac_site_file |
---|
2549 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2550 | fi |
---|
2551 | done |
---|
2552 | |
---|
2553 | if test -r "$cache_file"; then |
---|
2554 | # Some versions of bash will fail to source /dev/null (special files |
---|
2555 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
---|
2556 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
---|
2557 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
---|
2558 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
---|
2559 | case $cache_file in |
---|
2560 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
2561 | *) . "./$cache_file";; |
---|
2562 | esac |
---|
2563 | fi |
---|
2564 | else |
---|
2565 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
---|
2566 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
---|
2567 | >$cache_file |
---|
2568 | fi |
---|
2569 | |
---|
2570 | # Check that the precious variables saved in the cache have kept the same |
---|
2571 | # value. |
---|
2572 | ac_cache_corrupted=false |
---|
2573 | for ac_var in $ac_precious_vars; do |
---|
2574 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
2575 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
2576 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
2577 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
2578 | case $ac_old_set,$ac_new_set in |
---|
2579 | set,) |
---|
2580 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
2581 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
2582 | ac_cache_corrupted=: ;; |
---|
2583 | ,set) |
---|
2584 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
---|
2585 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
2586 | ac_cache_corrupted=: ;; |
---|
2587 | ,);; |
---|
2588 | *) |
---|
2589 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
2590 | # differences in whitespace do not lead to failure. |
---|
2591 | ac_old_val_w=`echo x $ac_old_val` |
---|
2592 | ac_new_val_w=`echo x $ac_new_val` |
---|
2593 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
---|
2594 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
2595 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
2596 | ac_cache_corrupted=: |
---|
2597 | else |
---|
2598 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
---|
2599 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
---|
2600 | eval $ac_var=\$ac_old_val |
---|
2601 | fi |
---|
2602 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
---|
2603 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
---|
2604 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
---|
2605 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
---|
2606 | fi;; |
---|
2607 | esac |
---|
2608 | # Pass precious variables to config.status. |
---|
2609 | if test "$ac_new_set" = set; then |
---|
2610 | case $ac_new_val in |
---|
2611 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2612 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
2613 | esac |
---|
2614 | case " $ac_configure_args " in |
---|
2615 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
2616 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
---|
2617 | esac |
---|
2618 | fi |
---|
2619 | done |
---|
2620 | if $ac_cache_corrupted; then |
---|
2621 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2622 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2623 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
---|
2624 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
2625 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
---|
2626 | fi |
---|
2627 | ## -------------------- ## |
---|
2628 | ## Main body of script. ## |
---|
2629 | ## -------------------- ## |
---|
2630 | |
---|
2631 | ac_ext=c |
---|
2632 | ac_cpp='$CPP $CPPFLAGS' |
---|
2633 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2634 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2635 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2636 | |
---|
2637 | |
---|
2638 | ac_aux_dir= |
---|
2639 | for ac_dir in cf "$srcdir"/cf; do |
---|
2640 | if test -f "$ac_dir/install-sh"; then |
---|
2641 | ac_aux_dir=$ac_dir |
---|
2642 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
2643 | break |
---|
2644 | elif test -f "$ac_dir/install.sh"; then |
---|
2645 | ac_aux_dir=$ac_dir |
---|
2646 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
2647 | break |
---|
2648 | elif test -f "$ac_dir/shtool"; then |
---|
2649 | ac_aux_dir=$ac_dir |
---|
2650 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
2651 | break |
---|
2652 | fi |
---|
2653 | done |
---|
2654 | if test -z "$ac_aux_dir"; then |
---|
2655 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in cf \"$srcdir\"/cf" "$LINENO" 5 |
---|
2656 | fi |
---|
2657 | |
---|
2658 | # These three variables are undocumented and unsupported, |
---|
2659 | # and are intended to be withdrawn in a future Autoconf release. |
---|
2660 | # They can cause serious problems if a builder's source tree is in a directory |
---|
2661 | # whose full name contains unusual characters. |
---|
2662 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
---|
2663 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
---|
2664 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
---|
2665 | |
---|
2666 | |
---|
2667 | |
---|
2668 | RAPPTURE_MAJOR_VERSION=1 |
---|
2669 | RAPPTURE_MINOR_VERSION=4 |
---|
2670 | RAPPTURE_RELEASE_SERIAL=0 |
---|
2671 | |
---|
2672 | #------------------------------------------------------------------------ |
---|
2673 | # Handle the --prefix=... option |
---|
2674 | #------------------------------------------------------------------------ |
---|
2675 | |
---|
2676 | if test "${prefix}" = "NONE"; then |
---|
2677 | prefix=/usr/local |
---|
2678 | fi |
---|
2679 | if test "${exec_prefix}" = "NONE"; then |
---|
2680 | exec_prefix=$prefix |
---|
2681 | fi |
---|
2682 | |
---|
2683 | # Find a good install program. We prefer a C program (faster), |
---|
2684 | # so one script is as good as another. But avoid the broken or |
---|
2685 | # incompatible versions: |
---|
2686 | # SysV /etc/install, /usr/sbin/install |
---|
2687 | # SunOS /usr/etc/install |
---|
2688 | # IRIX /sbin/install |
---|
2689 | # AIX /bin/install |
---|
2690 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
2691 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
2692 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
2693 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
2694 | # OS/2's system install, which has a completely different semantic |
---|
2695 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
2696 | # Reject install programs that cannot install multiple files. |
---|
2697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
---|
2698 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
---|
2699 | if test -z "$INSTALL"; then |
---|
2700 | if ${ac_cv_path_install+:} false; then : |
---|
2701 | $as_echo_n "(cached) " >&6 |
---|
2702 | else |
---|
2703 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2704 | for as_dir in $PATH |
---|
2705 | do |
---|
2706 | IFS=$as_save_IFS |
---|
2707 | test -z "$as_dir" && as_dir=. |
---|
2708 | # Account for people who put trailing slashes in PATH elements. |
---|
2709 | case $as_dir/ in #(( |
---|
2710 | ./ | .// | /[cC]/* | \ |
---|
2711 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
2712 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
---|
2713 | /usr/ucb/* ) ;; |
---|
2714 | *) |
---|
2715 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
2716 | # Don't use installbsd from OSF since it installs stuff as root |
---|
2717 | # by default. |
---|
2718 | for ac_prog in ginstall scoinst install; do |
---|
2719 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2720 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
2721 | if test $ac_prog = install && |
---|
2722 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2723 | # AIX install. It has an incompatible calling convention. |
---|
2724 | : |
---|
2725 | elif test $ac_prog = install && |
---|
2726 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2727 | # program-specific install script used by HP pwplus--don't use. |
---|
2728 | : |
---|
2729 | else |
---|
2730 | rm -rf conftest.one conftest.two conftest.dir |
---|
2731 | echo one > conftest.one |
---|
2732 | echo two > conftest.two |
---|
2733 | mkdir conftest.dir |
---|
2734 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
---|
2735 | test -s conftest.one && test -s conftest.two && |
---|
2736 | test -s conftest.dir/conftest.one && |
---|
2737 | test -s conftest.dir/conftest.two |
---|
2738 | then |
---|
2739 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
2740 | break 3 |
---|
2741 | fi |
---|
2742 | fi |
---|
2743 | fi |
---|
2744 | done |
---|
2745 | done |
---|
2746 | ;; |
---|
2747 | esac |
---|
2748 | |
---|
2749 | done |
---|
2750 | IFS=$as_save_IFS |
---|
2751 | |
---|
2752 | rm -rf conftest.one conftest.two conftest.dir |
---|
2753 | |
---|
2754 | fi |
---|
2755 | if test "${ac_cv_path_install+set}" = set; then |
---|
2756 | INSTALL=$ac_cv_path_install |
---|
2757 | else |
---|
2758 | # As a last resort, use the slow shell script. Don't cache a |
---|
2759 | # value for INSTALL within a source directory, because that will |
---|
2760 | # break other packages using the cache if that directory is |
---|
2761 | # removed, or if the value is a relative name. |
---|
2762 | INSTALL=$ac_install_sh |
---|
2763 | fi |
---|
2764 | fi |
---|
2765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
---|
2766 | $as_echo "$INSTALL" >&6; } |
---|
2767 | |
---|
2768 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
2769 | # It thinks the first close brace ends the variable substitution. |
---|
2770 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
2771 | |
---|
2772 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
2773 | |
---|
2774 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
2775 | |
---|
2776 | |
---|
2777 | if test -n "$ac_tool_prefix"; then |
---|
2778 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
2779 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
2780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2781 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2782 | if ${ac_cv_prog_RANLIB+:} false; then : |
---|
2783 | $as_echo_n "(cached) " >&6 |
---|
2784 | else |
---|
2785 | if test -n "$RANLIB"; then |
---|
2786 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
2787 | else |
---|
2788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2789 | for as_dir in $PATH |
---|
2790 | do |
---|
2791 | IFS=$as_save_IFS |
---|
2792 | test -z "$as_dir" && as_dir=. |
---|
2793 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2794 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2795 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
2796 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2797 | break 2 |
---|
2798 | fi |
---|
2799 | done |
---|
2800 | done |
---|
2801 | IFS=$as_save_IFS |
---|
2802 | |
---|
2803 | fi |
---|
2804 | fi |
---|
2805 | RANLIB=$ac_cv_prog_RANLIB |
---|
2806 | if test -n "$RANLIB"; then |
---|
2807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
---|
2808 | $as_echo "$RANLIB" >&6; } |
---|
2809 | else |
---|
2810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2811 | $as_echo "no" >&6; } |
---|
2812 | fi |
---|
2813 | |
---|
2814 | |
---|
2815 | fi |
---|
2816 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
2817 | ac_ct_RANLIB=$RANLIB |
---|
2818 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
2819 | set dummy ranlib; ac_word=$2 |
---|
2820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2821 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2822 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
---|
2823 | $as_echo_n "(cached) " >&6 |
---|
2824 | else |
---|
2825 | if test -n "$ac_ct_RANLIB"; then |
---|
2826 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
2827 | else |
---|
2828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2829 | for as_dir in $PATH |
---|
2830 | do |
---|
2831 | IFS=$as_save_IFS |
---|
2832 | test -z "$as_dir" && as_dir=. |
---|
2833 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2834 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2835 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
2836 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2837 | break 2 |
---|
2838 | fi |
---|
2839 | done |
---|
2840 | done |
---|
2841 | IFS=$as_save_IFS |
---|
2842 | |
---|
2843 | fi |
---|
2844 | fi |
---|
2845 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
2846 | if test -n "$ac_ct_RANLIB"; then |
---|
2847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
---|
2848 | $as_echo "$ac_ct_RANLIB" >&6; } |
---|
2849 | else |
---|
2850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2851 | $as_echo "no" >&6; } |
---|
2852 | fi |
---|
2853 | |
---|
2854 | if test "x$ac_ct_RANLIB" = x; then |
---|
2855 | RANLIB=":" |
---|
2856 | else |
---|
2857 | case $cross_compiling:$ac_tool_warned in |
---|
2858 | yes:) |
---|
2859 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2860 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2861 | ac_tool_warned=yes ;; |
---|
2862 | esac |
---|
2863 | RANLIB=$ac_ct_RANLIB |
---|
2864 | fi |
---|
2865 | else |
---|
2866 | RANLIB="$ac_cv_prog_RANLIB" |
---|
2867 | fi |
---|
2868 | |
---|
2869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
---|
2870 | $as_echo_n "checking whether ln -s works... " >&6; } |
---|
2871 | LN_S=$as_ln_s |
---|
2872 | if test "$LN_S" = "ln -s"; then |
---|
2873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2874 | $as_echo "yes" >&6; } |
---|
2875 | else |
---|
2876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
---|
2877 | $as_echo "no, using $LN_S" >&6; } |
---|
2878 | fi |
---|
2879 | |
---|
2880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
---|
2881 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
---|
2882 | if test -z "$MKDIR_P"; then |
---|
2883 | if ${ac_cv_path_mkdir+:} false; then : |
---|
2884 | $as_echo_n "(cached) " >&6 |
---|
2885 | else |
---|
2886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2887 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
---|
2888 | do |
---|
2889 | IFS=$as_save_IFS |
---|
2890 | test -z "$as_dir" && as_dir=. |
---|
2891 | for ac_prog in mkdir gmkdir; do |
---|
2892 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2893 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
---|
2894 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
---|
2895 | 'mkdir (GNU coreutils) '* | \ |
---|
2896 | 'mkdir (coreutils) '* | \ |
---|
2897 | 'mkdir (fileutils) '4.1*) |
---|
2898 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
---|
2899 | break 3;; |
---|
2900 | esac |
---|
2901 | done |
---|
2902 | done |
---|
2903 | done |
---|
2904 | IFS=$as_save_IFS |
---|
2905 | |
---|
2906 | fi |
---|
2907 | |
---|
2908 | test -d ./--version && rmdir ./--version |
---|
2909 | if test "${ac_cv_path_mkdir+set}" = set; then |
---|
2910 | MKDIR_P="$ac_cv_path_mkdir -p" |
---|
2911 | else |
---|
2912 | # As a last resort, use the slow shell script. Don't cache a |
---|
2913 | # value for MKDIR_P within a source directory, because that will |
---|
2914 | # break other packages using the cache if that directory is |
---|
2915 | # removed, or if the value is a relative name. |
---|
2916 | MKDIR_P="$ac_install_sh -d" |
---|
2917 | fi |
---|
2918 | fi |
---|
2919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
---|
2920 | $as_echo "$MKDIR_P" >&6; } |
---|
2921 | |
---|
2922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
2923 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
---|
2924 | set x ${MAKE-make} |
---|
2925 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
---|
2926 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
---|
2927 | $as_echo_n "(cached) " >&6 |
---|
2928 | else |
---|
2929 | cat >conftest.make <<\_ACEOF |
---|
2930 | SHELL = /bin/sh |
---|
2931 | all: |
---|
2932 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
---|
2933 | _ACEOF |
---|
2934 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
2935 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
---|
2936 | *@@@%%%=?*=@@@%%%*) |
---|
2937 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
---|
2938 | *) |
---|
2939 | eval ac_cv_prog_make_${ac_make}_set=no;; |
---|
2940 | esac |
---|
2941 | rm -f conftest.make |
---|
2942 | fi |
---|
2943 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
---|
2944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2945 | $as_echo "yes" >&6; } |
---|
2946 | SET_MAKE= |
---|
2947 | else |
---|
2948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2949 | $as_echo "no" >&6; } |
---|
2950 | SET_MAKE="MAKE=${MAKE-make}" |
---|
2951 | fi |
---|
2952 | |
---|
2953 | |
---|
2954 | # Check for C, C++, and FORTRAN |
---|
2955 | ac_ext=c |
---|
2956 | ac_cpp='$CPP $CPPFLAGS' |
---|
2957 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2958 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2959 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2960 | if test -n "$ac_tool_prefix"; then |
---|
2961 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2962 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2964 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2965 | if ${ac_cv_prog_CC+:} false; then : |
---|
2966 | $as_echo_n "(cached) " >&6 |
---|
2967 | else |
---|
2968 | if test -n "$CC"; then |
---|
2969 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2970 | else |
---|
2971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2972 | for as_dir in $PATH |
---|
2973 | do |
---|
2974 | IFS=$as_save_IFS |
---|
2975 | test -z "$as_dir" && as_dir=. |
---|
2976 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2977 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2978 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2979 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2980 | break 2 |
---|
2981 | fi |
---|
2982 | done |
---|
2983 | done |
---|
2984 | IFS=$as_save_IFS |
---|
2985 | |
---|
2986 | fi |
---|
2987 | fi |
---|
2988 | CC=$ac_cv_prog_CC |
---|
2989 | if test -n "$CC"; then |
---|
2990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
2991 | $as_echo "$CC" >&6; } |
---|
2992 | else |
---|
2993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2994 | $as_echo "no" >&6; } |
---|
2995 | fi |
---|
2996 | |
---|
2997 | |
---|
2998 | fi |
---|
2999 | if test -z "$ac_cv_prog_CC"; then |
---|
3000 | ac_ct_CC=$CC |
---|
3001 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
3002 | set dummy gcc; ac_word=$2 |
---|
3003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3004 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3005 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
3006 | $as_echo_n "(cached) " >&6 |
---|
3007 | else |
---|
3008 | if test -n "$ac_ct_CC"; then |
---|
3009 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
3010 | else |
---|
3011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3012 | for as_dir in $PATH |
---|
3013 | do |
---|
3014 | IFS=$as_save_IFS |
---|
3015 | test -z "$as_dir" && as_dir=. |
---|
3016 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3017 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3018 | ac_cv_prog_ac_ct_CC="gcc" |
---|
3019 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3020 | break 2 |
---|
3021 | fi |
---|
3022 | done |
---|
3023 | done |
---|
3024 | IFS=$as_save_IFS |
---|
3025 | |
---|
3026 | fi |
---|
3027 | fi |
---|
3028 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
3029 | if test -n "$ac_ct_CC"; then |
---|
3030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
3031 | $as_echo "$ac_ct_CC" >&6; } |
---|
3032 | else |
---|
3033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3034 | $as_echo "no" >&6; } |
---|
3035 | fi |
---|
3036 | |
---|
3037 | if test "x$ac_ct_CC" = x; then |
---|
3038 | CC="" |
---|
3039 | else |
---|
3040 | case $cross_compiling:$ac_tool_warned in |
---|
3041 | yes:) |
---|
3042 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3043 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3044 | ac_tool_warned=yes ;; |
---|
3045 | esac |
---|
3046 | CC=$ac_ct_CC |
---|
3047 | fi |
---|
3048 | else |
---|
3049 | CC="$ac_cv_prog_CC" |
---|
3050 | fi |
---|
3051 | |
---|
3052 | if test -z "$CC"; then |
---|
3053 | if test -n "$ac_tool_prefix"; then |
---|
3054 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
3055 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
3056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3057 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3058 | if ${ac_cv_prog_CC+:} false; then : |
---|
3059 | $as_echo_n "(cached) " >&6 |
---|
3060 | else |
---|
3061 | if test -n "$CC"; then |
---|
3062 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
3063 | else |
---|
3064 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3065 | for as_dir in $PATH |
---|
3066 | do |
---|
3067 | IFS=$as_save_IFS |
---|
3068 | test -z "$as_dir" && as_dir=. |
---|
3069 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3070 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3071 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
3072 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3073 | break 2 |
---|
3074 | fi |
---|
3075 | done |
---|
3076 | done |
---|
3077 | IFS=$as_save_IFS |
---|
3078 | |
---|
3079 | fi |
---|
3080 | fi |
---|
3081 | CC=$ac_cv_prog_CC |
---|
3082 | if test -n "$CC"; then |
---|
3083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
3084 | $as_echo "$CC" >&6; } |
---|
3085 | else |
---|
3086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3087 | $as_echo "no" >&6; } |
---|
3088 | fi |
---|
3089 | |
---|
3090 | |
---|
3091 | fi |
---|
3092 | fi |
---|
3093 | if test -z "$CC"; then |
---|
3094 | # Extract the first word of "cc", so it can be a program name with args. |
---|
3095 | set dummy cc; ac_word=$2 |
---|
3096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3097 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3098 | if ${ac_cv_prog_CC+:} false; then : |
---|
3099 | $as_echo_n "(cached) " >&6 |
---|
3100 | else |
---|
3101 | if test -n "$CC"; then |
---|
3102 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
3103 | else |
---|
3104 | ac_prog_rejected=no |
---|
3105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3106 | for as_dir in $PATH |
---|
3107 | do |
---|
3108 | IFS=$as_save_IFS |
---|
3109 | test -z "$as_dir" && as_dir=. |
---|
3110 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3111 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3112 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
3113 | ac_prog_rejected=yes |
---|
3114 | continue |
---|
3115 | fi |
---|
3116 | ac_cv_prog_CC="cc" |
---|
3117 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3118 | break 2 |
---|
3119 | fi |
---|
3120 | done |
---|
3121 | done |
---|
3122 | IFS=$as_save_IFS |
---|
3123 | |
---|
3124 | if test $ac_prog_rejected = yes; then |
---|
3125 | # We found a bogon in the path, so make sure we never use it. |
---|
3126 | set dummy $ac_cv_prog_CC |
---|
3127 | shift |
---|
3128 | if test $# != 0; then |
---|
3129 | # We chose a different compiler from the bogus one. |
---|
3130 | # However, it has the same basename, so the bogon will be chosen |
---|
3131 | # first if we set CC to just the basename; use the full file name. |
---|
3132 | shift |
---|
3133 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
3134 | fi |
---|
3135 | fi |
---|
3136 | fi |
---|
3137 | fi |
---|
3138 | CC=$ac_cv_prog_CC |
---|
3139 | if test -n "$CC"; then |
---|
3140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
3141 | $as_echo "$CC" >&6; } |
---|
3142 | else |
---|
3143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3144 | $as_echo "no" >&6; } |
---|
3145 | fi |
---|
3146 | |
---|
3147 | |
---|
3148 | fi |
---|
3149 | if test -z "$CC"; then |
---|
3150 | if test -n "$ac_tool_prefix"; then |
---|
3151 | for ac_prog in cl.exe |
---|
3152 | do |
---|
3153 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3154 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3156 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3157 | if ${ac_cv_prog_CC+:} false; then : |
---|
3158 | $as_echo_n "(cached) " >&6 |
---|
3159 | else |
---|
3160 | if test -n "$CC"; then |
---|
3161 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
3162 | else |
---|
3163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3164 | for as_dir in $PATH |
---|
3165 | do |
---|
3166 | IFS=$as_save_IFS |
---|
3167 | test -z "$as_dir" && as_dir=. |
---|
3168 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3169 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3170 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
3171 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3172 | break 2 |
---|
3173 | fi |
---|
3174 | done |
---|
3175 | done |
---|
3176 | IFS=$as_save_IFS |
---|
3177 | |
---|
3178 | fi |
---|
3179 | fi |
---|
3180 | CC=$ac_cv_prog_CC |
---|
3181 | if test -n "$CC"; then |
---|
3182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
3183 | $as_echo "$CC" >&6; } |
---|
3184 | else |
---|
3185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3186 | $as_echo "no" >&6; } |
---|
3187 | fi |
---|
3188 | |
---|
3189 | |
---|
3190 | test -n "$CC" && break |
---|
3191 | done |
---|
3192 | fi |
---|
3193 | if test -z "$CC"; then |
---|
3194 | ac_ct_CC=$CC |
---|
3195 | for ac_prog in cl.exe |
---|
3196 | do |
---|
3197 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3198 | set dummy $ac_prog; ac_word=$2 |
---|
3199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3200 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3201 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
3202 | $as_echo_n "(cached) " >&6 |
---|
3203 | else |
---|
3204 | if test -n "$ac_ct_CC"; then |
---|
3205 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
3206 | else |
---|
3207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3208 | for as_dir in $PATH |
---|
3209 | do |
---|
3210 | IFS=$as_save_IFS |
---|
3211 | test -z "$as_dir" && as_dir=. |
---|
3212 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3213 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3214 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
3215 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3216 | break 2 |
---|
3217 | fi |
---|
3218 | done |
---|
3219 | done |
---|
3220 | IFS=$as_save_IFS |
---|
3221 | |
---|
3222 | fi |
---|
3223 | fi |
---|
3224 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
3225 | if test -n "$ac_ct_CC"; then |
---|
3226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
3227 | $as_echo "$ac_ct_CC" >&6; } |
---|
3228 | else |
---|
3229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3230 | $as_echo "no" >&6; } |
---|
3231 | fi |
---|
3232 | |
---|
3233 | |
---|
3234 | test -n "$ac_ct_CC" && break |
---|
3235 | done |
---|
3236 | |
---|
3237 | if test "x$ac_ct_CC" = x; then |
---|
3238 | CC="" |
---|
3239 | else |
---|
3240 | case $cross_compiling:$ac_tool_warned in |
---|
3241 | yes:) |
---|
3242 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3243 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3244 | ac_tool_warned=yes ;; |
---|
3245 | esac |
---|
3246 | CC=$ac_ct_CC |
---|
3247 | fi |
---|
3248 | fi |
---|
3249 | |
---|
3250 | fi |
---|
3251 | |
---|
3252 | |
---|
3253 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3254 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3255 | as_fn_error $? "no acceptable C compiler found in \$PATH |
---|
3256 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3257 | |
---|
3258 | # Provide some information about the compiler. |
---|
3259 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
---|
3260 | set X $ac_compile |
---|
3261 | ac_compiler=$2 |
---|
3262 | for ac_option in --version -v -V -qversion; do |
---|
3263 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
3264 | case "(($ac_try" in |
---|
3265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3266 | *) ac_try_echo=$ac_try;; |
---|
3267 | esac |
---|
3268 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3269 | $as_echo "$ac_try_echo"; } >&5 |
---|
3270 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
3271 | ac_status=$? |
---|
3272 | if test -s conftest.err; then |
---|
3273 | sed '10a\ |
---|
3274 | ... rest of stderr output deleted ... |
---|
3275 | 10q' conftest.err >conftest.er1 |
---|
3276 | cat conftest.er1 >&5 |
---|
3277 | fi |
---|
3278 | rm -f conftest.er1 conftest.err |
---|
3279 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3280 | test $ac_status = 0; } |
---|
3281 | done |
---|
3282 | |
---|
3283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3284 | /* end confdefs.h. */ |
---|
3285 | |
---|
3286 | int |
---|
3287 | main () |
---|
3288 | { |
---|
3289 | |
---|
3290 | ; |
---|
3291 | return 0; |
---|
3292 | } |
---|
3293 | _ACEOF |
---|
3294 | ac_clean_files_save=$ac_clean_files |
---|
3295 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
---|
3296 | # Try to create an executable without -o first, disregard a.out. |
---|
3297 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
3298 | # of exeext. |
---|
3299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
---|
3300 | $as_echo_n "checking whether the C compiler works... " >&6; } |
---|
3301 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
3302 | |
---|
3303 | # The possible output files: |
---|
3304 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
---|
3305 | |
---|
3306 | ac_rmfiles= |
---|
3307 | for ac_file in $ac_files |
---|
3308 | do |
---|
3309 | case $ac_file in |
---|
3310 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
3311 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
3312 | esac |
---|
3313 | done |
---|
3314 | rm -f $ac_rmfiles |
---|
3315 | |
---|
3316 | if { { ac_try="$ac_link_default" |
---|
3317 | case "(($ac_try" in |
---|
3318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3319 | *) ac_try_echo=$ac_try;; |
---|
3320 | esac |
---|
3321 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3322 | $as_echo "$ac_try_echo"; } >&5 |
---|
3323 | (eval "$ac_link_default") 2>&5 |
---|
3324 | ac_status=$? |
---|
3325 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3326 | test $ac_status = 0; }; then : |
---|
3327 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
3328 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
3329 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
3330 | # so that the user can short-circuit this test for compilers unknown to |
---|
3331 | # Autoconf. |
---|
3332 | for ac_file in $ac_files '' |
---|
3333 | do |
---|
3334 | test -f "$ac_file" || continue |
---|
3335 | case $ac_file in |
---|
3336 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
---|
3337 | ;; |
---|
3338 | [ab].out ) |
---|
3339 | # We found the default executable, but exeext='' is most |
---|
3340 | # certainly right. |
---|
3341 | break;; |
---|
3342 | *.* ) |
---|
3343 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
3344 | then :; else |
---|
3345 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3346 | fi |
---|
3347 | # We set ac_cv_exeext here because the later test for it is not |
---|
3348 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
3349 | # argument, so we may need to know it at that point already. |
---|
3350 | # Even if this section looks crufty: it has the advantage of |
---|
3351 | # actually working. |
---|
3352 | break;; |
---|
3353 | * ) |
---|
3354 | break;; |
---|
3355 | esac |
---|
3356 | done |
---|
3357 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
3358 | |
---|
3359 | else |
---|
3360 | ac_file='' |
---|
3361 | fi |
---|
3362 | if test -z "$ac_file"; then : |
---|
3363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3364 | $as_echo "no" >&6; } |
---|
3365 | $as_echo "$as_me: failed program was:" >&5 |
---|
3366 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3367 | |
---|
3368 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3369 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3370 | as_fn_error 77 "C compiler cannot create executables |
---|
3371 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3372 | else |
---|
3373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
3374 | $as_echo "yes" >&6; } |
---|
3375 | fi |
---|
3376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
---|
3377 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
---|
3378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
---|
3379 | $as_echo "$ac_file" >&6; } |
---|
3380 | ac_exeext=$ac_cv_exeext |
---|
3381 | |
---|
3382 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
---|
3383 | ac_clean_files=$ac_clean_files_save |
---|
3384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
---|
3385 | $as_echo_n "checking for suffix of executables... " >&6; } |
---|
3386 | if { { ac_try="$ac_link" |
---|
3387 | case "(($ac_try" in |
---|
3388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3389 | *) ac_try_echo=$ac_try;; |
---|
3390 | esac |
---|
3391 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3392 | $as_echo "$ac_try_echo"; } >&5 |
---|
3393 | (eval "$ac_link") 2>&5 |
---|
3394 | ac_status=$? |
---|
3395 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3396 | test $ac_status = 0; }; then : |
---|
3397 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
3398 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
3399 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
3400 | # `rm'. |
---|
3401 | for ac_file in conftest.exe conftest conftest.*; do |
---|
3402 | test -f "$ac_file" || continue |
---|
3403 | case $ac_file in |
---|
3404 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
3405 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3406 | break;; |
---|
3407 | * ) break;; |
---|
3408 | esac |
---|
3409 | done |
---|
3410 | else |
---|
3411 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3412 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3413 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
---|
3414 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3415 | fi |
---|
3416 | rm -f conftest conftest$ac_cv_exeext |
---|
3417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
---|
3418 | $as_echo "$ac_cv_exeext" >&6; } |
---|
3419 | |
---|
3420 | rm -f conftest.$ac_ext |
---|
3421 | EXEEXT=$ac_cv_exeext |
---|
3422 | ac_exeext=$EXEEXT |
---|
3423 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3424 | /* end confdefs.h. */ |
---|
3425 | #include <stdio.h> |
---|
3426 | int |
---|
3427 | main () |
---|
3428 | { |
---|
3429 | FILE *f = fopen ("conftest.out", "w"); |
---|
3430 | return ferror (f) || fclose (f) != 0; |
---|
3431 | |
---|
3432 | ; |
---|
3433 | return 0; |
---|
3434 | } |
---|
3435 | _ACEOF |
---|
3436 | ac_clean_files="$ac_clean_files conftest.out" |
---|
3437 | # Check that the compiler produces executables we can run. If not, either |
---|
3438 | # the compiler is broken, or we cross compile. |
---|
3439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
---|
3440 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
---|
3441 | if test "$cross_compiling" != yes; then |
---|
3442 | { { ac_try="$ac_link" |
---|
3443 | case "(($ac_try" in |
---|
3444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3445 | *) ac_try_echo=$ac_try;; |
---|
3446 | esac |
---|
3447 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3448 | $as_echo "$ac_try_echo"; } >&5 |
---|
3449 | (eval "$ac_link") 2>&5 |
---|
3450 | ac_status=$? |
---|
3451 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3452 | test $ac_status = 0; } |
---|
3453 | if { ac_try='./conftest$ac_cv_exeext' |
---|
3454 | { { case "(($ac_try" in |
---|
3455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3456 | *) ac_try_echo=$ac_try;; |
---|
3457 | esac |
---|
3458 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3459 | $as_echo "$ac_try_echo"; } >&5 |
---|
3460 | (eval "$ac_try") 2>&5 |
---|
3461 | ac_status=$? |
---|
3462 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3463 | test $ac_status = 0; }; }; then |
---|
3464 | cross_compiling=no |
---|
3465 | else |
---|
3466 | if test "$cross_compiling" = maybe; then |
---|
3467 | cross_compiling=yes |
---|
3468 | else |
---|
3469 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3470 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3471 | as_fn_error $? "cannot run C compiled programs. |
---|
3472 | If you meant to cross compile, use \`--host'. |
---|
3473 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3474 | fi |
---|
3475 | fi |
---|
3476 | fi |
---|
3477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
---|
3478 | $as_echo "$cross_compiling" >&6; } |
---|
3479 | |
---|
3480 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
---|
3481 | ac_clean_files=$ac_clean_files_save |
---|
3482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
---|
3483 | $as_echo_n "checking for suffix of object files... " >&6; } |
---|
3484 | if ${ac_cv_objext+:} false; then : |
---|
3485 | $as_echo_n "(cached) " >&6 |
---|
3486 | else |
---|
3487 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3488 | /* end confdefs.h. */ |
---|
3489 | |
---|
3490 | int |
---|
3491 | main () |
---|
3492 | { |
---|
3493 | |
---|
3494 | ; |
---|
3495 | return 0; |
---|
3496 | } |
---|
3497 | _ACEOF |
---|
3498 | rm -f conftest.o conftest.obj |
---|
3499 | if { { ac_try="$ac_compile" |
---|
3500 | case "(($ac_try" in |
---|
3501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3502 | *) ac_try_echo=$ac_try;; |
---|
3503 | esac |
---|
3504 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3505 | $as_echo "$ac_try_echo"; } >&5 |
---|
3506 | (eval "$ac_compile") 2>&5 |
---|
3507 | ac_status=$? |
---|
3508 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3509 | test $ac_status = 0; }; then : |
---|
3510 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
3511 | test -f "$ac_file" || continue; |
---|
3512 | case $ac_file in |
---|
3513 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
---|
3514 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
3515 | break;; |
---|
3516 | esac |
---|
3517 | done |
---|
3518 | else |
---|
3519 | $as_echo "$as_me: failed program was:" >&5 |
---|
3520 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3521 | |
---|
3522 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3523 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3524 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
---|
3525 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3526 | fi |
---|
3527 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
3528 | fi |
---|
3529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
---|
3530 | $as_echo "$ac_cv_objext" >&6; } |
---|
3531 | OBJEXT=$ac_cv_objext |
---|
3532 | ac_objext=$OBJEXT |
---|
3533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
---|
3534 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
---|
3535 | if ${ac_cv_c_compiler_gnu+:} false; then : |
---|
3536 | $as_echo_n "(cached) " >&6 |
---|
3537 | else |
---|
3538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3539 | /* end confdefs.h. */ |
---|
3540 | |
---|
3541 | int |
---|
3542 | main () |
---|
3543 | { |
---|
3544 | #ifndef __GNUC__ |
---|
3545 | choke me |
---|
3546 | #endif |
---|
3547 | |
---|
3548 | ; |
---|
3549 | return 0; |
---|
3550 | } |
---|
3551 | _ACEOF |
---|
3552 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3553 | ac_compiler_gnu=yes |
---|
3554 | else |
---|
3555 | ac_compiler_gnu=no |
---|
3556 | fi |
---|
3557 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3558 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
3559 | |
---|
3560 | fi |
---|
3561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
---|
3562 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
---|
3563 | if test $ac_compiler_gnu = yes; then |
---|
3564 | GCC=yes |
---|
3565 | else |
---|
3566 | GCC= |
---|
3567 | fi |
---|
3568 | ac_test_CFLAGS=${CFLAGS+set} |
---|
3569 | ac_save_CFLAGS=$CFLAGS |
---|
3570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
---|
3571 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
---|
3572 | if ${ac_cv_prog_cc_g+:} false; then : |
---|
3573 | $as_echo_n "(cached) " >&6 |
---|
3574 | else |
---|
3575 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
3576 | ac_c_werror_flag=yes |
---|
3577 | ac_cv_prog_cc_g=no |
---|
3578 | CFLAGS="-g" |
---|
3579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3580 | /* end confdefs.h. */ |
---|
3581 | |
---|
3582 | int |
---|
3583 | main () |
---|
3584 | { |
---|
3585 | |
---|
3586 | ; |
---|
3587 | return 0; |
---|
3588 | } |
---|
3589 | _ACEOF |
---|
3590 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3591 | ac_cv_prog_cc_g=yes |
---|
3592 | else |
---|
3593 | CFLAGS="" |
---|
3594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3595 | /* end confdefs.h. */ |
---|
3596 | |
---|
3597 | int |
---|
3598 | main () |
---|
3599 | { |
---|
3600 | |
---|
3601 | ; |
---|
3602 | return 0; |
---|
3603 | } |
---|
3604 | _ACEOF |
---|
3605 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3606 | |
---|
3607 | else |
---|
3608 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
3609 | CFLAGS="-g" |
---|
3610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3611 | /* end confdefs.h. */ |
---|
3612 | |
---|
3613 | int |
---|
3614 | main () |
---|
3615 | { |
---|
3616 | |
---|
3617 | ; |
---|
3618 | return 0; |
---|
3619 | } |
---|
3620 | _ACEOF |
---|
3621 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3622 | ac_cv_prog_cc_g=yes |
---|
3623 | fi |
---|
3624 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3625 | fi |
---|
3626 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3627 | fi |
---|
3628 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3629 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
3630 | fi |
---|
3631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
---|
3632 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
---|
3633 | if test "$ac_test_CFLAGS" = set; then |
---|
3634 | CFLAGS=$ac_save_CFLAGS |
---|
3635 | elif test $ac_cv_prog_cc_g = yes; then |
---|
3636 | if test "$GCC" = yes; then |
---|
3637 | CFLAGS="-g -O2" |
---|
3638 | else |
---|
3639 | CFLAGS="-g" |
---|
3640 | fi |
---|
3641 | else |
---|
3642 | if test "$GCC" = yes; then |
---|
3643 | CFLAGS="-O2" |
---|
3644 | else |
---|
3645 | CFLAGS= |
---|
3646 | fi |
---|
3647 | fi |
---|
3648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
---|
3649 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
---|
3650 | if ${ac_cv_prog_cc_c89+:} false; then : |
---|
3651 | $as_echo_n "(cached) " >&6 |
---|
3652 | else |
---|
3653 | ac_cv_prog_cc_c89=no |
---|
3654 | ac_save_CC=$CC |
---|
3655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3656 | /* end confdefs.h. */ |
---|
3657 | #include <stdarg.h> |
---|
3658 | #include <stdio.h> |
---|
3659 | struct stat; |
---|
3660 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
3661 | struct buf { int x; }; |
---|
3662 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
3663 | static char *e (p, i) |
---|
3664 | char **p; |
---|
3665 | int i; |
---|
3666 | { |
---|
3667 | return p[i]; |
---|
3668 | } |
---|
3669 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
3670 | { |
---|
3671 | char *s; |
---|
3672 | va_list v; |
---|
3673 | va_start (v,p); |
---|
3674 | s = g (p, va_arg (v,int)); |
---|
3675 | va_end (v); |
---|
3676 | return s; |
---|
3677 | } |
---|
3678 | |
---|
3679 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
3680 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
3681 | These don't provoke an error unfortunately, instead are silently treated |
---|
3682 | as 'x'. The following induces an error, until -std is added to get |
---|
3683 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
3684 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
3685 | that's true only with -std. */ |
---|
3686 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
3687 | |
---|
3688 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
3689 | inside strings and character constants. */ |
---|
3690 | #define FOO(x) 'x' |
---|
3691 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
3692 | |
---|
3693 | int test (int i, double x); |
---|
3694 | struct s1 {int (*f) (int a);}; |
---|
3695 | struct s2 {int (*f) (double a);}; |
---|
3696 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
3697 | int argc; |
---|
3698 | char **argv; |
---|
3699 | int |
---|
3700 | main () |
---|
3701 | { |
---|
3702 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
3703 | ; |
---|
3704 | return 0; |
---|
3705 | } |
---|
3706 | _ACEOF |
---|
3707 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
3708 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
3709 | do |
---|
3710 | CC="$ac_save_CC $ac_arg" |
---|
3711 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3712 | ac_cv_prog_cc_c89=$ac_arg |
---|
3713 | fi |
---|
3714 | rm -f core conftest.err conftest.$ac_objext |
---|
3715 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
3716 | done |
---|
3717 | rm -f conftest.$ac_ext |
---|
3718 | CC=$ac_save_CC |
---|
3719 | |
---|
3720 | fi |
---|
3721 | # AC_CACHE_VAL |
---|
3722 | case "x$ac_cv_prog_cc_c89" in |
---|
3723 | x) |
---|
3724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
3725 | $as_echo "none needed" >&6; } ;; |
---|
3726 | xno) |
---|
3727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
3728 | $as_echo "unsupported" >&6; } ;; |
---|
3729 | *) |
---|
3730 | CC="$CC $ac_cv_prog_cc_c89" |
---|
3731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
---|
3732 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
---|
3733 | esac |
---|
3734 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
---|
3735 | |
---|
3736 | fi |
---|
3737 | |
---|
3738 | ac_ext=c |
---|
3739 | ac_cpp='$CPP $CPPFLAGS' |
---|
3740 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3741 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3742 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3743 | |
---|
3744 | ac_ext=cpp |
---|
3745 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
3746 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3747 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3748 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
3749 | if test -z "$CXX"; then |
---|
3750 | if test -n "$CCC"; then |
---|
3751 | CXX=$CCC |
---|
3752 | else |
---|
3753 | if test -n "$ac_tool_prefix"; then |
---|
3754 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3755 | do |
---|
3756 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3757 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3759 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3760 | if ${ac_cv_prog_CXX+:} false; then : |
---|
3761 | $as_echo_n "(cached) " >&6 |
---|
3762 | else |
---|
3763 | if test -n "$CXX"; then |
---|
3764 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
3765 | else |
---|
3766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3767 | for as_dir in $PATH |
---|
3768 | do |
---|
3769 | IFS=$as_save_IFS |
---|
3770 | test -z "$as_dir" && as_dir=. |
---|
3771 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3772 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3773 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
3774 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3775 | break 2 |
---|
3776 | fi |
---|
3777 | done |
---|
3778 | done |
---|
3779 | IFS=$as_save_IFS |
---|
3780 | |
---|
3781 | fi |
---|
3782 | fi |
---|
3783 | CXX=$ac_cv_prog_CXX |
---|
3784 | if test -n "$CXX"; then |
---|
3785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
---|
3786 | $as_echo "$CXX" >&6; } |
---|
3787 | else |
---|
3788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3789 | $as_echo "no" >&6; } |
---|
3790 | fi |
---|
3791 | |
---|
3792 | |
---|
3793 | test -n "$CXX" && break |
---|
3794 | done |
---|
3795 | fi |
---|
3796 | if test -z "$CXX"; then |
---|
3797 | ac_ct_CXX=$CXX |
---|
3798 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3799 | do |
---|
3800 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3801 | set dummy $ac_prog; ac_word=$2 |
---|
3802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3803 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3804 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
---|
3805 | $as_echo_n "(cached) " >&6 |
---|
3806 | else |
---|
3807 | if test -n "$ac_ct_CXX"; then |
---|
3808 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
3809 | else |
---|
3810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3811 | for as_dir in $PATH |
---|
3812 | do |
---|
3813 | IFS=$as_save_IFS |
---|
3814 | test -z "$as_dir" && as_dir=. |
---|
3815 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3816 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3817 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
3818 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3819 | break 2 |
---|
3820 | fi |
---|
3821 | done |
---|
3822 | done |
---|
3823 | IFS=$as_save_IFS |
---|
3824 | |
---|
3825 | fi |
---|
3826 | fi |
---|
3827 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
3828 | if test -n "$ac_ct_CXX"; then |
---|
3829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
---|
3830 | $as_echo "$ac_ct_CXX" >&6; } |
---|
3831 | else |
---|
3832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3833 | $as_echo "no" >&6; } |
---|
3834 | fi |
---|
3835 | |
---|
3836 | |
---|
3837 | test -n "$ac_ct_CXX" && break |
---|
3838 | done |
---|
3839 | |
---|
3840 | if test "x$ac_ct_CXX" = x; then |
---|
3841 | CXX="g++" |
---|
3842 | else |
---|
3843 | case $cross_compiling:$ac_tool_warned in |
---|
3844 | yes:) |
---|
3845 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3846 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3847 | ac_tool_warned=yes ;; |
---|
3848 | esac |
---|
3849 | CXX=$ac_ct_CXX |
---|
3850 | fi |
---|
3851 | fi |
---|
3852 | |
---|
3853 | fi |
---|
3854 | fi |
---|
3855 | # Provide some information about the compiler. |
---|
3856 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
---|
3857 | set X $ac_compile |
---|
3858 | ac_compiler=$2 |
---|
3859 | for ac_option in --version -v -V -qversion; do |
---|
3860 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
3861 | case "(($ac_try" in |
---|
3862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3863 | *) ac_try_echo=$ac_try;; |
---|
3864 | esac |
---|
3865 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3866 | $as_echo "$ac_try_echo"; } >&5 |
---|
3867 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
3868 | ac_status=$? |
---|
3869 | if test -s conftest.err; then |
---|
3870 | sed '10a\ |
---|
3871 | ... rest of stderr output deleted ... |
---|
3872 | 10q' conftest.err >conftest.er1 |
---|
3873 | cat conftest.er1 >&5 |
---|
3874 | fi |
---|
3875 | rm -f conftest.er1 conftest.err |
---|
3876 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3877 | test $ac_status = 0; } |
---|
3878 | done |
---|
3879 | |
---|
3880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
---|
3881 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
---|
3882 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
---|
3883 | $as_echo_n "(cached) " >&6 |
---|
3884 | else |
---|
3885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3886 | /* end confdefs.h. */ |
---|
3887 | |
---|
3888 | int |
---|
3889 | main () |
---|
3890 | { |
---|
3891 | #ifndef __GNUC__ |
---|
3892 | choke me |
---|
3893 | #endif |
---|
3894 | |
---|
3895 | ; |
---|
3896 | return 0; |
---|
3897 | } |
---|
3898 | _ACEOF |
---|
3899 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3900 | ac_compiler_gnu=yes |
---|
3901 | else |
---|
3902 | ac_compiler_gnu=no |
---|
3903 | fi |
---|
3904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3905 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
3906 | |
---|
3907 | fi |
---|
3908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
3909 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
---|
3910 | if test $ac_compiler_gnu = yes; then |
---|
3911 | GXX=yes |
---|
3912 | else |
---|
3913 | GXX= |
---|
3914 | fi |
---|
3915 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
3916 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
3917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
---|
3918 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
---|
3919 | if ${ac_cv_prog_cxx_g+:} false; then : |
---|
3920 | $as_echo_n "(cached) " >&6 |
---|
3921 | else |
---|
3922 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
---|
3923 | ac_cxx_werror_flag=yes |
---|
3924 | ac_cv_prog_cxx_g=no |
---|
3925 | CXXFLAGS="-g" |
---|
3926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3927 | /* end confdefs.h. */ |
---|
3928 | |
---|
3929 | int |
---|
3930 | main () |
---|
3931 | { |
---|
3932 | |
---|
3933 | ; |
---|
3934 | return 0; |
---|
3935 | } |
---|
3936 | _ACEOF |
---|
3937 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3938 | ac_cv_prog_cxx_g=yes |
---|
3939 | else |
---|
3940 | CXXFLAGS="" |
---|
3941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3942 | /* end confdefs.h. */ |
---|
3943 | |
---|
3944 | int |
---|
3945 | main () |
---|
3946 | { |
---|
3947 | |
---|
3948 | ; |
---|
3949 | return 0; |
---|
3950 | } |
---|
3951 | _ACEOF |
---|
3952 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3953 | |
---|
3954 | else |
---|
3955 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
3956 | CXXFLAGS="-g" |
---|
3957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3958 | /* end confdefs.h. */ |
---|
3959 | |
---|
3960 | int |
---|
3961 | main () |
---|
3962 | { |
---|
3963 | |
---|
3964 | ; |
---|
3965 | return 0; |
---|
3966 | } |
---|
3967 | _ACEOF |
---|
3968 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3969 | ac_cv_prog_cxx_g=yes |
---|
3970 | fi |
---|
3971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3972 | fi |
---|
3973 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3974 | fi |
---|
3975 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3976 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
3977 | fi |
---|
3978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
---|
3979 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
---|
3980 | if test "$ac_test_CXXFLAGS" = set; then |
---|
3981 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
3982 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
3983 | if test "$GXX" = yes; then |
---|
3984 | CXXFLAGS="-g -O2" |
---|
3985 | else |
---|
3986 | CXXFLAGS="-g" |
---|
3987 | fi |
---|
3988 | else |
---|
3989 | if test "$GXX" = yes; then |
---|
3990 | CXXFLAGS="-O2" |
---|
3991 | else |
---|
3992 | CXXFLAGS= |
---|
3993 | fi |
---|
3994 | fi |
---|
3995 | ac_ext=c |
---|
3996 | ac_cpp='$CPP $CPPFLAGS' |
---|
3997 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3998 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3999 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4000 | |
---|
4001 | # Avoid g95 |
---|
4002 | ac_ext=f |
---|
4003 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
4004 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4005 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
4006 | if test -n "$ac_tool_prefix"; then |
---|
4007 | for ac_prog in g77 gfortran f77 fort77 f90 xlf xlf90 fl32 |
---|
4008 | do |
---|
4009 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
4010 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
4011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4012 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4013 | if ${ac_cv_prog_F77+:} false; then : |
---|
4014 | $as_echo_n "(cached) " >&6 |
---|
4015 | else |
---|
4016 | if test -n "$F77"; then |
---|
4017 | ac_cv_prog_F77="$F77" # Let the user override the test. |
---|
4018 | else |
---|
4019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4020 | for as_dir in $PATH |
---|
4021 | do |
---|
4022 | IFS=$as_save_IFS |
---|
4023 | test -z "$as_dir" && as_dir=. |
---|
4024 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4025 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4026 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
---|
4027 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4028 | break 2 |
---|
4029 | fi |
---|
4030 | done |
---|
4031 | done |
---|
4032 | IFS=$as_save_IFS |
---|
4033 | |
---|
4034 | fi |
---|
4035 | fi |
---|
4036 | F77=$ac_cv_prog_F77 |
---|
4037 | if test -n "$F77"; then |
---|
4038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5 |
---|
4039 | $as_echo "$F77" >&6; } |
---|
4040 | else |
---|
4041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4042 | $as_echo "no" >&6; } |
---|
4043 | fi |
---|
4044 | |
---|
4045 | |
---|
4046 | test -n "$F77" && break |
---|
4047 | done |
---|
4048 | fi |
---|
4049 | if test -z "$F77"; then |
---|
4050 | ac_ct_F77=$F77 |
---|
4051 | for ac_prog in g77 gfortran f77 fort77 f90 xlf xlf90 fl32 |
---|
4052 | do |
---|
4053 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
4054 | set dummy $ac_prog; ac_word=$2 |
---|
4055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4056 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4057 | if ${ac_cv_prog_ac_ct_F77+:} false; then : |
---|
4058 | $as_echo_n "(cached) " >&6 |
---|
4059 | else |
---|
4060 | if test -n "$ac_ct_F77"; then |
---|
4061 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
---|
4062 | else |
---|
4063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4064 | for as_dir in $PATH |
---|
4065 | do |
---|
4066 | IFS=$as_save_IFS |
---|
4067 | test -z "$as_dir" && as_dir=. |
---|
4068 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4069 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4070 | ac_cv_prog_ac_ct_F77="$ac_prog" |
---|
4071 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4072 | break 2 |
---|
4073 | fi |
---|
4074 | done |
---|
4075 | done |
---|
4076 | IFS=$as_save_IFS |
---|
4077 | |
---|
4078 | fi |
---|
4079 | fi |
---|
4080 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
---|
4081 | if test -n "$ac_ct_F77"; then |
---|
4082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5 |
---|
4083 | $as_echo "$ac_ct_F77" >&6; } |
---|
4084 | else |
---|
4085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4086 | $as_echo "no" >&6; } |
---|
4087 | fi |
---|
4088 | |
---|
4089 | |
---|
4090 | test -n "$ac_ct_F77" && break |
---|
4091 | done |
---|
4092 | |
---|
4093 | if test "x$ac_ct_F77" = x; then |
---|
4094 | F77="" |
---|
4095 | else |
---|
4096 | case $cross_compiling:$ac_tool_warned in |
---|
4097 | yes:) |
---|
4098 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
4099 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
4100 | ac_tool_warned=yes ;; |
---|
4101 | esac |
---|
4102 | F77=$ac_ct_F77 |
---|
4103 | fi |
---|
4104 | fi |
---|
4105 | |
---|
4106 | |
---|
4107 | # Provide some information about the compiler. |
---|
4108 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5 |
---|
4109 | set X $ac_compile |
---|
4110 | ac_compiler=$2 |
---|
4111 | for ac_option in --version -v -V -qversion; do |
---|
4112 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
4113 | case "(($ac_try" in |
---|
4114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4115 | *) ac_try_echo=$ac_try;; |
---|
4116 | esac |
---|
4117 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4118 | $as_echo "$ac_try_echo"; } >&5 |
---|
4119 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
4120 | ac_status=$? |
---|
4121 | if test -s conftest.err; then |
---|
4122 | sed '10a\ |
---|
4123 | ... rest of stderr output deleted ... |
---|
4124 | 10q' conftest.err >conftest.er1 |
---|
4125 | cat conftest.er1 >&5 |
---|
4126 | fi |
---|
4127 | rm -f conftest.er1 conftest.err |
---|
4128 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4129 | test $ac_status = 0; } |
---|
4130 | done |
---|
4131 | rm -f a.out |
---|
4132 | |
---|
4133 | # If we don't use `.F' as extension, the preprocessor is not run on the |
---|
4134 | # input file. (Note that this only needs to work for GNU compilers.) |
---|
4135 | ac_save_ext=$ac_ext |
---|
4136 | ac_ext=F |
---|
4137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5 |
---|
4138 | $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } |
---|
4139 | if ${ac_cv_f77_compiler_gnu+:} false; then : |
---|
4140 | $as_echo_n "(cached) " >&6 |
---|
4141 | else |
---|
4142 | cat > conftest.$ac_ext <<_ACEOF |
---|
4143 | program main |
---|
4144 | #ifndef __GNUC__ |
---|
4145 | choke me |
---|
4146 | #endif |
---|
4147 | |
---|
4148 | end |
---|
4149 | _ACEOF |
---|
4150 | if ac_fn_f77_try_compile "$LINENO"; then : |
---|
4151 | ac_compiler_gnu=yes |
---|
4152 | else |
---|
4153 | ac_compiler_gnu=no |
---|
4154 | fi |
---|
4155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4156 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
---|
4157 | |
---|
4158 | fi |
---|
4159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5 |
---|
4160 | $as_echo "$ac_cv_f77_compiler_gnu" >&6; } |
---|
4161 | ac_ext=$ac_save_ext |
---|
4162 | ac_test_FFLAGS=${FFLAGS+set} |
---|
4163 | ac_save_FFLAGS=$FFLAGS |
---|
4164 | FFLAGS= |
---|
4165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5 |
---|
4166 | $as_echo_n "checking whether $F77 accepts -g... " >&6; } |
---|
4167 | if ${ac_cv_prog_f77_g+:} false; then : |
---|
4168 | $as_echo_n "(cached) " >&6 |
---|
4169 | else |
---|
4170 | FFLAGS=-g |
---|
4171 | cat > conftest.$ac_ext <<_ACEOF |
---|
4172 | program main |
---|
4173 | |
---|
4174 | end |
---|
4175 | _ACEOF |
---|
4176 | if ac_fn_f77_try_compile "$LINENO"; then : |
---|
4177 | ac_cv_prog_f77_g=yes |
---|
4178 | else |
---|
4179 | ac_cv_prog_f77_g=no |
---|
4180 | fi |
---|
4181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4182 | |
---|
4183 | fi |
---|
4184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5 |
---|
4185 | $as_echo "$ac_cv_prog_f77_g" >&6; } |
---|
4186 | if test "$ac_test_FFLAGS" = set; then |
---|
4187 | FFLAGS=$ac_save_FFLAGS |
---|
4188 | elif test $ac_cv_prog_f77_g = yes; then |
---|
4189 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
4190 | FFLAGS="-g -O2" |
---|
4191 | else |
---|
4192 | FFLAGS="-g" |
---|
4193 | fi |
---|
4194 | else |
---|
4195 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
4196 | FFLAGS="-O2" |
---|
4197 | else |
---|
4198 | FFLAGS= |
---|
4199 | fi |
---|
4200 | fi |
---|
4201 | |
---|
4202 | if test $ac_compiler_gnu = yes; then |
---|
4203 | G77=yes |
---|
4204 | else |
---|
4205 | G77= |
---|
4206 | fi |
---|
4207 | ac_ext=c |
---|
4208 | ac_cpp='$CPP $CPPFLAGS' |
---|
4209 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4210 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4211 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4212 | |
---|
4213 | |
---|
4214 | ac_ext=c |
---|
4215 | ac_cpp='$CPP $CPPFLAGS' |
---|
4216 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4217 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4218 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4219 | |
---|
4220 | |
---|
4221 | |
---|
4222 | ac_ext=c |
---|
4223 | ac_cpp='$CPP $CPPFLAGS' |
---|
4224 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4225 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4226 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
---|
4228 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
---|
4229 | # On Suns, sometimes $CPP names a directory. |
---|
4230 | if test -n "$CPP" && test -d "$CPP"; then |
---|
4231 | CPP= |
---|
4232 | fi |
---|
4233 | if test -z "$CPP"; then |
---|
4234 | if ${ac_cv_prog_CPP+:} false; then : |
---|
4235 | $as_echo_n "(cached) " >&6 |
---|
4236 | else |
---|
4237 | # Double quotes because CPP needs to be expanded |
---|
4238 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
4239 | do |
---|
4240 | ac_preproc_ok=false |
---|
4241 | for ac_c_preproc_warn_flag in '' yes |
---|
4242 | do |
---|
4243 | # Use a header file that comes with gcc, so configuring glibc |
---|
4244 | # with a fresh cross-compiler works. |
---|
4245 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4246 | # <limits.h> exists even on freestanding compilers. |
---|
4247 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4248 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4250 | /* end confdefs.h. */ |
---|
4251 | #ifdef __STDC__ |
---|
4252 | # include <limits.h> |
---|
4253 | #else |
---|
4254 | # include <assert.h> |
---|
4255 | #endif |
---|
4256 | Syntax error |
---|
4257 | _ACEOF |
---|
4258 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4259 | |
---|
4260 | else |
---|
4261 | # Broken: fails on valid input. |
---|
4262 | continue |
---|
4263 | fi |
---|
4264 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4265 | |
---|
4266 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
4267 | # can be detected and how. |
---|
4268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4269 | /* end confdefs.h. */ |
---|
4270 | #include <ac_nonexistent.h> |
---|
4271 | _ACEOF |
---|
4272 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4273 | # Broken: success on invalid input. |
---|
4274 | continue |
---|
4275 | else |
---|
4276 | # Passes both tests. |
---|
4277 | ac_preproc_ok=: |
---|
4278 | break |
---|
4279 | fi |
---|
4280 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4281 | |
---|
4282 | done |
---|
4283 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
4284 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
4285 | if $ac_preproc_ok; then : |
---|
4286 | break |
---|
4287 | fi |
---|
4288 | |
---|
4289 | done |
---|
4290 | ac_cv_prog_CPP=$CPP |
---|
4291 | |
---|
4292 | fi |
---|
4293 | CPP=$ac_cv_prog_CPP |
---|
4294 | else |
---|
4295 | ac_cv_prog_CPP=$CPP |
---|
4296 | fi |
---|
4297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
---|
4298 | $as_echo "$CPP" >&6; } |
---|
4299 | ac_preproc_ok=false |
---|
4300 | for ac_c_preproc_warn_flag in '' yes |
---|
4301 | do |
---|
4302 | # Use a header file that comes with gcc, so configuring glibc |
---|
4303 | # with a fresh cross-compiler works. |
---|
4304 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4305 | # <limits.h> exists even on freestanding compilers. |
---|
4306 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4307 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4309 | /* end confdefs.h. */ |
---|
4310 | #ifdef __STDC__ |
---|
4311 | # include <limits.h> |
---|
4312 | #else |
---|
4313 | # include <assert.h> |
---|
4314 | #endif |
---|
4315 | Syntax error |
---|
4316 | _ACEOF |
---|
4317 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4318 | |
---|
4319 | else |
---|
4320 | # Broken: fails on valid input. |
---|
4321 | continue |
---|
4322 | fi |
---|
4323 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4324 | |
---|
4325 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
4326 | # can be detected and how. |
---|
4327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4328 | /* end confdefs.h. */ |
---|
4329 | #include <ac_nonexistent.h> |
---|
4330 | _ACEOF |
---|
4331 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4332 | # Broken: success on invalid input. |
---|
4333 | continue |
---|
4334 | else |
---|
4335 | # Passes both tests. |
---|
4336 | ac_preproc_ok=: |
---|
4337 | break |
---|
4338 | fi |
---|
4339 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4340 | |
---|
4341 | done |
---|
4342 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
4343 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
4344 | if $ac_preproc_ok; then : |
---|
4345 | |
---|
4346 | else |
---|
4347 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
4348 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
4349 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
---|
4350 | See \`config.log' for more details" "$LINENO" 5; } |
---|
4351 | fi |
---|
4352 | |
---|
4353 | ac_ext=c |
---|
4354 | ac_cpp='$CPP $CPPFLAGS' |
---|
4355 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4356 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4357 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4358 | |
---|
4359 | |
---|
4360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
---|
4361 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
---|
4362 | if ${ac_cv_path_GREP+:} false; then : |
---|
4363 | $as_echo_n "(cached) " >&6 |
---|
4364 | else |
---|
4365 | if test -z "$GREP"; then |
---|
4366 | ac_path_GREP_found=false |
---|
4367 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
4368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4369 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
4370 | do |
---|
4371 | IFS=$as_save_IFS |
---|
4372 | test -z "$as_dir" && as_dir=. |
---|
4373 | for ac_prog in grep ggrep; do |
---|
4374 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4375 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
4376 | as_fn_executable_p "$ac_path_GREP" || continue |
---|
4377 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
4378 | # Check for GNU $ac_path_GREP |
---|
4379 | case `"$ac_path_GREP" --version 2>&1` in |
---|
4380 | *GNU*) |
---|
4381 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
4382 | *) |
---|
4383 | ac_count=0 |
---|
4384 | $as_echo_n 0123456789 >"conftest.in" |
---|
4385 | while : |
---|
4386 | do |
---|
4387 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
4388 | mv "conftest.tmp" "conftest.in" |
---|
4389 | cp "conftest.in" "conftest.nl" |
---|
4390 | $as_echo 'GREP' >> "conftest.nl" |
---|
4391 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
4392 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
4393 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
4394 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
4395 | # Best one so far, save it but keep looking for a better one |
---|
4396 | ac_cv_path_GREP="$ac_path_GREP" |
---|
4397 | ac_path_GREP_max=$ac_count |
---|
4398 | fi |
---|
4399 | # 10*(2^10) chars as input seems more than enough |
---|
4400 | test $ac_count -gt 10 && break |
---|
4401 | done |
---|
4402 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
4403 | esac |
---|
4404 | |
---|
4405 | $ac_path_GREP_found && break 3 |
---|
4406 | done |
---|
4407 | done |
---|
4408 | done |
---|
4409 | IFS=$as_save_IFS |
---|
4410 | if test -z "$ac_cv_path_GREP"; then |
---|
4411 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
4412 | fi |
---|
4413 | else |
---|
4414 | ac_cv_path_GREP=$GREP |
---|
4415 | fi |
---|
4416 | |
---|
4417 | fi |
---|
4418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
---|
4419 | $as_echo "$ac_cv_path_GREP" >&6; } |
---|
4420 | GREP="$ac_cv_path_GREP" |
---|
4421 | |
---|
4422 | |
---|
4423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
---|
4424 | $as_echo_n "checking for egrep... " >&6; } |
---|
4425 | if ${ac_cv_path_EGREP+:} false; then : |
---|
4426 | $as_echo_n "(cached) " >&6 |
---|
4427 | else |
---|
4428 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
4429 | then ac_cv_path_EGREP="$GREP -E" |
---|
4430 | else |
---|
4431 | if test -z "$EGREP"; then |
---|
4432 | ac_path_EGREP_found=false |
---|
4433 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
4434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4435 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
4436 | do |
---|
4437 | IFS=$as_save_IFS |
---|
4438 | test -z "$as_dir" && as_dir=. |
---|
4439 | for ac_prog in egrep; do |
---|
4440 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4441 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
4442 | as_fn_executable_p "$ac_path_EGREP" || continue |
---|
4443 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
4444 | # Check for GNU $ac_path_EGREP |
---|
4445 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
4446 | *GNU*) |
---|
4447 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
4448 | *) |
---|
4449 | ac_count=0 |
---|
4450 | $as_echo_n 0123456789 >"conftest.in" |
---|
4451 | while : |
---|
4452 | do |
---|
4453 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
4454 | mv "conftest.tmp" "conftest.in" |
---|
4455 | cp "conftest.in" "conftest.nl" |
---|
4456 | $as_echo 'EGREP' >> "conftest.nl" |
---|
4457 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
4458 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
4459 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
4460 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
4461 | # Best one so far, save it but keep looking for a better one |
---|
4462 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
4463 | ac_path_EGREP_max=$ac_count |
---|
4464 | fi |
---|
4465 | # 10*(2^10) chars as input seems more than enough |
---|
4466 | test $ac_count -gt 10 && break |
---|
4467 | done |
---|
4468 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
4469 | esac |
---|
4470 | |
---|
4471 | $ac_path_EGREP_found && break 3 |
---|
4472 | done |
---|
4473 | done |
---|
4474 | done |
---|
4475 | IFS=$as_save_IFS |
---|
4476 | if test -z "$ac_cv_path_EGREP"; then |
---|
4477 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
4478 | fi |
---|
4479 | else |
---|
4480 | ac_cv_path_EGREP=$EGREP |
---|
4481 | fi |
---|
4482 | |
---|
4483 | fi |
---|
4484 | fi |
---|
4485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
---|
4486 | $as_echo "$ac_cv_path_EGREP" >&6; } |
---|
4487 | EGREP="$ac_cv_path_EGREP" |
---|
4488 | |
---|
4489 | |
---|
4490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
---|
4491 | $as_echo_n "checking for ANSI C header files... " >&6; } |
---|
4492 | if ${ac_cv_header_stdc+:} false; then : |
---|
4493 | $as_echo_n "(cached) " >&6 |
---|
4494 | else |
---|
4495 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4496 | /* end confdefs.h. */ |
---|
4497 | #include <stdlib.h> |
---|
4498 | #include <stdarg.h> |
---|
4499 | #include <string.h> |
---|
4500 | #include <float.h> |
---|
4501 | |
---|
4502 | int |
---|
4503 | main () |
---|
4504 | { |
---|
4505 | |
---|
4506 | ; |
---|
4507 | return 0; |
---|
4508 | } |
---|
4509 | _ACEOF |
---|
4510 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4511 | ac_cv_header_stdc=yes |
---|
4512 | else |
---|
4513 | ac_cv_header_stdc=no |
---|
4514 | fi |
---|
4515 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4516 | |
---|
4517 | if test $ac_cv_header_stdc = yes; then |
---|
4518 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
4519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4520 | /* end confdefs.h. */ |
---|
4521 | #include <string.h> |
---|
4522 | |
---|
4523 | _ACEOF |
---|
4524 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4525 | $EGREP "memchr" >/dev/null 2>&1; then : |
---|
4526 | |
---|
4527 | else |
---|
4528 | ac_cv_header_stdc=no |
---|
4529 | fi |
---|
4530 | rm -f conftest* |
---|
4531 | |
---|
4532 | fi |
---|
4533 | |
---|
4534 | if test $ac_cv_header_stdc = yes; then |
---|
4535 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
4536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4537 | /* end confdefs.h. */ |
---|
4538 | #include <stdlib.h> |
---|
4539 | |
---|
4540 | _ACEOF |
---|
4541 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4542 | $EGREP "free" >/dev/null 2>&1; then : |
---|
4543 | |
---|
4544 | else |
---|
4545 | ac_cv_header_stdc=no |
---|
4546 | fi |
---|
4547 | rm -f conftest* |
---|
4548 | |
---|
4549 | fi |
---|
4550 | |
---|
4551 | if test $ac_cv_header_stdc = yes; then |
---|
4552 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
4553 | if test "$cross_compiling" = yes; then : |
---|
4554 | : |
---|
4555 | else |
---|
4556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4557 | /* end confdefs.h. */ |
---|
4558 | #include <ctype.h> |
---|
4559 | #include <stdlib.h> |
---|
4560 | #if ((' ' & 0x0FF) == 0x020) |
---|
4561 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
4562 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
4563 | #else |
---|
4564 | # define ISLOWER(c) \ |
---|
4565 | (('a' <= (c) && (c) <= 'i') \ |
---|
4566 | || ('j' <= (c) && (c) <= 'r') \ |
---|
4567 | || ('s' <= (c) && (c) <= 'z')) |
---|
4568 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
4569 | #endif |
---|
4570 | |
---|
4571 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
4572 | int |
---|
4573 | main () |
---|
4574 | { |
---|
4575 | int i; |
---|
4576 | for (i = 0; i < 256; i++) |
---|
4577 | if (XOR (islower (i), ISLOWER (i)) |
---|
4578 | || toupper (i) != TOUPPER (i)) |
---|
4579 | return 2; |
---|
4580 | return 0; |
---|
4581 | } |
---|
4582 | _ACEOF |
---|
4583 | if ac_fn_c_try_run "$LINENO"; then : |
---|
4584 | |
---|
4585 | else |
---|
4586 | ac_cv_header_stdc=no |
---|
4587 | fi |
---|
4588 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
4589 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
4590 | fi |
---|
4591 | |
---|
4592 | fi |
---|
4593 | fi |
---|
4594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
---|
4595 | $as_echo "$ac_cv_header_stdc" >&6; } |
---|
4596 | if test $ac_cv_header_stdc = yes; then |
---|
4597 | |
---|
4598 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
---|
4599 | |
---|
4600 | fi |
---|
4601 | |
---|
4602 | ac_fn_c_check_func "$LINENO" "atol" "ac_cv_func_atol" |
---|
4603 | if test "x$ac_cv_func_atol" = xyes; then : |
---|
4604 | |
---|
4605 | else |
---|
4606 | as_fn_error $? "oops! no atol ?!?" "$LINENO" 5 |
---|
4607 | fi |
---|
4608 | |
---|
4609 | |
---|
4610 | ac_ext=cpp |
---|
4611 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
4612 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4613 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4614 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
4615 | |
---|
4616 | |
---|
4617 | ac_ext=cpp |
---|
4618 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
4619 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4620 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4621 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
4622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
---|
4623 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
---|
4624 | if test -z "$CXXCPP"; then |
---|
4625 | if ${ac_cv_prog_CXXCPP+:} false; then : |
---|
4626 | $as_echo_n "(cached) " >&6 |
---|
4627 | else |
---|
4628 | # Double quotes because CXXCPP needs to be expanded |
---|
4629 | for CXXCPP in "$CXX -E" "/lib/cpp" |
---|
4630 | do |
---|
4631 | ac_preproc_ok=false |
---|
4632 | for ac_cxx_preproc_warn_flag in '' yes |
---|
4633 | do |
---|
4634 | # Use a header file that comes with gcc, so configuring glibc |
---|
4635 | # with a fresh cross-compiler works. |
---|
4636 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4637 | # <limits.h> exists even on freestanding compilers. |
---|
4638 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4639 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4641 | /* end confdefs.h. */ |
---|
4642 | #ifdef __STDC__ |
---|
4643 | # include <limits.h> |
---|
4644 | #else |
---|
4645 | # include <assert.h> |
---|
4646 | #endif |
---|
4647 | Syntax error |
---|
4648 | _ACEOF |
---|
4649 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
4650 | |
---|
4651 | else |
---|
4652 | # Broken: fails on valid input. |
---|
4653 | continue |
---|
4654 | fi |
---|
4655 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4656 | |
---|
4657 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
4658 | # can be detected and how. |
---|
4659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4660 | /* end confdefs.h. */ |
---|
4661 | #include <ac_nonexistent.h> |
---|
4662 | _ACEOF |
---|
4663 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
4664 | # Broken: success on invalid input. |
---|
4665 | continue |
---|
4666 | else |
---|
4667 | # Passes both tests. |
---|
4668 | ac_preproc_ok=: |
---|
4669 | break |
---|
4670 | fi |
---|
4671 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4672 | |
---|
4673 | done |
---|
4674 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
4675 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
4676 | if $ac_preproc_ok; then : |
---|
4677 | break |
---|
4678 | fi |
---|
4679 | |
---|
4680 | done |
---|
4681 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
4682 | |
---|
4683 | fi |
---|
4684 | CXXCPP=$ac_cv_prog_CXXCPP |
---|
4685 | else |
---|
4686 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
4687 | fi |
---|
4688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
---|
4689 | $as_echo "$CXXCPP" >&6; } |
---|
4690 | ac_preproc_ok=false |
---|
4691 | for ac_cxx_preproc_warn_flag in '' yes |
---|
4692 | do |
---|
4693 | # Use a header file that comes with gcc, so configuring glibc |
---|
4694 | # with a fresh cross-compiler works. |
---|
4695 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4696 | # <limits.h> exists even on freestanding compilers. |
---|
4697 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4698 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4700 | /* end confdefs.h. */ |
---|
4701 | #ifdef __STDC__ |
---|
4702 | # include <limits.h> |
---|
4703 | #else |
---|
4704 | # include <assert.h> |
---|
4705 | #endif |
---|
4706 | Syntax error |
---|
4707 | _ACEOF |
---|
4708 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
4709 | |
---|
4710 | else |
---|
4711 | # Broken: fails on valid input. |
---|
4712 | continue |
---|
4713 | fi |
---|
4714 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4715 | |
---|
4716 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
4717 | # can be detected and how. |
---|
4718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4719 | /* end confdefs.h. */ |
---|
4720 | #include <ac_nonexistent.h> |
---|
4721 | _ACEOF |
---|
4722 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
4723 | # Broken: success on invalid input. |
---|
4724 | continue |
---|
4725 | else |
---|
4726 | # Passes both tests. |
---|
4727 | ac_preproc_ok=: |
---|
4728 | break |
---|
4729 | fi |
---|
4730 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4731 | |
---|
4732 | done |
---|
4733 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
4734 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
4735 | if $ac_preproc_ok; then : |
---|
4736 | |
---|
4737 | else |
---|
4738 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
4739 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
4740 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
---|
4741 | See \`config.log' for more details" "$LINENO" 5; } |
---|
4742 | fi |
---|
4743 | |
---|
4744 | ac_ext=cpp |
---|
4745 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
4746 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4747 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4748 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
4749 | |
---|
4750 | |
---|
4751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
---|
4752 | $as_echo_n "checking for X... " >&6; } |
---|
4753 | |
---|
4754 | |
---|
4755 | # Check whether --with-x was given. |
---|
4756 | if test "${with_x+set}" = set; then : |
---|
4757 | withval=$with_x; |
---|
4758 | fi |
---|
4759 | |
---|
4760 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
---|
4761 | if test "x$with_x" = xno; then |
---|
4762 | # The user explicitly disabled X. |
---|
4763 | have_x=disabled |
---|
4764 | else |
---|
4765 | case $x_includes,$x_libraries in #( |
---|
4766 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( |
---|
4767 | *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : |
---|
4768 | $as_echo_n "(cached) " >&6 |
---|
4769 | else |
---|
4770 | # One or both of the vars are not set, and there is no cached value. |
---|
4771 | ac_x_includes=no ac_x_libraries=no |
---|
4772 | rm -f -r conftest.dir |
---|
4773 | if mkdir conftest.dir; then |
---|
4774 | cd conftest.dir |
---|
4775 | cat >Imakefile <<'_ACEOF' |
---|
4776 | incroot: |
---|
4777 | @echo incroot='${INCROOT}' |
---|
4778 | usrlibdir: |
---|
4779 | @echo usrlibdir='${USRLIBDIR}' |
---|
4780 | libdir: |
---|
4781 | @echo libdir='${LIBDIR}' |
---|
4782 | _ACEOF |
---|
4783 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
---|
4784 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
4785 | for ac_var in incroot usrlibdir libdir; do |
---|
4786 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
---|
4787 | done |
---|
4788 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
---|
4789 | for ac_extension in a so sl dylib la dll; do |
---|
4790 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
---|
4791 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
---|
4792 | ac_im_usrlibdir=$ac_im_libdir; break |
---|
4793 | fi |
---|
4794 | done |
---|
4795 | # Screen out bogus values from the imake configuration. They are |
---|
4796 | # bogus both because they are the default anyway, and because |
---|
4797 | # using them would break gcc on systems where it needs fixed includes. |
---|
4798 | case $ac_im_incroot in |
---|
4799 | /usr/include) ac_x_includes= ;; |
---|
4800 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
---|
4801 | esac |
---|
4802 | case $ac_im_usrlibdir in |
---|
4803 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
---|
4804 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
---|
4805 | esac |
---|
4806 | fi |
---|
4807 | cd .. |
---|
4808 | rm -f -r conftest.dir |
---|
4809 | fi |
---|
4810 | |
---|
4811 | # Standard set of common directories for X headers. |
---|
4812 | # Check X11 before X11Rn because it is often a symlink to the current release. |
---|
4813 | ac_x_header_dirs=' |
---|
4814 | /usr/X11/include |
---|
4815 | /usr/X11R7/include |
---|
4816 | /usr/X11R6/include |
---|
4817 | /usr/X11R5/include |
---|
4818 | /usr/X11R4/include |
---|
4819 | |
---|
4820 | /usr/include/X11 |
---|
4821 | /usr/include/X11R7 |
---|
4822 | /usr/include/X11R6 |
---|
4823 | /usr/include/X11R5 |
---|
4824 | /usr/include/X11R4 |
---|
4825 | |
---|
4826 | /usr/local/X11/include |
---|
4827 | /usr/local/X11R7/include |
---|
4828 | /usr/local/X11R6/include |
---|
4829 | /usr/local/X11R5/include |
---|
4830 | /usr/local/X11R4/include |
---|
4831 | |
---|
4832 | /usr/local/include/X11 |
---|
4833 | /usr/local/include/X11R7 |
---|
4834 | /usr/local/include/X11R6 |
---|
4835 | /usr/local/include/X11R5 |
---|
4836 | /usr/local/include/X11R4 |
---|
4837 | |
---|
4838 | /usr/X386/include |
---|
4839 | /usr/x386/include |
---|
4840 | /usr/XFree86/include/X11 |
---|
4841 | |
---|
4842 | /usr/include |
---|
4843 | /usr/local/include |
---|
4844 | /usr/unsupported/include |
---|
4845 | /usr/athena/include |
---|
4846 | /usr/local/x11r5/include |
---|
4847 | /usr/lpp/Xamples/include |
---|
4848 | |
---|
4849 | /usr/openwin/include |
---|
4850 | /usr/openwin/share/include' |
---|
4851 | |
---|
4852 | if test "$ac_x_includes" = no; then |
---|
4853 | # Guess where to find include files, by looking for Xlib.h. |
---|
4854 | # First, try using that file with no special directory specified. |
---|
4855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4856 | /* end confdefs.h. */ |
---|
4857 | #include <X11/Xlib.h> |
---|
4858 | _ACEOF |
---|
4859 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
4860 | # We can compile using X headers with no special include directory. |
---|
4861 | ac_x_includes= |
---|
4862 | else |
---|
4863 | for ac_dir in $ac_x_header_dirs; do |
---|
4864 | if test -r "$ac_dir/X11/Xlib.h"; then |
---|
4865 | ac_x_includes=$ac_dir |
---|
4866 | break |
---|
4867 | fi |
---|
4868 | done |
---|
4869 | fi |
---|
4870 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4871 | fi # $ac_x_includes = no |
---|
4872 | |
---|
4873 | if test "$ac_x_libraries" = no; then |
---|
4874 | # Check for the libraries. |
---|
4875 | # See if we find them without any special options. |
---|
4876 | # Don't add to $LIBS permanently. |
---|
4877 | ac_save_LIBS=$LIBS |
---|
4878 | LIBS="-lX11 $LIBS" |
---|
4879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4880 | /* end confdefs.h. */ |
---|
4881 | #include <X11/Xlib.h> |
---|
4882 | int |
---|
4883 | main () |
---|
4884 | { |
---|
4885 | XrmInitialize () |
---|
4886 | ; |
---|
4887 | return 0; |
---|
4888 | } |
---|
4889 | _ACEOF |
---|
4890 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
4891 | LIBS=$ac_save_LIBS |
---|
4892 | # We can link X programs with no special library path. |
---|
4893 | ac_x_libraries= |
---|
4894 | else |
---|
4895 | LIBS=$ac_save_LIBS |
---|
4896 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
---|
4897 | do |
---|
4898 | # Don't even attempt the hair of trying to link an X program! |
---|
4899 | for ac_extension in a so sl dylib la dll; do |
---|
4900 | if test -r "$ac_dir/libX11.$ac_extension"; then |
---|
4901 | ac_x_libraries=$ac_dir |
---|
4902 | break 2 |
---|
4903 | fi |
---|
4904 | done |
---|
4905 | done |
---|
4906 | fi |
---|
4907 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4908 | conftest$ac_exeext conftest.$ac_ext |
---|
4909 | fi # $ac_x_libraries = no |
---|
4910 | |
---|
4911 | case $ac_x_includes,$ac_x_libraries in #( |
---|
4912 | no,* | *,no | *\'*) |
---|
4913 | # Didn't find X, or a directory has "'" in its name. |
---|
4914 | ac_cv_have_x="have_x=no";; #( |
---|
4915 | *) |
---|
4916 | # Record where we found X for the cache. |
---|
4917 | ac_cv_have_x="have_x=yes\ |
---|
4918 | ac_x_includes='$ac_x_includes'\ |
---|
4919 | ac_x_libraries='$ac_x_libraries'" |
---|
4920 | esac |
---|
4921 | fi |
---|
4922 | ;; #( |
---|
4923 | *) have_x=yes;; |
---|
4924 | esac |
---|
4925 | eval "$ac_cv_have_x" |
---|
4926 | fi # $with_x != no |
---|
4927 | |
---|
4928 | if test "$have_x" != yes; then |
---|
4929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
---|
4930 | $as_echo "$have_x" >&6; } |
---|
4931 | no_x=yes |
---|
4932 | else |
---|
4933 | # If each of the values was on the command line, it overrides each guess. |
---|
4934 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
---|
4935 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
---|
4936 | # Update the cache value to reflect the command line values. |
---|
4937 | ac_cv_have_x="have_x=yes\ |
---|
4938 | ac_x_includes='$x_includes'\ |
---|
4939 | ac_x_libraries='$x_libraries'" |
---|
4940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 |
---|
4941 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
---|
4942 | fi |
---|
4943 | |
---|
4944 | |
---|
4945 | |
---|
4946 | # Check whether --with-install was given. |
---|
4947 | if test "${with_install+set}" = set; then : |
---|
4948 | withval=$with_install; |
---|
4949 | else |
---|
4950 | with_install=yes |
---|
4951 | fi |
---|
4952 | |
---|
4953 | |
---|
4954 | if test "$with_install" != "yes"; then |
---|
4955 | INSTALL_PREFIX=$with_install |
---|
4956 | else |
---|
4957 | INSTALL_PREFIX=$prefix |
---|
4958 | fi |
---|
4959 | |
---|
4960 | if test "${libdir}" != "${prefix}/lib"; then |
---|
4961 | LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}" |
---|
4962 | else |
---|
4963 | LIB_SEARCH_DIRS="-L${libdir}" |
---|
4964 | fi |
---|
4965 | |
---|
4966 | |
---|
4967 | # Check whether --with-statsdir was given. |
---|
4968 | if test "${with_statsdir+set}" = set; then : |
---|
4969 | withval=$with_statsdir; STATSDIR=$withval |
---|
4970 | else |
---|
4971 | STATSDIR="/var/tmp/visservers" |
---|
4972 | fi |
---|
4973 | |
---|
4974 | |
---|
4975 | |
---|
4976 | for ac_func in sysinfo |
---|
4977 | do : |
---|
4978 | ac_fn_cxx_check_func "$LINENO" "sysinfo" "ac_cv_func_sysinfo" |
---|
4979 | if test "x$ac_cv_func_sysinfo" = xyes; then : |
---|
4980 | cat >>confdefs.h <<_ACEOF |
---|
4981 | #define HAVE_SYSINFO 1 |
---|
4982 | _ACEOF |
---|
4983 | |
---|
4984 | fi |
---|
4985 | done |
---|
4986 | |
---|
4987 | for ac_func in gettimeofday |
---|
4988 | do : |
---|
4989 | ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" |
---|
4990 | if test "x$ac_cv_func_gettimeofday" = xyes; then : |
---|
4991 | cat >>confdefs.h <<_ACEOF |
---|
4992 | #define HAVE_GETTIMEOFDAY 1 |
---|
4993 | _ACEOF |
---|
4994 | |
---|
4995 | fi |
---|
4996 | done |
---|
4997 | |
---|
4998 | ac_fn_cxx_check_func "$LINENO" "localtime" "ac_cv_func_localtime" |
---|
4999 | if test "x$ac_cv_func_localtime" = xyes; then : |
---|
5000 | |
---|
5001 | else |
---|
5002 | as_fn_error $? "oops! no localtime ?!?" "$LINENO" 5 |
---|
5003 | fi |
---|
5004 | |
---|
5005 | ac_fn_cxx_check_func "$LINENO" "getenv" "ac_cv_func_getenv" |
---|
5006 | if test "x$ac_cv_func_getenv" = xyes; then : |
---|
5007 | |
---|
5008 | else |
---|
5009 | as_fn_error $? "oops! no getenv ?!?" "$LINENO" 5 |
---|
5010 | fi |
---|
5011 | |
---|
5012 | |
---|
5013 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
5014 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
5015 | inttypes.h stdint.h unistd.h |
---|
5016 | do : |
---|
5017 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5018 | ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
---|
5019 | " |
---|
5020 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
5021 | cat >>confdefs.h <<_ACEOF |
---|
5022 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5023 | _ACEOF |
---|
5024 | |
---|
5025 | fi |
---|
5026 | |
---|
5027 | done |
---|
5028 | |
---|
5029 | |
---|
5030 | for ac_header in sys/sysinfo.h |
---|
5031 | do : |
---|
5032 | ac_fn_cxx_check_header_mongrel "$LINENO" "sys/sysinfo.h" "ac_cv_header_sys_sysinfo_h" "$ac_includes_default" |
---|
5033 | if test "x$ac_cv_header_sys_sysinfo_h" = xyes; then : |
---|
5034 | cat >>confdefs.h <<_ACEOF |
---|
5035 | #define HAVE_SYS_SYSINFO_H 1 |
---|
5036 | _ACEOF |
---|
5037 | |
---|
5038 | fi |
---|
5039 | |
---|
5040 | done |
---|
5041 | |
---|
5042 | |
---|
5043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clrtoeol in -lncurses" >&5 |
---|
5044 | $as_echo_n "checking for clrtoeol in -lncurses... " >&6; } |
---|
5045 | if ${ac_cv_lib_ncurses_clrtoeol+:} false; then : |
---|
5046 | $as_echo_n "(cached) " >&6 |
---|
5047 | else |
---|
5048 | ac_check_lib_save_LIBS=$LIBS |
---|
5049 | LIBS="-lncurses $LIBS" |
---|
5050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5051 | /* end confdefs.h. */ |
---|
5052 | |
---|
5053 | /* Override any GCC internal prototype to avoid an error. |
---|
5054 | Use char because int might match the return type of a GCC |
---|
5055 | builtin and then its argument prototype would still apply. */ |
---|
5056 | #ifdef __cplusplus |
---|
5057 | extern "C" |
---|
5058 | #endif |
---|
5059 | char clrtoeol (); |
---|
5060 | int |
---|
5061 | main () |
---|
5062 | { |
---|
5063 | return clrtoeol (); |
---|
5064 | ; |
---|
5065 | return 0; |
---|
5066 | } |
---|
5067 | _ACEOF |
---|
5068 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
5069 | ac_cv_lib_ncurses_clrtoeol=yes |
---|
5070 | else |
---|
5071 | ac_cv_lib_ncurses_clrtoeol=no |
---|
5072 | fi |
---|
5073 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5074 | conftest$ac_exeext conftest.$ac_ext |
---|
5075 | LIBS=$ac_check_lib_save_LIBS |
---|
5076 | fi |
---|
5077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_clrtoeol" >&5 |
---|
5078 | $as_echo "$ac_cv_lib_ncurses_clrtoeol" >&6; } |
---|
5079 | if test "x$ac_cv_lib_ncurses_clrtoeol" = xyes; then : |
---|
5080 | cat >>confdefs.h <<_ACEOF |
---|
5081 | #define HAVE_LIBNCURSES 1 |
---|
5082 | _ACEOF |
---|
5083 | |
---|
5084 | LIBS="-lncurses $LIBS" |
---|
5085 | |
---|
5086 | else |
---|
5087 | as_fn_error $? "ncurses library missing?" "$LINENO" 5 |
---|
5088 | fi |
---|
5089 | |
---|
5090 | for ac_header in ncurses.h |
---|
5091 | do : |
---|
5092 | ac_fn_cxx_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default" |
---|
5093 | if test "x$ac_cv_header_ncurses_h" = xyes; then : |
---|
5094 | cat >>confdefs.h <<_ACEOF |
---|
5095 | #define HAVE_NCURSES_H 1 |
---|
5096 | _ACEOF |
---|
5097 | |
---|
5098 | else |
---|
5099 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ncurses headers missing ?" >&5 |
---|
5100 | $as_echo "$as_me: WARNING: ncurses headers missing ?" >&2;} |
---|
5101 | fi |
---|
5102 | |
---|
5103 | done |
---|
5104 | |
---|
5105 | |
---|
5106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5 |
---|
5107 | $as_echo_n "checking for main in -lstdc++... " >&6; } |
---|
5108 | if ${ac_cv_lib_stdcpp_main+:} false; then : |
---|
5109 | $as_echo_n "(cached) " >&6 |
---|
5110 | else |
---|
5111 | ac_check_lib_save_LIBS=$LIBS |
---|
5112 | LIBS="-lstdc++ $LIBS" |
---|
5113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5114 | /* end confdefs.h. */ |
---|
5115 | |
---|
5116 | |
---|
5117 | int |
---|
5118 | main () |
---|
5119 | { |
---|
5120 | return main (); |
---|
5121 | ; |
---|
5122 | return 0; |
---|
5123 | } |
---|
5124 | _ACEOF |
---|
5125 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
5126 | ac_cv_lib_stdcpp_main=yes |
---|
5127 | else |
---|
5128 | ac_cv_lib_stdcpp_main=no |
---|
5129 | fi |
---|
5130 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5131 | conftest$ac_exeext conftest.$ac_ext |
---|
5132 | LIBS=$ac_check_lib_save_LIBS |
---|
5133 | fi |
---|
5134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp_main" >&5 |
---|
5135 | $as_echo "$ac_cv_lib_stdcpp_main" >&6; } |
---|
5136 | if test "x$ac_cv_lib_stdcpp_main" = xyes; then : |
---|
5137 | cat >>confdefs.h <<_ACEOF |
---|
5138 | #define HAVE_LIBSTDC__ 1 |
---|
5139 | _ACEOF |
---|
5140 | |
---|
5141 | LIBS="-lstdc++ $LIBS" |
---|
5142 | |
---|
5143 | else |
---|
5144 | as_fn_error $? "librappture requires libstdc++" "$LINENO" 5 |
---|
5145 | fi |
---|
5146 | |
---|
5147 | for ac_header in algorithm |
---|
5148 | do : |
---|
5149 | ac_fn_cxx_check_header_mongrel "$LINENO" "algorithm" "ac_cv_header_algorithm" "$ac_includes_default" |
---|
5150 | if test "x$ac_cv_header_algorithm" = xyes; then : |
---|
5151 | cat >>confdefs.h <<_ACEOF |
---|
5152 | #define HAVE_ALGORITHM 1 |
---|
5153 | _ACEOF |
---|
5154 | |
---|
5155 | else |
---|
5156 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5157 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5158 | fi |
---|
5159 | |
---|
5160 | done |
---|
5161 | |
---|
5162 | for ac_header in cctype |
---|
5163 | do : |
---|
5164 | ac_fn_cxx_check_header_mongrel "$LINENO" "cctype" "ac_cv_header_cctype" "$ac_includes_default" |
---|
5165 | if test "x$ac_cv_header_cctype" = xyes; then : |
---|
5166 | cat >>confdefs.h <<_ACEOF |
---|
5167 | #define HAVE_CCTYPE 1 |
---|
5168 | _ACEOF |
---|
5169 | |
---|
5170 | else |
---|
5171 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5172 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5173 | fi |
---|
5174 | |
---|
5175 | done |
---|
5176 | |
---|
5177 | for ac_header in cfloat |
---|
5178 | do : |
---|
5179 | ac_fn_cxx_check_header_mongrel "$LINENO" "cfloat" "ac_cv_header_cfloat" "$ac_includes_default" |
---|
5180 | if test "x$ac_cv_header_cfloat" = xyes; then : |
---|
5181 | cat >>confdefs.h <<_ACEOF |
---|
5182 | #define HAVE_CFLOAT 1 |
---|
5183 | _ACEOF |
---|
5184 | |
---|
5185 | else |
---|
5186 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5187 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5188 | fi |
---|
5189 | |
---|
5190 | done |
---|
5191 | |
---|
5192 | for ac_header in cmath |
---|
5193 | do : |
---|
5194 | ac_fn_cxx_check_header_mongrel "$LINENO" "cmath" "ac_cv_header_cmath" "$ac_includes_default" |
---|
5195 | if test "x$ac_cv_header_cmath" = xyes; then : |
---|
5196 | cat >>confdefs.h <<_ACEOF |
---|
5197 | #define HAVE_CMATH 1 |
---|
5198 | _ACEOF |
---|
5199 | |
---|
5200 | else |
---|
5201 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5202 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5203 | fi |
---|
5204 | |
---|
5205 | done |
---|
5206 | |
---|
5207 | for ac_header in cstdio |
---|
5208 | do : |
---|
5209 | ac_fn_cxx_check_header_mongrel "$LINENO" "cstdio" "ac_cv_header_cstdio" "$ac_includes_default" |
---|
5210 | if test "x$ac_cv_header_cstdio" = xyes; then : |
---|
5211 | cat >>confdefs.h <<_ACEOF |
---|
5212 | #define HAVE_CSTDIO 1 |
---|
5213 | _ACEOF |
---|
5214 | |
---|
5215 | else |
---|
5216 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5217 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5218 | fi |
---|
5219 | |
---|
5220 | done |
---|
5221 | |
---|
5222 | for ac_header in cstdlib |
---|
5223 | do : |
---|
5224 | ac_fn_cxx_check_header_mongrel "$LINENO" "cstdlib" "ac_cv_header_cstdlib" "$ac_includes_default" |
---|
5225 | if test "x$ac_cv_header_cstdlib" = xyes; then : |
---|
5226 | cat >>confdefs.h <<_ACEOF |
---|
5227 | #define HAVE_CSTDLIB 1 |
---|
5228 | _ACEOF |
---|
5229 | |
---|
5230 | else |
---|
5231 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5232 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5233 | fi |
---|
5234 | |
---|
5235 | done |
---|
5236 | |
---|
5237 | for ac_header in cstring |
---|
5238 | do : |
---|
5239 | ac_fn_cxx_check_header_mongrel "$LINENO" "cstring" "ac_cv_header_cstring" "$ac_includes_default" |
---|
5240 | if test "x$ac_cv_header_cstring" = xyes; then : |
---|
5241 | cat >>confdefs.h <<_ACEOF |
---|
5242 | #define HAVE_CSTRING 1 |
---|
5243 | _ACEOF |
---|
5244 | |
---|
5245 | else |
---|
5246 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5247 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5248 | fi |
---|
5249 | |
---|
5250 | done |
---|
5251 | |
---|
5252 | for ac_header in fstream |
---|
5253 | do : |
---|
5254 | ac_fn_cxx_check_header_mongrel "$LINENO" "fstream" "ac_cv_header_fstream" "$ac_includes_default" |
---|
5255 | if test "x$ac_cv_header_fstream" = xyes; then : |
---|
5256 | cat >>confdefs.h <<_ACEOF |
---|
5257 | #define HAVE_FSTREAM 1 |
---|
5258 | _ACEOF |
---|
5259 | |
---|
5260 | else |
---|
5261 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5262 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5263 | fi |
---|
5264 | |
---|
5265 | done |
---|
5266 | |
---|
5267 | for ac_header in list |
---|
5268 | do : |
---|
5269 | ac_fn_cxx_check_header_mongrel "$LINENO" "list" "ac_cv_header_list" "$ac_includes_default" |
---|
5270 | if test "x$ac_cv_header_list" = xyes; then : |
---|
5271 | cat >>confdefs.h <<_ACEOF |
---|
5272 | #define HAVE_LIST 1 |
---|
5273 | _ACEOF |
---|
5274 | |
---|
5275 | else |
---|
5276 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5277 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5278 | fi |
---|
5279 | |
---|
5280 | done |
---|
5281 | |
---|
5282 | for ac_header in iostream |
---|
5283 | do : |
---|
5284 | ac_fn_cxx_check_header_mongrel "$LINENO" "iostream" "ac_cv_header_iostream" "$ac_includes_default" |
---|
5285 | if test "x$ac_cv_header_iostream" = xyes; then : |
---|
5286 | cat >>confdefs.h <<_ACEOF |
---|
5287 | #define HAVE_IOSTREAM 1 |
---|
5288 | _ACEOF |
---|
5289 | |
---|
5290 | else |
---|
5291 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5292 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5293 | fi |
---|
5294 | |
---|
5295 | done |
---|
5296 | |
---|
5297 | for ac_header in iterator |
---|
5298 | do : |
---|
5299 | ac_fn_cxx_check_header_mongrel "$LINENO" "iterator" "ac_cv_header_iterator" "$ac_includes_default" |
---|
5300 | if test "x$ac_cv_header_iterator" = xyes; then : |
---|
5301 | cat >>confdefs.h <<_ACEOF |
---|
5302 | #define HAVE_ITERATOR 1 |
---|
5303 | _ACEOF |
---|
5304 | |
---|
5305 | else |
---|
5306 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5307 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5308 | fi |
---|
5309 | |
---|
5310 | done |
---|
5311 | |
---|
5312 | for ac_header in sstream |
---|
5313 | do : |
---|
5314 | ac_fn_cxx_check_header_mongrel "$LINENO" "sstream" "ac_cv_header_sstream" "$ac_includes_default" |
---|
5315 | if test "x$ac_cv_header_sstream" = xyes; then : |
---|
5316 | cat >>confdefs.h <<_ACEOF |
---|
5317 | #define HAVE_SSTREAM 1 |
---|
5318 | _ACEOF |
---|
5319 | |
---|
5320 | else |
---|
5321 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5322 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5323 | fi |
---|
5324 | |
---|
5325 | done |
---|
5326 | |
---|
5327 | for ac_header in stack |
---|
5328 | do : |
---|
5329 | ac_fn_cxx_check_header_mongrel "$LINENO" "stack" "ac_cv_header_stack" "$ac_includes_default" |
---|
5330 | if test "x$ac_cv_header_stack" = xyes; then : |
---|
5331 | cat >>confdefs.h <<_ACEOF |
---|
5332 | #define HAVE_STACK 1 |
---|
5333 | _ACEOF |
---|
5334 | |
---|
5335 | else |
---|
5336 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5337 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5338 | fi |
---|
5339 | |
---|
5340 | done |
---|
5341 | |
---|
5342 | for ac_header in string |
---|
5343 | do : |
---|
5344 | ac_fn_cxx_check_header_mongrel "$LINENO" "string" "ac_cv_header_string" "$ac_includes_default" |
---|
5345 | if test "x$ac_cv_header_string" = xyes; then : |
---|
5346 | cat >>confdefs.h <<_ACEOF |
---|
5347 | #define HAVE_STRING 1 |
---|
5348 | _ACEOF |
---|
5349 | |
---|
5350 | else |
---|
5351 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5352 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5353 | fi |
---|
5354 | |
---|
5355 | done |
---|
5356 | |
---|
5357 | for ac_header in vector |
---|
5358 | do : |
---|
5359 | ac_fn_cxx_check_header_mongrel "$LINENO" "vector" "ac_cv_header_vector" "$ac_includes_default" |
---|
5360 | if test "x$ac_cv_header_vector" = xyes; then : |
---|
5361 | cat >>confdefs.h <<_ACEOF |
---|
5362 | #define HAVE_VECTOR 1 |
---|
5363 | _ACEOF |
---|
5364 | |
---|
5365 | else |
---|
5366 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5367 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5368 | fi |
---|
5369 | |
---|
5370 | done |
---|
5371 | |
---|
5372 | |
---|
5373 | for ac_header in assert.h |
---|
5374 | do : |
---|
5375 | ac_fn_cxx_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default" |
---|
5376 | if test "x$ac_cv_header_assert_h" = xyes; then : |
---|
5377 | cat >>confdefs.h <<_ACEOF |
---|
5378 | #define HAVE_ASSERT_H 1 |
---|
5379 | _ACEOF |
---|
5380 | |
---|
5381 | else |
---|
5382 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5383 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5384 | fi |
---|
5385 | |
---|
5386 | done |
---|
5387 | |
---|
5388 | for ac_header in ctype.h |
---|
5389 | do : |
---|
5390 | ac_fn_cxx_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default" |
---|
5391 | if test "x$ac_cv_header_ctype_h" = xyes; then : |
---|
5392 | cat >>confdefs.h <<_ACEOF |
---|
5393 | #define HAVE_CTYPE_H 1 |
---|
5394 | _ACEOF |
---|
5395 | |
---|
5396 | else |
---|
5397 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5398 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5399 | fi |
---|
5400 | |
---|
5401 | done |
---|
5402 | |
---|
5403 | for ac_header in errno.h |
---|
5404 | do : |
---|
5405 | ac_fn_cxx_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" |
---|
5406 | if test "x$ac_cv_header_errno_h" = xyes; then : |
---|
5407 | cat >>confdefs.h <<_ACEOF |
---|
5408 | #define HAVE_ERRNO_H 1 |
---|
5409 | _ACEOF |
---|
5410 | |
---|
5411 | else |
---|
5412 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5413 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5414 | fi |
---|
5415 | |
---|
5416 | done |
---|
5417 | |
---|
5418 | for ac_header in limits.h |
---|
5419 | do : |
---|
5420 | ac_fn_cxx_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" |
---|
5421 | if test "x$ac_cv_header_limits_h" = xyes; then : |
---|
5422 | cat >>confdefs.h <<_ACEOF |
---|
5423 | #define HAVE_LIMITS_H 1 |
---|
5424 | _ACEOF |
---|
5425 | |
---|
5426 | else |
---|
5427 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5428 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5429 | fi |
---|
5430 | |
---|
5431 | done |
---|
5432 | |
---|
5433 | for ac_header in string.h |
---|
5434 | do : |
---|
5435 | ac_fn_cxx_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" |
---|
5436 | if test "x$ac_cv_header_string_h" = xyes; then : |
---|
5437 | cat >>confdefs.h <<_ACEOF |
---|
5438 | #define HAVE_STRING_H 1 |
---|
5439 | _ACEOF |
---|
5440 | |
---|
5441 | else |
---|
5442 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5443 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5444 | fi |
---|
5445 | |
---|
5446 | done |
---|
5447 | |
---|
5448 | for ac_header in stdlib.h |
---|
5449 | do : |
---|
5450 | ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" |
---|
5451 | if test "x$ac_cv_header_stdlib_h" = xyes; then : |
---|
5452 | cat >>confdefs.h <<_ACEOF |
---|
5453 | #define HAVE_STDLIB_H 1 |
---|
5454 | _ACEOF |
---|
5455 | |
---|
5456 | else |
---|
5457 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5458 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5459 | fi |
---|
5460 | |
---|
5461 | done |
---|
5462 | |
---|
5463 | for ac_header in stddef.h |
---|
5464 | do : |
---|
5465 | ac_fn_cxx_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default" |
---|
5466 | if test "x$ac_cv_header_stddef_h" = xyes; then : |
---|
5467 | cat >>confdefs.h <<_ACEOF |
---|
5468 | #define HAVE_STDDEF_H 1 |
---|
5469 | _ACEOF |
---|
5470 | |
---|
5471 | else |
---|
5472 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5473 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5474 | fi |
---|
5475 | |
---|
5476 | done |
---|
5477 | |
---|
5478 | for ac_header in float.h |
---|
5479 | do : |
---|
5480 | ac_fn_cxx_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default" |
---|
5481 | if test "x$ac_cv_header_float_h" = xyes; then : |
---|
5482 | cat >>confdefs.h <<_ACEOF |
---|
5483 | #define HAVE_FLOAT_H 1 |
---|
5484 | _ACEOF |
---|
5485 | |
---|
5486 | else |
---|
5487 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5488 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5489 | fi |
---|
5490 | |
---|
5491 | done |
---|
5492 | |
---|
5493 | for ac_header in math.h |
---|
5494 | do : |
---|
5495 | ac_fn_cxx_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default" |
---|
5496 | if test "x$ac_cv_header_math_h" = xyes; then : |
---|
5497 | cat >>confdefs.h <<_ACEOF |
---|
5498 | #define HAVE_MATH_H 1 |
---|
5499 | _ACEOF |
---|
5500 | |
---|
5501 | else |
---|
5502 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5503 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5504 | fi |
---|
5505 | |
---|
5506 | done |
---|
5507 | |
---|
5508 | for ac_header in malloc.h |
---|
5509 | do : |
---|
5510 | ac_fn_cxx_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" |
---|
5511 | if test "x$ac_cv_header_malloc_h" = xyes; then : |
---|
5512 | cat >>confdefs.h <<_ACEOF |
---|
5513 | #define HAVE_MALLOC_H 1 |
---|
5514 | _ACEOF |
---|
5515 | |
---|
5516 | else |
---|
5517 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5518 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5519 | fi |
---|
5520 | |
---|
5521 | done |
---|
5522 | |
---|
5523 | for ac_header in memory.h |
---|
5524 | do : |
---|
5525 | ac_fn_cxx_check_header_mongrel "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default" |
---|
5526 | if test "x$ac_cv_header_memory_h" = xyes; then : |
---|
5527 | cat >>confdefs.h <<_ACEOF |
---|
5528 | #define HAVE_MEMORY_H 1 |
---|
5529 | _ACEOF |
---|
5530 | |
---|
5531 | else |
---|
5532 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5533 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5534 | fi |
---|
5535 | |
---|
5536 | done |
---|
5537 | |
---|
5538 | for ac_header in unistd.h |
---|
5539 | do : |
---|
5540 | ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" |
---|
5541 | if test "x$ac_cv_header_unistd_h" = xyes; then : |
---|
5542 | cat >>confdefs.h <<_ACEOF |
---|
5543 | #define HAVE_UNISTD_H 1 |
---|
5544 | _ACEOF |
---|
5545 | |
---|
5546 | else |
---|
5547 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5548 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5549 | fi |
---|
5550 | |
---|
5551 | done |
---|
5552 | |
---|
5553 | |
---|
5554 | for ac_header in inttypes.h |
---|
5555 | do : |
---|
5556 | ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
---|
5557 | if test "x$ac_cv_header_inttypes_h" = xyes; then : |
---|
5558 | cat >>confdefs.h <<_ACEOF |
---|
5559 | #define HAVE_INTTYPES_H 1 |
---|
5560 | _ACEOF |
---|
5561 | |
---|
5562 | else |
---|
5563 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5564 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5565 | fi |
---|
5566 | |
---|
5567 | done |
---|
5568 | |
---|
5569 | if test "${ac_cv_header_inttypes_h}" = "yes" ; then |
---|
5570 | HAVE_INTTYPES_H=1 |
---|
5571 | else |
---|
5572 | HAVE_INTTYPES_H=0 |
---|
5573 | fi |
---|
5574 | |
---|
5575 | |
---|
5576 | SC_CONFIG_CFLAGS |
---|
5577 | |
---|
5578 | SVN_VERSION=`svnversion $srcdir` |
---|
5579 | |
---|
5580 | make_command="" |
---|
5581 | for m in "$MAKE" make gmake gnumake ; do |
---|
5582 | if test "x${m}" != "x" ; then |
---|
5583 | if ( sh -c "$m --version" 2>/dev/null | grep GNU >/dev/null ) ; then |
---|
5584 | make_command=$m; break; |
---|
5585 | fi |
---|
5586 | fi |
---|
5587 | done |
---|
5588 | if test "x${make_command}" = "x" ; then |
---|
5589 | as_fn_error $? "Requires GNU make. You can specify a version with \$MAKE" "$LINENO" 5 |
---|
5590 | fi |
---|
5591 | |
---|
5592 | # Check whether --enable-lang was given. |
---|
5593 | if test "${enable_lang+set}" = set; then : |
---|
5594 | enableval=$enable_lang; |
---|
5595 | else |
---|
5596 | enable_lang=yes |
---|
5597 | fi |
---|
5598 | |
---|
5599 | |
---|
5600 | ENABLE_LANG= |
---|
5601 | if test "$enable_lang" != "no" ; then |
---|
5602 | ENABLE_LANG="yes" |
---|
5603 | fi |
---|
5604 | |
---|
5605 | # Check whether --enable-gui was given. |
---|
5606 | if test "${enable_gui+set}" = set; then : |
---|
5607 | enableval=$enable_gui; |
---|
5608 | else |
---|
5609 | enable_gui=yes |
---|
5610 | fi |
---|
5611 | |
---|
5612 | |
---|
5613 | ENABLE_GUI= |
---|
5614 | if test "$enable_gui" != "no" ; then |
---|
5615 | ENABLE_GUI="yes" |
---|
5616 | fi |
---|
5617 | |
---|
5618 | TCL_VERSION="8.5" |
---|
5619 | TK_VERSION="8.5" |
---|
5620 | |
---|
5621 | for dir in \ |
---|
5622 | ${exec_prefix} \ |
---|
5623 | ${exec_prefix}/lib ; do |
---|
5624 | tclconfig="${dir}/tclConfig.sh" |
---|
5625 | if test -f "$tclconfig" ; then |
---|
5626 | . $tclconfig |
---|
5627 | break |
---|
5628 | fi |
---|
5629 | done |
---|
5630 | |
---|
5631 | |
---|
5632 | # Check whether --with-ffmpeg was given. |
---|
5633 | if test "${with_ffmpeg+set}" = set; then : |
---|
5634 | withval=$with_ffmpeg; |
---|
5635 | else |
---|
5636 | with_ffmpeg=yes |
---|
5637 | fi |
---|
5638 | |
---|
5639 | |
---|
5640 | TCL_INC_SPEC="$TCL_INCLUDE_SPEC" |
---|
5641 | |
---|
5642 | |
---|
5643 | # Check whether --with-vtk was given. |
---|
5644 | if test "${with_vtk+set}" = set; then : |
---|
5645 | withval=$with_vtk; |
---|
5646 | else |
---|
5647 | with_vtk=yes |
---|
5648 | fi |
---|
5649 | |
---|
5650 | |
---|
5651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vtk" >&5 |
---|
5652 | $as_echo_n "checking for vtk... " >&6; } |
---|
5653 | VTK_VERSION=6.1 |
---|
5654 | VTK_TCL_DIR="" |
---|
5655 | |
---|
5656 | ENABLE_VTK= |
---|
5657 | if test "$with_vtk" != "no" ; then |
---|
5658 | if test "$with_vtk" != "yes" ; then |
---|
5659 | VTK_VERSION=$with_vtk |
---|
5660 | fi |
---|
5661 | if test "x$with_vtk" != "x" ; then |
---|
5662 | ENABLE_VTK=yes |
---|
5663 | for path in \ |
---|
5664 | $libdir/tcltk \ |
---|
5665 | $exec_prefix/lib/tcltk \ |
---|
5666 | $prefix/lib/tcltk \ |
---|
5667 | $libdir \ |
---|
5668 | $prefix/lib \ |
---|
5669 | $exec_prefix/lib \ |
---|
5670 | /usr/lib |
---|
5671 | do |
---|
5672 | if test -d "$path/vtk-$VTK_VERSION" ; then |
---|
5673 | VTK_TCL_DIR="$path/vtk-$VTK_VERSION" |
---|
5674 | fi |
---|
5675 | if test "x${VTK_TCL_DIR}" != "x" ; then |
---|
5676 | break |
---|
5677 | fi |
---|
5678 | done |
---|
5679 | fi |
---|
5680 | else |
---|
5681 | if test "${ENABLE_GUI}" = "yes" ; then |
---|
5682 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: VTK missing: Rappture GUI requires VTK for some features" >&5 |
---|
5683 | $as_echo "$as_me: WARNING: VTK missing: Rappture GUI requires VTK for some features" >&2;} |
---|
5684 | fi |
---|
5685 | fi |
---|
5686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VTK_TCL_DIR" >&5 |
---|
5687 | $as_echo "$VTK_TCL_DIR" >&6; } |
---|
5688 | |
---|
5689 | # Check whether --enable-vtkdicom was given. |
---|
5690 | if test "${enable_vtkdicom+set}" = set; then : |
---|
5691 | enableval=$enable_vtkdicom; |
---|
5692 | else |
---|
5693 | enable_vtkdicom=no |
---|
5694 | fi |
---|
5695 | |
---|
5696 | |
---|
5697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vtkDICOM" >&5 |
---|
5698 | $as_echo_n "checking for vtkDICOM... " >&6; } |
---|
5699 | ENABLE_VTK_DICOM= |
---|
5700 | if test "$enable_vtkdicom" != "no" ; then |
---|
5701 | ENABLE_VTK_DICOM="yes" |
---|
5702 | fi |
---|
5703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtkdicom" >&5 |
---|
5704 | $as_echo "$enable_vtkdicom" >&6; } |
---|
5705 | |
---|
5706 | RP_BASE=`pwd` |
---|
5707 | |
---|
5708 | SC_ENABLE_SHARED |
---|
5709 | |
---|
5710 | #-------------------------------------------------------------------- |
---|
5711 | # This macro figures out what flags to use with the compiler/linker |
---|
5712 | # when building shared/static debug/optimized objects. This information |
---|
5713 | # is all taken from the tclConfig.sh file. |
---|
5714 | #-------------------------------------------------------------------- |
---|
5715 | |
---|
5716 | if test -f "${exec_prefix}/lib/tclConfig.sh" ; then |
---|
5717 | . ${exec_prefix}/lib/tclConfig.sh |
---|
5718 | fi |
---|
5719 | if test -f "${exec_prefix}/lib/tkConfig.sh" ; then |
---|
5720 | . ${exec_prefix}/lib/tkConfig.sh |
---|
5721 | fi |
---|
5722 | |
---|
5723 | # ----------------------------------------------------------------------- |
---|
5724 | # |
---|
5725 | # Compiler characteristics: |
---|
5726 | # Check for existence of types of size_t and pid_t |
---|
5727 | # |
---|
5728 | # ----------------------------------------------------------------------- |
---|
5729 | |
---|
5730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
---|
5731 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
---|
5732 | if ${ac_cv_c_bigendian+:} false; then : |
---|
5733 | $as_echo_n "(cached) " >&6 |
---|
5734 | else |
---|
5735 | ac_cv_c_bigendian=unknown |
---|
5736 | # See if we're dealing with a universal compiler. |
---|
5737 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5738 | /* end confdefs.h. */ |
---|
5739 | #ifndef __APPLE_CC__ |
---|
5740 | not a universal capable compiler |
---|
5741 | #endif |
---|
5742 | typedef int dummy; |
---|
5743 | |
---|
5744 | _ACEOF |
---|
5745 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
5746 | |
---|
5747 | # Check for potential -arch flags. It is not universal unless |
---|
5748 | # there are at least two -arch flags with different values. |
---|
5749 | ac_arch= |
---|
5750 | ac_prev= |
---|
5751 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
---|
5752 | if test -n "$ac_prev"; then |
---|
5753 | case $ac_word in |
---|
5754 | i?86 | x86_64 | ppc | ppc64) |
---|
5755 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
---|
5756 | ac_arch=$ac_word |
---|
5757 | else |
---|
5758 | ac_cv_c_bigendian=universal |
---|
5759 | break |
---|
5760 | fi |
---|
5761 | ;; |
---|
5762 | esac |
---|
5763 | ac_prev= |
---|
5764 | elif test "x$ac_word" = "x-arch"; then |
---|
5765 | ac_prev=arch |
---|
5766 | fi |
---|
5767 | done |
---|
5768 | fi |
---|
5769 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5770 | if test $ac_cv_c_bigendian = unknown; then |
---|
5771 | # See if sys/param.h defines the BYTE_ORDER macro. |
---|
5772 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5773 | /* end confdefs.h. */ |
---|
5774 | #include <sys/types.h> |
---|
5775 | #include <sys/param.h> |
---|
5776 | |
---|
5777 | int |
---|
5778 | main () |
---|
5779 | { |
---|
5780 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
---|
5781 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
---|
5782 | && LITTLE_ENDIAN) |
---|
5783 | bogus endian macros |
---|
5784 | #endif |
---|
5785 | |
---|
5786 | ; |
---|
5787 | return 0; |
---|
5788 | } |
---|
5789 | _ACEOF |
---|
5790 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
5791 | # It does; now see whether it defined to BIG_ENDIAN or not. |
---|
5792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5793 | /* end confdefs.h. */ |
---|
5794 | #include <sys/types.h> |
---|
5795 | #include <sys/param.h> |
---|
5796 | |
---|
5797 | int |
---|
5798 | main () |
---|
5799 | { |
---|
5800 | #if BYTE_ORDER != BIG_ENDIAN |
---|
5801 | not big endian |
---|
5802 | #endif |
---|
5803 | |
---|
5804 | ; |
---|
5805 | return 0; |
---|
5806 | } |
---|
5807 | _ACEOF |
---|
5808 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
5809 | ac_cv_c_bigendian=yes |
---|
5810 | else |
---|
5811 | ac_cv_c_bigendian=no |
---|
5812 | fi |
---|
5813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5814 | fi |
---|
5815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5816 | fi |
---|
5817 | if test $ac_cv_c_bigendian = unknown; then |
---|
5818 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
---|
5819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5820 | /* end confdefs.h. */ |
---|
5821 | #include <limits.h> |
---|
5822 | |
---|
5823 | int |
---|
5824 | main () |
---|
5825 | { |
---|
5826 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
---|
5827 | bogus endian macros |
---|
5828 | #endif |
---|
5829 | |
---|
5830 | ; |
---|
5831 | return 0; |
---|
5832 | } |
---|
5833 | _ACEOF |
---|
5834 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
5835 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
---|
5836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5837 | /* end confdefs.h. */ |
---|
5838 | #include <limits.h> |
---|
5839 | |
---|
5840 | int |
---|
5841 | main () |
---|
5842 | { |
---|
5843 | #ifndef _BIG_ENDIAN |
---|
5844 | not big endian |
---|
5845 | #endif |
---|
5846 | |
---|
5847 | ; |
---|
5848 | return 0; |
---|
5849 | } |
---|
5850 | _ACEOF |
---|
5851 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
5852 | ac_cv_c_bigendian=yes |
---|
5853 | else |
---|
5854 | ac_cv_c_bigendian=no |
---|
5855 | fi |
---|
5856 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5857 | fi |
---|
5858 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5859 | fi |
---|
5860 | if test $ac_cv_c_bigendian = unknown; then |
---|
5861 | # Compile a test program. |
---|
5862 | if test "$cross_compiling" = yes; then : |
---|
5863 | # Try to guess by grepping values from an object file. |
---|
5864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5865 | /* end confdefs.h. */ |
---|
5866 | short int ascii_mm[] = |
---|
5867 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
---|
5868 | short int ascii_ii[] = |
---|
5869 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
---|
5870 | int use_ascii (int i) { |
---|
5871 | return ascii_mm[i] + ascii_ii[i]; |
---|
5872 | } |
---|
5873 | short int ebcdic_ii[] = |
---|
5874 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
---|
5875 | short int ebcdic_mm[] = |
---|
5876 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
---|
5877 | int use_ebcdic (int i) { |
---|
5878 | return ebcdic_mm[i] + ebcdic_ii[i]; |
---|
5879 | } |
---|
5880 | extern int foo; |
---|
5881 | |
---|
5882 | int |
---|
5883 | main () |
---|
5884 | { |
---|
5885 | return use_ascii (foo) == use_ebcdic (foo); |
---|
5886 | ; |
---|
5887 | return 0; |
---|
5888 | } |
---|
5889 | _ACEOF |
---|
5890 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
5891 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
---|
5892 | ac_cv_c_bigendian=yes |
---|
5893 | fi |
---|
5894 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
---|
5895 | if test "$ac_cv_c_bigendian" = unknown; then |
---|
5896 | ac_cv_c_bigendian=no |
---|
5897 | else |
---|
5898 | # finding both strings is unlikely to happen, but who knows? |
---|
5899 | ac_cv_c_bigendian=unknown |
---|
5900 | fi |
---|
5901 | fi |
---|
5902 | fi |
---|
5903 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5904 | else |
---|
5905 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5906 | /* end confdefs.h. */ |
---|
5907 | $ac_includes_default |
---|
5908 | int |
---|
5909 | main () |
---|
5910 | { |
---|
5911 | |
---|
5912 | /* Are we little or big endian? From Harbison&Steele. */ |
---|
5913 | union |
---|
5914 | { |
---|
5915 | long int l; |
---|
5916 | char c[sizeof (long int)]; |
---|
5917 | } u; |
---|
5918 | u.l = 1; |
---|
5919 | return u.c[sizeof (long int) - 1] == 1; |
---|
5920 | |
---|
5921 | ; |
---|
5922 | return 0; |
---|
5923 | } |
---|
5924 | _ACEOF |
---|
5925 | if ac_fn_cxx_try_run "$LINENO"; then : |
---|
5926 | ac_cv_c_bigendian=no |
---|
5927 | else |
---|
5928 | ac_cv_c_bigendian=yes |
---|
5929 | fi |
---|
5930 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
5931 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
5932 | fi |
---|
5933 | |
---|
5934 | fi |
---|
5935 | fi |
---|
5936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
---|
5937 | $as_echo "$ac_cv_c_bigendian" >&6; } |
---|
5938 | case $ac_cv_c_bigendian in #( |
---|
5939 | yes) |
---|
5940 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
---|
5941 | ;; #( |
---|
5942 | no) |
---|
5943 | ;; #( |
---|
5944 | universal) |
---|
5945 | |
---|
5946 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
---|
5947 | |
---|
5948 | ;; #( |
---|
5949 | *) |
---|
5950 | as_fn_error $? "unknown endianness |
---|
5951 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
---|
5952 | esac |
---|
5953 | |
---|
5954 | # The cast to long int works around a bug in the HP C Compiler |
---|
5955 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
---|
5956 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
---|
5957 | # This bug is HP SR number 8606223364. |
---|
5958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
---|
5959 | $as_echo_n "checking size of int... " >&6; } |
---|
5960 | if ${ac_cv_sizeof_int+:} false; then : |
---|
5961 | $as_echo_n "(cached) " >&6 |
---|
5962 | else |
---|
5963 | if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : |
---|
5964 | |
---|
5965 | else |
---|
5966 | if test "$ac_cv_type_int" = yes; then |
---|
5967 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
5968 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
5969 | as_fn_error 77 "cannot compute sizeof (int) |
---|
5970 | See \`config.log' for more details" "$LINENO" 5; } |
---|
5971 | else |
---|
5972 | ac_cv_sizeof_int=0 |
---|
5973 | fi |
---|
5974 | fi |
---|
5975 | |
---|
5976 | fi |
---|
5977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
---|
5978 | $as_echo "$ac_cv_sizeof_int" >&6; } |
---|
5979 | |
---|
5980 | |
---|
5981 | |
---|
5982 | cat >>confdefs.h <<_ACEOF |
---|
5983 | #define SIZEOF_INT $ac_cv_sizeof_int |
---|
5984 | _ACEOF |
---|
5985 | |
---|
5986 | |
---|
5987 | # The cast to long int works around a bug in the HP C Compiler |
---|
5988 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
---|
5989 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
---|
5990 | # This bug is HP SR number 8606223364. |
---|
5991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
---|
5992 | $as_echo_n "checking size of long... " >&6; } |
---|
5993 | if ${ac_cv_sizeof_long+:} false; then : |
---|
5994 | $as_echo_n "(cached) " >&6 |
---|
5995 | else |
---|
5996 | if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
---|
5997 | |
---|
5998 | else |
---|
5999 | if test "$ac_cv_type_long" = yes; then |
---|
6000 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
6001 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
6002 | as_fn_error 77 "cannot compute sizeof (long) |
---|
6003 | See \`config.log' for more details" "$LINENO" 5; } |
---|
6004 | else |
---|
6005 | ac_cv_sizeof_long=0 |
---|
6006 | fi |
---|
6007 | fi |
---|
6008 | |
---|
6009 | fi |
---|
6010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
---|
6011 | $as_echo "$ac_cv_sizeof_long" >&6; } |
---|
6012 | |
---|
6013 | |
---|
6014 | |
---|
6015 | cat >>confdefs.h <<_ACEOF |
---|
6016 | #define SIZEOF_LONG $ac_cv_sizeof_long |
---|
6017 | _ACEOF |
---|
6018 | |
---|
6019 | |
---|
6020 | # The cast to long int works around a bug in the HP C Compiler |
---|
6021 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
---|
6022 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
---|
6023 | # This bug is HP SR number 8606223364. |
---|
6024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
---|
6025 | $as_echo_n "checking size of long long... " >&6; } |
---|
6026 | if ${ac_cv_sizeof_long_long+:} false; then : |
---|
6027 | $as_echo_n "(cached) " >&6 |
---|
6028 | else |
---|
6029 | if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : |
---|
6030 | |
---|
6031 | else |
---|
6032 | if test "$ac_cv_type_long_long" = yes; then |
---|
6033 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
6034 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
6035 | as_fn_error 77 "cannot compute sizeof (long long) |
---|
6036 | See \`config.log' for more details" "$LINENO" 5; } |
---|
6037 | else |
---|
6038 | ac_cv_sizeof_long_long=0 |
---|
6039 | fi |
---|
6040 | fi |
---|
6041 | |
---|
6042 | fi |
---|
6043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
---|
6044 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
---|
6045 | |
---|
6046 | |
---|
6047 | |
---|
6048 | cat >>confdefs.h <<_ACEOF |
---|
6049 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
---|
6050 | _ACEOF |
---|
6051 | |
---|
6052 | |
---|
6053 | # The cast to long int works around a bug in the HP C Compiler |
---|
6054 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
---|
6055 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
---|
6056 | # This bug is HP SR number 8606223364. |
---|
6057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 |
---|
6058 | $as_echo_n "checking size of void *... " >&6; } |
---|
6059 | if ${ac_cv_sizeof_void_p+:} false; then : |
---|
6060 | $as_echo_n "(cached) " >&6 |
---|
6061 | else |
---|
6062 | if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : |
---|
6063 | |
---|
6064 | else |
---|
6065 | if test "$ac_cv_type_void_p" = yes; then |
---|
6066 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
6067 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
6068 | as_fn_error 77 "cannot compute sizeof (void *) |
---|
6069 | See \`config.log' for more details" "$LINENO" 5; } |
---|
6070 | else |
---|
6071 | ac_cv_sizeof_void_p=0 |
---|
6072 | fi |
---|
6073 | fi |
---|
6074 | |
---|
6075 | fi |
---|
6076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
---|
6077 | $as_echo "$ac_cv_sizeof_void_p" >&6; } |
---|
6078 | |
---|
6079 | |
---|
6080 | |
---|
6081 | cat >>confdefs.h <<_ACEOF |
---|
6082 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
---|
6083 | _ACEOF |
---|
6084 | |
---|
6085 | |
---|
6086 | |
---|
6087 | SIZEOF_LONG="${ac_cv_sizeof_long}" |
---|
6088 | SIZEOF_LONG_LONG="${ac_cv_sizeof_long_long}" |
---|
6089 | SIZEOF_VOID_P="${ac_cv_sizeof_void_p}" |
---|
6090 | SIZEOF_INT="${ac_cv_sizeof_int}" |
---|
6091 | |
---|
6092 | |
---|
6093 | #-------------------------------------------------------------------- |
---|
6094 | # Set the default compiler switches based on the --enable-symbols |
---|
6095 | # option. |
---|
6096 | #-------------------------------------------------------------------- |
---|
6097 | |
---|
6098 | SC_ENABLE_SYMBOLS |
---|
6099 | |
---|
6100 | |
---|
6101 | |
---|
6102 | |
---|
6103 | |
---|
6104 | |
---|
6105 | |
---|
6106 | |
---|
6107 | |
---|
6108 | |
---|
6109 | MAKE=${make_command} |
---|
6110 | |
---|
6111 | |
---|
6112 | |
---|
6113 | |
---|
6114 | |
---|
6115 | |
---|
6116 | |
---|
6117 | |
---|
6118 | |
---|
6119 | |
---|
6120 | |
---|
6121 | |
---|
6122 | |
---|
6123 | |
---|
6124 | |
---|
6125 | |
---|
6126 | |
---|
6127 | |
---|
6128 | |
---|
6129 | |
---|
6130 | |
---|
6131 | |
---|
6132 | |
---|
6133 | |
---|
6134 | |
---|
6135 | |
---|
6136 | |
---|
6137 | |
---|
6138 | |
---|
6139 | |
---|
6140 | |
---|
6141 | |
---|
6142 | |
---|
6143 | |
---|
6144 | |
---|
6145 | |
---|
6146 | |
---|
6147 | |
---|
6148 | |
---|
6149 | |
---|
6150 | |
---|
6151 | |
---|
6152 | ac_config_files="$ac_config_files Makefile fixrunpaths.tcl apps/Makefile apps/about apps/copy_rappture_examples apps/encodedata apps/rappture apps/rappture-csh.env apps/rappture.env apps/rappture.use apps/rerun apps/simsim apps/xmldiff pkgs/DicomToVtk/Makefile pkgs/DicomToVtk/pkgIndex.tcl pkgs/DxToVtk/Makefile pkgs/DxToVtk/pkgIndex.tcl pkgs/Makefile pkgs/PdbToVtk/Makefile pkgs/PdbToVtk/pkgIndex.tcl pkgs/builder/Makefile pkgs/builder/pkgIndex.tcl pkgs/builder/scripts/Makefile pkgs/diffview/Makefile pkgs/diffview/pkgIndex.tcl pkgs/hotspot/Makefile pkgs/hotspot/pkgIndex.tcl pkgs/listbox/Makefile pkgs/listbox/pkgIndex.tcl pkgs/objects/Makefile pkgs/p2p/Makefile pkgs/placard/Makefile pkgs/placard/pkgIndex.tcl pkgs/readpoints/Makefile pkgs/readpoints/pkgIndex.tcl pkgs/runner/Makefile pkgs/runner/pkgIndex.tcl pkgs/runner/scripts/Makefile pkgs/squeezer/Makefile pkgs/squeezer/pkgIndex.tcl pkgs/system/Makefile pkgs/system/pkgIndex.tcl pkgs/tester/Makefile pkgs/tester/pkgIndex.tcl pkgs/tester/scripts/Makefile" |
---|
6153 | |
---|
6154 | cat >confcache <<\_ACEOF |
---|
6155 | # This file is a shell script that caches the results of configure |
---|
6156 | # tests run on this system so they can be shared between configure |
---|
6157 | # scripts and configure runs, see configure's option --config-cache. |
---|
6158 | # It is not useful on other systems. If it contains results you don't |
---|
6159 | # want to keep, you may remove or edit it. |
---|
6160 | # |
---|
6161 | # config.status only pays attention to the cache file if you give it |
---|
6162 | # the --recheck option to rerun configure. |
---|
6163 | # |
---|
6164 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
6165 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
6166 | # following values. |
---|
6167 | |
---|
6168 | _ACEOF |
---|
6169 | |
---|
6170 | # The following way of writing the cache mishandles newlines in values, |
---|
6171 | # but we know of no workaround that is simple, portable, and efficient. |
---|
6172 | # So, we kill variables containing newlines. |
---|
6173 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
6174 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
6175 | ( |
---|
6176 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
6177 | eval ac_val=\$$ac_var |
---|
6178 | case $ac_val in #( |
---|
6179 | *${as_nl}*) |
---|
6180 | case $ac_var in #( |
---|
6181 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
6182 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
6183 | esac |
---|
6184 | case $ac_var in #( |
---|
6185 | _ | IFS | as_nl) ;; #( |
---|
6186 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
6187 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
6188 | esac ;; |
---|
6189 | esac |
---|
6190 | done |
---|
6191 | |
---|
6192 | (set) 2>&1 | |
---|
6193 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
6194 | *${as_nl}ac_space=\ *) |
---|
6195 | # `set' does not quote correctly, so add quotes: double-quote |
---|
6196 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
---|
6197 | sed -n \ |
---|
6198 | "s/'/'\\\\''/g; |
---|
6199 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
6200 | ;; #( |
---|
6201 | *) |
---|
6202 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
6203 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
6204 | ;; |
---|
6205 | esac | |
---|
6206 | sort |
---|
6207 | ) | |
---|
6208 | sed ' |
---|
6209 | /^ac_cv_env_/b end |
---|
6210 | t clear |
---|
6211 | :clear |
---|
6212 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
6213 | t end |
---|
6214 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
6215 | :end' >>confcache |
---|
6216 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
6217 | if test -w "$cache_file"; then |
---|
6218 | if test "x$cache_file" != "x/dev/null"; then |
---|
6219 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
---|
6220 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
---|
6221 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
---|
6222 | cat confcache >"$cache_file" |
---|
6223 | else |
---|
6224 | case $cache_file in #( |
---|
6225 | */* | ?:*) |
---|
6226 | mv -f confcache "$cache_file"$$ && |
---|
6227 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
---|
6228 | *) |
---|
6229 | mv -f confcache "$cache_file" ;; |
---|
6230 | esac |
---|
6231 | fi |
---|
6232 | fi |
---|
6233 | else |
---|
6234 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
---|
6235 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
6236 | fi |
---|
6237 | fi |
---|
6238 | rm -f confcache |
---|
6239 | |
---|
6240 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
6241 | # Let make expand exec_prefix. |
---|
6242 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
6243 | |
---|
6244 | # Transform confdefs.h into DEFS. |
---|
6245 | # Protect against shell expansion while executing Makefile rules. |
---|
6246 | # Protect against Makefile macro expansion. |
---|
6247 | # |
---|
6248 | # If the first sed substitution is executed (which looks for macros that |
---|
6249 | # take arguments), then branch to the quote section. Otherwise, |
---|
6250 | # look for a macro that doesn't take arguments. |
---|
6251 | ac_script=' |
---|
6252 | :mline |
---|
6253 | /\\$/{ |
---|
6254 | N |
---|
6255 | s,\\\n,, |
---|
6256 | b mline |
---|
6257 | } |
---|
6258 | t clear |
---|
6259 | :clear |
---|
6260 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
---|
6261 | t quote |
---|
6262 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
---|
6263 | t quote |
---|
6264 | b any |
---|
6265 | :quote |
---|
6266 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
---|
6267 | s/\[/\\&/g |
---|
6268 | s/\]/\\&/g |
---|
6269 | s/\$/$$/g |
---|
6270 | H |
---|
6271 | :any |
---|
6272 | ${ |
---|
6273 | g |
---|
6274 | s/^\n// |
---|
6275 | s/\n/ /g |
---|
6276 | p |
---|
6277 | } |
---|
6278 | ' |
---|
6279 | DEFS=`sed -n "$ac_script" confdefs.h` |
---|
6280 | |
---|
6281 | |
---|
6282 | ac_libobjs= |
---|
6283 | ac_ltlibobjs= |
---|
6284 | U= |
---|
6285 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
6286 | # 1. Remove the extension, and $U if already installed. |
---|
6287 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
6288 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
---|
6289 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
6290 | # will be set to the directory where LIBOBJS objects are built. |
---|
6291 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
6292 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
6293 | done |
---|
6294 | LIBOBJS=$ac_libobjs |
---|
6295 | |
---|
6296 | LTLIBOBJS=$ac_ltlibobjs |
---|
6297 | |
---|
6298 | |
---|
6299 | |
---|
6300 | |
---|
6301 | : "${CONFIG_STATUS=./config.status}" |
---|
6302 | ac_write_fail=0 |
---|
6303 | ac_clean_files_save=$ac_clean_files |
---|
6304 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
6305 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
---|
6306 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
6307 | as_write_fail=0 |
---|
6308 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
---|
6309 | #! $SHELL |
---|
6310 | # Generated by $as_me. |
---|
6311 | # Run this file to recreate the current configuration. |
---|
6312 | # Compiler output produced by configure, useful for debugging |
---|
6313 | # configure, is in config.log if it exists. |
---|
6314 | |
---|
6315 | debug=false |
---|
6316 | ac_cs_recheck=false |
---|
6317 | ac_cs_silent=false |
---|
6318 | |
---|
6319 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
6320 | export SHELL |
---|
6321 | _ASEOF |
---|
6322 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
---|
6323 | ## -------------------- ## |
---|
6324 | ## M4sh Initialization. ## |
---|
6325 | ## -------------------- ## |
---|
6326 | |
---|
6327 | # Be more Bourne compatible |
---|
6328 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
6329 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
6330 | emulate sh |
---|
6331 | NULLCMD=: |
---|
6332 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
6333 | # is contrary to our usage. Disable this feature. |
---|
6334 | alias -g '${1+"$@"}'='"$@"' |
---|
6335 | setopt NO_GLOB_SUBST |
---|
6336 | else |
---|
6337 | case `(set -o) 2>/dev/null` in #( |
---|
6338 | *posix*) : |
---|
6339 | set -o posix ;; #( |
---|
6340 | *) : |
---|
6341 | ;; |
---|
6342 | esac |
---|
6343 | fi |
---|
6344 | |
---|
6345 | |
---|
6346 | as_nl=' |
---|
6347 | ' |
---|
6348 | export as_nl |
---|
6349 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
6350 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
6351 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
6352 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
6353 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
6354 | # but without wasting forks for bash or zsh. |
---|
6355 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
6356 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
6357 | as_echo='print -r --' |
---|
6358 | as_echo_n='print -rn --' |
---|
6359 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
6360 | as_echo='printf %s\n' |
---|
6361 | as_echo_n='printf %s' |
---|
6362 | else |
---|
6363 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
6364 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
6365 | as_echo_n='/usr/ucb/echo -n' |
---|
6366 | else |
---|
6367 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
6368 | as_echo_n_body='eval |
---|
6369 | arg=$1; |
---|
6370 | case $arg in #( |
---|
6371 | *"$as_nl"*) |
---|
6372 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
6373 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
6374 | esac; |
---|
6375 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
6376 | ' |
---|
6377 | export as_echo_n_body |
---|
6378 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
6379 | fi |
---|
6380 | export as_echo_body |
---|
6381 | as_echo='sh -c $as_echo_body as_echo' |
---|
6382 | fi |
---|
6383 | |
---|
6384 | # The user is always right. |
---|
6385 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
6386 | PATH_SEPARATOR=: |
---|
6387 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
6388 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
6389 | PATH_SEPARATOR=';' |
---|
6390 | } |
---|
6391 | fi |
---|
6392 | |
---|
6393 | |
---|
6394 | # IFS |
---|
6395 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
6396 | # there to prevent editors from complaining about space-tab. |
---|
6397 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
6398 | # splitting by setting IFS to empty value.) |
---|
6399 | IFS=" "" $as_nl" |
---|
6400 | |
---|
6401 | # Find who we are. Look in the path if we contain no directory separator. |
---|
6402 | as_myself= |
---|
6403 | case $0 in #(( |
---|
6404 | *[\\/]* ) as_myself=$0 ;; |
---|
6405 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6406 | for as_dir in $PATH |
---|
6407 | do |
---|
6408 | IFS=$as_save_IFS |
---|
6409 | test -z "$as_dir" && as_dir=. |
---|
6410 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
6411 | done |
---|
6412 | IFS=$as_save_IFS |
---|
6413 | |
---|
6414 | ;; |
---|
6415 | esac |
---|
6416 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
6417 | # in which case we are not to be found in the path. |
---|
6418 | if test "x$as_myself" = x; then |
---|
6419 | as_myself=$0 |
---|
6420 | fi |
---|
6421 | if test ! -f "$as_myself"; then |
---|
6422 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
6423 | exit 1 |
---|
6424 | fi |
---|
6425 | |
---|
6426 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
6427 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
6428 | # suppresses any "Segmentation fault" message there. '((' could |
---|
6429 | # trigger a bug in pdksh 5.2.14. |
---|
6430 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
6431 | do eval test x\${$as_var+set} = xset \ |
---|
6432 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
6433 | done |
---|
6434 | PS1='$ ' |
---|
6435 | PS2='> ' |
---|
6436 | PS4='+ ' |
---|
6437 | |
---|
6438 | # NLS nuisances. |
---|
6439 | LC_ALL=C |
---|
6440 | export LC_ALL |
---|
6441 | LANGUAGE=C |
---|
6442 | export LANGUAGE |
---|
6443 | |
---|
6444 | # CDPATH. |
---|
6445 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
6446 | |
---|
6447 | |
---|
6448 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
6449 | # ---------------------------------------- |
---|
6450 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
6451 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
6452 | # script with STATUS, using 1 if that was 0. |
---|
6453 | as_fn_error () |
---|
6454 | { |
---|
6455 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
6456 | if test "$4"; then |
---|
6457 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
6458 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
6459 | fi |
---|
6460 | $as_echo "$as_me: error: $2" >&2 |
---|
6461 | as_fn_exit $as_status |
---|
6462 | } # as_fn_error |
---|
6463 | |
---|
6464 | |
---|
6465 | # as_fn_set_status STATUS |
---|
6466 | # ----------------------- |
---|
6467 | # Set $? to STATUS, without forking. |
---|
6468 | as_fn_set_status () |
---|
6469 | { |
---|
6470 | return $1 |
---|
6471 | } # as_fn_set_status |
---|
6472 | |
---|
6473 | # as_fn_exit STATUS |
---|
6474 | # ----------------- |
---|
6475 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
6476 | as_fn_exit () |
---|
6477 | { |
---|
6478 | set +e |
---|
6479 | as_fn_set_status $1 |
---|
6480 | exit $1 |
---|
6481 | } # as_fn_exit |
---|
6482 | |
---|
6483 | # as_fn_unset VAR |
---|
6484 | # --------------- |
---|
6485 | # Portably unset VAR. |
---|
6486 | as_fn_unset () |
---|
6487 | { |
---|
6488 | { eval $1=; unset $1;} |
---|
6489 | } |
---|
6490 | as_unset=as_fn_unset |
---|
6491 | # as_fn_append VAR VALUE |
---|
6492 | # ---------------------- |
---|
6493 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
6494 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
6495 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
6496 | # implementations. |
---|
6497 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
6498 | eval 'as_fn_append () |
---|
6499 | { |
---|
6500 | eval $1+=\$2 |
---|
6501 | }' |
---|
6502 | else |
---|
6503 | as_fn_append () |
---|
6504 | { |
---|
6505 | eval $1=\$$1\$2 |
---|
6506 | } |
---|
6507 | fi # as_fn_append |
---|
6508 | |
---|
6509 | # as_fn_arith ARG... |
---|
6510 | # ------------------ |
---|
6511 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
6512 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
6513 | # must be portable across $(()) and expr. |
---|
6514 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
6515 | eval 'as_fn_arith () |
---|
6516 | { |
---|
6517 | as_val=$(( $* )) |
---|
6518 | }' |
---|
6519 | else |
---|
6520 | as_fn_arith () |
---|
6521 | { |
---|
6522 | as_val=`expr "$@" || test $? -eq 1` |
---|
6523 | } |
---|
6524 | fi # as_fn_arith |
---|
6525 | |
---|
6526 | |
---|
6527 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
6528 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
6529 | as_expr=expr |
---|
6530 | else |
---|
6531 | as_expr=false |
---|
6532 | fi |
---|
6533 | |
---|
6534 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
6535 | as_basename=basename |
---|
6536 | else |
---|
6537 | as_basename=false |
---|
6538 | fi |
---|
6539 | |
---|
6540 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
6541 | as_dirname=dirname |
---|
6542 | else |
---|
6543 | as_dirname=false |
---|
6544 | fi |
---|
6545 | |
---|
6546 | as_me=`$as_basename -- "$0" || |
---|
6547 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
6548 | X"$0" : 'X\(//\)$' \| \ |
---|
6549 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
6550 | $as_echo X/"$0" | |
---|
6551 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
6552 | s//\1/ |
---|
6553 | q |
---|
6554 | } |
---|
6555 | /^X\/\(\/\/\)$/{ |
---|
6556 | s//\1/ |
---|
6557 | q |
---|
6558 | } |
---|
6559 | /^X\/\(\/\).*/{ |
---|
6560 | s//\1/ |
---|
6561 | q |
---|
6562 | } |
---|
6563 | s/.*/./; q'` |
---|
6564 | |
---|
6565 | # Avoid depending upon Character Ranges. |
---|
6566 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
6567 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
6568 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
6569 | as_cr_digits='0123456789' |
---|
6570 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
6571 | |
---|
6572 | ECHO_C= ECHO_N= ECHO_T= |
---|
6573 | case `echo -n x` in #((((( |
---|
6574 | -n*) |
---|
6575 | case `echo 'xy\c'` in |
---|
6576 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
6577 | xy) ECHO_C='\c';; |
---|
6578 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
6579 | ECHO_T=' ';; |
---|
6580 | esac;; |
---|
6581 | *) |
---|
6582 | ECHO_N='-n';; |
---|
6583 | esac |
---|
6584 | |
---|
6585 | rm -f conf$$ conf$$.exe conf$$.file |
---|
6586 | if test -d conf$$.dir; then |
---|
6587 | rm -f conf$$.dir/conf$$.file |
---|
6588 | else |
---|
6589 | rm -f conf$$.dir |
---|
6590 | mkdir conf$$.dir 2>/dev/null |
---|
6591 | fi |
---|
6592 | if (echo >conf$$.file) 2>/dev/null; then |
---|
6593 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
6594 | as_ln_s='ln -s' |
---|
6595 | # ... but there are two gotchas: |
---|
6596 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
6597 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
6598 | # In both cases, we have to default to `cp -pR'. |
---|
6599 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
6600 | as_ln_s='cp -pR' |
---|
6601 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
6602 | as_ln_s=ln |
---|
6603 | else |
---|
6604 | as_ln_s='cp -pR' |
---|
6605 | fi |
---|
6606 | else |
---|
6607 | as_ln_s='cp -pR' |
---|
6608 | fi |
---|
6609 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
6610 | rmdir conf$$.dir 2>/dev/null |
---|
6611 | |
---|
6612 | |
---|
6613 | # as_fn_mkdir_p |
---|
6614 | # ------------- |
---|
6615 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
6616 | as_fn_mkdir_p () |
---|
6617 | { |
---|
6618 | |
---|
6619 | case $as_dir in #( |
---|
6620 | -*) as_dir=./$as_dir;; |
---|
6621 | esac |
---|
6622 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
6623 | as_dirs= |
---|
6624 | while :; do |
---|
6625 | case $as_dir in #( |
---|
6626 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
6627 | *) as_qdir=$as_dir;; |
---|
6628 | esac |
---|
6629 | as_dirs="'$as_qdir' $as_dirs" |
---|
6630 | as_dir=`$as_dirname -- "$as_dir" || |
---|
6631 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6632 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
6633 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
6634 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
6635 | $as_echo X"$as_dir" | |
---|
6636 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
6637 | s//\1/ |
---|
6638 | q |
---|
6639 | } |
---|
6640 | /^X\(\/\/\)[^/].*/{ |
---|
6641 | s//\1/ |
---|
6642 | q |
---|
6643 | } |
---|
6644 | /^X\(\/\/\)$/{ |
---|
6645 | s//\1/ |
---|
6646 | q |
---|
6647 | } |
---|
6648 | /^X\(\/\).*/{ |
---|
6649 | s//\1/ |
---|
6650 | q |
---|
6651 | } |
---|
6652 | s/.*/./; q'` |
---|
6653 | test -d "$as_dir" && break |
---|
6654 | done |
---|
6655 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
6656 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
6657 | |
---|
6658 | |
---|
6659 | } # as_fn_mkdir_p |
---|
6660 | if mkdir -p . 2>/dev/null; then |
---|
6661 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
6662 | else |
---|
6663 | test -d ./-p && rmdir ./-p |
---|
6664 | as_mkdir_p=false |
---|
6665 | fi |
---|
6666 | |
---|
6667 | |
---|
6668 | # as_fn_executable_p FILE |
---|
6669 | # ----------------------- |
---|
6670 | # Test if FILE is an executable regular file. |
---|
6671 | as_fn_executable_p () |
---|
6672 | { |
---|
6673 | test -f "$1" && test -x "$1" |
---|
6674 | } # as_fn_executable_p |
---|
6675 | as_test_x='test -x' |
---|
6676 | as_executable_p=as_fn_executable_p |
---|
6677 | |
---|
6678 | # Sed expression to map a string onto a valid CPP name. |
---|
6679 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
6680 | |
---|
6681 | # Sed expression to map a string onto a valid variable name. |
---|
6682 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
6683 | |
---|
6684 | |
---|
6685 | exec 6>&1 |
---|
6686 | ## ----------------------------------- ## |
---|
6687 | ## Main body of $CONFIG_STATUS script. ## |
---|
6688 | ## ----------------------------------- ## |
---|
6689 | _ASEOF |
---|
6690 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
---|
6691 | |
---|
6692 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6693 | # Save the log message, to keep $0 and so on meaningful, and to |
---|
6694 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
6695 | # values after options handling. |
---|
6696 | ac_log=" |
---|
6697 | This file was extended by Rappture $as_me 1.4, which was |
---|
6698 | generated by GNU Autoconf 2.69. Invocation command line was |
---|
6699 | |
---|
6700 | CONFIG_FILES = $CONFIG_FILES |
---|
6701 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
6702 | CONFIG_LINKS = $CONFIG_LINKS |
---|
6703 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
6704 | $ $0 $@ |
---|
6705 | |
---|
6706 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
6707 | " |
---|
6708 | |
---|
6709 | _ACEOF |
---|
6710 | |
---|
6711 | case $ac_config_files in *" |
---|
6712 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
---|
6713 | esac |
---|
6714 | |
---|
6715 | |
---|
6716 | |
---|
6717 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6718 | # Files that config.status was made for. |
---|
6719 | config_files="$ac_config_files" |
---|
6720 | |
---|
6721 | _ACEOF |
---|
6722 | |
---|
6723 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6724 | ac_cs_usage="\ |
---|
6725 | \`$as_me' instantiates files and other configuration actions |
---|
6726 | from templates according to the current configuration. Unless the files |
---|
6727 | and actions are specified as TAGs, all are instantiated by default. |
---|
6728 | |
---|
6729 | Usage: $0 [OPTION]... [TAG]... |
---|
6730 | |
---|
6731 | -h, --help print this help, then exit |
---|
6732 | -V, --version print version number and configuration settings, then exit |
---|
6733 | --config print configuration, then exit |
---|
6734 | -q, --quiet, --silent |
---|
6735 | do not print progress messages |
---|
6736 | -d, --debug don't remove temporary files |
---|
6737 | --recheck update $as_me by reconfiguring in the same conditions |
---|
6738 | --file=FILE[:TEMPLATE] |
---|
6739 | instantiate the configuration file FILE |
---|
6740 | |
---|
6741 | Configuration files: |
---|
6742 | $config_files |
---|
6743 | |
---|
6744 | Report bugs to <rappture@nanohub.org>." |
---|
6745 | |
---|
6746 | _ACEOF |
---|
6747 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6748 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
---|
6749 | ac_cs_version="\\ |
---|
6750 | Rappture config.status 1.4 |
---|
6751 | configured by $0, generated by GNU Autoconf 2.69, |
---|
6752 | with options \\"\$ac_cs_config\\" |
---|
6753 | |
---|
6754 | Copyright (C) 2012 Free Software Foundation, Inc. |
---|
6755 | This config.status script is free software; the Free Software Foundation |
---|
6756 | gives unlimited permission to copy, distribute and modify it." |
---|
6757 | |
---|
6758 | ac_pwd='$ac_pwd' |
---|
6759 | srcdir='$srcdir' |
---|
6760 | INSTALL='$INSTALL' |
---|
6761 | MKDIR_P='$MKDIR_P' |
---|
6762 | test -n "\$AWK" || AWK=awk |
---|
6763 | _ACEOF |
---|
6764 | |
---|
6765 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6766 | # The default lists apply if the user does not specify any file. |
---|
6767 | ac_need_defaults=: |
---|
6768 | while test $# != 0 |
---|
6769 | do |
---|
6770 | case $1 in |
---|
6771 | --*=?*) |
---|
6772 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
6773 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
6774 | ac_shift=: |
---|
6775 | ;; |
---|
6776 | --*=) |
---|
6777 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
6778 | ac_optarg= |
---|
6779 | ac_shift=: |
---|
6780 | ;; |
---|
6781 | *) |
---|
6782 | ac_option=$1 |
---|
6783 | ac_optarg=$2 |
---|
6784 | ac_shift=shift |
---|
6785 | ;; |
---|
6786 | esac |
---|
6787 | |
---|
6788 | case $ac_option in |
---|
6789 | # Handling of the options. |
---|
6790 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
6791 | ac_cs_recheck=: ;; |
---|
6792 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
6793 | $as_echo "$ac_cs_version"; exit ;; |
---|
6794 | --config | --confi | --conf | --con | --co | --c ) |
---|
6795 | $as_echo "$ac_cs_config"; exit ;; |
---|
6796 | --debug | --debu | --deb | --de | --d | -d ) |
---|
6797 | debug=: ;; |
---|
6798 | --file | --fil | --fi | --f ) |
---|
6799 | $ac_shift |
---|
6800 | case $ac_optarg in |
---|
6801 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
6802 | '') as_fn_error $? "missing file argument" ;; |
---|
6803 | esac |
---|
6804 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
---|
6805 | ac_need_defaults=false;; |
---|
6806 | --he | --h | --help | --hel | -h ) |
---|
6807 | $as_echo "$ac_cs_usage"; exit ;; |
---|
6808 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
6809 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
6810 | ac_cs_silent=: ;; |
---|
6811 | |
---|
6812 | # This is an error. |
---|
6813 | -*) as_fn_error $? "unrecognized option: \`$1' |
---|
6814 | Try \`$0 --help' for more information." ;; |
---|
6815 | |
---|
6816 | *) as_fn_append ac_config_targets " $1" |
---|
6817 | ac_need_defaults=false ;; |
---|
6818 | |
---|
6819 | esac |
---|
6820 | shift |
---|
6821 | done |
---|
6822 | |
---|
6823 | ac_configure_extra_args= |
---|
6824 | |
---|
6825 | if $ac_cs_silent; then |
---|
6826 | exec 6>/dev/null |
---|
6827 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
6828 | fi |
---|
6829 | |
---|
6830 | _ACEOF |
---|
6831 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6832 | if \$ac_cs_recheck; then |
---|
6833 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
6834 | shift |
---|
6835 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
---|
6836 | CONFIG_SHELL='$SHELL' |
---|
6837 | export CONFIG_SHELL |
---|
6838 | exec "\$@" |
---|
6839 | fi |
---|
6840 | |
---|
6841 | _ACEOF |
---|
6842 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6843 | exec 5>>config.log |
---|
6844 | { |
---|
6845 | echo |
---|
6846 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
6847 | ## Running $as_me. ## |
---|
6848 | _ASBOX |
---|
6849 | $as_echo "$ac_log" |
---|
6850 | } >&5 |
---|
6851 | |
---|
6852 | _ACEOF |
---|
6853 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6854 | _ACEOF |
---|
6855 | |
---|
6856 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6857 | |
---|
6858 | # Handling of arguments. |
---|
6859 | for ac_config_target in $ac_config_targets |
---|
6860 | do |
---|
6861 | case $ac_config_target in |
---|
6862 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
6863 | "fixrunpaths.tcl") CONFIG_FILES="$CONFIG_FILES fixrunpaths.tcl" ;; |
---|
6864 | "apps/Makefile") CONFIG_FILES="$CONFIG_FILES apps/Makefile" ;; |
---|
6865 | "apps/about") CONFIG_FILES="$CONFIG_FILES apps/about" ;; |
---|
6866 | "apps/copy_rappture_examples") CONFIG_FILES="$CONFIG_FILES apps/copy_rappture_examples" ;; |
---|
6867 | "apps/encodedata") CONFIG_FILES="$CONFIG_FILES apps/encodedata" ;; |
---|
6868 | "apps/rappture") CONFIG_FILES="$CONFIG_FILES apps/rappture" ;; |
---|
6869 | "apps/rappture-csh.env") CONFIG_FILES="$CONFIG_FILES apps/rappture-csh.env" ;; |
---|
6870 | "apps/rappture.env") CONFIG_FILES="$CONFIG_FILES apps/rappture.env" ;; |
---|
6871 | "apps/rappture.use") CONFIG_FILES="$CONFIG_FILES apps/rappture.use" ;; |
---|
6872 | "apps/rerun") CONFIG_FILES="$CONFIG_FILES apps/rerun" ;; |
---|
6873 | "apps/simsim") CONFIG_FILES="$CONFIG_FILES apps/simsim" ;; |
---|
6874 | "apps/xmldiff") CONFIG_FILES="$CONFIG_FILES apps/xmldiff" ;; |
---|
6875 | "pkgs/DicomToVtk/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/DicomToVtk/Makefile" ;; |
---|
6876 | "pkgs/DicomToVtk/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgs/DicomToVtk/pkgIndex.tcl" ;; |
---|
6877 | "pkgs/DxToVtk/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/DxToVtk/Makefile" ;; |
---|
6878 | "pkgs/DxToVtk/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgs/DxToVtk/pkgIndex.tcl" ;; |
---|
6879 | "pkgs/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/Makefile" ;; |
---|
6880 | "pkgs/PdbToVtk/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/PdbToVtk/Makefile" ;; |
---|
6881 | "pkgs/PdbToVtk/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgs/PdbToVtk/pkgIndex.tcl" ;; |
---|
6882 | "pkgs/builder/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/builder/Makefile" ;; |
---|
6883 | "pkgs/builder/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgs/builder/pkgIndex.tcl" ;; |
---|
6884 | "pkgs/builder/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/builder/scripts/Makefile" ;; |
---|
6885 | "pkgs/diffview/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/diffview/Makefile" ;; |
---|
6886 | "pkgs/diffview/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgs/diffview/pkgIndex.tcl" ;; |
---|
6887 | "pkgs/hotspot/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/hotspot/Makefile" ;; |
---|
6888 | "pkgs/hotspot/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgs/hotspot/pkgIndex.tcl" ;; |
---|
6889 | "pkgs/listbox/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/listbox/Makefile" ;; |
---|
6890 | "pkgs/listbox/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgs/listbox/pkgIndex.tcl" ;; |
---|
6891 | "pkgs/objects/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/objects/Makefile" ;; |
---|
6892 | "pkgs/p2p/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/p2p/Makefile" ;; |
---|
6893 | "pkgs/placard/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/placard/Makefile" ;; |
---|
6894 | "pkgs/placard/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgs/placard/pkgIndex.tcl" ;; |
---|
6895 | "pkgs/readpoints/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/readpoints/Makefile" ;; |
---|
6896 | "pkgs/readpoints/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgs/readpoints/pkgIndex.tcl" ;; |
---|
6897 | "pkgs/runner/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/runner/Makefile" ;; |
---|
6898 | "pkgs/runner/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgs/runner/pkgIndex.tcl" ;; |
---|
6899 | "pkgs/runner/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/runner/scripts/Makefile" ;; |
---|
6900 | "pkgs/squeezer/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/squeezer/Makefile" ;; |
---|
6901 | "pkgs/squeezer/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgs/squeezer/pkgIndex.tcl" ;; |
---|
6902 | "pkgs/system/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/system/Makefile" ;; |
---|
6903 | "pkgs/system/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgs/system/pkgIndex.tcl" ;; |
---|
6904 | "pkgs/tester/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/tester/Makefile" ;; |
---|
6905 | "pkgs/tester/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgs/tester/pkgIndex.tcl" ;; |
---|
6906 | "pkgs/tester/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/tester/scripts/Makefile" ;; |
---|
6907 | |
---|
6908 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
---|
6909 | esac |
---|
6910 | done |
---|
6911 | |
---|
6912 | |
---|
6913 | # If the user did not use the arguments to specify the items to instantiate, |
---|
6914 | # then the envvar interface is used. Set only those that are not. |
---|
6915 | # We use the long form for the default assignment because of an extremely |
---|
6916 | # bizarre bug on SunOS 4.1.3. |
---|
6917 | if $ac_need_defaults; then |
---|
6918 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
6919 | fi |
---|
6920 | |
---|
6921 | # Have a temporary directory for convenience. Make it in the build tree |
---|
6922 | # simply because there is no reason against having it here, and in addition, |
---|
6923 | # creating and moving files from /tmp can sometimes cause problems. |
---|
6924 | # Hook for its removal unless debugging. |
---|
6925 | # Note that there is a small window in which the directory will not be cleaned: |
---|
6926 | # after its creation but before its name has been assigned to `$tmp'. |
---|
6927 | $debug || |
---|
6928 | { |
---|
6929 | tmp= ac_tmp= |
---|
6930 | trap 'exit_status=$? |
---|
6931 | : "${ac_tmp:=$tmp}" |
---|
6932 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
---|
6933 | ' 0 |
---|
6934 | trap 'as_fn_exit 1' 1 2 13 15 |
---|
6935 | } |
---|
6936 | # Create a (secure) tmp directory for tmp files. |
---|
6937 | |
---|
6938 | { |
---|
6939 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
6940 | test -d "$tmp" |
---|
6941 | } || |
---|
6942 | { |
---|
6943 | tmp=./conf$$-$RANDOM |
---|
6944 | (umask 077 && mkdir "$tmp") |
---|
6945 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
---|
6946 | ac_tmp=$tmp |
---|
6947 | |
---|
6948 | # Set up the scripts for CONFIG_FILES section. |
---|
6949 | # No need to generate them if there are no CONFIG_FILES. |
---|
6950 | # This happens for instance with `./config.status config.h'. |
---|
6951 | if test -n "$CONFIG_FILES"; then |
---|
6952 | |
---|
6953 | |
---|
6954 | ac_cr=`echo X | tr X '\015'` |
---|
6955 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
---|
6956 | # But we know of no other shell where ac_cr would be empty at this |
---|
6957 | # point, so we can use a bashism as a fallback. |
---|
6958 | if test "x$ac_cr" = x; then |
---|
6959 | eval ac_cr=\$\'\\r\' |
---|
6960 | fi |
---|
6961 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
---|
6962 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
---|
6963 | ac_cs_awk_cr='\\r' |
---|
6964 | else |
---|
6965 | ac_cs_awk_cr=$ac_cr |
---|
6966 | fi |
---|
6967 | |
---|
6968 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
---|
6969 | _ACEOF |
---|
6970 | |
---|
6971 | |
---|
6972 | { |
---|
6973 | echo "cat >conf$$subs.awk <<_ACEOF" && |
---|
6974 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
---|
6975 | echo "_ACEOF" |
---|
6976 | } >conf$$subs.sh || |
---|
6977 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
6978 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
---|
6979 | ac_delim='%!_!# ' |
---|
6980 | for ac_last_try in false false false false false :; do |
---|
6981 | . ./conf$$subs.sh || |
---|
6982 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
6983 | |
---|
6984 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
---|
6985 | if test $ac_delim_n = $ac_delim_num; then |
---|
6986 | break |
---|
6987 | elif $ac_last_try; then |
---|
6988 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
6989 | else |
---|
6990 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
6991 | fi |
---|
6992 | done |
---|
6993 | rm -f conf$$subs.sh |
---|
6994 | |
---|
6995 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6996 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
---|
6997 | _ACEOF |
---|
6998 | sed -n ' |
---|
6999 | h |
---|
7000 | s/^/S["/; s/!.*/"]=/ |
---|
7001 | p |
---|
7002 | g |
---|
7003 | s/^[^!]*!// |
---|
7004 | :repl |
---|
7005 | t repl |
---|
7006 | s/'"$ac_delim"'$// |
---|
7007 | t delim |
---|
7008 | :nl |
---|
7009 | h |
---|
7010 | s/\(.\{148\}\)..*/\1/ |
---|
7011 | t more1 |
---|
7012 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
---|
7013 | p |
---|
7014 | n |
---|
7015 | b repl |
---|
7016 | :more1 |
---|
7017 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
7018 | p |
---|
7019 | g |
---|
7020 | s/.\{148\}// |
---|
7021 | t nl |
---|
7022 | :delim |
---|
7023 | h |
---|
7024 | s/\(.\{148\}\)..*/\1/ |
---|
7025 | t more2 |
---|
7026 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
---|
7027 | p |
---|
7028 | b |
---|
7029 | :more2 |
---|
7030 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
7031 | p |
---|
7032 | g |
---|
7033 | s/.\{148\}// |
---|
7034 | t delim |
---|
7035 | ' <conf$$subs.awk | sed ' |
---|
7036 | /^[^""]/{ |
---|
7037 | N |
---|
7038 | s/\n// |
---|
7039 | } |
---|
7040 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
7041 | rm -f conf$$subs.awk |
---|
7042 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7043 | _ACAWK |
---|
7044 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
---|
7045 | for (key in S) S_is_set[key] = 1 |
---|
7046 | FS = "" |
---|
7047 | |
---|
7048 | } |
---|
7049 | { |
---|
7050 | line = $ 0 |
---|
7051 | nfields = split(line, field, "@") |
---|
7052 | substed = 0 |
---|
7053 | len = length(field[1]) |
---|
7054 | for (i = 2; i < nfields; i++) { |
---|
7055 | key = field[i] |
---|
7056 | keylen = length(key) |
---|
7057 | if (S_is_set[key]) { |
---|
7058 | value = S[key] |
---|
7059 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
---|
7060 | len += length(value) + length(field[++i]) |
---|
7061 | substed = 1 |
---|
7062 | } else |
---|
7063 | len += 1 + keylen |
---|
7064 | } |
---|
7065 | |
---|
7066 | print line |
---|
7067 | } |
---|
7068 | |
---|
7069 | _ACAWK |
---|
7070 | _ACEOF |
---|
7071 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7072 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
---|
7073 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
---|
7074 | else |
---|
7075 | cat |
---|
7076 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
---|
7077 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
---|
7078 | _ACEOF |
---|
7079 | |
---|
7080 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
---|
7081 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
---|
7082 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
7083 | # (actually we leave an empty line to preserve line numbers). |
---|
7084 | if test "x$srcdir" = x.; then |
---|
7085 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
---|
7086 | h |
---|
7087 | s/// |
---|
7088 | s/^/:/ |
---|
7089 | s/[ ]*$/:/ |
---|
7090 | s/:\$(srcdir):/:/g |
---|
7091 | s/:\${srcdir}:/:/g |
---|
7092 | s/:@srcdir@:/:/g |
---|
7093 | s/^:*// |
---|
7094 | s/:*$// |
---|
7095 | x |
---|
7096 | s/\(=[ ]*\).*/\1/ |
---|
7097 | G |
---|
7098 | s/\n// |
---|
7099 | s/^[^=]*=[ ]*$// |
---|
7100 | }' |
---|
7101 | fi |
---|
7102 | |
---|
7103 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7104 | fi # test -n "$CONFIG_FILES" |
---|
7105 | |
---|
7106 | |
---|
7107 | eval set X " :F $CONFIG_FILES " |
---|
7108 | shift |
---|
7109 | for ac_tag |
---|
7110 | do |
---|
7111 | case $ac_tag in |
---|
7112 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
7113 | esac |
---|
7114 | case $ac_mode$ac_tag in |
---|
7115 | :[FHL]*:*);; |
---|
7116 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
---|
7117 | :[FH]-) ac_tag=-:-;; |
---|
7118 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
7119 | esac |
---|
7120 | ac_save_IFS=$IFS |
---|
7121 | IFS=: |
---|
7122 | set x $ac_tag |
---|
7123 | IFS=$ac_save_IFS |
---|
7124 | shift |
---|
7125 | ac_file=$1 |
---|
7126 | shift |
---|
7127 | |
---|
7128 | case $ac_mode in |
---|
7129 | :L) ac_source=$1;; |
---|
7130 | :[FH]) |
---|
7131 | ac_file_inputs= |
---|
7132 | for ac_f |
---|
7133 | do |
---|
7134 | case $ac_f in |
---|
7135 | -) ac_f="$ac_tmp/stdin";; |
---|
7136 | *) # Look for the file first in the build tree, then in the source tree |
---|
7137 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
7138 | # because $ac_f cannot contain `:'. |
---|
7139 | test -f "$ac_f" || |
---|
7140 | case $ac_f in |
---|
7141 | [\\/$]*) false;; |
---|
7142 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
7143 | esac || |
---|
7144 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
---|
7145 | esac |
---|
7146 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
---|
7147 | as_fn_append ac_file_inputs " '$ac_f'" |
---|
7148 | done |
---|
7149 | |
---|
7150 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
7151 | # use $as_me), people would be surprised to read: |
---|
7152 | # /* config.h. Generated by config.status. */ |
---|
7153 | configure_input='Generated from '` |
---|
7154 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
---|
7155 | `' by configure.' |
---|
7156 | if test x"$ac_file" != x-; then |
---|
7157 | configure_input="$ac_file. $configure_input" |
---|
7158 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
---|
7159 | $as_echo "$as_me: creating $ac_file" >&6;} |
---|
7160 | fi |
---|
7161 | # Neutralize special characters interpreted by sed in replacement strings. |
---|
7162 | case $configure_input in #( |
---|
7163 | *\&* | *\|* | *\\* ) |
---|
7164 | ac_sed_conf_input=`$as_echo "$configure_input" | |
---|
7165 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
---|
7166 | *) ac_sed_conf_input=$configure_input;; |
---|
7167 | esac |
---|
7168 | |
---|
7169 | case $ac_tag in |
---|
7170 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
---|
7171 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
---|
7172 | esac |
---|
7173 | ;; |
---|
7174 | esac |
---|
7175 | |
---|
7176 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
7177 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7178 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
7179 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
7180 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
7181 | $as_echo X"$ac_file" | |
---|
7182 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
7183 | s//\1/ |
---|
7184 | q |
---|
7185 | } |
---|
7186 | /^X\(\/\/\)[^/].*/{ |
---|
7187 | s//\1/ |
---|
7188 | q |
---|
7189 | } |
---|
7190 | /^X\(\/\/\)$/{ |
---|
7191 | s//\1/ |
---|
7192 | q |
---|
7193 | } |
---|
7194 | /^X\(\/\).*/{ |
---|
7195 | s//\1/ |
---|
7196 | q |
---|
7197 | } |
---|
7198 | s/.*/./; q'` |
---|
7199 | as_dir="$ac_dir"; as_fn_mkdir_p |
---|
7200 | ac_builddir=. |
---|
7201 | |
---|
7202 | case "$ac_dir" in |
---|
7203 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
7204 | *) |
---|
7205 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
7206 | # A ".." for each directory in $ac_dir_suffix. |
---|
7207 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
7208 | case $ac_top_builddir_sub in |
---|
7209 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
7210 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
7211 | esac ;; |
---|
7212 | esac |
---|
7213 | ac_abs_top_builddir=$ac_pwd |
---|
7214 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
7215 | # for backward compatibility: |
---|
7216 | ac_top_builddir=$ac_top_build_prefix |
---|
7217 | |
---|
7218 | case $srcdir in |
---|
7219 | .) # We are building in place. |
---|
7220 | ac_srcdir=. |
---|
7221 | ac_top_srcdir=$ac_top_builddir_sub |
---|
7222 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
7223 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
7224 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
7225 | ac_top_srcdir=$srcdir |
---|
7226 | ac_abs_top_srcdir=$srcdir ;; |
---|
7227 | *) # Relative name. |
---|
7228 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
7229 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
7230 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
7231 | esac |
---|
7232 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
7233 | |
---|
7234 | |
---|
7235 | case $ac_mode in |
---|
7236 | :F) |
---|
7237 | # |
---|
7238 | # CONFIG_FILE |
---|
7239 | # |
---|
7240 | |
---|
7241 | case $INSTALL in |
---|
7242 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
7243 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
---|
7244 | esac |
---|
7245 | ac_MKDIR_P=$MKDIR_P |
---|
7246 | case $MKDIR_P in |
---|
7247 | [\\/$]* | ?:[\\/]* ) ;; |
---|
7248 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
---|
7249 | esac |
---|
7250 | _ACEOF |
---|
7251 | |
---|
7252 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7253 | # If the template does not know about datarootdir, expand it. |
---|
7254 | # FIXME: This hack should be removed a few years after 2.60. |
---|
7255 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
7256 | ac_sed_dataroot=' |
---|
7257 | /datarootdir/ { |
---|
7258 | p |
---|
7259 | q |
---|
7260 | } |
---|
7261 | /@datadir@/p |
---|
7262 | /@docdir@/p |
---|
7263 | /@infodir@/p |
---|
7264 | /@localedir@/p |
---|
7265 | /@mandir@/p' |
---|
7266 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
---|
7267 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
7268 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
7269 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
7270 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
7271 | _ACEOF |
---|
7272 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7273 | ac_datarootdir_hack=' |
---|
7274 | s&@datadir@&$datadir&g |
---|
7275 | s&@docdir@&$docdir&g |
---|
7276 | s&@infodir@&$infodir&g |
---|
7277 | s&@localedir@&$localedir&g |
---|
7278 | s&@mandir@&$mandir&g |
---|
7279 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
7280 | esac |
---|
7281 | _ACEOF |
---|
7282 | |
---|
7283 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
7284 | # Shell code in configure.ac might set extrasub. |
---|
7285 | # FIXME: do we really want to maintain this feature? |
---|
7286 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7287 | ac_sed_extra="$ac_vpsub |
---|
7288 | $extrasub |
---|
7289 | _ACEOF |
---|
7290 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7291 | :t |
---|
7292 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
7293 | s|@configure_input@|$ac_sed_conf_input|;t t |
---|
7294 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
7295 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
---|
7296 | s&@srcdir@&$ac_srcdir&;t t |
---|
7297 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
7298 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
7299 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
7300 | s&@builddir@&$ac_builddir&;t t |
---|
7301 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
7302 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
7303 | s&@INSTALL@&$ac_INSTALL&;t t |
---|
7304 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
---|
7305 | $ac_datarootdir_hack |
---|
7306 | " |
---|
7307 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
---|
7308 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
7309 | |
---|
7310 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
7311 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
---|
7312 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
---|
7313 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
---|
7314 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
7315 | which seems to be undefined. Please make sure it is defined" >&5 |
---|
7316 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
7317 | which seems to be undefined. Please make sure it is defined" >&2;} |
---|
7318 | |
---|
7319 | rm -f "$ac_tmp/stdin" |
---|
7320 | case $ac_file in |
---|
7321 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
---|
7322 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
---|
7323 | esac \ |
---|
7324 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
7325 | ;; |
---|
7326 | |
---|
7327 | |
---|
7328 | |
---|
7329 | esac |
---|
7330 | |
---|
7331 | done # for ac_tag |
---|
7332 | |
---|
7333 | |
---|
7334 | as_fn_exit 0 |
---|
7335 | _ACEOF |
---|
7336 | ac_clean_files=$ac_clean_files_save |
---|
7337 | |
---|
7338 | test $ac_write_fail = 0 || |
---|
7339 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
---|
7340 | |
---|
7341 | |
---|
7342 | # configure is writing to config.log, and then calls config.status. |
---|
7343 | # config.status does its own redirection, appending to config.log. |
---|
7344 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
7345 | # by configure, so config.status won't be able to write to it; its |
---|
7346 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
7347 | # effectively closing config.log, so it can be properly (re)opened and |
---|
7348 | # appended to by config.status. When coming back to configure, we |
---|
7349 | # need to make the FD available again. |
---|
7350 | if test "$no_create" != yes; then |
---|
7351 | ac_cs_success=: |
---|
7352 | ac_config_status_args= |
---|
7353 | test "$silent" = yes && |
---|
7354 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
7355 | exec 5>/dev/null |
---|
7356 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
7357 | exec 5>>config.log |
---|
7358 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
7359 | # would make configure fail if this is the last instruction. |
---|
7360 | $ac_cs_success || as_fn_exit 1 |
---|
7361 | fi |
---|
7362 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
---|
7363 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
---|
7364 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
---|
7365 | fi |
---|
7366 | |
---|
7367 | |
---|