Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Gauche-gl 0.6.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell [email protected] and [email protected]
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
273 $0: have one."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302 return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381 else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398 else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512 *)
513 ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537 else
538 as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='Gauche-gl'
582 PACKAGE_TARNAME='gauche-gl'
583 PACKAGE_VERSION='0.6'
584 PACKAGE_STRING='Gauche-gl 0.6'
585 PACKAGE_BUGREPORT='[email protected]'
586 PACKAGE_URL=''
587
588 # Factoring default headers for most tests.
589 ac_includes_default="\
590 #include <stdio.h>
591 #ifdef HAVE_SYS_TYPES_H
592 # include <sys/types.h>
593 #endif
594 #ifdef HAVE_SYS_STAT_H
595 # include <sys/stat.h>
596 #endif
597 #ifdef STDC_HEADERS
598 # include <stdlib.h>
599 # include <stddef.h>
600 #else
601 # ifdef HAVE_STDLIB_H
602 # include <stdlib.h>
603 # endif
604 #endif
605 #ifdef HAVE_STRING_H
606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607 # include <memory.h>
608 # endif
609 # include <string.h>
610 #endif
611 #ifdef HAVE_STRINGS_H
612 # include <strings.h>
613 #endif
614 #ifdef HAVE_INTTYPES_H
615 # include <inttypes.h>
616 #endif
617 #ifdef HAVE_STDINT_H
618 # include <stdint.h>
619 #endif
620 #ifdef HAVE_UNISTD_H
621 # include <unistd.h>
622 #endif"
623
624 ac_subst_vars='LTLIBOBJS
625 LIBOBJS
626 GLUT_EXTRALIBS
627 GL_EXTRALIBS
628 GZIP_PROGRAM
629 MAKEINFO
630 GLEW_SOURCE
631 GLEW_INCDIR
632 GLUT_LIBDIR
633 GLUT_INCDIR
634 GLUT_LIB
635 GL_LIBS
636 EGREP
637 GREP
638 SOEXT
639 GAUCHE_CESCONV
640 GAUCHE_INSTALL
641 GAUCHE_PACKAGE
642 GAUCHE_CONFIG
643 GOSH
644 CG_SCM
645 CG_LIBS
646 ENABLE_CG
647 X_EXTRA_LIBS
648 X_LIBS
649 X_PRE_LIBS
650 X_CFLAGS
651 CPP
652 OBJEXT
653 EXEEXT
654 ac_ct_CC
655 CPPFLAGS
656 LDFLAGS
657 CFLAGS
658 CC
659 XMKMF
660 target_os
661 target_vendor
662 target_cpu
663 target
664 host_os
665 host_vendor
666 host_cpu
667 host
668 build_os
669 build_vendor
670 build_cpu
671 build
672 target_alias
673 host_alias
674 build_alias
675 LIBS
676 ECHO_T
677 ECHO_N
678 ECHO_C
679 DEFS
680 mandir
681 localedir
682 libdir
683 psdir
684 pdfdir
685 dvidir
686 htmldir
687 infodir
688 docdir
689 oldincludedir
690 includedir
691 localstatedir
692 sharedstatedir
693 sysconfdir
694 datadir
695 datarootdir
696 libexecdir
697 sbindir
698 bindir
699 program_transform_name
700 prefix
701 exec_prefix
702 PACKAGE_URL
703 PACKAGE_BUGREPORT
704 PACKAGE_STRING
705 PACKAGE_VERSION
706 PACKAGE_TARNAME
707 PACKAGE_NAME
708 PATH_SEPARATOR
709 SHELL'
710 ac_subst_files=''
711 ac_user_opts='
712 enable_option_checking
713 with_x
714 with_glut
715 enable_cg
716 '
717 ac_precious_vars='build_alias
718 host_alias
719 target_alias
720 XMKMF
721 CC
722 CFLAGS
723 LDFLAGS
724 LIBS
725 CPPFLAGS
726 CPP'
727
728
729 # Initialize some variables set by options.
730 ac_init_help=
731 ac_init_version=false
732 ac_unrecognized_opts=
733 ac_unrecognized_sep=
734 # The variables have the same names as the options, with
735 # dashes changed to underlines.
736 cache_file=/dev/null
737 exec_prefix=NONE
738 no_create=
739 no_recursion=
740 prefix=NONE
741 program_prefix=NONE
742 program_suffix=NONE
743 program_transform_name=s,x,x,
744 silent=
745 site=
746 srcdir=
747 verbose=
748 x_includes=NONE
749 x_libraries=NONE
750
751 # Installation directory options.
752 # These are left unexpanded so users can "make install exec_prefix=/foo"
753 # and all the variables that are supposed to be based on exec_prefix
754 # by default will actually change.
755 # Use braces instead of parens because sh, perl, etc. also accept them.
756 # (The list follows the same order as the GNU Coding Standards.)
757 bindir='${exec_prefix}/bin'
758 sbindir='${exec_prefix}/sbin'
759 libexecdir='${exec_prefix}/libexec'
760 datarootdir='${prefix}/share'
761 datadir='${datarootdir}'
762 sysconfdir='${prefix}/etc'
763 sharedstatedir='${prefix}/com'
764 localstatedir='${prefix}/var'
765 includedir='${prefix}/include'
766 oldincludedir='/usr/include'
767 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
768 infodir='${datarootdir}/info'
769 htmldir='${docdir}'
770 dvidir='${docdir}'
771 pdfdir='${docdir}'
772 psdir='${docdir}'
773 libdir='${exec_prefix}/lib'
774 localedir='${datarootdir}/locale'
775 mandir='${datarootdir}/man'
776
777 ac_prev=
778 ac_dashdash=
779 for ac_option
780 do
781 # If the previous option needs an argument, assign it.
782 if test -n "$ac_prev"; then
783 eval $ac_prev=\$ac_option
784 ac_prev=
785 continue
786 fi
787
788 case $ac_option in
789 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
790 *=) ac_optarg= ;;
791 *) ac_optarg=yes ;;
792 esac
793
794 # Accept the important Cygnus configure options, so we can diagnose typos.
795
796 case $ac_dashdash$ac_option in
797 --)
798 ac_dashdash=yes ;;
799
800 -bindir | --bindir | --bindi | --bind | --bin | --bi)
801 ac_prev=bindir ;;
802 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
803 bindir=$ac_optarg ;;
804
805 -build | --build | --buil | --bui | --bu)
806 ac_prev=build_alias ;;
807 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
808 build_alias=$ac_optarg ;;
809
810 -cache-file | --cache-file | --cache-fil | --cache-fi \
811 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
812 ac_prev=cache_file ;;
813 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
814 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
815 cache_file=$ac_optarg ;;
816
817 --config-cache | -C)
818 cache_file=config.cache ;;
819
820 -datadir | --datadir | --datadi | --datad)
821 ac_prev=datadir ;;
822 -datadir=* | --datadir=* | --datadi=* | --datad=*)
823 datadir=$ac_optarg ;;
824
825 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
826 | --dataroo | --dataro | --datar)
827 ac_prev=datarootdir ;;
828 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
829 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
830 datarootdir=$ac_optarg ;;
831
832 -disable-* | --disable-*)
833 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
834 # Reject names that are not valid shell variable names.
835 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
836 as_fn_error $? "invalid feature name: $ac_useropt"
837 ac_useropt_orig=$ac_useropt
838 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
839 case $ac_user_opts in
840 *"
841 "enable_$ac_useropt"
842 "*) ;;
843 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
844 ac_unrecognized_sep=', ';;
845 esac
846 eval enable_$ac_useropt=no ;;
847
848 -docdir | --docdir | --docdi | --doc | --do)
849 ac_prev=docdir ;;
850 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
851 docdir=$ac_optarg ;;
852
853 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
854 ac_prev=dvidir ;;
855 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
856 dvidir=$ac_optarg ;;
857
858 -enable-* | --enable-*)
859 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
860 # Reject names that are not valid shell variable names.
861 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
862 as_fn_error $? "invalid feature name: $ac_useropt"
863 ac_useropt_orig=$ac_useropt
864 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
865 case $ac_user_opts in
866 *"
867 "enable_$ac_useropt"
868 "*) ;;
869 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
870 ac_unrecognized_sep=', ';;
871 esac
872 eval enable_$ac_useropt=\$ac_optarg ;;
873
874 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
875 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
876 | --exec | --exe | --ex)
877 ac_prev=exec_prefix ;;
878 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
879 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
880 | --exec=* | --exe=* | --ex=*)
881 exec_prefix=$ac_optarg ;;
882
883 -gas | --gas | --ga | --g)
884 # Obsolete; use --with-gas.
885 with_gas=yes ;;
886
887 -help | --help | --hel | --he | -h)
888 ac_init_help=long ;;
889 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
890 ac_init_help=recursive ;;
891 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
892 ac_init_help=short ;;
893
894 -host | --host | --hos | --ho)
895 ac_prev=host_alias ;;
896 -host=* | --host=* | --hos=* | --ho=*)
897 host_alias=$ac_optarg ;;
898
899 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
900 ac_prev=htmldir ;;
901 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
902 | --ht=*)
903 htmldir=$ac_optarg ;;
904
905 -includedir | --includedir | --includedi | --included | --include \
906 | --includ | --inclu | --incl | --inc)
907 ac_prev=includedir ;;
908 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
909 | --includ=* | --inclu=* | --incl=* | --inc=*)
910 includedir=$ac_optarg ;;
911
912 -infodir | --infodir | --infodi | --infod | --info | --inf)
913 ac_prev=infodir ;;
914 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
915 infodir=$ac_optarg ;;
916
917 -libdir | --libdir | --libdi | --libd)
918 ac_prev=libdir ;;
919 -libdir=* | --libdir=* | --libdi=* | --libd=*)
920 libdir=$ac_optarg ;;
921
922 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
923 | --libexe | --libex | --libe)
924 ac_prev=libexecdir ;;
925 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
926 | --libexe=* | --libex=* | --libe=*)
927 libexecdir=$ac_optarg ;;
928
929 -localedir | --localedir | --localedi | --localed | --locale)
930 ac_prev=localedir ;;
931 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
932 localedir=$ac_optarg ;;
933
934 -localstatedir | --localstatedir | --localstatedi | --localstated \
935 | --localstate | --localstat | --localsta | --localst | --locals)
936 ac_prev=localstatedir ;;
937 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
938 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
939 localstatedir=$ac_optarg ;;
940
941 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
942 ac_prev=mandir ;;
943 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
944 mandir=$ac_optarg ;;
945
946 -nfp | --nfp | --nf)
947 # Obsolete; use --without-fp.
948 with_fp=no ;;
949
950 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
951 | --no-cr | --no-c | -n)
952 no_create=yes ;;
953
954 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
955 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
956 no_recursion=yes ;;
957
958 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
959 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
960 | --oldin | --oldi | --old | --ol | --o)
961 ac_prev=oldincludedir ;;
962 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
963 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
964 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
965 oldincludedir=$ac_optarg ;;
966
967 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
968 ac_prev=prefix ;;
969 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
970 prefix=$ac_optarg ;;
971
972 -program-prefix | --program-prefix | --program-prefi | --program-pref \
973 | --program-pre | --program-pr | --program-p)
974 ac_prev=program_prefix ;;
975 -program-prefix=* | --program-prefix=* | --program-prefi=* \
976 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
977 program_prefix=$ac_optarg ;;
978
979 -program-suffix | --program-suffix | --program-suffi | --program-suff \
980 | --program-suf | --program-su | --program-s)
981 ac_prev=program_suffix ;;
982 -program-suffix=* | --program-suffix=* | --program-suffi=* \
983 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
984 program_suffix=$ac_optarg ;;
985
986 -program-transform-name | --program-transform-name \
987 | --program-transform-nam | --program-transform-na \
988 | --program-transform-n | --program-transform- \
989 | --program-transform | --program-transfor \
990 | --program-transfo | --program-transf \
991 | --program-trans | --program-tran \
992 | --progr-tra | --program-tr | --program-t)
993 ac_prev=program_transform_name ;;
994 -program-transform-name=* | --program-transform-name=* \
995 | --program-transform-nam=* | --program-transform-na=* \
996 | --program-transform-n=* | --program-transform-=* \
997 | --program-transform=* | --program-transfor=* \
998 | --program-transfo=* | --program-transf=* \
999 | --program-trans=* | --program-tran=* \
1000 | --progr-tra=* | --program-tr=* | --program-t=*)
1001 program_transform_name=$ac_optarg ;;
1002
1003 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1004 ac_prev=pdfdir ;;
1005 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1006 pdfdir=$ac_optarg ;;
1007
1008 -psdir | --psdir | --psdi | --psd | --ps)
1009 ac_prev=psdir ;;
1010 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1011 psdir=$ac_optarg ;;
1012
1013 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1014 | -silent | --silent | --silen | --sile | --sil)
1015 silent=yes ;;
1016
1017 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1018 ac_prev=sbindir ;;
1019 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1020 | --sbi=* | --sb=*)
1021 sbindir=$ac_optarg ;;
1022
1023 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1024 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1025 | --sharedst | --shareds | --shared | --share | --shar \
1026 | --sha | --sh)
1027 ac_prev=sharedstatedir ;;
1028 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1029 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1030 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1031 | --sha=* | --sh=*)
1032 sharedstatedir=$ac_optarg ;;
1033
1034 -site | --site | --sit)
1035 ac_prev=site ;;
1036 -site=* | --site=* | --sit=*)
1037 site=$ac_optarg ;;
1038
1039 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1040 ac_prev=srcdir ;;
1041 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1042 srcdir=$ac_optarg ;;
1043
1044 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1045 | --syscon | --sysco | --sysc | --sys | --sy)
1046 ac_prev=sysconfdir ;;
1047 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1048 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1049 sysconfdir=$ac_optarg ;;
1050
1051 -target | --target | --targe | --targ | --tar | --ta | --t)
1052 ac_prev=target_alias ;;
1053 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1054 target_alias=$ac_optarg ;;
1055
1056 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1057 verbose=yes ;;
1058
1059 -version | --version | --versio | --versi | --vers | -V)
1060 ac_init_version=: ;;
1061
1062 -with-* | --with-*)
1063 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066 as_fn_error $? "invalid package name: $ac_useropt"
1067 ac_useropt_orig=$ac_useropt
1068 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069 case $ac_user_opts in
1070 *"
1071 "with_$ac_useropt"
1072 "*) ;;
1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1074 ac_unrecognized_sep=', ';;
1075 esac
1076 eval with_$ac_useropt=\$ac_optarg ;;
1077
1078 -without-* | --without-*)
1079 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 as_fn_error $? "invalid package name: $ac_useropt"
1083 ac_useropt_orig=$ac_useropt
1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 case $ac_user_opts in
1086 *"
1087 "with_$ac_useropt"
1088 "*) ;;
1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1090 ac_unrecognized_sep=', ';;
1091 esac
1092 eval with_$ac_useropt=no ;;
1093
1094 --x)
1095 # Obsolete; use --with-x.
1096 with_x=yes ;;
1097
1098 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1099 | --x-incl | --x-inc | --x-in | --x-i)
1100 ac_prev=x_includes ;;
1101 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1102 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1103 x_includes=$ac_optarg ;;
1104
1105 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1106 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1107 ac_prev=x_libraries ;;
1108 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1109 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1110 x_libraries=$ac_optarg ;;
1111
1112 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1113 Try \`$0 --help' for more information"
1114 ;;
1115
1116 *=*)
1117 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1118 # Reject names that are not valid shell variable names.
1119 case $ac_envvar in #(
1120 '' | [0-9]* | *[!_$as_cr_alnum]* )
1121 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1122 esac
1123 eval $ac_envvar=\$ac_optarg
1124 export $ac_envvar ;;
1125
1126 *)
1127 # FIXME: should be removed in autoconf 3.0.
1128 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1129 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1130 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1131 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1132 ;;
1133
1134 esac
1135 done
1136
1137 if test -n "$ac_prev"; then
1138 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1139 as_fn_error $? "missing argument to $ac_option"
1140 fi
1141
1142 if test -n "$ac_unrecognized_opts"; then
1143 case $enable_option_checking in
1144 no) ;;
1145 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1146 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1147 esac
1148 fi
1149
1150 # Check all directory arguments for consistency.
1151 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1152 datadir sysconfdir sharedstatedir localstatedir includedir \
1153 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1154 libdir localedir mandir
1155 do
1156 eval ac_val=\$$ac_var
1157 # Remove trailing slashes.
1158 case $ac_val in
1159 */ )
1160 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1161 eval $ac_var=\$ac_val;;
1162 esac
1163 # Be sure to have absolute directory names.
1164 case $ac_val in
1165 [\\/$]* | ?:[\\/]* ) continue;;
1166 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1167 esac
1168 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1169 done
1170
1171 # There might be people who depend on the old broken behavior: `$host'
1172 # used to hold the argument of --host etc.
1173 # FIXME: To remove some day.
1174 build=$build_alias
1175 host=$host_alias
1176 target=$target_alias
1177
1178 # FIXME: To remove some day.
1179 if test "x$host_alias" != x; then
1180 if test "x$build_alias" = x; then
1181 cross_compiling=maybe
1182 elif test "x$build_alias" != "x$host_alias"; then
1183 cross_compiling=yes
1184 fi
1185 fi
1186
1187 ac_tool_prefix=
1188 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1189
1190 test "$silent" = yes && exec 6>/dev/null
1191
1192
1193 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1194 ac_ls_di=`ls -di .` &&
1195 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1196 as_fn_error $? "working directory cannot be determined"
1197 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1198 as_fn_error $? "pwd does not report name of working directory"
1199
1200
1201 # Find the source files, if location was not specified.
1202 if test -z "$srcdir"; then
1203 ac_srcdir_defaulted=yes
1204 # Try the directory containing this script, then the parent directory.
1205 ac_confdir=`$as_dirname -- "$as_myself" ||
1206 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1207 X"$as_myself" : 'X\(//\)[^/]' \| \
1208 X"$as_myself" : 'X\(//\)$' \| \
1209 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1210 $as_echo X"$as_myself" |
1211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1212 s//\1/
1213 q
1214 }
1215 /^X\(\/\/\)[^/].*/{
1216 s//\1/
1217 q
1218 }
1219 /^X\(\/\/\)$/{
1220 s//\1/
1221 q
1222 }
1223 /^X\(\/\).*/{
1224 s//\1/
1225 q
1226 }
1227 s/.*/./; q'`
1228 srcdir=$ac_confdir
1229 if test ! -r "$srcdir/$ac_unique_file"; then
1230 srcdir=..
1231 fi
1232 else
1233 ac_srcdir_defaulted=no
1234 fi
1235 if test ! -r "$srcdir/$ac_unique_file"; then
1236 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1237 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1238 fi
1239 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1240 ac_abs_confdir=`(
1241 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1242 pwd)`
1243 # When building in place, set srcdir=.
1244 if test "$ac_abs_confdir" = "$ac_pwd"; then
1245 srcdir=.
1246 fi
1247 # Remove unnecessary trailing slashes from srcdir.
1248 # Double slashes in file names in object file debugging info
1249 # mess up M-x gdb in Emacs.
1250 case $srcdir in
1251 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1252 esac
1253 for ac_var in $ac_precious_vars; do
1254 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1255 eval ac_env_${ac_var}_value=\$${ac_var}
1256 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1257 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1258 done
1259
1260 #
1261 # Report the --help message.
1262 #
1263 if test "$ac_init_help" = "long"; then
1264 # Omit some internal or obsolete options to make the list less imposing.
1265 # This message is too long to be a string in the A/UX 3.1 sh.
1266 cat <<_ACEOF
1267 \`configure' configures Gauche-gl 0.6 to adapt to many kinds of systems.
1268
1269 Usage: $0 [OPTION]... [VAR=VALUE]...
1270
1271 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1272 VAR=VALUE. See below for descriptions of some of the useful variables.
1273
1274 Defaults for the options are specified in brackets.
1275
1276 Configuration:
1277 -h, --help display this help and exit
1278 --help=short display options specific to this package
1279 --help=recursive display the short help of all the included packages
1280 -V, --version display version information and exit
1281 -q, --quiet, --silent do not print \`checking ...' messages
1282 --cache-file=FILE cache test results in FILE [disabled]
1283 -C, --config-cache alias for \`--cache-file=config.cache'
1284 -n, --no-create do not create output files
1285 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1286
1287 Installation directories:
1288 --prefix=PREFIX install architecture-independent files in PREFIX
1289 [$ac_default_prefix]
1290 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1291 [PREFIX]
1292
1293 By default, \`make install' will install all the files in
1294 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1295 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1296 for instance \`--prefix=\$HOME'.
1297
1298 For better control, use the options below.
1299
1300 Fine tuning of the installation directories:
1301 --bindir=DIR user executables [EPREFIX/bin]
1302 --sbindir=DIR system admin executables [EPREFIX/sbin]
1303 --libexecdir=DIR program executables [EPREFIX/libexec]
1304 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1305 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1306 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1307 --libdir=DIR object code libraries [EPREFIX/lib]
1308 --includedir=DIR C header files [PREFIX/include]
1309 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1310 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1311 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1312 --infodir=DIR info documentation [DATAROOTDIR/info]
1313 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1314 --mandir=DIR man documentation [DATAROOTDIR/man]
1315 --docdir=DIR documentation root [DATAROOTDIR/doc/gauche-gl]
1316 --htmldir=DIR html documentation [DOCDIR]
1317 --dvidir=DIR dvi documentation [DOCDIR]
1318 --pdfdir=DIR pdf documentation [DOCDIR]
1319 --psdir=DIR ps documentation [DOCDIR]
1320 _ACEOF
1321
1322 cat <<\_ACEOF
1323
1324 X features:
1325 --x-includes=DIR X include files are in DIR
1326 --x-libraries=DIR X library files are in DIR
1327
1328 System types:
1329 --build=BUILD configure for building on BUILD [guessed]
1330 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1331 --target=TARGET configure for building compilers for TARGET [HOST]
1332 _ACEOF
1333 fi
1334
1335 if test -n "$ac_init_help"; then
1336 case $ac_init_help in
1337 short | recursive ) echo "Configuration of Gauche-gl 0.6:";;
1338 esac
1339 cat <<\_ACEOF
1340
1341 Optional Features:
1342 --disable-option-checking ignore unrecognized --enable/--with options
1343 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1344 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1345 --enable-cg Enable NVidia's Cg binding.
1346
1347 Optional Packages:
1348 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1349 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1350 --with-x use the X Window System
1351 --with-glut=PATH: Use GLUT library installed under PATH.
1352 By default, Gauche-gl assumes GLUT is installed in the system standard
1353 location. If you do not want to use GLUT support, specify --with-glut=no.
1354 On MinGW you can statically link freeglut included in the source.
1355 If you want to choose so, say --with-glut=mingw-static.
1356
1357 Some influential environment variables:
1358 XMKMF Path to xmkmf, Makefile generator for X Window System
1359 CC C compiler command
1360 CFLAGS C compiler flags
1361 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1362 nonstandard directory <lib dir>
1363 LIBS libraries to pass to the linker, e.g. -l<library>
1364 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1365 you have headers in a nonstandard directory <include dir>
1366 CPP C preprocessor
1367
1368 Use these variables to override the choices made by `configure' or to help
1369 it to find libraries and programs with nonstandard names/locations.
1370
1371 Report bugs to <[email protected]>.
1372 _ACEOF
1373 ac_status=$?
1374 fi
1375
1376 if test "$ac_init_help" = "recursive"; then
1377 # If there are subdirs, report their specific --help.
1378 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1379 test -d "$ac_dir" ||
1380 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1381 continue
1382 ac_builddir=.
1383
1384 case "$ac_dir" in
1385 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1386 *)
1387 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1388 # A ".." for each directory in $ac_dir_suffix.
1389 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1390 case $ac_top_builddir_sub in
1391 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1392 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1393 esac ;;
1394 esac
1395 ac_abs_top_builddir=$ac_pwd
1396 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1397 # for backward compatibility:
1398 ac_top_builddir=$ac_top_build_prefix
1399
1400 case $srcdir in
1401 .) # We are building in place.
1402 ac_srcdir=.
1403 ac_top_srcdir=$ac_top_builddir_sub
1404 ac_abs_top_srcdir=$ac_pwd ;;
1405 [\\/]* | ?:[\\/]* ) # Absolute name.
1406 ac_srcdir=$srcdir$ac_dir_suffix;
1407 ac_top_srcdir=$srcdir
1408 ac_abs_top_srcdir=$srcdir ;;
1409 *) # Relative name.
1410 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1411 ac_top_srcdir=$ac_top_build_prefix$srcdir
1412 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1413 esac
1414 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1415
1416 cd "$ac_dir" || { ac_status=$?; continue; }
1417 # Check for guested configure.
1418 if test -f "$ac_srcdir/configure.gnu"; then
1419 echo &&
1420 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1421 elif test -f "$ac_srcdir/configure"; then
1422 echo &&
1423 $SHELL "$ac_srcdir/configure" --help=recursive
1424 else
1425 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1426 fi || ac_status=$?
1427 cd "$ac_pwd" || { ac_status=$?; break; }
1428 done
1429 fi
1430
1431 test -n "$ac_init_help" && exit $ac_status
1432 if $ac_init_version; then
1433 cat <<\_ACEOF
1434 Gauche-gl configure 0.6
1435 generated by GNU Autoconf 2.69
1436
1437 Copyright (C) 2012 Free Software Foundation, Inc.
1438 This configure script is free software; the Free Software Foundation
1439 gives unlimited permission to copy, distribute and modify it.
1440 _ACEOF
1441 exit
1442 fi
1443
1444 ## ------------------------ ##
1445 ## Autoconf initialization. ##
1446 ## ------------------------ ##
1447
1448 # ac_fn_c_try_compile LINENO
1449 # --------------------------
1450 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1451 ac_fn_c_try_compile ()
1452 {
1453 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1454 rm -f conftest.$ac_objext
1455 if { { ac_try="$ac_compile"
1456 case "(($ac_try" in
1457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1458 *) ac_try_echo=$ac_try;;
1459 esac
1460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1461 $as_echo "$ac_try_echo"; } >&5
1462 (eval "$ac_compile") 2>conftest.err
1463 ac_status=$?
1464 if test -s conftest.err; then
1465 grep -v '^ *+' conftest.err >conftest.er1
1466 cat conftest.er1 >&5
1467 mv -f conftest.er1 conftest.err
1468 fi
1469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1470 test $ac_status = 0; } && {
1471 test -z "$ac_c_werror_flag" ||
1472 test ! -s conftest.err
1473 } && test -s conftest.$ac_objext; then :
1474 ac_retval=0
1475 else
1476 $as_echo "$as_me: failed program was:" >&5
1477 sed 's/^/| /' conftest.$ac_ext >&5
1478
1479 ac_retval=1
1480 fi
1481 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1482 as_fn_set_status $ac_retval
1483
1484 } # ac_fn_c_try_compile
1485
1486 # ac_fn_c_try_cpp LINENO
1487 # ----------------------
1488 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1489 ac_fn_c_try_cpp ()
1490 {
1491 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1492 if { { ac_try="$ac_cpp conftest.$ac_ext"
1493 case "(($ac_try" in
1494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1495 *) ac_try_echo=$ac_try;;
1496 esac
1497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1498 $as_echo "$ac_try_echo"; } >&5
1499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1500 ac_status=$?
1501 if test -s conftest.err; then
1502 grep -v '^ *+' conftest.err >conftest.er1
1503 cat conftest.er1 >&5
1504 mv -f conftest.er1 conftest.err
1505 fi
1506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1507 test $ac_status = 0; } > conftest.i && {
1508 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1509 test ! -s conftest.err
1510 }; then :
1511 ac_retval=0
1512 else
1513 $as_echo "$as_me: failed program was:" >&5
1514 sed 's/^/| /' conftest.$ac_ext >&5
1515
1516 ac_retval=1
1517 fi
1518 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1519 as_fn_set_status $ac_retval
1520
1521 } # ac_fn_c_try_cpp
1522
1523 # ac_fn_c_try_link LINENO
1524 # -----------------------
1525 # Try to link conftest.$ac_ext, and return whether this succeeded.
1526 ac_fn_c_try_link ()
1527 {
1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529 rm -f conftest.$ac_objext conftest$ac_exeext
1530 if { { ac_try="$ac_link"
1531 case "(($ac_try" in
1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533 *) ac_try_echo=$ac_try;;
1534 esac
1535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536 $as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_link") 2>conftest.err
1538 ac_status=$?
1539 if test -s conftest.err; then
1540 grep -v '^ *+' conftest.err >conftest.er1
1541 cat conftest.er1 >&5
1542 mv -f conftest.er1 conftest.err
1543 fi
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } && {
1546 test -z "$ac_c_werror_flag" ||
1547 test ! -s conftest.err
1548 } && test -s conftest$ac_exeext && {
1549 test "$cross_compiling" = yes ||
1550 test -x conftest$ac_exeext
1551 }; then :
1552 ac_retval=0
1553 else
1554 $as_echo "$as_me: failed program was:" >&5
1555 sed 's/^/| /' conftest.$ac_ext >&5
1556
1557 ac_retval=1
1558 fi
1559 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1560 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1561 # interfere with the next link command; also delete a directory that is
1562 # left behind by Apple's compiler. We do this before executing the actions.
1563 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1564 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1565 as_fn_set_status $ac_retval
1566
1567 } # ac_fn_c_try_link
1568
1569 # ac_fn_c_check_func LINENO FUNC VAR
1570 # ----------------------------------
1571 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1572 ac_fn_c_check_func ()
1573 {
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1576 $as_echo_n "checking for $2... " >&6; }
1577 if eval \${$3+:} false; then :
1578 $as_echo_n "(cached) " >&6
1579 else
1580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1581 /* end confdefs.h. */
1582 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1584 #define $2 innocuous_$2
1585
1586 /* System header to define __stub macros and hopefully few prototypes,
1587 which can conflict with char $2 (); below.
1588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1589 <limits.h> exists even on freestanding compilers. */
1590
1591 #ifdef __STDC__
1592 # include <limits.h>
1593 #else
1594 # include <assert.h>
1595 #endif
1596
1597 #undef $2
1598
1599 /* Override any GCC internal prototype to avoid an error.
1600 Use char because int might match the return type of a GCC
1601 builtin and then its argument prototype would still apply. */
1602 #ifdef __cplusplus
1603 extern "C"
1604 #endif
1605 char $2 ();
1606 /* The GNU C library defines this for functions which it implements
1607 to always fail with ENOSYS. Some functions are actually named
1608 something starting with __ and the normal name is an alias. */
1609 #if defined __stub_$2 || defined __stub___$2
1610 choke me
1611 #endif
1612
1613 int
1614 main ()
1615 {
1616 return $2 ();
1617 ;
1618 return 0;
1619 }
1620 _ACEOF
1621 if ac_fn_c_try_link "$LINENO"; then :
1622 eval "$3=yes"
1623 else
1624 eval "$3=no"
1625 fi
1626 rm -f core conftest.err conftest.$ac_objext \
1627 conftest$ac_exeext conftest.$ac_ext
1628 fi
1629 eval ac_res=\$$3
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1631 $as_echo "$ac_res" >&6; }
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633
1634 } # ac_fn_c_check_func
1635
1636 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1637 # -------------------------------------------------------
1638 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1639 # the include files in INCLUDES and setting the cache variable VAR
1640 # accordingly.
1641 ac_fn_c_check_header_mongrel ()
1642 {
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 if eval \${$3+:} false; then :
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1646 $as_echo_n "checking for $2... " >&6; }
1647 if eval \${$3+:} false; then :
1648 $as_echo_n "(cached) " >&6
1649 fi
1650 eval ac_res=\$$3
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1652 $as_echo "$ac_res" >&6; }
1653 else
1654 # Is the header compilable?
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1656 $as_echo_n "checking $2 usability... " >&6; }
1657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1658 /* end confdefs.h. */
1659 $4
1660 #include <$2>
1661 _ACEOF
1662 if ac_fn_c_try_compile "$LINENO"; then :
1663 ac_header_compiler=yes
1664 else
1665 ac_header_compiler=no
1666 fi
1667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1669 $as_echo "$ac_header_compiler" >&6; }
1670
1671 # Is the header present?
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1673 $as_echo_n "checking $2 presence... " >&6; }
1674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1675 /* end confdefs.h. */
1676 #include <$2>
1677 _ACEOF
1678 if ac_fn_c_try_cpp "$LINENO"; then :
1679 ac_header_preproc=yes
1680 else
1681 ac_header_preproc=no
1682 fi
1683 rm -f conftest.err conftest.i conftest.$ac_ext
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1685 $as_echo "$ac_header_preproc" >&6; }
1686
1687 # So? What about this header?
1688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1689 yes:no: )
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1691 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1693 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1694 ;;
1695 no:yes:* )
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1697 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1699 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1701 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1703 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1705 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1706 ( $as_echo "## ---------------------------- ##
1707 ## Report this to [email protected] ##
1708 ## ---------------------------- ##"
1709 ) | sed "s/^/$as_me: WARNING: /" >&2
1710 ;;
1711 esac
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713 $as_echo_n "checking for $2... " >&6; }
1714 if eval \${$3+:} false; then :
1715 $as_echo_n "(cached) " >&6
1716 else
1717 eval "$3=\$ac_header_compiler"
1718 fi
1719 eval ac_res=\$$3
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1721 $as_echo "$ac_res" >&6; }
1722 fi
1723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724
1725 } # ac_fn_c_check_header_mongrel
1726
1727 # ac_fn_c_try_run LINENO
1728 # ----------------------
1729 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1730 # that executables *can* be run.
1731 ac_fn_c_try_run ()
1732 {
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 if { { ac_try="$ac_link"
1735 case "(($ac_try" in
1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737 *) ac_try_echo=$ac_try;;
1738 esac
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741 (eval "$ac_link") 2>&5
1742 ac_status=$?
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1745 { { case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_try") 2>&5
1752 ac_status=$?
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; }; }; then :
1755 ac_retval=0
1756 else
1757 $as_echo "$as_me: program exited with status $ac_status" >&5
1758 $as_echo "$as_me: failed program was:" >&5
1759 sed 's/^/| /' conftest.$ac_ext >&5
1760
1761 ac_retval=$ac_status
1762 fi
1763 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765 as_fn_set_status $ac_retval
1766
1767 } # ac_fn_c_try_run
1768
1769 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1770 # -------------------------------------------------------
1771 # Tests whether HEADER exists and can be compiled using the include files in
1772 # INCLUDES, setting the cache variable VAR accordingly.
1773 ac_fn_c_check_header_compile ()
1774 {
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1777 $as_echo_n "checking for $2... " >&6; }
1778 if eval \${$3+:} false; then :
1779 $as_echo_n "(cached) " >&6
1780 else
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h. */
1783 $4
1784 #include <$2>
1785 _ACEOF
1786 if ac_fn_c_try_compile "$LINENO"; then :
1787 eval "$3=yes"
1788 else
1789 eval "$3=no"
1790 fi
1791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792 fi
1793 eval ac_res=\$$3
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795 $as_echo "$ac_res" >&6; }
1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797
1798 } # ac_fn_c_check_header_compile
1799 cat >config.log <<_ACEOF
1800 This file contains any messages produced by compilers while
1801 running configure, to aid debugging if configure makes a mistake.
1802
1803 It was created by Gauche-gl $as_me 0.6, which was
1804 generated by GNU Autoconf 2.69. Invocation command line was
1805
1806 $ $0 $@
1807
1808 _ACEOF
1809 exec 5>>config.log
1810 {
1811 cat <<_ASUNAME
1812 ## --------- ##
1813 ## Platform. ##
1814 ## --------- ##
1815
1816 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1817 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1818 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1819 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1820 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1821
1822 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1823 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1824
1825 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1826 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1827 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1828 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1829 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1830 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1831 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1832
1833 _ASUNAME
1834
1835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836 for as_dir in $PATH
1837 do
1838 IFS=$as_save_IFS
1839 test -z "$as_dir" && as_dir=.
1840 $as_echo "PATH: $as_dir"
1841 done
1842 IFS=$as_save_IFS
1843
1844 } >&5
1845
1846 cat >&5 <<_ACEOF
1847
1848
1849 ## ----------- ##
1850 ## Core tests. ##
1851 ## ----------- ##
1852
1853 _ACEOF
1854
1855
1856 # Keep a trace of the command line.
1857 # Strip out --no-create and --no-recursion so they do not pile up.
1858 # Strip out --silent because we don't want to record it for future runs.
1859 # Also quote any args containing shell meta-characters.
1860 # Make two passes to allow for proper duplicate-argument suppression.
1861 ac_configure_args=
1862 ac_configure_args0=
1863 ac_configure_args1=
1864 ac_must_keep_next=false
1865 for ac_pass in 1 2
1866 do
1867 for ac_arg
1868 do
1869 case $ac_arg in
1870 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1871 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1872 | -silent | --silent | --silen | --sile | --sil)
1873 continue ;;
1874 *\'*)
1875 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1876 esac
1877 case $ac_pass in
1878 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1879 2)
1880 as_fn_append ac_configure_args1 " '$ac_arg'"
1881 if test $ac_must_keep_next = true; then
1882 ac_must_keep_next=false # Got value, back to normal.
1883 else
1884 case $ac_arg in
1885 *=* | --config-cache | -C | -disable-* | --disable-* \
1886 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1887 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1888 | -with-* | --with-* | -without-* | --without-* | --x)
1889 case "$ac_configure_args0 " in
1890 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1891 esac
1892 ;;
1893 -* ) ac_must_keep_next=true ;;
1894 esac
1895 fi
1896 as_fn_append ac_configure_args " '$ac_arg'"
1897 ;;
1898 esac
1899 done
1900 done
1901 { ac_configure_args0=; unset ac_configure_args0;}
1902 { ac_configure_args1=; unset ac_configure_args1;}
1903
1904 # When interrupted or exit'd, cleanup temporary files, and complete
1905 # config.log. We remove comments because anyway the quotes in there
1906 # would cause problems or look ugly.
1907 # WARNING: Use '\'' to represent an apostrophe within the trap.
1908 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1909 trap 'exit_status=$?
1910 # Save into config.log some information that might help in debugging.
1911 {
1912 echo
1913
1914 $as_echo "## ---------------- ##
1915 ## Cache variables. ##
1916 ## ---------------- ##"
1917 echo
1918 # The following way of writing the cache mishandles newlines in values,
1919 (
1920 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1921 eval ac_val=\$$ac_var
1922 case $ac_val in #(
1923 *${as_nl}*)
1924 case $ac_var in #(
1925 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1926 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1927 esac
1928 case $ac_var in #(
1929 _ | IFS | as_nl) ;; #(
1930 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1931 *) { eval $ac_var=; unset $ac_var;} ;;
1932 esac ;;
1933 esac
1934 done
1935 (set) 2>&1 |
1936 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1937 *${as_nl}ac_space=\ *)
1938 sed -n \
1939 "s/'\''/'\''\\\\'\'''\''/g;
1940 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1941 ;; #(
1942 *)
1943 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1944 ;;
1945 esac |
1946 sort
1947 )
1948 echo
1949
1950 $as_echo "## ----------------- ##
1951 ## Output variables. ##
1952 ## ----------------- ##"
1953 echo
1954 for ac_var in $ac_subst_vars
1955 do
1956 eval ac_val=\$$ac_var
1957 case $ac_val in
1958 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1959 esac
1960 $as_echo "$ac_var='\''$ac_val'\''"
1961 done | sort
1962 echo
1963
1964 if test -n "$ac_subst_files"; then
1965 $as_echo "## ------------------- ##
1966 ## File substitutions. ##
1967 ## ------------------- ##"
1968 echo
1969 for ac_var in $ac_subst_files
1970 do
1971 eval ac_val=\$$ac_var
1972 case $ac_val in
1973 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1974 esac
1975 $as_echo "$ac_var='\''$ac_val'\''"
1976 done | sort
1977 echo
1978 fi
1979
1980 if test -s confdefs.h; then
1981 $as_echo "## ----------- ##
1982 ## confdefs.h. ##
1983 ## ----------- ##"
1984 echo
1985 cat confdefs.h
1986 echo
1987 fi
1988 test "$ac_signal" != 0 &&
1989 $as_echo "$as_me: caught signal $ac_signal"
1990 $as_echo "$as_me: exit $exit_status"
1991 } >&5
1992 rm -f core *.core core.conftest.* &&
1993 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1994 exit $exit_status
1995 ' 0
1996 for ac_signal in 1 2 13 15; do
1997 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1998 done
1999 ac_signal=0
2000
2001 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2002 rm -f -r conftest* confdefs.h
2003
2004 $as_echo "/* confdefs.h */" > confdefs.h
2005
2006 # Predefined preprocessor variables.
2007
2008 cat >>confdefs.h <<_ACEOF
2009 #define PACKAGE_NAME "$PACKAGE_NAME"
2010 _ACEOF
2011
2012 cat >>confdefs.h <<_ACEOF
2013 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2014 _ACEOF
2015
2016 cat >>confdefs.h <<_ACEOF
2017 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2018 _ACEOF
2019
2020 cat >>confdefs.h <<_ACEOF
2021 #define PACKAGE_STRING "$PACKAGE_STRING"
2022 _ACEOF
2023
2024 cat >>confdefs.h <<_ACEOF
2025 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2026 _ACEOF
2027
2028 cat >>confdefs.h <<_ACEOF
2029 #define PACKAGE_URL "$PACKAGE_URL"
2030 _ACEOF
2031
2032
2033 # Let the site file select an alternate cache file if it wants to.
2034 # Prefer an explicitly selected file to automatically selected ones.
2035 ac_site_file1=NONE
2036 ac_site_file2=NONE
2037 if test -n "$CONFIG_SITE"; then
2038 # We do not want a PATH search for config.site.
2039 case $CONFIG_SITE in #((
2040 -*) ac_site_file1=./$CONFIG_SITE;;
2041 */*) ac_site_file1=$CONFIG_SITE;;
2042 *) ac_site_file1=./$CONFIG_SITE;;
2043 esac
2044 elif test "x$prefix" != xNONE; then
2045 ac_site_file1=$prefix/share/config.site
2046 ac_site_file2=$prefix/etc/config.site
2047 else
2048 ac_site_file1=$ac_default_prefix/share/config.site
2049 ac_site_file2=$ac_default_prefix/etc/config.site
2050 fi
2051 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2052 do
2053 test "x$ac_site_file" = xNONE && continue
2054 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2056 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2057 sed 's/^/| /' "$ac_site_file" >&5
2058 . "$ac_site_file" \
2059 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2061 as_fn_error $? "failed to load site script $ac_site_file
2062 See \`config.log' for more details" "$LINENO" 5; }
2063 fi
2064 done
2065
2066 if test -r "$cache_file"; then
2067 # Some versions of bash will fail to source /dev/null (special files
2068 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2069 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2071 $as_echo "$as_me: loading cache $cache_file" >&6;}
2072 case $cache_file in
2073 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2074 *) . "./$cache_file";;
2075 esac
2076 fi
2077 else
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2079 $as_echo "$as_me: creating cache $cache_file" >&6;}
2080 >$cache_file
2081 fi
2082
2083 # Check that the precious variables saved in the cache have kept the same
2084 # value.
2085 ac_cache_corrupted=false
2086 for ac_var in $ac_precious_vars; do
2087 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2088 eval ac_new_set=\$ac_env_${ac_var}_set
2089 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2090 eval ac_new_val=\$ac_env_${ac_var}_value
2091 case $ac_old_set,$ac_new_set in
2092 set,)
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2094 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2095 ac_cache_corrupted=: ;;
2096 ,set)
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2098 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2099 ac_cache_corrupted=: ;;
2100 ,);;
2101 *)
2102 if test "x$ac_old_val" != "x$ac_new_val"; then
2103 # differences in whitespace do not lead to failure.
2104 ac_old_val_w=`echo x $ac_old_val`
2105 ac_new_val_w=`echo x $ac_new_val`
2106 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2108 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2109 ac_cache_corrupted=:
2110 else
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2112 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2113 eval $ac_var=\$ac_old_val
2114 fi
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2116 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2118 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2119 fi;;
2120 esac
2121 # Pass precious variables to config.status.
2122 if test "$ac_new_set" = set; then
2123 case $ac_new_val in
2124 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2125 *) ac_arg=$ac_var=$ac_new_val ;;
2126 esac
2127 case " $ac_configure_args " in
2128 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2129 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2130 esac
2131 fi
2132 done
2133 if $ac_cache_corrupted; then
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2137 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2138 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2139 fi
2140 ## -------------------- ##
2141 ## Main body of script. ##
2142 ## -------------------- ##
2143
2144 ac_ext=c
2145 ac_cpp='$CPP $CPPFLAGS'
2146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2149
2150
2151 ac_aux_dir=
2152 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2153 if test -f "$ac_dir/install-sh"; then
2154 ac_aux_dir=$ac_dir
2155 ac_install_sh="$ac_aux_dir/install-sh -c"
2156 break
2157 elif test -f "$ac_dir/install.sh"; then
2158 ac_aux_dir=$ac_dir
2159 ac_install_sh="$ac_aux_dir/install.sh -c"
2160 break
2161 elif test -f "$ac_dir/shtool"; then
2162 ac_aux_dir=$ac_dir
2163 ac_install_sh="$ac_aux_dir/shtool install -c"
2164 break
2165 fi
2166 done
2167 if test -z "$ac_aux_dir"; then
2168 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2169 fi
2170
2171 # These three variables are undocumented and unsupported,
2172 # and are intended to be withdrawn in a future Autoconf release.
2173 # They can cause serious problems if a builder's source tree is in a directory
2174 # whose full name contains unusual characters.
2175 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2176 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2177 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2178
2179
2180 # Make sure we can run config.sub.
2181 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2182 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2183
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2185 $as_echo_n "checking build system type... " >&6; }
2186 if ${ac_cv_build+:} false; then :
2187 $as_echo_n "(cached) " >&6
2188 else
2189 ac_build_alias=$build_alias
2190 test "x$ac_build_alias" = x &&
2191 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2192 test "x$ac_build_alias" = x &&
2193 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2194 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2195 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2196
2197 fi
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2199 $as_echo "$ac_cv_build" >&6; }
2200 case $ac_cv_build in
2201 *-*-*) ;;
2202 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2203 esac
2204 build=$ac_cv_build
2205 ac_save_IFS=$IFS; IFS='-'
2206 set x $ac_cv_build
2207 shift
2208 build_cpu=$1
2209 build_vendor=$2
2210 shift; shift
2211 # Remember, the first character of IFS is used to create $*,
2212 # except with old shells:
2213 build_os=$*
2214 IFS=$ac_save_IFS
2215 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2216
2217
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2219 $as_echo_n "checking host system type... " >&6; }
2220 if ${ac_cv_host+:} false; then :
2221 $as_echo_n "(cached) " >&6
2222 else
2223 if test "x$host_alias" = x; then
2224 ac_cv_host=$ac_cv_build
2225 else
2226 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2227 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2228 fi
2229
2230 fi
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2232 $as_echo "$ac_cv_host" >&6; }
2233 case $ac_cv_host in
2234 *-*-*) ;;
2235 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2236 esac
2237 host=$ac_cv_host
2238 ac_save_IFS=$IFS; IFS='-'
2239 set x $ac_cv_host
2240 shift
2241 host_cpu=$1
2242 host_vendor=$2
2243 shift; shift
2244 # Remember, the first character of IFS is used to create $*,
2245 # except with old shells:
2246 host_os=$*
2247 IFS=$ac_save_IFS
2248 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2249
2250
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2252 $as_echo_n "checking target system type... " >&6; }
2253 if ${ac_cv_target+:} false; then :
2254 $as_echo_n "(cached) " >&6
2255 else
2256 if test "x$target_alias" = x; then
2257 ac_cv_target=$ac_cv_host
2258 else
2259 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2260 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2261 fi
2262
2263 fi
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2265 $as_echo "$ac_cv_target" >&6; }
2266 case $ac_cv_target in
2267 *-*-*) ;;
2268 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2269 esac
2270 target=$ac_cv_target
2271 ac_save_IFS=$IFS; IFS='-'
2272 set x $ac_cv_target
2273 shift
2274 target_cpu=$1
2275 target_vendor=$2
2276 shift; shift
2277 # Remember, the first character of IFS is used to create $*,
2278 # except with old shells:
2279 target_os=$*
2280 IFS=$ac_save_IFS
2281 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2282
2283
2284 # The aliases save the names the user supplied, while $host etc.
2285 # will get canonicalized.
2286 test -n "$target_alias" &&
2287 test "$program_prefix$program_suffix$program_transform_name" = \
2288 NONENONEs,x,x, &&
2289 program_prefix=${target_alias}-
2290
2291
2292 ac_ext=c
2293 ac_cpp='$CPP $CPPFLAGS'
2294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2297 if test -n "$ac_tool_prefix"; then
2298 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2299 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2301 $as_echo_n "checking for $ac_word... " >&6; }
2302 if ${ac_cv_prog_CC+:} false; then :
2303 $as_echo_n "(cached) " >&6
2304 else
2305 if test -n "$CC"; then
2306 ac_cv_prog_CC="$CC" # Let the user override the test.
2307 else
2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 for as_dir in $PATH
2310 do
2311 IFS=$as_save_IFS
2312 test -z "$as_dir" && as_dir=.
2313 for ac_exec_ext in '' $ac_executable_extensions; do
2314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2315 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2317 break 2
2318 fi
2319 done
2320 done
2321 IFS=$as_save_IFS
2322
2323 fi
2324 fi
2325 CC=$ac_cv_prog_CC
2326 if test -n "$CC"; then
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2328 $as_echo "$CC" >&6; }
2329 else
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2331 $as_echo "no" >&6; }
2332 fi
2333
2334
2335 fi
2336 if test -z "$ac_cv_prog_CC"; then
2337 ac_ct_CC=$CC
2338 # Extract the first word of "gcc", so it can be a program name with args.
2339 set dummy gcc; ac_word=$2
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2341 $as_echo_n "checking for $ac_word... " >&6; }
2342 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2343 $as_echo_n "(cached) " >&6
2344 else
2345 if test -n "$ac_ct_CC"; then
2346 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2347 else
2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349 for as_dir in $PATH
2350 do
2351 IFS=$as_save_IFS
2352 test -z "$as_dir" && as_dir=.
2353 for ac_exec_ext in '' $ac_executable_extensions; do
2354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2355 ac_cv_prog_ac_ct_CC="gcc"
2356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2357 break 2
2358 fi
2359 done
2360 done
2361 IFS=$as_save_IFS
2362
2363 fi
2364 fi
2365 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2366 if test -n "$ac_ct_CC"; then
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2368 $as_echo "$ac_ct_CC" >&6; }
2369 else
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2371 $as_echo "no" >&6; }
2372 fi
2373
2374 if test "x$ac_ct_CC" = x; then
2375 CC=""
2376 else
2377 case $cross_compiling:$ac_tool_warned in
2378 yes:)
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2381 ac_tool_warned=yes ;;
2382 esac
2383 CC=$ac_ct_CC
2384 fi
2385 else
2386 CC="$ac_cv_prog_CC"
2387 fi
2388
2389 if test -z "$CC"; then
2390 if test -n "$ac_tool_prefix"; then
2391 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2392 set dummy ${ac_tool_prefix}cc; ac_word=$2
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2394 $as_echo_n "checking for $ac_word... " >&6; }
2395 if ${ac_cv_prog_CC+:} false; then :
2396 $as_echo_n "(cached) " >&6
2397 else
2398 if test -n "$CC"; then
2399 ac_cv_prog_CC="$CC" # Let the user override the test.
2400 else
2401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402 for as_dir in $PATH
2403 do
2404 IFS=$as_save_IFS
2405 test -z "$as_dir" && as_dir=.
2406 for ac_exec_ext in '' $ac_executable_extensions; do
2407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2408 ac_cv_prog_CC="${ac_tool_prefix}cc"
2409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2410 break 2
2411 fi
2412 done
2413 done
2414 IFS=$as_save_IFS
2415
2416 fi
2417 fi
2418 CC=$ac_cv_prog_CC
2419 if test -n "$CC"; then
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2421 $as_echo "$CC" >&6; }
2422 else
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2424 $as_echo "no" >&6; }
2425 fi
2426
2427
2428 fi
2429 fi
2430 if test -z "$CC"; then
2431 # Extract the first word of "cc", so it can be a program name with args.
2432 set dummy cc; ac_word=$2
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2434 $as_echo_n "checking for $ac_word... " >&6; }
2435 if ${ac_cv_prog_CC+:} false; then :
2436 $as_echo_n "(cached) " >&6
2437 else
2438 if test -n "$CC"; then
2439 ac_cv_prog_CC="$CC" # Let the user override the test.
2440 else
2441 ac_prog_rejected=no
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 for as_dir in $PATH
2444 do
2445 IFS=$as_save_IFS
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2449 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2450 ac_prog_rejected=yes
2451 continue
2452 fi
2453 ac_cv_prog_CC="cc"
2454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2455 break 2
2456 fi
2457 done
2458 done
2459 IFS=$as_save_IFS
2460
2461 if test $ac_prog_rejected = yes; then
2462 # We found a bogon in the path, so make sure we never use it.
2463 set dummy $ac_cv_prog_CC
2464 shift
2465 if test $# != 0; then
2466 # We chose a different compiler from the bogus one.
2467 # However, it has the same basename, so the bogon will be chosen
2468 # first if we set CC to just the basename; use the full file name.
2469 shift
2470 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2471 fi
2472 fi
2473 fi
2474 fi
2475 CC=$ac_cv_prog_CC
2476 if test -n "$CC"; then
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2478 $as_echo "$CC" >&6; }
2479 else
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2481 $as_echo "no" >&6; }
2482 fi
2483
2484
2485 fi
2486 if test -z "$CC"; then
2487 if test -n "$ac_tool_prefix"; then
2488 for ac_prog in cl.exe
2489 do
2490 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2491 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2493 $as_echo_n "checking for $ac_word... " >&6; }
2494 if ${ac_cv_prog_CC+:} false; then :
2495 $as_echo_n "(cached) " >&6
2496 else
2497 if test -n "$CC"; then
2498 ac_cv_prog_CC="$CC" # Let the user override the test.
2499 else
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 for as_dir in $PATH
2502 do
2503 IFS=$as_save_IFS
2504 test -z "$as_dir" && as_dir=.
2505 for ac_exec_ext in '' $ac_executable_extensions; do
2506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2507 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2509 break 2
2510 fi
2511 done
2512 done
2513 IFS=$as_save_IFS
2514
2515 fi
2516 fi
2517 CC=$ac_cv_prog_CC
2518 if test -n "$CC"; then
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2520 $as_echo "$CC" >&6; }
2521 else
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2523 $as_echo "no" >&6; }
2524 fi
2525
2526
2527 test -n "$CC" && break
2528 done
2529 fi
2530 if test -z "$CC"; then
2531 ac_ct_CC=$CC
2532 for ac_prog in cl.exe
2533 do
2534 # Extract the first word of "$ac_prog", so it can be a program name with args.
2535 set dummy $ac_prog; ac_word=$2
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2537 $as_echo_n "checking for $ac_word... " >&6; }
2538 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2539 $as_echo_n "(cached) " >&6
2540 else
2541 if test -n "$ac_ct_CC"; then
2542 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2543 else
2544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545 for as_dir in $PATH
2546 do
2547 IFS=$as_save_IFS
2548 test -z "$as_dir" && as_dir=.
2549 for ac_exec_ext in '' $ac_executable_extensions; do
2550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2551 ac_cv_prog_ac_ct_CC="$ac_prog"
2552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2553 break 2
2554 fi
2555 done
2556 done
2557 IFS=$as_save_IFS
2558
2559 fi
2560 fi
2561 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2562 if test -n "$ac_ct_CC"; then
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2564 $as_echo "$ac_ct_CC" >&6; }
2565 else
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2567 $as_echo "no" >&6; }
2568 fi
2569
2570
2571 test -n "$ac_ct_CC" && break
2572 done
2573
2574 if test "x$ac_ct_CC" = x; then
2575 CC=""
2576 else
2577 case $cross_compiling:$ac_tool_warned in
2578 yes:)
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2581 ac_tool_warned=yes ;;
2582 esac
2583 CC=$ac_ct_CC
2584 fi
2585 fi
2586
2587 fi
2588
2589
2590 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2592 as_fn_error $? "no acceptable C compiler found in \$PATH
2593 See \`config.log' for more details" "$LINENO" 5; }
2594
2595 # Provide some information about the compiler.
2596 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2597 set X $ac_compile
2598 ac_compiler=$2
2599 for ac_option in --version -v -V -qversion; do
2600 { { ac_try="$ac_compiler $ac_option >&5"
2601 case "(($ac_try" in
2602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2603 *) ac_try_echo=$ac_try;;
2604 esac
2605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2606 $as_echo "$ac_try_echo"; } >&5
2607 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2608 ac_status=$?
2609 if test -s conftest.err; then
2610 sed '10a\
2611 ... rest of stderr output deleted ...
2612 10q' conftest.err >conftest.er1
2613 cat conftest.er1 >&5
2614 fi
2615 rm -f conftest.er1 conftest.err
2616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2617 test $ac_status = 0; }
2618 done
2619
2620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2621 /* end confdefs.h. */
2622
2623 int
2624 main ()
2625 {
2626
2627 ;
2628 return 0;
2629 }
2630 _ACEOF
2631 ac_clean_files_save=$ac_clean_files
2632 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2633 # Try to create an executable without -o first, disregard a.out.
2634 # It will help us diagnose broken compilers, and finding out an intuition
2635 # of exeext.
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2637 $as_echo_n "checking whether the C compiler works... " >&6; }
2638 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2639
2640 # The possible output files:
2641 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2642
2643 ac_rmfiles=
2644 for ac_file in $ac_files
2645 do
2646 case $ac_file in
2647 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2648 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2649 esac
2650 done
2651 rm -f $ac_rmfiles
2652
2653 if { { ac_try="$ac_link_default"
2654 case "(($ac_try" in
2655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2656 *) ac_try_echo=$ac_try;;
2657 esac
2658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2659 $as_echo "$ac_try_echo"; } >&5
2660 (eval "$ac_link_default") 2>&5
2661 ac_status=$?
2662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2663 test $ac_status = 0; }; then :
2664 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2665 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2666 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2667 # so that the user can short-circuit this test for compilers unknown to
2668 # Autoconf.
2669 for ac_file in $ac_files ''
2670 do
2671 test -f "$ac_file" || continue
2672 case $ac_file in
2673 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2674 ;;
2675 [ab].out )
2676 # We found the default executable, but exeext='' is most
2677 # certainly right.
2678 break;;
2679 *.* )
2680 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2681 then :; else
2682 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2683 fi
2684 # We set ac_cv_exeext here because the later test for it is not
2685 # safe: cross compilers may not add the suffix if given an `-o'
2686 # argument, so we may need to know it at that point already.
2687 # Even if this section looks crufty: it has the advantage of
2688 # actually working.
2689 break;;
2690 * )
2691 break;;
2692 esac
2693 done
2694 test "$ac_cv_exeext" = no && ac_cv_exeext=
2695
2696 else
2697 ac_file=''
2698 fi
2699 if test -z "$ac_file"; then :
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2701 $as_echo "no" >&6; }
2702 $as_echo "$as_me: failed program was:" >&5
2703 sed 's/^/| /' conftest.$ac_ext >&5
2704
2705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2707 as_fn_error 77 "C compiler cannot create executables
2708 See \`config.log' for more details" "$LINENO" 5; }
2709 else
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2711 $as_echo "yes" >&6; }
2712 fi
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2714 $as_echo_n "checking for C compiler default output file name... " >&6; }
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2716 $as_echo "$ac_file" >&6; }
2717 ac_exeext=$ac_cv_exeext
2718
2719 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2720 ac_clean_files=$ac_clean_files_save
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2722 $as_echo_n "checking for suffix of executables... " >&6; }
2723 if { { ac_try="$ac_link"
2724 case "(($ac_try" in
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2727 esac
2728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2729 $as_echo "$ac_try_echo"; } >&5
2730 (eval "$ac_link") 2>&5
2731 ac_status=$?
2732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2733 test $ac_status = 0; }; then :
2734 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2735 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2736 # work properly (i.e., refer to `conftest.exe'), while it won't with
2737 # `rm'.
2738 for ac_file in conftest.exe conftest conftest.*; do
2739 test -f "$ac_file" || continue
2740 case $ac_file in
2741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2742 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2743 break;;
2744 * ) break;;
2745 esac
2746 done
2747 else
2748 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2750 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2751 See \`config.log' for more details" "$LINENO" 5; }
2752 fi
2753 rm -f conftest conftest$ac_cv_exeext
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2755 $as_echo "$ac_cv_exeext" >&6; }
2756
2757 rm -f conftest.$ac_ext
2758 EXEEXT=$ac_cv_exeext
2759 ac_exeext=$EXEEXT
2760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2761 /* end confdefs.h. */
2762 #include <stdio.h>
2763 int
2764 main ()
2765 {
2766 FILE *f = fopen ("conftest.out", "w");
2767 return ferror (f) || fclose (f) != 0;
2768
2769 ;
2770 return 0;
2771 }
2772 _ACEOF
2773 ac_clean_files="$ac_clean_files conftest.out"
2774 # Check that the compiler produces executables we can run. If not, either
2775 # the compiler is broken, or we cross compile.
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2777 $as_echo_n "checking whether we are cross compiling... " >&6; }
2778 if test "$cross_compiling" != yes; then
2779 { { ac_try="$ac_link"
2780 case "(($ac_try" in
2781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782 *) ac_try_echo=$ac_try;;
2783 esac
2784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2785 $as_echo "$ac_try_echo"; } >&5
2786 (eval "$ac_link") 2>&5
2787 ac_status=$?
2788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2789 test $ac_status = 0; }
2790 if { ac_try='./conftest$ac_cv_exeext'
2791 { { case "(($ac_try" in
2792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793 *) ac_try_echo=$ac_try;;
2794 esac
2795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2796 $as_echo "$ac_try_echo"; } >&5
2797 (eval "$ac_try") 2>&5
2798 ac_status=$?
2799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2800 test $ac_status = 0; }; }; then
2801 cross_compiling=no
2802 else
2803 if test "$cross_compiling" = maybe; then
2804 cross_compiling=yes
2805 else
2806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2808 as_fn_error $? "cannot run C compiled programs.
2809 If you meant to cross compile, use \`--host'.
2810 See \`config.log' for more details" "$LINENO" 5; }
2811 fi
2812 fi
2813 fi
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2815 $as_echo "$cross_compiling" >&6; }
2816
2817 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2818 ac_clean_files=$ac_clean_files_save
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2820 $as_echo_n "checking for suffix of object files... " >&6; }
2821 if ${ac_cv_objext+:} false; then :
2822 $as_echo_n "(cached) " >&6
2823 else
2824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2825 /* end confdefs.h. */
2826
2827 int
2828 main ()
2829 {
2830
2831 ;
2832 return 0;
2833 }
2834 _ACEOF
2835 rm -f conftest.o conftest.obj
2836 if { { ac_try="$ac_compile"
2837 case "(($ac_try" in
2838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839 *) ac_try_echo=$ac_try;;
2840 esac
2841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2842 $as_echo "$ac_try_echo"; } >&5
2843 (eval "$ac_compile") 2>&5
2844 ac_status=$?
2845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2846 test $ac_status = 0; }; then :
2847 for ac_file in conftest.o conftest.obj conftest.*; do
2848 test -f "$ac_file" || continue;
2849 case $ac_file in
2850 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2851 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2852 break;;
2853 esac
2854 done
2855 else
2856 $as_echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2858
2859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2861 as_fn_error $? "cannot compute suffix of object files: cannot compile
2862 See \`config.log' for more details" "$LINENO" 5; }
2863 fi
2864 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2865 fi
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2867 $as_echo "$ac_cv_objext" >&6; }
2868 OBJEXT=$ac_cv_objext
2869 ac_objext=$OBJEXT
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2871 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2872 if ${ac_cv_c_compiler_gnu+:} false; then :
2873 $as_echo_n "(cached) " >&6
2874 else
2875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2876 /* end confdefs.h. */
2877
2878 int
2879 main ()
2880 {
2881 #ifndef __GNUC__
2882 choke me
2883 #endif
2884
2885 ;
2886 return 0;
2887 }
2888 _ACEOF
2889 if ac_fn_c_try_compile "$LINENO"; then :
2890 ac_compiler_gnu=yes
2891 else
2892 ac_compiler_gnu=no
2893 fi
2894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2895 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2896
2897 fi
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2899 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2900 if test $ac_compiler_gnu = yes; then
2901 GCC=yes
2902 else
2903 GCC=
2904 fi
2905 ac_test_CFLAGS=${CFLAGS+set}
2906 ac_save_CFLAGS=$CFLAGS
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2908 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2909 if ${ac_cv_prog_cc_g+:} false; then :
2910 $as_echo_n "(cached) " >&6
2911 else
2912 ac_save_c_werror_flag=$ac_c_werror_flag
2913 ac_c_werror_flag=yes
2914 ac_cv_prog_cc_g=no
2915 CFLAGS="-g"
2916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2917 /* end confdefs.h. */
2918
2919 int
2920 main ()
2921 {
2922
2923 ;
2924 return 0;
2925 }
2926 _ACEOF
2927 if ac_fn_c_try_compile "$LINENO"; then :
2928 ac_cv_prog_cc_g=yes
2929 else
2930 CFLAGS=""
2931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2932 /* end confdefs.h. */
2933
2934 int
2935 main ()
2936 {
2937
2938 ;
2939 return 0;
2940 }
2941 _ACEOF
2942 if ac_fn_c_try_compile "$LINENO"; then :
2943
2944 else
2945 ac_c_werror_flag=$ac_save_c_werror_flag
2946 CFLAGS="-g"
2947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2948 /* end confdefs.h. */
2949
2950 int
2951 main ()
2952 {
2953
2954 ;
2955 return 0;
2956 }
2957 _ACEOF
2958 if ac_fn_c_try_compile "$LINENO"; then :
2959 ac_cv_prog_cc_g=yes
2960 fi
2961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2962 fi
2963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2964 fi
2965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2966 ac_c_werror_flag=$ac_save_c_werror_flag
2967 fi
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2969 $as_echo "$ac_cv_prog_cc_g" >&6; }
2970 if test "$ac_test_CFLAGS" = set; then
2971 CFLAGS=$ac_save_CFLAGS
2972 elif test $ac_cv_prog_cc_g = yes; then
2973 if test "$GCC" = yes; then
2974 CFLAGS="-g -O2"
2975 else
2976 CFLAGS="-g"
2977 fi
2978 else
2979 if test "$GCC" = yes; then
2980 CFLAGS="-O2"
2981 else
2982 CFLAGS=
2983 fi
2984 fi
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2986 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2987 if ${ac_cv_prog_cc_c89+:} false; then :
2988 $as_echo_n "(cached) " >&6
2989 else
2990 ac_cv_prog_cc_c89=no
2991 ac_save_CC=$CC
2992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2993 /* end confdefs.h. */
2994 #include <stdarg.h>
2995 #include <stdio.h>
2996 struct stat;
2997 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2998 struct buf { int x; };
2999 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3000 static char *e (p, i)
3001 char **p;
3002 int i;
3003 {
3004 return p[i];
3005 }
3006 static char *f (char * (*g) (char **, int), char **p, ...)
3007 {
3008 char *s;
3009 va_list v;
3010 va_start (v,p);
3011 s = g (p, va_arg (v,int));
3012 va_end (v);
3013 return s;
3014 }
3015
3016 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3017 function prototypes and stuff, but not '\xHH' hex character constants.
3018 These don't provoke an error unfortunately, instead are silently treated
3019 as 'x'. The following induces an error, until -std is added to get
3020 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3021 array size at least. It's necessary to write '\x00'==0 to get something
3022 that's true only with -std. */
3023 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3024
3025 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3026 inside strings and character constants. */
3027 #define FOO(x) 'x'
3028 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3029
3030 int test (int i, double x);
3031 struct s1 {int (*f) (int a);};
3032 struct s2 {int (*f) (double a);};
3033 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3034 int argc;
3035 char **argv;
3036 int
3037 main ()
3038 {
3039 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3040 ;
3041 return 0;
3042 }
3043 _ACEOF
3044 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3045 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3046 do
3047 CC="$ac_save_CC $ac_arg"
3048 if ac_fn_c_try_compile "$LINENO"; then :
3049 ac_cv_prog_cc_c89=$ac_arg
3050 fi
3051 rm -f core conftest.err conftest.$ac_objext
3052 test "x$ac_cv_prog_cc_c89" != "xno" && break
3053 done
3054 rm -f conftest.$ac_ext
3055 CC=$ac_save_CC
3056
3057 fi
3058 # AC_CACHE_VAL
3059 case "x$ac_cv_prog_cc_c89" in
3060 x)
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3062 $as_echo "none needed" >&6; } ;;
3063 xno)
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3065 $as_echo "unsupported" >&6; } ;;
3066 *)
3067 CC="$CC $ac_cv_prog_cc_c89"
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3069 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3070 esac
3071 if test "x$ac_cv_prog_cc_c89" != xno; then :
3072
3073 fi
3074
3075 ac_ext=c
3076 ac_cpp='$CPP $CPPFLAGS'
3077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3080
3081
3082 ac_ext=c
3083 ac_cpp='$CPP $CPPFLAGS'
3084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3088 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3089 # On Suns, sometimes $CPP names a directory.
3090 if test -n "$CPP" && test -d "$CPP"; then
3091 CPP=
3092 fi
3093 if test -z "$CPP"; then
3094 if ${ac_cv_prog_CPP+:} false; then :
3095 $as_echo_n "(cached) " >&6
3096 else
3097 # Double quotes because CPP needs to be expanded
3098 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3099 do
3100 ac_preproc_ok=false
3101 for ac_c_preproc_warn_flag in '' yes
3102 do
3103 # Use a header file that comes with gcc, so configuring glibc
3104 # with a fresh cross-compiler works.
3105 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3106 # <limits.h> exists even on freestanding compilers.
3107 # On the NeXT, cc -E runs the code through the compiler's parser,
3108 # not just through cpp. "Syntax error" is here to catch this case.
3109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3110 /* end confdefs.h. */
3111 #ifdef __STDC__
3112 # include <limits.h>
3113 #else
3114 # include <assert.h>
3115 #endif
3116 Syntax error
3117 _ACEOF
3118 if ac_fn_c_try_cpp "$LINENO"; then :
3119
3120 else
3121 # Broken: fails on valid input.
3122 continue
3123 fi
3124 rm -f conftest.err conftest.i conftest.$ac_ext
3125
3126 # OK, works on sane cases. Now check whether nonexistent headers
3127 # can be detected and how.
3128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3129 /* end confdefs.h. */
3130 #include <ac_nonexistent.h>
3131 _ACEOF
3132 if ac_fn_c_try_cpp "$LINENO"; then :
3133 # Broken: success on invalid input.
3134 continue
3135 else
3136 # Passes both tests.
3137 ac_preproc_ok=:
3138 break
3139 fi
3140 rm -f conftest.err conftest.i conftest.$ac_ext
3141
3142 done
3143 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3144 rm -f conftest.i conftest.err conftest.$ac_ext
3145 if $ac_preproc_ok; then :
3146 break
3147 fi
3148
3149 done
3150 ac_cv_prog_CPP=$CPP
3151
3152 fi
3153 CPP=$ac_cv_prog_CPP
3154 else
3155 ac_cv_prog_CPP=$CPP
3156 fi
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3158 $as_echo "$CPP" >&6; }
3159 ac_preproc_ok=false
3160 for ac_c_preproc_warn_flag in '' yes
3161 do
3162 # Use a header file that comes with gcc, so configuring glibc
3163 # with a fresh cross-compiler works.
3164 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3165 # <limits.h> exists even on freestanding compilers.
3166 # On the NeXT, cc -E runs the code through the compiler's parser,
3167 # not just through cpp. "Syntax error" is here to catch this case.
3168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3169 /* end confdefs.h. */
3170 #ifdef __STDC__
3171 # include <limits.h>
3172 #else
3173 # include <assert.h>
3174 #endif
3175 Syntax error
3176 _ACEOF
3177 if ac_fn_c_try_cpp "$LINENO"; then :
3178
3179 else
3180 # Broken: fails on valid input.
3181 continue
3182 fi
3183 rm -f conftest.err conftest.i conftest.$ac_ext
3184
3185 # OK, works on sane cases. Now check whether nonexistent headers
3186 # can be detected and how.
3187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3188 /* end confdefs.h. */
3189 #include <ac_nonexistent.h>
3190 _ACEOF
3191 if ac_fn_c_try_cpp "$LINENO"; then :
3192 # Broken: success on invalid input.
3193 continue
3194 else
3195 # Passes both tests.
3196 ac_preproc_ok=:
3197 break
3198 fi
3199 rm -f conftest.err conftest.i conftest.$ac_ext
3200
3201 done
3202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3203 rm -f conftest.i conftest.err conftest.$ac_ext
3204 if $ac_preproc_ok; then :
3205
3206 else
3207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3209 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3210 See \`config.log' for more details" "$LINENO" 5; }
3211 fi
3212
3213 ac_ext=c
3214 ac_cpp='$CPP $CPPFLAGS'
3215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3218
3219
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
3221 $as_echo_n "checking for X... " >&6; }
3222
3223
3224 # Check whether --with-x was given.
3225 if test "${with_x+set}" = set; then :
3226 withval=$with_x;
3227 fi
3228
3229 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3230 if test "x$with_x" = xno; then
3231 # The user explicitly disabled X.
3232 have_x=disabled
3233 else
3234 case $x_includes,$x_libraries in #(
3235 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
3236 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
3237 $as_echo_n "(cached) " >&6
3238 else
3239 # One or both of the vars are not set, and there is no cached value.
3240 ac_x_includes=no ac_x_libraries=no
3241 rm -f -r conftest.dir
3242 if mkdir conftest.dir; then
3243 cd conftest.dir
3244 cat >Imakefile <<'_ACEOF'
3245 incroot:
3246 @echo incroot='${INCROOT}'
3247 usrlibdir:
3248 @echo usrlibdir='${USRLIBDIR}'
3249 libdir:
3250 @echo libdir='${LIBDIR}'
3251 _ACEOF
3252 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3253 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3254 for ac_var in incroot usrlibdir libdir; do
3255 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3256 done
3257 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3258 for ac_extension in a so sl dylib la dll; do
3259 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3260 test -f "$ac_im_libdir/libX11.$ac_extension"; then
3261 ac_im_usrlibdir=$ac_im_libdir; break
3262 fi
3263 done
3264 # Screen out bogus values from the imake configuration. They are
3265 # bogus both because they are the default anyway, and because
3266 # using them would break gcc on systems where it needs fixed includes.
3267 case $ac_im_incroot in
3268 /usr/include) ac_x_includes= ;;
3269 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3270 esac
3271 case $ac_im_usrlibdir in
3272 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
3273 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3274 esac
3275 fi
3276 cd ..
3277 rm -f -r conftest.dir
3278 fi
3279
3280 # Standard set of common directories for X headers.
3281 # Check X11 before X11Rn because it is often a symlink to the current release.
3282 ac_x_header_dirs='
3283 /usr/X11/include
3284 /usr/X11R7/include
3285 /usr/X11R6/include
3286 /usr/X11R5/include
3287 /usr/X11R4/include
3288
3289 /usr/include/X11
3290 /usr/include/X11R7
3291 /usr/include/X11R6
3292 /usr/include/X11R5
3293 /usr/include/X11R4
3294
3295 /usr/local/X11/include
3296 /usr/local/X11R7/include
3297 /usr/local/X11R6/include
3298 /usr/local/X11R5/include
3299 /usr/local/X11R4/include
3300
3301 /usr/local/include/X11
3302 /usr/local/include/X11R7
3303 /usr/local/include/X11R6
3304 /usr/local/include/X11R5
3305 /usr/local/include/X11R4
3306
3307 /usr/X386/include
3308 /usr/x386/include
3309 /usr/XFree86/include/X11
3310
3311 /usr/include
3312 /usr/local/include
3313 /usr/unsupported/include
3314 /usr/athena/include
3315 /usr/local/x11r5/include
3316 /usr/lpp/Xamples/include
3317
3318 /usr/openwin/include
3319 /usr/openwin/share/include'
3320
3321 if test "$ac_x_includes" = no; then
3322 # Guess where to find include files, by looking for Xlib.h.
3323 # First, try using that file with no special directory specified.
3324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3325 /* end confdefs.h. */
3326 #include <X11/Xlib.h>
3327 _ACEOF
3328 if ac_fn_c_try_cpp "$LINENO"; then :
3329 # We can compile using X headers with no special include directory.
3330 ac_x_includes=
3331 else
3332 for ac_dir in $ac_x_header_dirs; do
3333 if test -r "$ac_dir/X11/Xlib.h"; then
3334 ac_x_includes=$ac_dir
3335 break
3336 fi
3337 done
3338 fi
3339 rm -f conftest.err conftest.i conftest.$ac_ext
3340 fi # $ac_x_includes = no
3341
3342 if test "$ac_x_libraries" = no; then
3343 # Check for the libraries.
3344 # See if we find them without any special options.
3345 # Don't add to $LIBS permanently.
3346 ac_save_LIBS=$LIBS
3347 LIBS="-lX11 $LIBS"
3348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3349 /* end confdefs.h. */
3350 #include <X11/Xlib.h>
3351 int
3352 main ()
3353 {
3354 XrmInitialize ()
3355 ;
3356 return 0;
3357 }
3358 _ACEOF
3359 if ac_fn_c_try_link "$LINENO"; then :
3360 LIBS=$ac_save_LIBS
3361 # We can link X programs with no special library path.
3362 ac_x_libraries=
3363 else
3364 LIBS=$ac_save_LIBS
3365 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3366 do
3367 # Don't even attempt the hair of trying to link an X program!
3368 for ac_extension in a so sl dylib la dll; do
3369 if test -r "$ac_dir/libX11.$ac_extension"; then
3370 ac_x_libraries=$ac_dir
3371 break 2
3372 fi
3373 done
3374 done
3375 fi
3376 rm -f core conftest.err conftest.$ac_objext \
3377 conftest$ac_exeext conftest.$ac_ext
3378 fi # $ac_x_libraries = no
3379
3380 case $ac_x_includes,$ac_x_libraries in #(
3381 no,* | *,no | *\'*)
3382 # Didn't find X, or a directory has "'" in its name.
3383 ac_cv_have_x="have_x=no";; #(
3384 *)
3385 # Record where we found X for the cache.
3386 ac_cv_have_x="have_x=yes\
3387 ac_x_includes='$ac_x_includes'\
3388 ac_x_libraries='$ac_x_libraries'"
3389 esac
3390 fi
3391 ;; #(
3392 *) have_x=yes;;
3393 esac
3394 eval "$ac_cv_have_x"
3395 fi # $with_x != no
3396
3397 if test "$have_x" != yes; then
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
3399 $as_echo "$have_x" >&6; }
3400 no_x=yes
3401 else
3402 # If each of the values was on the command line, it overrides each guess.
3403 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3404 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3405 # Update the cache value to reflect the command line values.
3406 ac_cv_have_x="have_x=yes\
3407 ac_x_includes='$x_includes'\
3408 ac_x_libraries='$x_libraries'"
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
3410 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
3411 fi
3412
3413 if test "$no_x" = yes; then
3414 # Not all programs may use this symbol, but it does not hurt to define it.
3415
3416 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
3417
3418 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3419 else
3420 if test -n "$x_includes"; then
3421 X_CFLAGS="$X_CFLAGS -I$x_includes"
3422 fi
3423
3424 # It would also be nice to do this for all -L options, not just this one.
3425 if test -n "$x_libraries"; then
3426 X_LIBS="$X_LIBS -L$x_libraries"
3427 # For Solaris; some versions of Sun CC require a space after -R and
3428 # others require no space. Words are not sufficient . . . .
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
3430 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
3431 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3432 ac_xsave_c_werror_flag=$ac_c_werror_flag
3433 ac_c_werror_flag=yes
3434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435 /* end confdefs.h. */
3436
3437 int
3438 main ()
3439 {
3440
3441 ;
3442 return 0;
3443 }
3444 _ACEOF
3445 if ac_fn_c_try_link "$LINENO"; then :
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447 $as_echo "no" >&6; }
3448 X_LIBS="$X_LIBS -R$x_libraries"
3449 else
3450 LIBS="$ac_xsave_LIBS -R $x_libraries"
3451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3452 /* end confdefs.h. */
3453
3454 int
3455 main ()
3456 {
3457
3458 ;
3459 return 0;
3460 }
3461 _ACEOF
3462 if ac_fn_c_try_link "$LINENO"; then :
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3464 $as_echo "yes" >&6; }
3465 X_LIBS="$X_LIBS -R $x_libraries"
3466 else
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
3468 $as_echo "neither works" >&6; }
3469 fi
3470 rm -f core conftest.err conftest.$ac_objext \
3471 conftest$ac_exeext conftest.$ac_ext
3472 fi
3473 rm -f core conftest.err conftest.$ac_objext \
3474 conftest$ac_exeext conftest.$ac_ext
3475 ac_c_werror_flag=$ac_xsave_c_werror_flag
3476 LIBS=$ac_xsave_LIBS
3477 fi
3478
3479 # Check for system-dependent libraries X programs must link with.
3480 # Do this before checking for the system-independent R6 libraries
3481 # (-lICE), since we may need -lsocket or whatever for X linking.
3482
3483 if test "$ISC" = yes; then
3484 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3485 else
3486 # Martyn Johnson says this is needed for Ultrix, if the X
3487 # libraries were built with DECnet support. And Karl Berry says
3488 # the Alpha needs dnet_stub (dnet does not exist).
3489 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491 /* end confdefs.h. */
3492
3493 /* Override any GCC internal prototype to avoid an error.
3494 Use char because int might match the return type of a GCC
3495 builtin and then its argument prototype would still apply. */
3496 #ifdef __cplusplus
3497 extern "C"
3498 #endif
3499 char XOpenDisplay ();
3500 int
3501 main ()
3502 {
3503 return XOpenDisplay ();
3504 ;
3505 return 0;
3506 }
3507 _ACEOF
3508 if ac_fn_c_try_link "$LINENO"; then :
3509
3510 else
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
3512 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
3513 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
3514 $as_echo_n "(cached) " >&6
3515 else
3516 ac_check_lib_save_LIBS=$LIBS
3517 LIBS="-ldnet $LIBS"
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h. */
3520
3521 /* Override any GCC internal prototype to avoid an error.
3522 Use char because int might match the return type of a GCC
3523 builtin and then its argument prototype would still apply. */
3524 #ifdef __cplusplus
3525 extern "C"
3526 #endif
3527 char dnet_ntoa ();
3528 int
3529 main ()
3530 {
3531 return dnet_ntoa ();
3532 ;
3533 return 0;
3534 }
3535 _ACEOF
3536 if ac_fn_c_try_link "$LINENO"; then :
3537 ac_cv_lib_dnet_dnet_ntoa=yes
3538 else
3539 ac_cv_lib_dnet_dnet_ntoa=no
3540 fi
3541 rm -f core conftest.err conftest.$ac_objext \
3542 conftest$ac_exeext conftest.$ac_ext
3543 LIBS=$ac_check_lib_save_LIBS
3544 fi
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3546 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
3547 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
3548 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3549 fi
3550
3551 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
3553 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
3554 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
3555 $as_echo_n "(cached) " >&6
3556 else
3557 ac_check_lib_save_LIBS=$LIBS
3558 LIBS="-ldnet_stub $LIBS"
3559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560 /* end confdefs.h. */
3561
3562 /* Override any GCC internal prototype to avoid an error.
3563 Use char because int might match the return type of a GCC
3564 builtin and then its argument prototype would still apply. */
3565 #ifdef __cplusplus
3566 extern "C"
3567 #endif
3568 char dnet_ntoa ();
3569 int
3570 main ()
3571 {
3572 return dnet_ntoa ();
3573 ;
3574 return 0;
3575 }
3576 _ACEOF
3577 if ac_fn_c_try_link "$LINENO"; then :
3578 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3579 else
3580 ac_cv_lib_dnet_stub_dnet_ntoa=no
3581 fi
3582 rm -f core conftest.err conftest.$ac_objext \
3583 conftest$ac_exeext conftest.$ac_ext
3584 LIBS=$ac_check_lib_save_LIBS
3585 fi
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3587 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
3588 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
3589 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3590 fi
3591
3592 fi
3593 fi
3594 rm -f core conftest.err conftest.$ac_objext \
3595 conftest$ac_exeext conftest.$ac_ext
3596 LIBS="$ac_xsave_LIBS"
3597
3598 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
3599 # to get the SysV transport functions.
3600 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3601 # needs -lnsl.
3602 # The nsl library prevents programs from opening the X display
3603 # on Irix 5.2, according to T.E. Dickey.
3604 # The functions gethostbyname, getservbyname, and inet_addr are
3605 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3606 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
3607 if test "x$ac_cv_func_gethostbyname" = xyes; then :
3608
3609 fi
3610
3611 if test $ac_cv_func_gethostbyname = no; then
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
3613 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
3614 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
3615 $as_echo_n "(cached) " >&6
3616 else
3617 ac_check_lib_save_LIBS=$LIBS
3618 LIBS="-lnsl $LIBS"
3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h. */
3621
3622 /* Override any GCC internal prototype to avoid an error.
3623 Use char because int might match the return type of a GCC
3624 builtin and then its argument prototype would still apply. */
3625 #ifdef __cplusplus
3626 extern "C"
3627 #endif
3628 char gethostbyname ();
3629 int
3630 main ()
3631 {
3632 return gethostbyname ();
3633 ;
3634 return 0;
3635 }
3636 _ACEOF
3637 if ac_fn_c_try_link "$LINENO"; then :
3638 ac_cv_lib_nsl_gethostbyname=yes
3639 else
3640 ac_cv_lib_nsl_gethostbyname=no
3641 fi
3642 rm -f core conftest.err conftest.$ac_objext \
3643 conftest$ac_exeext conftest.$ac_ext
3644 LIBS=$ac_check_lib_save_LIBS
3645 fi
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
3647 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
3648 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
3649 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3650 fi
3651
3652 if test $ac_cv_lib_nsl_gethostbyname = no; then
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
3654 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
3655 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
3656 $as_echo_n "(cached) " >&6
3657 else
3658 ac_check_lib_save_LIBS=$LIBS
3659 LIBS="-lbsd $LIBS"
3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661 /* end confdefs.h. */
3662
3663 /* Override any GCC internal prototype to avoid an error.
3664 Use char because int might match the return type of a GCC
3665 builtin and then its argument prototype would still apply. */
3666 #ifdef __cplusplus
3667 extern "C"
3668 #endif
3669 char gethostbyname ();
3670 int
3671 main ()
3672 {
3673 return gethostbyname ();
3674 ;
3675 return 0;
3676 }
3677 _ACEOF
3678 if ac_fn_c_try_link "$LINENO"; then :
3679 ac_cv_lib_bsd_gethostbyname=yes
3680 else
3681 ac_cv_lib_bsd_gethostbyname=no
3682 fi
3683 rm -f core conftest.err conftest.$ac_objext \
3684 conftest$ac_exeext conftest.$ac_ext
3685 LIBS=$ac_check_lib_save_LIBS
3686 fi
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
3688 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
3689 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
3690 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3691 fi
3692
3693 fi
3694 fi
3695
3696 # [email protected] says without -lsocket,
3697 # socket/setsockopt and other routines are undefined under SCO ODT
3698 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3699 # on later versions), says Simon Leinen: it contains gethostby*
3700 # variants that don't use the name server (or something). -lsocket
3701 # must be given before -lnsl if both are needed. We assume that
3702 # if connect needs -lnsl, so does gethostbyname.
3703 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
3704 if test "x$ac_cv_func_connect" = xyes; then :
3705
3706 fi
3707
3708 if test $ac_cv_func_connect = no; then
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
3710 $as_echo_n "checking for connect in -lsocket... " >&6; }
3711 if ${ac_cv_lib_socket_connect+:} false; then :
3712 $as_echo_n "(cached) " >&6
3713 else
3714 ac_check_lib_save_LIBS=$LIBS
3715 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717 /* end confdefs.h. */
3718
3719 /* Override any GCC internal prototype to avoid an error.
3720 Use char because int might match the return type of a GCC
3721 builtin and then its argument prototype would still apply. */
3722 #ifdef __cplusplus
3723 extern "C"
3724 #endif
3725 char connect ();
3726 int
3727 main ()
3728 {
3729 return connect ();
3730 ;
3731 return 0;
3732 }
3733 _ACEOF
3734 if ac_fn_c_try_link "$LINENO"; then :
3735 ac_cv_lib_socket_connect=yes
3736 else
3737 ac_cv_lib_socket_connect=no
3738 fi
3739 rm -f core conftest.err conftest.$ac_objext \
3740 conftest$ac_exeext conftest.$ac_ext
3741 LIBS=$ac_check_lib_save_LIBS
3742 fi
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
3744 $as_echo "$ac_cv_lib_socket_connect" >&6; }
3745 if test "x$ac_cv_lib_socket_connect" = xyes; then :
3746 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3747 fi
3748
3749 fi
3750
3751 # Guillermo Gomez says -lposix is necessary on A/UX.
3752 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
3753 if test "x$ac_cv_func_remove" = xyes; then :
3754
3755 fi
3756
3757 if test $ac_cv_func_remove = no; then
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
3759 $as_echo_n "checking for remove in -lposix... " >&6; }
3760 if ${ac_cv_lib_posix_remove+:} false; then :
3761 $as_echo_n "(cached) " >&6
3762 else
3763 ac_check_lib_save_LIBS=$LIBS
3764 LIBS="-lposix $LIBS"
3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h. */
3767
3768 /* Override any GCC internal prototype to avoid an error.
3769 Use char because int might match the return type of a GCC
3770 builtin and then its argument prototype would still apply. */
3771 #ifdef __cplusplus
3772 extern "C"
3773 #endif
3774 char remove ();
3775 int
3776 main ()
3777 {
3778 return remove ();
3779 ;
3780 return 0;
3781 }
3782 _ACEOF
3783 if ac_fn_c_try_link "$LINENO"; then :
3784 ac_cv_lib_posix_remove=yes
3785 else
3786 ac_cv_lib_posix_remove=no
3787 fi
3788 rm -f core conftest.err conftest.$ac_objext \
3789 conftest$ac_exeext conftest.$ac_ext
3790 LIBS=$ac_check_lib_save_LIBS
3791 fi
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
3793 $as_echo "$ac_cv_lib_posix_remove" >&6; }
3794 if test "x$ac_cv_lib_posix_remove" = xyes; then :
3795 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3796 fi
3797
3798 fi
3799
3800 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3801 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
3802 if test "x$ac_cv_func_shmat" = xyes; then :
3803
3804 fi
3805
3806 if test $ac_cv_func_shmat = no; then
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
3808 $as_echo_n "checking for shmat in -lipc... " >&6; }
3809 if ${ac_cv_lib_ipc_shmat+:} false; then :
3810 $as_echo_n "(cached) " >&6
3811 else
3812 ac_check_lib_save_LIBS=$LIBS
3813 LIBS="-lipc $LIBS"
3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815 /* end confdefs.h. */
3816
3817 /* Override any GCC internal prototype to avoid an error.
3818 Use char because int might match the return type of a GCC
3819 builtin and then its argument prototype would still apply. */
3820 #ifdef __cplusplus
3821 extern "C"
3822 #endif
3823 char shmat ();
3824 int
3825 main ()
3826 {
3827 return shmat ();
3828 ;
3829 return 0;
3830 }
3831 _ACEOF
3832 if ac_fn_c_try_link "$LINENO"; then :
3833 ac_cv_lib_ipc_shmat=yes
3834 else
3835 ac_cv_lib_ipc_shmat=no
3836 fi
3837 rm -f core conftest.err conftest.$ac_objext \
3838 conftest$ac_exeext conftest.$ac_ext
3839 LIBS=$ac_check_lib_save_LIBS
3840 fi
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
3842 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
3843 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
3844 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3845 fi
3846
3847 fi
3848 fi
3849
3850 # Check for libraries that X11R6 Xt/Xaw programs need.
3851 ac_save_LDFLAGS=$LDFLAGS
3852 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3853 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3854 # check for ICE first), but we must link in the order -lSM -lICE or
3855 # we get undefined symbols. So assume we have SM if we have ICE.
3856 # These have to be linked with before -lX11, unlike the other
3857 # libraries we check for below, so use a different variable.
3858 # John Interrante, Karl Berry
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
3860 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
3861 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
3862 $as_echo_n "(cached) " >&6
3863 else
3864 ac_check_lib_save_LIBS=$LIBS
3865 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867 /* end confdefs.h. */
3868
3869 /* Override any GCC internal prototype to avoid an error.
3870 Use char because int might match the return type of a GCC
3871 builtin and then its argument prototype would still apply. */
3872 #ifdef __cplusplus
3873 extern "C"
3874 #endif
3875 char IceConnectionNumber ();
3876 int
3877 main ()
3878 {
3879 return IceConnectionNumber ();
3880 ;
3881 return 0;
3882 }
3883 _ACEOF
3884 if ac_fn_c_try_link "$LINENO"; then :
3885 ac_cv_lib_ICE_IceConnectionNumber=yes
3886 else
3887 ac_cv_lib_ICE_IceConnectionNumber=no
3888 fi
3889 rm -f core conftest.err conftest.$ac_objext \
3890 conftest$ac_exeext conftest.$ac_ext
3891 LIBS=$ac_check_lib_save_LIBS
3892 fi
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3894 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
3895 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
3896 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3897 fi
3898
3899 LDFLAGS=$ac_save_LDFLAGS
3900
3901 fi
3902
3903
3904 case "$target" in
3905 *-*-cygwin*)
3906 if test "x-$have_x" = "x-disabled" -o "x-$have_x" = "x-no";
3907 then
3908 LIBGLUT=glut32;
3909 else
3910 LIBGLUT=glut
3911 CPPFLAGS="$CPPFLAGS -I$x_includes";
3912 fi;;
3913 *)
3914 LIBGLUT=glut;;
3915 esac
3916
3917 # options for configure scripts
3918 GLUT_LIB="-l$LIBGLUT"
3919
3920 # Check whether --with-glut was given.
3921 if test "${with_glut+set}" = set; then :
3922 withval=$with_glut;
3923 case $with_glut in
3924 no) GLUT_LIB= ;;
3925 yes) GLUT_LIB="-l$LIBGLUT";;
3926 mingw-static)
3927 GLUT_LIB="-lfreeglut_static -lgdi32 -lwinmm"
3928 GLUT_INCDIR="-I../win32/freeglut-2.6.0-3/include -DFREEGLUT_STATIC"
3929 GLUT_LIBDIR="-L../win32/freeglut-2.6.0-3/lib";;
3930 *) GLUT_LIB="-l$LIBGLUT"
3931 GLUT_INCDIR="-I$with_glut/include"
3932 GLUT_LIBDIR="-L$with_glut/lib";;
3933 esac
3934
3935 fi
3936
3937
3938 # Check whether --enable-cg was given.
3939 if test "${enable_cg+set}" = set; then :
3940 enableval=$enable_cg;
3941 $as_echo "#define HAVE_CG 1" >>confdefs.h
3942
3943 ENABLE_CG=1
3944 CG_LIBS="-lCgGL -lCg"
3945 CG_SCM="cg/gl/cg.scm";
3946
3947 fi
3948
3949
3950
3951
3952
3953 # Extract the first word of "gosh", so it can be a program name with args.
3954 set dummy gosh; ac_word=$2
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3956 $as_echo_n "checking for $ac_word... " >&6; }
3957 if ${ac_cv_path_GOSH+:} false; then :
3958 $as_echo_n "(cached) " >&6
3959 else
3960 case $GOSH in
3961 [\\/]* | ?:[\\/]*)
3962 ac_cv_path_GOSH="$GOSH" # Let the user override the test with a path.
3963 ;;
3964 *)
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 for as_dir in $PATH
3967 do
3968 IFS=$as_save_IFS
3969 test -z "$as_dir" && as_dir=.
3970 for ac_exec_ext in '' $ac_executable_extensions; do
3971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3972 ac_cv_path_GOSH="$as_dir/$ac_word$ac_exec_ext"
3973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3974 break 2
3975 fi
3976 done
3977 done
3978 IFS=$as_save_IFS
3979
3980 ;;
3981 esac
3982 fi
3983 GOSH=$ac_cv_path_GOSH
3984 if test -n "$GOSH"; then
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOSH" >&5
3986 $as_echo "$GOSH" >&6; }
3987 else
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3989 $as_echo "no" >&6; }
3990 fi
3991
3992
3993 # Extract the first word of "gauche-config", so it can be a program name with args.
3994 set dummy gauche-config; ac_word=$2
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3996 $as_echo_n "checking for $ac_word... " >&6; }
3997 if ${ac_cv_path_GAUCHE_CONFIG+:} false; then :
3998 $as_echo_n "(cached) " >&6
3999 else
4000 case $GAUCHE_CONFIG in
4001 [\\/]* | ?:[\\/]*)
4002 ac_cv_path_GAUCHE_CONFIG="$GAUCHE_CONFIG" # Let the user override the test with a path.
4003 ;;
4004 *)
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 for as_dir in $PATH
4007 do
4008 IFS=$as_save_IFS
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4012 ac_cv_path_GAUCHE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4014 break 2
4015 fi
4016 done
4017 done
4018 IFS=$as_save_IFS
4019
4020 ;;
4021 esac
4022 fi
4023 GAUCHE_CONFIG=$ac_cv_path_GAUCHE_CONFIG
4024 if test -n "$GAUCHE_CONFIG"; then
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAUCHE_CONFIG" >&5
4026 $as_echo "$GAUCHE_CONFIG" >&6; }
4027 else
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4029 $as_echo "no" >&6; }
4030 fi
4031
4032
4033 # Extract the first word of "gauche-package", so it can be a program name with args.
4034 set dummy gauche-package; ac_word=$2
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4036 $as_echo_n "checking for $ac_word... " >&6; }
4037 if ${ac_cv_path_GAUCHE_PACKAGE+:} false; then :
4038 $as_echo_n "(cached) " >&6
4039 else
4040 case $GAUCHE_PACKAGE in
4041 [\\/]* | ?:[\\/]*)
4042 ac_cv_path_GAUCHE_PACKAGE="$GAUCHE_PACKAGE" # Let the user override the test with a path.
4043 ;;
4044 *)
4045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046 for as_dir in $PATH
4047 do
4048 IFS=$as_save_IFS
4049 test -z "$as_dir" && as_dir=.
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4052 ac_cv_path_GAUCHE_PACKAGE="$as_dir/$ac_word$ac_exec_ext"
4053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4054 break 2
4055 fi
4056 done
4057 done
4058 IFS=$as_save_IFS
4059
4060 ;;
4061 esac
4062 fi
4063 GAUCHE_PACKAGE=$ac_cv_path_GAUCHE_PACKAGE
4064 if test -n "$GAUCHE_PACKAGE"; then
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAUCHE_PACKAGE" >&5
4066 $as_echo "$GAUCHE_PACKAGE" >&6; }
4067 else
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4069 $as_echo "no" >&6; }
4070 fi
4071
4072
4073 # Extract the first word of "gauche-install", so it can be a program name with args.
4074 set dummy gauche-install; ac_word=$2
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4076 $as_echo_n "checking for $ac_word... " >&6; }
4077 if ${ac_cv_path_GAUCHE_INSTALL+:} false; then :
4078 $as_echo_n "(cached) " >&6
4079 else
4080 case $GAUCHE_INSTALL in
4081 [\\/]* | ?:[\\/]*)
4082 ac_cv_path_GAUCHE_INSTALL="$GAUCHE_INSTALL" # Let the user override the test with a path.
4083 ;;
4084 *)
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 for as_dir in $PATH
4087 do
4088 IFS=$as_save_IFS
4089 test -z "$as_dir" && as_dir=.
4090 for ac_exec_ext in '' $ac_executable_extensions; do
4091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4092 ac_cv_path_GAUCHE_INSTALL="$as_dir/$ac_word$ac_exec_ext"
4093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4094 break 2
4095 fi
4096 done
4097 done
4098 IFS=$as_save_IFS
4099
4100 ;;
4101 esac
4102 fi
4103 GAUCHE_INSTALL=$ac_cv_path_GAUCHE_INSTALL
4104 if test -n "$GAUCHE_INSTALL"; then
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAUCHE_INSTALL" >&5
4106 $as_echo "$GAUCHE_INSTALL" >&6; }
4107 else
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109 $as_echo "no" >&6; }
4110 fi
4111
4112
4113 # Extract the first word of "gauche-cesconv", so it can be a program name with args.
4114 set dummy gauche-cesconv; ac_word=$2
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4116 $as_echo_n "checking for $ac_word... " >&6; }
4117 if ${ac_cv_path_GAUCHE_CESCONV+:} false; then :
4118 $as_echo_n "(cached) " >&6
4119 else
4120 case $GAUCHE_CESCONV in
4121 [\\/]* | ?:[\\/]*)
4122 ac_cv_path_GAUCHE_CESCONV="$GAUCHE_CESCONV" # Let the user override the test with a path.
4123 ;;
4124 *)
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 for as_dir in $PATH
4127 do
4128 IFS=$as_save_IFS
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132 ac_cv_path_GAUCHE_CESCONV="$as_dir/$ac_word$ac_exec_ext"
4133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4134 break 2
4135 fi
4136 done
4137 done
4138 IFS=$as_save_IFS
4139
4140 ;;
4141 esac
4142 fi
4143 GAUCHE_CESCONV=$ac_cv_path_GAUCHE_CESCONV
4144 if test -n "$GAUCHE_CESCONV"; then
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAUCHE_CESCONV" >&5
4146 $as_echo "$GAUCHE_CESCONV" >&6; }
4147 else
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4149 $as_echo "no" >&6; }
4150 fi
4151
4152
4153
4154 SOEXT=`"$GAUCHE_CONFIG" --so-suffix`
4155 OBJEXT=`"$GAUCHE_CONFIG" --object-suffix`
4156 EXEEXT=`"$GAUCHE_CONFIG" --executable-suffix`
4157
4158
4159
4160
4161 # Check for headers
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4163 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4164 if ${ac_cv_path_GREP+:} false; then :
4165 $as_echo_n "(cached) " >&6
4166 else
4167 if test -z "$GREP"; then
4168 ac_path_GREP_found=false
4169 # Loop through the user's path and test for each of PROGNAME-LIST
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4172 do
4173 IFS=$as_save_IFS
4174 test -z "$as_dir" && as_dir=.
4175 for ac_prog in grep ggrep; do
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4178 as_fn_executable_p "$ac_path_GREP" || continue
4179 # Check for GNU ac_path_GREP and select it if it is found.
4180 # Check for GNU $ac_path_GREP
4181 case `"$ac_path_GREP" --version 2>&1` in
4182 *GNU*)
4183 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4184 *)
4185 ac_count=0
4186 $as_echo_n 0123456789 >"conftest.in"
4187 while :
4188 do
4189 cat "conftest.in" "conftest.in" >"conftest.tmp"
4190 mv "conftest.tmp" "conftest.in"
4191 cp "conftest.in" "conftest.nl"
4192 $as_echo 'GREP' >> "conftest.nl"
4193 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4194 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4195 as_fn_arith $ac_count + 1 && ac_count=$as_val
4196 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4197 # Best one so far, save it but keep looking for a better one
4198 ac_cv_path_GREP="$ac_path_GREP"
4199 ac_path_GREP_max=$ac_count
4200 fi
4201 # 10*(2^10) chars as input seems more than enough
4202 test $ac_count -gt 10 && break
4203 done
4204 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4205 esac
4206
4207 $ac_path_GREP_found && break 3
4208 done
4209 done
4210 done
4211 IFS=$as_save_IFS
4212 if test -z "$ac_cv_path_GREP"; then
4213 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4214 fi
4215 else
4216 ac_cv_path_GREP=$GREP
4217 fi
4218
4219 fi
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4221 $as_echo "$ac_cv_path_GREP" >&6; }
4222 GREP="$ac_cv_path_GREP"
4223
4224
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4226 $as_echo_n "checking for egrep... " >&6; }
4227 if ${ac_cv_path_EGREP+:} false; then :
4228 $as_echo_n "(cached) " >&6
4229 else
4230 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4231 then ac_cv_path_EGREP="$GREP -E"
4232 else
4233 if test -z "$EGREP"; then
4234 ac_path_EGREP_found=false
4235 # Loop through the user's path and test for each of PROGNAME-LIST
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4238 do
4239 IFS=$as_save_IFS
4240 test -z "$as_dir" && as_dir=.
4241 for ac_prog in egrep; do
4242 for ac_exec_ext in '' $ac_executable_extensions; do
4243 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4244 as_fn_executable_p "$ac_path_EGREP" || continue
4245 # Check for GNU ac_path_EGREP and select it if it is found.
4246 # Check for GNU $ac_path_EGREP
4247 case `"$ac_path_EGREP" --version 2>&1` in
4248 *GNU*)
4249 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4250 *)
4251 ac_count=0
4252 $as_echo_n 0123456789 >"conftest.in"
4253 while :
4254 do
4255 cat "conftest.in" "conftest.in" >"conftest.tmp"
4256 mv "conftest.tmp" "conftest.in"
4257 cp "conftest.in" "conftest.nl"
4258 $as_echo 'EGREP' >> "conftest.nl"
4259 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4260 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4261 as_fn_arith $ac_count + 1 && ac_count=$as_val
4262 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4263 # Best one so far, save it but keep looking for a better one
4264 ac_cv_path_EGREP="$ac_path_EGREP"
4265 ac_path_EGREP_max=$ac_count
4266 fi
4267 # 10*(2^10) chars as input seems more than enough
4268 test $ac_count -gt 10 && break
4269 done
4270 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4271 esac
4272
4273 $ac_path_EGREP_found && break 3
4274 done
4275 done
4276 done
4277 IFS=$as_save_IFS
4278 if test -z "$ac_cv_path_EGREP"; then
4279 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4280 fi
4281 else
4282 ac_cv_path_EGREP=$EGREP
4283 fi
4284
4285 fi
4286 fi
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4288 $as_echo "$ac_cv_path_EGREP" >&6; }
4289 EGREP="$ac_cv_path_EGREP"
4290
4291
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4293 $as_echo_n "checking for ANSI C header files... " >&6; }
4294 if ${ac_cv_header_stdc+:} false; then :
4295 $as_echo_n "(cached) " >&6
4296 else
4297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4298 /* end confdefs.h. */
4299 #include <stdlib.h>
4300 #include <stdarg.h>
4301 #include <string.h>
4302 #include <float.h>
4303
4304 int
4305 main ()
4306 {
4307
4308 ;
4309 return 0;
4310 }
4311 _ACEOF
4312 if ac_fn_c_try_compile "$LINENO"; then :
4313 ac_cv_header_stdc=yes
4314 else
4315 ac_cv_header_stdc=no
4316 fi
4317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4318
4319 if test $ac_cv_header_stdc = yes; then
4320 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h. */
4323 #include <string.h>
4324
4325 _ACEOF
4326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4327 $EGREP "memchr" >/dev/null 2>&1; then :
4328
4329 else
4330 ac_cv_header_stdc=no
4331 fi
4332 rm -f conftest*
4333
4334 fi
4335
4336 if test $ac_cv_header_stdc = yes; then
4337 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4339 /* end confdefs.h. */
4340 #include <stdlib.h>
4341
4342 _ACEOF
4343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4344 $EGREP "free" >/dev/null 2>&1; then :
4345
4346 else
4347 ac_cv_header_stdc=no
4348 fi
4349 rm -f conftest*
4350
4351 fi
4352
4353 if test $ac_cv_header_stdc = yes; then
4354 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4355 if test "$cross_compiling" = yes; then :
4356 :
4357 else
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h. */
4360 #include <ctype.h>
4361 #include <stdlib.h>
4362 #if ((' ' & 0x0FF) == 0x020)
4363 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4364 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4365 #else
4366 # define ISLOWER(c) \
4367 (('a' <= (c) && (c) <= 'i') \
4368 || ('j' <= (c) && (c) <= 'r') \
4369 || ('s' <= (c) && (c) <= 'z'))
4370 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4371 #endif
4372
4373 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4374 int
4375 main ()
4376 {
4377 int i;
4378 for (i = 0; i < 256; i++)
4379 if (XOR (islower (i), ISLOWER (i))
4380 || toupper (i) != TOUPPER (i))
4381 return 2;
4382 return 0;
4383 }
4384 _ACEOF
4385 if ac_fn_c_try_run "$LINENO"; then :
4386
4387 else
4388 ac_cv_header_stdc=no
4389 fi
4390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4391 conftest.$ac_objext conftest.beam conftest.$ac_ext
4392 fi
4393
4394 fi
4395 fi
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4397 $as_echo "$ac_cv_header_stdc" >&6; }
4398 if test $ac_cv_header_stdc = yes; then
4399
4400 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4401
4402 fi
4403
4404 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4405 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4406 inttypes.h stdint.h unistd.h
4407 do :
4408 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4409 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4410 "
4411 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4412 cat >>confdefs.h <<_ACEOF
4413 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4414 _ACEOF
4415
4416 fi
4417
4418 done
4419
4420
4421 for ac_header in GL/glx.h
4422 do :
4423 ac_fn_c_check_header_mongrel "$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" "$ac_includes_default"
4424 if test "x$ac_cv_header_GL_glx_h" = xyes; then :
4425 cat >>confdefs.h <<_ACEOF
4426 #define HAVE_GL_GLX_H 1
4427 _ACEOF
4428 # OpenGL/X11
4429 # NB: FreeBSD seems to need -lX11 -lXext. We are on X11 system anyway,
4430 # so I assume this won't do any harm.
4431 GL_LIBS='-lGLU -lGL -lX11 -lXext'
4432 GLUT_LIB="$GLUT_LIB -lXmu -lXi"
4433
4434 fi
4435
4436 done
4437
4438 for ac_header in GLUT/glut.h
4439 do :
4440 ac_fn_c_check_header_mongrel "$LINENO" "GLUT/glut.h" "ac_cv_header_GLUT_glut_h" "$ac_includes_default"
4441 if test "x$ac_cv_header_GLUT_glut_h" = xyes; then :
4442 cat >>confdefs.h <<_ACEOF
4443 #define HAVE_GLUT_GLUT_H 1
4444 _ACEOF
4445
4446 case $target in
4447 *-apple-darwin*)
4448 $as_echo "#define MacOSX 1" >>confdefs.h
4449 # darwin which has GLUT/glut.h is MacOSX
4450 GL_LIBS='-framework OpenGL -framework GLUT' # GLUT for glutGetProcAddress
4451 GLUT_LIB='-framework GLUT' ;;
4452 *) # other OSes w/o X11 but have GLUT/glut.h. Possibly MacOS9??
4453 ;;
4454 esac
4455
4456 fi
4457
4458 done
4459
4460
4461 if test "$GL_LIBS" = ""; then
4462 case $target in
4463 *-*-cygwin*|*-*-mingw*)
4464 GL_LIBS='-lglu32 -lopengl32' ;;
4465 *)
4466 GL_LIBS='-lGLU -lGL' ;;
4467 esac
4468 fi
4469
4470 # On MinGW, we use GLEW so that we can get newer GL features; the GL header
4471 # comes with MinGW installation is very old.
4472 # TODO: We might add --with-glew configure option so that we can use glew
4473 # on other platforms. At this moment, though, Gauche-gl has its own
4474 # runtime name lookup system, so having glew isn't vital on other platforms.
4475 case $target in
4476 *-*-mingw*)
4477 $as_echo "#define HAVE_GL_GLEW_H 1" >>confdefs.h
4478
4479 GLEW_INCDIR="-I../win32/glew-1.10.0/include -DGLEW_STATIC"
4480 GLEW_SOURCE="../win32/glew-1.10.0/src/glew.c"
4481 esac
4482
4483
4484
4485
4486
4487
4488
4489
4490 # Check for other programs.
4491 for ac_prog in makeinfo
4492 do
4493 # Extract the first word of "$ac_prog", so it can be a program name with args.
4494 set dummy $ac_prog; ac_word=$2
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4496 $as_echo_n "checking for $ac_word... " >&6; }
4497 if ${ac_cv_prog_MAKEINFO+:} false; then :
4498 $as_echo_n "(cached) " >&6
4499 else
4500 if test -n "$MAKEINFO"; then
4501 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4502 else
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 for as_dir in $PATH
4505 do
4506 IFS=$as_save_IFS
4507 test -z "$as_dir" && as_dir=.
4508 for ac_exec_ext in '' $ac_executable_extensions; do
4509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4510 ac_cv_prog_MAKEINFO="$ac_prog"
4511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4512 break 2
4513 fi
4514 done
4515 done
4516 IFS=$as_save_IFS
4517
4518 fi
4519 fi
4520 MAKEINFO=$ac_cv_prog_MAKEINFO
4521 if test -n "$MAKEINFO"; then
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4523 $as_echo "$MAKEINFO" >&6; }
4524 else
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4526 $as_echo "no" >&6; }
4527 fi
4528
4529
4530 test -n "$MAKEINFO" && break
4531 done
4532
4533 for ac_prog in gzip
4534 do
4535 # Extract the first word of "$ac_prog", so it can be a program name with args.
4536 set dummy $ac_prog; ac_word=$2
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4538 $as_echo_n "checking for $ac_word... " >&6; }
4539 if ${ac_cv_prog_GZIP_PROGRAM+:} false; then :
4540 $as_echo_n "(cached) " >&6
4541 else
4542 if test -n "$GZIP_PROGRAM"; then
4543 ac_cv_prog_GZIP_PROGRAM="$GZIP_PROGRAM" # Let the user override the test.
4544 else
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 for as_dir in $PATH
4547 do
4548 IFS=$as_save_IFS
4549 test -z "$as_dir" && as_dir=.
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4552 ac_cv_prog_GZIP_PROGRAM="$ac_prog"
4553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4554 break 2
4555 fi
4556 done
4557 done
4558 IFS=$as_save_IFS
4559
4560 fi
4561 fi
4562 GZIP_PROGRAM=$ac_cv_prog_GZIP_PROGRAM
4563 if test -n "$GZIP_PROGRAM"; then
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROGRAM" >&5
4565 $as_echo "$GZIP_PROGRAM" >&6; }
4566 else
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4568 $as_echo "no" >&6; }
4569 fi
4570
4571
4572 test -n "$GZIP_PROGRAM" && break
4573 done
4574
4575
4576 # Check for libraries
4577
4578 # on cygwin, we need several extra -l flags.
4579 case "$target" in
4580 *-*-cygwin*|*-*-mingw*)
4581 LIBS="-lgauche-uvector $LIBS"
4582 GL_EXTRALIBS="-L. -lgauche-math3d"
4583 GLUT_EXTRALIBS="-L. -lgauche-gl -lgauche-math3d"
4584 ;;
4585 esac
4586
4587
4588
4589 GAUCHE_PACKAGE_CONFIGURE_ARGS="`echo ""$ac_configure_args"" | sed 's/\\""\`\$/\\\&/g'`"
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: creating ${PACKAGE_NAME}.gpd" >&5
4591 $as_echo "$as_me: creating ${PACKAGE_NAME}.gpd" >&6;}
4592 "$GAUCHE_PACKAGE" make-gpd "$PACKAGE_NAME" \
4593 -version "$PACKAGE_VERSION" \
4594 -configure "./configure $GAUCHE_PACKAGE_CONFIGURE_ARGS"
4595
4596 echo $PACKAGE_VERSION > VERSION
4597 ac_config_files="$ac_config_files Makefile src/Makefile lib/Makefile cg/Makefile doc/Makefile"
4598
4599 cat >confcache <<\_ACEOF
4600 # This file is a shell script that caches the results of configure
4601 # tests run on this system so they can be shared between configure
4602 # scripts and configure runs, see configure's option --config-cache.
4603 # It is not useful on other systems. If it contains results you don't
4604 # want to keep, you may remove or edit it.
4605 #
4606 # config.status only pays attention to the cache file if you give it
4607 # the --recheck option to rerun configure.
4608 #
4609 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4610 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4611 # following values.
4612
4613 _ACEOF
4614
4615 # The following way of writing the cache mishandles newlines in values,
4616 # but we know of no workaround that is simple, portable, and efficient.
4617 # So, we kill variables containing newlines.
4618 # Ultrix sh set writes to stderr and can't be redirected directly,
4619 # and sets the high bit in the cache file unless we assign to the vars.
4620 (
4621 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4622 eval ac_val=\$$ac_var
4623 case $ac_val in #(
4624 *${as_nl}*)
4625 case $ac_var in #(
4626 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4627 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4628 esac
4629 case $ac_var in #(
4630 _ | IFS | as_nl) ;; #(
4631 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4632 *) { eval $ac_var=; unset $ac_var;} ;;
4633 esac ;;
4634 esac
4635 done
4636
4637 (set) 2>&1 |
4638 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4639 *${as_nl}ac_space=\ *)
4640 # `set' does not quote correctly, so add quotes: double-quote
4641 # substitution turns \\\\ into \\, and sed turns \\ into \.
4642 sed -n \
4643 "s/'/'\\\\''/g;
4644 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4645 ;; #(
4646 *)
4647 # `set' quotes correctly as required by POSIX, so do not add quotes.
4648 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4649 ;;
4650 esac |
4651 sort
4652 ) |
4653 sed '
4654 /^ac_cv_env_/b end
4655 t clear
4656 :clear
4657 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4658 t end
4659 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4660 :end' >>confcache
4661 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4662 if test -w "$cache_file"; then
4663 if test "x$cache_file" != "x/dev/null"; then
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4665 $as_echo "$as_me: updating cache $cache_file" >&6;}
4666 if test ! -f "$cache_file" || test -h "$cache_file"; then
4667 cat confcache >"$cache_file"
4668 else
4669 case $cache_file in #(
4670 */* | ?:*)
4671 mv -f confcache "$cache_file"$$ &&
4672 mv -f "$cache_file"$$ "$cache_file" ;; #(
4673 *)
4674 mv -f confcache "$cache_file" ;;
4675 esac
4676 fi
4677 fi
4678 else
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4680 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4681 fi
4682 fi
4683 rm -f confcache
4684
4685 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4686 # Let make expand exec_prefix.
4687 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4688
4689 # Transform confdefs.h into DEFS.
4690 # Protect against shell expansion while executing Makefile rules.
4691 # Protect against Makefile macro expansion.
4692 #
4693 # If the first sed substitution is executed (which looks for macros that
4694 # take arguments), then branch to the quote section. Otherwise,
4695 # look for a macro that doesn't take arguments.
4696 ac_script='
4697 :mline
4698 /\\$/{
4699 N
4700 s,\\\n,,
4701 b mline
4702 }
4703 t clear
4704 :clear
4705 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
4706 t quote
4707 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
4708 t quote
4709 b any
4710 :quote
4711 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4712 s/\[/\\&/g
4713 s/\]/\\&/g
4714 s/\$/$$/g
4715 H
4716 :any
4717 ${
4718 g
4719 s/^\n//
4720 s/\n/ /g
4721 p
4722 }
4723 '
4724 DEFS=`sed -n "$ac_script" confdefs.h`
4725
4726
4727 ac_libobjs=
4728 ac_ltlibobjs=
4729 U=
4730 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4731 # 1. Remove the extension, and $U if already installed.
4732 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4733 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4734 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4735 # will be set to the directory where LIBOBJS objects are built.
4736 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4737 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4738 done
4739 LIBOBJS=$ac_libobjs
4740
4741 LTLIBOBJS=$ac_ltlibobjs
4742
4743
4744
4745 : "${CONFIG_STATUS=./config.status}"
4746 ac_write_fail=0
4747 ac_clean_files_save=$ac_clean_files
4748 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4750 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4751 as_write_fail=0
4752 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4753 #! $SHELL
4754 # Generated by $as_me.
4755 # Run this file to recreate the current configuration.
4756 # Compiler output produced by configure, useful for debugging
4757 # configure, is in config.log if it exists.
4758
4759 debug=false
4760 ac_cs_recheck=false
4761 ac_cs_silent=false
4762
4763 SHELL=\${CONFIG_SHELL-$SHELL}
4764 export SHELL
4765 _ASEOF
4766 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4767 ## -------------------- ##
4768 ## M4sh Initialization. ##
4769 ## -------------------- ##
4770
4771 # Be more Bourne compatible
4772 DUALCASE=1; export DUALCASE # for MKS sh
4773 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4774 emulate sh
4775 NULLCMD=:
4776 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4777 # is contrary to our usage. Disable this feature.
4778 alias -g '${1+"$@"}'='"$@"'
4779 setopt NO_GLOB_SUBST
4780 else
4781 case `(set -o) 2>/dev/null` in #(
4782 *posix*) :
4783 set -o posix ;; #(
4784 *) :
4785 ;;
4786 esac
4787 fi
4788
4789
4790 as_nl='
4791 '
4792 export as_nl
4793 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4794 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4795 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4796 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4797 # Prefer a ksh shell builtin over an external printf program on Solaris,
4798 # but without wasting forks for bash or zsh.
4799 if test -z "$BASH_VERSION$ZSH_VERSION" \
4800 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4801 as_echo='print -r --'
4802 as_echo_n='print -rn --'
4803 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4804 as_echo='printf %s\n'
4805 as_echo_n='printf %s'
4806 else
4807 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4808 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4809 as_echo_n='/usr/ucb/echo -n'
4810 else
4811 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4812 as_echo_n_body='eval
4813 arg=$1;
4814 case $arg in #(
4815 *"$as_nl"*)
4816 expr "X$arg" : "X\\(.*\\)$as_nl";
4817 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4818 esac;
4819 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4820 '
4821 export as_echo_n_body
4822 as_echo_n='sh -c $as_echo_n_body as_echo'
4823 fi
4824 export as_echo_body
4825 as_echo='sh -c $as_echo_body as_echo'
4826 fi
4827
4828 # The user is always right.
4829 if test "${PATH_SEPARATOR+set}" != set; then
4830 PATH_SEPARATOR=:
4831 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4832 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4833 PATH_SEPARATOR=';'
4834 }
4835 fi
4836
4837
4838 # IFS
4839 # We need space, tab and new line, in precisely that order. Quoting is
4840 # there to prevent editors from complaining about space-tab.
4841 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4842 # splitting by setting IFS to empty value.)
4843 IFS=" "" $as_nl"
4844
4845 # Find who we are. Look in the path if we contain no directory separator.
4846 as_myself=
4847 case $0 in #((
4848 *[\\/]* ) as_myself=$0 ;;
4849 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4850 for as_dir in $PATH
4851 do
4852 IFS=$as_save_IFS
4853 test -z "$as_dir" && as_dir=.
4854 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4855 done
4856 IFS=$as_save_IFS
4857
4858 ;;
4859 esac
4860 # We did not find ourselves, most probably we were run as `sh COMMAND'
4861 # in which case we are not to be found in the path.
4862 if test "x$as_myself" = x; then
4863 as_myself=$0
4864 fi
4865 if test ! -f "$as_myself"; then
4866 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4867 exit 1
4868 fi
4869
4870 # Unset variables that we do not need and which cause bugs (e.g. in
4871 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4872 # suppresses any "Segmentation fault" message there. '((' could
4873 # trigger a bug in pdksh 5.2.14.
4874 for as_var in BASH_ENV ENV MAIL MAILPATH
4875 do eval test x\${$as_var+set} = xset \
4876 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4877 done
4878 PS1='$ '
4879 PS2='> '
4880 PS4='+ '
4881
4882 # NLS nuisances.
4883 LC_ALL=C
4884 export LC_ALL
4885 LANGUAGE=C
4886 export LANGUAGE
4887
4888 # CDPATH.
4889 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4890
4891
4892 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4893 # ----------------------------------------
4894 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4895 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4896 # script with STATUS, using 1 if that was 0.
4897 as_fn_error ()
4898 {
4899 as_status=$1; test $as_status -eq 0 && as_status=1
4900 if test "$4"; then
4901 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4902 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4903 fi
4904 $as_echo "$as_me: error: $2" >&2
4905 as_fn_exit $as_status
4906 } # as_fn_error
4907
4908
4909 # as_fn_set_status STATUS
4910 # -----------------------
4911 # Set $? to STATUS, without forking.
4912 as_fn_set_status ()
4913 {
4914 return $1
4915 } # as_fn_set_status
4916
4917 # as_fn_exit STATUS
4918 # -----------------
4919 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4920 as_fn_exit ()
4921 {
4922 set +e
4923 as_fn_set_status $1
4924 exit $1
4925 } # as_fn_exit
4926
4927 # as_fn_unset VAR
4928 # ---------------
4929 # Portably unset VAR.
4930 as_fn_unset ()
4931 {
4932 { eval $1=; unset $1;}
4933 }
4934 as_unset=as_fn_unset
4935 # as_fn_append VAR VALUE
4936 # ----------------------
4937 # Append the text in VALUE to the end of the definition contained in VAR. Take
4938 # advantage of any shell optimizations that allow amortized linear growth over
4939 # repeated appends, instead of the typical quadratic growth present in naive
4940 # implementations.
4941 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4942 eval 'as_fn_append ()
4943 {
4944 eval $1+=\$2
4945 }'
4946 else
4947 as_fn_append ()
4948 {
4949 eval $1=\$$1\$2
4950 }
4951 fi # as_fn_append
4952
4953 # as_fn_arith ARG...
4954 # ------------------
4955 # Perform arithmetic evaluation on the ARGs, and store the result in the
4956 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4957 # must be portable across $(()) and expr.
4958 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4959 eval 'as_fn_arith ()
4960 {
4961 as_val=$(( $* ))
4962 }'
4963 else
4964 as_fn_arith ()
4965 {
4966 as_val=`expr "$@" || test $? -eq 1`
4967 }
4968 fi # as_fn_arith
4969
4970
4971 if expr a : '\(a\)' >/dev/null 2>&1 &&
4972 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4973 as_expr=expr
4974 else
4975 as_expr=false
4976 fi
4977
4978 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4979 as_basename=basename
4980 else
4981 as_basename=false
4982 fi
4983
4984 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4985 as_dirname=dirname
4986 else
4987 as_dirname=false
4988 fi
4989
4990 as_me=`$as_basename -- "$0" ||
4991 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4992 X"$0" : 'X\(//\)$' \| \
4993 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4994 $as_echo X/"$0" |
4995 sed '/^.*\/\([^/][^/]*\)\/*$/{
4996 s//\1/
4997 q
4998 }
4999 /^X\/\(\/\/\)$/{
5000 s//\1/
5001 q
5002 }
5003 /^X\/\(\/\).*/{
5004 s//\1/
5005 q
5006 }
5007 s/.*/./; q'`
5008
5009 # Avoid depending upon Character Ranges.
5010 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5011 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5012 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5013 as_cr_digits='0123456789'
5014 as_cr_alnum=$as_cr_Letters$as_cr_digits
5015
5016 ECHO_C= ECHO_N= ECHO_T=
5017 case `echo -n x` in #(((((
5018 -n*)
5019 case `echo 'xy\c'` in
5020 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5021 xy) ECHO_C='\c';;
5022 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5023 ECHO_T=' ';;
5024 esac;;
5025 *)
5026 ECHO_N='-n';;
5027 esac
5028
5029 rm -f conf$$ conf$$.exe conf$$.file
5030 if test -d conf$$.dir; then
5031 rm -f conf$$.dir/conf$$.file
5032 else
5033 rm -f conf$$.dir
5034 mkdir conf$$.dir 2>/dev/null
5035 fi
5036 if (echo >conf$$.file) 2>/dev/null; then
5037 if ln -s conf$$.file conf$$ 2>/dev/null; then
5038 as_ln_s='ln -s'
5039 # ... but there are two gotchas:
5040 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5041 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5042 # In both cases, we have to default to `cp -pR'.
5043 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5044 as_ln_s='cp -pR'
5045 elif ln conf$$.file conf$$ 2>/dev/null; then
5046 as_ln_s=ln
5047 else
5048 as_ln_s='cp -pR'
5049 fi
5050 else
5051 as_ln_s='cp -pR'
5052 fi
5053 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5054 rmdir conf$$.dir 2>/dev/null
5055
5056
5057 # as_fn_mkdir_p
5058 # -------------
5059 # Create "$as_dir" as a directory, including parents if necessary.
5060 as_fn_mkdir_p ()
5061 {
5062
5063 case $as_dir in #(
5064 -*) as_dir=./$as_dir;;
5065 esac
5066 test -d "$as_dir" || eval $as_mkdir_p || {
5067 as_dirs=
5068 while :; do
5069 case $as_dir in #(
5070 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5071 *) as_qdir=$as_dir;;
5072 esac
5073 as_dirs="'$as_qdir' $as_dirs"
5074 as_dir=`$as_dirname -- "$as_dir" ||
5075 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5076 X"$as_dir" : 'X\(//\)[^/]' \| \
5077 X"$as_dir" : 'X\(//\)$' \| \
5078 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5079 $as_echo X"$as_dir" |
5080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5081 s//\1/
5082 q
5083 }
5084 /^X\(\/\/\)[^/].*/{
5085 s//\1/
5086 q
5087 }
5088 /^X\(\/\/\)$/{
5089 s//\1/
5090 q
5091 }
5092 /^X\(\/\).*/{
5093 s//\1/
5094 q
5095 }
5096 s/.*/./; q'`
5097 test -d "$as_dir" && break
5098 done
5099 test -z "$as_dirs" || eval "mkdir $as_dirs"
5100 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5101
5102
5103 } # as_fn_mkdir_p
5104 if mkdir -p . 2>/dev/null; then
5105 as_mkdir_p='mkdir -p "$as_dir"'
5106 else
5107 test -d ./-p && rmdir ./-p
5108 as_mkdir_p=false
5109 fi
5110
5111
5112 # as_fn_executable_p FILE
5113 # -----------------------
5114 # Test if FILE is an executable regular file.
5115 as_fn_executable_p ()
5116 {
5117 test -f "$1" && test -x "$1"
5118 } # as_fn_executable_p
5119 as_test_x='test -x'
5120 as_executable_p=as_fn_executable_p
5121
5122 # Sed expression to map a string onto a valid CPP name.
5123 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5124
5125 # Sed expression to map a string onto a valid variable name.
5126 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5127
5128
5129 exec 6>&1
5130 ## ----------------------------------- ##
5131 ## Main body of $CONFIG_STATUS script. ##
5132 ## ----------------------------------- ##
5133 _ASEOF
5134 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5135
5136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5137 # Save the log message, to keep $0 and so on meaningful, and to
5138 # report actual input values of CONFIG_FILES etc. instead of their
5139 # values after options handling.
5140 ac_log="
5141 This file was extended by Gauche-gl $as_me 0.6, which was
5142 generated by GNU Autoconf 2.69. Invocation command line was
5143
5144 CONFIG_FILES = $CONFIG_FILES
5145 CONFIG_HEADERS = $CONFIG_HEADERS
5146 CONFIG_LINKS = $CONFIG_LINKS
5147 CONFIG_COMMANDS = $CONFIG_COMMANDS
5148 $ $0 $@
5149
5150 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5151 "
5152
5153 _ACEOF
5154
5155 case $ac_config_files in *"
5156 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5157 esac
5158
5159
5160
5161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5162 # Files that config.status was made for.
5163 config_files="$ac_config_files"
5164
5165 _ACEOF
5166
5167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5168 ac_cs_usage="\
5169 \`$as_me' instantiates files and other configuration actions
5170 from templates according to the current configuration. Unless the files
5171 and actions are specified as TAGs, all are instantiated by default.
5172
5173 Usage: $0 [OPTION]... [TAG]...
5174
5175 -h, --help print this help, then exit
5176 -V, --version print version number and configuration settings, then exit
5177 --config print configuration, then exit
5178 -q, --quiet, --silent
5179 do not print progress messages
5180 -d, --debug don't remove temporary files
5181 --recheck update $as_me by reconfiguring in the same conditions
5182 --file=FILE[:TEMPLATE]
5183 instantiate the configuration file FILE
5184
5185 Configuration files:
5186 $config_files
5187
5188 Report bugs to <[email protected]>."
5189
5190 _ACEOF
5191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5192 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5193 ac_cs_version="\\
5194 Gauche-gl config.status 0.6
5195 configured by $0, generated by GNU Autoconf 2.69,
5196 with options \\"\$ac_cs_config\\"
5197
5198 Copyright (C) 2012 Free Software Foundation, Inc.
5199 This config.status script is free software; the Free Software Foundation
5200 gives unlimited permission to copy, distribute and modify it."
5201
5202 ac_pwd='$ac_pwd'
5203 srcdir='$srcdir'
5204 test -n "\$AWK" || AWK=awk
5205 _ACEOF
5206
5207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5208 # The default lists apply if the user does not specify any file.
5209 ac_need_defaults=:
5210 while test $# != 0
5211 do
5212 case $1 in
5213 --*=?*)
5214 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5215 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5216 ac_shift=:
5217 ;;
5218 --*=)
5219 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5220 ac_optarg=
5221 ac_shift=:
5222 ;;
5223 *)
5224 ac_option=$1
5225 ac_optarg=$2
5226 ac_shift=shift
5227 ;;
5228 esac
5229
5230 case $ac_option in
5231 # Handling of the options.
5232 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5233 ac_cs_recheck=: ;;
5234 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5235 $as_echo "$ac_cs_version"; exit ;;
5236 --config | --confi | --conf | --con | --co | --c )
5237 $as_echo "$ac_cs_config"; exit ;;
5238 --debug | --debu | --deb | --de | --d | -d )
5239 debug=: ;;
5240 --file | --fil | --fi | --f )
5241 $ac_shift
5242 case $ac_optarg in
5243 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5244 '') as_fn_error $? "missing file argument" ;;
5245 esac
5246 as_fn_append CONFIG_FILES " '$ac_optarg'"
5247 ac_need_defaults=false;;
5248 --he | --h | --help | --hel | -h )
5249 $as_echo "$ac_cs_usage"; exit ;;
5250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5251 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5252 ac_cs_silent=: ;;
5253
5254 # This is an error.
5255 -*) as_fn_error $? "unrecognized option: \`$1'
5256 Try \`$0 --help' for more information." ;;
5257
5258 *) as_fn_append ac_config_targets " $1"
5259 ac_need_defaults=false ;;
5260
5261 esac
5262 shift
5263 done
5264
5265 ac_configure_extra_args=
5266
5267 if $ac_cs_silent; then
5268 exec 6>/dev/null
5269 ac_configure_extra_args="$ac_configure_extra_args --silent"
5270 fi
5271
5272 _ACEOF
5273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5274 if \$ac_cs_recheck; then
5275 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5276 shift
5277 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5278 CONFIG_SHELL='$SHELL'
5279 export CONFIG_SHELL
5280 exec "\$@"
5281 fi
5282
5283 _ACEOF
5284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5285 exec 5>>config.log
5286 {
5287 echo
5288 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5289 ## Running $as_me. ##
5290 _ASBOX
5291 $as_echo "$ac_log"
5292 } >&5
5293
5294 _ACEOF
5295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5296 _ACEOF
5297
5298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5299
5300 # Handling of arguments.
5301 for ac_config_target in $ac_config_targets
5302 do
5303 case $ac_config_target in
5304 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5305 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5306 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
5307 "cg/Makefile") CONFIG_FILES="$CONFIG_FILES cg/Makefile" ;;
5308 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5309
5310 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5311 esac
5312 done
5313
5314
5315 # If the user did not use the arguments to specify the items to instantiate,
5316 # then the envvar interface is used. Set only those that are not.
5317 # We use the long form for the default assignment because of an extremely
5318 # bizarre bug on SunOS 4.1.3.
5319 if $ac_need_defaults; then
5320 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5321 fi
5322
5323 # Have a temporary directory for convenience. Make it in the build tree
5324 # simply because there is no reason against having it here, and in addition,
5325 # creating and moving files from /tmp can sometimes cause problems.
5326 # Hook for its removal unless debugging.
5327 # Note that there is a small window in which the directory will not be cleaned:
5328 # after its creation but before its name has been assigned to `$tmp'.
5329 $debug ||
5330 {
5331 tmp= ac_tmp=
5332 trap 'exit_status=$?
5333 : "${ac_tmp:=$tmp}"
5334 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5335 ' 0
5336 trap 'as_fn_exit 1' 1 2 13 15
5337 }
5338 # Create a (secure) tmp directory for tmp files.
5339
5340 {
5341 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5342 test -d "$tmp"
5343 } ||
5344 {
5345 tmp=./conf$$-$RANDOM
5346 (umask 077 && mkdir "$tmp")
5347 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5348 ac_tmp=$tmp
5349
5350 # Set up the scripts for CONFIG_FILES section.
5351 # No need to generate them if there are no CONFIG_FILES.
5352 # This happens for instance with `./config.status config.h'.
5353 if test -n "$CONFIG_FILES"; then
5354
5355
5356 ac_cr=`echo X | tr X '\015'`
5357 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5358 # But we know of no other shell where ac_cr would be empty at this
5359 # point, so we can use a bashism as a fallback.
5360 if test "x$ac_cr" = x; then
5361 eval ac_cr=\$\'\\r\'
5362 fi
5363 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5364 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5365 ac_cs_awk_cr='\\r'
5366 else
5367 ac_cs_awk_cr=$ac_cr
5368 fi
5369
5370 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5371 _ACEOF
5372
5373
5374 {
5375 echo "cat >conf$$subs.awk <<_ACEOF" &&
5376 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5377 echo "_ACEOF"
5378 } >conf$$subs.sh ||
5379 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5380 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5381 ac_delim='%!_!# '
5382 for ac_last_try in false false false false false :; do
5383 . ./conf$$subs.sh ||
5384 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5385
5386 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5387 if test $ac_delim_n = $ac_delim_num; then
5388 break
5389 elif $ac_last_try; then
5390 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5391 else
5392 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5393 fi
5394 done
5395 rm -f conf$$subs.sh
5396
5397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5398 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5399 _ACEOF
5400 sed -n '
5401 h
5402 s/^/S["/; s/!.*/"]=/
5403 p
5404 g
5405 s/^[^!]*!//
5406 :repl
5407 t repl
5408 s/'"$ac_delim"'$//
5409 t delim
5410 :nl
5411 h
5412 s/\(.\{148\}\)..*/\1/
5413 t more1
5414 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5415 p
5416 n
5417 b repl
5418 :more1
5419 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5420 p
5421 g
5422 s/.\{148\}//
5423 t nl
5424 :delim
5425 h
5426 s/\(.\{148\}\)..*/\1/
5427 t more2
5428 s/["\\]/\\&/g; s/^/"/; s/$/"/
5429 p
5430 b
5431 :more2
5432 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5433 p
5434 g
5435 s/.\{148\}//
5436 t delim
5437 ' <conf$$subs.awk | sed '
5438 /^[^""]/{
5439 N
5440 s/\n//
5441 }
5442 ' >>$CONFIG_STATUS || ac_write_fail=1
5443 rm -f conf$$subs.awk
5444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5445 _ACAWK
5446 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5447 for (key in S) S_is_set[key] = 1
5448 FS = ""
5449
5450 }
5451 {
5452 line = $ 0
5453 nfields = split(line, field, "@")
5454 substed = 0
5455 len = length(field[1])
5456 for (i = 2; i < nfields; i++) {
5457 key = field[i]
5458 keylen = length(key)
5459 if (S_is_set[key]) {
5460 value = S[key]
5461 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5462 len += length(value) + length(field[++i])
5463 substed = 1
5464 } else
5465 len += 1 + keylen
5466 }
5467
5468 print line
5469 }
5470
5471 _ACAWK
5472 _ACEOF
5473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5474 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5475 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5476 else
5477 cat
5478 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5479 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5480 _ACEOF
5481
5482 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5483 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5484 # trailing colons and then remove the whole line if VPATH becomes empty
5485 # (actually we leave an empty line to preserve line numbers).
5486 if test "x$srcdir" = x.; then
5487 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5488 h
5489 s///
5490 s/^/:/
5491 s/[ ]*$/:/
5492 s/:\$(srcdir):/:/g
5493 s/:\${srcdir}:/:/g
5494 s/:@srcdir@:/:/g
5495 s/^:*//
5496 s/:*$//
5497 x
5498 s/\(=[ ]*\).*/\1/
5499 G
5500 s/\n//
5501 s/^[^=]*=[ ]*$//
5502 }'
5503 fi
5504
5505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5506 fi # test -n "$CONFIG_FILES"
5507
5508
5509 eval set X " :F $CONFIG_FILES "
5510 shift
5511 for ac_tag
5512 do
5513 case $ac_tag in
5514 :[FHLC]) ac_mode=$ac_tag; continue;;
5515 esac
5516 case $ac_mode$ac_tag in
5517 :[FHL]*:*);;
5518 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5519 :[FH]-) ac_tag=-:-;;
5520 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5521 esac
5522 ac_save_IFS=$IFS
5523 IFS=:
5524 set x $ac_tag
5525 IFS=$ac_save_IFS
5526 shift
5527 ac_file=$1
5528 shift
5529
5530 case $ac_mode in
5531 :L) ac_source=$1;;
5532 :[FH])
5533 ac_file_inputs=
5534 for ac_f
5535 do
5536 case $ac_f in
5537 -) ac_f="$ac_tmp/stdin";;
5538 *) # Look for the file first in the build tree, then in the source tree
5539 # (if the path is not absolute). The absolute path cannot be DOS-style,
5540 # because $ac_f cannot contain `:'.
5541 test -f "$ac_f" ||
5542 case $ac_f in
5543 [\\/$]*) false;;
5544 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5545 esac ||
5546 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5547 esac
5548 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5549 as_fn_append ac_file_inputs " '$ac_f'"
5550 done
5551
5552 # Let's still pretend it is `configure' which instantiates (i.e., don't
5553 # use $as_me), people would be surprised to read:
5554 # /* config.h. Generated by config.status. */
5555 configure_input='Generated from '`
5556 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5557 `' by configure.'
5558 if test x"$ac_file" != x-; then
5559 configure_input="$ac_file. $configure_input"
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5561 $as_echo "$as_me: creating $ac_file" >&6;}
5562 fi
5563 # Neutralize special characters interpreted by sed in replacement strings.
5564 case $configure_input in #(
5565 *\&* | *\|* | *\\* )
5566 ac_sed_conf_input=`$as_echo "$configure_input" |
5567 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5568 *) ac_sed_conf_input=$configure_input;;
5569 esac
5570
5571 case $ac_tag in
5572 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5573 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5574 esac
5575 ;;
5576 esac
5577
5578 ac_dir=`$as_dirname -- "$ac_file" ||
5579 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5580 X"$ac_file" : 'X\(//\)[^/]' \| \
5581 X"$ac_file" : 'X\(//\)$' \| \
5582 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5583 $as_echo X"$ac_file" |
5584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5585 s//\1/
5586 q
5587 }
5588 /^X\(\/\/\)[^/].*/{
5589 s//\1/
5590 q
5591 }
5592 /^X\(\/\/\)$/{
5593 s//\1/
5594 q
5595 }
5596 /^X\(\/\).*/{
5597 s//\1/
5598 q
5599 }
5600 s/.*/./; q'`
5601 as_dir="$ac_dir"; as_fn_mkdir_p
5602 ac_builddir=.
5603
5604 case "$ac_dir" in
5605 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5606 *)
5607 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5608 # A ".." for each directory in $ac_dir_suffix.
5609 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5610 case $ac_top_builddir_sub in
5611 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5612 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5613 esac ;;
5614 esac
5615 ac_abs_top_builddir=$ac_pwd
5616 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5617 # for backward compatibility:
5618 ac_top_builddir=$ac_top_build_prefix
5619
5620 case $srcdir in
5621 .) # We are building in place.
5622 ac_srcdir=.
5623 ac_top_srcdir=$ac_top_builddir_sub
5624 ac_abs_top_srcdir=$ac_pwd ;;
5625 [\\/]* | ?:[\\/]* ) # Absolute name.
5626 ac_srcdir=$srcdir$ac_dir_suffix;
5627 ac_top_srcdir=$srcdir
5628 ac_abs_top_srcdir=$srcdir ;;
5629 *) # Relative name.
5630 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5631 ac_top_srcdir=$ac_top_build_prefix$srcdir
5632 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5633 esac
5634 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5635
5636
5637 case $ac_mode in
5638 :F)
5639 #
5640 # CONFIG_FILE
5641 #
5642
5643 _ACEOF
5644
5645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5646 # If the template does not know about datarootdir, expand it.
5647 # FIXME: This hack should be removed a few years after 2.60.
5648 ac_datarootdir_hack=; ac_datarootdir_seen=
5649 ac_sed_dataroot='
5650 /datarootdir/ {
5651 p
5652 q
5653 }
5654 /@datadir@/p
5655 /@docdir@/p
5656 /@infodir@/p
5657 /@localedir@/p
5658 /@mandir@/p'
5659 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5660 *datarootdir*) ac_datarootdir_seen=yes;;
5661 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5663 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5664 _ACEOF
5665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5666 ac_datarootdir_hack='
5667 s&@datadir@&$datadir&g
5668 s&@docdir@&$docdir&g
5669 s&@infodir@&$infodir&g
5670 s&@localedir@&$localedir&g
5671 s&@mandir@&$mandir&g
5672 s&\\\${datarootdir}&$datarootdir&g' ;;
5673 esac
5674 _ACEOF
5675
5676 # Neutralize VPATH when `$srcdir' = `.'.
5677 # Shell code in configure.ac might set extrasub.
5678 # FIXME: do we really want to maintain this feature?
5679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5680 ac_sed_extra="$ac_vpsub
5681 $extrasub
5682 _ACEOF
5683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5684 :t
5685 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5686 s|@configure_input@|$ac_sed_conf_input|;t t
5687 s&@top_builddir@&$ac_top_builddir_sub&;t t
5688 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5689 s&@srcdir@&$ac_srcdir&;t t
5690 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5691 s&@top_srcdir@&$ac_top_srcdir&;t t
5692 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5693 s&@builddir@&$ac_builddir&;t t
5694 s&@abs_builddir@&$ac_abs_builddir&;t t
5695 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5696 $ac_datarootdir_hack
5697 "
5698 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5699 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5700
5701 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5702 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5703 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5704 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5706 which seems to be undefined. Please make sure it is defined" >&5
5707 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5708 which seems to be undefined. Please make sure it is defined" >&2;}
5709
5710 rm -f "$ac_tmp/stdin"
5711 case $ac_file in
5712 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5713 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5714 esac \
5715 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5716 ;;
5717
5718
5719
5720 esac
5721
5722 done # for ac_tag
5723
5724
5725 as_fn_exit 0
5726 _ACEOF
5727 ac_clean_files=$ac_clean_files_save
5728
5729 test $ac_write_fail = 0 ||
5730 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5731
5732
5733 # configure is writing to config.log, and then calls config.status.
5734 # config.status does its own redirection, appending to config.log.
5735 # Unfortunately, on DOS this fails, as config.log is still kept open
5736 # by configure, so config.status won't be able to write to it; its
5737 # output is simply discarded. So we exec the FD to /dev/null,
5738 # effectively closing config.log, so it can be properly (re)opened and
5739 # appended to by config.status. When coming back to configure, we
5740 # need to make the FD available again.
5741 if test "$no_create" != yes; then
5742 ac_cs_success=:
5743 ac_config_status_args=
5744 test "$silent" = yes &&
5745 ac_config_status_args="$ac_config_status_args --quiet"
5746 exec 5>/dev/null
5747 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5748 exec 5>>config.log
5749 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5750 # would make configure fail if this is the last instruction.
5751 $ac_cs_success || as_fn_exit 1
5752 fi
5753 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5755 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5756 fi
5757