1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.61 for Duchamp 1.1.10. |
---|
4 | # |
---|
5 | # Report bugs to <Matthew.Whiting@csiro.au>. |
---|
6 | # |
---|
7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
---|
8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
---|
9 | # This configure script is free software; the Free Software Foundation |
---|
10 | # gives unlimited permission to copy, distribute and modify it. |
---|
11 | ## --------------------- ## |
---|
12 | ## M4sh Initialization. ## |
---|
13 | ## --------------------- ## |
---|
14 | |
---|
15 | # Be more Bourne compatible |
---|
16 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
18 | emulate sh |
---|
19 | NULLCMD=: |
---|
20 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
21 | # is contrary to our usage. Disable this feature. |
---|
22 | alias -g '${1+"$@"}'='"$@"' |
---|
23 | setopt NO_GLOB_SUBST |
---|
24 | else |
---|
25 | case `(set -o) 2>/dev/null` in |
---|
26 | *posix*) set -o posix ;; |
---|
27 | esac |
---|
28 | |
---|
29 | fi |
---|
30 | |
---|
31 | |
---|
32 | |
---|
33 | |
---|
34 | # PATH needs CR |
---|
35 | # Avoid depending upon Character Ranges. |
---|
36 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
37 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
38 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
39 | as_cr_digits='0123456789' |
---|
40 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
41 | |
---|
42 | # The user is always right. |
---|
43 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
44 | echo "#! /bin/sh" >conf$$.sh |
---|
45 | echo "exit 0" >>conf$$.sh |
---|
46 | chmod +x conf$$.sh |
---|
47 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
48 | PATH_SEPARATOR=';' |
---|
49 | else |
---|
50 | PATH_SEPARATOR=: |
---|
51 | fi |
---|
52 | rm -f conf$$.sh |
---|
53 | fi |
---|
54 | |
---|
55 | # Support unset when possible. |
---|
56 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
57 | as_unset=unset |
---|
58 | else |
---|
59 | as_unset=false |
---|
60 | fi |
---|
61 | |
---|
62 | |
---|
63 | # IFS |
---|
64 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
65 | # there to prevent editors from complaining about space-tab. |
---|
66 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
67 | # splitting by setting IFS to empty value.) |
---|
68 | as_nl=' |
---|
69 | ' |
---|
70 | IFS=" "" $as_nl" |
---|
71 | |
---|
72 | # Find who we are. Look in the path if we contain no directory separator. |
---|
73 | case $0 in |
---|
74 | *[\\/]* ) as_myself=$0 ;; |
---|
75 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
76 | for as_dir in $PATH |
---|
77 | do |
---|
78 | IFS=$as_save_IFS |
---|
79 | test -z "$as_dir" && as_dir=. |
---|
80 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
81 | done |
---|
82 | IFS=$as_save_IFS |
---|
83 | |
---|
84 | ;; |
---|
85 | esac |
---|
86 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
87 | # in which case we are not to be found in the path. |
---|
88 | if test "x$as_myself" = x; then |
---|
89 | as_myself=$0 |
---|
90 | fi |
---|
91 | if test ! -f "$as_myself"; then |
---|
92 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
93 | { (exit 1); exit 1; } |
---|
94 | fi |
---|
95 | |
---|
96 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
97 | for as_var in ENV MAIL MAILPATH |
---|
98 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
99 | done |
---|
100 | PS1='$ ' |
---|
101 | PS2='> ' |
---|
102 | PS4='+ ' |
---|
103 | |
---|
104 | # NLS nuisances. |
---|
105 | for as_var in \ |
---|
106 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
107 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
108 | LC_TELEPHONE LC_TIME |
---|
109 | do |
---|
110 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
111 | eval $as_var=C; export $as_var |
---|
112 | else |
---|
113 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
114 | fi |
---|
115 | done |
---|
116 | |
---|
117 | # Required to use basename. |
---|
118 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
119 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
120 | as_expr=expr |
---|
121 | else |
---|
122 | as_expr=false |
---|
123 | fi |
---|
124 | |
---|
125 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
126 | as_basename=basename |
---|
127 | else |
---|
128 | as_basename=false |
---|
129 | fi |
---|
130 | |
---|
131 | |
---|
132 | # Name of the executable. |
---|
133 | as_me=`$as_basename -- "$0" || |
---|
134 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
135 | X"$0" : 'X\(//\)$' \| \ |
---|
136 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
137 | echo X/"$0" | |
---|
138 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
139 | s//\1/ |
---|
140 | q |
---|
141 | } |
---|
142 | /^X\/\(\/\/\)$/{ |
---|
143 | s//\1/ |
---|
144 | q |
---|
145 | } |
---|
146 | /^X\/\(\/\).*/{ |
---|
147 | s//\1/ |
---|
148 | q |
---|
149 | } |
---|
150 | s/.*/./; q'` |
---|
151 | |
---|
152 | # CDPATH. |
---|
153 | $as_unset CDPATH |
---|
154 | |
---|
155 | |
---|
156 | if test "x$CONFIG_SHELL" = x; then |
---|
157 | if (eval ":") 2>/dev/null; then |
---|
158 | as_have_required=yes |
---|
159 | else |
---|
160 | as_have_required=no |
---|
161 | fi |
---|
162 | |
---|
163 | if test $as_have_required = yes && (eval ": |
---|
164 | (as_func_return () { |
---|
165 | (exit \$1) |
---|
166 | } |
---|
167 | as_func_success () { |
---|
168 | as_func_return 0 |
---|
169 | } |
---|
170 | as_func_failure () { |
---|
171 | as_func_return 1 |
---|
172 | } |
---|
173 | as_func_ret_success () { |
---|
174 | return 0 |
---|
175 | } |
---|
176 | as_func_ret_failure () { |
---|
177 | return 1 |
---|
178 | } |
---|
179 | |
---|
180 | exitcode=0 |
---|
181 | if as_func_success; then |
---|
182 | : |
---|
183 | else |
---|
184 | exitcode=1 |
---|
185 | echo as_func_success failed. |
---|
186 | fi |
---|
187 | |
---|
188 | if as_func_failure; then |
---|
189 | exitcode=1 |
---|
190 | echo as_func_failure succeeded. |
---|
191 | fi |
---|
192 | |
---|
193 | if as_func_ret_success; then |
---|
194 | : |
---|
195 | else |
---|
196 | exitcode=1 |
---|
197 | echo as_func_ret_success failed. |
---|
198 | fi |
---|
199 | |
---|
200 | if as_func_ret_failure; then |
---|
201 | exitcode=1 |
---|
202 | echo as_func_ret_failure succeeded. |
---|
203 | fi |
---|
204 | |
---|
205 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
---|
206 | : |
---|
207 | else |
---|
208 | exitcode=1 |
---|
209 | echo positional parameters were not saved. |
---|
210 | fi |
---|
211 | |
---|
212 | test \$exitcode = 0) || { (exit 1); exit 1; } |
---|
213 | |
---|
214 | ( |
---|
215 | as_lineno_1=\$LINENO |
---|
216 | as_lineno_2=\$LINENO |
---|
217 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
---|
218 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
---|
219 | ") 2> /dev/null; then |
---|
220 | : |
---|
221 | else |
---|
222 | as_candidate_shells= |
---|
223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
224 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
225 | do |
---|
226 | IFS=$as_save_IFS |
---|
227 | test -z "$as_dir" && as_dir=. |
---|
228 | case $as_dir in |
---|
229 | /*) |
---|
230 | for as_base in sh bash ksh sh5; do |
---|
231 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
---|
232 | done;; |
---|
233 | esac |
---|
234 | done |
---|
235 | IFS=$as_save_IFS |
---|
236 | |
---|
237 | |
---|
238 | for as_shell in $as_candidate_shells $SHELL; do |
---|
239 | # Try only shells that exist, to save several forks. |
---|
240 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
---|
241 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
---|
242 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
243 | emulate sh |
---|
244 | NULLCMD=: |
---|
245 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
246 | # is contrary to our usage. Disable this feature. |
---|
247 | alias -g '${1+"$@"}'='"$@"' |
---|
248 | setopt NO_GLOB_SUBST |
---|
249 | else |
---|
250 | case `(set -o) 2>/dev/null` in |
---|
251 | *posix*) set -o posix ;; |
---|
252 | esac |
---|
253 | |
---|
254 | fi |
---|
255 | |
---|
256 | |
---|
257 | : |
---|
258 | _ASEOF |
---|
259 | }; then |
---|
260 | CONFIG_SHELL=$as_shell |
---|
261 | as_have_required=yes |
---|
262 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
---|
263 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
264 | emulate sh |
---|
265 | NULLCMD=: |
---|
266 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
267 | # is contrary to our usage. Disable this feature. |
---|
268 | alias -g '${1+"$@"}'='"$@"' |
---|
269 | setopt NO_GLOB_SUBST |
---|
270 | else |
---|
271 | case `(set -o) 2>/dev/null` in |
---|
272 | *posix*) set -o posix ;; |
---|
273 | esac |
---|
274 | |
---|
275 | fi |
---|
276 | |
---|
277 | |
---|
278 | : |
---|
279 | (as_func_return () { |
---|
280 | (exit $1) |
---|
281 | } |
---|
282 | as_func_success () { |
---|
283 | as_func_return 0 |
---|
284 | } |
---|
285 | as_func_failure () { |
---|
286 | as_func_return 1 |
---|
287 | } |
---|
288 | as_func_ret_success () { |
---|
289 | return 0 |
---|
290 | } |
---|
291 | as_func_ret_failure () { |
---|
292 | return 1 |
---|
293 | } |
---|
294 | |
---|
295 | exitcode=0 |
---|
296 | if as_func_success; then |
---|
297 | : |
---|
298 | else |
---|
299 | exitcode=1 |
---|
300 | echo as_func_success failed. |
---|
301 | fi |
---|
302 | |
---|
303 | if as_func_failure; then |
---|
304 | exitcode=1 |
---|
305 | echo as_func_failure succeeded. |
---|
306 | fi |
---|
307 | |
---|
308 | if as_func_ret_success; then |
---|
309 | : |
---|
310 | else |
---|
311 | exitcode=1 |
---|
312 | echo as_func_ret_success failed. |
---|
313 | fi |
---|
314 | |
---|
315 | if as_func_ret_failure; then |
---|
316 | exitcode=1 |
---|
317 | echo as_func_ret_failure succeeded. |
---|
318 | fi |
---|
319 | |
---|
320 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
---|
321 | : |
---|
322 | else |
---|
323 | exitcode=1 |
---|
324 | echo positional parameters were not saved. |
---|
325 | fi |
---|
326 | |
---|
327 | test $exitcode = 0) || { (exit 1); exit 1; } |
---|
328 | |
---|
329 | ( |
---|
330 | as_lineno_1=$LINENO |
---|
331 | as_lineno_2=$LINENO |
---|
332 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
333 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
---|
334 | |
---|
335 | _ASEOF |
---|
336 | }; then |
---|
337 | break |
---|
338 | fi |
---|
339 | |
---|
340 | fi |
---|
341 | |
---|
342 | done |
---|
343 | |
---|
344 | if test "x$CONFIG_SHELL" != x; then |
---|
345 | for as_var in BASH_ENV ENV |
---|
346 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
347 | done |
---|
348 | export CONFIG_SHELL |
---|
349 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
---|
350 | fi |
---|
351 | |
---|
352 | |
---|
353 | if test $as_have_required = no; then |
---|
354 | echo This script requires a shell more modern than all the |
---|
355 | echo shells that I found on your system. Please install a |
---|
356 | echo modern shell, or manually run the script under such a |
---|
357 | echo shell if you do have one. |
---|
358 | { (exit 1); exit 1; } |
---|
359 | fi |
---|
360 | |
---|
361 | |
---|
362 | fi |
---|
363 | |
---|
364 | fi |
---|
365 | |
---|
366 | |
---|
367 | |
---|
368 | (eval "as_func_return () { |
---|
369 | (exit \$1) |
---|
370 | } |
---|
371 | as_func_success () { |
---|
372 | as_func_return 0 |
---|
373 | } |
---|
374 | as_func_failure () { |
---|
375 | as_func_return 1 |
---|
376 | } |
---|
377 | as_func_ret_success () { |
---|
378 | return 0 |
---|
379 | } |
---|
380 | as_func_ret_failure () { |
---|
381 | return 1 |
---|
382 | } |
---|
383 | |
---|
384 | exitcode=0 |
---|
385 | if as_func_success; then |
---|
386 | : |
---|
387 | else |
---|
388 | exitcode=1 |
---|
389 | echo as_func_success failed. |
---|
390 | fi |
---|
391 | |
---|
392 | if as_func_failure; then |
---|
393 | exitcode=1 |
---|
394 | echo as_func_failure succeeded. |
---|
395 | fi |
---|
396 | |
---|
397 | if as_func_ret_success; then |
---|
398 | : |
---|
399 | else |
---|
400 | exitcode=1 |
---|
401 | echo as_func_ret_success failed. |
---|
402 | fi |
---|
403 | |
---|
404 | if as_func_ret_failure; then |
---|
405 | exitcode=1 |
---|
406 | echo as_func_ret_failure succeeded. |
---|
407 | fi |
---|
408 | |
---|
409 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
---|
410 | : |
---|
411 | else |
---|
412 | exitcode=1 |
---|
413 | echo positional parameters were not saved. |
---|
414 | fi |
---|
415 | |
---|
416 | test \$exitcode = 0") || { |
---|
417 | echo No shell found that supports shell functions. |
---|
418 | echo Please tell autoconf@gnu.org about your system, |
---|
419 | echo including any error possibly output before this |
---|
420 | echo message |
---|
421 | } |
---|
422 | |
---|
423 | |
---|
424 | |
---|
425 | as_lineno_1=$LINENO |
---|
426 | as_lineno_2=$LINENO |
---|
427 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
428 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
---|
429 | |
---|
430 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
431 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
432 | # line-number line after each line using $LINENO; the second 'sed' |
---|
433 | # does the real work. The second script uses 'N' to pair each |
---|
434 | # line-number line with the line containing $LINENO, and appends |
---|
435 | # trailing '-' during substitution so that $LINENO is not a special |
---|
436 | # case at line end. |
---|
437 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
438 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
---|
439 | # E. McMahon (1931-1989) for sed's syntax. :-) |
---|
440 | sed -n ' |
---|
441 | p |
---|
442 | /[$]LINENO/= |
---|
443 | ' <$as_myself | |
---|
444 | sed ' |
---|
445 | s/[$]LINENO.*/&-/ |
---|
446 | t lineno |
---|
447 | b |
---|
448 | :lineno |
---|
449 | N |
---|
450 | :loop |
---|
451 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
452 | t loop |
---|
453 | s/-\n.*// |
---|
454 | ' >$as_me.lineno && |
---|
455 | chmod +x "$as_me.lineno" || |
---|
456 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
457 | { (exit 1); exit 1; }; } |
---|
458 | |
---|
459 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
460 | # (the dirname of $[0] is not the place where we might find the |
---|
461 | # original and so on. Autoconf is especially sensitive to this). |
---|
462 | . "./$as_me.lineno" |
---|
463 | # Exit status is that of the last command. |
---|
464 | exit |
---|
465 | } |
---|
466 | |
---|
467 | |
---|
468 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
469 | as_dirname=dirname |
---|
470 | else |
---|
471 | as_dirname=false |
---|
472 | fi |
---|
473 | |
---|
474 | ECHO_C= ECHO_N= ECHO_T= |
---|
475 | case `echo -n x` in |
---|
476 | -n*) |
---|
477 | case `echo 'x\c'` in |
---|
478 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
479 | *) ECHO_C='\c';; |
---|
480 | esac;; |
---|
481 | *) |
---|
482 | ECHO_N='-n';; |
---|
483 | esac |
---|
484 | |
---|
485 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
486 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
487 | as_expr=expr |
---|
488 | else |
---|
489 | as_expr=false |
---|
490 | fi |
---|
491 | |
---|
492 | rm -f conf$$ conf$$.exe conf$$.file |
---|
493 | if test -d conf$$.dir; then |
---|
494 | rm -f conf$$.dir/conf$$.file |
---|
495 | else |
---|
496 | rm -f conf$$.dir |
---|
497 | mkdir conf$$.dir |
---|
498 | fi |
---|
499 | echo >conf$$.file |
---|
500 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
501 | as_ln_s='ln -s' |
---|
502 | # ... but there are two gotchas: |
---|
503 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
504 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
505 | # In both cases, we have to default to `cp -p'. |
---|
506 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
507 | as_ln_s='cp -p' |
---|
508 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
509 | as_ln_s=ln |
---|
510 | else |
---|
511 | as_ln_s='cp -p' |
---|
512 | fi |
---|
513 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
514 | rmdir conf$$.dir 2>/dev/null |
---|
515 | |
---|
516 | if mkdir -p . 2>/dev/null; then |
---|
517 | as_mkdir_p=: |
---|
518 | else |
---|
519 | test -d ./-p && rmdir ./-p |
---|
520 | as_mkdir_p=false |
---|
521 | fi |
---|
522 | |
---|
523 | if test -x / >/dev/null 2>&1; then |
---|
524 | as_test_x='test -x' |
---|
525 | else |
---|
526 | if ls -dL / >/dev/null 2>&1; then |
---|
527 | as_ls_L_option=L |
---|
528 | else |
---|
529 | as_ls_L_option= |
---|
530 | fi |
---|
531 | as_test_x=' |
---|
532 | eval sh -c '\'' |
---|
533 | if test -d "$1"; then |
---|
534 | test -d "$1/."; |
---|
535 | else |
---|
536 | case $1 in |
---|
537 | -*)set "./$1";; |
---|
538 | esac; |
---|
539 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
---|
540 | ???[sx]*):;;*)false;;esac;fi |
---|
541 | '\'' sh |
---|
542 | ' |
---|
543 | fi |
---|
544 | as_executable_p=$as_test_x |
---|
545 | |
---|
546 | # Sed expression to map a string onto a valid CPP name. |
---|
547 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
548 | |
---|
549 | # Sed expression to map a string onto a valid variable name. |
---|
550 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
551 | |
---|
552 | |
---|
553 | |
---|
554 | exec 7<&0 </dev/null 6>&1 |
---|
555 | |
---|
556 | # Name of the host. |
---|
557 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
558 | # so uname gets run too. |
---|
559 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
560 | |
---|
561 | # |
---|
562 | # Initializations. |
---|
563 | # |
---|
564 | ac_default_prefix=/usr/local |
---|
565 | ac_clean_files= |
---|
566 | ac_config_libobj_dir=. |
---|
567 | LIBOBJS= |
---|
568 | cross_compiling=no |
---|
569 | subdirs= |
---|
570 | MFLAGS= |
---|
571 | MAKEFLAGS= |
---|
572 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
573 | |
---|
574 | # Identity of this package. |
---|
575 | PACKAGE_NAME='Duchamp' |
---|
576 | PACKAGE_TARNAME='duchamp' |
---|
577 | PACKAGE_VERSION='1.1.10' |
---|
578 | PACKAGE_STRING='Duchamp 1.1.10' |
---|
579 | PACKAGE_BUGREPORT='Matthew.Whiting@csiro.au' |
---|
580 | |
---|
581 | ac_unique_file="src/duchamp.hh" |
---|
582 | ac_default_prefix=/usr/local |
---|
583 | # Factoring default headers for most tests. |
---|
584 | ac_includes_default="\ |
---|
585 | #include <stdio.h> |
---|
586 | #ifdef HAVE_SYS_TYPES_H |
---|
587 | # include <sys/types.h> |
---|
588 | #endif |
---|
589 | #ifdef HAVE_SYS_STAT_H |
---|
590 | # include <sys/stat.h> |
---|
591 | #endif |
---|
592 | #ifdef STDC_HEADERS |
---|
593 | # include <stdlib.h> |
---|
594 | # include <stddef.h> |
---|
595 | #else |
---|
596 | # ifdef HAVE_STDLIB_H |
---|
597 | # include <stdlib.h> |
---|
598 | # endif |
---|
599 | #endif |
---|
600 | #ifdef HAVE_STRING_H |
---|
601 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
---|
602 | # include <memory.h> |
---|
603 | # endif |
---|
604 | # include <string.h> |
---|
605 | #endif |
---|
606 | #ifdef HAVE_STRINGS_H |
---|
607 | # include <strings.h> |
---|
608 | #endif |
---|
609 | #ifdef HAVE_INTTYPES_H |
---|
610 | # include <inttypes.h> |
---|
611 | #endif |
---|
612 | #ifdef HAVE_STDINT_H |
---|
613 | # include <stdint.h> |
---|
614 | #endif |
---|
615 | #ifdef HAVE_UNISTD_H |
---|
616 | # include <unistd.h> |
---|
617 | #endif" |
---|
618 | |
---|
619 | ac_subst_vars='SHELL |
---|
620 | PATH_SEPARATOR |
---|
621 | PACKAGE_NAME |
---|
622 | PACKAGE_TARNAME |
---|
623 | PACKAGE_VERSION |
---|
624 | PACKAGE_STRING |
---|
625 | PACKAGE_BUGREPORT |
---|
626 | exec_prefix |
---|
627 | prefix |
---|
628 | program_transform_name |
---|
629 | bindir |
---|
630 | sbindir |
---|
631 | libexecdir |
---|
632 | datarootdir |
---|
633 | datadir |
---|
634 | sysconfdir |
---|
635 | sharedstatedir |
---|
636 | localstatedir |
---|
637 | includedir |
---|
638 | oldincludedir |
---|
639 | docdir |
---|
640 | infodir |
---|
641 | htmldir |
---|
642 | dvidir |
---|
643 | pdfdir |
---|
644 | psdir |
---|
645 | libdir |
---|
646 | localedir |
---|
647 | mandir |
---|
648 | DEFS |
---|
649 | ECHO_C |
---|
650 | ECHO_N |
---|
651 | ECHO_T |
---|
652 | LIBS |
---|
653 | build_alias |
---|
654 | host_alias |
---|
655 | target_alias |
---|
656 | CXX |
---|
657 | CXXFLAGS |
---|
658 | LDFLAGS |
---|
659 | CPPFLAGS |
---|
660 | ac_ct_CXX |
---|
661 | EXEEXT |
---|
662 | OBJEXT |
---|
663 | CC |
---|
664 | CFLAGS |
---|
665 | ac_ct_CC |
---|
666 | CPP |
---|
667 | F77 |
---|
668 | FFLAGS |
---|
669 | ac_ct_F77 |
---|
670 | LN_S |
---|
671 | INSTALL |
---|
672 | GREP |
---|
673 | EGREP |
---|
674 | RANLIB |
---|
675 | POW_LIB |
---|
676 | LIBOBJS |
---|
677 | XMKMF |
---|
678 | X_CFLAGS |
---|
679 | X_PRE_LIBS |
---|
680 | X_LIBS |
---|
681 | X_EXTRA_LIBS |
---|
682 | LINKER |
---|
683 | PGPLOTINC |
---|
684 | PGPLOTLIB |
---|
685 | CFITSIOINC |
---|
686 | CFITSIOLIB |
---|
687 | WCSINC |
---|
688 | WCSLIB |
---|
689 | LTLIBOBJS' |
---|
690 | ac_subst_files='' |
---|
691 | ac_precious_vars='build_alias |
---|
692 | host_alias |
---|
693 | target_alias |
---|
694 | CXX |
---|
695 | CXXFLAGS |
---|
696 | LDFLAGS |
---|
697 | LIBS |
---|
698 | CPPFLAGS |
---|
699 | CCC |
---|
700 | CC |
---|
701 | CFLAGS |
---|
702 | CPP |
---|
703 | F77 |
---|
704 | FFLAGS |
---|
705 | XMKMF' |
---|
706 | |
---|
707 | |
---|
708 | # Initialize some variables set by options. |
---|
709 | ac_init_help= |
---|
710 | ac_init_version=false |
---|
711 | # The variables have the same names as the options, with |
---|
712 | # dashes changed to underlines. |
---|
713 | cache_file=/dev/null |
---|
714 | exec_prefix=NONE |
---|
715 | no_create= |
---|
716 | no_recursion= |
---|
717 | prefix=NONE |
---|
718 | program_prefix=NONE |
---|
719 | program_suffix=NONE |
---|
720 | program_transform_name=s,x,x, |
---|
721 | silent= |
---|
722 | site= |
---|
723 | srcdir= |
---|
724 | verbose= |
---|
725 | x_includes=NONE |
---|
726 | x_libraries=NONE |
---|
727 | |
---|
728 | # Installation directory options. |
---|
729 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
730 | # and all the variables that are supposed to be based on exec_prefix |
---|
731 | # by default will actually change. |
---|
732 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
733 | # (The list follows the same order as the GNU Coding Standards.) |
---|
734 | bindir='${exec_prefix}/bin' |
---|
735 | sbindir='${exec_prefix}/sbin' |
---|
736 | libexecdir='${exec_prefix}/libexec' |
---|
737 | datarootdir='${prefix}/share' |
---|
738 | datadir='${datarootdir}' |
---|
739 | sysconfdir='${prefix}/etc' |
---|
740 | sharedstatedir='${prefix}/com' |
---|
741 | localstatedir='${prefix}/var' |
---|
742 | includedir='${prefix}/include' |
---|
743 | oldincludedir='/usr/include' |
---|
744 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
---|
745 | infodir='${datarootdir}/info' |
---|
746 | htmldir='${docdir}' |
---|
747 | dvidir='${docdir}' |
---|
748 | pdfdir='${docdir}' |
---|
749 | psdir='${docdir}' |
---|
750 | libdir='${exec_prefix}/lib' |
---|
751 | localedir='${datarootdir}/locale' |
---|
752 | mandir='${datarootdir}/man' |
---|
753 | |
---|
754 | ac_prev= |
---|
755 | ac_dashdash= |
---|
756 | for ac_option |
---|
757 | do |
---|
758 | # If the previous option needs an argument, assign it. |
---|
759 | if test -n "$ac_prev"; then |
---|
760 | eval $ac_prev=\$ac_option |
---|
761 | ac_prev= |
---|
762 | continue |
---|
763 | fi |
---|
764 | |
---|
765 | case $ac_option in |
---|
766 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
767 | *) ac_optarg=yes ;; |
---|
768 | esac |
---|
769 | |
---|
770 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
771 | |
---|
772 | case $ac_dashdash$ac_option in |
---|
773 | --) |
---|
774 | ac_dashdash=yes ;; |
---|
775 | |
---|
776 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
777 | ac_prev=bindir ;; |
---|
778 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
779 | bindir=$ac_optarg ;; |
---|
780 | |
---|
781 | -build | --build | --buil | --bui | --bu) |
---|
782 | ac_prev=build_alias ;; |
---|
783 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
784 | build_alias=$ac_optarg ;; |
---|
785 | |
---|
786 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
787 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
788 | ac_prev=cache_file ;; |
---|
789 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
790 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
791 | cache_file=$ac_optarg ;; |
---|
792 | |
---|
793 | --config-cache | -C) |
---|
794 | cache_file=config.cache ;; |
---|
795 | |
---|
796 | -datadir | --datadir | --datadi | --datad) |
---|
797 | ac_prev=datadir ;; |
---|
798 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
799 | datadir=$ac_optarg ;; |
---|
800 | |
---|
801 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
802 | | --dataroo | --dataro | --datar) |
---|
803 | ac_prev=datarootdir ;; |
---|
804 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
805 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
806 | datarootdir=$ac_optarg ;; |
---|
807 | |
---|
808 | -disable-* | --disable-*) |
---|
809 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
810 | # Reject names that are not valid shell variable names. |
---|
811 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
812 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
813 | { (exit 1); exit 1; }; } |
---|
814 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
---|
815 | eval enable_$ac_feature=no ;; |
---|
816 | |
---|
817 | -docdir | --docdir | --docdi | --doc | --do) |
---|
818 | ac_prev=docdir ;; |
---|
819 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
820 | docdir=$ac_optarg ;; |
---|
821 | |
---|
822 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
823 | ac_prev=dvidir ;; |
---|
824 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
825 | dvidir=$ac_optarg ;; |
---|
826 | |
---|
827 | -enable-* | --enable-*) |
---|
828 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
829 | # Reject names that are not valid shell variable names. |
---|
830 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
831 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
832 | { (exit 1); exit 1; }; } |
---|
833 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
---|
834 | eval enable_$ac_feature=\$ac_optarg ;; |
---|
835 | |
---|
836 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
837 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
838 | | --exec | --exe | --ex) |
---|
839 | ac_prev=exec_prefix ;; |
---|
840 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
841 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
842 | | --exec=* | --exe=* | --ex=*) |
---|
843 | exec_prefix=$ac_optarg ;; |
---|
844 | |
---|
845 | -gas | --gas | --ga | --g) |
---|
846 | # Obsolete; use --with-gas. |
---|
847 | with_gas=yes ;; |
---|
848 | |
---|
849 | -help | --help | --hel | --he | -h) |
---|
850 | ac_init_help=long ;; |
---|
851 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
852 | ac_init_help=recursive ;; |
---|
853 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
854 | ac_init_help=short ;; |
---|
855 | |
---|
856 | -host | --host | --hos | --ho) |
---|
857 | ac_prev=host_alias ;; |
---|
858 | -host=* | --host=* | --hos=* | --ho=*) |
---|
859 | host_alias=$ac_optarg ;; |
---|
860 | |
---|
861 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
862 | ac_prev=htmldir ;; |
---|
863 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
864 | | --ht=*) |
---|
865 | htmldir=$ac_optarg ;; |
---|
866 | |
---|
867 | -includedir | --includedir | --includedi | --included | --include \ |
---|
868 | | --includ | --inclu | --incl | --inc) |
---|
869 | ac_prev=includedir ;; |
---|
870 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
871 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
872 | includedir=$ac_optarg ;; |
---|
873 | |
---|
874 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
875 | ac_prev=infodir ;; |
---|
876 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
877 | infodir=$ac_optarg ;; |
---|
878 | |
---|
879 | -libdir | --libdir | --libdi | --libd) |
---|
880 | ac_prev=libdir ;; |
---|
881 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
882 | libdir=$ac_optarg ;; |
---|
883 | |
---|
884 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
885 | | --libexe | --libex | --libe) |
---|
886 | ac_prev=libexecdir ;; |
---|
887 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
888 | | --libexe=* | --libex=* | --libe=*) |
---|
889 | libexecdir=$ac_optarg ;; |
---|
890 | |
---|
891 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
892 | ac_prev=localedir ;; |
---|
893 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
894 | localedir=$ac_optarg ;; |
---|
895 | |
---|
896 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
897 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
898 | ac_prev=localstatedir ;; |
---|
899 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
900 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
901 | localstatedir=$ac_optarg ;; |
---|
902 | |
---|
903 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
904 | ac_prev=mandir ;; |
---|
905 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
906 | mandir=$ac_optarg ;; |
---|
907 | |
---|
908 | -nfp | --nfp | --nf) |
---|
909 | # Obsolete; use --without-fp. |
---|
910 | with_fp=no ;; |
---|
911 | |
---|
912 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
913 | | --no-cr | --no-c | -n) |
---|
914 | no_create=yes ;; |
---|
915 | |
---|
916 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
917 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
918 | no_recursion=yes ;; |
---|
919 | |
---|
920 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
921 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
922 | | --oldin | --oldi | --old | --ol | --o) |
---|
923 | ac_prev=oldincludedir ;; |
---|
924 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
925 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
926 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
927 | oldincludedir=$ac_optarg ;; |
---|
928 | |
---|
929 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
930 | ac_prev=prefix ;; |
---|
931 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
932 | prefix=$ac_optarg ;; |
---|
933 | |
---|
934 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
935 | | --program-pre | --program-pr | --program-p) |
---|
936 | ac_prev=program_prefix ;; |
---|
937 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
938 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
939 | program_prefix=$ac_optarg ;; |
---|
940 | |
---|
941 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
942 | | --program-suf | --program-su | --program-s) |
---|
943 | ac_prev=program_suffix ;; |
---|
944 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
945 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
946 | program_suffix=$ac_optarg ;; |
---|
947 | |
---|
948 | -program-transform-name | --program-transform-name \ |
---|
949 | | --program-transform-nam | --program-transform-na \ |
---|
950 | | --program-transform-n | --program-transform- \ |
---|
951 | | --program-transform | --program-transfor \ |
---|
952 | | --program-transfo | --program-transf \ |
---|
953 | | --program-trans | --program-tran \ |
---|
954 | | --progr-tra | --program-tr | --program-t) |
---|
955 | ac_prev=program_transform_name ;; |
---|
956 | -program-transform-name=* | --program-transform-name=* \ |
---|
957 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
958 | | --program-transform-n=* | --program-transform-=* \ |
---|
959 | | --program-transform=* | --program-transfor=* \ |
---|
960 | | --program-transfo=* | --program-transf=* \ |
---|
961 | | --program-trans=* | --program-tran=* \ |
---|
962 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
963 | program_transform_name=$ac_optarg ;; |
---|
964 | |
---|
965 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
966 | ac_prev=pdfdir ;; |
---|
967 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
968 | pdfdir=$ac_optarg ;; |
---|
969 | |
---|
970 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
971 | ac_prev=psdir ;; |
---|
972 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
973 | psdir=$ac_optarg ;; |
---|
974 | |
---|
975 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
976 | | -silent | --silent | --silen | --sile | --sil) |
---|
977 | silent=yes ;; |
---|
978 | |
---|
979 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
980 | ac_prev=sbindir ;; |
---|
981 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
982 | | --sbi=* | --sb=*) |
---|
983 | sbindir=$ac_optarg ;; |
---|
984 | |
---|
985 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
986 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
987 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
988 | | --sha | --sh) |
---|
989 | ac_prev=sharedstatedir ;; |
---|
990 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
991 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
992 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
993 | | --sha=* | --sh=*) |
---|
994 | sharedstatedir=$ac_optarg ;; |
---|
995 | |
---|
996 | -site | --site | --sit) |
---|
997 | ac_prev=site ;; |
---|
998 | -site=* | --site=* | --sit=*) |
---|
999 | site=$ac_optarg ;; |
---|
1000 | |
---|
1001 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
1002 | ac_prev=srcdir ;; |
---|
1003 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
1004 | srcdir=$ac_optarg ;; |
---|
1005 | |
---|
1006 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
1007 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
1008 | ac_prev=sysconfdir ;; |
---|
1009 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
1010 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
1011 | sysconfdir=$ac_optarg ;; |
---|
1012 | |
---|
1013 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
1014 | ac_prev=target_alias ;; |
---|
1015 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
1016 | target_alias=$ac_optarg ;; |
---|
1017 | |
---|
1018 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
1019 | verbose=yes ;; |
---|
1020 | |
---|
1021 | -version | --version | --versio | --versi | --vers | -V) |
---|
1022 | ac_init_version=: ;; |
---|
1023 | |
---|
1024 | -with-* | --with-*) |
---|
1025 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
1026 | # Reject names that are not valid shell variable names. |
---|
1027 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1028 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
1029 | { (exit 1); exit 1; }; } |
---|
1030 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
---|
1031 | eval with_$ac_package=\$ac_optarg ;; |
---|
1032 | |
---|
1033 | -without-* | --without-*) |
---|
1034 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
1035 | # Reject names that are not valid shell variable names. |
---|
1036 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1037 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
1038 | { (exit 1); exit 1; }; } |
---|
1039 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
---|
1040 | eval with_$ac_package=no ;; |
---|
1041 | |
---|
1042 | --x) |
---|
1043 | # Obsolete; use --with-x. |
---|
1044 | with_x=yes ;; |
---|
1045 | |
---|
1046 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
1047 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
1048 | ac_prev=x_includes ;; |
---|
1049 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
1050 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
1051 | x_includes=$ac_optarg ;; |
---|
1052 | |
---|
1053 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
1054 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
1055 | ac_prev=x_libraries ;; |
---|
1056 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
1057 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
1058 | x_libraries=$ac_optarg ;; |
---|
1059 | |
---|
1060 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
1061 | Try \`$0 --help' for more information." >&2 |
---|
1062 | { (exit 1); exit 1; }; } |
---|
1063 | ;; |
---|
1064 | |
---|
1065 | *=*) |
---|
1066 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
1067 | # Reject names that are not valid shell variable names. |
---|
1068 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
1069 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
1070 | { (exit 1); exit 1; }; } |
---|
1071 | eval $ac_envvar=\$ac_optarg |
---|
1072 | export $ac_envvar ;; |
---|
1073 | |
---|
1074 | *) |
---|
1075 | # FIXME: should be removed in autoconf 3.0. |
---|
1076 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
1077 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1078 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
1079 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
1080 | ;; |
---|
1081 | |
---|
1082 | esac |
---|
1083 | done |
---|
1084 | |
---|
1085 | if test -n "$ac_prev"; then |
---|
1086 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
1087 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
1088 | { (exit 1); exit 1; }; } |
---|
1089 | fi |
---|
1090 | |
---|
1091 | # Be sure to have absolute directory names. |
---|
1092 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
1093 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
1094 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
1095 | libdir localedir mandir |
---|
1096 | do |
---|
1097 | eval ac_val=\$$ac_var |
---|
1098 | case $ac_val in |
---|
1099 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
1100 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
1101 | esac |
---|
1102 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
1103 | { (exit 1); exit 1; }; } |
---|
1104 | done |
---|
1105 | |
---|
1106 | # There might be people who depend on the old broken behavior: `$host' |
---|
1107 | # used to hold the argument of --host etc. |
---|
1108 | # FIXME: To remove some day. |
---|
1109 | build=$build_alias |
---|
1110 | host=$host_alias |
---|
1111 | target=$target_alias |
---|
1112 | |
---|
1113 | # FIXME: To remove some day. |
---|
1114 | if test "x$host_alias" != x; then |
---|
1115 | if test "x$build_alias" = x; then |
---|
1116 | cross_compiling=maybe |
---|
1117 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
1118 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
1119 | elif test "x$build_alias" != "x$host_alias"; then |
---|
1120 | cross_compiling=yes |
---|
1121 | fi |
---|
1122 | fi |
---|
1123 | |
---|
1124 | ac_tool_prefix= |
---|
1125 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
1126 | |
---|
1127 | test "$silent" = yes && exec 6>/dev/null |
---|
1128 | |
---|
1129 | |
---|
1130 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
1131 | ac_ls_di=`ls -di .` && |
---|
1132 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
1133 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
---|
1134 | { (exit 1); exit 1; }; } |
---|
1135 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
1136 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
---|
1137 | { (exit 1); exit 1; }; } |
---|
1138 | |
---|
1139 | |
---|
1140 | # Find the source files, if location was not specified. |
---|
1141 | if test -z "$srcdir"; then |
---|
1142 | ac_srcdir_defaulted=yes |
---|
1143 | # Try the directory containing this script, then the parent directory. |
---|
1144 | ac_confdir=`$as_dirname -- "$0" || |
---|
1145 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
1146 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
1147 | X"$0" : 'X\(//\)$' \| \ |
---|
1148 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
1149 | echo X"$0" | |
---|
1150 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
1151 | s//\1/ |
---|
1152 | q |
---|
1153 | } |
---|
1154 | /^X\(\/\/\)[^/].*/{ |
---|
1155 | s//\1/ |
---|
1156 | q |
---|
1157 | } |
---|
1158 | /^X\(\/\/\)$/{ |
---|
1159 | s//\1/ |
---|
1160 | q |
---|
1161 | } |
---|
1162 | /^X\(\/\).*/{ |
---|
1163 | s//\1/ |
---|
1164 | q |
---|
1165 | } |
---|
1166 | s/.*/./; q'` |
---|
1167 | srcdir=$ac_confdir |
---|
1168 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1169 | srcdir=.. |
---|
1170 | fi |
---|
1171 | else |
---|
1172 | ac_srcdir_defaulted=no |
---|
1173 | fi |
---|
1174 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1175 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
1176 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
1177 | { (exit 1); exit 1; }; } |
---|
1178 | fi |
---|
1179 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
1180 | ac_abs_confdir=`( |
---|
1181 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
---|
1182 | { (exit 1); exit 1; }; } |
---|
1183 | pwd)` |
---|
1184 | # When building in place, set srcdir=. |
---|
1185 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
1186 | srcdir=. |
---|
1187 | fi |
---|
1188 | # Remove unnecessary trailing slashes from srcdir. |
---|
1189 | # Double slashes in file names in object file debugging info |
---|
1190 | # mess up M-x gdb in Emacs. |
---|
1191 | case $srcdir in |
---|
1192 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
1193 | esac |
---|
1194 | for ac_var in $ac_precious_vars; do |
---|
1195 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
1196 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
1197 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
1198 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
1199 | done |
---|
1200 | |
---|
1201 | # |
---|
1202 | # Report the --help message. |
---|
1203 | # |
---|
1204 | if test "$ac_init_help" = "long"; then |
---|
1205 | # Omit some internal or obsolete options to make the list less imposing. |
---|
1206 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
1207 | cat <<_ACEOF |
---|
1208 | \`configure' configures Duchamp 1.1.10 to adapt to many kinds of systems. |
---|
1209 | |
---|
1210 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1211 | |
---|
1212 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1213 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1214 | |
---|
1215 | Defaults for the options are specified in brackets. |
---|
1216 | |
---|
1217 | Configuration: |
---|
1218 | -h, --help display this help and exit |
---|
1219 | --help=short display options specific to this package |
---|
1220 | --help=recursive display the short help of all the included packages |
---|
1221 | -V, --version display version information and exit |
---|
1222 | -q, --quiet, --silent do not print \`checking...' messages |
---|
1223 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1224 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1225 | -n, --no-create do not create output files |
---|
1226 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1227 | |
---|
1228 | Installation directories: |
---|
1229 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1230 | [$ac_default_prefix] |
---|
1231 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1232 | [PREFIX] |
---|
1233 | |
---|
1234 | By default, \`make install' will install all the files in |
---|
1235 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1236 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1237 | for instance \`--prefix=\$HOME'. |
---|
1238 | |
---|
1239 | For better control, use the options below. |
---|
1240 | |
---|
1241 | Fine tuning of the installation directories: |
---|
1242 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1243 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1244 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1245 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1246 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1247 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1248 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1249 | --includedir=DIR C header files [PREFIX/include] |
---|
1250 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1251 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
1252 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
1253 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
1254 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
1255 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
1256 | --docdir=DIR documentation root [DATAROOTDIR/doc/duchamp] |
---|
1257 | --htmldir=DIR html documentation [DOCDIR] |
---|
1258 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
1259 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
1260 | --psdir=DIR ps documentation [DOCDIR] |
---|
1261 | _ACEOF |
---|
1262 | |
---|
1263 | cat <<\_ACEOF |
---|
1264 | |
---|
1265 | X features: |
---|
1266 | --x-includes=DIR X include files are in DIR |
---|
1267 | --x-libraries=DIR X library files are in DIR |
---|
1268 | _ACEOF |
---|
1269 | fi |
---|
1270 | |
---|
1271 | if test -n "$ac_init_help"; then |
---|
1272 | case $ac_init_help in |
---|
1273 | short | recursive ) echo "Configuration of Duchamp 1.1.10:";; |
---|
1274 | esac |
---|
1275 | cat <<\_ACEOF |
---|
1276 | |
---|
1277 | Optional Packages: |
---|
1278 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1279 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1280 | |
---|
1281 | --with-pgplot=no Compile without PGPLOT graphics capabilities. |
---|
1282 | --without-pgplot Compile without PGPLOT graphics capabilities. |
---|
1283 | --with-pgplot=<dir> Compile with PGPLOT graphics capabilities, using the |
---|
1284 | directory <dir> to specify the PGPLOT library., |
---|
1285 | |
---|
1286 | --with-x use the X Window System |
---|
1287 | --with-cfitsio=<dir> The CFITSIO library and include files are in |
---|
1288 | directory <dir>. |
---|
1289 | --with-wcslib=<dir> The WCSLIB library and include files are in |
---|
1290 | directory <dir>. |
---|
1291 | |
---|
1292 | Some influential environment variables: |
---|
1293 | CXX C++ compiler command |
---|
1294 | CXXFLAGS C++ compiler flags |
---|
1295 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1296 | nonstandard directory <lib dir> |
---|
1297 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
1298 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
---|
1299 | you have headers in a nonstandard directory <include dir> |
---|
1300 | CC C compiler command |
---|
1301 | CFLAGS C compiler flags |
---|
1302 | CPP C preprocessor |
---|
1303 | F77 Fortran 77 compiler command |
---|
1304 | FFLAGS Fortran 77 compiler flags |
---|
1305 | XMKMF Path to xmkmf, Makefile generator for X Window System |
---|
1306 | |
---|
1307 | Use these variables to override the choices made by `configure' or to help |
---|
1308 | it to find libraries and programs with nonstandard names/locations. |
---|
1309 | |
---|
1310 | Report bugs to <Matthew.Whiting@csiro.au>. |
---|
1311 | _ACEOF |
---|
1312 | ac_status=$? |
---|
1313 | fi |
---|
1314 | |
---|
1315 | if test "$ac_init_help" = "recursive"; then |
---|
1316 | # If there are subdirs, report their specific --help. |
---|
1317 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1318 | test -d "$ac_dir" || continue |
---|
1319 | ac_builddir=. |
---|
1320 | |
---|
1321 | case "$ac_dir" in |
---|
1322 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1323 | *) |
---|
1324 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
1325 | # A ".." for each directory in $ac_dir_suffix. |
---|
1326 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
---|
1327 | case $ac_top_builddir_sub in |
---|
1328 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1329 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
1330 | esac ;; |
---|
1331 | esac |
---|
1332 | ac_abs_top_builddir=$ac_pwd |
---|
1333 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
1334 | # for backward compatibility: |
---|
1335 | ac_top_builddir=$ac_top_build_prefix |
---|
1336 | |
---|
1337 | case $srcdir in |
---|
1338 | .) # We are building in place. |
---|
1339 | ac_srcdir=. |
---|
1340 | ac_top_srcdir=$ac_top_builddir_sub |
---|
1341 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
1342 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
1343 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1344 | ac_top_srcdir=$srcdir |
---|
1345 | ac_abs_top_srcdir=$srcdir ;; |
---|
1346 | *) # Relative name. |
---|
1347 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
1348 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
1349 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
1350 | esac |
---|
1351 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
1352 | |
---|
1353 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
1354 | # Check for guested configure. |
---|
1355 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
1356 | echo && |
---|
1357 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
1358 | elif test -f "$ac_srcdir/configure"; then |
---|
1359 | echo && |
---|
1360 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
1361 | else |
---|
1362 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1363 | fi || ac_status=$? |
---|
1364 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
1365 | done |
---|
1366 | fi |
---|
1367 | |
---|
1368 | test -n "$ac_init_help" && exit $ac_status |
---|
1369 | if $ac_init_version; then |
---|
1370 | cat <<\_ACEOF |
---|
1371 | Duchamp configure 1.1.10 |
---|
1372 | generated by GNU Autoconf 2.61 |
---|
1373 | |
---|
1374 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
---|
1375 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
---|
1376 | This configure script is free software; the Free Software Foundation |
---|
1377 | gives unlimited permission to copy, distribute and modify it. |
---|
1378 | _ACEOF |
---|
1379 | exit |
---|
1380 | fi |
---|
1381 | cat >config.log <<_ACEOF |
---|
1382 | This file contains any messages produced by compilers while |
---|
1383 | running configure, to aid debugging if configure makes a mistake. |
---|
1384 | |
---|
1385 | It was created by Duchamp $as_me 1.1.10, which was |
---|
1386 | generated by GNU Autoconf 2.61. Invocation command line was |
---|
1387 | |
---|
1388 | $ $0 $@ |
---|
1389 | |
---|
1390 | _ACEOF |
---|
1391 | exec 5>>config.log |
---|
1392 | { |
---|
1393 | cat <<_ASUNAME |
---|
1394 | ## --------- ## |
---|
1395 | ## Platform. ## |
---|
1396 | ## --------- ## |
---|
1397 | |
---|
1398 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1399 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1400 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1401 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1402 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1403 | |
---|
1404 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1405 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1406 | |
---|
1407 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1408 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1409 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1410 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
1411 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1412 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1413 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1414 | |
---|
1415 | _ASUNAME |
---|
1416 | |
---|
1417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1418 | for as_dir in $PATH |
---|
1419 | do |
---|
1420 | IFS=$as_save_IFS |
---|
1421 | test -z "$as_dir" && as_dir=. |
---|
1422 | echo "PATH: $as_dir" |
---|
1423 | done |
---|
1424 | IFS=$as_save_IFS |
---|
1425 | |
---|
1426 | } >&5 |
---|
1427 | |
---|
1428 | cat >&5 <<_ACEOF |
---|
1429 | |
---|
1430 | |
---|
1431 | ## ----------- ## |
---|
1432 | ## Core tests. ## |
---|
1433 | ## ----------- ## |
---|
1434 | |
---|
1435 | _ACEOF |
---|
1436 | |
---|
1437 | |
---|
1438 | # Keep a trace of the command line. |
---|
1439 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1440 | # Strip out --silent because we don't want to record it for future runs. |
---|
1441 | # Also quote any args containing shell meta-characters. |
---|
1442 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1443 | ac_configure_args= |
---|
1444 | ac_configure_args0= |
---|
1445 | ac_configure_args1= |
---|
1446 | ac_must_keep_next=false |
---|
1447 | for ac_pass in 1 2 |
---|
1448 | do |
---|
1449 | for ac_arg |
---|
1450 | do |
---|
1451 | case $ac_arg in |
---|
1452 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1453 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1454 | | -silent | --silent | --silen | --sile | --sil) |
---|
1455 | continue ;; |
---|
1456 | *\'*) |
---|
1457 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1458 | esac |
---|
1459 | case $ac_pass in |
---|
1460 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1461 | 2) |
---|
1462 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1463 | if test $ac_must_keep_next = true; then |
---|
1464 | ac_must_keep_next=false # Got value, back to normal. |
---|
1465 | else |
---|
1466 | case $ac_arg in |
---|
1467 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1468 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1469 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1470 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1471 | case "$ac_configure_args0 " in |
---|
1472 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1473 | esac |
---|
1474 | ;; |
---|
1475 | -* ) ac_must_keep_next=true ;; |
---|
1476 | esac |
---|
1477 | fi |
---|
1478 | ac_configure_args="$ac_configure_args '$ac_arg'" |
---|
1479 | ;; |
---|
1480 | esac |
---|
1481 | done |
---|
1482 | done |
---|
1483 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1484 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1485 | |
---|
1486 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1487 | # config.log. We remove comments because anyway the quotes in there |
---|
1488 | # would cause problems or look ugly. |
---|
1489 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
1490 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
1491 | trap 'exit_status=$? |
---|
1492 | # Save into config.log some information that might help in debugging. |
---|
1493 | { |
---|
1494 | echo |
---|
1495 | |
---|
1496 | cat <<\_ASBOX |
---|
1497 | ## ---------------- ## |
---|
1498 | ## Cache variables. ## |
---|
1499 | ## ---------------- ## |
---|
1500 | _ASBOX |
---|
1501 | echo |
---|
1502 | # The following way of writing the cache mishandles newlines in values, |
---|
1503 | ( |
---|
1504 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
1505 | eval ac_val=\$$ac_var |
---|
1506 | case $ac_val in #( |
---|
1507 | *${as_nl}*) |
---|
1508 | case $ac_var in #( |
---|
1509 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
---|
1510 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
---|
1511 | esac |
---|
1512 | case $ac_var in #( |
---|
1513 | _ | IFS | as_nl) ;; #( |
---|
1514 | *) $as_unset $ac_var ;; |
---|
1515 | esac ;; |
---|
1516 | esac |
---|
1517 | done |
---|
1518 | (set) 2>&1 | |
---|
1519 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
1520 | *${as_nl}ac_space=\ *) |
---|
1521 | sed -n \ |
---|
1522 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
1523 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
1524 | ;; #( |
---|
1525 | *) |
---|
1526 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
1527 | ;; |
---|
1528 | esac | |
---|
1529 | sort |
---|
1530 | ) |
---|
1531 | echo |
---|
1532 | |
---|
1533 | cat <<\_ASBOX |
---|
1534 | ## ----------------- ## |
---|
1535 | ## Output variables. ## |
---|
1536 | ## ----------------- ## |
---|
1537 | _ASBOX |
---|
1538 | echo |
---|
1539 | for ac_var in $ac_subst_vars |
---|
1540 | do |
---|
1541 | eval ac_val=\$$ac_var |
---|
1542 | case $ac_val in |
---|
1543 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
1544 | esac |
---|
1545 | echo "$ac_var='\''$ac_val'\''" |
---|
1546 | done | sort |
---|
1547 | echo |
---|
1548 | |
---|
1549 | if test -n "$ac_subst_files"; then |
---|
1550 | cat <<\_ASBOX |
---|
1551 | ## ------------------- ## |
---|
1552 | ## File substitutions. ## |
---|
1553 | ## ------------------- ## |
---|
1554 | _ASBOX |
---|
1555 | echo |
---|
1556 | for ac_var in $ac_subst_files |
---|
1557 | do |
---|
1558 | eval ac_val=\$$ac_var |
---|
1559 | case $ac_val in |
---|
1560 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
1561 | esac |
---|
1562 | echo "$ac_var='\''$ac_val'\''" |
---|
1563 | done | sort |
---|
1564 | echo |
---|
1565 | fi |
---|
1566 | |
---|
1567 | if test -s confdefs.h; then |
---|
1568 | cat <<\_ASBOX |
---|
1569 | ## ----------- ## |
---|
1570 | ## confdefs.h. ## |
---|
1571 | ## ----------- ## |
---|
1572 | _ASBOX |
---|
1573 | echo |
---|
1574 | cat confdefs.h |
---|
1575 | echo |
---|
1576 | fi |
---|
1577 | test "$ac_signal" != 0 && |
---|
1578 | echo "$as_me: caught signal $ac_signal" |
---|
1579 | echo "$as_me: exit $exit_status" |
---|
1580 | } >&5 |
---|
1581 | rm -f core *.core core.conftest.* && |
---|
1582 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
1583 | exit $exit_status |
---|
1584 | ' 0 |
---|
1585 | for ac_signal in 1 2 13 15; do |
---|
1586 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1587 | done |
---|
1588 | ac_signal=0 |
---|
1589 | |
---|
1590 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1591 | rm -f -r conftest* confdefs.h |
---|
1592 | |
---|
1593 | # Predefined preprocessor variables. |
---|
1594 | |
---|
1595 | cat >>confdefs.h <<_ACEOF |
---|
1596 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1597 | _ACEOF |
---|
1598 | |
---|
1599 | |
---|
1600 | cat >>confdefs.h <<_ACEOF |
---|
1601 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1602 | _ACEOF |
---|
1603 | |
---|
1604 | |
---|
1605 | cat >>confdefs.h <<_ACEOF |
---|
1606 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1607 | _ACEOF |
---|
1608 | |
---|
1609 | |
---|
1610 | cat >>confdefs.h <<_ACEOF |
---|
1611 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1612 | _ACEOF |
---|
1613 | |
---|
1614 | |
---|
1615 | cat >>confdefs.h <<_ACEOF |
---|
1616 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1617 | _ACEOF |
---|
1618 | |
---|
1619 | |
---|
1620 | # Let the site file select an alternate cache file if it wants to. |
---|
1621 | # Prefer explicitly selected file to automatically selected ones. |
---|
1622 | if test -n "$CONFIG_SITE"; then |
---|
1623 | set x "$CONFIG_SITE" |
---|
1624 | elif test "x$prefix" != xNONE; then |
---|
1625 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
---|
1626 | else |
---|
1627 | set x "$ac_default_prefix/share/config.site" \ |
---|
1628 | "$ac_default_prefix/etc/config.site" |
---|
1629 | fi |
---|
1630 | shift |
---|
1631 | for ac_site_file |
---|
1632 | do |
---|
1633 | if test -r "$ac_site_file"; then |
---|
1634 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1635 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1636 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1637 | . "$ac_site_file" |
---|
1638 | fi |
---|
1639 | done |
---|
1640 | |
---|
1641 | if test -r "$cache_file"; then |
---|
1642 | # Some versions of bash will fail to source /dev/null (special |
---|
1643 | # files actually), so we avoid doing that. |
---|
1644 | if test -f "$cache_file"; then |
---|
1645 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1646 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1647 | case $cache_file in |
---|
1648 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
1649 | *) . "./$cache_file";; |
---|
1650 | esac |
---|
1651 | fi |
---|
1652 | else |
---|
1653 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1654 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1655 | >$cache_file |
---|
1656 | fi |
---|
1657 | |
---|
1658 | # Check that the precious variables saved in the cache have kept the same |
---|
1659 | # value. |
---|
1660 | ac_cache_corrupted=false |
---|
1661 | for ac_var in $ac_precious_vars; do |
---|
1662 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1663 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1664 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
1665 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
1666 | case $ac_old_set,$ac_new_set in |
---|
1667 | set,) |
---|
1668 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1669 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1670 | ac_cache_corrupted=: ;; |
---|
1671 | ,set) |
---|
1672 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1673 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1674 | ac_cache_corrupted=: ;; |
---|
1675 | ,);; |
---|
1676 | *) |
---|
1677 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1678 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1679 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1680 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
1681 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1682 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
1683 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1684 | ac_cache_corrupted=: |
---|
1685 | fi;; |
---|
1686 | esac |
---|
1687 | # Pass precious variables to config.status. |
---|
1688 | if test "$ac_new_set" = set; then |
---|
1689 | case $ac_new_val in |
---|
1690 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1691 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1692 | esac |
---|
1693 | case " $ac_configure_args " in |
---|
1694 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1695 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1696 | esac |
---|
1697 | fi |
---|
1698 | done |
---|
1699 | if $ac_cache_corrupted; then |
---|
1700 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1701 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1702 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1703 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1704 | { (exit 1); exit 1; }; } |
---|
1705 | fi |
---|
1706 | |
---|
1707 | |
---|
1708 | |
---|
1709 | |
---|
1710 | |
---|
1711 | |
---|
1712 | |
---|
1713 | |
---|
1714 | |
---|
1715 | |
---|
1716 | |
---|
1717 | |
---|
1718 | |
---|
1719 | |
---|
1720 | |
---|
1721 | |
---|
1722 | |
---|
1723 | |
---|
1724 | |
---|
1725 | |
---|
1726 | |
---|
1727 | |
---|
1728 | |
---|
1729 | |
---|
1730 | |
---|
1731 | ac_ext=c |
---|
1732 | ac_cpp='$CPP $CPPFLAGS' |
---|
1733 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1734 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1735 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1736 | |
---|
1737 | |
---|
1738 | |
---|
1739 | ac_config_headers="$ac_config_headers src/config.h" |
---|
1740 | |
---|
1741 | |
---|
1742 | |
---|
1743 | # Checks for programs. |
---|
1744 | ac_ext=cpp |
---|
1745 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
1746 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1747 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1748 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
1749 | if test -z "$CXX"; then |
---|
1750 | if test -n "$CCC"; then |
---|
1751 | CXX=$CCC |
---|
1752 | else |
---|
1753 | if test -n "$ac_tool_prefix"; then |
---|
1754 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
1755 | do |
---|
1756 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
1757 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
1758 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1759 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
1760 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
1761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1762 | else |
---|
1763 | if test -n "$CXX"; then |
---|
1764 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
1765 | else |
---|
1766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1767 | for as_dir in $PATH |
---|
1768 | do |
---|
1769 | IFS=$as_save_IFS |
---|
1770 | test -z "$as_dir" && as_dir=. |
---|
1771 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1772 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
1773 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
1774 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1775 | break 2 |
---|
1776 | fi |
---|
1777 | done |
---|
1778 | done |
---|
1779 | IFS=$as_save_IFS |
---|
1780 | |
---|
1781 | fi |
---|
1782 | fi |
---|
1783 | CXX=$ac_cv_prog_CXX |
---|
1784 | if test -n "$CXX"; then |
---|
1785 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
1786 | echo "${ECHO_T}$CXX" >&6; } |
---|
1787 | else |
---|
1788 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
1789 | echo "${ECHO_T}no" >&6; } |
---|
1790 | fi |
---|
1791 | |
---|
1792 | |
---|
1793 | test -n "$CXX" && break |
---|
1794 | done |
---|
1795 | fi |
---|
1796 | if test -z "$CXX"; then |
---|
1797 | ac_ct_CXX=$CXX |
---|
1798 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
1799 | do |
---|
1800 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1801 | set dummy $ac_prog; ac_word=$2 |
---|
1802 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1803 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
1804 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
1805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1806 | else |
---|
1807 | if test -n "$ac_ct_CXX"; then |
---|
1808 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
1809 | else |
---|
1810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1811 | for as_dir in $PATH |
---|
1812 | do |
---|
1813 | IFS=$as_save_IFS |
---|
1814 | test -z "$as_dir" && as_dir=. |
---|
1815 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1816 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
1817 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
1818 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1819 | break 2 |
---|
1820 | fi |
---|
1821 | done |
---|
1822 | done |
---|
1823 | IFS=$as_save_IFS |
---|
1824 | |
---|
1825 | fi |
---|
1826 | fi |
---|
1827 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
1828 | if test -n "$ac_ct_CXX"; then |
---|
1829 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
1830 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
---|
1831 | else |
---|
1832 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
1833 | echo "${ECHO_T}no" >&6; } |
---|
1834 | fi |
---|
1835 | |
---|
1836 | |
---|
1837 | test -n "$ac_ct_CXX" && break |
---|
1838 | done |
---|
1839 | |
---|
1840 | if test "x$ac_ct_CXX" = x; then |
---|
1841 | CXX="g++" |
---|
1842 | else |
---|
1843 | case $cross_compiling:$ac_tool_warned in |
---|
1844 | yes:) |
---|
1845 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
1846 | whose name does not start with the host triplet. If you think this |
---|
1847 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
1848 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
1849 | whose name does not start with the host triplet. If you think this |
---|
1850 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
1851 | ac_tool_warned=yes ;; |
---|
1852 | esac |
---|
1853 | CXX=$ac_ct_CXX |
---|
1854 | fi |
---|
1855 | fi |
---|
1856 | |
---|
1857 | fi |
---|
1858 | fi |
---|
1859 | # Provide some information about the compiler. |
---|
1860 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
---|
1861 | ac_compiler=`set X $ac_compile; echo $2` |
---|
1862 | { (ac_try="$ac_compiler --version >&5" |
---|
1863 | case "(($ac_try" in |
---|
1864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1865 | *) ac_try_echo=$ac_try;; |
---|
1866 | esac |
---|
1867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
1868 | (eval "$ac_compiler --version >&5") 2>&5 |
---|
1869 | ac_status=$? |
---|
1870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1871 | (exit $ac_status); } |
---|
1872 | { (ac_try="$ac_compiler -v >&5" |
---|
1873 | case "(($ac_try" in |
---|
1874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1875 | *) ac_try_echo=$ac_try;; |
---|
1876 | esac |
---|
1877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
1878 | (eval "$ac_compiler -v >&5") 2>&5 |
---|
1879 | ac_status=$? |
---|
1880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1881 | (exit $ac_status); } |
---|
1882 | { (ac_try="$ac_compiler -V >&5" |
---|
1883 | case "(($ac_try" in |
---|
1884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1885 | *) ac_try_echo=$ac_try;; |
---|
1886 | esac |
---|
1887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
1888 | (eval "$ac_compiler -V >&5") 2>&5 |
---|
1889 | ac_status=$? |
---|
1890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1891 | (exit $ac_status); } |
---|
1892 | |
---|
1893 | cat >conftest.$ac_ext <<_ACEOF |
---|
1894 | /* confdefs.h. */ |
---|
1895 | _ACEOF |
---|
1896 | cat confdefs.h >>conftest.$ac_ext |
---|
1897 | cat >>conftest.$ac_ext <<_ACEOF |
---|
1898 | /* end confdefs.h. */ |
---|
1899 | |
---|
1900 | int |
---|
1901 | main () |
---|
1902 | { |
---|
1903 | |
---|
1904 | ; |
---|
1905 | return 0; |
---|
1906 | } |
---|
1907 | _ACEOF |
---|
1908 | ac_clean_files_save=$ac_clean_files |
---|
1909 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
1910 | # Try to create an executable without -o first, disregard a.out. |
---|
1911 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
1912 | # of exeext. |
---|
1913 | { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
---|
1914 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; } |
---|
1915 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
1916 | # |
---|
1917 | # List of possible output files, starting from the most likely. |
---|
1918 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
---|
1919 | # only as a last resort. b.out is created by i960 compilers. |
---|
1920 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
---|
1921 | # |
---|
1922 | # The IRIX 6 linker writes into existing files which may not be |
---|
1923 | # executable, retaining their permissions. Remove them first so a |
---|
1924 | # subsequent execution test works. |
---|
1925 | ac_rmfiles= |
---|
1926 | for ac_file in $ac_files |
---|
1927 | do |
---|
1928 | case $ac_file in |
---|
1929 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
---|
1930 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
1931 | esac |
---|
1932 | done |
---|
1933 | rm -f $ac_rmfiles |
---|
1934 | |
---|
1935 | if { (ac_try="$ac_link_default" |
---|
1936 | case "(($ac_try" in |
---|
1937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1938 | *) ac_try_echo=$ac_try;; |
---|
1939 | esac |
---|
1940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
1941 | (eval "$ac_link_default") 2>&5 |
---|
1942 | ac_status=$? |
---|
1943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1944 | (exit $ac_status); }; then |
---|
1945 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
1946 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
1947 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
1948 | # so that the user can short-circuit this test for compilers unknown to |
---|
1949 | # Autoconf. |
---|
1950 | for ac_file in $ac_files '' |
---|
1951 | do |
---|
1952 | test -f "$ac_file" || continue |
---|
1953 | case $ac_file in |
---|
1954 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
---|
1955 | ;; |
---|
1956 | [ab].out ) |
---|
1957 | # We found the default executable, but exeext='' is most |
---|
1958 | # certainly right. |
---|
1959 | break;; |
---|
1960 | *.* ) |
---|
1961 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
1962 | then :; else |
---|
1963 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
1964 | fi |
---|
1965 | # We set ac_cv_exeext here because the later test for it is not |
---|
1966 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
1967 | # argument, so we may need to know it at that point already. |
---|
1968 | # Even if this section looks crufty: it has the advantage of |
---|
1969 | # actually working. |
---|
1970 | break;; |
---|
1971 | * ) |
---|
1972 | break;; |
---|
1973 | esac |
---|
1974 | done |
---|
1975 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
1976 | |
---|
1977 | else |
---|
1978 | ac_file='' |
---|
1979 | fi |
---|
1980 | |
---|
1981 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
1982 | echo "${ECHO_T}$ac_file" >&6; } |
---|
1983 | if test -z "$ac_file"; then |
---|
1984 | echo "$as_me: failed program was:" >&5 |
---|
1985 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1986 | |
---|
1987 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
---|
1988 | See \`config.log' for more details." >&5 |
---|
1989 | echo "$as_me: error: C++ compiler cannot create executables |
---|
1990 | See \`config.log' for more details." >&2;} |
---|
1991 | { (exit 77); exit 77; }; } |
---|
1992 | fi |
---|
1993 | |
---|
1994 | ac_exeext=$ac_cv_exeext |
---|
1995 | |
---|
1996 | # Check that the compiler produces executables we can run. If not, either |
---|
1997 | # the compiler is broken, or we cross compile. |
---|
1998 | { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
---|
1999 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; } |
---|
2000 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
2001 | # If not cross compiling, check that we can run a simple program. |
---|
2002 | if test "$cross_compiling" != yes; then |
---|
2003 | if { ac_try='./$ac_file' |
---|
2004 | { (case "(($ac_try" in |
---|
2005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2006 | *) ac_try_echo=$ac_try;; |
---|
2007 | esac |
---|
2008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
2009 | (eval "$ac_try") 2>&5 |
---|
2010 | ac_status=$? |
---|
2011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2012 | (exit $ac_status); }; }; then |
---|
2013 | cross_compiling=no |
---|
2014 | else |
---|
2015 | if test "$cross_compiling" = maybe; then |
---|
2016 | cross_compiling=yes |
---|
2017 | else |
---|
2018 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
---|
2019 | If you meant to cross compile, use \`--host'. |
---|
2020 | See \`config.log' for more details." >&5 |
---|
2021 | echo "$as_me: error: cannot run C++ compiled programs. |
---|
2022 | If you meant to cross compile, use \`--host'. |
---|
2023 | See \`config.log' for more details." >&2;} |
---|
2024 | { (exit 1); exit 1; }; } |
---|
2025 | fi |
---|
2026 | fi |
---|
2027 | fi |
---|
2028 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
2029 | echo "${ECHO_T}yes" >&6; } |
---|
2030 | |
---|
2031 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
2032 | ac_clean_files=$ac_clean_files_save |
---|
2033 | # Check that the compiler produces executables we can run. If not, either |
---|
2034 | # the compiler is broken, or we cross compile. |
---|
2035 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
2036 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
---|
2037 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
2038 | echo "${ECHO_T}$cross_compiling" >&6; } |
---|
2039 | |
---|
2040 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
2041 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
---|
2042 | if { (ac_try="$ac_link" |
---|
2043 | case "(($ac_try" in |
---|
2044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2045 | *) ac_try_echo=$ac_try;; |
---|
2046 | esac |
---|
2047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
2048 | (eval "$ac_link") 2>&5 |
---|
2049 | ac_status=$? |
---|
2050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2051 | (exit $ac_status); }; then |
---|
2052 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2053 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2054 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2055 | # `rm'. |
---|
2056 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2057 | test -f "$ac_file" || continue |
---|
2058 | case $ac_file in |
---|
2059 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
---|
2060 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2061 | break;; |
---|
2062 | * ) break;; |
---|
2063 | esac |
---|
2064 | done |
---|
2065 | else |
---|
2066 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
2067 | See \`config.log' for more details." >&5 |
---|
2068 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
2069 | See \`config.log' for more details." >&2;} |
---|
2070 | { (exit 1); exit 1; }; } |
---|
2071 | fi |
---|
2072 | |
---|
2073 | rm -f conftest$ac_cv_exeext |
---|
2074 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2075 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
---|
2076 | |
---|
2077 | rm -f conftest.$ac_ext |
---|
2078 | EXEEXT=$ac_cv_exeext |
---|
2079 | ac_exeext=$EXEEXT |
---|
2080 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2081 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
---|
2082 | if test "${ac_cv_objext+set}" = set; then |
---|
2083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2084 | else |
---|
2085 | cat >conftest.$ac_ext <<_ACEOF |
---|
2086 | /* confdefs.h. */ |
---|
2087 | _ACEOF |
---|
2088 | cat confdefs.h >>conftest.$ac_ext |
---|
2089 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2090 | /* end confdefs.h. */ |
---|
2091 | |
---|
2092 | int |
---|
2093 | main () |
---|
2094 | { |
---|
2095 | |
---|
2096 | ; |
---|
2097 | return 0; |
---|
2098 | } |
---|
2099 | _ACEOF |
---|
2100 | rm -f conftest.o conftest.obj |
---|
2101 | if { (ac_try="$ac_compile" |
---|
2102 | case "(($ac_try" in |
---|
2103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2104 | *) ac_try_echo=$ac_try;; |
---|
2105 | esac |
---|
2106 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
2107 | (eval "$ac_compile") 2>&5 |
---|
2108 | ac_status=$? |
---|
2109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2110 | (exit $ac_status); }; then |
---|
2111 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
2112 | test -f "$ac_file" || continue; |
---|
2113 | case $ac_file in |
---|
2114 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
---|
2115 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2116 | break;; |
---|
2117 | esac |
---|
2118 | done |
---|
2119 | else |
---|
2120 | echo "$as_me: failed program was:" >&5 |
---|
2121 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2122 | |
---|
2123 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2124 | See \`config.log' for more details." >&5 |
---|
2125 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2126 | See \`config.log' for more details." >&2;} |
---|
2127 | { (exit 1); exit 1; }; } |
---|
2128 | fi |
---|
2129 | |
---|
2130 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2131 | fi |
---|
2132 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2133 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
---|
2134 | OBJEXT=$ac_cv_objext |
---|
2135 | ac_objext=$OBJEXT |
---|
2136 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
2137 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
---|
2138 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
2139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2140 | else |
---|
2141 | cat >conftest.$ac_ext <<_ACEOF |
---|
2142 | /* confdefs.h. */ |
---|
2143 | _ACEOF |
---|
2144 | cat confdefs.h >>conftest.$ac_ext |
---|
2145 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2146 | /* end confdefs.h. */ |
---|
2147 | |
---|
2148 | int |
---|
2149 | main () |
---|
2150 | { |
---|
2151 | #ifndef __GNUC__ |
---|
2152 | choke me |
---|
2153 | #endif |
---|
2154 | |
---|
2155 | ; |
---|
2156 | return 0; |
---|
2157 | } |
---|
2158 | _ACEOF |
---|
2159 | rm -f conftest.$ac_objext |
---|
2160 | if { (ac_try="$ac_compile" |
---|
2161 | case "(($ac_try" in |
---|
2162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2163 | *) ac_try_echo=$ac_try;; |
---|
2164 | esac |
---|
2165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
2166 | (eval "$ac_compile") 2>conftest.er1 |
---|
2167 | ac_status=$? |
---|
2168 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2169 | rm -f conftest.er1 |
---|
2170 | cat conftest.err >&5 |
---|
2171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2172 | (exit $ac_status); } && { |
---|
2173 | test -z "$ac_cxx_werror_flag" || |
---|
2174 | test ! -s conftest.err |
---|
2175 | } && test -s conftest.$ac_objext; then |
---|
2176 | ac_compiler_gnu=yes |
---|
2177 | else |
---|
2178 | echo "$as_me: failed program was:" >&5 |
---|
2179 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2180 | |
---|
2181 | ac_compiler_gnu=no |
---|
2182 | fi |
---|
2183 | |
---|
2184 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2185 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
2186 | |
---|
2187 | fi |
---|
2188 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
2189 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
---|
2190 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
2191 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
2192 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
2193 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
2194 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
---|
2195 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
2196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2197 | else |
---|
2198 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
---|
2199 | ac_cxx_werror_flag=yes |
---|
2200 | ac_cv_prog_cxx_g=no |
---|
2201 | CXXFLAGS="-g" |
---|
2202 | cat >conftest.$ac_ext <<_ACEOF |
---|
2203 | /* confdefs.h. */ |
---|
2204 | _ACEOF |
---|
2205 | cat confdefs.h >>conftest.$ac_ext |
---|
2206 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2207 | /* end confdefs.h. */ |
---|
2208 | |
---|
2209 | int |
---|
2210 | main () |
---|
2211 | { |
---|
2212 | |
---|
2213 | ; |
---|
2214 | return 0; |
---|
2215 | } |
---|
2216 | _ACEOF |
---|
2217 | rm -f conftest.$ac_objext |
---|
2218 | if { (ac_try="$ac_compile" |
---|
2219 | case "(($ac_try" in |
---|
2220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2221 | *) ac_try_echo=$ac_try;; |
---|
2222 | esac |
---|
2223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
2224 | (eval "$ac_compile") 2>conftest.er1 |
---|
2225 | ac_status=$? |
---|
2226 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2227 | rm -f conftest.er1 |
---|
2228 | cat conftest.err >&5 |
---|
2229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2230 | (exit $ac_status); } && { |
---|
2231 | test -z "$ac_cxx_werror_flag" || |
---|
2232 | test ! -s conftest.err |
---|
2233 | } && test -s conftest.$ac_objext; then |
---|
2234 | ac_cv_prog_cxx_g=yes |
---|
2235 | else |
---|
2236 | echo "$as_me: failed program was:" >&5 |
---|
2237 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2238 | |
---|
2239 | CXXFLAGS="" |
---|
2240 | cat >conftest.$ac_ext <<_ACEOF |
---|
2241 | /* confdefs.h. */ |
---|
2242 | _ACEOF |
---|
2243 | cat confdefs.h >>conftest.$ac_ext |
---|
2244 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2245 | /* end confdefs.h. */ |
---|
2246 | |
---|
2247 | int |
---|
2248 | main () |
---|
2249 | { |
---|
2250 | |
---|
2251 | ; |
---|
2252 | return 0; |
---|
2253 | } |
---|
2254 | _ACEOF |
---|
2255 | rm -f conftest.$ac_objext |
---|
2256 | if { (ac_try="$ac_compile" |
---|
2257 | case "(($ac_try" in |
---|
2258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2259 | *) ac_try_echo=$ac_try;; |
---|
2260 | esac |
---|
2261 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
2262 | (eval "$ac_compile") 2>conftest.er1 |
---|
2263 | ac_status=$? |
---|
2264 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2265 | rm -f conftest.er1 |
---|
2266 | cat conftest.err >&5 |
---|
2267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2268 | (exit $ac_status); } && { |
---|
2269 | test -z "$ac_cxx_werror_flag" || |
---|
2270 | test ! -s conftest.err |
---|
2271 | } && test -s conftest.$ac_objext; then |
---|
2272 | : |
---|
2273 | else |
---|
2274 | echo "$as_me: failed program was:" >&5 |
---|
2275 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2276 | |
---|
2277 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
2278 | CXXFLAGS="-g" |
---|
2279 | cat >conftest.$ac_ext <<_ACEOF |
---|
2280 | /* confdefs.h. */ |
---|
2281 | _ACEOF |
---|
2282 | cat confdefs.h >>conftest.$ac_ext |
---|
2283 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2284 | /* end confdefs.h. */ |
---|
2285 | |
---|
2286 | int |
---|
2287 | main () |
---|
2288 | { |
---|
2289 | |
---|
2290 | ; |
---|
2291 | return 0; |
---|
2292 | } |
---|
2293 | _ACEOF |
---|
2294 | rm -f conftest.$ac_objext |
---|
2295 | if { (ac_try="$ac_compile" |
---|
2296 | case "(($ac_try" in |
---|
2297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2298 | *) ac_try_echo=$ac_try;; |
---|
2299 | esac |
---|
2300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
2301 | (eval "$ac_compile") 2>conftest.er1 |
---|
2302 | ac_status=$? |
---|
2303 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2304 | rm -f conftest.er1 |
---|
2305 | cat conftest.err >&5 |
---|
2306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2307 | (exit $ac_status); } && { |
---|
2308 | test -z "$ac_cxx_werror_flag" || |
---|
2309 | test ! -s conftest.err |
---|
2310 | } && test -s conftest.$ac_objext; then |
---|
2311 | ac_cv_prog_cxx_g=yes |
---|
2312 | else |
---|
2313 | echo "$as_me: failed program was:" >&5 |
---|
2314 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2315 | |
---|
2316 | |
---|
2317 | fi |
---|
2318 | |
---|
2319 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2320 | fi |
---|
2321 | |
---|
2322 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2323 | fi |
---|
2324 | |
---|
2325 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2326 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
2327 | fi |
---|
2328 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
2329 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
---|
2330 | if test "$ac_test_CXXFLAGS" = set; then |
---|
2331 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
2332 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
2333 | if test "$GXX" = yes; then |
---|
2334 | CXXFLAGS="-g -O2" |
---|
2335 | else |
---|
2336 | CXXFLAGS="-g" |
---|
2337 | fi |
---|
2338 | else |
---|
2339 | if test "$GXX" = yes; then |
---|
2340 | CXXFLAGS="-O2" |
---|
2341 | else |
---|
2342 | CXXFLAGS= |
---|
2343 | fi |
---|
2344 | fi |
---|
2345 | ac_ext=c |
---|
2346 | ac_cpp='$CPP $CPPFLAGS' |
---|
2347 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2348 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2349 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2350 | |
---|
2351 | ac_ext=c |
---|
2352 | ac_cpp='$CPP $CPPFLAGS' |
---|
2353 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2354 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2355 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2356 | if test -n "$ac_tool_prefix"; then |
---|
2357 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2358 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2359 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2360 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
2361 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2362 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2363 | else |
---|
2364 | if test -n "$CC"; then |
---|
2365 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2366 | else |
---|
2367 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2368 | for as_dir in $PATH |
---|
2369 | do |
---|
2370 | IFS=$as_save_IFS |
---|
2371 | test -z "$as_dir" && as_dir=. |
---|
2372 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2373 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2374 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2375 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2376 | break 2 |
---|
2377 | fi |
---|
2378 | done |
---|
2379 | done |
---|
2380 | IFS=$as_save_IFS |
---|
2381 | |
---|
2382 | fi |
---|
2383 | fi |
---|
2384 | CC=$ac_cv_prog_CC |
---|
2385 | if test -n "$CC"; then |
---|
2386 | { echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2387 | echo "${ECHO_T}$CC" >&6; } |
---|
2388 | else |
---|
2389 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
2390 | echo "${ECHO_T}no" >&6; } |
---|
2391 | fi |
---|
2392 | |
---|
2393 | |
---|
2394 | fi |
---|
2395 | if test -z "$ac_cv_prog_CC"; then |
---|
2396 | ac_ct_CC=$CC |
---|
2397 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2398 | set dummy gcc; ac_word=$2 |
---|
2399 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2400 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
2401 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2403 | else |
---|
2404 | if test -n "$ac_ct_CC"; then |
---|
2405 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2406 | else |
---|
2407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2408 | for as_dir in $PATH |
---|
2409 | do |
---|
2410 | IFS=$as_save_IFS |
---|
2411 | test -z "$as_dir" && as_dir=. |
---|
2412 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2413 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2414 | ac_cv_prog_ac_ct_CC="gcc" |
---|
2415 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2416 | break 2 |
---|
2417 | fi |
---|
2418 | done |
---|
2419 | done |
---|
2420 | IFS=$as_save_IFS |
---|
2421 | |
---|
2422 | fi |
---|
2423 | fi |
---|
2424 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2425 | if test -n "$ac_ct_CC"; then |
---|
2426 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2427 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
---|
2428 | else |
---|
2429 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
2430 | echo "${ECHO_T}no" >&6; } |
---|
2431 | fi |
---|
2432 | |
---|
2433 | if test "x$ac_ct_CC" = x; then |
---|
2434 | CC="" |
---|
2435 | else |
---|
2436 | case $cross_compiling:$ac_tool_warned in |
---|
2437 | yes:) |
---|
2438 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
2439 | whose name does not start with the host triplet. If you think this |
---|
2440 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
2441 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
2442 | whose name does not start with the host triplet. If you think this |
---|
2443 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
2444 | ac_tool_warned=yes ;; |
---|
2445 | esac |
---|
2446 | CC=$ac_ct_CC |
---|
2447 | fi |
---|
2448 | else |
---|
2449 | CC="$ac_cv_prog_CC" |
---|
2450 | fi |
---|
2451 | |
---|
2452 | if test -z "$CC"; then |
---|
2453 | if test -n "$ac_tool_prefix"; then |
---|
2454 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
2455 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
2456 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2457 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
2458 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2460 | else |
---|
2461 | if test -n "$CC"; then |
---|
2462 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2463 | else |
---|
2464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2465 | for as_dir in $PATH |
---|
2466 | do |
---|
2467 | IFS=$as_save_IFS |
---|
2468 | test -z "$as_dir" && as_dir=. |
---|
2469 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2470 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2471 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
2472 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2473 | break 2 |
---|
2474 | fi |
---|
2475 | done |
---|
2476 | done |
---|
2477 | IFS=$as_save_IFS |
---|
2478 | |
---|
2479 | fi |
---|
2480 | fi |
---|
2481 | CC=$ac_cv_prog_CC |
---|
2482 | if test -n "$CC"; then |
---|
2483 | { echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2484 | echo "${ECHO_T}$CC" >&6; } |
---|
2485 | else |
---|
2486 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
2487 | echo "${ECHO_T}no" >&6; } |
---|
2488 | fi |
---|
2489 | |
---|
2490 | |
---|
2491 | fi |
---|
2492 | fi |
---|
2493 | if test -z "$CC"; then |
---|
2494 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2495 | set dummy cc; ac_word=$2 |
---|
2496 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2497 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
2498 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2500 | else |
---|
2501 | if test -n "$CC"; then |
---|
2502 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2503 | else |
---|
2504 | ac_prog_rejected=no |
---|
2505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2506 | for as_dir in $PATH |
---|
2507 | do |
---|
2508 | IFS=$as_save_IFS |
---|
2509 | test -z "$as_dir" && as_dir=. |
---|
2510 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2511 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2512 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2513 | ac_prog_rejected=yes |
---|
2514 | continue |
---|
2515 | fi |
---|
2516 | ac_cv_prog_CC="cc" |
---|
2517 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2518 | break 2 |
---|
2519 | fi |
---|
2520 | done |
---|
2521 | done |
---|
2522 | IFS=$as_save_IFS |
---|
2523 | |
---|
2524 | if test $ac_prog_rejected = yes; then |
---|
2525 | # We found a bogon in the path, so make sure we never use it. |
---|
2526 | set dummy $ac_cv_prog_CC |
---|
2527 | shift |
---|
2528 | if test $# != 0; then |
---|
2529 | # We chose a different compiler from the bogus one. |
---|
2530 | # However, it has the same basename, so the bogon will be chosen |
---|
2531 | # first if we set CC to just the basename; use the full file name. |
---|
2532 | shift |
---|
2533 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
2534 | fi |
---|
2535 | fi |
---|
2536 | fi |
---|
2537 | fi |
---|
2538 | CC=$ac_cv_prog_CC |
---|
2539 | if test -n "$CC"; then |
---|
2540 | { echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2541 | echo "${ECHO_T}$CC" >&6; } |
---|
2542 | else |
---|
2543 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
2544 | echo "${ECHO_T}no" >&6; } |
---|
2545 | fi |
---|
2546 | |
---|
2547 | |
---|
2548 | fi |
---|
2549 | if test -z "$CC"; then |
---|
2550 | if test -n "$ac_tool_prefix"; then |
---|
2551 | for ac_prog in cl.exe |
---|
2552 | do |
---|
2553 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2554 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2555 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2556 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
2557 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2559 | else |
---|
2560 | if test -n "$CC"; then |
---|
2561 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2562 | else |
---|
2563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2564 | for as_dir in $PATH |
---|
2565 | do |
---|
2566 | IFS=$as_save_IFS |
---|
2567 | test -z "$as_dir" && as_dir=. |
---|
2568 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2569 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2570 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2571 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2572 | break 2 |
---|
2573 | fi |
---|
2574 | done |
---|
2575 | done |
---|
2576 | IFS=$as_save_IFS |
---|
2577 | |
---|
2578 | fi |
---|
2579 | fi |
---|
2580 | CC=$ac_cv_prog_CC |
---|
2581 | if test -n "$CC"; then |
---|
2582 | { echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2583 | echo "${ECHO_T}$CC" >&6; } |
---|
2584 | else |
---|
2585 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
2586 | echo "${ECHO_T}no" >&6; } |
---|
2587 | fi |
---|
2588 | |
---|
2589 | |
---|
2590 | test -n "$CC" && break |
---|
2591 | done |
---|
2592 | fi |
---|
2593 | if test -z "$CC"; then |
---|
2594 | ac_ct_CC=$CC |
---|
2595 | for ac_prog in cl.exe |
---|
2596 | do |
---|
2597 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2598 | set dummy $ac_prog; ac_word=$2 |
---|
2599 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2600 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
2601 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2603 | else |
---|
2604 | if test -n "$ac_ct_CC"; then |
---|
2605 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2606 | else |
---|
2607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2608 | for as_dir in $PATH |
---|
2609 | do |
---|
2610 | IFS=$as_save_IFS |
---|
2611 | test -z "$as_dir" && as_dir=. |
---|
2612 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2613 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2614 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2615 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2616 | break 2 |
---|
2617 | fi |
---|
2618 | done |
---|
2619 | done |
---|
2620 | IFS=$as_save_IFS |
---|
2621 | |
---|
2622 | fi |
---|
2623 | fi |
---|
2624 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2625 | if test -n "$ac_ct_CC"; then |
---|
2626 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2627 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
---|
2628 | else |
---|
2629 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
2630 | echo "${ECHO_T}no" >&6; } |
---|
2631 | fi |
---|
2632 | |
---|
2633 | |
---|
2634 | test -n "$ac_ct_CC" && break |
---|
2635 | done |
---|
2636 | |
---|
2637 | if test "x$ac_ct_CC" = x; then |
---|
2638 | CC="" |
---|
2639 | else |
---|
2640 | case $cross_compiling:$ac_tool_warned in |
---|
2641 | yes:) |
---|
2642 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
2643 | whose name does not start with the host triplet. If you think this |
---|
2644 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
2645 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
2646 | whose name does not start with the host triplet. If you think this |
---|
2647 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
2648 | ac_tool_warned=yes ;; |
---|
2649 | esac |
---|
2650 | CC=$ac_ct_CC |
---|
2651 | fi |
---|
2652 | fi |
---|
2653 | |
---|
2654 | fi |
---|
2655 | |
---|
2656 | |
---|
2657 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
2658 | See \`config.log' for more details." >&5 |
---|
2659 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
2660 | See \`config.log' for more details." >&2;} |
---|
2661 | { (exit 1); exit 1; }; } |
---|
2662 | |
---|
2663 | # Provide some information about the compiler. |
---|
2664 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
---|
2665 | ac_compiler=`set X $ac_compile; echo $2` |
---|
2666 | { (ac_try="$ac_compiler --version >&5" |
---|
2667 | case "(($ac_try" in |
---|
2668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2669 | *) ac_try_echo=$ac_try;; |
---|
2670 | esac |
---|
2671 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
2672 | (eval "$ac_compiler --version >&5") 2>&5 |
---|
2673 | ac_status=$? |
---|
2674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2675 | (exit $ac_status); } |
---|
2676 | { (ac_try="$ac_compiler -v >&5" |
---|
2677 | case "(($ac_try" in |
---|
2678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2679 | *) ac_try_echo=$ac_try;; |
---|
2680 | esac |
---|
2681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
2682 | (eval "$ac_compiler -v >&5") 2>&5 |
---|
2683 | ac_status=$? |
---|
2684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2685 | (exit $ac_status); } |
---|
2686 | { (ac_try="$ac_compiler -V >&5" |
---|
2687 | case "(($ac_try" in |
---|
2688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2689 | *) ac_try_echo=$ac_try;; |
---|
2690 | esac |
---|
2691 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
2692 | (eval "$ac_compiler -V >&5") 2>&5 |
---|
2693 | ac_status=$? |
---|
2694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2695 | (exit $ac_status); } |
---|
2696 | |
---|
2697 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
2698 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
---|
2699 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
2700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2701 | else |
---|
2702 | cat >conftest.$ac_ext <<_ACEOF |
---|
2703 | /* confdefs.h. */ |
---|
2704 | _ACEOF |
---|
2705 | cat confdefs.h >>conftest.$ac_ext |
---|
2706 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2707 | /* end confdefs.h. */ |
---|
2708 | |
---|
2709 | int |
---|
2710 | main () |
---|
2711 | { |
---|
2712 | #ifndef __GNUC__ |
---|
2713 | choke me |
---|
2714 | #endif |
---|
2715 | |
---|
2716 | ; |
---|
2717 | return 0; |
---|
2718 | } |
---|
2719 | _ACEOF |
---|
2720 | rm -f conftest.$ac_objext |
---|
2721 | if { (ac_try="$ac_compile" |
---|
2722 | case "(($ac_try" in |
---|
2723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2724 | *) ac_try_echo=$ac_try;; |
---|
2725 | esac |
---|
2726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
2727 | (eval "$ac_compile") 2>conftest.er1 |
---|
2728 | ac_status=$? |
---|
2729 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2730 | rm -f conftest.er1 |
---|
2731 | cat conftest.err >&5 |
---|
2732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2733 | (exit $ac_status); } && { |
---|
2734 | test -z "$ac_c_werror_flag" || |
---|
2735 | test ! -s conftest.err |
---|
2736 | } && test -s conftest.$ac_objext; then |
---|
2737 | ac_compiler_gnu=yes |
---|
2738 | else |
---|
2739 | echo "$as_me: failed program was:" >&5 |
---|
2740 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2741 | |
---|
2742 | ac_compiler_gnu=no |
---|
2743 | fi |
---|
2744 | |
---|
2745 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2746 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2747 | |
---|
2748 | fi |
---|
2749 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2750 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
---|
2751 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
2752 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2753 | ac_save_CFLAGS=$CFLAGS |
---|
2754 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
2755 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
---|
2756 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
2757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2758 | else |
---|
2759 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
2760 | ac_c_werror_flag=yes |
---|
2761 | ac_cv_prog_cc_g=no |
---|
2762 | CFLAGS="-g" |
---|
2763 | cat >conftest.$ac_ext <<_ACEOF |
---|
2764 | /* confdefs.h. */ |
---|
2765 | _ACEOF |
---|
2766 | cat confdefs.h >>conftest.$ac_ext |
---|
2767 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2768 | /* end confdefs.h. */ |
---|
2769 | |
---|
2770 | int |
---|
2771 | main () |
---|
2772 | { |
---|
2773 | |
---|
2774 | ; |
---|
2775 | return 0; |
---|
2776 | } |
---|
2777 | _ACEOF |
---|
2778 | rm -f conftest.$ac_objext |
---|
2779 | if { (ac_try="$ac_compile" |
---|
2780 | case "(($ac_try" in |
---|
2781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2782 | *) ac_try_echo=$ac_try;; |
---|
2783 | esac |
---|
2784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
2785 | (eval "$ac_compile") 2>conftest.er1 |
---|
2786 | ac_status=$? |
---|
2787 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2788 | rm -f conftest.er1 |
---|
2789 | cat conftest.err >&5 |
---|
2790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2791 | (exit $ac_status); } && { |
---|
2792 | test -z "$ac_c_werror_flag" || |
---|
2793 | test ! -s conftest.err |
---|
2794 | } && test -s conftest.$ac_objext; then |
---|
2795 | ac_cv_prog_cc_g=yes |
---|
2796 | else |
---|
2797 | echo "$as_me: failed program was:" >&5 |
---|
2798 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2799 | |
---|
2800 | CFLAGS="" |
---|
2801 | cat >conftest.$ac_ext <<_ACEOF |
---|
2802 | /* confdefs.h. */ |
---|
2803 | _ACEOF |
---|
2804 | cat confdefs.h >>conftest.$ac_ext |
---|
2805 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2806 | /* end confdefs.h. */ |
---|
2807 | |
---|
2808 | int |
---|
2809 | main () |
---|
2810 | { |
---|
2811 | |
---|
2812 | ; |
---|
2813 | return 0; |
---|
2814 | } |
---|
2815 | _ACEOF |
---|
2816 | rm -f conftest.$ac_objext |
---|
2817 | if { (ac_try="$ac_compile" |
---|
2818 | case "(($ac_try" in |
---|
2819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2820 | *) ac_try_echo=$ac_try;; |
---|
2821 | esac |
---|
2822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
2823 | (eval "$ac_compile") 2>conftest.er1 |
---|
2824 | ac_status=$? |
---|
2825 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2826 | rm -f conftest.er1 |
---|
2827 | cat conftest.err >&5 |
---|
2828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2829 | (exit $ac_status); } && { |
---|
2830 | test -z "$ac_c_werror_flag" || |
---|
2831 | test ! -s conftest.err |
---|
2832 | } && test -s conftest.$ac_objext; then |
---|
2833 | : |
---|
2834 | else |
---|
2835 | echo "$as_me: failed program was:" >&5 |
---|
2836 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2837 | |
---|
2838 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
2839 | CFLAGS="-g" |
---|
2840 | cat >conftest.$ac_ext <<_ACEOF |
---|
2841 | /* confdefs.h. */ |
---|
2842 | _ACEOF |
---|
2843 | cat confdefs.h >>conftest.$ac_ext |
---|
2844 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2845 | /* end confdefs.h. */ |
---|
2846 | |
---|
2847 | int |
---|
2848 | main () |
---|
2849 | { |
---|
2850 | |
---|
2851 | ; |
---|
2852 | return 0; |
---|
2853 | } |
---|
2854 | _ACEOF |
---|
2855 | rm -f conftest.$ac_objext |
---|
2856 | if { (ac_try="$ac_compile" |
---|
2857 | case "(($ac_try" in |
---|
2858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2859 | *) ac_try_echo=$ac_try;; |
---|
2860 | esac |
---|
2861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
2862 | (eval "$ac_compile") 2>conftest.er1 |
---|
2863 | ac_status=$? |
---|
2864 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2865 | rm -f conftest.er1 |
---|
2866 | cat conftest.err >&5 |
---|
2867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2868 | (exit $ac_status); } && { |
---|
2869 | test -z "$ac_c_werror_flag" || |
---|
2870 | test ! -s conftest.err |
---|
2871 | } && test -s conftest.$ac_objext; then |
---|
2872 | ac_cv_prog_cc_g=yes |
---|
2873 | else |
---|
2874 | echo "$as_me: failed program was:" >&5 |
---|
2875 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2876 | |
---|
2877 | |
---|
2878 | fi |
---|
2879 | |
---|
2880 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2881 | fi |
---|
2882 | |
---|
2883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2884 | fi |
---|
2885 | |
---|
2886 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2887 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
2888 | fi |
---|
2889 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
2890 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
---|
2891 | if test "$ac_test_CFLAGS" = set; then |
---|
2892 | CFLAGS=$ac_save_CFLAGS |
---|
2893 | elif test $ac_cv_prog_cc_g = yes; then |
---|
2894 | if test "$GCC" = yes; then |
---|
2895 | CFLAGS="-g -O2" |
---|
2896 | else |
---|
2897 | CFLAGS="-g" |
---|
2898 | fi |
---|
2899 | else |
---|
2900 | if test "$GCC" = yes; then |
---|
2901 | CFLAGS="-O2" |
---|
2902 | else |
---|
2903 | CFLAGS= |
---|
2904 | fi |
---|
2905 | fi |
---|
2906 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
---|
2907 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
---|
2908 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
---|
2909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2910 | else |
---|
2911 | ac_cv_prog_cc_c89=no |
---|
2912 | ac_save_CC=$CC |
---|
2913 | cat >conftest.$ac_ext <<_ACEOF |
---|
2914 | /* confdefs.h. */ |
---|
2915 | _ACEOF |
---|
2916 | cat confdefs.h >>conftest.$ac_ext |
---|
2917 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2918 | /* end confdefs.h. */ |
---|
2919 | #include <stdarg.h> |
---|
2920 | #include <stdio.h> |
---|
2921 | #include <sys/types.h> |
---|
2922 | #include <sys/stat.h> |
---|
2923 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
2924 | struct buf { int x; }; |
---|
2925 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
2926 | static char *e (p, i) |
---|
2927 | char **p; |
---|
2928 | int i; |
---|
2929 | { |
---|
2930 | return p[i]; |
---|
2931 | } |
---|
2932 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
2933 | { |
---|
2934 | char *s; |
---|
2935 | va_list v; |
---|
2936 | va_start (v,p); |
---|
2937 | s = g (p, va_arg (v,int)); |
---|
2938 | va_end (v); |
---|
2939 | return s; |
---|
2940 | } |
---|
2941 | |
---|
2942 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
2943 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
2944 | These don't provoke an error unfortunately, instead are silently treated |
---|
2945 | as 'x'. The following induces an error, until -std is added to get |
---|
2946 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
2947 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
2948 | that's true only with -std. */ |
---|
2949 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
2950 | |
---|
2951 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
2952 | inside strings and character constants. */ |
---|
2953 | #define FOO(x) 'x' |
---|
2954 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
2955 | |
---|
2956 | int test (int i, double x); |
---|
2957 | struct s1 {int (*f) (int a);}; |
---|
2958 | struct s2 {int (*f) (double a);}; |
---|
2959 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
2960 | int argc; |
---|
2961 | char **argv; |
---|
2962 | int |
---|
2963 | main () |
---|
2964 | { |
---|
2965 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
2966 | ; |
---|
2967 | return 0; |
---|
2968 | } |
---|
2969 | _ACEOF |
---|
2970 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
2971 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
2972 | do |
---|
2973 | CC="$ac_save_CC $ac_arg" |
---|
2974 | rm -f conftest.$ac_objext |
---|
2975 | if { (ac_try="$ac_compile" |
---|
2976 | case "(($ac_try" in |
---|
2977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2978 | *) ac_try_echo=$ac_try;; |
---|
2979 | esac |
---|
2980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
2981 | (eval "$ac_compile") 2>conftest.er1 |
---|
2982 | ac_status=$? |
---|
2983 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2984 | rm -f conftest.er1 |
---|
2985 | cat conftest.err >&5 |
---|
2986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2987 | (exit $ac_status); } && { |
---|
2988 | test -z "$ac_c_werror_flag" || |
---|
2989 | test ! -s conftest.err |
---|
2990 | } && test -s conftest.$ac_objext; then |
---|
2991 | ac_cv_prog_cc_c89=$ac_arg |
---|
2992 | else |
---|
2993 | echo "$as_me: failed program was:" >&5 |
---|
2994 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2995 | |
---|
2996 | |
---|
2997 | fi |
---|
2998 | |
---|
2999 | rm -f core conftest.err conftest.$ac_objext |
---|
3000 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
3001 | done |
---|
3002 | rm -f conftest.$ac_ext |
---|
3003 | CC=$ac_save_CC |
---|
3004 | |
---|
3005 | fi |
---|
3006 | # AC_CACHE_VAL |
---|
3007 | case "x$ac_cv_prog_cc_c89" in |
---|
3008 | x) |
---|
3009 | { echo "$as_me:$LINENO: result: none needed" >&5 |
---|
3010 | echo "${ECHO_T}none needed" >&6; } ;; |
---|
3011 | xno) |
---|
3012 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
---|
3013 | echo "${ECHO_T}unsupported" >&6; } ;; |
---|
3014 | *) |
---|
3015 | CC="$CC $ac_cv_prog_cc_c89" |
---|
3016 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
---|
3017 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
---|
3018 | esac |
---|
3019 | |
---|
3020 | |
---|
3021 | ac_ext=c |
---|
3022 | ac_cpp='$CPP $CPPFLAGS' |
---|
3023 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3024 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3025 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3026 | |
---|
3027 | ac_ext=c |
---|
3028 | ac_cpp='$CPP $CPPFLAGS' |
---|
3029 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3030 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3031 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3032 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
3033 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
---|
3034 | # On Suns, sometimes $CPP names a directory. |
---|
3035 | if test -n "$CPP" && test -d "$CPP"; then |
---|
3036 | CPP= |
---|
3037 | fi |
---|
3038 | if test -z "$CPP"; then |
---|
3039 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
3040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3041 | else |
---|
3042 | # Double quotes because CPP needs to be expanded |
---|
3043 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
3044 | do |
---|
3045 | ac_preproc_ok=false |
---|
3046 | for ac_c_preproc_warn_flag in '' yes |
---|
3047 | do |
---|
3048 | # Use a header file that comes with gcc, so configuring glibc |
---|
3049 | # with a fresh cross-compiler works. |
---|
3050 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3051 | # <limits.h> exists even on freestanding compilers. |
---|
3052 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3053 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3054 | cat >conftest.$ac_ext <<_ACEOF |
---|
3055 | /* confdefs.h. */ |
---|
3056 | _ACEOF |
---|
3057 | cat confdefs.h >>conftest.$ac_ext |
---|
3058 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3059 | /* end confdefs.h. */ |
---|
3060 | #ifdef __STDC__ |
---|
3061 | # include <limits.h> |
---|
3062 | #else |
---|
3063 | # include <assert.h> |
---|
3064 | #endif |
---|
3065 | Syntax error |
---|
3066 | _ACEOF |
---|
3067 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
3068 | case "(($ac_try" in |
---|
3069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3070 | *) ac_try_echo=$ac_try;; |
---|
3071 | esac |
---|
3072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3073 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
3074 | ac_status=$? |
---|
3075 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3076 | rm -f conftest.er1 |
---|
3077 | cat conftest.err >&5 |
---|
3078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3079 | (exit $ac_status); } >/dev/null && { |
---|
3080 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
3081 | test ! -s conftest.err |
---|
3082 | }; then |
---|
3083 | : |
---|
3084 | else |
---|
3085 | echo "$as_me: failed program was:" >&5 |
---|
3086 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3087 | |
---|
3088 | # Broken: fails on valid input. |
---|
3089 | continue |
---|
3090 | fi |
---|
3091 | |
---|
3092 | rm -f conftest.err conftest.$ac_ext |
---|
3093 | |
---|
3094 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
3095 | # can be detected and how. |
---|
3096 | cat >conftest.$ac_ext <<_ACEOF |
---|
3097 | /* confdefs.h. */ |
---|
3098 | _ACEOF |
---|
3099 | cat confdefs.h >>conftest.$ac_ext |
---|
3100 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3101 | /* end confdefs.h. */ |
---|
3102 | #include <ac_nonexistent.h> |
---|
3103 | _ACEOF |
---|
3104 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
3105 | case "(($ac_try" in |
---|
3106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3107 | *) ac_try_echo=$ac_try;; |
---|
3108 | esac |
---|
3109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3110 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
3111 | ac_status=$? |
---|
3112 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3113 | rm -f conftest.er1 |
---|
3114 | cat conftest.err >&5 |
---|
3115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3116 | (exit $ac_status); } >/dev/null && { |
---|
3117 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
3118 | test ! -s conftest.err |
---|
3119 | }; then |
---|
3120 | # Broken: success on invalid input. |
---|
3121 | continue |
---|
3122 | else |
---|
3123 | echo "$as_me: failed program was:" >&5 |
---|
3124 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3125 | |
---|
3126 | # Passes both tests. |
---|
3127 | ac_preproc_ok=: |
---|
3128 | break |
---|
3129 | fi |
---|
3130 | |
---|
3131 | rm -f conftest.err conftest.$ac_ext |
---|
3132 | |
---|
3133 | done |
---|
3134 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3135 | rm -f conftest.err conftest.$ac_ext |
---|
3136 | if $ac_preproc_ok; then |
---|
3137 | break |
---|
3138 | fi |
---|
3139 | |
---|
3140 | done |
---|
3141 | ac_cv_prog_CPP=$CPP |
---|
3142 | |
---|
3143 | fi |
---|
3144 | CPP=$ac_cv_prog_CPP |
---|
3145 | else |
---|
3146 | ac_cv_prog_CPP=$CPP |
---|
3147 | fi |
---|
3148 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
3149 | echo "${ECHO_T}$CPP" >&6; } |
---|
3150 | ac_preproc_ok=false |
---|
3151 | for ac_c_preproc_warn_flag in '' yes |
---|
3152 | do |
---|
3153 | # Use a header file that comes with gcc, so configuring glibc |
---|
3154 | # with a fresh cross-compiler works. |
---|
3155 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3156 | # <limits.h> exists even on freestanding compilers. |
---|
3157 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3158 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3159 | cat >conftest.$ac_ext <<_ACEOF |
---|
3160 | /* confdefs.h. */ |
---|
3161 | _ACEOF |
---|
3162 | cat confdefs.h >>conftest.$ac_ext |
---|
3163 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3164 | /* end confdefs.h. */ |
---|
3165 | #ifdef __STDC__ |
---|
3166 | # include <limits.h> |
---|
3167 | #else |
---|
3168 | # include <assert.h> |
---|
3169 | #endif |
---|
3170 | Syntax error |
---|
3171 | _ACEOF |
---|
3172 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
3173 | case "(($ac_try" in |
---|
3174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3175 | *) ac_try_echo=$ac_try;; |
---|
3176 | esac |
---|
3177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3178 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
3179 | ac_status=$? |
---|
3180 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3181 | rm -f conftest.er1 |
---|
3182 | cat conftest.err >&5 |
---|
3183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3184 | (exit $ac_status); } >/dev/null && { |
---|
3185 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
3186 | test ! -s conftest.err |
---|
3187 | }; then |
---|
3188 | : |
---|
3189 | else |
---|
3190 | echo "$as_me: failed program was:" >&5 |
---|
3191 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3192 | |
---|
3193 | # Broken: fails on valid input. |
---|
3194 | continue |
---|
3195 | fi |
---|
3196 | |
---|
3197 | rm -f conftest.err conftest.$ac_ext |
---|
3198 | |
---|
3199 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
3200 | # can be detected and how. |
---|
3201 | cat >conftest.$ac_ext <<_ACEOF |
---|
3202 | /* confdefs.h. */ |
---|
3203 | _ACEOF |
---|
3204 | cat confdefs.h >>conftest.$ac_ext |
---|
3205 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3206 | /* end confdefs.h. */ |
---|
3207 | #include <ac_nonexistent.h> |
---|
3208 | _ACEOF |
---|
3209 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
3210 | case "(($ac_try" in |
---|
3211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3212 | *) ac_try_echo=$ac_try;; |
---|
3213 | esac |
---|
3214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3215 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
3216 | ac_status=$? |
---|
3217 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3218 | rm -f conftest.er1 |
---|
3219 | cat conftest.err >&5 |
---|
3220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3221 | (exit $ac_status); } >/dev/null && { |
---|
3222 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
3223 | test ! -s conftest.err |
---|
3224 | }; then |
---|
3225 | # Broken: success on invalid input. |
---|
3226 | continue |
---|
3227 | else |
---|
3228 | echo "$as_me: failed program was:" >&5 |
---|
3229 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3230 | |
---|
3231 | # Passes both tests. |
---|
3232 | ac_preproc_ok=: |
---|
3233 | break |
---|
3234 | fi |
---|
3235 | |
---|
3236 | rm -f conftest.err conftest.$ac_ext |
---|
3237 | |
---|
3238 | done |
---|
3239 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3240 | rm -f conftest.err conftest.$ac_ext |
---|
3241 | if $ac_preproc_ok; then |
---|
3242 | : |
---|
3243 | else |
---|
3244 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
3245 | See \`config.log' for more details." >&5 |
---|
3246 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
3247 | See \`config.log' for more details." >&2;} |
---|
3248 | { (exit 1); exit 1; }; } |
---|
3249 | fi |
---|
3250 | |
---|
3251 | ac_ext=c |
---|
3252 | ac_cpp='$CPP $CPPFLAGS' |
---|
3253 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3254 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3255 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3256 | |
---|
3257 | ac_ext=f |
---|
3258 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
3259 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3260 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
3261 | if test -n "$ac_tool_prefix"; then |
---|
3262 | for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn |
---|
3263 | do |
---|
3264 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3265 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3266 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3267 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
3268 | if test "${ac_cv_prog_F77+set}" = set; then |
---|
3269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3270 | else |
---|
3271 | if test -n "$F77"; then |
---|
3272 | ac_cv_prog_F77="$F77" # Let the user override the test. |
---|
3273 | else |
---|
3274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3275 | for as_dir in $PATH |
---|
3276 | do |
---|
3277 | IFS=$as_save_IFS |
---|
3278 | test -z "$as_dir" && as_dir=. |
---|
3279 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3280 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3281 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
---|
3282 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3283 | break 2 |
---|
3284 | fi |
---|
3285 | done |
---|
3286 | done |
---|
3287 | IFS=$as_save_IFS |
---|
3288 | |
---|
3289 | fi |
---|
3290 | fi |
---|
3291 | F77=$ac_cv_prog_F77 |
---|
3292 | if test -n "$F77"; then |
---|
3293 | { echo "$as_me:$LINENO: result: $F77" >&5 |
---|
3294 | echo "${ECHO_T}$F77" >&6; } |
---|
3295 | else |
---|
3296 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
3297 | echo "${ECHO_T}no" >&6; } |
---|
3298 | fi |
---|
3299 | |
---|
3300 | |
---|
3301 | test -n "$F77" && break |
---|
3302 | done |
---|
3303 | fi |
---|
3304 | if test -z "$F77"; then |
---|
3305 | ac_ct_F77=$F77 |
---|
3306 | for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn |
---|
3307 | do |
---|
3308 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3309 | set dummy $ac_prog; ac_word=$2 |
---|
3310 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3311 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
3312 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
---|
3313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3314 | else |
---|
3315 | if test -n "$ac_ct_F77"; then |
---|
3316 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
---|
3317 | else |
---|
3318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3319 | for as_dir in $PATH |
---|
3320 | do |
---|
3321 | IFS=$as_save_IFS |
---|
3322 | test -z "$as_dir" && as_dir=. |
---|
3323 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3324 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3325 | ac_cv_prog_ac_ct_F77="$ac_prog" |
---|
3326 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3327 | break 2 |
---|
3328 | fi |
---|
3329 | done |
---|
3330 | done |
---|
3331 | IFS=$as_save_IFS |
---|
3332 | |
---|
3333 | fi |
---|
3334 | fi |
---|
3335 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
---|
3336 | if test -n "$ac_ct_F77"; then |
---|
3337 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
---|
3338 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
---|
3339 | else |
---|
3340 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
3341 | echo "${ECHO_T}no" >&6; } |
---|
3342 | fi |
---|
3343 | |
---|
3344 | |
---|
3345 | test -n "$ac_ct_F77" && break |
---|
3346 | done |
---|
3347 | |
---|
3348 | if test "x$ac_ct_F77" = x; then |
---|
3349 | F77="" |
---|
3350 | else |
---|
3351 | case $cross_compiling:$ac_tool_warned in |
---|
3352 | yes:) |
---|
3353 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
3354 | whose name does not start with the host triplet. If you think this |
---|
3355 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
3356 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
3357 | whose name does not start with the host triplet. If you think this |
---|
3358 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
3359 | ac_tool_warned=yes ;; |
---|
3360 | esac |
---|
3361 | F77=$ac_ct_F77 |
---|
3362 | fi |
---|
3363 | fi |
---|
3364 | |
---|
3365 | |
---|
3366 | # Provide some information about the compiler. |
---|
3367 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
---|
3368 | ac_compiler=`set X $ac_compile; echo $2` |
---|
3369 | { (ac_try="$ac_compiler --version >&5" |
---|
3370 | case "(($ac_try" in |
---|
3371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3372 | *) ac_try_echo=$ac_try;; |
---|
3373 | esac |
---|
3374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3375 | (eval "$ac_compiler --version >&5") 2>&5 |
---|
3376 | ac_status=$? |
---|
3377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3378 | (exit $ac_status); } |
---|
3379 | { (ac_try="$ac_compiler -v >&5" |
---|
3380 | case "(($ac_try" in |
---|
3381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3382 | *) ac_try_echo=$ac_try;; |
---|
3383 | esac |
---|
3384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3385 | (eval "$ac_compiler -v >&5") 2>&5 |
---|
3386 | ac_status=$? |
---|
3387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3388 | (exit $ac_status); } |
---|
3389 | { (ac_try="$ac_compiler -V >&5" |
---|
3390 | case "(($ac_try" in |
---|
3391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3392 | *) ac_try_echo=$ac_try;; |
---|
3393 | esac |
---|
3394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3395 | (eval "$ac_compiler -V >&5") 2>&5 |
---|
3396 | ac_status=$? |
---|
3397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3398 | (exit $ac_status); } |
---|
3399 | rm -f a.out |
---|
3400 | |
---|
3401 | # If we don't use `.F' as extension, the preprocessor is not run on the |
---|
3402 | # input file. (Note that this only needs to work for GNU compilers.) |
---|
3403 | ac_save_ext=$ac_ext |
---|
3404 | ac_ext=F |
---|
3405 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
---|
3406 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } |
---|
3407 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
---|
3408 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3409 | else |
---|
3410 | cat >conftest.$ac_ext <<_ACEOF |
---|
3411 | program main |
---|
3412 | #ifndef __GNUC__ |
---|
3413 | choke me |
---|
3414 | #endif |
---|
3415 | |
---|
3416 | end |
---|
3417 | _ACEOF |
---|
3418 | rm -f conftest.$ac_objext |
---|
3419 | if { (ac_try="$ac_compile" |
---|
3420 | case "(($ac_try" in |
---|
3421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3422 | *) ac_try_echo=$ac_try;; |
---|
3423 | esac |
---|
3424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3425 | (eval "$ac_compile") 2>conftest.er1 |
---|
3426 | ac_status=$? |
---|
3427 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3428 | rm -f conftest.er1 |
---|
3429 | cat conftest.err >&5 |
---|
3430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3431 | (exit $ac_status); } && { |
---|
3432 | test -z "$ac_f77_werror_flag" || |
---|
3433 | test ! -s conftest.err |
---|
3434 | } && test -s conftest.$ac_objext; then |
---|
3435 | ac_compiler_gnu=yes |
---|
3436 | else |
---|
3437 | echo "$as_me: failed program was:" >&5 |
---|
3438 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3439 | |
---|
3440 | ac_compiler_gnu=no |
---|
3441 | fi |
---|
3442 | |
---|
3443 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3444 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
---|
3445 | |
---|
3446 | fi |
---|
3447 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
---|
3448 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
---|
3449 | ac_ext=$ac_save_ext |
---|
3450 | ac_test_FFLAGS=${FFLAGS+set} |
---|
3451 | ac_save_FFLAGS=$FFLAGS |
---|
3452 | FFLAGS= |
---|
3453 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
---|
3454 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
---|
3455 | if test "${ac_cv_prog_f77_g+set}" = set; then |
---|
3456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3457 | else |
---|
3458 | FFLAGS=-g |
---|
3459 | cat >conftest.$ac_ext <<_ACEOF |
---|
3460 | program main |
---|
3461 | |
---|
3462 | end |
---|
3463 | _ACEOF |
---|
3464 | rm -f conftest.$ac_objext |
---|
3465 | if { (ac_try="$ac_compile" |
---|
3466 | case "(($ac_try" in |
---|
3467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3468 | *) ac_try_echo=$ac_try;; |
---|
3469 | esac |
---|
3470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3471 | (eval "$ac_compile") 2>conftest.er1 |
---|
3472 | ac_status=$? |
---|
3473 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3474 | rm -f conftest.er1 |
---|
3475 | cat conftest.err >&5 |
---|
3476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3477 | (exit $ac_status); } && { |
---|
3478 | test -z "$ac_f77_werror_flag" || |
---|
3479 | test ! -s conftest.err |
---|
3480 | } && test -s conftest.$ac_objext; then |
---|
3481 | ac_cv_prog_f77_g=yes |
---|
3482 | else |
---|
3483 | echo "$as_me: failed program was:" >&5 |
---|
3484 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3485 | |
---|
3486 | ac_cv_prog_f77_g=no |
---|
3487 | fi |
---|
3488 | |
---|
3489 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3490 | |
---|
3491 | fi |
---|
3492 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
---|
3493 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
---|
3494 | if test "$ac_test_FFLAGS" = set; then |
---|
3495 | FFLAGS=$ac_save_FFLAGS |
---|
3496 | elif test $ac_cv_prog_f77_g = yes; then |
---|
3497 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
3498 | FFLAGS="-g -O2" |
---|
3499 | else |
---|
3500 | FFLAGS="-g" |
---|
3501 | fi |
---|
3502 | else |
---|
3503 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
3504 | FFLAGS="-O2" |
---|
3505 | else |
---|
3506 | FFLAGS= |
---|
3507 | fi |
---|
3508 | fi |
---|
3509 | |
---|
3510 | G77=`test $ac_compiler_gnu = yes && echo yes` |
---|
3511 | ac_ext=c |
---|
3512 | ac_cpp='$CPP $CPPFLAGS' |
---|
3513 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3514 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3515 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3516 | |
---|
3517 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
---|
3518 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
---|
3519 | LN_S=$as_ln_s |
---|
3520 | if test "$LN_S" = "ln -s"; then |
---|
3521 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
3522 | echo "${ECHO_T}yes" >&6; } |
---|
3523 | else |
---|
3524 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
---|
3525 | echo "${ECHO_T}no, using $LN_S" >&6; } |
---|
3526 | fi |
---|
3527 | |
---|
3528 | for ac_prog in install |
---|
3529 | do |
---|
3530 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3531 | set dummy $ac_prog; ac_word=$2 |
---|
3532 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3533 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
3534 | if test "${ac_cv_prog_INSTALL+set}" = set; then |
---|
3535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3536 | else |
---|
3537 | if test -n "$INSTALL"; then |
---|
3538 | ac_cv_prog_INSTALL="$INSTALL" # Let the user override the test. |
---|
3539 | else |
---|
3540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3541 | for as_dir in $PATH |
---|
3542 | do |
---|
3543 | IFS=$as_save_IFS |
---|
3544 | test -z "$as_dir" && as_dir=. |
---|
3545 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3546 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3547 | ac_cv_prog_INSTALL="$ac_prog" |
---|
3548 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3549 | break 2 |
---|
3550 | fi |
---|
3551 | done |
---|
3552 | done |
---|
3553 | IFS=$as_save_IFS |
---|
3554 | |
---|
3555 | fi |
---|
3556 | fi |
---|
3557 | INSTALL=$ac_cv_prog_INSTALL |
---|
3558 | if test -n "$INSTALL"; then |
---|
3559 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
3560 | echo "${ECHO_T}$INSTALL" >&6; } |
---|
3561 | else |
---|
3562 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
3563 | echo "${ECHO_T}no" >&6; } |
---|
3564 | fi |
---|
3565 | |
---|
3566 | |
---|
3567 | test -n "$INSTALL" && break |
---|
3568 | done |
---|
3569 | |
---|
3570 | |
---|
3571 | # Check for maths library -- will add -lm to $LIBS |
---|
3572 | |
---|
3573 | |
---|
3574 | { echo "$as_me:$LINENO: checking for log in -lm" >&5 |
---|
3575 | echo $ECHO_N "checking for log in -lm... $ECHO_C" >&6; } |
---|
3576 | if test "${ac_cv_lib_m_log+set}" = set; then |
---|
3577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3578 | else |
---|
3579 | ac_check_lib_save_LIBS=$LIBS |
---|
3580 | LIBS="-lm $LIBS" |
---|
3581 | cat >conftest.$ac_ext <<_ACEOF |
---|
3582 | /* confdefs.h. */ |
---|
3583 | _ACEOF |
---|
3584 | cat confdefs.h >>conftest.$ac_ext |
---|
3585 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3586 | /* end confdefs.h. */ |
---|
3587 | |
---|
3588 | /* Override any GCC internal prototype to avoid an error. |
---|
3589 | Use char because int might match the return type of a GCC |
---|
3590 | builtin and then its argument prototype would still apply. */ |
---|
3591 | #ifdef __cplusplus |
---|
3592 | extern "C" |
---|
3593 | #endif |
---|
3594 | char log (); |
---|
3595 | int |
---|
3596 | main () |
---|
3597 | { |
---|
3598 | return log (); |
---|
3599 | ; |
---|
3600 | return 0; |
---|
3601 | } |
---|
3602 | _ACEOF |
---|
3603 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3604 | if { (ac_try="$ac_link" |
---|
3605 | case "(($ac_try" in |
---|
3606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3607 | *) ac_try_echo=$ac_try;; |
---|
3608 | esac |
---|
3609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3610 | (eval "$ac_link") 2>conftest.er1 |
---|
3611 | ac_status=$? |
---|
3612 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3613 | rm -f conftest.er1 |
---|
3614 | cat conftest.err >&5 |
---|
3615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3616 | (exit $ac_status); } && { |
---|
3617 | test -z "$ac_c_werror_flag" || |
---|
3618 | test ! -s conftest.err |
---|
3619 | } && test -s conftest$ac_exeext && |
---|
3620 | $as_test_x conftest$ac_exeext; then |
---|
3621 | ac_cv_lib_m_log=yes |
---|
3622 | else |
---|
3623 | echo "$as_me: failed program was:" >&5 |
---|
3624 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3625 | |
---|
3626 | ac_cv_lib_m_log=no |
---|
3627 | fi |
---|
3628 | |
---|
3629 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
3630 | conftest$ac_exeext conftest.$ac_ext |
---|
3631 | LIBS=$ac_check_lib_save_LIBS |
---|
3632 | fi |
---|
3633 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_log" >&5 |
---|
3634 | echo "${ECHO_T}$ac_cv_lib_m_log" >&6; } |
---|
3635 | if test $ac_cv_lib_m_log = yes; then |
---|
3636 | cat >>confdefs.h <<_ACEOF |
---|
3637 | #define HAVE_LIBM 1 |
---|
3638 | _ACEOF |
---|
3639 | |
---|
3640 | LIBS="-lm $LIBS" |
---|
3641 | |
---|
3642 | fi |
---|
3643 | |
---|
3644 | |
---|
3645 | # Checks for header files. |
---|
3646 | |
---|
3647 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
---|
3648 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
---|
3649 | if test "${ac_cv_path_GREP+set}" = set; then |
---|
3650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3651 | else |
---|
3652 | # Extract the first word of "grep ggrep" to use in msg output |
---|
3653 | if test -z "$GREP"; then |
---|
3654 | set dummy grep ggrep; ac_prog_name=$2 |
---|
3655 | if test "${ac_cv_path_GREP+set}" = set; then |
---|
3656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3657 | else |
---|
3658 | ac_path_GREP_found=false |
---|
3659 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
3660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3661 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
3662 | do |
---|
3663 | IFS=$as_save_IFS |
---|
3664 | test -z "$as_dir" && as_dir=. |
---|
3665 | for ac_prog in grep ggrep; do |
---|
3666 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3667 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
3668 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
---|
3669 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
3670 | # Check for GNU $ac_path_GREP |
---|
3671 | case `"$ac_path_GREP" --version 2>&1` in |
---|
3672 | *GNU*) |
---|
3673 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
3674 | *) |
---|
3675 | ac_count=0 |
---|
3676 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
---|
3677 | while : |
---|
3678 | do |
---|
3679 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
3680 | mv "conftest.tmp" "conftest.in" |
---|
3681 | cp "conftest.in" "conftest.nl" |
---|
3682 | echo 'GREP' >> "conftest.nl" |
---|
3683 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
3684 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
3685 | ac_count=`expr $ac_count + 1` |
---|
3686 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
3687 | # Best one so far, save it but keep looking for a better one |
---|
3688 | ac_cv_path_GREP="$ac_path_GREP" |
---|
3689 | ac_path_GREP_max=$ac_count |
---|
3690 | fi |
---|
3691 | # 10*(2^10) chars as input seems more than enough |
---|
3692 | test $ac_count -gt 10 && break |
---|
3693 | done |
---|
3694 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
3695 | esac |
---|
3696 | |
---|
3697 | |
---|
3698 | $ac_path_GREP_found && break 3 |
---|
3699 | done |
---|
3700 | done |
---|
3701 | |
---|
3702 | done |
---|
3703 | IFS=$as_save_IFS |
---|
3704 | |
---|
3705 | |
---|
3706 | fi |
---|
3707 | |
---|
3708 | GREP="$ac_cv_path_GREP" |
---|
3709 | if test -z "$GREP"; then |
---|
3710 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
---|
3711 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
---|
3712 | { (exit 1); exit 1; }; } |
---|
3713 | fi |
---|
3714 | |
---|
3715 | else |
---|
3716 | ac_cv_path_GREP=$GREP |
---|
3717 | fi |
---|
3718 | |
---|
3719 | |
---|
3720 | fi |
---|
3721 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
---|
3722 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
---|
3723 | GREP="$ac_cv_path_GREP" |
---|
3724 | |
---|
3725 | |
---|
3726 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
3727 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
---|
3728 | if test "${ac_cv_path_EGREP+set}" = set; then |
---|
3729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3730 | else |
---|
3731 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
3732 | then ac_cv_path_EGREP="$GREP -E" |
---|
3733 | else |
---|
3734 | # Extract the first word of "egrep" to use in msg output |
---|
3735 | if test -z "$EGREP"; then |
---|
3736 | set dummy egrep; ac_prog_name=$2 |
---|
3737 | if test "${ac_cv_path_EGREP+set}" = set; then |
---|
3738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3739 | else |
---|
3740 | ac_path_EGREP_found=false |
---|
3741 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
3742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3743 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
3744 | do |
---|
3745 | IFS=$as_save_IFS |
---|
3746 | test -z "$as_dir" && as_dir=. |
---|
3747 | for ac_prog in egrep; do |
---|
3748 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3749 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
3750 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
---|
3751 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
3752 | # Check for GNU $ac_path_EGREP |
---|
3753 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
3754 | *GNU*) |
---|
3755 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
3756 | *) |
---|
3757 | ac_count=0 |
---|
3758 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
---|
3759 | while : |
---|
3760 | do |
---|
3761 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
3762 | mv "conftest.tmp" "conftest.in" |
---|
3763 | cp "conftest.in" "conftest.nl" |
---|
3764 | echo 'EGREP' >> "conftest.nl" |
---|
3765 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
3766 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
3767 | ac_count=`expr $ac_count + 1` |
---|
3768 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
3769 | # Best one so far, save it but keep looking for a better one |
---|
3770 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
3771 | ac_path_EGREP_max=$ac_count |
---|
3772 | fi |
---|
3773 | # 10*(2^10) chars as input seems more than enough |
---|
3774 | test $ac_count -gt 10 && break |
---|
3775 | done |
---|
3776 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
3777 | esac |
---|
3778 | |
---|
3779 | |
---|
3780 | $ac_path_EGREP_found && break 3 |
---|
3781 | done |
---|
3782 | done |
---|
3783 | |
---|
3784 | done |
---|
3785 | IFS=$as_save_IFS |
---|
3786 | |
---|
3787 | |
---|
3788 | fi |
---|
3789 | |
---|
3790 | EGREP="$ac_cv_path_EGREP" |
---|
3791 | if test -z "$EGREP"; then |
---|
3792 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
---|
3793 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
---|
3794 | { (exit 1); exit 1; }; } |
---|
3795 | fi |
---|
3796 | |
---|
3797 | else |
---|
3798 | ac_cv_path_EGREP=$EGREP |
---|
3799 | fi |
---|
3800 | |
---|
3801 | |
---|
3802 | fi |
---|
3803 | fi |
---|
3804 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
---|
3805 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
---|
3806 | EGREP="$ac_cv_path_EGREP" |
---|
3807 | |
---|
3808 | |
---|
3809 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
3810 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
---|
3811 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
3812 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3813 | else |
---|
3814 | cat >conftest.$ac_ext <<_ACEOF |
---|
3815 | /* confdefs.h. */ |
---|
3816 | _ACEOF |
---|
3817 | cat confdefs.h >>conftest.$ac_ext |
---|
3818 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3819 | /* end confdefs.h. */ |
---|
3820 | #include <stdlib.h> |
---|
3821 | #include <stdarg.h> |
---|
3822 | #include <string.h> |
---|
3823 | #include <float.h> |
---|
3824 | |
---|
3825 | int |
---|
3826 | main () |
---|
3827 | { |
---|
3828 | |
---|
3829 | ; |
---|
3830 | return 0; |
---|
3831 | } |
---|
3832 | _ACEOF |
---|
3833 | rm -f conftest.$ac_objext |
---|
3834 | if { (ac_try="$ac_compile" |
---|
3835 | case "(($ac_try" in |
---|
3836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3837 | *) ac_try_echo=$ac_try;; |
---|
3838 | esac |
---|
3839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3840 | (eval "$ac_compile") 2>conftest.er1 |
---|
3841 | ac_status=$? |
---|
3842 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3843 | rm -f conftest.er1 |
---|
3844 | cat conftest.err >&5 |
---|
3845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3846 | (exit $ac_status); } && { |
---|
3847 | test -z "$ac_c_werror_flag" || |
---|
3848 | test ! -s conftest.err |
---|
3849 | } && test -s conftest.$ac_objext; then |
---|
3850 | ac_cv_header_stdc=yes |
---|
3851 | else |
---|
3852 | echo "$as_me: failed program was:" >&5 |
---|
3853 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3854 | |
---|
3855 | ac_cv_header_stdc=no |
---|
3856 | fi |
---|
3857 | |
---|
3858 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3859 | |
---|
3860 | if test $ac_cv_header_stdc = yes; then |
---|
3861 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
3862 | cat >conftest.$ac_ext <<_ACEOF |
---|
3863 | /* confdefs.h. */ |
---|
3864 | _ACEOF |
---|
3865 | cat confdefs.h >>conftest.$ac_ext |
---|
3866 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3867 | /* end confdefs.h. */ |
---|
3868 | #include <string.h> |
---|
3869 | |
---|
3870 | _ACEOF |
---|
3871 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3872 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
3873 | : |
---|
3874 | else |
---|
3875 | ac_cv_header_stdc=no |
---|
3876 | fi |
---|
3877 | rm -f -r conftest* |
---|
3878 | |
---|
3879 | fi |
---|
3880 | |
---|
3881 | if test $ac_cv_header_stdc = yes; then |
---|
3882 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
3883 | cat >conftest.$ac_ext <<_ACEOF |
---|
3884 | /* confdefs.h. */ |
---|
3885 | _ACEOF |
---|
3886 | cat confdefs.h >>conftest.$ac_ext |
---|
3887 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3888 | /* end confdefs.h. */ |
---|
3889 | #include <stdlib.h> |
---|
3890 | |
---|
3891 | _ACEOF |
---|
3892 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3893 | $EGREP "free" >/dev/null 2>&1; then |
---|
3894 | : |
---|
3895 | else |
---|
3896 | ac_cv_header_stdc=no |
---|
3897 | fi |
---|
3898 | rm -f -r conftest* |
---|
3899 | |
---|
3900 | fi |
---|
3901 | |
---|
3902 | if test $ac_cv_header_stdc = yes; then |
---|
3903 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
3904 | if test "$cross_compiling" = yes; then |
---|
3905 | : |
---|
3906 | else |
---|
3907 | cat >conftest.$ac_ext <<_ACEOF |
---|
3908 | /* confdefs.h. */ |
---|
3909 | _ACEOF |
---|
3910 | cat confdefs.h >>conftest.$ac_ext |
---|
3911 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3912 | /* end confdefs.h. */ |
---|
3913 | #include <ctype.h> |
---|
3914 | #include <stdlib.h> |
---|
3915 | #if ((' ' & 0x0FF) == 0x020) |
---|
3916 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
3917 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
3918 | #else |
---|
3919 | # define ISLOWER(c) \ |
---|
3920 | (('a' <= (c) && (c) <= 'i') \ |
---|
3921 | || ('j' <= (c) && (c) <= 'r') \ |
---|
3922 | || ('s' <= (c) && (c) <= 'z')) |
---|
3923 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
3924 | #endif |
---|
3925 | |
---|
3926 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
3927 | int |
---|
3928 | main () |
---|
3929 | { |
---|
3930 | int i; |
---|
3931 | for (i = 0; i < 256; i++) |
---|
3932 | if (XOR (islower (i), ISLOWER (i)) |
---|
3933 | || toupper (i) != TOUPPER (i)) |
---|
3934 | return 2; |
---|
3935 | return 0; |
---|
3936 | } |
---|
3937 | _ACEOF |
---|
3938 | rm -f conftest$ac_exeext |
---|
3939 | if { (ac_try="$ac_link" |
---|
3940 | case "(($ac_try" in |
---|
3941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3942 | *) ac_try_echo=$ac_try;; |
---|
3943 | esac |
---|
3944 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3945 | (eval "$ac_link") 2>&5 |
---|
3946 | ac_status=$? |
---|
3947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3948 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
3949 | { (case "(($ac_try" in |
---|
3950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3951 | *) ac_try_echo=$ac_try;; |
---|
3952 | esac |
---|
3953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3954 | (eval "$ac_try") 2>&5 |
---|
3955 | ac_status=$? |
---|
3956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3957 | (exit $ac_status); }; }; then |
---|
3958 | : |
---|
3959 | else |
---|
3960 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
3961 | echo "$as_me: failed program was:" >&5 |
---|
3962 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3963 | |
---|
3964 | ( exit $ac_status ) |
---|
3965 | ac_cv_header_stdc=no |
---|
3966 | fi |
---|
3967 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
3968 | fi |
---|
3969 | |
---|
3970 | |
---|
3971 | fi |
---|
3972 | fi |
---|
3973 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
3974 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
---|
3975 | if test $ac_cv_header_stdc = yes; then |
---|
3976 | |
---|
3977 | cat >>confdefs.h <<\_ACEOF |
---|
3978 | #define STDC_HEADERS 1 |
---|
3979 | _ACEOF |
---|
3980 | |
---|
3981 | fi |
---|
3982 | |
---|
3983 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
3984 | |
---|
3985 | |
---|
3986 | |
---|
3987 | |
---|
3988 | |
---|
3989 | |
---|
3990 | |
---|
3991 | |
---|
3992 | |
---|
3993 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
3994 | inttypes.h stdint.h unistd.h |
---|
3995 | do |
---|
3996 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
3997 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3998 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
3999 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
4000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4001 | else |
---|
4002 | cat >conftest.$ac_ext <<_ACEOF |
---|
4003 | /* confdefs.h. */ |
---|
4004 | _ACEOF |
---|
4005 | cat confdefs.h >>conftest.$ac_ext |
---|
4006 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4007 | /* end confdefs.h. */ |
---|
4008 | $ac_includes_default |
---|
4009 | |
---|
4010 | #include <$ac_header> |
---|
4011 | _ACEOF |
---|
4012 | rm -f conftest.$ac_objext |
---|
4013 | if { (ac_try="$ac_compile" |
---|
4014 | case "(($ac_try" in |
---|
4015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4016 | *) ac_try_echo=$ac_try;; |
---|
4017 | esac |
---|
4018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4019 | (eval "$ac_compile") 2>conftest.er1 |
---|
4020 | ac_status=$? |
---|
4021 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4022 | rm -f conftest.er1 |
---|
4023 | cat conftest.err >&5 |
---|
4024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4025 | (exit $ac_status); } && { |
---|
4026 | test -z "$ac_c_werror_flag" || |
---|
4027 | test ! -s conftest.err |
---|
4028 | } && test -s conftest.$ac_objext; then |
---|
4029 | eval "$as_ac_Header=yes" |
---|
4030 | else |
---|
4031 | echo "$as_me: failed program was:" >&5 |
---|
4032 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4033 | |
---|
4034 | eval "$as_ac_Header=no" |
---|
4035 | fi |
---|
4036 | |
---|
4037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4038 | fi |
---|
4039 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
4040 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
4041 | echo "${ECHO_T}$ac_res" >&6; } |
---|
4042 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4043 | cat >>confdefs.h <<_ACEOF |
---|
4044 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4045 | _ACEOF |
---|
4046 | |
---|
4047 | fi |
---|
4048 | |
---|
4049 | done |
---|
4050 | |
---|
4051 | |
---|
4052 | |
---|
4053 | |
---|
4054 | |
---|
4055 | |
---|
4056 | |
---|
4057 | |
---|
4058 | |
---|
4059 | |
---|
4060 | |
---|
4061 | |
---|
4062 | |
---|
4063 | |
---|
4064 | for ac_header in unistd.h time.h math.h values.h iostream fstream sstream iomanip vector string algorithm functional |
---|
4065 | do |
---|
4066 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4067 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
4068 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4069 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
4070 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
4071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4072 | fi |
---|
4073 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
4074 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
4075 | echo "${ECHO_T}$ac_res" >&6; } |
---|
4076 | else |
---|
4077 | # Is the header compilable? |
---|
4078 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4079 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
---|
4080 | cat >conftest.$ac_ext <<_ACEOF |
---|
4081 | /* confdefs.h. */ |
---|
4082 | _ACEOF |
---|
4083 | cat confdefs.h >>conftest.$ac_ext |
---|
4084 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4085 | /* end confdefs.h. */ |
---|
4086 | $ac_includes_default |
---|
4087 | #include <$ac_header> |
---|
4088 | _ACEOF |
---|
4089 | rm -f conftest.$ac_objext |
---|
4090 | if { (ac_try="$ac_compile" |
---|
4091 | case "(($ac_try" in |
---|
4092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4093 | *) ac_try_echo=$ac_try;; |
---|
4094 | esac |
---|
4095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4096 | (eval "$ac_compile") 2>conftest.er1 |
---|
4097 | ac_status=$? |
---|
4098 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4099 | rm -f conftest.er1 |
---|
4100 | cat conftest.err >&5 |
---|
4101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4102 | (exit $ac_status); } && { |
---|
4103 | test -z "$ac_c_werror_flag" || |
---|
4104 | test ! -s conftest.err |
---|
4105 | } && test -s conftest.$ac_objext; then |
---|
4106 | ac_header_compiler=yes |
---|
4107 | else |
---|
4108 | echo "$as_me: failed program was:" >&5 |
---|
4109 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4110 | |
---|
4111 | ac_header_compiler=no |
---|
4112 | fi |
---|
4113 | |
---|
4114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4115 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4116 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
---|
4117 | |
---|
4118 | # Is the header present? |
---|
4119 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4120 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
---|
4121 | cat >conftest.$ac_ext <<_ACEOF |
---|
4122 | /* confdefs.h. */ |
---|
4123 | _ACEOF |
---|
4124 | cat confdefs.h >>conftest.$ac_ext |
---|
4125 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4126 | /* end confdefs.h. */ |
---|
4127 | #include <$ac_header> |
---|
4128 | _ACEOF |
---|
4129 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
4130 | case "(($ac_try" in |
---|
4131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4132 | *) ac_try_echo=$ac_try;; |
---|
4133 | esac |
---|
4134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4135 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
4136 | ac_status=$? |
---|
4137 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4138 | rm -f conftest.er1 |
---|
4139 | cat conftest.err >&5 |
---|
4140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4141 | (exit $ac_status); } >/dev/null && { |
---|
4142 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
4143 | test ! -s conftest.err |
---|
4144 | }; then |
---|
4145 | ac_header_preproc=yes |
---|
4146 | else |
---|
4147 | echo "$as_me: failed program was:" >&5 |
---|
4148 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4149 | |
---|
4150 | ac_header_preproc=no |
---|
4151 | fi |
---|
4152 | |
---|
4153 | rm -f conftest.err conftest.$ac_ext |
---|
4154 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4155 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
---|
4156 | |
---|
4157 | # So? What about this header? |
---|
4158 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4159 | yes:no: ) |
---|
4160 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4161 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4162 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4163 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4164 | ac_header_preproc=yes |
---|
4165 | ;; |
---|
4166 | no:yes:* ) |
---|
4167 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4168 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4169 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4170 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4171 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4172 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4173 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4174 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4175 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4176 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4177 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4178 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4179 | ( cat <<\_ASBOX |
---|
4180 | ## --------------------------------------- ## |
---|
4181 | ## Report this to Matthew.Whiting@csiro.au ## |
---|
4182 | ## --------------------------------------- ## |
---|
4183 | _ASBOX |
---|
4184 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4185 | ;; |
---|
4186 | esac |
---|
4187 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4188 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
4189 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
4190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4191 | else |
---|
4192 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4193 | fi |
---|
4194 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
4195 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
4196 | echo "${ECHO_T}$ac_res" >&6; } |
---|
4197 | |
---|
4198 | fi |
---|
4199 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4200 | cat >>confdefs.h <<_ACEOF |
---|
4201 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4202 | _ACEOF |
---|
4203 | |
---|
4204 | fi |
---|
4205 | |
---|
4206 | done |
---|
4207 | |
---|
4208 | if test "x$ac_cv_header_stdc" = xno; then |
---|
4209 | { { echo "$as_me:$LINENO: error: |
---|
4210 | ------------------------------------------------------------------- |
---|
4211 | An ANSI standard C library is required to build Duchamp. |
---|
4212 | One of the ANSI C header files it requires is missing or unusable. |
---|
4213 | |
---|
4214 | ERROR: Duchamp configuration failure. |
---|
4215 | -------------------------------------------------------------------" >&5 |
---|
4216 | echo "$as_me: error: |
---|
4217 | ------------------------------------------------------------------- |
---|
4218 | An ANSI standard C library is required to build Duchamp. |
---|
4219 | One of the ANSI C header files it requires is missing or unusable. |
---|
4220 | |
---|
4221 | ERROR: Duchamp configuration failure. |
---|
4222 | -------------------------------------------------------------------" >&2;} |
---|
4223 | { (exit 1); exit 1; }; } |
---|
4224 | fi |
---|
4225 | |
---|
4226 | # Checks for typedefs, structures, and compiler characteristics. |
---|
4227 | { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
---|
4228 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; } |
---|
4229 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
---|
4230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4231 | else |
---|
4232 | cat >conftest.$ac_ext <<_ACEOF |
---|
4233 | /* confdefs.h. */ |
---|
4234 | _ACEOF |
---|
4235 | cat confdefs.h >>conftest.$ac_ext |
---|
4236 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4237 | /* end confdefs.h. */ |
---|
4238 | |
---|
4239 | #include <stdbool.h> |
---|
4240 | #ifndef bool |
---|
4241 | "error: bool is not defined" |
---|
4242 | #endif |
---|
4243 | #ifndef false |
---|
4244 | "error: false is not defined" |
---|
4245 | #endif |
---|
4246 | #if false |
---|
4247 | "error: false is not 0" |
---|
4248 | #endif |
---|
4249 | #ifndef true |
---|
4250 | "error: true is not defined" |
---|
4251 | #endif |
---|
4252 | #if true != 1 |
---|
4253 | "error: true is not 1" |
---|
4254 | #endif |
---|
4255 | #ifndef __bool_true_false_are_defined |
---|
4256 | "error: __bool_true_false_are_defined is not defined" |
---|
4257 | #endif |
---|
4258 | |
---|
4259 | struct s { _Bool s: 1; _Bool t; } s; |
---|
4260 | |
---|
4261 | char a[true == 1 ? 1 : -1]; |
---|
4262 | char b[false == 0 ? 1 : -1]; |
---|
4263 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
4264 | char d[(bool) 0.5 == true ? 1 : -1]; |
---|
4265 | bool e = &s; |
---|
4266 | char f[(_Bool) 0.0 == false ? 1 : -1]; |
---|
4267 | char g[true]; |
---|
4268 | char h[sizeof (_Bool)]; |
---|
4269 | char i[sizeof s.t]; |
---|
4270 | enum { j = false, k = true, l = false * true, m = true * 256 }; |
---|
4271 | _Bool n[m]; |
---|
4272 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
---|
4273 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
---|
4274 | # if defined __xlc__ || defined __GNUC__ |
---|
4275 | /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 |
---|
4276 | reported by James Lemley on 2005-10-05; see |
---|
4277 | http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html |
---|
4278 | This test is not quite right, since xlc is allowed to |
---|
4279 | reject this program, as the initializer for xlcbug is |
---|
4280 | not one of the forms that C requires support for. |
---|
4281 | However, doing the test right would require a runtime |
---|
4282 | test, and that would make cross-compilation harder. |
---|
4283 | Let us hope that IBM fixes the xlc bug, and also adds |
---|
4284 | support for this kind of constant expression. In the |
---|
4285 | meantime, this test will reject xlc, which is OK, since |
---|
4286 | our stdbool.h substitute should suffice. We also test |
---|
4287 | this with GCC, where it should work, to detect more |
---|
4288 | quickly whether someone messes up the test in the |
---|
4289 | future. */ |
---|
4290 | char digs[] = "0123456789"; |
---|
4291 | int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); |
---|
4292 | # endif |
---|
4293 | /* Catch a bug in an HP-UX C compiler. See |
---|
4294 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
---|
4295 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
---|
4296 | */ |
---|
4297 | _Bool q = true; |
---|
4298 | _Bool *pq = &q; |
---|
4299 | |
---|
4300 | int |
---|
4301 | main () |
---|
4302 | { |
---|
4303 | |
---|
4304 | *pq |= q; |
---|
4305 | *pq |= ! q; |
---|
4306 | /* Refer to every declared value, to avoid compiler optimizations. */ |
---|
4307 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
---|
4308 | + !m + !n + !o + !p + !q + !pq); |
---|
4309 | |
---|
4310 | ; |
---|
4311 | return 0; |
---|
4312 | } |
---|
4313 | _ACEOF |
---|
4314 | rm -f conftest.$ac_objext |
---|
4315 | if { (ac_try="$ac_compile" |
---|
4316 | case "(($ac_try" in |
---|
4317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4318 | *) ac_try_echo=$ac_try;; |
---|
4319 | esac |
---|
4320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4321 | (eval "$ac_compile") 2>conftest.er1 |
---|
4322 | ac_status=$? |
---|
4323 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4324 | rm -f conftest.er1 |
---|
4325 | cat conftest.err >&5 |
---|
4326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4327 | (exit $ac_status); } && { |
---|
4328 | test -z "$ac_c_werror_flag" || |
---|
4329 | test ! -s conftest.err |
---|
4330 | } && test -s conftest.$ac_objext; then |
---|
4331 | ac_cv_header_stdbool_h=yes |
---|
4332 | else |
---|
4333 | echo "$as_me: failed program was:" >&5 |
---|
4334 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4335 | |
---|
4336 | ac_cv_header_stdbool_h=no |
---|
4337 | fi |
---|
4338 | |
---|
4339 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4340 | fi |
---|
4341 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
---|
4342 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; } |
---|
4343 | { echo "$as_me:$LINENO: checking for _Bool" >&5 |
---|
4344 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } |
---|
4345 | if test "${ac_cv_type__Bool+set}" = set; then |
---|
4346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4347 | else |
---|
4348 | cat >conftest.$ac_ext <<_ACEOF |
---|
4349 | /* confdefs.h. */ |
---|
4350 | _ACEOF |
---|
4351 | cat confdefs.h >>conftest.$ac_ext |
---|
4352 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4353 | /* end confdefs.h. */ |
---|
4354 | $ac_includes_default |
---|
4355 | typedef _Bool ac__type_new_; |
---|
4356 | int |
---|
4357 | main () |
---|
4358 | { |
---|
4359 | if ((ac__type_new_ *) 0) |
---|
4360 | return 0; |
---|
4361 | if (sizeof (ac__type_new_)) |
---|
4362 | return 0; |
---|
4363 | ; |
---|
4364 | return 0; |
---|
4365 | } |
---|
4366 | _ACEOF |
---|
4367 | rm -f conftest.$ac_objext |
---|
4368 | if { (ac_try="$ac_compile" |
---|
4369 | case "(($ac_try" in |
---|
4370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4371 | *) ac_try_echo=$ac_try;; |
---|
4372 | esac |
---|
4373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4374 | (eval "$ac_compile") 2>conftest.er1 |
---|
4375 | ac_status=$? |
---|
4376 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4377 | rm -f conftest.er1 |
---|
4378 | cat conftest.err >&5 |
---|
4379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4380 | (exit $ac_status); } && { |
---|
4381 | test -z "$ac_c_werror_flag" || |
---|
4382 | test ! -s conftest.err |
---|
4383 | } && test -s conftest.$ac_objext; then |
---|
4384 | ac_cv_type__Bool=yes |
---|
4385 | else |
---|
4386 | echo "$as_me: failed program was:" >&5 |
---|
4387 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4388 | |
---|
4389 | ac_cv_type__Bool=no |
---|
4390 | fi |
---|
4391 | |
---|
4392 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4393 | fi |
---|
4394 | { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
---|
4395 | echo "${ECHO_T}$ac_cv_type__Bool" >&6; } |
---|
4396 | if test $ac_cv_type__Bool = yes; then |
---|
4397 | |
---|
4398 | cat >>confdefs.h <<_ACEOF |
---|
4399 | #define HAVE__BOOL 1 |
---|
4400 | _ACEOF |
---|
4401 | |
---|
4402 | |
---|
4403 | fi |
---|
4404 | |
---|
4405 | if test $ac_cv_header_stdbool_h = yes; then |
---|
4406 | |
---|
4407 | cat >>confdefs.h <<\_ACEOF |
---|
4408 | #define HAVE_STDBOOL_H 1 |
---|
4409 | _ACEOF |
---|
4410 | |
---|
4411 | fi |
---|
4412 | |
---|
4413 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
---|
4414 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
---|
4415 | if test "${ac_cv_c_const+set}" = set; then |
---|
4416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4417 | else |
---|
4418 | cat >conftest.$ac_ext <<_ACEOF |
---|
4419 | /* confdefs.h. */ |
---|
4420 | _ACEOF |
---|
4421 | cat confdefs.h >>conftest.$ac_ext |
---|
4422 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4423 | /* end confdefs.h. */ |
---|
4424 | |
---|
4425 | int |
---|
4426 | main () |
---|
4427 | { |
---|
4428 | /* FIXME: Include the comments suggested by Paul. */ |
---|
4429 | #ifndef __cplusplus |
---|
4430 | /* Ultrix mips cc rejects this. */ |
---|
4431 | typedef int charset[2]; |
---|
4432 | const charset cs; |
---|
4433 | /* SunOS 4.1.1 cc rejects this. */ |
---|
4434 | char const *const *pcpcc; |
---|
4435 | char **ppc; |
---|
4436 | /* NEC SVR4.0.2 mips cc rejects this. */ |
---|
4437 | struct point {int x, y;}; |
---|
4438 | static struct point const zero = {0,0}; |
---|
4439 | /* AIX XL C 1.02.0.0 rejects this. |
---|
4440 | It does not let you subtract one const X* pointer from another in |
---|
4441 | an arm of an if-expression whose if-part is not a constant |
---|
4442 | expression */ |
---|
4443 | const char *g = "string"; |
---|
4444 | pcpcc = &g + (g ? g-g : 0); |
---|
4445 | /* HPUX 7.0 cc rejects these. */ |
---|
4446 | ++pcpcc; |
---|
4447 | ppc = (char**) pcpcc; |
---|
4448 | pcpcc = (char const *const *) ppc; |
---|
4449 | { /* SCO 3.2v4 cc rejects this. */ |
---|
4450 | char *t; |
---|
4451 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
---|
4452 | |
---|
4453 | *t++ = 0; |
---|
4454 | if (s) return 0; |
---|
4455 | } |
---|
4456 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
---|
4457 | int x[] = {25, 17}; |
---|
4458 | const int *foo = &x[0]; |
---|
4459 | ++foo; |
---|
4460 | } |
---|
4461 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
---|
4462 | typedef const int *iptr; |
---|
4463 | iptr p = 0; |
---|
4464 | ++p; |
---|
4465 | } |
---|
4466 | { /* AIX XL C 1.02.0.0 rejects this saying |
---|
4467 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
---|
4468 | struct s { int j; const int *ap[3]; }; |
---|
4469 | struct s *b; b->j = 5; |
---|
4470 | } |
---|
4471 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
---|
4472 | const int foo = 10; |
---|
4473 | if (!foo) return 0; |
---|
4474 | } |
---|
4475 | return !cs[0] && !zero.x; |
---|
4476 | #endif |
---|
4477 | |
---|
4478 | ; |
---|
4479 | return 0; |
---|
4480 | } |
---|
4481 | _ACEOF |
---|
4482 | rm -f conftest.$ac_objext |
---|
4483 | if { (ac_try="$ac_compile" |
---|
4484 | case "(($ac_try" in |
---|
4485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4486 | *) ac_try_echo=$ac_try;; |
---|
4487 | esac |
---|
4488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4489 | (eval "$ac_compile") 2>conftest.er1 |
---|
4490 | ac_status=$? |
---|
4491 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4492 | rm -f conftest.er1 |
---|
4493 | cat conftest.err >&5 |
---|
4494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4495 | (exit $ac_status); } && { |
---|
4496 | test -z "$ac_c_werror_flag" || |
---|
4497 | test ! -s conftest.err |
---|
4498 | } && test -s conftest.$ac_objext; then |
---|
4499 | ac_cv_c_const=yes |
---|
4500 | else |
---|
4501 | echo "$as_me: failed program was:" >&5 |
---|
4502 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4503 | |
---|
4504 | ac_cv_c_const=no |
---|
4505 | fi |
---|
4506 | |
---|
4507 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4508 | fi |
---|
4509 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
---|
4510 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
---|
4511 | if test $ac_cv_c_const = no; then |
---|
4512 | |
---|
4513 | cat >>confdefs.h <<\_ACEOF |
---|
4514 | #define const |
---|
4515 | _ACEOF |
---|
4516 | |
---|
4517 | fi |
---|
4518 | |
---|
4519 | { echo "$as_me:$LINENO: checking for inline" >&5 |
---|
4520 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
---|
4521 | if test "${ac_cv_c_inline+set}" = set; then |
---|
4522 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4523 | else |
---|
4524 | ac_cv_c_inline=no |
---|
4525 | for ac_kw in inline __inline__ __inline; do |
---|
4526 | cat >conftest.$ac_ext <<_ACEOF |
---|
4527 | /* confdefs.h. */ |
---|
4528 | _ACEOF |
---|
4529 | cat confdefs.h >>conftest.$ac_ext |
---|
4530 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4531 | /* end confdefs.h. */ |
---|
4532 | #ifndef __cplusplus |
---|
4533 | typedef int foo_t; |
---|
4534 | static $ac_kw foo_t static_foo () {return 0; } |
---|
4535 | $ac_kw foo_t foo () {return 0; } |
---|
4536 | #endif |
---|
4537 | |
---|
4538 | _ACEOF |
---|
4539 | rm -f conftest.$ac_objext |
---|
4540 | if { (ac_try="$ac_compile" |
---|
4541 | case "(($ac_try" in |
---|
4542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4543 | *) ac_try_echo=$ac_try;; |
---|
4544 | esac |
---|
4545 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4546 | (eval "$ac_compile") 2>conftest.er1 |
---|
4547 | ac_status=$? |
---|
4548 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4549 | rm -f conftest.er1 |
---|
4550 | cat conftest.err >&5 |
---|
4551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4552 | (exit $ac_status); } && { |
---|
4553 | test -z "$ac_c_werror_flag" || |
---|
4554 | test ! -s conftest.err |
---|
4555 | } && test -s conftest.$ac_objext; then |
---|
4556 | ac_cv_c_inline=$ac_kw |
---|
4557 | else |
---|
4558 | echo "$as_me: failed program was:" >&5 |
---|
4559 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4560 | |
---|
4561 | |
---|
4562 | fi |
---|
4563 | |
---|
4564 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4565 | test "$ac_cv_c_inline" != no && break |
---|
4566 | done |
---|
4567 | |
---|
4568 | fi |
---|
4569 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
---|
4570 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
---|
4571 | |
---|
4572 | |
---|
4573 | case $ac_cv_c_inline in |
---|
4574 | inline | yes) ;; |
---|
4575 | *) |
---|
4576 | case $ac_cv_c_inline in |
---|
4577 | no) ac_val=;; |
---|
4578 | *) ac_val=$ac_cv_c_inline;; |
---|
4579 | esac |
---|
4580 | cat >>confdefs.h <<_ACEOF |
---|
4581 | #ifndef __cplusplus |
---|
4582 | #define inline $ac_val |
---|
4583 | #endif |
---|
4584 | _ACEOF |
---|
4585 | ;; |
---|
4586 | esac |
---|
4587 | |
---|
4588 | |
---|
4589 | # Utilities. |
---|
4590 | if test -n "$ac_tool_prefix"; then |
---|
4591 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
4592 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
4593 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4594 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
4595 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
4596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4597 | else |
---|
4598 | if test -n "$RANLIB"; then |
---|
4599 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
4600 | else |
---|
4601 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4602 | for as_dir in $PATH |
---|
4603 | do |
---|
4604 | IFS=$as_save_IFS |
---|
4605 | test -z "$as_dir" && as_dir=. |
---|
4606 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4607 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4608 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
4609 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4610 | break 2 |
---|
4611 | fi |
---|
4612 | done |
---|
4613 | done |
---|
4614 | IFS=$as_save_IFS |
---|
4615 | |
---|
4616 | fi |
---|
4617 | fi |
---|
4618 | RANLIB=$ac_cv_prog_RANLIB |
---|
4619 | if test -n "$RANLIB"; then |
---|
4620 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
4621 | echo "${ECHO_T}$RANLIB" >&6; } |
---|
4622 | else |
---|
4623 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
4624 | echo "${ECHO_T}no" >&6; } |
---|
4625 | fi |
---|
4626 | |
---|
4627 | |
---|
4628 | fi |
---|
4629 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
4630 | ac_ct_RANLIB=$RANLIB |
---|
4631 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
4632 | set dummy ranlib; ac_word=$2 |
---|
4633 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4634 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
4635 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
---|
4636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4637 | else |
---|
4638 | if test -n "$ac_ct_RANLIB"; then |
---|
4639 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
4640 | else |
---|
4641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4642 | for as_dir in $PATH |
---|
4643 | do |
---|
4644 | IFS=$as_save_IFS |
---|
4645 | test -z "$as_dir" && as_dir=. |
---|
4646 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4647 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4648 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
4649 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4650 | break 2 |
---|
4651 | fi |
---|
4652 | done |
---|
4653 | done |
---|
4654 | IFS=$as_save_IFS |
---|
4655 | |
---|
4656 | fi |
---|
4657 | fi |
---|
4658 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
4659 | if test -n "$ac_ct_RANLIB"; then |
---|
4660 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
---|
4661 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
---|
4662 | else |
---|
4663 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
4664 | echo "${ECHO_T}no" >&6; } |
---|
4665 | fi |
---|
4666 | |
---|
4667 | if test "x$ac_ct_RANLIB" = x; then |
---|
4668 | RANLIB=":" |
---|
4669 | else |
---|
4670 | case $cross_compiling:$ac_tool_warned in |
---|
4671 | yes:) |
---|
4672 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
4673 | whose name does not start with the host triplet. If you think this |
---|
4674 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
4675 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
4676 | whose name does not start with the host triplet. If you think this |
---|
4677 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
4678 | ac_tool_warned=yes ;; |
---|
4679 | esac |
---|
4680 | RANLIB=$ac_ct_RANLIB |
---|
4681 | fi |
---|
4682 | else |
---|
4683 | RANLIB="$ac_cv_prog_RANLIB" |
---|
4684 | fi |
---|
4685 | |
---|
4686 | |
---|
4687 | # Checks for library functions. |
---|
4688 | { echo "$as_me:$LINENO: checking for working strtod" >&5 |
---|
4689 | echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; } |
---|
4690 | if test "${ac_cv_func_strtod+set}" = set; then |
---|
4691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4692 | else |
---|
4693 | if test "$cross_compiling" = yes; then |
---|
4694 | ac_cv_func_strtod=no |
---|
4695 | else |
---|
4696 | cat >conftest.$ac_ext <<_ACEOF |
---|
4697 | /* confdefs.h. */ |
---|
4698 | _ACEOF |
---|
4699 | cat confdefs.h >>conftest.$ac_ext |
---|
4700 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4701 | /* end confdefs.h. */ |
---|
4702 | |
---|
4703 | $ac_includes_default |
---|
4704 | #ifndef strtod |
---|
4705 | double strtod (); |
---|
4706 | #endif |
---|
4707 | int |
---|
4708 | main() |
---|
4709 | { |
---|
4710 | { |
---|
4711 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ |
---|
4712 | char *string = " +69"; |
---|
4713 | char *term; |
---|
4714 | double value; |
---|
4715 | value = strtod (string, &term); |
---|
4716 | if (value != 69 || term != (string + 4)) |
---|
4717 | return 1; |
---|
4718 | } |
---|
4719 | |
---|
4720 | { |
---|
4721 | /* Under Solaris 2.4, strtod returns the wrong value for the |
---|
4722 | terminating character under some conditions. */ |
---|
4723 | char *string = "NaN"; |
---|
4724 | char *term; |
---|
4725 | strtod (string, &term); |
---|
4726 | if (term != string && *(term - 1) == 0) |
---|
4727 | return 1; |
---|
4728 | } |
---|
4729 | return 0; |
---|
4730 | } |
---|
4731 | |
---|
4732 | _ACEOF |
---|
4733 | rm -f conftest$ac_exeext |
---|
4734 | if { (ac_try="$ac_link" |
---|
4735 | case "(($ac_try" in |
---|
4736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4737 | *) ac_try_echo=$ac_try;; |
---|
4738 | esac |
---|
4739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4740 | (eval "$ac_link") 2>&5 |
---|
4741 | ac_status=$? |
---|
4742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4743 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
4744 | { (case "(($ac_try" in |
---|
4745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4746 | *) ac_try_echo=$ac_try;; |
---|
4747 | esac |
---|
4748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4749 | (eval "$ac_try") 2>&5 |
---|
4750 | ac_status=$? |
---|
4751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4752 | (exit $ac_status); }; }; then |
---|
4753 | ac_cv_func_strtod=yes |
---|
4754 | else |
---|
4755 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
4756 | echo "$as_me: failed program was:" >&5 |
---|
4757 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4758 | |
---|
4759 | ( exit $ac_status ) |
---|
4760 | ac_cv_func_strtod=no |
---|
4761 | fi |
---|
4762 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
4763 | fi |
---|
4764 | |
---|
4765 | |
---|
4766 | fi |
---|
4767 | { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
---|
4768 | echo "${ECHO_T}$ac_cv_func_strtod" >&6; } |
---|
4769 | if test $ac_cv_func_strtod = no; then |
---|
4770 | case " $LIBOBJS " in |
---|
4771 | *" strtod.$ac_objext "* ) ;; |
---|
4772 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
---|
4773 | ;; |
---|
4774 | esac |
---|
4775 | |
---|
4776 | { echo "$as_me:$LINENO: checking for pow" >&5 |
---|
4777 | echo $ECHO_N "checking for pow... $ECHO_C" >&6; } |
---|
4778 | if test "${ac_cv_func_pow+set}" = set; then |
---|
4779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4780 | else |
---|
4781 | cat >conftest.$ac_ext <<_ACEOF |
---|
4782 | /* confdefs.h. */ |
---|
4783 | _ACEOF |
---|
4784 | cat confdefs.h >>conftest.$ac_ext |
---|
4785 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4786 | /* end confdefs.h. */ |
---|
4787 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
---|
4788 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
4789 | #define pow innocuous_pow |
---|
4790 | |
---|
4791 | /* System header to define __stub macros and hopefully few prototypes, |
---|
4792 | which can conflict with char pow (); below. |
---|
4793 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4794 | <limits.h> exists even on freestanding compilers. */ |
---|
4795 | |
---|
4796 | #ifdef __STDC__ |
---|
4797 | # include <limits.h> |
---|
4798 | #else |
---|
4799 | # include <assert.h> |
---|
4800 | #endif |
---|
4801 | |
---|
4802 | #undef pow |
---|
4803 | |
---|
4804 | /* Override any GCC internal prototype to avoid an error. |
---|
4805 | Use char because int might match the return type of a GCC |
---|
4806 | builtin and then its argument prototype would still apply. */ |
---|
4807 | #ifdef __cplusplus |
---|
4808 | extern "C" |
---|
4809 | #endif |
---|
4810 | char pow (); |
---|
4811 | /* The GNU C library defines this for functions which it implements |
---|
4812 | to always fail with ENOSYS. Some functions are actually named |
---|
4813 | something starting with __ and the normal name is an alias. */ |
---|
4814 | #if defined __stub_pow || defined __stub___pow |
---|
4815 | choke me |
---|
4816 | #endif |
---|
4817 | |
---|
4818 | int |
---|
4819 | main () |
---|
4820 | { |
---|
4821 | return pow (); |
---|
4822 | ; |
---|
4823 | return 0; |
---|
4824 | } |
---|
4825 | _ACEOF |
---|
4826 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4827 | if { (ac_try="$ac_link" |
---|
4828 | case "(($ac_try" in |
---|
4829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4830 | *) ac_try_echo=$ac_try;; |
---|
4831 | esac |
---|
4832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4833 | (eval "$ac_link") 2>conftest.er1 |
---|
4834 | ac_status=$? |
---|
4835 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4836 | rm -f conftest.er1 |
---|
4837 | cat conftest.err >&5 |
---|
4838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4839 | (exit $ac_status); } && { |
---|
4840 | test -z "$ac_c_werror_flag" || |
---|
4841 | test ! -s conftest.err |
---|
4842 | } && test -s conftest$ac_exeext && |
---|
4843 | $as_test_x conftest$ac_exeext; then |
---|
4844 | ac_cv_func_pow=yes |
---|
4845 | else |
---|
4846 | echo "$as_me: failed program was:" >&5 |
---|
4847 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4848 | |
---|
4849 | ac_cv_func_pow=no |
---|
4850 | fi |
---|
4851 | |
---|
4852 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
4853 | conftest$ac_exeext conftest.$ac_ext |
---|
4854 | fi |
---|
4855 | { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
---|
4856 | echo "${ECHO_T}$ac_cv_func_pow" >&6; } |
---|
4857 | |
---|
4858 | if test $ac_cv_func_pow = no; then |
---|
4859 | { echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
---|
4860 | echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; } |
---|
4861 | if test "${ac_cv_lib_m_pow+set}" = set; then |
---|
4862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4863 | else |
---|
4864 | ac_check_lib_save_LIBS=$LIBS |
---|
4865 | LIBS="-lm $LIBS" |
---|
4866 | cat >conftest.$ac_ext <<_ACEOF |
---|
4867 | /* confdefs.h. */ |
---|
4868 | _ACEOF |
---|
4869 | cat confdefs.h >>conftest.$ac_ext |
---|
4870 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4871 | /* end confdefs.h. */ |
---|
4872 | |
---|
4873 | /* Override any GCC internal prototype to avoid an error. |
---|
4874 | Use char because int might match the return type of a GCC |
---|
4875 | builtin and then its argument prototype would still apply. */ |
---|
4876 | #ifdef __cplusplus |
---|
4877 | extern "C" |
---|
4878 | #endif |
---|
4879 | char pow (); |
---|
4880 | int |
---|
4881 | main () |
---|
4882 | { |
---|
4883 | return pow (); |
---|
4884 | ; |
---|
4885 | return 0; |
---|
4886 | } |
---|
4887 | _ACEOF |
---|
4888 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4889 | if { (ac_try="$ac_link" |
---|
4890 | case "(($ac_try" in |
---|
4891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4892 | *) ac_try_echo=$ac_try;; |
---|
4893 | esac |
---|
4894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4895 | (eval "$ac_link") 2>conftest.er1 |
---|
4896 | ac_status=$? |
---|
4897 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4898 | rm -f conftest.er1 |
---|
4899 | cat conftest.err >&5 |
---|
4900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4901 | (exit $ac_status); } && { |
---|
4902 | test -z "$ac_c_werror_flag" || |
---|
4903 | test ! -s conftest.err |
---|
4904 | } && test -s conftest$ac_exeext && |
---|
4905 | $as_test_x conftest$ac_exeext; then |
---|
4906 | ac_cv_lib_m_pow=yes |
---|
4907 | else |
---|
4908 | echo "$as_me: failed program was:" >&5 |
---|
4909 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4910 | |
---|
4911 | ac_cv_lib_m_pow=no |
---|
4912 | fi |
---|
4913 | |
---|
4914 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
4915 | conftest$ac_exeext conftest.$ac_ext |
---|
4916 | LIBS=$ac_check_lib_save_LIBS |
---|
4917 | fi |
---|
4918 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
---|
4919 | echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; } |
---|
4920 | if test $ac_cv_lib_m_pow = yes; then |
---|
4921 | POW_LIB=-lm |
---|
4922 | else |
---|
4923 | { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
---|
4924 | echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} |
---|
4925 | fi |
---|
4926 | |
---|
4927 | fi |
---|
4928 | |
---|
4929 | fi |
---|
4930 | |
---|
4931 | |
---|
4932 | |
---|
4933 | |
---|
4934 | |
---|
4935 | |
---|
4936 | |
---|
4937 | |
---|
4938 | for ac_func in floor pow sqrt strtol log atan fabs |
---|
4939 | do |
---|
4940 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
4941 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
4942 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
---|
4943 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
4944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4945 | else |
---|
4946 | cat >conftest.$ac_ext <<_ACEOF |
---|
4947 | /* confdefs.h. */ |
---|
4948 | _ACEOF |
---|
4949 | cat confdefs.h >>conftest.$ac_ext |
---|
4950 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4951 | /* end confdefs.h. */ |
---|
4952 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
4953 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
4954 | #define $ac_func innocuous_$ac_func |
---|
4955 | |
---|
4956 | /* System header to define __stub macros and hopefully few prototypes, |
---|
4957 | which can conflict with char $ac_func (); below. |
---|
4958 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4959 | <limits.h> exists even on freestanding compilers. */ |
---|
4960 | |
---|
4961 | #ifdef __STDC__ |
---|
4962 | # include <limits.h> |
---|
4963 | #else |
---|
4964 | # include <assert.h> |
---|
4965 | #endif |
---|
4966 | |
---|
4967 | #undef $ac_func |
---|
4968 | |
---|
4969 | /* Override any GCC internal prototype to avoid an error. |
---|
4970 | Use char because int might match the return type of a GCC |
---|
4971 | builtin and then its argument prototype would still apply. */ |
---|
4972 | #ifdef __cplusplus |
---|
4973 | extern "C" |
---|
4974 | #endif |
---|
4975 | char $ac_func (); |
---|
4976 | /* The GNU C library defines this for functions which it implements |
---|
4977 | to always fail with ENOSYS. Some functions are actually named |
---|
4978 | something starting with __ and the normal name is an alias. */ |
---|
4979 | #if defined __stub_$ac_func || defined __stub___$ac_func |
---|
4980 | choke me |
---|
4981 | #endif |
---|
4982 | |
---|
4983 | int |
---|
4984 | main () |
---|
4985 | { |
---|
4986 | return $ac_func (); |
---|
4987 | ; |
---|
4988 | return 0; |
---|
4989 | } |
---|
4990 | _ACEOF |
---|
4991 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4992 | if { (ac_try="$ac_link" |
---|
4993 | case "(($ac_try" in |
---|
4994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4995 | *) ac_try_echo=$ac_try;; |
---|
4996 | esac |
---|
4997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4998 | (eval "$ac_link") 2>conftest.er1 |
---|
4999 | ac_status=$? |
---|
5000 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5001 | rm -f conftest.er1 |
---|
5002 | cat conftest.err >&5 |
---|
5003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5004 | (exit $ac_status); } && { |
---|
5005 | test -z "$ac_c_werror_flag" || |
---|
5006 | test ! -s conftest.err |
---|
5007 | } && test -s conftest$ac_exeext && |
---|
5008 | $as_test_x conftest$ac_exeext; then |
---|
5009 | eval "$as_ac_var=yes" |
---|
5010 | else |
---|
5011 | echo "$as_me: failed program was:" >&5 |
---|
5012 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5013 | |
---|
5014 | eval "$as_ac_var=no" |
---|
5015 | fi |
---|
5016 | |
---|
5017 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
5018 | conftest$ac_exeext conftest.$ac_ext |
---|
5019 | fi |
---|
5020 | ac_res=`eval echo '${'$as_ac_var'}'` |
---|
5021 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
5022 | echo "${ECHO_T}$ac_res" >&6; } |
---|
5023 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
5024 | cat >>confdefs.h <<_ACEOF |
---|
5025 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
5026 | _ACEOF |
---|
5027 | |
---|
5028 | fi |
---|
5029 | done |
---|
5030 | |
---|
5031 | |
---|
5032 | # Extra places to look for third-party include files and libraries. |
---|
5033 | INCDIRS="$INCDIRS \ |
---|
5034 | /usr/include \ |
---|
5035 | /usr/local/include \ |
---|
5036 | /usr/local/pgplot \ |
---|
5037 | /usr/local/cfitsio \ |
---|
5038 | /usr/local/wcslib \ |
---|
5039 | /local/pgplot \ |
---|
5040 | /local/cfitsio \ |
---|
5041 | /opt/local/include" |
---|
5042 | |
---|
5043 | LIBDIRS="$LIBDIRS \ |
---|
5044 | /usr/lib \ |
---|
5045 | /usr/local/lib \ |
---|
5046 | /usr/local/pgplot \ |
---|
5047 | /usr/local/cfitsio \ |
---|
5048 | /usr/local/wcslib \ |
---|
5049 | /local/lib \ |
---|
5050 | /local/pgplot \ |
---|
5051 | /local/cfitsio \ |
---|
5052 | /opt/SUNWspro/lib \ |
---|
5053 | /opt/local/lib" |
---|
5054 | |
---|
5055 | { echo "$as_me:$LINENO: LIBDIRS" >&5 |
---|
5056 | echo "$as_me: LIBDIRS" >&6;} |
---|
5057 | |
---|
5058 | for LIBDIR in $LIBDIRS ; do |
---|
5059 | as_ac_File=`echo "ac_cv_file_$LIBDIR" | $as_tr_sh` |
---|
5060 | { echo "$as_me:$LINENO: checking for $LIBDIR" >&5 |
---|
5061 | echo $ECHO_N "checking for $LIBDIR... $ECHO_C" >&6; } |
---|
5062 | if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
5063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5064 | else |
---|
5065 | test "$cross_compiling" = yes && |
---|
5066 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
5067 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
5068 | { (exit 1); exit 1; }; } |
---|
5069 | if test -r "$LIBDIR"; then |
---|
5070 | eval "$as_ac_File=yes" |
---|
5071 | else |
---|
5072 | eval "$as_ac_File=no" |
---|
5073 | fi |
---|
5074 | fi |
---|
5075 | ac_res=`eval echo '${'$as_ac_File'}'` |
---|
5076 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
5077 | echo "${ECHO_T}$ac_res" >&6; } |
---|
5078 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
5079 | LDFLAGS="$LDFLAGS -L$LIBDIR" |
---|
5080 | else |
---|
5081 | continue |
---|
5082 | fi |
---|
5083 | |
---|
5084 | done |
---|
5085 | |
---|
5086 | ########################################################################## |
---|
5087 | # Search for PGPLOT |
---|
5088 | # use --with-pgplot=directory to specify a particular PGPLOT directory. |
---|
5089 | # or --without-pgplot or --with-pgplot=no to do without it |
---|
5090 | # else do the normal searching for libraries. |
---|
5091 | |
---|
5092 | { echo "$as_me:$LINENO: -- PGPLOT -- " >&5 |
---|
5093 | echo "$as_me: -- PGPLOT -- " >&6;} |
---|
5094 | |
---|
5095 | # Check whether --with-pgplot was given. |
---|
5096 | if test "${with_pgplot+set}" = set; then |
---|
5097 | withval=$with_pgplot; |
---|
5098 | if test "x$withval" != xno; then |
---|
5099 | { echo "$as_me:$LINENO: Using directory \"$withval\"" >&5 |
---|
5100 | echo "$as_me: Using directory \"$withval\"" >&6;} |
---|
5101 | PGPLOTINCDIRS=$withval |
---|
5102 | PGPLOTLIBDIRS=$withval |
---|
5103 | LDFLAGS="$LDFLAGS -L$withval" |
---|
5104 | fi |
---|
5105 | |
---|
5106 | else |
---|
5107 | |
---|
5108 | PGPLOTINCDIRS=$INCDIRS |
---|
5109 | PGPLOTLIBDIRS=$LIBDIRS |
---|
5110 | |
---|
5111 | fi |
---|
5112 | |
---|
5113 | |
---|
5114 | if test "x$PGPLOTLIBDIRS" = x; then |
---|
5115 | #the argument to --with-pgplot was no, so we don't look for it. |
---|
5116 | { echo "$as_me:$LINENO: Not enabling PGPLOT use." >&5 |
---|
5117 | echo "$as_me: Not enabling PGPLOT use." >&6;} |
---|
5118 | #This is the command to do the linking stage of the compilation |
---|
5119 | #If no pgplot, we can just link with g++ (or equivalent) |
---|
5120 | LINKER=$CXX |
---|
5121 | # AC_CHECK_LIB([stdc++], [main], [PGPLOTLIB="-lstdc++"]) |
---|
5122 | # if test "x$F77" = xgfortran; then |
---|
5123 | # PGPLOTLIB="$PGPLOTLIB -bind_at_load" |
---|
5124 | # fi |
---|
5125 | else |
---|
5126 | |
---|
5127 | #Set up the PGPLOT-related libraries and includes. |
---|
5128 | |
---|
5129 | for INCDIR in $PGPLOTINCDIRS ; do |
---|
5130 | as_ac_File=`echo "ac_cv_file_$INCDIR/cpgplot.h" | $as_tr_sh` |
---|
5131 | { echo "$as_me:$LINENO: checking for $INCDIR/cpgplot.h" >&5 |
---|
5132 | echo $ECHO_N "checking for $INCDIR/cpgplot.h... $ECHO_C" >&6; } |
---|
5133 | if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
5134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5135 | else |
---|
5136 | test "$cross_compiling" = yes && |
---|
5137 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
5138 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
5139 | { (exit 1); exit 1; }; } |
---|
5140 | if test -r "$INCDIR/cpgplot.h"; then |
---|
5141 | eval "$as_ac_File=yes" |
---|
5142 | else |
---|
5143 | eval "$as_ac_File=no" |
---|
5144 | fi |
---|
5145 | fi |
---|
5146 | ac_res=`eval echo '${'$as_ac_File'}'` |
---|
5147 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
5148 | echo "${ECHO_T}$ac_res" >&6; } |
---|
5149 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
5150 | PGPLOTINC=-I$INCDIR; break |
---|
5151 | fi |
---|
5152 | |
---|
5153 | INCDIR=$INCDIR/pgplot |
---|
5154 | as_ac_File=`echo "ac_cv_file_$INCDIR/cpgplot.h" | $as_tr_sh` |
---|
5155 | { echo "$as_me:$LINENO: checking for $INCDIR/cpgplot.h" >&5 |
---|
5156 | echo $ECHO_N "checking for $INCDIR/cpgplot.h... $ECHO_C" >&6; } |
---|
5157 | if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
5158 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5159 | else |
---|
5160 | test "$cross_compiling" = yes && |
---|
5161 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
5162 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
5163 | { (exit 1); exit 1; }; } |
---|
5164 | if test -r "$INCDIR/cpgplot.h"; then |
---|
5165 | eval "$as_ac_File=yes" |
---|
5166 | else |
---|
5167 | eval "$as_ac_File=no" |
---|
5168 | fi |
---|
5169 | fi |
---|
5170 | ac_res=`eval echo '${'$as_ac_File'}'` |
---|
5171 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
5172 | echo "${ECHO_T}$ac_res" >&6; } |
---|
5173 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
5174 | PGPLOTINC=-I$INCDIR; break |
---|
5175 | fi |
---|
5176 | |
---|
5177 | done |
---|
5178 | |
---|
5179 | # PGPLOT compiled with a SUN compiler but linked with something else. |
---|
5180 | { echo "$as_me:$LINENO: checking for cosd in -lsunmath" >&5 |
---|
5181 | echo $ECHO_N "checking for cosd in -lsunmath... $ECHO_C" >&6; } |
---|
5182 | if test "${ac_cv_lib_sunmath_cosd+set}" = set; then |
---|
5183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5184 | else |
---|
5185 | ac_check_lib_save_LIBS=$LIBS |
---|
5186 | LIBS="-lsunmath $EXTRAPGLIB $LIBS $LIBS" |
---|
5187 | cat >conftest.$ac_ext <<_ACEOF |
---|
5188 | /* confdefs.h. */ |
---|
5189 | _ACEOF |
---|
5190 | cat confdefs.h >>conftest.$ac_ext |
---|
5191 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5192 | /* end confdefs.h. */ |
---|
5193 | |
---|
5194 | /* Override any GCC internal prototype to avoid an error. |
---|
5195 | Use char because int might match the return type of a GCC |
---|
5196 | builtin and then its argument prototype would still apply. */ |
---|
5197 | #ifdef __cplusplus |
---|
5198 | extern "C" |
---|
5199 | #endif |
---|
5200 | char cosd (); |
---|
5201 | int |
---|
5202 | main () |
---|
5203 | { |
---|
5204 | return cosd (); |
---|
5205 | ; |
---|
5206 | return 0; |
---|
5207 | } |
---|
5208 | _ACEOF |
---|
5209 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5210 | if { (ac_try="$ac_link" |
---|
5211 | case "(($ac_try" in |
---|
5212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5213 | *) ac_try_echo=$ac_try;; |
---|
5214 | esac |
---|
5215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5216 | (eval "$ac_link") 2>conftest.er1 |
---|
5217 | ac_status=$? |
---|
5218 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5219 | rm -f conftest.er1 |
---|
5220 | cat conftest.err >&5 |
---|
5221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5222 | (exit $ac_status); } && { |
---|
5223 | test -z "$ac_c_werror_flag" || |
---|
5224 | test ! -s conftest.err |
---|
5225 | } && test -s conftest$ac_exeext && |
---|
5226 | $as_test_x conftest$ac_exeext; then |
---|
5227 | ac_cv_lib_sunmath_cosd=yes |
---|
5228 | else |
---|
5229 | echo "$as_me: failed program was:" >&5 |
---|
5230 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5231 | |
---|
5232 | ac_cv_lib_sunmath_cosd=no |
---|
5233 | fi |
---|
5234 | |
---|
5235 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
5236 | conftest$ac_exeext conftest.$ac_ext |
---|
5237 | LIBS=$ac_check_lib_save_LIBS |
---|
5238 | fi |
---|
5239 | { echo "$as_me:$LINENO: result: $ac_cv_lib_sunmath_cosd" >&5 |
---|
5240 | echo "${ECHO_T}$ac_cv_lib_sunmath_cosd" >&6; } |
---|
5241 | if test $ac_cv_lib_sunmath_cosd = yes; then |
---|
5242 | EXTRAPGLIB="-lsunmath $EXTRAPGLIB" |
---|
5243 | fi |
---|
5244 | |
---|
5245 | { echo "$as_me:$LINENO: checking for iand_ in -lM77" >&5 |
---|
5246 | echo $ECHO_N "checking for iand_ in -lM77... $ECHO_C" >&6; } |
---|
5247 | if test "${ac_cv_lib_M77_iand_+set}" = set; then |
---|
5248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5249 | else |
---|
5250 | ac_check_lib_save_LIBS=$LIBS |
---|
5251 | LIBS="-lM77 $EXTRAPGLIB $LIBS $LIBS" |
---|
5252 | cat >conftest.$ac_ext <<_ACEOF |
---|
5253 | /* confdefs.h. */ |
---|
5254 | _ACEOF |
---|
5255 | cat confdefs.h >>conftest.$ac_ext |
---|
5256 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5257 | /* end confdefs.h. */ |
---|
5258 | |
---|
5259 | /* Override any GCC internal prototype to avoid an error. |
---|
5260 | Use char because int might match the return type of a GCC |
---|
5261 | builtin and then its argument prototype would still apply. */ |
---|
5262 | #ifdef __cplusplus |
---|
5263 | extern "C" |
---|
5264 | #endif |
---|
5265 | char iand_ (); |
---|
5266 | int |
---|
5267 | main () |
---|
5268 | { |
---|
5269 | return iand_ (); |
---|
5270 | ; |
---|
5271 | return 0; |
---|
5272 | } |
---|
5273 | _ACEOF |
---|
5274 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5275 | if { (ac_try="$ac_link" |
---|
5276 | case "(($ac_try" in |
---|
5277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5278 | *) ac_try_echo=$ac_try;; |
---|
5279 | esac |
---|
5280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5281 | (eval "$ac_link") 2>conftest.er1 |
---|
5282 | ac_status=$? |
---|
5283 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5284 | rm -f conftest.er1 |
---|
5285 | cat conftest.err >&5 |
---|
5286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5287 | (exit $ac_status); } && { |
---|
5288 | test -z "$ac_c_werror_flag" || |
---|
5289 | test ! -s conftest.err |
---|
5290 | } && test -s conftest$ac_exeext && |
---|
5291 | $as_test_x conftest$ac_exeext; then |
---|
5292 | ac_cv_lib_M77_iand_=yes |
---|
5293 | else |
---|
5294 | echo "$as_me: failed program was:" >&5 |
---|
5295 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5296 | |
---|
5297 | ac_cv_lib_M77_iand_=no |
---|
5298 | fi |
---|
5299 | |
---|
5300 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
5301 | conftest$ac_exeext conftest.$ac_ext |
---|
5302 | LIBS=$ac_check_lib_save_LIBS |
---|
5303 | fi |
---|
5304 | { echo "$as_me:$LINENO: result: $ac_cv_lib_M77_iand_" >&5 |
---|
5305 | echo "${ECHO_T}$ac_cv_lib_M77_iand_" >&6; } |
---|
5306 | if test $ac_cv_lib_M77_iand_ = yes; then |
---|
5307 | EXTRAPGLIB="-lM77 $EXTRAPGLIB" |
---|
5308 | fi |
---|
5309 | |
---|
5310 | { echo "$as_me:$LINENO: checking for f77_init in -lF77" >&5 |
---|
5311 | echo $ECHO_N "checking for f77_init in -lF77... $ECHO_C" >&6; } |
---|
5312 | if test "${ac_cv_lib_F77_f77_init+set}" = set; then |
---|
5313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5314 | else |
---|
5315 | ac_check_lib_save_LIBS=$LIBS |
---|
5316 | LIBS="-lF77 $EXTRAPGLIB $LIBS $LIBS" |
---|
5317 | cat >conftest.$ac_ext <<_ACEOF |
---|
5318 | /* confdefs.h. */ |
---|
5319 | _ACEOF |
---|
5320 | cat confdefs.h >>conftest.$ac_ext |
---|
5321 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5322 | /* end confdefs.h. */ |
---|
5323 | |
---|
5324 | /* Override any GCC internal prototype to avoid an error. |
---|
5325 | Use char because int might match the return type of a GCC |
---|
5326 | builtin and then its argument prototype would still apply. */ |
---|
5327 | #ifdef __cplusplus |
---|
5328 | extern "C" |
---|
5329 | #endif |
---|
5330 | char f77_init (); |
---|
5331 | int |
---|
5332 | main () |
---|
5333 | { |
---|
5334 | return f77_init (); |
---|
5335 | ; |
---|
5336 | return 0; |
---|
5337 | } |
---|
5338 | _ACEOF |
---|
5339 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5340 | if { (ac_try="$ac_link" |
---|
5341 | case "(($ac_try" in |
---|
5342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5343 | *) ac_try_echo=$ac_try;; |
---|
5344 | esac |
---|
5345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5346 | (eval "$ac_link") 2>conftest.er1 |
---|
5347 | ac_status=$? |
---|
5348 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5349 | rm -f conftest.er1 |
---|
5350 | cat conftest.err >&5 |
---|
5351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5352 | (exit $ac_status); } && { |
---|
5353 | test -z "$ac_c_werror_flag" || |
---|
5354 | test ! -s conftest.err |
---|
5355 | } && test -s conftest$ac_exeext && |
---|
5356 | $as_test_x conftest$ac_exeext; then |
---|
5357 | ac_cv_lib_F77_f77_init=yes |
---|
5358 | else |
---|
5359 | echo "$as_me: failed program was:" >&5 |
---|
5360 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5361 | |
---|
5362 | ac_cv_lib_F77_f77_init=no |
---|
5363 | fi |
---|
5364 | |
---|
5365 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
5366 | conftest$ac_exeext conftest.$ac_ext |
---|
5367 | LIBS=$ac_check_lib_save_LIBS |
---|
5368 | fi |
---|
5369 | { echo "$as_me:$LINENO: result: $ac_cv_lib_F77_f77_init" >&5 |
---|
5370 | echo "${ECHO_T}$ac_cv_lib_F77_f77_init" >&6; } |
---|
5371 | if test $ac_cv_lib_F77_f77_init = yes; then |
---|
5372 | EXTRAPGLIB="-lF77 $EXTRAPGLIB" |
---|
5373 | fi |
---|
5374 | |
---|
5375 | |
---|
5376 | # Search for X11 includes and libraries. |
---|
5377 | { echo "$as_me:$LINENO: checking for X" >&5 |
---|
5378 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
---|
5379 | |
---|
5380 | |
---|
5381 | # Check whether --with-x was given. |
---|
5382 | if test "${with_x+set}" = set; then |
---|
5383 | withval=$with_x; |
---|
5384 | fi |
---|
5385 | |
---|
5386 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
---|
5387 | if test "x$with_x" = xno; then |
---|
5388 | # The user explicitly disabled X. |
---|
5389 | have_x=disabled |
---|
5390 | else |
---|
5391 | case $x_includes,$x_libraries in #( |
---|
5392 | *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 |
---|
5393 | echo "$as_me: error: Cannot use X directory names containing '" >&2;} |
---|
5394 | { (exit 1); exit 1; }; };; #( |
---|
5395 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then |
---|
5396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5397 | else |
---|
5398 | # One or both of the vars are not set, and there is no cached value. |
---|
5399 | ac_x_includes=no ac_x_libraries=no |
---|
5400 | rm -f -r conftest.dir |
---|
5401 | if mkdir conftest.dir; then |
---|
5402 | cd conftest.dir |
---|
5403 | cat >Imakefile <<'_ACEOF' |
---|
5404 | incroot: |
---|
5405 | @echo incroot='${INCROOT}' |
---|
5406 | usrlibdir: |
---|
5407 | @echo usrlibdir='${USRLIBDIR}' |
---|
5408 | libdir: |
---|
5409 | @echo libdir='${LIBDIR}' |
---|
5410 | _ACEOF |
---|
5411 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
---|
5412 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
5413 | for ac_var in incroot usrlibdir libdir; do |
---|
5414 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
---|
5415 | done |
---|
5416 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
---|
5417 | for ac_extension in a so sl dylib la dll; do |
---|
5418 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
---|
5419 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
---|
5420 | ac_im_usrlibdir=$ac_im_libdir; break |
---|
5421 | fi |
---|
5422 | done |
---|
5423 | # Screen out bogus values from the imake configuration. They are |
---|
5424 | # bogus both because they are the default anyway, and because |
---|
5425 | # using them would break gcc on systems where it needs fixed includes. |
---|
5426 | case $ac_im_incroot in |
---|
5427 | /usr/include) ac_x_includes= ;; |
---|
5428 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
---|
5429 | esac |
---|
5430 | case $ac_im_usrlibdir in |
---|
5431 | /usr/lib | /lib) ;; |
---|
5432 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
---|
5433 | esac |
---|
5434 | fi |
---|
5435 | cd .. |
---|
5436 | rm -f -r conftest.dir |
---|
5437 | fi |
---|
5438 | |
---|
5439 | # Standard set of common directories for X headers. |
---|
5440 | # Check X11 before X11Rn because it is often a symlink to the current release. |
---|
5441 | ac_x_header_dirs=' |
---|
5442 | /usr/X11/include |
---|
5443 | /usr/X11R6/include |
---|
5444 | /usr/X11R5/include |
---|
5445 | /usr/X11R4/include |
---|
5446 | |
---|
5447 | /usr/include/X11 |
---|
5448 | /usr/include/X11R6 |
---|
5449 | /usr/include/X11R5 |
---|
5450 | /usr/include/X11R4 |
---|
5451 | |
---|
5452 | /usr/local/X11/include |
---|
5453 | /usr/local/X11R6/include |
---|
5454 | /usr/local/X11R5/include |
---|
5455 | /usr/local/X11R4/include |
---|
5456 | |
---|
5457 | /usr/local/include/X11 |
---|
5458 | /usr/local/include/X11R6 |
---|
5459 | /usr/local/include/X11R5 |
---|
5460 | /usr/local/include/X11R4 |
---|
5461 | |
---|
5462 | /usr/X386/include |
---|
5463 | /usr/x386/include |
---|
5464 | /usr/XFree86/include/X11 |
---|
5465 | |
---|
5466 | /usr/include |
---|
5467 | /usr/local/include |
---|
5468 | /usr/unsupported/include |
---|
5469 | /usr/athena/include |
---|
5470 | /usr/local/x11r5/include |
---|
5471 | /usr/lpp/Xamples/include |
---|
5472 | |
---|
5473 | /usr/openwin/include |
---|
5474 | /usr/openwin/share/include' |
---|
5475 | |
---|
5476 | if test "$ac_x_includes" = no; then |
---|
5477 | # Guess where to find include files, by looking for Xlib.h. |
---|
5478 | # First, try using that file with no special directory specified. |
---|
5479 | cat >conftest.$ac_ext <<_ACEOF |
---|
5480 | /* confdefs.h. */ |
---|
5481 | _ACEOF |
---|
5482 | cat confdefs.h >>conftest.$ac_ext |
---|
5483 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5484 | /* end confdefs.h. */ |
---|
5485 | #include <X11/Xlib.h> |
---|
5486 | _ACEOF |
---|
5487 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
5488 | case "(($ac_try" in |
---|
5489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5490 | *) ac_try_echo=$ac_try;; |
---|
5491 | esac |
---|
5492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5493 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
5494 | ac_status=$? |
---|
5495 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5496 | rm -f conftest.er1 |
---|
5497 | cat conftest.err >&5 |
---|
5498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5499 | (exit $ac_status); } >/dev/null && { |
---|
5500 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
5501 | test ! -s conftest.err |
---|
5502 | }; then |
---|
5503 | # We can compile using X headers with no special include directory. |
---|
5504 | ac_x_includes= |
---|
5505 | else |
---|
5506 | echo "$as_me: failed program was:" >&5 |
---|
5507 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5508 | |
---|
5509 | for ac_dir in $ac_x_header_dirs; do |
---|
5510 | if test -r "$ac_dir/X11/Xlib.h"; then |
---|
5511 | ac_x_includes=$ac_dir |
---|
5512 | break |
---|
5513 | fi |
---|
5514 | done |
---|
5515 | fi |
---|
5516 | |
---|
5517 | rm -f conftest.err conftest.$ac_ext |
---|
5518 | fi # $ac_x_includes = no |
---|
5519 | |
---|
5520 | if test "$ac_x_libraries" = no; then |
---|
5521 | # Check for the libraries. |
---|
5522 | # See if we find them without any special options. |
---|
5523 | # Don't add to $LIBS permanently. |
---|
5524 | ac_save_LIBS=$LIBS |
---|
5525 | LIBS="-lX11 $LIBS" |
---|
5526 | cat >conftest.$ac_ext <<_ACEOF |
---|
5527 | /* confdefs.h. */ |
---|
5528 | _ACEOF |
---|
5529 | cat confdefs.h >>conftest.$ac_ext |
---|
5530 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5531 | /* end confdefs.h. */ |
---|
5532 | #include <X11/Xlib.h> |
---|
5533 | int |
---|
5534 | main () |
---|
5535 | { |
---|
5536 | XrmInitialize () |
---|
5537 | ; |
---|
5538 | return 0; |
---|
5539 | } |
---|
5540 | _ACEOF |
---|
5541 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5542 | if { (ac_try="$ac_link" |
---|
5543 | case "(($ac_try" in |
---|
5544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5545 | *) ac_try_echo=$ac_try;; |
---|
5546 | esac |
---|
5547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5548 | (eval "$ac_link") 2>conftest.er1 |
---|
5549 | ac_status=$? |
---|
5550 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5551 | rm -f conftest.er1 |
---|
5552 | cat conftest.err >&5 |
---|
5553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5554 | (exit $ac_status); } && { |
---|
5555 | test -z "$ac_c_werror_flag" || |
---|
5556 | test ! -s conftest.err |
---|
5557 | } && test -s conftest$ac_exeext && |
---|
5558 | $as_test_x conftest$ac_exeext; then |
---|
5559 | LIBS=$ac_save_LIBS |
---|
5560 | # We can link X programs with no special library path. |
---|
5561 | ac_x_libraries= |
---|
5562 | else |
---|
5563 | echo "$as_me: failed program was:" >&5 |
---|
5564 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5565 | |
---|
5566 | LIBS=$ac_save_LIBS |
---|
5567 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
---|
5568 | do |
---|
5569 | # Don't even attempt the hair of trying to link an X program! |
---|
5570 | for ac_extension in a so sl dylib la dll; do |
---|
5571 | if test -r "$ac_dir/libX11.$ac_extension"; then |
---|
5572 | ac_x_libraries=$ac_dir |
---|
5573 | break 2 |
---|
5574 | fi |
---|
5575 | done |
---|
5576 | done |
---|
5577 | fi |
---|
5578 | |
---|
5579 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
5580 | conftest$ac_exeext conftest.$ac_ext |
---|
5581 | fi # $ac_x_libraries = no |
---|
5582 | |
---|
5583 | case $ac_x_includes,$ac_x_libraries in #( |
---|
5584 | no,* | *,no | *\'*) |
---|
5585 | # Didn't find X, or a directory has "'" in its name. |
---|
5586 | ac_cv_have_x="have_x=no";; #( |
---|
5587 | *) |
---|
5588 | # Record where we found X for the cache. |
---|
5589 | ac_cv_have_x="have_x=yes\ |
---|
5590 | ac_x_includes='$ac_x_includes'\ |
---|
5591 | ac_x_libraries='$ac_x_libraries'" |
---|
5592 | esac |
---|
5593 | fi |
---|
5594 | ;; #( |
---|
5595 | *) have_x=yes;; |
---|
5596 | esac |
---|
5597 | eval "$ac_cv_have_x" |
---|
5598 | fi # $with_x != no |
---|
5599 | |
---|
5600 | if test "$have_x" != yes; then |
---|
5601 | { echo "$as_me:$LINENO: result: $have_x" >&5 |
---|
5602 | echo "${ECHO_T}$have_x" >&6; } |
---|
5603 | no_x=yes |
---|
5604 | else |
---|
5605 | # If each of the values was on the command line, it overrides each guess. |
---|
5606 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
---|
5607 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
---|
5608 | # Update the cache value to reflect the command line values. |
---|
5609 | ac_cv_have_x="have_x=yes\ |
---|
5610 | ac_x_includes='$x_includes'\ |
---|
5611 | ac_x_libraries='$x_libraries'" |
---|
5612 | { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
---|
5613 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } |
---|
5614 | fi |
---|
5615 | |
---|
5616 | if test "$no_x" = yes; then |
---|
5617 | # Not all programs may use this symbol, but it does not hurt to define it. |
---|
5618 | |
---|
5619 | cat >>confdefs.h <<\_ACEOF |
---|
5620 | #define X_DISPLAY_MISSING 1 |
---|
5621 | _ACEOF |
---|
5622 | |
---|
5623 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
---|
5624 | else |
---|
5625 | if test -n "$x_includes"; then |
---|
5626 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
---|
5627 | fi |
---|
5628 | |
---|
5629 | # It would also be nice to do this for all -L options, not just this one. |
---|
5630 | if test -n "$x_libraries"; then |
---|
5631 | X_LIBS="$X_LIBS -L$x_libraries" |
---|
5632 | # For Solaris; some versions of Sun CC require a space after -R and |
---|
5633 | # others require no space. Words are not sufficient . . . . |
---|
5634 | { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
---|
5635 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } |
---|
5636 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
---|
5637 | ac_xsave_c_werror_flag=$ac_c_werror_flag |
---|
5638 | ac_c_werror_flag=yes |
---|
5639 | cat >conftest.$ac_ext <<_ACEOF |
---|
5640 | /* confdefs.h. */ |
---|
5641 | _ACEOF |
---|
5642 | cat confdefs.h >>conftest.$ac_ext |
---|
5643 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5644 | /* end confdefs.h. */ |
---|
5645 | |
---|
5646 | int |
---|
5647 | main () |
---|
5648 | { |
---|
5649 | |
---|
5650 | ; |
---|
5651 | return 0; |
---|
5652 | } |
---|
5653 | _ACEOF |
---|
5654 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5655 | if { (ac_try="$ac_link" |
---|
5656 | case "(($ac_try" in |
---|
5657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5658 | *) ac_try_echo=$ac_try;; |
---|
5659 | esac |
---|
5660 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5661 | (eval "$ac_link") 2>conftest.er1 |
---|
5662 | ac_status=$? |
---|
5663 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5664 | rm -f conftest.er1 |
---|
5665 | cat conftest.err >&5 |
---|
5666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5667 | (exit $ac_status); } && { |
---|
5668 | test -z "$ac_c_werror_flag" || |
---|
5669 | test ! -s conftest.err |
---|
5670 | } && test -s conftest$ac_exeext && |
---|
5671 | $as_test_x conftest$ac_exeext; then |
---|
5672 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
5673 | echo "${ECHO_T}no" >&6; } |
---|
5674 | X_LIBS="$X_LIBS -R$x_libraries" |
---|
5675 | else |
---|
5676 | echo "$as_me: failed program was:" >&5 |
---|
5677 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5678 | |
---|
5679 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
---|
5680 | cat >conftest.$ac_ext <<_ACEOF |
---|
5681 | /* confdefs.h. */ |
---|
5682 | _ACEOF |
---|
5683 | cat confdefs.h >>conftest.$ac_ext |
---|
5684 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5685 | /* end confdefs.h. */ |
---|
5686 | |
---|
5687 | int |
---|
5688 | main () |
---|
5689 | { |
---|
5690 | |
---|
5691 | ; |
---|
5692 | return 0; |
---|
5693 | } |
---|
5694 | _ACEOF |
---|
5695 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5696 | if { (ac_try="$ac_link" |
---|
5697 | case "(($ac_try" in |
---|
5698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5699 | *) ac_try_echo=$ac_try;; |
---|
5700 | esac |
---|
5701 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5702 | (eval "$ac_link") 2>conftest.er1 |
---|
5703 | ac_status=$? |
---|
5704 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5705 | rm -f conftest.er1 |
---|
5706 | cat conftest.err >&5 |
---|
5707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5708 | (exit $ac_status); } && { |
---|
5709 | test -z "$ac_c_werror_flag" || |
---|
5710 | test ! -s conftest.err |
---|
5711 | } && test -s conftest$ac_exeext && |
---|
5712 | $as_test_x conftest$ac_exeext; then |
---|
5713 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
5714 | echo "${ECHO_T}yes" >&6; } |
---|
5715 | X_LIBS="$X_LIBS -R $x_libraries" |
---|
5716 | else |
---|
5717 | echo "$as_me: failed program was:" >&5 |
---|
5718 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5719 | |
---|
5720 | { echo "$as_me:$LINENO: result: neither works" >&5 |
---|
5721 | echo "${ECHO_T}neither works" >&6; } |
---|
5722 | fi |
---|
5723 | |
---|
5724 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
5725 | conftest$ac_exeext conftest.$ac_ext |
---|
5726 | fi |
---|
5727 | |
---|
5728 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
5729 | conftest$ac_exeext conftest.$ac_ext |
---|
5730 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
---|
5731 | LIBS=$ac_xsave_LIBS |
---|
5732 | fi |
---|
5733 | |
---|
5734 | # Check for system-dependent libraries X programs must link with. |
---|
5735 | # Do this before checking for the system-independent R6 libraries |
---|
5736 | # (-lICE), since we may need -lsocket or whatever for X linking. |
---|
5737 | |
---|
5738 | if test "$ISC" = yes; then |
---|
5739 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
---|
5740 | else |
---|
5741 | # Martyn Johnson says this is needed for Ultrix, if the X |
---|
5742 | # libraries were built with DECnet support. And Karl Berry says |
---|
5743 | # the Alpha needs dnet_stub (dnet does not exist). |
---|
5744 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
---|
5745 | cat >conftest.$ac_ext <<_ACEOF |
---|
5746 | /* confdefs.h. */ |
---|
5747 | _ACEOF |
---|
5748 | cat confdefs.h >>conftest.$ac_ext |
---|
5749 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5750 | /* end confdefs.h. */ |
---|
5751 | |
---|
5752 | /* Override any GCC internal prototype to avoid an error. |
---|
5753 | Use char because int might match the return type of a GCC |
---|
5754 | builtin and then its argument prototype would still apply. */ |
---|
5755 | #ifdef __cplusplus |
---|
5756 | extern "C" |
---|
5757 | #endif |
---|
5758 | char XOpenDisplay (); |
---|
5759 | int |
---|
5760 | main () |
---|
5761 | { |
---|
5762 | return XOpenDisplay (); |
---|
5763 | ; |
---|
5764 | return 0; |
---|
5765 | } |
---|
5766 | _ACEOF |
---|
5767 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5768 | if { (ac_try="$ac_link" |
---|
5769 | case "(($ac_try" in |
---|
5770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5771 | *) ac_try_echo=$ac_try;; |
---|
5772 | esac |
---|
5773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5774 | (eval "$ac_link") 2>conftest.er1 |
---|
5775 | ac_status=$? |
---|
5776 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5777 | rm -f conftest.er1 |
---|
5778 | cat conftest.err >&5 |
---|
5779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5780 | (exit $ac_status); } && { |
---|
5781 | test -z "$ac_c_werror_flag" || |
---|
5782 | test ! -s conftest.err |
---|
5783 | } && test -s conftest$ac_exeext && |
---|
5784 | $as_test_x conftest$ac_exeext; then |
---|
5785 | : |
---|
5786 | else |
---|
5787 | echo "$as_me: failed program was:" >&5 |
---|
5788 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5789 | |
---|
5790 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
---|
5791 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } |
---|
5792 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
---|
5793 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5794 | else |
---|
5795 | ac_check_lib_save_LIBS=$LIBS |
---|
5796 | LIBS="-ldnet $LIBS" |
---|
5797 | cat >conftest.$ac_ext <<_ACEOF |
---|
5798 | /* confdefs.h. */ |
---|
5799 | _ACEOF |
---|
5800 | cat confdefs.h >>conftest.$ac_ext |
---|
5801 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5802 | /* end confdefs.h. */ |
---|
5803 | |
---|
5804 | /* Override any GCC internal prototype to avoid an error. |
---|
5805 | Use char because int might match the return type of a GCC |
---|
5806 | builtin and then its argument prototype would still apply. */ |
---|
5807 | #ifdef __cplusplus |
---|
5808 | extern "C" |
---|
5809 | #endif |
---|
5810 | char dnet_ntoa (); |
---|
5811 | int |
---|
5812 | main () |
---|
5813 | { |
---|
5814 | return dnet_ntoa (); |
---|
5815 | ; |
---|
5816 | return 0; |
---|
5817 | } |
---|
5818 | _ACEOF |
---|
5819 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5820 | if { (ac_try="$ac_link" |
---|
5821 | case "(($ac_try" in |
---|
5822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5823 | *) ac_try_echo=$ac_try;; |
---|
5824 | esac |
---|
5825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5826 | (eval "$ac_link") 2>conftest.er1 |
---|
5827 | ac_status=$? |
---|
5828 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5829 | rm -f conftest.er1 |
---|
5830 | cat conftest.err >&5 |
---|
5831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5832 | (exit $ac_status); } && { |
---|
5833 | test -z "$ac_c_werror_flag" || |
---|
5834 | test ! -s conftest.err |
---|
5835 | } && test -s conftest$ac_exeext && |
---|
5836 | $as_test_x conftest$ac_exeext; then |
---|
5837 | ac_cv_lib_dnet_dnet_ntoa=yes |
---|
5838 | else |
---|
5839 | echo "$as_me: failed program was:" >&5 |
---|
5840 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5841 | |
---|
5842 | ac_cv_lib_dnet_dnet_ntoa=no |
---|
5843 | fi |
---|
5844 | |
---|
5845 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
5846 | conftest$ac_exeext conftest.$ac_ext |
---|
5847 | LIBS=$ac_check_lib_save_LIBS |
---|
5848 | fi |
---|
5849 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
---|
5850 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
---|
5851 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
---|
5852 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
---|
5853 | fi |
---|
5854 | |
---|
5855 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
---|
5856 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
---|
5857 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; } |
---|
5858 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
---|
5859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5860 | else |
---|
5861 | ac_check_lib_save_LIBS=$LIBS |
---|
5862 | LIBS="-ldnet_stub $LIBS" |
---|
5863 | cat >conftest.$ac_ext <<_ACEOF |
---|
5864 | /* confdefs.h. */ |
---|
5865 | _ACEOF |
---|
5866 | cat confdefs.h >>conftest.$ac_ext |
---|
5867 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5868 | /* end confdefs.h. */ |
---|
5869 | |
---|
5870 | /* Override any GCC internal prototype to avoid an error. |
---|
5871 | Use char because int might match the return type of a GCC |
---|
5872 | builtin and then its argument prototype would still apply. */ |
---|
5873 | #ifdef __cplusplus |
---|
5874 | extern "C" |
---|
5875 | #endif |
---|
5876 | char dnet_ntoa (); |
---|
5877 | int |
---|
5878 | main () |
---|
5879 | { |
---|
5880 | return dnet_ntoa (); |
---|
5881 | ; |
---|
5882 | return 0; |
---|
5883 | } |
---|
5884 | _ACEOF |
---|
5885 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5886 | if { (ac_try="$ac_link" |
---|
5887 | case "(($ac_try" in |
---|
5888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5889 | *) ac_try_echo=$ac_try;; |
---|
5890 | esac |
---|
5891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5892 | (eval "$ac_link") 2>conftest.er1 |
---|
5893 | ac_status=$? |
---|
5894 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5895 | rm -f conftest.er1 |
---|
5896 | cat conftest.err >&5 |
---|
5897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5898 | (exit $ac_status); } && { |
---|
5899 | test -z "$ac_c_werror_flag" || |
---|
5900 | test ! -s conftest.err |
---|
5901 | } && test -s conftest$ac_exeext && |
---|
5902 | $as_test_x conftest$ac_exeext; then |
---|
5903 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
---|
5904 | else |
---|
5905 | echo "$as_me: failed program was:" >&5 |
---|
5906 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5907 | |
---|
5908 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
---|
5909 | fi |
---|
5910 | |
---|
5911 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
5912 | conftest$ac_exeext conftest.$ac_ext |
---|
5913 | LIBS=$ac_check_lib_save_LIBS |
---|
5914 | fi |
---|
5915 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
---|
5916 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
---|
5917 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
---|
5918 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
---|
5919 | fi |
---|
5920 | |
---|
5921 | fi |
---|
5922 | fi |
---|
5923 | |
---|
5924 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
5925 | conftest$ac_exeext conftest.$ac_ext |
---|
5926 | LIBS="$ac_xsave_LIBS" |
---|
5927 | |
---|
5928 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
---|
5929 | # to get the SysV transport functions. |
---|
5930 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
---|
5931 | # needs -lnsl. |
---|
5932 | # The nsl library prevents programs from opening the X display |
---|
5933 | # on Irix 5.2, according to T.E. Dickey. |
---|
5934 | # The functions gethostbyname, getservbyname, and inet_addr are |
---|
5935 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
---|
5936 | { echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
---|
5937 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } |
---|
5938 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
---|
5939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5940 | else |
---|
5941 | cat >conftest.$ac_ext <<_ACEOF |
---|
5942 | /* confdefs.h. */ |
---|
5943 | _ACEOF |
---|
5944 | cat confdefs.h >>conftest.$ac_ext |
---|
5945 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5946 | /* end confdefs.h. */ |
---|
5947 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
---|
5948 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
5949 | #define gethostbyname innocuous_gethostbyname |
---|
5950 | |
---|
5951 | /* System header to define __stub macros and hopefully few prototypes, |
---|
5952 | which can conflict with char gethostbyname (); below. |
---|
5953 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
5954 | <limits.h> exists even on freestanding compilers. */ |
---|
5955 | |
---|
5956 | #ifdef __STDC__ |
---|
5957 | # include <limits.h> |
---|
5958 | #else |
---|
5959 | # include <assert.h> |
---|
5960 | #endif |
---|
5961 | |
---|
5962 | #undef gethostbyname |
---|
5963 | |
---|
5964 | /* Override any GCC internal prototype to avoid an error. |
---|
5965 | Use char because int might match the return type of a GCC |
---|
5966 | builtin and then its argument prototype would still apply. */ |
---|
5967 | #ifdef __cplusplus |
---|
5968 | extern "C" |
---|
5969 | #endif |
---|
5970 | char gethostbyname (); |
---|
5971 | /* The GNU C library defines this for functions which it implements |
---|
5972 | to always fail with ENOSYS. Some functions are actually named |
---|
5973 | something starting with __ and the normal name is an alias. */ |
---|
5974 | #if defined __stub_gethostbyname || defined __stub___gethostbyname |
---|
5975 | choke me |
---|
5976 | #endif |
---|
5977 | |
---|
5978 | int |
---|
5979 | main () |
---|
5980 | { |
---|
5981 | return gethostbyname (); |
---|
5982 | ; |
---|
5983 | return 0; |
---|
5984 | } |
---|
5985 | _ACEOF |
---|
5986 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5987 | if { (ac_try="$ac_link" |
---|
5988 | case "(($ac_try" in |
---|
5989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5990 | *) ac_try_echo=$ac_try;; |
---|
5991 | esac |
---|
5992 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5993 | (eval "$ac_link") 2>conftest.er1 |
---|
5994 | ac_status=$? |
---|
5995 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5996 | rm -f conftest.er1 |
---|
5997 | cat conftest.err >&5 |
---|
5998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5999 | (exit $ac_status); } && { |
---|
6000 | test -z "$ac_c_werror_flag" || |
---|
6001 | test ! -s conftest.err |
---|
6002 | } && test -s conftest$ac_exeext && |
---|
6003 | $as_test_x conftest$ac_exeext; then |
---|
6004 | ac_cv_func_gethostbyname=yes |
---|
6005 | else |
---|
6006 | echo "$as_me: failed program was:" >&5 |
---|
6007 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6008 | |
---|
6009 | ac_cv_func_gethostbyname=no |
---|
6010 | fi |
---|
6011 | |
---|
6012 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
6013 | conftest$ac_exeext conftest.$ac_ext |
---|
6014 | fi |
---|
6015 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
---|
6016 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } |
---|
6017 | |
---|
6018 | if test $ac_cv_func_gethostbyname = no; then |
---|
6019 | { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
---|
6020 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } |
---|
6021 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
---|
6022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6023 | else |
---|
6024 | ac_check_lib_save_LIBS=$LIBS |
---|
6025 | LIBS="-lnsl $LIBS" |
---|
6026 | cat >conftest.$ac_ext <<_ACEOF |
---|
6027 | /* confdefs.h. */ |
---|
6028 | _ACEOF |
---|
6029 | cat confdefs.h >>conftest.$ac_ext |
---|
6030 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6031 | /* end confdefs.h. */ |
---|
6032 | |
---|
6033 | /* Override any GCC internal prototype to avoid an error. |
---|
6034 | Use char because int might match the return type of a GCC |
---|
6035 | builtin and then its argument prototype would still apply. */ |
---|
6036 | #ifdef __cplusplus |
---|
6037 | extern "C" |
---|
6038 | #endif |
---|
6039 | char gethostbyname (); |
---|
6040 | int |
---|
6041 | main () |
---|
6042 | { |
---|
6043 | return gethostbyname (); |
---|
6044 | ; |
---|
6045 | return 0; |
---|
6046 | } |
---|
6047 | _ACEOF |
---|
6048 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6049 | if { (ac_try="$ac_link" |
---|
6050 | case "(($ac_try" in |
---|
6051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6052 | *) ac_try_echo=$ac_try;; |
---|
6053 | esac |
---|
6054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6055 | (eval "$ac_link") 2>conftest.er1 |
---|
6056 | ac_status=$? |
---|
6057 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6058 | rm -f conftest.er1 |
---|
6059 | cat conftest.err >&5 |
---|
6060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6061 | (exit $ac_status); } && { |
---|
6062 | test -z "$ac_c_werror_flag" || |
---|
6063 | test ! -s conftest.err |
---|
6064 | } && test -s conftest$ac_exeext && |
---|
6065 | $as_test_x conftest$ac_exeext; then |
---|
6066 | ac_cv_lib_nsl_gethostbyname=yes |
---|
6067 | else |
---|
6068 | echo "$as_me: failed program was:" >&5 |
---|
6069 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6070 | |
---|
6071 | ac_cv_lib_nsl_gethostbyname=no |
---|
6072 | fi |
---|
6073 | |
---|
6074 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
6075 | conftest$ac_exeext conftest.$ac_ext |
---|
6076 | LIBS=$ac_check_lib_save_LIBS |
---|
6077 | fi |
---|
6078 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
---|
6079 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } |
---|
6080 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
---|
6081 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
---|
6082 | fi |
---|
6083 | |
---|
6084 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
---|
6085 | { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
---|
6086 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } |
---|
6087 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
---|
6088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6089 | else |
---|
6090 | ac_check_lib_save_LIBS=$LIBS |
---|
6091 | LIBS="-lbsd $LIBS" |
---|
6092 | cat >conftest.$ac_ext <<_ACEOF |
---|
6093 | /* confdefs.h. */ |
---|
6094 | _ACEOF |
---|
6095 | cat confdefs.h >>conftest.$ac_ext |
---|
6096 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6097 | /* end confdefs.h. */ |
---|
6098 | |
---|
6099 | /* Override any GCC internal prototype to avoid an error. |
---|
6100 | Use char because int might match the return type of a GCC |
---|
6101 | builtin and then its argument prototype would still apply. */ |
---|
6102 | #ifdef __cplusplus |
---|
6103 | extern "C" |
---|
6104 | #endif |
---|
6105 | char gethostbyname (); |
---|
6106 | int |
---|
6107 | main () |
---|
6108 | { |
---|
6109 | return gethostbyname (); |
---|
6110 | ; |
---|
6111 | return 0; |
---|
6112 | } |
---|
6113 | _ACEOF |
---|
6114 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6115 | if { (ac_try="$ac_link" |
---|
6116 | case "(($ac_try" in |
---|
6117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6118 | *) ac_try_echo=$ac_try;; |
---|
6119 | esac |
---|
6120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6121 | (eval "$ac_link") 2>conftest.er1 |
---|
6122 | ac_status=$? |
---|
6123 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6124 | rm -f conftest.er1 |
---|
6125 | cat conftest.err >&5 |
---|
6126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6127 | (exit $ac_status); } && { |
---|
6128 | test -z "$ac_c_werror_flag" || |
---|
6129 | test ! -s conftest.err |
---|
6130 | } && test -s conftest$ac_exeext && |
---|
6131 | $as_test_x conftest$ac_exeext; then |
---|
6132 | ac_cv_lib_bsd_gethostbyname=yes |
---|
6133 | else |
---|
6134 | echo "$as_me: failed program was:" >&5 |
---|
6135 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6136 | |
---|
6137 | ac_cv_lib_bsd_gethostbyname=no |
---|
6138 | fi |
---|
6139 | |
---|
6140 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
6141 | conftest$ac_exeext conftest.$ac_ext |
---|
6142 | LIBS=$ac_check_lib_save_LIBS |
---|
6143 | fi |
---|
6144 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
---|
6145 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } |
---|
6146 | if test $ac_cv_lib_bsd_gethostbyname = yes; then |
---|
6147 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
---|
6148 | fi |
---|
6149 | |
---|
6150 | fi |
---|
6151 | fi |
---|
6152 | |
---|
6153 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
---|
6154 | # socket/setsockopt and other routines are undefined under SCO ODT |
---|
6155 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
---|
6156 | # on later versions), says Simon Leinen: it contains gethostby* |
---|
6157 | # variants that don't use the name server (or something). -lsocket |
---|
6158 | # must be given before -lnsl if both are needed. We assume that |
---|
6159 | # if connect needs -lnsl, so does gethostbyname. |
---|
6160 | { echo "$as_me:$LINENO: checking for connect" >&5 |
---|
6161 | echo $ECHO_N "checking for connect... $ECHO_C" >&6; } |
---|
6162 | if test "${ac_cv_func_connect+set}" = set; then |
---|
6163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6164 | else |
---|
6165 | cat >conftest.$ac_ext <<_ACEOF |
---|
6166 | /* confdefs.h. */ |
---|
6167 | _ACEOF |
---|
6168 | cat confdefs.h >>conftest.$ac_ext |
---|
6169 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6170 | /* end confdefs.h. */ |
---|
6171 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
---|
6172 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
6173 | #define connect innocuous_connect |
---|
6174 | |
---|
6175 | /* System header to define __stub macros and hopefully few prototypes, |
---|
6176 | which can conflict with char connect (); below. |
---|
6177 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
6178 | <limits.h> exists even on freestanding compilers. */ |
---|
6179 | |
---|
6180 | #ifdef __STDC__ |
---|
6181 | # include <limits.h> |
---|
6182 | #else |
---|
6183 | # include <assert.h> |
---|
6184 | #endif |
---|
6185 | |
---|
6186 | #undef connect |
---|
6187 | |
---|
6188 | /* Override any GCC internal prototype to avoid an error. |
---|
6189 | Use char because int might match the return type of a GCC |
---|
6190 | builtin and then its argument prototype would still apply. */ |
---|
6191 | #ifdef __cplusplus |
---|
6192 | extern "C" |
---|
6193 | #endif |
---|
6194 | char connect (); |
---|
6195 | /* The GNU C library defines this for functions which it implements |
---|
6196 | to always fail with ENOSYS. Some functions are actually named |
---|
6197 | something starting with __ and the normal name is an alias. */ |
---|
6198 | #if defined __stub_connect || defined __stub___connect |
---|
6199 | choke me |
---|
6200 | #endif |
---|
6201 | |
---|
6202 | int |
---|
6203 | main () |
---|
6204 | { |
---|
6205 | return connect (); |
---|
6206 | ; |
---|
6207 | return 0; |
---|
6208 | } |
---|
6209 | _ACEOF |
---|
6210 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6211 | if { (ac_try="$ac_link" |
---|
6212 | case "(($ac_try" in |
---|
6213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6214 | *) ac_try_echo=$ac_try;; |
---|
6215 | esac |
---|
6216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6217 | (eval "$ac_link") 2>conftest.er1 |
---|
6218 | ac_status=$? |
---|
6219 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6220 | rm -f conftest.er1 |
---|
6221 | cat conftest.err >&5 |
---|
6222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6223 | (exit $ac_status); } && { |
---|
6224 | test -z "$ac_c_werror_flag" || |
---|
6225 | test ! -s conftest.err |
---|
6226 | } && test -s conftest$ac_exeext && |
---|
6227 | $as_test_x conftest$ac_exeext; then |
---|
6228 | ac_cv_func_connect=yes |
---|
6229 | else |
---|
6230 | echo "$as_me: failed program was:" >&5 |
---|
6231 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6232 | |
---|
6233 | ac_cv_func_connect=no |
---|
6234 | fi |
---|
6235 | |
---|
6236 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
6237 | conftest$ac_exeext conftest.$ac_ext |
---|
6238 | fi |
---|
6239 | { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
---|
6240 | echo "${ECHO_T}$ac_cv_func_connect" >&6; } |
---|
6241 | |
---|
6242 | if test $ac_cv_func_connect = no; then |
---|
6243 | { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
---|
6244 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } |
---|
6245 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
---|
6246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6247 | else |
---|
6248 | ac_check_lib_save_LIBS=$LIBS |
---|
6249 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
---|
6250 | cat >conftest.$ac_ext <<_ACEOF |
---|
6251 | /* confdefs.h. */ |
---|
6252 | _ACEOF |
---|
6253 | cat confdefs.h >>conftest.$ac_ext |
---|
6254 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6255 | /* end confdefs.h. */ |
---|
6256 | |
---|
6257 | /* Override any GCC internal prototype to avoid an error. |
---|
6258 | Use char because int might match the return type of a GCC |
---|
6259 | builtin and then its argument prototype would still apply. */ |
---|
6260 | #ifdef __cplusplus |
---|
6261 | extern "C" |
---|
6262 | #endif |
---|
6263 | char connect (); |
---|
6264 | int |
---|
6265 | main () |
---|
6266 | { |
---|
6267 | return connect (); |
---|
6268 | ; |
---|
6269 | return 0; |
---|
6270 | } |
---|
6271 | _ACEOF |
---|
6272 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6273 | if { (ac_try="$ac_link" |
---|
6274 | case "(($ac_try" in |
---|
6275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6276 | *) ac_try_echo=$ac_try;; |
---|
6277 | esac |
---|
6278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6279 | (eval "$ac_link") 2>conftest.er1 |
---|
6280 | ac_status=$? |
---|
6281 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6282 | rm -f conftest.er1 |
---|
6283 | cat conftest.err >&5 |
---|
6284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6285 | (exit $ac_status); } && { |
---|
6286 | test -z "$ac_c_werror_flag" || |
---|
6287 | test ! -s conftest.err |
---|
6288 | } && test -s conftest$ac_exeext && |
---|
6289 | $as_test_x conftest$ac_exeext; then |
---|
6290 | ac_cv_lib_socket_connect=yes |
---|
6291 | else |
---|
6292 | echo "$as_me: failed program was:" >&5 |
---|
6293 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6294 | |
---|
6295 | ac_cv_lib_socket_connect=no |
---|
6296 | fi |
---|
6297 | |
---|
6298 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
6299 | conftest$ac_exeext conftest.$ac_ext |
---|
6300 | LIBS=$ac_check_lib_save_LIBS |
---|
6301 | fi |
---|
6302 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
---|
6303 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } |
---|
6304 | if test $ac_cv_lib_socket_connect = yes; then |
---|
6305 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
---|
6306 | fi |
---|
6307 | |
---|
6308 | fi |
---|
6309 | |
---|
6310 | # Guillermo Gomez says -lposix is necessary on A/UX. |
---|
6311 | { echo "$as_me:$LINENO: checking for remove" >&5 |
---|
6312 | echo $ECHO_N "checking for remove... $ECHO_C" >&6; } |
---|
6313 | if test "${ac_cv_func_remove+set}" = set; then |
---|
6314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6315 | else |
---|
6316 | cat >conftest.$ac_ext <<_ACEOF |
---|
6317 | /* confdefs.h. */ |
---|
6318 | _ACEOF |
---|
6319 | cat confdefs.h >>conftest.$ac_ext |
---|
6320 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6321 | /* end confdefs.h. */ |
---|
6322 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
---|
6323 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
6324 | #define remove innocuous_remove |
---|
6325 | |
---|
6326 | /* System header to define __stub macros and hopefully few prototypes, |
---|
6327 | which can conflict with char remove (); below. |
---|
6328 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
6329 | <limits.h> exists even on freestanding compilers. */ |
---|
6330 | |
---|
6331 | #ifdef __STDC__ |
---|
6332 | # include <limits.h> |
---|
6333 | #else |
---|
6334 | # include <assert.h> |
---|
6335 | #endif |
---|
6336 | |
---|
6337 | #undef remove |
---|
6338 | |
---|
6339 | /* Override any GCC internal prototype to avoid an error. |
---|
6340 | Use char because int might match the return type of a GCC |
---|
6341 | builtin and then its argument prototype would still apply. */ |
---|
6342 | #ifdef __cplusplus |
---|
6343 | extern "C" |
---|
6344 | #endif |
---|
6345 | char remove (); |
---|
6346 | /* The GNU C library defines this for functions which it implements |
---|
6347 | to always fail with ENOSYS. Some functions are actually named |
---|
6348 | something starting with __ and the normal name is an alias. */ |
---|
6349 | #if defined __stub_remove || defined __stub___remove |
---|
6350 | choke me |
---|
6351 | #endif |
---|
6352 | |
---|
6353 | int |
---|
6354 | main () |
---|
6355 | { |
---|
6356 | return remove (); |
---|
6357 | ; |
---|
6358 | return 0; |
---|
6359 | } |
---|
6360 | _ACEOF |
---|
6361 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6362 | if { (ac_try="$ac_link" |
---|
6363 | case "(($ac_try" in |
---|
6364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6365 | *) ac_try_echo=$ac_try;; |
---|
6366 | esac |
---|
6367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6368 | (eval "$ac_link") 2>conftest.er1 |
---|
6369 | ac_status=$? |
---|
6370 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6371 | rm -f conftest.er1 |
---|
6372 | cat conftest.err >&5 |
---|
6373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6374 | (exit $ac_status); } && { |
---|
6375 | test -z "$ac_c_werror_flag" || |
---|
6376 | test ! -s conftest.err |
---|
6377 | } && test -s conftest$ac_exeext && |
---|
6378 | $as_test_x conftest$ac_exeext; then |
---|
6379 | ac_cv_func_remove=yes |
---|
6380 | else |
---|
6381 | echo "$as_me: failed program was:" >&5 |
---|
6382 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6383 | |
---|
6384 | ac_cv_func_remove=no |
---|
6385 | fi |
---|
6386 | |
---|
6387 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
6388 | conftest$ac_exeext conftest.$ac_ext |
---|
6389 | fi |
---|
6390 | { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
---|
6391 | echo "${ECHO_T}$ac_cv_func_remove" >&6; } |
---|
6392 | |
---|
6393 | if test $ac_cv_func_remove = no; then |
---|
6394 | { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
---|
6395 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } |
---|
6396 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
---|
6397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6398 | else |
---|
6399 | ac_check_lib_save_LIBS=$LIBS |
---|
6400 | LIBS="-lposix $LIBS" |
---|
6401 | cat >conftest.$ac_ext <<_ACEOF |
---|
6402 | /* confdefs.h. */ |
---|
6403 | _ACEOF |
---|
6404 | cat confdefs.h >>conftest.$ac_ext |
---|
6405 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6406 | /* end confdefs.h. */ |
---|
6407 | |
---|
6408 | /* Override any GCC internal prototype to avoid an error. |
---|
6409 | Use char because int might match the return type of a GCC |
---|
6410 | builtin and then its argument prototype would still apply. */ |
---|
6411 | #ifdef __cplusplus |
---|
6412 | extern "C" |
---|
6413 | #endif |
---|
6414 | char remove (); |
---|
6415 | int |
---|
6416 | main () |
---|
6417 | { |
---|
6418 | return remove (); |
---|
6419 | ; |
---|
6420 | return 0; |
---|
6421 | } |
---|
6422 | _ACEOF |
---|
6423 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6424 | if { (ac_try="$ac_link" |
---|
6425 | case "(($ac_try" in |
---|
6426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6427 | *) ac_try_echo=$ac_try;; |
---|
6428 | esac |
---|
6429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6430 | (eval "$ac_link") 2>conftest.er1 |
---|
6431 | ac_status=$? |
---|
6432 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6433 | rm -f conftest.er1 |
---|
6434 | cat conftest.err >&5 |
---|
6435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6436 | (exit $ac_status); } && { |
---|
6437 | test -z "$ac_c_werror_flag" || |
---|
6438 | test ! -s conftest.err |
---|
6439 | } && test -s conftest$ac_exeext && |
---|
6440 | $as_test_x conftest$ac_exeext; then |
---|
6441 | ac_cv_lib_posix_remove=yes |
---|
6442 | else |
---|
6443 | echo "$as_me: failed program was:" >&5 |
---|
6444 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6445 | |
---|
6446 | ac_cv_lib_posix_remove=no |
---|
6447 | fi |
---|
6448 | |
---|
6449 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
6450 | conftest$ac_exeext conftest.$ac_ext |
---|
6451 | LIBS=$ac_check_lib_save_LIBS |
---|
6452 | fi |
---|
6453 | { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
---|
6454 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } |
---|
6455 | if test $ac_cv_lib_posix_remove = yes; then |
---|
6456 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
---|
6457 | fi |
---|
6458 | |
---|
6459 | fi |
---|
6460 | |
---|
6461 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
---|
6462 | { echo "$as_me:$LINENO: checking for shmat" >&5 |
---|
6463 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } |
---|
6464 | if test "${ac_cv_func_shmat+set}" = set; then |
---|
6465 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6466 | else |
---|
6467 | cat >conftest.$ac_ext <<_ACEOF |
---|
6468 | /* confdefs.h. */ |
---|
6469 | _ACEOF |
---|
6470 | cat confdefs.h >>conftest.$ac_ext |
---|
6471 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6472 | /* end confdefs.h. */ |
---|
6473 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
---|
6474 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
6475 | #define shmat innocuous_shmat |
---|
6476 | |
---|
6477 | /* System header to define __stub macros and hopefully few prototypes, |
---|
6478 | which can conflict with char shmat (); below. |
---|
6479 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
6480 | <limits.h> exists even on freestanding compilers. */ |
---|
6481 | |
---|
6482 | #ifdef __STDC__ |
---|
6483 | # include <limits.h> |
---|
6484 | #else |
---|
6485 | # include <assert.h> |
---|
6486 | #endif |
---|
6487 | |
---|
6488 | #undef shmat |
---|
6489 | |
---|
6490 | /* Override any GCC internal prototype to avoid an error. |
---|
6491 | Use char because int might match the return type of a GCC |
---|
6492 | builtin and then its argument prototype would still apply. */ |
---|
6493 | #ifdef __cplusplus |
---|
6494 | extern "C" |
---|
6495 | #endif |
---|
6496 | char shmat (); |
---|
6497 | /* The GNU C library defines this for functions which it implements |
---|
6498 | to always fail with ENOSYS. Some functions are actually named |
---|
6499 | something starting with __ and the normal name is an alias. */ |
---|
6500 | #if defined __stub_shmat || defined __stub___shmat |
---|
6501 | choke me |
---|
6502 | #endif |
---|
6503 | |
---|
6504 | int |
---|
6505 | main () |
---|
6506 | { |
---|
6507 | return shmat (); |
---|
6508 | ; |
---|
6509 | return 0; |
---|
6510 | } |
---|
6511 | _ACEOF |
---|
6512 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6513 | if { (ac_try="$ac_link" |
---|
6514 | case "(($ac_try" in |
---|
6515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6516 | *) ac_try_echo=$ac_try;; |
---|
6517 | esac |
---|
6518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6519 | (eval "$ac_link") 2>conftest.er1 |
---|
6520 | ac_status=$? |
---|
6521 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6522 | rm -f conftest.er1 |
---|
6523 | cat conftest.err >&5 |
---|
6524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6525 | (exit $ac_status); } && { |
---|
6526 | test -z "$ac_c_werror_flag" || |
---|
6527 | test ! -s conftest.err |
---|
6528 | } && test -s conftest$ac_exeext && |
---|
6529 | $as_test_x conftest$ac_exeext; then |
---|
6530 | ac_cv_func_shmat=yes |
---|
6531 | else |
---|
6532 | echo "$as_me: failed program was:" >&5 |
---|
6533 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6534 | |
---|
6535 | ac_cv_func_shmat=no |
---|
6536 | fi |
---|
6537 | |
---|
6538 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
6539 | conftest$ac_exeext conftest.$ac_ext |
---|
6540 | fi |
---|
6541 | { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
---|
6542 | echo "${ECHO_T}$ac_cv_func_shmat" >&6; } |
---|
6543 | |
---|
6544 | if test $ac_cv_func_shmat = no; then |
---|
6545 | { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
---|
6546 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } |
---|
6547 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
---|
6548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6549 | else |
---|
6550 | ac_check_lib_save_LIBS=$LIBS |
---|
6551 | LIBS="-lipc $LIBS" |
---|
6552 | cat >conftest.$ac_ext <<_ACEOF |
---|
6553 | /* confdefs.h. */ |
---|
6554 | _ACEOF |
---|
6555 | cat confdefs.h >>conftest.$ac_ext |
---|
6556 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6557 | /* end confdefs.h. */ |
---|
6558 | |
---|
6559 | /* Override any GCC internal prototype to avoid an error. |
---|
6560 | Use char because int might match the return type of a GCC |
---|
6561 | builtin and then its argument prototype would still apply. */ |
---|
6562 | #ifdef __cplusplus |
---|
6563 | extern "C" |
---|
6564 | #endif |
---|
6565 | char shmat (); |
---|
6566 | int |
---|
6567 | main () |
---|
6568 | { |
---|
6569 | return shmat (); |
---|
6570 | ; |
---|
6571 | return 0; |
---|
6572 | } |
---|
6573 | _ACEOF |
---|
6574 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6575 | if { (ac_try="$ac_link" |
---|
6576 | case "(($ac_try" in |
---|
6577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6578 | *) ac_try_echo=$ac_try;; |
---|
6579 | esac |
---|
6580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6581 | (eval "$ac_link") 2>conftest.er1 |
---|
6582 | ac_status=$? |
---|
6583 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6584 | rm -f conftest.er1 |
---|
6585 | cat conftest.err >&5 |
---|
6586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6587 | (exit $ac_status); } && { |
---|
6588 | test -z "$ac_c_werror_flag" || |
---|
6589 | test ! -s conftest.err |
---|
6590 | } && test -s conftest$ac_exeext && |
---|
6591 | $as_test_x conftest$ac_exeext; then |
---|
6592 | ac_cv_lib_ipc_shmat=yes |
---|
6593 | else |
---|
6594 | echo "$as_me: failed program was:" >&5 |
---|
6595 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6596 | |
---|
6597 | ac_cv_lib_ipc_shmat=no |
---|
6598 | fi |
---|
6599 | |
---|
6600 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
6601 | conftest$ac_exeext conftest.$ac_ext |
---|
6602 | LIBS=$ac_check_lib_save_LIBS |
---|
6603 | fi |
---|
6604 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
---|
6605 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } |
---|
6606 | if test $ac_cv_lib_ipc_shmat = yes; then |
---|
6607 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
---|
6608 | fi |
---|
6609 | |
---|
6610 | fi |
---|
6611 | fi |
---|
6612 | |
---|
6613 | # Check for libraries that X11R6 Xt/Xaw programs need. |
---|
6614 | ac_save_LDFLAGS=$LDFLAGS |
---|
6615 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
---|
6616 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
---|
6617 | # check for ICE first), but we must link in the order -lSM -lICE or |
---|
6618 | # we get undefined symbols. So assume we have SM if we have ICE. |
---|
6619 | # These have to be linked with before -lX11, unlike the other |
---|
6620 | # libraries we check for below, so use a different variable. |
---|
6621 | # John Interrante, Karl Berry |
---|
6622 | { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
---|
6623 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } |
---|
6624 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
---|
6625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6626 | else |
---|
6627 | ac_check_lib_save_LIBS=$LIBS |
---|
6628 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
---|
6629 | cat >conftest.$ac_ext <<_ACEOF |
---|
6630 | /* confdefs.h. */ |
---|
6631 | _ACEOF |
---|
6632 | cat confdefs.h >>conftest.$ac_ext |
---|
6633 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6634 | /* end confdefs.h. */ |
---|
6635 | |
---|
6636 | /* Override any GCC internal prototype to avoid an error. |
---|
6637 | Use char because int might match the return type of a GCC |
---|
6638 | builtin and then its argument prototype would still apply. */ |
---|
6639 | #ifdef __cplusplus |
---|
6640 | extern "C" |
---|
6641 | #endif |
---|
6642 | char IceConnectionNumber (); |
---|
6643 | int |
---|
6644 | main () |
---|
6645 | { |
---|
6646 | return IceConnectionNumber (); |
---|
6647 | ; |
---|
6648 | return 0; |
---|
6649 | } |
---|
6650 | _ACEOF |
---|
6651 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6652 | if { (ac_try="$ac_link" |
---|
6653 | case "(($ac_try" in |
---|
6654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6655 | *) ac_try_echo=$ac_try;; |
---|
6656 | esac |
---|
6657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6658 | (eval "$ac_link") 2>conftest.er1 |
---|
6659 | ac_status=$? |
---|
6660 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6661 | rm -f conftest.er1 |
---|
6662 | cat conftest.err >&5 |
---|
6663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6664 | (exit $ac_status); } && { |
---|
6665 | test -z "$ac_c_werror_flag" || |
---|
6666 | test ! -s conftest.err |
---|
6667 | } && test -s conftest$ac_exeext && |
---|
6668 | $as_test_x conftest$ac_exeext; then |
---|
6669 | ac_cv_lib_ICE_IceConnectionNumber=yes |
---|
6670 | else |
---|
6671 | echo "$as_me: failed program was:" >&5 |
---|
6672 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6673 | |
---|
6674 | ac_cv_lib_ICE_IceConnectionNumber=no |
---|
6675 | fi |
---|
6676 | |
---|
6677 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
6678 | conftest$ac_exeext conftest.$ac_ext |
---|
6679 | LIBS=$ac_check_lib_save_LIBS |
---|
6680 | fi |
---|
6681 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
---|
6682 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
---|
6683 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
---|
6684 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
---|
6685 | fi |
---|
6686 | |
---|
6687 | LDFLAGS=$ac_save_LDFLAGS |
---|
6688 | |
---|
6689 | fi |
---|
6690 | |
---|
6691 | { echo "$as_me:$LINENO: X-library search yielded X_CFLAGS=$X_CFLAGS, X_LIBS=$X_LIBS, X_EXTRA_LIBS=$X_EXTRA_LIBS, X_PRE_LIBS=$X_PRE_LIBS" >&5 |
---|
6692 | echo "$as_me: X-library search yielded X_CFLAGS=$X_CFLAGS, X_LIBS=$X_LIBS, X_EXTRA_LIBS=$X_EXTRA_LIBS, X_PRE_LIBS=$X_PRE_LIBS" >&6;} |
---|
6693 | # returns C compiler flags needed for X to X_CFLAGS and the X linker flags to X_LIBS |
---|
6694 | if test "x$X_LIBS" != x; then |
---|
6695 | LDFLAGS="$LDFLAGS $X_LIBS" |
---|
6696 | EXTRAPGLIB="$X_LIBS $X_PRE_LIBS -lX11 $EXTRAPGLIB" |
---|
6697 | fi |
---|
6698 | |
---|
6699 | # # Add pgplot libraries, if they exist to the lib path |
---|
6700 | # for LIBDIR in $PGPLOTLIBDIRS ; do |
---|
6701 | # AC_CHECK_FILE([$LIBDIR/libcpgplot.a], [PGPLOTLIB="-L$LIBDIR $PGPLOTLIB"; break]) |
---|
6702 | # done |
---|
6703 | |
---|
6704 | # It is possible that other libraries may be required depending on what |
---|
6705 | # graphics drivers were installed with PGPLOT. |
---|
6706 | { echo "$as_me:$LINENO: checking for deflate in -lz" >&5 |
---|
6707 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; } |
---|
6708 | if test "${ac_cv_lib_z_deflate+set}" = set; then |
---|
6709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6710 | else |
---|
6711 | ac_check_lib_save_LIBS=$LIBS |
---|
6712 | LIBS="-lz $EXTRAPGLIB $LIBS $LIBS" |
---|
6713 | cat >conftest.$ac_ext <<_ACEOF |
---|
6714 | /* confdefs.h. */ |
---|
6715 | _ACEOF |
---|
6716 | cat confdefs.h >>conftest.$ac_ext |
---|
6717 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6718 | /* end confdefs.h. */ |
---|
6719 | |
---|
6720 | /* Override any GCC internal prototype to avoid an error. |
---|
6721 | Use char because int might match the return type of a GCC |
---|
6722 | builtin and then its argument prototype would still apply. */ |
---|
6723 | #ifdef __cplusplus |
---|
6724 | extern "C" |
---|
6725 | #endif |
---|
6726 | char deflate (); |
---|
6727 | int |
---|
6728 | main () |
---|
6729 | { |
---|
6730 | return deflate (); |
---|
6731 | ; |
---|
6732 | return 0; |
---|
6733 | } |
---|
6734 | _ACEOF |
---|
6735 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6736 | if { (ac_try="$ac_link" |
---|
6737 | case "(($ac_try" in |
---|
6738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6739 | *) ac_try_echo=$ac_try;; |
---|
6740 | esac |
---|
6741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6742 | (eval "$ac_link") 2>conftest.er1 |
---|
6743 | ac_status=$? |
---|
6744 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6745 | rm -f conftest.er1 |
---|
6746 | cat conftest.err >&5 |
---|
6747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6748 | (exit $ac_status); } && { |
---|
6749 | test -z "$ac_c_werror_flag" || |
---|
6750 | test ! -s conftest.err |
---|
6751 | } && test -s conftest$ac_exeext && |
---|
6752 | $as_test_x conftest$ac_exeext; then |
---|
6753 | ac_cv_lib_z_deflate=yes |
---|
6754 | else |
---|
6755 | echo "$as_me: failed program was:" >&5 |
---|
6756 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6757 | |
---|
6758 | ac_cv_lib_z_deflate=no |
---|
6759 | fi |
---|
6760 | |
---|
6761 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
6762 | conftest$ac_exeext conftest.$ac_ext |
---|
6763 | LIBS=$ac_check_lib_save_LIBS |
---|
6764 | fi |
---|
6765 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 |
---|
6766 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; } |
---|
6767 | if test $ac_cv_lib_z_deflate = yes; then |
---|
6768 | EXTRAPGLIB="$EXTRAPGLIB -lz" |
---|
6769 | fi |
---|
6770 | |
---|
6771 | { echo "$as_me:$LINENO: checking for png_error in -lpng" >&5 |
---|
6772 | echo $ECHO_N "checking for png_error in -lpng... $ECHO_C" >&6; } |
---|
6773 | if test "${ac_cv_lib_png_png_error+set}" = set; then |
---|
6774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6775 | else |
---|
6776 | ac_check_lib_save_LIBS=$LIBS |
---|
6777 | LIBS="-lpng $EXTRAPGLIB $LIBS $LIBS" |
---|
6778 | cat >conftest.$ac_ext <<_ACEOF |
---|
6779 | /* confdefs.h. */ |
---|
6780 | _ACEOF |
---|
6781 | cat confdefs.h >>conftest.$ac_ext |
---|
6782 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6783 | /* end confdefs.h. */ |
---|
6784 | |
---|
6785 | /* Override any GCC internal prototype to avoid an error. |
---|
6786 | Use char because int might match the return type of a GCC |
---|
6787 | builtin and then its argument prototype would still apply. */ |
---|
6788 | #ifdef __cplusplus |
---|
6789 | extern "C" |
---|
6790 | #endif |
---|
6791 | char png_error (); |
---|
6792 | int |
---|
6793 | main () |
---|
6794 | { |
---|
6795 | return png_error (); |
---|
6796 | ; |
---|
6797 | return 0; |
---|
6798 | } |
---|
6799 | _ACEOF |
---|
6800 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6801 | if { (ac_try="$ac_link" |
---|
6802 | case "(($ac_try" in |
---|
6803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6804 | *) ac_try_echo=$ac_try;; |
---|
6805 | esac |
---|
6806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6807 | (eval "$ac_link") 2>conftest.er1 |
---|
6808 | ac_status=$? |
---|
6809 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6810 | rm -f conftest.er1 |
---|
6811 | cat conftest.err >&5 |
---|
6812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6813 | (exit $ac_status); } && { |
---|
6814 | test -z "$ac_c_werror_flag" || |
---|
6815 | test ! -s conftest.err |
---|
6816 | } && test -s conftest$ac_exeext && |
---|
6817 | $as_test_x conftest$ac_exeext; then |
---|
6818 | ac_cv_lib_png_png_error=yes |
---|
6819 | else |
---|
6820 | echo "$as_me: failed program was:" >&5 |
---|
6821 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6822 | |
---|
6823 | ac_cv_lib_png_png_error=no |
---|
6824 | fi |
---|
6825 | |
---|
6826 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
6827 | conftest$ac_exeext conftest.$ac_ext |
---|
6828 | LIBS=$ac_check_lib_save_LIBS |
---|
6829 | fi |
---|
6830 | { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_error" >&5 |
---|
6831 | echo "${ECHO_T}$ac_cv_lib_png_png_error" >&6; } |
---|
6832 | if test $ac_cv_lib_png_png_error = yes; then |
---|
6833 | EXTRAPGLIB="$EXTRAPGLIB -lpng" |
---|
6834 | fi |
---|
6835 | |
---|
6836 | |
---|
6837 | ac_ext=f |
---|
6838 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
6839 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6840 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
6841 | |
---|
6842 | |
---|
6843 | { echo "$as_me:$LINENO: checking for pgopen in -lpgplot" >&5 |
---|
6844 | echo $ECHO_N "checking for pgopen in -lpgplot... $ECHO_C" >&6; } |
---|
6845 | if test "${ac_cv_lib_pgplot_pgopen+set}" = set; then |
---|
6846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6847 | else |
---|
6848 | ac_check_lib_save_LIBS=$LIBS |
---|
6849 | LIBS="-lpgplot $PGPLOTLIB $EXTRAPGLIB $LIBS" |
---|
6850 | cat >conftest.$ac_ext <<_ACEOF |
---|
6851 | program main |
---|
6852 | call pgopen |
---|
6853 | end |
---|
6854 | _ACEOF |
---|
6855 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6856 | if { (ac_try="$ac_link" |
---|
6857 | case "(($ac_try" in |
---|
6858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6859 | *) ac_try_echo=$ac_try;; |
---|
6860 | esac |
---|
6861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6862 | (eval "$ac_link") 2>conftest.er1 |
---|
6863 | ac_status=$? |
---|
6864 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6865 | rm -f conftest.er1 |
---|
6866 | cat conftest.err >&5 |
---|
6867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6868 | (exit $ac_status); } && { |
---|
6869 | test -z "$ac_f77_werror_flag" || |
---|
6870 | test ! -s conftest.err |
---|
6871 | } && test -s conftest$ac_exeext && |
---|
6872 | $as_test_x conftest$ac_exeext; then |
---|
6873 | ac_cv_lib_pgplot_pgopen=yes |
---|
6874 | else |
---|
6875 | echo "$as_me: failed program was:" >&5 |
---|
6876 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6877 | |
---|
6878 | ac_cv_lib_pgplot_pgopen=no |
---|
6879 | fi |
---|
6880 | |
---|
6881 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
6882 | conftest$ac_exeext conftest.$ac_ext |
---|
6883 | LIBS=$ac_check_lib_save_LIBS |
---|
6884 | fi |
---|
6885 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pgplot_pgopen" >&5 |
---|
6886 | echo "${ECHO_T}$ac_cv_lib_pgplot_pgopen" >&6; } |
---|
6887 | if test $ac_cv_lib_pgplot_pgopen = yes; then |
---|
6888 | PGPLOTLIB="-lpgplot" |
---|
6889 | fi |
---|
6890 | |
---|
6891 | ac_ext=c |
---|
6892 | ac_cpp='$CPP $CPPFLAGS' |
---|
6893 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6894 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6895 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
6896 | |
---|
6897 | # Checks for extra libraries needed by PGPLOT -- will add -lg2c -lstdc++ to $LIBS |
---|
6898 | |
---|
6899 | { echo "$as_me:$LINENO: checking for gerror_ in -lg2c" >&5 |
---|
6900 | echo $ECHO_N "checking for gerror_ in -lg2c... $ECHO_C" >&6; } |
---|
6901 | if test "${ac_cv_lib_g2c_gerror_+set}" = set; then |
---|
6902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6903 | else |
---|
6904 | ac_check_lib_save_LIBS=$LIBS |
---|
6905 | LIBS="-lg2c $LIBS" |
---|
6906 | cat >conftest.$ac_ext <<_ACEOF |
---|
6907 | /* confdefs.h. */ |
---|
6908 | _ACEOF |
---|
6909 | cat confdefs.h >>conftest.$ac_ext |
---|
6910 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6911 | /* end confdefs.h. */ |
---|
6912 | |
---|
6913 | /* Override any GCC internal prototype to avoid an error. |
---|
6914 | Use char because int might match the return type of a GCC |
---|
6915 | builtin and then its argument prototype would still apply. */ |
---|
6916 | #ifdef __cplusplus |
---|
6917 | extern "C" |
---|
6918 | #endif |
---|
6919 | char gerror_ (); |
---|
6920 | int |
---|
6921 | main () |
---|
6922 | { |
---|
6923 | return gerror_ (); |
---|
6924 | ; |
---|
6925 | return 0; |
---|
6926 | } |
---|
6927 | _ACEOF |
---|
6928 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6929 | if { (ac_try="$ac_link" |
---|
6930 | case "(($ac_try" in |
---|
6931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6932 | *) ac_try_echo=$ac_try;; |
---|
6933 | esac |
---|
6934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6935 | (eval "$ac_link") 2>conftest.er1 |
---|
6936 | ac_status=$? |
---|
6937 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6938 | rm -f conftest.er1 |
---|
6939 | cat conftest.err >&5 |
---|
6940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6941 | (exit $ac_status); } && { |
---|
6942 | test -z "$ac_c_werror_flag" || |
---|
6943 | test ! -s conftest.err |
---|
6944 | } && test -s conftest$ac_exeext && |
---|
6945 | $as_test_x conftest$ac_exeext; then |
---|
6946 | ac_cv_lib_g2c_gerror_=yes |
---|
6947 | else |
---|
6948 | echo "$as_me: failed program was:" >&5 |
---|
6949 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6950 | |
---|
6951 | ac_cv_lib_g2c_gerror_=no |
---|
6952 | fi |
---|
6953 | |
---|
6954 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
6955 | conftest$ac_exeext conftest.$ac_ext |
---|
6956 | LIBS=$ac_check_lib_save_LIBS |
---|
6957 | fi |
---|
6958 | { echo "$as_me:$LINENO: result: $ac_cv_lib_g2c_gerror_" >&5 |
---|
6959 | echo "${ECHO_T}$ac_cv_lib_g2c_gerror_" >&6; } |
---|
6960 | if test $ac_cv_lib_g2c_gerror_ = yes; then |
---|
6961 | cat >>confdefs.h <<_ACEOF |
---|
6962 | #define HAVE_LIBG2C 1 |
---|
6963 | _ACEOF |
---|
6964 | |
---|
6965 | LIBS="-lg2c $LIBS" |
---|
6966 | |
---|
6967 | fi |
---|
6968 | |
---|
6969 | |
---|
6970 | { echo "$as_me:$LINENO: checking for main in -lstdc++" >&5 |
---|
6971 | echo $ECHO_N "checking for main in -lstdc++... $ECHO_C" >&6; } |
---|
6972 | if test "${ac_cv_lib_stdcpp_main+set}" = set; then |
---|
6973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6974 | else |
---|
6975 | ac_check_lib_save_LIBS=$LIBS |
---|
6976 | LIBS="-lstdc++ $LIBS" |
---|
6977 | cat >conftest.$ac_ext <<_ACEOF |
---|
6978 | /* confdefs.h. */ |
---|
6979 | _ACEOF |
---|
6980 | cat confdefs.h >>conftest.$ac_ext |
---|
6981 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6982 | /* end confdefs.h. */ |
---|
6983 | |
---|
6984 | |
---|
6985 | int |
---|
6986 | main () |
---|
6987 | { |
---|
6988 | return main (); |
---|
6989 | ; |
---|
6990 | return 0; |
---|
6991 | } |
---|
6992 | _ACEOF |
---|
6993 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6994 | if { (ac_try="$ac_link" |
---|
6995 | case "(($ac_try" in |
---|
6996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6997 | *) ac_try_echo=$ac_try;; |
---|
6998 | esac |
---|
6999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
7000 | (eval "$ac_link") 2>conftest.er1 |
---|
7001 | ac_status=$? |
---|
7002 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7003 | rm -f conftest.er1 |
---|
7004 | cat conftest.err >&5 |
---|
7005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7006 | (exit $ac_status); } && { |
---|
7007 | test -z "$ac_c_werror_flag" || |
---|
7008 | test ! -s conftest.err |
---|
7009 | } && test -s conftest$ac_exeext && |
---|
7010 | $as_test_x conftest$ac_exeext; then |
---|
7011 | ac_cv_lib_stdcpp_main=yes |
---|
7012 | else |
---|
7013 | echo "$as_me: failed program was:" >&5 |
---|
7014 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7015 | |
---|
7016 | ac_cv_lib_stdcpp_main=no |
---|
7017 | fi |
---|
7018 | |
---|
7019 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
7020 | conftest$ac_exeext conftest.$ac_ext |
---|
7021 | LIBS=$ac_check_lib_save_LIBS |
---|
7022 | fi |
---|
7023 | { echo "$as_me:$LINENO: result: $ac_cv_lib_stdcpp_main" >&5 |
---|
7024 | echo "${ECHO_T}$ac_cv_lib_stdcpp_main" >&6; } |
---|
7025 | if test $ac_cv_lib_stdcpp_main = yes; then |
---|
7026 | cat >>confdefs.h <<_ACEOF |
---|
7027 | #define HAVE_LIBSTDC__ 1 |
---|
7028 | _ACEOF |
---|
7029 | |
---|
7030 | LIBS="-lstdc++ $LIBS" |
---|
7031 | |
---|
7032 | fi |
---|
7033 | |
---|
7034 | if test "x$F77" = xgfortran; then |
---|
7035 | PGPLOTLIB="-lcpgplot $PGPLOTLIB" |
---|
7036 | { echo "$as_me:$LINENO: Using gfortran, so manually adding -lcpgplot to PGPLOTLIB string." >&5 |
---|
7037 | echo "$as_me: Using gfortran, so manually adding -lcpgplot to PGPLOTLIB string." >&6;} |
---|
7038 | else |
---|
7039 | { echo "$as_me:$LINENO: checking for cpgopen in -lcpgplot" >&5 |
---|
7040 | echo $ECHO_N "checking for cpgopen in -lcpgplot... $ECHO_C" >&6; } |
---|
7041 | if test "${ac_cv_lib_cpgplot_cpgopen+set}" = set; then |
---|
7042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7043 | else |
---|
7044 | ac_check_lib_save_LIBS=$LIBS |
---|
7045 | LIBS="-lcpgplot $PGPLOTLIB $LIBS $EXTRAPGLIB $LIBS" |
---|
7046 | cat >conftest.$ac_ext <<_ACEOF |
---|
7047 | /* confdefs.h. */ |
---|
7048 | _ACEOF |
---|
7049 | cat confdefs.h >>conftest.$ac_ext |
---|
7050 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7051 | /* end confdefs.h. */ |
---|
7052 | |
---|
7053 | /* Override any GCC internal prototype to avoid an error. |
---|
7054 | Use char because int might match the return type of a GCC |
---|
7055 | builtin and then its argument prototype would still apply. */ |
---|
7056 | #ifdef __cplusplus |
---|
7057 | extern "C" |
---|
7058 | #endif |
---|
7059 | char cpgopen (); |
---|
7060 | int |
---|
7061 | main () |
---|
7062 | { |
---|
7063 | return cpgopen (); |
---|
7064 | ; |
---|
7065 | return 0; |
---|
7066 | } |
---|
7067 | _ACEOF |
---|
7068 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7069 | if { (ac_try="$ac_link" |
---|
7070 | case "(($ac_try" in |
---|
7071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
7072 | *) ac_try_echo=$ac_try;; |
---|
7073 | esac |
---|
7074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
7075 | (eval "$ac_link") 2>conftest.er1 |
---|
7076 | ac_status=$? |
---|
7077 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7078 | rm -f conftest.er1 |
---|
7079 | cat conftest.err >&5 |
---|
7080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7081 | (exit $ac_status); } && { |
---|
7082 | test -z "$ac_c_werror_flag" || |
---|
7083 | test ! -s conftest.err |
---|
7084 | } && test -s conftest$ac_exeext && |
---|
7085 | $as_test_x conftest$ac_exeext; then |
---|
7086 | ac_cv_lib_cpgplot_cpgopen=yes |
---|
7087 | else |
---|
7088 | echo "$as_me: failed program was:" >&5 |
---|
7089 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7090 | |
---|
7091 | ac_cv_lib_cpgplot_cpgopen=no |
---|
7092 | fi |
---|
7093 | |
---|
7094 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
7095 | conftest$ac_exeext conftest.$ac_ext |
---|
7096 | LIBS=$ac_check_lib_save_LIBS |
---|
7097 | fi |
---|
7098 | { echo "$as_me:$LINENO: result: $ac_cv_lib_cpgplot_cpgopen" >&5 |
---|
7099 | echo "${ECHO_T}$ac_cv_lib_cpgplot_cpgopen" >&6; } |
---|
7100 | if test $ac_cv_lib_cpgplot_cpgopen = yes; then |
---|
7101 | PGPLOTLIB="-lcpgplot $PGPLOTLIB" |
---|
7102 | fi |
---|
7103 | |
---|
7104 | fi |
---|
7105 | |
---|
7106 | # If PGPLOT is not present, we give a warning message but still continue. |
---|
7107 | # The compilation is able to work without the PGPLOT-dependent files. |
---|
7108 | if test "x$PGPLOTLIB" = x; then |
---|
7109 | { echo "$as_me:$LINENO: |
---|
7110 | ------------------------------------------------------- |
---|
7111 | WARNING! PGPLOT could not be found. |
---|
7112 | Compiling Duchamp without graphics capabilities. |
---|
7113 | -------------------------------------------------------" >&5 |
---|
7114 | echo "$as_me: |
---|
7115 | ------------------------------------------------------- |
---|
7116 | WARNING! PGPLOT could not be found. |
---|
7117 | Compiling Duchamp without graphics capabilities. |
---|
7118 | -------------------------------------------------------" >&6;} |
---|
7119 | #We have no pgplot, so we just link with g++ (or equivalent) |
---|
7120 | LINKER=$CXX |
---|
7121 | else |
---|
7122 | #We are using pgplot, so link with the fortran compiler. |
---|
7123 | LINKER=$F77 |
---|
7124 | PGPLOTLIB="$PGPLOTLIB $EXTRAPGLIB $LIBS" |
---|
7125 | { echo "$as_me:$LINENO: PGPLOT appears to be available." >&5 |
---|
7126 | echo "$as_me: PGPLOT appears to be available." >&6;} |
---|
7127 | |
---|
7128 | cat >>confdefs.h <<\_ACEOF |
---|
7129 | #define HAVE_PGPLOT 1 |
---|
7130 | _ACEOF |
---|
7131 | |
---|
7132 | for LIBDIR in $PGPLOTLIBDIRS ; do |
---|
7133 | as_ac_File=`echo "ac_cv_file_$LIBDIR/libcpgplot.a" | $as_tr_sh` |
---|
7134 | { echo "$as_me:$LINENO: checking for $LIBDIR/libcpgplot.a" >&5 |
---|
7135 | echo $ECHO_N "checking for $LIBDIR/libcpgplot.a... $ECHO_C" >&6; } |
---|
7136 | if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
7137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7138 | else |
---|
7139 | test "$cross_compiling" = yes && |
---|
7140 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
7141 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
7142 | { (exit 1); exit 1; }; } |
---|
7143 | if test -r "$LIBDIR/libcpgplot.a"; then |
---|
7144 | eval "$as_ac_File=yes" |
---|
7145 | else |
---|
7146 | eval "$as_ac_File=no" |
---|
7147 | fi |
---|
7148 | fi |
---|
7149 | ac_res=`eval echo '${'$as_ac_File'}'` |
---|
7150 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
7151 | echo "${ECHO_T}$ac_res" >&6; } |
---|
7152 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
7153 | PGPLOTLIB="-L$LIBDIR $PGPLOTLIB"; break |
---|
7154 | fi |
---|
7155 | |
---|
7156 | done |
---|
7157 | if test "x$F77" = xgfortran; then |
---|
7158 | PGPLOTLIB="$PGPLOTLIB -bind_at_load" |
---|
7159 | fi |
---|
7160 | fi |
---|
7161 | |
---|
7162 | fi |
---|
7163 | |
---|
7164 | |
---|
7165 | |
---|
7166 | |
---|
7167 | ########################################################################## |
---|
7168 | |
---|
7169 | ########################################################################## |
---|
7170 | # Search for CFITSIO. |
---|
7171 | # use --with-cfitsio=directory to specify a particular CFITSIO directory. |
---|
7172 | # else do the normal searching for libraries. |
---|
7173 | |
---|
7174 | { echo "$as_me:$LINENO: -- CFITSIO -- " >&5 |
---|
7175 | echo "$as_me: -- CFITSIO -- " >&6;} |
---|
7176 | |
---|
7177 | # Check whether --with-cfitsio was given. |
---|
7178 | if test "${with_cfitsio+set}" = set; then |
---|
7179 | withval=$with_cfitsio; #if we specify a directory... |
---|
7180 | if test "x$withval" = xno; then |
---|
7181 | { echo "$as_me:$LINENO: |
---|
7182 | The CFITSIO library is required. |
---|
7183 | Ignoring the \"--with-cfitsio=no\" and searching for the library." >&5 |
---|
7184 | echo "$as_me: |
---|
7185 | The CFITSIO library is required. |
---|
7186 | Ignoring the \"--with-cfitsio=no\" and searching for the library." >&1;} |
---|
7187 | CFITSIOINCDIRS=$INCDIRS |
---|
7188 | CFITSIOLIBDIRS=$LIBDIRS |
---|
7189 | else |
---|
7190 | { echo "$as_me:$LINENO: Using directory \"$withval\"" >&5 |
---|
7191 | echo "$as_me: Using directory \"$withval\"" >&6;} |
---|
7192 | CFITSIOINCDIRS="$withval \ |
---|
7193 | $withval/include" |
---|
7194 | CFITSIOLIBDIRS="$withval \ |
---|
7195 | $withval/lib" |
---|
7196 | for LIBDIR in $CFITSIOLIBDIRS ; do |
---|
7197 | as_ac_File=`echo "ac_cv_file_$LIBDIR" | $as_tr_sh` |
---|
7198 | { echo "$as_me:$LINENO: checking for $LIBDIR" >&5 |
---|
7199 | echo $ECHO_N "checking for $LIBDIR... $ECHO_C" >&6; } |
---|
7200 | if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
7201 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7202 | else |
---|
7203 | test "$cross_compiling" = yes && |
---|
7204 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
7205 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
7206 | { (exit 1); exit 1; }; } |
---|
7207 | if test -r "$LIBDIR"; then |
---|
7208 | eval "$as_ac_File=yes" |
---|
7209 | else |
---|
7210 | eval "$as_ac_File=no" |
---|
7211 | fi |
---|
7212 | fi |
---|
7213 | ac_res=`eval echo '${'$as_ac_File'}'` |
---|
7214 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
7215 | echo "${ECHO_T}$ac_res" >&6; } |
---|
7216 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
7217 | LDFLAGS="$LDFLAGS -L$LIBDIR" |
---|
7218 | else |
---|
7219 | continue |
---|
7220 | fi |
---|
7221 | |
---|
7222 | done |
---|
7223 | for INCDIR in $CFITSIOINCDIRS ; do |
---|
7224 | as_ac_File=`echo "ac_cv_file_$INCDIR" | $as_tr_sh` |
---|
7225 | { echo "$as_me:$LINENO: checking for $INCDIR" >&5 |
---|
7226 | echo $ECHO_N "checking for $INCDIR... $ECHO_C" >&6; } |
---|
7227 | if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
7228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7229 | else |
---|
7230 | test "$cross_compiling" = yes && |
---|
7231 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
7232 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
7233 | { (exit 1); exit 1; }; } |
---|
7234 | if test -r "$INCDIR"; then |
---|
7235 | eval "$as_ac_File=yes" |
---|
7236 | else |
---|
7237 | eval "$as_ac_File=no" |
---|
7238 | fi |
---|
7239 | fi |
---|
7240 | ac_res=`eval echo '${'$as_ac_File'}'` |
---|
7241 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
7242 | echo "${ECHO_T}$ac_res" >&6; } |
---|
7243 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
7244 | CPPFLAGS="$CPPFLAGS -I$INCDIR" |
---|
7245 | else |
---|
7246 | continue |
---|
7247 | fi |
---|
7248 | |
---|
7249 | done |
---|
7250 | fi |
---|
7251 | |
---|
7252 | else |
---|
7253 | # if directory not specified, go searching. |
---|
7254 | CFITSIOINCDIRS=$INCDIRS |
---|
7255 | CFITSIOLIBDIRS=$LIBDIRS |
---|
7256 | |
---|
7257 | fi |
---|
7258 | |
---|
7259 | |
---|
7260 | for INCDIR in $CFITSIOINCDIRS ; do |
---|
7261 | as_ac_File=`echo "ac_cv_file_$INCDIR/fitsio.h" | $as_tr_sh` |
---|
7262 | { echo "$as_me:$LINENO: checking for $INCDIR/fitsio.h" >&5 |
---|
7263 | echo $ECHO_N "checking for $INCDIR/fitsio.h... $ECHO_C" >&6; } |
---|
7264 | if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
7265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7266 | else |
---|
7267 | test "$cross_compiling" = yes && |
---|
7268 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
7269 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
7270 | { (exit 1); exit 1; }; } |
---|
7271 | if test -r "$INCDIR/fitsio.h"; then |
---|
7272 | eval "$as_ac_File=yes" |
---|
7273 | else |
---|
7274 | eval "$as_ac_File=no" |
---|
7275 | fi |
---|
7276 | fi |
---|
7277 | ac_res=`eval echo '${'$as_ac_File'}'` |
---|
7278 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
7279 | echo "${ECHO_T}$ac_res" >&6; } |
---|
7280 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
7281 | CFITSIOINC=-I$INCDIR; break |
---|
7282 | fi |
---|
7283 | |
---|
7284 | INCDIR=$INCDIR/cfitsio |
---|
7285 | as_ac_File=`echo "ac_cv_file_$INCDIR/fitsio.h" | $as_tr_sh` |
---|
7286 | { echo "$as_me:$LINENO: checking for $INCDIR/fitsio.h" >&5 |
---|
7287 | echo $ECHO_N "checking for $INCDIR/fitsio.h... $ECHO_C" >&6; } |
---|
7288 | if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
7289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7290 | else |
---|
7291 | test "$cross_compiling" = yes && |
---|
7292 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
7293 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
7294 | { (exit 1); exit 1; }; } |
---|
7295 | if test -r "$INCDIR/fitsio.h"; then |
---|
7296 | eval "$as_ac_File=yes" |
---|
7297 | else |
---|
7298 | eval "$as_ac_File=no" |
---|
7299 | fi |
---|
7300 | fi |
---|
7301 | ac_res=`eval echo '${'$as_ac_File'}'` |
---|
7302 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
7303 | echo "${ECHO_T}$ac_res" >&6; } |
---|
7304 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
7305 | CFITSIOINC=-I$INCDIR; break |
---|
7306 | fi |
---|
7307 | |
---|
7308 | done |
---|
7309 | |
---|
7310 | { echo "$as_me:$LINENO: checking for recv in -lsocket" >&5 |
---|
7311 | echo $ECHO_N "checking for recv in -lsocket... $ECHO_C" >&6; } |
---|
7312 | if test "${ac_cv_lib_socket_recv+set}" = set; then |
---|
7313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7314 | else |
---|
7315 | ac_check_lib_save_LIBS=$LIBS |
---|
7316 | LIBS="-lsocket $LIBS $LIBS" |
---|
7317 | cat >conftest.$ac_ext <<_ACEOF |
---|
7318 | /* confdefs.h. */ |
---|
7319 | _ACEOF |
---|
7320 | cat confdefs.h >>conftest.$ac_ext |
---|
7321 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7322 | /* end confdefs.h. */ |
---|
7323 | |
---|
7324 | /* Override any GCC internal prototype to avoid an error. |
---|
7325 | Use char because int might match the return type of a GCC |
---|
7326 | builtin and then its argument prototype would still apply. */ |
---|
7327 | #ifdef __cplusplus |
---|
7328 | extern "C" |
---|
7329 | #endif |
---|
7330 | char recv (); |
---|
7331 | int |
---|
7332 | main () |
---|
7333 | { |
---|
7334 | return recv (); |
---|
7335 | ; |
---|
7336 | return 0; |
---|
7337 | } |
---|
7338 | _ACEOF |
---|
7339 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7340 | if { (ac_try="$ac_link" |
---|
7341 | case "(($ac_try" in |
---|
7342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
7343 | *) ac_try_echo=$ac_try;; |
---|
7344 | esac |
---|
7345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
7346 | (eval "$ac_link") 2>conftest.er1 |
---|
7347 | ac_status=$? |
---|
7348 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7349 | rm -f conftest.er1 |
---|
7350 | cat conftest.err >&5 |
---|
7351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7352 | (exit $ac_status); } && { |
---|
7353 | test -z "$ac_c_werror_flag" || |
---|
7354 | test ! -s conftest.err |
---|
7355 | } && test -s conftest$ac_exeext && |
---|
7356 | $as_test_x conftest$ac_exeext; then |
---|
7357 | ac_cv_lib_socket_recv=yes |
---|
7358 | else |
---|
7359 | echo "$as_me: failed program was:" >&5 |
---|
7360 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7361 | |
---|
7362 | ac_cv_lib_socket_recv=no |
---|
7363 | fi |
---|
7364 | |
---|
7365 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
7366 | conftest$ac_exeext conftest.$ac_ext |
---|
7367 | LIBS=$ac_check_lib_save_LIBS |
---|
7368 | fi |
---|
7369 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_recv" >&5 |
---|
7370 | echo "${ECHO_T}$ac_cv_lib_socket_recv" >&6; } |
---|
7371 | if test $ac_cv_lib_socket_recv = yes; then |
---|
7372 | CFITSIOLIB="$CFITSIOLIB -lsocket" |
---|
7373 | fi |
---|
7374 | |
---|
7375 | { echo "$as_me:$LINENO: checking for ffopen in -lcfitsio" >&5 |
---|
7376 | echo $ECHO_N "checking for ffopen in -lcfitsio... $ECHO_C" >&6; } |
---|
7377 | if test "${ac_cv_lib_cfitsio_ffopen+set}" = set; then |
---|
7378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7379 | else |
---|
7380 | ac_check_lib_save_LIBS=$LIBS |
---|
7381 | LIBS="-lcfitsio $CFITSIOLIB $LIBS $LIBS" |
---|
7382 | cat >conftest.$ac_ext <<_ACEOF |
---|
7383 | /* confdefs.h. */ |
---|
7384 | _ACEOF |
---|
7385 | cat confdefs.h >>conftest.$ac_ext |
---|
7386 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7387 | /* end confdefs.h. */ |
---|
7388 | |
---|
7389 | /* Override any GCC internal prototype to avoid an error. |
---|
7390 | Use char because int might match the return type of a GCC |
---|
7391 | builtin and then its argument prototype would still apply. */ |
---|
7392 | #ifdef __cplusplus |
---|
7393 | extern "C" |
---|
7394 | #endif |
---|
7395 | char ffopen (); |
---|
7396 | int |
---|
7397 | main () |
---|
7398 | { |
---|
7399 | return ffopen (); |
---|
7400 | ; |
---|
7401 | return 0; |
---|
7402 | } |
---|
7403 | _ACEOF |
---|
7404 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7405 | if { (ac_try="$ac_link" |
---|
7406 | case "(($ac_try" in |
---|
7407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
7408 | *) ac_try_echo=$ac_try;; |
---|
7409 | esac |
---|
7410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
7411 | (eval "$ac_link") 2>conftest.er1 |
---|
7412 | ac_status=$? |
---|
7413 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7414 | rm -f conftest.er1 |
---|
7415 | cat conftest.err >&5 |
---|
7416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7417 | (exit $ac_status); } && { |
---|
7418 | test -z "$ac_c_werror_flag" || |
---|
7419 | test ! -s conftest.err |
---|
7420 | } && test -s conftest$ac_exeext && |
---|
7421 | $as_test_x conftest$ac_exeext; then |
---|
7422 | ac_cv_lib_cfitsio_ffopen=yes |
---|
7423 | else |
---|
7424 | echo "$as_me: failed program was:" >&5 |
---|
7425 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7426 | |
---|
7427 | ac_cv_lib_cfitsio_ffopen=no |
---|
7428 | fi |
---|
7429 | |
---|
7430 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
7431 | conftest$ac_exeext conftest.$ac_ext |
---|
7432 | LIBS=$ac_check_lib_save_LIBS |
---|
7433 | fi |
---|
7434 | { echo "$as_me:$LINENO: result: $ac_cv_lib_cfitsio_ffopen" >&5 |
---|
7435 | echo "${ECHO_T}$ac_cv_lib_cfitsio_ffopen" >&6; } |
---|
7436 | if test $ac_cv_lib_cfitsio_ffopen = yes; then |
---|
7437 | CFITSIOLIB="$CFITSIOLIB -lcfitsio" |
---|
7438 | fi |
---|
7439 | |
---|
7440 | |
---|
7441 | # CFITSIO is essential for Duchamp, so exit with error message if it |
---|
7442 | # is not present. |
---|
7443 | if test "x$CFITSIOINC" = x -o "x$CFITSIOLIB" = x; then |
---|
7444 | { { echo "$as_me:$LINENO: error: |
---|
7445 | ------------------------------------------------------- |
---|
7446 | Could not find the CFITSIO library. |
---|
7447 | |
---|
7448 | ERROR: Duchamp configuration failure. |
---|
7449 | -------------------------------------------------------" >&5 |
---|
7450 | echo "$as_me: error: |
---|
7451 | ------------------------------------------------------- |
---|
7452 | Could not find the CFITSIO library. |
---|
7453 | |
---|
7454 | ERROR: Duchamp configuration failure. |
---|
7455 | -------------------------------------------------------" >&2;} |
---|
7456 | { (exit 1); exit 1; }; } |
---|
7457 | else |
---|
7458 | { echo "$as_me:$LINENO: CFITSIO appears to be available." >&5 |
---|
7459 | echo "$as_me: CFITSIO appears to be available." >&6;} |
---|
7460 | |
---|
7461 | cat >>confdefs.h <<\_ACEOF |
---|
7462 | #define HAVE_CFITSIO 1 |
---|
7463 | _ACEOF |
---|
7464 | |
---|
7465 | for LIBDIR in $CFITSIOLIBDIRS ; do |
---|
7466 | as_ac_File=`echo "ac_cv_file_$LIBDIR/libcfitsio.a" | $as_tr_sh` |
---|
7467 | { echo "$as_me:$LINENO: checking for $LIBDIR/libcfitsio.a" >&5 |
---|
7468 | echo $ECHO_N "checking for $LIBDIR/libcfitsio.a... $ECHO_C" >&6; } |
---|
7469 | if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
7470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7471 | else |
---|
7472 | test "$cross_compiling" = yes && |
---|
7473 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
7474 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
7475 | { (exit 1); exit 1; }; } |
---|
7476 | if test -r "$LIBDIR/libcfitsio.a"; then |
---|
7477 | eval "$as_ac_File=yes" |
---|
7478 | else |
---|
7479 | eval "$as_ac_File=no" |
---|
7480 | fi |
---|
7481 | fi |
---|
7482 | ac_res=`eval echo '${'$as_ac_File'}'` |
---|
7483 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
7484 | echo "${ECHO_T}$ac_res" >&6; } |
---|
7485 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
7486 | CFITSIOLIB="-L$LIBDIR $CFITSIOLIB"; break |
---|
7487 | fi |
---|
7488 | |
---|
7489 | LIBDIR=$LIBDIR/cfitsio |
---|
7490 | as_ac_File=`echo "ac_cv_file_$LIBDIR/libcfitsio.a" | $as_tr_sh` |
---|
7491 | { echo "$as_me:$LINENO: checking for $LIBDIR/libcfitsio.a" >&5 |
---|
7492 | echo $ECHO_N "checking for $LIBDIR/libcfitsio.a... $ECHO_C" >&6; } |
---|
7493 | if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
7494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7495 | else |
---|
7496 | test "$cross_compiling" = yes && |
---|
7497 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
7498 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
7499 | { (exit 1); exit 1; }; } |
---|
7500 | if test -r "$LIBDIR/libcfitsio.a"; then |
---|
7501 | eval "$as_ac_File=yes" |
---|
7502 | else |
---|
7503 | eval "$as_ac_File=no" |
---|
7504 | fi |
---|
7505 | fi |
---|
7506 | ac_res=`eval echo '${'$as_ac_File'}'` |
---|
7507 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
7508 | echo "${ECHO_T}$ac_res" >&6; } |
---|
7509 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
7510 | CFITSIOLIB="-L$LIBDIR $CFITSIOLIB"; break |
---|
7511 | fi |
---|
7512 | |
---|
7513 | done |
---|
7514 | |
---|
7515 | fi |
---|
7516 | |
---|
7517 | |
---|
7518 | |
---|
7519 | ########################################################################## |
---|
7520 | |
---|
7521 | ########################################################################## |
---|
7522 | # Search for WCSLIB. |
---|
7523 | # use --with-wcslib=directory to specify a particular WCSLIB directory. |
---|
7524 | # else do the normal searching for libraries. |
---|
7525 | |
---|
7526 | { echo "$as_me:$LINENO: -- WCSLIB -- " >&5 |
---|
7527 | echo "$as_me: -- WCSLIB -- " >&6;} |
---|
7528 | WCSINCDIR="" |
---|
7529 | |
---|
7530 | # Check whether --with-wcslib was given. |
---|
7531 | if test "${with_wcslib+set}" = set; then |
---|
7532 | withval=$with_wcslib; #if we specify a directory... |
---|
7533 | if test "x$withval" = xno; then |
---|
7534 | { echo "$as_me:$LINENO: |
---|
7535 | The WCSLIB library is required. |
---|
7536 | Ignoring the \"--with-wcslib=no\" and searching for the library." >&5 |
---|
7537 | echo "$as_me: |
---|
7538 | The WCSLIB library is required. |
---|
7539 | Ignoring the \"--with-wcslib=no\" and searching for the library." >&1;} |
---|
7540 | WCSINCDIRS=$INCDIRS |
---|
7541 | WCSLIBDIRS=$LIBDIRS |
---|
7542 | else |
---|
7543 | { echo "$as_me:$LINENO: Using directory \"$withval\"" >&5 |
---|
7544 | echo "$as_me: Using directory \"$withval\"" >&6;} |
---|
7545 | WCSINCDIRS="$withval \ |
---|
7546 | $withval/include" |
---|
7547 | WCSLIBDIRS="$withval \ |
---|
7548 | $withval/lib" |
---|
7549 | for LIBDIR in $WCSLIBDIRS ; do |
---|
7550 | as_ac_File=`echo "ac_cv_file_$LIBDIR" | $as_tr_sh` |
---|
7551 | { echo "$as_me:$LINENO: checking for $LIBDIR" >&5 |
---|
7552 | echo $ECHO_N "checking for $LIBDIR... $ECHO_C" >&6; } |
---|
7553 | if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
7554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7555 | else |
---|
7556 | test "$cross_compiling" = yes && |
---|
7557 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
7558 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
7559 | { (exit 1); exit 1; }; } |
---|
7560 | if test -r "$LIBDIR"; then |
---|
7561 | eval "$as_ac_File=yes" |
---|
7562 | else |
---|
7563 | eval "$as_ac_File=no" |
---|
7564 | fi |
---|
7565 | fi |
---|
7566 | ac_res=`eval echo '${'$as_ac_File'}'` |
---|
7567 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
7568 | echo "${ECHO_T}$ac_res" >&6; } |
---|
7569 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
7570 | LDFLAGS="$LDFLAGS -L$LIBDIR" |
---|
7571 | else |
---|
7572 | continue |
---|
7573 | fi |
---|
7574 | |
---|
7575 | done |
---|
7576 | for INCDIR in $WCSINCDIRS ; do |
---|
7577 | as_ac_File=`echo "ac_cv_file_$INCDIR/wcslib" | $as_tr_sh` |
---|
7578 | { echo "$as_me:$LINENO: checking for $INCDIR/wcslib" >&5 |
---|
7579 | echo $ECHO_N "checking for $INCDIR/wcslib... $ECHO_C" >&6; } |
---|
7580 | if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
7581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7582 | else |
---|
7583 | test "$cross_compiling" = yes && |
---|
7584 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
7585 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
7586 | { (exit 1); exit 1; }; } |
---|
7587 | if test -r "$INCDIR/wcslib"; then |
---|
7588 | eval "$as_ac_File=yes" |
---|
7589 | else |
---|
7590 | eval "$as_ac_File=no" |
---|
7591 | fi |
---|
7592 | fi |
---|
7593 | ac_res=`eval echo '${'$as_ac_File'}'` |
---|
7594 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
7595 | echo "${ECHO_T}$ac_res" >&6; } |
---|
7596 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
7597 | CPPFLAGS="$CPPFLAGS -I$INCDIR"; WCSINCDIR=$INCDIR; break |
---|
7598 | else |
---|
7599 | continue |
---|
7600 | fi |
---|
7601 | |
---|
7602 | done |
---|
7603 | fi |
---|
7604 | |
---|
7605 | else |
---|
7606 | # if directory not specified, go searching. |
---|
7607 | WCSINCDIRS=$INCDIRS |
---|
7608 | WCSLIBDIRS=$LIBDIRS |
---|
7609 | |
---|
7610 | fi |
---|
7611 | |
---|
7612 | |
---|
7613 | |
---|
7614 | if test "x$WCSINCDIR" = x; then |
---|
7615 | for INCBASE in $WCSINCDIRS ; do |
---|
7616 | as_ac_File=`echo "ac_cv_file_$INCBASE/wcslib/wcs.h" | $as_tr_sh` |
---|
7617 | { echo "$as_me:$LINENO: checking for $INCBASE/wcslib/wcs.h" >&5 |
---|
7618 | echo $ECHO_N "checking for $INCBASE/wcslib/wcs.h... $ECHO_C" >&6; } |
---|
7619 | if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
7620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7621 | else |
---|
7622 | test "$cross_compiling" = yes && |
---|
7623 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
7624 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
7625 | { (exit 1); exit 1; }; } |
---|
7626 | if test -r "$INCBASE/wcslib/wcs.h"; then |
---|
7627 | eval "$as_ac_File=yes" |
---|
7628 | else |
---|
7629 | eval "$as_ac_File=no" |
---|
7630 | fi |
---|
7631 | fi |
---|
7632 | ac_res=`eval echo '${'$as_ac_File'}'` |
---|
7633 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
7634 | echo "${ECHO_T}$ac_res" >&6; } |
---|
7635 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
7636 | WCSINC="-I$INCBASE -I$INCBASE/wcslib $WCSINC"; break |
---|
7637 | fi |
---|
7638 | |
---|
7639 | done |
---|
7640 | else |
---|
7641 | as_ac_File=`echo "ac_cv_file_$WCSINCDIR/wcslib/wcs.h" | $as_tr_sh` |
---|
7642 | { echo "$as_me:$LINENO: checking for $WCSINCDIR/wcslib/wcs.h" >&5 |
---|
7643 | echo $ECHO_N "checking for $WCSINCDIR/wcslib/wcs.h... $ECHO_C" >&6; } |
---|
7644 | if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
7645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7646 | else |
---|
7647 | test "$cross_compiling" = yes && |
---|
7648 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
7649 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
7650 | { (exit 1); exit 1; }; } |
---|
7651 | if test -r "$WCSINCDIR/wcslib/wcs.h"; then |
---|
7652 | eval "$as_ac_File=yes" |
---|
7653 | else |
---|
7654 | eval "$as_ac_File=no" |
---|
7655 | fi |
---|
7656 | fi |
---|
7657 | ac_res=`eval echo '${'$as_ac_File'}'` |
---|
7658 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
7659 | echo "${ECHO_T}$ac_res" >&6; } |
---|
7660 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
7661 | WCSINC="-I$WCSINCDIR -I$WCSINCDIR/wcslib $WCSINC" |
---|
7662 | fi |
---|
7663 | |
---|
7664 | fi |
---|
7665 | |
---|
7666 | |
---|
7667 | # Look for libwcs.a, and libpgsbox.a |
---|
7668 | { echo "$as_me:$LINENO: checking for wcss2p in -lwcs" >&5 |
---|
7669 | echo $ECHO_N "checking for wcss2p in -lwcs... $ECHO_C" >&6; } |
---|
7670 | if test "${ac_cv_lib_wcs_wcss2p+set}" = set; then |
---|
7671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7672 | else |
---|
7673 | ac_check_lib_save_LIBS=$LIBS |
---|
7674 | LIBS="-lwcs $WCSLIB $LIBS $CFITSIOLIB $PGPLOTLIB $LIBS" |
---|
7675 | cat >conftest.$ac_ext <<_ACEOF |
---|
7676 | /* confdefs.h. */ |
---|
7677 | _ACEOF |
---|
7678 | cat confdefs.h >>conftest.$ac_ext |
---|
7679 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7680 | /* end confdefs.h. */ |
---|
7681 | |
---|
7682 | /* Override any GCC internal prototype to avoid an error. |
---|
7683 | Use char because int might match the return type of a GCC |
---|
7684 | builtin and then its argument prototype would still apply. */ |
---|
7685 | #ifdef __cplusplus |
---|
7686 | extern "C" |
---|
7687 | #endif |
---|
7688 | char wcss2p (); |
---|
7689 | int |
---|
7690 | main () |
---|
7691 | { |
---|
7692 | return wcss2p (); |
---|
7693 | ; |
---|
7694 | return 0; |
---|
7695 | } |
---|
7696 | _ACEOF |
---|
7697 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7698 | if { (ac_try="$ac_link" |
---|
7699 | case "(($ac_try" in |
---|
7700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
7701 | *) ac_try_echo=$ac_try;; |
---|
7702 | esac |
---|
7703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
7704 | (eval "$ac_link") 2>conftest.er1 |
---|
7705 | ac_status=$? |
---|
7706 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7707 | rm -f conftest.er1 |
---|
7708 | cat conftest.err >&5 |
---|
7709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7710 | (exit $ac_status); } && { |
---|
7711 | test -z "$ac_c_werror_flag" || |
---|
7712 | test ! -s conftest.err |
---|
7713 | } && test -s conftest$ac_exeext && |
---|
7714 | $as_test_x conftest$ac_exeext; then |
---|
7715 | ac_cv_lib_wcs_wcss2p=yes |
---|
7716 | else |
---|
7717 | echo "$as_me: failed program was:" >&5 |
---|
7718 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7719 | |
---|
7720 | ac_cv_lib_wcs_wcss2p=no |
---|
7721 | fi |
---|
7722 | |
---|
7723 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
7724 | conftest$ac_exeext conftest.$ac_ext |
---|
7725 | LIBS=$ac_check_lib_save_LIBS |
---|
7726 | fi |
---|
7727 | { echo "$as_me:$LINENO: result: $ac_cv_lib_wcs_wcss2p" >&5 |
---|
7728 | echo "${ECHO_T}$ac_cv_lib_wcs_wcss2p" >&6; } |
---|
7729 | if test $ac_cv_lib_wcs_wcss2p = yes; then |
---|
7730 | WCSLIB="$WCSLIB -lwcs" |
---|
7731 | fi |
---|
7732 | |
---|
7733 | if test "x$F77" = xgfortran; then |
---|
7734 | WCSLIB="$WCSLIB -lpgsbox" |
---|
7735 | { echo "$as_me:$LINENO: Using gfortran, so manually adding -lpgsbox to WCSLIB string." >&5 |
---|
7736 | echo "$as_me: Using gfortran, so manually adding -lpgsbox to WCSLIB string." >&6;} |
---|
7737 | else |
---|
7738 | { echo "$as_me:$LINENO: checking for cpgsbox in -lpgsbox" >&5 |
---|
7739 | echo $ECHO_N "checking for cpgsbox in -lpgsbox... $ECHO_C" >&6; } |
---|
7740 | if test "${ac_cv_lib_pgsbox_cpgsbox+set}" = set; then |
---|
7741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7742 | else |
---|
7743 | ac_check_lib_save_LIBS=$LIBS |
---|
7744 | LIBS="-lpgsbox $WCSLIB $LIBS $CFITSIOLIB $PGPLOTLIB $LIBS" |
---|
7745 | cat >conftest.$ac_ext <<_ACEOF |
---|
7746 | /* confdefs.h. */ |
---|
7747 | _ACEOF |
---|
7748 | cat confdefs.h >>conftest.$ac_ext |
---|
7749 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7750 | /* end confdefs.h. */ |
---|
7751 | |
---|
7752 | /* Override any GCC internal prototype to avoid an error. |
---|
7753 | Use char because int might match the return type of a GCC |
---|
7754 | builtin and then its argument prototype would still apply. */ |
---|
7755 | #ifdef __cplusplus |
---|
7756 | extern "C" |
---|
7757 | #endif |
---|
7758 | char cpgsbox (); |
---|
7759 | int |
---|
7760 | main () |
---|
7761 | { |
---|
7762 | return cpgsbox (); |
---|
7763 | ; |
---|
7764 | return 0; |
---|
7765 | } |
---|
7766 | _ACEOF |
---|
7767 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7768 | if { (ac_try="$ac_link" |
---|
7769 | case "(($ac_try" in |
---|
7770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
7771 | *) ac_try_echo=$ac_try;; |
---|
7772 | esac |
---|
7773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
7774 | (eval "$ac_link") 2>conftest.er1 |
---|
7775 | ac_status=$? |
---|
7776 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7777 | rm -f conftest.er1 |
---|
7778 | cat conftest.err >&5 |
---|
7779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7780 | (exit $ac_status); } && { |
---|
7781 | test -z "$ac_c_werror_flag" || |
---|
7782 | test ! -s conftest.err |
---|
7783 | } && test -s conftest$ac_exeext && |
---|
7784 | $as_test_x conftest$ac_exeext; then |
---|
7785 | ac_cv_lib_pgsbox_cpgsbox=yes |
---|
7786 | else |
---|
7787 | echo "$as_me: failed program was:" >&5 |
---|
7788 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7789 | |
---|
7790 | ac_cv_lib_pgsbox_cpgsbox=no |
---|
7791 | fi |
---|
7792 | |
---|
7793 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
7794 | conftest$ac_exeext conftest.$ac_ext |
---|
7795 | LIBS=$ac_check_lib_save_LIBS |
---|
7796 | fi |
---|
7797 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pgsbox_cpgsbox" >&5 |
---|
7798 | echo "${ECHO_T}$ac_cv_lib_pgsbox_cpgsbox" >&6; } |
---|
7799 | if test $ac_cv_lib_pgsbox_cpgsbox = yes; then |
---|
7800 | WCSLIB="$WCSLIB -lpgsbox" |
---|
7801 | fi |
---|
7802 | |
---|
7803 | fi |
---|
7804 | |
---|
7805 | # WCSLIB is essential for Duchamp, so exit with error message if it |
---|
7806 | # is not present. Need at least libwcs to be available -- libpgsbox will |
---|
7807 | # depend on PGPLOT being available, but is not critical. |
---|
7808 | if test "x$WCSINC" = x -o "x$WCSLIB" = x; then |
---|
7809 | { { echo "$as_me:$LINENO: error: |
---|
7810 | ------------------------------------------------------- |
---|
7811 | Could not find the WCSLIB library. |
---|
7812 | |
---|
7813 | ERROR: Duchamp configuration failure. |
---|
7814 | -------------------------------------------------------" >&5 |
---|
7815 | echo "$as_me: error: |
---|
7816 | ------------------------------------------------------- |
---|
7817 | Could not find the WCSLIB library. |
---|
7818 | |
---|
7819 | ERROR: Duchamp configuration failure. |
---|
7820 | -------------------------------------------------------" >&2;} |
---|
7821 | { (exit 1); exit 1; }; } |
---|
7822 | else |
---|
7823 | { echo "$as_me:$LINENO: WCSLIB appears to be available." >&5 |
---|
7824 | echo "$as_me: WCSLIB appears to be available." >&6;} |
---|
7825 | |
---|
7826 | cat >>confdefs.h <<\_ACEOF |
---|
7827 | #define HAVE_WCSLIB 1 |
---|
7828 | _ACEOF |
---|
7829 | |
---|
7830 | # Now add the -L statements to start of WCSLIB. |
---|
7831 | # Search for libwcs.a, and, if we find it, search for libpgsbox in same directory and |
---|
7832 | # then in other directories, keeping the appropriate order of -L calls. |
---|
7833 | |
---|
7834 | DIRLIST=". \ |
---|
7835 | wcs \ |
---|
7836 | wcslib" |
---|
7837 | |
---|
7838 | for LIBBASE in $WCSLIBDIRS ; do |
---|
7839 | for DIR in $DIRLIST; do |
---|
7840 | if test "x$DIR" = x.; then |
---|
7841 | LIBDIR=$LIBBASE |
---|
7842 | else |
---|
7843 | LIBDIR="$LIBBASE/$DIR" |
---|
7844 | fi |
---|
7845 | as_ac_File=`echo "ac_cv_file_$LIBDIR/libwcs.a" | $as_tr_sh` |
---|
7846 | { echo "$as_me:$LINENO: checking for $LIBDIR/libwcs.a" >&5 |
---|
7847 | echo $ECHO_N "checking for $LIBDIR/libwcs.a... $ECHO_C" >&6; } |
---|
7848 | if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
7849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7850 | else |
---|
7851 | test "$cross_compiling" = yes && |
---|
7852 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
7853 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
7854 | { (exit 1); exit 1; }; } |
---|
7855 | if test -r "$LIBDIR/libwcs.a"; then |
---|
7856 | eval "$as_ac_File=yes" |
---|
7857 | else |
---|
7858 | eval "$as_ac_File=no" |
---|
7859 | fi |
---|
7860 | fi |
---|
7861 | ac_res=`eval echo '${'$as_ac_File'}'` |
---|
7862 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
7863 | echo "${ECHO_T}$ac_res" >&6; } |
---|
7864 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
7865 | WCSLIBFRONT="-L$LIBDIR"; |
---|
7866 | as_ac_File=`echo "ac_cv_file_$LIBDIR/libpgsbox.a" | $as_tr_sh` |
---|
7867 | { echo "$as_me:$LINENO: checking for $LIBDIR/libpgsbox.a" >&5 |
---|
7868 | echo $ECHO_N "checking for $LIBDIR/libpgsbox.a... $ECHO_C" >&6; } |
---|
7869 | if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
7870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7871 | else |
---|
7872 | test "$cross_compiling" = yes && |
---|
7873 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
7874 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
7875 | { (exit 1); exit 1; }; } |
---|
7876 | if test -r "$LIBDIR/libpgsbox.a"; then |
---|
7877 | eval "$as_ac_File=yes" |
---|
7878 | else |
---|
7879 | eval "$as_ac_File=no" |
---|
7880 | fi |
---|
7881 | fi |
---|
7882 | ac_res=`eval echo '${'$as_ac_File'}'` |
---|
7883 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
7884 | echo "${ECHO_T}$ac_res" >&6; } |
---|
7885 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
7886 | : |
---|
7887 | else |
---|
7888 | |
---|
7889 | for LIBBASE2 in $WCSLIBDIRS ; do |
---|
7890 | for DIR2 in $DIRLIST; do |
---|
7891 | if test "x$DIR" = x.; then |
---|
7892 | LIBDIR=$LIBBASE |
---|
7893 | else |
---|
7894 | LIBDIR="$LIBBASE/$DIR" |
---|
7895 | fi |
---|
7896 | as_ac_File=`echo "ac_cv_file_$LIBDIR2/libpgsbox.a" | $as_tr_sh` |
---|
7897 | { echo "$as_me:$LINENO: checking for $LIBDIR2/libpgsbox.a" >&5 |
---|
7898 | echo $ECHO_N "checking for $LIBDIR2/libpgsbox.a... $ECHO_C" >&6; } |
---|
7899 | if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
7900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7901 | else |
---|
7902 | test "$cross_compiling" = yes && |
---|
7903 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
7904 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
7905 | { (exit 1); exit 1; }; } |
---|
7906 | if test -r "$LIBDIR2/libpgsbox.a"; then |
---|
7907 | eval "$as_ac_File=yes" |
---|
7908 | else |
---|
7909 | eval "$as_ac_File=no" |
---|
7910 | fi |
---|
7911 | fi |
---|
7912 | ac_res=`eval echo '${'$as_ac_File'}'` |
---|
7913 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
7914 | echo "${ECHO_T}$ac_res" >&6; } |
---|
7915 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
7916 | WCSLIBFRONT="$WCSLIB -L$LIBDIR2"; break |
---|
7917 | fi |
---|
7918 | |
---|
7919 | done |
---|
7920 | done |
---|
7921 | fi |
---|
7922 | |
---|
7923 | break |
---|
7924 | fi |
---|
7925 | |
---|
7926 | done |
---|
7927 | done |
---|
7928 | WCSLIB="$WCSLIBFRONT $WCSLIB" |
---|
7929 | fi |
---|
7930 | |
---|
7931 | |
---|
7932 | |
---|
7933 | ########################################################################## |
---|
7934 | |
---|
7935 | |
---|
7936 | |
---|
7937 | ac_config_files="$ac_config_files Makefile" |
---|
7938 | |
---|
7939 | cat >confcache <<\_ACEOF |
---|
7940 | # This file is a shell script that caches the results of configure |
---|
7941 | # tests run on this system so they can be shared between configure |
---|
7942 | # scripts and configure runs, see configure's option --config-cache. |
---|
7943 | # It is not useful on other systems. If it contains results you don't |
---|
7944 | # want to keep, you may remove or edit it. |
---|
7945 | # |
---|
7946 | # config.status only pays attention to the cache file if you give it |
---|
7947 | # the --recheck option to rerun configure. |
---|
7948 | # |
---|
7949 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
7950 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
7951 | # following values. |
---|
7952 | |
---|
7953 | _ACEOF |
---|
7954 | |
---|
7955 | # The following way of writing the cache mishandles newlines in values, |
---|
7956 | # but we know of no workaround that is simple, portable, and efficient. |
---|
7957 | # So, we kill variables containing newlines. |
---|
7958 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
7959 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
7960 | ( |
---|
7961 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
7962 | eval ac_val=\$$ac_var |
---|
7963 | case $ac_val in #( |
---|
7964 | *${as_nl}*) |
---|
7965 | case $ac_var in #( |
---|
7966 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
---|
7967 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
---|
7968 | esac |
---|
7969 | case $ac_var in #( |
---|
7970 | _ | IFS | as_nl) ;; #( |
---|
7971 | *) $as_unset $ac_var ;; |
---|
7972 | esac ;; |
---|
7973 | esac |
---|
7974 | done |
---|
7975 | |
---|
7976 | (set) 2>&1 | |
---|
7977 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
7978 | *${as_nl}ac_space=\ *) |
---|
7979 | # `set' does not quote correctly, so add quotes (double-quote |
---|
7980 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
7981 | sed -n \ |
---|
7982 | "s/'/'\\\\''/g; |
---|
7983 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
7984 | ;; #( |
---|
7985 | *) |
---|
7986 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
7987 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
7988 | ;; |
---|
7989 | esac | |
---|
7990 | sort |
---|
7991 | ) | |
---|
7992 | sed ' |
---|
7993 | /^ac_cv_env_/b end |
---|
7994 | t clear |
---|
7995 | :clear |
---|
7996 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
7997 | t end |
---|
7998 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
7999 | :end' >>confcache |
---|
8000 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
8001 | if test -w "$cache_file"; then |
---|
8002 | test "x$cache_file" != "x/dev/null" && |
---|
8003 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
---|
8004 | echo "$as_me: updating cache $cache_file" >&6;} |
---|
8005 | cat confcache >$cache_file |
---|
8006 | else |
---|
8007 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
---|
8008 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
8009 | fi |
---|
8010 | fi |
---|
8011 | rm -f confcache |
---|
8012 | |
---|
8013 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
8014 | # Let make expand exec_prefix. |
---|
8015 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
8016 | |
---|
8017 | DEFS=-DHAVE_CONFIG_H |
---|
8018 | |
---|
8019 | ac_libobjs= |
---|
8020 | ac_ltlibobjs= |
---|
8021 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
8022 | # 1. Remove the extension, and $U if already installed. |
---|
8023 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
8024 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
---|
8025 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
8026 | # will be set to the directory where LIBOBJS objects are built. |
---|
8027 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
8028 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
8029 | done |
---|
8030 | LIBOBJS=$ac_libobjs |
---|
8031 | |
---|
8032 | LTLIBOBJS=$ac_ltlibobjs |
---|
8033 | |
---|
8034 | |
---|
8035 | |
---|
8036 | : ${CONFIG_STATUS=./config.status} |
---|
8037 | ac_clean_files_save=$ac_clean_files |
---|
8038 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
8039 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
8040 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
8041 | cat >$CONFIG_STATUS <<_ACEOF |
---|
8042 | #! $SHELL |
---|
8043 | # Generated by $as_me. |
---|
8044 | # Run this file to recreate the current configuration. |
---|
8045 | # Compiler output produced by configure, useful for debugging |
---|
8046 | # configure, is in config.log if it exists. |
---|
8047 | |
---|
8048 | debug=false |
---|
8049 | ac_cs_recheck=false |
---|
8050 | ac_cs_silent=false |
---|
8051 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
8052 | _ACEOF |
---|
8053 | |
---|
8054 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8055 | ## --------------------- ## |
---|
8056 | ## M4sh Initialization. ## |
---|
8057 | ## --------------------- ## |
---|
8058 | |
---|
8059 | # Be more Bourne compatible |
---|
8060 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
8061 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
8062 | emulate sh |
---|
8063 | NULLCMD=: |
---|
8064 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
8065 | # is contrary to our usage. Disable this feature. |
---|
8066 | alias -g '${1+"$@"}'='"$@"' |
---|
8067 | setopt NO_GLOB_SUBST |
---|
8068 | else |
---|
8069 | case `(set -o) 2>/dev/null` in |
---|
8070 | *posix*) set -o posix ;; |
---|
8071 | esac |
---|
8072 | |
---|
8073 | fi |
---|
8074 | |
---|
8075 | |
---|
8076 | |
---|
8077 | |
---|
8078 | # PATH needs CR |
---|
8079 | # Avoid depending upon Character Ranges. |
---|
8080 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
8081 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
8082 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
8083 | as_cr_digits='0123456789' |
---|
8084 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
8085 | |
---|
8086 | # The user is always right. |
---|
8087 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
8088 | echo "#! /bin/sh" >conf$$.sh |
---|
8089 | echo "exit 0" >>conf$$.sh |
---|
8090 | chmod +x conf$$.sh |
---|
8091 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
8092 | PATH_SEPARATOR=';' |
---|
8093 | else |
---|
8094 | PATH_SEPARATOR=: |
---|
8095 | fi |
---|
8096 | rm -f conf$$.sh |
---|
8097 | fi |
---|
8098 | |
---|
8099 | # Support unset when possible. |
---|
8100 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
8101 | as_unset=unset |
---|
8102 | else |
---|
8103 | as_unset=false |
---|
8104 | fi |
---|
8105 | |
---|
8106 | |
---|
8107 | # IFS |
---|
8108 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
8109 | # there to prevent editors from complaining about space-tab. |
---|
8110 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
8111 | # splitting by setting IFS to empty value.) |
---|
8112 | as_nl=' |
---|
8113 | ' |
---|
8114 | IFS=" "" $as_nl" |
---|
8115 | |
---|
8116 | # Find who we are. Look in the path if we contain no directory separator. |
---|
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 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
8137 | { (exit 1); exit 1; } |
---|
8138 | fi |
---|
8139 | |
---|
8140 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
8141 | for as_var in ENV MAIL MAILPATH |
---|
8142 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
8143 | done |
---|
8144 | PS1='$ ' |
---|
8145 | PS2='> ' |
---|
8146 | PS4='+ ' |
---|
8147 | |
---|
8148 | # NLS nuisances. |
---|
8149 | for as_var in \ |
---|
8150 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
8151 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
8152 | LC_TELEPHONE LC_TIME |
---|
8153 | do |
---|
8154 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
8155 | eval $as_var=C; export $as_var |
---|
8156 | else |
---|
8157 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
8158 | fi |
---|
8159 | done |
---|
8160 | |
---|
8161 | # Required to use basename. |
---|
8162 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
8163 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
8164 | as_expr=expr |
---|
8165 | else |
---|
8166 | as_expr=false |
---|
8167 | fi |
---|
8168 | |
---|
8169 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
8170 | as_basename=basename |
---|
8171 | else |
---|
8172 | as_basename=false |
---|
8173 | fi |
---|
8174 | |
---|
8175 | |
---|
8176 | # Name of the executable. |
---|
8177 | as_me=`$as_basename -- "$0" || |
---|
8178 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
8179 | X"$0" : 'X\(//\)$' \| \ |
---|
8180 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
8181 | echo X/"$0" | |
---|
8182 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
8183 | s//\1/ |
---|
8184 | q |
---|
8185 | } |
---|
8186 | /^X\/\(\/\/\)$/{ |
---|
8187 | s//\1/ |
---|
8188 | q |
---|
8189 | } |
---|
8190 | /^X\/\(\/\).*/{ |
---|
8191 | s//\1/ |
---|
8192 | q |
---|
8193 | } |
---|
8194 | s/.*/./; q'` |
---|
8195 | |
---|
8196 | # CDPATH. |
---|
8197 | $as_unset CDPATH |
---|
8198 | |
---|
8199 | |
---|
8200 | |
---|
8201 | as_lineno_1=$LINENO |
---|
8202 | as_lineno_2=$LINENO |
---|
8203 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
8204 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
---|
8205 | |
---|
8206 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
8207 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
8208 | # line-number line after each line using $LINENO; the second 'sed' |
---|
8209 | # does the real work. The second script uses 'N' to pair each |
---|
8210 | # line-number line with the line containing $LINENO, and appends |
---|
8211 | # trailing '-' during substitution so that $LINENO is not a special |
---|
8212 | # case at line end. |
---|
8213 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
8214 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
---|
8215 | # E. McMahon (1931-1989) for sed's syntax. :-) |
---|
8216 | sed -n ' |
---|
8217 | p |
---|
8218 | /[$]LINENO/= |
---|
8219 | ' <$as_myself | |
---|
8220 | sed ' |
---|
8221 | s/[$]LINENO.*/&-/ |
---|
8222 | t lineno |
---|
8223 | b |
---|
8224 | :lineno |
---|
8225 | N |
---|
8226 | :loop |
---|
8227 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
8228 | t loop |
---|
8229 | s/-\n.*// |
---|
8230 | ' >$as_me.lineno && |
---|
8231 | chmod +x "$as_me.lineno" || |
---|
8232 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
8233 | { (exit 1); exit 1; }; } |
---|
8234 | |
---|
8235 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
8236 | # (the dirname of $[0] is not the place where we might find the |
---|
8237 | # original and so on. Autoconf is especially sensitive to this). |
---|
8238 | . "./$as_me.lineno" |
---|
8239 | # Exit status is that of the last command. |
---|
8240 | exit |
---|
8241 | } |
---|
8242 | |
---|
8243 | |
---|
8244 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
8245 | as_dirname=dirname |
---|
8246 | else |
---|
8247 | as_dirname=false |
---|
8248 | fi |
---|
8249 | |
---|
8250 | ECHO_C= ECHO_N= ECHO_T= |
---|
8251 | case `echo -n x` in |
---|
8252 | -n*) |
---|
8253 | case `echo 'x\c'` in |
---|
8254 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
8255 | *) ECHO_C='\c';; |
---|
8256 | esac;; |
---|
8257 | *) |
---|
8258 | ECHO_N='-n';; |
---|
8259 | esac |
---|
8260 | |
---|
8261 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
8262 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
8263 | as_expr=expr |
---|
8264 | else |
---|
8265 | as_expr=false |
---|
8266 | fi |
---|
8267 | |
---|
8268 | rm -f conf$$ conf$$.exe conf$$.file |
---|
8269 | if test -d conf$$.dir; then |
---|
8270 | rm -f conf$$.dir/conf$$.file |
---|
8271 | else |
---|
8272 | rm -f conf$$.dir |
---|
8273 | mkdir conf$$.dir |
---|
8274 | fi |
---|
8275 | echo >conf$$.file |
---|
8276 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
8277 | as_ln_s='ln -s' |
---|
8278 | # ... but there are two gotchas: |
---|
8279 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
8280 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
8281 | # In both cases, we have to default to `cp -p'. |
---|
8282 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
8283 | as_ln_s='cp -p' |
---|
8284 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
8285 | as_ln_s=ln |
---|
8286 | else |
---|
8287 | as_ln_s='cp -p' |
---|
8288 | fi |
---|
8289 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
8290 | rmdir conf$$.dir 2>/dev/null |
---|
8291 | |
---|
8292 | if mkdir -p . 2>/dev/null; then |
---|
8293 | as_mkdir_p=: |
---|
8294 | else |
---|
8295 | test -d ./-p && rmdir ./-p |
---|
8296 | as_mkdir_p=false |
---|
8297 | fi |
---|
8298 | |
---|
8299 | if test -x / >/dev/null 2>&1; then |
---|
8300 | as_test_x='test -x' |
---|
8301 | else |
---|
8302 | if ls -dL / >/dev/null 2>&1; then |
---|
8303 | as_ls_L_option=L |
---|
8304 | else |
---|
8305 | as_ls_L_option= |
---|
8306 | fi |
---|
8307 | as_test_x=' |
---|
8308 | eval sh -c '\'' |
---|
8309 | if test -d "$1"; then |
---|
8310 | test -d "$1/."; |
---|
8311 | else |
---|
8312 | case $1 in |
---|
8313 | -*)set "./$1";; |
---|
8314 | esac; |
---|
8315 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
---|
8316 | ???[sx]*):;;*)false;;esac;fi |
---|
8317 | '\'' sh |
---|
8318 | ' |
---|
8319 | fi |
---|
8320 | as_executable_p=$as_test_x |
---|
8321 | |
---|
8322 | # Sed expression to map a string onto a valid CPP name. |
---|
8323 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
8324 | |
---|
8325 | # Sed expression to map a string onto a valid variable name. |
---|
8326 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
8327 | |
---|
8328 | |
---|
8329 | exec 6>&1 |
---|
8330 | |
---|
8331 | # Save the log message, to keep $[0] and so on meaningful, and to |
---|
8332 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
8333 | # values after options handling. |
---|
8334 | ac_log=" |
---|
8335 | This file was extended by Duchamp $as_me 1.1.10, which was |
---|
8336 | generated by GNU Autoconf 2.61. Invocation command line was |
---|
8337 | |
---|
8338 | CONFIG_FILES = $CONFIG_FILES |
---|
8339 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
8340 | CONFIG_LINKS = $CONFIG_LINKS |
---|
8341 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
8342 | $ $0 $@ |
---|
8343 | |
---|
8344 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
8345 | " |
---|
8346 | |
---|
8347 | _ACEOF |
---|
8348 | |
---|
8349 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
8350 | # Files that config.status was made for. |
---|
8351 | config_files="$ac_config_files" |
---|
8352 | config_headers="$ac_config_headers" |
---|
8353 | |
---|
8354 | _ACEOF |
---|
8355 | |
---|
8356 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8357 | ac_cs_usage="\ |
---|
8358 | \`$as_me' instantiates files from templates according to the |
---|
8359 | current configuration. |
---|
8360 | |
---|
8361 | Usage: $0 [OPTIONS] [FILE]... |
---|
8362 | |
---|
8363 | -h, --help print this help, then exit |
---|
8364 | -V, --version print version number and configuration settings, then exit |
---|
8365 | -q, --quiet do not print progress messages |
---|
8366 | -d, --debug don't remove temporary files |
---|
8367 | --recheck update $as_me by reconfiguring in the same conditions |
---|
8368 | --file=FILE[:TEMPLATE] |
---|
8369 | instantiate the configuration file FILE |
---|
8370 | --header=FILE[:TEMPLATE] |
---|
8371 | instantiate the configuration header FILE |
---|
8372 | |
---|
8373 | Configuration files: |
---|
8374 | $config_files |
---|
8375 | |
---|
8376 | Configuration headers: |
---|
8377 | $config_headers |
---|
8378 | |
---|
8379 | Report bugs to <bug-autoconf@gnu.org>." |
---|
8380 | |
---|
8381 | _ACEOF |
---|
8382 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
8383 | ac_cs_version="\\ |
---|
8384 | Duchamp config.status 1.1.10 |
---|
8385 | configured by $0, generated by GNU Autoconf 2.61, |
---|
8386 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
---|
8387 | |
---|
8388 | Copyright (C) 2006 Free Software Foundation, Inc. |
---|
8389 | This config.status script is free software; the Free Software Foundation |
---|
8390 | gives unlimited permission to copy, distribute and modify it." |
---|
8391 | |
---|
8392 | ac_pwd='$ac_pwd' |
---|
8393 | srcdir='$srcdir' |
---|
8394 | _ACEOF |
---|
8395 | |
---|
8396 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8397 | # If no file are specified by the user, then we need to provide default |
---|
8398 | # value. By we need to know if files were specified by the user. |
---|
8399 | ac_need_defaults=: |
---|
8400 | while test $# != 0 |
---|
8401 | do |
---|
8402 | case $1 in |
---|
8403 | --*=*) |
---|
8404 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
8405 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
8406 | ac_shift=: |
---|
8407 | ;; |
---|
8408 | *) |
---|
8409 | ac_option=$1 |
---|
8410 | ac_optarg=$2 |
---|
8411 | ac_shift=shift |
---|
8412 | ;; |
---|
8413 | esac |
---|
8414 | |
---|
8415 | case $ac_option in |
---|
8416 | # Handling of the options. |
---|
8417 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
8418 | ac_cs_recheck=: ;; |
---|
8419 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
8420 | echo "$ac_cs_version"; exit ;; |
---|
8421 | --debug | --debu | --deb | --de | --d | -d ) |
---|
8422 | debug=: ;; |
---|
8423 | --file | --fil | --fi | --f ) |
---|
8424 | $ac_shift |
---|
8425 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
8426 | ac_need_defaults=false;; |
---|
8427 | --header | --heade | --head | --hea ) |
---|
8428 | $ac_shift |
---|
8429 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
8430 | ac_need_defaults=false;; |
---|
8431 | --he | --h) |
---|
8432 | # Conflict between --help and --header |
---|
8433 | { echo "$as_me: error: ambiguous option: $1 |
---|
8434 | Try \`$0 --help' for more information." >&2 |
---|
8435 | { (exit 1); exit 1; }; };; |
---|
8436 | --help | --hel | -h ) |
---|
8437 | echo "$ac_cs_usage"; exit ;; |
---|
8438 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
8439 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
8440 | ac_cs_silent=: ;; |
---|
8441 | |
---|
8442 | # This is an error. |
---|
8443 | -*) { echo "$as_me: error: unrecognized option: $1 |
---|
8444 | Try \`$0 --help' for more information." >&2 |
---|
8445 | { (exit 1); exit 1; }; } ;; |
---|
8446 | |
---|
8447 | *) ac_config_targets="$ac_config_targets $1" |
---|
8448 | ac_need_defaults=false ;; |
---|
8449 | |
---|
8450 | esac |
---|
8451 | shift |
---|
8452 | done |
---|
8453 | |
---|
8454 | ac_configure_extra_args= |
---|
8455 | |
---|
8456 | if $ac_cs_silent; then |
---|
8457 | exec 6>/dev/null |
---|
8458 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
8459 | fi |
---|
8460 | |
---|
8461 | _ACEOF |
---|
8462 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
8463 | if \$ac_cs_recheck; then |
---|
8464 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
8465 | CONFIG_SHELL=$SHELL |
---|
8466 | export CONFIG_SHELL |
---|
8467 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
8468 | fi |
---|
8469 | |
---|
8470 | _ACEOF |
---|
8471 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8472 | exec 5>>config.log |
---|
8473 | { |
---|
8474 | echo |
---|
8475 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
8476 | ## Running $as_me. ## |
---|
8477 | _ASBOX |
---|
8478 | echo "$ac_log" |
---|
8479 | } >&5 |
---|
8480 | |
---|
8481 | _ACEOF |
---|
8482 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
8483 | _ACEOF |
---|
8484 | |
---|
8485 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8486 | |
---|
8487 | # Handling of arguments. |
---|
8488 | for ac_config_target in $ac_config_targets |
---|
8489 | do |
---|
8490 | case $ac_config_target in |
---|
8491 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
---|
8492 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
8493 | |
---|
8494 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
8495 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
8496 | { (exit 1); exit 1; }; };; |
---|
8497 | esac |
---|
8498 | done |
---|
8499 | |
---|
8500 | |
---|
8501 | # If the user did not use the arguments to specify the items to instantiate, |
---|
8502 | # then the envvar interface is used. Set only those that are not. |
---|
8503 | # We use the long form for the default assignment because of an extremely |
---|
8504 | # bizarre bug on SunOS 4.1.3. |
---|
8505 | if $ac_need_defaults; then |
---|
8506 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
8507 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
8508 | fi |
---|
8509 | |
---|
8510 | # Have a temporary directory for convenience. Make it in the build tree |
---|
8511 | # simply because there is no reason against having it here, and in addition, |
---|
8512 | # creating and moving files from /tmp can sometimes cause problems. |
---|
8513 | # Hook for its removal unless debugging. |
---|
8514 | # Note that there is a small window in which the directory will not be cleaned: |
---|
8515 | # after its creation but before its name has been assigned to `$tmp'. |
---|
8516 | $debug || |
---|
8517 | { |
---|
8518 | tmp= |
---|
8519 | trap 'exit_status=$? |
---|
8520 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
---|
8521 | ' 0 |
---|
8522 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
8523 | } |
---|
8524 | # Create a (secure) tmp directory for tmp files. |
---|
8525 | |
---|
8526 | { |
---|
8527 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
8528 | test -n "$tmp" && test -d "$tmp" |
---|
8529 | } || |
---|
8530 | { |
---|
8531 | tmp=./conf$$-$RANDOM |
---|
8532 | (umask 077 && mkdir "$tmp") |
---|
8533 | } || |
---|
8534 | { |
---|
8535 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
8536 | { (exit 1); exit 1; } |
---|
8537 | } |
---|
8538 | |
---|
8539 | # |
---|
8540 | # Set up the sed scripts for CONFIG_FILES section. |
---|
8541 | # |
---|
8542 | |
---|
8543 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
8544 | # This happens for instance when ./config.status config.h |
---|
8545 | if test -n "$CONFIG_FILES"; then |
---|
8546 | |
---|
8547 | _ACEOF |
---|
8548 | |
---|
8549 | |
---|
8550 | |
---|
8551 | ac_delim='%!_!# ' |
---|
8552 | for ac_last_try in false false false false false :; do |
---|
8553 | cat >conf$$subs.sed <<_ACEOF |
---|
8554 | SHELL!$SHELL$ac_delim |
---|
8555 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
---|
8556 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
---|
8557 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
---|
8558 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
---|
8559 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
---|
8560 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
---|
8561 | exec_prefix!$exec_prefix$ac_delim |
---|
8562 | prefix!$prefix$ac_delim |
---|
8563 | program_transform_name!$program_transform_name$ac_delim |
---|
8564 | bindir!$bindir$ac_delim |
---|
8565 | sbindir!$sbindir$ac_delim |
---|
8566 | libexecdir!$libexecdir$ac_delim |
---|
8567 | datarootdir!$datarootdir$ac_delim |
---|
8568 | datadir!$datadir$ac_delim |
---|
8569 | sysconfdir!$sysconfdir$ac_delim |
---|
8570 | sharedstatedir!$sharedstatedir$ac_delim |
---|
8571 | localstatedir!$localstatedir$ac_delim |
---|
8572 | includedir!$includedir$ac_delim |
---|
8573 | oldincludedir!$oldincludedir$ac_delim |
---|
8574 | docdir!$docdir$ac_delim |
---|
8575 | infodir!$infodir$ac_delim |
---|
8576 | htmldir!$htmldir$ac_delim |
---|
8577 | dvidir!$dvidir$ac_delim |
---|
8578 | pdfdir!$pdfdir$ac_delim |
---|
8579 | psdir!$psdir$ac_delim |
---|
8580 | libdir!$libdir$ac_delim |
---|
8581 | localedir!$localedir$ac_delim |
---|
8582 | mandir!$mandir$ac_delim |
---|
8583 | DEFS!$DEFS$ac_delim |
---|
8584 | ECHO_C!$ECHO_C$ac_delim |
---|
8585 | ECHO_N!$ECHO_N$ac_delim |
---|
8586 | ECHO_T!$ECHO_T$ac_delim |
---|
8587 | LIBS!$LIBS$ac_delim |
---|
8588 | build_alias!$build_alias$ac_delim |
---|
8589 | host_alias!$host_alias$ac_delim |
---|
8590 | target_alias!$target_alias$ac_delim |
---|
8591 | CXX!$CXX$ac_delim |
---|
8592 | CXXFLAGS!$CXXFLAGS$ac_delim |
---|
8593 | LDFLAGS!$LDFLAGS$ac_delim |
---|
8594 | CPPFLAGS!$CPPFLAGS$ac_delim |
---|
8595 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
---|
8596 | EXEEXT!$EXEEXT$ac_delim |
---|
8597 | OBJEXT!$OBJEXT$ac_delim |
---|
8598 | CC!$CC$ac_delim |
---|
8599 | CFLAGS!$CFLAGS$ac_delim |
---|
8600 | ac_ct_CC!$ac_ct_CC$ac_delim |
---|
8601 | CPP!$CPP$ac_delim |
---|
8602 | F77!$F77$ac_delim |
---|
8603 | FFLAGS!$FFLAGS$ac_delim |
---|
8604 | ac_ct_F77!$ac_ct_F77$ac_delim |
---|
8605 | LN_S!$LN_S$ac_delim |
---|
8606 | INSTALL!$INSTALL$ac_delim |
---|
8607 | GREP!$GREP$ac_delim |
---|
8608 | EGREP!$EGREP$ac_delim |
---|
8609 | RANLIB!$RANLIB$ac_delim |
---|
8610 | POW_LIB!$POW_LIB$ac_delim |
---|
8611 | LIBOBJS!$LIBOBJS$ac_delim |
---|
8612 | XMKMF!$XMKMF$ac_delim |
---|
8613 | X_CFLAGS!$X_CFLAGS$ac_delim |
---|
8614 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
---|
8615 | X_LIBS!$X_LIBS$ac_delim |
---|
8616 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
---|
8617 | LINKER!$LINKER$ac_delim |
---|
8618 | PGPLOTINC!$PGPLOTINC$ac_delim |
---|
8619 | PGPLOTLIB!$PGPLOTLIB$ac_delim |
---|
8620 | CFITSIOINC!$CFITSIOINC$ac_delim |
---|
8621 | CFITSIOLIB!$CFITSIOLIB$ac_delim |
---|
8622 | WCSINC!$WCSINC$ac_delim |
---|
8623 | WCSLIB!$WCSLIB$ac_delim |
---|
8624 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
---|
8625 | _ACEOF |
---|
8626 | |
---|
8627 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 71; then |
---|
8628 | break |
---|
8629 | elif $ac_last_try; then |
---|
8630 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
---|
8631 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
---|
8632 | { (exit 1); exit 1; }; } |
---|
8633 | else |
---|
8634 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
8635 | fi |
---|
8636 | done |
---|
8637 | |
---|
8638 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
---|
8639 | if test -n "$ac_eof"; then |
---|
8640 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
---|
8641 | ac_eof=`expr $ac_eof + 1` |
---|
8642 | fi |
---|
8643 | |
---|
8644 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
8645 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
---|
8646 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
---|
8647 | _ACEOF |
---|
8648 | sed ' |
---|
8649 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
---|
8650 | s/^/s,@/; s/!/@,|#_!!_#|/ |
---|
8651 | :n |
---|
8652 | t n |
---|
8653 | s/'"$ac_delim"'$/,g/; t |
---|
8654 | s/$/\\/; p |
---|
8655 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
---|
8656 | ' >>$CONFIG_STATUS <conf$$subs.sed |
---|
8657 | rm -f conf$$subs.sed |
---|
8658 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
8659 | :end |
---|
8660 | s/|#_!!_#|//g |
---|
8661 | CEOF$ac_eof |
---|
8662 | _ACEOF |
---|
8663 | |
---|
8664 | |
---|
8665 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
8666 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
8667 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
8668 | # (actually we leave an empty line to preserve line numbers). |
---|
8669 | if test "x$srcdir" = x.; then |
---|
8670 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
8671 | s/:*\$(srcdir):*/:/ |
---|
8672 | s/:*\${srcdir}:*/:/ |
---|
8673 | s/:*@srcdir@:*/:/ |
---|
8674 | s/^\([^=]*=[ ]*\):*/\1/ |
---|
8675 | s/:*$// |
---|
8676 | s/^[^=]*=[ ]*$// |
---|
8677 | }' |
---|
8678 | fi |
---|
8679 | |
---|
8680 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8681 | fi # test -n "$CONFIG_FILES" |
---|
8682 | |
---|
8683 | |
---|
8684 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
---|
8685 | do |
---|
8686 | case $ac_tag in |
---|
8687 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
8688 | esac |
---|
8689 | case $ac_mode$ac_tag in |
---|
8690 | :[FHL]*:*);; |
---|
8691 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
---|
8692 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
---|
8693 | { (exit 1); exit 1; }; };; |
---|
8694 | :[FH]-) ac_tag=-:-;; |
---|
8695 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
8696 | esac |
---|
8697 | ac_save_IFS=$IFS |
---|
8698 | IFS=: |
---|
8699 | set x $ac_tag |
---|
8700 | IFS=$ac_save_IFS |
---|
8701 | shift |
---|
8702 | ac_file=$1 |
---|
8703 | shift |
---|
8704 | |
---|
8705 | case $ac_mode in |
---|
8706 | :L) ac_source=$1;; |
---|
8707 | :[FH]) |
---|
8708 | ac_file_inputs= |
---|
8709 | for ac_f |
---|
8710 | do |
---|
8711 | case $ac_f in |
---|
8712 | -) ac_f="$tmp/stdin";; |
---|
8713 | *) # Look for the file first in the build tree, then in the source tree |
---|
8714 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
8715 | # because $ac_f cannot contain `:'. |
---|
8716 | test -f "$ac_f" || |
---|
8717 | case $ac_f in |
---|
8718 | [\\/$]*) false;; |
---|
8719 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
8720 | esac || |
---|
8721 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
---|
8722 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
---|
8723 | { (exit 1); exit 1; }; };; |
---|
8724 | esac |
---|
8725 | ac_file_inputs="$ac_file_inputs $ac_f" |
---|
8726 | done |
---|
8727 | |
---|
8728 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
8729 | # use $as_me), people would be surprised to read: |
---|
8730 | # /* config.h. Generated by config.status. */ |
---|
8731 | configure_input="Generated from "`IFS=: |
---|
8732 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
---|
8733 | if test x"$ac_file" != x-; then |
---|
8734 | configure_input="$ac_file. $configure_input" |
---|
8735 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
8736 | echo "$as_me: creating $ac_file" >&6;} |
---|
8737 | fi |
---|
8738 | |
---|
8739 | case $ac_tag in |
---|
8740 | *:-:* | *:-) cat >"$tmp/stdin";; |
---|
8741 | esac |
---|
8742 | ;; |
---|
8743 | esac |
---|
8744 | |
---|
8745 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
8746 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8747 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
8748 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
8749 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
8750 | echo X"$ac_file" | |
---|
8751 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
8752 | s//\1/ |
---|
8753 | q |
---|
8754 | } |
---|
8755 | /^X\(\/\/\)[^/].*/{ |
---|
8756 | s//\1/ |
---|
8757 | q |
---|
8758 | } |
---|
8759 | /^X\(\/\/\)$/{ |
---|
8760 | s//\1/ |
---|
8761 | q |
---|
8762 | } |
---|
8763 | /^X\(\/\).*/{ |
---|
8764 | s//\1/ |
---|
8765 | q |
---|
8766 | } |
---|
8767 | s/.*/./; q'` |
---|
8768 | { as_dir="$ac_dir" |
---|
8769 | case $as_dir in #( |
---|
8770 | -*) as_dir=./$as_dir;; |
---|
8771 | esac |
---|
8772 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
---|
8773 | as_dirs= |
---|
8774 | while :; do |
---|
8775 | case $as_dir in #( |
---|
8776 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
---|
8777 | *) as_qdir=$as_dir;; |
---|
8778 | esac |
---|
8779 | as_dirs="'$as_qdir' $as_dirs" |
---|
8780 | as_dir=`$as_dirname -- "$as_dir" || |
---|
8781 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8782 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
8783 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
8784 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
8785 | echo X"$as_dir" | |
---|
8786 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
8787 | s//\1/ |
---|
8788 | q |
---|
8789 | } |
---|
8790 | /^X\(\/\/\)[^/].*/{ |
---|
8791 | s//\1/ |
---|
8792 | q |
---|
8793 | } |
---|
8794 | /^X\(\/\/\)$/{ |
---|
8795 | s//\1/ |
---|
8796 | q |
---|
8797 | } |
---|
8798 | /^X\(\/\).*/{ |
---|
8799 | s//\1/ |
---|
8800 | q |
---|
8801 | } |
---|
8802 | s/.*/./; q'` |
---|
8803 | test -d "$as_dir" && break |
---|
8804 | done |
---|
8805 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
8806 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
---|
8807 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
---|
8808 | { (exit 1); exit 1; }; }; } |
---|
8809 | ac_builddir=. |
---|
8810 | |
---|
8811 | case "$ac_dir" in |
---|
8812 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
8813 | *) |
---|
8814 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
8815 | # A ".." for each directory in $ac_dir_suffix. |
---|
8816 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
---|
8817 | case $ac_top_builddir_sub in |
---|
8818 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
8819 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
8820 | esac ;; |
---|
8821 | esac |
---|
8822 | ac_abs_top_builddir=$ac_pwd |
---|
8823 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
8824 | # for backward compatibility: |
---|
8825 | ac_top_builddir=$ac_top_build_prefix |
---|
8826 | |
---|
8827 | case $srcdir in |
---|
8828 | .) # We are building in place. |
---|
8829 | ac_srcdir=. |
---|
8830 | ac_top_srcdir=$ac_top_builddir_sub |
---|
8831 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
8832 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
8833 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
8834 | ac_top_srcdir=$srcdir |
---|
8835 | ac_abs_top_srcdir=$srcdir ;; |
---|
8836 | *) # Relative name. |
---|
8837 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
8838 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
8839 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
8840 | esac |
---|
8841 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
8842 | |
---|
8843 | |
---|
8844 | case $ac_mode in |
---|
8845 | :F) |
---|
8846 | # |
---|
8847 | # CONFIG_FILE |
---|
8848 | # |
---|
8849 | |
---|
8850 | _ACEOF |
---|
8851 | |
---|
8852 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8853 | # If the template does not know about datarootdir, expand it. |
---|
8854 | # FIXME: This hack should be removed a few years after 2.60. |
---|
8855 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
8856 | |
---|
8857 | case `sed -n '/datarootdir/ { |
---|
8858 | p |
---|
8859 | q |
---|
8860 | } |
---|
8861 | /@datadir@/p |
---|
8862 | /@docdir@/p |
---|
8863 | /@infodir@/p |
---|
8864 | /@localedir@/p |
---|
8865 | /@mandir@/p |
---|
8866 | ' $ac_file_inputs` in |
---|
8867 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
8868 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
8869 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
8870 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
8871 | _ACEOF |
---|
8872 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
8873 | ac_datarootdir_hack=' |
---|
8874 | s&@datadir@&$datadir&g |
---|
8875 | s&@docdir@&$docdir&g |
---|
8876 | s&@infodir@&$infodir&g |
---|
8877 | s&@localedir@&$localedir&g |
---|
8878 | s&@mandir@&$mandir&g |
---|
8879 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
8880 | esac |
---|
8881 | _ACEOF |
---|
8882 | |
---|
8883 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
8884 | # Shell code in configure.ac might set extrasub. |
---|
8885 | # FIXME: do we really want to maintain this feature? |
---|
8886 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
8887 | sed "$ac_vpsub |
---|
8888 | $extrasub |
---|
8889 | _ACEOF |
---|
8890 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8891 | :t |
---|
8892 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
8893 | s&@configure_input@&$configure_input&;t t |
---|
8894 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
8895 | s&@srcdir@&$ac_srcdir&;t t |
---|
8896 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
8897 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
8898 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
8899 | s&@builddir@&$ac_builddir&;t t |
---|
8900 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
8901 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
8902 | $ac_datarootdir_hack |
---|
8903 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out |
---|
8904 | |
---|
8905 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
8906 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
---|
8907 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
---|
8908 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
8909 | which seems to be undefined. Please make sure it is defined." >&5 |
---|
8910 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
8911 | which seems to be undefined. Please make sure it is defined." >&2;} |
---|
8912 | |
---|
8913 | rm -f "$tmp/stdin" |
---|
8914 | case $ac_file in |
---|
8915 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
---|
8916 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
---|
8917 | esac |
---|
8918 | ;; |
---|
8919 | :H) |
---|
8920 | # |
---|
8921 | # CONFIG_HEADER |
---|
8922 | # |
---|
8923 | _ACEOF |
---|
8924 | |
---|
8925 | # Transform confdefs.h into a sed script `conftest.defines', that |
---|
8926 | # substitutes the proper values into config.h.in to produce config.h. |
---|
8927 | rm -f conftest.defines conftest.tail |
---|
8928 | # First, append a space to every undef/define line, to ease matching. |
---|
8929 | echo 's/$/ /' >conftest.defines |
---|
8930 | # Then, protect against being on the right side of a sed subst, or in |
---|
8931 | # an unquoted here document, in config.status. If some macros were |
---|
8932 | # called several times there might be several #defines for the same |
---|
8933 | # symbol, which is useless. But do not sort them, since the last |
---|
8934 | # AC_DEFINE must be honored. |
---|
8935 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
---|
8936 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
---|
8937 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
---|
8938 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
---|
8939 | # just an empty string. |
---|
8940 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
---|
8941 | ac_dB='\\)[ (].*,\\1define\\2' |
---|
8942 | ac_dC=' ' |
---|
8943 | ac_dD=' ,' |
---|
8944 | |
---|
8945 | uniq confdefs.h | |
---|
8946 | sed -n ' |
---|
8947 | t rset |
---|
8948 | :rset |
---|
8949 | s/^[ ]*#[ ]*define[ ][ ]*// |
---|
8950 | t ok |
---|
8951 | d |
---|
8952 | :ok |
---|
8953 | s/[\\&,]/\\&/g |
---|
8954 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
---|
8955 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
---|
8956 | ' >>conftest.defines |
---|
8957 | |
---|
8958 | # Remove the space that was appended to ease matching. |
---|
8959 | # Then replace #undef with comments. This is necessary, for |
---|
8960 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
8961 | # on some systems where configure will not decide to define it. |
---|
8962 | # (The regexp can be short, since the line contains either #define or #undef.) |
---|
8963 | echo 's/ $// |
---|
8964 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
---|
8965 | |
---|
8966 | # Break up conftest.defines: |
---|
8967 | ac_max_sed_lines=50 |
---|
8968 | |
---|
8969 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
---|
8970 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
---|
8971 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
---|
8972 | # et cetera. |
---|
8973 | ac_in='$ac_file_inputs' |
---|
8974 | ac_out='"$tmp/out1"' |
---|
8975 | ac_nxt='"$tmp/out2"' |
---|
8976 | |
---|
8977 | while : |
---|
8978 | do |
---|
8979 | # Write a here document: |
---|
8980 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
8981 | # First, check the format of the line: |
---|
8982 | cat >"\$tmp/defines.sed" <<\\CEOF |
---|
8983 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
---|
8984 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
---|
8985 | b |
---|
8986 | :def |
---|
8987 | _ACEOF |
---|
8988 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
---|
8989 | echo 'CEOF |
---|
8990 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
---|
8991 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
---|
8992 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
---|
8993 | grep . conftest.tail >/dev/null || break |
---|
8994 | rm -f conftest.defines |
---|
8995 | mv conftest.tail conftest.defines |
---|
8996 | done |
---|
8997 | rm -f conftest.defines conftest.tail |
---|
8998 | |
---|
8999 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
---|
9000 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
9001 | if test x"$ac_file" != x-; then |
---|
9002 | echo "/* $configure_input */" >"$tmp/config.h" |
---|
9003 | cat "$ac_result" >>"$tmp/config.h" |
---|
9004 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
---|
9005 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
9006 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
9007 | else |
---|
9008 | rm -f $ac_file |
---|
9009 | mv "$tmp/config.h" $ac_file |
---|
9010 | fi |
---|
9011 | else |
---|
9012 | echo "/* $configure_input */" |
---|
9013 | cat "$ac_result" |
---|
9014 | fi |
---|
9015 | rm -f "$tmp/out12" |
---|
9016 | ;; |
---|
9017 | |
---|
9018 | |
---|
9019 | esac |
---|
9020 | |
---|
9021 | done # for ac_tag |
---|
9022 | |
---|
9023 | |
---|
9024 | { (exit 0); exit 0; } |
---|
9025 | _ACEOF |
---|
9026 | chmod +x $CONFIG_STATUS |
---|
9027 | ac_clean_files=$ac_clean_files_save |
---|
9028 | |
---|
9029 | |
---|
9030 | # configure is writing to config.log, and then calls config.status. |
---|
9031 | # config.status does its own redirection, appending to config.log. |
---|
9032 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
9033 | # by configure, so config.status won't be able to write to it; its |
---|
9034 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
9035 | # effectively closing config.log, so it can be properly (re)opened and |
---|
9036 | # appended to by config.status. When coming back to configure, we |
---|
9037 | # need to make the FD available again. |
---|
9038 | if test "$no_create" != yes; then |
---|
9039 | ac_cs_success=: |
---|
9040 | ac_config_status_args= |
---|
9041 | test "$silent" = yes && |
---|
9042 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
9043 | exec 5>/dev/null |
---|
9044 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
9045 | exec 5>>config.log |
---|
9046 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
9047 | # would make configure fail if this is the last instruction. |
---|
9048 | $ac_cs_success || { (exit 1); exit 1; } |
---|
9049 | fi |
---|
9050 | |
---|