Debian Codegraph @

scripts/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
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 # Pre-4.2 versions of Zsh do 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*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell [email protected] about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="magic"
586 ac_unique_file="rules.mak"
587 # Factoring default headers for most tests.
588 ac_includes_default="\
589 #include <stdio.h>
590 #ifdef HAVE_SYS_TYPES_H
591 # include <sys/types.h>
592 #endif
593 #ifdef HAVE_SYS_STAT_H
594 # include <sys/stat.h>
595 #endif
596 #ifdef STDC_HEADERS
597 # include <stdlib.h>
598 # include <stddef.h>
599 #else
600 # ifdef HAVE_STDLIB_H
601 # include <stdlib.h>
602 # endif
603 #endif
604 #ifdef HAVE_STRING_H
605 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
606 # include <memory.h>
607 # endif
608 # include <string.h>
609 #endif
610 #ifdef HAVE_STRINGS_H
611 # include <strings.h>
612 #endif
613 #ifdef HAVE_INTTYPES_H
614 # include <inttypes.h>
615 #endif
616 #ifdef HAVE_STDINT_H
617 # include <stdint.h>
618 #endif
619 #ifdef HAVE_UNISTD_H
620 # include <unistd.h>
621 #endif"
622
623 ac_subst_vars='LTLIBOBJS
624 LIBOBJS
625 INSTALL_TARGET
626 ALL_TARGET
627 OA_LIBS
628 OA
629 MSED
630 MCPP
631 LD_RUN_PATH
632 SHLIB_CFLAGS
633 DEPEND_FLAG
634 gr_hprog
635 gr_hsrcs
636 gr_srcs
637 gr_dflags
638 gr_cflags
639 rl_libs
640 rl_defs
641 DIST_DIR
642 cadinstall
643 programs
644 unused
645 modules
646 sub_extra_libs
647 top_extra_libs
648 ld_extra_objs
649 ld_extra_libs
650 stub_defs
651 extra_defs
652 extra_libs
653 SCRIPTS
654 PACKAGE
655 gr_libs
656 TCL_LIB_DIR
657 TCLSH_EXE
658 WISH_EXE
659 LIB_SPECS_NOSTUB
660 LIB_SPECS
661 INC_SPECS
662 EXTRA_LIB_SPECS
663 SHLIB_LIB_SPECS
664 LDDL_FLAGS
665 LD
666 SHLIB_LD
667 SHDLIB_EXT
668 X_EXTRA_LIBS
669 X_LIBS
670 X_PRE_LIBS
671 X_CFLAGS
672 XMKMF
673 PYTHON3
674 CSH
675 GCORE
676 EGREP
677 GREP
678 RANLIB
679 INSTALL_DATA
680 INSTALL_SCRIPT
681 INSTALL_PROGRAM
682 ac_ct_CXX
683 CXXFLAGS
684 CXX
685 CPP
686 OBJEXT
687 EXEEXT
688 ac_ct_CC
689 CPPFLAGS
690 LDFLAGS
691 CFLAGS
692 CC
693 target_os
694 target_vendor
695 target_cpu
696 target
697 host_os
698 host_vendor
699 host_cpu
700 host
701 build_os
702 build_vendor
703 build_cpu
704 build
705 target_alias
706 host_alias
707 build_alias
708 LIBS
709 ECHO_T
710 ECHO_N
711 ECHO_C
712 DEFS
713 mandir
714 localedir
715 libdir
716 psdir
717 pdfdir
718 dvidir
719 htmldir
720 infodir
721 docdir
722 oldincludedir
723 includedir
724 localstatedir
725 sharedstatedir
726 sysconfdir
727 datadir
728 datarootdir
729 libexecdir
730 sbindir
731 bindir
732 program_transform_name
733 prefix
734 exec_prefix
735 PACKAGE_URL
736 PACKAGE_BUGREPORT
737 PACKAGE_STRING
738 PACKAGE_VERSION
739 PACKAGE_TARNAME
740 PACKAGE_NAME
741 PATH_SEPARATOR
742 SHELL'
743 ac_subst_files=''
744 ac_user_opts='
745 enable_option_checking
746 with_gnu_ld
747 with_x
748 with_distdir
749 with_interpreter
750 with_tcl
751 with_tk
752 with_tclincls
753 with_tkincls
754 with_tcllibs
755 with_tklibs
756 with_openaccess
757 enable_memdebug
758 enable_modular
759 enable_locking
760 enable_calma
761 enable_cif
762 enable_client_render
763 enable_invert_y
764 enable_framebuffer_backing_store
765 enable_plot
766 enable_lef
767 enable_readline
768 enable_threads
769 enable_route
770 enable_rsim
771 enable_new_macros
772 with_opengl
773 with_cairo
774 enable_cairo_offscreen
775 '
776 ac_precious_vars='build_alias
777 host_alias
778 target_alias
779 CC
780 CFLAGS
781 LDFLAGS
782 LIBS
783 CPPFLAGS
784 CPP
785 CXX
786 CXXFLAGS
787 CCC
788 XMKMF'
789
790
791 # Initialize some variables set by options.
792 ac_init_help=
793 ac_init_version=false
794 ac_unrecognized_opts=
795 ac_unrecognized_sep=
796 # The variables have the same names as the options, with
797 # dashes changed to underlines.
798 cache_file=/dev/null
799 exec_prefix=NONE
800 no_create=
801 no_recursion=
802 prefix=NONE
803 program_prefix=NONE
804 program_suffix=NONE
805 program_transform_name=s,x,x,
806 silent=
807 site=
808 srcdir=
809 verbose=
810 x_includes=NONE
811 x_libraries=NONE
812
813 # Installation directory options.
814 # These are left unexpanded so users can "make install exec_prefix=/foo"
815 # and all the variables that are supposed to be based on exec_prefix
816 # by default will actually change.
817 # Use braces instead of parens because sh, perl, etc. also accept them.
818 # (The list follows the same order as the GNU Coding Standards.)
819 bindir='${exec_prefix}/bin'
820 sbindir='${exec_prefix}/sbin'
821 libexecdir='${exec_prefix}/libexec'
822 datarootdir='${prefix}/share'
823 datadir='${datarootdir}'
824 sysconfdir='${prefix}/etc'
825 sharedstatedir='${prefix}/com'
826 localstatedir='${prefix}/var'
827 includedir='${prefix}/include'
828 oldincludedir='/usr/include'
829 docdir='${datarootdir}/doc/${PACKAGE}'
830 infodir='${datarootdir}/info'
831 htmldir='${docdir}'
832 dvidir='${docdir}'
833 pdfdir='${docdir}'
834 psdir='${docdir}'
835 libdir='${exec_prefix}/lib'
836 localedir='${datarootdir}/locale'
837 mandir='${datarootdir}/man'
838
839 ac_prev=
840 ac_dashdash=
841 for ac_option
842 do
843 # If the previous option needs an argument, assign it.
844 if test -n "$ac_prev"; then
845 eval $ac_prev=\$ac_option
846 ac_prev=
847 continue
848 fi
849
850 case $ac_option in
851 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
852 *=) ac_optarg= ;;
853 *) ac_optarg=yes ;;
854 esac
855
856 # Accept the important Cygnus configure options, so we can diagnose typos.
857
858 case $ac_dashdash$ac_option in
859 --)
860 ac_dashdash=yes ;;
861
862 -bindir | --bindir | --bindi | --bind | --bin | --bi)
863 ac_prev=bindir ;;
864 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
865 bindir=$ac_optarg ;;
866
867 -build | --build | --buil | --bui | --bu)
868 ac_prev=build_alias ;;
869 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
870 build_alias=$ac_optarg ;;
871
872 -cache-file | --cache-file | --cache-fil | --cache-fi \
873 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
874 ac_prev=cache_file ;;
875 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
876 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
877 cache_file=$ac_optarg ;;
878
879 --config-cache | -C)
880 cache_file=config.cache ;;
881
882 -datadir | --datadir | --datadi | --datad)
883 ac_prev=datadir ;;
884 -datadir=* | --datadir=* | --datadi=* | --datad=*)
885 datadir=$ac_optarg ;;
886
887 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
888 | --dataroo | --dataro | --datar)
889 ac_prev=datarootdir ;;
890 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
891 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
892 datarootdir=$ac_optarg ;;
893
894 -disable-* | --disable-*)
895 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
896 # Reject names that are not valid shell variable names.
897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
898 as_fn_error $? "invalid feature name: $ac_useropt"
899 ac_useropt_orig=$ac_useropt
900 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
901 case $ac_user_opts in
902 *"
903 "enable_$ac_useropt"
904 "*) ;;
905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
906 ac_unrecognized_sep=', ';;
907 esac
908 eval enable_$ac_useropt=no ;;
909
910 -docdir | --docdir | --docdi | --doc | --do)
911 ac_prev=docdir ;;
912 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
913 docdir=$ac_optarg ;;
914
915 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
916 ac_prev=dvidir ;;
917 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
918 dvidir=$ac_optarg ;;
919
920 -enable-* | --enable-*)
921 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924 as_fn_error $? "invalid feature name: $ac_useropt"
925 ac_useropt_orig=$ac_useropt
926 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
927 case $ac_user_opts in
928 *"
929 "enable_$ac_useropt"
930 "*) ;;
931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
932 ac_unrecognized_sep=', ';;
933 esac
934 eval enable_$ac_useropt=\$ac_optarg ;;
935
936 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
937 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
938 | --exec | --exe | --ex)
939 ac_prev=exec_prefix ;;
940 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
941 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
942 | --exec=* | --exe=* | --ex=*)
943 exec_prefix=$ac_optarg ;;
944
945 -gas | --gas | --ga | --g)
946 # Obsolete; use --with-gas.
947 with_gas=yes ;;
948
949 -help | --help | --hel | --he | -h)
950 ac_init_help=long ;;
951 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
952 ac_init_help=recursive ;;
953 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
954 ac_init_help=short ;;
955
956 -host | --host | --hos | --ho)
957 ac_prev=host_alias ;;
958 -host=* | --host=* | --hos=* | --ho=*)
959 host_alias=$ac_optarg ;;
960
961 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
962 ac_prev=htmldir ;;
963 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
964 | --ht=*)
965 htmldir=$ac_optarg ;;
966
967 -includedir | --includedir | --includedi | --included | --include \
968 | --includ | --inclu | --incl | --inc)
969 ac_prev=includedir ;;
970 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
971 | --includ=* | --inclu=* | --incl=* | --inc=*)
972 includedir=$ac_optarg ;;
973
974 -infodir | --infodir | --infodi | --infod | --info | --inf)
975 ac_prev=infodir ;;
976 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
977 infodir=$ac_optarg ;;
978
979 -libdir | --libdir | --libdi | --libd)
980 ac_prev=libdir ;;
981 -libdir=* | --libdir=* | --libdi=* | --libd=*)
982 libdir=$ac_optarg ;;
983
984 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
985 | --libexe | --libex | --libe)
986 ac_prev=libexecdir ;;
987 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
988 | --libexe=* | --libex=* | --libe=*)
989 libexecdir=$ac_optarg ;;
990
991 -localedir | --localedir | --localedi | --localed | --locale)
992 ac_prev=localedir ;;
993 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
994 localedir=$ac_optarg ;;
995
996 -localstatedir | --localstatedir | --localstatedi | --localstated \
997 | --localstate | --localstat | --localsta | --localst | --locals)
998 ac_prev=localstatedir ;;
999 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1000 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1001 localstatedir=$ac_optarg ;;
1002
1003 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1004 ac_prev=mandir ;;
1005 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1006 mandir=$ac_optarg ;;
1007
1008 -nfp | --nfp | --nf)
1009 # Obsolete; use --without-fp.
1010 with_fp=no ;;
1011
1012 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1013 | --no-cr | --no-c | -n)
1014 no_create=yes ;;
1015
1016 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1017 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1018 no_recursion=yes ;;
1019
1020 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1021 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1022 | --oldin | --oldi | --old | --ol | --o)
1023 ac_prev=oldincludedir ;;
1024 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1025 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1026 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1027 oldincludedir=$ac_optarg ;;
1028
1029 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1030 ac_prev=prefix ;;
1031 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1032 prefix=$ac_optarg ;;
1033
1034 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1035 | --program-pre | --program-pr | --program-p)
1036 ac_prev=program_prefix ;;
1037 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1038 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1039 program_prefix=$ac_optarg ;;
1040
1041 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1042 | --program-suf | --program-su | --program-s)
1043 ac_prev=program_suffix ;;
1044 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1045 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1046 program_suffix=$ac_optarg ;;
1047
1048 -program-transform-name | --program-transform-name \
1049 | --program-transform-nam | --program-transform-na \
1050 | --program-transform-n | --program-transform- \
1051 | --program-transform | --program-transfor \
1052 | --program-transfo | --program-transf \
1053 | --program-trans | --program-tran \
1054 | --progr-tra | --program-tr | --program-t)
1055 ac_prev=program_transform_name ;;
1056 -program-transform-name=* | --program-transform-name=* \
1057 | --program-transform-nam=* | --program-transform-na=* \
1058 | --program-transform-n=* | --program-transform-=* \
1059 | --program-transform=* | --program-transfor=* \
1060 | --program-transfo=* | --program-transf=* \
1061 | --program-trans=* | --program-tran=* \
1062 | --progr-tra=* | --program-tr=* | --program-t=*)
1063 program_transform_name=$ac_optarg ;;
1064
1065 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1066 ac_prev=pdfdir ;;
1067 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1068 pdfdir=$ac_optarg ;;
1069
1070 -psdir | --psdir | --psdi | --psd | --ps)
1071 ac_prev=psdir ;;
1072 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1073 psdir=$ac_optarg ;;
1074
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1077 silent=yes ;;
1078
1079 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1080 ac_prev=sbindir ;;
1081 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1082 | --sbi=* | --sb=*)
1083 sbindir=$ac_optarg ;;
1084
1085 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1086 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1087 | --sharedst | --shareds | --shared | --share | --shar \
1088 | --sha | --sh)
1089 ac_prev=sharedstatedir ;;
1090 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1091 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1092 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1093 | --sha=* | --sh=*)
1094 sharedstatedir=$ac_optarg ;;
1095
1096 -site | --site | --sit)
1097 ac_prev=site ;;
1098 -site=* | --site=* | --sit=*)
1099 site=$ac_optarg ;;
1100
1101 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1102 ac_prev=srcdir ;;
1103 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1104 srcdir=$ac_optarg ;;
1105
1106 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1107 | --syscon | --sysco | --sysc | --sys | --sy)
1108 ac_prev=sysconfdir ;;
1109 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1110 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1111 sysconfdir=$ac_optarg ;;
1112
1113 -target | --target | --targe | --targ | --tar | --ta | --t)
1114 ac_prev=target_alias ;;
1115 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1116 target_alias=$ac_optarg ;;
1117
1118 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1119 verbose=yes ;;
1120
1121 -version | --version | --versio | --versi | --vers | -V)
1122 ac_init_version=: ;;
1123
1124 -with-* | --with-*)
1125 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1126 # Reject names that are not valid shell variable names.
1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128 as_fn_error $? "invalid package name: $ac_useropt"
1129 ac_useropt_orig=$ac_useropt
1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131 case $ac_user_opts in
1132 *"
1133 "with_$ac_useropt"
1134 "*) ;;
1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1136 ac_unrecognized_sep=', ';;
1137 esac
1138 eval with_$ac_useropt=\$ac_optarg ;;
1139
1140 -without-* | --without-*)
1141 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 as_fn_error $? "invalid package name: $ac_useropt"
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1148 *"
1149 "with_$ac_useropt"
1150 "*) ;;
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1153 esac
1154 eval with_$ac_useropt=no ;;
1155
1156 --x)
1157 # Obsolete; use --with-x.
1158 with_x=yes ;;
1159
1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161 | --x-incl | --x-inc | --x-in | --x-i)
1162 ac_prev=x_includes ;;
1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165 x_includes=$ac_optarg ;;
1166
1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169 ac_prev=x_libraries ;;
1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172 x_libraries=$ac_optarg ;;
1173
1174 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1175 Try \`$0 --help' for more information"
1176 ;;
1177
1178 *=*)
1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180 # Reject names that are not valid shell variable names.
1181 case $ac_envvar in #(
1182 '' | [0-9]* | *[!_$as_cr_alnum]* )
1183 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1184 esac
1185 eval $ac_envvar=\$ac_optarg
1186 export $ac_envvar ;;
1187
1188 *)
1189 # FIXME: should be removed in autoconf 3.0.
1190 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1193 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1194 ;;
1195
1196 esac
1197 done
1198
1199 if test -n "$ac_prev"; then
1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1201 as_fn_error $? "missing argument to $ac_option"
1202 fi
1203
1204 if test -n "$ac_unrecognized_opts"; then
1205 case $enable_option_checking in
1206 no) ;;
1207 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1208 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1209 esac
1210 fi
1211
1212 # Check all directory arguments for consistency.
1213 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1214 datadir sysconfdir sharedstatedir localstatedir includedir \
1215 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1216 libdir localedir mandir
1217 do
1218 eval ac_val=\$$ac_var
1219 # Remove trailing slashes.
1220 case $ac_val in
1221 */ )
1222 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1223 eval $ac_var=\$ac_val;;
1224 esac
1225 # Be sure to have absolute directory names.
1226 case $ac_val in
1227 [\\/$]* | ?:[\\/]* ) continue;;
1228 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1229 esac
1230 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1231 done
1232
1233 # There might be people who depend on the old broken behavior: `$host'
1234 # used to hold the argument of --host etc.
1235 # FIXME: To remove some day.
1236 build=$build_alias
1237 host=$host_alias
1238 target=$target_alias
1239
1240 # FIXME: To remove some day.
1241 if test "x$host_alias" != x; then
1242 if test "x$build_alias" = x; then
1243 cross_compiling=maybe
1244 elif test "x$build_alias" != "x$host_alias"; then
1245 cross_compiling=yes
1246 fi
1247 fi
1248
1249 ac_tool_prefix=
1250 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251
1252 test "$silent" = yes && exec 6>/dev/null
1253
1254
1255 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1256 ac_ls_di=`ls -di .` &&
1257 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1258 as_fn_error $? "working directory cannot be determined"
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260 as_fn_error $? "pwd does not report name of working directory"
1261
1262
1263 # Find the source files, if location was not specified.
1264 if test -z "$srcdir"; then
1265 ac_srcdir_defaulted=yes
1266 # Try the directory containing this script, then the parent directory.
1267 ac_confdir=`$as_dirname -- "$as_myself" ||
1268 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269 X"$as_myself" : 'X\(//\)[^/]' \| \
1270 X"$as_myself" : 'X\(//\)$' \| \
1271 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1272 $as_echo X"$as_myself" |
1273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\/\)[^/].*/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\/\)$/{
1282 s//\1/
1283 q
1284 }
1285 /^X\(\/\).*/{
1286 s//\1/
1287 q
1288 }
1289 s/.*/./; q'`
1290 srcdir=$ac_confdir
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292 srcdir=..
1293 fi
1294 else
1295 ac_srcdir_defaulted=no
1296 fi
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1299 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1300 fi
1301 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302 ac_abs_confdir=`(
1303 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1304 pwd)`
1305 # When building in place, set srcdir=.
1306 if test "$ac_abs_confdir" = "$ac_pwd"; then
1307 srcdir=.
1308 fi
1309 # Remove unnecessary trailing slashes from srcdir.
1310 # Double slashes in file names in object file debugging info
1311 # mess up M-x gdb in Emacs.
1312 case $srcdir in
1313 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314 esac
1315 for ac_var in $ac_precious_vars; do
1316 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_env_${ac_var}_value=\$${ac_var}
1318 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320 done
1321
1322 #
1323 # Report the --help message.
1324 #
1325 if test "$ac_init_help" = "long"; then
1326 # Omit some internal or obsolete options to make the list less imposing.
1327 # This message is too long to be a string in the A/UX 3.1 sh.
1328 cat <<_ACEOF
1329 \`configure' configures this package to adapt to many kinds of systems.
1330
1331 Usage: $0 [OPTION]... [VAR=VALUE]...
1332
1333 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334 VAR=VALUE. See below for descriptions of some of the useful variables.
1335
1336 Defaults for the options are specified in brackets.
1337
1338 Configuration:
1339 -h, --help display this help and exit
1340 --help=short display options specific to this package
1341 --help=recursive display the short help of all the included packages
1342 -V, --version display version information and exit
1343 -q, --quiet, --silent do not print \`checking ...' messages
1344 --cache-file=FILE cache test results in FILE [disabled]
1345 -C, --config-cache alias for \`--cache-file=config.cache'
1346 -n, --no-create do not create output files
1347 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1348
1349 Installation directories:
1350 --prefix=PREFIX install architecture-independent files in PREFIX
1351 [$ac_default_prefix]
1352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1353 [PREFIX]
1354
1355 By default, \`make install' will install all the files in
1356 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1357 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358 for instance \`--prefix=\$HOME'.
1359
1360 For better control, use the options below.
1361
1362 Fine tuning of the installation directories:
1363 --bindir=DIR user executables [EPREFIX/bin]
1364 --sbindir=DIR system admin executables [EPREFIX/sbin]
1365 --libexecdir=DIR program executables [EPREFIX/libexec]
1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1369 --libdir=DIR object code libraries [EPREFIX/lib]
1370 --includedir=DIR C header files [PREFIX/include]
1371 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1374 --infodir=DIR info documentation [DATAROOTDIR/info]
1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1376 --mandir=DIR man documentation [DATAROOTDIR/man]
1377 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1378 --htmldir=DIR html documentation [DOCDIR]
1379 --dvidir=DIR dvi documentation [DOCDIR]
1380 --pdfdir=DIR pdf documentation [DOCDIR]
1381 --psdir=DIR ps documentation [DOCDIR]
1382 _ACEOF
1383
1384 cat <<\_ACEOF
1385
1386 X features:
1387 --x-includes=DIR X include files are in DIR
1388 --x-libraries=DIR X library files are in DIR
1389
1390 System types:
1391 --build=BUILD configure for building on BUILD [guessed]
1392 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1393 --target=TARGET configure for building compilers for TARGET [HOST]
1394 _ACEOF
1395 fi
1396
1397 if test -n "$ac_init_help"; then
1398
1399 cat <<\_ACEOF
1400
1401 Optional Features:
1402 --disable-option-checking ignore unrecognized --enable/--with options
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1405 --enable-memdebug enable memory debugging
1406 --enable-modular embed ext2sim and ext2spice packages
1407 --disable-locking disable file locking
1408 --disable-calma disable calma package
1409 --disable-cif disable cif package
1410 --disable-client-render disable OpenGL client-side rendering
1411 --enable-invert-y invert screen top to bottom in OpenGL
1412 --disable-framebuffer-backing-store disable OpenGL framebuffer backing store
1413 --disable-plot disable plot package
1414 --disable-lef disable LEF package
1415 --disable-readline disable readline package
1416 --disable-threads disable threaded graphics
1417 --disable-route disable routing package
1418 --disable-rsim disable IRSIM tool
1419 --disable-new-macros disable new macro set
1420 --enable-cairo-offscreen Use Cairo for off-screen rendering
1421
1422 Optional Packages:
1423 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1424 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1425 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1426 --with-x use the X Window System
1427 --with-distdir=DIR install into location DIR for distribution
1428 --with-interpreter=arg enable interpreter (tcl, scheme, or no)
1429 --with-tcl=DIR Find tclConfig.sh in DIR
1430 --with-tk=DIR Find tkConfig.sh in DIR
1431 --with-tclincls=DIR Find tcl.h in DIR
1432 --with-tkincls=DIR Find tk.h in DIR
1433 --with-tcllibs=DIR Find Tcl library in DIR
1434 --with-tklibs=DIR Find Tk library in DIR
1435 --with-openaccess=DIR use OpenAccess libraries in DIR
1436 --with-opengl=DIR use OpenGL include files in DIR
1437 --with-cairo=DIR use Cairo include files in DIR
1438
1439 Some influential environment variables:
1440 CC C compiler command
1441 CFLAGS C compiler flags
1442 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1443 nonstandard directory <lib dir>
1444 LIBS libraries to pass to the linker, e.g. -l<library>
1445 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1446 you have headers in a nonstandard directory <include dir>
1447 CPP C preprocessor
1448 CXX C++ compiler command
1449 CXXFLAGS C++ compiler flags
1450 XMKMF Path to xmkmf, Makefile generator for X Window System
1451
1452 Use these variables to override the choices made by `configure' or to help
1453 it to find libraries and programs with nonstandard names/locations.
1454
1455 Report bugs to the package provider.
1456 _ACEOF
1457 ac_status=$?
1458 fi
1459
1460 if test "$ac_init_help" = "recursive"; then
1461 # If there are subdirs, report their specific --help.
1462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1463 test -d "$ac_dir" ||
1464 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1465 continue
1466 ac_builddir=.
1467
1468 case "$ac_dir" in
1469 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 *)
1471 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1472 # A ".." for each directory in $ac_dir_suffix.
1473 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1474 case $ac_top_builddir_sub in
1475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1477 esac ;;
1478 esac
1479 ac_abs_top_builddir=$ac_pwd
1480 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1481 # for backward compatibility:
1482 ac_top_builddir=$ac_top_build_prefix
1483
1484 case $srcdir in
1485 .) # We are building in place.
1486 ac_srcdir=.
1487 ac_top_srcdir=$ac_top_builddir_sub
1488 ac_abs_top_srcdir=$ac_pwd ;;
1489 [\\/]* | ?:[\\/]* ) # Absolute name.
1490 ac_srcdir=$srcdir$ac_dir_suffix;
1491 ac_top_srcdir=$srcdir
1492 ac_abs_top_srcdir=$srcdir ;;
1493 *) # Relative name.
1494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1495 ac_top_srcdir=$ac_top_build_prefix$srcdir
1496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1497 esac
1498 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1499
1500 cd "$ac_dir" || { ac_status=$?; continue; }
1501 # Check for guested configure.
1502 if test -f "$ac_srcdir/configure.gnu"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1505 elif test -f "$ac_srcdir/configure"; then
1506 echo &&
1507 $SHELL "$ac_srcdir/configure" --help=recursive
1508 else
1509 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1510 fi || ac_status=$?
1511 cd "$ac_pwd" || { ac_status=$?; break; }
1512 done
1513 fi
1514
1515 test -n "$ac_init_help" && exit $ac_status
1516 if $ac_init_version; then
1517 cat <<\_ACEOF
1518 configure
1519 generated by GNU Autoconf 2.69
1520
1521 Copyright (C) 2012 Free Software Foundation, Inc.
1522 This configure script is free software; the Free Software Foundation
1523 gives unlimited permission to copy, distribute and modify it.
1524 _ACEOF
1525 exit
1526 fi
1527
1528 ## ------------------------ ##
1529 ## Autoconf initialization. ##
1530 ## ------------------------ ##
1531
1532 # ac_fn_c_try_compile LINENO
1533 # --------------------------
1534 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1535 ac_fn_c_try_compile ()
1536 {
1537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538 rm -f conftest.$ac_objext
1539 if { { ac_try="$ac_compile"
1540 case "(($ac_try" in
1541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542 *) ac_try_echo=$ac_try;;
1543 esac
1544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545 $as_echo "$ac_try_echo"; } >&5
1546 (eval "$ac_compile") 2>conftest.err
1547 ac_status=$?
1548 if test -s conftest.err; then
1549 grep -v '^ *+' conftest.err >conftest.er1
1550 cat conftest.er1 >&5
1551 mv -f conftest.er1 conftest.err
1552 fi
1553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554 test $ac_status = 0; } && {
1555 test -z "$ac_c_werror_flag" ||
1556 test ! -s conftest.err
1557 } && test -s conftest.$ac_objext; then :
1558 ac_retval=0
1559 else
1560 $as_echo "$as_me: failed program was:" >&5
1561 sed 's/^/| /' conftest.$ac_ext >&5
1562
1563 ac_retval=1
1564 fi
1565 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1566 as_fn_set_status $ac_retval
1567
1568 } # ac_fn_c_try_compile
1569
1570 # ac_fn_c_try_cpp LINENO
1571 # ----------------------
1572 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1573 ac_fn_c_try_cpp ()
1574 {
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 if { { ac_try="$ac_cpp conftest.$ac_ext"
1577 case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580 esac
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1584 ac_status=$?
1585 if test -s conftest.err; then
1586 grep -v '^ *+' conftest.err >conftest.er1
1587 cat conftest.er1 >&5
1588 mv -f conftest.er1 conftest.err
1589 fi
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } > conftest.i && {
1592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1593 test ! -s conftest.err
1594 }; then :
1595 ac_retval=0
1596 else
1597 $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.$ac_ext >&5
1599
1600 ac_retval=1
1601 fi
1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603 as_fn_set_status $ac_retval
1604
1605 } # ac_fn_c_try_cpp
1606
1607 # ac_fn_cxx_try_compile LINENO
1608 # ----------------------------
1609 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1610 ac_fn_cxx_try_compile ()
1611 {
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 rm -f conftest.$ac_objext
1614 if { { ac_try="$ac_compile"
1615 case "(($ac_try" in
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1618 esac
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_compile") 2>conftest.err
1622 ac_status=$?
1623 if test -s conftest.err; then
1624 grep -v '^ *+' conftest.err >conftest.er1
1625 cat conftest.er1 >&5
1626 mv -f conftest.er1 conftest.err
1627 fi
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } && {
1630 test -z "$ac_cxx_werror_flag" ||
1631 test ! -s conftest.err
1632 } && test -s conftest.$ac_objext; then :
1633 ac_retval=0
1634 else
1635 $as_echo "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1637
1638 ac_retval=1
1639 fi
1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641 as_fn_set_status $ac_retval
1642
1643 } # ac_fn_cxx_try_compile
1644
1645 # ac_fn_c_try_link LINENO
1646 # -----------------------
1647 # Try to link conftest.$ac_ext, and return whether this succeeded.
1648 ac_fn_c_try_link ()
1649 {
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 rm -f conftest.$ac_objext conftest$ac_exeext
1652 if { { ac_try="$ac_link"
1653 case "(($ac_try" in
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1656 esac
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 $as_echo "$ac_try_echo"; } >&5
1659 (eval "$ac_link") 2>conftest.err
1660 ac_status=$?
1661 if test -s conftest.err; then
1662 grep -v '^ *+' conftest.err >conftest.er1
1663 cat conftest.er1 >&5
1664 mv -f conftest.er1 conftest.err
1665 fi
1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; } && {
1668 test -z "$ac_c_werror_flag" ||
1669 test ! -s conftest.err
1670 } && test -s conftest$ac_exeext && {
1671 test "$cross_compiling" = yes ||
1672 test -x conftest$ac_exeext
1673 }; then :
1674 ac_retval=0
1675 else
1676 $as_echo "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.$ac_ext >&5
1678
1679 ac_retval=1
1680 fi
1681 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1682 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1683 # interfere with the next link command; also delete a directory that is
1684 # left behind by Apple's compiler. We do this before executing the actions.
1685 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687 as_fn_set_status $ac_retval
1688
1689 } # ac_fn_c_try_link
1690
1691 # ac_fn_c_try_run LINENO
1692 # ----------------------
1693 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1694 # that executables *can* be run.
1695 ac_fn_c_try_run ()
1696 {
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 if { { ac_try="$ac_link"
1699 case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702 esac
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_link") 2>&5
1706 ac_status=$?
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1709 { { case "(($ac_try" in
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1712 esac
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 $as_echo "$ac_try_echo"; } >&5
1715 (eval "$ac_try") 2>&5
1716 ac_status=$?
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; }; }; then :
1719 ac_retval=0
1720 else
1721 $as_echo "$as_me: program exited with status $ac_status" >&5
1722 $as_echo "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1724
1725 ac_retval=$ac_status
1726 fi
1727 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729 as_fn_set_status $ac_retval
1730
1731 } # ac_fn_c_try_run
1732
1733 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1734 # --------------------------------------------
1735 # Tries to find the compile-time value of EXPR in a program that includes
1736 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1737 # computed
1738 ac_fn_c_compute_int ()
1739 {
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 if test "$cross_compiling" = yes; then
1742 # Depending upon the size, compute the lo and hi bounds.
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1745 $4
1746 int
1747 main ()
1748 {
1749 static int test_array [1 - 2 * !(($2) >= 0)];
1750 test_array [0] = 0;
1751 return test_array [0];
1752
1753 ;
1754 return 0;
1755 }
1756 _ACEOF
1757 if ac_fn_c_try_compile "$LINENO"; then :
1758 ac_lo=0 ac_mid=0
1759 while :; do
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h. */
1762 $4
1763 int
1764 main ()
1765 {
1766 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1767 test_array [0] = 0;
1768 return test_array [0];
1769
1770 ;
1771 return 0;
1772 }
1773 _ACEOF
1774 if ac_fn_c_try_compile "$LINENO"; then :
1775 ac_hi=$ac_mid; break
1776 else
1777 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1778 if test $ac_lo -le $ac_mid; then
1779 ac_lo= ac_hi=
1780 break
1781 fi
1782 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1783 fi
1784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1785 done
1786 else
1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788 /* end confdefs.h. */
1789 $4
1790 int
1791 main ()
1792 {
1793 static int test_array [1 - 2 * !(($2) < 0)];
1794 test_array [0] = 0;
1795 return test_array [0];
1796
1797 ;
1798 return 0;
1799 }
1800 _ACEOF
1801 if ac_fn_c_try_compile "$LINENO"; then :
1802 ac_hi=-1 ac_mid=-1
1803 while :; do
1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h. */
1806 $4
1807 int
1808 main ()
1809 {
1810 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1811 test_array [0] = 0;
1812 return test_array [0];
1813
1814 ;
1815 return 0;
1816 }
1817 _ACEOF
1818 if ac_fn_c_try_compile "$LINENO"; then :
1819 ac_lo=$ac_mid; break
1820 else
1821 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1822 if test $ac_mid -le $ac_hi; then
1823 ac_lo= ac_hi=
1824 break
1825 fi
1826 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1827 fi
1828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829 done
1830 else
1831 ac_lo= ac_hi=
1832 fi
1833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1834 fi
1835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836 # Binary search between lo and hi bounds.
1837 while test "x$ac_lo" != "x$ac_hi"; do
1838 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840 /* end confdefs.h. */
1841 $4
1842 int
1843 main ()
1844 {
1845 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1846 test_array [0] = 0;
1847 return test_array [0];
1848
1849 ;
1850 return 0;
1851 }
1852 _ACEOF
1853 if ac_fn_c_try_compile "$LINENO"; then :
1854 ac_hi=$ac_mid
1855 else
1856 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1857 fi
1858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1859 done
1860 case $ac_lo in #((
1861 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1862 '') ac_retval=1 ;;
1863 esac
1864 else
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1867 $4
1868 static long int longval () { return $2; }
1869 static unsigned long int ulongval () { return $2; }
1870 #include <stdio.h>
1871 #include <stdlib.h>
1872 int
1873 main ()
1874 {
1875
1876 FILE *f = fopen ("conftest.val", "w");
1877 if (! f)
1878 return 1;
1879 if (($2) < 0)
1880 {
1881 long int i = longval ();
1882 if (i != ($2))
1883 return 1;
1884 fprintf (f, "%ld", i);
1885 }
1886 else
1887 {
1888 unsigned long int i = ulongval ();
1889 if (i != ($2))
1890 return 1;
1891 fprintf (f, "%lu", i);
1892 }
1893 /* Do not output a trailing newline, as this causes \r\n confusion
1894 on some platforms. */
1895 return ferror (f) || fclose (f) != 0;
1896
1897 ;
1898 return 0;
1899 }
1900 _ACEOF
1901 if ac_fn_c_try_run "$LINENO"; then :
1902 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1903 else
1904 ac_retval=1
1905 fi
1906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1907 conftest.$ac_objext conftest.beam conftest.$ac_ext
1908 rm -f conftest.val
1909
1910 fi
1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912 as_fn_set_status $ac_retval
1913
1914 } # ac_fn_c_compute_int
1915
1916 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1917 # -------------------------------------------------------
1918 # Tests whether HEADER exists and can be compiled using the include files in
1919 # INCLUDES, setting the cache variable VAR accordingly.
1920 ac_fn_c_check_header_compile ()
1921 {
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924 $as_echo_n "checking for $2... " >&6; }
1925 if eval \${$3+:} false; then :
1926 $as_echo_n "(cached) " >&6
1927 else
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1930 $4
1931 #include <$2>
1932 _ACEOF
1933 if ac_fn_c_try_compile "$LINENO"; then :
1934 eval "$3=yes"
1935 else
1936 eval "$3=no"
1937 fi
1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939 fi
1940 eval ac_res=\$$3
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942 $as_echo "$ac_res" >&6; }
1943 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944
1945 } # ac_fn_c_check_header_compile
1946
1947 # ac_fn_c_check_func LINENO FUNC VAR
1948 # ----------------------------------
1949 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1950 ac_fn_c_check_func ()
1951 {
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954 $as_echo_n "checking for $2... " >&6; }
1955 if eval \${$3+:} false; then :
1956 $as_echo_n "(cached) " >&6
1957 else
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1960 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1962 #define $2 innocuous_$2
1963
1964 /* System header to define __stub macros and hopefully few prototypes,
1965 which can conflict with char $2 (); below.
1966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1967 <limits.h> exists even on freestanding compilers. */
1968
1969 #ifdef __STDC__
1970 # include <limits.h>
1971 #else
1972 # include <assert.h>
1973 #endif
1974
1975 #undef $2
1976
1977 /* Override any GCC internal prototype to avoid an error.
1978 Use char because int might match the return type of a GCC
1979 builtin and then its argument prototype would still apply. */
1980 #ifdef __cplusplus
1981 extern "C"
1982 #endif
1983 char $2 ();
1984 /* The GNU C library defines this for functions which it implements
1985 to always fail with ENOSYS. Some functions are actually named
1986 something starting with __ and the normal name is an alias. */
1987 #if defined __stub_$2 || defined __stub___$2
1988 choke me
1989 #endif
1990
1991 int
1992 main ()
1993 {
1994 return $2 ();
1995 ;
1996 return 0;
1997 }
1998 _ACEOF
1999 if ac_fn_c_try_link "$LINENO"; then :
2000 eval "$3=yes"
2001 else
2002 eval "$3=no"
2003 fi
2004 rm -f core conftest.err conftest.$ac_objext \
2005 conftest$ac_exeext conftest.$ac_ext
2006 fi
2007 eval ac_res=\$$3
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009 $as_echo "$ac_res" >&6; }
2010 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2011
2012 } # ac_fn_c_check_func
2013
2014 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2015 # -------------------------------------------------------
2016 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2017 # the include files in INCLUDES and setting the cache variable VAR
2018 # accordingly.
2019 ac_fn_c_check_header_mongrel ()
2020 {
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 if eval \${$3+:} false; then :
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2024 $as_echo_n "checking for $2... " >&6; }
2025 if eval \${$3+:} false; then :
2026 $as_echo_n "(cached) " >&6
2027 fi
2028 eval ac_res=\$$3
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2031 else
2032 # Is the header compilable?
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2034 $as_echo_n "checking $2 usability... " >&6; }
2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h. */
2037 $4
2038 #include <$2>
2039 _ACEOF
2040 if ac_fn_c_try_compile "$LINENO"; then :
2041 ac_header_compiler=yes
2042 else
2043 ac_header_compiler=no
2044 fi
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2047 $as_echo "$ac_header_compiler" >&6; }
2048
2049 # Is the header present?
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2051 $as_echo_n "checking $2 presence... " >&6; }
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2054 #include <$2>
2055 _ACEOF
2056 if ac_fn_c_try_cpp "$LINENO"; then :
2057 ac_header_preproc=yes
2058 else
2059 ac_header_preproc=no
2060 fi
2061 rm -f conftest.err conftest.i conftest.$ac_ext
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2063 $as_echo "$ac_header_preproc" >&6; }
2064
2065 # So? What about this header?
2066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2067 yes:no: )
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2069 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2071 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2072 ;;
2073 no:yes:* )
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2075 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2077 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2079 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2081 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2083 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2084 ;;
2085 esac
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2087 $as_echo_n "checking for $2... " >&6; }
2088 if eval \${$3+:} false; then :
2089 $as_echo_n "(cached) " >&6
2090 else
2091 eval "$3=\$ac_header_compiler"
2092 fi
2093 eval ac_res=\$$3
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2095 $as_echo "$ac_res" >&6; }
2096 fi
2097 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2098
2099 } # ac_fn_c_check_header_mongrel
2100 cat >config.log <<_ACEOF
2101 This file contains any messages produced by compilers while
2102 running configure, to aid debugging if configure makes a mistake.
2103
2104 It was created by $as_me, which was
2105 generated by GNU Autoconf 2.69. Invocation command line was
2106
2107 $ $0 $@
2108
2109 _ACEOF
2110 exec 5>>config.log
2111 {
2112 cat <<_ASUNAME
2113 ## --------- ##
2114 ## Platform. ##
2115 ## --------- ##
2116
2117 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2118 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2119 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2120 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2121 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2122
2123 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2124 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2125
2126 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2127 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2128 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2129 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2130 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2131 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2132 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2133
2134 _ASUNAME
2135
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 for as_dir in $PATH
2138 do
2139 IFS=$as_save_IFS
2140 test -z "$as_dir" && as_dir=.
2141 $as_echo "PATH: $as_dir"
2142 done
2143 IFS=$as_save_IFS
2144
2145 } >&5
2146
2147 cat >&5 <<_ACEOF
2148
2149
2150 ## ----------- ##
2151 ## Core tests. ##
2152 ## ----------- ##
2153
2154 _ACEOF
2155
2156
2157 # Keep a trace of the command line.
2158 # Strip out --no-create and --no-recursion so they do not pile up.
2159 # Strip out --silent because we don't want to record it for future runs.
2160 # Also quote any args containing shell meta-characters.
2161 # Make two passes to allow for proper duplicate-argument suppression.
2162 ac_configure_args=
2163 ac_configure_args0=
2164 ac_configure_args1=
2165 ac_must_keep_next=false
2166 for ac_pass in 1 2
2167 do
2168 for ac_arg
2169 do
2170 case $ac_arg in
2171 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2173 | -silent | --silent | --silen | --sile | --sil)
2174 continue ;;
2175 *\'*)
2176 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2177 esac
2178 case $ac_pass in
2179 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2180 2)
2181 as_fn_append ac_configure_args1 " '$ac_arg'"
2182 if test $ac_must_keep_next = true; then
2183 ac_must_keep_next=false # Got value, back to normal.
2184 else
2185 case $ac_arg in
2186 *=* | --config-cache | -C | -disable-* | --disable-* \
2187 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2188 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2189 | -with-* | --with-* | -without-* | --without-* | --x)
2190 case "$ac_configure_args0 " in
2191 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2192 esac
2193 ;;
2194 -* ) ac_must_keep_next=true ;;
2195 esac
2196 fi
2197 as_fn_append ac_configure_args " '$ac_arg'"
2198 ;;
2199 esac
2200 done
2201 done
2202 { ac_configure_args0=; unset ac_configure_args0;}
2203 { ac_configure_args1=; unset ac_configure_args1;}
2204
2205 # When interrupted or exit'd, cleanup temporary files, and complete
2206 # config.log. We remove comments because anyway the quotes in there
2207 # would cause problems or look ugly.
2208 # WARNING: Use '\'' to represent an apostrophe within the trap.
2209 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2210 trap 'exit_status=$?
2211 # Save into config.log some information that might help in debugging.
2212 {
2213 echo
2214
2215 $as_echo "## ---------------- ##
2216 ## Cache variables. ##
2217 ## ---------------- ##"
2218 echo
2219 # The following way of writing the cache mishandles newlines in values,
2220 (
2221 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2222 eval ac_val=\$$ac_var
2223 case $ac_val in #(
2224 *${as_nl}*)
2225 case $ac_var in #(
2226 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2227 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2228 esac
2229 case $ac_var in #(
2230 _ | IFS | as_nl) ;; #(
2231 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2232 *) { eval $ac_var=; unset $ac_var;} ;;
2233 esac ;;
2234 esac
2235 done
2236 (set) 2>&1 |
2237 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2238 *${as_nl}ac_space=\ *)
2239 sed -n \
2240 "s/'\''/'\''\\\\'\'''\''/g;
2241 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2242 ;; #(
2243 *)
2244 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2245 ;;
2246 esac |
2247 sort
2248 )
2249 echo
2250
2251 $as_echo "## ----------------- ##
2252 ## Output variables. ##
2253 ## ----------------- ##"
2254 echo
2255 for ac_var in $ac_subst_vars
2256 do
2257 eval ac_val=\$$ac_var
2258 case $ac_val in
2259 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2260 esac
2261 $as_echo "$ac_var='\''$ac_val'\''"
2262 done | sort
2263 echo
2264
2265 if test -n "$ac_subst_files"; then
2266 $as_echo "## ------------------- ##
2267 ## File substitutions. ##
2268 ## ------------------- ##"
2269 echo
2270 for ac_var in $ac_subst_files
2271 do
2272 eval ac_val=\$$ac_var
2273 case $ac_val in
2274 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2275 esac
2276 $as_echo "$ac_var='\''$ac_val'\''"
2277 done | sort
2278 echo
2279 fi
2280
2281 if test -s confdefs.h; then
2282 $as_echo "## ----------- ##
2283 ## confdefs.h. ##
2284 ## ----------- ##"
2285 echo
2286 cat confdefs.h
2287 echo
2288 fi
2289 test "$ac_signal" != 0 &&
2290 $as_echo "$as_me: caught signal $ac_signal"
2291 $as_echo "$as_me: exit $exit_status"
2292 } >&5
2293 rm -f core *.core core.conftest.* &&
2294 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2295 exit $exit_status
2296 ' 0
2297 for ac_signal in 1 2 13 15; do
2298 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2299 done
2300 ac_signal=0
2301
2302 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2303 rm -f -r conftest* confdefs.h
2304
2305 $as_echo "/* confdefs.h */" > confdefs.h
2306
2307 # Predefined preprocessor variables.
2308
2309 cat >>confdefs.h <<_ACEOF
2310 #define PACKAGE_NAME "$PACKAGE_NAME"
2311 _ACEOF
2312
2313 cat >>confdefs.h <<_ACEOF
2314 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2315 _ACEOF
2316
2317 cat >>confdefs.h <<_ACEOF
2318 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2319 _ACEOF
2320
2321 cat >>confdefs.h <<_ACEOF
2322 #define PACKAGE_STRING "$PACKAGE_STRING"
2323 _ACEOF
2324
2325 cat >>confdefs.h <<_ACEOF
2326 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2327 _ACEOF
2328
2329 cat >>confdefs.h <<_ACEOF
2330 #define PACKAGE_URL "$PACKAGE_URL"
2331 _ACEOF
2332
2333
2334 # Let the site file select an alternate cache file if it wants to.
2335 # Prefer an explicitly selected file to automatically selected ones.
2336 ac_site_file1=NONE
2337 ac_site_file2=NONE
2338 if test -n "$CONFIG_SITE"; then
2339 # We do not want a PATH search for config.site.
2340 case $CONFIG_SITE in #((
2341 -*) ac_site_file1=./$CONFIG_SITE;;
2342 */*) ac_site_file1=$CONFIG_SITE;;
2343 *) ac_site_file1=./$CONFIG_SITE;;
2344 esac
2345 elif test "x$prefix" != xNONE; then
2346 ac_site_file1=$prefix/share/config.site
2347 ac_site_file2=$prefix/etc/config.site
2348 else
2349 ac_site_file1=$ac_default_prefix/share/config.site
2350 ac_site_file2=$ac_default_prefix/etc/config.site
2351 fi
2352 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2353 do
2354 test "x$ac_site_file" = xNONE && continue
2355 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2357 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2358 sed 's/^/| /' "$ac_site_file" >&5
2359 . "$ac_site_file" \
2360 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2362 as_fn_error $? "failed to load site script $ac_site_file
2363 See \`config.log' for more details" "$LINENO" 5; }
2364 fi
2365 done
2366
2367 if test -r "$cache_file"; then
2368 # Some versions of bash will fail to source /dev/null (special files
2369 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2370 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2372 $as_echo "$as_me: loading cache $cache_file" >&6;}
2373 case $cache_file in
2374 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2375 *) . "./$cache_file";;
2376 esac
2377 fi
2378 else
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2380 $as_echo "$as_me: creating cache $cache_file" >&6;}
2381 >$cache_file
2382 fi
2383
2384 # Check that the precious variables saved in the cache have kept the same
2385 # value.
2386 ac_cache_corrupted=false
2387 for ac_var in $ac_precious_vars; do
2388 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2389 eval ac_new_set=\$ac_env_${ac_var}_set
2390 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2391 eval ac_new_val=\$ac_env_${ac_var}_value
2392 case $ac_old_set,$ac_new_set in
2393 set,)
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2395 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2396 ac_cache_corrupted=: ;;
2397 ,set)
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2399 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2400 ac_cache_corrupted=: ;;
2401 ,);;
2402 *)
2403 if test "x$ac_old_val" != "x$ac_new_val"; then
2404 # differences in whitespace do not lead to failure.
2405 ac_old_val_w=`echo x $ac_old_val`
2406 ac_new_val_w=`echo x $ac_new_val`
2407 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2409 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2410 ac_cache_corrupted=:
2411 else
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2413 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2414 eval $ac_var=\$ac_old_val
2415 fi
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2417 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2419 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2420 fi;;
2421 esac
2422 # Pass precious variables to config.status.
2423 if test "$ac_new_set" = set; then
2424 case $ac_new_val in
2425 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2426 *) ac_arg=$ac_var=$ac_new_val ;;
2427 esac
2428 case " $ac_configure_args " in
2429 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2430 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2431 esac
2432 fi
2433 done
2434 if $ac_cache_corrupted; then
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2438 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2439 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2440 fi
2441 ## -------------------- ##
2442 ## Main body of script. ##
2443 ## -------------------- ##
2444
2445 ac_ext=c
2446 ac_cpp='$CPP $CPPFLAGS'
2447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2450
2451
2452
2453
2454 ac_aux_dir=
2455 for ac_dir in . "$srcdir"/.; do
2456 if test -f "$ac_dir/install-sh"; then
2457 ac_aux_dir=$ac_dir
2458 ac_install_sh="$ac_aux_dir/install-sh -c"
2459 break
2460 elif test -f "$ac_dir/install.sh"; then
2461 ac_aux_dir=$ac_dir
2462 ac_install_sh="$ac_aux_dir/install.sh -c"
2463 break
2464 elif test -f "$ac_dir/shtool"; then
2465 ac_aux_dir=$ac_dir
2466 ac_install_sh="$ac_aux_dir/shtool install -c"
2467 break
2468 fi
2469 done
2470 if test -z "$ac_aux_dir"; then
2471 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2472 fi
2473
2474 # These three variables are undocumented and unsupported,
2475 # and are intended to be withdrawn in a future Autoconf release.
2476 # They can cause serious problems if a builder's source tree is in a directory
2477 # whose full name contains unusual characters.
2478 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2479 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2480 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2481
2482
2483
2484 # Make sure we can run config.sub.
2485 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2486 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2487
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2489 $as_echo_n "checking build system type... " >&6; }
2490 if ${ac_cv_build+:} false; then :
2491 $as_echo_n "(cached) " >&6
2492 else
2493 ac_build_alias=$build_alias
2494 test "x$ac_build_alias" = x &&
2495 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2496 test "x$ac_build_alias" = x &&
2497 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2498 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2499 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2500
2501 fi
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2503 $as_echo "$ac_cv_build" >&6; }
2504 case $ac_cv_build in
2505 *-*-*) ;;
2506 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2507 esac
2508 build=$ac_cv_build
2509 ac_save_IFS=$IFS; IFS='-'
2510 set x $ac_cv_build
2511 shift
2512 build_cpu=$1
2513 build_vendor=$2
2514 shift; shift
2515 # Remember, the first character of IFS is used to create $*,
2516 # except with old shells:
2517 build_os=$*
2518 IFS=$ac_save_IFS
2519 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2520
2521
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2523 $as_echo_n "checking host system type... " >&6; }
2524 if ${ac_cv_host+:} false; then :
2525 $as_echo_n "(cached) " >&6
2526 else
2527 if test "x$host_alias" = x; then
2528 ac_cv_host=$ac_cv_build
2529 else
2530 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2531 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2532 fi
2533
2534 fi
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2536 $as_echo "$ac_cv_host" >&6; }
2537 case $ac_cv_host in
2538 *-*-*) ;;
2539 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2540 esac
2541 host=$ac_cv_host
2542 ac_save_IFS=$IFS; IFS='-'
2543 set x $ac_cv_host
2544 shift
2545 host_cpu=$1
2546 host_vendor=$2
2547 shift; shift
2548 # Remember, the first character of IFS is used to create $*,
2549 # except with old shells:
2550 host_os=$*
2551 IFS=$ac_save_IFS
2552 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2553
2554
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2556 $as_echo_n "checking target system type... " >&6; }
2557 if ${ac_cv_target+:} false; then :
2558 $as_echo_n "(cached) " >&6
2559 else
2560 if test "x$target_alias" = x; then
2561 ac_cv_target=$ac_cv_host
2562 else
2563 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2564 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2565 fi
2566
2567 fi
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2569 $as_echo "$ac_cv_target" >&6; }
2570 case $ac_cv_target in
2571 *-*-*) ;;
2572 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2573 esac
2574 target=$ac_cv_target
2575 ac_save_IFS=$IFS; IFS='-'
2576 set x $ac_cv_target
2577 shift
2578 target_cpu=$1
2579 target_vendor=$2
2580 shift; shift
2581 # Remember, the first character of IFS is used to create $*,
2582 # except with old shells:
2583 target_os=$*
2584 IFS=$ac_save_IFS
2585 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2586
2587
2588 # The aliases save the names the user supplied, while $host etc.
2589 # will get canonicalized.
2590 test -n "$target_alias" &&
2591 test "$program_prefix$program_suffix$program_transform_name" = \
2592 NONENONEs,x,x, &&
2593 program_prefix=${target_alias}-
2594
2595
2596 PACKAGE=magic
2597
2598 ALL_TARGET="standard"
2599 INSTALL_TARGET="install-magic"
2600
2601 ac_ext=c
2602 ac_cpp='$CPP $CPPFLAGS'
2603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2606 if test -n "$ac_tool_prefix"; then
2607 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2608 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2610 $as_echo_n "checking for $ac_word... " >&6; }
2611 if ${ac_cv_prog_CC+:} false; then :
2612 $as_echo_n "(cached) " >&6
2613 else
2614 if test -n "$CC"; then
2615 ac_cv_prog_CC="$CC" # Let the user override the test.
2616 else
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 for as_dir in $PATH
2619 do
2620 IFS=$as_save_IFS
2621 test -z "$as_dir" && as_dir=.
2622 for ac_exec_ext in '' $ac_executable_extensions; do
2623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2624 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2626 break 2
2627 fi
2628 done
2629 done
2630 IFS=$as_save_IFS
2631
2632 fi
2633 fi
2634 CC=$ac_cv_prog_CC
2635 if test -n "$CC"; then
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2637 $as_echo "$CC" >&6; }
2638 else
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2640 $as_echo "no" >&6; }
2641 fi
2642
2643
2644 fi
2645 if test -z "$ac_cv_prog_CC"; then
2646 ac_ct_CC=$CC
2647 # Extract the first word of "gcc", so it can be a program name with args.
2648 set dummy gcc; ac_word=$2
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2650 $as_echo_n "checking for $ac_word... " >&6; }
2651 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2652 $as_echo_n "(cached) " >&6
2653 else
2654 if test -n "$ac_ct_CC"; then
2655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2656 else
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 for as_dir in $PATH
2659 do
2660 IFS=$as_save_IFS
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2664 ac_cv_prog_ac_ct_CC="gcc"
2665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 break 2
2667 fi
2668 done
2669 done
2670 IFS=$as_save_IFS
2671
2672 fi
2673 fi
2674 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2675 if test -n "$ac_ct_CC"; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2677 $as_echo "$ac_ct_CC" >&6; }
2678 else
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2680 $as_echo "no" >&6; }
2681 fi
2682
2683 if test "x$ac_ct_CC" = x; then
2684 CC=""
2685 else
2686 case $cross_compiling:$ac_tool_warned in
2687 yes:)
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2690 ac_tool_warned=yes ;;
2691 esac
2692 CC=$ac_ct_CC
2693 fi
2694 else
2695 CC="$ac_cv_prog_CC"
2696 fi
2697
2698 if test -z "$CC"; then
2699 if test -n "$ac_tool_prefix"; then
2700 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2701 set dummy ${ac_tool_prefix}cc; ac_word=$2
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2703 $as_echo_n "checking for $ac_word... " >&6; }
2704 if ${ac_cv_prog_CC+:} false; then :
2705 $as_echo_n "(cached) " >&6
2706 else
2707 if test -n "$CC"; then
2708 ac_cv_prog_CC="$CC" # Let the user override the test.
2709 else
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH
2712 do
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2717 ac_cv_prog_CC="${ac_tool_prefix}cc"
2718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 break 2
2720 fi
2721 done
2722 done
2723 IFS=$as_save_IFS
2724
2725 fi
2726 fi
2727 CC=$ac_cv_prog_CC
2728 if test -n "$CC"; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2730 $as_echo "$CC" >&6; }
2731 else
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2733 $as_echo "no" >&6; }
2734 fi
2735
2736
2737 fi
2738 fi
2739 if test -z "$CC"; then
2740 # Extract the first word of "cc", so it can be a program name with args.
2741 set dummy cc; ac_word=$2
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2743 $as_echo_n "checking for $ac_word... " >&6; }
2744 if ${ac_cv_prog_CC+:} false; then :
2745 $as_echo_n "(cached) " >&6
2746 else
2747 if test -n "$CC"; then
2748 ac_cv_prog_CC="$CC" # Let the user override the test.
2749 else
2750 ac_prog_rejected=no
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 for as_dir in $PATH
2753 do
2754 IFS=$as_save_IFS
2755 test -z "$as_dir" && as_dir=.
2756 for ac_exec_ext in '' $ac_executable_extensions; do
2757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2758 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2759 ac_prog_rejected=yes
2760 continue
2761 fi
2762 ac_cv_prog_CC="cc"
2763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2764 break 2
2765 fi
2766 done
2767 done
2768 IFS=$as_save_IFS
2769
2770 if test $ac_prog_rejected = yes; then
2771 # We found a bogon in the path, so make sure we never use it.
2772 set dummy $ac_cv_prog_CC
2773 shift
2774 if test $# != 0; then
2775 # We chose a different compiler from the bogus one.
2776 # However, it has the same basename, so the bogon will be chosen
2777 # first if we set CC to just the basename; use the full file name.
2778 shift
2779 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2780 fi
2781 fi
2782 fi
2783 fi
2784 CC=$ac_cv_prog_CC
2785 if test -n "$CC"; then
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2787 $as_echo "$CC" >&6; }
2788 else
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2790 $as_echo "no" >&6; }
2791 fi
2792
2793
2794 fi
2795 if test -z "$CC"; then
2796 if test -n "$ac_tool_prefix"; then
2797 for ac_prog in cl.exe
2798 do
2799 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2800 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2802 $as_echo_n "checking for $ac_word... " >&6; }
2803 if ${ac_cv_prog_CC+:} false; then :
2804 $as_echo_n "(cached) " >&6
2805 else
2806 if test -n "$CC"; then
2807 ac_cv_prog_CC="$CC" # Let the user override the test.
2808 else
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2811 do
2812 IFS=$as_save_IFS
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2816 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 break 2
2819 fi
2820 done
2821 done
2822 IFS=$as_save_IFS
2823
2824 fi
2825 fi
2826 CC=$ac_cv_prog_CC
2827 if test -n "$CC"; then
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2829 $as_echo "$CC" >&6; }
2830 else
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832 $as_echo "no" >&6; }
2833 fi
2834
2835
2836 test -n "$CC" && break
2837 done
2838 fi
2839 if test -z "$CC"; then
2840 ac_ct_CC=$CC
2841 for ac_prog in cl.exe
2842 do
2843 # Extract the first word of "$ac_prog", so it can be a program name with args.
2844 set dummy $ac_prog; ac_word=$2
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2846 $as_echo_n "checking for $ac_word... " >&6; }
2847 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2848 $as_echo_n "(cached) " >&6
2849 else
2850 if test -n "$ac_ct_CC"; then
2851 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2852 else
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH
2855 do
2856 IFS=$as_save_IFS
2857 test -z "$as_dir" && as_dir=.
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2860 ac_cv_prog_ac_ct_CC="$ac_prog"
2861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 break 2
2863 fi
2864 done
2865 done
2866 IFS=$as_save_IFS
2867
2868 fi
2869 fi
2870 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2871 if test -n "$ac_ct_CC"; then
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2873 $as_echo "$ac_ct_CC" >&6; }
2874 else
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876 $as_echo "no" >&6; }
2877 fi
2878
2879
2880 test -n "$ac_ct_CC" && break
2881 done
2882
2883 if test "x$ac_ct_CC" = x; then
2884 CC=""
2885 else
2886 case $cross_compiling:$ac_tool_warned in
2887 yes:)
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2890 ac_tool_warned=yes ;;
2891 esac
2892 CC=$ac_ct_CC
2893 fi
2894 fi
2895
2896 fi
2897
2898
2899 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2901 as_fn_error $? "no acceptable C compiler found in \$PATH
2902 See \`config.log' for more details" "$LINENO" 5; }
2903
2904 # Provide some information about the compiler.
2905 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2906 set X $ac_compile
2907 ac_compiler=$2
2908 for ac_option in --version -v -V -qversion; do
2909 { { ac_try="$ac_compiler $ac_option >&5"
2910 case "(($ac_try" in
2911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912 *) ac_try_echo=$ac_try;;
2913 esac
2914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2915 $as_echo "$ac_try_echo"; } >&5
2916 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2917 ac_status=$?
2918 if test -s conftest.err; then
2919 sed '10a\
2920 ... rest of stderr output deleted ...
2921 10q' conftest.err >conftest.er1
2922 cat conftest.er1 >&5
2923 fi
2924 rm -f conftest.er1 conftest.err
2925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2926 test $ac_status = 0; }
2927 done
2928
2929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2930 /* end confdefs.h. */
2931
2932 int
2933 main ()
2934 {
2935
2936 ;
2937 return 0;
2938 }
2939 _ACEOF
2940 ac_clean_files_save=$ac_clean_files
2941 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2942 # Try to create an executable without -o first, disregard a.out.
2943 # It will help us diagnose broken compilers, and finding out an intuition
2944 # of exeext.
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2946 $as_echo_n "checking whether the C compiler works... " >&6; }
2947 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2948
2949 # The possible output files:
2950 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2951
2952 ac_rmfiles=
2953 for ac_file in $ac_files
2954 do
2955 case $ac_file in
2956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2957 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2958 esac
2959 done
2960 rm -f $ac_rmfiles
2961
2962 if { { ac_try="$ac_link_default"
2963 case "(($ac_try" in
2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965 *) ac_try_echo=$ac_try;;
2966 esac
2967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2968 $as_echo "$ac_try_echo"; } >&5
2969 (eval "$ac_link_default") 2>&5
2970 ac_status=$?
2971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2972 test $ac_status = 0; }; then :
2973 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2974 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2975 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2976 # so that the user can short-circuit this test for compilers unknown to
2977 # Autoconf.
2978 for ac_file in $ac_files ''
2979 do
2980 test -f "$ac_file" || continue
2981 case $ac_file in
2982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2983 ;;
2984 [ab].out )
2985 # We found the default executable, but exeext='' is most
2986 # certainly right.
2987 break;;
2988 *.* )
2989 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2990 then :; else
2991 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2992 fi
2993 # We set ac_cv_exeext here because the later test for it is not
2994 # safe: cross compilers may not add the suffix if given an `-o'
2995 # argument, so we may need to know it at that point already.
2996 # Even if this section looks crufty: it has the advantage of
2997 # actually working.
2998 break;;
2999 * )
3000 break;;
3001 esac
3002 done
3003 test "$ac_cv_exeext" = no && ac_cv_exeext=
3004
3005 else
3006 ac_file=''
3007 fi
3008 if test -z "$ac_file"; then :
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010 $as_echo "no" >&6; }
3011 $as_echo "$as_me: failed program was:" >&5
3012 sed 's/^/| /' conftest.$ac_ext >&5
3013
3014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3016 as_fn_error 77 "C compiler cannot create executables
3017 See \`config.log' for more details" "$LINENO" 5; }
3018 else
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3020 $as_echo "yes" >&6; }
3021 fi
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3023 $as_echo_n "checking for C compiler default output file name... " >&6; }
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3025 $as_echo "$ac_file" >&6; }
3026 ac_exeext=$ac_cv_exeext
3027
3028 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3029 ac_clean_files=$ac_clean_files_save
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3031 $as_echo_n "checking for suffix of executables... " >&6; }
3032 if { { ac_try="$ac_link"
3033 case "(($ac_try" in
3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3036 esac
3037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3038 $as_echo "$ac_try_echo"; } >&5
3039 (eval "$ac_link") 2>&5
3040 ac_status=$?
3041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3042 test $ac_status = 0; }; then :
3043 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3044 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3045 # work properly (i.e., refer to `conftest.exe'), while it won't with
3046 # `rm'.
3047 for ac_file in conftest.exe conftest conftest.*; do
3048 test -f "$ac_file" || continue
3049 case $ac_file in
3050 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3051 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3052 break;;
3053 * ) break;;
3054 esac
3055 done
3056 else
3057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3059 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3060 See \`config.log' for more details" "$LINENO" 5; }
3061 fi
3062 rm -f conftest conftest$ac_cv_exeext
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3064 $as_echo "$ac_cv_exeext" >&6; }
3065
3066 rm -f conftest.$ac_ext
3067 EXEEXT=$ac_cv_exeext
3068 ac_exeext=$EXEEXT
3069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3070 /* end confdefs.h. */
3071 #include <stdio.h>
3072 int
3073 main ()
3074 {
3075 FILE *f = fopen ("conftest.out", "w");
3076 return ferror (f) || fclose (f) != 0;
3077
3078 ;
3079 return 0;
3080 }
3081 _ACEOF
3082 ac_clean_files="$ac_clean_files conftest.out"
3083 # Check that the compiler produces executables we can run. If not, either
3084 # the compiler is broken, or we cross compile.
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3086 $as_echo_n "checking whether we are cross compiling... " >&6; }
3087 if test "$cross_compiling" != yes; then
3088 { { ac_try="$ac_link"
3089 case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092 esac
3093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3094 $as_echo "$ac_try_echo"; } >&5
3095 (eval "$ac_link") 2>&5
3096 ac_status=$?
3097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3098 test $ac_status = 0; }
3099 if { ac_try='./conftest$ac_cv_exeext'
3100 { { case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3103 esac
3104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3105 $as_echo "$ac_try_echo"; } >&5
3106 (eval "$ac_try") 2>&5
3107 ac_status=$?
3108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3109 test $ac_status = 0; }; }; then
3110 cross_compiling=no
3111 else
3112 if test "$cross_compiling" = maybe; then
3113 cross_compiling=yes
3114 else
3115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3117 as_fn_error $? "cannot run C compiled programs.
3118 If you meant to cross compile, use \`--host'.
3119 See \`config.log' for more details" "$LINENO" 5; }
3120 fi
3121 fi
3122 fi
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3124 $as_echo "$cross_compiling" >&6; }
3125
3126 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3127 ac_clean_files=$ac_clean_files_save
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3129 $as_echo_n "checking for suffix of object files... " >&6; }
3130 if ${ac_cv_objext+:} false; then :
3131 $as_echo_n "(cached) " >&6
3132 else
3133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3134 /* end confdefs.h. */
3135
3136 int
3137 main ()
3138 {
3139
3140 ;
3141 return 0;
3142 }
3143 _ACEOF
3144 rm -f conftest.o conftest.obj
3145 if { { ac_try="$ac_compile"
3146 case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3149 esac
3150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3151 $as_echo "$ac_try_echo"; } >&5
3152 (eval "$ac_compile") 2>&5
3153 ac_status=$?
3154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3155 test $ac_status = 0; }; then :
3156 for ac_file in conftest.o conftest.obj conftest.*; do
3157 test -f "$ac_file" || continue;
3158 case $ac_file in
3159 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3160 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3161 break;;
3162 esac
3163 done
3164 else
3165 $as_echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3167
3168 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3170 as_fn_error $? "cannot compute suffix of object files: cannot compile
3171 See \`config.log' for more details" "$LINENO" 5; }
3172 fi
3173 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3174 fi
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3176 $as_echo "$ac_cv_objext" >&6; }
3177 OBJEXT=$ac_cv_objext
3178 ac_objext=$OBJEXT
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3180 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3181 if ${ac_cv_c_compiler_gnu+:} false; then :
3182 $as_echo_n "(cached) " >&6
3183 else
3184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3185 /* end confdefs.h. */
3186
3187 int
3188 main ()
3189 {
3190 #ifndef __GNUC__
3191 choke me
3192 #endif
3193
3194 ;
3195 return 0;
3196 }
3197 _ACEOF
3198 if ac_fn_c_try_compile "$LINENO"; then :
3199 ac_compiler_gnu=yes
3200 else
3201 ac_compiler_gnu=no
3202 fi
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3205
3206 fi
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3208 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3209 if test $ac_compiler_gnu = yes; then
3210 GCC=yes
3211 else
3212 GCC=
3213 fi
3214 ac_test_CFLAGS=${CFLAGS+set}
3215 ac_save_CFLAGS=$CFLAGS
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3217 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3218 if ${ac_cv_prog_cc_g+:} false; then :
3219 $as_echo_n "(cached) " >&6
3220 else
3221 ac_save_c_werror_flag=$ac_c_werror_flag
3222 ac_c_werror_flag=yes
3223 ac_cv_prog_cc_g=no
3224 CFLAGS="-g"
3225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226 /* end confdefs.h. */
3227
3228 int
3229 main ()
3230 {
3231
3232 ;
3233 return 0;
3234 }
3235 _ACEOF
3236 if ac_fn_c_try_compile "$LINENO"; then :
3237 ac_cv_prog_cc_g=yes
3238 else
3239 CFLAGS=""
3240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241 /* end confdefs.h. */
3242
3243 int
3244 main ()
3245 {
3246
3247 ;
3248 return 0;
3249 }
3250 _ACEOF
3251 if ac_fn_c_try_compile "$LINENO"; then :
3252
3253 else
3254 ac_c_werror_flag=$ac_save_c_werror_flag
3255 CFLAGS="-g"
3256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3257 /* end confdefs.h. */
3258
3259 int
3260 main ()
3261 {
3262
3263 ;
3264 return 0;
3265 }
3266 _ACEOF
3267 if ac_fn_c_try_compile "$LINENO"; then :
3268 ac_cv_prog_cc_g=yes
3269 fi
3270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3271 fi
3272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3273 fi
3274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3275 ac_c_werror_flag=$ac_save_c_werror_flag
3276 fi
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3278 $as_echo "$ac_cv_prog_cc_g" >&6; }
3279 if test "$ac_test_CFLAGS" = set; then
3280 CFLAGS=$ac_save_CFLAGS
3281 elif test $ac_cv_prog_cc_g = yes; then
3282 if test "$GCC" = yes; then
3283 CFLAGS="-g -O2"
3284 else
3285 CFLAGS="-g"
3286 fi
3287 else
3288 if test "$GCC" = yes; then
3289 CFLAGS="-O2"
3290 else
3291 CFLAGS=
3292 fi
3293 fi
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3295 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3296 if ${ac_cv_prog_cc_c89+:} false; then :
3297 $as_echo_n "(cached) " >&6
3298 else
3299 ac_cv_prog_cc_c89=no
3300 ac_save_CC=$CC
3301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3302 /* end confdefs.h. */
3303 #include <stdarg.h>
3304 #include <stdio.h>
3305 struct stat;
3306 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3307 struct buf { int x; };
3308 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3309 static char *e (p, i)
3310 char **p;
3311 int i;
3312 {
3313 return p[i];
3314 }
3315 static char *f (char * (*g) (char **, int), char **p, ...)
3316 {
3317 char *s;
3318 va_list v;
3319 va_start (v,p);
3320 s = g (p, va_arg (v,int));
3321 va_end (v);
3322 return s;
3323 }
3324
3325 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3326 function prototypes and stuff, but not '\xHH' hex character constants.
3327 These don't provoke an error unfortunately, instead are silently treated
3328 as 'x'. The following induces an error, until -std is added to get
3329 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3330 array size at least. It's necessary to write '\x00'==0 to get something
3331 that's true only with -std. */
3332 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3333
3334 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3335 inside strings and character constants. */
3336 #define FOO(x) 'x'
3337 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3338
3339 int test (int i, double x);
3340 struct s1 {int (*f) (int a);};
3341 struct s2 {int (*f) (double a);};
3342 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3343 int argc;
3344 char **argv;
3345 int
3346 main ()
3347 {
3348 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3349 ;
3350 return 0;
3351 }
3352 _ACEOF
3353 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3354 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3355 do
3356 CC="$ac_save_CC $ac_arg"
3357 if ac_fn_c_try_compile "$LINENO"; then :
3358 ac_cv_prog_cc_c89=$ac_arg
3359 fi
3360 rm -f core conftest.err conftest.$ac_objext
3361 test "x$ac_cv_prog_cc_c89" != "xno" && break
3362 done
3363 rm -f conftest.$ac_ext
3364 CC=$ac_save_CC
3365
3366 fi
3367 # AC_CACHE_VAL
3368 case "x$ac_cv_prog_cc_c89" in
3369 x)
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3371 $as_echo "none needed" >&6; } ;;
3372 xno)
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3374 $as_echo "unsupported" >&6; } ;;
3375 *)
3376 CC="$CC $ac_cv_prog_cc_c89"
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3378 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3379 esac
3380 if test "x$ac_cv_prog_cc_c89" != xno; then :
3381
3382 fi
3383
3384 ac_ext=c
3385 ac_cpp='$CPP $CPPFLAGS'
3386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3389
3390 ac_ext=c
3391 ac_cpp='$CPP $CPPFLAGS'
3392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3396 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3397 # On Suns, sometimes $CPP names a directory.
3398 if test -n "$CPP" && test -d "$CPP"; then
3399 CPP=
3400 fi
3401 if test -z "$CPP"; then
3402 if ${ac_cv_prog_CPP+:} false; then :
3403 $as_echo_n "(cached) " >&6
3404 else
3405 # Double quotes because CPP needs to be expanded
3406 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3407 do
3408 ac_preproc_ok=false
3409 for ac_c_preproc_warn_flag in '' yes
3410 do
3411 # Use a header file that comes with gcc, so configuring glibc
3412 # with a fresh cross-compiler works.
3413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3414 # <limits.h> exists even on freestanding compilers.
3415 # On the NeXT, cc -E runs the code through the compiler's parser,
3416 # not just through cpp. "Syntax error" is here to catch this case.
3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418 /* end confdefs.h. */
3419 #ifdef __STDC__
3420 # include <limits.h>
3421 #else
3422 # include <assert.h>
3423 #endif
3424 Syntax error
3425 _ACEOF
3426 if ac_fn_c_try_cpp "$LINENO"; then :
3427
3428 else
3429 # Broken: fails on valid input.
3430 continue
3431 fi
3432 rm -f conftest.err conftest.i conftest.$ac_ext
3433
3434 # OK, works on sane cases. Now check whether nonexistent headers
3435 # can be detected and how.
3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 /* end confdefs.h. */
3438 #include <ac_nonexistent.h>
3439 _ACEOF
3440 if ac_fn_c_try_cpp "$LINENO"; then :
3441 # Broken: success on invalid input.
3442 continue
3443 else
3444 # Passes both tests.
3445 ac_preproc_ok=:
3446 break
3447 fi
3448 rm -f conftest.err conftest.i conftest.$ac_ext
3449
3450 done
3451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3452 rm -f conftest.i conftest.err conftest.$ac_ext
3453 if $ac_preproc_ok; then :
3454 break
3455 fi
3456
3457 done
3458 ac_cv_prog_CPP=$CPP
3459
3460 fi
3461 CPP=$ac_cv_prog_CPP
3462 else
3463 ac_cv_prog_CPP=$CPP
3464 fi
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3466 $as_echo "$CPP" >&6; }
3467 ac_preproc_ok=false
3468 for ac_c_preproc_warn_flag in '' yes
3469 do
3470 # Use a header file that comes with gcc, so configuring glibc
3471 # with a fresh cross-compiler works.
3472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3473 # <limits.h> exists even on freestanding compilers.
3474 # On the NeXT, cc -E runs the code through the compiler's parser,
3475 # not just through cpp. "Syntax error" is here to catch this case.
3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477 /* end confdefs.h. */
3478 #ifdef __STDC__
3479 # include <limits.h>
3480 #else
3481 # include <assert.h>
3482 #endif
3483 Syntax error
3484 _ACEOF
3485 if ac_fn_c_try_cpp "$LINENO"; then :
3486
3487 else
3488 # Broken: fails on valid input.
3489 continue
3490 fi
3491 rm -f conftest.err conftest.i conftest.$ac_ext
3492
3493 # OK, works on sane cases. Now check whether nonexistent headers
3494 # can be detected and how.
3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496 /* end confdefs.h. */
3497 #include <ac_nonexistent.h>
3498 _ACEOF
3499 if ac_fn_c_try_cpp "$LINENO"; then :
3500 # Broken: success on invalid input.
3501 continue
3502 else
3503 # Passes both tests.
3504 ac_preproc_ok=:
3505 break
3506 fi
3507 rm -f conftest.err conftest.i conftest.$ac_ext
3508
3509 done
3510 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3511 rm -f conftest.i conftest.err conftest.$ac_ext
3512 if $ac_preproc_ok; then :
3513
3514 else
3515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3517 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3518 See \`config.log' for more details" "$LINENO" 5; }
3519 fi
3520
3521 ac_ext=c
3522 ac_cpp='$CPP $CPPFLAGS'
3523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3526
3527 ac_ext=cpp
3528 ac_cpp='$CXXCPP $CPPFLAGS'
3529 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3532 if test -z "$CXX"; then
3533 if test -n "$CCC"; then
3534 CXX=$CCC
3535 else
3536 if test -n "$ac_tool_prefix"; then
3537 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3538 do
3539 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3540 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542 $as_echo_n "checking for $ac_word... " >&6; }
3543 if ${ac_cv_prog_CXX+:} false; then :
3544 $as_echo_n "(cached) " >&6
3545 else
3546 if test -n "$CXX"; then
3547 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3548 else
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 for as_dir in $PATH
3551 do
3552 IFS=$as_save_IFS
3553 test -z "$as_dir" && as_dir=.
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3558 break 2
3559 fi
3560 done
3561 done
3562 IFS=$as_save_IFS
3563
3564 fi
3565 fi
3566 CXX=$ac_cv_prog_CXX
3567 if test -n "$CXX"; then
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3569 $as_echo "$CXX" >&6; }
3570 else
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572 $as_echo "no" >&6; }
3573 fi
3574
3575
3576 test -n "$CXX" && break
3577 done
3578 fi
3579 if test -z "$CXX"; then
3580 ac_ct_CXX=$CXX
3581 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3582 do
3583 # Extract the first word of "$ac_prog", so it can be a program name with args.
3584 set dummy $ac_prog; ac_word=$2
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3586 $as_echo_n "checking for $ac_word... " >&6; }
3587 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3588 $as_echo_n "(cached) " >&6
3589 else
3590 if test -n "$ac_ct_CXX"; then
3591 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3592 else
3593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 for as_dir in $PATH
3595 do
3596 IFS=$as_save_IFS
3597 test -z "$as_dir" && as_dir=.
3598 for ac_exec_ext in '' $ac_executable_extensions; do
3599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3600 ac_cv_prog_ac_ct_CXX="$ac_prog"
3601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3602 break 2
3603 fi
3604 done
3605 done
3606 IFS=$as_save_IFS
3607
3608 fi
3609 fi
3610 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3611 if test -n "$ac_ct_CXX"; then
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3613 $as_echo "$ac_ct_CXX" >&6; }
3614 else
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3616 $as_echo "no" >&6; }
3617 fi
3618
3619
3620 test -n "$ac_ct_CXX" && break
3621 done
3622
3623 if test "x$ac_ct_CXX" = x; then
3624 CXX="g++"
3625 else
3626 case $cross_compiling:$ac_tool_warned in
3627 yes:)
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3630 ac_tool_warned=yes ;;
3631 esac
3632 CXX=$ac_ct_CXX
3633 fi
3634 fi
3635
3636 fi
3637 fi
3638 # Provide some information about the compiler.
3639 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3640 set X $ac_compile
3641 ac_compiler=$2
3642 for ac_option in --version -v -V -qversion; do
3643 { { ac_try="$ac_compiler $ac_option >&5"
3644 case "(($ac_try" in
3645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3646 *) ac_try_echo=$ac_try;;
3647 esac
3648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3649 $as_echo "$ac_try_echo"; } >&5
3650 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3651 ac_status=$?
3652 if test -s conftest.err; then
3653 sed '10a\
3654 ... rest of stderr output deleted ...
3655 10q' conftest.err >conftest.er1
3656 cat conftest.er1 >&5
3657 fi
3658 rm -f conftest.er1 conftest.err
3659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3660 test $ac_status = 0; }
3661 done
3662
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3664 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3665 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3666 $as_echo_n "(cached) " >&6
3667 else
3668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669 /* end confdefs.h. */
3670
3671 int
3672 main ()
3673 {
3674 #ifndef __GNUC__
3675 choke me
3676 #endif
3677
3678 ;
3679 return 0;
3680 }
3681 _ACEOF
3682 if ac_fn_cxx_try_compile "$LINENO"; then :
3683 ac_compiler_gnu=yes
3684 else
3685 ac_compiler_gnu=no
3686 fi
3687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3688 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3689
3690 fi
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3692 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3693 if test $ac_compiler_gnu = yes; then
3694 GXX=yes
3695 else
3696 GXX=
3697 fi
3698 ac_test_CXXFLAGS=${CXXFLAGS+set}
3699 ac_save_CXXFLAGS=$CXXFLAGS
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3701 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3702 if ${ac_cv_prog_cxx_g+:} false; then :
3703 $as_echo_n "(cached) " >&6
3704 else
3705 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3706 ac_cxx_werror_flag=yes
3707 ac_cv_prog_cxx_g=no
3708 CXXFLAGS="-g"
3709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710 /* end confdefs.h. */
3711
3712 int
3713 main ()
3714 {
3715
3716 ;
3717 return 0;
3718 }
3719 _ACEOF
3720 if ac_fn_cxx_try_compile "$LINENO"; then :
3721 ac_cv_prog_cxx_g=yes
3722 else
3723 CXXFLAGS=""
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3726
3727 int
3728 main ()
3729 {
3730
3731 ;
3732 return 0;
3733 }
3734 _ACEOF
3735 if ac_fn_cxx_try_compile "$LINENO"; then :
3736
3737 else
3738 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3739 CXXFLAGS="-g"
3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h. */
3742
3743 int
3744 main ()
3745 {
3746
3747 ;
3748 return 0;
3749 }
3750 _ACEOF
3751 if ac_fn_cxx_try_compile "$LINENO"; then :
3752 ac_cv_prog_cxx_g=yes
3753 fi
3754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3755 fi
3756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3757 fi
3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3759 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3760 fi
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3762 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3763 if test "$ac_test_CXXFLAGS" = set; then
3764 CXXFLAGS=$ac_save_CXXFLAGS
3765 elif test $ac_cv_prog_cxx_g = yes; then
3766 if test "$GXX" = yes; then
3767 CXXFLAGS="-g -O2"
3768 else
3769 CXXFLAGS="-g"
3770 fi
3771 else
3772 if test "$GXX" = yes; then
3773 CXXFLAGS="-O2"
3774 else
3775 CXXFLAGS=
3776 fi
3777 fi
3778 ac_ext=c
3779 ac_cpp='$CPP $CPPFLAGS'
3780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3783
3784
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3786 $as_echo_n "checking for library containing strerror... " >&6; }
3787 if ${ac_cv_search_strerror+:} false; then :
3788 $as_echo_n "(cached) " >&6
3789 else
3790 ac_func_search_save_LIBS=$LIBS
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792 /* end confdefs.h. */
3793
3794 /* Override any GCC internal prototype to avoid an error.
3795 Use char because int might match the return type of a GCC
3796 builtin and then its argument prototype would still apply. */
3797 #ifdef __cplusplus
3798 extern "C"
3799 #endif
3800 char strerror ();
3801 int
3802 main ()
3803 {
3804 return strerror ();
3805 ;
3806 return 0;
3807 }
3808 _ACEOF
3809 for ac_lib in '' cposix; do
3810 if test -z "$ac_lib"; then
3811 ac_res="none required"
3812 else
3813 ac_res=-l$ac_lib
3814 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3815 fi
3816 if ac_fn_c_try_link "$LINENO"; then :
3817 ac_cv_search_strerror=$ac_res
3818 fi
3819 rm -f core conftest.err conftest.$ac_objext \
3820 conftest$ac_exeext
3821 if ${ac_cv_search_strerror+:} false; then :
3822 break
3823 fi
3824 done
3825 if ${ac_cv_search_strerror+:} false; then :
3826
3827 else
3828 ac_cv_search_strerror=no
3829 fi
3830 rm conftest.$ac_ext
3831 LIBS=$ac_func_search_save_LIBS
3832 fi
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3834 $as_echo "$ac_cv_search_strerror" >&6; }
3835 ac_res=$ac_cv_search_strerror
3836 if test "$ac_res" != no; then :
3837 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3838
3839 fi
3840
3841 # Find a good install program. We prefer a C program (faster),
3842 # so one script is as good as another. But avoid the broken or
3843 # incompatible versions:
3844 # SysV /etc/install, /usr/sbin/install
3845 # SunOS /usr/etc/install
3846 # IRIX /sbin/install
3847 # AIX /bin/install
3848 # AmigaOS /C/install, which installs bootblocks on floppy discs
3849 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3850 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3851 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3852 # OS/2's system install, which has a completely different semantic
3853 # ./install, which can be erroneously created by make from ./install.sh.
3854 # Reject install programs that cannot install multiple files.
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3856 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3857 if test -z "$INSTALL"; then
3858 if ${ac_cv_path_install+:} false; then :
3859 $as_echo_n "(cached) " >&6
3860 else
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 for as_dir in $PATH
3863 do
3864 IFS=$as_save_IFS
3865 test -z "$as_dir" && as_dir=.
3866 # Account for people who put trailing slashes in PATH elements.
3867 case $as_dir/ in #((
3868 ./ | .// | /[cC]/* | \
3869 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3870 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3871 /usr/ucb/* ) ;;
3872 *)
3873 # OSF1 and SCO ODT 3.0 have their own names for install.
3874 # Don't use installbsd from OSF since it installs stuff as root
3875 # by default.
3876 for ac_prog in ginstall scoinst install; do
3877 for ac_exec_ext in '' $ac_executable_extensions; do
3878 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3879 if test $ac_prog = install &&
3880 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3881 # AIX install. It has an incompatible calling convention.
3882 :
3883 elif test $ac_prog = install &&
3884 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3885 # program-specific install script used by HP pwplus--don't use.
3886 :
3887 else
3888 rm -rf conftest.one conftest.two conftest.dir
3889 echo one > conftest.one
3890 echo two > conftest.two
3891 mkdir conftest.dir
3892 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3893 test -s conftest.one && test -s conftest.two &&
3894 test -s conftest.dir/conftest.one &&
3895 test -s conftest.dir/conftest.two
3896 then
3897 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3898 break 3
3899 fi
3900 fi
3901 fi
3902 done
3903 done
3904 ;;
3905 esac
3906
3907 done
3908 IFS=$as_save_IFS
3909
3910 rm -rf conftest.one conftest.two conftest.dir
3911
3912 fi
3913 if test "${ac_cv_path_install+set}" = set; then
3914 INSTALL=$ac_cv_path_install
3915 else
3916 # As a last resort, use the slow shell script. Don't cache a
3917 # value for INSTALL within a source directory, because that will
3918 # break other packages using the cache if that directory is
3919 # removed, or if the value is a relative name.
3920 INSTALL=$ac_install_sh
3921 fi
3922 fi
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3924 $as_echo "$INSTALL" >&6; }
3925
3926 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3927 # It thinks the first close brace ends the variable substitution.
3928 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3929
3930 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3931
3932 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3933
3934 if test -n "$ac_tool_prefix"; then
3935 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3936 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3938 $as_echo_n "checking for $ac_word... " >&6; }
3939 if ${ac_cv_prog_RANLIB+:} false; then :
3940 $as_echo_n "(cached) " >&6
3941 else
3942 if test -n "$RANLIB"; then
3943 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3944 else
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 for as_dir in $PATH
3947 do
3948 IFS=$as_save_IFS
3949 test -z "$as_dir" && as_dir=.
3950 for ac_exec_ext in '' $ac_executable_extensions; do
3951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3952 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3954 break 2
3955 fi
3956 done
3957 done
3958 IFS=$as_save_IFS
3959
3960 fi
3961 fi
3962 RANLIB=$ac_cv_prog_RANLIB
3963 if test -n "$RANLIB"; then
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3965 $as_echo "$RANLIB" >&6; }
3966 else
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968 $as_echo "no" >&6; }
3969 fi
3970
3971
3972 fi
3973 if test -z "$ac_cv_prog_RANLIB"; then
3974 ac_ct_RANLIB=$RANLIB
3975 # Extract the first word of "ranlib", so it can be a program name with args.
3976 set dummy ranlib; ac_word=$2
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3978 $as_echo_n "checking for $ac_word... " >&6; }
3979 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3980 $as_echo_n "(cached) " >&6
3981 else
3982 if test -n "$ac_ct_RANLIB"; then
3983 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3984 else
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH
3987 do
3988 IFS=$as_save_IFS
3989 test -z "$as_dir" && as_dir=.
3990 for ac_exec_ext in '' $ac_executable_extensions; do
3991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3992 ac_cv_prog_ac_ct_RANLIB="ranlib"
3993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3994 break 2
3995 fi
3996 done
3997 done
3998 IFS=$as_save_IFS
3999
4000 fi
4001 fi
4002 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4003 if test -n "$ac_ct_RANLIB"; then
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4005 $as_echo "$ac_ct_RANLIB" >&6; }
4006 else
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4008 $as_echo "no" >&6; }
4009 fi
4010
4011 if test "x$ac_ct_RANLIB" = x; then
4012 RANLIB=":"
4013 else
4014 case $cross_compiling:$ac_tool_warned in
4015 yes:)
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4018 ac_tool_warned=yes ;;
4019 esac
4020 RANLIB=$ac_ct_RANLIB
4021 fi
4022 else
4023 RANLIB="$ac_cv_prog_RANLIB"
4024 fi
4025
4026
4027
4028 #------------------------------------------------------------
4029 # AC_PROG_LD - find the path to the GNU or non-GNU linker
4030 # (This stuff ripped from libtool)
4031 #------------------------------------------------------------
4032
4033
4034
4035
4036
4037 # Check whether --with-gnu-ld was given.
4038 if test "${with_gnu_ld+set}" = set; then :
4039 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4040 else
4041 with_gnu_ld=no
4042 fi
4043
4044 ac_prog=ld
4045 if test "$GCC" = yes; then
4046 # Check if gcc -print-prog-name=ld gives a path.
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4048 $as_echo_n "checking for ld used by GCC... " >&6; }
4049 case $host in
4050 *-*-mingw*)
4051 # gcc leaves a trailing carriage return which upsets mingw
4052 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4053 *)
4054 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4055 esac
4056 case "$ac_prog" in
4057 # Accept absolute paths.
4058 [\\/]* | [A-Za-z]:[\\/]*)
4059 re_direlt='/[^/][^/]*/\.\./'
4060 # Canonicalize the path of ld
4061 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4062 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4063 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4064 done
4065 test -z "$LD" && LD="$ac_prog"
4066 ;;
4067 "")
4068 # If it fails, then pretend we aren't using GCC.
4069 ac_prog=ld
4070 ;;
4071 *)
4072 # If it is relative, then search for the first ld in PATH.
4073 with_gnu_ld=unknown
4074 ;;
4075 esac
4076 elif test "$with_gnu_ld" = yes; then
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4078 $as_echo_n "checking for GNU ld... " >&6; }
4079 else
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4081 $as_echo_n "checking for non-GNU ld... " >&6; }
4082 fi
4083 if ${ac_cv_path_LD+:} false; then :
4084 $as_echo_n "(cached) " >&6
4085 else
4086 if test -z "$LD"; then
4087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4088 for ac_dir in $PATH; do
4089 test -z "$ac_dir" && ac_dir=.
4090 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4091 ac_cv_path_LD="$ac_dir/$ac_prog"
4092 # Check to see if the program is GNU ld. I'd rather use --version,
4093 # but apparently some GNU ld's only accept -v.
4094 # Break only if it was the GNU/non-GNU ld that we prefer.
4095 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4096 test "$with_gnu_ld" != no && break
4097 else
4098 test "$with_gnu_ld" != yes && break
4099 fi
4100 fi
4101 done
4102 IFS="$ac_save_ifs"
4103 else
4104 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4105 fi
4106 fi
4107
4108 LD="$ac_cv_path_LD"
4109 if test -n "$LD"; then
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4111 $as_echo "$LD" >&6; }
4112 else
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4114 $as_echo "no" >&6; }
4115 fi
4116 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4118 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4119 if ${ac_cv_prog_gnu_ld+:} false; then :
4120 $as_echo_n "(cached) " >&6
4121 else
4122 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4123 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4124 ac_cv_prog_gnu_ld=yes
4125 else
4126 ac_cv_prog_gnu_ld=no
4127 fi
4128 fi
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gnu_ld" >&5
4130 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
4131 with_gnu_ld=$ac_cv_prog_gnu_ld
4132
4133
4134
4135
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4137 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4138 if ${ac_cv_path_GREP+:} false; then :
4139 $as_echo_n "(cached) " >&6
4140 else
4141 if test -z "$GREP"; then
4142 ac_path_GREP_found=false
4143 # Loop through the user's path and test for each of PROGNAME-LIST
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4146 do
4147 IFS=$as_save_IFS
4148 test -z "$as_dir" && as_dir=.
4149 for ac_prog in grep ggrep; do
4150 for ac_exec_ext in '' $ac_executable_extensions; do
4151 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4152 as_fn_executable_p "$ac_path_GREP" || continue
4153 # Check for GNU ac_path_GREP and select it if it is found.
4154 # Check for GNU $ac_path_GREP
4155 case `"$ac_path_GREP" --version 2>&1` in
4156 *GNU*)
4157 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4158 *)
4159 ac_count=0
4160 $as_echo_n 0123456789 >"conftest.in"
4161 while :
4162 do
4163 cat "conftest.in" "conftest.in" >"conftest.tmp"
4164 mv "conftest.tmp" "conftest.in"
4165 cp "conftest.in" "conftest.nl"
4166 $as_echo 'GREP' >> "conftest.nl"
4167 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4168 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4169 as_fn_arith $ac_count + 1 && ac_count=$as_val
4170 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4171 # Best one so far, save it but keep looking for a better one
4172 ac_cv_path_GREP="$ac_path_GREP"
4173 ac_path_GREP_max=$ac_count
4174 fi
4175 # 10*(2^10) chars as input seems more than enough
4176 test $ac_count -gt 10 && break
4177 done
4178 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4179 esac
4180
4181 $ac_path_GREP_found && break 3
4182 done
4183 done
4184 done
4185 IFS=$as_save_IFS
4186 if test -z "$ac_cv_path_GREP"; then
4187 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4188 fi
4189 else
4190 ac_cv_path_GREP=$GREP
4191 fi
4192
4193 fi
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4195 $as_echo "$ac_cv_path_GREP" >&6; }
4196 GREP="$ac_cv_path_GREP"
4197
4198
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4200 $as_echo_n "checking for egrep... " >&6; }
4201 if ${ac_cv_path_EGREP+:} false; then :
4202 $as_echo_n "(cached) " >&6
4203 else
4204 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4205 then ac_cv_path_EGREP="$GREP -E"
4206 else
4207 if test -z "$EGREP"; then
4208 ac_path_EGREP_found=false
4209 # Loop through the user's path and test for each of PROGNAME-LIST
4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4212 do
4213 IFS=$as_save_IFS
4214 test -z "$as_dir" && as_dir=.
4215 for ac_prog in egrep; do
4216 for ac_exec_ext in '' $ac_executable_extensions; do
4217 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4218 as_fn_executable_p "$ac_path_EGREP" || continue
4219 # Check for GNU ac_path_EGREP and select it if it is found.
4220 # Check for GNU $ac_path_EGREP
4221 case `"$ac_path_EGREP" --version 2>&1` in
4222 *GNU*)
4223 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4224 *)
4225 ac_count=0
4226 $as_echo_n 0123456789 >"conftest.in"
4227 while :
4228 do
4229 cat "conftest.in" "conftest.in" >"conftest.tmp"
4230 mv "conftest.tmp" "conftest.in"
4231 cp "conftest.in" "conftest.nl"
4232 $as_echo 'EGREP' >> "conftest.nl"
4233 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4234 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4235 as_fn_arith $ac_count + 1 && ac_count=$as_val
4236 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4237 # Best one so far, save it but keep looking for a better one
4238 ac_cv_path_EGREP="$ac_path_EGREP"
4239 ac_path_EGREP_max=$ac_count
4240 fi
4241 # 10*(2^10) chars as input seems more than enough
4242 test $ac_count -gt 10 && break
4243 done
4244 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4245 esac
4246
4247 $ac_path_EGREP_found && break 3
4248 done
4249 done
4250 done
4251 IFS=$as_save_IFS
4252 if test -z "$ac_cv_path_EGREP"; then
4253 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4254 fi
4255 else
4256 ac_cv_path_EGREP=$EGREP
4257 fi
4258
4259 fi
4260 fi
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4262 $as_echo "$ac_cv_path_EGREP" >&6; }
4263 EGREP="$ac_cv_path_EGREP"
4264
4265
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4267 $as_echo_n "checking for ANSI C header files... " >&6; }
4268 if ${ac_cv_header_stdc+:} false; then :
4269 $as_echo_n "(cached) " >&6
4270 else
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h. */
4273 #include <stdlib.h>
4274 #include <stdarg.h>
4275 #include <string.h>
4276 #include <float.h>
4277
4278 int
4279 main ()
4280 {
4281
4282 ;
4283 return 0;
4284 }
4285 _ACEOF
4286 if ac_fn_c_try_compile "$LINENO"; then :
4287 ac_cv_header_stdc=yes
4288 else
4289 ac_cv_header_stdc=no
4290 fi
4291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4292
4293 if test $ac_cv_header_stdc = yes; then
4294 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h. */
4297 #include <string.h>
4298
4299 _ACEOF
4300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4301 $EGREP "memchr" >/dev/null 2>&1; then :
4302
4303 else
4304 ac_cv_header_stdc=no
4305 fi
4306 rm -f conftest*
4307
4308 fi
4309
4310 if test $ac_cv_header_stdc = yes; then
4311 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h. */
4314 #include <stdlib.h>
4315
4316 _ACEOF
4317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4318 $EGREP "free" >/dev/null 2>&1; then :
4319
4320 else
4321 ac_cv_header_stdc=no
4322 fi
4323 rm -f conftest*
4324
4325 fi
4326
4327 if test $ac_cv_header_stdc = yes; then
4328 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4329 if test "$cross_compiling" = yes; then :
4330 :
4331 else
4332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h. */
4334 #include <ctype.h>
4335 #include <stdlib.h>
4336 #if ((' ' & 0x0FF) == 0x020)
4337 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4338 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4339 #else
4340 # define ISLOWER(c) \
4341 (('a' <= (c) && (c) <= 'i') \
4342 || ('j' <= (c) && (c) <= 'r') \
4343 || ('s' <= (c) && (c) <= 'z'))
4344 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4345 #endif
4346
4347 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4348 int
4349 main ()
4350 {
4351 int i;
4352 for (i = 0; i < 256; i++)
4353 if (XOR (islower (i), ISLOWER (i))
4354 || toupper (i) != TOUPPER (i))
4355 return 2;
4356 return 0;
4357 }
4358 _ACEOF
4359 if ac_fn_c_try_run "$LINENO"; then :
4360
4361 else
4362 ac_cv_header_stdc=no
4363 fi
4364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4365 conftest.$ac_objext conftest.beam conftest.$ac_ext
4366 fi
4367
4368 fi
4369 fi
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4371 $as_echo "$ac_cv_header_stdc" >&6; }
4372 if test $ac_cv_header_stdc = yes; then
4373
4374 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4375
4376 fi
4377
4378 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4379 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4380 inttypes.h stdint.h unistd.h
4381 do :
4382 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4383 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4384 "
4385 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4386 cat >>confdefs.h <<_ACEOF
4387 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4388 _ACEOF
4389
4390 fi
4391
4392 done
4393
4394
4395 # The cast to long int works around a bug in the HP C Compiler
4396 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4397 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4398 # This bug is HP SR number 8606223364.
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
4400 $as_echo_n "checking size of void *... " >&6; }
4401 if ${ac_cv_sizeof_void_p+:} false; then :
4402 $as_echo_n "(cached) " >&6
4403 else
4404 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
4405
4406 else
4407 if test "$ac_cv_type_void_p" = yes; then
4408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4410 as_fn_error 77 "cannot compute sizeof (void *)
4411 See \`config.log' for more details" "$LINENO" 5; }
4412 else
4413 ac_cv_sizeof_void_p=0
4414 fi
4415 fi
4416
4417 fi
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
4419 $as_echo "$ac_cv_sizeof_void_p" >&6; }
4420
4421
4422
4423 cat >>confdefs.h <<_ACEOF
4424 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4425 _ACEOF
4426
4427
4428 # The cast to long int works around a bug in the HP C Compiler
4429 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4430 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4431 # This bug is HP SR number 8606223364.
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
4433 $as_echo_n "checking size of unsigned int... " >&6; }
4434 if ${ac_cv_sizeof_unsigned_int+:} false; then :
4435 $as_echo_n "(cached) " >&6
4436 else
4437 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
4438
4439 else
4440 if test "$ac_cv_type_unsigned_int" = yes; then
4441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4443 as_fn_error 77 "cannot compute sizeof (unsigned int)
4444 See \`config.log' for more details" "$LINENO" 5; }
4445 else
4446 ac_cv_sizeof_unsigned_int=0
4447 fi
4448 fi
4449
4450 fi
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
4452 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
4453
4454
4455
4456 cat >>confdefs.h <<_ACEOF
4457 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
4458 _ACEOF
4459
4460
4461 # The cast to long int works around a bug in the HP C Compiler
4462 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4463 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4464 # This bug is HP SR number 8606223364.
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
4466 $as_echo_n "checking size of unsigned long... " >&6; }
4467 if ${ac_cv_sizeof_unsigned_long+:} false; then :
4468 $as_echo_n "(cached) " >&6
4469 else
4470 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
4471
4472 else
4473 if test "$ac_cv_type_unsigned_long" = yes; then
4474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4476 as_fn_error 77 "cannot compute sizeof (unsigned long)
4477 See \`config.log' for more details" "$LINENO" 5; }
4478 else
4479 ac_cv_sizeof_unsigned_long=0
4480 fi
4481 fi
4482
4483 fi
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
4485 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
4486
4487
4488
4489 cat >>confdefs.h <<_ACEOF
4490 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
4491 _ACEOF
4492
4493
4494 # The cast to long int works around a bug in the HP C Compiler
4495 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4496 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4497 # This bug is HP SR number 8606223364.
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
4499 $as_echo_n "checking size of unsigned long long... " >&6; }
4500 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
4501 $as_echo_n "(cached) " >&6
4502 else
4503 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
4504
4505 else
4506 if test "$ac_cv_type_unsigned_long_long" = yes; then
4507 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4509 as_fn_error 77 "cannot compute sizeof (unsigned long long)
4510 See \`config.log' for more details" "$LINENO" 5; }
4511 else
4512 ac_cv_sizeof_unsigned_long_long=0
4513 fi
4514 fi
4515
4516 fi
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
4518 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
4519
4520
4521
4522 cat >>confdefs.h <<_ACEOF
4523 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
4524 _ACEOF
4525
4526
4527
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4529 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4530 if ${ac_cv_c_bigendian+:} false; then :
4531 $as_echo_n "(cached) " >&6
4532 else
4533 ac_cv_c_bigendian=unknown
4534 # See if we're dealing with a universal compiler.
4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h. */
4537 #ifndef __APPLE_CC__
4538 not a universal capable compiler
4539 #endif
4540 typedef int dummy;
4541
4542 _ACEOF
4543 if ac_fn_c_try_compile "$LINENO"; then :
4544
4545 # Check for potential -arch flags. It is not universal unless
4546 # there are at least two -arch flags with different values.
4547 ac_arch=
4548 ac_prev=
4549 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4550 if test -n "$ac_prev"; then
4551 case $ac_word in
4552 i?86 | x86_64 | ppc | ppc64)
4553 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4554 ac_arch=$ac_word
4555 else
4556 ac_cv_c_bigendian=universal
4557 break
4558 fi
4559 ;;
4560 esac
4561 ac_prev=
4562 elif test "x$ac_word" = "x-arch"; then
4563 ac_prev=arch
4564 fi
4565 done
4566 fi
4567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4568 if test $ac_cv_c_bigendian = unknown; then
4569 # See if sys/param.h defines the BYTE_ORDER macro.
4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571 /* end confdefs.h. */
4572 #include <sys/types.h>
4573 #include <sys/param.h>
4574
4575 int
4576 main ()
4577 {
4578 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4579 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4580 && LITTLE_ENDIAN)
4581 bogus endian macros
4582 #endif
4583
4584 ;
4585 return 0;
4586 }
4587 _ACEOF
4588 if ac_fn_c_try_compile "$LINENO"; then :
4589 # It does; now see whether it defined to BIG_ENDIAN or not.
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h. */
4592 #include <sys/types.h>
4593 #include <sys/param.h>
4594
4595 int
4596 main ()
4597 {
4598 #if BYTE_ORDER != BIG_ENDIAN
4599 not big endian
4600 #endif
4601
4602 ;
4603 return 0;
4604 }
4605 _ACEOF
4606 if ac_fn_c_try_compile "$LINENO"; then :
4607 ac_cv_c_bigendian=yes
4608 else
4609 ac_cv_c_bigendian=no
4610 fi
4611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4612 fi
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 fi
4615 if test $ac_cv_c_bigendian = unknown; then
4616 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h. */
4619 #include <limits.h>
4620
4621 int
4622 main ()
4623 {
4624 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4625 bogus endian macros
4626 #endif
4627
4628 ;
4629 return 0;
4630 }
4631 _ACEOF
4632 if ac_fn_c_try_compile "$LINENO"; then :
4633 # It does; now see whether it defined to _BIG_ENDIAN or not.
4634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4635 /* end confdefs.h. */
4636 #include <limits.h>
4637
4638 int
4639 main ()
4640 {
4641 #ifndef _BIG_ENDIAN
4642 not big endian
4643 #endif
4644
4645 ;
4646 return 0;
4647 }
4648 _ACEOF
4649 if ac_fn_c_try_compile "$LINENO"; then :
4650 ac_cv_c_bigendian=yes
4651 else
4652 ac_cv_c_bigendian=no
4653 fi
4654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4655 fi
4656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4657 fi
4658 if test $ac_cv_c_bigendian = unknown; then
4659 # Compile a test program.
4660 if test "$cross_compiling" = yes; then :
4661 # Try to guess by grepping values from an object file.
4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h. */
4664 short int ascii_mm[] =
4665 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4666 short int ascii_ii[] =
4667 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4668 int use_ascii (int i) {
4669 return ascii_mm[i] + ascii_ii[i];
4670 }
4671 short int ebcdic_ii[] =
4672 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4673 short int ebcdic_mm[] =
4674 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4675 int use_ebcdic (int i) {
4676 return ebcdic_mm[i] + ebcdic_ii[i];
4677 }
4678 extern int foo;
4679
4680 int
4681 main ()
4682 {
4683 return use_ascii (foo) == use_ebcdic (foo);
4684 ;
4685 return 0;
4686 }
4687 _ACEOF
4688 if ac_fn_c_try_compile "$LINENO"; then :
4689 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4690 ac_cv_c_bigendian=yes
4691 fi
4692 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4693 if test "$ac_cv_c_bigendian" = unknown; then
4694 ac_cv_c_bigendian=no
4695 else
4696 # finding both strings is unlikely to happen, but who knows?
4697 ac_cv_c_bigendian=unknown
4698 fi
4699 fi
4700 fi
4701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4702 else
4703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h. */
4705 $ac_includes_default
4706 int
4707 main ()
4708 {
4709
4710 /* Are we little or big endian? From Harbison&Steele. */
4711 union
4712 {
4713 long int l;
4714 char c[sizeof (long int)];
4715 } u;
4716 u.l = 1;
4717 return u.c[sizeof (long int) - 1] == 1;
4718
4719 ;
4720 return 0;
4721 }
4722 _ACEOF
4723 if ac_fn_c_try_run "$LINENO"; then :
4724 ac_cv_c_bigendian=no
4725 else
4726 ac_cv_c_bigendian=yes
4727 fi
4728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4729 conftest.$ac_objext conftest.beam conftest.$ac_ext
4730 fi
4731
4732 fi
4733 fi
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4735 $as_echo "$ac_cv_c_bigendian" >&6; }
4736 case $ac_cv_c_bigendian in #(
4737 yes)
4738 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4739 ;; #(
4740 no)
4741 ;; #(
4742 universal)
4743
4744 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4745
4746 ;; #(
4747 *)
4748 as_fn_error $? "unknown endianness
4749 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4750 esac
4751
4752
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4754 $as_echo_n "checking for ANSI C header files... " >&6; }
4755 if ${ac_cv_header_stdc+:} false; then :
4756 $as_echo_n "(cached) " >&6
4757 else
4758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4759 /* end confdefs.h. */
4760 #include <stdlib.h>
4761 #include <stdarg.h>
4762 #include <string.h>
4763 #include <float.h>
4764
4765 int
4766 main ()
4767 {
4768
4769 ;
4770 return 0;
4771 }
4772 _ACEOF
4773 if ac_fn_c_try_compile "$LINENO"; then :
4774 ac_cv_header_stdc=yes
4775 else
4776 ac_cv_header_stdc=no
4777 fi
4778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779
4780 if test $ac_cv_header_stdc = yes; then
4781 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4783 /* end confdefs.h. */
4784 #include <string.h>
4785
4786 _ACEOF
4787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4788 $EGREP "memchr" >/dev/null 2>&1; then :
4789
4790 else
4791 ac_cv_header_stdc=no
4792 fi
4793 rm -f conftest*
4794
4795 fi
4796
4797 if test $ac_cv_header_stdc = yes; then
4798 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4800 /* end confdefs.h. */
4801 #include <stdlib.h>
4802
4803 _ACEOF
4804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4805 $EGREP "free" >/dev/null 2>&1; then :
4806
4807 else
4808 ac_cv_header_stdc=no
4809 fi
4810 rm -f conftest*
4811
4812 fi
4813
4814 if test $ac_cv_header_stdc = yes; then
4815 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4816 if test "$cross_compiling" = yes; then :
4817 :
4818 else
4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h. */
4821 #include <ctype.h>
4822 #include <stdlib.h>
4823 #if ((' ' & 0x0FF) == 0x020)
4824 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4825 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4826 #else
4827 # define ISLOWER(c) \
4828 (('a' <= (c) && (c) <= 'i') \
4829 || ('j' <= (c) && (c) <= 'r') \
4830 || ('s' <= (c) && (c) <= 'z'))
4831 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4832 #endif
4833
4834 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4835 int
4836 main ()
4837 {
4838 int i;
4839 for (i = 0; i < 256; i++)
4840 if (XOR (islower (i), ISLOWER (i))
4841 || toupper (i) != TOUPPER (i))
4842 return 2;
4843 return 0;
4844 }
4845 _ACEOF
4846 if ac_fn_c_try_run "$LINENO"; then :
4847
4848 else
4849 ac_cv_header_stdc=no
4850 fi
4851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4852 conftest.$ac_objext conftest.beam conftest.$ac_ext
4853 fi
4854
4855 fi
4856 fi
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4858 $as_echo "$ac_cv_header_stdc" >&6; }
4859 if test $ac_cv_header_stdc = yes; then
4860
4861 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4862
4863 fi
4864
4865
4866 for ac_func in setenv putenv
4867 do :
4868 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4869 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4870 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4871 cat >>confdefs.h <<_ACEOF
4872 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4873 _ACEOF
4874
4875 fi
4876 done
4877
4878
4879 ac_fn_c_check_func "$LINENO" "vfork" "ac_cv_func_vfork"
4880 if test "x$ac_cv_func_vfork" = xyes; then :
4881
4882 fi
4883
4884
4885 for ac_header in sys/mman.h
4886 do :
4887 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
4888 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
4889 cat >>confdefs.h <<_ACEOF
4890 #define HAVE_SYS_MMAN_H 1
4891 _ACEOF
4892
4893 fi
4894
4895 done
4896
4897
4898 for ac_header in dirent.h
4899 do :
4900 ac_fn_c_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
4901 if test "x$ac_cv_header_dirent_h" = xyes; then :
4902 cat >>confdefs.h <<_ACEOF
4903 #define HAVE_DIRENT_H 1
4904 _ACEOF
4905
4906 fi
4907
4908 done
4909
4910
4911 for ac_header in limits.h
4912 do :
4913 ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
4914 if test "x$ac_cv_header_limits_h" = xyes; then :
4915 cat >>confdefs.h <<_ACEOF
4916 #define HAVE_LIMITS_H 1
4917 _ACEOF
4918
4919 fi
4920
4921 done
4922
4923
4924 for ac_header in param.h
4925 do :
4926 ac_fn_c_check_header_mongrel "$LINENO" "param.h" "ac_cv_header_param_h" "$ac_includes_default"
4927 if test "x$ac_cv_header_param_h" = xyes; then :
4928 cat >>confdefs.h <<_ACEOF
4929 #define HAVE_PARAM_H 1
4930 _ACEOF
4931
4932 fi
4933
4934 done
4935
4936
4937 for ac_header in paths.h
4938 do :
4939 ac_fn_c_check_header_mongrel "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
4940 if test "x$ac_cv_header_paths_h" = xyes; then :
4941 cat >>confdefs.h <<_ACEOF
4942 #define HAVE_PATHS_H 1
4943 _ACEOF
4944
4945 fi
4946
4947 done
4948
4949
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
4951 $as_echo_n "checking for va_copy... " >&6; }
4952 if ${ac_cv_c_va_copy+:} false; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956 /* end confdefs.h. */
4957 #include <stdarg.h>
4958 int
4959 main ()
4960 {
4961 va_list ap1, ap2;
4962 va_copy(ap1,ap2);
4963
4964 ;
4965 return 0;
4966 }
4967 _ACEOF
4968 if ac_fn_c_try_link "$LINENO"; then :
4969 ac_cv_c_va_copy="yes"
4970 else
4971 ac_cv_c_va_copy="no"
4972 fi
4973 rm -f core conftest.err conftest.$ac_objext \
4974 conftest$ac_exeext conftest.$ac_ext
4975
4976 fi
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_va_copy" >&5
4978 $as_echo "$ac_cv_c_va_copy" >&6; }
4979 if test "$ac_cv_c_va_copy" = "yes"
4980 then
4981
4982 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
4983
4984 fi
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5
4986 $as_echo_n "checking for __va_copy... " >&6; }
4987 if ${ac_cv_c___va_copy+:} false; then :
4988 $as_echo_n "(cached) " >&6
4989 else
4990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h. */
4992 #include <stdarg.h>
4993 int
4994 main ()
4995 {
4996 va_list ap1, ap2;
4997 __va_copy(ap1,ap2);
4998
4999 ;
5000 return 0;
5001 }
5002 _ACEOF
5003 if ac_fn_c_try_link "$LINENO"; then :
5004 ac_cv_c___va_copy="yes"
5005 else
5006 ac_cv_c___va_copy="no"
5007 fi
5008 rm -f core conftest.err conftest.$ac_objext \
5009 conftest$ac_exeext conftest.$ac_ext
5010
5011 fi
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c___va_copy" >&5
5013 $as_echo "$ac_cv_c___va_copy" >&6; }
5014 if test "$ac_cv_c___va_copy" = "yes"
5015 then
5016
5017 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
5018
5019 fi
5020
5021
5022
5023
5024 case $target in
5025 *x86_64*) ;;
5026 *)
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for built-in roundf" >&5
5028 $as_echo_n "checking for built-in roundf... " >&6; }
5029 if ${ac_cv_c_roundf+:} false; then :
5030 $as_echo_n "(cached) " >&6
5031 else
5032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5033 /* end confdefs.h. */
5034 #include <math.h>
5035 int
5036 main ()
5037 {
5038 float f;
5039 f = roundf(1.5);
5040
5041 ;
5042 return 0;
5043 }
5044 _ACEOF
5045 if ac_fn_c_try_link "$LINENO"; then :
5046 ac_cv_c_roundf="yes"
5047 else
5048 ac_cv_c_roundf="no"
5049 fi
5050 rm -f core conftest.err conftest.$ac_objext \
5051 conftest$ac_exeext conftest.$ac_ext
5052
5053 fi
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_roundf" >&5
5055 $as_echo "$ac_cv_c_roundf" >&6; }
5056 if test "$ac_cv_c_roundf" = "no"
5057 then
5058 # Check fo C99 function from libm
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf in -lm" >&5
5060 $as_echo_n "checking for roundf in -lm... " >&6; }
5061 if ${ac_cv_lib_m_roundf+:} false; then :
5062 $as_echo_n "(cached) " >&6
5063 else
5064 ac_check_lib_save_LIBS=$LIBS
5065 LIBS="-lm $LIBS"
5066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5067 /* end confdefs.h. */
5068
5069 /* Override any GCC internal prototype to avoid an error.
5070 Use char because int might match the return type of a GCC
5071 builtin and then its argument prototype would still apply. */
5072 #ifdef __cplusplus
5073 extern "C"
5074 #endif
5075 char roundf ();
5076 int
5077 main ()
5078 {
5079 return roundf ();
5080 ;
5081 return 0;
5082 }
5083 _ACEOF
5084 if ac_fn_c_try_link "$LINENO"; then :
5085 ac_cv_lib_m_roundf=yes
5086 else
5087 ac_cv_lib_m_roundf=no
5088 fi
5089 rm -f core conftest.err conftest.$ac_objext \
5090 conftest$ac_exeext conftest.$ac_ext
5091 LIBS=$ac_check_lib_save_LIBS
5092 fi
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_roundf" >&5
5094 $as_echo "$ac_cv_lib_m_roundf" >&6; }
5095 if test "x$ac_cv_lib_m_roundf" = xyes; then :
5096
5097 $as_echo "#define HAVE_ROUNDF 1" >>confdefs.h
5098
5099 fi
5100
5101 fi
5102
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for built-in round" >&5
5104 $as_echo_n "checking for built-in round... " >&6; }
5105 if ${ac_cv_c_round+:} false; then :
5106 $as_echo_n "(cached) " >&6
5107 else
5108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5109 /* end confdefs.h. */
5110 #include <math.h>
5111 int
5112 main ()
5113 {
5114 double d;
5115 d = round(1.5);
5116
5117 ;
5118 return 0;
5119 }
5120 _ACEOF
5121 if ac_fn_c_try_link "$LINENO"; then :
5122 ac_cv_c_round="yes"
5123 else
5124 ac_cv_c_round="no"
5125 fi
5126 rm -f core conftest.err conftest.$ac_objext \
5127 conftest$ac_exeext conftest.$ac_ext
5128
5129 fi
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_round" >&5
5131 $as_echo "$ac_cv_c_round" >&6; }
5132 if test "$ac_cv_c_round" = "no"
5133 then
5134 # Check fo C99 function from libm
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round in -lm" >&5
5136 $as_echo_n "checking for round in -lm... " >&6; }
5137 if ${ac_cv_lib_m_round+:} false; then :
5138 $as_echo_n "(cached) " >&6
5139 else
5140 ac_check_lib_save_LIBS=$LIBS
5141 LIBS="-lm $LIBS"
5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h. */
5144
5145 /* Override any GCC internal prototype to avoid an error.
5146 Use char because int might match the return type of a GCC
5147 builtin and then its argument prototype would still apply. */
5148 #ifdef __cplusplus
5149 extern "C"
5150 #endif
5151 char round ();
5152 int
5153 main ()
5154 {
5155 return round ();
5156 ;
5157 return 0;
5158 }
5159 _ACEOF
5160 if ac_fn_c_try_link "$LINENO"; then :
5161 ac_cv_lib_m_round=yes
5162 else
5163 ac_cv_lib_m_round=no
5164 fi
5165 rm -f core conftest.err conftest.$ac_objext \
5166 conftest$ac_exeext conftest.$ac_ext
5167 LIBS=$ac_check_lib_save_LIBS
5168 fi
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_round" >&5
5170 $as_echo "$ac_cv_lib_m_round" >&6; }
5171 if test "x$ac_cv_lib_m_round" = xyes; then :
5172
5173 $as_echo "#define HAVE_ROUND 1" >>confdefs.h
5174
5175 fi
5176
5177 fi
5178 ;;
5179 esac
5180
5181 stub_defs=""
5182 extra_defs="$extra_defs -DCAD_DIR=\\\"\${LIBDIR}\\\" -DBIN_DIR=\\\"\${BINDIR}\\\""
5183 X_LIBS=
5184 X_CFLAGS=
5185 CPPFLAGS=
5186 INC_SPECS=
5187 DEPEND_FLAG=
5188 SHLIB_CFLAGS=""
5189 LD_RUN_PATH=""
5190 WISH_EXE=""
5191 TCLSH_EXE=""
5192
5193 modules=""
5194 unused=""
5195 cadinstall=""
5196 extra_libs=""
5197 top_extra_libs=""
5198 sub_extra_libs=""
5199 ld_extra_libs=""
5200 ld_extra_objs=""
5201 programs=""
5202 rl_defs=
5203 rl_libs=
5204 gr_cflags=
5205 gr_dflags=
5206 gr_libs=
5207 gr_srcs=
5208 gr_hsrcs=
5209 gr_hprog=
5210
5211 magic_with_tcl="yes"
5212 magic_with_tk="yes"
5213 magic_with_tcl_includes=""
5214 magic_with_tk_includes=""
5215 magic_with_tcl_libraries=""
5216 magic_with_tk_libraries=""
5217
5218
5219 usingOGL=1
5220 use_libglu="-lGLU"
5221 usingTcl=1
5222 usingOA=0
5223 usingCairo=1
5224 usingPython3=1
5225
5226
5227 # Extract the first word of "gcore", so it can be a program name with args.
5228 set dummy gcore; ac_word=$2
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5230 $as_echo_n "checking for $ac_word... " >&6; }
5231 if ${ac_cv_path_GCORE+:} false; then :
5232 $as_echo_n "(cached) " >&6
5233 else
5234 case $GCORE in
5235 [\\/]* | ?:[\\/]*)
5236 ac_cv_path_GCORE="$GCORE" # Let the user override the test with a path.
5237 ;;
5238 *)
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 for as_dir in $PATH
5241 do
5242 IFS=$as_save_IFS
5243 test -z "$as_dir" && as_dir=.
5244 for ac_exec_ext in '' $ac_executable_extensions; do
5245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5246 ac_cv_path_GCORE="$as_dir/$ac_word$ac_exec_ext"
5247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 break 2
5249 fi
5250 done
5251 done
5252 IFS=$as_save_IFS
5253
5254 test -z "$ac_cv_path_GCORE" && ac_cv_path_GCORE="no"
5255 ;;
5256 esac
5257 fi
5258 GCORE=$ac_cv_path_GCORE
5259 if test -n "$GCORE"; then
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCORE" >&5
5261 $as_echo "$GCORE" >&6; }
5262 else
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5264 $as_echo "no" >&6; }
5265 fi
5266
5267
5268
5269
5270 # Extract the first word of "csh", so it can be a program name with args.
5271 set dummy csh; ac_word=$2
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5273 $as_echo_n "checking for $ac_word... " >&6; }
5274 if ${ac_cv_path_CSH+:} false; then :
5275 $as_echo_n "(cached) " >&6
5276 else
5277 case $CSH in
5278 [\\/]* | ?:[\\/]*)
5279 ac_cv_path_CSH="$CSH" # Let the user override the test with a path.
5280 ;;
5281 *)
5282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283 for as_dir in $PATH
5284 do
5285 IFS=$as_save_IFS
5286 test -z "$as_dir" && as_dir=.
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5289 ac_cv_path_CSH="$as_dir/$ac_word$ac_exec_ext"
5290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5291 break 2
5292 fi
5293 done
5294 done
5295 IFS=$as_save_IFS
5296
5297 test -z "$ac_cv_path_CSH" && ac_cv_path_CSH="no"
5298 ;;
5299 esac
5300 fi
5301 CSH=$ac_cv_path_CSH
5302 if test -n "$CSH"; then
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSH" >&5
5304 $as_echo "$CSH" >&6; }
5305 else
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5307 $as_echo "no" >&6; }
5308 fi
5309
5310
5311
5312 if test "x${CSH}" = "x"; then
5313 as_fn_error $? "cannot find /bin/csh---cannot compile!" "$LINENO" 5
5314 fi
5315
5316 # Extract the first word of "python3", so it can be a program name with args.
5317 set dummy python3; ac_word=$2
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5319 $as_echo_n "checking for $ac_word... " >&6; }
5320 if ${ac_cv_path_PYTHON3+:} false; then :
5321 $as_echo_n "(cached) " >&6
5322 else
5323 case $PYTHON3 in
5324 [\\/]* | ?:[\\/]*)
5325 ac_cv_path_PYTHON3="$PYTHON3" # Let the user override the test with a path.
5326 ;;
5327 *)
5328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329 for as_dir in $PATH
5330 do
5331 IFS=$as_save_IFS
5332 test -z "$as_dir" && as_dir=.
5333 for ac_exec_ext in '' $ac_executable_extensions; do
5334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5335 ac_cv_path_PYTHON3="$as_dir/$ac_word$ac_exec_ext"
5336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5337 break 2
5338 fi
5339 done
5340 done
5341 IFS=$as_save_IFS
5342
5343 test -z "$ac_cv_path_PYTHON3" && ac_cv_path_PYTHON3="no"
5344 ;;
5345 esac
5346 fi
5347 PYTHON3=$ac_cv_path_PYTHON3
5348 if test -n "$PYTHON3"; then
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
5350 $as_echo "$PYTHON3" >&6; }
5351 else
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353 $as_echo "no" >&6; }
5354 fi
5355
5356
5357 if test "x${PYTHON3}" == "x"; then
5358
5359
5360 usingPython3=
5361 if test "$CPP" = "$CC -E" ; then
5362 MCPP="$CPP -x c"
5363 MSED="sed -e 's/\\/\\\\/'"
5364 else
5365 MCPP="$CPP"
5366 MSED="sed -e 's/\\/\\\\/'"
5367 fi
5368
5369 else
5370 MCPP="\${MAGICDIR}/scripts/preproc.py -ccomm"
5371 MSED="cat"
5372 usingPython3=1
5373 fi
5374
5375
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5377 $as_echo_n "checking for X... " >&6; }
5378
5379
5380 # Check whether --with-x was given.
5381 if test "${with_x+set}" = set; then :
5382 withval=$with_x;
5383 fi
5384
5385 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5386 if test "x$with_x" = xno; then
5387 # The user explicitly disabled X.
5388 have_x=disabled
5389 else
5390 case $x_includes,$x_libraries in #(
5391 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
5392 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
5393 $as_echo_n "(cached) " >&6
5394 else
5395 # One or both of the vars are not set, and there is no cached value.
5396 ac_x_includes=no ac_x_libraries=no
5397 rm -f -r conftest.dir
5398 if mkdir conftest.dir; then
5399 cd conftest.dir
5400 cat >Imakefile <<'_ACEOF'
5401 incroot:
5402 @echo incroot='${INCROOT}'
5403 usrlibdir:
5404 @echo usrlibdir='${USRLIBDIR}'
5405 libdir:
5406 @echo libdir='${LIBDIR}'
5407 _ACEOF
5408 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5409 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5410 for ac_var in incroot usrlibdir libdir; do
5411 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5412 done
5413 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5414 for ac_extension in a so sl dylib la dll; do
5415 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5416 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5417 ac_im_usrlibdir=$ac_im_libdir; break
5418 fi
5419 done
5420 # Screen out bogus values from the imake configuration. They are
5421 # bogus both because they are the default anyway, and because
5422 # using them would break gcc on systems where it needs fixed includes.
5423 case $ac_im_incroot in
5424 /usr/include) ac_x_includes= ;;
5425 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5426 esac
5427 case $ac_im_usrlibdir in
5428 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5429 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5430 esac
5431 fi
5432 cd ..
5433 rm -f -r conftest.dir
5434 fi
5435
5436 # Standard set of common directories for X headers.
5437 # Check X11 before X11Rn because it is often a symlink to the current release.
5438 ac_x_header_dirs='
5439 /usr/X11/include
5440 /usr/X11R7/include
5441 /usr/X11R6/include
5442 /usr/X11R5/include
5443 /usr/X11R4/include
5444
5445 /usr/include/X11
5446 /usr/include/X11R7
5447 /usr/include/X11R6
5448 /usr/include/X11R5
5449 /usr/include/X11R4
5450
5451 /usr/local/X11/include
5452 /usr/local/X11R7/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/X11R7
5459 /usr/local/include/X11R6
5460 /usr/local/include/X11R5
5461 /usr/local/include/X11R4
5462
5463 /usr/X386/include
5464 /usr/x386/include
5465 /usr/XFree86/include/X11
5466
5467 /usr/include
5468 /usr/local/include
5469 /usr/unsupported/include
5470 /usr/athena/include
5471 /usr/local/x11r5/include
5472 /usr/lpp/Xamples/include
5473
5474 /usr/openwin/include
5475 /usr/openwin/share/include'
5476
5477 if test "$ac_x_includes" = no; then
5478 # Guess where to find include files, by looking for Xlib.h.
5479 # First, try using that file with no special directory specified.
5480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5481 /* end confdefs.h. */
5482 #include <X11/Xlib.h>
5483 _ACEOF
5484 if ac_fn_c_try_cpp "$LINENO"; then :
5485 # We can compile using X headers with no special include directory.
5486 ac_x_includes=
5487 else
5488 for ac_dir in $ac_x_header_dirs; do
5489 if test -r "$ac_dir/X11/Xlib.h"; then
5490 ac_x_includes=$ac_dir
5491 break
5492 fi
5493 done
5494 fi
5495 rm -f conftest.err conftest.i conftest.$ac_ext
5496 fi # $ac_x_includes = no
5497
5498 if test "$ac_x_libraries" = no; then
5499 # Check for the libraries.
5500 # See if we find them without any special options.
5501 # Don't add to $LIBS permanently.
5502 ac_save_LIBS=$LIBS
5503 LIBS="-lX11 $LIBS"
5504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5505 /* end confdefs.h. */
5506 #include <X11/Xlib.h>
5507 int
5508 main ()
5509 {
5510 XrmInitialize ()
5511 ;
5512 return 0;
5513 }
5514 _ACEOF
5515 if ac_fn_c_try_link "$LINENO"; then :
5516 LIBS=$ac_save_LIBS
5517 # We can link X programs with no special library path.
5518 ac_x_libraries=
5519 else
5520 LIBS=$ac_save_LIBS
5521 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5522 do
5523 # Don't even attempt the hair of trying to link an X program!
5524 for ac_extension in a so sl dylib la dll; do
5525 if test -r "$ac_dir/libX11.$ac_extension"; then
5526 ac_x_libraries=$ac_dir
5527 break 2
5528 fi
5529 done
5530 done
5531 fi
5532 rm -f core conftest.err conftest.$ac_objext \
5533 conftest$ac_exeext conftest.$ac_ext
5534 fi # $ac_x_libraries = no
5535
5536 case $ac_x_includes,$ac_x_libraries in #(
5537 no,* | *,no | *\'*)
5538 # Didn't find X, or a directory has "'" in its name.
5539 ac_cv_have_x="have_x=no";; #(
5540 *)
5541 # Record where we found X for the cache.
5542 ac_cv_have_x="have_x=yes\
5543 ac_x_includes='$ac_x_includes'\
5544 ac_x_libraries='$ac_x_libraries'"
5545 esac
5546 fi
5547 ;; #(
5548 *) have_x=yes;;
5549 esac
5550 eval "$ac_cv_have_x"
5551 fi # $with_x != no
5552
5553 if test "$have_x" != yes; then
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5555 $as_echo "$have_x" >&6; }
5556 no_x=yes
5557 else
5558 # If each of the values was on the command line, it overrides each guess.
5559 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5560 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5561 # Update the cache value to reflect the command line values.
5562 ac_cv_have_x="have_x=yes\
5563 ac_x_includes='$x_includes'\
5564 ac_x_libraries='$x_libraries'"
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5566 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5567 fi
5568
5569 if test "$no_x" = yes; then
5570 # Not all programs may use this symbol, but it does not hurt to define it.
5571
5572 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
5573
5574 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5575 else
5576 if test -n "$x_includes"; then
5577 X_CFLAGS="$X_CFLAGS -I$x_includes"
5578 fi
5579
5580 # It would also be nice to do this for all -L options, not just this one.
5581 if test -n "$x_libraries"; then
5582 X_LIBS="$X_LIBS -L$x_libraries"
5583 # For Solaris; some versions of Sun CC require a space after -R and
5584 # others require no space. Words are not sufficient . . . .
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5586 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
5587 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5588 ac_xsave_c_werror_flag=$ac_c_werror_flag
5589 ac_c_werror_flag=yes
5590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5591 /* end confdefs.h. */
5592
5593 int
5594 main ()
5595 {
5596
5597 ;
5598 return 0;
5599 }
5600 _ACEOF
5601 if ac_fn_c_try_link "$LINENO"; then :
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603 $as_echo "no" >&6; }
5604 X_LIBS="$X_LIBS -R$x_libraries"
5605 else
5606 LIBS="$ac_xsave_LIBS -R $x_libraries"
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5609
5610 int
5611 main ()
5612 {
5613
5614 ;
5615 return 0;
5616 }
5617 _ACEOF
5618 if ac_fn_c_try_link "$LINENO"; then :
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5620 $as_echo "yes" >&6; }
5621 X_LIBS="$X_LIBS -R $x_libraries"
5622 else
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5624 $as_echo "neither works" >&6; }
5625 fi
5626 rm -f core conftest.err conftest.$ac_objext \
5627 conftest$ac_exeext conftest.$ac_ext
5628 fi
5629 rm -f core conftest.err conftest.$ac_objext \
5630 conftest$ac_exeext conftest.$ac_ext
5631 ac_c_werror_flag=$ac_xsave_c_werror_flag
5632 LIBS=$ac_xsave_LIBS
5633 fi
5634
5635 # Check for system-dependent libraries X programs must link with.
5636 # Do this before checking for the system-independent R6 libraries
5637 # (-lICE), since we may need -lsocket or whatever for X linking.
5638
5639 if test "$ISC" = yes; then
5640 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5641 else
5642 # Martyn Johnson says this is needed for Ultrix, if the X
5643 # libraries were built with DECnet support. And Karl Berry says
5644 # the Alpha needs dnet_stub (dnet does not exist).
5645 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647 /* end confdefs.h. */
5648
5649 /* Override any GCC internal prototype to avoid an error.
5650 Use char because int might match the return type of a GCC
5651 builtin and then its argument prototype would still apply. */
5652 #ifdef __cplusplus
5653 extern "C"
5654 #endif
5655 char XOpenDisplay ();
5656 int
5657 main ()
5658 {
5659 return XOpenDisplay ();
5660 ;
5661 return 0;
5662 }
5663 _ACEOF
5664 if ac_fn_c_try_link "$LINENO"; then :
5665
5666 else
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5668 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5669 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
5670 $as_echo_n "(cached) " >&6
5671 else
5672 ac_check_lib_save_LIBS=$LIBS
5673 LIBS="-ldnet $LIBS"
5674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675 /* end confdefs.h. */
5676
5677 /* Override any GCC internal prototype to avoid an error.
5678 Use char because int might match the return type of a GCC
5679 builtin and then its argument prototype would still apply. */
5680 #ifdef __cplusplus
5681 extern "C"
5682 #endif
5683 char dnet_ntoa ();
5684 int
5685 main ()
5686 {
5687 return dnet_ntoa ();
5688 ;
5689 return 0;
5690 }
5691 _ACEOF
5692 if ac_fn_c_try_link "$LINENO"; then :
5693 ac_cv_lib_dnet_dnet_ntoa=yes
5694 else
5695 ac_cv_lib_dnet_dnet_ntoa=no
5696 fi
5697 rm -f core conftest.err conftest.$ac_objext \
5698 conftest$ac_exeext conftest.$ac_ext
5699 LIBS=$ac_check_lib_save_LIBS
5700 fi
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5702 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5703 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
5704 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5705 fi
5706
5707 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5709 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5710 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
5711 $as_echo_n "(cached) " >&6
5712 else
5713 ac_check_lib_save_LIBS=$LIBS
5714 LIBS="-ldnet_stub $LIBS"
5715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5716 /* end confdefs.h. */
5717
5718 /* Override any GCC internal prototype to avoid an error.
5719 Use char because int might match the return type of a GCC
5720 builtin and then its argument prototype would still apply. */
5721 #ifdef __cplusplus
5722 extern "C"
5723 #endif
5724 char dnet_ntoa ();
5725 int
5726 main ()
5727 {
5728 return dnet_ntoa ();
5729 ;
5730 return 0;
5731 }
5732 _ACEOF
5733 if ac_fn_c_try_link "$LINENO"; then :
5734 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5735 else
5736 ac_cv_lib_dnet_stub_dnet_ntoa=no
5737 fi
5738 rm -f core conftest.err conftest.$ac_objext \
5739 conftest$ac_exeext conftest.$ac_ext
5740 LIBS=$ac_check_lib_save_LIBS
5741 fi
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5743 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5744 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
5745 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5746 fi
5747
5748 fi
5749 fi
5750 rm -f core conftest.err conftest.$ac_objext \
5751 conftest$ac_exeext conftest.$ac_ext
5752 LIBS="$ac_xsave_LIBS"
5753
5754 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
5755 # to get the SysV transport functions.
5756 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5757 # needs -lnsl.
5758 # The nsl library prevents programs from opening the X display
5759 # on Irix 5.2, according to T.E. Dickey.
5760 # The functions gethostbyname, getservbyname, and inet_addr are
5761 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5762 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5763 if test "x$ac_cv_func_gethostbyname" = xyes; then :
5764
5765 fi
5766
5767 if test $ac_cv_func_gethostbyname = no; then
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5769 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5770 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
5771 $as_echo_n "(cached) " >&6
5772 else
5773 ac_check_lib_save_LIBS=$LIBS
5774 LIBS="-lnsl $LIBS"
5775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5776 /* end confdefs.h. */
5777
5778 /* Override any GCC internal prototype to avoid an error.
5779 Use char because int might match the return type of a GCC
5780 builtin and then its argument prototype would still apply. */
5781 #ifdef __cplusplus
5782 extern "C"
5783 #endif
5784 char gethostbyname ();
5785 int
5786 main ()
5787 {
5788 return gethostbyname ();
5789 ;
5790 return 0;
5791 }
5792 _ACEOF
5793 if ac_fn_c_try_link "$LINENO"; then :
5794 ac_cv_lib_nsl_gethostbyname=yes
5795 else
5796 ac_cv_lib_nsl_gethostbyname=no
5797 fi
5798 rm -f core conftest.err conftest.$ac_objext \
5799 conftest$ac_exeext conftest.$ac_ext
5800 LIBS=$ac_check_lib_save_LIBS
5801 fi
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5803 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5804 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
5805 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5806 fi
5807
5808 if test $ac_cv_lib_nsl_gethostbyname = no; then
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5810 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5811 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
5812 $as_echo_n "(cached) " >&6
5813 else
5814 ac_check_lib_save_LIBS=$LIBS
5815 LIBS="-lbsd $LIBS"
5816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817 /* end confdefs.h. */
5818
5819 /* Override any GCC internal prototype to avoid an error.
5820 Use char because int might match the return type of a GCC
5821 builtin and then its argument prototype would still apply. */
5822 #ifdef __cplusplus
5823 extern "C"
5824 #endif
5825 char gethostbyname ();
5826 int
5827 main ()
5828 {
5829 return gethostbyname ();
5830 ;
5831 return 0;
5832 }
5833 _ACEOF
5834 if ac_fn_c_try_link "$LINENO"; then :
5835 ac_cv_lib_bsd_gethostbyname=yes
5836 else
5837 ac_cv_lib_bsd_gethostbyname=no
5838 fi
5839 rm -f core conftest.err conftest.$ac_objext \
5840 conftest$ac_exeext conftest.$ac_ext
5841 LIBS=$ac_check_lib_save_LIBS
5842 fi
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5844 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
5845 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
5846 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5847 fi
5848
5849 fi
5850 fi
5851
5852 # [email protected] says without -lsocket,
5853 # socket/setsockopt and other routines are undefined under SCO ODT
5854 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5855 # on later versions), says Simon Leinen: it contains gethostby*
5856 # variants that don't use the name server (or something). -lsocket
5857 # must be given before -lnsl if both are needed. We assume that
5858 # if connect needs -lnsl, so does gethostbyname.
5859 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
5860 if test "x$ac_cv_func_connect" = xyes; then :
5861
5862 fi
5863
5864 if test $ac_cv_func_connect = no; then
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
5866 $as_echo_n "checking for connect in -lsocket... " >&6; }
5867 if ${ac_cv_lib_socket_connect+:} false; then :
5868 $as_echo_n "(cached) " >&6
5869 else
5870 ac_check_lib_save_LIBS=$LIBS
5871 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5873 /* end confdefs.h. */
5874
5875 /* Override any GCC internal prototype to avoid an error.
5876 Use char because int might match the return type of a GCC
5877 builtin and then its argument prototype would still apply. */
5878 #ifdef __cplusplus
5879 extern "C"
5880 #endif
5881 char connect ();
5882 int
5883 main ()
5884 {
5885 return connect ();
5886 ;
5887 return 0;
5888 }
5889 _ACEOF
5890 if ac_fn_c_try_link "$LINENO"; then :
5891 ac_cv_lib_socket_connect=yes
5892 else
5893 ac_cv_lib_socket_connect=no
5894 fi
5895 rm -f core conftest.err conftest.$ac_objext \
5896 conftest$ac_exeext conftest.$ac_ext
5897 LIBS=$ac_check_lib_save_LIBS
5898 fi
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
5900 $as_echo "$ac_cv_lib_socket_connect" >&6; }
5901 if test "x$ac_cv_lib_socket_connect" = xyes; then :
5902 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5903 fi
5904
5905 fi
5906
5907 # Guillermo Gomez says -lposix is necessary on A/UX.
5908 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
5909 if test "x$ac_cv_func_remove" = xyes; then :
5910
5911 fi
5912
5913 if test $ac_cv_func_remove = no; then
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
5915 $as_echo_n "checking for remove in -lposix... " >&6; }
5916 if ${ac_cv_lib_posix_remove+:} false; then :
5917 $as_echo_n "(cached) " >&6
5918 else
5919 ac_check_lib_save_LIBS=$LIBS
5920 LIBS="-lposix $LIBS"
5921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5922 /* end confdefs.h. */
5923
5924 /* Override any GCC internal prototype to avoid an error.
5925 Use char because int might match the return type of a GCC
5926 builtin and then its argument prototype would still apply. */
5927 #ifdef __cplusplus
5928 extern "C"
5929 #endif
5930 char remove ();
5931 int
5932 main ()
5933 {
5934 return remove ();
5935 ;
5936 return 0;
5937 }
5938 _ACEOF
5939 if ac_fn_c_try_link "$LINENO"; then :
5940 ac_cv_lib_posix_remove=yes
5941 else
5942 ac_cv_lib_posix_remove=no
5943 fi
5944 rm -f core conftest.err conftest.$ac_objext \
5945 conftest$ac_exeext conftest.$ac_ext
5946 LIBS=$ac_check_lib_save_LIBS
5947 fi
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
5949 $as_echo "$ac_cv_lib_posix_remove" >&6; }
5950 if test "x$ac_cv_lib_posix_remove" = xyes; then :
5951 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5952 fi
5953
5954 fi
5955
5956 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5957 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
5958 if test "x$ac_cv_func_shmat" = xyes; then :
5959
5960 fi
5961
5962 if test $ac_cv_func_shmat = no; then
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
5964 $as_echo_n "checking for shmat in -lipc... " >&6; }
5965 if ${ac_cv_lib_ipc_shmat+:} false; then :
5966 $as_echo_n "(cached) " >&6
5967 else
5968 ac_check_lib_save_LIBS=$LIBS
5969 LIBS="-lipc $LIBS"
5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h. */
5972
5973 /* Override any GCC internal prototype to avoid an error.
5974 Use char because int might match the return type of a GCC
5975 builtin and then its argument prototype would still apply. */
5976 #ifdef __cplusplus
5977 extern "C"
5978 #endif
5979 char shmat ();
5980 int
5981 main ()
5982 {
5983 return shmat ();
5984 ;
5985 return 0;
5986 }
5987 _ACEOF
5988 if ac_fn_c_try_link "$LINENO"; then :
5989 ac_cv_lib_ipc_shmat=yes
5990 else
5991 ac_cv_lib_ipc_shmat=no
5992 fi
5993 rm -f core conftest.err conftest.$ac_objext \
5994 conftest$ac_exeext conftest.$ac_ext
5995 LIBS=$ac_check_lib_save_LIBS
5996 fi
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
5998 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
5999 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
6000 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6001 fi
6002
6003 fi
6004 fi
6005
6006 # Check for libraries that X11R6 Xt/Xaw programs need.
6007 ac_save_LDFLAGS=$LDFLAGS
6008 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6009 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6010 # check for ICE first), but we must link in the order -lSM -lICE or
6011 # we get undefined symbols. So assume we have SM if we have ICE.
6012 # These have to be linked with before -lX11, unlike the other
6013 # libraries we check for below, so use a different variable.
6014 # John Interrante, Karl Berry
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
6016 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
6017 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
6018 $as_echo_n "(cached) " >&6
6019 else
6020 ac_check_lib_save_LIBS=$LIBS
6021 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6023 /* end confdefs.h. */
6024
6025 /* Override any GCC internal prototype to avoid an error.
6026 Use char because int might match the return type of a GCC
6027 builtin and then its argument prototype would still apply. */
6028 #ifdef __cplusplus
6029 extern "C"
6030 #endif
6031 char IceConnectionNumber ();
6032 int
6033 main ()
6034 {
6035 return IceConnectionNumber ();
6036 ;
6037 return 0;
6038 }
6039 _ACEOF
6040 if ac_fn_c_try_link "$LINENO"; then :
6041 ac_cv_lib_ICE_IceConnectionNumber=yes
6042 else
6043 ac_cv_lib_ICE_IceConnectionNumber=no
6044 fi
6045 rm -f core conftest.err conftest.$ac_objext \
6046 conftest$ac_exeext conftest.$ac_ext
6047 LIBS=$ac_check_lib_save_LIBS
6048 fi
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6050 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6051 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
6052 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6053 fi
6054
6055 LDFLAGS=$ac_save_LDFLAGS
6056
6057 fi
6058
6059
6060 if test "x${X_DISPLAY_MISSING}" = "x"; then
6061 usingX11=1
6062 else
6063 as_fn_error $? "Unable to find X11---compiling without graphics" "$LINENO" 5
6064 echo Cannot find X11---will attempt to compile anyway.
6065 echo Graphics options will be NULL only!
6066 if test $usingOGL ; then
6067 echo "Cannot use OpenGL/GLX without X11, disabling."
6068 usingOGL=
6069 fi
6070 if test $usingCairo ; then
6071 echo "Cannot use Cairo without X11, disabling."
6072 usingCairo=
6073 fi
6074 if test $usingTcl ; then
6075 echo "Cannot compile TCL version without X11, disabling."
6076 usingTcl=
6077 fi
6078 fi
6079
6080 # For distributed installs, where the run-time files are installed in a
6081 # place that is a temporary staging area, like DESTDIR, but unlike DESTDIR,
6082 # the prefix is replaced by the destination directory, rather than appended
6083 # to it.
6084 DIST_DIR="\${exec_prefix}"
6085
6086 # Check whether --with-distdir was given.
6087 if test "${with_distdir+set}" = set; then :
6088 withval=$with_distdir;
6089 if test "$withval" = "no" -o "$withval" = "NO" ; then
6090 DIST_DIR="\${exec_prefix}"
6091 else
6092 DIST_DIR=${withval}
6093 fi
6094
6095 fi
6096
6097
6098 # Check for libXi, which is required on some systems but not available on
6099 # others.
6100 use_libxi=""
6101 use_libxmu=""
6102 use_libxext=""
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
6104 $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
6105 if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
6106 $as_echo_n "(cached) " >&6
6107 else
6108 ac_check_lib_save_LIBS=$LIBS
6109 LIBS="-lXi $LIBS"
6110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6111 /* end confdefs.h. */
6112
6113 /* Override any GCC internal prototype to avoid an error.
6114 Use char because int might match the return type of a GCC
6115 builtin and then its argument prototype would still apply. */
6116 #ifdef __cplusplus
6117 extern "C"
6118 #endif
6119 char XOpenDevice ();
6120 int
6121 main ()
6122 {
6123 return XOpenDevice ();
6124 ;
6125 return 0;
6126 }
6127 _ACEOF
6128 if ac_fn_c_try_link "$LINENO"; then :
6129 ac_cv_lib_Xi_XOpenDevice=yes
6130 else
6131 ac_cv_lib_Xi_XOpenDevice=no
6132 fi
6133 rm -f core conftest.err conftest.$ac_objext \
6134 conftest$ac_exeext conftest.$ac_ext
6135 LIBS=$ac_check_lib_save_LIBS
6136 fi
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
6138 $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
6139 if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
6140 use_libxi="-lXi"
6141 fi
6142
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuInternAtom in -lXmu" >&5
6144 $as_echo_n "checking for XmuInternAtom in -lXmu... " >&6; }
6145 if ${ac_cv_lib_Xmu_XmuInternAtom+:} false; then :
6146 $as_echo_n "(cached) " >&6
6147 else
6148 ac_check_lib_save_LIBS=$LIBS
6149 LIBS="-lXmu $LIBS"
6150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6151 /* end confdefs.h. */
6152
6153 /* Override any GCC internal prototype to avoid an error.
6154 Use char because int might match the return type of a GCC
6155 builtin and then its argument prototype would still apply. */
6156 #ifdef __cplusplus
6157 extern "C"
6158 #endif
6159 char XmuInternAtom ();
6160 int
6161 main ()
6162 {
6163 return XmuInternAtom ();
6164 ;
6165 return 0;
6166 }
6167 _ACEOF
6168 if ac_fn_c_try_link "$LINENO"; then :
6169 ac_cv_lib_Xmu_XmuInternAtom=yes
6170 else
6171 ac_cv_lib_Xmu_XmuInternAtom=no
6172 fi
6173 rm -f core conftest.err conftest.$ac_objext \
6174 conftest$ac_exeext conftest.$ac_ext
6175 LIBS=$ac_check_lib_save_LIBS
6176 fi
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuInternAtom" >&5
6178 $as_echo "$ac_cv_lib_Xmu_XmuInternAtom" >&6; }
6179 if test "x$ac_cv_lib_Xmu_XmuInternAtom" = xyes; then :
6180 use_libxmu="-lXmu"
6181 fi
6182
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XextFindDisplay in -lXext" >&5
6184 $as_echo_n "checking for XextFindDisplay in -lXext... " >&6; }
6185 if ${ac_cv_lib_Xext_XextFindDisplay+:} false; then :
6186 $as_echo_n "(cached) " >&6
6187 else
6188 ac_check_lib_save_LIBS=$LIBS
6189 LIBS="-lXext $LIBS"
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h. */
6192
6193 /* Override any GCC internal prototype to avoid an error.
6194 Use char because int might match the return type of a GCC
6195 builtin and then its argument prototype would still apply. */
6196 #ifdef __cplusplus
6197 extern "C"
6198 #endif
6199 char XextFindDisplay ();
6200 int
6201 main ()
6202 {
6203 return XextFindDisplay ();
6204 ;
6205 return 0;
6206 }
6207 _ACEOF
6208 if ac_fn_c_try_link "$LINENO"; then :
6209 ac_cv_lib_Xext_XextFindDisplay=yes
6210 else
6211 ac_cv_lib_Xext_XextFindDisplay=no
6212 fi
6213 rm -f core conftest.err conftest.$ac_objext \
6214 conftest$ac_exeext conftest.$ac_ext
6215 LIBS=$ac_check_lib_save_LIBS
6216 fi
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XextFindDisplay" >&5
6218 $as_echo "$ac_cv_lib_Xext_XextFindDisplay" >&6; }
6219 if test "x$ac_cv_lib_Xext_XextFindDisplay" = xyes; then :
6220 use_libxext="-lXext"
6221 fi
6222
6223
6224
6225 # Check whether --with-interpreter was given.
6226 if test "${with_interpreter+set}" = set; then :
6227 withval=$with_interpreter;
6228 if test "$withval" = "no" -o "$withval" = "NO"; then
6229 usingTcl=
6230 elif test "$withval" = "scheme" -o "$withval" = "SCHEME"; then
6231 usingScheme=1
6232 usingTcl=
6233 elif test "$withval" != "tcl" -a "$withval" != "TCL"; then
6234 echo "Unknown option to --with-interpreter: Must be scheme, tcl, or no."
6235 exit 1
6236 fi
6237
6238 fi
6239
6240
6241
6242 # Check whether --with-tcl was given.
6243 if test "${with_tcl+set}" = set; then :
6244 withval=$with_tcl;
6245 magic_with_tcl=$withval
6246 if test "$withval" = "no" -o "$withval" = "NO"; then
6247 usingTcl=
6248 elif test $usingScheme ; then
6249 echo Attempt to enable both Tcl and Scheme interpreters.
6250 echo Disabling Tcl, and using Scheme instead.
6251 usingTcl=
6252 fi
6253
6254 fi
6255
6256
6257
6258
6259 # Check whether --with-tk was given.
6260 if test "${with_tk+set}" = set; then :
6261 withval=$with_tk; magic_with_tk=$withval
6262 fi
6263
6264
6265 # Check whether --with-tclincls was given.
6266 if test "${with_tclincls+set}" = set; then :
6267 withval=$with_tclincls; magic_with_tcl_includes=$withval
6268 fi
6269
6270
6271 # Check whether --with-tkincls was given.
6272 if test "${with_tkincls+set}" = set; then :
6273 withval=$with_tkincls; magic_with_tk_includes=$withval
6274 fi
6275
6276
6277 # Check whether --with-tcllibs was given.
6278 if test "${with_tcllibs+set}" = set; then :
6279 withval=$with_tcllibs; magic_with_tcl_libraries=$withval
6280 fi
6281
6282
6283 # Check whether --with-tklibs was given.
6284 if test "${with_tklibs+set}" = set; then :
6285 withval=$with_tklibs; magic_with_tk_libraries=$withval
6286 fi
6287
6288
6289 # -----------------------------------------------------------------------
6290 # Find the Tcl build configuration file "tclConfig.sh"
6291 # -----------------------------------------------------------------------
6292
6293 if test $usingTcl ; then
6294 TCL_INC_DIR="."
6295 TK_INC_DIR="."
6296
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
6298 $as_echo_n "checking for tclConfig.sh... " >&6; }
6299 tcl_config_sh=""
6300
6301 if test "$magic_with_tcl" = "no" ; then
6302 magic_with_tcl=""
6303 elif test "$magic_with_tcl" != "yes" ; then
6304 #
6305 # Verify that a tclConfig.sh file exists in the directory specified
6306 # by --with-tcl.
6307 #
6308 for dir in \
6309 $magic_with_tcl
6310 do
6311 if test -r "$dir/tclConfig.sh" ; then
6312 tcl_config_sh="$dir/tclConfig.sh"
6313 break
6314 elif test -r "$dir/lib/tclConfig.sh" ; then
6315 tcl_config_sh="$dir/lib/tclConfig.sh"
6316 break
6317 elif test -r "$dir/unix/tclConfig.sh" ; then
6318 tcl_config_sh="$dir/unix/tclConfig.sh"
6319 break
6320 fi
6321 done
6322 else
6323 #
6324 # Otherwise, search for Tcl configuration file.
6325 #
6326
6327 # 1. Search previously named locations.
6328
6329 for dir in \
6330 $prefix \
6331 $exec_prefix
6332 do
6333 if test -r "$dir/tclConfig.sh" ; then
6334 tcl_config_sh="$dir/tclConfig.sh"
6335 break
6336 elif test -r "$dir/lib/tclConfig.sh" ; then
6337 tcl_config_sh="$dir/lib/tclConfig.sh"
6338 break
6339 elif test -r "$dir/unix/tclConfig.sh" ; then
6340 tcl_config_sh="$dir/unix/tclConfig.sh"
6341 break
6342 fi
6343 done
6344
6345 # 2. Search standard locations.
6346 # (1/25/05---/usr/lib added for Ubuntu Linux)
6347 # (6/19/06---/usr/lib64 added for 64-bit architectures
6348
6349 if test "x$tcl_config_sh" = "x" ; then
6350 for dir in \
6351 `ls -dr /usr/local/tcl/tcl[7-9].[0-9]* 2>/dev/null` \
6352 /usr/local/tcl \
6353 /usr/local/lib \
6354 /usr/lib64 \
6355 /usr/local \
6356 `ls -dr /usr/lib/tcl[7-9].[0-9]* 2>/dev/null` \
6357 /sw/lib \
6358 /usr
6359 do
6360 if test -r "$dir/tclConfig.sh" ; then
6361 tcl_config_sh="$dir/tclConfig.sh"
6362 break
6363 elif test -r "$dir/lib/tclConfig.sh" ; then
6364 tcl_config_sh="$dir/lib/tclConfig.sh"
6365 break
6366 fi
6367 done
6368 fi
6369 fi
6370
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_config_sh}" >&5
6372 $as_echo "${tcl_config_sh}" >&6; }
6373
6374 if test "x$tcl_config_sh" = "x" ; then
6375 echo "Can't find Tcl configuration script \"tclConfig.sh\""
6376 echo "Reverting to non-Tcl compilation"
6377 usingTcl=
6378 fi
6379 fi
6380
6381 # -----------------------------------------------------------------------
6382 # Find the Tk build configuration file "tkConfig.sh"
6383 # -----------------------------------------------------------------------
6384
6385 if test $usingTcl ; then
6386
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tkConfig.sh" >&5
6388 $as_echo_n "checking for tkConfig.sh... " >&6; }
6389 tk_config_sh=""
6390 if test "$magic_with_tk" != "yes"; then
6391 #
6392 # Verify that a tkConfig.sh file exists in the directory specified
6393 # by --with-tcl or --with-tk.
6394 #
6395 for dir in \
6396 $magic_with_tk \
6397 $magic_with_tcl
6398 do
6399 if test -r "$dir/tkConfig.sh" ; then
6400 tk_config_sh="$dir/tkConfig.sh"
6401 break
6402 elif test -r "$dir/lib/tkConfig.sh" ; then
6403 tk_config_sh="$dir/lib/tkConfig.sh"
6404 break
6405 elif test -r "$dir/unix/tkConfig.sh" ; then
6406 tk_config_sh="$dir/unix/tkConfig.sh"
6407 break
6408 fi
6409 done
6410 else
6411 #
6412 # Search for Tk configuration file.
6413 #
6414
6415 #
6416 # 1. Search previously named locations.
6417 #
6418 for dir in \
6419 $prefix \
6420 $exec_prefix
6421 do
6422 if test -r "$dir/tkConfig.sh" ; then
6423 tk_config_sh="$dir/tkConfig.sh"
6424 break
6425 elif test -r "$dir/lib/tkConfig.sh" ; then
6426 tk_config_sh="$dir/lib/tkConfig.sh"
6427 break
6428 elif test -r "$dir/unix/tkConfig.sh" ; then
6429 tk_config_sh="$dir/unix/tkConfig.sh"
6430 break
6431 fi
6432 done
6433 #
6434 # 2. Search standard locations.
6435 #
6436 if test "x$tk_config_sh" = "x" ; then
6437 for dir in \
6438 `ls -dr /usr/local/tcl/tcl[7-9].[0-9]* 2>/dev/null` \
6439 `ls -dr /usr/local/tk/tk[7-9].[0-9]* 2>/dev/null` \
6440 /usr/local/tcl \
6441 /usr/local/lib \
6442 /usr/lib64 \
6443 /usr/local \
6444 `ls -dr /usr/lib/tcl[7-9].[0-9]* 2>/dev/null` \
6445 `ls -dr /usr/lib/tk[7-9].[0-9]* 2>/dev/null` \
6446 /sw/lib \
6447 ${x_libraries} \
6448 /usr
6449 do
6450 if test -r "$dir/tkConfig.sh" ; then
6451 tk_config_sh="$dir/tkConfig.sh"
6452 break
6453 elif test -r "$dir/lib/tkConfig.sh" ; then
6454 tk_config_sh="$dir/lib/tkConfig.sh"
6455 break
6456 fi
6457 done
6458 fi
6459 fi
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tk_config_sh}" >&5
6461 $as_echo "${tk_config_sh}" >&6; }
6462
6463 if test "x$tk_config_sh" = "x" ; then
6464 echo "can't find Tk configuration script \"tkConfig.sh\""
6465 echo "Reverting to non-Tcl compilation"
6466 usingTcl=
6467 fi
6468 fi
6469
6470 # -----------------------------------------------------------------------
6471 # Source in the Tcl/Tk configuration scripts.
6472 # -----------------------------------------------------------------------
6473
6474 if test $usingTcl ; then
6475 . $tcl_config_sh
6476 . $tk_config_sh
6477
6478 # Should probably trust the config file contents, but this configure
6479 # file checks the Tcl and Tk include and lib directories. Since
6480 # the config file doesn't separate out the libraries from the strings
6481 # passed to the compiler/linker, do it manually here.
6482 #
6483 # Extract TCL_LIB_DIR from TCL_LIB_SPEC
6484 # Extract TK_LIB_DIR from TK_LIB_SPEC
6485 # Extract TCL_INC_DIR from TCL_INCLUDE_SPEC
6486 # Extract TK_INC_DIR from TK_INCLUDE_SPEC
6487 #
6488 # These will be the defaults unless overridden by configure command line
6489
6490 tmpstr=${TCL_LIB_SPEC#*-L}
6491 TCL_LIB_DIR=${tmpstr% -l*}
6492 tmpstr=${TK_LIB_SPEC#*-L}
6493 TK_LIB_DIR=${tmpstr% -l*}
6494 TCL_INC_DIR=${TCL_INCLUDE_SPEC#*-I}
6495 TK_INC_DIR=${TK_INCLUDE_SPEC#*-I}
6496
6497 if test "$TCL_VERSION" = "7.6" -a "$TK_VERSION" = "4.2" ; then
6498 :
6499 elif test "$TCL_VERSION" = "7.5" -a "$TK_VERSION" = "4.1" ; then
6500 :
6501 elif test "$TCL_VERSION" = "$TK_VERSION" ; then
6502 :
6503 else
6504 echo "Mismatched Tcl/Tk versions ($TCL_VERSION != $TK_VERSION)"
6505 echo "Reverting to non-Tcl compile"
6506 usingTcl=
6507 fi
6508 fi
6509
6510 if test $usingTcl ; then
6511 if test "x${magic_with_tcl_includes}" != "x" ; then
6512 if test -r "${magic_with_tcl_includes}/tcl.h" ; then
6513 TCL_INC_DIR=${magic_with_tcl_includes}
6514 else
6515 echo "Can't find tcl.h in \"${magic_with_tcl_includes}\""
6516 echo "Reverting to non-Tcl compile"
6517 usingTcl=
6518 fi
6519 else
6520 for dir in \
6521 ${TCL_PREFIX}/include/tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION} \
6522 ${TCL_PREFIX}/include \
6523 ${TCL_SRC_DIR}/generic \
6524 ${TCL_INC_DIR}
6525 do
6526 if test -r "$dir/tcl.h" ; then
6527 TCL_INC_DIR=$dir
6528 break
6529 fi
6530 done
6531 if test "x${TCL_INC_DIR}" = "x" ; then
6532 echo "Can't find tcl.h header file"
6533 echo "Reverting to non-Tcl compile"
6534 usingTcl=
6535 fi
6536 fi
6537 fi
6538
6539 if test $usingTcl ; then
6540 if test "x${magic_with_tk_includes}" != "x" ; then
6541 if test -r "${magic_with_tk_includes}/tk.h" ; then
6542 TK_INC_DIR=${magic_with_tk_includes}
6543 else
6544 echo "Can't find tk.h in \"${magic_with_tk_includes}\""
6545 echo "Reverting to non-Tcl compile"
6546 usingTcl=
6547 fi
6548 else
6549 for dir in \
6550 ${TK_PREFIX}/include/tk${TK_MAJOR_VERSION}.${TK_MINOR_VERSION} \
6551 ${TK_PREFIX}/include \
6552 ${TK_SRC_DIR}/generic \
6553 ${TK_INC_DIR} \
6554 ${TCL_INC_DIR}
6555 do
6556 if test -r "$dir/tk.h" ; then
6557 TK_INC_DIR=$dir
6558 break
6559 fi
6560 done
6561 if test "x${TK_INC_DIR}" = "x" ; then
6562 echo "Can't find tk.h header file"
6563 echo "Reverting to non-Tcl compile"
6564 usingTcl=
6565 fi
6566 fi
6567 fi
6568
6569 # FIXME -- why are we not using TCL_LIB_FILE FROM tclConfig.sh?
6570 if test $usingTcl ; then
6571 case $target in
6572 *-sunos4*|*-*-netbsd*|NetBSD-*|FreeBSD-*|OpenBSD-*)
6573 TCL_LIB_NAME="tcl${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}"
6574 TK_LIB_NAME="tk${TK_MAJOR_VERSION}${TK_MINOR_VERSION}"
6575 ;;
6576 *)
6577 TCL_LIB_NAME="tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}"
6578 TK_LIB_NAME="tk${TK_MAJOR_VERSION}.${TK_MINOR_VERSION}"
6579 ;;
6580 esac
6581
6582 loclib=`echo ${TCL_LIB_SPEC} | sed -e 's/.*-L//' -e 's/ .*//'`
6583
6584 if test "x${TCL_LIB_SPEC}" = "x" ; then
6585 TCL_LIB_SPEC="-l${TCL_LIB_NAME}"
6586 fi
6587 if test "x${TK_LIB_SPEC}" = "x" ; then
6588 TK_LIB_SPEC="-l${TK_LIB_NAME}"
6589 fi
6590
6591 # Find the version of "wish" that corresponds to TCL_EXEC_PREFIX
6592 # We really ought to run "ldd" to confirm that the linked libraries match.
6593
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wish executable" >&5
6595 $as_echo_n "checking for wish executable... " >&6; }
6596 for dir in \
6597 ${TK_EXEC_PREFIX}/bin \
6598 ${TK_EXEC_PREFIX}
6599 do
6600 for wishexe in \
6601 wish-X11 \
6602 wish \
6603 wish${TK_VERSION} \
6604 wish.exe \
6605 wish${TK_VERSION}.exe
6606 do
6607 if test -r "$dir/$wishexe" ; then
6608 WISH_EXE=$dir/$wishexe
6609 break
6610 fi
6611 done
6612 if test "x${WISH_EXE}" != "x" ; then
6613 break
6614 fi
6615 done
6616 if test "x${WISH_EXE}" = "x" ; then
6617 echo "Warning: Can't find executable for \"wish\". You may have to"
6618 echo "manually set the value for WISH_EXE in the magic startup script."
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620 $as_echo "no" >&6; }
6621 else
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WISH_EXE}" >&5
6623 $as_echo "${WISH_EXE}" >&6; }
6624 fi
6625
6626 # Find the version of "tclsh" that corresponds to TCL_EXEC_PREFIX
6627
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclsh executable" >&5
6629 $as_echo_n "checking for tclsh executable... " >&6; }
6630 for dir in \
6631 ${TK_EXEC_PREFIX}/bin \
6632 ${TK_EXEC_PREFIX}
6633 do
6634 for tclshexe in \
6635 tclsh \
6636 tclsh${TK_VERSION} \
6637 tclsh.exe \
6638 tclsh${TK_VERSION}.exe
6639 do
6640 if test -r "$dir/$tclshexe" ; then
6641 TCLSH_EXE=$dir/$tclshexe
6642 break
6643 fi
6644 done
6645 if test "x${TCLSH_EXE}" != "x" ; then
6646 break
6647 fi
6648 done
6649 if test "x${TCLSH_EXE}" = "x" ; then
6650 echo "Warning: Can't find executable for \"tclsh\"."
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6652 $as_echo "no" >&6; }
6653 else
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${TCLSH_EXE}" >&5
6655 $as_echo "${TCLSH_EXE}" >&6; }
6656 fi
6657
6658 # Have to define SHDLIB_EXT here even though we have to do it below, too.
6659 case $target in
6660 *-hpux*)
6661 SHDLIB_EXT=".sl"
6662 SHDLIB_EXT_ALT=".sl"
6663 ;;
6664 *cygwin*)
6665 SHDLIB_EXT=".dll"
6666 SHDLIB_EXT_ALT=".dll.a"
6667 ;;
6668 *darwin*)
6669 SHDLIB_EXT=".dylib"
6670 SHDLIB_EXT_ALT=".dylib"
6671 ;;
6672 *)
6673 SHDLIB_EXT=".so"
6674 SHDLIB_EXT_ALT=".so"
6675 ;;
6676 esac
6677
6678 if test "x${magic_with_tcl_libraries}" != "x" ; then
6679 for libname in \
6680 "${magic_with_tcl_libraries}/${TCL_LIB_FILE}" \
6681 "${magic_with_tcl_libraries}/lib${TCL_LIB_FILE}" \
6682 "${magic_with_tcl_libraries}/lib${TCL_LIB_NAME}${SHDLIB_EXT}" \
6683 "${magic_with_tcl_libraries}/lib${TCL_LIB_NAME}${SHDLIB_EXT_ALT}"
6684 do
6685 if test -r "$libname" ; then
6686 TCL_LIB_DIR="${magic_with_tcl_libraries}"
6687 break
6688 fi
6689 done
6690
6691 if test "x${TCL_LIB_DIR}" = "x" ; then
6692 echo "Can't find tcl library in \"${magic_with_tcl_libraries}\""
6693 echo "Reverting to non-Tcl compile"
6694 usingTcl=
6695 fi
6696 else
6697 for libname in \
6698 "${loclib:=${TCL_EXEC_PREFIX}/lib}/lib${TCL_LIB_NAME}${SHDLIB_EXT}" \
6699 "${loclib:=${TCL_EXEC_PREFIX}/lib}/lib${TCL_LIB_NAME}${SHDLIB_EXT_ALT}" \
6700 "${loclib:=${TCL_EXEC_PREFIX}/lib64}/lib${TCL_LIB_NAME}${SHDLIB_EXT}"
6701 do
6702 if test -r "$libname" ; then
6703 TCL_LIB_DIR="${TCL_EXEC_PREFIX}/lib"
6704 break
6705 fi
6706 done
6707 if test "x${TCL_LIB_DIR}" = "x" ; then
6708 echo "Can't find tcl library"
6709 echo "Reverting to non-Tcl compile"
6710 usingTcl=
6711 fi
6712 fi
6713 fi
6714
6715 if test $usingTcl ; then
6716 if test "x${magic_with_tk_libraries}" != "x" ; then
6717 for libname in \
6718 "${magic_with_tk_libraries}/${TCL_LIB_FILE}" \
6719 "${magic_with_tk_libraries}/lib${TCL_LIB_FILE}" \
6720 "${magic_with_tk_libraries}/lib${TK_LIB_NAME}${SHDLIB_EXT}" \
6721 "${magic_with_tk_libraries}/lib${TK_LIB_NAME}${SHDLIB_EXT_ALT}"
6722 do
6723 if test -r "$libname" ; then
6724 TK_LIB_DIR="${magic_with_tk_libraries}"
6725 break
6726 fi
6727 done
6728 if test "x${TK_LIB_DIR}" = "x" ; then
6729 echo "Can't find tk library in \"${magic_with_tk_libraries}\""
6730 echo "Reverting to non-Tcl compile"
6731 usingTcl=
6732 fi
6733 else
6734 for libname in \
6735 "${loclib:=${TK_EXEC_PREFIX}/lib}/lib${TK_LIB_NAME}${SHDLIB_EXT}" \
6736 "${loclib:=${TK_EXEC_PREFIX}/lib}/lib${TK_LIB_NAME}${SHDLIB_EXT_ALT}" \
6737 "${loclib:=${TK_EXEC_PREFIX}/lib64}/lib${TK_LIB_NAME}${SHDLIB_EXT}"
6738 do
6739 if test -r "$libname" ; then
6740 TK_LIB_DIR="${TK_EXEC_PREFIX}/lib"
6741 break
6742 fi
6743 done
6744 if test "x${TK_LIB_DIR}" = "x" ; then
6745 echo "Can't find tk library"
6746 echo "Reverting to non-Tcl compile"
6747 usingTcl=
6748 fi
6749 fi
6750 fi
6751
6752
6753
6754
6755
6756 # Check whether --with-openaccess was given.
6757 if test "${with_openaccess+set}" = set; then :
6758 withval=$with_openaccess;
6759 if test "$withval" = "no" -o "$withval" = "NO" ; then
6760 OA=
6761 OA_LIBS=
6762 unused="$unused oa"
6763 elif test "$withval" = "yes"; then
6764 as_fn_error $? "path to OpenAccess libraries is required" "$LINENO" 5
6765 OA=
6766 OA_LIBS=
6767 unused="$unused oa"
6768 else
6769 usingOA=1
6770 OA=${withval}
6771 OA_LIBS="-L\${OA}/lib -loaDB -loaDD -loaTC -loaBase"
6772 OA_LIBS="${OA_LIBS} -lclalite_sh -lcls_sh -lcdsCommon_sh"
6773 $as_echo "#define OPENACCESS 1" >>confdefs.h
6774
6775 LD_RUN_PATH="-Wl,-rpath=\${OA}/lib"
6776 modules="$modules oa"
6777 extra_libs="$extra_libs \${MAGICDIR}/oa/liboa.o"
6778 fi
6779
6780 fi
6781
6782
6783 # Check whether --enable-memdebug was given.
6784 if test "${enable_memdebug+set}" = set; then :
6785 enableval=$enable_memdebug;
6786 else
6787 enable_memdebug=no
6788 fi
6789
6790
6791 if test "x$enable_memdebug" = "xyes" ; then
6792 if test "x$magic_with_tcl" = "x" ; then
6793 LIBS="${LIBS} -lefence"
6794 else
6795 $as_echo "#define TCL_MEM_DEBUG 1" >>confdefs.h
6796
6797 fi
6798 fi
6799
6800 # Check whether --enable-modular was given.
6801 if test "${enable_modular+set}" = set; then :
6802 enableval=$enable_modular;
6803 else
6804 enable_modular=no
6805 fi
6806
6807
6808 if test $usingTcl ; then
6809 if test "x$enable_modular" = "xyes" ; then
6810 programs="$programs ext2sim ext2spice"
6811 $as_echo "#define EXT2SPICE_AUTO 1" >>confdefs.h
6812
6813 $as_echo "#define EXT2SIM_AUTO 1" >>confdefs.h
6814
6815 else
6816 modules="$modules ext2sim ext2spice"
6817 extra_libs="$extra_libs \${MAGICDIR}/ext2sim/libext2sim.o"
6818 extra_libs="$extra_libs \${MAGICDIR}/ext2spice/libext2spice.o"
6819 fi
6820 else
6821 programs="$programs ext2sim ext2spice"
6822 $as_echo "#define EXT2SPICE_AUTO 1" >>confdefs.h
6823
6824 $as_echo "#define EXT2SIM_AUTO 1" >>confdefs.h
6825
6826 fi
6827
6828 # Check whether --enable-locking was given.
6829 if test "${enable_locking+set}" = set; then :
6830 enableval=$enable_locking;
6831 else
6832 enable_locking=yes
6833 fi
6834
6835
6836 if test "x$enable_locking" = "xyes" ; then
6837 case $target in
6838 *cygwin*)
6839 ;;
6840 *)
6841 $as_echo "#define FILE_LOCKS 1" >>confdefs.h
6842
6843 ;;
6844 esac
6845 fi
6846
6847 # Check whether --enable-calma was given.
6848 if test "${enable_calma+set}" = set; then :
6849 enableval=$enable_calma;
6850 else
6851 enable_calma=yes
6852 fi
6853
6854
6855 if test "x$enable_calma" = "xyes" ; then
6856 $as_echo "#define CALMA_MODULE 1" >>confdefs.h
6857
6858 modules="$modules calma"
6859 extra_libs="$extra_libs \${MAGICDIR}/calma/libcalma.o"
6860 else
6861 unused="$unused calma"
6862 fi
6863
6864 # Check whether --enable-cif was given.
6865 if test "${enable_cif+set}" = set; then :
6866 enableval=$enable_cif;
6867 else
6868 enable_cif=yes
6869 fi
6870
6871
6872 if test "x$enable_cif" = "xyes" ; then
6873 $as_echo "#define CIF_MODULE 1" >>confdefs.h
6874
6875 modules="$modules cif"
6876 extra_libs="$extra_libs \${MAGICDIR}/cif/libcif.o"
6877 else
6878 unused="$unused cif"
6879 fi
6880
6881 # Check whether --enable-client-render was given.
6882 if test "${enable_client_render+set}" = set; then :
6883 enableval=$enable_client_render;
6884 else
6885 enable_client_render=yes
6886 fi
6887
6888
6889 if test "x$enable_client_render" = "xno" ; then
6890 $as_echo "#define OGL_SERVER_SIDE_ONLY 1" >>confdefs.h
6891
6892 fi
6893
6894 # Check whether --enable-invert-y was given.
6895 if test "${enable_invert_y+set}" = set; then :
6896 enableval=$enable_invert_y;
6897 else
6898 enable_invert_y=no
6899 fi
6900
6901
6902 if test "x$enable_invert_y" = "xyes" ; then
6903 $as_echo "#define OGL_INVERT_Y 1" >>confdefs.h
6904
6905 fi
6906
6907 # Check whether --enable-framebuffer-backing-store was given.
6908 if test "${enable_framebuffer_backing_store+set}" = set; then :
6909 enableval=$enable_framebuffer_backing_store;
6910 else
6911 enable_framebuffer_backing_store=yes
6912 fi
6913
6914
6915 if test "x$enable_framebuffer_backing_store" != "xyes" ; then
6916 $as_echo "#define X11_BACKING_STORE 1" >>confdefs.h
6917
6918 fi
6919
6920 # Check whether --enable-plot was given.
6921 if test "${enable_plot+set}" = set; then :
6922 enableval=$enable_plot;
6923 else
6924 enable_plot=yes
6925 fi
6926
6927
6928 if test "x$enable_plot" = "xyes" ; then
6929 $as_echo "#define PLOT_MODULE 1" >>confdefs.h
6930
6931 modules="$modules plot"
6932 extra_libs="$extra_libs \${MAGICDIR}/plot/libplot.o"
6933 else
6934 unused="$unused plot"
6935 fi
6936
6937 # Check whether --enable-lef was given.
6938 if test "${enable_lef+set}" = set; then :
6939 enableval=$enable_lef;
6940 else
6941 enable_lef=yes
6942 fi
6943
6944
6945 if test "x$enable_lef" = "xyes" ; then
6946 $as_echo "#define LEF_MODULE 1" >>confdefs.h
6947
6948 modules="$modules lef"
6949 extra_libs="$extra_libs \${MAGICDIR}/lef/liblef.o \${MAGICDIR}/extflat/libextflat.o"
6950 else
6951 unused="$unused lef"
6952 fi
6953
6954 # Check whether --enable-readline was given.
6955 if test "${enable_readline+set}" = set; then :
6956 enableval=$enable_readline; if test $usingTcl ; then
6957 enable_readline=no
6958 fi
6959
6960 else
6961 if test $usingTcl ; then
6962 enable_readline=no
6963 else
6964 enable_readline=yes
6965 fi
6966
6967 fi
6968
6969
6970 if test "x$enable_readline" = "xyes" ; then
6971 $as_echo "#define USE_READLINE 1" >>confdefs.h
6972
6973 use_system_readline=yes
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5
6975 $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; }
6976 if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then :
6977 $as_echo_n "(cached) " >&6
6978 else
6979 ac_check_lib_save_LIBS=$LIBS
6980 LIBS="-lreadline $LIBS"
6981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982 /* end confdefs.h. */
6983
6984 /* Override any GCC internal prototype to avoid an error.
6985 Use char because int might match the return type of a GCC
6986 builtin and then its argument prototype would still apply. */
6987 #ifdef __cplusplus
6988 extern "C"
6989 #endif
6990 char rl_pre_input_hook ();
6991 int
6992 main ()
6993 {
6994 return rl_pre_input_hook ();
6995 ;
6996 return 0;
6997 }
6998 _ACEOF
6999 if ac_fn_c_try_link "$LINENO"; then :
7000 ac_cv_lib_readline_rl_pre_input_hook=yes
7001 else
7002 ac_cv_lib_readline_rl_pre_input_hook=no
7003 fi
7004 rm -f core conftest.err conftest.$ac_objext \
7005 conftest$ac_exeext conftest.$ac_ext
7006 LIBS=$ac_check_lib_save_LIBS
7007 fi
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
7009 $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
7010 if test "x$ac_cv_lib_readline_rl_pre_input_hook" = xyes; then :
7011 cat >>confdefs.h <<_ACEOF
7012 #define HAVE_LIBREADLINE 1
7013 _ACEOF
7014
7015 LIBS="-lreadline $LIBS"
7016
7017 else
7018 use_system_readline=no
7019 fi
7020
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_username_completion_function in -lreadline" >&5
7022 $as_echo_n "checking for rl_username_completion_function in -lreadline... " >&6; }
7023 if ${ac_cv_lib_readline_rl_username_completion_function+:} false; then :
7024 $as_echo_n "(cached) " >&6
7025 else
7026 ac_check_lib_save_LIBS=$LIBS
7027 LIBS="-lreadline $LIBS"
7028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7029 /* end confdefs.h. */
7030
7031 /* Override any GCC internal prototype to avoid an error.
7032 Use char because int might match the return type of a GCC
7033 builtin and then its argument prototype would still apply. */
7034 #ifdef __cplusplus
7035 extern "C"
7036 #endif
7037 char rl_username_completion_function ();
7038 int
7039 main ()
7040 {
7041 return rl_username_completion_function ();
7042 ;
7043 return 0;
7044 }
7045 _ACEOF
7046 if ac_fn_c_try_link "$LINENO"; then :
7047 ac_cv_lib_readline_rl_username_completion_function=yes
7048 else
7049 ac_cv_lib_readline_rl_username_completion_function=no
7050 fi
7051 rm -f core conftest.err conftest.$ac_objext \
7052 conftest$ac_exeext conftest.$ac_ext
7053 LIBS=$ac_check_lib_save_LIBS
7054 fi
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_username_completion_function" >&5
7056 $as_echo "$ac_cv_lib_readline_rl_username_completion_function" >&6; }
7057 if test "x$ac_cv_lib_readline_rl_username_completion_function" = xyes; then :
7058 cat >>confdefs.h <<_ACEOF
7059 #define HAVE_LIBREADLINE 1
7060 _ACEOF
7061
7062 LIBS="-lreadline $LIBS"
7063
7064 else
7065 use_system_readline=no
7066 fi
7067
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_filename_completion_function in -lreadline" >&5
7069 $as_echo_n "checking for rl_filename_completion_function in -lreadline... " >&6; }
7070 if ${ac_cv_lib_readline_rl_filename_completion_function+:} false; then :
7071 $as_echo_n "(cached) " >&6
7072 else
7073 ac_check_lib_save_LIBS=$LIBS
7074 LIBS="-lreadline $LIBS"
7075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7076 /* end confdefs.h. */
7077
7078 /* Override any GCC internal prototype to avoid an error.
7079 Use char because int might match the return type of a GCC
7080 builtin and then its argument prototype would still apply. */
7081 #ifdef __cplusplus
7082 extern "C"
7083 #endif
7084 char rl_filename_completion_function ();
7085 int
7086 main ()
7087 {
7088 return rl_filename_completion_function ();
7089 ;
7090 return 0;
7091 }
7092 _ACEOF
7093 if ac_fn_c_try_link "$LINENO"; then :
7094 ac_cv_lib_readline_rl_filename_completion_function=yes
7095 else
7096 ac_cv_lib_readline_rl_filename_completion_function=no
7097 fi
7098 rm -f core conftest.err conftest.$ac_objext \
7099 conftest$ac_exeext conftest.$ac_ext
7100 LIBS=$ac_check_lib_save_LIBS
7101 fi
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_filename_completion_function" >&5
7103 $as_echo "$ac_cv_lib_readline_rl_filename_completion_function" >&6; }
7104 if test "x$ac_cv_lib_readline_rl_filename_completion_function" = xyes; then :
7105 cat >>confdefs.h <<_ACEOF
7106 #define HAVE_LIBREADLINE 1
7107 _ACEOF
7108
7109 LIBS="-lreadline $LIBS"
7110
7111 else
7112 use_system_readline=no
7113 fi
7114
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_attempted_completion_over in -lreadline" >&5
7116 $as_echo_n "checking for rl_attempted_completion_over in -lreadline... " >&6; }
7117 if ${ac_cv_lib_readline_rl_attempted_completion_over+:} false; then :
7118 $as_echo_n "(cached) " >&6
7119 else
7120 ac_check_lib_save_LIBS=$LIBS
7121 LIBS="-lreadline $LIBS"
7122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7123 /* end confdefs.h. */
7124
7125 /* Override any GCC internal prototype to avoid an error.
7126 Use char because int might match the return type of a GCC
7127 builtin and then its argument prototype would still apply. */
7128 #ifdef __cplusplus
7129 extern "C"
7130 #endif
7131 char rl_attempted_completion_over ();
7132 int
7133 main ()
7134 {
7135 return rl_attempted_completion_over ();
7136 ;
7137 return 0;
7138 }
7139 _ACEOF
7140 if ac_fn_c_try_link "$LINENO"; then :
7141 ac_cv_lib_readline_rl_attempted_completion_over=yes
7142 else
7143 ac_cv_lib_readline_rl_attempted_completion_over=no
7144 fi
7145 rm -f core conftest.err conftest.$ac_objext \
7146 conftest$ac_exeext conftest.$ac_ext
7147 LIBS=$ac_check_lib_save_LIBS
7148 fi
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_attempted_completion_over" >&5
7150 $as_echo "$ac_cv_lib_readline_rl_attempted_completion_over" >&6; }
7151 if test "x$ac_cv_lib_readline_rl_attempted_completion_over" = xyes; then :
7152 cat >>confdefs.h <<_ACEOF
7153 #define HAVE_LIBREADLINE 1
7154 _ACEOF
7155
7156 LIBS="-lreadline $LIBS"
7157
7158 else
7159 use_system_readline=no
7160 fi
7161
7162 if test $use_system_readline = yes ; then
7163 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
7164
7165 rl_libs="-lreadline"
7166 else
7167 rl_libs="\${MAGICDIR}/readline/readline/libreadline.a"
7168 CPPFLAGS="$CPPFLAGS -I\${MAGICDIR}/readline"
7169 fi
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
7171 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
7172 if ${ac_cv_lib_termcap_tgetent+:} false; then :
7173 $as_echo_n "(cached) " >&6
7174 else
7175 ac_check_lib_save_LIBS=$LIBS
7176 LIBS="-ltermcap $LIBS"
7177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178 /* end confdefs.h. */
7179
7180 /* Override any GCC internal prototype to avoid an error.
7181 Use char because int might match the return type of a GCC
7182 builtin and then its argument prototype would still apply. */
7183 #ifdef __cplusplus
7184 extern "C"
7185 #endif
7186 char tgetent ();
7187 int
7188 main ()
7189 {
7190 return tgetent ();
7191 ;
7192 return 0;
7193 }
7194 _ACEOF
7195 if ac_fn_c_try_link "$LINENO"; then :
7196 ac_cv_lib_termcap_tgetent=yes
7197 else
7198 ac_cv_lib_termcap_tgetent=no
7199 fi
7200 rm -f core conftest.err conftest.$ac_objext \
7201 conftest$ac_exeext conftest.$ac_ext
7202 LIBS=$ac_check_lib_save_LIBS
7203 fi
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
7205 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
7206 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
7207
7208 rl_libs="$rl_libs -ltermcap"
7209
7210 else
7211
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
7213 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
7214 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
7215 $as_echo_n "(cached) " >&6
7216 else
7217 ac_check_lib_save_LIBS=$LIBS
7218 LIBS="-lncurses $LIBS"
7219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220 /* end confdefs.h. */
7221
7222 /* Override any GCC internal prototype to avoid an error.
7223 Use char because int might match the return type of a GCC
7224 builtin and then its argument prototype would still apply. */
7225 #ifdef __cplusplus
7226 extern "C"
7227 #endif
7228 char tgetent ();
7229 int
7230 main ()
7231 {
7232 return tgetent ();
7233 ;
7234 return 0;
7235 }
7236 _ACEOF
7237 if ac_fn_c_try_link "$LINENO"; then :
7238 ac_cv_lib_ncurses_tgetent=yes
7239 else
7240 ac_cv_lib_ncurses_tgetent=no
7241 fi
7242 rm -f core conftest.err conftest.$ac_objext \
7243 conftest$ac_exeext conftest.$ac_ext
7244 LIBS=$ac_check_lib_save_LIBS
7245 fi
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
7247 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
7248 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
7249
7250 rl_libs="$rl_libs -lncurses"
7251
7252 fi
7253
7254
7255 fi
7256
7257 modules="$modules readline"
7258 else
7259 unused="$unused readline"
7260 fi
7261
7262 # Check whether --enable-threads was given.
7263 if test "${enable_threads+set}" = set; then :
7264 enableval=$enable_threads; if test $usingTcl ; then
7265 enable_threads=no
7266 fi
7267
7268 else
7269 if test $usingTcl ; then
7270 enable_threads=no
7271 else
7272 enable_threads=yes
7273 fi
7274
7275 fi
7276
7277
7278 if test "x$enable_threads" = "xyes" ; then
7279 usingThreads=1
7280 $as_echo "#define HAVE_PTHREADS 1" >>confdefs.h
7281
7282 gr_libs="$gr_libs -lpthread"
7283 gr_srcs="$gr_srcs \${X11THREAD_SRCS}"
7284 gr_hsrcs=""
7285 gr_hprog=""
7286 fi
7287
7288 # Check whether --enable-route was given.
7289 if test "${enable_route+set}" = set; then :
7290 enableval=$enable_route;
7291 else
7292 enable_route=yes
7293 fi
7294
7295
7296 if test "x$enable_route" = "xyes" ; then
7297 $as_echo "#define ROUTE_MODULE 1" >>confdefs.h
7298
7299 modules="$modules garouter grouter irouter mzrouter router gcr"
7300 programs="$programs net2ir"
7301 extra_libs="$extra_libs \${MAGICDIR}/garouter/libgarouter.o \
7302 \${MAGICDIR}/mzrouter/libmzrouter.o \${MAGICDIR}/router/librouter.o \
7303 \${MAGICDIR}/irouter/libirouter.o \${MAGICDIR}/grouter/libgrouter.o \
7304 \${MAGICDIR}/gcr/libgcr.o"
7305 else
7306 unused="$unused garouter grouter irouter mzrouter router gcr"
7307 fi
7308
7309 # Check whether --enable-rsim was given.
7310 if test "${enable_rsim+set}" = set; then :
7311 enableval=$enable_rsim; if test $usingTcl ; then
7312 enable_rsim=no
7313 fi
7314
7315 else
7316 if test $usingTcl ; then
7317 enable_rsim=no
7318 else
7319 enable_rsim=yes
7320 fi
7321
7322 fi
7323
7324
7325 if test "x$enable_rsim" = "xyes" ; then
7326 $as_echo "#define RSIM_MODULE 1" >>confdefs.h
7327
7328 fi
7329
7330 # Check whether --enable-new-macros was given.
7331 if test "${enable_new_macros+set}" = set; then :
7332 enableval=$enable_new_macros;
7333 else
7334 enable_new_macros=yes
7335 fi
7336
7337
7338 if test "x$enable_new_macros" = "xyes" ; then
7339 $as_echo "#define USE_NEW_MACROS 1" >>confdefs.h
7340
7341 fi
7342
7343
7344 # Check whether --with-opengl was given.
7345 if test "${with_opengl+set}" = set; then :
7346 withval=$with_opengl;
7347 if test "$withval" = "no" -o "$withval" = "NO" ; then
7348 usingOGL=
7349 elif test "$withval" != "no" -a "$withval" != "yes"; then
7350 OGL_INCLUDE_DIR=${withval}
7351 fi
7352
7353 fi
7354
7355
7356
7357 if test $usingOGL ; then
7358 ac_save_CPPFLAGS="$CPPFLAGS"
7359 if test $OGL_INCLUDE_DIR ; then
7360 CPPFLAGS="$CPPFLAGS -I$OGL_INCLUDE_DIR"
7361 fi
7362 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7363 ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default"
7364 if test "x$ac_cv_header_GL_gl_h" = xyes; then :
7365
7366 else
7367
7368 echo "GL header files not found, disabling OpenGL"
7369 usingOGL=
7370
7371 fi
7372
7373
7374 CPPFLAGS="$ac_save_CPPFLAGS"
7375 fi
7376
7377 if test $usingOGL ; then
7378 ac_save_CPPFLAGS="$CPPFLAGS"
7379 ac_save_LDFLAGS="$LDFLAGS"
7380 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS -lm"
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glXCreateContext in -lGL" >&5
7382 $as_echo_n "checking for glXCreateContext in -lGL... " >&6; }
7383 if ${ac_cv_lib_GL_glXCreateContext+:} false; then :
7384 $as_echo_n "(cached) " >&6
7385 else
7386 ac_check_lib_save_LIBS=$LIBS
7387 LIBS="-lGL $LIBS"
7388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7389 /* end confdefs.h. */
7390
7391 /* Override any GCC internal prototype to avoid an error.
7392 Use char because int might match the return type of a GCC
7393 builtin and then its argument prototype would still apply. */
7394 #ifdef __cplusplus
7395 extern "C"
7396 #endif
7397 char glXCreateContext ();
7398 int
7399 main ()
7400 {
7401 return glXCreateContext ();
7402 ;
7403 return 0;
7404 }
7405 _ACEOF
7406 if ac_fn_c_try_link "$LINENO"; then :
7407 ac_cv_lib_GL_glXCreateContext=yes
7408 else
7409 ac_cv_lib_GL_glXCreateContext=no
7410 fi
7411 rm -f core conftest.err conftest.$ac_objext \
7412 conftest$ac_exeext conftest.$ac_ext
7413 LIBS=$ac_check_lib_save_LIBS
7414 fi
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glXCreateContext" >&5
7416 $as_echo "$ac_cv_lib_GL_glXCreateContext" >&6; }
7417 if test "x$ac_cv_lib_GL_glXCreateContext" = xyes; then :
7418 cat >>confdefs.h <<_ACEOF
7419 #define HAVE_LIBGL 1
7420 _ACEOF
7421
7422 LIBS="-lGL $LIBS"
7423
7424 else
7425
7426 echo "GL library files not found, disabling OpenGL"
7427 usingOGL=
7428
7429 fi
7430
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluNewTess in -lGLU" >&5
7432 $as_echo_n "checking for gluNewTess in -lGLU... " >&6; }
7433 if ${ac_cv_lib_GLU_gluNewTess+:} false; then :
7434 $as_echo_n "(cached) " >&6
7435 else
7436 ac_check_lib_save_LIBS=$LIBS
7437 LIBS="-lGLU $LIBS"
7438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439 /* end confdefs.h. */
7440
7441 /* Override any GCC internal prototype to avoid an error.
7442 Use char because int might match the return type of a GCC
7443 builtin and then its argument prototype would still apply. */
7444 #ifdef __cplusplus
7445 extern "C"
7446 #endif
7447 char gluNewTess ();
7448 int
7449 main ()
7450 {
7451 return gluNewTess ();
7452 ;
7453 return 0;
7454 }
7455 _ACEOF
7456 if ac_fn_c_try_link "$LINENO"; then :
7457 ac_cv_lib_GLU_gluNewTess=yes
7458 else
7459 ac_cv_lib_GLU_gluNewTess=no
7460 fi
7461 rm -f core conftest.err conftest.$ac_objext \
7462 conftest$ac_exeext conftest.$ac_ext
7463 LIBS=$ac_check_lib_save_LIBS
7464 fi
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluNewTess" >&5
7466 $as_echo "$ac_cv_lib_GLU_gluNewTess" >&6; }
7467 if test "x$ac_cv_lib_GLU_gluNewTess" = xyes; then :
7468 cat >>confdefs.h <<_ACEOF
7469 #define HAVE_LIBGLU 1
7470 _ACEOF
7471
7472 LIBS="-lGLU $LIBS"
7473
7474 else
7475
7476 echo "GLU library files not found; disabling font rendering"
7477 use_libglu=""
7478
7479 fi
7480
7481 CPPFLAGS="$ac_save_CPPFLAGS"
7482 LDFLAGS="$ac_save_LDFLAGS"
7483 fi
7484
7485 if test "x$use_libglu" != "x" ; then
7486 $as_echo "#define VECTOR_FONTS 1" >>confdefs.h
7487
7488 fi
7489
7490 if test $usingOGL ; then
7491 if test $OGL_INCLUDE_DIR ; then
7492 gr_cflags="${gr_cflags} -I${OGL_INCLUDE_DIR}"
7493 fi
7494 fi
7495
7496
7497
7498 # Check whether --with-cairo was given.
7499 if test "${with_cairo+set}" = set; then :
7500 withval=$with_cairo;
7501 if test "$withval" = "no" -o "$withval" = "NO" ; then
7502 usingCairo=
7503 elif test "$withval" != "no" -a "$withval" != "yes"; then
7504 CAIRO_INCLUDE_DIR=${withval}
7505 fi
7506
7507 fi
7508
7509
7510 if test $usingCairo ; then
7511 ac_save_CPPFLAGS="$CPPFLAGS"
7512 if test $CAIRO_INCLUDE_DIR ; then
7513 CPPFLAGS="$CPPFLAGS -I$CAIRO_INCLUDE_DIR"
7514 fi
7515 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7516 ac_fn_c_check_header_mongrel "$LINENO" "cairo/cairo.h" "ac_cv_header_cairo_cairo_h" "$ac_includes_default"
7517 if test "x$ac_cv_header_cairo_cairo_h" = xyes; then :
7518
7519 else
7520
7521 echo "Cairo header files not found, disabling Cairo"
7522 usingCairo=
7523
7524 fi
7525
7526
7527 CPPFLAGS="$ac_save_CPPFLAGS"
7528 fi
7529
7530 if test $usingCairo ; then
7531 ac_save_CPPFLAGS="$CPPFLAGS"
7532 ac_save_LDFLAGS="$LDFLAGS"
7533 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS -lm"
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo_user_to_device in -lcairo" >&5
7535 $as_echo_n "checking for cairo_user_to_device in -lcairo... " >&6; }
7536 if ${ac_cv_lib_cairo_cairo_user_to_device+:} false; then :
7537 $as_echo_n "(cached) " >&6
7538 else
7539 ac_check_lib_save_LIBS=$LIBS
7540 LIBS="-lcairo $LIBS"
7541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542 /* end confdefs.h. */
7543
7544 /* Override any GCC internal prototype to avoid an error.
7545 Use char because int might match the return type of a GCC
7546 builtin and then its argument prototype would still apply. */
7547 #ifdef __cplusplus
7548 extern "C"
7549 #endif
7550 char cairo_user_to_device ();
7551 int
7552 main ()
7553 {
7554 return cairo_user_to_device ();
7555 ;
7556 return 0;
7557 }
7558 _ACEOF
7559 if ac_fn_c_try_link "$LINENO"; then :
7560 ac_cv_lib_cairo_cairo_user_to_device=yes
7561 else
7562 ac_cv_lib_cairo_cairo_user_to_device=no
7563 fi
7564 rm -f core conftest.err conftest.$ac_objext \
7565 conftest$ac_exeext conftest.$ac_ext
7566 LIBS=$ac_check_lib_save_LIBS
7567 fi
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cairo_cairo_user_to_device" >&5
7569 $as_echo "$ac_cv_lib_cairo_cairo_user_to_device" >&6; }
7570 if test "x$ac_cv_lib_cairo_cairo_user_to_device" = xyes; then :
7571 cat >>confdefs.h <<_ACEOF
7572 #define HAVE_LIBCAIRO 1
7573 _ACEOF
7574
7575 LIBS="-lcairo $LIBS"
7576
7577 else
7578
7579 echo "Cairo library files not found, disabling Cairo"
7580 usingCairo=
7581
7582 fi
7583
7584 CPPFLAGS="$ac_save_CPPFLAGS"
7585 LDFLAGS="$ac_save_LDFLAGS"
7586 fi
7587
7588 if test $usingCairo ; then
7589 if test $CAIRO_INCLUDE_DIR ; then
7590 gr_cflags="${gr_cflags} -I${CAIRO_INCLUDE_DIR}"
7591 fi
7592 fi
7593
7594
7595 # Check whether --enable-cairo-offscreen was given.
7596 if test "${enable_cairo_offscreen+set}" = set; then :
7597 enableval=$enable_cairo_offscreen; enable_cairo_offscreen=yes
7598 fi
7599
7600
7601 if test "x$enable_cairo_offscreen" = "xyes" ; then
7602 if test $usingCairo ; then
7603 $as_echo "#define CAIRO_OFFSCREEN_RENDER 1" >>confdefs.h
7604
7605 else
7606 echo "Cairo not being compiled in, can't use for offscreen rendering."
7607 fi
7608 fi
7609
7610
7611
7612 if test $usingTcl ; then
7613 cadinstall="$cadinstall graphics tcltk"
7614 modules="$modules tcltk"
7615 unused="$unused lisp"
7616 programs="$programs tcltk"
7617 ALL_TARGET="tcl"
7618 INSTALL_TARGET="install-tcl"
7619 $as_echo "#define MAGIC_WRAPPER 1" >>confdefs.h
7620
7621 extra_libs="$extra_libs \${MAGICDIR}/tcltk/libtcltk.o"
7622 extra_defs="$extra_defs -DTCL_DIR=\\\"\${TCLDIR}\\\""
7623 stub_defs="$stub_defs -DUSE_TCL_STUBS -DUSE_TK_STUBS"
7624 elif test $usingScheme ; then
7625 modules="$modules lisp"
7626 unused="$unused tcltk"
7627 cadinstall="$cadinstall lisp"
7628 extra_libs="$extra_libs \${MAGICDIR}/lisp/liblisp.o"
7629 programs="$programs extcheck graphics"
7630 $as_echo "#define SCHEME_INTERPRETER 1" >>confdefs.h
7631
7632 else
7633 unused="$unused lisp tcltk"
7634 programs="$programs extcheck graphics"
7635 fi
7636
7637
7638 if test $usingTcl ; then
7639 if test $usingX11 ; then
7640 gr_dflags="$gr_dflags -DX11 -DXLIB"
7641 gr_libs="$gr_libs -lX11"
7642 gr_srcs="$gr_srcs \${TK_SRCS}"
7643 fi
7644 if test $usingOGL ; then
7645 $as_echo "#define THREE_D 1" >>confdefs.h
7646
7647 gr_dflags="$gr_dflags -DOGL"
7648 gr_libs="$gr_libs -lGL ${use_libglu} ${use_libxi} ${use_libxmu} ${use_libxext} -lm"
7649 gr_srcs="$gr_srcs \${TOGL_SRCS}"
7650 if ! test $usingX11 ; then
7651 usingX11=1
7652 gr_dflags="$gr_dflags -DXLIB"
7653 gr_libs="$gr_libs -lX11"
7654 fi
7655 fi
7656 if test $usingCairo ; then
7657 gr_dflags="$gr_dflags -DCAIRO"
7658 gr_libs="$gr_libs -lcairo -lfontconfig -lfreetype"
7659 gr_srcs="$gr_srcs \${TCAIRO_SRCS}"
7660 if ! test $usingX11 ; then
7661 usingX11=1
7662 gr_dflags="$gr_dflags -DXLIB"
7663 gr_libs="$gr_libs -lX11"
7664 fi
7665 fi
7666 gr_srcs="$gr_srcs \${TKCOMMON_SRCS}"
7667 else
7668 if test $usingX11 ; then
7669 gr_dflags="$gr_dflags -DX11 -DXLIB"
7670 gr_libs="$gr_libs -lX11"
7671 gr_srcs="$gr_srcs \${X11_SRCS}"
7672 fi
7673 if test $usingOGL ; then
7674 gr_dflags="$gr_dflags -DOGL"
7675 gr_libs="$gr_libs -lGL ${use_libglu} ${use_libxi} ${use_libxmu} ${use_libxext} -lm"
7676 gr_srcs="$gr_srcs \${OGL_SRCS}"
7677 if ! test $usingX11 ; then
7678 usingX11=1
7679 gr_libs="$gr_libs -lX11"
7680 gr_dflags="$gr_dflags -DXLIB"
7681 fi
7682 fi
7683 if test $usingX11 ; then
7684 if ! test $usingThreads; then
7685 gr_dflags="$gr_dflags -DX11HELP_PROG=\\\"\${X11HELP_PROG}\\\""
7686 gr_hsrcs="$gr_hsrcs \${X11HELPER_SRCS}"
7687 gr_hprog="$gr_hprog \${X11HELP_PROG}"
7688 fi
7689 fi
7690 fi
7691
7692
7693 case $target in
7694 *-linux*)
7695 $as_echo "#define linux 1" >>confdefs.h
7696
7697 $as_echo "#define SYSV 1" >>confdefs.h
7698
7699 $as_echo "#define ISC 1" >>confdefs.h
7700
7701 case $target in
7702 *x86_64*)
7703 CFLAGS="${CFLAGS} -m64 -fPIC"
7704 ;;
7705 esac
7706 if test $usingOGL ; then
7707 gr_libs="$gr_libs -lstdc++"
7708 fi
7709 if test -f /usr/lib/libbsd-compat.a ; then
7710 gr_libs="$gr_libs -lbsd-compat"
7711 elif test -f /usr/lib/libbsd.a ; then
7712 gr_libs="$gr_libs -lbsd"
7713 fi
7714 ;;
7715 *solaris*)
7716 $as_echo "#define SYSV 1" >>confdefs.h
7717
7718 ;;
7719 *irix*)
7720 $as_echo "#define SYSV 1" >>confdefs.h
7721
7722 $as_echo "#define IRIX 1" >>confdefs.h
7723
7724 $as_echo "#define _BSD_SIGNALS 1" >>confdefs.h
7725
7726 ;;
7727 *sysv*)
7728 $as_echo "#define SYSV 1" >>confdefs.h
7729
7730 ;;
7731 *cygwin*)
7732 $as_echo "#define CYGWIN 1" >>confdefs.h
7733
7734 $as_echo "#define i386 1" >>confdefs.h
7735
7736 ;;
7737 *darwin*)
7738 if test "$CPP" = "cc -E" ; then
7739 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
7740 fi
7741
7742 $as_echo "#define _FORTIFY_SOURCE 0" >>confdefs.h
7743
7744 ;;
7745 esac
7746
7747 # -----------------------------------------------------------------------
7748 # Tcl/Tk configuration
7749 # -----------------------------------------------------------------------
7750
7751 if test $usingTcl ; then
7752 LIB_SPECS_NOSTUB="${LIB_SPECS}"
7753
7754 # -----------------------------------------------------------------------
7755 #
7756 # Tk libraries and header files
7757 #
7758 # -----------------------------------------------------------------------
7759 if test "${TK_INC_DIR}" != "/usr/include" ; then
7760 INC_SPECS="${INC_SPECS} -I${TK_INC_DIR}"
7761 fi
7762 if test "${TK_LIB_DIR}" = "/usr/lib" -o \
7763 "${TK_LIB_DIR}" = "/usr/lib64" ; then
7764 LIB_SPECS_NOSTUB="${LIB_SPECS_NOSTUB} ${TK_LIB_SPEC}"
7765 LIB_SPECS="${LIB_SPECS} ${TK_STUB_LIB_SPEC}"
7766 else
7767 LIB_SPECS_NOSTUB="${LIB_SPECS_NOSTUB} -L${TK_LIB_DIR} ${TK_LIB_SPEC}"
7768 LIB_SPECS="${LIB_SPECS} -L${TK_LIB_DIR} ${TK_STUB_LIB_SPEC}"
7769 if test "x${loader_run_path}" = "x" ; then
7770 loader_run_path="${TK_LIB_DIR}"
7771 else
7772 loader_run_path="${TK_LIB_DIR}:${loader_run_path}"
7773 fi
7774 fi
7775
7776 # -----------------------------------------------------------------------
7777 #
7778 # Tcl libraries and header files
7779 #
7780 # Add a header file directory specification only if the Tcl headers reside
7781 # in a different directory from Tk's.
7782 #
7783 #
7784 # -----------------------------------------------------------------------
7785 if test "${TCL_INC_DIR}" != "/usr/include" -a \
7786 "${TCL_INC_DIR}" != "${TK_INC_DIR}" ; then
7787 INC_SPECS="${INC_SPECS} -I${TCL_INC_DIR}"
7788 fi
7789
7790 if test "${TCL_LIB_DIR}" = "/usr/lib" -o \
7791 "${TCL_LIB_DIR}" = "/usr/lib64" -o \
7792 "${TCL_LIB_DIR}" = "${TK_LIB_DIR}" ; then
7793 LIB_SPECS_NOSTUB="${LIB_SPECS_NOSTUB} ${TCL_LIB_SPEC}"
7794 LIB_SPECS="${LIB_SPECS} ${TCL_STUB_LIB_SPEC}"
7795 else
7796 LIB_SPECS_NOSTUB="${LIB_SPECS_NOSTUB} -L${TCL_LIB_DIR} ${TCL_LIB_SPEC}"
7797 LIB_SPECS="${LIB_SPECS} -L${TCL_LIB_DIR} ${TCL_STUB_LIB_SPEC}"
7798 if test "x${loader_run_path}" = "x" ; then
7799 loader_run_path="${TCL_LIB_DIR}"
7800 else
7801 loader_run_path="${TCL_LIB_DIR}:${loader_run_path}"
7802 fi
7803 fi
7804
7805 #--------------------------------------------------------------------
7806 #
7807 # Check if we can generate shared libraries on this system. Set flags
7808 # to generate shared libraries for systems that we know about. Start
7809 # with the values found in tclConfig.sh, make changes as we know about
7810 # the different systems.
7811 #
7812 #--------------------------------------------------------------------
7813
7814 # Initialize shared library build variables
7815
7816 SHLIB_LD=""
7817 LDDL_FLAGS="-shared"
7818 SHDLIB_EXT=".so"
7819 EXTRA_LIB_SPECS=""
7820
7821 build_shared="yes"
7822
7823 case $target in
7824 *-aix4.[2-9]*)
7825 # No Position-Independent flags needed
7826
7827 # Use the installed export file or the one found in the source directory.
7828
7829 if test -r "${TCL_LIB_DIR}/lib${TCL_LIB_NAME}.exp" ; then
7830 tcl_exp="${TCL_LIB_DIR}/lib${TCL_LIB_NAME}.exp"
7831 else
7832 tcl_exp="${TCL_SRC_DIR}/unix/lib.exp"
7833 fi
7834 if test -r "${TK_LIB_DIR}/lib${TK_LIB_NAME}.exp" ; then
7835 tk_exp="${TK_LIB_DIR}/lib${TK_LIB_NAME}.exp"
7836 else
7837 tk_exp="${TK_SRC_DIR}/unix/lib.exp"
7838 fi
7839
7840 full_src_path=`cd ${srcdir}; pwd`
7841
7842 # Use shell-script to link shared library
7843 LD="${full_src_path}/cf/ldAix /bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry -bI:${tk_exp} -bI:${tcl_exp}"
7844
7845 SHLIB_LIB_SPECS="${aix_lib_specs} -lc"
7846
7847 LDFLAGS="-L${loader_run_path}"
7848 EXTRA_LIB_SPECS="-ldl"
7849 ;;
7850
7851 *-aix*)
7852 # No Position-Independent flags needed
7853
7854 # Use the installed export file or the one found in the source directory.
7855
7856 if test -r "${TCL_LIB_DIR}/lib${TCL_LIB_NAME}.exp" ; then
7857 tcl_exp="${TCL_LIB_DIR}/lib${TCL_LIB_NAME}.exp"
7858 else
7859 tcl_exp="${TCL_SRC_DIR}/unix/lib.exp"
7860 fi
7861 if test -r "${TK_LIB_DIR}/lib${TK_LIB_NAME}.exp" ; then
7862 tk_exp="${TK_LIB_DIR}/lib${TK_LIB_NAME}.exp"
7863 else
7864 tk_exp="${TK_SRC_DIR}/unix/lib.exp"
7865 fi
7866
7867 full_src_path=`cd ${srcdir}/cf; pwd`
7868
7869 # Use shell-script to link shared library
7870
7871 LD="${full_src_path}/ldAix /bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry -bI:${tk_exp} -bI:${tcl_exp}"
7872 SHLIB_LIB_SPECS="${aix_lib_specs} -lc"
7873 LDFLAGS="-L${loader_run_path}"
7874 EXTRA_LIB_SPECS="-lld"
7875 ;;
7876
7877 *-bsdi2*|*-bsdi3*)
7878 LD="shlicc"
7879 LDDL_FLAGS="-r"
7880 EXTRA_LIB_SPECS="-ldl"
7881 ;;
7882
7883 *darwin*)
7884 SHDLIB_EXT=".dylib"
7885 LDDL_FLAGS="-dynamiclib -undefined dynamic_lookup"
7886 LDFLAGS="${LDFLAGS} ${LIB_SPECS}"
7887 CFLAGS="${CFLAGS} ${X_CFLAGS} ${INC_SPECS}"
7888 ;;
7889
7890 *cygwin*)
7891 SHDLIB_EXT=".dll"
7892 $as_echo "#define USE_DL_IMPORT 1" >>confdefs.h
7893
7894 LDDL_FLAGS='-shared -Wl,--enable-auto-image-base'
7895 if test "x${loader_run_path}" != "x" ; then
7896 LD_RUN_PATH="${LD_RUN_PATH} -Wl,-rpath,${loader_run_path}"
7897 fi
7898 ld_extra_libs=${LIB_SPECS}
7899 sub_extra_libs='-L${MAGICDIR}/magic -ltclmagic'
7900 ;;
7901
7902 *-bsdi4*)
7903 SHLIB_CFLAGS="-export-dynamic -fPIC"
7904 LDDL_FLAGS='-shared -Wl,-E -Wl,-soname,$@'
7905 ;;
7906
7907 *-dgux*)
7908 SHLIB_CFLAGS="-K PIC"
7909 LDDL_FLAGS="-G"
7910 EXTRA_LIB_SPECS="-ldl"
7911 ;;
7912
7913 *-hpux*)
7914 if test "$GCC" = "no" ; then
7915 $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
7916
7917 fi
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
7919 $as_echo_n "checking for shl_load in -ldld... " >&6; }
7920 if ${ac_cv_lib_dld_shl_load+:} false; then :
7921 $as_echo_n "(cached) " >&6
7922 else
7923 ac_check_lib_save_LIBS=$LIBS
7924 LIBS="-ldld $LIBS"
7925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7926 /* end confdefs.h. */
7927
7928 /* Override any GCC internal prototype to avoid an error.
7929 Use char because int might match the return type of a GCC
7930 builtin and then its argument prototype would still apply. */
7931 #ifdef __cplusplus
7932 extern "C"
7933 #endif
7934 char shl_load ();
7935 int
7936 main ()
7937 {
7938 return shl_load ();
7939 ;
7940 return 0;
7941 }
7942 _ACEOF
7943 if ac_fn_c_try_link "$LINENO"; then :
7944 ac_cv_lib_dld_shl_load=yes
7945 else
7946 ac_cv_lib_dld_shl_load=no
7947 fi
7948 rm -f core conftest.err conftest.$ac_objext \
7949 conftest$ac_exeext conftest.$ac_ext
7950 LIBS=$ac_check_lib_save_LIBS
7951 fi
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
7953 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
7954 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
7955 found=yes
7956 else
7957 found=no
7958 fi
7959
7960 if test "${found}" = "yes" ; then
7961 SHLIB_CFLAGS="+z"
7962 LDDL_FLAGS="-b -E -n +s +b,${loader_run_path}:."
7963 SHDLIB_EXT=".sl"
7964
7965 # The run path is included in both LDFLAGS and LDDL_FLAGS
7966 # because SHLIB_LD is ld and LD is cc/gcc.
7967
7968 LDFLAGS="-Wl,-E -Wl,+s,+b,${loader_run_path}:."
7969 EXTRA_LIB_SPECS="-ldld"
7970 fi
7971 ;;
7972
7973 *-irix64-6.5*)
7974 LDDL_FLAGS="-32 -shared -rdata_shared"
7975 if test "x${loader_run_path}" != "x" ; then
7976 LD_RUN_PATH="${LD_RUN_PATH} -Wl,-rpath,${loader_run_path}"
7977 fi
7978 ;;
7979
7980 *-irix-56.*|*-irix64-*)
7981 LDDL_FLAGS="-shared -rdata_shared"
7982 if test "x${loader_run_path}" != "x" ; then
7983 LD_RUN_PATH="${LD_RUN_PATH} -Wl,-rpath,${loader_run_path}"
7984 fi
7985 LDFLAGS=""
7986 if test "$GCC" = "yes" ; then
7987 SHLIB_CFLAGS="-mabi=n32 $SHLIB_CFLAGS"
7988 LDDL_FLAGS="-mabi=n32 $LDDL_FLAGS"
7989 LDFLAGS="-mabi=n32 $LDFLAGS"
7990 else
7991 CFLAGS="-n32 $CFLAGS"
7992 LDFLAGS="-n32 $LDFLAGS"
7993 fi
7994 ;;
7995
7996 *-linux*)
7997 LDDL_FLAGS='-shared -Wl,-soname,$@'
7998 if test "x${loader_run_path}" != "x" ; then
7999 LD_RUN_PATH="${LD_RUN_PATH} -Wl,-rpath,${loader_run_path}"
8000 fi
8001 LDFLAGS=""
8002 EXTRA_LIB_SPECS="-ldl"
8003 ;;
8004
8005 *-mp-ras-02*)
8006 SHLIB_CFLAGS="-G -K PIC"
8007 LDDL_FLAGS=""
8008 ;;
8009
8010 *-mp-ras-*)
8011 SHLIB_CFLAGS="-G -K PIC"
8012 LDDL_FLAGS="-Wl,-Bexport"
8013 ;;
8014
8015 *-ncr-sysv4-*2*)
8016 SHLIB_CFLAGS="-K PIC"
8017 LDDL_FLAGS="-G"
8018
8019 EXTRA_LIB_SPECS="-ldl"
8020 ;;
8021
8022 *-ncr-sysv4*)
8023 SHLIB_CFLAGS="-K PIC"
8024 LDDL_FLAGS="-G -Wl,-Bexport"
8025
8026 LDFLAGS="-Wl,-Bexport"
8027 EXTRA_LIB_SPECS="-ldl"
8028 ;;
8029
8030 *-freebsd*)
8031 # Not available on all versions: check for include file.
8032 SHLIB_CFLAGS="-fpic"
8033 LDDL_FLAGS="-shared ${LIB_SPECS}"
8034 CFLAGS="${CFLAGS} -L/usr/X11R6/include"
8035 ;;
8036
8037 *-netbsd*|*-openbsd*)
8038 # Not available on all versions: check for include file.
8039 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
8040 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8041 test_ok=yes
8042 else
8043 test_ok=no
8044 fi
8045
8046
8047 if test "$test_ok" = yes; then
8048 SHLIB_CFLAGS="-fPIC"
8049 LDDL_FLAGS="-shared ${LIB_SPEC}"
8050 fi
8051 ;;
8052
8053 *-nextstep*)
8054 LDDL_FLAGS="-nostdlib -r"
8055 ;;
8056
8057 *-osf1-1.012*)
8058 # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1
8059
8060 # Warning: Ugly Makefile Hack
8061 # Make package name same as library name
8062
8063 SHLIB_LD='ld -R -export $@:'
8064 ;;
8065
8066 *-osf1-1.*)
8067 # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2
8068
8069 SHLIB_CFLAGS="-fpic"
8070 SHLIB_LD="ld -shared"
8071 ;;
8072
8073 *-osf1V*)
8074 # Digital OSF/1
8075
8076 LDDL_FLAGS='-shared -expect_unresolved "*"'
8077 if test "x${loader_run_path}" != "x" ; then
8078 LD_RUN_PATH="${LD_RUN_PATH} -Wl,-rpath,${loader_run_path}"
8079 fi
8080 LDFLAGS=""
8081 ;;
8082
8083 *-sco*)
8084 # Note, dlopen is available only on SCO 3.2.5 and greater. However,
8085 # this test works, since "uname -s" was non-standard in 3.2.4 and
8086 # below.
8087
8088 SHLIB_CFLAGS="-Kpic -belf"
8089 LDDL_FLAGS="-G"
8090 LDFLAGS="-belf -Wl,-Bexport"
8091 ;;
8092
8093 *-sni-sysv*)
8094
8095 SHLIB_CFLAGS="-K PIC"
8096 LDDL_FLAGS="-G"
8097
8098 EXTRA_LIB_SPECS="-ldl"
8099 ;;
8100
8101 *-sunos4*)
8102
8103 SHLIB_CFLAGS="-PIC"
8104 LDDL_FLAGS="-assert pure-text"
8105
8106 EXTRA_LIB_SPECS="-ldl"
8107 ;;
8108
8109 *-solaris2*)
8110
8111 if test "$with_gnu_ld" = "yes" ; then
8112 LDDL_FLAGS='-shared -Wl,-E -Wl,-soname,$@ ${LIB_SPEC}'
8113 if test "x${loader_run_path}" != "x" ; then
8114 LD_RUN_PATH="${LD_RUN_PATH} -Wl,-rpath,${loader_run_path}"
8115 fi
8116 else
8117 LDDL_FLAGS="-shared -mimpure-text"
8118 if test "x${loader_run_path}" != "x" ; then
8119 LD_RUN_PATH="${LD_RUN_PATH} -R ${loader_run_path}"
8120 fi
8121 fi
8122 EXTRA_LIB_SPECS="-ldl"
8123 ;;
8124
8125 *-mips-dde-sysv*)
8126
8127 SHLIB_CFLAGS="-KPIC"
8128 LDDL_FLAGS="-G"
8129
8130 EXTRA_LIB_SPECS="-ldl"
8131 ;;
8132
8133 *-pc-sysv4* | *-unixware-5*)
8134 SHLIB_CFLAGS="-G -KPIC"
8135 LDDL_FLAGS=" -Wl,-Bexport"
8136 ;;
8137
8138 esac
8139
8140 # If we're running gcc, then set SHLIB_CFLAGS flags for compiling
8141 # shared libraries for gcc, instead of those of the vendor's compiler.
8142
8143 if test "$GCC" = "yes" ; then
8144 case $target in
8145 *cygwin*)
8146 ;;
8147 *)
8148 SHLIB_CFLAGS="-Wimplicit-int -fPIC"
8149 ;;
8150 esac
8151 fi
8152 if test "$with_gnu_ld" = "yes" ; then
8153 LDDL_FLAGS="${LDDL_FLAGS} -Wl,--version-script=\${MAGICDIR}/magic/symbol.map"
8154 fi
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171 fi
8172
8173 if test "$GCC" = "yes" ; then
8174 DEPEND_FLAG="-MM"
8175 fi
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221 ac_config_files="$ac_config_files defs.mak"
8222
8223 cat >confcache <<\_ACEOF
8224 # This file is a shell script that caches the results of configure
8225 # tests run on this system so they can be shared between configure
8226 # scripts and configure runs, see configure's option --config-cache.
8227 # It is not useful on other systems. If it contains results you don't
8228 # want to keep, you may remove or edit it.
8229 #
8230 # config.status only pays attention to the cache file if you give it
8231 # the --recheck option to rerun configure.
8232 #
8233 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8234 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8235 # following values.
8236
8237 _ACEOF
8238
8239 # The following way of writing the cache mishandles newlines in values,
8240 # but we know of no workaround that is simple, portable, and efficient.
8241 # So, we kill variables containing newlines.
8242 # Ultrix sh set writes to stderr and can't be redirected directly,
8243 # and sets the high bit in the cache file unless we assign to the vars.
8244 (
8245 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8246 eval ac_val=\$$ac_var
8247 case $ac_val in #(
8248 *${as_nl}*)
8249 case $ac_var in #(
8250 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8251 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8252 esac
8253 case $ac_var in #(
8254 _ | IFS | as_nl) ;; #(
8255 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8256 *) { eval $ac_var=; unset $ac_var;} ;;
8257 esac ;;
8258 esac
8259 done
8260
8261 (set) 2>&1 |
8262 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8263 *${as_nl}ac_space=\ *)
8264 # `set' does not quote correctly, so add quotes: double-quote
8265 # substitution turns \\\\ into \\, and sed turns \\ into \.
8266 sed -n \
8267 "s/'/'\\\\''/g;
8268 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8269 ;; #(
8270 *)
8271 # `set' quotes correctly as required by POSIX, so do not add quotes.
8272 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8273 ;;
8274 esac |
8275 sort
8276 ) |
8277 sed '
8278 /^ac_cv_env_/b end
8279 t clear
8280 :clear
8281 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8282 t end
8283 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8284 :end' >>confcache
8285 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8286 if test -w "$cache_file"; then
8287 if test "x$cache_file" != "x/dev/null"; then
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8289 $as_echo "$as_me: updating cache $cache_file" >&6;}
8290 if test ! -f "$cache_file" || test -h "$cache_file"; then
8291 cat confcache >"$cache_file"
8292 else
8293 case $cache_file in #(
8294 */* | ?:*)
8295 mv -f confcache "$cache_file"$$ &&
8296 mv -f "$cache_file"$$ "$cache_file" ;; #(
8297 *)
8298 mv -f confcache "$cache_file" ;;
8299 esac
8300 fi
8301 fi
8302 else
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8304 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8305 fi
8306 fi
8307 rm -f confcache
8308
8309 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8310 # Let make expand exec_prefix.
8311 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8312
8313 # Transform confdefs.h into DEFS.
8314 # Protect against shell expansion while executing Makefile rules.
8315 # Protect against Makefile macro expansion.
8316 #
8317 # If the first sed substitution is executed (which looks for macros that
8318 # take arguments), then branch to the quote section. Otherwise,
8319 # look for a macro that doesn't take arguments.
8320 ac_script='
8321 :mline
8322 /\\$/{
8323 N
8324 s,\\\n,,
8325 b mline
8326 }
8327 t clear
8328 :clear
8329 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
8330 t quote
8331 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
8332 t quote
8333 b any
8334 :quote
8335 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
8336 s/\[/\\&/g
8337 s/\]/\\&/g
8338 s/\$/$$/g
8339 H
8340 :any
8341 ${
8342 g
8343 s/^\n//
8344 s/\n/ /g
8345 p
8346 }
8347 '
8348 DEFS=`sed -n "$ac_script" confdefs.h`
8349
8350
8351 ac_libobjs=
8352 ac_ltlibobjs=
8353 U=
8354 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8355 # 1. Remove the extension, and $U if already installed.
8356 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8357 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8358 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8359 # will be set to the directory where LIBOBJS objects are built.
8360 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8361 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8362 done
8363 LIBOBJS=$ac_libobjs
8364
8365 LTLIBOBJS=$ac_ltlibobjs
8366
8367
8368
8369
8370 : "${CONFIG_STATUS=./config.status}"
8371 ac_write_fail=0
8372 ac_clean_files_save=$ac_clean_files
8373 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8375 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8376 as_write_fail=0
8377 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8378 #! $SHELL
8379 # Generated by $as_me.
8380 # Run this file to recreate the current configuration.
8381 # Compiler output produced by configure, useful for debugging
8382 # configure, is in config.log if it exists.
8383
8384 debug=false
8385 ac_cs_recheck=false
8386 ac_cs_silent=false
8387
8388 SHELL=\${CONFIG_SHELL-$SHELL}
8389 export SHELL
8390 _ASEOF
8391 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8392 ## -------------------- ##
8393 ## M4sh Initialization. ##
8394 ## -------------------- ##
8395
8396 # Be more Bourne compatible
8397 DUALCASE=1; export DUALCASE # for MKS sh
8398 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8399 emulate sh
8400 NULLCMD=:
8401 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8402 # is contrary to our usage. Disable this feature.
8403 alias -g '${1+"$@"}'='"$@"'
8404 setopt NO_GLOB_SUBST
8405 else
8406 case `(set -o) 2>/dev/null` in #(
8407 *posix*) :
8408 set -o posix ;; #(
8409 *) :
8410 ;;
8411 esac
8412 fi
8413
8414
8415 as_nl='
8416 '
8417 export as_nl
8418 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8419 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8420 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8421 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8422 # Prefer a ksh shell builtin over an external printf program on Solaris,
8423 # but without wasting forks for bash or zsh.
8424 if test -z "$BASH_VERSION$ZSH_VERSION" \
8425 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8426 as_echo='print -r --'
8427 as_echo_n='print -rn --'
8428 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8429 as_echo='printf %s\n'
8430 as_echo_n='printf %s'
8431 else
8432 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8433 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8434 as_echo_n='/usr/ucb/echo -n'
8435 else
8436 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8437 as_echo_n_body='eval
8438 arg=$1;
8439 case $arg in #(
8440 *"$as_nl"*)
8441 expr "X$arg" : "X\\(.*\\)$as_nl";
8442 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8443 esac;
8444 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8445 '
8446 export as_echo_n_body
8447 as_echo_n='sh -c $as_echo_n_body as_echo'
8448 fi
8449 export as_echo_body
8450 as_echo='sh -c $as_echo_body as_echo'
8451 fi
8452
8453 # The user is always right.
8454 if test "${PATH_SEPARATOR+set}" != set; then
8455 PATH_SEPARATOR=:
8456 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8457 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8458 PATH_SEPARATOR=';'
8459 }
8460 fi
8461
8462
8463 # IFS
8464 # We need space, tab and new line, in precisely that order. Quoting is
8465 # there to prevent editors from complaining about space-tab.
8466 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8467 # splitting by setting IFS to empty value.)
8468 IFS=" "" $as_nl"
8469
8470 # Find who we are. Look in the path if we contain no directory separator.
8471 as_myself=
8472 case $0 in #((
8473 *[\\/]* ) as_myself=$0 ;;
8474 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8475 for as_dir in $PATH
8476 do
8477 IFS=$as_save_IFS
8478 test -z "$as_dir" && as_dir=.
8479 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8480 done
8481 IFS=$as_save_IFS
8482
8483 ;;
8484 esac
8485 # We did not find ourselves, most probably we were run as `sh COMMAND'
8486 # in which case we are not to be found in the path.
8487 if test "x$as_myself" = x; then
8488 as_myself=$0
8489 fi
8490 if test ! -f "$as_myself"; then
8491 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8492 exit 1
8493 fi
8494
8495 # Unset variables that we do not need and which cause bugs (e.g. in
8496 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8497 # suppresses any "Segmentation fault" message there. '((' could
8498 # trigger a bug in pdksh 5.2.14.
8499 for as_var in BASH_ENV ENV MAIL MAILPATH
8500 do eval test x\${$as_var+set} = xset \
8501 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8502 done
8503 PS1='$ '
8504 PS2='> '
8505 PS4='+ '
8506
8507 # NLS nuisances.
8508 LC_ALL=C
8509 export LC_ALL
8510 LANGUAGE=C
8511 export LANGUAGE
8512
8513 # CDPATH.
8514 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8515
8516
8517 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8518 # ----------------------------------------
8519 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8520 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8521 # script with STATUS, using 1 if that was 0.
8522 as_fn_error ()
8523 {
8524 as_status=$1; test $as_status -eq 0 && as_status=1
8525 if test "$4"; then
8526 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8527 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8528 fi
8529 $as_echo "$as_me: error: $2" >&2
8530 as_fn_exit $as_status
8531 } # as_fn_error
8532
8533
8534 # as_fn_set_status STATUS
8535 # -----------------------
8536 # Set $? to STATUS, without forking.
8537 as_fn_set_status ()
8538 {
8539 return $1
8540 } # as_fn_set_status
8541
8542 # as_fn_exit STATUS
8543 # -----------------
8544 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8545 as_fn_exit ()
8546 {
8547 set +e
8548 as_fn_set_status $1
8549 exit $1
8550 } # as_fn_exit
8551
8552 # as_fn_unset VAR
8553 # ---------------
8554 # Portably unset VAR.
8555 as_fn_unset ()
8556 {
8557 { eval $1=; unset $1;}
8558 }
8559 as_unset=as_fn_unset
8560 # as_fn_append VAR VALUE
8561 # ----------------------
8562 # Append the text in VALUE to the end of the definition contained in VAR. Take
8563 # advantage of any shell optimizations that allow amortized linear growth over
8564 # repeated appends, instead of the typical quadratic growth present in naive
8565 # implementations.
8566 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8567 eval 'as_fn_append ()
8568 {
8569 eval $1+=\$2
8570 }'
8571 else
8572 as_fn_append ()
8573 {
8574 eval $1=\$$1\$2
8575 }
8576 fi # as_fn_append
8577
8578 # as_fn_arith ARG...
8579 # ------------------
8580 # Perform arithmetic evaluation on the ARGs, and store the result in the
8581 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8582 # must be portable across $(()) and expr.
8583 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8584 eval 'as_fn_arith ()
8585 {
8586 as_val=$(( $* ))
8587 }'
8588 else
8589 as_fn_arith ()
8590 {
8591 as_val=`expr "$@" || test $? -eq 1`
8592 }
8593 fi # as_fn_arith
8594
8595
8596 if expr a : '\(a\)' >/dev/null 2>&1 &&
8597 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8598 as_expr=expr
8599 else
8600 as_expr=false
8601 fi
8602
8603 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8604 as_basename=basename
8605 else
8606 as_basename=false
8607 fi
8608
8609 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8610 as_dirname=dirname
8611 else
8612 as_dirname=false
8613 fi
8614
8615 as_me=`$as_basename -- "$0" ||
8616 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8617 X"$0" : 'X\(//\)$' \| \
8618 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8619 $as_echo X/"$0" |
8620 sed '/^.*\/\([^/][^/]*\)\/*$/{
8621 s//\1/
8622 q
8623 }
8624 /^X\/\(\/\/\)$/{
8625 s//\1/
8626 q
8627 }
8628 /^X\/\(\/\).*/{
8629 s//\1/
8630 q
8631 }
8632 s/.*/./; q'`
8633
8634 # Avoid depending upon Character Ranges.
8635 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8636 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8637 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8638 as_cr_digits='0123456789'
8639 as_cr_alnum=$as_cr_Letters$as_cr_digits
8640
8641 ECHO_C= ECHO_N= ECHO_T=
8642 case `echo -n x` in #(((((
8643 -n*)
8644 case `echo 'xy\c'` in
8645 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8646 xy) ECHO_C='\c';;
8647 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8648 ECHO_T=' ';;
8649 esac;;
8650 *)
8651 ECHO_N='-n';;
8652 esac
8653
8654 rm -f conf$$ conf$$.exe conf$$.file
8655 if test -d conf$$.dir; then
8656 rm -f conf$$.dir/conf$$.file
8657 else
8658 rm -f conf$$.dir
8659 mkdir conf$$.dir 2>/dev/null
8660 fi
8661 if (echo >conf$$.file) 2>/dev/null; then
8662 if ln -s conf$$.file conf$$ 2>/dev/null; then
8663 as_ln_s='ln -s'
8664 # ... but there are two gotchas:
8665 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8666 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8667 # In both cases, we have to default to `cp -pR'.
8668 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8669 as_ln_s='cp -pR'
8670 elif ln conf$$.file conf$$ 2>/dev/null; then
8671 as_ln_s=ln
8672 else
8673 as_ln_s='cp -pR'
8674 fi
8675 else
8676 as_ln_s='cp -pR'
8677 fi
8678 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8679 rmdir conf$$.dir 2>/dev/null
8680
8681
8682 # as_fn_mkdir_p
8683 # -------------
8684 # Create "$as_dir" as a directory, including parents if necessary.
8685 as_fn_mkdir_p ()
8686 {
8687
8688 case $as_dir in #(
8689 -*) as_dir=./$as_dir;;
8690 esac
8691 test -d "$as_dir" || eval $as_mkdir_p || {
8692 as_dirs=
8693 while :; do
8694 case $as_dir in #(
8695 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8696 *) as_qdir=$as_dir;;
8697 esac
8698 as_dirs="'$as_qdir' $as_dirs"
8699 as_dir=`$as_dirname -- "$as_dir" ||
8700 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8701 X"$as_dir" : 'X\(//\)[^/]' \| \
8702 X"$as_dir" : 'X\(//\)$' \| \
8703 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8704 $as_echo X"$as_dir" |
8705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8706 s//\1/
8707 q
8708 }
8709 /^X\(\/\/\)[^/].*/{
8710 s//\1/
8711 q
8712 }
8713 /^X\(\/\/\)$/{
8714 s//\1/
8715 q
8716 }
8717 /^X\(\/\).*/{
8718 s//\1/
8719 q
8720 }
8721 s/.*/./; q'`
8722 test -d "$as_dir" && break
8723 done
8724 test -z "$as_dirs" || eval "mkdir $as_dirs"
8725 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8726
8727
8728 } # as_fn_mkdir_p
8729 if mkdir -p . 2>/dev/null; then
8730 as_mkdir_p='mkdir -p "$as_dir"'
8731 else
8732 test -d ./-p && rmdir ./-p
8733 as_mkdir_p=false
8734 fi
8735
8736
8737 # as_fn_executable_p FILE
8738 # -----------------------
8739 # Test if FILE is an executable regular file.
8740 as_fn_executable_p ()
8741 {
8742 test -f "$1" && test -x "$1"
8743 } # as_fn_executable_p
8744 as_test_x='test -x'
8745 as_executable_p=as_fn_executable_p
8746
8747 # Sed expression to map a string onto a valid CPP name.
8748 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8749
8750 # Sed expression to map a string onto a valid variable name.
8751 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8752
8753
8754 exec 6>&1
8755 ## ----------------------------------- ##
8756 ## Main body of $CONFIG_STATUS script. ##
8757 ## ----------------------------------- ##
8758 _ASEOF
8759 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8760
8761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8762 # Save the log message, to keep $0 and so on meaningful, and to
8763 # report actual input values of CONFIG_FILES etc. instead of their
8764 # values after options handling.
8765 ac_log="
8766 This file was extended by $as_me, which was
8767 generated by GNU Autoconf 2.69. Invocation command line was
8768
8769 CONFIG_FILES = $CONFIG_FILES
8770 CONFIG_HEADERS = $CONFIG_HEADERS
8771 CONFIG_LINKS = $CONFIG_LINKS
8772 CONFIG_COMMANDS = $CONFIG_COMMANDS
8773 $ $0 $@
8774
8775 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8776 "
8777
8778 _ACEOF
8779
8780 case $ac_config_files in *"
8781 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8782 esac
8783
8784
8785
8786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8787 # Files that config.status was made for.
8788 config_files="$ac_config_files"
8789
8790 _ACEOF
8791
8792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8793 ac_cs_usage="\
8794 \`$as_me' instantiates files and other configuration actions
8795 from templates according to the current configuration. Unless the files
8796 and actions are specified as TAGs, all are instantiated by default.
8797
8798 Usage: $0 [OPTION]... [TAG]...
8799
8800 -h, --help print this help, then exit
8801 -V, --version print version number and configuration settings, then exit
8802 --config print configuration, then exit
8803 -q, --quiet, --silent
8804 do not print progress messages
8805 -d, --debug don't remove temporary files
8806 --recheck update $as_me by reconfiguring in the same conditions
8807 --file=FILE[:TEMPLATE]
8808 instantiate the configuration file FILE
8809
8810 Configuration files:
8811 $config_files
8812
8813 Report bugs to the package provider."
8814
8815 _ACEOF
8816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8817 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8818 ac_cs_version="\\
8819 config.status
8820 configured by $0, generated by GNU Autoconf 2.69,
8821 with options \\"\$ac_cs_config\\"
8822
8823 Copyright (C) 2012 Free Software Foundation, Inc.
8824 This config.status script is free software; the Free Software Foundation
8825 gives unlimited permission to copy, distribute and modify it."
8826
8827 ac_pwd='$ac_pwd'
8828 srcdir='$srcdir'
8829 INSTALL='$INSTALL'
8830 test -n "\$AWK" || AWK=awk
8831 _ACEOF
8832
8833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8834 # The default lists apply if the user does not specify any file.
8835 ac_need_defaults=:
8836 while test $# != 0
8837 do
8838 case $1 in
8839 --*=?*)
8840 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8841 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8842 ac_shift=:
8843 ;;
8844 --*=)
8845 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8846 ac_optarg=
8847 ac_shift=:
8848 ;;
8849 *)
8850 ac_option=$1
8851 ac_optarg=$2
8852 ac_shift=shift
8853 ;;
8854 esac
8855
8856 case $ac_option in
8857 # Handling of the options.
8858 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8859 ac_cs_recheck=: ;;
8860 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8861 $as_echo "$ac_cs_version"; exit ;;
8862 --config | --confi | --conf | --con | --co | --c )
8863 $as_echo "$ac_cs_config"; exit ;;
8864 --debug | --debu | --deb | --de | --d | -d )
8865 debug=: ;;
8866 --file | --fil | --fi | --f )
8867 $ac_shift
8868 case $ac_optarg in
8869 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8870 '') as_fn_error $? "missing file argument" ;;
8871 esac
8872 as_fn_append CONFIG_FILES " '$ac_optarg'"
8873 ac_need_defaults=false;;
8874 --he | --h | --help | --hel | -h )
8875 $as_echo "$ac_cs_usage"; exit ;;
8876 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8877 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8878 ac_cs_silent=: ;;
8879
8880 # This is an error.
8881 -*) as_fn_error $? "unrecognized option: \`$1'
8882 Try \`$0 --help' for more information." ;;
8883
8884 *) as_fn_append ac_config_targets " $1"
8885 ac_need_defaults=false ;;
8886
8887 esac
8888 shift
8889 done
8890
8891 ac_configure_extra_args=
8892
8893 if $ac_cs_silent; then
8894 exec 6>/dev/null
8895 ac_configure_extra_args="$ac_configure_extra_args --silent"
8896 fi
8897
8898 _ACEOF
8899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8900 if \$ac_cs_recheck; then
8901 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8902 shift
8903 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8904 CONFIG_SHELL='$SHELL'
8905 export CONFIG_SHELL
8906 exec "\$@"
8907 fi
8908
8909 _ACEOF
8910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8911 exec 5>>config.log
8912 {
8913 echo
8914 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8915 ## Running $as_me. ##
8916 _ASBOX
8917 $as_echo "$ac_log"
8918 } >&5
8919
8920 _ACEOF
8921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8922 _ACEOF
8923
8924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8925
8926 # Handling of arguments.
8927 for ac_config_target in $ac_config_targets
8928 do
8929 case $ac_config_target in
8930 "defs.mak") CONFIG_FILES="$CONFIG_FILES defs.mak" ;;
8931
8932 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8933 esac
8934 done
8935
8936
8937 # If the user did not use the arguments to specify the items to instantiate,
8938 # then the envvar interface is used. Set only those that are not.
8939 # We use the long form for the default assignment because of an extremely
8940 # bizarre bug on SunOS 4.1.3.
8941 if $ac_need_defaults; then
8942 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8943 fi
8944
8945 # Have a temporary directory for convenience. Make it in the build tree
8946 # simply because there is no reason against having it here, and in addition,
8947 # creating and moving files from /tmp can sometimes cause problems.
8948 # Hook for its removal unless debugging.
8949 # Note that there is a small window in which the directory will not be cleaned:
8950 # after its creation but before its name has been assigned to `$tmp'.
8951 $debug ||
8952 {
8953 tmp= ac_tmp=
8954 trap 'exit_status=$?
8955 : "${ac_tmp:=$tmp}"
8956 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8957 ' 0
8958 trap 'as_fn_exit 1' 1 2 13 15
8959 }
8960 # Create a (secure) tmp directory for tmp files.
8961
8962 {
8963 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8964 test -d "$tmp"
8965 } ||
8966 {
8967 tmp=./conf$$-$RANDOM
8968 (umask 077 && mkdir "$tmp")
8969 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8970 ac_tmp=$tmp
8971
8972 # Set up the scripts for CONFIG_FILES section.
8973 # No need to generate them if there are no CONFIG_FILES.
8974 # This happens for instance with `./config.status config.h'.
8975 if test -n "$CONFIG_FILES"; then
8976
8977
8978 ac_cr=`echo X | tr X '\015'`
8979 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8980 # But we know of no other shell where ac_cr would be empty at this
8981 # point, so we can use a bashism as a fallback.
8982 if test "x$ac_cr" = x; then
8983 eval ac_cr=\$\'\\r\'
8984 fi
8985 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8986 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8987 ac_cs_awk_cr='\\r'
8988 else
8989 ac_cs_awk_cr=$ac_cr
8990 fi
8991
8992 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8993 _ACEOF
8994
8995
8996 {
8997 echo "cat >conf$$subs.awk <<_ACEOF" &&
8998 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8999 echo "_ACEOF"
9000 } >conf$$subs.sh ||
9001 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9002 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9003 ac_delim='%!_!# '
9004 for ac_last_try in false false false false false :; do
9005 . ./conf$$subs.sh ||
9006 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9007
9008 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9009 if test $ac_delim_n = $ac_delim_num; then
9010 break
9011 elif $ac_last_try; then
9012 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9013 else
9014 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9015 fi
9016 done
9017 rm -f conf$$subs.sh
9018
9019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9020 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9021 _ACEOF
9022 sed -n '
9023 h
9024 s/^/S["/; s/!.*/"]=/
9025 p
9026 g
9027 s/^[^!]*!//
9028 :repl
9029 t repl
9030 s/'"$ac_delim"'$//
9031 t delim
9032 :nl
9033 h
9034 s/\(.\{148\}\)..*/\1/
9035 t more1
9036 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9037 p
9038 n
9039 b repl
9040 :more1
9041 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9042 p
9043 g
9044 s/.\{148\}//
9045 t nl
9046 :delim
9047 h
9048 s/\(.\{148\}\)..*/\1/
9049 t more2
9050 s/["\\]/\\&/g; s/^/"/; s/$/"/
9051 p
9052 b
9053 :more2
9054 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9055 p
9056 g
9057 s/.\{148\}//
9058 t delim
9059 ' <conf$$subs.awk | sed '
9060 /^[^""]/{
9061 N
9062 s/\n//
9063 }
9064 ' >>$CONFIG_STATUS || ac_write_fail=1
9065 rm -f conf$$subs.awk
9066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9067 _ACAWK
9068 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9069 for (key in S) S_is_set[key] = 1
9070 FS = ""
9071
9072 }
9073 {
9074 line = $ 0
9075 nfields = split(line, field, "@")
9076 substed = 0
9077 len = length(field[1])
9078 for (i = 2; i < nfields; i++) {
9079 key = field[i]
9080 keylen = length(key)
9081 if (S_is_set[key]) {
9082 value = S[key]
9083 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9084 len += length(value) + length(field[++i])
9085 substed = 1
9086 } else
9087 len += 1 + keylen
9088 }
9089
9090 print line
9091 }
9092
9093 _ACAWK
9094 _ACEOF
9095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9096 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9097 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9098 else
9099 cat
9100 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9101 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9102 _ACEOF
9103
9104 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9105 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9106 # trailing colons and then remove the whole line if VPATH becomes empty
9107 # (actually we leave an empty line to preserve line numbers).
9108 if test "x$srcdir" = x.; then
9109 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9110 h
9111 s///
9112 s/^/:/
9113 s/[ ]*$/:/
9114 s/:\$(srcdir):/:/g
9115 s/:\${srcdir}:/:/g
9116 s/:@srcdir@:/:/g
9117 s/^:*//
9118 s/:*$//
9119 x
9120 s/\(=[ ]*\).*/\1/
9121 G
9122 s/\n//
9123 s/^[^=]*=[ ]*$//
9124 }'
9125 fi
9126
9127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9128 fi # test -n "$CONFIG_FILES"
9129
9130
9131 eval set X " :F $CONFIG_FILES "
9132 shift
9133 for ac_tag
9134 do
9135 case $ac_tag in
9136 :[FHLC]) ac_mode=$ac_tag; continue;;
9137 esac
9138 case $ac_mode$ac_tag in
9139 :[FHL]*:*);;
9140 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9141 :[FH]-) ac_tag=-:-;;
9142 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9143 esac
9144 ac_save_IFS=$IFS
9145 IFS=:
9146 set x $ac_tag
9147 IFS=$ac_save_IFS
9148 shift
9149 ac_file=$1
9150 shift
9151
9152 case $ac_mode in
9153 :L) ac_source=$1;;
9154 :[FH])
9155 ac_file_inputs=
9156 for ac_f
9157 do
9158 case $ac_f in
9159 -) ac_f="$ac_tmp/stdin";;
9160 *) # Look for the file first in the build tree, then in the source tree
9161 # (if the path is not absolute). The absolute path cannot be DOS-style,
9162 # because $ac_f cannot contain `:'.
9163 test -f "$ac_f" ||
9164 case $ac_f in
9165 [\\/$]*) false;;
9166 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9167 esac ||
9168 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9169 esac
9170 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9171 as_fn_append ac_file_inputs " '$ac_f'"
9172 done
9173
9174 # Let's still pretend it is `configure' which instantiates (i.e., don't
9175 # use $as_me), people would be surprised to read:
9176 # /* config.h. Generated by config.status. */
9177 configure_input='Generated from '`
9178 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9179 `' by configure.'
9180 if test x"$ac_file" != x-; then
9181 configure_input="$ac_file. $configure_input"
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9183 $as_echo "$as_me: creating $ac_file" >&6;}
9184 fi
9185 # Neutralize special characters interpreted by sed in replacement strings.
9186 case $configure_input in #(
9187 *\&* | *\|* | *\\* )
9188 ac_sed_conf_input=`$as_echo "$configure_input" |
9189 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9190 *) ac_sed_conf_input=$configure_input;;
9191 esac
9192
9193 case $ac_tag in
9194 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9195 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9196 esac
9197 ;;
9198 esac
9199
9200 ac_dir=`$as_dirname -- "$ac_file" ||
9201 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9202 X"$ac_file" : 'X\(//\)[^/]' \| \
9203 X"$ac_file" : 'X\(//\)$' \| \
9204 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9205 $as_echo X"$ac_file" |
9206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9207 s//\1/
9208 q
9209 }
9210 /^X\(\/\/\)[^/].*/{
9211 s//\1/
9212 q
9213 }
9214 /^X\(\/\/\)$/{
9215 s//\1/
9216 q
9217 }
9218 /^X\(\/\).*/{
9219 s//\1/
9220 q
9221 }
9222 s/.*/./; q'`
9223 as_dir="$ac_dir"; as_fn_mkdir_p
9224 ac_builddir=.
9225
9226 case "$ac_dir" in
9227 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9228 *)
9229 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9230 # A ".." for each directory in $ac_dir_suffix.
9231 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9232 case $ac_top_builddir_sub in
9233 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9234 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9235 esac ;;
9236 esac
9237 ac_abs_top_builddir=$ac_pwd
9238 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9239 # for backward compatibility:
9240 ac_top_builddir=$ac_top_build_prefix
9241
9242 case $srcdir in
9243 .) # We are building in place.
9244 ac_srcdir=.
9245 ac_top_srcdir=$ac_top_builddir_sub
9246 ac_abs_top_srcdir=$ac_pwd ;;
9247 [\\/]* | ?:[\\/]* ) # Absolute name.
9248 ac_srcdir=$srcdir$ac_dir_suffix;
9249 ac_top_srcdir=$srcdir
9250 ac_abs_top_srcdir=$srcdir ;;
9251 *) # Relative name.
9252 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9253 ac_top_srcdir=$ac_top_build_prefix$srcdir
9254 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9255 esac
9256 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9257
9258
9259 case $ac_mode in
9260 :F)
9261 #
9262 # CONFIG_FILE
9263 #
9264
9265 case $INSTALL in
9266 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9267 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9268 esac
9269 _ACEOF
9270
9271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9272 # If the template does not know about datarootdir, expand it.
9273 # FIXME: This hack should be removed a few years after 2.60.
9274 ac_datarootdir_hack=; ac_datarootdir_seen=
9275 ac_sed_dataroot='
9276 /datarootdir/ {
9277 p
9278 q
9279 }
9280 /@datadir@/p
9281 /@docdir@/p
9282 /@infodir@/p
9283 /@localedir@/p
9284 /@mandir@/p'
9285 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9286 *datarootdir*) ac_datarootdir_seen=yes;;
9287 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9289 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9290 _ACEOF
9291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9292 ac_datarootdir_hack='
9293 s&@datadir@&$datadir&g
9294 s&@docdir@&$docdir&g
9295 s&@infodir@&$infodir&g
9296 s&@localedir@&$localedir&g
9297 s&@mandir@&$mandir&g
9298 s&\\\${datarootdir}&$datarootdir&g' ;;
9299 esac
9300 _ACEOF
9301
9302 # Neutralize VPATH when `$srcdir' = `.'.
9303 # Shell code in configure.ac might set extrasub.
9304 # FIXME: do we really want to maintain this feature?
9305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9306 ac_sed_extra="$ac_vpsub
9307 $extrasub
9308 _ACEOF
9309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9310 :t
9311 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9312 s|@configure_input@|$ac_sed_conf_input|;t t
9313 s&@top_builddir@&$ac_top_builddir_sub&;t t
9314 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9315 s&@srcdir@&$ac_srcdir&;t t
9316 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9317 s&@top_srcdir@&$ac_top_srcdir&;t t
9318 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9319 s&@builddir@&$ac_builddir&;t t
9320 s&@abs_builddir@&$ac_abs_builddir&;t t
9321 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9322 s&@INSTALL@&$ac_INSTALL&;t t
9323 $ac_datarootdir_hack
9324 "
9325 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9326 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9327
9328 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9329 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9330 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9331 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9333 which seems to be undefined. Please make sure it is defined" >&5
9334 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9335 which seems to be undefined. Please make sure it is defined" >&2;}
9336
9337 rm -f "$ac_tmp/stdin"
9338 case $ac_file in
9339 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9340 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9341 esac \
9342 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9343 ;;
9344
9345
9346
9347 esac
9348
9349 done # for ac_tag
9350
9351
9352 as_fn_exit 0
9353 _ACEOF
9354 ac_clean_files=$ac_clean_files_save
9355
9356 test $ac_write_fail = 0 ||
9357 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9358
9359
9360 # configure is writing to config.log, and then calls config.status.
9361 # config.status does its own redirection, appending to config.log.
9362 # Unfortunately, on DOS this fails, as config.log is still kept open
9363 # by configure, so config.status won't be able to write to it; its
9364 # output is simply discarded. So we exec the FD to /dev/null,
9365 # effectively closing config.log, so it can be properly (re)opened and
9366 # appended to by config.status. When coming back to configure, we
9367 # need to make the FD available again.
9368 if test "$no_create" != yes; then
9369 ac_cs_success=:
9370 ac_config_status_args=
9371 test "$silent" = yes &&
9372 ac_config_status_args="$ac_config_status_args --quiet"
9373 exec 5>/dev/null
9374 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9375 exec 5>>config.log
9376 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9377 # would make configure fail if this is the last instruction.
9378 $ac_cs_success || as_fn_exit 1
9379 fi
9380 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9382 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9383 fi
9384
9385
9386
9387 ECHO_N=printf
9388
9389 echo
9390 echo "-----------------------------------------------------------"
9391 echo "Configuration Summary (principle requirements):"
9392 echo
9393
9394 ${ECHO_N} "X11: "
9395 if test $usingX11 ; then
9396 echo "yes"
9397 else
9398 echo "no"
9399 echo
9400 echo " Magic requires X11 for all graphics operations. Without it,"
9401 echo " magic can only be run in batch mode using option '-dnull'."
9402 echo " Generally, not finding X11 means that paths to header files"
9403 echo " and/or libraries are missing or in an unexpected place. Try"
9404 echo " using configure options --x-includes=<DIR> and --x-libraries=<DIR>."
9405 echo
9406 fi
9407
9408 ${ECHO_N} "Python3: "
9409 if test $usingPython3 ; then
9410 echo "yes"
9411 else
9412 echo "no"
9413 echo
9414 echo " Magic installation will use the gcc preprocessor for forming"
9415 echo " the default SCMOS technology files and the macro definitions."
9416 echo " This usually works, but in case of preprocessor failure, you"
9417 echo " may need python3 installed."
9418 echo
9419 fi
9420
9421 ${ECHO_N} "OpenGL: "
9422 if test $usingOGL ; then
9423 echo "yes"
9424 ${ECHO_N} "Vector fonts: "
9425 if test "x$use_libglu" != "x" ; then
9426 echo "yes"
9427 else
9428 echo "no"
9429 fi
9430 else
9431 echo "no"
9432 echo
9433 if test $usingCairo ; then
9434 echo " Cairo graphics are available so OpenGL is purely optional."
9435 else
9436 echo " OpenGL graphics are considerably better than the standard 8-bit"
9437 echo " and 24-bit X11 graphics, provided that you have a video card and"
9438 echo " driver supporting accelerated OpenGL graphics. If you get this"
9439 echo " message, you may need to download OpenGL libraries and header"
9440 echo " files, which are usually available from the video card manufacturer."
9441 echo " Magic with un-accelerated OpenGL, such as using Mesa GL without"
9442 echo " a supported graphics card, is usually a very bad combination."
9443 echo
9444 fi
9445 fi
9446
9447 ${ECHO_N} "Cairo: "
9448 if test $usingCairo ; then
9449 echo "yes"
9450 else
9451 echo "no"
9452 echo
9453 if test $usingOGL ; then
9454 echo " OpenGL graphics are available so Cairo is purely optional"
9455 echo " unless there are issues with the video card driver's"
9456 echo " implementation of OpenGL."
9457 else
9458 echo " Cairo graphics are considerably better than the standard 8-bit"
9459 echo " and 24-bit X11 graphics, provided that you have a video card and"
9460 echo " driver supporting hardware-accelerated graphics. If you get this"
9461 echo " message, you may need to download Cairo and fontconfig libraries"
9462 echo " and header files, which are usually found in package cairo-devel."
9463 echo
9464 fi
9465 fi
9466
9467 if test $usingTcl ; then
9468 ${ECHO_N} "Tcl/Tk: "
9469 echo "yes"
9470 else
9471 if test $usingScheme ; then
9472 ${ECHO_N} "Scheme: "
9473 echo "yes"
9474 else
9475 ${ECHO_N} "Tcl/Tk: "
9476 echo "no"
9477 echo
9478 echo " Without Tcl/Tk, you cannot run the enhanced version of magic"
9479 echo " with the toolbar and menus, and a number of other functions"
9480 echo " are disabled. If you did not specifically disable Tcl/Tk on"
9481 echo " the configure command line, then getting this message means"
9482 echo " that you do not have Tcl/Tk headers and or libraries installed,"
9483 echo " or they are not in a standard path. Try using configure options"
9484 echo " --with-tcl=<DIR> and --with-tk=<DIR>."
9485 echo
9486 fi
9487 fi
9488
9489 echo "-----------------------------------------------------------"
9490 echo
9491
9492 echo "Use 'make' to compile and 'make install' to install."
9493 echo
9494 echo "Errors may not be printed to stdout: see files 'make.log' "
9495 echo " and 'install.log' for complete error summary."
9496 echo
9497 echo "-----------------------------------------------------------"
9498 echo
9499
9500 cp defs.mak ..