Debian Codegraph @

modules/gtk2/configure

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