1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.69 for Rappture 1.5. |
---|
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.5' |
---|
584 | PACKAGE_STRING='Rappture 1.5' |
---|
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 | WITH_TCL |
---|
627 | WITH_RUBY_SITELIBDIR |
---|
628 | WITH_RUBY |
---|
629 | WITH_PYTHON |
---|
630 | WITH_PERL |
---|
631 | WITH_OCTAVE |
---|
632 | WITH_MKOCTFILE3 |
---|
633 | WITH_MKOCTFILE2 |
---|
634 | WITH_MATLAB |
---|
635 | WITH_JAVA |
---|
636 | WITH_R |
---|
637 | WITH_VTK |
---|
638 | RAPPTURE_VERSION |
---|
639 | RAPPTURE_RELEASE_SERIAL |
---|
640 | RAPPTURE_MINOR_VERSION |
---|
641 | RAPPTURE_MAJOR_VERSION |
---|
642 | WORDSIZE |
---|
643 | X_LIBRARIES |
---|
644 | X_INCLUDES |
---|
645 | VTK_VERSION |
---|
646 | VTK_TCL_DIR |
---|
647 | TK_VERSION |
---|
648 | TK_XLIBSW |
---|
649 | TK_LIB_SPEC |
---|
650 | TK_INC_SPEC |
---|
651 | TCL_SHLIB_SUFFIX |
---|
652 | TCL_SHLIB_LDFLAGS |
---|
653 | TCL_SHLIB_LD |
---|
654 | TCL_SHLIB_CFLAGS |
---|
655 | TCL_CFLAGS_OPTIMIZE |
---|
656 | TCL_CFLAGS_DEBUG |
---|
657 | TCL_LIB_SPEC |
---|
658 | TCL_INC_SPEC |
---|
659 | SIZEOF_VOID_P |
---|
660 | SIZEOF_LONG_LONG |
---|
661 | SIZEOF_LONG |
---|
662 | SIZEOF_INT |
---|
663 | SHLIB_LDFLAGS |
---|
664 | SVN_VERSION |
---|
665 | MAKE |
---|
666 | LIB_SEARCH_DIRS |
---|
667 | INSTALL_PREFIX |
---|
668 | HAVE_LIBNCURSES |
---|
669 | HAVE_LIBVTKDICOM |
---|
670 | HAVE_INTTYPES_H |
---|
671 | LDFLAGS_DEFAULT |
---|
672 | CFLAGS_DEFAULT |
---|
673 | INSTALL_STUB_LIB |
---|
674 | INSTALL_LIB |
---|
675 | MAKE_STUB_LIB |
---|
676 | MAKE_LIB |
---|
677 | SHLIB_SUFFIX |
---|
678 | SHLIB_CFLAGS |
---|
679 | SHLIB_LD_LIBS |
---|
680 | TK_SHLIB_LD_EXTRAS |
---|
681 | TCL_SHLIB_LD_EXTRAS |
---|
682 | SHLIB_LD |
---|
683 | STLIB_LD |
---|
684 | LD_SEARCH_FLAGS |
---|
685 | CC_SEARCH_FLAGS |
---|
686 | LDFLAGS_OPTIMIZE |
---|
687 | LDFLAGS_DEBUG |
---|
688 | CFLAGS_WARNING |
---|
689 | CFLAGS_OPTIMIZE |
---|
690 | CFLAGS_DEBUG |
---|
691 | PLAT_SRCS |
---|
692 | PLAT_OBJS |
---|
693 | DL_OBJS |
---|
694 | DL_LIBS |
---|
695 | AR |
---|
696 | CXXCPP |
---|
697 | XMKMF |
---|
698 | EGREP |
---|
699 | GREP |
---|
700 | CPP |
---|
701 | ac_ct_F77 |
---|
702 | FFLAGS |
---|
703 | F77 |
---|
704 | ac_ct_CXX |
---|
705 | CXXFLAGS |
---|
706 | CXX |
---|
707 | OBJEXT |
---|
708 | EXEEXT |
---|
709 | ac_ct_CC |
---|
710 | CPPFLAGS |
---|
711 | LDFLAGS |
---|
712 | CFLAGS |
---|
713 | CC |
---|
714 | SET_MAKE |
---|
715 | MKDIR_P |
---|
716 | LN_S |
---|
717 | RANLIB |
---|
718 | INSTALL_DATA |
---|
719 | INSTALL_SCRIPT |
---|
720 | INSTALL_PROGRAM |
---|
721 | target_alias |
---|
722 | host_alias |
---|
723 | build_alias |
---|
724 | LIBS |
---|
725 | ECHO_T |
---|
726 | ECHO_N |
---|
727 | ECHO_C |
---|
728 | DEFS |
---|
729 | mandir |
---|
730 | localedir |
---|
731 | libdir |
---|
732 | psdir |
---|
733 | pdfdir |
---|
734 | dvidir |
---|
735 | htmldir |
---|
736 | infodir |
---|
737 | docdir |
---|
738 | oldincludedir |
---|
739 | includedir |
---|
740 | localstatedir |
---|
741 | sharedstatedir |
---|
742 | sysconfdir |
---|
743 | datadir |
---|
744 | datarootdir |
---|
745 | libexecdir |
---|
746 | sbindir |
---|
747 | bindir |
---|
748 | program_transform_name |
---|
749 | prefix |
---|
750 | exec_prefix |
---|
751 | PACKAGE_URL |
---|
752 | PACKAGE_BUGREPORT |
---|
753 | PACKAGE_STRING |
---|
754 | PACKAGE_VERSION |
---|
755 | PACKAGE_TARNAME |
---|
756 | PACKAGE_NAME |
---|
757 | PATH_SEPARATOR |
---|
758 | SHELL' |
---|
759 | ac_subst_files='' |
---|
760 | ac_user_opts=' |
---|
761 | enable_option_checking |
---|
762 | with_x |
---|
763 | enable_64bit |
---|
764 | enable_64bit_vis |
---|
765 | enable_corefoundation |
---|
766 | enable_load |
---|
767 | enable_symbols |
---|
768 | ' |
---|
769 | ac_precious_vars='build_alias |
---|
770 | host_alias |
---|
771 | target_alias |
---|
772 | CC |
---|
773 | CFLAGS |
---|
774 | LDFLAGS |
---|
775 | LIBS |
---|
776 | CPPFLAGS |
---|
777 | CXX |
---|
778 | CXXFLAGS |
---|
779 | CCC |
---|
780 | F77 |
---|
781 | FFLAGS |
---|
782 | CPP |
---|
783 | XMKMF |
---|
784 | CXXCPP' |
---|
785 | |
---|
786 | |
---|
787 | # Initialize some variables set by options. |
---|
788 | ac_init_help= |
---|
789 | ac_init_version=false |
---|
790 | ac_unrecognized_opts= |
---|
791 | ac_unrecognized_sep= |
---|
792 | # The variables have the same names as the options, with |
---|
793 | # dashes changed to underlines. |
---|
794 | cache_file=/dev/null |
---|
795 | exec_prefix=NONE |
---|
796 | no_create= |
---|
797 | no_recursion= |
---|
798 | prefix=NONE |
---|
799 | program_prefix=NONE |
---|
800 | program_suffix=NONE |
---|
801 | program_transform_name=s,x,x, |
---|
802 | silent= |
---|
803 | site= |
---|
804 | srcdir= |
---|
805 | verbose= |
---|
806 | x_includes=NONE |
---|
807 | x_libraries=NONE |
---|
808 | |
---|
809 | # Installation directory options. |
---|
810 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
811 | # and all the variables that are supposed to be based on exec_prefix |
---|
812 | # by default will actually change. |
---|
813 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
814 | # (The list follows the same order as the GNU Coding Standards.) |
---|
815 | bindir='${exec_prefix}/bin' |
---|
816 | sbindir='${exec_prefix}/sbin' |
---|
817 | libexecdir='${exec_prefix}/libexec' |
---|
818 | datarootdir='${prefix}/share' |
---|
819 | datadir='${datarootdir}' |
---|
820 | sysconfdir='${prefix}/etc' |
---|
821 | sharedstatedir='${prefix}/com' |
---|
822 | localstatedir='${prefix}/var' |
---|
823 | includedir='${prefix}/include' |
---|
824 | oldincludedir='/usr/include' |
---|
825 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
---|
826 | infodir='${datarootdir}/info' |
---|
827 | htmldir='${docdir}' |
---|
828 | dvidir='${docdir}' |
---|
829 | pdfdir='${docdir}' |
---|
830 | psdir='${docdir}' |
---|
831 | libdir='${exec_prefix}/lib' |
---|
832 | localedir='${datarootdir}/locale' |
---|
833 | mandir='${datarootdir}/man' |
---|
834 | |
---|
835 | ac_prev= |
---|
836 | ac_dashdash= |
---|
837 | for ac_option |
---|
838 | do |
---|
839 | # If the previous option needs an argument, assign it. |
---|
840 | if test -n "$ac_prev"; then |
---|
841 | eval $ac_prev=\$ac_option |
---|
842 | ac_prev= |
---|
843 | continue |
---|
844 | fi |
---|
845 | |
---|
846 | case $ac_option in |
---|
847 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
848 | *=) ac_optarg= ;; |
---|
849 | *) ac_optarg=yes ;; |
---|
850 | esac |
---|
851 | |
---|
852 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
853 | |
---|
854 | case $ac_dashdash$ac_option in |
---|
855 | --) |
---|
856 | ac_dashdash=yes ;; |
---|
857 | |
---|
858 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
859 | ac_prev=bindir ;; |
---|
860 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
861 | bindir=$ac_optarg ;; |
---|
862 | |
---|
863 | -build | --build | --buil | --bui | --bu) |
---|
864 | ac_prev=build_alias ;; |
---|
865 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
866 | build_alias=$ac_optarg ;; |
---|
867 | |
---|
868 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
869 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
870 | ac_prev=cache_file ;; |
---|
871 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
872 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
873 | cache_file=$ac_optarg ;; |
---|
874 | |
---|
875 | --config-cache | -C) |
---|
876 | cache_file=config.cache ;; |
---|
877 | |
---|
878 | -datadir | --datadir | --datadi | --datad) |
---|
879 | ac_prev=datadir ;; |
---|
880 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
881 | datadir=$ac_optarg ;; |
---|
882 | |
---|
883 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
884 | | --dataroo | --dataro | --datar) |
---|
885 | ac_prev=datarootdir ;; |
---|
886 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
887 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
888 | datarootdir=$ac_optarg ;; |
---|
889 | |
---|
890 | -disable-* | --disable-*) |
---|
891 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
892 | # Reject names that are not valid shell variable names. |
---|
893 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
894 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
895 | ac_useropt_orig=$ac_useropt |
---|
896 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
897 | case $ac_user_opts in |
---|
898 | *" |
---|
899 | "enable_$ac_useropt" |
---|
900 | "*) ;; |
---|
901 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
---|
902 | ac_unrecognized_sep=', ';; |
---|
903 | esac |
---|
904 | eval enable_$ac_useropt=no ;; |
---|
905 | |
---|
906 | -docdir | --docdir | --docdi | --doc | --do) |
---|
907 | ac_prev=docdir ;; |
---|
908 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
909 | docdir=$ac_optarg ;; |
---|
910 | |
---|
911 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
912 | ac_prev=dvidir ;; |
---|
913 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
914 | dvidir=$ac_optarg ;; |
---|
915 | |
---|
916 | -enable-* | --enable-*) |
---|
917 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
918 | # Reject names that are not valid shell variable names. |
---|
919 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
920 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
921 | ac_useropt_orig=$ac_useropt |
---|
922 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
923 | case $ac_user_opts in |
---|
924 | *" |
---|
925 | "enable_$ac_useropt" |
---|
926 | "*) ;; |
---|
927 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
---|
928 | ac_unrecognized_sep=', ';; |
---|
929 | esac |
---|
930 | eval enable_$ac_useropt=\$ac_optarg ;; |
---|
931 | |
---|
932 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
933 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
934 | | --exec | --exe | --ex) |
---|
935 | ac_prev=exec_prefix ;; |
---|
936 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
937 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
938 | | --exec=* | --exe=* | --ex=*) |
---|
939 | exec_prefix=$ac_optarg ;; |
---|
940 | |
---|
941 | -gas | --gas | --ga | --g) |
---|
942 | # Obsolete; use --with-gas. |
---|
943 | with_gas=yes ;; |
---|
944 | |
---|
945 | -help | --help | --hel | --he | -h) |
---|
946 | ac_init_help=long ;; |
---|
947 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
948 | ac_init_help=recursive ;; |
---|
949 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
950 | ac_init_help=short ;; |
---|
951 | |
---|
952 | -host | --host | --hos | --ho) |
---|
953 | ac_prev=host_alias ;; |
---|
954 | -host=* | --host=* | --hos=* | --ho=*) |
---|
955 | host_alias=$ac_optarg ;; |
---|
956 | |
---|
957 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
958 | ac_prev=htmldir ;; |
---|
959 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
960 | | --ht=*) |
---|
961 | htmldir=$ac_optarg ;; |
---|
962 | |
---|
963 | -includedir | --includedir | --includedi | --included | --include \ |
---|
964 | | --includ | --inclu | --incl | --inc) |
---|
965 | ac_prev=includedir ;; |
---|
966 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
967 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
968 | includedir=$ac_optarg ;; |
---|
969 | |
---|
970 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
971 | ac_prev=infodir ;; |
---|
972 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
973 | infodir=$ac_optarg ;; |
---|
974 | |
---|
975 | -libdir | --libdir | --libdi | --libd) |
---|
976 | ac_prev=libdir ;; |
---|
977 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
978 | libdir=$ac_optarg ;; |
---|
979 | |
---|
980 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
981 | | --libexe | --libex | --libe) |
---|
982 | ac_prev=libexecdir ;; |
---|
983 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
984 | | --libexe=* | --libex=* | --libe=*) |
---|
985 | libexecdir=$ac_optarg ;; |
---|
986 | |
---|
987 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
988 | ac_prev=localedir ;; |
---|
989 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
990 | localedir=$ac_optarg ;; |
---|
991 | |
---|
992 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
993 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
994 | ac_prev=localstatedir ;; |
---|
995 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
996 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
997 | localstatedir=$ac_optarg ;; |
---|
998 | |
---|
999 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
1000 | ac_prev=mandir ;; |
---|
1001 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
1002 | mandir=$ac_optarg ;; |
---|
1003 | |
---|
1004 | -nfp | --nfp | --nf) |
---|
1005 | # Obsolete; use --without-fp. |
---|
1006 | with_fp=no ;; |
---|
1007 | |
---|
1008 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
1009 | | --no-cr | --no-c | -n) |
---|
1010 | no_create=yes ;; |
---|
1011 | |
---|
1012 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
1013 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
1014 | no_recursion=yes ;; |
---|
1015 | |
---|
1016 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
1017 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
1018 | | --oldin | --oldi | --old | --ol | --o) |
---|
1019 | ac_prev=oldincludedir ;; |
---|
1020 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
1021 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
1022 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
1023 | oldincludedir=$ac_optarg ;; |
---|
1024 | |
---|
1025 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
1026 | ac_prev=prefix ;; |
---|
1027 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
1028 | prefix=$ac_optarg ;; |
---|
1029 | |
---|
1030 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
1031 | | --program-pre | --program-pr | --program-p) |
---|
1032 | ac_prev=program_prefix ;; |
---|
1033 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
1034 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
1035 | program_prefix=$ac_optarg ;; |
---|
1036 | |
---|
1037 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
1038 | | --program-suf | --program-su | --program-s) |
---|
1039 | ac_prev=program_suffix ;; |
---|
1040 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
1041 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
1042 | program_suffix=$ac_optarg ;; |
---|
1043 | |
---|
1044 | -program-transform-name | --program-transform-name \ |
---|
1045 | | --program-transform-nam | --program-transform-na \ |
---|
1046 | | --program-transform-n | --program-transform- \ |
---|
1047 | | --program-transform | --program-transfor \ |
---|
1048 | | --program-transfo | --program-transf \ |
---|
1049 | | --program-trans | --program-tran \ |
---|
1050 | | --progr-tra | --program-tr | --program-t) |
---|
1051 | ac_prev=program_transform_name ;; |
---|
1052 | -program-transform-name=* | --program-transform-name=* \ |
---|
1053 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
1054 | | --program-transform-n=* | --program-transform-=* \ |
---|
1055 | | --program-transform=* | --program-transfor=* \ |
---|
1056 | | --program-transfo=* | --program-transf=* \ |
---|
1057 | | --program-trans=* | --program-tran=* \ |
---|
1058 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
1059 | program_transform_name=$ac_optarg ;; |
---|
1060 | |
---|
1061 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
1062 | ac_prev=pdfdir ;; |
---|
1063 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
1064 | pdfdir=$ac_optarg ;; |
---|
1065 | |
---|
1066 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
1067 | ac_prev=psdir ;; |
---|
1068 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
1069 | psdir=$ac_optarg ;; |
---|
1070 | |
---|
1071 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1072 | | -silent | --silent | --silen | --sile | --sil) |
---|
1073 | silent=yes ;; |
---|
1074 | |
---|
1075 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
1076 | ac_prev=sbindir ;; |
---|
1077 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
1078 | | --sbi=* | --sb=*) |
---|
1079 | sbindir=$ac_optarg ;; |
---|
1080 | |
---|
1081 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
1082 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
1083 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
1084 | | --sha | --sh) |
---|
1085 | ac_prev=sharedstatedir ;; |
---|
1086 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
1087 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
1088 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
1089 | | --sha=* | --sh=*) |
---|
1090 | sharedstatedir=$ac_optarg ;; |
---|
1091 | |
---|
1092 | -site | --site | --sit) |
---|
1093 | ac_prev=site ;; |
---|
1094 | -site=* | --site=* | --sit=*) |
---|
1095 | site=$ac_optarg ;; |
---|
1096 | |
---|
1097 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
1098 | ac_prev=srcdir ;; |
---|
1099 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
1100 | srcdir=$ac_optarg ;; |
---|
1101 | |
---|
1102 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
1103 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
1104 | ac_prev=sysconfdir ;; |
---|
1105 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
1106 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
1107 | sysconfdir=$ac_optarg ;; |
---|
1108 | |
---|
1109 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
1110 | ac_prev=target_alias ;; |
---|
1111 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
1112 | target_alias=$ac_optarg ;; |
---|
1113 | |
---|
1114 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
1115 | verbose=yes ;; |
---|
1116 | |
---|
1117 | -version | --version | --versio | --versi | --vers | -V) |
---|
1118 | ac_init_version=: ;; |
---|
1119 | |
---|
1120 | -with-* | --with-*) |
---|
1121 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
1122 | # Reject names that are not valid shell variable names. |
---|
1123 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1124 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1125 | ac_useropt_orig=$ac_useropt |
---|
1126 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1127 | case $ac_user_opts in |
---|
1128 | *" |
---|
1129 | "with_$ac_useropt" |
---|
1130 | "*) ;; |
---|
1131 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
---|
1132 | ac_unrecognized_sep=', ';; |
---|
1133 | esac |
---|
1134 | eval with_$ac_useropt=\$ac_optarg ;; |
---|
1135 | |
---|
1136 | -without-* | --without-*) |
---|
1137 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
1138 | # Reject names that are not valid shell variable names. |
---|
1139 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1140 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1141 | ac_useropt_orig=$ac_useropt |
---|
1142 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1143 | case $ac_user_opts in |
---|
1144 | *" |
---|
1145 | "with_$ac_useropt" |
---|
1146 | "*) ;; |
---|
1147 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
---|
1148 | ac_unrecognized_sep=', ';; |
---|
1149 | esac |
---|
1150 | eval with_$ac_useropt=no ;; |
---|
1151 | |
---|
1152 | --x) |
---|
1153 | # Obsolete; use --with-x. |
---|
1154 | with_x=yes ;; |
---|
1155 | |
---|
1156 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
1157 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
1158 | ac_prev=x_includes ;; |
---|
1159 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
1160 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
1161 | x_includes=$ac_optarg ;; |
---|
1162 | |
---|
1163 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
1164 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
1165 | ac_prev=x_libraries ;; |
---|
1166 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
1167 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
1168 | x_libraries=$ac_optarg ;; |
---|
1169 | |
---|
1170 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
---|
1171 | Try \`$0 --help' for more information" |
---|
1172 | ;; |
---|
1173 | |
---|
1174 | *=*) |
---|
1175 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
1176 | # Reject names that are not valid shell variable names. |
---|
1177 | case $ac_envvar in #( |
---|
1178 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
---|
1179 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
---|
1180 | esac |
---|
1181 | eval $ac_envvar=\$ac_optarg |
---|
1182 | export $ac_envvar ;; |
---|
1183 | |
---|
1184 | *) |
---|
1185 | # FIXME: should be removed in autoconf 3.0. |
---|
1186 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
1187 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1188 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
1189 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
---|
1190 | ;; |
---|
1191 | |
---|
1192 | esac |
---|
1193 | done |
---|
1194 | |
---|
1195 | if test -n "$ac_prev"; then |
---|
1196 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
1197 | as_fn_error $? "missing argument to $ac_option" |
---|
1198 | fi |
---|
1199 | |
---|
1200 | if test -n "$ac_unrecognized_opts"; then |
---|
1201 | case $enable_option_checking in |
---|
1202 | no) ;; |
---|
1203 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
---|
1204 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
---|
1205 | esac |
---|
1206 | fi |
---|
1207 | |
---|
1208 | # Check all directory arguments for consistency. |
---|
1209 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
1210 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
1211 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
1212 | libdir localedir mandir |
---|
1213 | do |
---|
1214 | eval ac_val=\$$ac_var |
---|
1215 | # Remove trailing slashes. |
---|
1216 | case $ac_val in |
---|
1217 | */ ) |
---|
1218 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
---|
1219 | eval $ac_var=\$ac_val;; |
---|
1220 | esac |
---|
1221 | # Be sure to have absolute directory names. |
---|
1222 | case $ac_val in |
---|
1223 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
1224 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
1225 | esac |
---|
1226 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
---|
1227 | done |
---|
1228 | |
---|
1229 | # There might be people who depend on the old broken behavior: `$host' |
---|
1230 | # used to hold the argument of --host etc. |
---|
1231 | # FIXME: To remove some day. |
---|
1232 | build=$build_alias |
---|
1233 | host=$host_alias |
---|
1234 | target=$target_alias |
---|
1235 | |
---|
1236 | # FIXME: To remove some day. |
---|
1237 | if test "x$host_alias" != x; then |
---|
1238 | if test "x$build_alias" = x; then |
---|
1239 | cross_compiling=maybe |
---|
1240 | elif test "x$build_alias" != "x$host_alias"; then |
---|
1241 | cross_compiling=yes |
---|
1242 | fi |
---|
1243 | fi |
---|
1244 | |
---|
1245 | ac_tool_prefix= |
---|
1246 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
1247 | |
---|
1248 | test "$silent" = yes && exec 6>/dev/null |
---|
1249 | |
---|
1250 | |
---|
1251 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
1252 | ac_ls_di=`ls -di .` && |
---|
1253 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
1254 | as_fn_error $? "working directory cannot be determined" |
---|
1255 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
1256 | as_fn_error $? "pwd does not report name of working directory" |
---|
1257 | |
---|
1258 | |
---|
1259 | # Find the source files, if location was not specified. |
---|
1260 | if test -z "$srcdir"; then |
---|
1261 | ac_srcdir_defaulted=yes |
---|
1262 | # Try the directory containing this script, then the parent directory. |
---|
1263 | ac_confdir=`$as_dirname -- "$as_myself" || |
---|
1264 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
1265 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
---|
1266 | X"$as_myself" : 'X\(//\)$' \| \ |
---|
1267 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
---|
1268 | $as_echo X"$as_myself" | |
---|
1269 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
1270 | s//\1/ |
---|
1271 | q |
---|
1272 | } |
---|
1273 | /^X\(\/\/\)[^/].*/{ |
---|
1274 | s//\1/ |
---|
1275 | q |
---|
1276 | } |
---|
1277 | /^X\(\/\/\)$/{ |
---|
1278 | s//\1/ |
---|
1279 | q |
---|
1280 | } |
---|
1281 | /^X\(\/\).*/{ |
---|
1282 | s//\1/ |
---|
1283 | q |
---|
1284 | } |
---|
1285 | s/.*/./; q'` |
---|
1286 | srcdir=$ac_confdir |
---|
1287 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1288 | srcdir=.. |
---|
1289 | fi |
---|
1290 | else |
---|
1291 | ac_srcdir_defaulted=no |
---|
1292 | fi |
---|
1293 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1294 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
1295 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
---|
1296 | fi |
---|
1297 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
1298 | ac_abs_confdir=`( |
---|
1299 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
---|
1300 | pwd)` |
---|
1301 | # When building in place, set srcdir=. |
---|
1302 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
1303 | srcdir=. |
---|
1304 | fi |
---|
1305 | # Remove unnecessary trailing slashes from srcdir. |
---|
1306 | # Double slashes in file names in object file debugging info |
---|
1307 | # mess up M-x gdb in Emacs. |
---|
1308 | case $srcdir in |
---|
1309 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
1310 | esac |
---|
1311 | for ac_var in $ac_precious_vars; do |
---|
1312 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
1313 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
1314 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
1315 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
1316 | done |
---|
1317 | |
---|
1318 | # |
---|
1319 | # Report the --help message. |
---|
1320 | # |
---|
1321 | if test "$ac_init_help" = "long"; then |
---|
1322 | # Omit some internal or obsolete options to make the list less imposing. |
---|
1323 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
1324 | cat <<_ACEOF |
---|
1325 | \`configure' configures Rappture 1.5 to adapt to many kinds of systems. |
---|
1326 | |
---|
1327 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1328 | |
---|
1329 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1330 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1331 | |
---|
1332 | Defaults for the options are specified in brackets. |
---|
1333 | |
---|
1334 | Configuration: |
---|
1335 | -h, --help display this help and exit |
---|
1336 | --help=short display options specific to this package |
---|
1337 | --help=recursive display the short help of all the included packages |
---|
1338 | -V, --version display version information and exit |
---|
1339 | -q, --quiet, --silent do not print \`checking ...' messages |
---|
1340 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1341 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1342 | -n, --no-create do not create output files |
---|
1343 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1344 | |
---|
1345 | Installation directories: |
---|
1346 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1347 | [$ac_default_prefix] |
---|
1348 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1349 | [PREFIX] |
---|
1350 | |
---|
1351 | By default, \`make install' will install all the files in |
---|
1352 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1353 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1354 | for instance \`--prefix=\$HOME'. |
---|
1355 | |
---|
1356 | For better control, use the options below. |
---|
1357 | |
---|
1358 | Fine tuning of the installation directories: |
---|
1359 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1360 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1361 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1362 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1363 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1364 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1365 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1366 | --includedir=DIR C header files [PREFIX/include] |
---|
1367 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1368 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
1369 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
1370 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
1371 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
1372 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
1373 | --docdir=DIR documentation root [DATAROOTDIR/doc/rappture] |
---|
1374 | --htmldir=DIR html documentation [DOCDIR] |
---|
1375 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
1376 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
1377 | --psdir=DIR ps documentation [DOCDIR] |
---|
1378 | _ACEOF |
---|
1379 | |
---|
1380 | cat <<\_ACEOF |
---|
1381 | |
---|
1382 | X features: |
---|
1383 | --x-includes=DIR X include files are in DIR |
---|
1384 | --x-libraries=DIR X library files are in DIR |
---|
1385 | _ACEOF |
---|
1386 | fi |
---|
1387 | |
---|
1388 | if test -n "$ac_init_help"; then |
---|
1389 | case $ac_init_help in |
---|
1390 | short | recursive ) echo "Configuration of Rappture 1.5:";; |
---|
1391 | esac |
---|
1392 | cat <<\_ACEOF |
---|
1393 | |
---|
1394 | Optional Features: |
---|
1395 | --disable-option-checking ignore unrecognized --enable/--with options |
---|
1396 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1397 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1398 | --enable-64bit enable 64bit support (where applicable) |
---|
1399 | --enable-64bit-vis enable 64bit Sparc VIS support |
---|
1400 | --enable-corefoundation use CoreFoundation API --enable-corefoundation |
---|
1401 | --disable-load disallow dynamic loading and "load" command |
---|
1402 | --enable-symbols build with debugging symbols --disable-symbols |
---|
1403 | |
---|
1404 | Optional Packages: |
---|
1405 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1406 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1407 | --with-x use the X Window System |
---|
1408 | |
---|
1409 | Some influential environment variables: |
---|
1410 | CC C compiler command |
---|
1411 | CFLAGS C compiler flags |
---|
1412 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1413 | nonstandard directory <lib dir> |
---|
1414 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
1415 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
---|
1416 | you have headers in a nonstandard directory <include dir> |
---|
1417 | CXX C++ compiler command |
---|
1418 | CXXFLAGS C++ compiler flags |
---|
1419 | F77 Fortran 77 compiler command |
---|
1420 | FFLAGS Fortran 77 compiler flags |
---|
1421 | CPP C preprocessor |
---|
1422 | XMKMF Path to xmkmf, Makefile generator for X Window System |
---|
1423 | CXXCPP C++ preprocessor |
---|
1424 | |
---|
1425 | Use these variables to override the choices made by `configure' or to help |
---|
1426 | it to find libraries and programs with nonstandard names/locations. |
---|
1427 | |
---|
1428 | Report bugs to <rappture@nanohub.org>. |
---|
1429 | _ACEOF |
---|
1430 | ac_status=$? |
---|
1431 | fi |
---|
1432 | |
---|
1433 | if test "$ac_init_help" = "recursive"; then |
---|
1434 | # If there are subdirs, report their specific --help. |
---|
1435 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1436 | test -d "$ac_dir" || |
---|
1437 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
---|
1438 | continue |
---|
1439 | ac_builddir=. |
---|
1440 | |
---|
1441 | case "$ac_dir" in |
---|
1442 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1443 | *) |
---|
1444 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
1445 | # A ".." for each directory in $ac_dir_suffix. |
---|
1446 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
1447 | case $ac_top_builddir_sub in |
---|
1448 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1449 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
1450 | esac ;; |
---|
1451 | esac |
---|
1452 | ac_abs_top_builddir=$ac_pwd |
---|
1453 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
1454 | # for backward compatibility: |
---|
1455 | ac_top_builddir=$ac_top_build_prefix |
---|
1456 | |
---|
1457 | case $srcdir in |
---|
1458 | .) # We are building in place. |
---|
1459 | ac_srcdir=. |
---|
1460 | ac_top_srcdir=$ac_top_builddir_sub |
---|
1461 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
1462 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
1463 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1464 | ac_top_srcdir=$srcdir |
---|
1465 | ac_abs_top_srcdir=$srcdir ;; |
---|
1466 | *) # Relative name. |
---|
1467 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
1468 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
1469 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
1470 | esac |
---|
1471 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
1472 | |
---|
1473 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
1474 | # Check for guested configure. |
---|
1475 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
1476 | echo && |
---|
1477 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
1478 | elif test -f "$ac_srcdir/configure"; then |
---|
1479 | echo && |
---|
1480 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
1481 | else |
---|
1482 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1483 | fi || ac_status=$? |
---|
1484 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
1485 | done |
---|
1486 | fi |
---|
1487 | |
---|
1488 | test -n "$ac_init_help" && exit $ac_status |
---|
1489 | if $ac_init_version; then |
---|
1490 | cat <<\_ACEOF |
---|
1491 | Rappture configure 1.5 |
---|
1492 | generated by GNU Autoconf 2.69 |
---|
1493 | |
---|
1494 | Copyright (C) 2012 Free Software Foundation, Inc. |
---|
1495 | This configure script is free software; the Free Software Foundation |
---|
1496 | gives unlimited permission to copy, distribute and modify it. |
---|
1497 | _ACEOF |
---|
1498 | exit |
---|
1499 | fi |
---|
1500 | |
---|
1501 | ## ------------------------ ## |
---|
1502 | ## Autoconf initialization. ## |
---|
1503 | ## ------------------------ ## |
---|
1504 | |
---|
1505 | # ac_fn_c_try_compile LINENO |
---|
1506 | # -------------------------- |
---|
1507 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1508 | ac_fn_c_try_compile () |
---|
1509 | { |
---|
1510 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1511 | rm -f conftest.$ac_objext |
---|
1512 | if { { ac_try="$ac_compile" |
---|
1513 | case "(($ac_try" in |
---|
1514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1515 | *) ac_try_echo=$ac_try;; |
---|
1516 | esac |
---|
1517 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1518 | $as_echo "$ac_try_echo"; } >&5 |
---|
1519 | (eval "$ac_compile") 2>conftest.err |
---|
1520 | ac_status=$? |
---|
1521 | if test -s conftest.err; then |
---|
1522 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1523 | cat conftest.er1 >&5 |
---|
1524 | mv -f conftest.er1 conftest.err |
---|
1525 | fi |
---|
1526 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1527 | test $ac_status = 0; } && { |
---|
1528 | test -z "$ac_c_werror_flag" || |
---|
1529 | test ! -s conftest.err |
---|
1530 | } && test -s conftest.$ac_objext; then : |
---|
1531 | ac_retval=0 |
---|
1532 | else |
---|
1533 | $as_echo "$as_me: failed program was:" >&5 |
---|
1534 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1535 | |
---|
1536 | ac_retval=1 |
---|
1537 | fi |
---|
1538 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1539 | as_fn_set_status $ac_retval |
---|
1540 | |
---|
1541 | } # ac_fn_c_try_compile |
---|
1542 | |
---|
1543 | # ac_fn_cxx_try_compile LINENO |
---|
1544 | # ---------------------------- |
---|
1545 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1546 | ac_fn_cxx_try_compile () |
---|
1547 | { |
---|
1548 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1549 | rm -f conftest.$ac_objext |
---|
1550 | if { { ac_try="$ac_compile" |
---|
1551 | case "(($ac_try" in |
---|
1552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1553 | *) ac_try_echo=$ac_try;; |
---|
1554 | esac |
---|
1555 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1556 | $as_echo "$ac_try_echo"; } >&5 |
---|
1557 | (eval "$ac_compile") 2>conftest.err |
---|
1558 | ac_status=$? |
---|
1559 | if test -s conftest.err; then |
---|
1560 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1561 | cat conftest.er1 >&5 |
---|
1562 | mv -f conftest.er1 conftest.err |
---|
1563 | fi |
---|
1564 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1565 | test $ac_status = 0; } && { |
---|
1566 | test -z "$ac_cxx_werror_flag" || |
---|
1567 | test ! -s conftest.err |
---|
1568 | } && test -s conftest.$ac_objext; then : |
---|
1569 | ac_retval=0 |
---|
1570 | else |
---|
1571 | $as_echo "$as_me: failed program was:" >&5 |
---|
1572 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1573 | |
---|
1574 | ac_retval=1 |
---|
1575 | fi |
---|
1576 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1577 | as_fn_set_status $ac_retval |
---|
1578 | |
---|
1579 | } # ac_fn_cxx_try_compile |
---|
1580 | |
---|
1581 | # ac_fn_f77_try_compile LINENO |
---|
1582 | # ---------------------------- |
---|
1583 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1584 | ac_fn_f77_try_compile () |
---|
1585 | { |
---|
1586 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1587 | rm -f conftest.$ac_objext |
---|
1588 | if { { ac_try="$ac_compile" |
---|
1589 | case "(($ac_try" in |
---|
1590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1591 | *) ac_try_echo=$ac_try;; |
---|
1592 | esac |
---|
1593 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1594 | $as_echo "$ac_try_echo"; } >&5 |
---|
1595 | (eval "$ac_compile") 2>conftest.err |
---|
1596 | ac_status=$? |
---|
1597 | if test -s conftest.err; then |
---|
1598 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1599 | cat conftest.er1 >&5 |
---|
1600 | mv -f conftest.er1 conftest.err |
---|
1601 | fi |
---|
1602 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1603 | test $ac_status = 0; } && { |
---|
1604 | test -z "$ac_f77_werror_flag" || |
---|
1605 | test ! -s conftest.err |
---|
1606 | } && test -s conftest.$ac_objext; then : |
---|
1607 | ac_retval=0 |
---|
1608 | else |
---|
1609 | $as_echo "$as_me: failed program was:" >&5 |
---|
1610 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1611 | |
---|
1612 | ac_retval=1 |
---|
1613 | fi |
---|
1614 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1615 | as_fn_set_status $ac_retval |
---|
1616 | |
---|
1617 | } # ac_fn_f77_try_compile |
---|
1618 | |
---|
1619 | # ac_fn_c_try_cpp LINENO |
---|
1620 | # ---------------------- |
---|
1621 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
1622 | ac_fn_c_try_cpp () |
---|
1623 | { |
---|
1624 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1625 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
1626 | case "(($ac_try" in |
---|
1627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1628 | *) ac_try_echo=$ac_try;; |
---|
1629 | esac |
---|
1630 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1631 | $as_echo "$ac_try_echo"; } >&5 |
---|
1632 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
1633 | ac_status=$? |
---|
1634 | if test -s conftest.err; then |
---|
1635 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1636 | cat conftest.er1 >&5 |
---|
1637 | mv -f conftest.er1 conftest.err |
---|
1638 | fi |
---|
1639 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1640 | test $ac_status = 0; } > conftest.i && { |
---|
1641 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
1642 | test ! -s conftest.err |
---|
1643 | }; then : |
---|
1644 | ac_retval=0 |
---|
1645 | else |
---|
1646 | $as_echo "$as_me: failed program was:" >&5 |
---|
1647 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1648 | |
---|
1649 | ac_retval=1 |
---|
1650 | fi |
---|
1651 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1652 | as_fn_set_status $ac_retval |
---|
1653 | |
---|
1654 | } # ac_fn_c_try_cpp |
---|
1655 | |
---|
1656 | # ac_fn_c_try_run LINENO |
---|
1657 | # ---------------------- |
---|
1658 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
---|
1659 | # that executables *can* be run. |
---|
1660 | ac_fn_c_try_run () |
---|
1661 | { |
---|
1662 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1663 | if { { ac_try="$ac_link" |
---|
1664 | case "(($ac_try" in |
---|
1665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1666 | *) ac_try_echo=$ac_try;; |
---|
1667 | esac |
---|
1668 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1669 | $as_echo "$ac_try_echo"; } >&5 |
---|
1670 | (eval "$ac_link") 2>&5 |
---|
1671 | ac_status=$? |
---|
1672 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1673 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
---|
1674 | { { case "(($ac_try" in |
---|
1675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1676 | *) ac_try_echo=$ac_try;; |
---|
1677 | esac |
---|
1678 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1679 | $as_echo "$ac_try_echo"; } >&5 |
---|
1680 | (eval "$ac_try") 2>&5 |
---|
1681 | ac_status=$? |
---|
1682 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1683 | test $ac_status = 0; }; }; then : |
---|
1684 | ac_retval=0 |
---|
1685 | else |
---|
1686 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
1687 | $as_echo "$as_me: failed program was:" >&5 |
---|
1688 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1689 | |
---|
1690 | ac_retval=$ac_status |
---|
1691 | fi |
---|
1692 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1693 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1694 | as_fn_set_status $ac_retval |
---|
1695 | |
---|
1696 | } # ac_fn_c_try_run |
---|
1697 | |
---|
1698 | # ac_fn_c_try_link LINENO |
---|
1699 | # ----------------------- |
---|
1700 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
1701 | ac_fn_c_try_link () |
---|
1702 | { |
---|
1703 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1704 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
1705 | if { { ac_try="$ac_link" |
---|
1706 | case "(($ac_try" in |
---|
1707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1708 | *) ac_try_echo=$ac_try;; |
---|
1709 | esac |
---|
1710 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1711 | $as_echo "$ac_try_echo"; } >&5 |
---|
1712 | (eval "$ac_link") 2>conftest.err |
---|
1713 | ac_status=$? |
---|
1714 | if test -s conftest.err; then |
---|
1715 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1716 | cat conftest.er1 >&5 |
---|
1717 | mv -f conftest.er1 conftest.err |
---|
1718 | fi |
---|
1719 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1720 | test $ac_status = 0; } && { |
---|
1721 | test -z "$ac_c_werror_flag" || |
---|
1722 | test ! -s conftest.err |
---|
1723 | } && test -s conftest$ac_exeext && { |
---|
1724 | test "$cross_compiling" = yes || |
---|
1725 | test -x conftest$ac_exeext |
---|
1726 | }; then : |
---|
1727 | ac_retval=0 |
---|
1728 | else |
---|
1729 | $as_echo "$as_me: failed program was:" >&5 |
---|
1730 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1731 | |
---|
1732 | ac_retval=1 |
---|
1733 | fi |
---|
1734 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
1735 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
1736 | # interfere with the next link command; also delete a directory that is |
---|
1737 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
1738 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1739 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1740 | as_fn_set_status $ac_retval |
---|
1741 | |
---|
1742 | } # ac_fn_c_try_link |
---|
1743 | |
---|
1744 | # ac_fn_c_check_func LINENO FUNC VAR |
---|
1745 | # ---------------------------------- |
---|
1746 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
---|
1747 | ac_fn_c_check_func () |
---|
1748 | { |
---|
1749 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1751 | $as_echo_n "checking for $2... " >&6; } |
---|
1752 | if eval \${$3+:} false; then : |
---|
1753 | $as_echo_n "(cached) " >&6 |
---|
1754 | else |
---|
1755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1756 | /* end confdefs.h. */ |
---|
1757 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
---|
1758 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
1759 | #define $2 innocuous_$2 |
---|
1760 | |
---|
1761 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1762 | which can conflict with char $2 (); below. |
---|
1763 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
1764 | <limits.h> exists even on freestanding compilers. */ |
---|
1765 | |
---|
1766 | #ifdef __STDC__ |
---|
1767 | # include <limits.h> |
---|
1768 | #else |
---|
1769 | # include <assert.h> |
---|
1770 | #endif |
---|
1771 | |
---|
1772 | #undef $2 |
---|
1773 | |
---|
1774 | /* Override any GCC internal prototype to avoid an error. |
---|
1775 | Use char because int might match the return type of a GCC |
---|
1776 | builtin and then its argument prototype would still apply. */ |
---|
1777 | #ifdef __cplusplus |
---|
1778 | extern "C" |
---|
1779 | #endif |
---|
1780 | char $2 (); |
---|
1781 | /* The GNU C library defines this for functions which it implements |
---|
1782 | to always fail with ENOSYS. Some functions are actually named |
---|
1783 | something starting with __ and the normal name is an alias. */ |
---|
1784 | #if defined __stub_$2 || defined __stub___$2 |
---|
1785 | choke me |
---|
1786 | #endif |
---|
1787 | |
---|
1788 | int |
---|
1789 | main () |
---|
1790 | { |
---|
1791 | return $2 (); |
---|
1792 | ; |
---|
1793 | return 0; |
---|
1794 | } |
---|
1795 | _ACEOF |
---|
1796 | if ac_fn_c_try_link "$LINENO"; then : |
---|
1797 | eval "$3=yes" |
---|
1798 | else |
---|
1799 | eval "$3=no" |
---|
1800 | fi |
---|
1801 | rm -f core conftest.err conftest.$ac_objext \ |
---|
1802 | conftest$ac_exeext conftest.$ac_ext |
---|
1803 | fi |
---|
1804 | eval ac_res=\$$3 |
---|
1805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1806 | $as_echo "$ac_res" >&6; } |
---|
1807 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1808 | |
---|
1809 | } # ac_fn_c_check_func |
---|
1810 | |
---|
1811 | # ac_fn_cxx_try_cpp LINENO |
---|
1812 | # ------------------------ |
---|
1813 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
1814 | ac_fn_cxx_try_cpp () |
---|
1815 | { |
---|
1816 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1817 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
1818 | case "(($ac_try" in |
---|
1819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1820 | *) ac_try_echo=$ac_try;; |
---|
1821 | esac |
---|
1822 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1823 | $as_echo "$ac_try_echo"; } >&5 |
---|
1824 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
1825 | ac_status=$? |
---|
1826 | if test -s conftest.err; then |
---|
1827 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1828 | cat conftest.er1 >&5 |
---|
1829 | mv -f conftest.er1 conftest.err |
---|
1830 | fi |
---|
1831 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1832 | test $ac_status = 0; } > conftest.i && { |
---|
1833 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
---|
1834 | test ! -s conftest.err |
---|
1835 | }; then : |
---|
1836 | ac_retval=0 |
---|
1837 | else |
---|
1838 | $as_echo "$as_me: failed program was:" >&5 |
---|
1839 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1840 | |
---|
1841 | ac_retval=1 |
---|
1842 | fi |
---|
1843 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1844 | as_fn_set_status $ac_retval |
---|
1845 | |
---|
1846 | } # ac_fn_cxx_try_cpp |
---|
1847 | |
---|
1848 | # ac_fn_cxx_try_link LINENO |
---|
1849 | # ------------------------- |
---|
1850 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
1851 | ac_fn_cxx_try_link () |
---|
1852 | { |
---|
1853 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1854 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
1855 | if { { ac_try="$ac_link" |
---|
1856 | case "(($ac_try" in |
---|
1857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1858 | *) ac_try_echo=$ac_try;; |
---|
1859 | esac |
---|
1860 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1861 | $as_echo "$ac_try_echo"; } >&5 |
---|
1862 | (eval "$ac_link") 2>conftest.err |
---|
1863 | ac_status=$? |
---|
1864 | if test -s conftest.err; then |
---|
1865 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1866 | cat conftest.er1 >&5 |
---|
1867 | mv -f conftest.er1 conftest.err |
---|
1868 | fi |
---|
1869 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1870 | test $ac_status = 0; } && { |
---|
1871 | test -z "$ac_cxx_werror_flag" || |
---|
1872 | test ! -s conftest.err |
---|
1873 | } && test -s conftest$ac_exeext && { |
---|
1874 | test "$cross_compiling" = yes || |
---|
1875 | test -x conftest$ac_exeext |
---|
1876 | }; then : |
---|
1877 | ac_retval=0 |
---|
1878 | else |
---|
1879 | $as_echo "$as_me: failed program was:" >&5 |
---|
1880 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1881 | |
---|
1882 | ac_retval=1 |
---|
1883 | fi |
---|
1884 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
1885 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
1886 | # interfere with the next link command; also delete a directory that is |
---|
1887 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
1888 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1889 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1890 | as_fn_set_status $ac_retval |
---|
1891 | |
---|
1892 | } # ac_fn_cxx_try_link |
---|
1893 | |
---|
1894 | # ac_fn_cxx_try_run LINENO |
---|
1895 | # ------------------------ |
---|
1896 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
---|
1897 | # that executables *can* be run. |
---|
1898 | ac_fn_cxx_try_run () |
---|
1899 | { |
---|
1900 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1901 | if { { ac_try="$ac_link" |
---|
1902 | case "(($ac_try" in |
---|
1903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1904 | *) ac_try_echo=$ac_try;; |
---|
1905 | esac |
---|
1906 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1907 | $as_echo "$ac_try_echo"; } >&5 |
---|
1908 | (eval "$ac_link") 2>&5 |
---|
1909 | ac_status=$? |
---|
1910 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1911 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
---|
1912 | { { case "(($ac_try" in |
---|
1913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1914 | *) ac_try_echo=$ac_try;; |
---|
1915 | esac |
---|
1916 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1917 | $as_echo "$ac_try_echo"; } >&5 |
---|
1918 | (eval "$ac_try") 2>&5 |
---|
1919 | ac_status=$? |
---|
1920 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1921 | test $ac_status = 0; }; }; then : |
---|
1922 | ac_retval=0 |
---|
1923 | else |
---|
1924 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
1925 | $as_echo "$as_me: failed program was:" >&5 |
---|
1926 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1927 | |
---|
1928 | ac_retval=$ac_status |
---|
1929 | fi |
---|
1930 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1931 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1932 | as_fn_set_status $ac_retval |
---|
1933 | |
---|
1934 | } # ac_fn_cxx_try_run |
---|
1935 | |
---|
1936 | # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES |
---|
1937 | # --------------------------------------------------------- |
---|
1938 | # Tests whether HEADER exists and can be compiled using the include files in |
---|
1939 | # INCLUDES, setting the cache variable VAR accordingly. |
---|
1940 | ac_fn_cxx_check_header_compile () |
---|
1941 | { |
---|
1942 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1944 | $as_echo_n "checking for $2... " >&6; } |
---|
1945 | if eval \${$3+:} false; then : |
---|
1946 | $as_echo_n "(cached) " >&6 |
---|
1947 | else |
---|
1948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1949 | /* end confdefs.h. */ |
---|
1950 | $4 |
---|
1951 | #include <$2> |
---|
1952 | _ACEOF |
---|
1953 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
1954 | eval "$3=yes" |
---|
1955 | else |
---|
1956 | eval "$3=no" |
---|
1957 | fi |
---|
1958 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1959 | fi |
---|
1960 | eval ac_res=\$$3 |
---|
1961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1962 | $as_echo "$ac_res" >&6; } |
---|
1963 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1964 | |
---|
1965 | } # ac_fn_cxx_check_header_compile |
---|
1966 | |
---|
1967 | # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES |
---|
1968 | # ---------------------------------------------- |
---|
1969 | # Tries to find the compile-time value of EXPR in a program that includes |
---|
1970 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
---|
1971 | # computed |
---|
1972 | ac_fn_cxx_compute_int () |
---|
1973 | { |
---|
1974 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1975 | if test "$cross_compiling" = yes; then |
---|
1976 | # Depending upon the size, compute the lo and hi bounds. |
---|
1977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1978 | /* end confdefs.h. */ |
---|
1979 | $4 |
---|
1980 | int |
---|
1981 | main () |
---|
1982 | { |
---|
1983 | static int test_array [1 - 2 * !(($2) >= 0)]; |
---|
1984 | test_array [0] = 0; |
---|
1985 | return test_array [0]; |
---|
1986 | |
---|
1987 | ; |
---|
1988 | return 0; |
---|
1989 | } |
---|
1990 | _ACEOF |
---|
1991 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
1992 | ac_lo=0 ac_mid=0 |
---|
1993 | while :; do |
---|
1994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1995 | /* end confdefs.h. */ |
---|
1996 | $4 |
---|
1997 | int |
---|
1998 | main () |
---|
1999 | { |
---|
2000 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
---|
2001 | test_array [0] = 0; |
---|
2002 | return test_array [0]; |
---|
2003 | |
---|
2004 | ; |
---|
2005 | return 0; |
---|
2006 | } |
---|
2007 | _ACEOF |
---|
2008 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
2009 | ac_hi=$ac_mid; break |
---|
2010 | else |
---|
2011 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
---|
2012 | if test $ac_lo -le $ac_mid; then |
---|
2013 | ac_lo= ac_hi= |
---|
2014 | break |
---|
2015 | fi |
---|
2016 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
---|
2017 | fi |
---|
2018 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2019 | done |
---|
2020 | else |
---|
2021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2022 | /* end confdefs.h. */ |
---|
2023 | $4 |
---|
2024 | int |
---|
2025 | main () |
---|
2026 | { |
---|
2027 | static int test_array [1 - 2 * !(($2) < 0)]; |
---|
2028 | test_array [0] = 0; |
---|
2029 | return test_array [0]; |
---|
2030 | |
---|
2031 | ; |
---|
2032 | return 0; |
---|
2033 | } |
---|
2034 | _ACEOF |
---|
2035 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
2036 | ac_hi=-1 ac_mid=-1 |
---|
2037 | while :; do |
---|
2038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2039 | /* end confdefs.h. */ |
---|
2040 | $4 |
---|
2041 | int |
---|
2042 | main () |
---|
2043 | { |
---|
2044 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
---|
2045 | test_array [0] = 0; |
---|
2046 | return test_array [0]; |
---|
2047 | |
---|
2048 | ; |
---|
2049 | return 0; |
---|
2050 | } |
---|
2051 | _ACEOF |
---|
2052 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
2053 | ac_lo=$ac_mid; break |
---|
2054 | else |
---|
2055 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
---|
2056 | if test $ac_mid -le $ac_hi; then |
---|
2057 | ac_lo= ac_hi= |
---|
2058 | break |
---|
2059 | fi |
---|
2060 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
---|
2061 | fi |
---|
2062 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2063 | done |
---|
2064 | else |
---|
2065 | ac_lo= ac_hi= |
---|
2066 | fi |
---|
2067 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2068 | fi |
---|
2069 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2070 | # Binary search between lo and hi bounds. |
---|
2071 | while test "x$ac_lo" != "x$ac_hi"; do |
---|
2072 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
---|
2073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2074 | /* end confdefs.h. */ |
---|
2075 | $4 |
---|
2076 | int |
---|
2077 | main () |
---|
2078 | { |
---|
2079 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
---|
2080 | test_array [0] = 0; |
---|
2081 | return test_array [0]; |
---|
2082 | |
---|
2083 | ; |
---|
2084 | return 0; |
---|
2085 | } |
---|
2086 | _ACEOF |
---|
2087 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
2088 | ac_hi=$ac_mid |
---|
2089 | else |
---|
2090 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
---|
2091 | fi |
---|
2092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2093 | done |
---|
2094 | case $ac_lo in #(( |
---|
2095 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
---|
2096 | '') ac_retval=1 ;; |
---|
2097 | esac |
---|
2098 | else |
---|
2099 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2100 | /* end confdefs.h. */ |
---|
2101 | $4 |
---|
2102 | static long int longval () { return $2; } |
---|
2103 | static unsigned long int ulongval () { return $2; } |
---|
2104 | #include <stdio.h> |
---|
2105 | #include <stdlib.h> |
---|
2106 | int |
---|
2107 | main () |
---|
2108 | { |
---|
2109 | |
---|
2110 | FILE *f = fopen ("conftest.val", "w"); |
---|
2111 | if (! f) |
---|
2112 | return 1; |
---|
2113 | if (($2) < 0) |
---|
2114 | { |
---|
2115 | long int i = longval (); |
---|
2116 | if (i != ($2)) |
---|
2117 | return 1; |
---|
2118 | fprintf (f, "%ld", i); |
---|
2119 | } |
---|
2120 | else |
---|
2121 | { |
---|
2122 | unsigned long int i = ulongval (); |
---|
2123 | if (i != ($2)) |
---|
2124 | return 1; |
---|
2125 | fprintf (f, "%lu", i); |
---|
2126 | } |
---|
2127 | /* Do not output a trailing newline, as this causes \r\n confusion |
---|
2128 | on some platforms. */ |
---|
2129 | return ferror (f) || fclose (f) != 0; |
---|
2130 | |
---|
2131 | ; |
---|
2132 | return 0; |
---|
2133 | } |
---|
2134 | _ACEOF |
---|
2135 | if ac_fn_cxx_try_run "$LINENO"; then : |
---|
2136 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
---|
2137 | else |
---|
2138 | ac_retval=1 |
---|
2139 | fi |
---|
2140 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
2141 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
2142 | rm -f conftest.val |
---|
2143 | |
---|
2144 | fi |
---|
2145 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2146 | as_fn_set_status $ac_retval |
---|
2147 | |
---|
2148 | } # ac_fn_cxx_compute_int |
---|
2149 | |
---|
2150 | # ac_fn_cxx_check_func LINENO FUNC VAR |
---|
2151 | # ------------------------------------ |
---|
2152 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
---|
2153 | ac_fn_cxx_check_func () |
---|
2154 | { |
---|
2155 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
2156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
2157 | $as_echo_n "checking for $2... " >&6; } |
---|
2158 | if eval \${$3+:} false; then : |
---|
2159 | $as_echo_n "(cached) " >&6 |
---|
2160 | else |
---|
2161 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2162 | /* end confdefs.h. */ |
---|
2163 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
---|
2164 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
2165 | #define $2 innocuous_$2 |
---|
2166 | |
---|
2167 | /* System header to define __stub macros and hopefully few prototypes, |
---|
2168 | which can conflict with char $2 (); below. |
---|
2169 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
2170 | <limits.h> exists even on freestanding compilers. */ |
---|
2171 | |
---|
2172 | #ifdef __STDC__ |
---|
2173 | # include <limits.h> |
---|
2174 | #else |
---|
2175 | # include <assert.h> |
---|
2176 | #endif |
---|
2177 | |
---|
2178 | #undef $2 |
---|
2179 | |
---|
2180 | /* Override any GCC internal prototype to avoid an error. |
---|
2181 | Use char because int might match the return type of a GCC |
---|
2182 | builtin and then its argument prototype would still apply. */ |
---|
2183 | #ifdef __cplusplus |
---|
2184 | extern "C" |
---|
2185 | #endif |
---|
2186 | char $2 (); |
---|
2187 | /* The GNU C library defines this for functions which it implements |
---|
2188 | to always fail with ENOSYS. Some functions are actually named |
---|
2189 | something starting with __ and the normal name is an alias. */ |
---|
2190 | #if defined __stub_$2 || defined __stub___$2 |
---|
2191 | choke me |
---|
2192 | #endif |
---|
2193 | |
---|
2194 | int |
---|
2195 | main () |
---|
2196 | { |
---|
2197 | return $2 (); |
---|
2198 | ; |
---|
2199 | return 0; |
---|
2200 | } |
---|
2201 | _ACEOF |
---|
2202 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
2203 | eval "$3=yes" |
---|
2204 | else |
---|
2205 | eval "$3=no" |
---|
2206 | fi |
---|
2207 | rm -f core conftest.err conftest.$ac_objext \ |
---|
2208 | conftest$ac_exeext conftest.$ac_ext |
---|
2209 | fi |
---|
2210 | eval ac_res=\$$3 |
---|
2211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
2212 | $as_echo "$ac_res" >&6; } |
---|
2213 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2214 | |
---|
2215 | } # ac_fn_cxx_check_func |
---|
2216 | |
---|
2217 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
---|
2218 | # --------------------------------------------------------- |
---|
2219 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
---|
2220 | # the include files in INCLUDES and setting the cache variable VAR |
---|
2221 | # accordingly. |
---|
2222 | ac_fn_cxx_check_header_mongrel () |
---|
2223 | { |
---|
2224 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
2225 | if eval \${$3+:} false; then : |
---|
2226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
2227 | $as_echo_n "checking for $2... " >&6; } |
---|
2228 | if eval \${$3+:} false; then : |
---|
2229 | $as_echo_n "(cached) " >&6 |
---|
2230 | fi |
---|
2231 | eval ac_res=\$$3 |
---|
2232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
2233 | $as_echo "$ac_res" >&6; } |
---|
2234 | else |
---|
2235 | # Is the header compilable? |
---|
2236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
---|
2237 | $as_echo_n "checking $2 usability... " >&6; } |
---|
2238 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2239 | /* end confdefs.h. */ |
---|
2240 | $4 |
---|
2241 | #include <$2> |
---|
2242 | _ACEOF |
---|
2243 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
2244 | ac_header_compiler=yes |
---|
2245 | else |
---|
2246 | ac_header_compiler=no |
---|
2247 | fi |
---|
2248 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
---|
2250 | $as_echo "$ac_header_compiler" >&6; } |
---|
2251 | |
---|
2252 | # Is the header present? |
---|
2253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
---|
2254 | $as_echo_n "checking $2 presence... " >&6; } |
---|
2255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2256 | /* end confdefs.h. */ |
---|
2257 | #include <$2> |
---|
2258 | _ACEOF |
---|
2259 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
2260 | ac_header_preproc=yes |
---|
2261 | else |
---|
2262 | ac_header_preproc=no |
---|
2263 | fi |
---|
2264 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
2265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
---|
2266 | $as_echo "$ac_header_preproc" >&6; } |
---|
2267 | |
---|
2268 | # So? What about this header? |
---|
2269 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( |
---|
2270 | yes:no: ) |
---|
2271 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
2272 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
2273 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
2274 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
2275 | ;; |
---|
2276 | no:yes:* ) |
---|
2277 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
---|
2278 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
---|
2279 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
---|
2280 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
---|
2281 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
---|
2282 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
---|
2283 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
---|
2284 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
2285 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
2286 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
2287 | ( $as_echo "## ----------------------------------- ## |
---|
2288 | ## Report this to rappture@nanohub.org ## |
---|
2289 | ## ----------------------------------- ##" |
---|
2290 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
---|
2291 | ;; |
---|
2292 | esac |
---|
2293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
2294 | $as_echo_n "checking for $2... " >&6; } |
---|
2295 | if eval \${$3+:} false; then : |
---|
2296 | $as_echo_n "(cached) " >&6 |
---|
2297 | else |
---|
2298 | eval "$3=\$ac_header_compiler" |
---|
2299 | fi |
---|
2300 | eval ac_res=\$$3 |
---|
2301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
2302 | $as_echo "$ac_res" >&6; } |
---|
2303 | fi |
---|
2304 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2305 | |
---|
2306 | } # ac_fn_cxx_check_header_mongrel |
---|
2307 | cat >config.log <<_ACEOF |
---|
2308 | This file contains any messages produced by compilers while |
---|
2309 | running configure, to aid debugging if configure makes a mistake. |
---|
2310 | |
---|
2311 | It was created by Rappture $as_me 1.5, which was |
---|
2312 | generated by GNU Autoconf 2.69. Invocation command line was |
---|
2313 | |
---|
2314 | $ $0 $@ |
---|
2315 | |
---|
2316 | _ACEOF |
---|
2317 | exec 5>>config.log |
---|
2318 | { |
---|
2319 | cat <<_ASUNAME |
---|
2320 | ## --------- ## |
---|
2321 | ## Platform. ## |
---|
2322 | ## --------- ## |
---|
2323 | |
---|
2324 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
2325 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
2326 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
2327 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
2328 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
2329 | |
---|
2330 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
2331 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
2332 | |
---|
2333 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
2334 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
2335 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
2336 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
2337 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
2338 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
2339 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
2340 | |
---|
2341 | _ASUNAME |
---|
2342 | |
---|
2343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2344 | for as_dir in $PATH |
---|
2345 | do |
---|
2346 | IFS=$as_save_IFS |
---|
2347 | test -z "$as_dir" && as_dir=. |
---|
2348 | $as_echo "PATH: $as_dir" |
---|
2349 | done |
---|
2350 | IFS=$as_save_IFS |
---|
2351 | |
---|
2352 | } >&5 |
---|
2353 | |
---|
2354 | cat >&5 <<_ACEOF |
---|
2355 | |
---|
2356 | |
---|
2357 | ## ----------- ## |
---|
2358 | ## Core tests. ## |
---|
2359 | ## ----------- ## |
---|
2360 | |
---|
2361 | _ACEOF |
---|
2362 | |
---|
2363 | |
---|
2364 | # Keep a trace of the command line. |
---|
2365 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
2366 | # Strip out --silent because we don't want to record it for future runs. |
---|
2367 | # Also quote any args containing shell meta-characters. |
---|
2368 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
2369 | ac_configure_args= |
---|
2370 | ac_configure_args0= |
---|
2371 | ac_configure_args1= |
---|
2372 | ac_must_keep_next=false |
---|
2373 | for ac_pass in 1 2 |
---|
2374 | do |
---|
2375 | for ac_arg |
---|
2376 | do |
---|
2377 | case $ac_arg in |
---|
2378 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
2379 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
2380 | | -silent | --silent | --silen | --sile | --sil) |
---|
2381 | continue ;; |
---|
2382 | *\'*) |
---|
2383 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2384 | esac |
---|
2385 | case $ac_pass in |
---|
2386 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
---|
2387 | 2) |
---|
2388 | as_fn_append ac_configure_args1 " '$ac_arg'" |
---|
2389 | if test $ac_must_keep_next = true; then |
---|
2390 | ac_must_keep_next=false # Got value, back to normal. |
---|
2391 | else |
---|
2392 | case $ac_arg in |
---|
2393 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
2394 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
2395 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
2396 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
2397 | case "$ac_configure_args0 " in |
---|
2398 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
2399 | esac |
---|
2400 | ;; |
---|
2401 | -* ) ac_must_keep_next=true ;; |
---|
2402 | esac |
---|
2403 | fi |
---|
2404 | as_fn_append ac_configure_args " '$ac_arg'" |
---|
2405 | ;; |
---|
2406 | esac |
---|
2407 | done |
---|
2408 | done |
---|
2409 | { ac_configure_args0=; unset ac_configure_args0;} |
---|
2410 | { ac_configure_args1=; unset ac_configure_args1;} |
---|
2411 | |
---|
2412 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
2413 | # config.log. We remove comments because anyway the quotes in there |
---|
2414 | # would cause problems or look ugly. |
---|
2415 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
2416 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
2417 | trap 'exit_status=$? |
---|
2418 | # Save into config.log some information that might help in debugging. |
---|
2419 | { |
---|
2420 | echo |
---|
2421 | |
---|
2422 | $as_echo "## ---------------- ## |
---|
2423 | ## Cache variables. ## |
---|
2424 | ## ---------------- ##" |
---|
2425 | echo |
---|
2426 | # The following way of writing the cache mishandles newlines in values, |
---|
2427 | ( |
---|
2428 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
2429 | eval ac_val=\$$ac_var |
---|
2430 | case $ac_val in #( |
---|
2431 | *${as_nl}*) |
---|
2432 | case $ac_var in #( |
---|
2433 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
2434 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
2435 | esac |
---|
2436 | case $ac_var in #( |
---|
2437 | _ | IFS | as_nl) ;; #( |
---|
2438 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
2439 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
2440 | esac ;; |
---|
2441 | esac |
---|
2442 | done |
---|
2443 | (set) 2>&1 | |
---|
2444 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
2445 | *${as_nl}ac_space=\ *) |
---|
2446 | sed -n \ |
---|
2447 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
2448 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
2449 | ;; #( |
---|
2450 | *) |
---|
2451 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
2452 | ;; |
---|
2453 | esac | |
---|
2454 | sort |
---|
2455 | ) |
---|
2456 | echo |
---|
2457 | |
---|
2458 | $as_echo "## ----------------- ## |
---|
2459 | ## Output variables. ## |
---|
2460 | ## ----------------- ##" |
---|
2461 | echo |
---|
2462 | for ac_var in $ac_subst_vars |
---|
2463 | do |
---|
2464 | eval ac_val=\$$ac_var |
---|
2465 | case $ac_val in |
---|
2466 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2467 | esac |
---|
2468 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2469 | done | sort |
---|
2470 | echo |
---|
2471 | |
---|
2472 | if test -n "$ac_subst_files"; then |
---|
2473 | $as_echo "## ------------------- ## |
---|
2474 | ## File substitutions. ## |
---|
2475 | ## ------------------- ##" |
---|
2476 | echo |
---|
2477 | for ac_var in $ac_subst_files |
---|
2478 | do |
---|
2479 | eval ac_val=\$$ac_var |
---|
2480 | case $ac_val in |
---|
2481 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2482 | esac |
---|
2483 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2484 | done | sort |
---|
2485 | echo |
---|
2486 | fi |
---|
2487 | |
---|
2488 | if test -s confdefs.h; then |
---|
2489 | $as_echo "## ----------- ## |
---|
2490 | ## confdefs.h. ## |
---|
2491 | ## ----------- ##" |
---|
2492 | echo |
---|
2493 | cat confdefs.h |
---|
2494 | echo |
---|
2495 | fi |
---|
2496 | test "$ac_signal" != 0 && |
---|
2497 | $as_echo "$as_me: caught signal $ac_signal" |
---|
2498 | $as_echo "$as_me: exit $exit_status" |
---|
2499 | } >&5 |
---|
2500 | rm -f core *.core core.conftest.* && |
---|
2501 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
2502 | exit $exit_status |
---|
2503 | ' 0 |
---|
2504 | for ac_signal in 1 2 13 15; do |
---|
2505 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
---|
2506 | done |
---|
2507 | ac_signal=0 |
---|
2508 | |
---|
2509 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
2510 | rm -f -r conftest* confdefs.h |
---|
2511 | |
---|
2512 | $as_echo "/* confdefs.h */" > confdefs.h |
---|
2513 | |
---|
2514 | # Predefined preprocessor variables. |
---|
2515 | |
---|
2516 | cat >>confdefs.h <<_ACEOF |
---|
2517 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
2518 | _ACEOF |
---|
2519 | |
---|
2520 | cat >>confdefs.h <<_ACEOF |
---|
2521 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
2522 | _ACEOF |
---|
2523 | |
---|
2524 | cat >>confdefs.h <<_ACEOF |
---|
2525 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
2526 | _ACEOF |
---|
2527 | |
---|
2528 | cat >>confdefs.h <<_ACEOF |
---|
2529 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
2530 | _ACEOF |
---|
2531 | |
---|
2532 | cat >>confdefs.h <<_ACEOF |
---|
2533 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
2534 | _ACEOF |
---|
2535 | |
---|
2536 | cat >>confdefs.h <<_ACEOF |
---|
2537 | #define PACKAGE_URL "$PACKAGE_URL" |
---|
2538 | _ACEOF |
---|
2539 | |
---|
2540 | |
---|
2541 | # Let the site file select an alternate cache file if it wants to. |
---|
2542 | # Prefer an explicitly selected file to automatically selected ones. |
---|
2543 | ac_site_file1=NONE |
---|
2544 | ac_site_file2=NONE |
---|
2545 | if test -n "$CONFIG_SITE"; then |
---|
2546 | # We do not want a PATH search for config.site. |
---|
2547 | case $CONFIG_SITE in #(( |
---|
2548 | -*) ac_site_file1=./$CONFIG_SITE;; |
---|
2549 | */*) ac_site_file1=$CONFIG_SITE;; |
---|
2550 | *) ac_site_file1=./$CONFIG_SITE;; |
---|
2551 | esac |
---|
2552 | elif test "x$prefix" != xNONE; then |
---|
2553 | ac_site_file1=$prefix/share/config.site |
---|
2554 | ac_site_file2=$prefix/etc/config.site |
---|
2555 | else |
---|
2556 | ac_site_file1=$ac_default_prefix/share/config.site |
---|
2557 | ac_site_file2=$ac_default_prefix/etc/config.site |
---|
2558 | fi |
---|
2559 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
---|
2560 | do |
---|
2561 | test "x$ac_site_file" = xNONE && continue |
---|
2562 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
---|
2563 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
---|
2564 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
2565 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
2566 | . "$ac_site_file" \ |
---|
2567 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2568 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2569 | as_fn_error $? "failed to load site script $ac_site_file |
---|
2570 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2571 | fi |
---|
2572 | done |
---|
2573 | |
---|
2574 | if test -r "$cache_file"; then |
---|
2575 | # Some versions of bash will fail to source /dev/null (special files |
---|
2576 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
---|
2577 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
---|
2578 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
---|
2579 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
---|
2580 | case $cache_file in |
---|
2581 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
2582 | *) . "./$cache_file";; |
---|
2583 | esac |
---|
2584 | fi |
---|
2585 | else |
---|
2586 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
---|
2587 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
---|
2588 | >$cache_file |
---|
2589 | fi |
---|
2590 | |
---|
2591 | # Check that the precious variables saved in the cache have kept the same |
---|
2592 | # value. |
---|
2593 | ac_cache_corrupted=false |
---|
2594 | for ac_var in $ac_precious_vars; do |
---|
2595 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
2596 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
2597 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
2598 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
2599 | case $ac_old_set,$ac_new_set in |
---|
2600 | set,) |
---|
2601 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
2602 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
2603 | ac_cache_corrupted=: ;; |
---|
2604 | ,set) |
---|
2605 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
---|
2606 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
2607 | ac_cache_corrupted=: ;; |
---|
2608 | ,);; |
---|
2609 | *) |
---|
2610 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
2611 | # differences in whitespace do not lead to failure. |
---|
2612 | ac_old_val_w=`echo x $ac_old_val` |
---|
2613 | ac_new_val_w=`echo x $ac_new_val` |
---|
2614 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
---|
2615 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
2616 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
2617 | ac_cache_corrupted=: |
---|
2618 | else |
---|
2619 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
---|
2620 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
---|
2621 | eval $ac_var=\$ac_old_val |
---|
2622 | fi |
---|
2623 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
---|
2624 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
---|
2625 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
---|
2626 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
---|
2627 | fi;; |
---|
2628 | esac |
---|
2629 | # Pass precious variables to config.status. |
---|
2630 | if test "$ac_new_set" = set; then |
---|
2631 | case $ac_new_val in |
---|
2632 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2633 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
2634 | esac |
---|
2635 | case " $ac_configure_args " in |
---|
2636 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
2637 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
---|
2638 | esac |
---|
2639 | fi |
---|
2640 | done |
---|
2641 | if $ac_cache_corrupted; then |
---|
2642 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2643 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2644 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
---|
2645 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
2646 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
---|
2647 | fi |
---|
2648 | ## -------------------- ## |
---|
2649 | ## Main body of script. ## |
---|
2650 | ## -------------------- ## |
---|
2651 | |
---|
2652 | ac_ext=c |
---|
2653 | ac_cpp='$CPP $CPPFLAGS' |
---|
2654 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2655 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2656 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2657 | |
---|
2658 | |
---|
2659 | ac_aux_dir= |
---|
2660 | for ac_dir in cf "$srcdir"/cf; do |
---|
2661 | if test -f "$ac_dir/install-sh"; then |
---|
2662 | ac_aux_dir=$ac_dir |
---|
2663 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
2664 | break |
---|
2665 | elif test -f "$ac_dir/install.sh"; then |
---|
2666 | ac_aux_dir=$ac_dir |
---|
2667 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
2668 | break |
---|
2669 | elif test -f "$ac_dir/shtool"; then |
---|
2670 | ac_aux_dir=$ac_dir |
---|
2671 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
2672 | break |
---|
2673 | fi |
---|
2674 | done |
---|
2675 | if test -z "$ac_aux_dir"; then |
---|
2676 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in cf \"$srcdir\"/cf" "$LINENO" 5 |
---|
2677 | fi |
---|
2678 | |
---|
2679 | # These three variables are undocumented and unsupported, |
---|
2680 | # and are intended to be withdrawn in a future Autoconf release. |
---|
2681 | # They can cause serious problems if a builder's source tree is in a directory |
---|
2682 | # whose full name contains unusual characters. |
---|
2683 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
---|
2684 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
---|
2685 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
---|
2686 | |
---|
2687 | |
---|
2688 | ac_config_headers="$ac_config_headers config.h" |
---|
2689 | |
---|
2690 | |
---|
2691 | # Find a good install program. We prefer a C program (faster), |
---|
2692 | # so one script is as good as another. But avoid the broken or |
---|
2693 | # incompatible versions: |
---|
2694 | # SysV /etc/install, /usr/sbin/install |
---|
2695 | # SunOS /usr/etc/install |
---|
2696 | # IRIX /sbin/install |
---|
2697 | # AIX /bin/install |
---|
2698 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
2699 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
2700 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
2701 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
2702 | # OS/2's system install, which has a completely different semantic |
---|
2703 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
2704 | # Reject install programs that cannot install multiple files. |
---|
2705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
---|
2706 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
---|
2707 | if test -z "$INSTALL"; then |
---|
2708 | if ${ac_cv_path_install+:} false; then : |
---|
2709 | $as_echo_n "(cached) " >&6 |
---|
2710 | else |
---|
2711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2712 | for as_dir in $PATH |
---|
2713 | do |
---|
2714 | IFS=$as_save_IFS |
---|
2715 | test -z "$as_dir" && as_dir=. |
---|
2716 | # Account for people who put trailing slashes in PATH elements. |
---|
2717 | case $as_dir/ in #(( |
---|
2718 | ./ | .// | /[cC]/* | \ |
---|
2719 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
2720 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
---|
2721 | /usr/ucb/* ) ;; |
---|
2722 | *) |
---|
2723 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
2724 | # Don't use installbsd from OSF since it installs stuff as root |
---|
2725 | # by default. |
---|
2726 | for ac_prog in ginstall scoinst install; do |
---|
2727 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2728 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
2729 | if test $ac_prog = install && |
---|
2730 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2731 | # AIX install. It has an incompatible calling convention. |
---|
2732 | : |
---|
2733 | elif test $ac_prog = install && |
---|
2734 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2735 | # program-specific install script used by HP pwplus--don't use. |
---|
2736 | : |
---|
2737 | else |
---|
2738 | rm -rf conftest.one conftest.two conftest.dir |
---|
2739 | echo one > conftest.one |
---|
2740 | echo two > conftest.two |
---|
2741 | mkdir conftest.dir |
---|
2742 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
---|
2743 | test -s conftest.one && test -s conftest.two && |
---|
2744 | test -s conftest.dir/conftest.one && |
---|
2745 | test -s conftest.dir/conftest.two |
---|
2746 | then |
---|
2747 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
2748 | break 3 |
---|
2749 | fi |
---|
2750 | fi |
---|
2751 | fi |
---|
2752 | done |
---|
2753 | done |
---|
2754 | ;; |
---|
2755 | esac |
---|
2756 | |
---|
2757 | done |
---|
2758 | IFS=$as_save_IFS |
---|
2759 | |
---|
2760 | rm -rf conftest.one conftest.two conftest.dir |
---|
2761 | |
---|
2762 | fi |
---|
2763 | if test "${ac_cv_path_install+set}" = set; then |
---|
2764 | INSTALL=$ac_cv_path_install |
---|
2765 | else |
---|
2766 | # As a last resort, use the slow shell script. Don't cache a |
---|
2767 | # value for INSTALL within a source directory, because that will |
---|
2768 | # break other packages using the cache if that directory is |
---|
2769 | # removed, or if the value is a relative name. |
---|
2770 | INSTALL=$ac_install_sh |
---|
2771 | fi |
---|
2772 | fi |
---|
2773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
---|
2774 | $as_echo "$INSTALL" >&6; } |
---|
2775 | |
---|
2776 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
2777 | # It thinks the first close brace ends the variable substitution. |
---|
2778 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
2779 | |
---|
2780 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
2781 | |
---|
2782 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
2783 | |
---|
2784 | if test -n "$ac_tool_prefix"; then |
---|
2785 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
2786 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
2787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2788 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2789 | if ${ac_cv_prog_RANLIB+:} false; then : |
---|
2790 | $as_echo_n "(cached) " >&6 |
---|
2791 | else |
---|
2792 | if test -n "$RANLIB"; then |
---|
2793 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
2794 | else |
---|
2795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2796 | for as_dir in $PATH |
---|
2797 | do |
---|
2798 | IFS=$as_save_IFS |
---|
2799 | test -z "$as_dir" && as_dir=. |
---|
2800 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2801 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2802 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
2803 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2804 | break 2 |
---|
2805 | fi |
---|
2806 | done |
---|
2807 | done |
---|
2808 | IFS=$as_save_IFS |
---|
2809 | |
---|
2810 | fi |
---|
2811 | fi |
---|
2812 | RANLIB=$ac_cv_prog_RANLIB |
---|
2813 | if test -n "$RANLIB"; then |
---|
2814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
---|
2815 | $as_echo "$RANLIB" >&6; } |
---|
2816 | else |
---|
2817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2818 | $as_echo "no" >&6; } |
---|
2819 | fi |
---|
2820 | |
---|
2821 | |
---|
2822 | fi |
---|
2823 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
2824 | ac_ct_RANLIB=$RANLIB |
---|
2825 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
2826 | set dummy ranlib; ac_word=$2 |
---|
2827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2828 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2829 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
---|
2830 | $as_echo_n "(cached) " >&6 |
---|
2831 | else |
---|
2832 | if test -n "$ac_ct_RANLIB"; then |
---|
2833 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
2834 | else |
---|
2835 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2836 | for as_dir in $PATH |
---|
2837 | do |
---|
2838 | IFS=$as_save_IFS |
---|
2839 | test -z "$as_dir" && as_dir=. |
---|
2840 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2841 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2842 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
2843 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2844 | break 2 |
---|
2845 | fi |
---|
2846 | done |
---|
2847 | done |
---|
2848 | IFS=$as_save_IFS |
---|
2849 | |
---|
2850 | fi |
---|
2851 | fi |
---|
2852 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
2853 | if test -n "$ac_ct_RANLIB"; then |
---|
2854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
---|
2855 | $as_echo "$ac_ct_RANLIB" >&6; } |
---|
2856 | else |
---|
2857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2858 | $as_echo "no" >&6; } |
---|
2859 | fi |
---|
2860 | |
---|
2861 | if test "x$ac_ct_RANLIB" = x; then |
---|
2862 | RANLIB=":" |
---|
2863 | else |
---|
2864 | case $cross_compiling:$ac_tool_warned in |
---|
2865 | yes:) |
---|
2866 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2867 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2868 | ac_tool_warned=yes ;; |
---|
2869 | esac |
---|
2870 | RANLIB=$ac_ct_RANLIB |
---|
2871 | fi |
---|
2872 | else |
---|
2873 | RANLIB="$ac_cv_prog_RANLIB" |
---|
2874 | fi |
---|
2875 | |
---|
2876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
---|
2877 | $as_echo_n "checking whether ln -s works... " >&6; } |
---|
2878 | LN_S=$as_ln_s |
---|
2879 | if test "$LN_S" = "ln -s"; then |
---|
2880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2881 | $as_echo "yes" >&6; } |
---|
2882 | else |
---|
2883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
---|
2884 | $as_echo "no, using $LN_S" >&6; } |
---|
2885 | fi |
---|
2886 | |
---|
2887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
---|
2888 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
---|
2889 | if test -z "$MKDIR_P"; then |
---|
2890 | if ${ac_cv_path_mkdir+:} false; then : |
---|
2891 | $as_echo_n "(cached) " >&6 |
---|
2892 | else |
---|
2893 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2894 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
---|
2895 | do |
---|
2896 | IFS=$as_save_IFS |
---|
2897 | test -z "$as_dir" && as_dir=. |
---|
2898 | for ac_prog in mkdir gmkdir; do |
---|
2899 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2900 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
---|
2901 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
---|
2902 | 'mkdir (GNU coreutils) '* | \ |
---|
2903 | 'mkdir (coreutils) '* | \ |
---|
2904 | 'mkdir (fileutils) '4.1*) |
---|
2905 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
---|
2906 | break 3;; |
---|
2907 | esac |
---|
2908 | done |
---|
2909 | done |
---|
2910 | done |
---|
2911 | IFS=$as_save_IFS |
---|
2912 | |
---|
2913 | fi |
---|
2914 | |
---|
2915 | test -d ./--version && rmdir ./--version |
---|
2916 | if test "${ac_cv_path_mkdir+set}" = set; then |
---|
2917 | MKDIR_P="$ac_cv_path_mkdir -p" |
---|
2918 | else |
---|
2919 | # As a last resort, use the slow shell script. Don't cache a |
---|
2920 | # value for MKDIR_P within a source directory, because that will |
---|
2921 | # break other packages using the cache if that directory is |
---|
2922 | # removed, or if the value is a relative name. |
---|
2923 | MKDIR_P="$ac_install_sh -d" |
---|
2924 | fi |
---|
2925 | fi |
---|
2926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
---|
2927 | $as_echo "$MKDIR_P" >&6; } |
---|
2928 | |
---|
2929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
2930 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
---|
2931 | set x ${MAKE-make} |
---|
2932 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
---|
2933 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
---|
2934 | $as_echo_n "(cached) " >&6 |
---|
2935 | else |
---|
2936 | cat >conftest.make <<\_ACEOF |
---|
2937 | SHELL = /bin/sh |
---|
2938 | all: |
---|
2939 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
---|
2940 | _ACEOF |
---|
2941 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
2942 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
---|
2943 | *@@@%%%=?*=@@@%%%*) |
---|
2944 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
---|
2945 | *) |
---|
2946 | eval ac_cv_prog_make_${ac_make}_set=no;; |
---|
2947 | esac |
---|
2948 | rm -f conftest.make |
---|
2949 | fi |
---|
2950 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
---|
2951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2952 | $as_echo "yes" >&6; } |
---|
2953 | SET_MAKE= |
---|
2954 | else |
---|
2955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2956 | $as_echo "no" >&6; } |
---|
2957 | SET_MAKE="MAKE=${MAKE-make}" |
---|
2958 | fi |
---|
2959 | |
---|
2960 | |
---|
2961 | # Check for C, C++, and FORTRAN |
---|
2962 | ac_ext=c |
---|
2963 | ac_cpp='$CPP $CPPFLAGS' |
---|
2964 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2965 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2966 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2967 | if test -n "$ac_tool_prefix"; then |
---|
2968 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2969 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2971 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2972 | if ${ac_cv_prog_CC+:} false; then : |
---|
2973 | $as_echo_n "(cached) " >&6 |
---|
2974 | else |
---|
2975 | if test -n "$CC"; then |
---|
2976 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2977 | else |
---|
2978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2979 | for as_dir in $PATH |
---|
2980 | do |
---|
2981 | IFS=$as_save_IFS |
---|
2982 | test -z "$as_dir" && as_dir=. |
---|
2983 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2984 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2985 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2986 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2987 | break 2 |
---|
2988 | fi |
---|
2989 | done |
---|
2990 | done |
---|
2991 | IFS=$as_save_IFS |
---|
2992 | |
---|
2993 | fi |
---|
2994 | fi |
---|
2995 | CC=$ac_cv_prog_CC |
---|
2996 | if test -n "$CC"; then |
---|
2997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
2998 | $as_echo "$CC" >&6; } |
---|
2999 | else |
---|
3000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3001 | $as_echo "no" >&6; } |
---|
3002 | fi |
---|
3003 | |
---|
3004 | |
---|
3005 | fi |
---|
3006 | if test -z "$ac_cv_prog_CC"; then |
---|
3007 | ac_ct_CC=$CC |
---|
3008 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
3009 | set dummy gcc; ac_word=$2 |
---|
3010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3011 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3012 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
3013 | $as_echo_n "(cached) " >&6 |
---|
3014 | else |
---|
3015 | if test -n "$ac_ct_CC"; then |
---|
3016 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
3017 | else |
---|
3018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3019 | for as_dir in $PATH |
---|
3020 | do |
---|
3021 | IFS=$as_save_IFS |
---|
3022 | test -z "$as_dir" && as_dir=. |
---|
3023 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3024 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3025 | ac_cv_prog_ac_ct_CC="gcc" |
---|
3026 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3027 | break 2 |
---|
3028 | fi |
---|
3029 | done |
---|
3030 | done |
---|
3031 | IFS=$as_save_IFS |
---|
3032 | |
---|
3033 | fi |
---|
3034 | fi |
---|
3035 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
3036 | if test -n "$ac_ct_CC"; then |
---|
3037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
3038 | $as_echo "$ac_ct_CC" >&6; } |
---|
3039 | else |
---|
3040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3041 | $as_echo "no" >&6; } |
---|
3042 | fi |
---|
3043 | |
---|
3044 | if test "x$ac_ct_CC" = x; then |
---|
3045 | CC="" |
---|
3046 | else |
---|
3047 | case $cross_compiling:$ac_tool_warned in |
---|
3048 | yes:) |
---|
3049 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3050 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3051 | ac_tool_warned=yes ;; |
---|
3052 | esac |
---|
3053 | CC=$ac_ct_CC |
---|
3054 | fi |
---|
3055 | else |
---|
3056 | CC="$ac_cv_prog_CC" |
---|
3057 | fi |
---|
3058 | |
---|
3059 | if test -z "$CC"; then |
---|
3060 | if test -n "$ac_tool_prefix"; then |
---|
3061 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
3062 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
3063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3064 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3065 | if ${ac_cv_prog_CC+:} false; then : |
---|
3066 | $as_echo_n "(cached) " >&6 |
---|
3067 | else |
---|
3068 | if test -n "$CC"; then |
---|
3069 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
3070 | else |
---|
3071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3072 | for as_dir in $PATH |
---|
3073 | do |
---|
3074 | IFS=$as_save_IFS |
---|
3075 | test -z "$as_dir" && as_dir=. |
---|
3076 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3077 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3078 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
3079 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3080 | break 2 |
---|
3081 | fi |
---|
3082 | done |
---|
3083 | done |
---|
3084 | IFS=$as_save_IFS |
---|
3085 | |
---|
3086 | fi |
---|
3087 | fi |
---|
3088 | CC=$ac_cv_prog_CC |
---|
3089 | if test -n "$CC"; then |
---|
3090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
3091 | $as_echo "$CC" >&6; } |
---|
3092 | else |
---|
3093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3094 | $as_echo "no" >&6; } |
---|
3095 | fi |
---|
3096 | |
---|
3097 | |
---|
3098 | fi |
---|
3099 | fi |
---|
3100 | if test -z "$CC"; then |
---|
3101 | # Extract the first word of "cc", so it can be a program name with args. |
---|
3102 | set dummy cc; ac_word=$2 |
---|
3103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3104 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3105 | if ${ac_cv_prog_CC+:} false; then : |
---|
3106 | $as_echo_n "(cached) " >&6 |
---|
3107 | else |
---|
3108 | if test -n "$CC"; then |
---|
3109 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
3110 | else |
---|
3111 | ac_prog_rejected=no |
---|
3112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3113 | for as_dir in $PATH |
---|
3114 | do |
---|
3115 | IFS=$as_save_IFS |
---|
3116 | test -z "$as_dir" && as_dir=. |
---|
3117 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3118 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3119 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
3120 | ac_prog_rejected=yes |
---|
3121 | continue |
---|
3122 | fi |
---|
3123 | ac_cv_prog_CC="cc" |
---|
3124 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3125 | break 2 |
---|
3126 | fi |
---|
3127 | done |
---|
3128 | done |
---|
3129 | IFS=$as_save_IFS |
---|
3130 | |
---|
3131 | if test $ac_prog_rejected = yes; then |
---|
3132 | # We found a bogon in the path, so make sure we never use it. |
---|
3133 | set dummy $ac_cv_prog_CC |
---|
3134 | shift |
---|
3135 | if test $# != 0; then |
---|
3136 | # We chose a different compiler from the bogus one. |
---|
3137 | # However, it has the same basename, so the bogon will be chosen |
---|
3138 | # first if we set CC to just the basename; use the full file name. |
---|
3139 | shift |
---|
3140 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
3141 | fi |
---|
3142 | fi |
---|
3143 | fi |
---|
3144 | fi |
---|
3145 | CC=$ac_cv_prog_CC |
---|
3146 | if test -n "$CC"; then |
---|
3147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
3148 | $as_echo "$CC" >&6; } |
---|
3149 | else |
---|
3150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3151 | $as_echo "no" >&6; } |
---|
3152 | fi |
---|
3153 | |
---|
3154 | |
---|
3155 | fi |
---|
3156 | if test -z "$CC"; then |
---|
3157 | if test -n "$ac_tool_prefix"; then |
---|
3158 | for ac_prog in cl.exe |
---|
3159 | do |
---|
3160 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3161 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3163 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3164 | if ${ac_cv_prog_CC+:} false; then : |
---|
3165 | $as_echo_n "(cached) " >&6 |
---|
3166 | else |
---|
3167 | if test -n "$CC"; then |
---|
3168 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
3169 | else |
---|
3170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3171 | for as_dir in $PATH |
---|
3172 | do |
---|
3173 | IFS=$as_save_IFS |
---|
3174 | test -z "$as_dir" && as_dir=. |
---|
3175 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3176 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3177 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
3178 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3179 | break 2 |
---|
3180 | fi |
---|
3181 | done |
---|
3182 | done |
---|
3183 | IFS=$as_save_IFS |
---|
3184 | |
---|
3185 | fi |
---|
3186 | fi |
---|
3187 | CC=$ac_cv_prog_CC |
---|
3188 | if test -n "$CC"; then |
---|
3189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
3190 | $as_echo "$CC" >&6; } |
---|
3191 | else |
---|
3192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3193 | $as_echo "no" >&6; } |
---|
3194 | fi |
---|
3195 | |
---|
3196 | |
---|
3197 | test -n "$CC" && break |
---|
3198 | done |
---|
3199 | fi |
---|
3200 | if test -z "$CC"; then |
---|
3201 | ac_ct_CC=$CC |
---|
3202 | for ac_prog in cl.exe |
---|
3203 | do |
---|
3204 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3205 | set dummy $ac_prog; ac_word=$2 |
---|
3206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3207 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3208 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
3209 | $as_echo_n "(cached) " >&6 |
---|
3210 | else |
---|
3211 | if test -n "$ac_ct_CC"; then |
---|
3212 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
3213 | else |
---|
3214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3215 | for as_dir in $PATH |
---|
3216 | do |
---|
3217 | IFS=$as_save_IFS |
---|
3218 | test -z "$as_dir" && as_dir=. |
---|
3219 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3220 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3221 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
3222 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3223 | break 2 |
---|
3224 | fi |
---|
3225 | done |
---|
3226 | done |
---|
3227 | IFS=$as_save_IFS |
---|
3228 | |
---|
3229 | fi |
---|
3230 | fi |
---|
3231 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
3232 | if test -n "$ac_ct_CC"; then |
---|
3233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
3234 | $as_echo "$ac_ct_CC" >&6; } |
---|
3235 | else |
---|
3236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3237 | $as_echo "no" >&6; } |
---|
3238 | fi |
---|
3239 | |
---|
3240 | |
---|
3241 | test -n "$ac_ct_CC" && break |
---|
3242 | done |
---|
3243 | |
---|
3244 | if test "x$ac_ct_CC" = x; then |
---|
3245 | CC="" |
---|
3246 | else |
---|
3247 | case $cross_compiling:$ac_tool_warned in |
---|
3248 | yes:) |
---|
3249 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3250 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3251 | ac_tool_warned=yes ;; |
---|
3252 | esac |
---|
3253 | CC=$ac_ct_CC |
---|
3254 | fi |
---|
3255 | fi |
---|
3256 | |
---|
3257 | fi |
---|
3258 | |
---|
3259 | |
---|
3260 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3261 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3262 | as_fn_error $? "no acceptable C compiler found in \$PATH |
---|
3263 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3264 | |
---|
3265 | # Provide some information about the compiler. |
---|
3266 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
---|
3267 | set X $ac_compile |
---|
3268 | ac_compiler=$2 |
---|
3269 | for ac_option in --version -v -V -qversion; do |
---|
3270 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
3271 | case "(($ac_try" in |
---|
3272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3273 | *) ac_try_echo=$ac_try;; |
---|
3274 | esac |
---|
3275 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3276 | $as_echo "$ac_try_echo"; } >&5 |
---|
3277 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
3278 | ac_status=$? |
---|
3279 | if test -s conftest.err; then |
---|
3280 | sed '10a\ |
---|
3281 | ... rest of stderr output deleted ... |
---|
3282 | 10q' conftest.err >conftest.er1 |
---|
3283 | cat conftest.er1 >&5 |
---|
3284 | fi |
---|
3285 | rm -f conftest.er1 conftest.err |
---|
3286 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3287 | test $ac_status = 0; } |
---|
3288 | done |
---|
3289 | |
---|
3290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3291 | /* end confdefs.h. */ |
---|
3292 | |
---|
3293 | int |
---|
3294 | main () |
---|
3295 | { |
---|
3296 | |
---|
3297 | ; |
---|
3298 | return 0; |
---|
3299 | } |
---|
3300 | _ACEOF |
---|
3301 | ac_clean_files_save=$ac_clean_files |
---|
3302 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
---|
3303 | # Try to create an executable without -o first, disregard a.out. |
---|
3304 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
3305 | # of exeext. |
---|
3306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
---|
3307 | $as_echo_n "checking whether the C compiler works... " >&6; } |
---|
3308 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
3309 | |
---|
3310 | # The possible output files: |
---|
3311 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
---|
3312 | |
---|
3313 | ac_rmfiles= |
---|
3314 | for ac_file in $ac_files |
---|
3315 | do |
---|
3316 | case $ac_file in |
---|
3317 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
3318 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
3319 | esac |
---|
3320 | done |
---|
3321 | rm -f $ac_rmfiles |
---|
3322 | |
---|
3323 | if { { ac_try="$ac_link_default" |
---|
3324 | case "(($ac_try" in |
---|
3325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3326 | *) ac_try_echo=$ac_try;; |
---|
3327 | esac |
---|
3328 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3329 | $as_echo "$ac_try_echo"; } >&5 |
---|
3330 | (eval "$ac_link_default") 2>&5 |
---|
3331 | ac_status=$? |
---|
3332 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3333 | test $ac_status = 0; }; then : |
---|
3334 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
3335 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
3336 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
3337 | # so that the user can short-circuit this test for compilers unknown to |
---|
3338 | # Autoconf. |
---|
3339 | for ac_file in $ac_files '' |
---|
3340 | do |
---|
3341 | test -f "$ac_file" || continue |
---|
3342 | case $ac_file in |
---|
3343 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
---|
3344 | ;; |
---|
3345 | [ab].out ) |
---|
3346 | # We found the default executable, but exeext='' is most |
---|
3347 | # certainly right. |
---|
3348 | break;; |
---|
3349 | *.* ) |
---|
3350 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
3351 | then :; else |
---|
3352 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3353 | fi |
---|
3354 | # We set ac_cv_exeext here because the later test for it is not |
---|
3355 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
3356 | # argument, so we may need to know it at that point already. |
---|
3357 | # Even if this section looks crufty: it has the advantage of |
---|
3358 | # actually working. |
---|
3359 | break;; |
---|
3360 | * ) |
---|
3361 | break;; |
---|
3362 | esac |
---|
3363 | done |
---|
3364 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
3365 | |
---|
3366 | else |
---|
3367 | ac_file='' |
---|
3368 | fi |
---|
3369 | if test -z "$ac_file"; then : |
---|
3370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3371 | $as_echo "no" >&6; } |
---|
3372 | $as_echo "$as_me: failed program was:" >&5 |
---|
3373 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3374 | |
---|
3375 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3376 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3377 | as_fn_error 77 "C compiler cannot create executables |
---|
3378 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3379 | else |
---|
3380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
3381 | $as_echo "yes" >&6; } |
---|
3382 | fi |
---|
3383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
---|
3384 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
---|
3385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
---|
3386 | $as_echo "$ac_file" >&6; } |
---|
3387 | ac_exeext=$ac_cv_exeext |
---|
3388 | |
---|
3389 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
---|
3390 | ac_clean_files=$ac_clean_files_save |
---|
3391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
---|
3392 | $as_echo_n "checking for suffix of executables... " >&6; } |
---|
3393 | if { { ac_try="$ac_link" |
---|
3394 | case "(($ac_try" in |
---|
3395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3396 | *) ac_try_echo=$ac_try;; |
---|
3397 | esac |
---|
3398 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3399 | $as_echo "$ac_try_echo"; } >&5 |
---|
3400 | (eval "$ac_link") 2>&5 |
---|
3401 | ac_status=$? |
---|
3402 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3403 | test $ac_status = 0; }; then : |
---|
3404 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
3405 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
3406 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
3407 | # `rm'. |
---|
3408 | for ac_file in conftest.exe conftest conftest.*; do |
---|
3409 | test -f "$ac_file" || continue |
---|
3410 | case $ac_file in |
---|
3411 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
3412 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3413 | break;; |
---|
3414 | * ) break;; |
---|
3415 | esac |
---|
3416 | done |
---|
3417 | else |
---|
3418 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3419 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3420 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
---|
3421 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3422 | fi |
---|
3423 | rm -f conftest conftest$ac_cv_exeext |
---|
3424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
---|
3425 | $as_echo "$ac_cv_exeext" >&6; } |
---|
3426 | |
---|
3427 | rm -f conftest.$ac_ext |
---|
3428 | EXEEXT=$ac_cv_exeext |
---|
3429 | ac_exeext=$EXEEXT |
---|
3430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3431 | /* end confdefs.h. */ |
---|
3432 | #include <stdio.h> |
---|
3433 | int |
---|
3434 | main () |
---|
3435 | { |
---|
3436 | FILE *f = fopen ("conftest.out", "w"); |
---|
3437 | return ferror (f) || fclose (f) != 0; |
---|
3438 | |
---|
3439 | ; |
---|
3440 | return 0; |
---|
3441 | } |
---|
3442 | _ACEOF |
---|
3443 | ac_clean_files="$ac_clean_files conftest.out" |
---|
3444 | # Check that the compiler produces executables we can run. If not, either |
---|
3445 | # the compiler is broken, or we cross compile. |
---|
3446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
---|
3447 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
---|
3448 | if test "$cross_compiling" != yes; then |
---|
3449 | { { ac_try="$ac_link" |
---|
3450 | case "(($ac_try" in |
---|
3451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3452 | *) ac_try_echo=$ac_try;; |
---|
3453 | esac |
---|
3454 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3455 | $as_echo "$ac_try_echo"; } >&5 |
---|
3456 | (eval "$ac_link") 2>&5 |
---|
3457 | ac_status=$? |
---|
3458 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3459 | test $ac_status = 0; } |
---|
3460 | if { ac_try='./conftest$ac_cv_exeext' |
---|
3461 | { { case "(($ac_try" in |
---|
3462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3463 | *) ac_try_echo=$ac_try;; |
---|
3464 | esac |
---|
3465 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3466 | $as_echo "$ac_try_echo"; } >&5 |
---|
3467 | (eval "$ac_try") 2>&5 |
---|
3468 | ac_status=$? |
---|
3469 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3470 | test $ac_status = 0; }; }; then |
---|
3471 | cross_compiling=no |
---|
3472 | else |
---|
3473 | if test "$cross_compiling" = maybe; then |
---|
3474 | cross_compiling=yes |
---|
3475 | else |
---|
3476 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3477 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3478 | as_fn_error $? "cannot run C compiled programs. |
---|
3479 | If you meant to cross compile, use \`--host'. |
---|
3480 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3481 | fi |
---|
3482 | fi |
---|
3483 | fi |
---|
3484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
---|
3485 | $as_echo "$cross_compiling" >&6; } |
---|
3486 | |
---|
3487 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
---|
3488 | ac_clean_files=$ac_clean_files_save |
---|
3489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
---|
3490 | $as_echo_n "checking for suffix of object files... " >&6; } |
---|
3491 | if ${ac_cv_objext+:} false; then : |
---|
3492 | $as_echo_n "(cached) " >&6 |
---|
3493 | else |
---|
3494 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3495 | /* end confdefs.h. */ |
---|
3496 | |
---|
3497 | int |
---|
3498 | main () |
---|
3499 | { |
---|
3500 | |
---|
3501 | ; |
---|
3502 | return 0; |
---|
3503 | } |
---|
3504 | _ACEOF |
---|
3505 | rm -f conftest.o conftest.obj |
---|
3506 | if { { ac_try="$ac_compile" |
---|
3507 | case "(($ac_try" in |
---|
3508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3509 | *) ac_try_echo=$ac_try;; |
---|
3510 | esac |
---|
3511 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3512 | $as_echo "$ac_try_echo"; } >&5 |
---|
3513 | (eval "$ac_compile") 2>&5 |
---|
3514 | ac_status=$? |
---|
3515 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3516 | test $ac_status = 0; }; then : |
---|
3517 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
3518 | test -f "$ac_file" || continue; |
---|
3519 | case $ac_file in |
---|
3520 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
---|
3521 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
3522 | break;; |
---|
3523 | esac |
---|
3524 | done |
---|
3525 | else |
---|
3526 | $as_echo "$as_me: failed program was:" >&5 |
---|
3527 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3528 | |
---|
3529 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3530 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3531 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
---|
3532 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3533 | fi |
---|
3534 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
3535 | fi |
---|
3536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
---|
3537 | $as_echo "$ac_cv_objext" >&6; } |
---|
3538 | OBJEXT=$ac_cv_objext |
---|
3539 | ac_objext=$OBJEXT |
---|
3540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
---|
3541 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
---|
3542 | if ${ac_cv_c_compiler_gnu+:} false; then : |
---|
3543 | $as_echo_n "(cached) " >&6 |
---|
3544 | else |
---|
3545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3546 | /* end confdefs.h. */ |
---|
3547 | |
---|
3548 | int |
---|
3549 | main () |
---|
3550 | { |
---|
3551 | #ifndef __GNUC__ |
---|
3552 | choke me |
---|
3553 | #endif |
---|
3554 | |
---|
3555 | ; |
---|
3556 | return 0; |
---|
3557 | } |
---|
3558 | _ACEOF |
---|
3559 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3560 | ac_compiler_gnu=yes |
---|
3561 | else |
---|
3562 | ac_compiler_gnu=no |
---|
3563 | fi |
---|
3564 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3565 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
3566 | |
---|
3567 | fi |
---|
3568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
---|
3569 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
---|
3570 | if test $ac_compiler_gnu = yes; then |
---|
3571 | GCC=yes |
---|
3572 | else |
---|
3573 | GCC= |
---|
3574 | fi |
---|
3575 | ac_test_CFLAGS=${CFLAGS+set} |
---|
3576 | ac_save_CFLAGS=$CFLAGS |
---|
3577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
---|
3578 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
---|
3579 | if ${ac_cv_prog_cc_g+:} false; then : |
---|
3580 | $as_echo_n "(cached) " >&6 |
---|
3581 | else |
---|
3582 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
3583 | ac_c_werror_flag=yes |
---|
3584 | ac_cv_prog_cc_g=no |
---|
3585 | CFLAGS="-g" |
---|
3586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3587 | /* end confdefs.h. */ |
---|
3588 | |
---|
3589 | int |
---|
3590 | main () |
---|
3591 | { |
---|
3592 | |
---|
3593 | ; |
---|
3594 | return 0; |
---|
3595 | } |
---|
3596 | _ACEOF |
---|
3597 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3598 | ac_cv_prog_cc_g=yes |
---|
3599 | else |
---|
3600 | CFLAGS="" |
---|
3601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3602 | /* end confdefs.h. */ |
---|
3603 | |
---|
3604 | int |
---|
3605 | main () |
---|
3606 | { |
---|
3607 | |
---|
3608 | ; |
---|
3609 | return 0; |
---|
3610 | } |
---|
3611 | _ACEOF |
---|
3612 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3613 | |
---|
3614 | else |
---|
3615 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
3616 | CFLAGS="-g" |
---|
3617 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3618 | /* end confdefs.h. */ |
---|
3619 | |
---|
3620 | int |
---|
3621 | main () |
---|
3622 | { |
---|
3623 | |
---|
3624 | ; |
---|
3625 | return 0; |
---|
3626 | } |
---|
3627 | _ACEOF |
---|
3628 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3629 | ac_cv_prog_cc_g=yes |
---|
3630 | fi |
---|
3631 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3632 | fi |
---|
3633 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3634 | fi |
---|
3635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3636 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
3637 | fi |
---|
3638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
---|
3639 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
---|
3640 | if test "$ac_test_CFLAGS" = set; then |
---|
3641 | CFLAGS=$ac_save_CFLAGS |
---|
3642 | elif test $ac_cv_prog_cc_g = yes; then |
---|
3643 | if test "$GCC" = yes; then |
---|
3644 | CFLAGS="-g -O2" |
---|
3645 | else |
---|
3646 | CFLAGS="-g" |
---|
3647 | fi |
---|
3648 | else |
---|
3649 | if test "$GCC" = yes; then |
---|
3650 | CFLAGS="-O2" |
---|
3651 | else |
---|
3652 | CFLAGS= |
---|
3653 | fi |
---|
3654 | fi |
---|
3655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
---|
3656 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
---|
3657 | if ${ac_cv_prog_cc_c89+:} false; then : |
---|
3658 | $as_echo_n "(cached) " >&6 |
---|
3659 | else |
---|
3660 | ac_cv_prog_cc_c89=no |
---|
3661 | ac_save_CC=$CC |
---|
3662 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3663 | /* end confdefs.h. */ |
---|
3664 | #include <stdarg.h> |
---|
3665 | #include <stdio.h> |
---|
3666 | struct stat; |
---|
3667 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
3668 | struct buf { int x; }; |
---|
3669 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
3670 | static char *e (p, i) |
---|
3671 | char **p; |
---|
3672 | int i; |
---|
3673 | { |
---|
3674 | return p[i]; |
---|
3675 | } |
---|
3676 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
3677 | { |
---|
3678 | char *s; |
---|
3679 | va_list v; |
---|
3680 | va_start (v,p); |
---|
3681 | s = g (p, va_arg (v,int)); |
---|
3682 | va_end (v); |
---|
3683 | return s; |
---|
3684 | } |
---|
3685 | |
---|
3686 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
3687 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
3688 | These don't provoke an error unfortunately, instead are silently treated |
---|
3689 | as 'x'. The following induces an error, until -std is added to get |
---|
3690 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
3691 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
3692 | that's true only with -std. */ |
---|
3693 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
3694 | |
---|
3695 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
3696 | inside strings and character constants. */ |
---|
3697 | #define FOO(x) 'x' |
---|
3698 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
3699 | |
---|
3700 | int test (int i, double x); |
---|
3701 | struct s1 {int (*f) (int a);}; |
---|
3702 | struct s2 {int (*f) (double a);}; |
---|
3703 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
3704 | int argc; |
---|
3705 | char **argv; |
---|
3706 | int |
---|
3707 | main () |
---|
3708 | { |
---|
3709 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
3710 | ; |
---|
3711 | return 0; |
---|
3712 | } |
---|
3713 | _ACEOF |
---|
3714 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
3715 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
3716 | do |
---|
3717 | CC="$ac_save_CC $ac_arg" |
---|
3718 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3719 | ac_cv_prog_cc_c89=$ac_arg |
---|
3720 | fi |
---|
3721 | rm -f core conftest.err conftest.$ac_objext |
---|
3722 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
3723 | done |
---|
3724 | rm -f conftest.$ac_ext |
---|
3725 | CC=$ac_save_CC |
---|
3726 | |
---|
3727 | fi |
---|
3728 | # AC_CACHE_VAL |
---|
3729 | case "x$ac_cv_prog_cc_c89" in |
---|
3730 | x) |
---|
3731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
3732 | $as_echo "none needed" >&6; } ;; |
---|
3733 | xno) |
---|
3734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
3735 | $as_echo "unsupported" >&6; } ;; |
---|
3736 | *) |
---|
3737 | CC="$CC $ac_cv_prog_cc_c89" |
---|
3738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
---|
3739 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
---|
3740 | esac |
---|
3741 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
---|
3742 | |
---|
3743 | fi |
---|
3744 | |
---|
3745 | ac_ext=c |
---|
3746 | ac_cpp='$CPP $CPPFLAGS' |
---|
3747 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3748 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3749 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3750 | |
---|
3751 | ac_ext=cpp |
---|
3752 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
3753 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3754 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3755 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
3756 | if test -z "$CXX"; then |
---|
3757 | if test -n "$CCC"; then |
---|
3758 | CXX=$CCC |
---|
3759 | else |
---|
3760 | if test -n "$ac_tool_prefix"; then |
---|
3761 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3762 | do |
---|
3763 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3764 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3766 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3767 | if ${ac_cv_prog_CXX+:} false; then : |
---|
3768 | $as_echo_n "(cached) " >&6 |
---|
3769 | else |
---|
3770 | if test -n "$CXX"; then |
---|
3771 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
3772 | else |
---|
3773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3774 | for as_dir in $PATH |
---|
3775 | do |
---|
3776 | IFS=$as_save_IFS |
---|
3777 | test -z "$as_dir" && as_dir=. |
---|
3778 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3779 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3780 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
3781 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3782 | break 2 |
---|
3783 | fi |
---|
3784 | done |
---|
3785 | done |
---|
3786 | IFS=$as_save_IFS |
---|
3787 | |
---|
3788 | fi |
---|
3789 | fi |
---|
3790 | CXX=$ac_cv_prog_CXX |
---|
3791 | if test -n "$CXX"; then |
---|
3792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
---|
3793 | $as_echo "$CXX" >&6; } |
---|
3794 | else |
---|
3795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3796 | $as_echo "no" >&6; } |
---|
3797 | fi |
---|
3798 | |
---|
3799 | |
---|
3800 | test -n "$CXX" && break |
---|
3801 | done |
---|
3802 | fi |
---|
3803 | if test -z "$CXX"; then |
---|
3804 | ac_ct_CXX=$CXX |
---|
3805 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3806 | do |
---|
3807 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3808 | set dummy $ac_prog; ac_word=$2 |
---|
3809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3810 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3811 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
---|
3812 | $as_echo_n "(cached) " >&6 |
---|
3813 | else |
---|
3814 | if test -n "$ac_ct_CXX"; then |
---|
3815 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
3816 | else |
---|
3817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3818 | for as_dir in $PATH |
---|
3819 | do |
---|
3820 | IFS=$as_save_IFS |
---|
3821 | test -z "$as_dir" && as_dir=. |
---|
3822 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3823 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3824 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
3825 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3826 | break 2 |
---|
3827 | fi |
---|
3828 | done |
---|
3829 | done |
---|
3830 | IFS=$as_save_IFS |
---|
3831 | |
---|
3832 | fi |
---|
3833 | fi |
---|
3834 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
3835 | if test -n "$ac_ct_CXX"; then |
---|
3836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
---|
3837 | $as_echo "$ac_ct_CXX" >&6; } |
---|
3838 | else |
---|
3839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3840 | $as_echo "no" >&6; } |
---|
3841 | fi |
---|
3842 | |
---|
3843 | |
---|
3844 | test -n "$ac_ct_CXX" && break |
---|
3845 | done |
---|
3846 | |
---|
3847 | if test "x$ac_ct_CXX" = x; then |
---|
3848 | CXX="g++" |
---|
3849 | else |
---|
3850 | case $cross_compiling:$ac_tool_warned in |
---|
3851 | yes:) |
---|
3852 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3853 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3854 | ac_tool_warned=yes ;; |
---|
3855 | esac |
---|
3856 | CXX=$ac_ct_CXX |
---|
3857 | fi |
---|
3858 | fi |
---|
3859 | |
---|
3860 | fi |
---|
3861 | fi |
---|
3862 | # Provide some information about the compiler. |
---|
3863 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
---|
3864 | set X $ac_compile |
---|
3865 | ac_compiler=$2 |
---|
3866 | for ac_option in --version -v -V -qversion; do |
---|
3867 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
3868 | case "(($ac_try" in |
---|
3869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3870 | *) ac_try_echo=$ac_try;; |
---|
3871 | esac |
---|
3872 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3873 | $as_echo "$ac_try_echo"; } >&5 |
---|
3874 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
3875 | ac_status=$? |
---|
3876 | if test -s conftest.err; then |
---|
3877 | sed '10a\ |
---|
3878 | ... rest of stderr output deleted ... |
---|
3879 | 10q' conftest.err >conftest.er1 |
---|
3880 | cat conftest.er1 >&5 |
---|
3881 | fi |
---|
3882 | rm -f conftest.er1 conftest.err |
---|
3883 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3884 | test $ac_status = 0; } |
---|
3885 | done |
---|
3886 | |
---|
3887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
---|
3888 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
---|
3889 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
---|
3890 | $as_echo_n "(cached) " >&6 |
---|
3891 | else |
---|
3892 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3893 | /* end confdefs.h. */ |
---|
3894 | |
---|
3895 | int |
---|
3896 | main () |
---|
3897 | { |
---|
3898 | #ifndef __GNUC__ |
---|
3899 | choke me |
---|
3900 | #endif |
---|
3901 | |
---|
3902 | ; |
---|
3903 | return 0; |
---|
3904 | } |
---|
3905 | _ACEOF |
---|
3906 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3907 | ac_compiler_gnu=yes |
---|
3908 | else |
---|
3909 | ac_compiler_gnu=no |
---|
3910 | fi |
---|
3911 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3912 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
3913 | |
---|
3914 | fi |
---|
3915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
3916 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
---|
3917 | if test $ac_compiler_gnu = yes; then |
---|
3918 | GXX=yes |
---|
3919 | else |
---|
3920 | GXX= |
---|
3921 | fi |
---|
3922 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
3923 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
3924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
---|
3925 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
---|
3926 | if ${ac_cv_prog_cxx_g+:} false; then : |
---|
3927 | $as_echo_n "(cached) " >&6 |
---|
3928 | else |
---|
3929 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
---|
3930 | ac_cxx_werror_flag=yes |
---|
3931 | ac_cv_prog_cxx_g=no |
---|
3932 | CXXFLAGS="-g" |
---|
3933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3934 | /* end confdefs.h. */ |
---|
3935 | |
---|
3936 | int |
---|
3937 | main () |
---|
3938 | { |
---|
3939 | |
---|
3940 | ; |
---|
3941 | return 0; |
---|
3942 | } |
---|
3943 | _ACEOF |
---|
3944 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3945 | ac_cv_prog_cxx_g=yes |
---|
3946 | else |
---|
3947 | CXXFLAGS="" |
---|
3948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3949 | /* end confdefs.h. */ |
---|
3950 | |
---|
3951 | int |
---|
3952 | main () |
---|
3953 | { |
---|
3954 | |
---|
3955 | ; |
---|
3956 | return 0; |
---|
3957 | } |
---|
3958 | _ACEOF |
---|
3959 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3960 | |
---|
3961 | else |
---|
3962 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
3963 | CXXFLAGS="-g" |
---|
3964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3965 | /* end confdefs.h. */ |
---|
3966 | |
---|
3967 | int |
---|
3968 | main () |
---|
3969 | { |
---|
3970 | |
---|
3971 | ; |
---|
3972 | return 0; |
---|
3973 | } |
---|
3974 | _ACEOF |
---|
3975 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3976 | ac_cv_prog_cxx_g=yes |
---|
3977 | fi |
---|
3978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3979 | fi |
---|
3980 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3981 | fi |
---|
3982 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3983 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
3984 | fi |
---|
3985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
---|
3986 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
---|
3987 | if test "$ac_test_CXXFLAGS" = set; then |
---|
3988 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
3989 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
3990 | if test "$GXX" = yes; then |
---|
3991 | CXXFLAGS="-g -O2" |
---|
3992 | else |
---|
3993 | CXXFLAGS="-g" |
---|
3994 | fi |
---|
3995 | else |
---|
3996 | if test "$GXX" = yes; then |
---|
3997 | CXXFLAGS="-O2" |
---|
3998 | else |
---|
3999 | CXXFLAGS= |
---|
4000 | fi |
---|
4001 | fi |
---|
4002 | ac_ext=c |
---|
4003 | ac_cpp='$CPP $CPPFLAGS' |
---|
4004 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4005 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4006 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4007 | |
---|
4008 | # Avoid g95 |
---|
4009 | ac_ext=f |
---|
4010 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
4011 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4012 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
4013 | if test -n "$ac_tool_prefix"; then |
---|
4014 | for ac_prog in g77 gfortran f77 fort77 f90 xlf xlf90 fl32 |
---|
4015 | do |
---|
4016 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
4017 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
4018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4019 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4020 | if ${ac_cv_prog_F77+:} false; then : |
---|
4021 | $as_echo_n "(cached) " >&6 |
---|
4022 | else |
---|
4023 | if test -n "$F77"; then |
---|
4024 | ac_cv_prog_F77="$F77" # Let the user override the test. |
---|
4025 | else |
---|
4026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4027 | for as_dir in $PATH |
---|
4028 | do |
---|
4029 | IFS=$as_save_IFS |
---|
4030 | test -z "$as_dir" && as_dir=. |
---|
4031 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4032 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4033 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
---|
4034 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4035 | break 2 |
---|
4036 | fi |
---|
4037 | done |
---|
4038 | done |
---|
4039 | IFS=$as_save_IFS |
---|
4040 | |
---|
4041 | fi |
---|
4042 | fi |
---|
4043 | F77=$ac_cv_prog_F77 |
---|
4044 | if test -n "$F77"; then |
---|
4045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5 |
---|
4046 | $as_echo "$F77" >&6; } |
---|
4047 | else |
---|
4048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4049 | $as_echo "no" >&6; } |
---|
4050 | fi |
---|
4051 | |
---|
4052 | |
---|
4053 | test -n "$F77" && break |
---|
4054 | done |
---|
4055 | fi |
---|
4056 | if test -z "$F77"; then |
---|
4057 | ac_ct_F77=$F77 |
---|
4058 | for ac_prog in g77 gfortran f77 fort77 f90 xlf xlf90 fl32 |
---|
4059 | do |
---|
4060 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
4061 | set dummy $ac_prog; ac_word=$2 |
---|
4062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4063 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4064 | if ${ac_cv_prog_ac_ct_F77+:} false; then : |
---|
4065 | $as_echo_n "(cached) " >&6 |
---|
4066 | else |
---|
4067 | if test -n "$ac_ct_F77"; then |
---|
4068 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
---|
4069 | else |
---|
4070 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4071 | for as_dir in $PATH |
---|
4072 | do |
---|
4073 | IFS=$as_save_IFS |
---|
4074 | test -z "$as_dir" && as_dir=. |
---|
4075 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4076 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4077 | ac_cv_prog_ac_ct_F77="$ac_prog" |
---|
4078 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4079 | break 2 |
---|
4080 | fi |
---|
4081 | done |
---|
4082 | done |
---|
4083 | IFS=$as_save_IFS |
---|
4084 | |
---|
4085 | fi |
---|
4086 | fi |
---|
4087 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
---|
4088 | if test -n "$ac_ct_F77"; then |
---|
4089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5 |
---|
4090 | $as_echo "$ac_ct_F77" >&6; } |
---|
4091 | else |
---|
4092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4093 | $as_echo "no" >&6; } |
---|
4094 | fi |
---|
4095 | |
---|
4096 | |
---|
4097 | test -n "$ac_ct_F77" && break |
---|
4098 | done |
---|
4099 | |
---|
4100 | if test "x$ac_ct_F77" = x; then |
---|
4101 | F77="" |
---|
4102 | else |
---|
4103 | case $cross_compiling:$ac_tool_warned in |
---|
4104 | yes:) |
---|
4105 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
4106 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
4107 | ac_tool_warned=yes ;; |
---|
4108 | esac |
---|
4109 | F77=$ac_ct_F77 |
---|
4110 | fi |
---|
4111 | fi |
---|
4112 | |
---|
4113 | |
---|
4114 | # Provide some information about the compiler. |
---|
4115 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5 |
---|
4116 | set X $ac_compile |
---|
4117 | ac_compiler=$2 |
---|
4118 | for ac_option in --version -v -V -qversion; do |
---|
4119 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
4120 | case "(($ac_try" in |
---|
4121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4122 | *) ac_try_echo=$ac_try;; |
---|
4123 | esac |
---|
4124 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4125 | $as_echo "$ac_try_echo"; } >&5 |
---|
4126 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
4127 | ac_status=$? |
---|
4128 | if test -s conftest.err; then |
---|
4129 | sed '10a\ |
---|
4130 | ... rest of stderr output deleted ... |
---|
4131 | 10q' conftest.err >conftest.er1 |
---|
4132 | cat conftest.er1 >&5 |
---|
4133 | fi |
---|
4134 | rm -f conftest.er1 conftest.err |
---|
4135 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4136 | test $ac_status = 0; } |
---|
4137 | done |
---|
4138 | rm -f a.out |
---|
4139 | |
---|
4140 | # If we don't use `.F' as extension, the preprocessor is not run on the |
---|
4141 | # input file. (Note that this only needs to work for GNU compilers.) |
---|
4142 | ac_save_ext=$ac_ext |
---|
4143 | ac_ext=F |
---|
4144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5 |
---|
4145 | $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } |
---|
4146 | if ${ac_cv_f77_compiler_gnu+:} false; then : |
---|
4147 | $as_echo_n "(cached) " >&6 |
---|
4148 | else |
---|
4149 | cat > conftest.$ac_ext <<_ACEOF |
---|
4150 | program main |
---|
4151 | #ifndef __GNUC__ |
---|
4152 | choke me |
---|
4153 | #endif |
---|
4154 | |
---|
4155 | end |
---|
4156 | _ACEOF |
---|
4157 | if ac_fn_f77_try_compile "$LINENO"; then : |
---|
4158 | ac_compiler_gnu=yes |
---|
4159 | else |
---|
4160 | ac_compiler_gnu=no |
---|
4161 | fi |
---|
4162 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4163 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
---|
4164 | |
---|
4165 | fi |
---|
4166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5 |
---|
4167 | $as_echo "$ac_cv_f77_compiler_gnu" >&6; } |
---|
4168 | ac_ext=$ac_save_ext |
---|
4169 | ac_test_FFLAGS=${FFLAGS+set} |
---|
4170 | ac_save_FFLAGS=$FFLAGS |
---|
4171 | FFLAGS= |
---|
4172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5 |
---|
4173 | $as_echo_n "checking whether $F77 accepts -g... " >&6; } |
---|
4174 | if ${ac_cv_prog_f77_g+:} false; then : |
---|
4175 | $as_echo_n "(cached) " >&6 |
---|
4176 | else |
---|
4177 | FFLAGS=-g |
---|
4178 | cat > conftest.$ac_ext <<_ACEOF |
---|
4179 | program main |
---|
4180 | |
---|
4181 | end |
---|
4182 | _ACEOF |
---|
4183 | if ac_fn_f77_try_compile "$LINENO"; then : |
---|
4184 | ac_cv_prog_f77_g=yes |
---|
4185 | else |
---|
4186 | ac_cv_prog_f77_g=no |
---|
4187 | fi |
---|
4188 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4189 | |
---|
4190 | fi |
---|
4191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5 |
---|
4192 | $as_echo "$ac_cv_prog_f77_g" >&6; } |
---|
4193 | if test "$ac_test_FFLAGS" = set; then |
---|
4194 | FFLAGS=$ac_save_FFLAGS |
---|
4195 | elif test $ac_cv_prog_f77_g = yes; then |
---|
4196 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
4197 | FFLAGS="-g -O2" |
---|
4198 | else |
---|
4199 | FFLAGS="-g" |
---|
4200 | fi |
---|
4201 | else |
---|
4202 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
4203 | FFLAGS="-O2" |
---|
4204 | else |
---|
4205 | FFLAGS= |
---|
4206 | fi |
---|
4207 | fi |
---|
4208 | |
---|
4209 | if test $ac_compiler_gnu = yes; then |
---|
4210 | G77=yes |
---|
4211 | else |
---|
4212 | G77= |
---|
4213 | fi |
---|
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 | ac_ext=c |
---|
4222 | ac_cpp='$CPP $CPPFLAGS' |
---|
4223 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4224 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4225 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4226 | |
---|
4227 | |
---|
4228 | |
---|
4229 | ac_ext=c |
---|
4230 | ac_cpp='$CPP $CPPFLAGS' |
---|
4231 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4232 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4233 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
---|
4235 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
---|
4236 | # On Suns, sometimes $CPP names a directory. |
---|
4237 | if test -n "$CPP" && test -d "$CPP"; then |
---|
4238 | CPP= |
---|
4239 | fi |
---|
4240 | if test -z "$CPP"; then |
---|
4241 | if ${ac_cv_prog_CPP+:} false; then : |
---|
4242 | $as_echo_n "(cached) " >&6 |
---|
4243 | else |
---|
4244 | # Double quotes because CPP needs to be expanded |
---|
4245 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
4246 | do |
---|
4247 | ac_preproc_ok=false |
---|
4248 | for ac_c_preproc_warn_flag in '' yes |
---|
4249 | do |
---|
4250 | # Use a header file that comes with gcc, so configuring glibc |
---|
4251 | # with a fresh cross-compiler works. |
---|
4252 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4253 | # <limits.h> exists even on freestanding compilers. |
---|
4254 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4255 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4257 | /* end confdefs.h. */ |
---|
4258 | #ifdef __STDC__ |
---|
4259 | # include <limits.h> |
---|
4260 | #else |
---|
4261 | # include <assert.h> |
---|
4262 | #endif |
---|
4263 | Syntax error |
---|
4264 | _ACEOF |
---|
4265 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4266 | |
---|
4267 | else |
---|
4268 | # Broken: fails on valid input. |
---|
4269 | continue |
---|
4270 | fi |
---|
4271 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4272 | |
---|
4273 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
4274 | # can be detected and how. |
---|
4275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4276 | /* end confdefs.h. */ |
---|
4277 | #include <ac_nonexistent.h> |
---|
4278 | _ACEOF |
---|
4279 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4280 | # Broken: success on invalid input. |
---|
4281 | continue |
---|
4282 | else |
---|
4283 | # Passes both tests. |
---|
4284 | ac_preproc_ok=: |
---|
4285 | break |
---|
4286 | fi |
---|
4287 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4288 | |
---|
4289 | done |
---|
4290 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
4291 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
4292 | if $ac_preproc_ok; then : |
---|
4293 | break |
---|
4294 | fi |
---|
4295 | |
---|
4296 | done |
---|
4297 | ac_cv_prog_CPP=$CPP |
---|
4298 | |
---|
4299 | fi |
---|
4300 | CPP=$ac_cv_prog_CPP |
---|
4301 | else |
---|
4302 | ac_cv_prog_CPP=$CPP |
---|
4303 | fi |
---|
4304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
---|
4305 | $as_echo "$CPP" >&6; } |
---|
4306 | ac_preproc_ok=false |
---|
4307 | for ac_c_preproc_warn_flag in '' yes |
---|
4308 | do |
---|
4309 | # Use a header file that comes with gcc, so configuring glibc |
---|
4310 | # with a fresh cross-compiler works. |
---|
4311 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4312 | # <limits.h> exists even on freestanding compilers. |
---|
4313 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4314 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4316 | /* end confdefs.h. */ |
---|
4317 | #ifdef __STDC__ |
---|
4318 | # include <limits.h> |
---|
4319 | #else |
---|
4320 | # include <assert.h> |
---|
4321 | #endif |
---|
4322 | Syntax error |
---|
4323 | _ACEOF |
---|
4324 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4325 | |
---|
4326 | else |
---|
4327 | # Broken: fails on valid input. |
---|
4328 | continue |
---|
4329 | fi |
---|
4330 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4331 | |
---|
4332 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
4333 | # can be detected and how. |
---|
4334 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4335 | /* end confdefs.h. */ |
---|
4336 | #include <ac_nonexistent.h> |
---|
4337 | _ACEOF |
---|
4338 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4339 | # Broken: success on invalid input. |
---|
4340 | continue |
---|
4341 | else |
---|
4342 | # Passes both tests. |
---|
4343 | ac_preproc_ok=: |
---|
4344 | break |
---|
4345 | fi |
---|
4346 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4347 | |
---|
4348 | done |
---|
4349 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
4350 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
4351 | if $ac_preproc_ok; then : |
---|
4352 | |
---|
4353 | else |
---|
4354 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
4355 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
4356 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
---|
4357 | See \`config.log' for more details" "$LINENO" 5; } |
---|
4358 | fi |
---|
4359 | |
---|
4360 | ac_ext=c |
---|
4361 | ac_cpp='$CPP $CPPFLAGS' |
---|
4362 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4363 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4364 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4365 | |
---|
4366 | |
---|
4367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
---|
4368 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
---|
4369 | if ${ac_cv_path_GREP+:} false; then : |
---|
4370 | $as_echo_n "(cached) " >&6 |
---|
4371 | else |
---|
4372 | if test -z "$GREP"; then |
---|
4373 | ac_path_GREP_found=false |
---|
4374 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
4375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4376 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
4377 | do |
---|
4378 | IFS=$as_save_IFS |
---|
4379 | test -z "$as_dir" && as_dir=. |
---|
4380 | for ac_prog in grep ggrep; do |
---|
4381 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4382 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
4383 | as_fn_executable_p "$ac_path_GREP" || continue |
---|
4384 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
4385 | # Check for GNU $ac_path_GREP |
---|
4386 | case `"$ac_path_GREP" --version 2>&1` in |
---|
4387 | *GNU*) |
---|
4388 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
4389 | *) |
---|
4390 | ac_count=0 |
---|
4391 | $as_echo_n 0123456789 >"conftest.in" |
---|
4392 | while : |
---|
4393 | do |
---|
4394 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
4395 | mv "conftest.tmp" "conftest.in" |
---|
4396 | cp "conftest.in" "conftest.nl" |
---|
4397 | $as_echo 'GREP' >> "conftest.nl" |
---|
4398 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
4399 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
4400 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
4401 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
4402 | # Best one so far, save it but keep looking for a better one |
---|
4403 | ac_cv_path_GREP="$ac_path_GREP" |
---|
4404 | ac_path_GREP_max=$ac_count |
---|
4405 | fi |
---|
4406 | # 10*(2^10) chars as input seems more than enough |
---|
4407 | test $ac_count -gt 10 && break |
---|
4408 | done |
---|
4409 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
4410 | esac |
---|
4411 | |
---|
4412 | $ac_path_GREP_found && break 3 |
---|
4413 | done |
---|
4414 | done |
---|
4415 | done |
---|
4416 | IFS=$as_save_IFS |
---|
4417 | if test -z "$ac_cv_path_GREP"; then |
---|
4418 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
4419 | fi |
---|
4420 | else |
---|
4421 | ac_cv_path_GREP=$GREP |
---|
4422 | fi |
---|
4423 | |
---|
4424 | fi |
---|
4425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
---|
4426 | $as_echo "$ac_cv_path_GREP" >&6; } |
---|
4427 | GREP="$ac_cv_path_GREP" |
---|
4428 | |
---|
4429 | |
---|
4430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
---|
4431 | $as_echo_n "checking for egrep... " >&6; } |
---|
4432 | if ${ac_cv_path_EGREP+:} false; then : |
---|
4433 | $as_echo_n "(cached) " >&6 |
---|
4434 | else |
---|
4435 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
4436 | then ac_cv_path_EGREP="$GREP -E" |
---|
4437 | else |
---|
4438 | if test -z "$EGREP"; then |
---|
4439 | ac_path_EGREP_found=false |
---|
4440 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
4441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4442 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
4443 | do |
---|
4444 | IFS=$as_save_IFS |
---|
4445 | test -z "$as_dir" && as_dir=. |
---|
4446 | for ac_prog in egrep; do |
---|
4447 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4448 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
4449 | as_fn_executable_p "$ac_path_EGREP" || continue |
---|
4450 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
4451 | # Check for GNU $ac_path_EGREP |
---|
4452 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
4453 | *GNU*) |
---|
4454 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
4455 | *) |
---|
4456 | ac_count=0 |
---|
4457 | $as_echo_n 0123456789 >"conftest.in" |
---|
4458 | while : |
---|
4459 | do |
---|
4460 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
4461 | mv "conftest.tmp" "conftest.in" |
---|
4462 | cp "conftest.in" "conftest.nl" |
---|
4463 | $as_echo 'EGREP' >> "conftest.nl" |
---|
4464 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
4465 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
4466 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
4467 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
4468 | # Best one so far, save it but keep looking for a better one |
---|
4469 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
4470 | ac_path_EGREP_max=$ac_count |
---|
4471 | fi |
---|
4472 | # 10*(2^10) chars as input seems more than enough |
---|
4473 | test $ac_count -gt 10 && break |
---|
4474 | done |
---|
4475 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
4476 | esac |
---|
4477 | |
---|
4478 | $ac_path_EGREP_found && break 3 |
---|
4479 | done |
---|
4480 | done |
---|
4481 | done |
---|
4482 | IFS=$as_save_IFS |
---|
4483 | if test -z "$ac_cv_path_EGREP"; then |
---|
4484 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
4485 | fi |
---|
4486 | else |
---|
4487 | ac_cv_path_EGREP=$EGREP |
---|
4488 | fi |
---|
4489 | |
---|
4490 | fi |
---|
4491 | fi |
---|
4492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
---|
4493 | $as_echo "$ac_cv_path_EGREP" >&6; } |
---|
4494 | EGREP="$ac_cv_path_EGREP" |
---|
4495 | |
---|
4496 | |
---|
4497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
---|
4498 | $as_echo_n "checking for ANSI C header files... " >&6; } |
---|
4499 | if ${ac_cv_header_stdc+:} false; then : |
---|
4500 | $as_echo_n "(cached) " >&6 |
---|
4501 | else |
---|
4502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4503 | /* end confdefs.h. */ |
---|
4504 | #include <stdlib.h> |
---|
4505 | #include <stdarg.h> |
---|
4506 | #include <string.h> |
---|
4507 | #include <float.h> |
---|
4508 | |
---|
4509 | int |
---|
4510 | main () |
---|
4511 | { |
---|
4512 | |
---|
4513 | ; |
---|
4514 | return 0; |
---|
4515 | } |
---|
4516 | _ACEOF |
---|
4517 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4518 | ac_cv_header_stdc=yes |
---|
4519 | else |
---|
4520 | ac_cv_header_stdc=no |
---|
4521 | fi |
---|
4522 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4523 | |
---|
4524 | if test $ac_cv_header_stdc = yes; then |
---|
4525 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
4526 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4527 | /* end confdefs.h. */ |
---|
4528 | #include <string.h> |
---|
4529 | |
---|
4530 | _ACEOF |
---|
4531 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4532 | $EGREP "memchr" >/dev/null 2>&1; then : |
---|
4533 | |
---|
4534 | else |
---|
4535 | ac_cv_header_stdc=no |
---|
4536 | fi |
---|
4537 | rm -f conftest* |
---|
4538 | |
---|
4539 | fi |
---|
4540 | |
---|
4541 | if test $ac_cv_header_stdc = yes; then |
---|
4542 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
4543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4544 | /* end confdefs.h. */ |
---|
4545 | #include <stdlib.h> |
---|
4546 | |
---|
4547 | _ACEOF |
---|
4548 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4549 | $EGREP "free" >/dev/null 2>&1; then : |
---|
4550 | |
---|
4551 | else |
---|
4552 | ac_cv_header_stdc=no |
---|
4553 | fi |
---|
4554 | rm -f conftest* |
---|
4555 | |
---|
4556 | fi |
---|
4557 | |
---|
4558 | if test $ac_cv_header_stdc = yes; then |
---|
4559 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
4560 | if test "$cross_compiling" = yes; then : |
---|
4561 | : |
---|
4562 | else |
---|
4563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4564 | /* end confdefs.h. */ |
---|
4565 | #include <ctype.h> |
---|
4566 | #include <stdlib.h> |
---|
4567 | #if ((' ' & 0x0FF) == 0x020) |
---|
4568 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
4569 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
4570 | #else |
---|
4571 | # define ISLOWER(c) \ |
---|
4572 | (('a' <= (c) && (c) <= 'i') \ |
---|
4573 | || ('j' <= (c) && (c) <= 'r') \ |
---|
4574 | || ('s' <= (c) && (c) <= 'z')) |
---|
4575 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
4576 | #endif |
---|
4577 | |
---|
4578 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
4579 | int |
---|
4580 | main () |
---|
4581 | { |
---|
4582 | int i; |
---|
4583 | for (i = 0; i < 256; i++) |
---|
4584 | if (XOR (islower (i), ISLOWER (i)) |
---|
4585 | || toupper (i) != TOUPPER (i)) |
---|
4586 | return 2; |
---|
4587 | return 0; |
---|
4588 | } |
---|
4589 | _ACEOF |
---|
4590 | if ac_fn_c_try_run "$LINENO"; then : |
---|
4591 | |
---|
4592 | else |
---|
4593 | ac_cv_header_stdc=no |
---|
4594 | fi |
---|
4595 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
4596 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
4597 | fi |
---|
4598 | |
---|
4599 | fi |
---|
4600 | fi |
---|
4601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
---|
4602 | $as_echo "$ac_cv_header_stdc" >&6; } |
---|
4603 | if test $ac_cv_header_stdc = yes; then |
---|
4604 | |
---|
4605 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
---|
4606 | |
---|
4607 | fi |
---|
4608 | |
---|
4609 | ac_fn_c_check_func "$LINENO" "atol" "ac_cv_func_atol" |
---|
4610 | if test "x$ac_cv_func_atol" = xyes; then : |
---|
4611 | |
---|
4612 | else |
---|
4613 | as_fn_error $? "oops! no atol ?!?" "$LINENO" 5 |
---|
4614 | fi |
---|
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 | |
---|
4623 | |
---|
4624 | ac_ext=cpp |
---|
4625 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
4626 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4627 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4628 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
4629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
---|
4630 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
---|
4631 | if test -z "$CXXCPP"; then |
---|
4632 | if ${ac_cv_prog_CXXCPP+:} false; then : |
---|
4633 | $as_echo_n "(cached) " >&6 |
---|
4634 | else |
---|
4635 | # Double quotes because CXXCPP needs to be expanded |
---|
4636 | for CXXCPP in "$CXX -E" "/lib/cpp" |
---|
4637 | do |
---|
4638 | ac_preproc_ok=false |
---|
4639 | for ac_cxx_preproc_warn_flag in '' yes |
---|
4640 | do |
---|
4641 | # Use a header file that comes with gcc, so configuring glibc |
---|
4642 | # with a fresh cross-compiler works. |
---|
4643 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4644 | # <limits.h> exists even on freestanding compilers. |
---|
4645 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4646 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4647 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4648 | /* end confdefs.h. */ |
---|
4649 | #ifdef __STDC__ |
---|
4650 | # include <limits.h> |
---|
4651 | #else |
---|
4652 | # include <assert.h> |
---|
4653 | #endif |
---|
4654 | Syntax error |
---|
4655 | _ACEOF |
---|
4656 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
4657 | |
---|
4658 | else |
---|
4659 | # Broken: fails on valid input. |
---|
4660 | continue |
---|
4661 | fi |
---|
4662 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4663 | |
---|
4664 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
4665 | # can be detected and how. |
---|
4666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4667 | /* end confdefs.h. */ |
---|
4668 | #include <ac_nonexistent.h> |
---|
4669 | _ACEOF |
---|
4670 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
4671 | # Broken: success on invalid input. |
---|
4672 | continue |
---|
4673 | else |
---|
4674 | # Passes both tests. |
---|
4675 | ac_preproc_ok=: |
---|
4676 | break |
---|
4677 | fi |
---|
4678 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4679 | |
---|
4680 | done |
---|
4681 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
4682 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
4683 | if $ac_preproc_ok; then : |
---|
4684 | break |
---|
4685 | fi |
---|
4686 | |
---|
4687 | done |
---|
4688 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
4689 | |
---|
4690 | fi |
---|
4691 | CXXCPP=$ac_cv_prog_CXXCPP |
---|
4692 | else |
---|
4693 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
4694 | fi |
---|
4695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
---|
4696 | $as_echo "$CXXCPP" >&6; } |
---|
4697 | ac_preproc_ok=false |
---|
4698 | for ac_cxx_preproc_warn_flag in '' yes |
---|
4699 | do |
---|
4700 | # Use a header file that comes with gcc, so configuring glibc |
---|
4701 | # with a fresh cross-compiler works. |
---|
4702 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4703 | # <limits.h> exists even on freestanding compilers. |
---|
4704 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4705 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4707 | /* end confdefs.h. */ |
---|
4708 | #ifdef __STDC__ |
---|
4709 | # include <limits.h> |
---|
4710 | #else |
---|
4711 | # include <assert.h> |
---|
4712 | #endif |
---|
4713 | Syntax error |
---|
4714 | _ACEOF |
---|
4715 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
4716 | |
---|
4717 | else |
---|
4718 | # Broken: fails on valid input. |
---|
4719 | continue |
---|
4720 | fi |
---|
4721 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4722 | |
---|
4723 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
4724 | # can be detected and how. |
---|
4725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4726 | /* end confdefs.h. */ |
---|
4727 | #include <ac_nonexistent.h> |
---|
4728 | _ACEOF |
---|
4729 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
4730 | # Broken: success on invalid input. |
---|
4731 | continue |
---|
4732 | else |
---|
4733 | # Passes both tests. |
---|
4734 | ac_preproc_ok=: |
---|
4735 | break |
---|
4736 | fi |
---|
4737 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4738 | |
---|
4739 | done |
---|
4740 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
4741 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
4742 | if $ac_preproc_ok; then : |
---|
4743 | |
---|
4744 | else |
---|
4745 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
4746 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
4747 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
---|
4748 | See \`config.log' for more details" "$LINENO" 5; } |
---|
4749 | fi |
---|
4750 | |
---|
4751 | ac_ext=cpp |
---|
4752 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
4753 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4754 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4755 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
4756 | |
---|
4757 | |
---|
4758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
---|
4759 | $as_echo_n "checking for X... " >&6; } |
---|
4760 | |
---|
4761 | |
---|
4762 | # Check whether --with-x was given. |
---|
4763 | if test "${with_x+set}" = set; then : |
---|
4764 | withval=$with_x; |
---|
4765 | fi |
---|
4766 | |
---|
4767 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
---|
4768 | if test "x$with_x" = xno; then |
---|
4769 | # The user explicitly disabled X. |
---|
4770 | have_x=disabled |
---|
4771 | else |
---|
4772 | case $x_includes,$x_libraries in #( |
---|
4773 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( |
---|
4774 | *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : |
---|
4775 | $as_echo_n "(cached) " >&6 |
---|
4776 | else |
---|
4777 | # One or both of the vars are not set, and there is no cached value. |
---|
4778 | ac_x_includes=no ac_x_libraries=no |
---|
4779 | rm -f -r conftest.dir |
---|
4780 | if mkdir conftest.dir; then |
---|
4781 | cd conftest.dir |
---|
4782 | cat >Imakefile <<'_ACEOF' |
---|
4783 | incroot: |
---|
4784 | @echo incroot='${INCROOT}' |
---|
4785 | usrlibdir: |
---|
4786 | @echo usrlibdir='${USRLIBDIR}' |
---|
4787 | libdir: |
---|
4788 | @echo libdir='${LIBDIR}' |
---|
4789 | _ACEOF |
---|
4790 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
---|
4791 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
4792 | for ac_var in incroot usrlibdir libdir; do |
---|
4793 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
---|
4794 | done |
---|
4795 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
---|
4796 | for ac_extension in a so sl dylib la dll; do |
---|
4797 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
---|
4798 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
---|
4799 | ac_im_usrlibdir=$ac_im_libdir; break |
---|
4800 | fi |
---|
4801 | done |
---|
4802 | # Screen out bogus values from the imake configuration. They are |
---|
4803 | # bogus both because they are the default anyway, and because |
---|
4804 | # using them would break gcc on systems where it needs fixed includes. |
---|
4805 | case $ac_im_incroot in |
---|
4806 | /usr/include) ac_x_includes= ;; |
---|
4807 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
---|
4808 | esac |
---|
4809 | case $ac_im_usrlibdir in |
---|
4810 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
---|
4811 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
---|
4812 | esac |
---|
4813 | fi |
---|
4814 | cd .. |
---|
4815 | rm -f -r conftest.dir |
---|
4816 | fi |
---|
4817 | |
---|
4818 | # Standard set of common directories for X headers. |
---|
4819 | # Check X11 before X11Rn because it is often a symlink to the current release. |
---|
4820 | ac_x_header_dirs=' |
---|
4821 | /usr/X11/include |
---|
4822 | /usr/X11R7/include |
---|
4823 | /usr/X11R6/include |
---|
4824 | /usr/X11R5/include |
---|
4825 | /usr/X11R4/include |
---|
4826 | |
---|
4827 | /usr/include/X11 |
---|
4828 | /usr/include/X11R7 |
---|
4829 | /usr/include/X11R6 |
---|
4830 | /usr/include/X11R5 |
---|
4831 | /usr/include/X11R4 |
---|
4832 | |
---|
4833 | /usr/local/X11/include |
---|
4834 | /usr/local/X11R7/include |
---|
4835 | /usr/local/X11R6/include |
---|
4836 | /usr/local/X11R5/include |
---|
4837 | /usr/local/X11R4/include |
---|
4838 | |
---|
4839 | /usr/local/include/X11 |
---|
4840 | /usr/local/include/X11R7 |
---|
4841 | /usr/local/include/X11R6 |
---|
4842 | /usr/local/include/X11R5 |
---|
4843 | /usr/local/include/X11R4 |
---|
4844 | |
---|
4845 | /usr/X386/include |
---|
4846 | /usr/x386/include |
---|
4847 | /usr/XFree86/include/X11 |
---|
4848 | |
---|
4849 | /usr/include |
---|
4850 | /usr/local/include |
---|
4851 | /usr/unsupported/include |
---|
4852 | /usr/athena/include |
---|
4853 | /usr/local/x11r5/include |
---|
4854 | /usr/lpp/Xamples/include |
---|
4855 | |
---|
4856 | /usr/openwin/include |
---|
4857 | /usr/openwin/share/include' |
---|
4858 | |
---|
4859 | if test "$ac_x_includes" = no; then |
---|
4860 | # Guess where to find include files, by looking for Xlib.h. |
---|
4861 | # First, try using that file with no special directory specified. |
---|
4862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4863 | /* end confdefs.h. */ |
---|
4864 | #include <X11/Xlib.h> |
---|
4865 | _ACEOF |
---|
4866 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
4867 | # We can compile using X headers with no special include directory. |
---|
4868 | ac_x_includes= |
---|
4869 | else |
---|
4870 | for ac_dir in $ac_x_header_dirs; do |
---|
4871 | if test -r "$ac_dir/X11/Xlib.h"; then |
---|
4872 | ac_x_includes=$ac_dir |
---|
4873 | break |
---|
4874 | fi |
---|
4875 | done |
---|
4876 | fi |
---|
4877 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4878 | fi # $ac_x_includes = no |
---|
4879 | |
---|
4880 | if test "$ac_x_libraries" = no; then |
---|
4881 | # Check for the libraries. |
---|
4882 | # See if we find them without any special options. |
---|
4883 | # Don't add to $LIBS permanently. |
---|
4884 | ac_save_LIBS=$LIBS |
---|
4885 | LIBS="-lX11 $LIBS" |
---|
4886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4887 | /* end confdefs.h. */ |
---|
4888 | #include <X11/Xlib.h> |
---|
4889 | int |
---|
4890 | main () |
---|
4891 | { |
---|
4892 | XrmInitialize () |
---|
4893 | ; |
---|
4894 | return 0; |
---|
4895 | } |
---|
4896 | _ACEOF |
---|
4897 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
4898 | LIBS=$ac_save_LIBS |
---|
4899 | # We can link X programs with no special library path. |
---|
4900 | ac_x_libraries= |
---|
4901 | else |
---|
4902 | LIBS=$ac_save_LIBS |
---|
4903 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
---|
4904 | do |
---|
4905 | # Don't even attempt the hair of trying to link an X program! |
---|
4906 | for ac_extension in a so sl dylib la dll; do |
---|
4907 | if test -r "$ac_dir/libX11.$ac_extension"; then |
---|
4908 | ac_x_libraries=$ac_dir |
---|
4909 | break 2 |
---|
4910 | fi |
---|
4911 | done |
---|
4912 | done |
---|
4913 | fi |
---|
4914 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4915 | conftest$ac_exeext conftest.$ac_ext |
---|
4916 | fi # $ac_x_libraries = no |
---|
4917 | |
---|
4918 | case $ac_x_includes,$ac_x_libraries in #( |
---|
4919 | no,* | *,no | *\'*) |
---|
4920 | # Didn't find X, or a directory has "'" in its name. |
---|
4921 | ac_cv_have_x="have_x=no";; #( |
---|
4922 | *) |
---|
4923 | # Record where we found X for the cache. |
---|
4924 | ac_cv_have_x="have_x=yes\ |
---|
4925 | ac_x_includes='$ac_x_includes'\ |
---|
4926 | ac_x_libraries='$ac_x_libraries'" |
---|
4927 | esac |
---|
4928 | fi |
---|
4929 | ;; #( |
---|
4930 | *) have_x=yes;; |
---|
4931 | esac |
---|
4932 | eval "$ac_cv_have_x" |
---|
4933 | fi # $with_x != no |
---|
4934 | |
---|
4935 | if test "$have_x" != yes; then |
---|
4936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
---|
4937 | $as_echo "$have_x" >&6; } |
---|
4938 | no_x=yes |
---|
4939 | else |
---|
4940 | # If each of the values was on the command line, it overrides each guess. |
---|
4941 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
---|
4942 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
---|
4943 | # Update the cache value to reflect the command line values. |
---|
4944 | ac_cv_have_x="have_x=yes\ |
---|
4945 | ac_x_includes='$x_includes'\ |
---|
4946 | ac_x_libraries='$x_libraries'" |
---|
4947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 |
---|
4948 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
---|
4949 | fi |
---|
4950 | |
---|
4951 | |
---|
4952 | # ----------------------------------------------------------------------- |
---|
4953 | # |
---|
4954 | # Compiler characteristics: |
---|
4955 | # Check for existence of types of size_t and pid_t |
---|
4956 | # |
---|
4957 | # ----------------------------------------------------------------------- |
---|
4958 | |
---|
4959 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
4960 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
4961 | inttypes.h stdint.h unistd.h |
---|
4962 | do : |
---|
4963 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4964 | ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
---|
4965 | " |
---|
4966 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
4967 | cat >>confdefs.h <<_ACEOF |
---|
4968 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4969 | _ACEOF |
---|
4970 | |
---|
4971 | fi |
---|
4972 | |
---|
4973 | done |
---|
4974 | |
---|
4975 | |
---|
4976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
---|
4977 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
---|
4978 | if ${ac_cv_c_bigendian+:} false; then : |
---|
4979 | $as_echo_n "(cached) " >&6 |
---|
4980 | else |
---|
4981 | ac_cv_c_bigendian=unknown |
---|
4982 | # See if we're dealing with a universal compiler. |
---|
4983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4984 | /* end confdefs.h. */ |
---|
4985 | #ifndef __APPLE_CC__ |
---|
4986 | not a universal capable compiler |
---|
4987 | #endif |
---|
4988 | typedef int dummy; |
---|
4989 | |
---|
4990 | _ACEOF |
---|
4991 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
4992 | |
---|
4993 | # Check for potential -arch flags. It is not universal unless |
---|
4994 | # there are at least two -arch flags with different values. |
---|
4995 | ac_arch= |
---|
4996 | ac_prev= |
---|
4997 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
---|
4998 | if test -n "$ac_prev"; then |
---|
4999 | case $ac_word in |
---|
5000 | i?86 | x86_64 | ppc | ppc64) |
---|
5001 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
---|
5002 | ac_arch=$ac_word |
---|
5003 | else |
---|
5004 | ac_cv_c_bigendian=universal |
---|
5005 | break |
---|
5006 | fi |
---|
5007 | ;; |
---|
5008 | esac |
---|
5009 | ac_prev= |
---|
5010 | elif test "x$ac_word" = "x-arch"; then |
---|
5011 | ac_prev=arch |
---|
5012 | fi |
---|
5013 | done |
---|
5014 | fi |
---|
5015 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5016 | if test $ac_cv_c_bigendian = unknown; then |
---|
5017 | # See if sys/param.h defines the BYTE_ORDER macro. |
---|
5018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5019 | /* end confdefs.h. */ |
---|
5020 | #include <sys/types.h> |
---|
5021 | #include <sys/param.h> |
---|
5022 | |
---|
5023 | int |
---|
5024 | main () |
---|
5025 | { |
---|
5026 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
---|
5027 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
---|
5028 | && LITTLE_ENDIAN) |
---|
5029 | bogus endian macros |
---|
5030 | #endif |
---|
5031 | |
---|
5032 | ; |
---|
5033 | return 0; |
---|
5034 | } |
---|
5035 | _ACEOF |
---|
5036 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
5037 | # It does; now see whether it defined to BIG_ENDIAN or not. |
---|
5038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5039 | /* end confdefs.h. */ |
---|
5040 | #include <sys/types.h> |
---|
5041 | #include <sys/param.h> |
---|
5042 | |
---|
5043 | int |
---|
5044 | main () |
---|
5045 | { |
---|
5046 | #if BYTE_ORDER != BIG_ENDIAN |
---|
5047 | not big endian |
---|
5048 | #endif |
---|
5049 | |
---|
5050 | ; |
---|
5051 | return 0; |
---|
5052 | } |
---|
5053 | _ACEOF |
---|
5054 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
5055 | ac_cv_c_bigendian=yes |
---|
5056 | else |
---|
5057 | ac_cv_c_bigendian=no |
---|
5058 | fi |
---|
5059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5060 | fi |
---|
5061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5062 | fi |
---|
5063 | if test $ac_cv_c_bigendian = unknown; then |
---|
5064 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
---|
5065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5066 | /* end confdefs.h. */ |
---|
5067 | #include <limits.h> |
---|
5068 | |
---|
5069 | int |
---|
5070 | main () |
---|
5071 | { |
---|
5072 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
---|
5073 | bogus endian macros |
---|
5074 | #endif |
---|
5075 | |
---|
5076 | ; |
---|
5077 | return 0; |
---|
5078 | } |
---|
5079 | _ACEOF |
---|
5080 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
5081 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
---|
5082 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5083 | /* end confdefs.h. */ |
---|
5084 | #include <limits.h> |
---|
5085 | |
---|
5086 | int |
---|
5087 | main () |
---|
5088 | { |
---|
5089 | #ifndef _BIG_ENDIAN |
---|
5090 | not big endian |
---|
5091 | #endif |
---|
5092 | |
---|
5093 | ; |
---|
5094 | return 0; |
---|
5095 | } |
---|
5096 | _ACEOF |
---|
5097 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
5098 | ac_cv_c_bigendian=yes |
---|
5099 | else |
---|
5100 | ac_cv_c_bigendian=no |
---|
5101 | fi |
---|
5102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5103 | fi |
---|
5104 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5105 | fi |
---|
5106 | if test $ac_cv_c_bigendian = unknown; then |
---|
5107 | # Compile a test program. |
---|
5108 | if test "$cross_compiling" = yes; then : |
---|
5109 | # Try to guess by grepping values from an object file. |
---|
5110 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5111 | /* end confdefs.h. */ |
---|
5112 | short int ascii_mm[] = |
---|
5113 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
---|
5114 | short int ascii_ii[] = |
---|
5115 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
---|
5116 | int use_ascii (int i) { |
---|
5117 | return ascii_mm[i] + ascii_ii[i]; |
---|
5118 | } |
---|
5119 | short int ebcdic_ii[] = |
---|
5120 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
---|
5121 | short int ebcdic_mm[] = |
---|
5122 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
---|
5123 | int use_ebcdic (int i) { |
---|
5124 | return ebcdic_mm[i] + ebcdic_ii[i]; |
---|
5125 | } |
---|
5126 | extern int foo; |
---|
5127 | |
---|
5128 | int |
---|
5129 | main () |
---|
5130 | { |
---|
5131 | return use_ascii (foo) == use_ebcdic (foo); |
---|
5132 | ; |
---|
5133 | return 0; |
---|
5134 | } |
---|
5135 | _ACEOF |
---|
5136 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
5137 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
---|
5138 | ac_cv_c_bigendian=yes |
---|
5139 | fi |
---|
5140 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
---|
5141 | if test "$ac_cv_c_bigendian" = unknown; then |
---|
5142 | ac_cv_c_bigendian=no |
---|
5143 | else |
---|
5144 | # finding both strings is unlikely to happen, but who knows? |
---|
5145 | ac_cv_c_bigendian=unknown |
---|
5146 | fi |
---|
5147 | fi |
---|
5148 | fi |
---|
5149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5150 | else |
---|
5151 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5152 | /* end confdefs.h. */ |
---|
5153 | $ac_includes_default |
---|
5154 | int |
---|
5155 | main () |
---|
5156 | { |
---|
5157 | |
---|
5158 | /* Are we little or big endian? From Harbison&Steele. */ |
---|
5159 | union |
---|
5160 | { |
---|
5161 | long int l; |
---|
5162 | char c[sizeof (long int)]; |
---|
5163 | } u; |
---|
5164 | u.l = 1; |
---|
5165 | return u.c[sizeof (long int) - 1] == 1; |
---|
5166 | |
---|
5167 | ; |
---|
5168 | return 0; |
---|
5169 | } |
---|
5170 | _ACEOF |
---|
5171 | if ac_fn_cxx_try_run "$LINENO"; then : |
---|
5172 | ac_cv_c_bigendian=no |
---|
5173 | else |
---|
5174 | ac_cv_c_bigendian=yes |
---|
5175 | fi |
---|
5176 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
5177 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
5178 | fi |
---|
5179 | |
---|
5180 | fi |
---|
5181 | fi |
---|
5182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
---|
5183 | $as_echo "$ac_cv_c_bigendian" >&6; } |
---|
5184 | case $ac_cv_c_bigendian in #( |
---|
5185 | yes) |
---|
5186 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
---|
5187 | ;; #( |
---|
5188 | no) |
---|
5189 | ;; #( |
---|
5190 | universal) |
---|
5191 | |
---|
5192 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
---|
5193 | |
---|
5194 | ;; #( |
---|
5195 | *) |
---|
5196 | as_fn_error $? "unknown endianness |
---|
5197 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
---|
5198 | esac |
---|
5199 | |
---|
5200 | # The cast to long int works around a bug in the HP C Compiler |
---|
5201 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
---|
5202 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
---|
5203 | # This bug is HP SR number 8606223364. |
---|
5204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
---|
5205 | $as_echo_n "checking size of int... " >&6; } |
---|
5206 | if ${ac_cv_sizeof_int+:} false; then : |
---|
5207 | $as_echo_n "(cached) " >&6 |
---|
5208 | else |
---|
5209 | if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : |
---|
5210 | |
---|
5211 | else |
---|
5212 | if test "$ac_cv_type_int" = yes; then |
---|
5213 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
5214 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
5215 | as_fn_error 77 "cannot compute sizeof (int) |
---|
5216 | See \`config.log' for more details" "$LINENO" 5; } |
---|
5217 | else |
---|
5218 | ac_cv_sizeof_int=0 |
---|
5219 | fi |
---|
5220 | fi |
---|
5221 | |
---|
5222 | fi |
---|
5223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
---|
5224 | $as_echo "$ac_cv_sizeof_int" >&6; } |
---|
5225 | |
---|
5226 | |
---|
5227 | |
---|
5228 | cat >>confdefs.h <<_ACEOF |
---|
5229 | #define SIZEOF_INT $ac_cv_sizeof_int |
---|
5230 | _ACEOF |
---|
5231 | |
---|
5232 | |
---|
5233 | # The cast to long int works around a bug in the HP C Compiler |
---|
5234 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
---|
5235 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
---|
5236 | # This bug is HP SR number 8606223364. |
---|
5237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
---|
5238 | $as_echo_n "checking size of long... " >&6; } |
---|
5239 | if ${ac_cv_sizeof_long+:} false; then : |
---|
5240 | $as_echo_n "(cached) " >&6 |
---|
5241 | else |
---|
5242 | if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
---|
5243 | |
---|
5244 | else |
---|
5245 | if test "$ac_cv_type_long" = yes; then |
---|
5246 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
5247 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
5248 | as_fn_error 77 "cannot compute sizeof (long) |
---|
5249 | See \`config.log' for more details" "$LINENO" 5; } |
---|
5250 | else |
---|
5251 | ac_cv_sizeof_long=0 |
---|
5252 | fi |
---|
5253 | fi |
---|
5254 | |
---|
5255 | fi |
---|
5256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
---|
5257 | $as_echo "$ac_cv_sizeof_long" >&6; } |
---|
5258 | |
---|
5259 | |
---|
5260 | |
---|
5261 | cat >>confdefs.h <<_ACEOF |
---|
5262 | #define SIZEOF_LONG $ac_cv_sizeof_long |
---|
5263 | _ACEOF |
---|
5264 | |
---|
5265 | |
---|
5266 | # The cast to long int works around a bug in the HP C Compiler |
---|
5267 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
---|
5268 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
---|
5269 | # This bug is HP SR number 8606223364. |
---|
5270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
---|
5271 | $as_echo_n "checking size of long long... " >&6; } |
---|
5272 | if ${ac_cv_sizeof_long_long+:} false; then : |
---|
5273 | $as_echo_n "(cached) " >&6 |
---|
5274 | else |
---|
5275 | if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : |
---|
5276 | |
---|
5277 | else |
---|
5278 | if test "$ac_cv_type_long_long" = yes; then |
---|
5279 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
5280 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
5281 | as_fn_error 77 "cannot compute sizeof (long long) |
---|
5282 | See \`config.log' for more details" "$LINENO" 5; } |
---|
5283 | else |
---|
5284 | ac_cv_sizeof_long_long=0 |
---|
5285 | fi |
---|
5286 | fi |
---|
5287 | |
---|
5288 | fi |
---|
5289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
---|
5290 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
---|
5291 | |
---|
5292 | |
---|
5293 | |
---|
5294 | cat >>confdefs.h <<_ACEOF |
---|
5295 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
---|
5296 | _ACEOF |
---|
5297 | |
---|
5298 | |
---|
5299 | # The cast to long int works around a bug in the HP C Compiler |
---|
5300 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
---|
5301 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
---|
5302 | # This bug is HP SR number 8606223364. |
---|
5303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 |
---|
5304 | $as_echo_n "checking size of void *... " >&6; } |
---|
5305 | if ${ac_cv_sizeof_void_p+:} false; then : |
---|
5306 | $as_echo_n "(cached) " >&6 |
---|
5307 | else |
---|
5308 | if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : |
---|
5309 | |
---|
5310 | else |
---|
5311 | if test "$ac_cv_type_void_p" = yes; then |
---|
5312 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
5313 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
5314 | as_fn_error 77 "cannot compute sizeof (void *) |
---|
5315 | See \`config.log' for more details" "$LINENO" 5; } |
---|
5316 | else |
---|
5317 | ac_cv_sizeof_void_p=0 |
---|
5318 | fi |
---|
5319 | fi |
---|
5320 | |
---|
5321 | fi |
---|
5322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
---|
5323 | $as_echo "$ac_cv_sizeof_void_p" >&6; } |
---|
5324 | |
---|
5325 | |
---|
5326 | |
---|
5327 | cat >>confdefs.h <<_ACEOF |
---|
5328 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
---|
5329 | _ACEOF |
---|
5330 | |
---|
5331 | |
---|
5332 | |
---|
5333 | SIZEOF_LONG="${ac_cv_sizeof_long}" |
---|
5334 | SIZEOF_LONG_LONG="${ac_cv_sizeof_long_long}" |
---|
5335 | SIZEOF_VOID_P="${ac_cv_sizeof_void_p}" |
---|
5336 | SIZEOF_INT="${ac_cv_sizeof_int}" |
---|
5337 | |
---|
5338 | |
---|
5339 | for ac_func in sysinfo |
---|
5340 | do : |
---|
5341 | ac_fn_cxx_check_func "$LINENO" "sysinfo" "ac_cv_func_sysinfo" |
---|
5342 | if test "x$ac_cv_func_sysinfo" = xyes; then : |
---|
5343 | cat >>confdefs.h <<_ACEOF |
---|
5344 | #define HAVE_SYSINFO 1 |
---|
5345 | _ACEOF |
---|
5346 | |
---|
5347 | fi |
---|
5348 | done |
---|
5349 | |
---|
5350 | for ac_func in gettimeofday |
---|
5351 | do : |
---|
5352 | ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" |
---|
5353 | if test "x$ac_cv_func_gettimeofday" = xyes; then : |
---|
5354 | cat >>confdefs.h <<_ACEOF |
---|
5355 | #define HAVE_GETTIMEOFDAY 1 |
---|
5356 | _ACEOF |
---|
5357 | |
---|
5358 | fi |
---|
5359 | done |
---|
5360 | |
---|
5361 | ac_fn_cxx_check_func "$LINENO" "localtime" "ac_cv_func_localtime" |
---|
5362 | if test "x$ac_cv_func_localtime" = xyes; then : |
---|
5363 | |
---|
5364 | else |
---|
5365 | as_fn_error $? "oops! no localtime ?!?" "$LINENO" 5 |
---|
5366 | fi |
---|
5367 | |
---|
5368 | ac_fn_cxx_check_func "$LINENO" "getenv" "ac_cv_func_getenv" |
---|
5369 | if test "x$ac_cv_func_getenv" = xyes; then : |
---|
5370 | |
---|
5371 | else |
---|
5372 | as_fn_error $? "oops! no getenv ?!?" "$LINENO" 5 |
---|
5373 | fi |
---|
5374 | |
---|
5375 | |
---|
5376 | for ac_header in sys/sysinfo.h |
---|
5377 | do : |
---|
5378 | ac_fn_cxx_check_header_mongrel "$LINENO" "sys/sysinfo.h" "ac_cv_header_sys_sysinfo_h" "$ac_includes_default" |
---|
5379 | if test "x$ac_cv_header_sys_sysinfo_h" = xyes; then : |
---|
5380 | cat >>confdefs.h <<_ACEOF |
---|
5381 | #define HAVE_SYS_SYSINFO_H 1 |
---|
5382 | _ACEOF |
---|
5383 | |
---|
5384 | fi |
---|
5385 | |
---|
5386 | done |
---|
5387 | |
---|
5388 | |
---|
5389 | HAVE_LIBNCURSES=no |
---|
5390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clrtoeol in -lncurses" >&5 |
---|
5391 | $as_echo_n "checking for clrtoeol in -lncurses... " >&6; } |
---|
5392 | if ${ac_cv_lib_ncurses_clrtoeol+:} false; then : |
---|
5393 | $as_echo_n "(cached) " >&6 |
---|
5394 | else |
---|
5395 | ac_check_lib_save_LIBS=$LIBS |
---|
5396 | LIBS="-lncurses $LIBS" |
---|
5397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5398 | /* end confdefs.h. */ |
---|
5399 | |
---|
5400 | /* Override any GCC internal prototype to avoid an error. |
---|
5401 | Use char because int might match the return type of a GCC |
---|
5402 | builtin and then its argument prototype would still apply. */ |
---|
5403 | #ifdef __cplusplus |
---|
5404 | extern "C" |
---|
5405 | #endif |
---|
5406 | char clrtoeol (); |
---|
5407 | int |
---|
5408 | main () |
---|
5409 | { |
---|
5410 | return clrtoeol (); |
---|
5411 | ; |
---|
5412 | return 0; |
---|
5413 | } |
---|
5414 | _ACEOF |
---|
5415 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
5416 | ac_cv_lib_ncurses_clrtoeol=yes |
---|
5417 | else |
---|
5418 | ac_cv_lib_ncurses_clrtoeol=no |
---|
5419 | fi |
---|
5420 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5421 | conftest$ac_exeext conftest.$ac_ext |
---|
5422 | LIBS=$ac_check_lib_save_LIBS |
---|
5423 | fi |
---|
5424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_clrtoeol" >&5 |
---|
5425 | $as_echo "$ac_cv_lib_ncurses_clrtoeol" >&6; } |
---|
5426 | if test "x$ac_cv_lib_ncurses_clrtoeol" = xyes; then : |
---|
5427 | HAVE_LIBNCURSES=yes |
---|
5428 | else |
---|
5429 | as_fn_error $? "ncurses library missing?" "$LINENO" 5 |
---|
5430 | fi |
---|
5431 | |
---|
5432 | for ac_header in ncurses.h |
---|
5433 | do : |
---|
5434 | ac_fn_cxx_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default" |
---|
5435 | if test "x$ac_cv_header_ncurses_h" = xyes; then : |
---|
5436 | cat >>confdefs.h <<_ACEOF |
---|
5437 | #define HAVE_NCURSES_H 1 |
---|
5438 | _ACEOF |
---|
5439 | |
---|
5440 | else |
---|
5441 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ncurses headers missing ?" >&5 |
---|
5442 | $as_echo "$as_me: WARNING: ncurses headers missing ?" >&2;} |
---|
5443 | fi |
---|
5444 | |
---|
5445 | done |
---|
5446 | |
---|
5447 | |
---|
5448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5 |
---|
5449 | $as_echo_n "checking for main in -lstdc++... " >&6; } |
---|
5450 | if ${ac_cv_lib_stdcpp_main+:} false; then : |
---|
5451 | $as_echo_n "(cached) " >&6 |
---|
5452 | else |
---|
5453 | ac_check_lib_save_LIBS=$LIBS |
---|
5454 | LIBS="-lstdc++ $LIBS" |
---|
5455 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5456 | /* end confdefs.h. */ |
---|
5457 | |
---|
5458 | |
---|
5459 | int |
---|
5460 | main () |
---|
5461 | { |
---|
5462 | return main (); |
---|
5463 | ; |
---|
5464 | return 0; |
---|
5465 | } |
---|
5466 | _ACEOF |
---|
5467 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
5468 | ac_cv_lib_stdcpp_main=yes |
---|
5469 | else |
---|
5470 | ac_cv_lib_stdcpp_main=no |
---|
5471 | fi |
---|
5472 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5473 | conftest$ac_exeext conftest.$ac_ext |
---|
5474 | LIBS=$ac_check_lib_save_LIBS |
---|
5475 | fi |
---|
5476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp_main" >&5 |
---|
5477 | $as_echo "$ac_cv_lib_stdcpp_main" >&6; } |
---|
5478 | if test "x$ac_cv_lib_stdcpp_main" = xyes; then : |
---|
5479 | cat >>confdefs.h <<_ACEOF |
---|
5480 | #define HAVE_LIBSTDC__ 1 |
---|
5481 | _ACEOF |
---|
5482 | |
---|
5483 | LIBS="-lstdc++ $LIBS" |
---|
5484 | |
---|
5485 | else |
---|
5486 | as_fn_error $? "librappture requires libstdc++" "$LINENO" 5 |
---|
5487 | fi |
---|
5488 | |
---|
5489 | for ac_header in algorithm |
---|
5490 | do : |
---|
5491 | ac_fn_cxx_check_header_mongrel "$LINENO" "algorithm" "ac_cv_header_algorithm" "$ac_includes_default" |
---|
5492 | if test "x$ac_cv_header_algorithm" = xyes; then : |
---|
5493 | cat >>confdefs.h <<_ACEOF |
---|
5494 | #define HAVE_ALGORITHM 1 |
---|
5495 | _ACEOF |
---|
5496 | |
---|
5497 | else |
---|
5498 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5499 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5500 | fi |
---|
5501 | |
---|
5502 | done |
---|
5503 | |
---|
5504 | for ac_header in cctype |
---|
5505 | do : |
---|
5506 | ac_fn_cxx_check_header_mongrel "$LINENO" "cctype" "ac_cv_header_cctype" "$ac_includes_default" |
---|
5507 | if test "x$ac_cv_header_cctype" = xyes; then : |
---|
5508 | cat >>confdefs.h <<_ACEOF |
---|
5509 | #define HAVE_CCTYPE 1 |
---|
5510 | _ACEOF |
---|
5511 | |
---|
5512 | else |
---|
5513 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5514 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5515 | fi |
---|
5516 | |
---|
5517 | done |
---|
5518 | |
---|
5519 | for ac_header in cfloat |
---|
5520 | do : |
---|
5521 | ac_fn_cxx_check_header_mongrel "$LINENO" "cfloat" "ac_cv_header_cfloat" "$ac_includes_default" |
---|
5522 | if test "x$ac_cv_header_cfloat" = xyes; then : |
---|
5523 | cat >>confdefs.h <<_ACEOF |
---|
5524 | #define HAVE_CFLOAT 1 |
---|
5525 | _ACEOF |
---|
5526 | |
---|
5527 | else |
---|
5528 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5529 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5530 | fi |
---|
5531 | |
---|
5532 | done |
---|
5533 | |
---|
5534 | for ac_header in cmath |
---|
5535 | do : |
---|
5536 | ac_fn_cxx_check_header_mongrel "$LINENO" "cmath" "ac_cv_header_cmath" "$ac_includes_default" |
---|
5537 | if test "x$ac_cv_header_cmath" = xyes; then : |
---|
5538 | cat >>confdefs.h <<_ACEOF |
---|
5539 | #define HAVE_CMATH 1 |
---|
5540 | _ACEOF |
---|
5541 | |
---|
5542 | else |
---|
5543 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5544 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5545 | fi |
---|
5546 | |
---|
5547 | done |
---|
5548 | |
---|
5549 | for ac_header in cstdio |
---|
5550 | do : |
---|
5551 | ac_fn_cxx_check_header_mongrel "$LINENO" "cstdio" "ac_cv_header_cstdio" "$ac_includes_default" |
---|
5552 | if test "x$ac_cv_header_cstdio" = xyes; then : |
---|
5553 | cat >>confdefs.h <<_ACEOF |
---|
5554 | #define HAVE_CSTDIO 1 |
---|
5555 | _ACEOF |
---|
5556 | |
---|
5557 | else |
---|
5558 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5559 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5560 | fi |
---|
5561 | |
---|
5562 | done |
---|
5563 | |
---|
5564 | for ac_header in cstdlib |
---|
5565 | do : |
---|
5566 | ac_fn_cxx_check_header_mongrel "$LINENO" "cstdlib" "ac_cv_header_cstdlib" "$ac_includes_default" |
---|
5567 | if test "x$ac_cv_header_cstdlib" = xyes; then : |
---|
5568 | cat >>confdefs.h <<_ACEOF |
---|
5569 | #define HAVE_CSTDLIB 1 |
---|
5570 | _ACEOF |
---|
5571 | |
---|
5572 | else |
---|
5573 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5574 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5575 | fi |
---|
5576 | |
---|
5577 | done |
---|
5578 | |
---|
5579 | for ac_header in cstring |
---|
5580 | do : |
---|
5581 | ac_fn_cxx_check_header_mongrel "$LINENO" "cstring" "ac_cv_header_cstring" "$ac_includes_default" |
---|
5582 | if test "x$ac_cv_header_cstring" = xyes; then : |
---|
5583 | cat >>confdefs.h <<_ACEOF |
---|
5584 | #define HAVE_CSTRING 1 |
---|
5585 | _ACEOF |
---|
5586 | |
---|
5587 | else |
---|
5588 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5589 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5590 | fi |
---|
5591 | |
---|
5592 | done |
---|
5593 | |
---|
5594 | for ac_header in fstream |
---|
5595 | do : |
---|
5596 | ac_fn_cxx_check_header_mongrel "$LINENO" "fstream" "ac_cv_header_fstream" "$ac_includes_default" |
---|
5597 | if test "x$ac_cv_header_fstream" = xyes; then : |
---|
5598 | cat >>confdefs.h <<_ACEOF |
---|
5599 | #define HAVE_FSTREAM 1 |
---|
5600 | _ACEOF |
---|
5601 | |
---|
5602 | else |
---|
5603 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5604 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5605 | fi |
---|
5606 | |
---|
5607 | done |
---|
5608 | |
---|
5609 | for ac_header in list |
---|
5610 | do : |
---|
5611 | ac_fn_cxx_check_header_mongrel "$LINENO" "list" "ac_cv_header_list" "$ac_includes_default" |
---|
5612 | if test "x$ac_cv_header_list" = xyes; then : |
---|
5613 | cat >>confdefs.h <<_ACEOF |
---|
5614 | #define HAVE_LIST 1 |
---|
5615 | _ACEOF |
---|
5616 | |
---|
5617 | else |
---|
5618 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5619 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5620 | fi |
---|
5621 | |
---|
5622 | done |
---|
5623 | |
---|
5624 | for ac_header in iostream |
---|
5625 | do : |
---|
5626 | ac_fn_cxx_check_header_mongrel "$LINENO" "iostream" "ac_cv_header_iostream" "$ac_includes_default" |
---|
5627 | if test "x$ac_cv_header_iostream" = xyes; then : |
---|
5628 | cat >>confdefs.h <<_ACEOF |
---|
5629 | #define HAVE_IOSTREAM 1 |
---|
5630 | _ACEOF |
---|
5631 | |
---|
5632 | else |
---|
5633 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5634 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5635 | fi |
---|
5636 | |
---|
5637 | done |
---|
5638 | |
---|
5639 | for ac_header in iterator |
---|
5640 | do : |
---|
5641 | ac_fn_cxx_check_header_mongrel "$LINENO" "iterator" "ac_cv_header_iterator" "$ac_includes_default" |
---|
5642 | if test "x$ac_cv_header_iterator" = xyes; then : |
---|
5643 | cat >>confdefs.h <<_ACEOF |
---|
5644 | #define HAVE_ITERATOR 1 |
---|
5645 | _ACEOF |
---|
5646 | |
---|
5647 | else |
---|
5648 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5649 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5650 | fi |
---|
5651 | |
---|
5652 | done |
---|
5653 | |
---|
5654 | for ac_header in sstream |
---|
5655 | do : |
---|
5656 | ac_fn_cxx_check_header_mongrel "$LINENO" "sstream" "ac_cv_header_sstream" "$ac_includes_default" |
---|
5657 | if test "x$ac_cv_header_sstream" = xyes; then : |
---|
5658 | cat >>confdefs.h <<_ACEOF |
---|
5659 | #define HAVE_SSTREAM 1 |
---|
5660 | _ACEOF |
---|
5661 | |
---|
5662 | else |
---|
5663 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5664 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5665 | fi |
---|
5666 | |
---|
5667 | done |
---|
5668 | |
---|
5669 | for ac_header in stack |
---|
5670 | do : |
---|
5671 | ac_fn_cxx_check_header_mongrel "$LINENO" "stack" "ac_cv_header_stack" "$ac_includes_default" |
---|
5672 | if test "x$ac_cv_header_stack" = xyes; then : |
---|
5673 | cat >>confdefs.h <<_ACEOF |
---|
5674 | #define HAVE_STACK 1 |
---|
5675 | _ACEOF |
---|
5676 | |
---|
5677 | else |
---|
5678 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5679 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5680 | fi |
---|
5681 | |
---|
5682 | done |
---|
5683 | |
---|
5684 | for ac_header in string |
---|
5685 | do : |
---|
5686 | ac_fn_cxx_check_header_mongrel "$LINENO" "string" "ac_cv_header_string" "$ac_includes_default" |
---|
5687 | if test "x$ac_cv_header_string" = xyes; then : |
---|
5688 | cat >>confdefs.h <<_ACEOF |
---|
5689 | #define HAVE_STRING 1 |
---|
5690 | _ACEOF |
---|
5691 | |
---|
5692 | else |
---|
5693 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5694 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5695 | fi |
---|
5696 | |
---|
5697 | done |
---|
5698 | |
---|
5699 | for ac_header in vector |
---|
5700 | do : |
---|
5701 | ac_fn_cxx_check_header_mongrel "$LINENO" "vector" "ac_cv_header_vector" "$ac_includes_default" |
---|
5702 | if test "x$ac_cv_header_vector" = xyes; then : |
---|
5703 | cat >>confdefs.h <<_ACEOF |
---|
5704 | #define HAVE_VECTOR 1 |
---|
5705 | _ACEOF |
---|
5706 | |
---|
5707 | else |
---|
5708 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 |
---|
5709 | $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} |
---|
5710 | fi |
---|
5711 | |
---|
5712 | done |
---|
5713 | |
---|
5714 | |
---|
5715 | for ac_header in assert.h |
---|
5716 | do : |
---|
5717 | ac_fn_cxx_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default" |
---|
5718 | if test "x$ac_cv_header_assert_h" = xyes; then : |
---|
5719 | cat >>confdefs.h <<_ACEOF |
---|
5720 | #define HAVE_ASSERT_H 1 |
---|
5721 | _ACEOF |
---|
5722 | |
---|
5723 | else |
---|
5724 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5725 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5726 | fi |
---|
5727 | |
---|
5728 | done |
---|
5729 | |
---|
5730 | for ac_header in ctype.h |
---|
5731 | do : |
---|
5732 | ac_fn_cxx_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default" |
---|
5733 | if test "x$ac_cv_header_ctype_h" = xyes; then : |
---|
5734 | cat >>confdefs.h <<_ACEOF |
---|
5735 | #define HAVE_CTYPE_H 1 |
---|
5736 | _ACEOF |
---|
5737 | |
---|
5738 | else |
---|
5739 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5740 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5741 | fi |
---|
5742 | |
---|
5743 | done |
---|
5744 | |
---|
5745 | for ac_header in errno.h |
---|
5746 | do : |
---|
5747 | ac_fn_cxx_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" |
---|
5748 | if test "x$ac_cv_header_errno_h" = xyes; then : |
---|
5749 | cat >>confdefs.h <<_ACEOF |
---|
5750 | #define HAVE_ERRNO_H 1 |
---|
5751 | _ACEOF |
---|
5752 | |
---|
5753 | else |
---|
5754 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5755 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5756 | fi |
---|
5757 | |
---|
5758 | done |
---|
5759 | |
---|
5760 | for ac_header in limits.h |
---|
5761 | do : |
---|
5762 | ac_fn_cxx_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" |
---|
5763 | if test "x$ac_cv_header_limits_h" = xyes; then : |
---|
5764 | cat >>confdefs.h <<_ACEOF |
---|
5765 | #define HAVE_LIMITS_H 1 |
---|
5766 | _ACEOF |
---|
5767 | |
---|
5768 | else |
---|
5769 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5770 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5771 | fi |
---|
5772 | |
---|
5773 | done |
---|
5774 | |
---|
5775 | for ac_header in string.h |
---|
5776 | do : |
---|
5777 | ac_fn_cxx_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" |
---|
5778 | if test "x$ac_cv_header_string_h" = xyes; then : |
---|
5779 | cat >>confdefs.h <<_ACEOF |
---|
5780 | #define HAVE_STRING_H 1 |
---|
5781 | _ACEOF |
---|
5782 | |
---|
5783 | else |
---|
5784 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5785 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5786 | fi |
---|
5787 | |
---|
5788 | done |
---|
5789 | |
---|
5790 | for ac_header in stdlib.h |
---|
5791 | do : |
---|
5792 | ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" |
---|
5793 | if test "x$ac_cv_header_stdlib_h" = xyes; then : |
---|
5794 | cat >>confdefs.h <<_ACEOF |
---|
5795 | #define HAVE_STDLIB_H 1 |
---|
5796 | _ACEOF |
---|
5797 | |
---|
5798 | else |
---|
5799 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5800 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5801 | fi |
---|
5802 | |
---|
5803 | done |
---|
5804 | |
---|
5805 | for ac_header in stddef.h |
---|
5806 | do : |
---|
5807 | ac_fn_cxx_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default" |
---|
5808 | if test "x$ac_cv_header_stddef_h" = xyes; then : |
---|
5809 | cat >>confdefs.h <<_ACEOF |
---|
5810 | #define HAVE_STDDEF_H 1 |
---|
5811 | _ACEOF |
---|
5812 | |
---|
5813 | else |
---|
5814 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5815 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5816 | fi |
---|
5817 | |
---|
5818 | done |
---|
5819 | |
---|
5820 | for ac_header in float.h |
---|
5821 | do : |
---|
5822 | ac_fn_cxx_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default" |
---|
5823 | if test "x$ac_cv_header_float_h" = xyes; then : |
---|
5824 | cat >>confdefs.h <<_ACEOF |
---|
5825 | #define HAVE_FLOAT_H 1 |
---|
5826 | _ACEOF |
---|
5827 | |
---|
5828 | else |
---|
5829 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5830 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5831 | fi |
---|
5832 | |
---|
5833 | done |
---|
5834 | |
---|
5835 | for ac_header in math.h |
---|
5836 | do : |
---|
5837 | ac_fn_cxx_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default" |
---|
5838 | if test "x$ac_cv_header_math_h" = xyes; then : |
---|
5839 | cat >>confdefs.h <<_ACEOF |
---|
5840 | #define HAVE_MATH_H 1 |
---|
5841 | _ACEOF |
---|
5842 | |
---|
5843 | else |
---|
5844 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5845 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5846 | fi |
---|
5847 | |
---|
5848 | done |
---|
5849 | |
---|
5850 | for ac_header in malloc.h |
---|
5851 | do : |
---|
5852 | ac_fn_cxx_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" |
---|
5853 | if test "x$ac_cv_header_malloc_h" = xyes; then : |
---|
5854 | cat >>confdefs.h <<_ACEOF |
---|
5855 | #define HAVE_MALLOC_H 1 |
---|
5856 | _ACEOF |
---|
5857 | |
---|
5858 | else |
---|
5859 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5860 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5861 | fi |
---|
5862 | |
---|
5863 | done |
---|
5864 | |
---|
5865 | for ac_header in memory.h |
---|
5866 | do : |
---|
5867 | ac_fn_cxx_check_header_mongrel "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default" |
---|
5868 | if test "x$ac_cv_header_memory_h" = xyes; then : |
---|
5869 | cat >>confdefs.h <<_ACEOF |
---|
5870 | #define HAVE_MEMORY_H 1 |
---|
5871 | _ACEOF |
---|
5872 | |
---|
5873 | else |
---|
5874 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5875 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5876 | fi |
---|
5877 | |
---|
5878 | done |
---|
5879 | |
---|
5880 | for ac_header in unistd.h |
---|
5881 | do : |
---|
5882 | ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" |
---|
5883 | if test "x$ac_cv_header_unistd_h" = xyes; then : |
---|
5884 | cat >>confdefs.h <<_ACEOF |
---|
5885 | #define HAVE_UNISTD_H 1 |
---|
5886 | _ACEOF |
---|
5887 | |
---|
5888 | else |
---|
5889 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5890 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5891 | fi |
---|
5892 | |
---|
5893 | done |
---|
5894 | |
---|
5895 | |
---|
5896 | for ac_header in inttypes.h |
---|
5897 | do : |
---|
5898 | ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
---|
5899 | if test "x$ac_cv_header_inttypes_h" = xyes; then : |
---|
5900 | cat >>confdefs.h <<_ACEOF |
---|
5901 | #define HAVE_INTTYPES_H 1 |
---|
5902 | _ACEOF |
---|
5903 | |
---|
5904 | else |
---|
5905 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 |
---|
5906 | $as_echo "$as_me: WARNING: C headers missing ?" >&2;} |
---|
5907 | fi |
---|
5908 | |
---|
5909 | done |
---|
5910 | |
---|
5911 | if test "${ac_cv_header_inttypes_h}" = "yes" ; then |
---|
5912 | HAVE_INTTYPES_H=1 |
---|
5913 | else |
---|
5914 | HAVE_INTTYPES_H=0 |
---|
5915 | fi |
---|
5916 | |
---|
5917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lvtkDICOM" >&5 |
---|
5918 | $as_echo_n "checking for main in -lvtkDICOM... " >&6; } |
---|
5919 | if ${ac_cv_lib_vtkDICOM_main+:} false; then : |
---|
5920 | $as_echo_n "(cached) " >&6 |
---|
5921 | else |
---|
5922 | ac_check_lib_save_LIBS=$LIBS |
---|
5923 | LIBS="-lvtkDICOM $LIBS" |
---|
5924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5925 | /* end confdefs.h. */ |
---|
5926 | |
---|
5927 | |
---|
5928 | int |
---|
5929 | main () |
---|
5930 | { |
---|
5931 | return main (); |
---|
5932 | ; |
---|
5933 | return 0; |
---|
5934 | } |
---|
5935 | _ACEOF |
---|
5936 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
5937 | ac_cv_lib_vtkDICOM_main=yes |
---|
5938 | else |
---|
5939 | ac_cv_lib_vtkDICOM_main=no |
---|
5940 | fi |
---|
5941 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5942 | conftest$ac_exeext conftest.$ac_ext |
---|
5943 | LIBS=$ac_check_lib_save_LIBS |
---|
5944 | fi |
---|
5945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vtkDICOM_main" >&5 |
---|
5946 | $as_echo "$ac_cv_lib_vtkDICOM_main" >&6; } |
---|
5947 | if test "x$ac_cv_lib_vtkDICOM_main" = xyes; then : |
---|
5948 | HAVE_LIBVTKDICOM=yes |
---|
5949 | else |
---|
5950 | HAVE_LIBVTKDICOM=no |
---|
5951 | fi |
---|
5952 | |
---|
5953 | |
---|
5954 | if test "$with_install" != "yes"; then |
---|
5955 | INSTALL_PREFIX=$with_install |
---|
5956 | else |
---|
5957 | INSTALL_PREFIX=$prefix |
---|
5958 | fi |
---|
5959 | |
---|
5960 | if test "${libdir}" != "${prefix}/lib"; then |
---|
5961 | LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}" |
---|
5962 | else |
---|
5963 | LIB_SEARCH_DIRS="-L${libdir}" |
---|
5964 | fi |
---|
5965 | |
---|
5966 | VTK_VERSION=0.0 |
---|
5967 | |
---|
5968 | . ${exec_prefix}/lib/rapptureConfig.sh |
---|
5969 | . ${exec_prefix}/lib/tclConfig.sh |
---|
5970 | . ${exec_prefix}/lib/tkConfig.sh |
---|
5971 | . ${exec_prefix}/lib/vtkConfig.sh |
---|
5972 | |
---|
5973 | #-------------------------------------------------------------------- |
---|
5974 | # Set the default compiler switches based on the --enable-symbols |
---|
5975 | # option. |
---|
5976 | #-------------------------------------------------------------------- |
---|
5977 | |
---|
5978 | |
---|
5979 | |
---|
5980 | # Step 0.a: Enable 64 bit support? |
---|
5981 | |
---|
5982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5 |
---|
5983 | $as_echo_n "checking if 64bit support is requested... " >&6; } |
---|
5984 | # Check whether --enable-64bit was given. |
---|
5985 | if test "${enable_64bit+set}" = set; then : |
---|
5986 | enableval=$enable_64bit; do64bit=$enableval |
---|
5987 | else |
---|
5988 | do64bit=no |
---|
5989 | fi |
---|
5990 | |
---|
5991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5 |
---|
5992 | $as_echo "$do64bit" >&6; } |
---|
5993 | |
---|
5994 | # Step 0.b: Enable Solaris 64 bit VIS support? |
---|
5995 | |
---|
5996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5 |
---|
5997 | $as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; } |
---|
5998 | # Check whether --enable-64bit-vis was given. |
---|
5999 | if test "${enable_64bit_vis+set}" = set; then : |
---|
6000 | enableval=$enable_64bit_vis; do64bitVIS=$enableval |
---|
6001 | else |
---|
6002 | do64bitVIS=no |
---|
6003 | fi |
---|
6004 | |
---|
6005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5 |
---|
6006 | $as_echo "$do64bitVIS" >&6; } |
---|
6007 | |
---|
6008 | if test "$do64bitVIS" = "yes"; then |
---|
6009 | # Force 64bit on with VIS |
---|
6010 | do64bit=yes |
---|
6011 | fi |
---|
6012 | |
---|
6013 | # Step 1: set the variable "system" to hold the name and version number |
---|
6014 | # for the system. |
---|
6015 | |
---|
6016 | |
---|
6017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5 |
---|
6018 | $as_echo_n "checking system version... " >&6; } |
---|
6019 | if ${tcl_cv_sys_version+:} false; then : |
---|
6020 | $as_echo_n "(cached) " >&6 |
---|
6021 | else |
---|
6022 | |
---|
6023 | if test -f /usr/lib/NextStep/software_version; then |
---|
6024 | tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version` |
---|
6025 | else |
---|
6026 | tcl_cv_sys_version=`uname -s`-`uname -r` |
---|
6027 | if test "$?" -ne 0 ; then |
---|
6028 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5 |
---|
6029 | $as_echo "$as_me: WARNING: can't find uname command" >&2;} |
---|
6030 | tcl_cv_sys_version=unknown |
---|
6031 | else |
---|
6032 | # Special check for weird MP-RAS system (uname returns weird |
---|
6033 | # results, and the version is kept in special file). |
---|
6034 | |
---|
6035 | if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then |
---|
6036 | tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid` |
---|
6037 | fi |
---|
6038 | if test "`uname -s`" = "AIX" ; then |
---|
6039 | tcl_cv_sys_version=AIX-`uname -v`.`uname -r` |
---|
6040 | fi |
---|
6041 | fi |
---|
6042 | fi |
---|
6043 | |
---|
6044 | fi |
---|
6045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5 |
---|
6046 | $as_echo "$tcl_cv_sys_version" >&6; } |
---|
6047 | system=$tcl_cv_sys_version |
---|
6048 | |
---|
6049 | |
---|
6050 | # Step 2: check for existence of -ldl library. This is needed because |
---|
6051 | # Linux can use either -ldl or -ldld for dynamic loading. |
---|
6052 | |
---|
6053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
---|
6054 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
---|
6055 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
---|
6056 | $as_echo_n "(cached) " >&6 |
---|
6057 | else |
---|
6058 | ac_check_lib_save_LIBS=$LIBS |
---|
6059 | LIBS="-ldl $LIBS" |
---|
6060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6061 | /* end confdefs.h. */ |
---|
6062 | |
---|
6063 | /* Override any GCC internal prototype to avoid an error. |
---|
6064 | Use char because int might match the return type of a GCC |
---|
6065 | builtin and then its argument prototype would still apply. */ |
---|
6066 | #ifdef __cplusplus |
---|
6067 | extern "C" |
---|
6068 | #endif |
---|
6069 | char dlopen (); |
---|
6070 | int |
---|
6071 | main () |
---|
6072 | { |
---|
6073 | return dlopen (); |
---|
6074 | ; |
---|
6075 | return 0; |
---|
6076 | } |
---|
6077 | _ACEOF |
---|
6078 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
6079 | ac_cv_lib_dl_dlopen=yes |
---|
6080 | else |
---|
6081 | ac_cv_lib_dl_dlopen=no |
---|
6082 | fi |
---|
6083 | rm -f core conftest.err conftest.$ac_objext \ |
---|
6084 | conftest$ac_exeext conftest.$ac_ext |
---|
6085 | LIBS=$ac_check_lib_save_LIBS |
---|
6086 | fi |
---|
6087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
6088 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
---|
6089 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
---|
6090 | have_dl=yes |
---|
6091 | else |
---|
6092 | have_dl=no |
---|
6093 | fi |
---|
6094 | |
---|
6095 | |
---|
6096 | # Require ranlib early so we can override it in special cases below. |
---|
6097 | |
---|
6098 | |
---|
6099 | |
---|
6100 | # Step 3: set configuration options based on system name and version. |
---|
6101 | |
---|
6102 | do64bit_ok=no |
---|
6103 | LDFLAGS_ORIG="$LDFLAGS" |
---|
6104 | TCL_EXPORT_FILE_SUFFIX="" |
---|
6105 | UNSHARED_LIB_SUFFIX="" |
---|
6106 | TCL_TRIM_DOTS='`echo ${VERSION} | tr -d .`' |
---|
6107 | ECHO_VERSION='`echo ${VERSION}`' |
---|
6108 | TCL_LIB_VERSIONS_OK=ok |
---|
6109 | CFLAGS_DEBUG=-g |
---|
6110 | CFLAGS_OPTIMIZE=-O |
---|
6111 | if test "$GCC" = "yes" ; then |
---|
6112 | CFLAGS_WARNING="-Wall -Wno-implicit-int -fno-strict-aliasing" |
---|
6113 | else |
---|
6114 | CFLAGS_WARNING="" |
---|
6115 | fi |
---|
6116 | TCL_NEEDS_EXP_FILE=0 |
---|
6117 | TCL_BUILD_EXP_FILE="" |
---|
6118 | TCL_EXP_FILE="" |
---|
6119 | # Extract the first word of "ar", so it can be a program name with args. |
---|
6120 | set dummy ar; ac_word=$2 |
---|
6121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6122 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6123 | if ${ac_cv_prog_AR+:} false; then : |
---|
6124 | $as_echo_n "(cached) " >&6 |
---|
6125 | else |
---|
6126 | if test -n "$AR"; then |
---|
6127 | ac_cv_prog_AR="$AR" # Let the user override the test. |
---|
6128 | else |
---|
6129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6130 | for as_dir in $PATH |
---|
6131 | do |
---|
6132 | IFS=$as_save_IFS |
---|
6133 | test -z "$as_dir" && as_dir=. |
---|
6134 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6135 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6136 | ac_cv_prog_AR="ar" |
---|
6137 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6138 | break 2 |
---|
6139 | fi |
---|
6140 | done |
---|
6141 | done |
---|
6142 | IFS=$as_save_IFS |
---|
6143 | |
---|
6144 | fi |
---|
6145 | fi |
---|
6146 | AR=$ac_cv_prog_AR |
---|
6147 | if test -n "$AR"; then |
---|
6148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
---|
6149 | $as_echo "$AR" >&6; } |
---|
6150 | else |
---|
6151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6152 | $as_echo "no" >&6; } |
---|
6153 | fi |
---|
6154 | |
---|
6155 | |
---|
6156 | if test "${AR}" = "" ; then |
---|
6157 | as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5 |
---|
6158 | fi |
---|
6159 | STLIB_LD='${AR} cr' |
---|
6160 | LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" |
---|
6161 | PLAT_OBJS="" |
---|
6162 | PLAT_SRCS="" |
---|
6163 | case $system in |
---|
6164 | AIX-*) |
---|
6165 | if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then |
---|
6166 | # AIX requires the _r compiler when gcc isn't being used |
---|
6167 | case "${CC}" in |
---|
6168 | *_r) |
---|
6169 | # ok ... |
---|
6170 | ;; |
---|
6171 | *) |
---|
6172 | CC=${CC}_r |
---|
6173 | ;; |
---|
6174 | esac |
---|
6175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5 |
---|
6176 | $as_echo "Using $CC for compiling with threads" >&6; } |
---|
6177 | fi |
---|
6178 | LIBS="$LIBS -lc" |
---|
6179 | SHLIB_CFLAGS="" |
---|
6180 | # Note: need the LIBS below, otherwise Tk won't find Tcl's |
---|
6181 | # symbols when dynamically loaded into tclsh. |
---|
6182 | SHLIB_LD_LIBS='${LIBS}' |
---|
6183 | SHLIB_SUFFIX=".so" |
---|
6184 | |
---|
6185 | DL_OBJS="tclLoadDl.o" |
---|
6186 | LD_LIBRARY_PATH_VAR="LIBPATH" |
---|
6187 | |
---|
6188 | # Check to enable 64-bit flags for compiler/linker on AIX 4+ |
---|
6189 | if test "$do64bit" = "yes" -a "`uname -v`" -gt "3" ; then |
---|
6190 | if test "$GCC" = "yes" ; then |
---|
6191 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 |
---|
6192 | $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} |
---|
6193 | else |
---|
6194 | do64bit_ok=yes |
---|
6195 | CFLAGS="$CFLAGS -q64" |
---|
6196 | LDFLAGS="$LDFLAGS -q64" |
---|
6197 | RANLIB="${RANLIB} -X64" |
---|
6198 | AR="${AR} -X64" |
---|
6199 | SHLIB_LD_FLAGS="-b64" |
---|
6200 | fi |
---|
6201 | fi |
---|
6202 | |
---|
6203 | if test "`uname -m`" = "ia64" ; then |
---|
6204 | # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC |
---|
6205 | SHLIB_LD="/usr/ccs/bin/ld -G -z text" |
---|
6206 | # AIX-5 has dl* in libc.so |
---|
6207 | DL_LIBS="" |
---|
6208 | if test "$GCC" = "yes" ; then |
---|
6209 | CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' |
---|
6210 | else |
---|
6211 | CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' |
---|
6212 | fi |
---|
6213 | LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' |
---|
6214 | else |
---|
6215 | if test "$GCC" = "yes" ; then |
---|
6216 | SHLIB_LD="gcc -shared" |
---|
6217 | else |
---|
6218 | SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry" |
---|
6219 | fi |
---|
6220 | SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix ${SHLIB_LD} ${SHLIB_LD_FLAGS}" |
---|
6221 | DL_LIBS="-ldl" |
---|
6222 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
6223 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
6224 | TCL_NEEDS_EXP_FILE=1 |
---|
6225 | TCL_EXPORT_FILE_SUFFIX='${VERSION}\$\{DBGX\}.exp' |
---|
6226 | fi |
---|
6227 | |
---|
6228 | # AIX v<=4.1 has some different flags than 4.2+ |
---|
6229 | if test "$system" = "AIX-4.1" -o "`uname -v`" -lt "4" ; then |
---|
6230 | LIBOBJS="$LIBOBJS tclLoadAix.o" |
---|
6231 | DL_LIBS="-lld" |
---|
6232 | fi |
---|
6233 | |
---|
6234 | # On AIX <=v4 systems, libbsd.a has to be linked in to support |
---|
6235 | # non-blocking file IO. This library has to be linked in after |
---|
6236 | # the MATH_LIBS or it breaks the pow() function. The way to |
---|
6237 | # insure proper sequencing, is to add it to the tail of MATH_LIBS. |
---|
6238 | # This library also supplies gettimeofday. |
---|
6239 | # |
---|
6240 | # AIX does not have a timezone field in struct tm. When the AIX |
---|
6241 | # bsd library is used, the timezone global and the gettimeofday |
---|
6242 | # methods are to be avoided for timezone deduction instead, we |
---|
6243 | # deduce the timezone by comparing the localtime result on a |
---|
6244 | # known GMT value. |
---|
6245 | |
---|
6246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lbsd" >&5 |
---|
6247 | $as_echo_n "checking for gettimeofday in -lbsd... " >&6; } |
---|
6248 | if ${ac_cv_lib_bsd_gettimeofday+:} false; then : |
---|
6249 | $as_echo_n "(cached) " >&6 |
---|
6250 | else |
---|
6251 | ac_check_lib_save_LIBS=$LIBS |
---|
6252 | LIBS="-lbsd $LIBS" |
---|
6253 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6254 | /* end confdefs.h. */ |
---|
6255 | |
---|
6256 | /* Override any GCC internal prototype to avoid an error. |
---|
6257 | Use char because int might match the return type of a GCC |
---|
6258 | builtin and then its argument prototype would still apply. */ |
---|
6259 | #ifdef __cplusplus |
---|
6260 | extern "C" |
---|
6261 | #endif |
---|
6262 | char gettimeofday (); |
---|
6263 | int |
---|
6264 | main () |
---|
6265 | { |
---|
6266 | return gettimeofday (); |
---|
6267 | ; |
---|
6268 | return 0; |
---|
6269 | } |
---|
6270 | _ACEOF |
---|
6271 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
6272 | ac_cv_lib_bsd_gettimeofday=yes |
---|
6273 | else |
---|
6274 | ac_cv_lib_bsd_gettimeofday=no |
---|
6275 | fi |
---|
6276 | rm -f core conftest.err conftest.$ac_objext \ |
---|
6277 | conftest$ac_exeext conftest.$ac_ext |
---|
6278 | LIBS=$ac_check_lib_save_LIBS |
---|
6279 | fi |
---|
6280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gettimeofday" >&5 |
---|
6281 | $as_echo "$ac_cv_lib_bsd_gettimeofday" >&6; } |
---|
6282 | if test "x$ac_cv_lib_bsd_gettimeofday" = xyes; then : |
---|
6283 | libbsd=yes |
---|
6284 | else |
---|
6285 | libbsd=no |
---|
6286 | fi |
---|
6287 | |
---|
6288 | if test $libbsd = yes; then |
---|
6289 | MATH_LIBS="$MATH_LIBS -lbsd" |
---|
6290 | $as_echo "#define USE_DELTA_FOR_TZ 1" >>confdefs.h |
---|
6291 | |
---|
6292 | fi |
---|
6293 | ;; |
---|
6294 | BeOS*) |
---|
6295 | SHLIB_CFLAGS="-fPIC" |
---|
6296 | SHLIB_LD="${CC} -nostart" |
---|
6297 | SHLIB_LD_LIBS='${LIBS}' |
---|
6298 | SHLIB_SUFFIX=".so" |
---|
6299 | DL_OBJS="tclLoadDl.o" |
---|
6300 | DL_LIBS="-ldl" |
---|
6301 | |
---|
6302 | #----------------------------------------------------------- |
---|
6303 | # Check for inet_ntoa in -lbind, for BeOS (which also needs |
---|
6304 | # -lsocket, even if the network functions are in -lnet which |
---|
6305 | # is always linked to, for compatibility. |
---|
6306 | #----------------------------------------------------------- |
---|
6307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5 |
---|
6308 | $as_echo_n "checking for inet_ntoa in -lbind... " >&6; } |
---|
6309 | if ${ac_cv_lib_bind_inet_ntoa+:} false; then : |
---|
6310 | $as_echo_n "(cached) " >&6 |
---|
6311 | else |
---|
6312 | ac_check_lib_save_LIBS=$LIBS |
---|
6313 | LIBS="-lbind $LIBS" |
---|
6314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6315 | /* end confdefs.h. */ |
---|
6316 | |
---|
6317 | /* Override any GCC internal prototype to avoid an error. |
---|
6318 | Use char because int might match the return type of a GCC |
---|
6319 | builtin and then its argument prototype would still apply. */ |
---|
6320 | #ifdef __cplusplus |
---|
6321 | extern "C" |
---|
6322 | #endif |
---|
6323 | char inet_ntoa (); |
---|
6324 | int |
---|
6325 | main () |
---|
6326 | { |
---|
6327 | return inet_ntoa (); |
---|
6328 | ; |
---|
6329 | return 0; |
---|
6330 | } |
---|
6331 | _ACEOF |
---|
6332 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
6333 | ac_cv_lib_bind_inet_ntoa=yes |
---|
6334 | else |
---|
6335 | ac_cv_lib_bind_inet_ntoa=no |
---|
6336 | fi |
---|
6337 | rm -f core conftest.err conftest.$ac_objext \ |
---|
6338 | conftest$ac_exeext conftest.$ac_ext |
---|
6339 | LIBS=$ac_check_lib_save_LIBS |
---|
6340 | fi |
---|
6341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5 |
---|
6342 | $as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; } |
---|
6343 | if test "x$ac_cv_lib_bind_inet_ntoa" = xyes; then : |
---|
6344 | LIBS="$LIBS -lbind -lsocket" |
---|
6345 | fi |
---|
6346 | |
---|
6347 | ;; |
---|
6348 | BSD/OS-2.1*|BSD/OS-3*) |
---|
6349 | SHLIB_CFLAGS="" |
---|
6350 | SHLIB_LD="shlicc -r" |
---|
6351 | SHLIB_LD_LIBS='${LIBS}' |
---|
6352 | SHLIB_SUFFIX=".so" |
---|
6353 | DL_OBJS="tclLoadDl.o" |
---|
6354 | DL_LIBS="-ldl" |
---|
6355 | CC_SEARCH_FLAGS="" |
---|
6356 | LD_SEARCH_FLAGS="" |
---|
6357 | ;; |
---|
6358 | BSD/OS-4.*) |
---|
6359 | SHLIB_CFLAGS="-export-dynamic -fPIC" |
---|
6360 | SHLIB_LD="cc -shared" |
---|
6361 | SHLIB_LD_LIBS='${LIBS}' |
---|
6362 | SHLIB_SUFFIX=".so" |
---|
6363 | DL_OBJS="tclLoadDl.o" |
---|
6364 | DL_LIBS="-ldl" |
---|
6365 | LDFLAGS="$LDFLAGS -export-dynamic" |
---|
6366 | CC_SEARCH_FLAGS="" |
---|
6367 | LD_SEARCH_FLAGS="" |
---|
6368 | ;; |
---|
6369 | dgux*) |
---|
6370 | SHLIB_CFLAGS="-K PIC" |
---|
6371 | SHLIB_LD="cc -G" |
---|
6372 | SHLIB_LD_LIBS="" |
---|
6373 | SHLIB_SUFFIX=".so" |
---|
6374 | DL_OBJS="tclLoadDl.o" |
---|
6375 | DL_LIBS="-ldl" |
---|
6376 | CC_SEARCH_FLAGS="" |
---|
6377 | LD_SEARCH_FLAGS="" |
---|
6378 | ;; |
---|
6379 | HP-UX-*.11.*) |
---|
6380 | # Use updated header definitions where possible |
---|
6381 | $as_echo "#define _XOPEN_SOURCE 1" >>confdefs.h |
---|
6382 | # Use the XOPEN network library |
---|
6383 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h |
---|
6384 | # Use the XOPEN network library |
---|
6385 | LIBS="$LIBS -lxnet" # Use the XOPEN network library |
---|
6386 | |
---|
6387 | if test "`uname -m`" = "ia64" ; then |
---|
6388 | SHLIB_SUFFIX=".so" |
---|
6389 | else |
---|
6390 | SHLIB_SUFFIX=".sl" |
---|
6391 | fi |
---|
6392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
---|
6393 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
---|
6394 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
---|
6395 | $as_echo_n "(cached) " >&6 |
---|
6396 | else |
---|
6397 | ac_check_lib_save_LIBS=$LIBS |
---|
6398 | LIBS="-ldld $LIBS" |
---|
6399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6400 | /* end confdefs.h. */ |
---|
6401 | |
---|
6402 | /* Override any GCC internal prototype to avoid an error. |
---|
6403 | Use char because int might match the return type of a GCC |
---|
6404 | builtin and then its argument prototype would still apply. */ |
---|
6405 | #ifdef __cplusplus |
---|
6406 | extern "C" |
---|
6407 | #endif |
---|
6408 | char shl_load (); |
---|
6409 | int |
---|
6410 | main () |
---|
6411 | { |
---|
6412 | return shl_load (); |
---|
6413 | ; |
---|
6414 | return 0; |
---|
6415 | } |
---|
6416 | _ACEOF |
---|
6417 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
6418 | ac_cv_lib_dld_shl_load=yes |
---|
6419 | else |
---|
6420 | ac_cv_lib_dld_shl_load=no |
---|
6421 | fi |
---|
6422 | rm -f core conftest.err conftest.$ac_objext \ |
---|
6423 | conftest$ac_exeext conftest.$ac_ext |
---|
6424 | LIBS=$ac_check_lib_save_LIBS |
---|
6425 | fi |
---|
6426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
---|
6427 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
---|
6428 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
---|
6429 | tcl_ok=yes |
---|
6430 | else |
---|
6431 | tcl_ok=no |
---|
6432 | fi |
---|
6433 | |
---|
6434 | if test "$tcl_ok" = yes; then |
---|
6435 | SHLIB_CFLAGS="+z" |
---|
6436 | SHLIB_LD="ld -b" |
---|
6437 | SHLIB_LD_LIBS='${LIBS}' |
---|
6438 | DL_OBJS="tclLoadShl.o" |
---|
6439 | DL_LIBS="-ldld" |
---|
6440 | LDFLAGS="$LDFLAGS -Wl,-E" |
---|
6441 | CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' |
---|
6442 | LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' |
---|
6443 | LD_LIBRARY_PATH_VAR="SHLIB_PATH" |
---|
6444 | fi |
---|
6445 | if test "$GCC" = "yes" ; then |
---|
6446 | SHLIB_LD="gcc -shared" |
---|
6447 | SHLIB_LD_LIBS='${LIBS}' |
---|
6448 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
6449 | fi |
---|
6450 | |
---|
6451 | # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc |
---|
6452 | #CFLAGS="$CFLAGS +DAportable" |
---|
6453 | |
---|
6454 | # Check to enable 64-bit flags for compiler/linker |
---|
6455 | if test "$do64bit" = "yes" ; then |
---|
6456 | if test "$GCC" = "yes" ; then |
---|
6457 | hpux_arch=`${CC} -dumpmachine` |
---|
6458 | case $hpux_arch in |
---|
6459 | hppa64*) |
---|
6460 | # 64-bit gcc in use. Fix flags for GNU ld. |
---|
6461 | do64bit_ok=yes |
---|
6462 | SHLIB_LD="${CC} -shared" |
---|
6463 | SHLIB_LD_LIBS='${LIBS}' |
---|
6464 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
6465 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
6466 | ;; |
---|
6467 | *) |
---|
6468 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 |
---|
6469 | $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} |
---|
6470 | ;; |
---|
6471 | esac |
---|
6472 | else |
---|
6473 | do64bit_ok=yes |
---|
6474 | CFLAGS="$CFLAGS +DD64" |
---|
6475 | LDFLAGS="$LDFLAGS +DD64" |
---|
6476 | fi |
---|
6477 | fi |
---|
6478 | ;; |
---|
6479 | HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*) |
---|
6480 | SHLIB_SUFFIX=".sl" |
---|
6481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
---|
6482 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
---|
6483 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
---|
6484 | $as_echo_n "(cached) " >&6 |
---|
6485 | else |
---|
6486 | ac_check_lib_save_LIBS=$LIBS |
---|
6487 | LIBS="-ldld $LIBS" |
---|
6488 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6489 | /* end confdefs.h. */ |
---|
6490 | |
---|
6491 | /* Override any GCC internal prototype to avoid an error. |
---|
6492 | Use char because int might match the return type of a GCC |
---|
6493 | builtin and then its argument prototype would still apply. */ |
---|
6494 | #ifdef __cplusplus |
---|
6495 | extern "C" |
---|
6496 | #endif |
---|
6497 | char shl_load (); |
---|
6498 | int |
---|
6499 | main () |
---|
6500 | { |
---|
6501 | return shl_load (); |
---|
6502 | ; |
---|
6503 | return 0; |
---|
6504 | } |
---|
6505 | _ACEOF |
---|
6506 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
6507 | ac_cv_lib_dld_shl_load=yes |
---|
6508 | else |
---|
6509 | ac_cv_lib_dld_shl_load=no |
---|
6510 | fi |
---|
6511 | rm -f core conftest.err conftest.$ac_objext \ |
---|
6512 | conftest$ac_exeext conftest.$ac_ext |
---|
6513 | LIBS=$ac_check_lib_save_LIBS |
---|
6514 | fi |
---|
6515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
---|
6516 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
---|
6517 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
---|
6518 | tcl_ok=yes |
---|
6519 | else |
---|
6520 | tcl_ok=no |
---|
6521 | fi |
---|
6522 | |
---|
6523 | if test "$tcl_ok" = yes; then |
---|
6524 | SHLIB_CFLAGS="+z" |
---|
6525 | SHLIB_LD="ld -b" |
---|
6526 | SHLIB_LD_LIBS="" |
---|
6527 | DL_OBJS="tclLoadShl.o" |
---|
6528 | DL_LIBS="-ldld" |
---|
6529 | LDFLAGS="$LDFLAGS -Wl,-E" |
---|
6530 | CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' |
---|
6531 | LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' |
---|
6532 | LD_LIBRARY_PATH_VAR="SHLIB_PATH" |
---|
6533 | fi |
---|
6534 | ;; |
---|
6535 | IRIX-4.*) |
---|
6536 | SHLIB_CFLAGS="-G 0" |
---|
6537 | SHLIB_SUFFIX=".a" |
---|
6538 | SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" |
---|
6539 | SHLIB_LD_LIBS='${LIBS}' |
---|
6540 | DL_OBJS="tclLoadAout.o" |
---|
6541 | DL_LIBS="" |
---|
6542 | LDFLAGS="$LDFLAGS -Wl,-D,08000000" |
---|
6543 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
6544 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
6545 | SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a' |
---|
6546 | ;; |
---|
6547 | IRIX-5.*) |
---|
6548 | SHLIB_CFLAGS="" |
---|
6549 | SHLIB_LD="ld -shared -rdata_shared" |
---|
6550 | SHLIB_LD_LIBS='${LIBS}' |
---|
6551 | SHLIB_SUFFIX=".so" |
---|
6552 | DL_OBJS="tclLoadDl.o" |
---|
6553 | DL_LIBS="" |
---|
6554 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
6555 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
6556 | ;; |
---|
6557 | IRIX-6.*) |
---|
6558 | SHLIB_CFLAGS="" |
---|
6559 | SHLIB_LD="ld -n32 -shared -rdata_shared" |
---|
6560 | SHLIB_LD_LIBS='${LIBS}' |
---|
6561 | SHLIB_SUFFIX=".so" |
---|
6562 | DL_OBJS="tclLoadDl.o" |
---|
6563 | DL_LIBS="" |
---|
6564 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
6565 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
6566 | if test "$GCC" = "yes" ; then |
---|
6567 | CFLAGS="$CFLAGS -mabi=n32" |
---|
6568 | LDFLAGS="$LDFLAGS -mabi=n32" |
---|
6569 | else |
---|
6570 | case $system in |
---|
6571 | IRIX-6.3) |
---|
6572 | # Use to build 6.2 compatible binaries on 6.3. |
---|
6573 | CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" |
---|
6574 | ;; |
---|
6575 | *) |
---|
6576 | CFLAGS="$CFLAGS -n32" |
---|
6577 | ;; |
---|
6578 | esac |
---|
6579 | LDFLAGS="$LDFLAGS -n32" |
---|
6580 | fi |
---|
6581 | ;; |
---|
6582 | IRIX64-6.*) |
---|
6583 | SHLIB_CFLAGS="" |
---|
6584 | SHLIB_LD="ld -n32 -shared -rdata_shared" |
---|
6585 | SHLIB_LD_LIBS='${LIBS}' |
---|
6586 | SHLIB_SUFFIX=".so" |
---|
6587 | DL_OBJS="tclLoadDl.o" |
---|
6588 | DL_LIBS="" |
---|
6589 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
6590 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
6591 | |
---|
6592 | # Check to enable 64-bit flags for compiler/linker |
---|
6593 | |
---|
6594 | if test "$do64bit" = "yes" ; then |
---|
6595 | if test "$GCC" = "yes" ; then |
---|
6596 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5 |
---|
6597 | $as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} |
---|
6598 | else |
---|
6599 | do64bit_ok=yes |
---|
6600 | SHLIB_LD="ld -64 -shared -rdata_shared" |
---|
6601 | CFLAGS="$CFLAGS -64" |
---|
6602 | LDFLAGS="$LDFLAGS -64" |
---|
6603 | fi |
---|
6604 | fi |
---|
6605 | ;; |
---|
6606 | Linux*) |
---|
6607 | SHLIB_CFLAGS="-fPIC" |
---|
6608 | SHLIB_LD_LIBS='${LIBS}' |
---|
6609 | SHLIB_SUFFIX=".so" |
---|
6610 | |
---|
6611 | CFLAGS_OPTIMIZE=-O2 |
---|
6612 | # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings |
---|
6613 | # when you inline the string and math operations. Turn this off to |
---|
6614 | # get rid of the warnings. |
---|
6615 | #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" |
---|
6616 | |
---|
6617 | if test "$have_dl" = yes; then |
---|
6618 | SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' |
---|
6619 | DL_OBJS="tclLoadDl.o" |
---|
6620 | DL_LIBS="-ldl" |
---|
6621 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" |
---|
6622 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
6623 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
6624 | else |
---|
6625 | ac_fn_cxx_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default" |
---|
6626 | if test "x$ac_cv_header_dld_h" = xyes; then : |
---|
6627 | |
---|
6628 | SHLIB_LD="ld -shared" |
---|
6629 | DL_OBJS="tclLoadDld.o" |
---|
6630 | DL_LIBS="-ldld" |
---|
6631 | CC_SEARCH_FLAGS="" |
---|
6632 | LD_SEARCH_FLAGS="" |
---|
6633 | fi |
---|
6634 | |
---|
6635 | |
---|
6636 | fi |
---|
6637 | if test "`uname -m`" = "alpha" ; then |
---|
6638 | CFLAGS="$CFLAGS -mieee" |
---|
6639 | fi |
---|
6640 | if test $do64bit = yes; then |
---|
6641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5 |
---|
6642 | $as_echo_n "checking if compiler accepts -m64 flag... " >&6; } |
---|
6643 | if ${tcl_cv_cc_m64+:} false; then : |
---|
6644 | $as_echo_n "(cached) " >&6 |
---|
6645 | else |
---|
6646 | |
---|
6647 | hold_cflags=$CFLAGS |
---|
6648 | CFLAGS="$CFLAGS -m64" |
---|
6649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6650 | /* end confdefs.h. */ |
---|
6651 | |
---|
6652 | int |
---|
6653 | main () |
---|
6654 | { |
---|
6655 | |
---|
6656 | ; |
---|
6657 | return 0; |
---|
6658 | } |
---|
6659 | _ACEOF |
---|
6660 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
6661 | tcl_cv_cc_m64=yes |
---|
6662 | else |
---|
6663 | tcl_cv_cc_m64=no |
---|
6664 | fi |
---|
6665 | rm -f core conftest.err conftest.$ac_objext \ |
---|
6666 | conftest$ac_exeext conftest.$ac_ext |
---|
6667 | CFLAGS=$hold_cflags |
---|
6668 | fi |
---|
6669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5 |
---|
6670 | $as_echo "$tcl_cv_cc_m64" >&6; } |
---|
6671 | if test $tcl_cv_cc_m64 = yes; then |
---|
6672 | CFLAGS="$CFLAGS -m64" |
---|
6673 | do64bit_ok=yes |
---|
6674 | fi |
---|
6675 | fi |
---|
6676 | |
---|
6677 | # The combo of gcc + glibc has a bug related |
---|
6678 | # to inlining of functions like strtod(). The |
---|
6679 | # -fno-builtin flag should address this problem |
---|
6680 | # but it does not work. The -fno-inline flag |
---|
6681 | # is kind of overkill but it works. |
---|
6682 | # Disable inlining only when one of the |
---|
6683 | # files in compat/*.c is being linked in. |
---|
6684 | if test x"${LIBOBJS}" != x ; then |
---|
6685 | CFLAGS="$CFLAGS -fno-inline" |
---|
6686 | fi |
---|
6687 | |
---|
6688 | # XIM peeking works under XFree86. |
---|
6689 | $as_echo "#define PEEK_XCLOSEIM 1" >>confdefs.h |
---|
6690 | |
---|
6691 | |
---|
6692 | ;; |
---|
6693 | GNU*) |
---|
6694 | SHLIB_CFLAGS="-fPIC" |
---|
6695 | SHLIB_LD_LIBS='${LIBS}' |
---|
6696 | SHLIB_SUFFIX=".so" |
---|
6697 | |
---|
6698 | if test "$have_dl" = yes; then |
---|
6699 | SHLIB_LD="${CC} -shared" |
---|
6700 | DL_OBJS="" |
---|
6701 | DL_LIBS="-ldl" |
---|
6702 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" |
---|
6703 | CC_SEARCH_FLAGS="" |
---|
6704 | LD_SEARCH_FLAGS="" |
---|
6705 | else |
---|
6706 | ac_fn_cxx_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default" |
---|
6707 | if test "x$ac_cv_header_dld_h" = xyes; then : |
---|
6708 | |
---|
6709 | SHLIB_LD="ld -shared" |
---|
6710 | DL_OBJS="" |
---|
6711 | DL_LIBS="-ldld" |
---|
6712 | CC_SEARCH_FLAGS="" |
---|
6713 | LD_SEARCH_FLAGS="" |
---|
6714 | fi |
---|
6715 | |
---|
6716 | |
---|
6717 | fi |
---|
6718 | if test "`uname -m`" = "alpha" ; then |
---|
6719 | CFLAGS="$CFLAGS -mieee" |
---|
6720 | fi |
---|
6721 | ;; |
---|
6722 | Lynx*) |
---|
6723 | SHLIB_CFLAGS="-fPIC" |
---|
6724 | SHLIB_LD_LIBS='${LIBS}' |
---|
6725 | SHLIB_SUFFIX=".so" |
---|
6726 | CFLAGS_OPTIMIZE=-02 |
---|
6727 | SHLIB_LD="${CC} -shared " |
---|
6728 | DL_OBJS="tclLoadDl.o" |
---|
6729 | DL_LIBS="-mshared -ldl" |
---|
6730 | LD_FLAGS="-Wl,--export-dynamic" |
---|
6731 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
6732 | LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
6733 | ;; |
---|
6734 | MP-RAS-02*) |
---|
6735 | SHLIB_CFLAGS="-K PIC" |
---|
6736 | SHLIB_LD="cc -G" |
---|
6737 | SHLIB_LD_LIBS="" |
---|
6738 | SHLIB_SUFFIX=".so" |
---|
6739 | DL_OBJS="tclLoadDl.o" |
---|
6740 | DL_LIBS="-ldl" |
---|
6741 | CC_SEARCH_FLAGS="" |
---|
6742 | LD_SEARCH_FLAGS="" |
---|
6743 | ;; |
---|
6744 | MP-RAS-*) |
---|
6745 | SHLIB_CFLAGS="-K PIC" |
---|
6746 | SHLIB_LD="cc -G" |
---|
6747 | SHLIB_LD_LIBS="" |
---|
6748 | SHLIB_SUFFIX=".so" |
---|
6749 | DL_OBJS="tclLoadDl.o" |
---|
6750 | DL_LIBS="-ldl" |
---|
6751 | LDFLAGS="$LDFLAGS -Wl,-Bexport" |
---|
6752 | CC_SEARCH_FLAGS="" |
---|
6753 | LD_SEARCH_FLAGS="" |
---|
6754 | ;; |
---|
6755 | NetBSD-*|FreeBSD-[1-2].*) |
---|
6756 | # Not available on all versions: check for include file. |
---|
6757 | ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" |
---|
6758 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
---|
6759 | |
---|
6760 | # NetBSD/SPARC needs -fPIC, -fpic will not do. |
---|
6761 | SHLIB_CFLAGS="-fPIC" |
---|
6762 | SHLIB_LD="ld -Bshareable -x" |
---|
6763 | SHLIB_LD_LIBS='${LIBS}' |
---|
6764 | SHLIB_SUFFIX=".so" |
---|
6765 | DL_OBJS="tclLoadDl.o" |
---|
6766 | DL_LIBS="" |
---|
6767 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
6768 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
6769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5 |
---|
6770 | $as_echo_n "checking for ELF... " >&6; } |
---|
6771 | if ${tcl_cv_ld_elf+:} false; then : |
---|
6772 | $as_echo_n "(cached) " >&6 |
---|
6773 | else |
---|
6774 | |
---|
6775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6776 | /* end confdefs.h. */ |
---|
6777 | |
---|
6778 | #ifdef __ELF__ |
---|
6779 | yes |
---|
6780 | #endif |
---|
6781 | |
---|
6782 | _ACEOF |
---|
6783 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
6784 | $EGREP "yes" >/dev/null 2>&1; then : |
---|
6785 | tcl_cv_ld_elf=yes |
---|
6786 | else |
---|
6787 | tcl_cv_ld_elf=no |
---|
6788 | fi |
---|
6789 | rm -f conftest* |
---|
6790 | |
---|
6791 | fi |
---|
6792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5 |
---|
6793 | $as_echo "$tcl_cv_ld_elf" >&6; } |
---|
6794 | if test $tcl_cv_ld_elf = yes; then |
---|
6795 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so' |
---|
6796 | else |
---|
6797 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' |
---|
6798 | fi |
---|
6799 | |
---|
6800 | else |
---|
6801 | |
---|
6802 | SHLIB_CFLAGS="" |
---|
6803 | SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r" |
---|
6804 | SHLIB_LD_LIBS='${LIBS}' |
---|
6805 | SHLIB_SUFFIX=".a" |
---|
6806 | DL_OBJS="tclLoadAout.o" |
---|
6807 | DL_LIBS="" |
---|
6808 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
6809 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
6810 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
6811 | |
---|
6812 | fi |
---|
6813 | |
---|
6814 | |
---|
6815 | |
---|
6816 | # FreeBSD doesn't handle version numbers with dots. |
---|
6817 | |
---|
6818 | UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
6819 | TCL_LIB_VERSIONS_OK=nodots |
---|
6820 | ;; |
---|
6821 | OpenBSD-*) |
---|
6822 | case `arch -s` in |
---|
6823 | m88k|vax) |
---|
6824 | SHLIB_CFLAGS="" |
---|
6825 | SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r" |
---|
6826 | SHLIB_LD_LIBS='${LIBS}' |
---|
6827 | SHLIB_SUFFIX=".a" |
---|
6828 | DL_OBJS="tclLoadAout.o" |
---|
6829 | DL_LIBS="" |
---|
6830 | LDFLAGS="" |
---|
6831 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
6832 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
6833 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
6834 | ;; |
---|
6835 | *) |
---|
6836 | # OpenBSD/SPARC[64] needs -fPIC, -fpic will not do. |
---|
6837 | case `machine` in |
---|
6838 | sparc|sparc64) |
---|
6839 | SHLIB_CFLAGS="-fPIC";; |
---|
6840 | *) |
---|
6841 | SHLIB_CFLAGS="-fpic";; |
---|
6842 | esac |
---|
6843 | SHLIB_LD="${CC} -shared ${SHLIB_CFLAGS}" |
---|
6844 | SHLIB_LD_LIBS='${LIBS}' |
---|
6845 | SHLIB_SUFFIX=".so" |
---|
6846 | DL_OBJS="tclLoadDl.o" |
---|
6847 | DL_LIBS="" |
---|
6848 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
6849 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
6850 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' |
---|
6851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5 |
---|
6852 | $as_echo_n "checking for ELF... " >&6; } |
---|
6853 | if ${tcl_cv_ld_elf+:} false; then : |
---|
6854 | $as_echo_n "(cached) " >&6 |
---|
6855 | else |
---|
6856 | |
---|
6857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6858 | /* end confdefs.h. */ |
---|
6859 | |
---|
6860 | #ifdef __ELF__ |
---|
6861 | yes |
---|
6862 | #endif |
---|
6863 | |
---|
6864 | _ACEOF |
---|
6865 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
6866 | $EGREP "yes" >/dev/null 2>&1; then : |
---|
6867 | tcl_cv_ld_elf=yes |
---|
6868 | else |
---|
6869 | tcl_cv_ld_elf=no |
---|
6870 | fi |
---|
6871 | rm -f conftest* |
---|
6872 | |
---|
6873 | fi |
---|
6874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5 |
---|
6875 | $as_echo "$tcl_cv_ld_elf" >&6; } |
---|
6876 | if test $tcl_cv_ld_elf = yes; then |
---|
6877 | LDFLAGS=-Wl,-export-dynamic |
---|
6878 | else |
---|
6879 | LDFLAGS="" |
---|
6880 | fi |
---|
6881 | ;; |
---|
6882 | esac |
---|
6883 | |
---|
6884 | # OpenBSD doesn't do version numbers with dots. |
---|
6885 | UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
6886 | TCL_LIB_VERSIONS_OK=nodots |
---|
6887 | ;; |
---|
6888 | FreeBSD-*) |
---|
6889 | # FreeBSD 3.* and greater have ELF. |
---|
6890 | SHLIB_CFLAGS="-fPIC" |
---|
6891 | SHLIB_LD="ld -Bshareable -x" |
---|
6892 | SHLIB_LD_LIBS='${LIBS}' |
---|
6893 | SHLIB_SUFFIX=".so" |
---|
6894 | DL_OBJS="tclLoadDl.o" |
---|
6895 | DL_LIBS="" |
---|
6896 | LDFLAGS="$LDFLAGS -export-dynamic" |
---|
6897 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
6898 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
6899 | if test "${TCL_THREADS}" = "1" ; then |
---|
6900 | # The -pthread needs to go in the CFLAGS, not LIBS |
---|
6901 | LIBS=`echo $LIBS | sed s/-pthread//` |
---|
6902 | CFLAGS="$CFLAGS -pthread" |
---|
6903 | LDFLAGS="$LDFLAGS -pthread" |
---|
6904 | fi |
---|
6905 | case $system in |
---|
6906 | FreeBSD-3.*) |
---|
6907 | # FreeBSD-3 doesn't handle version numbers with dots. |
---|
6908 | UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
6909 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so' |
---|
6910 | TCL_LIB_VERSIONS_OK=nodots |
---|
6911 | ;; |
---|
6912 | esac |
---|
6913 | ;; |
---|
6914 | Darwin-*) |
---|
6915 | CFLAGS_OPTIMIZE="-Os" |
---|
6916 | SHLIB_CFLAGS="-fno-common" |
---|
6917 | # To avoid discrepancies between what headers configure sees during |
---|
6918 | # preprocessing tests and compiling tests, move any -isysroot and |
---|
6919 | # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: |
---|
6920 | CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ |
---|
6921 | awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ |
---|
6922 | if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" |
---|
6923 | CFLAGS="`echo " ${CFLAGS}" | \ |
---|
6924 | awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ |
---|
6925 | if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" |
---|
6926 | if test $do64bit = yes; then |
---|
6927 | case `arch` in |
---|
6928 | ppc) |
---|
6929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5 |
---|
6930 | $as_echo_n "checking if compiler accepts -arch ppc64 flag... " >&6; } |
---|
6931 | if ${tcl_cv_cc_arch_ppc64+:} false; then : |
---|
6932 | $as_echo_n "(cached) " >&6 |
---|
6933 | else |
---|
6934 | |
---|
6935 | hold_cflags=$CFLAGS |
---|
6936 | CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" |
---|
6937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6938 | /* end confdefs.h. */ |
---|
6939 | |
---|
6940 | int |
---|
6941 | main () |
---|
6942 | { |
---|
6943 | |
---|
6944 | ; |
---|
6945 | return 0; |
---|
6946 | } |
---|
6947 | _ACEOF |
---|
6948 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
6949 | tcl_cv_cc_arch_ppc64=yes |
---|
6950 | else |
---|
6951 | tcl_cv_cc_arch_ppc64=no |
---|
6952 | fi |
---|
6953 | rm -f core conftest.err conftest.$ac_objext \ |
---|
6954 | conftest$ac_exeext conftest.$ac_ext |
---|
6955 | CFLAGS=$hold_cflags |
---|
6956 | fi |
---|
6957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5 |
---|
6958 | $as_echo "$tcl_cv_cc_arch_ppc64" >&6; } |
---|
6959 | if test $tcl_cv_cc_arch_ppc64 = yes; then |
---|
6960 | CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" |
---|
6961 | do64bit_ok=yes |
---|
6962 | fi;; |
---|
6963 | i386) |
---|
6964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5 |
---|
6965 | $as_echo_n "checking if compiler accepts -arch x86_64 flag... " >&6; } |
---|
6966 | if ${tcl_cv_cc_arch_x86_64+:} false; then : |
---|
6967 | $as_echo_n "(cached) " >&6 |
---|
6968 | else |
---|
6969 | |
---|
6970 | hold_cflags=$CFLAGS |
---|
6971 | CFLAGS="$CFLAGS -arch x86_64" |
---|
6972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6973 | /* end confdefs.h. */ |
---|
6974 | |
---|
6975 | int |
---|
6976 | main () |
---|
6977 | { |
---|
6978 | |
---|
6979 | ; |
---|
6980 | return 0; |
---|
6981 | } |
---|
6982 | _ACEOF |
---|
6983 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
6984 | tcl_cv_cc_arch_x86_64=yes |
---|
6985 | else |
---|
6986 | tcl_cv_cc_arch_x86_64=no |
---|
6987 | fi |
---|
6988 | rm -f core conftest.err conftest.$ac_objext \ |
---|
6989 | conftest$ac_exeext conftest.$ac_ext |
---|
6990 | CFLAGS=$hold_cflags |
---|
6991 | fi |
---|
6992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5 |
---|
6993 | $as_echo "$tcl_cv_cc_arch_x86_64" >&6; } |
---|
6994 | if test $tcl_cv_cc_arch_x86_64 = yes; then |
---|
6995 | CFLAGS="$CFLAGS -arch x86_64" |
---|
6996 | do64bit_ok=yes |
---|
6997 | fi;; |
---|
6998 | *) |
---|
6999 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 |
---|
7000 | $as_echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; |
---|
7001 | esac |
---|
7002 | else |
---|
7003 | # Check for combined 32-bit and 64-bit fat build |
---|
7004 | echo "$CFLAGS " | grep -E -q -- '-arch (ppc64|x86_64) ' && \ |
---|
7005 | echo "$CFLAGS " | grep -E -q -- '-arch (ppc|i386) ' && \ |
---|
7006 | fat_32_64=yes |
---|
7007 | fi |
---|
7008 | SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS}' |
---|
7009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5 |
---|
7010 | $as_echo_n "checking if ld accepts -single_module flag... " >&6; } |
---|
7011 | if ${tcl_cv_ld_single_module+:} false; then : |
---|
7012 | $as_echo_n "(cached) " >&6 |
---|
7013 | else |
---|
7014 | |
---|
7015 | hold_ldflags=$LDFLAGS |
---|
7016 | LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" |
---|
7017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7018 | /* end confdefs.h. */ |
---|
7019 | |
---|
7020 | int |
---|
7021 | main () |
---|
7022 | { |
---|
7023 | int i; |
---|
7024 | ; |
---|
7025 | return 0; |
---|
7026 | } |
---|
7027 | _ACEOF |
---|
7028 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
7029 | tcl_cv_ld_single_module=yes |
---|
7030 | else |
---|
7031 | tcl_cv_ld_single_module=no |
---|
7032 | fi |
---|
7033 | rm -f core conftest.err conftest.$ac_objext \ |
---|
7034 | conftest$ac_exeext conftest.$ac_ext |
---|
7035 | LDFLAGS=$hold_ldflags |
---|
7036 | fi |
---|
7037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5 |
---|
7038 | $as_echo "$tcl_cv_ld_single_module" >&6; } |
---|
7039 | if test $tcl_cv_ld_single_module = yes; then |
---|
7040 | SHLIB_LD="${SHLIB_LD} -Wl,-single_module" |
---|
7041 | fi |
---|
7042 | SHLIB_LD_LIBS='${LIBS}' |
---|
7043 | SHLIB_SUFFIX=".dylib" |
---|
7044 | DL_OBJS="tclLoadDyld.o" |
---|
7045 | DL_LIBS="" |
---|
7046 | # Don't use -prebind when building for Mac OS X 10.4 or later only: |
---|
7047 | test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ |
---|
7048 | "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4 && \ |
---|
7049 | LDFLAGS="$LDFLAGS -prebind" |
---|
7050 | LDFLAGS="$LDFLAGS -headerpad_max_install_names" |
---|
7051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5 |
---|
7052 | $as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; } |
---|
7053 | if ${tcl_cv_ld_search_paths_first+:} false; then : |
---|
7054 | $as_echo_n "(cached) " >&6 |
---|
7055 | else |
---|
7056 | |
---|
7057 | hold_ldflags=$LDFLAGS |
---|
7058 | LDFLAGS="$LDFLAGS -Wl,-search_paths_first" |
---|
7059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7060 | /* end confdefs.h. */ |
---|
7061 | |
---|
7062 | int |
---|
7063 | main () |
---|
7064 | { |
---|
7065 | int i; |
---|
7066 | ; |
---|
7067 | return 0; |
---|
7068 | } |
---|
7069 | _ACEOF |
---|
7070 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
7071 | tcl_cv_ld_search_paths_first=yes |
---|
7072 | else |
---|
7073 | tcl_cv_ld_search_paths_first=no |
---|
7074 | fi |
---|
7075 | rm -f core conftest.err conftest.$ac_objext \ |
---|
7076 | conftest$ac_exeext conftest.$ac_ext |
---|
7077 | LDFLAGS=$hold_ldflags |
---|
7078 | fi |
---|
7079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5 |
---|
7080 | $as_echo "$tcl_cv_ld_search_paths_first" >&6; } |
---|
7081 | if test $tcl_cv_ld_search_paths_first = yes; then |
---|
7082 | LDFLAGS="$LDFLAGS -Wl,-search_paths_first" |
---|
7083 | fi |
---|
7084 | CC_SEARCH_FLAGS="" |
---|
7085 | LD_SEARCH_FLAGS="" |
---|
7086 | LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" |
---|
7087 | PLAT_OBJS=\$\(MAC\_OSX_OBJS\) |
---|
7088 | PLAT_SRCS=\$\(MAC\_OSX_SRCS\) |
---|
7089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use CoreFoundation" >&5 |
---|
7090 | $as_echo_n "checking whether to use CoreFoundation... " >&6; } |
---|
7091 | # Check whether --enable-corefoundation was given. |
---|
7092 | if test "${enable_corefoundation+set}" = set; then : |
---|
7093 | enableval=$enable_corefoundation; tcl_corefoundation=$enableval |
---|
7094 | else |
---|
7095 | tcl_corefoundation=yes |
---|
7096 | fi |
---|
7097 | |
---|
7098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_corefoundation" >&5 |
---|
7099 | $as_echo "$tcl_corefoundation" >&6; } |
---|
7100 | if test $tcl_corefoundation = yes; then |
---|
7101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CoreFoundation.framework" >&5 |
---|
7102 | $as_echo_n "checking for CoreFoundation.framework... " >&6; } |
---|
7103 | if ${tcl_cv_lib_corefoundation+:} false; then : |
---|
7104 | $as_echo_n "(cached) " >&6 |
---|
7105 | else |
---|
7106 | |
---|
7107 | hold_libs=$LIBS |
---|
7108 | if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do |
---|
7109 | # On Tiger there is no 64-bit CF, so remove 64-bit archs |
---|
7110 | # from CFLAGS et al. while testing for presence of CF. |
---|
7111 | # 64-bit CF is disabled in tclUnixPort.h if necessary. |
---|
7112 | eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' |
---|
7113 | done; fi |
---|
7114 | LIBS="$LIBS -framework CoreFoundation" |
---|
7115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7116 | /* end confdefs.h. */ |
---|
7117 | #include <CoreFoundation/CoreFoundation.h> |
---|
7118 | int |
---|
7119 | main () |
---|
7120 | { |
---|
7121 | CFBundleRef b = CFBundleGetMainBundle(); |
---|
7122 | ; |
---|
7123 | return 0; |
---|
7124 | } |
---|
7125 | _ACEOF |
---|
7126 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
7127 | tcl_cv_lib_corefoundation=yes |
---|
7128 | else |
---|
7129 | tcl_cv_lib_corefoundation=no |
---|
7130 | fi |
---|
7131 | rm -f core conftest.err conftest.$ac_objext \ |
---|
7132 | conftest$ac_exeext conftest.$ac_ext |
---|
7133 | if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do |
---|
7134 | eval $v'="$hold_'$v'"' |
---|
7135 | done; fi; LIBS=$hold_libs |
---|
7136 | fi |
---|
7137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation" >&5 |
---|
7138 | $as_echo "$tcl_cv_lib_corefoundation" >&6; } |
---|
7139 | if test $tcl_cv_lib_corefoundation = yes; then |
---|
7140 | LIBS="$LIBS -framework CoreFoundation" |
---|
7141 | $as_echo "#define HAVE_COREFOUNDATION 1" >>confdefs.h |
---|
7142 | |
---|
7143 | else |
---|
7144 | tcl_corefoundation=no |
---|
7145 | fi |
---|
7146 | if test "$fat_32_64" = yes -a $tcl_corefoundation = yes; then |
---|
7147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit CoreFoundation" >&5 |
---|
7148 | $as_echo_n "checking for 64-bit CoreFoundation... " >&6; } |
---|
7149 | if ${tcl_cv_lib_corefoundation_64+:} false; then : |
---|
7150 | $as_echo_n "(cached) " >&6 |
---|
7151 | else |
---|
7152 | |
---|
7153 | for v in CFLAGS CPPFLAGS LDFLAGS; do |
---|
7154 | eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' |
---|
7155 | done |
---|
7156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7157 | /* end confdefs.h. */ |
---|
7158 | #include <CoreFoundation/CoreFoundation.h> |
---|
7159 | int |
---|
7160 | main () |
---|
7161 | { |
---|
7162 | CFBundleRef b = CFBundleGetMainBundle(); |
---|
7163 | ; |
---|
7164 | return 0; |
---|
7165 | } |
---|
7166 | _ACEOF |
---|
7167 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
7168 | tcl_cv_lib_corefoundation_64=yes |
---|
7169 | else |
---|
7170 | tcl_cv_lib_corefoundation_64=no |
---|
7171 | fi |
---|
7172 | rm -f core conftest.err conftest.$ac_objext \ |
---|
7173 | conftest$ac_exeext conftest.$ac_ext |
---|
7174 | for v in CFLAGS CPPFLAGS LDFLAGS; do |
---|
7175 | eval $v'="$hold_'$v'"' |
---|
7176 | done |
---|
7177 | fi |
---|
7178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation_64" >&5 |
---|
7179 | $as_echo "$tcl_cv_lib_corefoundation_64" >&6; } |
---|
7180 | if test $tcl_cv_lib_corefoundation_64 = no; then |
---|
7181 | $as_echo "#define NO_COREFOUNDATION_64 1" >>confdefs.h |
---|
7182 | |
---|
7183 | fi |
---|
7184 | fi |
---|
7185 | fi |
---|
7186 | $as_echo "#define MAC_OSX_TCL 1" >>confdefs.h |
---|
7187 | |
---|
7188 | ;; |
---|
7189 | NEXTSTEP-*) |
---|
7190 | SHLIB_CFLAGS="" |
---|
7191 | SHLIB_LD="cc -nostdlib -r" |
---|
7192 | SHLIB_LD_LIBS="" |
---|
7193 | SHLIB_SUFFIX=".so" |
---|
7194 | DL_OBJS="tclLoadNext.o" |
---|
7195 | DL_LIBS="" |
---|
7196 | CC_SEARCH_FLAGS="" |
---|
7197 | LD_SEARCH_FLAGS="" |
---|
7198 | ;; |
---|
7199 | OS/390-*) |
---|
7200 | CFLAGS_OPTIMIZE="" # Optimizer is buggy |
---|
7201 | $as_echo "#define _OE_SOCKETS 1" >>confdefs.h |
---|
7202 | # needed in sys/socket.h |
---|
7203 | ;; |
---|
7204 | OSF1-1.0|OSF1-1.1|OSF1-1.2) |
---|
7205 | # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1 |
---|
7206 | SHLIB_CFLAGS="" |
---|
7207 | # Hack: make package name same as library name |
---|
7208 | SHLIB_LD='ld -R -export :' |
---|
7209 | SHLIB_LD_LIBS="" |
---|
7210 | SHLIB_SUFFIX=".so" |
---|
7211 | DL_OBJS="tclLoadOSF.o" |
---|
7212 | DL_LIBS="" |
---|
7213 | CC_SEARCH_FLAGS="" |
---|
7214 | LD_SEARCH_FLAGS="" |
---|
7215 | ;; |
---|
7216 | OSF1-1.*) |
---|
7217 | # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2 |
---|
7218 | SHLIB_CFLAGS="-fPIC" |
---|
7219 | if test "$SHARED_BUILD" = "1" ; then |
---|
7220 | SHLIB_LD="ld -shared" |
---|
7221 | else |
---|
7222 | SHLIB_LD="ld -non_shared" |
---|
7223 | fi |
---|
7224 | SHLIB_LD_LIBS="" |
---|
7225 | SHLIB_SUFFIX=".so" |
---|
7226 | DL_OBJS="tclLoadDl.o" |
---|
7227 | DL_LIBS="" |
---|
7228 | CC_SEARCH_FLAGS="" |
---|
7229 | LD_SEARCH_FLAGS="" |
---|
7230 | ;; |
---|
7231 | OSF1-V*) |
---|
7232 | # Digital OSF/1 |
---|
7233 | SHLIB_CFLAGS="" |
---|
7234 | if test "$SHARED_BUILD" = "1" ; then |
---|
7235 | SHLIB_LD='ld -shared -expect_unresolved "*"' |
---|
7236 | else |
---|
7237 | SHLIB_LD='ld -non_shared -expect_unresolved "*"' |
---|
7238 | fi |
---|
7239 | SHLIB_LD_LIBS="" |
---|
7240 | SHLIB_SUFFIX=".so" |
---|
7241 | DL_OBJS="tclLoadDl.o" |
---|
7242 | DL_LIBS="" |
---|
7243 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
7244 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
7245 | if test "$GCC" = "yes" ; then |
---|
7246 | CFLAGS="$CFLAGS -mieee" |
---|
7247 | else |
---|
7248 | CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" |
---|
7249 | fi |
---|
7250 | # see pthread_intro(3) for pthread support on osf1, k.furukawa |
---|
7251 | if test "${TCL_THREADS}" = "1" ; then |
---|
7252 | CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" |
---|
7253 | CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" |
---|
7254 | LIBS=`echo $LIBS | sed s/-lpthreads//` |
---|
7255 | if test "$GCC" = "yes" ; then |
---|
7256 | LIBS="$LIBS -lpthread -lmach -lexc" |
---|
7257 | else |
---|
7258 | CFLAGS="$CFLAGS -pthread" |
---|
7259 | LDFLAGS="$LDFLAGS -pthread" |
---|
7260 | fi |
---|
7261 | fi |
---|
7262 | |
---|
7263 | ;; |
---|
7264 | QNX-6*) |
---|
7265 | # QNX RTP |
---|
7266 | # This may work for all QNX, but it was only reported for v6. |
---|
7267 | SHLIB_CFLAGS="-fPIC" |
---|
7268 | SHLIB_LD="ld -Bshareable -x" |
---|
7269 | SHLIB_LD_LIBS="" |
---|
7270 | SHLIB_SUFFIX=".so" |
---|
7271 | DL_OBJS="tclLoadDl.o" |
---|
7272 | # dlopen is in -lc on QNX |
---|
7273 | DL_LIBS="" |
---|
7274 | CC_SEARCH_FLAGS="" |
---|
7275 | LD_SEARCH_FLAGS="" |
---|
7276 | ;; |
---|
7277 | RISCos-*) |
---|
7278 | SHLIB_CFLAGS="-G 0" |
---|
7279 | SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" |
---|
7280 | SHLIB_LD_LIBS='${LIBS}' |
---|
7281 | SHLIB_SUFFIX=".a" |
---|
7282 | DL_OBJS="tclLoadAout.o" |
---|
7283 | DL_LIBS="" |
---|
7284 | LDFLAGS="$LDFLAGS -Wl,-D,08000000" |
---|
7285 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
7286 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
7287 | ;; |
---|
7288 | SCO_SV-3.2*) |
---|
7289 | # Note, dlopen is available only on SCO 3.2.5 and greater. However, |
---|
7290 | # this test works, since "uname -s" was non-standard in 3.2.4 and |
---|
7291 | # below. |
---|
7292 | if test "$GCC" = "yes" ; then |
---|
7293 | SHLIB_CFLAGS="-fPIC -melf" |
---|
7294 | LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" |
---|
7295 | else |
---|
7296 | SHLIB_CFLAGS="-Kpic -belf" |
---|
7297 | LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" |
---|
7298 | fi |
---|
7299 | SHLIB_LD="ld -G" |
---|
7300 | SHLIB_LD_LIBS="" |
---|
7301 | SHLIB_SUFFIX=".so" |
---|
7302 | DL_OBJS="tclLoadDl.o" |
---|
7303 | DL_LIBS="" |
---|
7304 | CC_SEARCH_FLAGS="" |
---|
7305 | LD_SEARCH_FLAGS="" |
---|
7306 | ;; |
---|
7307 | SINIX*5.4*) |
---|
7308 | SHLIB_CFLAGS="-K PIC" |
---|
7309 | SHLIB_LD="cc -G" |
---|
7310 | SHLIB_LD_LIBS="" |
---|
7311 | SHLIB_SUFFIX=".so" |
---|
7312 | DL_OBJS="tclLoadDl.o" |
---|
7313 | DL_LIBS="-ldl" |
---|
7314 | CC_SEARCH_FLAGS="" |
---|
7315 | LD_SEARCH_FLAGS="" |
---|
7316 | ;; |
---|
7317 | SunOS-4*) |
---|
7318 | SHLIB_CFLAGS="-PIC" |
---|
7319 | SHLIB_LD="ld" |
---|
7320 | SHLIB_LD_LIBS="" |
---|
7321 | SHLIB_SUFFIX=".so" |
---|
7322 | DL_OBJS="tclLoadDl.o" |
---|
7323 | DL_LIBS="-ldl" |
---|
7324 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
7325 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
7326 | |
---|
7327 | # SunOS can't handle version numbers with dots in them in library |
---|
7328 | # specs, like -ltcl7.5, so use -ltcl75 instead. Also, it |
---|
7329 | # requires an extra version number at the end of .so file names. |
---|
7330 | # So, the library has to have a name like libtcl75.so.1.0 |
---|
7331 | |
---|
7332 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' |
---|
7333 | UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
7334 | TCL_LIB_VERSIONS_OK=nodots |
---|
7335 | ;; |
---|
7336 | SunOS-5.[0-6]) |
---|
7337 | # Careful to not let 5.10+ fall into this case |
---|
7338 | |
---|
7339 | # Note: If _REENTRANT isn't defined, then Solaris |
---|
7340 | # won't define thread-safe library routines. |
---|
7341 | |
---|
7342 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
---|
7343 | |
---|
7344 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
---|
7345 | |
---|
7346 | |
---|
7347 | SHLIB_CFLAGS="-KPIC" |
---|
7348 | |
---|
7349 | # Note: need the LIBS below, otherwise Tk won't find Tcl's |
---|
7350 | # symbols when dynamically loaded into tclsh. |
---|
7351 | |
---|
7352 | SHLIB_LD_LIBS='${LIBS}' |
---|
7353 | SHLIB_SUFFIX=".so" |
---|
7354 | DL_OBJS="tclLoadDl.o" |
---|
7355 | DL_LIBS="-ldl" |
---|
7356 | if test "$GCC" = "yes" ; then |
---|
7357 | SHLIB_LD="$CC -shared" |
---|
7358 | CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' |
---|
7359 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
7360 | else |
---|
7361 | SHLIB_LD="/usr/ccs/bin/ld -G -z text" |
---|
7362 | CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' |
---|
7363 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
7364 | fi |
---|
7365 | ;; |
---|
7366 | SunOS-5*) |
---|
7367 | # Note: If _REENTRANT isn't defined, then Solaris |
---|
7368 | # won't define thread-safe library routines. |
---|
7369 | |
---|
7370 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
---|
7371 | |
---|
7372 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
---|
7373 | |
---|
7374 | |
---|
7375 | SHLIB_CFLAGS="-KPIC" |
---|
7376 | |
---|
7377 | # Check to enable 64-bit flags for compiler/linker |
---|
7378 | if test "$do64bit" = "yes" ; then |
---|
7379 | arch=`isainfo` |
---|
7380 | if test "$arch" = "sparcv9 sparc" ; then |
---|
7381 | if test "$GCC" = "yes" ; then |
---|
7382 | if test "`gcc -dumpversion | awk -F. '{print $1}'`" -lt "3" ; then |
---|
7383 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 |
---|
7384 | $as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} |
---|
7385 | else |
---|
7386 | do64bit_ok=yes |
---|
7387 | CFLAGS="$CFLAGS -m64 -mcpu=v9" |
---|
7388 | LDFLAGS="$LDFLAGS -m64 -mcpu=v9" |
---|
7389 | SHLIB_CFLAGS="-fPIC" |
---|
7390 | fi |
---|
7391 | else |
---|
7392 | do64bit_ok=yes |
---|
7393 | if test "$do64bitVIS" = "yes" ; then |
---|
7394 | CFLAGS="$CFLAGS -xarch=v9a" |
---|
7395 | LDFLAGS="$LDFLAGS -xarch=v9a" |
---|
7396 | else |
---|
7397 | CFLAGS="$CFLAGS -xarch=v9" |
---|
7398 | LDFLAGS="$LDFLAGS -xarch=v9" |
---|
7399 | fi |
---|
7400 | # Solaris 64 uses this as well |
---|
7401 | #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" |
---|
7402 | fi |
---|
7403 | elif test "$arch" = "amd64 i386" ; then |
---|
7404 | if test "$GCC" = "yes" ; then |
---|
7405 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 |
---|
7406 | $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} |
---|
7407 | else |
---|
7408 | do64bit_ok=yes |
---|
7409 | CFLAGS="$CFLAGS -xarch=amd64" |
---|
7410 | LDFLAGS="$LDFLAGS -xarch=amd64" |
---|
7411 | fi |
---|
7412 | else |
---|
7413 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5 |
---|
7414 | $as_echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} |
---|
7415 | fi |
---|
7416 | fi |
---|
7417 | |
---|
7418 | # Note: need the LIBS below, otherwise Tk won't find Tcl's |
---|
7419 | # symbols when dynamically loaded into tclsh. |
---|
7420 | |
---|
7421 | SHLIB_LD_LIBS='${LIBS}' |
---|
7422 | SHLIB_SUFFIX=".so" |
---|
7423 | DL_OBJS="tclLoadDl.o" |
---|
7424 | DL_LIBS="-ldl" |
---|
7425 | if test "$GCC" = "yes" ; then |
---|
7426 | SHLIB_LD="$CC -shared" |
---|
7427 | CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' |
---|
7428 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
7429 | if test "$do64bit_ok" = "yes" ; then |
---|
7430 | # We need to specify -static-libgcc or we need to |
---|
7431 | # add the path to the sparv9 libgcc. |
---|
7432 | SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" |
---|
7433 | # for finding sparcv9 libgcc, get the regular libgcc |
---|
7434 | # path, remove so name and append 'sparcv9' |
---|
7435 | #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." |
---|
7436 | #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" |
---|
7437 | fi |
---|
7438 | else |
---|
7439 | case $system in |
---|
7440 | SunOS-5.[1-9][0-9]*) |
---|
7441 | SHLIB_LD='${CC} -G -z text ${LDFLAGS}';; |
---|
7442 | *) |
---|
7443 | SHLIB_LD="/usr/ccs/bin/ld -G -z text";; |
---|
7444 | esac |
---|
7445 | CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' |
---|
7446 | LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' |
---|
7447 | fi |
---|
7448 | ;; |
---|
7449 | ULTRIX-4.*) |
---|
7450 | SHLIB_CFLAGS="-G 0" |
---|
7451 | SHLIB_SUFFIX=".a" |
---|
7452 | SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" |
---|
7453 | SHLIB_LD_LIBS='${LIBS}' |
---|
7454 | DL_OBJS="tclLoadAout.o" |
---|
7455 | DL_LIBS="" |
---|
7456 | LDFLAGS="$LDFLAGS -Wl,-D,08000000" |
---|
7457 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
7458 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
7459 | if test "$GCC" != "yes" ; then |
---|
7460 | CFLAGS="$CFLAGS -DHAVE_TZSET -std1" |
---|
7461 | fi |
---|
7462 | ;; |
---|
7463 | UNIX_SV* | UnixWare-5*) |
---|
7464 | SHLIB_CFLAGS="-KPIC" |
---|
7465 | SHLIB_LD="cc -G" |
---|
7466 | SHLIB_LD_LIBS="" |
---|
7467 | SHLIB_SUFFIX=".so" |
---|
7468 | DL_OBJS="tclLoadDl.o" |
---|
7469 | DL_LIBS="-ldl" |
---|
7470 | # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers |
---|
7471 | # that don't grok the -Bexport option. Test that it does. |
---|
7472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5 |
---|
7473 | $as_echo_n "checking for ld accepts -Bexport flag... " >&6; } |
---|
7474 | if ${tcl_cv_ld_Bexport+:} false; then : |
---|
7475 | $as_echo_n "(cached) " >&6 |
---|
7476 | else |
---|
7477 | |
---|
7478 | hold_ldflags=$LDFLAGS |
---|
7479 | LDFLAGS="$LDFLAGS -Wl,-Bexport" |
---|
7480 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7481 | /* end confdefs.h. */ |
---|
7482 | |
---|
7483 | int |
---|
7484 | main () |
---|
7485 | { |
---|
7486 | int i; |
---|
7487 | ; |
---|
7488 | return 0; |
---|
7489 | } |
---|
7490 | _ACEOF |
---|
7491 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
7492 | tcl_cv_ld_Bexport=yes |
---|
7493 | else |
---|
7494 | tcl_cv_ld_Bexport=no |
---|
7495 | fi |
---|
7496 | rm -f core conftest.err conftest.$ac_objext \ |
---|
7497 | conftest$ac_exeext conftest.$ac_ext |
---|
7498 | LDFLAGS=$hold_ldflags |
---|
7499 | fi |
---|
7500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5 |
---|
7501 | $as_echo "$tcl_cv_ld_Bexport" >&6; } |
---|
7502 | if test $tcl_cv_ld_Bexport = yes; then |
---|
7503 | LDFLAGS="$LDFLAGS -Wl,-Bexport" |
---|
7504 | fi |
---|
7505 | CC_SEARCH_FLAGS="" |
---|
7506 | LD_SEARCH_FLAGS="" |
---|
7507 | ;; |
---|
7508 | esac |
---|
7509 | |
---|
7510 | if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then |
---|
7511 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 |
---|
7512 | $as_echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} |
---|
7513 | fi |
---|
7514 | |
---|
7515 | |
---|
7516 | |
---|
7517 | |
---|
7518 | # Step 4: If pseudo-static linking is in use (see K. B. Kenny, "Dynamic |
---|
7519 | # Loading for Tcl -- What Became of It?". Proc. 2nd Tcl/Tk Workshop, |
---|
7520 | # New Orleans, LA, Computerized Processes Unlimited, 1994), then we need |
---|
7521 | # to determine which of several header files defines the a.out file |
---|
7522 | # format (a.out.h, sys/exec.h, or sys/exec_aout.h). At present, we |
---|
7523 | # support only a file format that is more or less version-7-compatible. |
---|
7524 | # In particular, |
---|
7525 | # - a.out files must begin with `struct exec'. |
---|
7526 | # - the N_TXTOFF on the `struct exec' must compute the seek address |
---|
7527 | # of the text segment |
---|
7528 | # - The `struct exec' must contain a_magic, a_text, a_data, a_bss |
---|
7529 | # and a_entry fields. |
---|
7530 | # The following compilation should succeed if and only if either sys/exec.h |
---|
7531 | # or a.out.h is usable for the purpose. |
---|
7532 | # |
---|
7533 | # Note that the modified COFF format used on MIPS Ultrix 4.x is usable; the |
---|
7534 | # `struct exec' includes a second header that contains information that |
---|
7535 | # duplicates the v7 fields that are needed. |
---|
7536 | |
---|
7537 | if test "x$DL_OBJS" = "xtclLoadAout.o" ; then |
---|
7538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec.h" >&5 |
---|
7539 | $as_echo_n "checking sys/exec.h... " >&6; } |
---|
7540 | if ${tcl_cv_sysexec_h+:} false; then : |
---|
7541 | $as_echo_n "(cached) " >&6 |
---|
7542 | else |
---|
7543 | |
---|
7544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7545 | /* end confdefs.h. */ |
---|
7546 | #include <sys/exec.h> |
---|
7547 | int |
---|
7548 | main () |
---|
7549 | { |
---|
7550 | |
---|
7551 | struct exec foo; |
---|
7552 | unsigned long seek; |
---|
7553 | int flag; |
---|
7554 | #if defined(__mips) || defined(mips) |
---|
7555 | seek = N_TXTOFF (foo.ex_f, foo.ex_o); |
---|
7556 | #else |
---|
7557 | seek = N_TXTOFF (foo); |
---|
7558 | #endif |
---|
7559 | flag = (foo.a_magic == OMAGIC); |
---|
7560 | return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; |
---|
7561 | |
---|
7562 | ; |
---|
7563 | return 0; |
---|
7564 | } |
---|
7565 | _ACEOF |
---|
7566 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
7567 | tcl_cv_sysexec_h=usable |
---|
7568 | else |
---|
7569 | tcl_cv_sysexec_h=unusable |
---|
7570 | fi |
---|
7571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7572 | fi |
---|
7573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexec_h" >&5 |
---|
7574 | $as_echo "$tcl_cv_sysexec_h" >&6; } |
---|
7575 | if test $tcl_cv_sysexec_h = usable; then |
---|
7576 | $as_echo "#define USE_SYS_EXEC_H 1" >>confdefs.h |
---|
7577 | |
---|
7578 | else |
---|
7579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking a.out.h" >&5 |
---|
7580 | $as_echo_n "checking a.out.h... " >&6; } |
---|
7581 | if ${tcl_cv_aout_h+:} false; then : |
---|
7582 | $as_echo_n "(cached) " >&6 |
---|
7583 | else |
---|
7584 | |
---|
7585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7586 | /* end confdefs.h. */ |
---|
7587 | #include <a.out.h> |
---|
7588 | int |
---|
7589 | main () |
---|
7590 | { |
---|
7591 | |
---|
7592 | struct exec foo; |
---|
7593 | unsigned long seek; |
---|
7594 | int flag; |
---|
7595 | #if defined(__mips) || defined(mips) |
---|
7596 | seek = N_TXTOFF (foo.ex_f, foo.ex_o); |
---|
7597 | #else |
---|
7598 | seek = N_TXTOFF (foo); |
---|
7599 | #endif |
---|
7600 | flag = (foo.a_magic == OMAGIC); |
---|
7601 | return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; |
---|
7602 | |
---|
7603 | ; |
---|
7604 | return 0; |
---|
7605 | } |
---|
7606 | _ACEOF |
---|
7607 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
7608 | tcl_cv_aout_h=usable |
---|
7609 | else |
---|
7610 | tcl_cv_aout_h=unusable |
---|
7611 | fi |
---|
7612 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7613 | fi |
---|
7614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_aout_h" >&5 |
---|
7615 | $as_echo "$tcl_cv_aout_h" >&6; } |
---|
7616 | if test $tcl_cv_aout_h = usable; then |
---|
7617 | $as_echo "#define USE_A_OUT_H 1" >>confdefs.h |
---|
7618 | |
---|
7619 | else |
---|
7620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec_aout.h" >&5 |
---|
7621 | $as_echo_n "checking sys/exec_aout.h... " >&6; } |
---|
7622 | if ${tcl_cv_sysexecaout_h+:} false; then : |
---|
7623 | $as_echo_n "(cached) " >&6 |
---|
7624 | else |
---|
7625 | |
---|
7626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7627 | /* end confdefs.h. */ |
---|
7628 | #include <sys/exec_aout.h> |
---|
7629 | int |
---|
7630 | main () |
---|
7631 | { |
---|
7632 | |
---|
7633 | struct exec foo; |
---|
7634 | unsigned long seek; |
---|
7635 | int flag; |
---|
7636 | #if defined(__mips) || defined(mips) |
---|
7637 | seek = N_TXTOFF (foo.ex_f, foo.ex_o); |
---|
7638 | #else |
---|
7639 | seek = N_TXTOFF (foo); |
---|
7640 | #endif |
---|
7641 | flag = (foo.a_midmag == OMAGIC); |
---|
7642 | return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; |
---|
7643 | |
---|
7644 | ; |
---|
7645 | return 0; |
---|
7646 | } |
---|
7647 | _ACEOF |
---|
7648 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
7649 | tcl_cv_sysexecaout_h=usable |
---|
7650 | else |
---|
7651 | tcl_cv_sysexecaout_h=unusable |
---|
7652 | fi |
---|
7653 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7654 | fi |
---|
7655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexecaout_h" >&5 |
---|
7656 | $as_echo "$tcl_cv_sysexecaout_h" >&6; } |
---|
7657 | if test $tcl_cv_sysexecaout_h = usable; then |
---|
7658 | $as_echo "#define USE_SYS_EXEC_AOUT_H 1" >>confdefs.h |
---|
7659 | |
---|
7660 | else |
---|
7661 | DL_OBJS="" |
---|
7662 | fi |
---|
7663 | fi |
---|
7664 | fi |
---|
7665 | fi |
---|
7666 | |
---|
7667 | # Step 5: disable dynamic loading if requested via a command-line switch. |
---|
7668 | |
---|
7669 | # Check whether --enable-load was given. |
---|
7670 | if test "${enable_load+set}" = set; then : |
---|
7671 | enableval=$enable_load; tcl_ok=$enableval |
---|
7672 | else |
---|
7673 | tcl_ok=yes |
---|
7674 | fi |
---|
7675 | |
---|
7676 | if test "$tcl_ok" = "no"; then |
---|
7677 | DL_OBJS="" |
---|
7678 | fi |
---|
7679 | |
---|
7680 | if test "x$DL_OBJS" != "x" ; then |
---|
7681 | BUILD_DLTEST="\$(DLTEST_TARGETS)" |
---|
7682 | else |
---|
7683 | echo "Can't figure out how to do dynamic loading or shared libraries" |
---|
7684 | echo "on this system." |
---|
7685 | SHLIB_CFLAGS="" |
---|
7686 | SHLIB_LD="" |
---|
7687 | SHLIB_SUFFIX="" |
---|
7688 | DL_OBJS="tclLoadNone.o" |
---|
7689 | DL_LIBS="" |
---|
7690 | LDFLAGS="$LDFLAGS_ORIG" |
---|
7691 | CC_SEARCH_FLAGS="" |
---|
7692 | LD_SEARCH_FLAGS="" |
---|
7693 | BUILD_DLTEST="" |
---|
7694 | fi |
---|
7695 | |
---|
7696 | # If we're running gcc, then change the C flags for compiling shared |
---|
7697 | # libraries to the right flags for gcc, instead of those for the |
---|
7698 | # standard manufacturer compiler. |
---|
7699 | |
---|
7700 | if test "$DL_OBJS" != "tclLoadNone.o" ; then |
---|
7701 | if test "$GCC" = "yes" ; then |
---|
7702 | case $system in |
---|
7703 | AIX-*) |
---|
7704 | ;; |
---|
7705 | BSD/OS*) |
---|
7706 | ;; |
---|
7707 | IRIX*) |
---|
7708 | ;; |
---|
7709 | NetBSD-*|FreeBSD-*|OpenBSD-*) |
---|
7710 | ;; |
---|
7711 | Darwin-*) |
---|
7712 | ;; |
---|
7713 | RISCos-*) |
---|
7714 | ;; |
---|
7715 | SCO_SV-3.2*) |
---|
7716 | ;; |
---|
7717 | ULTRIX-4.*) |
---|
7718 | ;; |
---|
7719 | *) |
---|
7720 | SHLIB_CFLAGS="-fPIC" |
---|
7721 | ;; |
---|
7722 | esac |
---|
7723 | fi |
---|
7724 | fi |
---|
7725 | |
---|
7726 | if test "$SHARED_LIB_SUFFIX" = "" ; then |
---|
7727 | SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}${SHLIB_SUFFIX}' |
---|
7728 | fi |
---|
7729 | if test "$UNSHARED_LIB_SUFFIX" = "" ; then |
---|
7730 | UNSHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a' |
---|
7731 | fi |
---|
7732 | |
---|
7733 | if test "${SHARED_BUILD}" = "1" && test "${SHLIB_SUFFIX}" != "" ; then |
---|
7734 | LIB_SUFFIX=${SHARED_LIB_SUFFIX} |
---|
7735 | MAKE_LIB='${SHLIB_LD} -o $@ ${OBJS} ${SHLIB_LD_LIBS} ${TCL_SHLIB_LD_EXTRAS} ${TK_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}' |
---|
7736 | INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)' |
---|
7737 | else |
---|
7738 | LIB_SUFFIX=${UNSHARED_LIB_SUFFIX} |
---|
7739 | |
---|
7740 | if test "$RANLIB" = "" ; then |
---|
7741 | MAKE_LIB='$(STLIB_LD) $@ ${OBJS}' |
---|
7742 | INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)' |
---|
7743 | else |
---|
7744 | MAKE_LIB='${STLIB_LD} $@ ${OBJS} ; ${RANLIB} $@' |
---|
7745 | INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(LIB_FILE))' |
---|
7746 | fi |
---|
7747 | |
---|
7748 | fi |
---|
7749 | |
---|
7750 | |
---|
7751 | # Stub lib does not depend on shared/static configuration |
---|
7752 | if test "$RANLIB" = "" ; then |
---|
7753 | MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS}' |
---|
7754 | INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)' |
---|
7755 | else |
---|
7756 | MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS} ; ${RANLIB} $@' |
---|
7757 | INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(STUB_LIB_FILE))' |
---|
7758 | fi |
---|
7759 | |
---|
7760 | |
---|
7761 | |
---|
7762 | |
---|
7763 | |
---|
7764 | |
---|
7765 | |
---|
7766 | |
---|
7767 | |
---|
7768 | |
---|
7769 | |
---|
7770 | |
---|
7771 | |
---|
7772 | |
---|
7773 | |
---|
7774 | |
---|
7775 | |
---|
7776 | |
---|
7777 | |
---|
7778 | |
---|
7779 | |
---|
7780 | |
---|
7781 | |
---|
7782 | |
---|
7783 | |
---|
7784 | |
---|
7785 | |
---|
7786 | |
---|
7787 | |
---|
7788 | |
---|
7789 | |
---|
7790 | |
---|
7791 | |
---|
7792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build with symbols" >&5 |
---|
7793 | $as_echo_n "checking for build with symbols... " >&6; } |
---|
7794 | # Check whether --enable-symbols was given. |
---|
7795 | if test "${enable_symbols+set}" = set; then : |
---|
7796 | enableval=$enable_symbols; tcl_ok=$enableval |
---|
7797 | else |
---|
7798 | tcl_ok=no |
---|
7799 | fi |
---|
7800 | |
---|
7801 | # FIXME: Currently, LDFLAGS_DEFAULT is not used, it should work like CFLAGS_DEFAULT. |
---|
7802 | if test "$tcl_ok" = "no"; then |
---|
7803 | CFLAGS_DEFAULT='$(CFLAGS_OPTIMIZE)' |
---|
7804 | LDFLAGS_DEFAULT='$(LDFLAGS_OPTIMIZE)' |
---|
7805 | DBGX="" |
---|
7806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
7807 | $as_echo "no" >&6; } |
---|
7808 | else |
---|
7809 | CFLAGS_DEFAULT='$(CFLAGS_DEBUG)' |
---|
7810 | LDFLAGS_DEFAULT='$(LDFLAGS_DEBUG)' |
---|
7811 | DBGX=g |
---|
7812 | if test "$tcl_ok" = "yes"; then |
---|
7813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (standard debugging)" >&5 |
---|
7814 | $as_echo "yes (standard debugging)" >&6; } |
---|
7815 | fi |
---|
7816 | fi |
---|
7817 | |
---|
7818 | |
---|
7819 | |
---|
7820 | if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then |
---|
7821 | $as_echo "#define TCL_MEM_DEBUG 1" >>confdefs.h |
---|
7822 | |
---|
7823 | fi |
---|
7824 | |
---|
7825 | if test "$tcl_ok" = "compile" -o "$tcl_ok" = "all"; then |
---|
7826 | $as_echo "#define TCL_COMPILE_DEBUG 1" >>confdefs.h |
---|
7827 | |
---|
7828 | $as_echo "#define TCL_COMPILE_STATS 1" >>confdefs.h |
---|
7829 | |
---|
7830 | fi |
---|
7831 | |
---|
7832 | if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then |
---|
7833 | if test "$tcl_ok" = "all"; then |
---|
7834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled symbols mem compile debugging" >&5 |
---|
7835 | $as_echo "enabled symbols mem compile debugging" >&6; } |
---|
7836 | else |
---|
7837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled $tcl_ok debugging" >&5 |
---|
7838 | $as_echo "enabled $tcl_ok debugging" >&6; } |
---|
7839 | fi |
---|
7840 | fi |
---|
7841 | |
---|
7842 | |
---|
7843 | |
---|
7844 | |
---|
7845 | |
---|
7846 | |
---|
7847 | |
---|
7848 | |
---|
7849 | |
---|
7850 | MAKE=${make_command} |
---|
7851 | |
---|
7852 | |
---|
7853 | |
---|
7854 | |
---|
7855 | |
---|
7856 | |
---|
7857 | |
---|
7858 | |
---|
7859 | |
---|
7860 | |
---|
7861 | |
---|
7862 | |
---|
7863 | |
---|
7864 | |
---|
7865 | |
---|
7866 | |
---|
7867 | |
---|
7868 | |
---|
7869 | |
---|
7870 | |
---|
7871 | |
---|
7872 | |
---|
7873 | |
---|
7874 | |
---|
7875 | |
---|
7876 | |
---|
7877 | |
---|
7878 | |
---|
7879 | |
---|
7880 | |
---|
7881 | |
---|
7882 | |
---|
7883 | |
---|
7884 | |
---|
7885 | |
---|
7886 | |
---|
7887 | |
---|
7888 | |
---|
7889 | |
---|
7890 | |
---|
7891 | |
---|
7892 | |
---|
7893 | |
---|
7894 | |
---|
7895 | |
---|
7896 | |
---|
7897 | |
---|
7898 | |
---|
7899 | |
---|
7900 | |
---|
7901 | |
---|
7902 | ac_config_files="$ac_config_files DicomToVtk/Makefile DicomToVtk/pkgIndex.tcl DxToVtk/Makefile DxToVtk/pkgIndex.tcl Makefile PdbToVtk/Makefile PdbToVtk/pkgIndex.tcl builder/Makefile builder/pkgIndex.tcl builder/scripts/Makefile diffview/Makefile diffview/pkgIndex.tcl hotspot/Makefile hotspot/pkgIndex.tcl listbox/Makefile listbox/pkgIndex.tcl objects/Makefile p2p/Makefile placard/Makefile placard/pkgIndex.tcl readpoints/Makefile readpoints/pkgIndex.tcl runner/Makefile runner/pkgIndex.tcl runner/scripts/Makefile squeezer/Makefile squeezer/pkgIndex.tcl system/Makefile system/pkgIndex.tcl tester/Makefile tester/pkgIndex.tcl tester/scripts/Makefile" |
---|
7903 | |
---|
7904 | cat >confcache <<\_ACEOF |
---|
7905 | # This file is a shell script that caches the results of configure |
---|
7906 | # tests run on this system so they can be shared between configure |
---|
7907 | # scripts and configure runs, see configure's option --config-cache. |
---|
7908 | # It is not useful on other systems. If it contains results you don't |
---|
7909 | # want to keep, you may remove or edit it. |
---|
7910 | # |
---|
7911 | # config.status only pays attention to the cache file if you give it |
---|
7912 | # the --recheck option to rerun configure. |
---|
7913 | # |
---|
7914 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
7915 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
7916 | # following values. |
---|
7917 | |
---|
7918 | _ACEOF |
---|
7919 | |
---|
7920 | # The following way of writing the cache mishandles newlines in values, |
---|
7921 | # but we know of no workaround that is simple, portable, and efficient. |
---|
7922 | # So, we kill variables containing newlines. |
---|
7923 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
7924 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
7925 | ( |
---|
7926 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
7927 | eval ac_val=\$$ac_var |
---|
7928 | case $ac_val in #( |
---|
7929 | *${as_nl}*) |
---|
7930 | case $ac_var in #( |
---|
7931 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
7932 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
7933 | esac |
---|
7934 | case $ac_var in #( |
---|
7935 | _ | IFS | as_nl) ;; #( |
---|
7936 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
7937 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
7938 | esac ;; |
---|
7939 | esac |
---|
7940 | done |
---|
7941 | |
---|
7942 | (set) 2>&1 | |
---|
7943 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
7944 | *${as_nl}ac_space=\ *) |
---|
7945 | # `set' does not quote correctly, so add quotes: double-quote |
---|
7946 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
---|
7947 | sed -n \ |
---|
7948 | "s/'/'\\\\''/g; |
---|
7949 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
7950 | ;; #( |
---|
7951 | *) |
---|
7952 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
7953 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
7954 | ;; |
---|
7955 | esac | |
---|
7956 | sort |
---|
7957 | ) | |
---|
7958 | sed ' |
---|
7959 | /^ac_cv_env_/b end |
---|
7960 | t clear |
---|
7961 | :clear |
---|
7962 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
7963 | t end |
---|
7964 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
7965 | :end' >>confcache |
---|
7966 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
7967 | if test -w "$cache_file"; then |
---|
7968 | if test "x$cache_file" != "x/dev/null"; then |
---|
7969 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
---|
7970 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
---|
7971 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
---|
7972 | cat confcache >"$cache_file" |
---|
7973 | else |
---|
7974 | case $cache_file in #( |
---|
7975 | */* | ?:*) |
---|
7976 | mv -f confcache "$cache_file"$$ && |
---|
7977 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
---|
7978 | *) |
---|
7979 | mv -f confcache "$cache_file" ;; |
---|
7980 | esac |
---|
7981 | fi |
---|
7982 | fi |
---|
7983 | else |
---|
7984 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
---|
7985 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
7986 | fi |
---|
7987 | fi |
---|
7988 | rm -f confcache |
---|
7989 | |
---|
7990 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
7991 | # Let make expand exec_prefix. |
---|
7992 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
7993 | |
---|
7994 | DEFS=-DHAVE_CONFIG_H |
---|
7995 | |
---|
7996 | ac_libobjs= |
---|
7997 | ac_ltlibobjs= |
---|
7998 | U= |
---|
7999 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
8000 | # 1. Remove the extension, and $U if already installed. |
---|
8001 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
8002 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
---|
8003 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
8004 | # will be set to the directory where LIBOBJS objects are built. |
---|
8005 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
8006 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
8007 | done |
---|
8008 | LIBOBJS=$ac_libobjs |
---|
8009 | |
---|
8010 | LTLIBOBJS=$ac_ltlibobjs |
---|
8011 | |
---|
8012 | |
---|
8013 | |
---|
8014 | |
---|
8015 | : "${CONFIG_STATUS=./config.status}" |
---|
8016 | ac_write_fail=0 |
---|
8017 | ac_clean_files_save=$ac_clean_files |
---|
8018 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
8019 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
---|
8020 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
8021 | as_write_fail=0 |
---|
8022 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
---|
8023 | #! $SHELL |
---|
8024 | # Generated by $as_me. |
---|
8025 | # Run this file to recreate the current configuration. |
---|
8026 | # Compiler output produced by configure, useful for debugging |
---|
8027 | # configure, is in config.log if it exists. |
---|
8028 | |
---|
8029 | debug=false |
---|
8030 | ac_cs_recheck=false |
---|
8031 | ac_cs_silent=false |
---|
8032 | |
---|
8033 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
8034 | export SHELL |
---|
8035 | _ASEOF |
---|
8036 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
---|
8037 | ## -------------------- ## |
---|
8038 | ## M4sh Initialization. ## |
---|
8039 | ## -------------------- ## |
---|
8040 | |
---|
8041 | # Be more Bourne compatible |
---|
8042 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
8043 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
8044 | emulate sh |
---|
8045 | NULLCMD=: |
---|
8046 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
8047 | # is contrary to our usage. Disable this feature. |
---|
8048 | alias -g '${1+"$@"}'='"$@"' |
---|
8049 | setopt NO_GLOB_SUBST |
---|
8050 | else |
---|
8051 | case `(set -o) 2>/dev/null` in #( |
---|
8052 | *posix*) : |
---|
8053 | set -o posix ;; #( |
---|
8054 | *) : |
---|
8055 | ;; |
---|
8056 | esac |
---|
8057 | fi |
---|
8058 | |
---|
8059 | |
---|
8060 | as_nl=' |
---|
8061 | ' |
---|
8062 | export as_nl |
---|
8063 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
8064 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
8065 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
8066 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
8067 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
8068 | # but without wasting forks for bash or zsh. |
---|
8069 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
8070 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
8071 | as_echo='print -r --' |
---|
8072 | as_echo_n='print -rn --' |
---|
8073 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
8074 | as_echo='printf %s\n' |
---|
8075 | as_echo_n='printf %s' |
---|
8076 | else |
---|
8077 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
8078 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
8079 | as_echo_n='/usr/ucb/echo -n' |
---|
8080 | else |
---|
8081 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
8082 | as_echo_n_body='eval |
---|
8083 | arg=$1; |
---|
8084 | case $arg in #( |
---|
8085 | *"$as_nl"*) |
---|
8086 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
8087 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
8088 | esac; |
---|
8089 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
8090 | ' |
---|
8091 | export as_echo_n_body |
---|
8092 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
8093 | fi |
---|
8094 | export as_echo_body |
---|
8095 | as_echo='sh -c $as_echo_body as_echo' |
---|
8096 | fi |
---|
8097 | |
---|
8098 | # The user is always right. |
---|
8099 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
8100 | PATH_SEPARATOR=: |
---|
8101 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
8102 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
8103 | PATH_SEPARATOR=';' |
---|
8104 | } |
---|
8105 | fi |
---|
8106 | |
---|
8107 | |
---|
8108 | # IFS |
---|
8109 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
8110 | # there to prevent editors from complaining about space-tab. |
---|
8111 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
8112 | # splitting by setting IFS to empty value.) |
---|
8113 | IFS=" "" $as_nl" |
---|
8114 | |
---|
8115 | # Find who we are. Look in the path if we contain no directory separator. |
---|
8116 | as_myself= |
---|
8117 | case $0 in #(( |
---|
8118 | *[\\/]* ) as_myself=$0 ;; |
---|
8119 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8120 | for as_dir in $PATH |
---|
8121 | do |
---|
8122 | IFS=$as_save_IFS |
---|
8123 | test -z "$as_dir" && as_dir=. |
---|
8124 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
8125 | done |
---|
8126 | IFS=$as_save_IFS |
---|
8127 | |
---|
8128 | ;; |
---|
8129 | esac |
---|
8130 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
8131 | # in which case we are not to be found in the path. |
---|
8132 | if test "x$as_myself" = x; then |
---|
8133 | as_myself=$0 |
---|
8134 | fi |
---|
8135 | if test ! -f "$as_myself"; then |
---|
8136 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
8137 | exit 1 |
---|
8138 | fi |
---|
8139 | |
---|
8140 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
8141 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
8142 | # suppresses any "Segmentation fault" message there. '((' could |
---|
8143 | # trigger a bug in pdksh 5.2.14. |
---|
8144 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
8145 | do eval test x\${$as_var+set} = xset \ |
---|
8146 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
8147 | done |
---|
8148 | PS1='$ ' |
---|
8149 | PS2='> ' |
---|
8150 | PS4='+ ' |
---|
8151 | |
---|
8152 | # NLS nuisances. |
---|
8153 | LC_ALL=C |
---|
8154 | export LC_ALL |
---|
8155 | LANGUAGE=C |
---|
8156 | export LANGUAGE |
---|
8157 | |
---|
8158 | # CDPATH. |
---|
8159 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
8160 | |
---|
8161 | |
---|
8162 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
8163 | # ---------------------------------------- |
---|
8164 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
8165 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
8166 | # script with STATUS, using 1 if that was 0. |
---|
8167 | as_fn_error () |
---|
8168 | { |
---|
8169 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
8170 | if test "$4"; then |
---|
8171 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
8172 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
8173 | fi |
---|
8174 | $as_echo "$as_me: error: $2" >&2 |
---|
8175 | as_fn_exit $as_status |
---|
8176 | } # as_fn_error |
---|
8177 | |
---|
8178 | |
---|
8179 | # as_fn_set_status STATUS |
---|
8180 | # ----------------------- |
---|
8181 | # Set $? to STATUS, without forking. |
---|
8182 | as_fn_set_status () |
---|
8183 | { |
---|
8184 | return $1 |
---|
8185 | } # as_fn_set_status |
---|
8186 | |
---|
8187 | # as_fn_exit STATUS |
---|
8188 | # ----------------- |
---|
8189 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
8190 | as_fn_exit () |
---|
8191 | { |
---|
8192 | set +e |
---|
8193 | as_fn_set_status $1 |
---|
8194 | exit $1 |
---|
8195 | } # as_fn_exit |
---|
8196 | |
---|
8197 | # as_fn_unset VAR |
---|
8198 | # --------------- |
---|
8199 | # Portably unset VAR. |
---|
8200 | as_fn_unset () |
---|
8201 | { |
---|
8202 | { eval $1=; unset $1;} |
---|
8203 | } |
---|
8204 | as_unset=as_fn_unset |
---|
8205 | # as_fn_append VAR VALUE |
---|
8206 | # ---------------------- |
---|
8207 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
8208 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
8209 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
8210 | # implementations. |
---|
8211 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
8212 | eval 'as_fn_append () |
---|
8213 | { |
---|
8214 | eval $1+=\$2 |
---|
8215 | }' |
---|
8216 | else |
---|
8217 | as_fn_append () |
---|
8218 | { |
---|
8219 | eval $1=\$$1\$2 |
---|
8220 | } |
---|
8221 | fi # as_fn_append |
---|
8222 | |
---|
8223 | # as_fn_arith ARG... |
---|
8224 | # ------------------ |
---|
8225 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
8226 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
8227 | # must be portable across $(()) and expr. |
---|
8228 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
8229 | eval 'as_fn_arith () |
---|
8230 | { |
---|
8231 | as_val=$(( $* )) |
---|
8232 | }' |
---|
8233 | else |
---|
8234 | as_fn_arith () |
---|
8235 | { |
---|
8236 | as_val=`expr "$@" || test $? -eq 1` |
---|
8237 | } |
---|
8238 | fi # as_fn_arith |
---|
8239 | |
---|
8240 | |
---|
8241 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
8242 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
8243 | as_expr=expr |
---|
8244 | else |
---|
8245 | as_expr=false |
---|
8246 | fi |
---|
8247 | |
---|
8248 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
8249 | as_basename=basename |
---|
8250 | else |
---|
8251 | as_basename=false |
---|
8252 | fi |
---|
8253 | |
---|
8254 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
8255 | as_dirname=dirname |
---|
8256 | else |
---|
8257 | as_dirname=false |
---|
8258 | fi |
---|
8259 | |
---|
8260 | as_me=`$as_basename -- "$0" || |
---|
8261 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
8262 | X"$0" : 'X\(//\)$' \| \ |
---|
8263 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
8264 | $as_echo X/"$0" | |
---|
8265 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
8266 | s//\1/ |
---|
8267 | q |
---|
8268 | } |
---|
8269 | /^X\/\(\/\/\)$/{ |
---|
8270 | s//\1/ |
---|
8271 | q |
---|
8272 | } |
---|
8273 | /^X\/\(\/\).*/{ |
---|
8274 | s//\1/ |
---|
8275 | q |
---|
8276 | } |
---|
8277 | s/.*/./; q'` |
---|
8278 | |
---|
8279 | # Avoid depending upon Character Ranges. |
---|
8280 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
8281 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
8282 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
8283 | as_cr_digits='0123456789' |
---|
8284 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
8285 | |
---|
8286 | ECHO_C= ECHO_N= ECHO_T= |
---|
8287 | case `echo -n x` in #((((( |
---|
8288 | -n*) |
---|
8289 | case `echo 'xy\c'` in |
---|
8290 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
8291 | xy) ECHO_C='\c';; |
---|
8292 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
8293 | ECHO_T=' ';; |
---|
8294 | esac;; |
---|
8295 | *) |
---|
8296 | ECHO_N='-n';; |
---|
8297 | esac |
---|
8298 | |
---|
8299 | rm -f conf$$ conf$$.exe conf$$.file |
---|
8300 | if test -d conf$$.dir; then |
---|
8301 | rm -f conf$$.dir/conf$$.file |
---|
8302 | else |
---|
8303 | rm -f conf$$.dir |
---|
8304 | mkdir conf$$.dir 2>/dev/null |
---|
8305 | fi |
---|
8306 | if (echo >conf$$.file) 2>/dev/null; then |
---|
8307 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
8308 | as_ln_s='ln -s' |
---|
8309 | # ... but there are two gotchas: |
---|
8310 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
8311 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
8312 | # In both cases, we have to default to `cp -pR'. |
---|
8313 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
8314 | as_ln_s='cp -pR' |
---|
8315 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
8316 | as_ln_s=ln |
---|
8317 | else |
---|
8318 | as_ln_s='cp -pR' |
---|
8319 | fi |
---|
8320 | else |
---|
8321 | as_ln_s='cp -pR' |
---|
8322 | fi |
---|
8323 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
8324 | rmdir conf$$.dir 2>/dev/null |
---|
8325 | |
---|
8326 | |
---|
8327 | # as_fn_mkdir_p |
---|
8328 | # ------------- |
---|
8329 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
8330 | as_fn_mkdir_p () |
---|
8331 | { |
---|
8332 | |
---|
8333 | case $as_dir in #( |
---|
8334 | -*) as_dir=./$as_dir;; |
---|
8335 | esac |
---|
8336 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
8337 | as_dirs= |
---|
8338 | while :; do |
---|
8339 | case $as_dir in #( |
---|
8340 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
8341 | *) as_qdir=$as_dir;; |
---|
8342 | esac |
---|
8343 | as_dirs="'$as_qdir' $as_dirs" |
---|
8344 | as_dir=`$as_dirname -- "$as_dir" || |
---|
8345 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8346 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
8347 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
8348 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
8349 | $as_echo X"$as_dir" | |
---|
8350 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
8351 | s//\1/ |
---|
8352 | q |
---|
8353 | } |
---|
8354 | /^X\(\/\/\)[^/].*/{ |
---|
8355 | s//\1/ |
---|
8356 | q |
---|
8357 | } |
---|
8358 | /^X\(\/\/\)$/{ |
---|
8359 | s//\1/ |
---|
8360 | q |
---|
8361 | } |
---|
8362 | /^X\(\/\).*/{ |
---|
8363 | s//\1/ |
---|
8364 | q |
---|
8365 | } |
---|
8366 | s/.*/./; q'` |
---|
8367 | test -d "$as_dir" && break |
---|
8368 | done |
---|
8369 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
8370 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
8371 | |
---|
8372 | |
---|
8373 | } # as_fn_mkdir_p |
---|
8374 | if mkdir -p . 2>/dev/null; then |
---|
8375 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
8376 | else |
---|
8377 | test -d ./-p && rmdir ./-p |
---|
8378 | as_mkdir_p=false |
---|
8379 | fi |
---|
8380 | |
---|
8381 | |
---|
8382 | # as_fn_executable_p FILE |
---|
8383 | # ----------------------- |
---|
8384 | # Test if FILE is an executable regular file. |
---|
8385 | as_fn_executable_p () |
---|
8386 | { |
---|
8387 | test -f "$1" && test -x "$1" |
---|
8388 | } # as_fn_executable_p |
---|
8389 | as_test_x='test -x' |
---|
8390 | as_executable_p=as_fn_executable_p |
---|
8391 | |
---|
8392 | # Sed expression to map a string onto a valid CPP name. |
---|
8393 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
8394 | |
---|
8395 | # Sed expression to map a string onto a valid variable name. |
---|
8396 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
8397 | |
---|
8398 | |
---|
8399 | exec 6>&1 |
---|
8400 | ## ----------------------------------- ## |
---|
8401 | ## Main body of $CONFIG_STATUS script. ## |
---|
8402 | ## ----------------------------------- ## |
---|
8403 | _ASEOF |
---|
8404 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
---|
8405 | |
---|
8406 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8407 | # Save the log message, to keep $0 and so on meaningful, and to |
---|
8408 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
8409 | # values after options handling. |
---|
8410 | ac_log=" |
---|
8411 | This file was extended by Rappture $as_me 1.5, which was |
---|
8412 | generated by GNU Autoconf 2.69. Invocation command line was |
---|
8413 | |
---|
8414 | CONFIG_FILES = $CONFIG_FILES |
---|
8415 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
8416 | CONFIG_LINKS = $CONFIG_LINKS |
---|
8417 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
8418 | $ $0 $@ |
---|
8419 | |
---|
8420 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
8421 | " |
---|
8422 | |
---|
8423 | _ACEOF |
---|
8424 | |
---|
8425 | case $ac_config_files in *" |
---|
8426 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
---|
8427 | esac |
---|
8428 | |
---|
8429 | case $ac_config_headers in *" |
---|
8430 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
---|
8431 | esac |
---|
8432 | |
---|
8433 | |
---|
8434 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
8435 | # Files that config.status was made for. |
---|
8436 | config_files="$ac_config_files" |
---|
8437 | config_headers="$ac_config_headers" |
---|
8438 | |
---|
8439 | _ACEOF |
---|
8440 | |
---|
8441 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8442 | ac_cs_usage="\ |
---|
8443 | \`$as_me' instantiates files and other configuration actions |
---|
8444 | from templates according to the current configuration. Unless the files |
---|
8445 | and actions are specified as TAGs, all are instantiated by default. |
---|
8446 | |
---|
8447 | Usage: $0 [OPTION]... [TAG]... |
---|
8448 | |
---|
8449 | -h, --help print this help, then exit |
---|
8450 | -V, --version print version number and configuration settings, then exit |
---|
8451 | --config print configuration, then exit |
---|
8452 | -q, --quiet, --silent |
---|
8453 | do not print progress messages |
---|
8454 | -d, --debug don't remove temporary files |
---|
8455 | --recheck update $as_me by reconfiguring in the same conditions |
---|
8456 | --file=FILE[:TEMPLATE] |
---|
8457 | instantiate the configuration file FILE |
---|
8458 | --header=FILE[:TEMPLATE] |
---|
8459 | instantiate the configuration header FILE |
---|
8460 | |
---|
8461 | Configuration files: |
---|
8462 | $config_files |
---|
8463 | |
---|
8464 | Configuration headers: |
---|
8465 | $config_headers |
---|
8466 | |
---|
8467 | Report bugs to <rappture@nanohub.org>." |
---|
8468 | |
---|
8469 | _ACEOF |
---|
8470 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
8471 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
---|
8472 | ac_cs_version="\\ |
---|
8473 | Rappture config.status 1.5 |
---|
8474 | configured by $0, generated by GNU Autoconf 2.69, |
---|
8475 | with options \\"\$ac_cs_config\\" |
---|
8476 | |
---|
8477 | Copyright (C) 2012 Free Software Foundation, Inc. |
---|
8478 | This config.status script is free software; the Free Software Foundation |
---|
8479 | gives unlimited permission to copy, distribute and modify it." |
---|
8480 | |
---|
8481 | ac_pwd='$ac_pwd' |
---|
8482 | srcdir='$srcdir' |
---|
8483 | INSTALL='$INSTALL' |
---|
8484 | MKDIR_P='$MKDIR_P' |
---|
8485 | test -n "\$AWK" || AWK=awk |
---|
8486 | _ACEOF |
---|
8487 | |
---|
8488 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8489 | # The default lists apply if the user does not specify any file. |
---|
8490 | ac_need_defaults=: |
---|
8491 | while test $# != 0 |
---|
8492 | do |
---|
8493 | case $1 in |
---|
8494 | --*=?*) |
---|
8495 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
8496 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
8497 | ac_shift=: |
---|
8498 | ;; |
---|
8499 | --*=) |
---|
8500 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
8501 | ac_optarg= |
---|
8502 | ac_shift=: |
---|
8503 | ;; |
---|
8504 | *) |
---|
8505 | ac_option=$1 |
---|
8506 | ac_optarg=$2 |
---|
8507 | ac_shift=shift |
---|
8508 | ;; |
---|
8509 | esac |
---|
8510 | |
---|
8511 | case $ac_option in |
---|
8512 | # Handling of the options. |
---|
8513 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
8514 | ac_cs_recheck=: ;; |
---|
8515 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
8516 | $as_echo "$ac_cs_version"; exit ;; |
---|
8517 | --config | --confi | --conf | --con | --co | --c ) |
---|
8518 | $as_echo "$ac_cs_config"; exit ;; |
---|
8519 | --debug | --debu | --deb | --de | --d | -d ) |
---|
8520 | debug=: ;; |
---|
8521 | --file | --fil | --fi | --f ) |
---|
8522 | $ac_shift |
---|
8523 | case $ac_optarg in |
---|
8524 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
8525 | '') as_fn_error $? "missing file argument" ;; |
---|
8526 | esac |
---|
8527 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
---|
8528 | ac_need_defaults=false;; |
---|
8529 | --header | --heade | --head | --hea ) |
---|
8530 | $ac_shift |
---|
8531 | case $ac_optarg in |
---|
8532 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
8533 | esac |
---|
8534 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
---|
8535 | ac_need_defaults=false;; |
---|
8536 | --he | --h) |
---|
8537 | # Conflict between --help and --header |
---|
8538 | as_fn_error $? "ambiguous option: \`$1' |
---|
8539 | Try \`$0 --help' for more information.";; |
---|
8540 | --help | --hel | -h ) |
---|
8541 | $as_echo "$ac_cs_usage"; exit ;; |
---|
8542 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
8543 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
8544 | ac_cs_silent=: ;; |
---|
8545 | |
---|
8546 | # This is an error. |
---|
8547 | -*) as_fn_error $? "unrecognized option: \`$1' |
---|
8548 | Try \`$0 --help' for more information." ;; |
---|
8549 | |
---|
8550 | *) as_fn_append ac_config_targets " $1" |
---|
8551 | ac_need_defaults=false ;; |
---|
8552 | |
---|
8553 | esac |
---|
8554 | shift |
---|
8555 | done |
---|
8556 | |
---|
8557 | ac_configure_extra_args= |
---|
8558 | |
---|
8559 | if $ac_cs_silent; then |
---|
8560 | exec 6>/dev/null |
---|
8561 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
8562 | fi |
---|
8563 | |
---|
8564 | _ACEOF |
---|
8565 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
8566 | if \$ac_cs_recheck; then |
---|
8567 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
8568 | shift |
---|
8569 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
---|
8570 | CONFIG_SHELL='$SHELL' |
---|
8571 | export CONFIG_SHELL |
---|
8572 | exec "\$@" |
---|
8573 | fi |
---|
8574 | |
---|
8575 | _ACEOF |
---|
8576 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8577 | exec 5>>config.log |
---|
8578 | { |
---|
8579 | echo |
---|
8580 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
8581 | ## Running $as_me. ## |
---|
8582 | _ASBOX |
---|
8583 | $as_echo "$ac_log" |
---|
8584 | } >&5 |
---|
8585 | |
---|
8586 | _ACEOF |
---|
8587 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
8588 | _ACEOF |
---|
8589 | |
---|
8590 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8591 | |
---|
8592 | # Handling of arguments. |
---|
8593 | for ac_config_target in $ac_config_targets |
---|
8594 | do |
---|
8595 | case $ac_config_target in |
---|
8596 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
8597 | "DicomToVtk/Makefile") CONFIG_FILES="$CONFIG_FILES DicomToVtk/Makefile" ;; |
---|
8598 | "DicomToVtk/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES DicomToVtk/pkgIndex.tcl" ;; |
---|
8599 | "DxToVtk/Makefile") CONFIG_FILES="$CONFIG_FILES DxToVtk/Makefile" ;; |
---|
8600 | "DxToVtk/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES DxToVtk/pkgIndex.tcl" ;; |
---|
8601 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
8602 | "PdbToVtk/Makefile") CONFIG_FILES="$CONFIG_FILES PdbToVtk/Makefile" ;; |
---|
8603 | "PdbToVtk/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES PdbToVtk/pkgIndex.tcl" ;; |
---|
8604 | "builder/Makefile") CONFIG_FILES="$CONFIG_FILES builder/Makefile" ;; |
---|
8605 | "builder/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES builder/pkgIndex.tcl" ;; |
---|
8606 | "builder/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES builder/scripts/Makefile" ;; |
---|
8607 | "diffview/Makefile") CONFIG_FILES="$CONFIG_FILES diffview/Makefile" ;; |
---|
8608 | "diffview/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES diffview/pkgIndex.tcl" ;; |
---|
8609 | "hotspot/Makefile") CONFIG_FILES="$CONFIG_FILES hotspot/Makefile" ;; |
---|
8610 | "hotspot/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES hotspot/pkgIndex.tcl" ;; |
---|
8611 | "listbox/Makefile") CONFIG_FILES="$CONFIG_FILES listbox/Makefile" ;; |
---|
8612 | "listbox/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES listbox/pkgIndex.tcl" ;; |
---|
8613 | "objects/Makefile") CONFIG_FILES="$CONFIG_FILES objects/Makefile" ;; |
---|
8614 | "p2p/Makefile") CONFIG_FILES="$CONFIG_FILES p2p/Makefile" ;; |
---|
8615 | "placard/Makefile") CONFIG_FILES="$CONFIG_FILES placard/Makefile" ;; |
---|
8616 | "placard/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES placard/pkgIndex.tcl" ;; |
---|
8617 | "readpoints/Makefile") CONFIG_FILES="$CONFIG_FILES readpoints/Makefile" ;; |
---|
8618 | "readpoints/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES readpoints/pkgIndex.tcl" ;; |
---|
8619 | "runner/Makefile") CONFIG_FILES="$CONFIG_FILES runner/Makefile" ;; |
---|
8620 | "runner/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES runner/pkgIndex.tcl" ;; |
---|
8621 | "runner/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES runner/scripts/Makefile" ;; |
---|
8622 | "squeezer/Makefile") CONFIG_FILES="$CONFIG_FILES squeezer/Makefile" ;; |
---|
8623 | "squeezer/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES squeezer/pkgIndex.tcl" ;; |
---|
8624 | "system/Makefile") CONFIG_FILES="$CONFIG_FILES system/Makefile" ;; |
---|
8625 | "system/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES system/pkgIndex.tcl" ;; |
---|
8626 | "tester/Makefile") CONFIG_FILES="$CONFIG_FILES tester/Makefile" ;; |
---|
8627 | "tester/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES tester/pkgIndex.tcl" ;; |
---|
8628 | "tester/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tester/scripts/Makefile" ;; |
---|
8629 | |
---|
8630 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
---|
8631 | esac |
---|
8632 | done |
---|
8633 | |
---|
8634 | |
---|
8635 | # If the user did not use the arguments to specify the items to instantiate, |
---|
8636 | # then the envvar interface is used. Set only those that are not. |
---|
8637 | # We use the long form for the default assignment because of an extremely |
---|
8638 | # bizarre bug on SunOS 4.1.3. |
---|
8639 | if $ac_need_defaults; then |
---|
8640 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
8641 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
8642 | fi |
---|
8643 | |
---|
8644 | # Have a temporary directory for convenience. Make it in the build tree |
---|
8645 | # simply because there is no reason against having it here, and in addition, |
---|
8646 | # creating and moving files from /tmp can sometimes cause problems. |
---|
8647 | # Hook for its removal unless debugging. |
---|
8648 | # Note that there is a small window in which the directory will not be cleaned: |
---|
8649 | # after its creation but before its name has been assigned to `$tmp'. |
---|
8650 | $debug || |
---|
8651 | { |
---|
8652 | tmp= ac_tmp= |
---|
8653 | trap 'exit_status=$? |
---|
8654 | : "${ac_tmp:=$tmp}" |
---|
8655 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
---|
8656 | ' 0 |
---|
8657 | trap 'as_fn_exit 1' 1 2 13 15 |
---|
8658 | } |
---|
8659 | # Create a (secure) tmp directory for tmp files. |
---|
8660 | |
---|
8661 | { |
---|
8662 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
8663 | test -d "$tmp" |
---|
8664 | } || |
---|
8665 | { |
---|
8666 | tmp=./conf$$-$RANDOM |
---|
8667 | (umask 077 && mkdir "$tmp") |
---|
8668 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
---|
8669 | ac_tmp=$tmp |
---|
8670 | |
---|
8671 | # Set up the scripts for CONFIG_FILES section. |
---|
8672 | # No need to generate them if there are no CONFIG_FILES. |
---|
8673 | # This happens for instance with `./config.status config.h'. |
---|
8674 | if test -n "$CONFIG_FILES"; then |
---|
8675 | |
---|
8676 | |
---|
8677 | ac_cr=`echo X | tr X '\015'` |
---|
8678 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
---|
8679 | # But we know of no other shell where ac_cr would be empty at this |
---|
8680 | # point, so we can use a bashism as a fallback. |
---|
8681 | if test "x$ac_cr" = x; then |
---|
8682 | eval ac_cr=\$\'\\r\' |
---|
8683 | fi |
---|
8684 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
---|
8685 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
---|
8686 | ac_cs_awk_cr='\\r' |
---|
8687 | else |
---|
8688 | ac_cs_awk_cr=$ac_cr |
---|
8689 | fi |
---|
8690 | |
---|
8691 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
---|
8692 | _ACEOF |
---|
8693 | |
---|
8694 | |
---|
8695 | { |
---|
8696 | echo "cat >conf$$subs.awk <<_ACEOF" && |
---|
8697 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
---|
8698 | echo "_ACEOF" |
---|
8699 | } >conf$$subs.sh || |
---|
8700 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
8701 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
---|
8702 | ac_delim='%!_!# ' |
---|
8703 | for ac_last_try in false false false false false :; do |
---|
8704 | . ./conf$$subs.sh || |
---|
8705 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
8706 | |
---|
8707 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
---|
8708 | if test $ac_delim_n = $ac_delim_num; then |
---|
8709 | break |
---|
8710 | elif $ac_last_try; then |
---|
8711 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
8712 | else |
---|
8713 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
8714 | fi |
---|
8715 | done |
---|
8716 | rm -f conf$$subs.sh |
---|
8717 | |
---|
8718 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
8719 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
---|
8720 | _ACEOF |
---|
8721 | sed -n ' |
---|
8722 | h |
---|
8723 | s/^/S["/; s/!.*/"]=/ |
---|
8724 | p |
---|
8725 | g |
---|
8726 | s/^[^!]*!// |
---|
8727 | :repl |
---|
8728 | t repl |
---|
8729 | s/'"$ac_delim"'$// |
---|
8730 | t delim |
---|
8731 | :nl |
---|
8732 | h |
---|
8733 | s/\(.\{148\}\)..*/\1/ |
---|
8734 | t more1 |
---|
8735 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
---|
8736 | p |
---|
8737 | n |
---|
8738 | b repl |
---|
8739 | :more1 |
---|
8740 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
8741 | p |
---|
8742 | g |
---|
8743 | s/.\{148\}// |
---|
8744 | t nl |
---|
8745 | :delim |
---|
8746 | h |
---|
8747 | s/\(.\{148\}\)..*/\1/ |
---|
8748 | t more2 |
---|
8749 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
---|
8750 | p |
---|
8751 | b |
---|
8752 | :more2 |
---|
8753 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
8754 | p |
---|
8755 | g |
---|
8756 | s/.\{148\}// |
---|
8757 | t delim |
---|
8758 | ' <conf$$subs.awk | sed ' |
---|
8759 | /^[^""]/{ |
---|
8760 | N |
---|
8761 | s/\n// |
---|
8762 | } |
---|
8763 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
8764 | rm -f conf$$subs.awk |
---|
8765 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
8766 | _ACAWK |
---|
8767 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
---|
8768 | for (key in S) S_is_set[key] = 1 |
---|
8769 | FS = "" |
---|
8770 | |
---|
8771 | } |
---|
8772 | { |
---|
8773 | line = $ 0 |
---|
8774 | nfields = split(line, field, "@") |
---|
8775 | substed = 0 |
---|
8776 | len = length(field[1]) |
---|
8777 | for (i = 2; i < nfields; i++) { |
---|
8778 | key = field[i] |
---|
8779 | keylen = length(key) |
---|
8780 | if (S_is_set[key]) { |
---|
8781 | value = S[key] |
---|
8782 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
---|
8783 | len += length(value) + length(field[++i]) |
---|
8784 | substed = 1 |
---|
8785 | } else |
---|
8786 | len += 1 + keylen |
---|
8787 | } |
---|
8788 | |
---|
8789 | print line |
---|
8790 | } |
---|
8791 | |
---|
8792 | _ACAWK |
---|
8793 | _ACEOF |
---|
8794 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8795 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
---|
8796 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
---|
8797 | else |
---|
8798 | cat |
---|
8799 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
---|
8800 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
---|
8801 | _ACEOF |
---|
8802 | |
---|
8803 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
---|
8804 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
---|
8805 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
8806 | # (actually we leave an empty line to preserve line numbers). |
---|
8807 | if test "x$srcdir" = x.; then |
---|
8808 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
---|
8809 | h |
---|
8810 | s/// |
---|
8811 | s/^/:/ |
---|
8812 | s/[ ]*$/:/ |
---|
8813 | s/:\$(srcdir):/:/g |
---|
8814 | s/:\${srcdir}:/:/g |
---|
8815 | s/:@srcdir@:/:/g |
---|
8816 | s/^:*// |
---|
8817 | s/:*$// |
---|
8818 | x |
---|
8819 | s/\(=[ ]*\).*/\1/ |
---|
8820 | G |
---|
8821 | s/\n// |
---|
8822 | s/^[^=]*=[ ]*$// |
---|
8823 | }' |
---|
8824 | fi |
---|
8825 | |
---|
8826 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8827 | fi # test -n "$CONFIG_FILES" |
---|
8828 | |
---|
8829 | # Set up the scripts for CONFIG_HEADERS section. |
---|
8830 | # No need to generate them if there are no CONFIG_HEADERS. |
---|
8831 | # This happens for instance with `./config.status Makefile'. |
---|
8832 | if test -n "$CONFIG_HEADERS"; then |
---|
8833 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
---|
8834 | BEGIN { |
---|
8835 | _ACEOF |
---|
8836 | |
---|
8837 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
---|
8838 | # here-document in config.status, that substitutes the proper values into |
---|
8839 | # config.h.in to produce config.h. |
---|
8840 | |
---|
8841 | # Create a delimiter string that does not exist in confdefs.h, to ease |
---|
8842 | # handling of long lines. |
---|
8843 | ac_delim='%!_!# ' |
---|
8844 | for ac_last_try in false false :; do |
---|
8845 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
---|
8846 | if test -z "$ac_tt"; then |
---|
8847 | break |
---|
8848 | elif $ac_last_try; then |
---|
8849 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
---|
8850 | else |
---|
8851 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
8852 | fi |
---|
8853 | done |
---|
8854 | |
---|
8855 | # For the awk script, D is an array of macro values keyed by name, |
---|
8856 | # likewise P contains macro parameters if any. Preserve backslash |
---|
8857 | # newline sequences. |
---|
8858 | |
---|
8859 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
---|
8860 | sed -n ' |
---|
8861 | s/.\{148\}/&'"$ac_delim"'/g |
---|
8862 | t rset |
---|
8863 | :rset |
---|
8864 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
---|
8865 | t def |
---|
8866 | d |
---|
8867 | :def |
---|
8868 | s/\\$// |
---|
8869 | t bsnl |
---|
8870 | s/["\\]/\\&/g |
---|
8871 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
8872 | D["\1"]=" \3"/p |
---|
8873 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
---|
8874 | d |
---|
8875 | :bsnl |
---|
8876 | s/["\\]/\\&/g |
---|
8877 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
8878 | D["\1"]=" \3\\\\\\n"\\/p |
---|
8879 | t cont |
---|
8880 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
---|
8881 | t cont |
---|
8882 | d |
---|
8883 | :cont |
---|
8884 | n |
---|
8885 | s/.\{148\}/&'"$ac_delim"'/g |
---|
8886 | t clear |
---|
8887 | :clear |
---|
8888 | s/\\$// |
---|
8889 | t bsnlc |
---|
8890 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
---|
8891 | d |
---|
8892 | :bsnlc |
---|
8893 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
---|
8894 | b cont |
---|
8895 | ' <confdefs.h | sed ' |
---|
8896 | s/'"$ac_delim"'/"\\\ |
---|
8897 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
8898 | |
---|
8899 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
8900 | for (key in D) D_is_set[key] = 1 |
---|
8901 | FS = "" |
---|
8902 | } |
---|
8903 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
---|
8904 | line = \$ 0 |
---|
8905 | split(line, arg, " ") |
---|
8906 | if (arg[1] == "#") { |
---|
8907 | defundef = arg[2] |
---|
8908 | mac1 = arg[3] |
---|
8909 | } else { |
---|
8910 | defundef = substr(arg[1], 2) |
---|
8911 | mac1 = arg[2] |
---|
8912 | } |
---|
8913 | split(mac1, mac2, "(") #) |
---|
8914 | macro = mac2[1] |
---|
8915 | prefix = substr(line, 1, index(line, defundef) - 1) |
---|
8916 | if (D_is_set[macro]) { |
---|
8917 | # Preserve the white space surrounding the "#". |
---|
8918 | print prefix "define", macro P[macro] D[macro] |
---|
8919 | next |
---|
8920 | } else { |
---|
8921 | # Replace #undef with comments. This is necessary, for example, |
---|
8922 | # in the case of _POSIX_SOURCE, which is predefined and required |
---|
8923 | # on some systems where configure will not decide to define it. |
---|
8924 | if (defundef == "undef") { |
---|
8925 | print "/*", prefix defundef, macro, "*/" |
---|
8926 | next |
---|
8927 | } |
---|
8928 | } |
---|
8929 | } |
---|
8930 | { print } |
---|
8931 | _ACAWK |
---|
8932 | _ACEOF |
---|
8933 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
8934 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
---|
8935 | fi # test -n "$CONFIG_HEADERS" |
---|
8936 | |
---|
8937 | |
---|
8938 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
---|
8939 | shift |
---|
8940 | for ac_tag |
---|
8941 | do |
---|
8942 | case $ac_tag in |
---|
8943 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
8944 | esac |
---|
8945 | case $ac_mode$ac_tag in |
---|
8946 | :[FHL]*:*);; |
---|
8947 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
---|
8948 | :[FH]-) ac_tag=-:-;; |
---|
8949 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
8950 | esac |
---|
8951 | ac_save_IFS=$IFS |
---|
8952 | IFS=: |
---|
8953 | set x $ac_tag |
---|
8954 | IFS=$ac_save_IFS |
---|
8955 | shift |
---|
8956 | ac_file=$1 |
---|
8957 | shift |
---|
8958 | |
---|
8959 | case $ac_mode in |
---|
8960 | :L) ac_source=$1;; |
---|
8961 | :[FH]) |
---|
8962 | ac_file_inputs= |
---|
8963 | for ac_f |
---|
8964 | do |
---|
8965 | case $ac_f in |
---|
8966 | -) ac_f="$ac_tmp/stdin";; |
---|
8967 | *) # Look for the file first in the build tree, then in the source tree |
---|
8968 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
8969 | # because $ac_f cannot contain `:'. |
---|
8970 | test -f "$ac_f" || |
---|
8971 | case $ac_f in |
---|
8972 | [\\/$]*) false;; |
---|
8973 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
8974 | esac || |
---|
8975 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
---|
8976 | esac |
---|
8977 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
---|
8978 | as_fn_append ac_file_inputs " '$ac_f'" |
---|
8979 | done |
---|
8980 | |
---|
8981 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
8982 | # use $as_me), people would be surprised to read: |
---|
8983 | # /* config.h. Generated by config.status. */ |
---|
8984 | configure_input='Generated from '` |
---|
8985 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
---|
8986 | `' by configure.' |
---|
8987 | if test x"$ac_file" != x-; then |
---|
8988 | configure_input="$ac_file. $configure_input" |
---|
8989 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
---|
8990 | $as_echo "$as_me: creating $ac_file" >&6;} |
---|
8991 | fi |
---|
8992 | # Neutralize special characters interpreted by sed in replacement strings. |
---|
8993 | case $configure_input in #( |
---|
8994 | *\&* | *\|* | *\\* ) |
---|
8995 | ac_sed_conf_input=`$as_echo "$configure_input" | |
---|
8996 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
---|
8997 | *) ac_sed_conf_input=$configure_input;; |
---|
8998 | esac |
---|
8999 | |
---|
9000 | case $ac_tag in |
---|
9001 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
---|
9002 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
---|
9003 | esac |
---|
9004 | ;; |
---|
9005 | esac |
---|
9006 | |
---|
9007 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
9008 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
9009 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
9010 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
9011 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
9012 | $as_echo X"$ac_file" | |
---|
9013 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
9014 | s//\1/ |
---|
9015 | q |
---|
9016 | } |
---|
9017 | /^X\(\/\/\)[^/].*/{ |
---|
9018 | s//\1/ |
---|
9019 | q |
---|
9020 | } |
---|
9021 | /^X\(\/\/\)$/{ |
---|
9022 | s//\1/ |
---|
9023 | q |
---|
9024 | } |
---|
9025 | /^X\(\/\).*/{ |
---|
9026 | s//\1/ |
---|
9027 | q |
---|
9028 | } |
---|
9029 | s/.*/./; q'` |
---|
9030 | as_dir="$ac_dir"; as_fn_mkdir_p |
---|
9031 | ac_builddir=. |
---|
9032 | |
---|
9033 | case "$ac_dir" in |
---|
9034 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
9035 | *) |
---|
9036 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
9037 | # A ".." for each directory in $ac_dir_suffix. |
---|
9038 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
9039 | case $ac_top_builddir_sub in |
---|
9040 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
9041 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
9042 | esac ;; |
---|
9043 | esac |
---|
9044 | ac_abs_top_builddir=$ac_pwd |
---|
9045 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
9046 | # for backward compatibility: |
---|
9047 | ac_top_builddir=$ac_top_build_prefix |
---|
9048 | |
---|
9049 | case $srcdir in |
---|
9050 | .) # We are building in place. |
---|
9051 | ac_srcdir=. |
---|
9052 | ac_top_srcdir=$ac_top_builddir_sub |
---|
9053 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
9054 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
9055 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
9056 | ac_top_srcdir=$srcdir |
---|
9057 | ac_abs_top_srcdir=$srcdir ;; |
---|
9058 | *) # Relative name. |
---|
9059 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
9060 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
9061 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
9062 | esac |
---|
9063 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
9064 | |
---|
9065 | |
---|
9066 | case $ac_mode in |
---|
9067 | :F) |
---|
9068 | # |
---|
9069 | # CONFIG_FILE |
---|
9070 | # |
---|
9071 | |
---|
9072 | case $INSTALL in |
---|
9073 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
9074 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
---|
9075 | esac |
---|
9076 | ac_MKDIR_P=$MKDIR_P |
---|
9077 | case $MKDIR_P in |
---|
9078 | [\\/$]* | ?:[\\/]* ) ;; |
---|
9079 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
---|
9080 | esac |
---|
9081 | _ACEOF |
---|
9082 | |
---|
9083 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
9084 | # If the template does not know about datarootdir, expand it. |
---|
9085 | # FIXME: This hack should be removed a few years after 2.60. |
---|
9086 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
9087 | ac_sed_dataroot=' |
---|
9088 | /datarootdir/ { |
---|
9089 | p |
---|
9090 | q |
---|
9091 | } |
---|
9092 | /@datadir@/p |
---|
9093 | /@docdir@/p |
---|
9094 | /@infodir@/p |
---|
9095 | /@localedir@/p |
---|
9096 | /@mandir@/p' |
---|
9097 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
---|
9098 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
9099 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
9100 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
9101 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
9102 | _ACEOF |
---|
9103 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
9104 | ac_datarootdir_hack=' |
---|
9105 | s&@datadir@&$datadir&g |
---|
9106 | s&@docdir@&$docdir&g |
---|
9107 | s&@infodir@&$infodir&g |
---|
9108 | s&@localedir@&$localedir&g |
---|
9109 | s&@mandir@&$mandir&g |
---|
9110 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
9111 | esac |
---|
9112 | _ACEOF |
---|
9113 | |
---|
9114 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
9115 | # Shell code in configure.ac might set extrasub. |
---|
9116 | # FIXME: do we really want to maintain this feature? |
---|
9117 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
9118 | ac_sed_extra="$ac_vpsub |
---|
9119 | $extrasub |
---|
9120 | _ACEOF |
---|
9121 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
9122 | :t |
---|
9123 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
9124 | s|@configure_input@|$ac_sed_conf_input|;t t |
---|
9125 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
9126 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
---|
9127 | s&@srcdir@&$ac_srcdir&;t t |
---|
9128 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
9129 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
9130 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
9131 | s&@builddir@&$ac_builddir&;t t |
---|
9132 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
9133 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
9134 | s&@INSTALL@&$ac_INSTALL&;t t |
---|
9135 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
---|
9136 | $ac_datarootdir_hack |
---|
9137 | " |
---|
9138 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
---|
9139 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
9140 | |
---|
9141 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
9142 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
---|
9143 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
---|
9144 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
---|
9145 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
9146 | which seems to be undefined. Please make sure it is defined" >&5 |
---|
9147 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
9148 | which seems to be undefined. Please make sure it is defined" >&2;} |
---|
9149 | |
---|
9150 | rm -f "$ac_tmp/stdin" |
---|
9151 | case $ac_file in |
---|
9152 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
---|
9153 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
---|
9154 | esac \ |
---|
9155 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
9156 | ;; |
---|
9157 | :H) |
---|
9158 | # |
---|
9159 | # CONFIG_HEADER |
---|
9160 | # |
---|
9161 | if test x"$ac_file" != x-; then |
---|
9162 | { |
---|
9163 | $as_echo "/* $configure_input */" \ |
---|
9164 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
---|
9165 | } >"$ac_tmp/config.h" \ |
---|
9166 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
9167 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
---|
9168 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
---|
9169 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
---|
9170 | else |
---|
9171 | rm -f "$ac_file" |
---|
9172 | mv "$ac_tmp/config.h" "$ac_file" \ |
---|
9173 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
9174 | fi |
---|
9175 | else |
---|
9176 | $as_echo "/* $configure_input */" \ |
---|
9177 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
---|
9178 | || as_fn_error $? "could not create -" "$LINENO" 5 |
---|
9179 | fi |
---|
9180 | ;; |
---|
9181 | |
---|
9182 | |
---|
9183 | esac |
---|
9184 | |
---|
9185 | done # for ac_tag |
---|
9186 | |
---|
9187 | |
---|
9188 | as_fn_exit 0 |
---|
9189 | _ACEOF |
---|
9190 | ac_clean_files=$ac_clean_files_save |
---|
9191 | |
---|
9192 | test $ac_write_fail = 0 || |
---|
9193 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
---|
9194 | |
---|
9195 | |
---|
9196 | # configure is writing to config.log, and then calls config.status. |
---|
9197 | # config.status does its own redirection, appending to config.log. |
---|
9198 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
9199 | # by configure, so config.status won't be able to write to it; its |
---|
9200 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
9201 | # effectively closing config.log, so it can be properly (re)opened and |
---|
9202 | # appended to by config.status. When coming back to configure, we |
---|
9203 | # need to make the FD available again. |
---|
9204 | if test "$no_create" != yes; then |
---|
9205 | ac_cs_success=: |
---|
9206 | ac_config_status_args= |
---|
9207 | test "$silent" = yes && |
---|
9208 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
9209 | exec 5>/dev/null |
---|
9210 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
9211 | exec 5>>config.log |
---|
9212 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
9213 | # would make configure fail if this is the last instruction. |
---|
9214 | $ac_cs_success || as_fn_exit 1 |
---|
9215 | fi |
---|
9216 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
---|
9217 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
---|
9218 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
---|
9219 | fi |
---|
9220 | |
---|
9221 | |
---|